From 97e3f0e76e6e2b0321e1c4ba2d316dd4085af786 Mon Sep 17 00:00:00 2001 From: Imre Farkas Date: Mon, 29 Jul 2024 13:51:50 -0500 Subject: [PATCH 01/72] Add last used IP to PATs Changelog: added --- app/services/personal_access_tokens/last_used_service.rb | 4 +++- ...9121242_add_last_used_ip_to_personal_access_tokens.rb | 9 +++++++++ db/schema_migrations/20240729121242 | 1 + db/structure.sql | 1 + .../personal_access_tokens/last_used_service_spec.rb | 8 ++++++++ 5 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20240729121242_add_last_used_ip_to_personal_access_tokens.rb create mode 100644 db/schema_migrations/20240729121242 diff --git a/app/services/personal_access_tokens/last_used_service.rb b/app/services/personal_access_tokens/last_used_service.rb index 4e402a44dec70d..caca5b9bbe6042 100644 --- a/app/services/personal_access_tokens/last_used_service.rb +++ b/app/services/personal_access_tokens/last_used_service.rb @@ -20,7 +20,9 @@ def execute try_obtain_lease do ::Gitlab::Database::LoadBalancing::Session.without_sticky_writes do - @personal_access_token.update_column(:last_used_at, Time.zone.now) + @personal_access_token.update_columns( + last_used_at: Time.zone.now, + last_used_ip: Gitlab::IpAddressState.current) end end end diff --git a/db/migrate/20240729121242_add_last_used_ip_to_personal_access_tokens.rb b/db/migrate/20240729121242_add_last_used_ip_to_personal_access_tokens.rb new file mode 100644 index 00000000000000..497279d136c216 --- /dev/null +++ b/db/migrate/20240729121242_add_last_used_ip_to_personal_access_tokens.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +class AddLastUsedIpToPersonalAccessTokens < Gitlab::Database::Migration[2.2] + milestone '17.3' + + def change + add_column :personal_access_tokens, :last_used_ip, :inet + end +end diff --git a/db/schema_migrations/20240729121242 b/db/schema_migrations/20240729121242 new file mode 100644 index 00000000000000..856742a4242555 --- /dev/null +++ b/db/schema_migrations/20240729121242 @@ -0,0 +1 @@ +0d0704849d00dd77d2619429cc44997f931ad1940854160bbeb52f6d8d938aef \ No newline at end of file diff --git a/db/structure.sql b/db/structure.sql index 8e2a0db6fc6588..2b7012a76785d6 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -15016,6 +15016,7 @@ CREATE TABLE personal_access_tokens ( after_expiry_notification_delivered boolean DEFAULT false NOT NULL, previous_personal_access_token_id bigint, advanced_scopes text, + last_used_ip inet, CONSTRAINT check_aa95773861 CHECK ((char_length(advanced_scopes) <= 4096)) ); diff --git a/spec/services/personal_access_tokens/last_used_service_spec.rb b/spec/services/personal_access_tokens/last_used_service_spec.rb index b31cc4dd754fe1..00b5c26ae2e03d 100644 --- a/spec/services/personal_access_tokens/last_used_service_spec.rb +++ b/spec/services/personal_access_tokens/last_used_service_spec.rb @@ -10,11 +10,19 @@ context 'when the personal access token was used 10 minutes ago', :freeze_time do let(:personal_access_token) { create(:personal_access_token, last_used_at: 10.minutes.ago) } + let(:current_ip_address) { '127.0.0.1' } it 'updates the last_used_at timestamp' do expect { subject }.to change { personal_access_token.last_used_at } end + it 'updates the last_used_ip' do + allow(Gitlab::IpAddressState).to receive(:current).and_return(current_ip_address) + + expect { subject }.to change { personal_access_token.last_used_ip } + expect(personal_access_token.last_used_ip).to eq(IPAddr.new(current_ip_address)) + end + it 'obtains an exclusive lease before updating' do Gitlab::Redis::SharedState.with do |redis| expect(redis).to receive(:set).with( -- GitLab From b638d8781c48b3e1969d8093d536a48efe2e5b59 Mon Sep 17 00:00:00 2001 From: Rohit Kala Date: Mon, 29 Jul 2024 16:09:45 -0500 Subject: [PATCH 02/72] add tests for ipv6 --- .../last_used_service_spec.rb | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/spec/services/personal_access_tokens/last_used_service_spec.rb b/spec/services/personal_access_tokens/last_used_service_spec.rb index 00b5c26ae2e03d..dada8f19bc9d63 100644 --- a/spec/services/personal_access_tokens/last_used_service_spec.rb +++ b/spec/services/personal_access_tokens/last_used_service_spec.rb @@ -10,17 +10,31 @@ context 'when the personal access token was used 10 minutes ago', :freeze_time do let(:personal_access_token) { create(:personal_access_token, last_used_at: 10.minutes.ago) } - let(:current_ip_address) { '127.0.0.1' } it 'updates the last_used_at timestamp' do expect { subject }.to change { personal_access_token.last_used_at } end - it 'updates the last_used_ip' do - allow(Gitlab::IpAddressState).to receive(:current).and_return(current_ip_address) + context 'when ipv4', :freeze_time do + let(:current_ip_address) { '127.0.0.1' } - expect { subject }.to change { personal_access_token.last_used_ip } - expect(personal_access_token.last_used_ip).to eq(IPAddr.new(current_ip_address)) + it 'updates the last_used_ip' do + allow(Gitlab::IpAddressState).to receive(:current).and_return(current_ip_address) + + expect { subject }.to change { personal_access_token.last_used_ip } + expect(personal_access_token.last_used_ip).to eq(IPAddr.new(current_ip_address)) + end + end + + context 'when ipv6', :freeze_time do + let(:current_ip_address) { '::1' } + + it 'updates the last_used_ip' do + allow(Gitlab::IpAddressState).to receive(:current).and_return(current_ip_address) + + expect { subject }.to change { personal_access_token.last_used_ip } + expect(personal_access_token.last_used_ip).to eq(IPAddr.new(current_ip_address)) + end end it 'obtains an exclusive lease before updating' do -- GitLab From 125b7a560ae05d1dce209839a18497655aa3bb0e Mon Sep 17 00:00:00 2001 From: Jayce Martin Date: Mon, 29 Jul 2024 17:16:29 -0500 Subject: [PATCH 03/72] Update context details --- .../services/personal_access_tokens/last_used_service_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/services/personal_access_tokens/last_used_service_spec.rb b/spec/services/personal_access_tokens/last_used_service_spec.rb index dada8f19bc9d63..9f2bcf24b7c6f6 100644 --- a/spec/services/personal_access_tokens/last_used_service_spec.rb +++ b/spec/services/personal_access_tokens/last_used_service_spec.rb @@ -15,7 +15,7 @@ expect { subject }.to change { personal_access_token.last_used_at } end - context 'when ipv4', :freeze_time do + context 'when client is using ipv4', :freeze_time do let(:current_ip_address) { '127.0.0.1' } it 'updates the last_used_ip' do @@ -26,7 +26,7 @@ end end - context 'when ipv6', :freeze_time do + context 'when client is using ipv6', :freeze_time do let(:current_ip_address) { '::1' } it 'updates the last_used_ip' do -- GitLab From fe910137cfc6c4e7923e7cf06e42ecdfb71cdaa4 Mon Sep 17 00:00:00 2001 From: Austin Dixon Date: Tue, 30 Jul 2024 16:34:02 +0100 Subject: [PATCH 04/72] Testing commit --- tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tests.yml b/tests.yml index 2b13ee5fa28d6c..9ee0edeaac589c 100644 --- a/tests.yml +++ b/tests.yml @@ -179,3 +179,4 @@ mapping: test: - 'spec/lib/gitlab/ci/templates/templates_spec.rb' - 'ee/spec/lib/ee/gitlab/ci/templates/templates_spec.rb' + -- GitLab From 227fa221eef0e4b2735e69e1ebf681892eaec4bb Mon Sep 17 00:00:00 2001 From: Imre Farkas Date: Tue, 30 Jul 2024 11:34:15 -0500 Subject: [PATCH 05/72] Add last used IP column to PAT table --- .../components/access_token_table_app.vue | 16 +++++++++++++--- .../access_tokens/components/constants.js | 5 +++++ lib/api/entities/personal_access_token.rb | 1 + locale/gitlab.pot | 6 ++++++ 4 files changed, 25 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/access_tokens/components/access_token_table_app.vue b/app/assets/javascripts/access_tokens/components/access_token_table_app.vue index 54b06ac2cbd52e..7b8c41c528b9dd 100644 --- a/app/assets/javascripts/access_tokens/components/access_token_table_app.vue +++ b/app/assets/javascripts/access_tokens/components/access_token_table_app.vue @@ -30,7 +30,8 @@ export default { anchor: 'view-the-last-time-a-token-was-used', }), i18n: { - emptyField: __('Never'), + emptyDateField: __('Never'), + emptyIpField: __('N/A'), expired: __('Expired'), modalMessage: __( 'Are you sure you want to revoke the %{accessTokenType} "%{tokenName}"? This action cannot be undone.', @@ -137,7 +138,16 @@ export default { + + + + {{ - $options.i18n.emptyField + $options.i18n.emptyDateField }} diff --git a/app/assets/javascripts/access_tokens/components/constants.js b/app/assets/javascripts/access_tokens/components/constants.js index d5389bbd0efbfa..dde2bdcdd36eb7 100644 --- a/app/assets/javascripts/access_tokens/components/constants.js +++ b/app/assets/javascripts/access_tokens/components/constants.js @@ -31,6 +31,11 @@ const BASE_FIELDS = [ label: __('Last Used'), sortable: true, }, + { + key: 'lastUsedIp', + label: __('Last Used IP'), + sortable: false, + }, ]; const ROLE_FIELD = { diff --git a/lib/api/entities/personal_access_token.rb b/lib/api/entities/personal_access_token.rb index b9f831021a182b..6a2fe3f86f0b83 100644 --- a/lib/api/entities/personal_access_token.rb +++ b/lib/api/entities/personal_access_token.rb @@ -10,6 +10,7 @@ class PersonalAccessToken < Grape::Entity expose :scopes, documentation: { type: 'array', example: ['api'] } expose :user_id, documentation: { type: 'integer', example: 3 } expose :last_used_at, documentation: { type: 'dateTime', example: '2020-08-31T15:53:00.073Z' } + expose :last_used_ip, documentation: { type: 'string', example: '127.0.0.1' } expose :active?, as: :active, documentation: { type: 'boolean' } expose :expires_at, documentation: { type: 'dateTime', example: '2020-08-31T15:53:00.073Z' } do |personal_access_token| diff --git a/locale/gitlab.pot b/locale/gitlab.pot index 38290bdaa6cece..e399a71de83b68 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -30816,6 +30816,9 @@ msgstr "" msgid "Last Used" msgstr "" +msgid "Last Used IP" +msgstr "" + msgid "Last accessed on" msgstr "" @@ -34229,6 +34232,9 @@ msgstr "" msgid "My-Reaction" msgstr "" +msgid "N/A" +msgstr "" + msgid "NEW" msgstr "" -- GitLab From 8ab9280aba1dcb5d8e37033711f8d620ae18e688 Mon Sep 17 00:00:00 2001 From: Jayce Martin Date: Tue, 30 Jul 2024 11:53:18 -0500 Subject: [PATCH 06/72] Add specs for PAT API --- .../api/personal_access_tokens_spec.rb | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/spec/requests/api/personal_access_tokens_spec.rb b/spec/requests/api/personal_access_tokens_spec.rb index 52001ef0dea857..641514a9942c91 100644 --- a/spec/requests/api/personal_access_tokens_spec.rb +++ b/spec/requests/api/personal_access_tokens_spec.rb @@ -428,6 +428,26 @@ def map_id(json_resonse) expect(json_response['id']).to eq(user_token.id) end + context 'when an ip is recently used' do + let(:current_ip_address) { '127.0.0.1' } + + it 'returns ip used' do + get api(user_token_path, current_user) + + expect(response).to have_gitlab_http_status(:ok) + expect(json_response['last_used_ip']).to eq(user_token.last_used_ip) + end + end + + context 'when there is not an ip recently used' do + it 'does not return an ip' do + get api(user_token_path, current_user) + + expect(response).to have_gitlab_http_status(:ok) + expect(json_response['last_used_ip']).to be_nil + end + end + it 'fails to return other users PAT by id' do get api(other_users_path, current_user) -- GitLab From a3311e44041a6ef7338cb6c5a7f82dd5d3b15f1a Mon Sep 17 00:00:00 2001 From: "avinash.koganti" Date: Tue, 30 Jul 2024 12:04:06 -0500 Subject: [PATCH 07/72] adding unit test for lastUsedIp view access_token component --- .../components/access_token_table_app_spec.js | 43 +++++++++++-------- 1 file changed, 24 insertions(+), 19 deletions(-) diff --git a/spec/frontend/access_tokens/components/access_token_table_app_spec.js b/spec/frontend/access_tokens/components/access_token_table_app_spec.js index 226fe1fc8dfe91..df980a5e8175d6 100644 --- a/spec/frontend/access_tokens/components/access_token_table_app_spec.js +++ b/spec/frontend/access_tokens/components/access_token_table_app_spec.js @@ -21,6 +21,7 @@ describe('~/access_tokens/components/access_token_table_app', () => { scopes: ['api'], created_at: '2021-05-01T00:00:00.000Z', last_used_at: null, + last_used_ip: null, expired: false, expires_soon: true, expires_at: null, @@ -33,6 +34,7 @@ describe('~/access_tokens/components/access_token_table_app', () => { scopes: ['api', 'sudo'], created_at: '2022-04-21T00:00:00.000Z', last_used_at: '2022-04-21T00:00:00.000Z', + last_used_ip: '192.168.0.1', expired: true, expires_soon: false, expires_at: new Date().toISOString(), @@ -101,6 +103,7 @@ describe('~/access_tokens/components/access_token_table_app', () => { 'Scopes', 'Created', 'Last Used', + 'Last Used IP', 'Expires', 'Action', ]); @@ -115,6 +118,7 @@ describe('~/access_tokens/components/access_token_table_app', () => { 'Scopes', 'Created', 'Last Used', + 'Last Used IP', 'Expires', 'Role', 'Action', @@ -141,16 +145,17 @@ describe('~/access_tokens/components/access_token_table_app', () => { await triggerSuccess(); const cells = findCells(); - expect(cells).toHaveLength(14); + expect(cells).toHaveLength(16); // First row expect(cells.at(0).text()).toBe('a'); expect(cells.at(1).text()).toBe('api'); expect(cells.at(2).text()).not.toBe('Never'); expect(cells.at(3).text()).toBe('Never'); - expect(cells.at(4).text()).toBe('Never'); - expect(cells.at(5).text()).toBe('Maintainer'); - let button = cells.at(6).findComponent(GlButton); + expect(cells.at(4).text()).toBe('N/A'); + expect(cells.at(5).text()).toBe('Never'); + expect(cells.at(6).text()).toBe('Maintainer'); + let button = cells.at(7).findComponent(GlButton); expect(button.attributes()).toMatchObject({ 'aria-label': 'Revoke', 'data-testid': 'revoke-button', @@ -162,15 +167,15 @@ describe('~/access_tokens/components/access_token_table_app', () => { ), }); expect(button.props('category')).toBe('tertiary'); - // Second row - expect(cells.at(7).text()).toBe('b'); - expect(cells.at(8).text()).toBe('api, sudo'); - expect(cells.at(9).text()).not.toBe('Never'); + expect(cells.at(8).text()).toBe('b'); + expect(cells.at(9).text()).toBe('api, sudo'); expect(cells.at(10).text()).not.toBe('Never'); - expect(cells.at(11).text()).toBe('Expired'); - expect(cells.at(12).text()).toBe('Maintainer'); - button = cells.at(13).findComponent(GlButton); + expect(cells.at(11).text()).not.toBe('Never'); + expect(cells.at(12).text()).toBe('192.168.0.1'); + expect(cells.at(13).text()).toBe('Expired'); + expect(cells.at(14).text()).toBe('Maintainer'); + button = cells.at(15).findComponent(GlButton); expect(button.attributes('href')).toBe('/-/user_settings/personal_access_tokens/2/revoke'); expect(button.props('category')).toBe('tertiary'); }); @@ -186,8 +191,8 @@ describe('~/access_tokens/components/access_token_table_app', () => { }); const headers = findHeaders(); - expect(headers).toHaveLength(6); - ['Token name', 'Scopes', 'Created', 'Last Used', 'Expires', 'Role'].forEach( + expect(headers).toHaveLength(7); + ['Token name', 'Scopes', 'Created', 'Last Used', 'Last Used IP', 'Expires', 'Role'].forEach( (text, index) => { expect(headers.at(index).text()).toBe(text); }, @@ -206,8 +211,8 @@ describe('~/access_tokens/components/access_token_table_app', () => { showRole: true, }); - expect(findHeaders().at(6).text()).toBe('Action'); - expect(findCells().at(6).findComponent(GlButton).exists()).toBe(false); + expect(findHeaders().at(7).text()).toBe('Action'); + expect(findCells().at(7).findComponent(GlButton).exists()).toBe(false); }, ); }); @@ -219,7 +224,7 @@ describe('~/access_tokens/components/access_token_table_app', () => { // First and second rows expect(cells.at(0).text()).toBe('a'); - expect(cells.at(7).text()).toBe('b'); + expect(cells.at(8).text()).toBe('b'); const headers = findHeaders(); await headers.at(0).trigger('click'); @@ -227,7 +232,7 @@ describe('~/access_tokens/components/access_token_table_app', () => { // First and second rows have swapped expect(cells.at(0).text()).toBe('b'); - expect(cells.at(7).text()).toBe('a'); + expect(cells.at(8).text()).toBe('a'); }); it('sorts rows by date', async () => { @@ -237,14 +242,14 @@ describe('~/access_tokens/components/access_token_table_app', () => { // First and second rows expect(cells.at(3).text()).toBe('Never'); - expect(cells.at(10).text()).not.toBe('Never'); + expect(cells.at(11).text()).not.toBe('Never'); const headers = findHeaders(); await headers.at(3).trigger('click'); // First and second rows have swapped expect(cells.at(3).text()).not.toBe('Never'); - expect(cells.at(10).text()).toBe('Never'); + expect(cells.at(11).text()).toBe('Never'); }); describe('pagination', () => { -- GitLab From e37a513fb82da4432b08c91ef46466bf21034cdf Mon Sep 17 00:00:00 2001 From: Austin Dixon Date: Tue, 30 Jul 2024 19:40:48 +0100 Subject: [PATCH 08/72] revert change --- tests.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/tests.yml b/tests.yml index 9ee0edeaac589c..2b13ee5fa28d6c 100644 --- a/tests.yml +++ b/tests.yml @@ -179,4 +179,3 @@ mapping: test: - 'spec/lib/gitlab/ci/templates/templates_spec.rb' - 'ee/spec/lib/ee/gitlab/ci/templates/templates_spec.rb' - -- GitLab From 736609e10a78f8eb7fd5cb50054ee36b229ea67e Mon Sep 17 00:00:00 2001 From: Imre Farkas Date: Tue, 30 Jul 2024 14:02:45 -0500 Subject: [PATCH 09/72] Add different timeouts for IP changes --- .../personal_access_tokens/last_used_service.rb | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/app/services/personal_access_tokens/last_used_service.rb b/app/services/personal_access_tokens/last_used_service.rb index caca5b9bbe6042..e85b2d6442a8b0 100644 --- a/app/services/personal_access_tokens/last_used_service.rb +++ b/app/services/personal_access_tokens/last_used_service.rb @@ -5,6 +5,8 @@ class LastUsedService include ExclusiveLeaseGuard LEASE_TIMEOUT = 60.seconds.to_i + LAST_USED_IP_TIMEOUT = 1.minute + LAST_USED_AT_TIMEOUT = 10.minutes def initialize(personal_access_token) @personal_access_token = personal_access_token @@ -40,11 +42,24 @@ def lease_key def update? return false if ::Gitlab::Database.read_only? + return true if last_used_ip_needs_update? + + last_used_at_needs_update? + end + + def last_used_ip_needs_update? + return false unless Gitlab::IpAddressState.current + return false if IPAddr.new(Gitlab::IpAddressState.current) == @personal_access_token.last_used_ip + + @personal_access_token.last_used_at <= LAST_USED_IP_TIMEOUT.ago + end + + def last_used_at_needs_update? last_used = @personal_access_token.last_used_at return true if last_used.nil? - last_used <= 10.minutes.ago + last_used <= LAST_USED_AT_TIMEOUT.ago end end end -- GitLab From 071df50a1a3479d8c95d3efd0e0c23ab00448112 Mon Sep 17 00:00:00 2001 From: Rohit Kala Date: Tue, 30 Jul 2024 14:19:35 -0500 Subject: [PATCH 10/72] Add test for different timeouts for IP changes --- .../last_used_service_spec.rb | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/spec/services/personal_access_tokens/last_used_service_spec.rb b/spec/services/personal_access_tokens/last_used_service_spec.rb index 9f2bcf24b7c6f6..17e4580236000a 100644 --- a/spec/services/personal_access_tokens/last_used_service_spec.rb +++ b/spec/services/personal_access_tokens/last_used_service_spec.rb @@ -37,6 +37,30 @@ end end + context 'when the personal access token was used more than 1 minute ago', :freeze_time do + let(:current_ip_address) { '::1' } + let(:personal_access_token) { create(:personal_access_token, last_used_at: 2.minutes.ago) } + + it 'updates the last_used_ip' do + allow(Gitlab::IpAddressState).to receive(:current).and_return(current_ip_address) + + expect { subject }.to change { personal_access_token.last_used_ip } + expect(personal_access_token.last_used_ip).to eq(IPAddr.new(current_ip_address)) + end + end + + context 'when the personal access token was used less than 1 minute ago', :freeze_time do + let(:current_ip_address) { '::1' } + let(:personal_access_token) { create(:personal_access_token, last_used_at: 30.seconds.ago) } + + it 'does not update the last_used_ip' do + allow(Gitlab::IpAddressState).to receive(:current).and_return(current_ip_address) + + expect { subject }.not_to change { personal_access_token.last_used_ip } + expect(personal_access_token.last_used_ip).to be_nil + end + end + it 'obtains an exclusive lease before updating' do Gitlab::Redis::SharedState.with do |redis| expect(redis).to receive(:set).with( -- GitLab From bd1684831b485c6346b6a566b2daea74a8303aac Mon Sep 17 00:00:00 2001 From: Austin Dixon Date: Tue, 30 Jul 2024 20:56:30 +0100 Subject: [PATCH 11/72] Add pat_ip Feature Flag --- app/services/personal_access_tokens/last_used_service.rb | 1 + config/feature_flags/gitlab_com_derisk/pat_ip.yml | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 config/feature_flags/gitlab_com_derisk/pat_ip.yml diff --git a/app/services/personal_access_tokens/last_used_service.rb b/app/services/personal_access_tokens/last_used_service.rb index e85b2d6442a8b0..3d61eb4b66b8c9 100644 --- a/app/services/personal_access_tokens/last_used_service.rb +++ b/app/services/personal_access_tokens/last_used_service.rb @@ -48,6 +48,7 @@ def update? end def last_used_ip_needs_update? + return unless Feature.enabled?(:pat_ip, @personal_access_token.user) return false unless Gitlab::IpAddressState.current return false if IPAddr.new(Gitlab::IpAddressState.current) == @personal_access_token.last_used_ip diff --git a/config/feature_flags/gitlab_com_derisk/pat_ip.yml b/config/feature_flags/gitlab_com_derisk/pat_ip.yml new file mode 100644 index 00000000000000..77840f48ea8c60 --- /dev/null +++ b/config/feature_flags/gitlab_com_derisk/pat_ip.yml @@ -0,0 +1,9 @@ +--- +name: pat_ip +feature_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/428577 +introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/161076/diffs#e33ffd7a3f2e3a205c3b45e35d76fb8e173874d7 +rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/428577 +milestone: '17.3' +group: group::authentication +type: gitlab_com_derisk +default_enabled: false -- GitLab From 938b0f58ab25c79f193ce9abd7abce581f541075 Mon Sep 17 00:00:00 2001 From: "avinash.koganti" Date: Tue, 30 Jul 2024 17:26:40 -0500 Subject: [PATCH 12/72] creating personalaccesstoken-lastusedips table --- .../personal_access_tokens_last_used_ips.yml | 9 ++++++++ ...sonal_access_tokens_last_used_ips_table.rb | 19 ++++++++++++++++ db/schema_migrations/20240729121243 | 1 + db/structure.sql | 22 +++++++++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 db/docs/personal_access_tokens_last_used_ips.yml create mode 100644 db/migrate/20240729121243_add_personal_access_tokens_last_used_ips_table.rb create mode 100644 db/schema_migrations/20240729121243 diff --git a/db/docs/personal_access_tokens_last_used_ips.yml b/db/docs/personal_access_tokens_last_used_ips.yml new file mode 100644 index 00000000000000..b7c895a56bac7f --- /dev/null +++ b/db/docs/personal_access_tokens_last_used_ips.yml @@ -0,0 +1,9 @@ +--- +table_name: personal_access_tokens_last_used_ips +feature_categories: + - system_access +description: Keeps the data for last used ips for personal access tokens +introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/161076 +milestone: '17.3' +gitlab_schema: gitlab_main +sharding_key_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/463786 diff --git a/db/migrate/20240729121243_add_personal_access_tokens_last_used_ips_table.rb b/db/migrate/20240729121243_add_personal_access_tokens_last_used_ips_table.rb new file mode 100644 index 00000000000000..7a05de430ceb34 --- /dev/null +++ b/db/migrate/20240729121243_add_personal_access_tokens_last_used_ips_table.rb @@ -0,0 +1,19 @@ +# frozen_string_literal:true + +class AddPersonalAccessTokensLastUsedIpsTable < Gitlab::Database::Migration[2.2] + milestone '17.3' + + def up + # rubocop:disable Migration/EnsureFactoryForTable -- i will edit on final change + create_table :personal_access_tokens_last_used_ips do |t| + t.bigint :personal_access_token_id, null: false + t.inet :ip_address + t.timestamps_with_timezone + end + # rubocop:enable Migration/EnsureFactoryForTable + end + + def down + drop_table :personal_access_tokens_last_used_ips + end +end diff --git a/db/schema_migrations/20240729121243 b/db/schema_migrations/20240729121243 new file mode 100644 index 00000000000000..fa901355eae406 --- /dev/null +++ b/db/schema_migrations/20240729121243 @@ -0,0 +1 @@ +4e81c7568be1841ebcac045f09c2ea1406f7d2a9683d26a15939068da4223934 \ No newline at end of file diff --git a/db/structure.sql b/db/structure.sql index 2b7012a76785d6..468902887382c8 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -15029,6 +15029,23 @@ CREATE SEQUENCE personal_access_tokens_id_seq ALTER SEQUENCE personal_access_tokens_id_seq OWNED BY personal_access_tokens.id; +CREATE TABLE personal_access_tokens_last_used_ips ( + id bigint NOT NULL, + personal_access_token_id bigint NOT NULL, + ip_address inet, + created_at timestamp with time zone NOT NULL, + updated_at timestamp with time zone NOT NULL +); + +CREATE SEQUENCE personal_access_tokens_last_used_ips_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + +ALTER SEQUENCE personal_access_tokens_last_used_ips_id_seq OWNED BY personal_access_tokens_last_used_ips.id; + CREATE TABLE plan_limits ( id bigint NOT NULL, plan_id bigint NOT NULL, @@ -21488,6 +21505,8 @@ ALTER TABLE ONLY path_locks ALTER COLUMN id SET DEFAULT nextval('path_locks_id_s ALTER TABLE ONLY personal_access_tokens ALTER COLUMN id SET DEFAULT nextval('personal_access_tokens_id_seq'::regclass); +ALTER TABLE ONLY personal_access_tokens_last_used_ips ALTER COLUMN id SET DEFAULT nextval('personal_access_tokens_last_used_ips_id_seq'::regclass); + ALTER TABLE ONLY plan_limits ALTER COLUMN id SET DEFAULT nextval('plan_limits_id_seq'::regclass); ALTER TABLE ONLY plans ALTER COLUMN id SET DEFAULT nextval('plans_id_seq'::regclass); @@ -23958,6 +23977,9 @@ ALTER TABLE ONLY pages_domains ALTER TABLE ONLY path_locks ADD CONSTRAINT path_locks_pkey PRIMARY KEY (id); +ALTER TABLE ONLY personal_access_tokens_last_used_ips + ADD CONSTRAINT personal_access_tokens_last_used_ips_pkey PRIMARY KEY (id); + ALTER TABLE ONLY personal_access_tokens ADD CONSTRAINT personal_access_tokens_pkey PRIMARY KEY (id); -- GitLab From da9dc997d94d850d3396d648af9b6d4ccda992b9 Mon Sep 17 00:00:00 2001 From: Imre Farkas Date: Wed, 31 Jul 2024 12:42:48 -0500 Subject: [PATCH 13/72] Add relations, model, factory for last used IP --- .../personal_access_token_last_used_ip.rb | 9 ++++ app/models/personal_access_token.rb | 2 + ...> personal_access_token_last_used_ips.yml} | 2 +- ...rsonal_access_token_last_used_ips_table.rb | 22 +++++++++ ...sonal_access_tokens_last_used_ips_table.rb | 19 -------- db/structure.sql | 47 ++++++++++--------- .../personal_access_token_last_used_ips.rb | 8 ++++ ...personal_access_token_last_used_ip_spec.rb | 11 +++++ spec/models/personal_access_token_spec.rb | 1 + 9 files changed, 80 insertions(+), 41 deletions(-) create mode 100644 app/models/authn/personal_access_token_last_used_ip.rb rename db/docs/{personal_access_tokens_last_used_ips.yml => personal_access_token_last_used_ips.yml} (86%) create mode 100644 db/migrate/20240729121243_add_personal_access_token_last_used_ips_table.rb delete mode 100644 db/migrate/20240729121243_add_personal_access_tokens_last_used_ips_table.rb create mode 100644 spec/factories/authn/personal_access_token_last_used_ips.rb create mode 100644 spec/models/authn/personal_access_token_last_used_ip_spec.rb diff --git a/app/models/authn/personal_access_token_last_used_ip.rb b/app/models/authn/personal_access_token_last_used_ip.rb new file mode 100644 index 00000000000000..12f5c166830884 --- /dev/null +++ b/app/models/authn/personal_access_token_last_used_ip.rb @@ -0,0 +1,9 @@ +# frozen_string_literal: true + +module Authn + class PersonalAccessTokenLastUsedIp < ApplicationRecord + self.table_name = 'personal_access_token_last_used_ips' + + belongs_to :personal_access_token + end +end diff --git a/app/models/personal_access_token.rb b/app/models/personal_access_token.rb index 9c98ac21b7bff5..61877575067bef 100644 --- a/app/models/personal_access_token.rb +++ b/app/models/personal_access_token.rb @@ -22,6 +22,8 @@ class PersonalAccessToken < ApplicationRecord belongs_to :user belongs_to :previous_personal_access_token, class_name: 'PersonalAccessToken' + has_many :personal_access_token_last_used_ips + after_initialize :set_default_scopes, if: :persisted? before_save :ensure_token diff --git a/db/docs/personal_access_tokens_last_used_ips.yml b/db/docs/personal_access_token_last_used_ips.yml similarity index 86% rename from db/docs/personal_access_tokens_last_used_ips.yml rename to db/docs/personal_access_token_last_used_ips.yml index b7c895a56bac7f..736d21c0562bc2 100644 --- a/db/docs/personal_access_tokens_last_used_ips.yml +++ b/db/docs/personal_access_token_last_used_ips.yml @@ -1,5 +1,5 @@ --- -table_name: personal_access_tokens_last_used_ips +table_name: personal_access_token_last_used_ips feature_categories: - system_access description: Keeps the data for last used ips for personal access tokens diff --git a/db/migrate/20240729121243_add_personal_access_token_last_used_ips_table.rb b/db/migrate/20240729121243_add_personal_access_token_last_used_ips_table.rb new file mode 100644 index 00000000000000..9f7b960154388d --- /dev/null +++ b/db/migrate/20240729121243_add_personal_access_token_last_used_ips_table.rb @@ -0,0 +1,22 @@ +# frozen_string_literal:true + +class AddPersonalAccessTokenLastUsedIpsTable < Gitlab::Database::Migration[2.2] + INDEX_NAME = 'idx_pat_last_used_ips_on_pat_id' + + milestone '17.3' + + def up + create_table :personal_access_token_last_used_ips do |t| # rubocop:disable Migration/EnsureFactoryForTable -- false positive + t.references :personal_access_token, + foreign_key: { on_delete: :cascade }, + index: { name: INDEX_NAME }, + null: false + t.inet :ip_address + t.timestamps_with_timezone + end + end + + def down + drop_table :personal_access_token_last_used_ips + end +end diff --git a/db/migrate/20240729121243_add_personal_access_tokens_last_used_ips_table.rb b/db/migrate/20240729121243_add_personal_access_tokens_last_used_ips_table.rb deleted file mode 100644 index 7a05de430ceb34..00000000000000 --- a/db/migrate/20240729121243_add_personal_access_tokens_last_used_ips_table.rb +++ /dev/null @@ -1,19 +0,0 @@ -# frozen_string_literal:true - -class AddPersonalAccessTokensLastUsedIpsTable < Gitlab::Database::Migration[2.2] - milestone '17.3' - - def up - # rubocop:disable Migration/EnsureFactoryForTable -- i will edit on final change - create_table :personal_access_tokens_last_used_ips do |t| - t.bigint :personal_access_token_id, null: false - t.inet :ip_address - t.timestamps_with_timezone - end - # rubocop:enable Migration/EnsureFactoryForTable - end - - def down - drop_table :personal_access_tokens_last_used_ips - end -end diff --git a/db/structure.sql b/db/structure.sql index 468902887382c8..d4628d47432f83 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -14999,6 +14999,23 @@ CREATE SEQUENCE path_locks_id_seq ALTER SEQUENCE path_locks_id_seq OWNED BY path_locks.id; +CREATE TABLE personal_access_token_last_used_ips ( + id bigint NOT NULL, + personal_access_token_id bigint NOT NULL, + ip_address inet, + created_at timestamp with time zone NOT NULL, + updated_at timestamp with time zone NOT NULL +); + +CREATE SEQUENCE personal_access_token_last_used_ips_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + +ALTER SEQUENCE personal_access_token_last_used_ips_id_seq OWNED BY personal_access_token_last_used_ips.id; + CREATE TABLE personal_access_tokens ( id integer NOT NULL, user_id integer NOT NULL, @@ -15029,23 +15046,6 @@ CREATE SEQUENCE personal_access_tokens_id_seq ALTER SEQUENCE personal_access_tokens_id_seq OWNED BY personal_access_tokens.id; -CREATE TABLE personal_access_tokens_last_used_ips ( - id bigint NOT NULL, - personal_access_token_id bigint NOT NULL, - ip_address inet, - created_at timestamp with time zone NOT NULL, - updated_at timestamp with time zone NOT NULL -); - -CREATE SEQUENCE personal_access_tokens_last_used_ips_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - -ALTER SEQUENCE personal_access_tokens_last_used_ips_id_seq OWNED BY personal_access_tokens_last_used_ips.id; - CREATE TABLE plan_limits ( id bigint NOT NULL, plan_id bigint NOT NULL, @@ -21503,9 +21503,9 @@ ALTER TABLE ONLY pages_domains ALTER COLUMN id SET DEFAULT nextval('pages_domain ALTER TABLE ONLY path_locks ALTER COLUMN id SET DEFAULT nextval('path_locks_id_seq'::regclass); -ALTER TABLE ONLY personal_access_tokens ALTER COLUMN id SET DEFAULT nextval('personal_access_tokens_id_seq'::regclass); +ALTER TABLE ONLY personal_access_token_last_used_ips ALTER COLUMN id SET DEFAULT nextval('personal_access_token_last_used_ips_id_seq'::regclass); -ALTER TABLE ONLY personal_access_tokens_last_used_ips ALTER COLUMN id SET DEFAULT nextval('personal_access_tokens_last_used_ips_id_seq'::regclass); +ALTER TABLE ONLY personal_access_tokens ALTER COLUMN id SET DEFAULT nextval('personal_access_tokens_id_seq'::regclass); ALTER TABLE ONLY plan_limits ALTER COLUMN id SET DEFAULT nextval('plan_limits_id_seq'::regclass); @@ -23977,8 +23977,8 @@ ALTER TABLE ONLY pages_domains ALTER TABLE ONLY path_locks ADD CONSTRAINT path_locks_pkey PRIMARY KEY (id); -ALTER TABLE ONLY personal_access_tokens_last_used_ips - ADD CONSTRAINT personal_access_tokens_last_used_ips_pkey PRIMARY KEY (id); +ALTER TABLE ONLY personal_access_token_last_used_ips + ADD CONSTRAINT personal_access_token_last_used_ips_pkey PRIMARY KEY (id); ALTER TABLE ONLY personal_access_tokens ADD CONSTRAINT personal_access_tokens_pkey PRIMARY KEY (id); @@ -26134,6 +26134,8 @@ CREATE INDEX idx_packages_packages_on_npm_scope_and_project_id ON packages_packa CREATE INDEX idx_packages_packages_on_project_id_name_version_package_type ON packages_packages USING btree (project_id, name, version, package_type); +CREATE INDEX idx_pat_last_used_ips_on_pat_id ON personal_access_token_last_used_ips USING btree (personal_access_token_id); + CREATE INDEX idx_personal_access_tokens_on_previous_personal_access_token_id ON personal_access_tokens USING btree (previous_personal_access_token_id); CREATE INDEX idx_pkgs_debian_group_distribution_keys_on_distribution_id ON packages_debian_group_distribution_keys USING btree (distribution_id); @@ -34690,6 +34692,9 @@ ALTER TABLE ONLY resource_state_events ALTER TABLE ONLY audit_events_group_external_streaming_destinations ADD CONSTRAINT fk_rails_7dffb88f29 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY personal_access_token_last_used_ips + ADD CONSTRAINT fk_rails_7e650a7967 FOREIGN KEY (personal_access_token_id) REFERENCES personal_access_tokens(id) ON DELETE CASCADE; + ALTER TABLE ONLY clusters_kubernetes_namespaces ADD CONSTRAINT fk_rails_7e7688ecaf FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE; diff --git a/spec/factories/authn/personal_access_token_last_used_ips.rb b/spec/factories/authn/personal_access_token_last_used_ips.rb new file mode 100644 index 00000000000000..abb89ca780a940 --- /dev/null +++ b/spec/factories/authn/personal_access_token_last_used_ips.rb @@ -0,0 +1,8 @@ +# frozen_string_literal: true + +FactoryBot.define do + factory :personal_access_token_last_used_ipatu, class: 'Authn::PersonalAccessTokenLastUsedIp' do + personal_access_token + ip_address { IPAddr.new('42.43.44.45') } + end +end diff --git a/spec/models/authn/personal_access_token_last_used_ip_spec.rb b/spec/models/authn/personal_access_token_last_used_ip_spec.rb new file mode 100644 index 00000000000000..97c7f2105c1575 --- /dev/null +++ b/spec/models/authn/personal_access_token_last_used_ip_spec.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe ::Authn::PersonalAccessTokenLastUsedIp, feature_category: :system_access do + describe 'associations' do + subject { build(:personal_access_token_last_used_ip) } + + it { is_expected.to belong_to(:personal_access_token) } + end +end diff --git a/spec/models/personal_access_token_spec.rb b/spec/models/personal_access_token_spec.rb index 5243fa09473d11..08eb391458b8f5 100644 --- a/spec/models/personal_access_token_spec.rb +++ b/spec/models/personal_access_token_spec.rb @@ -25,6 +25,7 @@ subject(:project_access_token) { create(:personal_access_token) } it { is_expected.to belong_to(:previous_personal_access_token).class_name('PersonalAccessToken') } + it { is_expected.to has_many(:personal_access_token_last_used_ips) } end describe 'scopes' do -- GitLab From fdfda4bb3e8d30c004cb6de214d9bf6673916a7f Mon Sep 17 00:00:00 2001 From: Rohit Kala Date: Wed, 31 Jul 2024 14:45:12 -0500 Subject: [PATCH 14/72] Fix tests for inactive_access_token_table --- .../inactive_access_token_table_app_spec.js | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/spec/frontend/access_tokens/components/inactive_access_token_table_app_spec.js b/spec/frontend/access_tokens/components/inactive_access_token_table_app_spec.js index d2e2081dae3104..272812d0fc94cf 100644 --- a/spec/frontend/access_tokens/components/inactive_access_token_table_app_spec.js +++ b/spec/frontend/access_tokens/components/inactive_access_token_table_app_spec.js @@ -18,6 +18,7 @@ describe('~/access_tokens/components/inactive_access_token_table_app', () => { scopes: ['api'], created_at: '2023-05-01T00:00:00.000Z', last_used_at: null, + last_used_ip: null, expired: true, expires_at: '2024-05-01T00:00:00.000Z', revoked: true, @@ -28,6 +29,7 @@ describe('~/access_tokens/components/inactive_access_token_table_app', () => { scopes: ['api', 'sudo'], created_at: '2024-04-21T00:00:00.000Z', last_used_at: '2024-04-21T00:00:00.000Z', + last_used_ip: '192.168.0.1', expired: true, expires_at: new Date().toISOString(), revoked: false, @@ -84,6 +86,7 @@ describe('~/access_tokens/components/inactive_access_token_table_app', () => { 'Scopes', 'Created', 'Last Used', + 'Last Used IP', 'Expired', 'Role', ]); @@ -111,7 +114,7 @@ describe('~/access_tokens/components/inactive_access_token_table_app', () => { // First and second rows expect(cells.at(0).text()).toBe('a'); - expect(cells.at(6).text()).toBe('b'); + expect(cells.at(7).text()).toBe('b'); const headers = findHeaders(); await headers.at(0).trigger('click'); @@ -119,7 +122,7 @@ describe('~/access_tokens/components/inactive_access_token_table_app', () => { // First and second rows have swapped expect(cells.at(0).text()).toBe('b'); - expect(cells.at(6).text()).toBe('a'); + expect(cells.at(7).text()).toBe('a'); }); it('sorts rows by last used date', async () => { @@ -129,14 +132,14 @@ describe('~/access_tokens/components/inactive_access_token_table_app', () => { // First and second rows expect(cells.at(0).text()).toBe('a'); - expect(cells.at(6).text()).toBe('b'); + expect(cells.at(7).text()).toBe('b'); const headers = findHeaders(); await headers.at(3).trigger('click'); // First and second rows have swapped expect(cells.at(0).text()).toBe('b'); - expect(cells.at(6).text()).toBe('a'); + expect(cells.at(7).text()).toBe('a'); }); it('sorts rows by expiry date', async () => { @@ -144,11 +147,9 @@ describe('~/access_tokens/components/inactive_access_token_table_app', () => { const cells = findCells(); const headers = findHeaders(); - await headers.at(4).trigger('click'); - - // First and second rows have swapped + await headers.at(5).trigger('click'); expect(cells.at(0).text()).toBe('b'); - expect(cells.at(6).text()).toBe('a'); + expect(cells.at(7).text()).toBe('a'); }); it('shows Revoked in expiry column when revoked', () => { @@ -157,8 +158,8 @@ describe('~/access_tokens/components/inactive_access_token_table_app', () => { const cells = findCells(); // First and second rows - expect(cells.at(4).text()).toBe('Revoked'); - expect(cells.at(10).text()).toBe('Expired just now'); + expect(cells.at(5).text()).toBe('Revoked'); + expect(cells.at(12).text()).toBe('Expired just now'); }); describe('pagination', () => { -- GitLab From 39a019d747be9ab46403cd4f503f19df6c36409b Mon Sep 17 00:00:00 2001 From: Rohit Kala Date: Wed, 31 Jul 2024 15:01:34 -0500 Subject: [PATCH 15/72] Add check for last_used_at existance before the update comparison --- app/services/personal_access_tokens/last_used_service.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/personal_access_tokens/last_used_service.rb b/app/services/personal_access_tokens/last_used_service.rb index 3d61eb4b66b8c9..b16593d32df2aa 100644 --- a/app/services/personal_access_tokens/last_used_service.rb +++ b/app/services/personal_access_tokens/last_used_service.rb @@ -51,6 +51,7 @@ def last_used_ip_needs_update? return unless Feature.enabled?(:pat_ip, @personal_access_token.user) return false unless Gitlab::IpAddressState.current return false if IPAddr.new(Gitlab::IpAddressState.current) == @personal_access_token.last_used_ip + return true if @personal_access_token.last_used_at.nil? @personal_access_token.last_used_at <= LAST_USED_IP_TIMEOUT.ago end -- GitLab From be6d694c5b01874647bd513032624f2e111d4bf9 Mon Sep 17 00:00:00 2001 From: Rohit Kala Date: Wed, 31 Jul 2024 16:05:19 -0500 Subject: [PATCH 16/72] Fix typo for last used ip factory --- spec/factories/authn/personal_access_token_last_used_ips.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/factories/authn/personal_access_token_last_used_ips.rb b/spec/factories/authn/personal_access_token_last_used_ips.rb index abb89ca780a940..9361585d32e390 100644 --- a/spec/factories/authn/personal_access_token_last_used_ips.rb +++ b/spec/factories/authn/personal_access_token_last_used_ips.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true FactoryBot.define do - factory :personal_access_token_last_used_ipatu, class: 'Authn::PersonalAccessTokenLastUsedIp' do + factory :personal_access_token_last_used_ip, class: 'Authn::PersonalAccessTokenLastUsedIp' do personal_access_token ip_address { IPAddr.new('42.43.44.45') } end -- GitLab From eacfaed461ce1dc1adb58acf0e6b7706e046ceec Mon Sep 17 00:00:00 2001 From: Rohit Kala Date: Wed, 31 Jul 2024 16:26:22 -0500 Subject: [PATCH 17/72] Fix db spec errors associated with PAT --- app/models/personal_access_token.rb | 2 +- spec/lib/api/entities/personal_access_token_spec.rb | 1 + .../database/no_new_tables_with_gitlab_main_schema_spec.rb | 3 ++- spec/models/personal_access_token_spec.rb | 2 +- 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/models/personal_access_token.rb b/app/models/personal_access_token.rb index 61877575067bef..077a25235fc4d4 100644 --- a/app/models/personal_access_token.rb +++ b/app/models/personal_access_token.rb @@ -22,7 +22,7 @@ class PersonalAccessToken < ApplicationRecord belongs_to :user belongs_to :previous_personal_access_token, class_name: 'PersonalAccessToken' - has_many :personal_access_token_last_used_ips + has_many :personal_access_token_last_used_ips, class_name: 'Authn::PersonalAccessTokenLastUsedIp' after_initialize :set_default_scopes, if: :persisted? before_save :ensure_token diff --git a/spec/lib/api/entities/personal_access_token_spec.rb b/spec/lib/api/entities/personal_access_token_spec.rb index 039b55022313eb..076b19d2db39bd 100644 --- a/spec/lib/api/entities/personal_access_token_spec.rb +++ b/spec/lib/api/entities/personal_access_token_spec.rb @@ -18,6 +18,7 @@ scopes: ['api'], user_id: user.id, last_used_at: nil, + last_used_ip: nil, active: true, expires_at: token.expires_at.iso8601 }) diff --git a/spec/lib/gitlab/database/no_new_tables_with_gitlab_main_schema_spec.rb b/spec/lib/gitlab/database/no_new_tables_with_gitlab_main_schema_spec.rb index ee38d082117015..40b0f614383092 100644 --- a/spec/lib/gitlab/database/no_new_tables_with_gitlab_main_schema_spec.rb +++ b/spec/lib/gitlab/database/no_new_tables_with_gitlab_main_schema_spec.rb @@ -12,7 +12,8 @@ # Specific tables can be exempted from this requirement, and such tables must be added to the `exempted_tables` list. let!(:exempted_tables) do [ - "oauth_device_grants" # https://gitlab.com/gitlab-org/gitlab/-/issues/463785 + "oauth_device_grants", # https://gitlab.com/gitlab-org/gitlab/-/issues/463785 + "personal_access_token_last_used_ips" # https://gitlab.com/gitlab-org/gitlab/-/issues/463786 ] end diff --git a/spec/models/personal_access_token_spec.rb b/spec/models/personal_access_token_spec.rb index 08eb391458b8f5..e6d9aa08589141 100644 --- a/spec/models/personal_access_token_spec.rb +++ b/spec/models/personal_access_token_spec.rb @@ -25,7 +25,7 @@ subject(:project_access_token) { create(:personal_access_token) } it { is_expected.to belong_to(:previous_personal_access_token).class_name('PersonalAccessToken') } - it { is_expected.to has_many(:personal_access_token_last_used_ips) } + it { is_expected.to have_many(:personal_access_token_last_used_ips) } end describe 'scopes' do -- GitLab From d007078c97f0d2147cc445cf33fa7203bcddadc0 Mon Sep 17 00:00:00 2001 From: Jayce Martin Date: Thu, 1 Aug 2024 09:34:44 -0500 Subject: [PATCH 18/72] Add multiple last use IP addresses --- .../last_used_service.rb | 31 ++++++++++++++++--- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/app/services/personal_access_tokens/last_used_service.rb b/app/services/personal_access_tokens/last_used_service.rb index b16593d32df2aa..04d74bb96a376d 100644 --- a/app/services/personal_access_tokens/last_used_service.rb +++ b/app/services/personal_access_tokens/last_used_service.rb @@ -7,6 +7,7 @@ class LastUsedService LEASE_TIMEOUT = 60.seconds.to_i LAST_USED_IP_TIMEOUT = 1.minute LAST_USED_AT_TIMEOUT = 10.minutes + NUM_IPS_TO_STORE = 5 def initialize(personal_access_token) @personal_access_token = personal_access_token @@ -20,13 +21,27 @@ def execute # would be updated when using #touch). return unless update? + # rubocop:disable CodeReuse/ActiveRecord -- this query is specific to this service try_obtain_lease do ::Gitlab::Database::LoadBalancing::Session.without_sticky_writes do - @personal_access_token.update_columns( - last_used_at: Time.zone.now, - last_used_ip: Gitlab::IpAddressState.current) + @personal_access_token.update_columns(last_used_at: Time.zone.now) + ip_count = @personal_access_token.personal_access_token_last_used_ips.where( + personal_access_token_id: @personal_access_token.id, + ip_address: Gitlab::IpAddressState.current).count + + if ip_count > NUM_IPS_TO_STORE + @personal_access_token + .personal_access_token_last_used_ips + .order(created_at: :asc) + .limit(NUM_IPS_TO_STORE - ip_count) + .delete_all + end + + @personal_access_token.personal_access_token_last_used_ips << Authn::PersonalAccessTokenLastUsedIp.new( + ip_address: Gitlab::IpAddressState.current) end end + # rubocop:enable CodeReuse/ActiveRecord end private @@ -50,8 +65,14 @@ def update? def last_used_ip_needs_update? return unless Feature.enabled?(:pat_ip, @personal_access_token.user) return false unless Gitlab::IpAddressState.current - return false if IPAddr.new(Gitlab::IpAddressState.current) == @personal_access_token.last_used_ip - return true if @personal_access_token.last_used_at.nil? + + # rubocop:disable CodeReuse/ActiveRecord -- this query is specific to this service + return false if PersonalAccessTokenLastUsedIp + .where(personal_access_token_id: @personal_access_token.id, + ip_address: Gitlab::IpAddressState.current) + .exists? + # rubocop:enable CodeReuse/ActiveRecord + return true if @personal_access_token.last_used_at.nil? @personal_access_token.last_used_at <= LAST_USED_IP_TIMEOUT.ago end -- GitLab From 7226b3cc8ae304cbe345e9779841b2754bece445 Mon Sep 17 00:00:00 2001 From: Rohit Kala Date: Thu, 1 Aug 2024 11:32:59 -0500 Subject: [PATCH 19/72] Added new tests for more robust testing --- .../personal_access_token_last_used_ip.rb | 6 ++ .../last_used_service.rb | 54 ++++++---- .../last_used_service_spec.rb | 101 +++++++++++++++--- 3 files changed, 125 insertions(+), 36 deletions(-) diff --git a/app/models/authn/personal_access_token_last_used_ip.rb b/app/models/authn/personal_access_token_last_used_ip.rb index 12f5c166830884..c39c38c4b2e6b3 100644 --- a/app/models/authn/personal_access_token_last_used_ip.rb +++ b/app/models/authn/personal_access_token_last_used_ip.rb @@ -4,6 +4,12 @@ module Authn class PersonalAccessTokenLastUsedIp < ApplicationRecord self.table_name = 'personal_access_token_last_used_ips' + after_save :debug + belongs_to :personal_access_token + + def debug + # binding.pry + end end end diff --git a/app/services/personal_access_tokens/last_used_service.rb b/app/services/personal_access_tokens/last_used_service.rb index 04d74bb96a376d..e8e48e409e2072 100644 --- a/app/services/personal_access_tokens/last_used_service.rb +++ b/app/services/personal_access_tokens/last_used_service.rb @@ -24,21 +24,8 @@ def execute # rubocop:disable CodeReuse/ActiveRecord -- this query is specific to this service try_obtain_lease do ::Gitlab::Database::LoadBalancing::Session.without_sticky_writes do - @personal_access_token.update_columns(last_used_at: Time.zone.now) - ip_count = @personal_access_token.personal_access_token_last_used_ips.where( - personal_access_token_id: @personal_access_token.id, - ip_address: Gitlab::IpAddressState.current).count - - if ip_count > NUM_IPS_TO_STORE - @personal_access_token - .personal_access_token_last_used_ips - .order(created_at: :asc) - .limit(NUM_IPS_TO_STORE - ip_count) - .delete_all - end - - @personal_access_token.personal_access_token_last_used_ips << Authn::PersonalAccessTokenLastUsedIp.new( - ip_address: Gitlab::IpAddressState.current) + update_timestamp + update_pat_ip end end # rubocop:enable CodeReuse/ActiveRecord @@ -54,6 +41,35 @@ def lease_key @lease_key ||= "pat:last_used_update_lock:#{@personal_access_token.id}" end + def update_timestamp + @personal_access_token.update_columns(last_used_at: Time.zone.now) + end + + # rubocop:disable CodeReuse/ActiveRecord -- this is specific to this service + def update_pat_ip + return unless Feature.enabled?(:pat_ip, @personal_access_token.user) + + return false if PersonalAccessTokenLastUsedIp + .where(personal_access_token_id: @personal_access_token.id, + ip_address: Gitlab::IpAddressState.current) + .exists? + + @personal_access_token.personal_access_token_last_used_ips << Authn::PersonalAccessTokenLastUsedIp.new( + ip_address: Gitlab::IpAddressState.current) + + ip_count = @personal_access_token.personal_access_token_last_used_ips.where( + personal_access_token_id: @personal_access_token.id).count + + return unless ip_count > NUM_IPS_TO_STORE + + @personal_access_token + .personal_access_token_last_used_ips + .order(created_at: :asc) + .limit(ip_count - NUM_IPS_TO_STORE) + .delete_all + end + # rubocop:enable CodeReuse/ActiveRecord + def update? return false if ::Gitlab::Database.read_only? @@ -63,15 +79,7 @@ def update? end def last_used_ip_needs_update? - return unless Feature.enabled?(:pat_ip, @personal_access_token.user) return false unless Gitlab::IpAddressState.current - - # rubocop:disable CodeReuse/ActiveRecord -- this query is specific to this service - return false if PersonalAccessTokenLastUsedIp - .where(personal_access_token_id: @personal_access_token.id, - ip_address: Gitlab::IpAddressState.current) - .exists? - # rubocop:enable CodeReuse/ActiveRecord return true if @personal_access_token.last_used_at.nil? @personal_access_token.last_used_at <= LAST_USED_IP_TIMEOUT.ago diff --git a/spec/services/personal_access_tokens/last_used_service_spec.rb b/spec/services/personal_access_tokens/last_used_service_spec.rb index 17e4580236000a..e2a22644d765d0 100644 --- a/spec/services/personal_access_tokens/last_used_service_spec.rb +++ b/spec/services/personal_access_tokens/last_used_service_spec.rb @@ -18,22 +18,46 @@ context 'when client is using ipv4', :freeze_time do let(:current_ip_address) { '127.0.0.1' } - it 'updates the last_used_ip' do + it "does update the personal access token's last used ips" do allow(Gitlab::IpAddressState).to receive(:current).and_return(current_ip_address) - expect { subject }.to change { personal_access_token.last_used_ip } - expect(personal_access_token.last_used_ip).to eq(IPAddr.new(current_ip_address)) + expect { subject }.to change { personal_access_token.personal_access_token_last_used_ips.count } + expect(Authn::PersonalAccessTokenLastUsedIp + .where(personal_access_token_id: personal_access_token.id, ip_address: Gitlab::IpAddressState.current) + .exists?).to be_truthy end end context 'when client is using ipv6', :freeze_time do let(:current_ip_address) { '::1' } - it 'updates the last_used_ip' do + it "does update the personal access token's last used ips" do allow(Gitlab::IpAddressState).to receive(:current).and_return(current_ip_address) - expect { subject }.to change { personal_access_token.last_used_ip } - expect(personal_access_token.last_used_ip).to eq(IPAddr.new(current_ip_address)) + expect { subject }.to change { personal_access_token.personal_access_token_last_used_ips.count } + expect( + Authn::PersonalAccessTokenLastUsedIp + .where(personal_access_token_id: personal_access_token.id, ip_address: Gitlab::IpAddressState.current) + .exists? + ).to be_truthy + end + end + + context 'when PAT IP feature flag is disabled' do + let(:current_ip_address) { '127.0.0.1' } + + before do + stub_feature_flags(pat_ip: false) + end + + it "does not update the personal access token's last used ips" do + allow(Gitlab::IpAddressState).to receive(:current).and_return(current_ip_address) + expect { subject }.not_to change { personal_access_token.personal_access_token_last_used_ips.count } + expect( + Authn::PersonalAccessTokenLastUsedIp + .where(personal_access_token_id: personal_access_token.id, ip_address: Gitlab::IpAddressState.current) + .exists? + ).to be_falsy end end @@ -41,11 +65,14 @@ let(:current_ip_address) { '::1' } let(:personal_access_token) { create(:personal_access_token, last_used_at: 2.minutes.ago) } - it 'updates the last_used_ip' do + it "updates the personal access token's last used ips" do allow(Gitlab::IpAddressState).to receive(:current).and_return(current_ip_address) - - expect { subject }.to change { personal_access_token.last_used_ip } - expect(personal_access_token.last_used_ip).to eq(IPAddr.new(current_ip_address)) + expect { subject }.to change { personal_access_token.personal_access_token_last_used_ips.count } + expect( + Authn::PersonalAccessTokenLastUsedIp + .where(personal_access_token_id: personal_access_token.id, ip_address: Gitlab::IpAddressState.current) + .exists? + ).to be_truthy end end @@ -53,11 +80,59 @@ let(:current_ip_address) { '::1' } let(:personal_access_token) { create(:personal_access_token, last_used_at: 30.seconds.ago) } - it 'does not update the last_used_ip' do + it "does not update the personal access token's last used ips" do allow(Gitlab::IpAddressState).to receive(:current).and_return(current_ip_address) - expect { subject }.not_to change { personal_access_token.last_used_ip } - expect(personal_access_token.last_used_ip).to be_nil + expect { subject }.not_to change { personal_access_token.personal_access_token_last_used_ips.count } + expect( + Authn::PersonalAccessTokenLastUsedIp + .where(personal_access_token_id: personal_access_token.id, ip_address: Gitlab::IpAddressState.current) + .exists? + ).to be_falsy + end + end + + context "when the current ip address is already saved", :freeze_time do + let(:current_ip_address) { '::1' } + + before do + personal_access_token.personal_access_token_last_used_ips << Authn::PersonalAccessTokenLastUsedIp.new( + ip_address: current_ip_address) + end + + it "does not update the database" do + expect(Authn::PersonalAccessTokenLastUsedIp).not_to receive(:new) + subject + end + end + + context "when the count of personal access token's last used ips are above the limit", :freeze_time do + let(:current_ip_address) { '123.12.123.1' } + + before do + 1.upto(5) do |i| + personal_access_token.personal_access_token_last_used_ips << Authn::PersonalAccessTokenLastUsedIp.new( + ip_address: "127.0.0.#{i}", created_at: i.days.ago) + end + end + + it "keeps no. of ips at 5" do + allow(Gitlab::IpAddressState).to receive(:current).and_return(current_ip_address) + expect( + Authn::PersonalAccessTokenLastUsedIp + .where(personal_access_token_id: personal_access_token.id, ip_address: "127.0.0.5") + .exists? + ).to be_truthy + expect { subject }.not_to change { personal_access_token.personal_access_token_last_used_ips.count } + end + + it "removes the oldest PAT ip" do + allow(Gitlab::IpAddressState).to receive(:current).and_return(current_ip_address) + expect { subject }.to change { + Authn::PersonalAccessTokenLastUsedIp + .where(personal_access_token_id: personal_access_token.id, ip_address: "127.0.0.5") + .exists? + }.from(true).to(false) end end -- GitLab From 127505733b865eaf9853f0404469868b5623b65b Mon Sep 17 00:00:00 2001 From: Rohit Kala Date: Fri, 2 Aug 2024 11:27:08 -0500 Subject: [PATCH 20/72] Fix PAT last_used_service.rb to pass more robust tests --- .../last_used_service.rb | 29 +++++++------------ .../last_used_service_spec.rb | 18 ++++++++++-- 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/app/services/personal_access_tokens/last_used_service.rb b/app/services/personal_access_tokens/last_used_service.rb index e8e48e409e2072..bc73d53bba8467 100644 --- a/app/services/personal_access_tokens/last_used_service.rb +++ b/app/services/personal_access_tokens/last_used_service.rb @@ -19,13 +19,13 @@ def execute # We _only_ want to update last_used_at and not also updated_at (which # would be updated when using #touch). - return unless update? + return if ::Gitlab::Database.read_only? # rubocop:disable CodeReuse/ActiveRecord -- this query is specific to this service try_obtain_lease do ::Gitlab::Database::LoadBalancing::Session.without_sticky_writes do - update_timestamp - update_pat_ip + update_pat_ip if last_used_ip_needs_update? + update_timestamp if last_used_at_needs_update? end end # rubocop:enable CodeReuse/ActiveRecord @@ -47,13 +47,6 @@ def update_timestamp # rubocop:disable CodeReuse/ActiveRecord -- this is specific to this service def update_pat_ip - return unless Feature.enabled?(:pat_ip, @personal_access_token.user) - - return false if PersonalAccessTokenLastUsedIp - .where(personal_access_token_id: @personal_access_token.id, - ip_address: Gitlab::IpAddressState.current) - .exists? - @personal_access_token.personal_access_token_last_used_ips << Authn::PersonalAccessTokenLastUsedIp.new( ip_address: Gitlab::IpAddressState.current) @@ -68,22 +61,20 @@ def update_pat_ip .limit(ip_count - NUM_IPS_TO_STORE) .delete_all end - # rubocop:enable CodeReuse/ActiveRecord - - def update? - return false if ::Gitlab::Database.read_only? - - return true if last_used_ip_needs_update? - - last_used_at_needs_update? - end def last_used_ip_needs_update? + return false unless Feature.enabled?(:pat_ip, @personal_access_token.user) return false unless Gitlab::IpAddressState.current return true if @personal_access_token.last_used_at.nil? + return false if + Authn::PersonalAccessTokenLastUsedIp + .where(personal_access_token_id: @personal_access_token.id, ip_address: Gitlab::IpAddressState.current) + .exists? + @personal_access_token.last_used_at <= LAST_USED_IP_TIMEOUT.ago end + # rubocop:enable CodeReuse/ActiveRecord def last_used_at_needs_update? last_used = @personal_access_token.last_used_at diff --git a/spec/services/personal_access_tokens/last_used_service_spec.rb b/spec/services/personal_access_tokens/last_used_service_spec.rb index e2a22644d765d0..24b8c47861a3e5 100644 --- a/spec/services/personal_access_tokens/last_used_service_spec.rb +++ b/spec/services/personal_access_tokens/last_used_service_spec.rb @@ -100,9 +100,21 @@ ip_address: current_ip_address) end - it "does not update the database" do - expect(Authn::PersonalAccessTokenLastUsedIp).not_to receive(:new) - subject + context "when the timestamp does not need an update" do + it "does not update the database" do + expect(Authn::PersonalAccessTokenLastUsedIp).not_to receive(:new) + subject + end + end + + context "when timestamp needs an update", :freeze_time do + let(:personal_access_token) { create(:personal_access_token, last_used_at: 11.minutes.ago) } + + it "does update the timestamp, but does not update the ip" do + allow(Gitlab::IpAddressState).to receive(:current).and_return(current_ip_address) + expect { subject }.to change { personal_access_token.last_used_at } + expect { subject }.not_to change { personal_access_token.personal_access_token_last_used_ips.count }.from(1) + end end end -- GitLab From c504228cf4227895a2162c575349ad4ce885c35d Mon Sep 17 00:00:00 2001 From: Rohit Kala Date: Fri, 2 Aug 2024 13:07:53 -0500 Subject: [PATCH 21/72] Show 5 ips for PAT and add frontend tests --- .../components/access_token_table_app.vue | 9 ++++----- .../javascripts/access_tokens/components/constants.js | 4 ++-- lib/api/entities/personal_access_token.rb | 5 ++++- .../components/access_token_table_app_spec.js | 10 +++++----- .../components/inactive_access_token_table_app_spec.js | 6 +++--- spec/lib/api/entities/personal_access_token_spec.rb | 2 +- 6 files changed, 19 insertions(+), 17 deletions(-) diff --git a/app/assets/javascripts/access_tokens/components/access_token_table_app.vue b/app/assets/javascripts/access_tokens/components/access_token_table_app.vue index 7b8c41c528b9dd..a2313999da1688 100644 --- a/app/assets/javascripts/access_tokens/components/access_token_table_app.vue +++ b/app/assets/javascripts/access_tokens/components/access_token_table_app.vue @@ -75,7 +75,7 @@ export default { }, showPagination() { return this.activeAccessTokens.length > PAGE_SIZE; - }, + } }, methods: { onSuccess(event) { @@ -141,12 +141,11 @@ export default { - -- GitLab From 4bcf0a4ce06b2aec55f4ac8d648ca078d0042ec4 Mon Sep 17 00:00:00 2001 From: Austin Dixon Date: Fri, 23 Aug 2024 15:02:25 +0000 Subject: [PATCH 27/72] Apply 1 suggestion(s) to 1 file(s) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Eduardo Sanz García --- config/feature_flags/gitlab_com_derisk/pat_ip.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/feature_flags/gitlab_com_derisk/pat_ip.yml b/config/feature_flags/gitlab_com_derisk/pat_ip.yml index 77840f48ea8c60..ee60cba426834a 100644 --- a/config/feature_flags/gitlab_com_derisk/pat_ip.yml +++ b/config/feature_flags/gitlab_com_derisk/pat_ip.yml @@ -1,7 +1,7 @@ --- name: pat_ip feature_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/428577 -introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/161076/diffs#e33ffd7a3f2e3a205c3b45e35d76fb8e173874d7 +introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/161076 rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/428577 milestone: '17.3' group: group::authentication -- GitLab From c35bb28bdbf5dc07bf42d43c143b5c3f2b7e4401 Mon Sep 17 00:00:00 2001 From: Austin Dixon Date: Fri, 23 Aug 2024 10:22:31 -0500 Subject: [PATCH 28/72] used a dash to communicate no data is available --- .../access_tokens/components/access_token_table_app.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/access_tokens/components/access_token_table_app.vue b/app/assets/javascripts/access_tokens/components/access_token_table_app.vue index 18acf4bd927f35..4296c55a2f3c03 100644 --- a/app/assets/javascripts/access_tokens/components/access_token_table_app.vue +++ b/app/assets/javascripts/access_tokens/components/access_token_table_app.vue @@ -31,7 +31,7 @@ export default { }), i18n: { emptyDateField: __('Never'), - emptyIpField: __('N/A'), + emptyIpField: __('-'), expired: __('Expired'), modalMessage: __( 'Are you sure you want to revoke the %{accessTokenType} "%{tokenName}"? This action cannot be undone.', -- GitLab From 98b73725ed665a8f2d60c44885e70f670d01d0bf Mon Sep 17 00:00:00 2001 From: Rohit Kala Date: Fri, 23 Aug 2024 12:54:06 -0500 Subject: [PATCH 29/72] Add counter cache to PAT Last Used IP model --- app/models/authn/personal_access_token_last_used_ip.rb | 2 +- locale/gitlab.pot | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/authn/personal_access_token_last_used_ip.rb b/app/models/authn/personal_access_token_last_used_ip.rb index 7de7750ad9201b..9e69d9db4fd116 100644 --- a/app/models/authn/personal_access_token_last_used_ip.rb +++ b/app/models/authn/personal_access_token_last_used_ip.rb @@ -3,6 +3,6 @@ module Authn class PersonalAccessTokenLastUsedIp < ApplicationRecord self.table_name = 'personal_access_token_last_used_ips' - belongs_to :personal_access_token + belongs_to :personal_access_token, counter_cache: true end end diff --git a/locale/gitlab.pot b/locale/gitlab.pot index ef3a59b960a375..44ae503680c639 100644 --- a/locale/gitlab.pot +++ b/locale/gitlab.pot @@ -1699,6 +1699,9 @@ msgstr "" msgid ", or " msgstr "" +msgid "-" +msgstr "" + msgid "- %{policy_name} (notifying after %{elapsed_time} minutes unless %{status})" msgstr "" @@ -34679,9 +34682,6 @@ msgstr "" msgid "My-Reaction" msgstr "" -msgid "N/A" -msgstr "" - msgid "NEW" msgstr "" -- GitLab From 0f7bfcf58423b30c05ef72e86943dcd11de37857 Mon Sep 17 00:00:00 2001 From: Austin Dixon Date: Thu, 29 Aug 2024 08:56:30 -0500 Subject: [PATCH 30/72] test push --- app/models/personal_access_token.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/personal_access_token.rb b/app/models/personal_access_token.rb index f3ff8b7d907483..ee973b7e549152 100644 --- a/app/models/personal_access_token.rb +++ b/app/models/personal_access_token.rb @@ -125,3 +125,5 @@ def expires_at_before_instance_max_expiry_date end PersonalAccessToken.prepend_mod_with('PersonalAccessToken') + +# test -- GitLab From 0999b30a4ad9954bec23ef626f5b792ea230d163 Mon Sep 17 00:00:00 2001 From: Austin Dixon Date: Thu, 29 Aug 2024 08:58:09 -0500 Subject: [PATCH 31/72] revert test push --- app/models/personal_access_token.rb | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/models/personal_access_token.rb b/app/models/personal_access_token.rb index ee973b7e549152..f3ff8b7d907483 100644 --- a/app/models/personal_access_token.rb +++ b/app/models/personal_access_token.rb @@ -125,5 +125,3 @@ def expires_at_before_instance_max_expiry_date end PersonalAccessToken.prepend_mod_with('PersonalAccessToken') - -# test -- GitLab From ab774a63cd805c4483071fd60a30c6ab740623e5 Mon Sep 17 00:00:00 2001 From: Austin Dixon Date: Thu, 29 Aug 2024 12:21:14 -0500 Subject: [PATCH 32/72] order columns and change milestone to 17.4 --- config/feature_flags/gitlab_com_derisk/pat_ip.yml | 2 +- db/docs/personal_access_token_last_used_ips.yml | 2 +- ...729121243_add_personal_access_token_last_used_ips_table.rb | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/feature_flags/gitlab_com_derisk/pat_ip.yml b/config/feature_flags/gitlab_com_derisk/pat_ip.yml index ee60cba426834a..70fd2be7538325 100644 --- a/config/feature_flags/gitlab_com_derisk/pat_ip.yml +++ b/config/feature_flags/gitlab_com_derisk/pat_ip.yml @@ -3,7 +3,7 @@ name: pat_ip feature_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/428577 introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/161076 rollout_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/428577 -milestone: '17.3' +milestone: '17.4' group: group::authentication type: gitlab_com_derisk default_enabled: false diff --git a/db/docs/personal_access_token_last_used_ips.yml b/db/docs/personal_access_token_last_used_ips.yml index 736d21c0562bc2..b7db1d91f6eb3b 100644 --- a/db/docs/personal_access_token_last_used_ips.yml +++ b/db/docs/personal_access_token_last_used_ips.yml @@ -4,6 +4,6 @@ feature_categories: - system_access description: Keeps the data for last used ips for personal access tokens introduced_by_url: https://gitlab.com/gitlab-org/gitlab/-/merge_requests/161076 -milestone: '17.3' +milestone: '17.4' gitlab_schema: gitlab_main sharding_key_issue_url: https://gitlab.com/gitlab-org/gitlab/-/issues/463786 diff --git a/db/migrate/20240729121243_add_personal_access_token_last_used_ips_table.rb b/db/migrate/20240729121243_add_personal_access_token_last_used_ips_table.rb index 9f7b960154388d..de2580dd0a4e3a 100644 --- a/db/migrate/20240729121243_add_personal_access_token_last_used_ips_table.rb +++ b/db/migrate/20240729121243_add_personal_access_token_last_used_ips_table.rb @@ -3,7 +3,7 @@ class AddPersonalAccessTokenLastUsedIpsTable < Gitlab::Database::Migration[2.2] INDEX_NAME = 'idx_pat_last_used_ips_on_pat_id' - milestone '17.3' + milestone '17.4' def up create_table :personal_access_token_last_used_ips do |t| # rubocop:disable Migration/EnsureFactoryForTable -- false positive @@ -11,8 +11,8 @@ def up foreign_key: { on_delete: :cascade }, index: { name: INDEX_NAME }, null: false - t.inet :ip_address t.timestamps_with_timezone + t.inet :ip_address end end -- GitLab From f8ebfc5d047a7a6d20d8e533c457c30e8579bdeb Mon Sep 17 00:00:00 2001 From: Austin Dixon Date: Thu, 29 Aug 2024 13:51:32 -0500 Subject: [PATCH 33/72] db migration --- db/structure.sql | 68465 +++++++++++++++++++++++++++++++++++++-------- 1 file changed, 57254 insertions(+), 11211 deletions(-) diff --git a/db/structure.sql b/db/structure.sql index ee6cb5a99c26a6..1d5d873e88d5f7 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -1,16 +1,75 @@ +SET statement_timeout = 0; +SET lock_timeout = 0; +SET idle_in_transaction_session_timeout = 0; +SET client_encoding = 'UTF8'; +SET standard_conforming_strings = on; +SELECT pg_catalog.set_config('search_path', '', false); +SET check_function_bodies = false; +SET xmloption = content; +SET client_min_messages = warning; +SET row_security = off; + +-- +-- Name: gitlab_partitions_dynamic; Type: SCHEMA; Schema: -; Owner: - +-- + CREATE SCHEMA gitlab_partitions_dynamic; + +-- +-- Name: SCHEMA gitlab_partitions_dynamic; Type: COMMENT; Schema: -; Owner: - +-- + COMMENT ON SCHEMA gitlab_partitions_dynamic IS 'Schema to hold partitions managed dynamically from the application, e.g. for time space partitioning.'; + +-- +-- Name: gitlab_partitions_static; Type: SCHEMA; Schema: -; Owner: - +-- + CREATE SCHEMA gitlab_partitions_static; + +-- +-- Name: SCHEMA gitlab_partitions_static; Type: COMMENT; Schema: -; Owner: - +-- + COMMENT ON SCHEMA gitlab_partitions_static IS 'Schema to hold static partitions, e.g. for hash partitioning'; -CREATE EXTENSION IF NOT EXISTS btree_gist; -CREATE EXTENSION IF NOT EXISTS pg_trgm; +-- +-- Name: btree_gist; Type: EXTENSION; Schema: -; Owner: - +-- + +CREATE EXTENSION IF NOT EXISTS btree_gist WITH SCHEMA public; + + +-- +-- Name: EXTENSION btree_gist; Type: COMMENT; Schema: -; Owner: - +-- + +COMMENT ON EXTENSION btree_gist IS 'support for indexing common datatypes in GiST'; + + +-- +-- Name: pg_trgm; Type: EXTENSION; Schema: -; Owner: - +-- + +CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public; + + +-- +-- Name: EXTENSION pg_trgm; Type: COMMENT; Schema: -; Owner: - +-- + +COMMENT ON EXTENSION pg_trgm IS 'text similarity measurement and index searching based on trigrams'; -CREATE FUNCTION assign_p_ci_build_tags_id_value() RETURNS trigger + +-- +-- Name: assign_p_ci_build_tags_id_value(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.assign_p_ci_build_tags_id_value() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -23,7 +82,12 @@ RETURN NEW; END $$; -CREATE FUNCTION assign_p_ci_builds_execution_configs_id_value() RETURNS trigger + +-- +-- Name: assign_p_ci_builds_execution_configs_id_value(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.assign_p_ci_builds_execution_configs_id_value() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -36,7 +100,12 @@ RETURN NEW; END $$; -CREATE FUNCTION assign_p_ci_builds_id_value() RETURNS trigger + +-- +-- Name: assign_p_ci_builds_id_value(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.assign_p_ci_builds_id_value() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -49,7 +118,12 @@ RETURN NEW; END $$; -CREATE FUNCTION assign_p_ci_job_annotations_id_value() RETURNS trigger + +-- +-- Name: assign_p_ci_job_annotations_id_value(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.assign_p_ci_job_annotations_id_value() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -62,7 +136,12 @@ RETURN NEW; END $$; -CREATE FUNCTION assign_p_ci_job_artifacts_id_value() RETURNS trigger + +-- +-- Name: assign_p_ci_job_artifacts_id_value(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.assign_p_ci_job_artifacts_id_value() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -75,7 +154,12 @@ RETURN NEW; END $$; -CREATE FUNCTION assign_p_ci_pipeline_variables_id_value() RETURNS trigger + +-- +-- Name: assign_p_ci_pipeline_variables_id_value(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.assign_p_ci_pipeline_variables_id_value() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -88,7 +172,12 @@ RETURN NEW; END $$; -CREATE FUNCTION assign_p_ci_stages_id_value() RETURNS trigger + +-- +-- Name: assign_p_ci_stages_id_value(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.assign_p_ci_stages_id_value() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -101,7 +190,12 @@ RETURN NEW; END $$; -CREATE FUNCTION assign_zoekt_tasks_id_value() RETURNS trigger + +-- +-- Name: assign_zoekt_tasks_id_value(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.assign_zoekt_tasks_id_value() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -114,7 +208,12 @@ RETURN NEW; END $$; -CREATE FUNCTION delete_associated_project_namespace() RETURNS trigger + +-- +-- Name: delete_associated_project_namespace(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.delete_associated_project_namespace() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -126,7 +225,16 @@ RETURN NULL; END $$; -CREATE TABLE namespaces ( + +SET default_tablespace = ''; + +SET default_table_access_method = heap; + +-- +-- Name: namespaces; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.namespaces ( id integer NOT NULL, name character varying NOT NULL, path character varying NOT NULL, @@ -178,7 +286,12 @@ CREATE TABLE namespaces ( organization_id bigint DEFAULT 1 ); -CREATE FUNCTION find_namespaces_by_id(namespaces_id bigint) RETURNS namespaces + +-- +-- Name: find_namespaces_by_id(bigint); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.find_namespaces_by_id(namespaces_id bigint) RETURNS public.namespaces LANGUAGE plpgsql STABLE COST 1 PARALLEL SAFE AS $$ BEGIN @@ -186,7 +299,12 @@ BEGIN END; $$; -CREATE TABLE projects ( + +-- +-- Name: projects; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.projects ( id integer NOT NULL, name character varying, path character varying, @@ -272,7 +390,12 @@ CREATE TABLE projects ( organization_id bigint ); -CREATE FUNCTION find_projects_by_id(projects_id bigint) RETURNS projects + +-- +-- Name: find_projects_by_id(bigint); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.find_projects_by_id(projects_id bigint) RETURNS public.projects LANGUAGE plpgsql STABLE COST 1 PARALLEL SAFE AS $$ BEGIN @@ -280,7 +403,12 @@ BEGIN END; $$; -CREATE TABLE users ( + +-- +-- Name: users; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.users ( id integer NOT NULL, email character varying DEFAULT ''::character varying NOT NULL, encrypted_password character varying DEFAULT ''::character varying NOT NULL, @@ -366,7 +494,12 @@ CREATE TABLE users ( CONSTRAINT check_c737c04b87 CHECK ((notified_of_own_activity IS NOT NULL)) ); -CREATE FUNCTION find_users_by_id(users_id bigint) RETURNS users + +-- +-- Name: find_users_by_id(bigint); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.find_users_by_id(users_id bigint) RETURNS public.users LANGUAGE plpgsql STABLE COST 1 PARALLEL SAFE AS $$ BEGIN @@ -374,7 +507,12 @@ BEGIN END; $$; -CREATE FUNCTION gitlab_schema_prevent_write() RETURNS trigger + +-- +-- Name: gitlab_schema_prevent_write(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.gitlab_schema_prevent_write() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -387,7 +525,12 @@ BEGIN END $$; -CREATE FUNCTION insert_catalog_resource_sync_event() RETURNS trigger + +-- +-- Name: insert_catalog_resource_sync_event(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.insert_catalog_resource_sync_event() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -399,7 +542,12 @@ RETURN NULL; END $$; -CREATE FUNCTION insert_into_loose_foreign_keys_deleted_records() RETURNS trigger + +-- +-- Name: insert_into_loose_foreign_keys_deleted_records(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.insert_into_loose_foreign_keys_deleted_records() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -411,7 +559,12 @@ BEGIN END $$; -CREATE FUNCTION insert_namespaces_sync_event() RETURNS trigger + +-- +-- Name: insert_namespaces_sync_event(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.insert_namespaces_sync_event() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -422,7 +575,12 @@ RETURN NULL; END $$; -CREATE FUNCTION insert_or_update_vulnerability_reads() RETURNS trigger + +-- +-- Name: insert_or_update_vulnerability_reads(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.insert_or_update_vulnerability_reads() RETURNS trigger LANGUAGE plpgsql AS $$ DECLARE @@ -482,7 +640,12 @@ BEGIN END $$; -CREATE FUNCTION insert_projects_sync_event() RETURNS trigger + +-- +-- Name: insert_projects_sync_event(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.insert_projects_sync_event() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -493,7 +656,12 @@ RETURN NULL; END $$; -CREATE FUNCTION insert_vulnerability_reads_from_vulnerability() RETURNS trigger + +-- +-- Name: insert_vulnerability_reads_from_vulnerability(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.insert_vulnerability_reads_from_vulnerability() RETURNS trigger LANGUAGE plpgsql AS $$ DECLARE @@ -534,7 +702,12 @@ BEGIN END $$; -CREATE FUNCTION next_traversal_ids_sibling(traversal_ids integer[]) RETURNS integer[] + +-- +-- Name: next_traversal_ids_sibling(integer[]); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.next_traversal_ids_sibling(traversal_ids integer[]) RETURNS integer[] LANGUAGE plpgsql IMMUTABLE STRICT AS $$ BEGIN @@ -543,7 +716,12 @@ BEGIN END; $$; -CREATE FUNCTION nullify_merge_request_metrics_build_data() RETURNS trigger + +-- +-- Name: nullify_merge_request_metrics_build_data(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.nullify_merge_request_metrics_build_data() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -556,7 +734,12 @@ RETURN NEW; END $$; -CREATE FUNCTION postgres_pg_stat_activity_autovacuum() RETURNS TABLE(query text, query_start timestamp with time zone) + +-- +-- Name: postgres_pg_stat_activity_autovacuum(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.postgres_pg_stat_activity_autovacuum() RETURNS TABLE(query text, query_start timestamp with time zone) LANGUAGE sql SECURITY DEFINER SET search_path TO 'pg_catalog', 'pg_temp' AS $$ @@ -567,7 +750,12 @@ CREATE FUNCTION postgres_pg_stat_activity_autovacuum() RETURNS TABLE(query text, AND backend_type = 'autovacuum worker' $$; -CREATE FUNCTION prevent_delete_of_default_organization() RETURNS trigger + +-- +-- Name: prevent_delete_of_default_organization(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.prevent_delete_of_default_organization() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -579,7 +767,12 @@ RETURN OLD; END $$; -CREATE FUNCTION set_has_external_issue_tracker() RETURNS trigger + +-- +-- Name: set_has_external_issue_tracker(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.set_has_external_issue_tracker() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -599,7 +792,12 @@ RETURN NULL; END $$; -CREATE FUNCTION set_has_external_wiki() RETURNS trigger + +-- +-- Name: set_has_external_wiki(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.set_has_external_wiki() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -610,7 +808,12 @@ RETURN NULL; END $$; -CREATE FUNCTION set_has_issues_on_vulnerability_reads() RETURNS trigger + +-- +-- Name: set_has_issues_on_vulnerability_reads(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.set_has_issues_on_vulnerability_reads() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -625,7 +828,12 @@ RETURN NULL; END $$; -CREATE FUNCTION set_has_merge_request_on_vulnerability_reads() RETURNS trigger + +-- +-- Name: set_has_merge_request_on_vulnerability_reads(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.set_has_merge_request_on_vulnerability_reads() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -640,7 +848,12 @@ RETURN NULL; END $$; -CREATE FUNCTION sync_issues_dates_with_work_item_dates_sources() RETURNS trigger + +-- +-- Name: sync_issues_dates_with_work_item_dates_sources(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.sync_issues_dates_with_work_item_dates_sources() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -657,7 +870,12 @@ RETURN NULL; END $$; -CREATE FUNCTION table_sync_function_0992e728d3() RETURNS trigger + +-- +-- Name: table_sync_function_0992e728d3(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.table_sync_function_0992e728d3() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -698,9 +916,19 @@ RETURN NULL; END $$; -COMMENT ON FUNCTION table_sync_function_0992e728d3() IS 'Partitioning migration: table sync for merge_request_diff_commits table'; -CREATE FUNCTION table_sync_function_3f39f64fc3() RETURNS trigger +-- +-- Name: FUNCTION table_sync_function_0992e728d3(); Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON FUNCTION public.table_sync_function_0992e728d3() IS 'Partitioning migration: table sync for merge_request_diff_commits table'; + + +-- +-- Name: table_sync_function_3f39f64fc3(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.table_sync_function_3f39f64fc3() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -759,9 +987,19 @@ RETURN NULL; END $$; -COMMENT ON FUNCTION table_sync_function_3f39f64fc3() IS 'Partitioning migration: table sync for merge_request_diff_files table'; -CREATE FUNCTION trigger_01b3fc052119() RETURNS trigger +-- +-- Name: FUNCTION table_sync_function_3f39f64fc3(); Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON FUNCTION public.table_sync_function_3f39f64fc3() IS 'Partitioning migration: table sync for merge_request_diff_files table'; + + +-- +-- Name: trigger_01b3fc052119(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_01b3fc052119() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -777,7 +1015,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_02450faab875() RETURNS trigger + +-- +-- Name: trigger_02450faab875(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_02450faab875() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -793,7 +1036,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_038fe84feff7() RETURNS trigger + +-- +-- Name: trigger_038fe84feff7(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_038fe84feff7() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -809,7 +1057,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_05ce163deddf() RETURNS trigger + +-- +-- Name: trigger_05ce163deddf(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_05ce163deddf() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -825,7 +1078,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_0a1b0adcf686() RETURNS trigger + +-- +-- Name: trigger_0a1b0adcf686(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_0a1b0adcf686() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -841,7 +1099,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_0da002390fdc() RETURNS trigger + +-- +-- Name: trigger_0da002390fdc(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_0da002390fdc() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -857,7 +1120,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_0e13f214e504() RETURNS trigger + +-- +-- Name: trigger_0e13f214e504(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_0e13f214e504() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -873,7 +1141,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_13d4aa8fe3dd() RETURNS trigger + +-- +-- Name: trigger_13d4aa8fe3dd(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_13d4aa8fe3dd() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -889,7 +1162,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_158ac875f254() RETURNS trigger + +-- +-- Name: trigger_158ac875f254(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_158ac875f254() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -905,7 +1183,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_174b23fa3dfb() RETURNS trigger + +-- +-- Name: trigger_174b23fa3dfb(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_174b23fa3dfb() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -921,7 +1204,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_18bc439a6741() RETURNS trigger + +-- +-- Name: trigger_18bc439a6741(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_18bc439a6741() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -937,7 +1225,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_1ed40f4d5f4e() RETURNS trigger + +-- +-- Name: trigger_1ed40f4d5f4e(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_1ed40f4d5f4e() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -953,7 +1246,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_206cbe2dc1a2() RETURNS trigger + +-- +-- Name: trigger_206cbe2dc1a2(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_206cbe2dc1a2() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -969,7 +1267,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_207005e8e995() RETURNS trigger + +-- +-- Name: trigger_207005e8e995(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_207005e8e995() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -985,7 +1288,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_219952df8fc4() RETURNS trigger + +-- +-- Name: trigger_219952df8fc4(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_219952df8fc4() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1001,7 +1309,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_2514245c7fc5() RETURNS trigger + +-- +-- Name: trigger_2514245c7fc5(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_2514245c7fc5() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1017,7 +1330,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_25c44c30884f() RETURNS trigger + +-- +-- Name: trigger_25c44c30884f(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_25c44c30884f() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1033,7 +1351,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_25d35f02ab55() RETURNS trigger + +-- +-- Name: trigger_25d35f02ab55(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_25d35f02ab55() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1049,7 +1372,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_25fe4f7da510() RETURNS trigger + +-- +-- Name: trigger_25fe4f7da510(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_25fe4f7da510() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1065,7 +1393,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_2b8fdc9b4a4e() RETURNS trigger + +-- +-- Name: trigger_2b8fdc9b4a4e(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_2b8fdc9b4a4e() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1081,7 +1414,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_3691f9f6a69f() RETURNS trigger + +-- +-- Name: trigger_3691f9f6a69f(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_3691f9f6a69f() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1097,7 +1435,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_3fe922f4db67() RETURNS trigger + +-- +-- Name: trigger_3fe922f4db67(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_3fe922f4db67() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1113,7 +1456,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_41eaf23bf547() RETURNS trigger + +-- +-- Name: trigger_41eaf23bf547(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_41eaf23bf547() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1129,7 +1477,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_43484cb41aca() RETURNS trigger + +-- +-- Name: trigger_43484cb41aca(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_43484cb41aca() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1145,7 +1498,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_44558add1625() RETURNS trigger + +-- +-- Name: trigger_44558add1625(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_44558add1625() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1161,7 +1519,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_46ebe375f632() RETURNS trigger + +-- +-- Name: trigger_46ebe375f632(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_46ebe375f632() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1177,7 +1540,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_49862b4b3035() RETURNS trigger + +-- +-- Name: trigger_49862b4b3035(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_49862b4b3035() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1193,7 +1561,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_49e070da6320() RETURNS trigger + +-- +-- Name: trigger_49e070da6320(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_49e070da6320() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1209,7 +1582,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_4ad9a52a6614() RETURNS trigger + +-- +-- Name: trigger_4ad9a52a6614(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_4ad9a52a6614() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1225,7 +1603,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_4b43790d717f() RETURNS trigger + +-- +-- Name: trigger_4b43790d717f(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_4b43790d717f() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1241,7 +1624,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_54707c384ad7() RETURNS trigger + +-- +-- Name: trigger_54707c384ad7(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_54707c384ad7() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1257,7 +1645,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_56d49f4ed623() RETURNS trigger + +-- +-- Name: trigger_56d49f4ed623(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_56d49f4ed623() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1273,7 +1666,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_57ad2742ac16() RETURNS trigger + +-- +-- Name: trigger_57ad2742ac16(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_57ad2742ac16() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1289,7 +1687,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_5ca97b87ee30() RETURNS trigger + +-- +-- Name: trigger_5ca97b87ee30(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_5ca97b87ee30() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1305,7 +1708,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_5f6432d2dccc() RETURNS trigger + +-- +-- Name: trigger_5f6432d2dccc(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_5f6432d2dccc() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1321,7 +1729,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_664594a3d0a7() RETURNS trigger + +-- +-- Name: trigger_664594a3d0a7(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_664594a3d0a7() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1337,7 +1750,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_68435a54ee2b() RETURNS trigger + +-- +-- Name: trigger_68435a54ee2b(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_68435a54ee2b() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1353,7 +1771,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_6bf50b363152() RETURNS trigger + +-- +-- Name: trigger_6bf50b363152(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_6bf50b363152() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1369,7 +1792,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_6c38ba395cc1() RETURNS trigger + +-- +-- Name: trigger_6c38ba395cc1(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_6c38ba395cc1() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1385,7 +1813,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_6cdea9559242() RETURNS trigger + +-- +-- Name: trigger_6cdea9559242(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_6cdea9559242() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1401,7 +1834,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_6d6c79ce74e1() RETURNS trigger + +-- +-- Name: trigger_6d6c79ce74e1(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_6d6c79ce74e1() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1417,7 +1855,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_70d3f0bba1de() RETURNS trigger + +-- +-- Name: trigger_70d3f0bba1de(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_70d3f0bba1de() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1433,7 +1876,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_740afa9807b8() RETURNS trigger + +-- +-- Name: trigger_740afa9807b8(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_740afa9807b8() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1449,7 +1897,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_77d9fbad5b12() RETURNS trigger + +-- +-- Name: trigger_77d9fbad5b12(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_77d9fbad5b12() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1465,7 +1918,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_7a8b08eed782() RETURNS trigger + +-- +-- Name: trigger_7a8b08eed782(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_7a8b08eed782() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1481,7 +1939,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_7de792ddbc05() RETURNS trigger + +-- +-- Name: trigger_7de792ddbc05(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_7de792ddbc05() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1497,7 +1960,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_84d67ad63e93() RETURNS trigger + +-- +-- Name: trigger_84d67ad63e93(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_84d67ad63e93() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1513,7 +1981,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_8a38ce2327de() RETURNS trigger + +-- +-- Name: trigger_8a38ce2327de(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_8a38ce2327de() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1529,7 +2002,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_8ac78f164b2d() RETURNS trigger + +-- +-- Name: trigger_8ac78f164b2d(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_8ac78f164b2d() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1545,7 +2023,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_8ba31bddd655() RETURNS trigger + +-- +-- Name: trigger_8ba31bddd655(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_8ba31bddd655() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1561,7 +2044,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_8d002f38bdef() RETURNS trigger + +-- +-- Name: trigger_8d002f38bdef(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_8d002f38bdef() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1577,7 +2065,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_8d17725116fe() RETURNS trigger + +-- +-- Name: trigger_8d17725116fe(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_8d17725116fe() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1593,7 +2086,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_8e66b994e8f0() RETURNS trigger + +-- +-- Name: trigger_8e66b994e8f0(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_8e66b994e8f0() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1609,7 +2107,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_8fbb044c64ad() RETURNS trigger + +-- +-- Name: trigger_8fbb044c64ad(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_8fbb044c64ad() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1625,7 +2128,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_90fa5c6951f1() RETURNS trigger + +-- +-- Name: trigger_90fa5c6951f1(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_90fa5c6951f1() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1641,7 +2149,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_9259aae92378() RETURNS trigger + +-- +-- Name: trigger_9259aae92378(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_9259aae92378() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1657,7 +2170,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_94514aeadc50() RETURNS trigger + +-- +-- Name: trigger_94514aeadc50(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_94514aeadc50() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1673,7 +2191,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_9699ea03bb37() RETURNS trigger + +-- +-- Name: trigger_9699ea03bb37(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_9699ea03bb37() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1689,7 +2212,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_96a76ee9f147() RETURNS trigger + +-- +-- Name: trigger_96a76ee9f147(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_96a76ee9f147() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1705,7 +2233,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_98ad3a4c1d35() RETURNS trigger + +-- +-- Name: trigger_98ad3a4c1d35(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_98ad3a4c1d35() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1721,7 +2254,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_9e137c16de79() RETURNS trigger + +-- +-- Name: trigger_9e137c16de79(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_9e137c16de79() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1737,7 +2275,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_9f3745f8fe32() RETURNS trigger + +-- +-- Name: trigger_9f3745f8fe32(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_9f3745f8fe32() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1753,7 +2296,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_a1bc7c70cbdf() RETURNS trigger + +-- +-- Name: trigger_a1bc7c70cbdf(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_a1bc7c70cbdf() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1769,7 +2317,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_a253cb3cacdf() RETURNS trigger + +-- +-- Name: trigger_a253cb3cacdf(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_a253cb3cacdf() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1785,7 +2338,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_a4e4fb2451d9() RETURNS trigger + +-- +-- Name: trigger_a4e4fb2451d9(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_a4e4fb2451d9() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1801,7 +2359,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_a7e0fb195210() RETURNS trigger + +-- +-- Name: trigger_a7e0fb195210(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_a7e0fb195210() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1817,7 +2380,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_af3f17817e4d() RETURNS trigger + +-- +-- Name: trigger_af3f17817e4d(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_af3f17817e4d() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1833,7 +2401,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_b2612138515d() RETURNS trigger + +-- +-- Name: trigger_b2612138515d(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_b2612138515d() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1849,7 +2422,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_b4520c29ea74() RETURNS trigger + +-- +-- Name: trigger_b4520c29ea74(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_b4520c29ea74() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1865,7 +2443,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_c17a166692a2() RETURNS trigger + +-- +-- Name: trigger_c17a166692a2(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_c17a166692a2() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1881,7 +2464,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_c59fe6f31e71() RETURNS trigger + +-- +-- Name: trigger_c59fe6f31e71(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_c59fe6f31e71() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1897,7 +2485,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_c5eec113ea76() RETURNS trigger + +-- +-- Name: trigger_c5eec113ea76(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_c5eec113ea76() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1913,7 +2506,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_c8bc8646bce9() RETURNS trigger + +-- +-- Name: trigger_c8bc8646bce9(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_c8bc8646bce9() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1929,7 +2527,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_c9090feed334() RETURNS trigger + +-- +-- Name: trigger_c9090feed334(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_c9090feed334() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1945,7 +2548,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_cac7c0698291() RETURNS trigger + +-- +-- Name: trigger_cac7c0698291(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_cac7c0698291() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1961,7 +2569,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_d4487a75bd44() RETURNS trigger + +-- +-- Name: trigger_d4487a75bd44(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_d4487a75bd44() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1977,7 +2590,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_d5c895007948() RETURNS trigger + +-- +-- Name: trigger_d5c895007948(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_d5c895007948() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1993,7 +2611,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_dadd660afe2c() RETURNS trigger + +-- +-- Name: trigger_dadd660afe2c(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_dadd660afe2c() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2009,7 +2632,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_dbdd61a66a91() RETURNS trigger + +-- +-- Name: trigger_dbdd61a66a91(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_dbdd61a66a91() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2025,7 +2653,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_dc13168b8025() RETURNS trigger + +-- +-- Name: trigger_dc13168b8025(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_dc13168b8025() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2041,7 +2674,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_e0864d1cff37() RETURNS trigger + +-- +-- Name: trigger_e0864d1cff37(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_e0864d1cff37() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2057,7 +2695,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_e1da4a738230() RETURNS trigger + +-- +-- Name: trigger_e1da4a738230(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_e1da4a738230() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2073,7 +2716,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_e49ab4d904a0() RETURNS trigger + +-- +-- Name: trigger_e49ab4d904a0(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_e49ab4d904a0() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2089,7 +2737,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_ebab34f83f1d() RETURNS trigger + +-- +-- Name: trigger_ebab34f83f1d(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_ebab34f83f1d() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2105,7 +2758,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_f6c61cdddf31() RETURNS trigger + +-- +-- Name: trigger_f6c61cdddf31(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_f6c61cdddf31() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2121,7 +2779,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_f6f59d8216b3() RETURNS trigger + +-- +-- Name: trigger_f6f59d8216b3(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_f6f59d8216b3() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2137,7 +2800,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_fbd42ed69453() RETURNS trigger + +-- +-- Name: trigger_fbd42ed69453(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_fbd42ed69453() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2153,7 +2821,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_fbd8825b3057() RETURNS trigger + +-- +-- Name: trigger_fbd8825b3057(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_fbd8825b3057() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2169,7 +2842,12 @@ RETURN NEW; END $$; -CREATE FUNCTION trigger_ff16c1fd43ea() RETURNS trigger + +-- +-- Name: trigger_ff16c1fd43ea(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_ff16c1fd43ea() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2178,7 +2856,12 @@ BEGIN END; $$; -CREATE FUNCTION trigger_fff8735b6b9a() RETURNS trigger + +-- +-- Name: trigger_fff8735b6b9a(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.trigger_fff8735b6b9a() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2194,7 +2877,12 @@ RETURN NEW; END $$; -CREATE FUNCTION unset_has_issues_on_vulnerability_reads() RETURNS trigger + +-- +-- Name: unset_has_issues_on_vulnerability_reads(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.unset_has_issues_on_vulnerability_reads() RETURNS trigger LANGUAGE plpgsql AS $$ DECLARE @@ -2224,7 +2912,12 @@ BEGIN END $$; -CREATE FUNCTION unset_has_merge_request_on_vulnerability_reads() RETURNS trigger + +-- +-- Name: unset_has_merge_request_on_vulnerability_reads(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.unset_has_merge_request_on_vulnerability_reads() RETURNS trigger LANGUAGE plpgsql AS $$ DECLARE @@ -2254,7 +2947,12 @@ BEGIN END $$; -CREATE FUNCTION update_location_from_vulnerability_occurrences() RETURNS trigger + +-- +-- Name: update_location_from_vulnerability_occurrences(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.update_location_from_vulnerability_occurrences() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2271,7 +2969,12 @@ RETURN NULL; END $$; -CREATE FUNCTION update_namespace_details_from_namespaces() RETURNS trigger + +-- +-- Name: update_namespace_details_from_namespaces(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.update_namespace_details_from_namespaces() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2305,7 +3008,12 @@ WHERE END $$; -CREATE FUNCTION update_namespace_details_from_projects() RETURNS trigger + +-- +-- Name: update_namespace_details_from_projects(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.update_namespace_details_from_projects() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2339,7 +3047,12 @@ WHERE END $$; -CREATE FUNCTION update_vulnerability_reads_from_vulnerability() RETURNS trigger + +-- +-- Name: update_vulnerability_reads_from_vulnerability(); Type: FUNCTION; Schema: public; Owner: - +-- + +CREATE FUNCTION public.update_vulnerability_reads_from_vulnerability() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2355,7 +3068,12 @@ RETURN NULL; END $$; -CREATE TABLE audit_events ( + +-- +-- Name: audit_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.audit_events ( id bigint NOT NULL, author_id integer NOT NULL, entity_id integer NOT NULL, @@ -2375,7 +3093,12 @@ CREATE TABLE audit_events ( ) PARTITION BY RANGE (created_at); -CREATE TABLE batched_background_migration_job_transition_logs ( + +-- +-- Name: batched_background_migration_job_transition_logs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.batched_background_migration_job_transition_logs ( id bigint NOT NULL, batched_background_migration_job_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -2389,7 +3112,12 @@ CREATE TABLE batched_background_migration_job_transition_logs ( ) PARTITION BY RANGE (created_at); -CREATE TABLE p_ci_build_names ( + +-- +-- Name: p_ci_build_names; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.p_ci_build_names ( build_id bigint NOT NULL, partition_id bigint NOT NULL, project_id bigint NOT NULL, @@ -2399,7 +3127,12 @@ CREATE TABLE p_ci_build_names ( ) PARTITION BY LIST (partition_id); -CREATE TABLE p_ci_build_sources ( + +-- +-- Name: p_ci_build_sources; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.p_ci_build_sources ( build_id bigint NOT NULL, partition_id bigint NOT NULL, project_id bigint NOT NULL, @@ -2407,7 +3140,12 @@ CREATE TABLE p_ci_build_sources ( ) PARTITION BY LIST (partition_id); -CREATE TABLE p_ci_build_tags ( + +-- +-- Name: p_ci_build_tags; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.p_ci_build_tags ( id bigint NOT NULL, tag_id bigint NOT NULL, build_id bigint NOT NULL, @@ -2416,7 +3154,12 @@ CREATE TABLE p_ci_build_tags ( ) PARTITION BY LIST (partition_id); -CREATE TABLE p_ci_builds ( + +-- +-- Name: p_ci_builds; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.p_ci_builds ( status character varying, finished_at timestamp without time zone, created_at timestamp without time zone, @@ -2469,7 +3212,12 @@ CREATE TABLE p_ci_builds ( ) PARTITION BY LIST (partition_id); -CREATE TABLE p_ci_builds_execution_configs ( + +-- +-- Name: p_ci_builds_execution_configs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.p_ci_builds_execution_configs ( id bigint NOT NULL, partition_id bigint NOT NULL, project_id bigint NOT NULL, @@ -2478,7 +3226,12 @@ CREATE TABLE p_ci_builds_execution_configs ( ) PARTITION BY LIST (partition_id); -CREATE TABLE p_ci_builds_metadata ( + +-- +-- Name: p_ci_builds_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.p_ci_builds_metadata ( project_id integer NOT NULL, timeout integer, timeout_source integer DEFAULT 1 NOT NULL, @@ -2499,7 +3252,12 @@ CREATE TABLE p_ci_builds_metadata ( ) PARTITION BY LIST (partition_id); -CREATE TABLE p_ci_job_annotations ( + +-- +-- Name: p_ci_job_annotations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.p_ci_job_annotations ( id bigint NOT NULL, partition_id bigint NOT NULL, job_id bigint NOT NULL, @@ -2510,7 +3268,12 @@ CREATE TABLE p_ci_job_annotations ( ) PARTITION BY LIST (partition_id); -CREATE TABLE p_ci_job_artifacts ( + +-- +-- Name: p_ci_job_artifacts; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.p_ci_job_artifacts ( project_id integer NOT NULL, file_type integer NOT NULL, size bigint, @@ -2533,7 +3296,12 @@ CREATE TABLE p_ci_job_artifacts ( ) PARTITION BY LIST (partition_id); -CREATE TABLE p_ci_pipeline_variables ( + +-- +-- Name: p_ci_pipeline_variables; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.p_ci_pipeline_variables ( key character varying NOT NULL, value text, encrypted_value text, @@ -2547,14 +3315,24 @@ CREATE TABLE p_ci_pipeline_variables ( ) PARTITION BY LIST (partition_id); -CREATE TABLE p_ci_runner_machine_builds ( + +-- +-- Name: p_ci_runner_machine_builds; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.p_ci_runner_machine_builds ( partition_id bigint NOT NULL, build_id bigint NOT NULL, runner_machine_id bigint NOT NULL ) PARTITION BY LIST (partition_id); -CREATE TABLE p_ci_stages ( + +-- +-- Name: p_ci_stages; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.p_ci_stages ( project_id integer, created_at timestamp without time zone, updated_at timestamp without time zone, @@ -2569,15 +3347,25 @@ CREATE TABLE p_ci_stages ( ) PARTITION BY LIST (partition_id); -CREATE SEQUENCE shared_audit_event_id_seq + +-- +-- Name: shared_audit_event_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.shared_audit_event_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -CREATE TABLE group_audit_events ( - id bigint DEFAULT nextval('shared_audit_event_id_seq'::regclass) NOT NULL, + +-- +-- Name: group_audit_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.group_audit_events ( + id bigint DEFAULT nextval('public.shared_audit_event_id_seq'::regclass) NOT NULL, created_at timestamp with time zone NOT NULL, group_id bigint NOT NULL, author_id bigint NOT NULL, @@ -2597,7 +3385,12 @@ CREATE TABLE group_audit_events ( ) PARTITION BY RANGE (created_at); -CREATE TABLE groups_visits ( + +-- +-- Name: groups_visits; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.groups_visits ( id bigint NOT NULL, entity_id bigint NOT NULL, user_id bigint NOT NULL, @@ -2605,7 +3398,12 @@ CREATE TABLE groups_visits ( ) PARTITION BY RANGE (visited_at); -CREATE TABLE incident_management_pending_alert_escalations ( + +-- +-- Name: incident_management_pending_alert_escalations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.incident_management_pending_alert_escalations ( id bigint NOT NULL, rule_id bigint NOT NULL, alert_id bigint NOT NULL, @@ -2615,7 +3413,12 @@ CREATE TABLE incident_management_pending_alert_escalations ( ) PARTITION BY RANGE (process_at); -CREATE TABLE incident_management_pending_issue_escalations ( + +-- +-- Name: incident_management_pending_issue_escalations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.incident_management_pending_issue_escalations ( id bigint NOT NULL, rule_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -2625,8 +3428,13 @@ CREATE TABLE incident_management_pending_issue_escalations ( ) PARTITION BY RANGE (process_at); -CREATE TABLE instance_audit_events ( - id bigint DEFAULT nextval('shared_audit_event_id_seq'::regclass) NOT NULL, + +-- +-- Name: instance_audit_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.instance_audit_events ( + id bigint DEFAULT nextval('public.shared_audit_event_id_seq'::regclass) NOT NULL, created_at timestamp with time zone NOT NULL, author_id bigint NOT NULL, target_id bigint, @@ -2645,7 +3453,12 @@ CREATE TABLE instance_audit_events ( ) PARTITION BY RANGE (created_at); -CREATE TABLE loose_foreign_keys_deleted_records ( + +-- +-- Name: loose_foreign_keys_deleted_records; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.loose_foreign_keys_deleted_records ( id bigint NOT NULL, partition bigint DEFAULT 1 NOT NULL, primary_key_value bigint NOT NULL, @@ -2658,7 +3471,12 @@ CREATE TABLE loose_foreign_keys_deleted_records ( ) PARTITION BY LIST (partition); -CREATE TABLE merge_request_diff_commits_b5377a7a34 ( + +-- +-- Name: merge_request_diff_commits_b5377a7a34; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_request_diff_commits_b5377a7a34 ( authored_date timestamp without time zone, committed_date timestamp without time zone, sha bytea NOT NULL, @@ -2672,7 +3490,12 @@ CREATE TABLE merge_request_diff_commits_b5377a7a34 ( ) PARTITION BY RANGE (merge_request_diff_id); -CREATE TABLE merge_request_diff_files_99208b8fac ( + +-- +-- Name: merge_request_diff_files_99208b8fac; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_request_diff_files_99208b8fac ( new_file boolean NOT NULL, renamed_file boolean NOT NULL, deleted_file boolean NOT NULL, @@ -2692,7 +3515,12 @@ CREATE TABLE merge_request_diff_files_99208b8fac ( ) PARTITION BY RANGE (merge_request_diff_id); -CREATE TABLE p_batched_git_ref_updates_deletions ( + +-- +-- Name: p_batched_git_ref_updates_deletions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.p_batched_git_ref_updates_deletions ( id bigint NOT NULL, project_id bigint NOT NULL, partition_id bigint DEFAULT 1 NOT NULL, @@ -2704,7 +3532,12 @@ CREATE TABLE p_batched_git_ref_updates_deletions ( ) PARTITION BY LIST (partition_id); -CREATE TABLE p_catalog_resource_component_usages ( + +-- +-- Name: p_catalog_resource_component_usages; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.p_catalog_resource_component_usages ( id bigint NOT NULL, component_id bigint NOT NULL, catalog_resource_id bigint NOT NULL, @@ -2714,7 +3547,12 @@ CREATE TABLE p_catalog_resource_component_usages ( ) PARTITION BY RANGE (used_date); -CREATE TABLE p_catalog_resource_sync_events ( + +-- +-- Name: p_catalog_resource_sync_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.p_catalog_resource_sync_events ( id bigint NOT NULL, catalog_resource_id bigint NOT NULL, project_id bigint NOT NULL, @@ -2725,7 +3563,12 @@ CREATE TABLE p_catalog_resource_sync_events ( ) PARTITION BY LIST (partition_id); -CREATE TABLE p_ci_finished_build_ch_sync_events ( + +-- +-- Name: p_ci_finished_build_ch_sync_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.p_ci_finished_build_ch_sync_events ( build_id bigint NOT NULL, partition bigint DEFAULT 1 NOT NULL, build_finished_at timestamp without time zone NOT NULL, @@ -2733,7 +3576,12 @@ CREATE TABLE p_ci_finished_build_ch_sync_events ( ) PARTITION BY LIST (partition); -CREATE TABLE p_ci_finished_pipeline_ch_sync_events ( + +-- +-- Name: p_ci_finished_pipeline_ch_sync_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.p_ci_finished_pipeline_ch_sync_events ( pipeline_id bigint NOT NULL, project_namespace_id bigint NOT NULL, partition bigint DEFAULT 1 NOT NULL, @@ -2742,8 +3590,13 @@ CREATE TABLE p_ci_finished_pipeline_ch_sync_events ( ) PARTITION BY LIST (partition); -CREATE TABLE project_audit_events ( - id bigint DEFAULT nextval('shared_audit_event_id_seq'::regclass) NOT NULL, + +-- +-- Name: project_audit_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_audit_events ( + id bigint DEFAULT nextval('public.shared_audit_event_id_seq'::regclass) NOT NULL, created_at timestamp with time zone NOT NULL, project_id bigint NOT NULL, author_id bigint NOT NULL, @@ -2763,7 +3616,12 @@ CREATE TABLE project_audit_events ( ) PARTITION BY RANGE (created_at); -CREATE TABLE projects_visits ( + +-- +-- Name: projects_visits; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.projects_visits ( id bigint NOT NULL, entity_id bigint NOT NULL, user_id bigint NOT NULL, @@ -2771,7 +3629,12 @@ CREATE TABLE projects_visits ( ) PARTITION BY RANGE (visited_at); -CREATE TABLE security_findings ( + +-- +-- Name: security_findings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.security_findings ( id bigint NOT NULL, scan_id bigint NOT NULL, scanner_id bigint NOT NULL, @@ -2788,8 +3651,13 @@ CREATE TABLE security_findings ( ) PARTITION BY LIST (partition_number); -CREATE TABLE user_audit_events ( - id bigint DEFAULT nextval('shared_audit_event_id_seq'::regclass) NOT NULL, + +-- +-- Name: user_audit_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_audit_events ( + id bigint DEFAULT nextval('public.shared_audit_event_id_seq'::regclass) NOT NULL, created_at timestamp with time zone NOT NULL, user_id bigint NOT NULL, author_id bigint NOT NULL, @@ -2809,7 +3677,12 @@ CREATE TABLE user_audit_events ( ) PARTITION BY RANGE (created_at); -CREATE TABLE value_stream_dashboard_counts ( + +-- +-- Name: value_stream_dashboard_counts; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.value_stream_dashboard_counts ( id bigint NOT NULL, namespace_id bigint NOT NULL, count bigint NOT NULL, @@ -2818,7 +3691,12 @@ CREATE TABLE value_stream_dashboard_counts ( ) PARTITION BY RANGE (recorded_at); -CREATE TABLE verification_codes ( + +-- +-- Name: verification_codes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.verification_codes ( created_at timestamp with time zone DEFAULT now() NOT NULL, visitor_id_code text NOT NULL, code text NOT NULL, @@ -2829,9 +3707,19 @@ CREATE TABLE verification_codes ( ) PARTITION BY RANGE (created_at); -COMMENT ON TABLE verification_codes IS 'JiHu-specific table'; -CREATE TABLE web_hook_logs ( +-- +-- Name: TABLE verification_codes; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public.verification_codes IS 'JiHu-specific table'; + + +-- +-- Name: web_hook_logs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.web_hook_logs ( id bigint NOT NULL, web_hook_id integer NOT NULL, trigger character varying, @@ -2849,7 +3737,12 @@ CREATE TABLE web_hook_logs ( ) PARTITION BY RANGE (created_at); -CREATE TABLE zoekt_tasks ( + +-- +-- Name: zoekt_tasks; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.zoekt_tasks ( id bigint NOT NULL, partition_id bigint DEFAULT 1 NOT NULL, zoekt_node_id bigint NOT NULL, @@ -2865,7 +3758,12 @@ CREATE TABLE zoekt_tasks ( ) PARTITION BY LIST (partition_id); -CREATE TABLE analytics_cycle_analytics_issue_stage_events ( + +-- +-- Name: analytics_cycle_analytics_issue_stage_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.analytics_cycle_analytics_issue_stage_events ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, group_id bigint NOT NULL, @@ -2881,6 +3779,11 @@ CREATE TABLE analytics_cycle_analytics_issue_stage_events ( ) PARTITION BY HASH (stage_event_hash_id); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_00; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -2896,6 +3799,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_01; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -2911,6 +3819,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_02; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -2926,6 +3839,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_03; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -2941,6 +3859,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_04; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -2956,6 +3879,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_05; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -2971,6 +3899,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_06; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -2986,6 +3919,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_07; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3001,6 +3939,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_08; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3016,6 +3959,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_09; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3031,6 +3979,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_10; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3046,6 +3999,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_11; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3061,6 +4019,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_12; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3076,6 +4039,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_13; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3091,6 +4059,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_14; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3106,6 +4079,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_15; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3121,6 +4099,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_16; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3136,6 +4119,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_17; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3151,6 +4139,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_18; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3166,6 +4159,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_19; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3181,6 +4179,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_20; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3196,6 +4199,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_21; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3211,6 +4219,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_22; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3226,6 +4239,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_23; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3241,6 +4259,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_24; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3256,6 +4279,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_25; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3271,6 +4299,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_26; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3286,6 +4319,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_27; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3301,6 +4339,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_28; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3316,6 +4359,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_29; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3331,6 +4379,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_30; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3346,6 +4399,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_31; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3361,7 +4419,12 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); -CREATE TABLE analytics_cycle_analytics_merge_request_stage_events ( + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.analytics_cycle_analytics_merge_request_stage_events ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, group_id bigint NOT NULL, @@ -3375,6 +4438,11 @@ CREATE TABLE analytics_cycle_analytics_merge_request_stage_events ( ) PARTITION BY HASH (stage_event_hash_id); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_00; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3388,6 +4456,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_01; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3401,6 +4474,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_02; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3414,6 +4492,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_03; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3427,6 +4510,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_04; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3440,6 +4528,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_05; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3453,6 +4546,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_06; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3466,6 +4564,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_07; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3479,6 +4582,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_08; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3492,6 +4600,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_09; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3505,6 +4618,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_10; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3518,6 +4636,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_11; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3531,6 +4654,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_12; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3544,6 +4672,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_13; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3557,6 +4690,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_14; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3570,6 +4708,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_15; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3583,6 +4726,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_16; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3596,6 +4744,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_17; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3609,6 +4762,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_18; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3622,6 +4780,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_19; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3635,6 +4798,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_20; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3648,6 +4816,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_21; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3661,6 +4834,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_22; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3674,6 +4852,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_23; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3687,6 +4870,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_24; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3700,6 +4888,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_25; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3713,6 +4906,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_26; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3726,6 +4924,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_27; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3739,6 +4942,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_28; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3752,6 +4960,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_29; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3765,6 +4978,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_30; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3778,6 +4996,11 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_31; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -3791,7 +5014,12 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); -CREATE TABLE issue_search_data ( + +-- +-- Name: issue_search_data; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.issue_search_data ( project_id bigint NOT NULL, issue_id bigint NOT NULL, created_at timestamp with time zone DEFAULT now() NOT NULL, @@ -3801,6 +5029,11 @@ CREATE TABLE issue_search_data ( ) PARTITION BY HASH (project_id); + +-- +-- Name: issue_search_data_00; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_00 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3810,6 +5043,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_00 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_01; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_01 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3819,6 +5057,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_01 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_02; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_02 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3828,6 +5071,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_02 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_03; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_03 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3837,6 +5085,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_03 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_04; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_04 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3846,6 +5099,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_04 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_05; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_05 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3855,6 +5113,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_05 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_06; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_06 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3864,6 +5127,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_06 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_07; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_07 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3873,6 +5141,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_07 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_08; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_08 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3882,6 +5155,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_08 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_09; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_09 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3891,6 +5169,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_09 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_10; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_10 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3900,6 +5183,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_10 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_11; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_11 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3909,6 +5197,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_11 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_12; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_12 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3918,6 +5211,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_12 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_13; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_13 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3927,6 +5225,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_13 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_14; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_14 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3936,6 +5239,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_14 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_15; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_15 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3945,6 +5253,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_15 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_16; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_16 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3954,6 +5267,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_16 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_17; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_17 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3963,6 +5281,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_17 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_18; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_18 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3972,6 +5295,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_18 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_19; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_19 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3981,6 +5309,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_19 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_20; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_20 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3990,6 +5323,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_20 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_21; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_21 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3999,6 +5337,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_21 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_22; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_22 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4008,6 +5351,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_22 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_23; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_23 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4017,6 +5365,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_23 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_24; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_24 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4026,6 +5379,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_24 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_25; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_25 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4035,6 +5393,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_25 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_26; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_26 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4044,6 +5407,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_26 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_27; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_27 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4053,6 +5421,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_27 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_28; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_28 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4062,6 +5435,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_28 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_29; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_29 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4071,6 +5449,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_29 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_30; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_30 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4080,6 +5463,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_30 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_31; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_31 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4089,6 +5477,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_31 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_32; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_32 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4098,6 +5491,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_32 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_33; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_33 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4107,6 +5505,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_33 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_34; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_34 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4116,6 +5519,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_34 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_35; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_35 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4125,6 +5533,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_35 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_36; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_36 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4134,6 +5547,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_36 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_37; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_37 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4143,6 +5561,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_37 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_38; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_38 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4152,6 +5575,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_38 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_39; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_39 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4161,6 +5589,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_39 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_40; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_40 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4170,6 +5603,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_40 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_41; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_41 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4179,6 +5617,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_41 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_42; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_42 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4188,6 +5631,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_42 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_43; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_43 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4197,6 +5645,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_43 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_44; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_44 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4206,6 +5659,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_44 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_45; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_45 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4215,6 +5673,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_45 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_46; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_46 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4224,6 +5687,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_46 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_47; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_47 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4233,6 +5701,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_47 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_48; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_48 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4242,6 +5715,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_48 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_49; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_49 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4251,6 +5729,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_49 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_50; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_50 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4260,6 +5743,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_50 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_51; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_51 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4269,6 +5757,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_51 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_52; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_52 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4278,6 +5771,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_52 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_53; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_53 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4287,6 +5785,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_53 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_54; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_54 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4296,6 +5799,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_54 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_55; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_55 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4305,6 +5813,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_55 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_56; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_56 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4314,6 +5827,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_56 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_57; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_57 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4323,6 +5841,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_57 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_58; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_58 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4332,6 +5855,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_58 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_59; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_59 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4341,6 +5869,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_59 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_60; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_60 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4350,6 +5883,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_60 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_61; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_61 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4359,6 +5897,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_61 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_62; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_62 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4368,6 +5911,11 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_62 ( namespace_id bigint ); + +-- +-- Name: issue_search_data_63; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.issue_search_data_63 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4377,7 +5925,12 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_63 ( namespace_id bigint ); -CREATE TABLE namespace_descendants ( + +-- +-- Name: namespace_descendants; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.namespace_descendants ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, all_project_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4387,6 +5940,11 @@ CREATE TABLE namespace_descendants ( ) PARTITION BY HASH (namespace_id); + +-- +-- Name: namespace_descendants_00; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_00 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4396,6 +5954,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_00 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_01; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_01 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4405,6 +5968,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_01 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_02; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_02 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4414,6 +5982,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_02 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_03; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_03 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4423,6 +5996,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_03 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_04; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_04 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4432,6 +6010,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_04 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_05; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_05 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4441,6 +6024,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_05 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_06; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_06 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4450,6 +6038,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_06 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_07; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_07 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4459,6 +6052,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_07 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_08; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_08 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4468,6 +6066,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_08 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_09; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_09 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4477,6 +6080,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_09 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_10; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_10 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4486,6 +6094,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_10 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_11; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_11 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4495,6 +6108,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_11 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_12; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_12 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4504,6 +6122,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_12 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_13; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_13 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4513,6 +6136,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_13 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_14; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_14 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4522,6 +6150,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_14 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_15; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_15 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4531,6 +6164,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_15 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_16; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_16 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4540,6 +6178,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_16 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_17; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_17 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4549,6 +6192,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_17 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_18; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_18 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4558,6 +6206,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_18 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_19; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_19 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4567,6 +6220,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_19 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_20; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_20 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4576,6 +6234,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_20 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_21; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_21 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4585,6 +6248,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_21 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_22; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_22 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4594,6 +6262,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_22 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_23; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_23 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4603,6 +6276,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_23 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_24; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_24 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4612,6 +6290,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_24 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_25; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_25 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4621,6 +6304,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_25 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_26; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_26 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4630,6 +6318,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_26 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_27; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_27 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4639,6 +6332,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_27 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_28; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_28 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4648,6 +6346,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_28 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_29; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_29 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4657,6 +6360,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_29 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_30; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_30 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4666,6 +6374,11 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_30 ( calculated_at timestamp with time zone ); + +-- +-- Name: namespace_descendants_31; Type: TABLE; Schema: gitlab_partitions_static; Owner: - +-- + CREATE TABLE gitlab_partitions_static.namespace_descendants_31 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -4675,7 +6388,12 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_31 ( calculated_at timestamp with time zone ); -CREATE TABLE abuse_events ( + +-- +-- Name: abuse_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.abuse_events ( id bigint NOT NULL, user_id bigint, created_at timestamp with time zone NOT NULL, @@ -4686,16 +6404,31 @@ CREATE TABLE abuse_events ( metadata jsonb ); -CREATE SEQUENCE abuse_events_id_seq + +-- +-- Name: abuse_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.abuse_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE abuse_events_id_seq OWNED BY abuse_events.id; -CREATE TABLE abuse_report_assignees ( +-- +-- Name: abuse_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.abuse_events_id_seq OWNED BY public.abuse_events.id; + + +-- +-- Name: abuse_report_assignees; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.abuse_report_assignees ( id bigint NOT NULL, user_id bigint NOT NULL, abuse_report_id bigint NOT NULL, @@ -4703,16 +6436,31 @@ CREATE TABLE abuse_report_assignees ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE abuse_report_assignees_id_seq + +-- +-- Name: abuse_report_assignees_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.abuse_report_assignees_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE abuse_report_assignees_id_seq OWNED BY abuse_report_assignees.id; -CREATE TABLE abuse_report_events ( +-- +-- Name: abuse_report_assignees_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.abuse_report_assignees_id_seq OWNED BY public.abuse_report_assignees.id; + + +-- +-- Name: abuse_report_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.abuse_report_events ( id bigint NOT NULL, abuse_report_id bigint NOT NULL, user_id bigint, @@ -4723,16 +6471,31 @@ CREATE TABLE abuse_report_events ( CONSTRAINT check_bb4cd85618 CHECK ((char_length(comment) <= 1024)) ); -CREATE SEQUENCE abuse_report_events_id_seq + +-- +-- Name: abuse_report_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.abuse_report_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE abuse_report_events_id_seq OWNED BY abuse_report_events.id; -CREATE TABLE abuse_report_notes ( +-- +-- Name: abuse_report_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.abuse_report_events_id_seq OWNED BY public.abuse_report_events.id; + + +-- +-- Name: abuse_report_notes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.abuse_report_notes ( id bigint NOT NULL, abuse_report_id bigint NOT NULL, author_id bigint NOT NULL, @@ -4753,16 +6516,31 @@ CREATE TABLE abuse_report_notes ( CONSTRAINT check_21b51956e3 CHECK ((char_length(note_html) <= 20000)) ); -CREATE SEQUENCE abuse_report_notes_id_seq + +-- +-- Name: abuse_report_notes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.abuse_report_notes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE abuse_report_notes_id_seq OWNED BY abuse_report_notes.id; -CREATE TABLE abuse_report_user_mentions ( +-- +-- Name: abuse_report_notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.abuse_report_notes_id_seq OWNED BY public.abuse_report_notes.id; + + +-- +-- Name: abuse_report_user_mentions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.abuse_report_user_mentions ( id bigint NOT NULL, abuse_report_id bigint NOT NULL, note_id bigint NOT NULL, @@ -4771,16 +6549,31 @@ CREATE TABLE abuse_report_user_mentions ( mentioned_groups_ids bigint[] ); -CREATE SEQUENCE abuse_report_user_mentions_id_seq + +-- +-- Name: abuse_report_user_mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.abuse_report_user_mentions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE abuse_report_user_mentions_id_seq OWNED BY abuse_report_user_mentions.id; -CREATE TABLE abuse_reports ( +-- +-- Name: abuse_report_user_mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.abuse_report_user_mentions_id_seq OWNED BY public.abuse_report_user_mentions.id; + + +-- +-- Name: abuse_reports; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.abuse_reports ( id integer NOT NULL, reporter_id integer, user_id integer, @@ -4805,16 +6598,31 @@ CREATE TABLE abuse_reports ( CONSTRAINT check_f3c0947a2d CHECK ((char_length(mitigation_steps) <= 1000)) ); -CREATE SEQUENCE abuse_reports_id_seq + +-- +-- Name: abuse_reports_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.abuse_reports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE abuse_reports_id_seq OWNED BY abuse_reports.id; -CREATE TABLE abuse_trust_scores ( +-- +-- Name: abuse_reports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.abuse_reports_id_seq OWNED BY public.abuse_reports.id; + + +-- +-- Name: abuse_trust_scores; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.abuse_trust_scores ( id bigint NOT NULL, user_id bigint, score double precision NOT NULL, @@ -4825,16 +6633,31 @@ CREATE TABLE abuse_trust_scores ( CONSTRAINT check_77ca9551db CHECK ((char_length(correlation_id_value) <= 255)) ); -CREATE SEQUENCE abuse_trust_scores_id_seq + +-- +-- Name: abuse_trust_scores_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.abuse_trust_scores_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE abuse_trust_scores_id_seq OWNED BY abuse_trust_scores.id; -CREATE TABLE achievements ( +-- +-- Name: abuse_trust_scores_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.abuse_trust_scores_id_seq OWNED BY public.abuse_trust_scores.id; + + +-- +-- Name: achievements; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.achievements ( id bigint NOT NULL, namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -4847,16 +6670,31 @@ CREATE TABLE achievements ( CONSTRAINT check_e174e93a9e CHECK ((char_length(avatar) <= 255)) ); -CREATE SEQUENCE achievements_id_seq + +-- +-- Name: achievements_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.achievements_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE achievements_id_seq OWNED BY achievements.id; -CREATE TABLE activity_pub_releases_subscriptions ( +-- +-- Name: achievements_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.achievements_id_seq OWNED BY public.achievements.id; + + +-- +-- Name: activity_pub_releases_subscriptions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.activity_pub_releases_subscriptions ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -4871,16 +6709,31 @@ CREATE TABLE activity_pub_releases_subscriptions ( CONSTRAINT check_61b77ced49 CHECK ((char_length(shared_inbox_url) <= 1024)) ); -CREATE SEQUENCE activity_pub_releases_subscriptions_id_seq + +-- +-- Name: activity_pub_releases_subscriptions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.activity_pub_releases_subscriptions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE activity_pub_releases_subscriptions_id_seq OWNED BY activity_pub_releases_subscriptions.id; -CREATE TABLE agent_activity_events ( +-- +-- Name: activity_pub_releases_subscriptions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.activity_pub_releases_subscriptions_id_seq OWNED BY public.activity_pub_releases_subscriptions.id; + + +-- +-- Name: agent_activity_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.agent_activity_events ( id bigint NOT NULL, agent_id bigint NOT NULL, user_id bigint, @@ -4896,80 +6749,155 @@ CREATE TABLE agent_activity_events ( CONSTRAINT check_068205e735 CHECK ((char_length(detail) <= 255)) ); -CREATE SEQUENCE agent_activity_events_id_seq + +-- +-- Name: agent_activity_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.agent_activity_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE agent_activity_events_id_seq OWNED BY agent_activity_events.id; -CREATE TABLE agent_group_authorizations ( +-- +-- Name: agent_activity_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.agent_activity_events_id_seq OWNED BY public.agent_activity_events.id; + + +-- +-- Name: agent_group_authorizations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.agent_group_authorizations ( id bigint NOT NULL, group_id bigint NOT NULL, agent_id bigint NOT NULL, config jsonb NOT NULL ); -CREATE SEQUENCE agent_group_authorizations_id_seq + +-- +-- Name: agent_group_authorizations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.agent_group_authorizations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE agent_group_authorizations_id_seq OWNED BY agent_group_authorizations.id; -CREATE TABLE agent_project_authorizations ( +-- +-- Name: agent_group_authorizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.agent_group_authorizations_id_seq OWNED BY public.agent_group_authorizations.id; + + +-- +-- Name: agent_project_authorizations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.agent_project_authorizations ( id bigint NOT NULL, project_id bigint NOT NULL, agent_id bigint NOT NULL, config jsonb NOT NULL ); -CREATE SEQUENCE agent_project_authorizations_id_seq + +-- +-- Name: agent_project_authorizations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.agent_project_authorizations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE agent_project_authorizations_id_seq OWNED BY agent_project_authorizations.id; -CREATE TABLE agent_user_access_group_authorizations ( +-- +-- Name: agent_project_authorizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.agent_project_authorizations_id_seq OWNED BY public.agent_project_authorizations.id; + + +-- +-- Name: agent_user_access_group_authorizations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.agent_user_access_group_authorizations ( id bigint NOT NULL, group_id bigint NOT NULL, agent_id bigint NOT NULL, config jsonb NOT NULL ); -CREATE SEQUENCE agent_user_access_group_authorizations_id_seq + +-- +-- Name: agent_user_access_group_authorizations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.agent_user_access_group_authorizations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE agent_user_access_group_authorizations_id_seq OWNED BY agent_user_access_group_authorizations.id; -CREATE TABLE agent_user_access_project_authorizations ( +-- +-- Name: agent_user_access_group_authorizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.agent_user_access_group_authorizations_id_seq OWNED BY public.agent_user_access_group_authorizations.id; + + +-- +-- Name: agent_user_access_project_authorizations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.agent_user_access_project_authorizations ( id bigint NOT NULL, project_id bigint NOT NULL, agent_id bigint NOT NULL, config jsonb NOT NULL ); -CREATE SEQUENCE agent_user_access_project_authorizations_id_seq + +-- +-- Name: agent_user_access_project_authorizations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.agent_user_access_project_authorizations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE agent_user_access_project_authorizations_id_seq OWNED BY agent_user_access_project_authorizations.id; -CREATE TABLE ai_agent_version_attachments ( +-- +-- Name: agent_user_access_project_authorizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.agent_user_access_project_authorizations_id_seq OWNED BY public.agent_user_access_project_authorizations.id; + + +-- +-- Name: ai_agent_version_attachments; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ai_agent_version_attachments ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -4978,16 +6906,31 @@ CREATE TABLE ai_agent_version_attachments ( ai_vectorizable_file_id bigint NOT NULL ); -CREATE SEQUENCE ai_agent_version_attachments_id_seq + +-- +-- Name: ai_agent_version_attachments_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ai_agent_version_attachments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ai_agent_version_attachments_id_seq OWNED BY ai_agent_version_attachments.id; -CREATE TABLE ai_agent_versions ( +-- +-- Name: ai_agent_version_attachments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ai_agent_version_attachments_id_seq OWNED BY public.ai_agent_version_attachments.id; + + +-- +-- Name: ai_agent_versions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ai_agent_versions ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -4999,16 +6942,31 @@ CREATE TABLE ai_agent_versions ( CONSTRAINT check_d7a4fc9834 CHECK ((char_length(prompt) <= 5000)) ); -CREATE SEQUENCE ai_agent_versions_id_seq + +-- +-- Name: ai_agent_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ai_agent_versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ai_agent_versions_id_seq OWNED BY ai_agent_versions.id; -CREATE TABLE ai_agents ( +-- +-- Name: ai_agent_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ai_agent_versions_id_seq OWNED BY public.ai_agent_versions.id; + + +-- +-- Name: ai_agents; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ai_agents ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -5017,16 +6975,31 @@ CREATE TABLE ai_agents ( CONSTRAINT check_67934c8e85 CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE ai_agents_id_seq + +-- +-- Name: ai_agents_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ai_agents_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ai_agents_id_seq OWNED BY ai_agents.id; -CREATE TABLE ai_feature_settings ( +-- +-- Name: ai_agents_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ai_agents_id_seq OWNED BY public.ai_agents.id; + + +-- +-- Name: ai_feature_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ai_feature_settings ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -5035,16 +7008,31 @@ CREATE TABLE ai_feature_settings ( provider smallint NOT NULL ); -CREATE SEQUENCE ai_feature_settings_id_seq + +-- +-- Name: ai_feature_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ai_feature_settings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ai_feature_settings_id_seq OWNED BY ai_feature_settings.id; -CREATE TABLE ai_self_hosted_models ( +-- +-- Name: ai_feature_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ai_feature_settings_id_seq OWNED BY public.ai_feature_settings.id; + + +-- +-- Name: ai_self_hosted_models; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ai_self_hosted_models ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -5057,23 +7045,43 @@ CREATE TABLE ai_self_hosted_models ( CONSTRAINT check_cccb37e0de CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE ai_self_hosted_models_id_seq + +-- +-- Name: ai_self_hosted_models_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ai_self_hosted_models_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ai_self_hosted_models_id_seq OWNED BY ai_self_hosted_models.id; -CREATE TABLE ai_testing_terms_acceptances ( +-- +-- Name: ai_self_hosted_models_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ai_self_hosted_models_id_seq OWNED BY public.ai_self_hosted_models.id; + + +-- +-- Name: ai_testing_terms_acceptances; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ai_testing_terms_acceptances ( created_at timestamp with time zone NOT NULL, user_id bigint NOT NULL, user_email text NOT NULL, CONSTRAINT check_5efe98894e CHECK ((char_length(user_email) <= 255)) ); -CREATE TABLE ai_vectorizable_files ( + +-- +-- Name: ai_vectorizable_files; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ai_vectorizable_files ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -5084,31 +7092,61 @@ CREATE TABLE ai_vectorizable_files ( CONSTRAINT check_fc6abf5b01 CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE ai_vectorizable_files_id_seq + +-- +-- Name: ai_vectorizable_files_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ai_vectorizable_files_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ai_vectorizable_files_id_seq OWNED BY ai_vectorizable_files.id; -CREATE TABLE alert_management_alert_assignees ( +-- +-- Name: ai_vectorizable_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ai_vectorizable_files_id_seq OWNED BY public.ai_vectorizable_files.id; + + +-- +-- Name: alert_management_alert_assignees; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.alert_management_alert_assignees ( id bigint NOT NULL, user_id bigint NOT NULL, alert_id bigint NOT NULL ); -CREATE SEQUENCE alert_management_alert_assignees_id_seq + +-- +-- Name: alert_management_alert_assignees_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.alert_management_alert_assignees_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE alert_management_alert_assignees_id_seq OWNED BY alert_management_alert_assignees.id; -CREATE TABLE alert_management_alert_metric_images ( +-- +-- Name: alert_management_alert_assignees_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.alert_management_alert_assignees_id_seq OWNED BY public.alert_management_alert_assignees.id; + + +-- +-- Name: alert_management_alert_metric_images; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.alert_management_alert_metric_images ( id bigint NOT NULL, alert_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -5122,16 +7160,31 @@ CREATE TABLE alert_management_alert_metric_images ( CONSTRAINT check_70fafae519 CHECK ((char_length(file) <= 255)) ); -CREATE SEQUENCE alert_management_alert_metric_images_id_seq + +-- +-- Name: alert_management_alert_metric_images_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.alert_management_alert_metric_images_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE alert_management_alert_metric_images_id_seq OWNED BY alert_management_alert_metric_images.id; -CREATE TABLE alert_management_alert_user_mentions ( +-- +-- Name: alert_management_alert_metric_images_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.alert_management_alert_metric_images_id_seq OWNED BY public.alert_management_alert_metric_images.id; + + +-- +-- Name: alert_management_alert_user_mentions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.alert_management_alert_user_mentions ( id bigint NOT NULL, alert_management_alert_id bigint NOT NULL, note_id bigint, @@ -5140,16 +7193,31 @@ CREATE TABLE alert_management_alert_user_mentions ( mentioned_groups_ids integer[] ); -CREATE SEQUENCE alert_management_alert_user_mentions_id_seq + +-- +-- Name: alert_management_alert_user_mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.alert_management_alert_user_mentions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE alert_management_alert_user_mentions_id_seq OWNED BY alert_management_alert_user_mentions.id; -CREATE TABLE alert_management_alerts ( +-- +-- Name: alert_management_alert_user_mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.alert_management_alert_user_mentions_id_seq OWNED BY public.alert_management_alert_user_mentions.id; + + +-- +-- Name: alert_management_alerts; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.alert_management_alerts ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -5177,16 +7245,31 @@ CREATE TABLE alert_management_alerts ( CONSTRAINT check_d1d1c2d14c CHECK ((char_length(title) <= 200)) ); -CREATE SEQUENCE alert_management_alerts_id_seq + +-- +-- Name: alert_management_alerts_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.alert_management_alerts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE alert_management_alerts_id_seq OWNED BY alert_management_alerts.id; -CREATE TABLE alert_management_http_integrations ( +-- +-- Name: alert_management_alerts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.alert_management_alerts_id_seq OWNED BY public.alert_management_alerts.id; + + +-- +-- Name: alert_management_http_integrations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.alert_management_http_integrations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -5205,16 +7288,31 @@ CREATE TABLE alert_management_http_integrations ( CONSTRAINT check_f68577c4af CHECK ((char_length(encrypted_token) <= 255)) ); -CREATE SEQUENCE alert_management_http_integrations_id_seq + +-- +-- Name: alert_management_http_integrations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.alert_management_http_integrations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE alert_management_http_integrations_id_seq OWNED BY alert_management_http_integrations.id; -CREATE TABLE allowed_email_domains ( +-- +-- Name: alert_management_http_integrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.alert_management_http_integrations_id_seq OWNED BY public.alert_management_http_integrations.id; + + +-- +-- Name: allowed_email_domains; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.allowed_email_domains ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -5222,16 +7320,31 @@ CREATE TABLE allowed_email_domains ( domain character varying(255) NOT NULL ); -CREATE SEQUENCE allowed_email_domains_id_seq + +-- +-- Name: allowed_email_domains_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.allowed_email_domains_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE allowed_email_domains_id_seq OWNED BY allowed_email_domains.id; -CREATE TABLE analytics_cycle_analytics_aggregations ( +-- +-- Name: allowed_email_domains_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.allowed_email_domains_id_seq OWNED BY public.allowed_email_domains.id; + + +-- +-- Name: analytics_cycle_analytics_aggregations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.analytics_cycle_analytics_aggregations ( group_id bigint NOT NULL, incremental_runtimes_in_seconds integer[] DEFAULT '{}'::integer[] NOT NULL, incremental_processed_records integer[] DEFAULT '{}'::integer[] NOT NULL, @@ -5263,7 +7376,12 @@ CREATE TABLE analytics_cycle_analytics_aggregations ( CONSTRAINT full_runtimes_in_seconds_size CHECK ((cardinality(full_runtimes_in_seconds) <= 10)) ); -CREATE TABLE analytics_cycle_analytics_group_stages ( + +-- +-- Name: analytics_cycle_analytics_group_stages; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.analytics_cycle_analytics_group_stages ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -5281,16 +7399,31 @@ CREATE TABLE analytics_cycle_analytics_group_stages ( CONSTRAINT check_e6bd4271b5 CHECK ((stage_event_hash_id IS NOT NULL)) ); -CREATE SEQUENCE analytics_cycle_analytics_group_stages_id_seq + +-- +-- Name: analytics_cycle_analytics_group_stages_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.analytics_cycle_analytics_group_stages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE analytics_cycle_analytics_group_stages_id_seq OWNED BY analytics_cycle_analytics_group_stages.id; -CREATE TABLE analytics_cycle_analytics_group_value_streams ( +-- +-- Name: analytics_cycle_analytics_group_stages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.analytics_cycle_analytics_group_stages_id_seq OWNED BY public.analytics_cycle_analytics_group_stages.id; + + +-- +-- Name: analytics_cycle_analytics_group_value_streams; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.analytics_cycle_analytics_group_value_streams ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -5299,37 +7432,72 @@ CREATE TABLE analytics_cycle_analytics_group_value_streams ( CONSTRAINT check_bc1ed5f1f7 CHECK ((char_length(name) <= 100)) ); -CREATE SEQUENCE analytics_cycle_analytics_group_value_streams_id_seq + +-- +-- Name: analytics_cycle_analytics_group_value_streams_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.analytics_cycle_analytics_group_value_streams_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE analytics_cycle_analytics_group_value_streams_id_seq OWNED BY analytics_cycle_analytics_group_value_streams.id; -CREATE TABLE analytics_cycle_analytics_stage_event_hashes ( +-- +-- Name: analytics_cycle_analytics_group_value_streams_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.analytics_cycle_analytics_group_value_streams_id_seq OWNED BY public.analytics_cycle_analytics_group_value_streams.id; + + +-- +-- Name: analytics_cycle_analytics_stage_event_hashes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.analytics_cycle_analytics_stage_event_hashes ( id bigint NOT NULL, hash_sha256 bytea, organization_id bigint NOT NULL ); -CREATE SEQUENCE analytics_cycle_analytics_stage_event_hashes_id_seq + +-- +-- Name: analytics_cycle_analytics_stage_event_hashes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.analytics_cycle_analytics_stage_event_hashes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE analytics_cycle_analytics_stage_event_hashes_id_seq OWNED BY analytics_cycle_analytics_stage_event_hashes.id; -CREATE TABLE analytics_cycle_analytics_value_stream_settings ( +-- +-- Name: analytics_cycle_analytics_stage_event_hashes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.analytics_cycle_analytics_stage_event_hashes_id_seq OWNED BY public.analytics_cycle_analytics_stage_event_hashes.id; + + +-- +-- Name: analytics_cycle_analytics_value_stream_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.analytics_cycle_analytics_value_stream_settings ( value_stream_id bigint NOT NULL, project_ids_filter bigint[] DEFAULT '{}'::bigint[], CONSTRAINT project_ids_filter_array_check CHECK (((cardinality(project_ids_filter) <= 100) AND (array_position(project_ids_filter, NULL::bigint) IS NULL))) ); -CREATE TABLE analytics_dashboards_pointers ( + +-- +-- Name: analytics_dashboards_pointers; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.analytics_dashboards_pointers ( id bigint NOT NULL, namespace_id bigint, project_id bigint, @@ -5337,16 +7505,31 @@ CREATE TABLE analytics_dashboards_pointers ( CONSTRAINT chk_analytics_dashboards_pointers_project_or_namespace CHECK (((project_id IS NULL) <> (namespace_id IS NULL))) ); -CREATE SEQUENCE analytics_dashboards_pointers_id_seq + +-- +-- Name: analytics_dashboards_pointers_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.analytics_dashboards_pointers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE analytics_dashboards_pointers_id_seq OWNED BY analytics_dashboards_pointers.id; -CREATE TABLE analytics_devops_adoption_segments ( +-- +-- Name: analytics_dashboards_pointers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.analytics_dashboards_pointers_id_seq OWNED BY public.analytics_dashboards_pointers.id; + + +-- +-- Name: analytics_devops_adoption_segments; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.analytics_devops_adoption_segments ( id bigint NOT NULL, last_recorded_at timestamp with time zone, created_at timestamp with time zone NOT NULL, @@ -5355,16 +7538,31 @@ CREATE TABLE analytics_devops_adoption_segments ( display_namespace_id integer ); -CREATE SEQUENCE analytics_devops_adoption_segments_id_seq + +-- +-- Name: analytics_devops_adoption_segments_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.analytics_devops_adoption_segments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE analytics_devops_adoption_segments_id_seq OWNED BY analytics_devops_adoption_segments.id; -CREATE TABLE analytics_devops_adoption_snapshots ( +-- +-- Name: analytics_devops_adoption_segments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.analytics_devops_adoption_segments_id_seq OWNED BY public.analytics_devops_adoption_segments.id; + + +-- +-- Name: analytics_devops_adoption_snapshots; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.analytics_devops_adoption_snapshots ( id bigint NOT NULL, recorded_at timestamp with time zone NOT NULL, issue_opened boolean NOT NULL, @@ -5385,16 +7583,31 @@ CREATE TABLE analytics_devops_adoption_snapshots ( CONSTRAINT check_3f472de131 CHECK ((namespace_id IS NOT NULL)) ); -CREATE SEQUENCE analytics_devops_adoption_snapshots_id_seq + +-- +-- Name: analytics_devops_adoption_snapshots_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.analytics_devops_adoption_snapshots_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE analytics_devops_adoption_snapshots_id_seq OWNED BY analytics_devops_adoption_snapshots.id; -CREATE TABLE analytics_language_trend_repository_languages ( +-- +-- Name: analytics_devops_adoption_snapshots_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.analytics_devops_adoption_snapshots_id_seq OWNED BY public.analytics_devops_adoption_snapshots.id; + + +-- +-- Name: analytics_language_trend_repository_languages; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.analytics_language_trend_repository_languages ( file_count integer DEFAULT 0 NOT NULL, programming_language_id bigint NOT NULL, project_id bigint NOT NULL, @@ -5404,23 +7617,43 @@ CREATE TABLE analytics_language_trend_repository_languages ( snapshot_date date NOT NULL ); -CREATE TABLE analytics_usage_trends_measurements ( + +-- +-- Name: analytics_usage_trends_measurements; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.analytics_usage_trends_measurements ( id bigint NOT NULL, count bigint NOT NULL, recorded_at timestamp with time zone NOT NULL, identifier smallint NOT NULL ); -CREATE SEQUENCE analytics_usage_trends_measurements_id_seq + +-- +-- Name: analytics_usage_trends_measurements_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.analytics_usage_trends_measurements_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE analytics_usage_trends_measurements_id_seq OWNED BY analytics_usage_trends_measurements.id; -CREATE TABLE appearances ( +-- +-- Name: analytics_usage_trends_measurements_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.analytics_usage_trends_measurements_id_seq OWNED BY public.analytics_usage_trends_measurements.id; + + +-- +-- Name: appearances; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.appearances ( id integer NOT NULL, title character varying NOT NULL, description text NOT NULL, @@ -5457,32 +7690,62 @@ CREATE TABLE appearances ( CONSTRAINT check_5e5b7ac344 CHECK ((char_length(pwa_icon) <= 1024)) ); -CREATE SEQUENCE appearances_id_seq + +-- +-- Name: appearances_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.appearances_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE appearances_id_seq OWNED BY appearances.id; -CREATE TABLE application_setting_terms ( +-- +-- Name: appearances_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.appearances_id_seq OWNED BY public.appearances.id; + + +-- +-- Name: application_setting_terms; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.application_setting_terms ( id integer NOT NULL, cached_markdown_version integer, terms text NOT NULL, terms_html text ); -CREATE SEQUENCE application_setting_terms_id_seq + +-- +-- Name: application_setting_terms_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.application_setting_terms_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE application_setting_terms_id_seq OWNED BY application_setting_terms.id; -CREATE TABLE application_settings ( +-- +-- Name: application_setting_terms_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.application_setting_terms_id_seq OWNED BY public.application_setting_terms.id; + + +-- +-- Name: application_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.application_settings ( id integer NOT NULL, default_projects_limit integer, signup_enabled boolean, @@ -6091,58 +8354,178 @@ CREATE TABLE application_settings ( CONSTRAINT check_ef6176834f CHECK ((char_length(encrypted_cloud_license_auth_token_iv) <= 255)) ); -COMMENT ON COLUMN application_settings.content_validation_endpoint_url IS 'JiHu-specific column'; -COMMENT ON COLUMN application_settings.encrypted_content_validation_api_key IS 'JiHu-specific column'; +-- +-- Name: COLUMN application_settings.content_validation_endpoint_url; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.application_settings.content_validation_endpoint_url IS 'JiHu-specific column'; + + +-- +-- Name: COLUMN application_settings.encrypted_content_validation_api_key; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.application_settings.encrypted_content_validation_api_key IS 'JiHu-specific column'; + + +-- +-- Name: COLUMN application_settings.encrypted_content_validation_api_key_iv; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.application_settings.encrypted_content_validation_api_key_iv IS 'JiHu-specific column'; + + +-- +-- Name: COLUMN application_settings.content_validation_endpoint_enabled; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.application_settings.content_validation_endpoint_enabled IS 'JiHu-specific column'; + + +-- +-- Name: COLUMN application_settings.dingtalk_integration_enabled; Type: COMMENT; Schema: public; Owner: - +-- -COMMENT ON COLUMN application_settings.encrypted_content_validation_api_key_iv IS 'JiHu-specific column'; +COMMENT ON COLUMN public.application_settings.dingtalk_integration_enabled IS 'JiHu-specific column'; -COMMENT ON COLUMN application_settings.content_validation_endpoint_enabled IS 'JiHu-specific column'; -COMMENT ON COLUMN application_settings.dingtalk_integration_enabled IS 'JiHu-specific column'; +-- +-- Name: COLUMN application_settings.encrypted_dingtalk_corpid; Type: COMMENT; Schema: public; Owner: - +-- -COMMENT ON COLUMN application_settings.encrypted_dingtalk_corpid IS 'JiHu-specific column'; +COMMENT ON COLUMN public.application_settings.encrypted_dingtalk_corpid IS 'JiHu-specific column'; -COMMENT ON COLUMN application_settings.encrypted_dingtalk_corpid_iv IS 'JiHu-specific column'; -COMMENT ON COLUMN application_settings.encrypted_dingtalk_app_key IS 'JiHu-specific column'; +-- +-- Name: COLUMN application_settings.encrypted_dingtalk_corpid_iv; Type: COMMENT; Schema: public; Owner: - +-- -COMMENT ON COLUMN application_settings.encrypted_dingtalk_app_key_iv IS 'JiHu-specific column'; +COMMENT ON COLUMN public.application_settings.encrypted_dingtalk_corpid_iv IS 'JiHu-specific column'; -COMMENT ON COLUMN application_settings.encrypted_dingtalk_app_secret IS 'JiHu-specific column'; -COMMENT ON COLUMN application_settings.encrypted_dingtalk_app_secret_iv IS 'JiHu-specific column'; +-- +-- Name: COLUMN application_settings.encrypted_dingtalk_app_key; Type: COMMENT; Schema: public; Owner: - +-- -COMMENT ON COLUMN application_settings.phone_verification_code_enabled IS 'JiHu-specific column'; +COMMENT ON COLUMN public.application_settings.encrypted_dingtalk_app_key IS 'JiHu-specific column'; -COMMENT ON COLUMN application_settings.feishu_integration_enabled IS 'JiHu-specific column'; -COMMENT ON COLUMN application_settings.encrypted_feishu_app_key IS 'JiHu-specific column'; +-- +-- Name: COLUMN application_settings.encrypted_dingtalk_app_key_iv; Type: COMMENT; Schema: public; Owner: - +-- -COMMENT ON COLUMN application_settings.encrypted_feishu_app_key_iv IS 'JiHu-specific column'; +COMMENT ON COLUMN public.application_settings.encrypted_dingtalk_app_key_iv IS 'JiHu-specific column'; -COMMENT ON COLUMN application_settings.encrypted_feishu_app_secret IS 'JiHu-specific column'; -COMMENT ON COLUMN application_settings.encrypted_feishu_app_secret_iv IS 'JiHu-specific column'; +-- +-- Name: COLUMN application_settings.encrypted_dingtalk_app_secret; Type: COMMENT; Schema: public; Owner: - +-- -COMMENT ON COLUMN application_settings.password_expiration_enabled IS 'JiHu-specific column'; +COMMENT ON COLUMN public.application_settings.encrypted_dingtalk_app_secret IS 'JiHu-specific column'; -COMMENT ON COLUMN application_settings.password_expires_in_days IS 'JiHu-specific column'; -COMMENT ON COLUMN application_settings.password_expires_notice_before_days IS 'JiHu-specific column'; +-- +-- Name: COLUMN application_settings.encrypted_dingtalk_app_secret_iv; Type: COMMENT; Schema: public; Owner: - +-- -COMMENT ON COLUMN application_settings.disable_download_button IS 'JiHu-specific column'; +COMMENT ON COLUMN public.application_settings.encrypted_dingtalk_app_secret_iv IS 'JiHu-specific column'; -CREATE SEQUENCE application_settings_id_seq + +-- +-- Name: COLUMN application_settings.phone_verification_code_enabled; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.application_settings.phone_verification_code_enabled IS 'JiHu-specific column'; + + +-- +-- Name: COLUMN application_settings.feishu_integration_enabled; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.application_settings.feishu_integration_enabled IS 'JiHu-specific column'; + + +-- +-- Name: COLUMN application_settings.encrypted_feishu_app_key; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.application_settings.encrypted_feishu_app_key IS 'JiHu-specific column'; + + +-- +-- Name: COLUMN application_settings.encrypted_feishu_app_key_iv; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.application_settings.encrypted_feishu_app_key_iv IS 'JiHu-specific column'; + + +-- +-- Name: COLUMN application_settings.encrypted_feishu_app_secret; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.application_settings.encrypted_feishu_app_secret IS 'JiHu-specific column'; + + +-- +-- Name: COLUMN application_settings.encrypted_feishu_app_secret_iv; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.application_settings.encrypted_feishu_app_secret_iv IS 'JiHu-specific column'; + + +-- +-- Name: COLUMN application_settings.password_expiration_enabled; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.application_settings.password_expiration_enabled IS 'JiHu-specific column'; + + +-- +-- Name: COLUMN application_settings.password_expires_in_days; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.application_settings.password_expires_in_days IS 'JiHu-specific column'; + + +-- +-- Name: COLUMN application_settings.password_expires_notice_before_days; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.application_settings.password_expires_notice_before_days IS 'JiHu-specific column'; + + +-- +-- Name: COLUMN application_settings.disable_download_button; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.application_settings.disable_download_button IS 'JiHu-specific column'; + + +-- +-- Name: application_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.application_settings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE application_settings_id_seq OWNED BY application_settings.id; -CREATE TABLE approval_group_rules ( +-- +-- Name: application_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.application_settings_id_seq OWNED BY public.application_settings.id; + + +-- +-- Name: approval_group_rules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.approval_group_rules ( id bigint NOT NULL, group_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -6158,79 +8541,154 @@ CREATE TABLE approval_group_rules ( CONSTRAINT check_25d42add43 CHECK ((char_length(name) <= 255)) ); -CREATE TABLE approval_group_rules_groups ( + +-- +-- Name: approval_group_rules_groups; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.approval_group_rules_groups ( id bigint NOT NULL, approval_group_rule_id bigint NOT NULL, group_id bigint NOT NULL ); -CREATE SEQUENCE approval_group_rules_groups_id_seq + +-- +-- Name: approval_group_rules_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.approval_group_rules_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE approval_group_rules_groups_id_seq OWNED BY approval_group_rules_groups.id; -CREATE SEQUENCE approval_group_rules_id_seq +-- +-- Name: approval_group_rules_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.approval_group_rules_groups_id_seq OWNED BY public.approval_group_rules_groups.id; + + +-- +-- Name: approval_group_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.approval_group_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE approval_group_rules_id_seq OWNED BY approval_group_rules.id; -CREATE TABLE approval_group_rules_protected_branches ( +-- +-- Name: approval_group_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.approval_group_rules_id_seq OWNED BY public.approval_group_rules.id; + + +-- +-- Name: approval_group_rules_protected_branches; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.approval_group_rules_protected_branches ( id bigint NOT NULL, approval_group_rule_id bigint NOT NULL, protected_branch_id bigint NOT NULL, group_id bigint ); -CREATE SEQUENCE approval_group_rules_protected_branches_id_seq + +-- +-- Name: approval_group_rules_protected_branches_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.approval_group_rules_protected_branches_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE approval_group_rules_protected_branches_id_seq OWNED BY approval_group_rules_protected_branches.id; -CREATE TABLE approval_group_rules_users ( +-- +-- Name: approval_group_rules_protected_branches_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.approval_group_rules_protected_branches_id_seq OWNED BY public.approval_group_rules_protected_branches.id; + + +-- +-- Name: approval_group_rules_users; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.approval_group_rules_users ( id bigint NOT NULL, approval_group_rule_id bigint NOT NULL, user_id bigint NOT NULL, group_id bigint ); -CREATE SEQUENCE approval_group_rules_users_id_seq + +-- +-- Name: approval_group_rules_users_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.approval_group_rules_users_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE approval_group_rules_users_id_seq OWNED BY approval_group_rules_users.id; -CREATE TABLE approval_merge_request_rule_sources ( +-- +-- Name: approval_group_rules_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.approval_group_rules_users_id_seq OWNED BY public.approval_group_rules_users.id; + + +-- +-- Name: approval_merge_request_rule_sources; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.approval_merge_request_rule_sources ( id bigint NOT NULL, approval_merge_request_rule_id bigint NOT NULL, approval_project_rule_id bigint NOT NULL, project_id bigint ); -CREATE SEQUENCE approval_merge_request_rule_sources_id_seq + +-- +-- Name: approval_merge_request_rule_sources_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.approval_merge_request_rule_sources_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE approval_merge_request_rule_sources_id_seq OWNED BY approval_merge_request_rule_sources.id; -CREATE TABLE approval_merge_request_rules ( +-- +-- Name: approval_merge_request_rule_sources_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.approval_merge_request_rule_sources_id_seq OWNED BY public.approval_merge_request_rule_sources.id; + + +-- +-- Name: approval_merge_request_rules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.approval_merge_request_rules ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6254,76 +8712,151 @@ CREATE TABLE approval_merge_request_rules ( CONSTRAINT check_6fca5928b2 CHECK ((char_length(section) <= 255)) ); -CREATE TABLE approval_merge_request_rules_approved_approvers ( + +-- +-- Name: approval_merge_request_rules_approved_approvers; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.approval_merge_request_rules_approved_approvers ( id bigint NOT NULL, approval_merge_request_rule_id bigint NOT NULL, user_id integer NOT NULL ); -CREATE SEQUENCE approval_merge_request_rules_approved_approvers_id_seq + +-- +-- Name: approval_merge_request_rules_approved_approvers_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.approval_merge_request_rules_approved_approvers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE approval_merge_request_rules_approved_approvers_id_seq OWNED BY approval_merge_request_rules_approved_approvers.id; -CREATE TABLE approval_merge_request_rules_groups ( +-- +-- Name: approval_merge_request_rules_approved_approvers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.approval_merge_request_rules_approved_approvers_id_seq OWNED BY public.approval_merge_request_rules_approved_approvers.id; + + +-- +-- Name: approval_merge_request_rules_groups; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.approval_merge_request_rules_groups ( id bigint NOT NULL, approval_merge_request_rule_id bigint NOT NULL, group_id integer NOT NULL ); -CREATE SEQUENCE approval_merge_request_rules_groups_id_seq + +-- +-- Name: approval_merge_request_rules_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.approval_merge_request_rules_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE approval_merge_request_rules_groups_id_seq OWNED BY approval_merge_request_rules_groups.id; -CREATE SEQUENCE approval_merge_request_rules_id_seq +-- +-- Name: approval_merge_request_rules_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.approval_merge_request_rules_groups_id_seq OWNED BY public.approval_merge_request_rules_groups.id; + + +-- +-- Name: approval_merge_request_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.approval_merge_request_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE approval_merge_request_rules_id_seq OWNED BY approval_merge_request_rules.id; -CREATE TABLE approval_merge_request_rules_users ( +-- +-- Name: approval_merge_request_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.approval_merge_request_rules_id_seq OWNED BY public.approval_merge_request_rules.id; + + +-- +-- Name: approval_merge_request_rules_users; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.approval_merge_request_rules_users ( id bigint NOT NULL, approval_merge_request_rule_id bigint NOT NULL, user_id integer NOT NULL ); -CREATE SEQUENCE approval_merge_request_rules_users_id_seq + +-- +-- Name: approval_merge_request_rules_users_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.approval_merge_request_rules_users_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE approval_merge_request_rules_users_id_seq OWNED BY approval_merge_request_rules_users.id; -CREATE TABLE approval_policy_rule_project_links ( +-- +-- Name: approval_merge_request_rules_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.approval_merge_request_rules_users_id_seq OWNED BY public.approval_merge_request_rules_users.id; + + +-- +-- Name: approval_policy_rule_project_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.approval_policy_rule_project_links ( id bigint NOT NULL, project_id bigint NOT NULL, approval_policy_rule_id bigint NOT NULL ); -CREATE SEQUENCE approval_policy_rule_project_links_id_seq + +-- +-- Name: approval_policy_rule_project_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.approval_policy_rule_project_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE approval_policy_rule_project_links_id_seq OWNED BY approval_policy_rule_project_links.id; -CREATE TABLE approval_policy_rules ( +-- +-- Name: approval_policy_rule_project_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.approval_policy_rule_project_links_id_seq OWNED BY public.approval_policy_rule_project_links.id; + + +-- +-- Name: approval_policy_rules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.approval_policy_rules ( id bigint NOT NULL, security_policy_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -6334,16 +8867,31 @@ CREATE TABLE approval_policy_rules ( security_policy_management_project_id bigint NOT NULL ); -CREATE SEQUENCE approval_policy_rules_id_seq + +-- +-- Name: approval_policy_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.approval_policy_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE approval_policy_rules_id_seq OWNED BY approval_policy_rules.id; -CREATE TABLE approval_project_rules ( +-- +-- Name: approval_policy_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.approval_policy_rules_id_seq OWNED BY public.approval_policy_rules.id; + + +-- +-- Name: approval_project_rules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.approval_project_rules ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6363,52 +8911,102 @@ CREATE TABLE approval_project_rules ( approval_policy_rule_id bigint ); -CREATE TABLE approval_project_rules_groups ( + +-- +-- Name: approval_project_rules_groups; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.approval_project_rules_groups ( id bigint NOT NULL, approval_project_rule_id bigint NOT NULL, group_id integer NOT NULL ); -CREATE SEQUENCE approval_project_rules_groups_id_seq + +-- +-- Name: approval_project_rules_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.approval_project_rules_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE approval_project_rules_groups_id_seq OWNED BY approval_project_rules_groups.id; -CREATE SEQUENCE approval_project_rules_id_seq +-- +-- Name: approval_project_rules_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.approval_project_rules_groups_id_seq OWNED BY public.approval_project_rules_groups.id; + + +-- +-- Name: approval_project_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.approval_project_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE approval_project_rules_id_seq OWNED BY approval_project_rules.id; -CREATE TABLE approval_project_rules_protected_branches ( +-- +-- Name: approval_project_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.approval_project_rules_id_seq OWNED BY public.approval_project_rules.id; + + +-- +-- Name: approval_project_rules_protected_branches; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.approval_project_rules_protected_branches ( approval_project_rule_id bigint NOT NULL, protected_branch_id bigint NOT NULL ); -CREATE TABLE approval_project_rules_users ( + +-- +-- Name: approval_project_rules_users; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.approval_project_rules_users ( id bigint NOT NULL, approval_project_rule_id bigint NOT NULL, user_id integer NOT NULL, project_id bigint ); -CREATE SEQUENCE approval_project_rules_users_id_seq + +-- +-- Name: approval_project_rules_users_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.approval_project_rules_users_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE approval_project_rules_users_id_seq OWNED BY approval_project_rules_users.id; -CREATE TABLE approvals ( +-- +-- Name: approval_project_rules_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.approval_project_rules_users_id_seq OWNED BY public.approval_project_rules_users.id; + + +-- +-- Name: approvals; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.approvals ( id integer NOT NULL, merge_request_id integer NOT NULL, user_id integer NOT NULL, @@ -6418,16 +9016,31 @@ CREATE TABLE approvals ( project_id bigint ); -CREATE SEQUENCE approvals_id_seq + +-- +-- Name: approvals_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.approvals_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE approvals_id_seq OWNED BY approvals.id; -CREATE TABLE approver_groups ( +-- +-- Name: approvals_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.approvals_id_seq OWNED BY public.approvals.id; + + +-- +-- Name: approver_groups; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.approver_groups ( id integer NOT NULL, target_id integer NOT NULL, target_type character varying NOT NULL, @@ -6436,16 +9049,31 @@ CREATE TABLE approver_groups ( updated_at timestamp without time zone ); -CREATE SEQUENCE approver_groups_id_seq + +-- +-- Name: approver_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.approver_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE approver_groups_id_seq OWNED BY approver_groups.id; -CREATE TABLE approvers ( +-- +-- Name: approver_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.approver_groups_id_seq OWNED BY public.approver_groups.id; + + +-- +-- Name: approvers; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.approvers ( id integer NOT NULL, target_id integer NOT NULL, target_type character varying, @@ -6454,23 +9082,43 @@ CREATE TABLE approvers ( updated_at timestamp without time zone ); -CREATE SEQUENCE approvers_id_seq + +-- +-- Name: approvers_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.approvers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE approvers_id_seq OWNED BY approvers.id; -CREATE TABLE ar_internal_metadata ( +-- +-- Name: approvers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.approvers_id_seq OWNED BY public.approvers.id; + + +-- +-- Name: ar_internal_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ar_internal_metadata ( key character varying NOT NULL, value character varying, created_at timestamp(6) without time zone NOT NULL, updated_at timestamp(6) without time zone NOT NULL ); -CREATE TABLE atlassian_identities ( + +-- +-- Name: atlassian_identities; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.atlassian_identities ( user_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6487,16 +9135,31 @@ CREATE TABLE atlassian_identities ( CONSTRAINT check_32f5779763 CHECK ((char_length(extern_uid) <= 255)) ); -CREATE SEQUENCE atlassian_identities_user_id_seq + +-- +-- Name: atlassian_identities_user_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.atlassian_identities_user_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE atlassian_identities_user_id_seq OWNED BY atlassian_identities.user_id; -CREATE TABLE audit_events_amazon_s3_configurations ( +-- +-- Name: atlassian_identities_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.atlassian_identities_user_id_seq OWNED BY public.atlassian_identities.user_id; + + +-- +-- Name: audit_events_amazon_s3_configurations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.audit_events_amazon_s3_configurations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6513,16 +9176,31 @@ CREATE TABLE audit_events_amazon_s3_configurations ( CONSTRAINT check_ec46f06e01 CHECK ((char_length(access_key_xid) <= 128)) ); -CREATE SEQUENCE audit_events_amazon_s3_configurations_id_seq + +-- +-- Name: audit_events_amazon_s3_configurations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.audit_events_amazon_s3_configurations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE audit_events_amazon_s3_configurations_id_seq OWNED BY audit_events_amazon_s3_configurations.id; -CREATE TABLE audit_events_external_audit_event_destinations ( +-- +-- Name: audit_events_amazon_s3_configurations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.audit_events_amazon_s3_configurations_id_seq OWNED BY public.audit_events_amazon_s3_configurations.id; + + +-- +-- Name: audit_events_external_audit_event_destinations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.audit_events_external_audit_event_destinations ( id bigint NOT NULL, namespace_id bigint NOT NULL, destination_url text NOT NULL, @@ -6535,16 +9213,31 @@ CREATE TABLE audit_events_external_audit_event_destinations ( CONSTRAINT check_c52ff8e90e CHECK ((char_length(name) <= 72)) ); -CREATE SEQUENCE audit_events_external_audit_event_destinations_id_seq + +-- +-- Name: audit_events_external_audit_event_destinations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.audit_events_external_audit_event_destinations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE audit_events_external_audit_event_destinations_id_seq OWNED BY audit_events_external_audit_event_destinations.id; -CREATE TABLE audit_events_google_cloud_logging_configurations ( +-- +-- Name: audit_events_external_audit_event_destinations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.audit_events_external_audit_event_destinations_id_seq OWNED BY public.audit_events_external_audit_event_destinations.id; + + +-- +-- Name: audit_events_google_cloud_logging_configurations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.audit_events_google_cloud_logging_configurations ( id bigint NOT NULL, namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -6561,16 +9254,31 @@ CREATE TABLE audit_events_google_cloud_logging_configurations ( CONSTRAINT check_cdf6883cd6 CHECK ((char_length(name) <= 72)) ); -CREATE SEQUENCE audit_events_google_cloud_logging_configurations_id_seq + +-- +-- Name: audit_events_google_cloud_logging_configurations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.audit_events_google_cloud_logging_configurations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE audit_events_google_cloud_logging_configurations_id_seq OWNED BY audit_events_google_cloud_logging_configurations.id; -CREATE TABLE audit_events_group_external_streaming_destinations ( +-- +-- Name: audit_events_google_cloud_logging_configurations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.audit_events_google_cloud_logging_configurations_id_seq OWNED BY public.audit_events_google_cloud_logging_configurations.id; + + +-- +-- Name: audit_events_group_external_streaming_destinations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.audit_events_group_external_streaming_destinations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6583,16 +9291,31 @@ CREATE TABLE audit_events_group_external_streaming_destinations ( CONSTRAINT check_97d157fbd0 CHECK ((char_length(name) <= 72)) ); -CREATE SEQUENCE audit_events_group_external_streaming_destinations_id_seq + +-- +-- Name: audit_events_group_external_streaming_destinations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.audit_events_group_external_streaming_destinations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE audit_events_group_external_streaming_destinations_id_seq OWNED BY audit_events_group_external_streaming_destinations.id; -CREATE TABLE audit_events_group_streaming_event_type_filters ( +-- +-- Name: audit_events_group_external_streaming_destinations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.audit_events_group_external_streaming_destinations_id_seq OWNED BY public.audit_events_group_external_streaming_destinations.id; + + +-- +-- Name: audit_events_group_streaming_event_type_filters; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.audit_events_group_streaming_event_type_filters ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6602,25 +9325,50 @@ CREATE TABLE audit_events_group_streaming_event_type_filters ( CONSTRAINT check_389708af23 CHECK ((char_length(audit_event_type) <= 255)) ); -CREATE SEQUENCE audit_events_group_streaming_event_type_filters_id_seq + +-- +-- Name: audit_events_group_streaming_event_type_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.audit_events_group_streaming_event_type_filters_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE audit_events_group_streaming_event_type_filters_id_seq OWNED BY audit_events_group_streaming_event_type_filters.id; -CREATE SEQUENCE audit_events_id_seq +-- +-- Name: audit_events_group_streaming_event_type_filters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.audit_events_group_streaming_event_type_filters_id_seq OWNED BY public.audit_events_group_streaming_event_type_filters.id; + + +-- +-- Name: audit_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.audit_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE audit_events_id_seq OWNED BY audit_events.id; -CREATE TABLE audit_events_instance_amazon_s3_configurations ( +-- +-- Name: audit_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.audit_events_id_seq OWNED BY public.audit_events.id; + + +-- +-- Name: audit_events_instance_amazon_s3_configurations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.audit_events_instance_amazon_s3_configurations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6636,16 +9384,31 @@ CREATE TABLE audit_events_instance_amazon_s3_configurations ( CONSTRAINT check_d6d6bd8e8b CHECK ((char_length(access_key_xid) <= 128)) ); -CREATE SEQUENCE audit_events_instance_amazon_s3_configurations_id_seq + +-- +-- Name: audit_events_instance_amazon_s3_configurations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.audit_events_instance_amazon_s3_configurations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE audit_events_instance_amazon_s3_configurations_id_seq OWNED BY audit_events_instance_amazon_s3_configurations.id; -CREATE TABLE audit_events_instance_external_audit_event_destinations ( +-- +-- Name: audit_events_instance_amazon_s3_configurations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.audit_events_instance_amazon_s3_configurations_id_seq OWNED BY public.audit_events_instance_amazon_s3_configurations.id; + + +-- +-- Name: audit_events_instance_external_audit_event_destinations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.audit_events_instance_external_audit_event_destinations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6657,16 +9420,31 @@ CREATE TABLE audit_events_instance_external_audit_event_destinations ( CONSTRAINT check_4dc67167ce CHECK ((char_length(destination_url) <= 255)) ); -CREATE SEQUENCE audit_events_instance_external_audit_event_destinations_id_seq + +-- +-- Name: audit_events_instance_external_audit_event_destinations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.audit_events_instance_external_audit_event_destinations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE audit_events_instance_external_audit_event_destinations_id_seq OWNED BY audit_events_instance_external_audit_event_destinations.id; -CREATE TABLE audit_events_instance_external_streaming_destinations ( +-- +-- Name: audit_events_instance_external_audit_event_destinations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.audit_events_instance_external_audit_event_destinations_id_seq OWNED BY public.audit_events_instance_external_audit_event_destinations.id; + + +-- +-- Name: audit_events_instance_external_streaming_destinations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.audit_events_instance_external_streaming_destinations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6678,16 +9456,31 @@ CREATE TABLE audit_events_instance_external_streaming_destinations ( CONSTRAINT check_219decfb51 CHECK ((char_length(name) <= 72)) ); -CREATE SEQUENCE audit_events_instance_external_streaming_destinations_id_seq + +-- +-- Name: audit_events_instance_external_streaming_destinations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.audit_events_instance_external_streaming_destinations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE audit_events_instance_external_streaming_destinations_id_seq OWNED BY audit_events_instance_external_streaming_destinations.id; -CREATE TABLE audit_events_instance_google_cloud_logging_configurations ( +-- +-- Name: audit_events_instance_external_streaming_destinations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.audit_events_instance_external_streaming_destinations_id_seq OWNED BY public.audit_events_instance_external_streaming_destinations.id; + + +-- +-- Name: audit_events_instance_google_cloud_logging_configurations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.audit_events_instance_google_cloud_logging_configurations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6703,16 +9496,31 @@ CREATE TABLE audit_events_instance_google_cloud_logging_configurations ( CONSTRAINT check_ac42ad3ca2 CHECK ((char_length(name) <= 72)) ); -CREATE SEQUENCE audit_events_instance_google_cloud_logging_configuration_id_seq + +-- +-- Name: audit_events_instance_google_cloud_logging_configuration_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.audit_events_instance_google_cloud_logging_configuration_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE audit_events_instance_google_cloud_logging_configuration_id_seq OWNED BY audit_events_instance_google_cloud_logging_configurations.id; -CREATE TABLE audit_events_instance_streaming_event_type_filters ( +-- +-- Name: audit_events_instance_google_cloud_logging_configuration_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.audit_events_instance_google_cloud_logging_configuration_id_seq OWNED BY public.audit_events_instance_google_cloud_logging_configurations.id; + + +-- +-- Name: audit_events_instance_streaming_event_type_filters; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.audit_events_instance_streaming_event_type_filters ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6721,16 +9529,31 @@ CREATE TABLE audit_events_instance_streaming_event_type_filters ( CONSTRAINT check_4a5e8e01b5 CHECK ((char_length(audit_event_type) <= 255)) ); -CREATE SEQUENCE audit_events_instance_streaming_event_type_filters_id_seq + +-- +-- Name: audit_events_instance_streaming_event_type_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.audit_events_instance_streaming_event_type_filters_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE audit_events_instance_streaming_event_type_filters_id_seq OWNED BY audit_events_instance_streaming_event_type_filters.id; -CREATE TABLE audit_events_streaming_event_type_filters ( +-- +-- Name: audit_events_instance_streaming_event_type_filters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.audit_events_instance_streaming_event_type_filters_id_seq OWNED BY public.audit_events_instance_streaming_event_type_filters.id; + + +-- +-- Name: audit_events_streaming_event_type_filters; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.audit_events_streaming_event_type_filters ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6740,16 +9563,31 @@ CREATE TABLE audit_events_streaming_event_type_filters ( CONSTRAINT check_d20c8e5a51 CHECK ((char_length(audit_event_type) <= 255)) ); -CREATE SEQUENCE audit_events_streaming_event_type_filters_id_seq + +-- +-- Name: audit_events_streaming_event_type_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.audit_events_streaming_event_type_filters_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE audit_events_streaming_event_type_filters_id_seq OWNED BY audit_events_streaming_event_type_filters.id; -CREATE TABLE audit_events_streaming_group_namespace_filters ( +-- +-- Name: audit_events_streaming_event_type_filters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.audit_events_streaming_event_type_filters_id_seq OWNED BY public.audit_events_streaming_event_type_filters.id; + + +-- +-- Name: audit_events_streaming_group_namespace_filters; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.audit_events_streaming_group_namespace_filters ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6757,16 +9595,31 @@ CREATE TABLE audit_events_streaming_group_namespace_filters ( namespace_id bigint NOT NULL ); -CREATE SEQUENCE audit_events_streaming_group_namespace_filters_id_seq + +-- +-- Name: audit_events_streaming_group_namespace_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.audit_events_streaming_group_namespace_filters_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE audit_events_streaming_group_namespace_filters_id_seq OWNED BY audit_events_streaming_group_namespace_filters.id; -CREATE TABLE audit_events_streaming_headers ( +-- +-- Name: audit_events_streaming_group_namespace_filters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.audit_events_streaming_group_namespace_filters_id_seq OWNED BY public.audit_events_streaming_group_namespace_filters.id; + + +-- +-- Name: audit_events_streaming_headers; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.audit_events_streaming_headers ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6779,16 +9632,31 @@ CREATE TABLE audit_events_streaming_headers ( CONSTRAINT check_ac213cca22 CHECK ((char_length(value) <= 255)) ); -CREATE SEQUENCE audit_events_streaming_headers_id_seq + +-- +-- Name: audit_events_streaming_headers_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.audit_events_streaming_headers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE audit_events_streaming_headers_id_seq OWNED BY audit_events_streaming_headers.id; -CREATE TABLE audit_events_streaming_http_group_namespace_filters ( +-- +-- Name: audit_events_streaming_headers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.audit_events_streaming_headers_id_seq OWNED BY public.audit_events_streaming_headers.id; + + +-- +-- Name: audit_events_streaming_http_group_namespace_filters; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.audit_events_streaming_http_group_namespace_filters ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6796,16 +9664,31 @@ CREATE TABLE audit_events_streaming_http_group_namespace_filters ( namespace_id bigint NOT NULL ); -CREATE SEQUENCE audit_events_streaming_http_group_namespace_filters_id_seq + +-- +-- Name: audit_events_streaming_http_group_namespace_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.audit_events_streaming_http_group_namespace_filters_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE audit_events_streaming_http_group_namespace_filters_id_seq OWNED BY audit_events_streaming_http_group_namespace_filters.id; -CREATE TABLE audit_events_streaming_http_instance_namespace_filters ( +-- +-- Name: audit_events_streaming_http_group_namespace_filters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.audit_events_streaming_http_group_namespace_filters_id_seq OWNED BY public.audit_events_streaming_http_group_namespace_filters.id; + + +-- +-- Name: audit_events_streaming_http_instance_namespace_filters; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.audit_events_streaming_http_instance_namespace_filters ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6813,16 +9696,31 @@ CREATE TABLE audit_events_streaming_http_instance_namespace_filters ( namespace_id bigint NOT NULL ); -CREATE SEQUENCE audit_events_streaming_http_instance_namespace_filters_id_seq + +-- +-- Name: audit_events_streaming_http_instance_namespace_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.audit_events_streaming_http_instance_namespace_filters_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE audit_events_streaming_http_instance_namespace_filters_id_seq OWNED BY audit_events_streaming_http_instance_namespace_filters.id; -CREATE TABLE audit_events_streaming_instance_event_type_filters ( +-- +-- Name: audit_events_streaming_http_instance_namespace_filters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.audit_events_streaming_http_instance_namespace_filters_id_seq OWNED BY public.audit_events_streaming_http_instance_namespace_filters.id; + + +-- +-- Name: audit_events_streaming_instance_event_type_filters; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.audit_events_streaming_instance_event_type_filters ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6831,16 +9729,31 @@ CREATE TABLE audit_events_streaming_instance_event_type_filters ( CONSTRAINT check_249c9370cc CHECK ((char_length(audit_event_type) <= 255)) ); -CREATE SEQUENCE audit_events_streaming_instance_event_type_filters_id_seq + +-- +-- Name: audit_events_streaming_instance_event_type_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.audit_events_streaming_instance_event_type_filters_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE audit_events_streaming_instance_event_type_filters_id_seq OWNED BY audit_events_streaming_instance_event_type_filters.id; -CREATE TABLE audit_events_streaming_instance_namespace_filters ( +-- +-- Name: audit_events_streaming_instance_event_type_filters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.audit_events_streaming_instance_event_type_filters_id_seq OWNED BY public.audit_events_streaming_instance_event_type_filters.id; + + +-- +-- Name: audit_events_streaming_instance_namespace_filters; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.audit_events_streaming_instance_namespace_filters ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6848,16 +9761,31 @@ CREATE TABLE audit_events_streaming_instance_namespace_filters ( namespace_id bigint NOT NULL ); -CREATE SEQUENCE audit_events_streaming_instance_namespace_filters_id_seq + +-- +-- Name: audit_events_streaming_instance_namespace_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.audit_events_streaming_instance_namespace_filters_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE audit_events_streaming_instance_namespace_filters_id_seq OWNED BY audit_events_streaming_instance_namespace_filters.id; -CREATE TABLE authentication_events ( +-- +-- Name: audit_events_streaming_instance_namespace_filters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.audit_events_streaming_instance_namespace_filters_id_seq OWNED BY public.audit_events_streaming_instance_namespace_filters.id; + + +-- +-- Name: authentication_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.authentication_events ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, user_id bigint, @@ -6869,16 +9797,31 @@ CREATE TABLE authentication_events ( CONSTRAINT check_c64f424630 CHECK ((char_length(provider) <= 64)) ); -CREATE SEQUENCE authentication_events_id_seq + +-- +-- Name: authentication_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.authentication_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE authentication_events_id_seq OWNED BY authentication_events.id; -CREATE TABLE automation_rules ( +-- +-- Name: authentication_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.authentication_events_id_seq OWNED BY public.authentication_events.id; + + +-- +-- Name: automation_rules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.automation_rules ( id bigint NOT NULL, namespace_id bigint NOT NULL, issues_events boolean DEFAULT false NOT NULL, @@ -6892,16 +9835,31 @@ CREATE TABLE automation_rules ( CONSTRAINT check_ed5a4fcbd5 CHECK ((char_length(rule) <= 2048)) ); -CREATE SEQUENCE automation_rules_id_seq + +-- +-- Name: automation_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.automation_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE automation_rules_id_seq OWNED BY automation_rules.id; -CREATE TABLE award_emoji ( +-- +-- Name: automation_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.automation_rules_id_seq OWNED BY public.automation_rules.id; + + +-- +-- Name: award_emoji; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.award_emoji ( id integer NOT NULL, name character varying, user_id integer, @@ -6911,16 +9869,31 @@ CREATE TABLE award_emoji ( awardable_id bigint ); -CREATE SEQUENCE award_emoji_id_seq + +-- +-- Name: award_emoji_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.award_emoji_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE award_emoji_id_seq OWNED BY award_emoji.id; -CREATE TABLE aws_roles ( +-- +-- Name: award_emoji_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.award_emoji_id_seq OWNED BY public.award_emoji.id; + + +-- +-- Name: aws_roles; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.aws_roles ( user_id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6930,7 +9903,12 @@ CREATE TABLE aws_roles ( CONSTRAINT check_57adedab55 CHECK ((char_length(region) <= 255)) ); -CREATE TABLE background_migration_jobs ( + +-- +-- Name: background_migration_jobs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.background_migration_jobs ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6940,16 +9918,31 @@ CREATE TABLE background_migration_jobs ( CONSTRAINT check_b0de0a5852 CHECK ((char_length(class_name) <= 200)) ); -CREATE SEQUENCE background_migration_jobs_id_seq + +-- +-- Name: background_migration_jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.background_migration_jobs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE background_migration_jobs_id_seq OWNED BY background_migration_jobs.id; -CREATE TABLE badges ( +-- +-- Name: background_migration_jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.background_migration_jobs_id_seq OWNED BY public.background_migration_jobs.id; + + +-- +-- Name: badges; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.badges ( id integer NOT NULL, link_url character varying NOT NULL, image_url character varying NOT NULL, @@ -6961,31 +9954,61 @@ CREATE TABLE badges ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE badges_id_seq + +-- +-- Name: badges_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.badges_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE badges_id_seq OWNED BY badges.id; -CREATE TABLE banned_users ( +-- +-- Name: badges_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.badges_id_seq OWNED BY public.badges.id; + + +-- +-- Name: banned_users; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.banned_users ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, user_id bigint NOT NULL ); -CREATE SEQUENCE batched_background_migration_job_transition_logs_id_seq + +-- +-- Name: batched_background_migration_job_transition_logs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.batched_background_migration_job_transition_logs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE batched_background_migration_job_transition_logs_id_seq OWNED BY batched_background_migration_job_transition_logs.id; -CREATE TABLE batched_background_migration_jobs ( +-- +-- Name: batched_background_migration_job_transition_logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.batched_background_migration_job_transition_logs_id_seq OWNED BY public.batched_background_migration_job_transition_logs.id; + + +-- +-- Name: batched_background_migration_jobs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.batched_background_migration_jobs ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -7002,16 +10025,31 @@ CREATE TABLE batched_background_migration_jobs ( pause_ms integer DEFAULT 100 NOT NULL ); -CREATE SEQUENCE batched_background_migration_jobs_id_seq + +-- +-- Name: batched_background_migration_jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.batched_background_migration_jobs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE batched_background_migration_jobs_id_seq OWNED BY batched_background_migration_jobs.id; -CREATE TABLE batched_background_migrations ( +-- +-- Name: batched_background_migration_jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.batched_background_migration_jobs_id_seq OWNED BY public.batched_background_migration_jobs.id; + + +-- +-- Name: batched_background_migrations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.batched_background_migrations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -7046,33 +10084,68 @@ CREATE TABLE batched_background_migrations ( CONSTRAINT check_positive_sub_batch_size CHECK ((sub_batch_size > 0)) ); -COMMENT ON COLUMN batched_background_migrations.on_hold_until IS 'execution of this migration is on hold until this time'; -CREATE SEQUENCE batched_background_migrations_id_seq +-- +-- Name: COLUMN batched_background_migrations.on_hold_until; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.batched_background_migrations.on_hold_until IS 'execution of this migration is on hold until this time'; + + +-- +-- Name: batched_background_migrations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.batched_background_migrations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE batched_background_migrations_id_seq OWNED BY batched_background_migrations.id; -CREATE TABLE board_assignees ( +-- +-- Name: batched_background_migrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.batched_background_migrations_id_seq OWNED BY public.batched_background_migrations.id; + + +-- +-- Name: board_assignees; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.board_assignees ( id integer NOT NULL, board_id integer NOT NULL, assignee_id integer NOT NULL ); -CREATE SEQUENCE board_assignees_id_seq + +-- +-- Name: board_assignees_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.board_assignees_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE board_assignees_id_seq OWNED BY board_assignees.id; -CREATE TABLE board_group_recent_visits ( +-- +-- Name: board_assignees_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.board_assignees_id_seq OWNED BY public.board_assignees.id; + + +-- +-- Name: board_group_recent_visits; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.board_group_recent_visits ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -7084,31 +10157,61 @@ CREATE TABLE board_group_recent_visits ( CONSTRAINT check_fa7711a898 CHECK ((board_id IS NOT NULL)) ); -CREATE SEQUENCE board_group_recent_visits_id_seq + +-- +-- Name: board_group_recent_visits_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.board_group_recent_visits_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE board_group_recent_visits_id_seq OWNED BY board_group_recent_visits.id; -CREATE TABLE board_labels ( +-- +-- Name: board_group_recent_visits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.board_group_recent_visits_id_seq OWNED BY public.board_group_recent_visits.id; + + +-- +-- Name: board_labels; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.board_labels ( id integer NOT NULL, board_id integer NOT NULL, label_id integer NOT NULL ); -CREATE SEQUENCE board_labels_id_seq + +-- +-- Name: board_labels_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.board_labels_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE board_labels_id_seq OWNED BY board_labels.id; -CREATE TABLE board_project_recent_visits ( +-- +-- Name: board_labels_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.board_labels_id_seq OWNED BY public.board_labels.id; + + +-- +-- Name: board_project_recent_visits; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.board_project_recent_visits ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -7120,16 +10223,31 @@ CREATE TABLE board_project_recent_visits ( CONSTRAINT check_df7762a99a CHECK ((user_id IS NOT NULL)) ); -CREATE SEQUENCE board_project_recent_visits_id_seq + +-- +-- Name: board_project_recent_visits_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.board_project_recent_visits_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE board_project_recent_visits_id_seq OWNED BY board_project_recent_visits.id; -CREATE TABLE board_user_preferences ( +-- +-- Name: board_project_recent_visits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.board_project_recent_visits_id_seq OWNED BY public.board_project_recent_visits.id; + + +-- +-- Name: board_user_preferences; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.board_user_preferences ( id bigint NOT NULL, user_id bigint NOT NULL, board_id bigint NOT NULL, @@ -7138,16 +10256,31 @@ CREATE TABLE board_user_preferences ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE board_user_preferences_id_seq + +-- +-- Name: board_user_preferences_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.board_user_preferences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE board_user_preferences_id_seq OWNED BY board_user_preferences.id; -CREATE TABLE boards ( +-- +-- Name: board_user_preferences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.board_user_preferences_id_seq OWNED BY public.board_user_preferences.id; + + +-- +-- Name: boards; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.boards ( id integer NOT NULL, project_id integer, created_at timestamp without time zone NOT NULL, @@ -7162,23 +10295,43 @@ CREATE TABLE boards ( iteration_cadence_id bigint ); -CREATE TABLE boards_epic_board_labels ( + +-- +-- Name: boards_epic_board_labels; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.boards_epic_board_labels ( id bigint NOT NULL, epic_board_id bigint NOT NULL, label_id bigint NOT NULL, group_id bigint ); -CREATE SEQUENCE boards_epic_board_labels_id_seq + +-- +-- Name: boards_epic_board_labels_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.boards_epic_board_labels_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE boards_epic_board_labels_id_seq OWNED BY boards_epic_board_labels.id; -CREATE TABLE boards_epic_board_positions ( +-- +-- Name: boards_epic_board_labels_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.boards_epic_board_labels_id_seq OWNED BY public.boards_epic_board_labels.id; + + +-- +-- Name: boards_epic_board_positions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.boards_epic_board_positions ( id bigint NOT NULL, epic_board_id bigint NOT NULL, epic_id bigint NOT NULL, @@ -7188,16 +10341,31 @@ CREATE TABLE boards_epic_board_positions ( group_id bigint ); -CREATE SEQUENCE boards_epic_board_positions_id_seq + +-- +-- Name: boards_epic_board_positions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.boards_epic_board_positions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE boards_epic_board_positions_id_seq OWNED BY boards_epic_board_positions.id; -CREATE TABLE boards_epic_board_recent_visits ( +-- +-- Name: boards_epic_board_positions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.boards_epic_board_positions_id_seq OWNED BY public.boards_epic_board_positions.id; + + +-- +-- Name: boards_epic_board_recent_visits; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.boards_epic_board_recent_visits ( id bigint NOT NULL, user_id bigint NOT NULL, epic_board_id bigint NOT NULL, @@ -7206,16 +10374,31 @@ CREATE TABLE boards_epic_board_recent_visits ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE boards_epic_board_recent_visits_id_seq + +-- +-- Name: boards_epic_board_recent_visits_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.boards_epic_board_recent_visits_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE boards_epic_board_recent_visits_id_seq OWNED BY boards_epic_board_recent_visits.id; -CREATE TABLE boards_epic_boards ( +-- +-- Name: boards_epic_board_recent_visits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.boards_epic_board_recent_visits_id_seq OWNED BY public.boards_epic_board_recent_visits.id; + + +-- +-- Name: boards_epic_boards; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.boards_epic_boards ( id bigint NOT NULL, hide_backlog_list boolean DEFAULT false NOT NULL, hide_closed_list boolean DEFAULT false NOT NULL, @@ -7227,16 +10410,31 @@ CREATE TABLE boards_epic_boards ( CONSTRAINT check_bcbbffe601 CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE boards_epic_boards_id_seq + +-- +-- Name: boards_epic_boards_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.boards_epic_boards_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE boards_epic_boards_id_seq OWNED BY boards_epic_boards.id; -CREATE TABLE boards_epic_list_user_preferences ( +-- +-- Name: boards_epic_boards_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.boards_epic_boards_id_seq OWNED BY public.boards_epic_boards.id; + + +-- +-- Name: boards_epic_list_user_preferences; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.boards_epic_list_user_preferences ( id bigint NOT NULL, user_id bigint NOT NULL, epic_list_id bigint NOT NULL, @@ -7245,16 +10443,31 @@ CREATE TABLE boards_epic_list_user_preferences ( collapsed boolean DEFAULT false NOT NULL ); -CREATE SEQUENCE boards_epic_list_user_preferences_id_seq + +-- +-- Name: boards_epic_list_user_preferences_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.boards_epic_list_user_preferences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE boards_epic_list_user_preferences_id_seq OWNED BY boards_epic_list_user_preferences.id; -CREATE TABLE boards_epic_lists ( +-- +-- Name: boards_epic_list_user_preferences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.boards_epic_list_user_preferences_id_seq OWNED BY public.boards_epic_list_user_preferences.id; + + +-- +-- Name: boards_epic_lists; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.boards_epic_lists ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -7266,16 +10479,31 @@ CREATE TABLE boards_epic_lists ( CONSTRAINT boards_epic_lists_position_constraint CHECK (((list_type <> 1) OR (("position" IS NOT NULL) AND ("position" >= 0)))) ); -CREATE SEQUENCE boards_epic_lists_id_seq + +-- +-- Name: boards_epic_lists_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.boards_epic_lists_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE boards_epic_lists_id_seq OWNED BY boards_epic_lists.id; -CREATE TABLE boards_epic_user_preferences ( +-- +-- Name: boards_epic_lists_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.boards_epic_lists_id_seq OWNED BY public.boards_epic_lists.id; + + +-- +-- Name: boards_epic_user_preferences; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.boards_epic_user_preferences ( id bigint NOT NULL, board_id bigint NOT NULL, user_id bigint NOT NULL, @@ -7284,25 +10512,50 @@ CREATE TABLE boards_epic_user_preferences ( group_id bigint ); -CREATE SEQUENCE boards_epic_user_preferences_id_seq + +-- +-- Name: boards_epic_user_preferences_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.boards_epic_user_preferences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE boards_epic_user_preferences_id_seq OWNED BY boards_epic_user_preferences.id; -CREATE SEQUENCE boards_id_seq +-- +-- Name: boards_epic_user_preferences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.boards_epic_user_preferences_id_seq OWNED BY public.boards_epic_user_preferences.id; + + +-- +-- Name: boards_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.boards_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE boards_id_seq OWNED BY boards.id; -CREATE TABLE broadcast_messages ( +-- +-- Name: boards_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.boards_id_seq OWNED BY public.boards.id; + + +-- +-- Name: broadcast_messages; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.broadcast_messages ( id integer NOT NULL, message text NOT NULL, starts_at timestamp without time zone NOT NULL, @@ -7321,16 +10574,31 @@ CREATE TABLE broadcast_messages ( show_in_cli boolean DEFAULT true NOT NULL ); -CREATE SEQUENCE broadcast_messages_id_seq + +-- +-- Name: broadcast_messages_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.broadcast_messages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE broadcast_messages_id_seq OWNED BY broadcast_messages.id; -CREATE TABLE bulk_import_batch_trackers ( +-- +-- Name: broadcast_messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.broadcast_messages_id_seq OWNED BY public.broadcast_messages.id; + + +-- +-- Name: bulk_import_batch_trackers; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.bulk_import_batch_trackers ( id bigint NOT NULL, tracker_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -7343,16 +10611,31 @@ CREATE TABLE bulk_import_batch_trackers ( CONSTRAINT check_3d6963a51f CHECK ((char_length(error) <= 255)) ); -CREATE SEQUENCE bulk_import_batch_trackers_id_seq + +-- +-- Name: bulk_import_batch_trackers_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.bulk_import_batch_trackers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE bulk_import_batch_trackers_id_seq OWNED BY bulk_import_batch_trackers.id; -CREATE TABLE bulk_import_configurations ( +-- +-- Name: bulk_import_batch_trackers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.bulk_import_batch_trackers_id_seq OWNED BY public.bulk_import_batch_trackers.id; + + +-- +-- Name: bulk_import_configurations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.bulk_import_configurations ( id bigint NOT NULL, bulk_import_id integer NOT NULL, encrypted_url text, @@ -7363,16 +10646,31 @@ CREATE TABLE bulk_import_configurations ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE bulk_import_configurations_id_seq + +-- +-- Name: bulk_import_configurations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.bulk_import_configurations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE bulk_import_configurations_id_seq OWNED BY bulk_import_configurations.id; -CREATE TABLE bulk_import_entities ( +-- +-- Name: bulk_import_configurations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.bulk_import_configurations_id_seq OWNED BY public.bulk_import_configurations.id; + + +-- +-- Name: bulk_import_entities; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.bulk_import_entities ( id bigint NOT NULL, bulk_import_id bigint NOT NULL, parent_id bigint, @@ -7395,16 +10693,31 @@ CREATE TABLE bulk_import_entities ( CONSTRAINT check_b834fff4d9 CHECK ((char_length(destination_namespace) <= 255)) ); -CREATE SEQUENCE bulk_import_entities_id_seq + +-- +-- Name: bulk_import_entities_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.bulk_import_entities_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE bulk_import_entities_id_seq OWNED BY bulk_import_entities.id; -CREATE TABLE bulk_import_export_batches ( +-- +-- Name: bulk_import_entities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.bulk_import_entities_id_seq OWNED BY public.bulk_import_entities.id; + + +-- +-- Name: bulk_import_export_batches; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.bulk_import_export_batches ( id bigint NOT NULL, export_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -7416,16 +10729,31 @@ CREATE TABLE bulk_import_export_batches ( CONSTRAINT check_046dc60dfe CHECK ((char_length(error) <= 255)) ); -CREATE SEQUENCE bulk_import_export_batches_id_seq + +-- +-- Name: bulk_import_export_batches_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.bulk_import_export_batches_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE bulk_import_export_batches_id_seq OWNED BY bulk_import_export_batches.id; -CREATE TABLE bulk_import_export_uploads ( +-- +-- Name: bulk_import_export_batches_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.bulk_import_export_batches_id_seq OWNED BY public.bulk_import_export_batches.id; + + +-- +-- Name: bulk_import_export_uploads; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.bulk_import_export_uploads ( id bigint NOT NULL, export_id bigint NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -7434,16 +10762,31 @@ CREATE TABLE bulk_import_export_uploads ( CONSTRAINT check_5add76239d CHECK ((char_length(export_file) <= 255)) ); -CREATE SEQUENCE bulk_import_export_uploads_id_seq + +-- +-- Name: bulk_import_export_uploads_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.bulk_import_export_uploads_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE bulk_import_export_uploads_id_seq OWNED BY bulk_import_export_uploads.id; -CREATE TABLE bulk_import_exports ( +-- +-- Name: bulk_import_export_uploads_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.bulk_import_export_uploads_id_seq OWNED BY public.bulk_import_export_uploads.id; + + +-- +-- Name: bulk_import_exports; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.bulk_import_exports ( id bigint NOT NULL, group_id bigint, project_id bigint, @@ -7462,16 +10805,31 @@ CREATE TABLE bulk_import_exports ( CONSTRAINT check_9ee6d14d33 CHECK ((char_length(jid) <= 255)) ); -CREATE SEQUENCE bulk_import_exports_id_seq + +-- +-- Name: bulk_import_exports_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.bulk_import_exports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE bulk_import_exports_id_seq OWNED BY bulk_import_exports.id; -CREATE TABLE bulk_import_failures ( +-- +-- Name: bulk_import_exports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.bulk_import_exports_id_seq OWNED BY public.bulk_import_exports.id; + + +-- +-- Name: bulk_import_failures; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.bulk_import_failures ( id bigint NOT NULL, bulk_import_entity_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -7493,16 +10851,31 @@ CREATE TABLE bulk_import_failures ( CONSTRAINT check_f99665a440 CHECK ((char_length(subrelation) <= 255)) ); -CREATE SEQUENCE bulk_import_failures_id_seq + +-- +-- Name: bulk_import_failures_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.bulk_import_failures_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE bulk_import_failures_id_seq OWNED BY bulk_import_failures.id; -CREATE TABLE bulk_import_trackers ( +-- +-- Name: bulk_import_failures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.bulk_import_failures_id_seq OWNED BY public.bulk_import_failures.id; + + +-- +-- Name: bulk_import_trackers; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.bulk_import_trackers ( id bigint NOT NULL, bulk_import_entity_id bigint NOT NULL, relation text NOT NULL, @@ -7523,16 +10896,31 @@ CREATE TABLE bulk_import_trackers ( CONSTRAINT check_next_page_requirement CHECK (((has_next_page IS FALSE) OR (next_page IS NOT NULL))) ); -CREATE SEQUENCE bulk_import_trackers_id_seq + +-- +-- Name: bulk_import_trackers_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.bulk_import_trackers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE bulk_import_trackers_id_seq OWNED BY bulk_import_trackers.id; -CREATE TABLE bulk_imports ( +-- +-- Name: bulk_import_trackers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.bulk_import_trackers_id_seq OWNED BY public.bulk_import_trackers.id; + + +-- +-- Name: bulk_imports; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.bulk_imports ( id bigint NOT NULL, user_id integer NOT NULL, source_type smallint NOT NULL, @@ -7545,16 +10933,31 @@ CREATE TABLE bulk_imports ( CONSTRAINT check_ea4e58775a CHECK ((char_length(source_version) <= 63)) ); -CREATE SEQUENCE bulk_imports_id_seq + +-- +-- Name: bulk_imports_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.bulk_imports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE bulk_imports_id_seq OWNED BY bulk_imports.id; -CREATE TABLE catalog_resource_components ( +-- +-- Name: bulk_imports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.bulk_imports_id_seq OWNED BY public.bulk_imports.id; + + +-- +-- Name: catalog_resource_components; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.catalog_resource_components ( id bigint NOT NULL, catalog_resource_id bigint NOT NULL, version_id bigint NOT NULL, @@ -7568,16 +10971,31 @@ CREATE TABLE catalog_resource_components ( CONSTRAINT check_ddca729980 CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE catalog_resource_components_id_seq + +-- +-- Name: catalog_resource_components_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.catalog_resource_components_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE catalog_resource_components_id_seq OWNED BY catalog_resource_components.id; -CREATE TABLE catalog_resource_versions ( +-- +-- Name: catalog_resource_components_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.catalog_resource_components_id_seq OWNED BY public.catalog_resource_components.id; + + +-- +-- Name: catalog_resource_versions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.catalog_resource_versions ( id bigint NOT NULL, release_id bigint NOT NULL, catalog_resource_id bigint NOT NULL, @@ -7596,16 +11014,31 @@ CREATE TABLE catalog_resource_versions ( CONSTRAINT check_701bdce47b CHECK ((char_length(semver_prerelease) <= 255)) ); -CREATE SEQUENCE catalog_resource_versions_id_seq + +-- +-- Name: catalog_resource_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.catalog_resource_versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE catalog_resource_versions_id_seq OWNED BY catalog_resource_versions.id; -CREATE TABLE catalog_resources ( +-- +-- Name: catalog_resource_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.catalog_resource_versions_id_seq OWNED BY public.catalog_resource_versions.id; + + +-- +-- Name: catalog_resources; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.catalog_resources ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -7620,32 +11053,62 @@ CREATE TABLE catalog_resources ( last_30_day_usage_count_updated_at timestamp with time zone DEFAULT now() NOT NULL ); -CREATE SEQUENCE catalog_resources_id_seq + +-- +-- Name: catalog_resources_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.catalog_resources_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE catalog_resources_id_seq OWNED BY catalog_resources.id; -CREATE TABLE catalog_verified_namespaces ( +-- +-- Name: catalog_resources_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.catalog_resources_id_seq OWNED BY public.catalog_resources.id; + + +-- +-- Name: catalog_verified_namespaces; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.catalog_verified_namespaces ( id bigint NOT NULL, namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, verification_level smallint DEFAULT 0 NOT NULL ); -CREATE SEQUENCE catalog_verified_namespaces_id_seq + +-- +-- Name: catalog_verified_namespaces_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.catalog_verified_namespaces_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE catalog_verified_namespaces_id_seq OWNED BY catalog_verified_namespaces.id; -CREATE TABLE chat_names ( +-- +-- Name: catalog_verified_namespaces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.catalog_verified_namespaces_id_seq OWNED BY public.catalog_verified_namespaces.id; + + +-- +-- Name: chat_names; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.chat_names ( id integer NOT NULL, user_id integer NOT NULL, team_id character varying NOT NULL, @@ -7659,16 +11122,31 @@ CREATE TABLE chat_names ( encrypted_token_iv bytea ); -CREATE SEQUENCE chat_names_id_seq + +-- +-- Name: chat_names_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.chat_names_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE chat_names_id_seq OWNED BY chat_names.id; -CREATE TABLE chat_teams ( +-- +-- Name: chat_names_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.chat_names_id_seq OWNED BY public.chat_names.id; + + +-- +-- Name: chat_teams; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.chat_teams ( id integer NOT NULL, namespace_id integer NOT NULL, team_id character varying, @@ -7677,16 +11155,31 @@ CREATE TABLE chat_teams ( updated_at timestamp without time zone NOT NULL ); -CREATE SEQUENCE chat_teams_id_seq + +-- +-- Name: chat_teams_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.chat_teams_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE chat_teams_id_seq OWNED BY chat_teams.id; -CREATE TABLE ci_build_needs ( +-- +-- Name: chat_teams_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.chat_teams_id_seq OWNED BY public.chat_teams.id; + + +-- +-- Name: ci_build_needs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_build_needs ( name text NOT NULL, artifacts boolean DEFAULT true NOT NULL, optional boolean DEFAULT false NOT NULL, @@ -7695,16 +11188,31 @@ CREATE TABLE ci_build_needs ( id bigint NOT NULL ); -CREATE SEQUENCE ci_build_needs_id_seq + +-- +-- Name: ci_build_needs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_build_needs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_build_needs_id_seq OWNED BY ci_build_needs.id; -CREATE TABLE ci_build_pending_states ( +-- +-- Name: ci_build_needs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_build_needs_id_seq OWNED BY public.ci_build_needs.id; + + +-- +-- Name: ci_build_pending_states; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_build_pending_states ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -7716,23 +11224,43 @@ CREATE TABLE ci_build_pending_states ( partition_id bigint NOT NULL ); -CREATE SEQUENCE ci_build_pending_states_id_seq + +-- +-- Name: ci_build_pending_states_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_build_pending_states_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_build_pending_states_id_seq OWNED BY ci_build_pending_states.id; -CREATE TABLE ci_build_report_results ( +-- +-- Name: ci_build_pending_states_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_build_pending_states_id_seq OWNED BY public.ci_build_pending_states.id; + + +-- +-- Name: ci_build_report_results; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_build_report_results ( build_id bigint NOT NULL, project_id bigint NOT NULL, data jsonb DEFAULT '{}'::jsonb NOT NULL, partition_id bigint NOT NULL ); -CREATE TABLE ci_build_trace_chunks ( + +-- +-- Name: ci_build_trace_chunks; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_build_trace_chunks ( id bigint NOT NULL, chunk_index integer NOT NULL, data_store integer NOT NULL, @@ -7743,16 +11271,31 @@ CREATE TABLE ci_build_trace_chunks ( partition_id bigint NOT NULL ); -CREATE SEQUENCE ci_build_trace_chunks_id_seq + +-- +-- Name: ci_build_trace_chunks_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_build_trace_chunks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_build_trace_chunks_id_seq OWNED BY ci_build_trace_chunks.id; -CREATE TABLE p_ci_build_trace_metadata ( +-- +-- Name: ci_build_trace_chunks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_build_trace_chunks_id_seq OWNED BY public.ci_build_trace_chunks.id; + + +-- +-- Name: p_ci_build_trace_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.p_ci_build_trace_metadata ( build_id bigint NOT NULL, partition_id bigint NOT NULL, trace_artifact_id bigint, @@ -7764,7 +11307,12 @@ CREATE TABLE p_ci_build_trace_metadata ( ) PARTITION BY LIST (partition_id); -CREATE TABLE ci_build_trace_metadata ( + +-- +-- Name: ci_build_trace_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_build_trace_metadata ( build_id bigint NOT NULL, partition_id bigint NOT NULL, trace_artifact_id bigint, @@ -7775,7 +11323,12 @@ CREATE TABLE ci_build_trace_metadata ( remote_checksum bytea ); -CREATE TABLE ci_builds ( + +-- +-- Name: ci_builds; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_builds ( status character varying, finished_at timestamp without time zone, created_at timestamp without time zone, @@ -7827,25 +11380,50 @@ CREATE TABLE ci_builds ( CONSTRAINT check_9aa9432137 CHECK ((project_id IS NOT NULL)) ); -CREATE SEQUENCE ci_builds_id_seq + +-- +-- Name: ci_builds_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_builds_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_builds_id_seq OWNED BY p_ci_builds.id; -CREATE SEQUENCE ci_builds_metadata_id_seq +-- +-- Name: ci_builds_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_builds_id_seq OWNED BY public.p_ci_builds.id; + + +-- +-- Name: ci_builds_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_builds_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_builds_metadata_id_seq OWNED BY p_ci_builds_metadata.id; -CREATE TABLE ci_builds_metadata ( +-- +-- Name: ci_builds_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_builds_metadata_id_seq OWNED BY public.p_ci_builds_metadata.id; + + +-- +-- Name: ci_builds_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_builds_metadata ( project_id integer NOT NULL, timeout integer, timeout_source integer DEFAULT 1 NOT NULL, @@ -7857,7 +11435,7 @@ CREATE TABLE ci_builds_metadata ( expanded_environment_name character varying(255), secrets jsonb DEFAULT '{}'::jsonb NOT NULL, build_id bigint NOT NULL, - id bigint DEFAULT nextval('ci_builds_metadata_id_seq'::regclass) NOT NULL, + id bigint DEFAULT nextval('public.ci_builds_metadata_id_seq'::regclass) NOT NULL, runtime_runner_features jsonb DEFAULT '{}'::jsonb NOT NULL, id_tokens jsonb DEFAULT '{}'::jsonb NOT NULL, partition_id bigint NOT NULL, @@ -7865,7 +11443,12 @@ CREATE TABLE ci_builds_metadata ( exit_code smallint ); -CREATE TABLE ci_builds_runner_session ( + +-- +-- Name: ci_builds_runner_session; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_builds_runner_session ( id bigint NOT NULL, url character varying NOT NULL, certificate character varying, @@ -7874,16 +11457,31 @@ CREATE TABLE ci_builds_runner_session ( partition_id bigint NOT NULL ); -CREATE SEQUENCE ci_builds_runner_session_id_seq + +-- +-- Name: ci_builds_runner_session_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_builds_runner_session_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_builds_runner_session_id_seq OWNED BY ci_builds_runner_session.id; -CREATE TABLE ci_cost_settings ( +-- +-- Name: ci_builds_runner_session_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_builds_runner_session_id_seq OWNED BY public.ci_builds_runner_session.id; + + +-- +-- Name: ci_cost_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_cost_settings ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, runner_id bigint NOT NULL, @@ -7892,7 +11490,12 @@ CREATE TABLE ci_cost_settings ( os_plan_factor double precision DEFAULT 0.5 NOT NULL ); -CREATE TABLE ci_daily_build_group_report_results ( + +-- +-- Name: ci_daily_build_group_report_results; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_daily_build_group_report_results ( id bigint NOT NULL, date date NOT NULL, project_id bigint NOT NULL, @@ -7905,16 +11508,31 @@ CREATE TABLE ci_daily_build_group_report_results ( partition_id bigint NOT NULL ); -CREATE SEQUENCE ci_daily_build_group_report_results_id_seq + +-- +-- Name: ci_daily_build_group_report_results_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_daily_build_group_report_results_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_daily_build_group_report_results_id_seq OWNED BY ci_daily_build_group_report_results.id; -CREATE TABLE ci_deleted_objects ( +-- +-- Name: ci_daily_build_group_report_results_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_daily_build_group_report_results_id_seq OWNED BY public.ci_daily_build_group_report_results.id; + + +-- +-- Name: ci_deleted_objects; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_deleted_objects ( id bigint NOT NULL, file_store smallint DEFAULT 1 NOT NULL, pick_up_at timestamp with time zone DEFAULT now() NOT NULL, @@ -7923,16 +11541,31 @@ CREATE TABLE ci_deleted_objects ( CONSTRAINT check_5e151d6912 CHECK ((char_length(store_dir) <= 1024)) ); -CREATE SEQUENCE ci_deleted_objects_id_seq + +-- +-- Name: ci_deleted_objects_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_deleted_objects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_deleted_objects_id_seq OWNED BY ci_deleted_objects.id; -CREATE TABLE ci_freeze_periods ( +-- +-- Name: ci_deleted_objects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_deleted_objects_id_seq OWNED BY public.ci_deleted_objects.id; + + +-- +-- Name: ci_freeze_periods; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_freeze_periods ( id bigint NOT NULL, project_id bigint NOT NULL, freeze_start character varying(998) NOT NULL, @@ -7942,16 +11575,31 @@ CREATE TABLE ci_freeze_periods ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE ci_freeze_periods_id_seq + +-- +-- Name: ci_freeze_periods_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_freeze_periods_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_freeze_periods_id_seq OWNED BY ci_freeze_periods.id; -CREATE TABLE ci_group_variables ( +-- +-- Name: ci_freeze_periods_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_freeze_periods_id_seq OWNED BY public.ci_freeze_periods.id; + + +-- +-- Name: ci_group_variables; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_group_variables ( id integer NOT NULL, key character varying NOT NULL, value text, @@ -7972,16 +11620,31 @@ CREATE TABLE ci_group_variables ( CONSTRAINT check_e2e50ff879 CHECK ((char_length(description) <= 255)) ); -CREATE SEQUENCE ci_group_variables_id_seq + +-- +-- Name: ci_group_variables_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_group_variables_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_group_variables_id_seq OWNED BY ci_group_variables.id; -CREATE TABLE ci_instance_variables ( +-- +-- Name: ci_group_variables_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_group_variables_id_seq OWNED BY public.ci_group_variables.id; + + +-- +-- Name: ci_instance_variables; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_instance_variables ( id bigint NOT NULL, variable_type smallint DEFAULT 1 NOT NULL, masked boolean DEFAULT false, @@ -7997,16 +11660,31 @@ CREATE TABLE ci_instance_variables ( CONSTRAINT check_a0a9762afa CHECK ((char_length(description) <= 255)) ); -CREATE SEQUENCE ci_instance_variables_id_seq + +-- +-- Name: ci_instance_variables_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_instance_variables_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_instance_variables_id_seq OWNED BY ci_instance_variables.id; -CREATE TABLE ci_job_artifact_states ( +-- +-- Name: ci_instance_variables_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_instance_variables_id_seq OWNED BY public.ci_instance_variables.id; + + +-- +-- Name: ci_job_artifact_states; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_job_artifact_states ( verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, verified_at timestamp with time zone, @@ -8019,7 +11697,12 @@ CREATE TABLE ci_job_artifact_states ( CONSTRAINT check_df832b66ea CHECK ((char_length(verification_failure) <= 255)) ); -CREATE TABLE ci_job_artifacts ( + +-- +-- Name: ci_job_artifacts; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_job_artifacts ( project_id integer NOT NULL, file_type integer NOT NULL, size bigint, @@ -8041,16 +11724,31 @@ CREATE TABLE ci_job_artifacts ( CONSTRAINT check_9f04410cf4 CHECK ((char_length(file_final_path) <= 1024)) ); -CREATE SEQUENCE ci_job_artifacts_id_seq + +-- +-- Name: ci_job_artifacts_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_job_artifacts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_job_artifacts_id_seq OWNED BY p_ci_job_artifacts.id; -CREATE TABLE ci_job_token_group_scope_links ( +-- +-- Name: ci_job_artifacts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_job_artifacts_id_seq OWNED BY public.p_ci_job_artifacts.id; + + +-- +-- Name: ci_job_token_group_scope_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_job_token_group_scope_links ( id bigint NOT NULL, source_project_id bigint NOT NULL, target_group_id bigint NOT NULL, @@ -8058,16 +11756,31 @@ CREATE TABLE ci_job_token_group_scope_links ( created_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE ci_job_token_group_scope_links_id_seq + +-- +-- Name: ci_job_token_group_scope_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_job_token_group_scope_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_job_token_group_scope_links_id_seq OWNED BY ci_job_token_group_scope_links.id; -CREATE TABLE ci_job_token_project_scope_links ( +-- +-- Name: ci_job_token_group_scope_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_job_token_group_scope_links_id_seq OWNED BY public.ci_job_token_group_scope_links.id; + + +-- +-- Name: ci_job_token_project_scope_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_job_token_project_scope_links ( id bigint NOT NULL, source_project_id bigint NOT NULL, target_project_id bigint NOT NULL, @@ -8076,16 +11789,31 @@ CREATE TABLE ci_job_token_project_scope_links ( direction smallint DEFAULT 0 NOT NULL ); -CREATE SEQUENCE ci_job_token_project_scope_links_id_seq + +-- +-- Name: ci_job_token_project_scope_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_job_token_project_scope_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_job_token_project_scope_links_id_seq OWNED BY ci_job_token_project_scope_links.id; -CREATE TABLE ci_job_variables ( +-- +-- Name: ci_job_token_project_scope_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_job_token_project_scope_links_id_seq OWNED BY public.ci_job_token_project_scope_links.id; + + +-- +-- Name: ci_job_variables; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_job_variables ( id bigint NOT NULL, key character varying NOT NULL, encrypted_value text, @@ -8098,16 +11826,31 @@ CREATE TABLE ci_job_variables ( project_id bigint ); -CREATE SEQUENCE ci_job_variables_id_seq + +-- +-- Name: ci_job_variables_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_job_variables_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_job_variables_id_seq OWNED BY ci_job_variables.id; -CREATE TABLE ci_minutes_additional_packs ( +-- +-- Name: ci_job_variables_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_job_variables_id_seq OWNED BY public.ci_job_variables.id; + + +-- +-- Name: ci_minutes_additional_packs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_minutes_additional_packs ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -8118,31 +11861,61 @@ CREATE TABLE ci_minutes_additional_packs ( CONSTRAINT check_d7ef254af0 CHECK ((char_length(purchase_xid) <= 50)) ); -CREATE SEQUENCE ci_minutes_additional_packs_id_seq + +-- +-- Name: ci_minutes_additional_packs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_minutes_additional_packs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_minutes_additional_packs_id_seq OWNED BY ci_minutes_additional_packs.id; -CREATE TABLE ci_namespace_mirrors ( +-- +-- Name: ci_minutes_additional_packs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_minutes_additional_packs_id_seq OWNED BY public.ci_minutes_additional_packs.id; + + +-- +-- Name: ci_namespace_mirrors; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_namespace_mirrors ( id bigint NOT NULL, namespace_id integer NOT NULL, traversal_ids integer[] DEFAULT '{}'::integer[] NOT NULL ); -CREATE SEQUENCE ci_namespace_mirrors_id_seq + +-- +-- Name: ci_namespace_mirrors_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_namespace_mirrors_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_namespace_mirrors_id_seq OWNED BY ci_namespace_mirrors.id; -CREATE TABLE ci_namespace_monthly_usages ( +-- +-- Name: ci_namespace_mirrors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_namespace_mirrors_id_seq OWNED BY public.ci_namespace_mirrors.id; + + +-- +-- Name: ci_namespace_monthly_usages; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_namespace_monthly_usages ( id bigint NOT NULL, namespace_id bigint NOT NULL, date date NOT NULL, @@ -8153,23 +11926,43 @@ CREATE TABLE ci_namespace_monthly_usages ( CONSTRAINT ci_namespace_monthly_usages_year_month_constraint CHECK ((date = date_trunc('month'::text, (date)::timestamp with time zone))) ); -CREATE SEQUENCE ci_namespace_monthly_usages_id_seq + +-- +-- Name: ci_namespace_monthly_usages_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_namespace_monthly_usages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_namespace_monthly_usages_id_seq OWNED BY ci_namespace_monthly_usages.id; -CREATE TABLE ci_partitions ( +-- +-- Name: ci_namespace_monthly_usages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_namespace_monthly_usages_id_seq OWNED BY public.ci_namespace_monthly_usages.id; + + +-- +-- Name: ci_partitions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_partitions ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, status smallint DEFAULT 0 NOT NULL ); -CREATE TABLE ci_pending_builds ( + +-- +-- Name: ci_pending_builds; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_pending_builds ( id bigint NOT NULL, build_id bigint NOT NULL, project_id bigint NOT NULL, @@ -8184,16 +11977,31 @@ CREATE TABLE ci_pending_builds ( plan_id integer ); -CREATE SEQUENCE ci_pending_builds_id_seq + +-- +-- Name: ci_pending_builds_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_pending_builds_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_pending_builds_id_seq OWNED BY ci_pending_builds.id; -CREATE TABLE ci_pipeline_artifacts ( +-- +-- Name: ci_pending_builds_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_pending_builds_id_seq OWNED BY public.ci_pending_builds.id; + + +-- +-- Name: ci_pipeline_artifacts; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_pipeline_artifacts ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -8219,16 +12027,31 @@ CREATE TABLE ci_pipeline_artifacts ( CONSTRAINT ci_pipeline_artifacts_verification_failure_text_limit CHECK ((char_length(verification_failure) <= 255)) ); -CREATE SEQUENCE ci_pipeline_artifacts_id_seq + +-- +-- Name: ci_pipeline_artifacts_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_pipeline_artifacts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_pipeline_artifacts_id_seq OWNED BY ci_pipeline_artifacts.id; -CREATE TABLE ci_pipeline_chat_data ( +-- +-- Name: ci_pipeline_artifacts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_pipeline_artifacts_id_seq OWNED BY public.ci_pipeline_artifacts.id; + + +-- +-- Name: ci_pipeline_chat_data; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_pipeline_chat_data ( id bigint NOT NULL, chat_name_id integer NOT NULL, response_url text NOT NULL, @@ -8236,16 +12059,31 @@ CREATE TABLE ci_pipeline_chat_data ( partition_id bigint NOT NULL ); -CREATE SEQUENCE ci_pipeline_chat_data_id_seq + +-- +-- Name: ci_pipeline_chat_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_pipeline_chat_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_pipeline_chat_data_id_seq OWNED BY ci_pipeline_chat_data.id; -CREATE TABLE ci_pipeline_messages ( +-- +-- Name: ci_pipeline_chat_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_pipeline_chat_data_id_seq OWNED BY public.ci_pipeline_chat_data.id; + + +-- +-- Name: ci_pipeline_messages; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_pipeline_messages ( id bigint NOT NULL, severity smallint DEFAULT 0 NOT NULL, content text NOT NULL, @@ -8254,16 +12092,31 @@ CREATE TABLE ci_pipeline_messages ( CONSTRAINT check_58ca2981b2 CHECK ((char_length(content) <= 10000)) ); -CREATE SEQUENCE ci_pipeline_messages_id_seq + +-- +-- Name: ci_pipeline_messages_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_pipeline_messages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_pipeline_messages_id_seq OWNED BY ci_pipeline_messages.id; -CREATE TABLE ci_pipeline_metadata ( +-- +-- Name: ci_pipeline_messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_pipeline_messages_id_seq OWNED BY public.ci_pipeline_messages.id; + + +-- +-- Name: ci_pipeline_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_pipeline_metadata ( project_id bigint NOT NULL, pipeline_id bigint NOT NULL, name text, @@ -8273,7 +12126,12 @@ CREATE TABLE ci_pipeline_metadata ( CONSTRAINT check_9d3665463c CHECK ((char_length(name) <= 255)) ); -CREATE TABLE ci_pipeline_schedule_variables ( + +-- +-- Name: ci_pipeline_schedule_variables; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_pipeline_schedule_variables ( id integer NOT NULL, key character varying NOT NULL, value text, @@ -8287,16 +12145,31 @@ CREATE TABLE ci_pipeline_schedule_variables ( raw boolean DEFAULT false NOT NULL ); -CREATE SEQUENCE ci_pipeline_schedule_variables_id_seq + +-- +-- Name: ci_pipeline_schedule_variables_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_pipeline_schedule_variables_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_pipeline_schedule_variables_id_seq OWNED BY ci_pipeline_schedule_variables.id; -CREATE TABLE ci_pipeline_schedules ( +-- +-- Name: ci_pipeline_schedule_variables_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_pipeline_schedule_variables_id_seq OWNED BY public.ci_pipeline_schedule_variables.id; + + +-- +-- Name: ci_pipeline_schedules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_pipeline_schedules ( id integer NOT NULL, description character varying, ref character varying, @@ -8310,16 +12183,31 @@ CREATE TABLE ci_pipeline_schedules ( updated_at timestamp without time zone ); -CREATE SEQUENCE ci_pipeline_schedules_id_seq + +-- +-- Name: ci_pipeline_schedules_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_pipeline_schedules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_pipeline_schedules_id_seq OWNED BY ci_pipeline_schedules.id; -CREATE TABLE ci_pipeline_variables ( +-- +-- Name: ci_pipeline_schedules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_pipeline_schedules_id_seq OWNED BY public.ci_pipeline_schedules.id; + + +-- +-- Name: ci_pipeline_variables; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_pipeline_variables ( key character varying NOT NULL, value text, encrypted_value text, @@ -8332,62 +12220,31 @@ CREATE TABLE ci_pipeline_variables ( pipeline_id bigint NOT NULL ); -CREATE SEQUENCE ci_pipeline_variables_id_seq + +-- +-- Name: ci_pipeline_variables_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_pipeline_variables_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_pipeline_variables_id_seq OWNED BY p_ci_pipeline_variables.id; -CREATE TABLE p_ci_pipelines ( - ref character varying, - sha character varying, - before_sha character varying, - created_at timestamp without time zone, - updated_at timestamp without time zone, - tag boolean DEFAULT false, - yaml_errors text, - committed_at timestamp without time zone, - project_id integer, - status character varying, - started_at timestamp without time zone, - finished_at timestamp without time zone, - duration integer, - user_id integer, - lock_version integer DEFAULT 0, - pipeline_schedule_id integer, - source integer, - config_source integer, - protected boolean, - failure_reason integer, - iid integer, - merge_request_id integer, - source_sha bytea, - target_sha bytea, - external_pull_request_id bigint, - ci_ref_id bigint, - locked smallint DEFAULT 1 NOT NULL, - partition_id bigint NOT NULL, - id bigint NOT NULL, - auto_canceled_by_id bigint, - auto_canceled_by_partition_id bigint, - CONSTRAINT check_2ba2a044b9 CHECK ((project_id IS NOT NULL)), - CONSTRAINT check_d7e99a025e CHECK ((lock_version IS NOT NULL)) -) -PARTITION BY LIST (partition_id); +-- +-- Name: ci_pipeline_variables_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_pipeline_variables_id_seq OWNED BY public.p_ci_pipeline_variables.id; -CREATE SEQUENCE ci_pipelines_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; -ALTER SEQUENCE ci_pipelines_id_seq OWNED BY p_ci_pipelines.id; +-- +-- Name: p_ci_pipelines; Type: TABLE; Schema: public; Owner: - +-- -CREATE TABLE ci_pipelines ( +CREATE TABLE public.p_ci_pipelines ( ref character varying, sha character varying, before_sha character varying, @@ -8416,35 +12273,121 @@ CREATE TABLE ci_pipelines ( ci_ref_id bigint, locked smallint DEFAULT 1 NOT NULL, partition_id bigint NOT NULL, - id bigint DEFAULT nextval('ci_pipelines_id_seq'::regclass) NOT NULL, + id bigint NOT NULL, + auto_canceled_by_id bigint, + auto_canceled_by_partition_id bigint, + CONSTRAINT check_2ba2a044b9 CHECK ((project_id IS NOT NULL)), + CONSTRAINT check_d7e99a025e CHECK ((lock_version IS NOT NULL)) +) +PARTITION BY LIST (partition_id); + + +-- +-- Name: ci_pipelines_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_pipelines_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; + + +-- +-- Name: ci_pipelines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_pipelines_id_seq OWNED BY public.p_ci_pipelines.id; + + +-- +-- Name: ci_pipelines; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_pipelines ( + ref character varying, + sha character varying, + before_sha character varying, + created_at timestamp without time zone, + updated_at timestamp without time zone, + tag boolean DEFAULT false, + yaml_errors text, + committed_at timestamp without time zone, + project_id integer, + status character varying, + started_at timestamp without time zone, + finished_at timestamp without time zone, + duration integer, + user_id integer, + lock_version integer DEFAULT 0, + pipeline_schedule_id integer, + source integer, + config_source integer, + protected boolean, + failure_reason integer, + iid integer, + merge_request_id integer, + source_sha bytea, + target_sha bytea, + external_pull_request_id bigint, + ci_ref_id bigint, + locked smallint DEFAULT 1 NOT NULL, + partition_id bigint NOT NULL, + id bigint DEFAULT nextval('public.ci_pipelines_id_seq'::regclass) NOT NULL, auto_canceled_by_id bigint, auto_canceled_by_partition_id bigint, CONSTRAINT check_2ba2a044b9 CHECK ((project_id IS NOT NULL)), CONSTRAINT check_d7e99a025e CHECK ((lock_version IS NOT NULL)) ); -CREATE TABLE ci_pipelines_config ( + +-- +-- Name: ci_pipelines_config; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_pipelines_config ( pipeline_id bigint NOT NULL, content text NOT NULL, partition_id bigint NOT NULL ); -CREATE TABLE ci_project_mirrors ( + +-- +-- Name: ci_project_mirrors; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_project_mirrors ( id bigint NOT NULL, project_id integer NOT NULL, namespace_id integer NOT NULL ); -CREATE SEQUENCE ci_project_mirrors_id_seq + +-- +-- Name: ci_project_mirrors_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_project_mirrors_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_project_mirrors_id_seq OWNED BY ci_project_mirrors.id; -CREATE TABLE ci_project_monthly_usages ( +-- +-- Name: ci_project_mirrors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_project_mirrors_id_seq OWNED BY public.ci_project_mirrors.id; + + +-- +-- Name: ci_project_monthly_usages; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_project_monthly_usages ( id bigint NOT NULL, project_id bigint NOT NULL, date date NOT NULL, @@ -8454,16 +12397,31 @@ CREATE TABLE ci_project_monthly_usages ( CONSTRAINT ci_project_monthly_usages_year_month_constraint CHECK ((date = date_trunc('month'::text, (date)::timestamp with time zone))) ); -CREATE SEQUENCE ci_project_monthly_usages_id_seq + +-- +-- Name: ci_project_monthly_usages_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_project_monthly_usages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_project_monthly_usages_id_seq OWNED BY ci_project_monthly_usages.id; -CREATE TABLE ci_refs ( +-- +-- Name: ci_project_monthly_usages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_project_monthly_usages_id_seq OWNED BY public.ci_project_monthly_usages.id; + + +-- +-- Name: ci_refs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_refs ( id bigint NOT NULL, project_id bigint NOT NULL, lock_version integer DEFAULT 0 NOT NULL, @@ -8471,16 +12429,31 @@ CREATE TABLE ci_refs ( ref_path text NOT NULL ); -CREATE SEQUENCE ci_refs_id_seq + +-- +-- Name: ci_refs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_refs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_refs_id_seq OWNED BY ci_refs.id; -CREATE TABLE ci_resource_groups ( +-- +-- Name: ci_refs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_refs_id_seq OWNED BY public.ci_refs.id; + + +-- +-- Name: ci_resource_groups; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_resource_groups ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -8489,16 +12462,31 @@ CREATE TABLE ci_resource_groups ( process_mode smallint DEFAULT 0 NOT NULL ); -CREATE SEQUENCE ci_resource_groups_id_seq + +-- +-- Name: ci_resource_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_resource_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_resource_groups_id_seq OWNED BY ci_resource_groups.id; -CREATE TABLE ci_resources ( +-- +-- Name: ci_resource_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_resource_groups_id_seq OWNED BY public.ci_resource_groups.id; + + +-- +-- Name: ci_resources; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_resources ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -8507,16 +12495,31 @@ CREATE TABLE ci_resources ( partition_id bigint ); -CREATE SEQUENCE ci_resources_id_seq + +-- +-- Name: ci_resources_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_resources_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_resources_id_seq OWNED BY ci_resources.id; -CREATE TABLE ci_runner_machines ( +-- +-- Name: ci_resources_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_resources_id_seq OWNED BY public.ci_resources.id; + + +-- +-- Name: ci_runner_machines; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_runner_machines ( id bigint NOT NULL, runner_id bigint NOT NULL, executor_type smallint, @@ -8540,32 +12543,62 @@ CREATE TABLE ci_runner_machines ( CONSTRAINT check_f214590856 CHECK ((char_length(ip_address) <= 1024)) ); -CREATE SEQUENCE ci_runner_machines_id_seq + +-- +-- Name: ci_runner_machines_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_runner_machines_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_runner_machines_id_seq OWNED BY ci_runner_machines.id; -CREATE TABLE ci_runner_namespaces ( +-- +-- Name: ci_runner_machines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_runner_machines_id_seq OWNED BY public.ci_runner_machines.id; + + +-- +-- Name: ci_runner_namespaces; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_runner_namespaces ( id integer NOT NULL, runner_id integer, namespace_id integer, CONSTRAINT check_5f3dce48df CHECK ((namespace_id IS NOT NULL)) ); -CREATE SEQUENCE ci_runner_namespaces_id_seq + +-- +-- Name: ci_runner_namespaces_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_runner_namespaces_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_runner_namespaces_id_seq OWNED BY ci_runner_namespaces.id; -CREATE TABLE ci_runner_projects ( +-- +-- Name: ci_runner_namespaces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_runner_namespaces_id_seq OWNED BY public.ci_runner_namespaces.id; + + +-- +-- Name: ci_runner_projects; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_runner_projects ( id integer NOT NULL, runner_id integer NOT NULL, created_at timestamp without time zone, @@ -8574,22 +12607,42 @@ CREATE TABLE ci_runner_projects ( CONSTRAINT check_db297016c6 CHECK ((project_id IS NOT NULL)) ); -CREATE SEQUENCE ci_runner_projects_id_seq + +-- +-- Name: ci_runner_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_runner_projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_runner_projects_id_seq OWNED BY ci_runner_projects.id; -CREATE TABLE ci_runner_versions ( +-- +-- Name: ci_runner_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_runner_projects_id_seq OWNED BY public.ci_runner_projects.id; + + +-- +-- Name: ci_runner_versions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_runner_versions ( version text NOT NULL, status smallint, CONSTRAINT check_b5a3714594 CHECK ((char_length(version) <= 2048)) ); -CREATE TABLE ci_runners ( + +-- +-- Name: ci_runners; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_runners ( id integer NOT NULL, token character varying, created_at timestamp without time zone, @@ -8616,16 +12669,31 @@ CREATE TABLE ci_runners ( CONSTRAINT check_ce275cee06 CHECK ((char_length(maintainer_note) <= 1024)) ); -CREATE SEQUENCE ci_runners_id_seq + +-- +-- Name: ci_runners_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_runners_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_runners_id_seq OWNED BY ci_runners.id; -CREATE TABLE ci_running_builds ( +-- +-- Name: ci_runners_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_runners_id_seq OWNED BY public.ci_runners.id; + + +-- +-- Name: ci_running_builds; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_running_builds ( id bigint NOT NULL, build_id bigint NOT NULL, project_id bigint NOT NULL, @@ -8636,16 +12704,31 @@ CREATE TABLE ci_running_builds ( runner_owner_namespace_xid bigint ); -CREATE SEQUENCE ci_running_builds_id_seq + +-- +-- Name: ci_running_builds_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_running_builds_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_running_builds_id_seq OWNED BY ci_running_builds.id; -CREATE TABLE ci_secure_file_states ( +-- +-- Name: ci_running_builds_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_running_builds_id_seq OWNED BY public.ci_running_builds.id; + + +-- +-- Name: ci_secure_file_states; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_secure_file_states ( verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, verified_at timestamp with time zone, @@ -8657,16 +12740,31 @@ CREATE TABLE ci_secure_file_states ( CONSTRAINT check_a79e5a9261 CHECK ((char_length(verification_failure) <= 255)) ); -CREATE SEQUENCE ci_secure_file_states_ci_secure_file_id_seq + +-- +-- Name: ci_secure_file_states_ci_secure_file_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_secure_file_states_ci_secure_file_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_secure_file_states_ci_secure_file_id_seq OWNED BY ci_secure_file_states.ci_secure_file_id; -CREATE TABLE ci_secure_files ( +-- +-- Name: ci_secure_file_states_ci_secure_file_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_secure_file_states_ci_secure_file_id_seq OWNED BY public.ci_secure_file_states.ci_secure_file_id; + + +-- +-- Name: ci_secure_files; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_secure_files ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -8683,16 +12781,31 @@ CREATE TABLE ci_secure_files ( CONSTRAINT check_7279b4e293 CHECK ((char_length(key_data) <= 128)) ); -CREATE SEQUENCE ci_secure_files_id_seq + +-- +-- Name: ci_secure_files_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_secure_files_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_secure_files_id_seq OWNED BY ci_secure_files.id; -CREATE TABLE ci_sources_pipelines ( +-- +-- Name: ci_secure_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_secure_files_id_seq OWNED BY public.ci_secure_files.id; + + +-- +-- Name: ci_sources_pipelines; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_sources_pipelines ( id integer NOT NULL, project_id integer, source_project_id integer, @@ -8703,32 +12816,62 @@ CREATE TABLE ci_sources_pipelines ( source_pipeline_id bigint ); -CREATE SEQUENCE ci_sources_pipelines_id_seq + +-- +-- Name: ci_sources_pipelines_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_sources_pipelines_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_sources_pipelines_id_seq OWNED BY ci_sources_pipelines.id; -CREATE TABLE ci_sources_projects ( +-- +-- Name: ci_sources_pipelines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_sources_pipelines_id_seq OWNED BY public.ci_sources_pipelines.id; + + +-- +-- Name: ci_sources_projects; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_sources_projects ( id bigint NOT NULL, pipeline_id bigint NOT NULL, source_project_id bigint NOT NULL, partition_id bigint NOT NULL ); -CREATE SEQUENCE ci_sources_projects_id_seq + +-- +-- Name: ci_sources_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_sources_projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_sources_projects_id_seq OWNED BY ci_sources_projects.id; -CREATE TABLE ci_stages ( +-- +-- Name: ci_sources_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_sources_projects_id_seq OWNED BY public.ci_sources_projects.id; + + +-- +-- Name: ci_stages; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_stages ( project_id integer, created_at timestamp without time zone, updated_at timestamp without time zone, @@ -8742,32 +12885,62 @@ CREATE TABLE ci_stages ( CONSTRAINT check_81b431e49b CHECK ((lock_version IS NOT NULL)) ); -CREATE SEQUENCE ci_stages_id_seq + +-- +-- Name: ci_stages_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_stages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_stages_id_seq OWNED BY p_ci_stages.id; -CREATE TABLE ci_subscriptions_projects ( +-- +-- Name: ci_stages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_stages_id_seq OWNED BY public.p_ci_stages.id; + + +-- +-- Name: ci_subscriptions_projects; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_subscriptions_projects ( id bigint NOT NULL, downstream_project_id bigint NOT NULL, upstream_project_id bigint NOT NULL, author_id bigint ); -CREATE SEQUENCE ci_subscriptions_projects_id_seq + +-- +-- Name: ci_subscriptions_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_subscriptions_projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_subscriptions_projects_id_seq OWNED BY ci_subscriptions_projects.id; -CREATE TABLE ci_trigger_requests ( +-- +-- Name: ci_subscriptions_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_subscriptions_projects_id_seq OWNED BY public.ci_subscriptions_projects.id; + + +-- +-- Name: ci_trigger_requests; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_trigger_requests ( id integer NOT NULL, trigger_id integer NOT NULL, variables text, @@ -8776,16 +12949,31 @@ CREATE TABLE ci_trigger_requests ( commit_id integer ); -CREATE SEQUENCE ci_trigger_requests_id_seq + +-- +-- Name: ci_trigger_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_trigger_requests_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_trigger_requests_id_seq OWNED BY ci_trigger_requests.id; -CREATE TABLE ci_triggers ( +-- +-- Name: ci_trigger_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_trigger_requests_id_seq OWNED BY public.ci_trigger_requests.id; + + +-- +-- Name: ci_triggers; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_triggers ( id integer NOT NULL, token character varying, created_at timestamp without time zone, @@ -8797,16 +12985,31 @@ CREATE TABLE ci_triggers ( encrypted_token_iv bytea ); -CREATE SEQUENCE ci_triggers_id_seq + +-- +-- Name: ci_triggers_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_triggers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_triggers_id_seq OWNED BY ci_triggers.id; -CREATE TABLE ci_unit_test_failures ( +-- +-- Name: ci_triggers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_triggers_id_seq OWNED BY public.ci_triggers.id; + + +-- +-- Name: ci_unit_test_failures; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_unit_test_failures ( id bigint NOT NULL, failed_at timestamp with time zone NOT NULL, unit_test_id bigint NOT NULL, @@ -8814,16 +13017,31 @@ CREATE TABLE ci_unit_test_failures ( partition_id bigint NOT NULL ); -CREATE SEQUENCE ci_unit_test_failures_id_seq + +-- +-- Name: ci_unit_test_failures_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_unit_test_failures_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_unit_test_failures_id_seq OWNED BY ci_unit_test_failures.id; -CREATE TABLE ci_unit_tests ( +-- +-- Name: ci_unit_test_failures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_unit_test_failures_id_seq OWNED BY public.ci_unit_test_failures.id; + + +-- +-- Name: ci_unit_tests; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_unit_tests ( id bigint NOT NULL, project_id bigint NOT NULL, key_hash text NOT NULL, @@ -8834,16 +13052,31 @@ CREATE TABLE ci_unit_tests ( CONSTRAINT check_c2d57b3c49 CHECK ((char_length(suite_name) <= 255)) ); -CREATE SEQUENCE ci_unit_tests_id_seq + +-- +-- Name: ci_unit_tests_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_unit_tests_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_unit_tests_id_seq OWNED BY ci_unit_tests.id; -CREATE TABLE ci_variables ( +-- +-- Name: ci_unit_tests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_unit_tests_id_seq OWNED BY public.ci_unit_tests.id; + + +-- +-- Name: ci_variables; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ci_variables ( id integer NOT NULL, key character varying NOT NULL, value text, @@ -8861,32 +13094,62 @@ CREATE TABLE ci_variables ( CONSTRAINT check_7e46c006aa CHECK ((char_length(description) <= 255)) ); -CREATE SEQUENCE ci_variables_id_seq + +-- +-- Name: ci_variables_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ci_variables_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ci_variables_id_seq OWNED BY ci_variables.id; -CREATE TABLE cloud_connector_access ( +-- +-- Name: ci_variables_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ci_variables_id_seq OWNED BY public.ci_variables.id; + + +-- +-- Name: cloud_connector_access; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.cloud_connector_access ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, data jsonb NOT NULL ); -CREATE SEQUENCE cloud_connector_access_id_seq + +-- +-- Name: cloud_connector_access_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.cloud_connector_access_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE cloud_connector_access_id_seq OWNED BY cloud_connector_access.id; -CREATE TABLE cluster_agent_tokens ( +-- +-- Name: cloud_connector_access_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.cloud_connector_access_id_seq OWNED BY public.cloud_connector_access.id; + + +-- +-- Name: cluster_agent_tokens; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.cluster_agent_tokens ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -8904,16 +13167,31 @@ CREATE TABLE cluster_agent_tokens ( CONSTRAINT check_c60daed227 CHECK ((char_length(token_encrypted) <= 255)) ); -CREATE SEQUENCE cluster_agent_tokens_id_seq + +-- +-- Name: cluster_agent_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.cluster_agent_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE cluster_agent_tokens_id_seq OWNED BY cluster_agent_tokens.id; -CREATE TABLE cluster_agent_url_configurations ( +-- +-- Name: cluster_agent_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.cluster_agent_tokens_id_seq OWNED BY public.cluster_agent_tokens.id; + + +-- +-- Name: cluster_agent_url_configurations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.cluster_agent_url_configurations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -8936,16 +13214,31 @@ CREATE TABLE cluster_agent_url_configurations ( CONSTRAINT check_ed21ced327 CHECK ((char_length(url) <= 2048)) ); -CREATE SEQUENCE cluster_agent_url_configurations_id_seq + +-- +-- Name: cluster_agent_url_configurations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.cluster_agent_url_configurations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE cluster_agent_url_configurations_id_seq OWNED BY cluster_agent_url_configurations.id; -CREATE TABLE cluster_agents ( +-- +-- Name: cluster_agent_url_configurations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.cluster_agent_url_configurations_id_seq OWNED BY public.cluster_agent_url_configurations.id; + + +-- +-- Name: cluster_agents; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.cluster_agents ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -8958,46 +13251,91 @@ CREATE TABLE cluster_agents ( CONSTRAINT check_3498369510 CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE cluster_agents_id_seq + +-- +-- Name: cluster_agents_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.cluster_agents_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE cluster_agents_id_seq OWNED BY cluster_agents.id; -CREATE TABLE cluster_enabled_grants ( +-- +-- Name: cluster_agents_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.cluster_agents_id_seq OWNED BY public.cluster_agents.id; + + +-- +-- Name: cluster_enabled_grants; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.cluster_enabled_grants ( id bigint NOT NULL, namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE cluster_enabled_grants_id_seq + +-- +-- Name: cluster_enabled_grants_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.cluster_enabled_grants_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE cluster_enabled_grants_id_seq OWNED BY cluster_enabled_grants.id; -CREATE TABLE cluster_groups ( +-- +-- Name: cluster_enabled_grants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.cluster_enabled_grants_id_seq OWNED BY public.cluster_enabled_grants.id; + + +-- +-- Name: cluster_groups; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.cluster_groups ( id integer NOT NULL, cluster_id integer NOT NULL, group_id integer NOT NULL ); -CREATE SEQUENCE cluster_groups_id_seq + +-- +-- Name: cluster_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.cluster_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE cluster_groups_id_seq OWNED BY cluster_groups.id; -CREATE TABLE cluster_platforms_kubernetes ( +-- +-- Name: cluster_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.cluster_groups_id_seq OWNED BY public.cluster_groups.id; + + +-- +-- Name: cluster_platforms_kubernetes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.cluster_platforms_kubernetes ( id integer NOT NULL, cluster_id integer NOT NULL, created_at timestamp without time zone NOT NULL, @@ -9013,16 +13351,31 @@ CREATE TABLE cluster_platforms_kubernetes ( authorization_type smallint ); -CREATE SEQUENCE cluster_platforms_kubernetes_id_seq + +-- +-- Name: cluster_platforms_kubernetes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.cluster_platforms_kubernetes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE cluster_platforms_kubernetes_id_seq OWNED BY cluster_platforms_kubernetes.id; -CREATE TABLE cluster_projects ( +-- +-- Name: cluster_platforms_kubernetes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.cluster_platforms_kubernetes_id_seq OWNED BY public.cluster_platforms_kubernetes.id; + + +-- +-- Name: cluster_projects; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.cluster_projects ( id integer NOT NULL, project_id integer NOT NULL, cluster_id integer NOT NULL, @@ -9030,16 +13383,31 @@ CREATE TABLE cluster_projects ( updated_at timestamp without time zone NOT NULL ); -CREATE SEQUENCE cluster_projects_id_seq + +-- +-- Name: cluster_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.cluster_projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE cluster_projects_id_seq OWNED BY cluster_projects.id; -CREATE TABLE cluster_providers_aws ( +-- +-- Name: cluster_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.cluster_projects_id_seq OWNED BY public.cluster_projects.id; + + +-- +-- Name: cluster_providers_aws; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.cluster_providers_aws ( id bigint NOT NULL, cluster_id bigint NOT NULL, num_nodes integer NOT NULL, @@ -9062,16 +13430,31 @@ CREATE TABLE cluster_providers_aws ( CONSTRAINT check_f1f42cd85e CHECK ((char_length(kubernetes_version) <= 30)) ); -CREATE SEQUENCE cluster_providers_aws_id_seq + +-- +-- Name: cluster_providers_aws_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.cluster_providers_aws_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE cluster_providers_aws_id_seq OWNED BY cluster_providers_aws.id; -CREATE TABLE cluster_providers_gcp ( +-- +-- Name: cluster_providers_aws_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.cluster_providers_aws_id_seq OWNED BY public.cluster_providers_aws.id; + + +-- +-- Name: cluster_providers_gcp; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.cluster_providers_gcp ( id integer NOT NULL, cluster_id integer NOT NULL, status integer, @@ -9090,16 +13473,31 @@ CREATE TABLE cluster_providers_gcp ( cloud_run boolean DEFAULT false NOT NULL ); -CREATE SEQUENCE cluster_providers_gcp_id_seq + +-- +-- Name: cluster_providers_gcp_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.cluster_providers_gcp_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE cluster_providers_gcp_id_seq OWNED BY cluster_providers_gcp.id; -CREATE TABLE clusters ( +-- +-- Name: cluster_providers_gcp_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.cluster_providers_gcp_id_seq OWNED BY public.cluster_providers_gcp.id; + + +-- +-- Name: clusters; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.clusters ( id integer NOT NULL, user_id integer, provider_type integer, @@ -9119,16 +13517,31 @@ CREATE TABLE clusters ( helm_major_version integer DEFAULT 3 NOT NULL ); -CREATE SEQUENCE clusters_id_seq + +-- +-- Name: clusters_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.clusters_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE clusters_id_seq OWNED BY clusters.id; -CREATE TABLE clusters_integration_prometheus ( +-- +-- Name: clusters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.clusters_id_seq OWNED BY public.clusters.id; + + +-- +-- Name: clusters_integration_prometheus; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.clusters_integration_prometheus ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, cluster_id bigint NOT NULL, @@ -9138,7 +13551,12 @@ CREATE TABLE clusters_integration_prometheus ( health_status smallint DEFAULT 0 NOT NULL ); -CREATE TABLE clusters_kubernetes_namespaces ( + +-- +-- Name: clusters_kubernetes_namespaces; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.clusters_kubernetes_namespaces ( id bigint NOT NULL, cluster_id integer NOT NULL, project_id integer, @@ -9152,16 +13570,31 @@ CREATE TABLE clusters_kubernetes_namespaces ( environment_id bigint ); -CREATE SEQUENCE clusters_kubernetes_namespaces_id_seq + +-- +-- Name: clusters_kubernetes_namespaces_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.clusters_kubernetes_namespaces_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE clusters_kubernetes_namespaces_id_seq OWNED BY clusters_kubernetes_namespaces.id; -CREATE TABLE commit_user_mentions ( +-- +-- Name: clusters_kubernetes_namespaces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.clusters_kubernetes_namespaces_id_seq OWNED BY public.clusters_kubernetes_namespaces.id; + + +-- +-- Name: commit_user_mentions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.commit_user_mentions ( id bigint NOT NULL, mentioned_users_ids integer[], mentioned_projects_ids integer[], @@ -9170,16 +13603,31 @@ CREATE TABLE commit_user_mentions ( note_id bigint NOT NULL ); -CREATE SEQUENCE commit_user_mentions_id_seq + +-- +-- Name: commit_user_mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.commit_user_mentions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE commit_user_mentions_id_seq OWNED BY commit_user_mentions.id; -CREATE TABLE compliance_checks ( +-- +-- Name: commit_user_mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.commit_user_mentions_id_seq OWNED BY public.commit_user_mentions.id; + + +-- +-- Name: compliance_checks; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.compliance_checks ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9188,16 +13636,31 @@ CREATE TABLE compliance_checks ( check_name smallint NOT NULL ); -CREATE SEQUENCE compliance_checks_id_seq + +-- +-- Name: compliance_checks_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.compliance_checks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE compliance_checks_id_seq OWNED BY compliance_checks.id; -CREATE TABLE compliance_framework_security_policies ( +-- +-- Name: compliance_checks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.compliance_checks_id_seq OWNED BY public.compliance_checks.id; + + +-- +-- Name: compliance_framework_security_policies; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.compliance_framework_security_policies ( id bigint NOT NULL, framework_id bigint NOT NULL, policy_configuration_id bigint NOT NULL, @@ -9208,16 +13671,31 @@ CREATE TABLE compliance_framework_security_policies ( namespace_id bigint ); -CREATE SEQUENCE compliance_framework_security_policies_id_seq + +-- +-- Name: compliance_framework_security_policies_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.compliance_framework_security_policies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE compliance_framework_security_policies_id_seq OWNED BY compliance_framework_security_policies.id; -CREATE TABLE compliance_management_frameworks ( +-- +-- Name: compliance_framework_security_policies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.compliance_framework_security_policies_id_seq OWNED BY public.compliance_framework_security_policies.id; + + +-- +-- Name: compliance_management_frameworks; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.compliance_management_frameworks ( id bigint NOT NULL, name text NOT NULL, description text NOT NULL, @@ -9232,16 +13710,31 @@ CREATE TABLE compliance_management_frameworks ( CONSTRAINT check_e7a9972435 CHECK ((char_length(pipeline_configuration_full_path) <= 255)) ); -CREATE SEQUENCE compliance_management_frameworks_id_seq + +-- +-- Name: compliance_management_frameworks_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.compliance_management_frameworks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE compliance_management_frameworks_id_seq OWNED BY compliance_management_frameworks.id; -CREATE TABLE compliance_requirements ( +-- +-- Name: compliance_management_frameworks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.compliance_management_frameworks_id_seq OWNED BY public.compliance_management_frameworks.id; + + +-- +-- Name: compliance_requirements; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.compliance_requirements ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9253,16 +13746,31 @@ CREATE TABLE compliance_requirements ( CONSTRAINT check_f1fb6fdd81 CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE compliance_requirements_id_seq + +-- +-- Name: compliance_requirements_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.compliance_requirements_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE compliance_requirements_id_seq OWNED BY compliance_requirements.id; -CREATE TABLE container_expiration_policies ( +-- +-- Name: compliance_requirements_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.compliance_requirements_id_seq OWNED BY public.compliance_requirements.id; + + +-- +-- Name: container_expiration_policies; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.container_expiration_policies ( project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9276,7 +13784,12 @@ CREATE TABLE container_expiration_policies ( CONSTRAINT container_expiration_policies_name_regex_keep CHECK ((char_length(name_regex_keep) <= 255)) ); -CREATE TABLE container_registry_data_repair_details ( + +-- +-- Name: container_registry_data_repair_details; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.container_registry_data_repair_details ( missing_count integer DEFAULT 0, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -9284,7 +13797,12 @@ CREATE TABLE container_registry_data_repair_details ( status smallint DEFAULT 0 NOT NULL ); -CREATE TABLE container_registry_protection_rules ( + +-- +-- Name: container_registry_protection_rules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.container_registry_protection_rules ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -9297,16 +13815,31 @@ CREATE TABLE container_registry_protection_rules ( CONSTRAINT check_d53a270af5 CHECK ((char_length(repository_path_pattern) <= 255)) ); -CREATE SEQUENCE container_registry_protection_rules_id_seq + +-- +-- Name: container_registry_protection_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.container_registry_protection_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE container_registry_protection_rules_id_seq OWNED BY container_registry_protection_rules.id; -CREATE TABLE container_repositories ( +-- +-- Name: container_registry_protection_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.container_registry_protection_rules_id_seq OWNED BY public.container_registry_protection_rules.id; + + +-- +-- Name: container_repositories; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.container_repositories ( id integer NOT NULL, project_id integer NOT NULL, name character varying NOT NULL, @@ -9321,16 +13854,31 @@ CREATE TABLE container_repositories ( status_updated_at timestamp with time zone ); -CREATE SEQUENCE container_repositories_id_seq + +-- +-- Name: container_repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.container_repositories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE container_repositories_id_seq OWNED BY container_repositories.id; -CREATE TABLE container_repository_states ( +-- +-- Name: container_repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.container_repositories_id_seq OWNED BY public.container_repositories.id; + + +-- +-- Name: container_repository_states; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.container_repository_states ( verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, verified_at timestamp with time zone, @@ -9342,7 +13890,12 @@ CREATE TABLE container_repository_states ( CONSTRAINT check_c96417dbc5 CHECK ((char_length(verification_failure) <= 255)) ); -CREATE TABLE content_blocked_states ( + +-- +-- Name: content_blocked_states; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.content_blocked_states ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9354,18 +13907,38 @@ CREATE TABLE content_blocked_states ( CONSTRAINT check_1870100678 CHECK ((char_length(path) <= 2048)) ); -COMMENT ON TABLE content_blocked_states IS 'JiHu-specific table'; -CREATE SEQUENCE content_blocked_states_id_seq +-- +-- Name: TABLE content_blocked_states; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public.content_blocked_states IS 'JiHu-specific table'; + + +-- +-- Name: content_blocked_states_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.content_blocked_states_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE content_blocked_states_id_seq OWNED BY content_blocked_states.id; -CREATE TABLE conversational_development_index_metrics ( +-- +-- Name: content_blocked_states_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.content_blocked_states_id_seq OWNED BY public.content_blocked_states.id; + + +-- +-- Name: conversational_development_index_metrics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.conversational_development_index_metrics ( id integer NOT NULL, leader_issues double precision NOT NULL, instance_issues double precision NOT NULL, @@ -9401,16 +13974,31 @@ CREATE TABLE conversational_development_index_metrics ( percentage_service_desk_issues double precision DEFAULT 0.0 NOT NULL ); -CREATE SEQUENCE conversational_development_index_metrics_id_seq + +-- +-- Name: conversational_development_index_metrics_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.conversational_development_index_metrics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE conversational_development_index_metrics_id_seq OWNED BY conversational_development_index_metrics.id; -CREATE TABLE country_access_logs ( +-- +-- Name: conversational_development_index_metrics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.conversational_development_index_metrics_id_seq OWNED BY public.conversational_development_index_metrics.id; + + +-- +-- Name: country_access_logs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.country_access_logs ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9422,16 +14010,31 @@ CREATE TABLE country_access_logs ( country_code smallint NOT NULL ); -CREATE SEQUENCE country_access_logs_id_seq + +-- +-- Name: country_access_logs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.country_access_logs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE country_access_logs_id_seq OWNED BY country_access_logs.id; -CREATE TABLE coverage_fuzzing_corpuses ( +-- +-- Name: country_access_logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.country_access_logs_id_seq OWNED BY public.country_access_logs.id; + + +-- +-- Name: coverage_fuzzing_corpuses; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.coverage_fuzzing_corpuses ( id bigint NOT NULL, project_id bigint NOT NULL, user_id bigint, @@ -9441,16 +14044,31 @@ CREATE TABLE coverage_fuzzing_corpuses ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE coverage_fuzzing_corpuses_id_seq + +-- +-- Name: coverage_fuzzing_corpuses_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.coverage_fuzzing_corpuses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE coverage_fuzzing_corpuses_id_seq OWNED BY coverage_fuzzing_corpuses.id; -CREATE TABLE csv_issue_imports ( +-- +-- Name: coverage_fuzzing_corpuses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.coverage_fuzzing_corpuses_id_seq OWNED BY public.coverage_fuzzing_corpuses.id; + + +-- +-- Name: csv_issue_imports; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.csv_issue_imports ( id bigint NOT NULL, project_id bigint NOT NULL, user_id bigint NOT NULL, @@ -9458,16 +14076,31 @@ CREATE TABLE csv_issue_imports ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE csv_issue_imports_id_seq + +-- +-- Name: csv_issue_imports_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.csv_issue_imports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE csv_issue_imports_id_seq OWNED BY csv_issue_imports.id; -CREATE TABLE custom_emoji ( +-- +-- Name: csv_issue_imports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.csv_issue_imports_id_seq OWNED BY public.csv_issue_imports.id; + + +-- +-- Name: custom_emoji; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.custom_emoji ( id bigint NOT NULL, namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -9480,32 +14113,62 @@ CREATE TABLE custom_emoji ( CONSTRAINT check_dd5d60f1fb CHECK ((char_length(file) <= 255)) ); -CREATE SEQUENCE custom_emoji_id_seq + +-- +-- Name: custom_emoji_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.custom_emoji_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE custom_emoji_id_seq OWNED BY custom_emoji.id; -CREATE TABLE custom_software_licenses ( +-- +-- Name: custom_emoji_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.custom_emoji_id_seq OWNED BY public.custom_emoji.id; + + +-- +-- Name: custom_software_licenses; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.custom_software_licenses ( id bigint NOT NULL, project_id bigint NOT NULL, name text NOT NULL, CONSTRAINT check_4e365784ce CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE custom_software_licenses_id_seq + +-- +-- Name: custom_software_licenses_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.custom_software_licenses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE custom_software_licenses_id_seq OWNED BY custom_software_licenses.id; -CREATE TABLE customer_relations_contacts ( +-- +-- Name: custom_software_licenses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.custom_software_licenses_id_seq OWNED BY public.custom_software_licenses.id; + + +-- +-- Name: customer_relations_contacts; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.customer_relations_contacts ( id bigint NOT NULL, group_id bigint NOT NULL, organization_id bigint, @@ -9524,16 +14187,31 @@ CREATE TABLE customer_relations_contacts ( CONSTRAINT check_fc0adabf60 CHECK ((char_length(email) <= 255)) ); -CREATE SEQUENCE customer_relations_contacts_id_seq + +-- +-- Name: customer_relations_contacts_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.customer_relations_contacts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE customer_relations_contacts_id_seq OWNED BY customer_relations_contacts.id; -CREATE TABLE customer_relations_organizations ( +-- +-- Name: customer_relations_contacts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.customer_relations_contacts_id_seq OWNED BY public.customer_relations_contacts.id; + + +-- +-- Name: customer_relations_organizations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.customer_relations_organizations ( id bigint NOT NULL, group_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -9546,16 +14224,31 @@ CREATE TABLE customer_relations_organizations ( CONSTRAINT check_e476b6058e CHECK ((char_length(description) <= 1024)) ); -CREATE SEQUENCE customer_relations_organizations_id_seq + +-- +-- Name: customer_relations_organizations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.customer_relations_organizations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE customer_relations_organizations_id_seq OWNED BY customer_relations_organizations.id; -CREATE TABLE dast_pre_scan_verification_steps ( +-- +-- Name: customer_relations_organizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.customer_relations_organizations_id_seq OWNED BY public.customer_relations_organizations.id; + + +-- +-- Name: dast_pre_scan_verification_steps; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dast_pre_scan_verification_steps ( id bigint NOT NULL, dast_pre_scan_verification_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -9566,16 +14259,31 @@ CREATE TABLE dast_pre_scan_verification_steps ( CONSTRAINT check_cd216b95e4 CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE dast_pre_scan_verification_steps_id_seq + +-- +-- Name: dast_pre_scan_verification_steps_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dast_pre_scan_verification_steps_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dast_pre_scan_verification_steps_id_seq OWNED BY dast_pre_scan_verification_steps.id; -CREATE TABLE dast_pre_scan_verifications ( +-- +-- Name: dast_pre_scan_verification_steps_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dast_pre_scan_verification_steps_id_seq OWNED BY public.dast_pre_scan_verification_steps.id; + + +-- +-- Name: dast_pre_scan_verifications; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dast_pre_scan_verifications ( id bigint NOT NULL, dast_profile_id bigint NOT NULL, ci_pipeline_id bigint, @@ -9585,16 +14293,31 @@ CREATE TABLE dast_pre_scan_verifications ( project_id bigint ); -CREATE SEQUENCE dast_pre_scan_verifications_id_seq + +-- +-- Name: dast_pre_scan_verifications_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dast_pre_scan_verifications_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dast_pre_scan_verifications_id_seq OWNED BY dast_pre_scan_verifications.id; -CREATE TABLE dast_profile_schedules ( +-- +-- Name: dast_pre_scan_verifications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dast_pre_scan_verifications_id_seq OWNED BY public.dast_pre_scan_verifications.id; + + +-- +-- Name: dast_profile_schedules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dast_profile_schedules ( id bigint NOT NULL, project_id bigint NOT NULL, dast_profile_id bigint NOT NULL, @@ -9611,18 +14334,38 @@ CREATE TABLE dast_profile_schedules ( CONSTRAINT check_be4d1c3af1 CHECK ((char_length(timezone) <= 255)) ); -COMMENT ON TABLE dast_profile_schedules IS '{"owner":"group::dynamic analysis","description":"Scheduling for scans using DAST Profiles"}'; -CREATE SEQUENCE dast_profile_schedules_id_seq +-- +-- Name: TABLE dast_profile_schedules; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public.dast_profile_schedules IS '{"owner":"group::dynamic analysis","description":"Scheduling for scans using DAST Profiles"}'; + + +-- +-- Name: dast_profile_schedules_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dast_profile_schedules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dast_profile_schedules_id_seq OWNED BY dast_profile_schedules.id; -CREATE TABLE dast_profiles ( +-- +-- Name: dast_profile_schedules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dast_profile_schedules_id_seq OWNED BY public.dast_profile_schedules.id; + + +-- +-- Name: dast_profiles; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dast_profiles ( id bigint NOT NULL, project_id bigint NOT NULL, dast_site_profile_id bigint NOT NULL, @@ -9637,41 +14380,86 @@ CREATE TABLE dast_profiles ( CONSTRAINT check_c34e505c24 CHECK ((char_length(description) <= 255)) ); -COMMENT ON TABLE dast_profiles IS '{"owner":"group::dynamic analysis","description":"Profile used to run a DAST on-demand scan"}'; -CREATE SEQUENCE dast_profiles_id_seq +-- +-- Name: TABLE dast_profiles; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public.dast_profiles IS '{"owner":"group::dynamic analysis","description":"Profile used to run a DAST on-demand scan"}'; + + +-- +-- Name: dast_profiles_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dast_profiles_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dast_profiles_id_seq OWNED BY dast_profiles.id; -CREATE TABLE dast_profiles_pipelines ( +-- +-- Name: dast_profiles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dast_profiles_id_seq OWNED BY public.dast_profiles.id; + + +-- +-- Name: dast_profiles_pipelines; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dast_profiles_pipelines ( dast_profile_id bigint NOT NULL, ci_pipeline_id bigint NOT NULL ); -COMMENT ON TABLE dast_profiles_pipelines IS '{"owner":"group::dynamic analysis","description":"Join table between DAST Profiles and CI Pipelines"}'; -CREATE TABLE dast_profiles_tags ( +-- +-- Name: TABLE dast_profiles_pipelines; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public.dast_profiles_pipelines IS '{"owner":"group::dynamic analysis","description":"Join table between DAST Profiles and CI Pipelines"}'; + + +-- +-- Name: dast_profiles_tags; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dast_profiles_tags ( id bigint NOT NULL, dast_profile_id bigint NOT NULL, tag_id bigint NOT NULL, project_id bigint ); -CREATE SEQUENCE dast_profiles_tags_id_seq + +-- +-- Name: dast_profiles_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dast_profiles_tags_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dast_profiles_tags_id_seq OWNED BY dast_profiles_tags.id; -CREATE TABLE dast_scanner_profiles ( +-- +-- Name: dast_profiles_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dast_profiles_tags_id_seq OWNED BY public.dast_profiles_tags.id; + + +-- +-- Name: dast_scanner_profiles; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dast_scanner_profiles ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9685,23 +14473,48 @@ CREATE TABLE dast_scanner_profiles ( CONSTRAINT check_568568fabf CHECK ((char_length(name) <= 255)) ); -CREATE TABLE dast_scanner_profiles_builds ( + +-- +-- Name: dast_scanner_profiles_builds; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dast_scanner_profiles_builds ( dast_scanner_profile_id bigint NOT NULL, ci_build_id bigint NOT NULL ); -COMMENT ON TABLE dast_scanner_profiles_builds IS '{"owner":"group::dynamic analysis","description":"Join table between DAST Scanner Profiles and CI Builds"}'; -CREATE SEQUENCE dast_scanner_profiles_id_seq +-- +-- Name: TABLE dast_scanner_profiles_builds; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public.dast_scanner_profiles_builds IS '{"owner":"group::dynamic analysis","description":"Join table between DAST Scanner Profiles and CI Builds"}'; + + +-- +-- Name: dast_scanner_profiles_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dast_scanner_profiles_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dast_scanner_profiles_id_seq OWNED BY dast_scanner_profiles.id; -CREATE TABLE dast_site_profile_secret_variables ( +-- +-- Name: dast_scanner_profiles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dast_scanner_profiles_id_seq OWNED BY public.dast_scanner_profiles.id; + + +-- +-- Name: dast_site_profile_secret_variables; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dast_site_profile_secret_variables ( id bigint NOT NULL, dast_site_profile_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -9716,18 +14529,38 @@ CREATE TABLE dast_site_profile_secret_variables ( CONSTRAINT check_b49080abbf CHECK ((length(encrypted_value_iv) <= 17)) ); -COMMENT ON TABLE dast_site_profile_secret_variables IS '{"owner":"group::dynamic analysis","description":"Secret variables used in DAST on-demand scans"}'; -CREATE SEQUENCE dast_site_profile_secret_variables_id_seq +-- +-- Name: TABLE dast_site_profile_secret_variables; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public.dast_site_profile_secret_variables IS '{"owner":"group::dynamic analysis","description":"Secret variables used in DAST on-demand scans"}'; + + +-- +-- Name: dast_site_profile_secret_variables_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dast_site_profile_secret_variables_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dast_site_profile_secret_variables_id_seq OWNED BY dast_site_profile_secret_variables.id; -CREATE TABLE dast_site_profiles ( +-- +-- Name: dast_site_profile_secret_variables_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dast_site_profile_secret_variables_id_seq OWNED BY public.dast_site_profile_secret_variables.id; + + +-- +-- Name: dast_site_profiles; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dast_site_profiles ( id bigint NOT NULL, project_id bigint NOT NULL, dast_site_id bigint NOT NULL, @@ -9753,23 +14586,48 @@ CREATE TABLE dast_site_profiles ( CONSTRAINT check_f22f18002a CHECK ((char_length(auth_username) <= 255)) ); -CREATE TABLE dast_site_profiles_builds ( + +-- +-- Name: dast_site_profiles_builds; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dast_site_profiles_builds ( dast_site_profile_id bigint NOT NULL, ci_build_id bigint NOT NULL ); -COMMENT ON TABLE dast_site_profiles_builds IS '{"owner":"group::dynamic analysis","description":"Join table between DAST Site Profiles and CI Builds"}'; -CREATE SEQUENCE dast_site_profiles_id_seq +-- +-- Name: TABLE dast_site_profiles_builds; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public.dast_site_profiles_builds IS '{"owner":"group::dynamic analysis","description":"Join table between DAST Site Profiles and CI Builds"}'; + + +-- +-- Name: dast_site_profiles_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dast_site_profiles_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dast_site_profiles_id_seq OWNED BY dast_site_profiles.id; -CREATE TABLE dast_site_tokens ( +-- +-- Name: dast_site_profiles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dast_site_profiles_id_seq OWNED BY public.dast_site_profiles.id; + + +-- +-- Name: dast_site_tokens; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dast_site_tokens ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -9781,16 +14639,31 @@ CREATE TABLE dast_site_tokens ( CONSTRAINT check_69ab8622a6 CHECK ((char_length(url) <= 255)) ); -CREATE SEQUENCE dast_site_tokens_id_seq + +-- +-- Name: dast_site_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dast_site_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dast_site_tokens_id_seq OWNED BY dast_site_tokens.id; -CREATE TABLE dast_site_validations ( +-- +-- Name: dast_site_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dast_site_tokens_id_seq OWNED BY public.dast_site_tokens.id; + + +-- +-- Name: dast_site_validations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dast_site_validations ( id bigint NOT NULL, dast_site_token_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -9809,16 +14682,31 @@ CREATE TABLE dast_site_validations ( CONSTRAINT check_cd3b538210 CHECK ((char_length(url_base) <= 255)) ); -CREATE SEQUENCE dast_site_validations_id_seq + +-- +-- Name: dast_site_validations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dast_site_validations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dast_site_validations_id_seq OWNED BY dast_site_validations.id; -CREATE TABLE dast_sites ( +-- +-- Name: dast_site_validations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dast_site_validations_id_seq OWNED BY public.dast_site_validations.id; + + +-- +-- Name: dast_sites; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dast_sites ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -9828,16 +14716,31 @@ CREATE TABLE dast_sites ( CONSTRAINT check_46df8b449c CHECK ((char_length(url) <= 255)) ); -CREATE SEQUENCE dast_sites_id_seq + +-- +-- Name: dast_sites_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dast_sites_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dast_sites_id_seq OWNED BY dast_sites.id; -CREATE TABLE dependency_list_export_parts ( +-- +-- Name: dast_sites_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dast_sites_id_seq OWNED BY public.dast_sites.id; + + +-- +-- Name: dependency_list_export_parts; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dependency_list_export_parts ( id bigint NOT NULL, dependency_list_export_id bigint NOT NULL, start_id bigint NOT NULL, @@ -9850,16 +14753,31 @@ CREATE TABLE dependency_list_export_parts ( CONSTRAINT check_f799431fc1 CHECK ((char_length(file) <= 255)) ); -CREATE SEQUENCE dependency_list_export_parts_id_seq + +-- +-- Name: dependency_list_export_parts_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dependency_list_export_parts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dependency_list_export_parts_id_seq OWNED BY dependency_list_export_parts.id; -CREATE TABLE dependency_list_exports ( +-- +-- Name: dependency_list_export_parts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dependency_list_export_parts_id_seq OWNED BY public.dependency_list_export_parts.id; + + +-- +-- Name: dependency_list_exports; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dependency_list_exports ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9875,16 +14793,31 @@ CREATE TABLE dependency_list_exports ( CONSTRAINT check_fff6fc9b2f CHECK ((char_length(file) <= 255)) ); -CREATE SEQUENCE dependency_list_exports_id_seq + +-- +-- Name: dependency_list_exports_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dependency_list_exports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dependency_list_exports_id_seq OWNED BY dependency_list_exports.id; -CREATE TABLE dependency_proxy_blob_states ( +-- +-- Name: dependency_list_exports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dependency_list_exports_id_seq OWNED BY public.dependency_list_exports.id; + + +-- +-- Name: dependency_proxy_blob_states; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dependency_proxy_blob_states ( verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, verified_at timestamp with time zone, @@ -9896,9 +14829,19 @@ CREATE TABLE dependency_proxy_blob_states ( CONSTRAINT check_8e4f76fffe CHECK ((char_length(verification_failure) <= 255)) ); -COMMENT ON TABLE dependency_proxy_blob_states IS '{"owner":"group::geo","description":"Geo-specific table to store the verification state of DependencyProxy::Blob objects"}'; -CREATE TABLE dependency_proxy_blobs ( +-- +-- Name: TABLE dependency_proxy_blob_states; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public.dependency_proxy_blob_states IS '{"owner":"group::geo","description":"Geo-specific table to store the verification state of DependencyProxy::Blob objects"}'; + + +-- +-- Name: dependency_proxy_blobs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dependency_proxy_blobs ( id integer NOT NULL, group_id integer NOT NULL, created_at timestamp with time zone NOT NULL, @@ -9911,16 +14854,31 @@ CREATE TABLE dependency_proxy_blobs ( read_at timestamp with time zone DEFAULT now() NOT NULL ); -CREATE SEQUENCE dependency_proxy_blobs_id_seq + +-- +-- Name: dependency_proxy_blobs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dependency_proxy_blobs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dependency_proxy_blobs_id_seq OWNED BY dependency_proxy_blobs.id; -CREATE TABLE dependency_proxy_group_settings ( +-- +-- Name: dependency_proxy_blobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dependency_proxy_blobs_id_seq OWNED BY public.dependency_proxy_blobs.id; + + +-- +-- Name: dependency_proxy_group_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dependency_proxy_group_settings ( id integer NOT NULL, group_id integer NOT NULL, created_at timestamp with time zone NOT NULL, @@ -9928,16 +14886,31 @@ CREATE TABLE dependency_proxy_group_settings ( enabled boolean DEFAULT true NOT NULL ); -CREATE SEQUENCE dependency_proxy_group_settings_id_seq + +-- +-- Name: dependency_proxy_group_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dependency_proxy_group_settings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dependency_proxy_group_settings_id_seq OWNED BY dependency_proxy_group_settings.id; -CREATE TABLE dependency_proxy_image_ttl_group_policies ( +-- +-- Name: dependency_proxy_group_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dependency_proxy_group_settings_id_seq OWNED BY public.dependency_proxy_group_settings.id; + + +-- +-- Name: dependency_proxy_image_ttl_group_policies; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dependency_proxy_image_ttl_group_policies ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, group_id bigint NOT NULL, @@ -9945,7 +14918,12 @@ CREATE TABLE dependency_proxy_image_ttl_group_policies ( enabled boolean DEFAULT false NOT NULL ); -CREATE TABLE dependency_proxy_manifest_states ( + +-- +-- Name: dependency_proxy_manifest_states; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dependency_proxy_manifest_states ( verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, verified_at timestamp with time zone, @@ -9957,7 +14935,12 @@ CREATE TABLE dependency_proxy_manifest_states ( CONSTRAINT check_fdd5d9791b CHECK ((char_length(verification_failure) <= 255)) ); -CREATE TABLE dependency_proxy_manifests ( + +-- +-- Name: dependency_proxy_manifests; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dependency_proxy_manifests ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9976,16 +14959,31 @@ CREATE TABLE dependency_proxy_manifests ( CONSTRAINT check_f5d9996bf1 CHECK ((char_length(digest) <= 255)) ); -CREATE SEQUENCE dependency_proxy_manifests_id_seq + +-- +-- Name: dependency_proxy_manifests_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dependency_proxy_manifests_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dependency_proxy_manifests_id_seq OWNED BY dependency_proxy_manifests.id; -CREATE TABLE dependency_proxy_packages_settings ( +-- +-- Name: dependency_proxy_manifests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dependency_proxy_manifests_id_seq OWNED BY public.dependency_proxy_manifests.id; + + +-- +-- Name: dependency_proxy_packages_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dependency_proxy_packages_settings ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, project_id bigint NOT NULL, @@ -10014,7 +15012,12 @@ CREATE TABLE dependency_proxy_packages_settings ( CONSTRAINT check_fd5def68ba CHECK ((octet_length(encrypted_maven_external_registry_username_iv) <= 1020)) ); -CREATE TABLE deploy_keys_projects ( + +-- +-- Name: deploy_keys_projects; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.deploy_keys_projects ( id integer NOT NULL, deploy_key_id integer NOT NULL, project_id integer NOT NULL, @@ -10023,16 +15026,31 @@ CREATE TABLE deploy_keys_projects ( can_push boolean DEFAULT false NOT NULL ); -CREATE SEQUENCE deploy_keys_projects_id_seq + +-- +-- Name: deploy_keys_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.deploy_keys_projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE deploy_keys_projects_id_seq OWNED BY deploy_keys_projects.id; -CREATE TABLE deploy_tokens ( +-- +-- Name: deploy_keys_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.deploy_keys_projects_id_seq OWNED BY public.deploy_keys_projects.id; + + +-- +-- Name: deploy_tokens; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.deploy_tokens ( id integer NOT NULL, revoked boolean DEFAULT false, read_repository boolean DEFAULT false NOT NULL, @@ -10052,16 +15070,31 @@ CREATE TABLE deploy_tokens ( group_id bigint ); -CREATE SEQUENCE deploy_tokens_id_seq + +-- +-- Name: deploy_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.deploy_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE deploy_tokens_id_seq OWNED BY deploy_tokens.id; -CREATE TABLE deployment_approvals ( +-- +-- Name: deploy_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.deploy_tokens_id_seq OWNED BY public.deploy_tokens.id; + + +-- +-- Name: deployment_approvals; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.deployment_approvals ( id bigint NOT NULL, deployment_id bigint NOT NULL, user_id bigint NOT NULL, @@ -10075,28 +15108,53 @@ CREATE TABLE deployment_approvals ( CONSTRAINT check_e2eb6a17d8 CHECK ((char_length(comment) <= 255)) ); -CREATE SEQUENCE deployment_approvals_id_seq + +-- +-- Name: deployment_approvals_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.deployment_approvals_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE deployment_approvals_id_seq OWNED BY deployment_approvals.id; -CREATE TABLE deployment_clusters ( +-- +-- Name: deployment_approvals_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.deployment_approvals_id_seq OWNED BY public.deployment_approvals.id; + + +-- +-- Name: deployment_clusters; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.deployment_clusters ( deployment_id integer NOT NULL, cluster_id integer NOT NULL, kubernetes_namespace character varying(255) ); -CREATE TABLE deployment_merge_requests ( + +-- +-- Name: deployment_merge_requests; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.deployment_merge_requests ( deployment_id integer NOT NULL, merge_request_id integer NOT NULL, environment_id integer ); -CREATE TABLE deployments ( + +-- +-- Name: deployments; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.deployments ( id integer NOT NULL, iid integer NOT NULL, project_id integer NOT NULL, @@ -10115,16 +15173,31 @@ CREATE TABLE deployments ( archived boolean DEFAULT false NOT NULL ); -CREATE SEQUENCE deployments_id_seq + +-- +-- Name: deployments_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.deployments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE deployments_id_seq OWNED BY deployments.id; -CREATE TABLE description_versions ( +-- +-- Name: deployments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.deployments_id_seq OWNED BY public.deployments.id; + + +-- +-- Name: description_versions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.description_versions ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -10135,16 +15208,31 @@ CREATE TABLE description_versions ( deleted_at timestamp with time zone ); -CREATE SEQUENCE description_versions_id_seq + +-- +-- Name: description_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.description_versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE description_versions_id_seq OWNED BY description_versions.id; -CREATE TABLE design_management_designs ( +-- +-- Name: description_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.description_versions_id_seq OWNED BY public.description_versions.id; + + +-- +-- Name: design_management_designs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.design_management_designs ( id bigint NOT NULL, project_id integer NOT NULL, issue_id integer, @@ -10161,16 +15249,31 @@ CREATE TABLE design_management_designs ( CONSTRAINT check_cfb92df01a CHECK ((iid IS NOT NULL)) ); -CREATE SEQUENCE design_management_designs_id_seq + +-- +-- Name: design_management_designs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.design_management_designs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE design_management_designs_id_seq OWNED BY design_management_designs.id; -CREATE TABLE design_management_designs_versions ( +-- +-- Name: design_management_designs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.design_management_designs_id_seq OWNED BY public.design_management_designs.id; + + +-- +-- Name: design_management_designs_versions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.design_management_designs_versions ( id bigint NOT NULL, design_id bigint NOT NULL, version_id bigint NOT NULL, @@ -10178,16 +15281,31 @@ CREATE TABLE design_management_designs_versions ( image_v432x230 character varying(255) ); -CREATE SEQUENCE design_management_designs_versions_id_seq + +-- +-- Name: design_management_designs_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.design_management_designs_versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE design_management_designs_versions_id_seq OWNED BY design_management_designs_versions.id; -CREATE TABLE design_management_repositories ( +-- +-- Name: design_management_designs_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.design_management_designs_versions_id_seq OWNED BY public.design_management_designs_versions.id; + + +-- +-- Name: design_management_repositories; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.design_management_repositories ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -10195,16 +15313,31 @@ CREATE TABLE design_management_repositories ( namespace_id bigint ); -CREATE SEQUENCE design_management_repositories_id_seq + +-- +-- Name: design_management_repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.design_management_repositories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE design_management_repositories_id_seq OWNED BY design_management_repositories.id; -CREATE TABLE design_management_repository_states ( +-- +-- Name: design_management_repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.design_management_repositories_id_seq OWNED BY public.design_management_repositories.id; + + +-- +-- Name: design_management_repository_states; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.design_management_repository_states ( verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, verified_at timestamp with time zone, @@ -10216,7 +15349,12 @@ CREATE TABLE design_management_repository_states ( CONSTRAINT check_bf1387c28b CHECK ((char_length(verification_failure) <= 255)) ); -CREATE TABLE design_management_versions ( + +-- +-- Name: design_management_versions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.design_management_versions ( id bigint NOT NULL, sha bytea NOT NULL, issue_id bigint, @@ -10225,16 +15363,31 @@ CREATE TABLE design_management_versions ( namespace_id bigint ); -CREATE SEQUENCE design_management_versions_id_seq + +-- +-- Name: design_management_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.design_management_versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE design_management_versions_id_seq OWNED BY design_management_versions.id; -CREATE TABLE design_user_mentions ( +-- +-- Name: design_management_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.design_management_versions_id_seq OWNED BY public.design_management_versions.id; + + +-- +-- Name: design_user_mentions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.design_user_mentions ( id bigint NOT NULL, design_id integer NOT NULL, mentioned_users_ids integer[], @@ -10243,16 +15396,31 @@ CREATE TABLE design_user_mentions ( note_id bigint NOT NULL ); -CREATE SEQUENCE design_user_mentions_id_seq + +-- +-- Name: design_user_mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.design_user_mentions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE design_user_mentions_id_seq OWNED BY design_user_mentions.id; -CREATE TABLE detached_partitions ( +-- +-- Name: design_user_mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.design_user_mentions_id_seq OWNED BY public.design_user_mentions.id; + + +-- +-- Name: detached_partitions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.detached_partitions ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -10261,16 +15429,31 @@ CREATE TABLE detached_partitions ( CONSTRAINT check_aecee24ba3 CHECK ((char_length(table_name) <= 63)) ); -CREATE SEQUENCE detached_partitions_id_seq + +-- +-- Name: detached_partitions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.detached_partitions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE detached_partitions_id_seq OWNED BY detached_partitions.id; -CREATE TABLE diff_note_positions ( +-- +-- Name: detached_partitions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.detached_partitions_id_seq OWNED BY public.detached_partitions.id; + + +-- +-- Name: diff_note_positions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.diff_note_positions ( id bigint NOT NULL, note_id bigint NOT NULL, old_line integer, @@ -10285,16 +15468,31 @@ CREATE TABLE diff_note_positions ( new_path text NOT NULL ); -CREATE SEQUENCE diff_note_positions_id_seq + +-- +-- Name: diff_note_positions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.diff_note_positions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE diff_note_positions_id_seq OWNED BY diff_note_positions.id; -CREATE TABLE dingtalk_tracker_data ( +-- +-- Name: diff_note_positions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.diff_note_positions_id_seq OWNED BY public.diff_note_positions.id; + + +-- +-- Name: dingtalk_tracker_data; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dingtalk_tracker_data ( id bigint NOT NULL, integration_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -10303,37 +15501,82 @@ CREATE TABLE dingtalk_tracker_data ( CONSTRAINT check_d3fe332e6a CHECK ((char_length(corpid) <= 255)) ); -COMMENT ON TABLE dingtalk_tracker_data IS 'JiHu-specific table'; -COMMENT ON COLUMN dingtalk_tracker_data.integration_id IS 'JiHu-specific column'; +-- +-- Name: TABLE dingtalk_tracker_data; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public.dingtalk_tracker_data IS 'JiHu-specific table'; -COMMENT ON COLUMN dingtalk_tracker_data.corpid IS 'JiHu-specific column'; -CREATE SEQUENCE dingtalk_tracker_data_id_seq +-- +-- Name: COLUMN dingtalk_tracker_data.integration_id; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.dingtalk_tracker_data.integration_id IS 'JiHu-specific column'; + + +-- +-- Name: COLUMN dingtalk_tracker_data.corpid; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.dingtalk_tracker_data.corpid IS 'JiHu-specific column'; + + +-- +-- Name: dingtalk_tracker_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dingtalk_tracker_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dingtalk_tracker_data_id_seq OWNED BY dingtalk_tracker_data.id; -CREATE TABLE dora_configurations ( +-- +-- Name: dingtalk_tracker_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dingtalk_tracker_data_id_seq OWNED BY public.dingtalk_tracker_data.id; + + +-- +-- Name: dora_configurations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dora_configurations ( id bigint NOT NULL, project_id bigint NOT NULL, branches_for_lead_time_for_changes text[] DEFAULT '{}'::text[] NOT NULL ); -CREATE SEQUENCE dora_configurations_id_seq + +-- +-- Name: dora_configurations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dora_configurations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dora_configurations_id_seq OWNED BY dora_configurations.id; -CREATE TABLE dora_daily_metrics ( +-- +-- Name: dora_configurations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dora_configurations_id_seq OWNED BY public.dora_configurations.id; + + +-- +-- Name: dora_daily_metrics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dora_daily_metrics ( id bigint NOT NULL, environment_id bigint NOT NULL, date date NOT NULL, @@ -10346,16 +15589,31 @@ CREATE TABLE dora_daily_metrics ( CONSTRAINT dora_daily_metrics_lead_time_for_changes_in_seconds_positive CHECK ((lead_time_for_changes_in_seconds >= 0)) ); -CREATE SEQUENCE dora_daily_metrics_id_seq + +-- +-- Name: dora_daily_metrics_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dora_daily_metrics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dora_daily_metrics_id_seq OWNED BY dora_daily_metrics.id; -CREATE TABLE dora_performance_scores ( +-- +-- Name: dora_daily_metrics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dora_daily_metrics_id_seq OWNED BY public.dora_daily_metrics.id; + + +-- +-- Name: dora_performance_scores; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.dora_performance_scores ( id bigint NOT NULL, project_id bigint NOT NULL, date date NOT NULL, @@ -10365,16 +15623,31 @@ CREATE TABLE dora_performance_scores ( change_failure_rate smallint ); -CREATE SEQUENCE dora_performance_scores_id_seq + +-- +-- Name: dora_performance_scores_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.dora_performance_scores_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE dora_performance_scores_id_seq OWNED BY dora_performance_scores.id; -CREATE TABLE draft_notes ( +-- +-- Name: dora_performance_scores_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.dora_performance_scores_id_seq OWNED BY public.dora_performance_scores.id; + + +-- +-- Name: draft_notes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.draft_notes ( id bigint NOT NULL, merge_request_id integer NOT NULL, author_id integer NOT NULL, @@ -10392,16 +15665,31 @@ CREATE TABLE draft_notes ( CONSTRAINT check_c497a94a0e CHECK ((char_length(line_code) <= 255)) ); -CREATE SEQUENCE draft_notes_id_seq + +-- +-- Name: draft_notes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.draft_notes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE draft_notes_id_seq OWNED BY draft_notes.id; -CREATE TABLE duo_workflows_checkpoints ( +-- +-- Name: draft_notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.draft_notes_id_seq OWNED BY public.draft_notes.id; + + +-- +-- Name: duo_workflows_checkpoints; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.duo_workflows_checkpoints ( id bigint NOT NULL, workflow_id bigint NOT NULL, project_id bigint NOT NULL, @@ -10415,16 +15703,31 @@ CREATE TABLE duo_workflows_checkpoints ( CONSTRAINT check_5d3139b983 CHECK ((char_length(thread_ts) <= 255)) ); -CREATE SEQUENCE duo_workflows_checkpoints_id_seq + +-- +-- Name: duo_workflows_checkpoints_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.duo_workflows_checkpoints_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE duo_workflows_checkpoints_id_seq OWNED BY duo_workflows_checkpoints.id; -CREATE TABLE duo_workflows_workflows ( +-- +-- Name: duo_workflows_checkpoints_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.duo_workflows_checkpoints_id_seq OWNED BY public.duo_workflows_checkpoints.id; + + +-- +-- Name: duo_workflows_workflows; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.duo_workflows_workflows ( id bigint NOT NULL, user_id bigint NOT NULL, project_id bigint NOT NULL, @@ -10433,16 +15736,31 @@ CREATE TABLE duo_workflows_workflows ( status smallint DEFAULT 0 NOT NULL ); -CREATE SEQUENCE duo_workflows_workflows_id_seq + +-- +-- Name: duo_workflows_workflows_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.duo_workflows_workflows_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE duo_workflows_workflows_id_seq OWNED BY duo_workflows_workflows.id; -CREATE TABLE early_access_program_tracking_events ( +-- +-- Name: duo_workflows_workflows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.duo_workflows_workflows_id_seq OWNED BY public.duo_workflows_workflows.id; + + +-- +-- Name: early_access_program_tracking_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.early_access_program_tracking_events ( id bigint NOT NULL, user_id bigint NOT NULL, event_name text NOT NULL, @@ -10455,16 +15773,31 @@ CREATE TABLE early_access_program_tracking_events ( CONSTRAINT check_e631e07806 CHECK ((char_length(category) <= 255)) ); -CREATE SEQUENCE early_access_program_tracking_events_id_seq + +-- +-- Name: early_access_program_tracking_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.early_access_program_tracking_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE early_access_program_tracking_events_id_seq OWNED BY early_access_program_tracking_events.id; -CREATE TABLE elastic_group_index_statuses ( +-- +-- Name: early_access_program_tracking_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.early_access_program_tracking_events_id_seq OWNED BY public.early_access_program_tracking_events.id; + + +-- +-- Name: elastic_group_index_statuses; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.elastic_group_index_statuses ( namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -10472,7 +15805,12 @@ CREATE TABLE elastic_group_index_statuses ( last_wiki_commit bytea ); -CREATE TABLE elastic_index_settings ( + +-- +-- Name: elastic_index_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.elastic_index_settings ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -10482,16 +15820,31 @@ CREATE TABLE elastic_index_settings ( CONSTRAINT check_c30005c325 CHECK ((char_length(alias_name) <= 255)) ); -CREATE SEQUENCE elastic_index_settings_id_seq + +-- +-- Name: elastic_index_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.elastic_index_settings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE elastic_index_settings_id_seq OWNED BY elastic_index_settings.id; -CREATE TABLE elastic_reindexing_slices ( +-- +-- Name: elastic_index_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.elastic_index_settings_id_seq OWNED BY public.elastic_index_settings.id; + + +-- +-- Name: elastic_reindexing_slices; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.elastic_reindexing_slices ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -10503,16 +15856,31 @@ CREATE TABLE elastic_reindexing_slices ( CONSTRAINT check_ca30e1396e CHECK ((char_length(elastic_task) <= 255)) ); -CREATE SEQUENCE elastic_reindexing_slices_id_seq + +-- +-- Name: elastic_reindexing_slices_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.elastic_reindexing_slices_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE elastic_reindexing_slices_id_seq OWNED BY elastic_reindexing_slices.id; -CREATE TABLE elastic_reindexing_subtasks ( +-- +-- Name: elastic_reindexing_slices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.elastic_reindexing_slices_id_seq OWNED BY public.elastic_reindexing_slices.id; + + +-- +-- Name: elastic_reindexing_subtasks; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.elastic_reindexing_subtasks ( id bigint NOT NULL, elastic_reindexing_task_id bigint NOT NULL, alias_name text NOT NULL, @@ -10529,16 +15897,31 @@ CREATE TABLE elastic_reindexing_subtasks ( CONSTRAINT check_f456494bd8 CHECK ((char_length(index_name_to) <= 255)) ); -CREATE SEQUENCE elastic_reindexing_subtasks_id_seq + +-- +-- Name: elastic_reindexing_subtasks_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.elastic_reindexing_subtasks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE elastic_reindexing_subtasks_id_seq OWNED BY elastic_reindexing_subtasks.id; -CREATE TABLE elastic_reindexing_tasks ( +-- +-- Name: elastic_reindexing_subtasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.elastic_reindexing_subtasks_id_seq OWNED BY public.elastic_reindexing_subtasks.id; + + +-- +-- Name: elastic_reindexing_tasks; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.elastic_reindexing_tasks ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -10553,28 +15936,53 @@ CREATE TABLE elastic_reindexing_tasks ( CONSTRAINT check_7f64acda8e CHECK ((char_length(error_message) <= 255)) ); -CREATE SEQUENCE elastic_reindexing_tasks_id_seq + +-- +-- Name: elastic_reindexing_tasks_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.elastic_reindexing_tasks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE elastic_reindexing_tasks_id_seq OWNED BY elastic_reindexing_tasks.id; -CREATE TABLE elasticsearch_indexed_namespaces ( +-- +-- Name: elastic_reindexing_tasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.elastic_reindexing_tasks_id_seq OWNED BY public.elastic_reindexing_tasks.id; + + +-- +-- Name: elasticsearch_indexed_namespaces; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.elasticsearch_indexed_namespaces ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, namespace_id integer NOT NULL ); -CREATE TABLE elasticsearch_indexed_projects ( + +-- +-- Name: elasticsearch_indexed_projects; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.elasticsearch_indexed_projects ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, project_id integer NOT NULL ); -CREATE TABLE emails ( + +-- +-- Name: emails; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.emails ( id integer NOT NULL, user_id integer NOT NULL, email character varying NOT NULL, @@ -10587,16 +15995,31 @@ CREATE TABLE emails ( CONSTRAINT check_319f6999dc CHECK ((char_length(detumbled_email) <= 255)) ); -CREATE SEQUENCE emails_id_seq + +-- +-- Name: emails_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.emails_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE emails_id_seq OWNED BY emails.id; -CREATE TABLE environments ( +-- +-- Name: emails_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.emails_id_seq OWNED BY public.emails.id; + + +-- +-- Name: environments; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.environments ( id integer NOT NULL, project_id integer NOT NULL, name character varying NOT NULL, @@ -10617,16 +16040,31 @@ CREATE TABLE environments ( CONSTRAINT check_b5373a1804 CHECK ((char_length(kubernetes_namespace) <= 63)) ); -CREATE SEQUENCE environments_id_seq + +-- +-- Name: environments_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.environments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE environments_id_seq OWNED BY environments.id; -CREATE TABLE epic_issues ( +-- +-- Name: environments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.environments_id_seq OWNED BY public.environments.id; + + +-- +-- Name: epic_issues; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.epic_issues ( id integer NOT NULL, epic_id integer NOT NULL, issue_id integer NOT NULL, @@ -10634,32 +16072,62 @@ CREATE TABLE epic_issues ( namespace_id bigint ); -CREATE SEQUENCE epic_issues_id_seq + +-- +-- Name: epic_issues_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.epic_issues_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE epic_issues_id_seq OWNED BY epic_issues.id; -CREATE TABLE epic_metrics ( +-- +-- Name: epic_issues_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.epic_issues_id_seq OWNED BY public.epic_issues.id; + + +-- +-- Name: epic_metrics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.epic_metrics ( id integer NOT NULL, epic_id integer NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); -CREATE SEQUENCE epic_metrics_id_seq + +-- +-- Name: epic_metrics_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.epic_metrics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE epic_metrics_id_seq OWNED BY epic_metrics.id; -CREATE TABLE epic_user_mentions ( +-- +-- Name: epic_metrics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.epic_metrics_id_seq OWNED BY public.epic_metrics.id; + + +-- +-- Name: epic_user_mentions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.epic_user_mentions ( id bigint NOT NULL, epic_id integer NOT NULL, mentioned_users_ids integer[], @@ -10669,16 +16137,31 @@ CREATE TABLE epic_user_mentions ( group_id bigint ); -CREATE SEQUENCE epic_user_mentions_id_seq + +-- +-- Name: epic_user_mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.epic_user_mentions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE epic_user_mentions_id_seq OWNED BY epic_user_mentions.id; -CREATE TABLE epics ( +-- +-- Name: epic_user_mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.epic_user_mentions_id_seq OWNED BY public.epic_user_mentions.id; + + +-- +-- Name: epics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.epics ( id integer NOT NULL, group_id integer NOT NULL, author_id integer NOT NULL, @@ -10725,16 +16208,31 @@ CREATE TABLE epics ( CONSTRAINT check_fcfb4a93ff CHECK ((lock_version IS NOT NULL)) ); -CREATE SEQUENCE epics_id_seq + +-- +-- Name: epics_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.epics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE epics_id_seq OWNED BY epics.id; -CREATE TABLE error_tracking_client_keys ( +-- +-- Name: epics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.epics_id_seq OWNED BY public.epics.id; + + +-- +-- Name: error_tracking_client_keys; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.error_tracking_client_keys ( id bigint NOT NULL, project_id bigint NOT NULL, active boolean DEFAULT true NOT NULL, @@ -10744,16 +16242,31 @@ CREATE TABLE error_tracking_client_keys ( CONSTRAINT check_840b719790 CHECK ((char_length(public_key) <= 255)) ); -CREATE SEQUENCE error_tracking_client_keys_id_seq + +-- +-- Name: error_tracking_client_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.error_tracking_client_keys_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE error_tracking_client_keys_id_seq OWNED BY error_tracking_client_keys.id; -CREATE TABLE error_tracking_error_events ( +-- +-- Name: error_tracking_client_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.error_tracking_client_keys_id_seq OWNED BY public.error_tracking_client_keys.id; + + +-- +-- Name: error_tracking_error_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.error_tracking_error_events ( id bigint NOT NULL, error_id bigint NOT NULL, description text NOT NULL, @@ -10769,16 +16282,31 @@ CREATE TABLE error_tracking_error_events ( CONSTRAINT check_f4b52474ad CHECK ((char_length(environment) <= 255)) ); -CREATE SEQUENCE error_tracking_error_events_id_seq + +-- +-- Name: error_tracking_error_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.error_tracking_error_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE error_tracking_error_events_id_seq OWNED BY error_tracking_error_events.id; -CREATE TABLE error_tracking_errors ( +-- +-- Name: error_tracking_error_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.error_tracking_error_events_id_seq OWNED BY public.error_tracking_error_events.id; + + +-- +-- Name: error_tracking_errors; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.error_tracking_errors ( id bigint NOT NULL, project_id bigint NOT NULL, name text NOT NULL, @@ -10797,16 +16325,31 @@ CREATE TABLE error_tracking_errors ( CONSTRAINT check_fe99886883 CHECK ((char_length(platform) <= 255)) ); -CREATE SEQUENCE error_tracking_errors_id_seq + +-- +-- Name: error_tracking_errors_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.error_tracking_errors_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE error_tracking_errors_id_seq OWNED BY error_tracking_errors.id; -CREATE TABLE events ( +-- +-- Name: error_tracking_errors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.error_tracking_errors_id_seq OWNED BY public.error_tracking_errors.id; + + +-- +-- Name: events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.events ( project_id integer, author_id integer NOT NULL, created_at timestamp with time zone NOT NULL, @@ -10821,16 +16364,31 @@ CREATE TABLE events ( CONSTRAINT check_97e06e05ad CHECK ((octet_length(fingerprint) <= 128)) ); -CREATE SEQUENCE events_id_seq + +-- +-- Name: events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE events_id_seq OWNED BY events.id; -CREATE TABLE evidences ( +-- +-- Name: events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.events_id_seq OWNED BY public.events.id; + + +-- +-- Name: evidences; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.evidences ( id bigint NOT NULL, release_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -10840,16 +16398,31 @@ CREATE TABLE evidences ( project_id bigint ); -CREATE SEQUENCE evidences_id_seq + +-- +-- Name: evidences_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.evidences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE evidences_id_seq OWNED BY evidences.id; -CREATE TABLE external_approval_rules ( +-- +-- Name: evidences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.evidences_id_seq OWNED BY public.evidences.id; + + +-- +-- Name: external_approval_rules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.external_approval_rules ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -10860,16 +16433,31 @@ CREATE TABLE external_approval_rules ( CONSTRAINT check_b634ca168d CHECK ((char_length(external_url) <= 255)) ); -CREATE SEQUENCE external_approval_rules_id_seq + +-- +-- Name: external_approval_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.external_approval_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE external_approval_rules_id_seq OWNED BY external_approval_rules.id; -CREATE TABLE external_pull_requests ( +-- +-- Name: external_approval_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.external_approval_rules_id_seq OWNED BY public.external_approval_rules.id; + + +-- +-- Name: external_pull_requests; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.external_pull_requests ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -10884,16 +16472,31 @@ CREATE TABLE external_pull_requests ( target_sha bytea NOT NULL ); -CREATE SEQUENCE external_pull_requests_id_seq + +-- +-- Name: external_pull_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.external_pull_requests_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE external_pull_requests_id_seq OWNED BY external_pull_requests.id; -CREATE TABLE external_status_checks ( +-- +-- Name: external_pull_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.external_pull_requests_id_seq OWNED BY public.external_pull_requests.id; + + +-- +-- Name: external_status_checks; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.external_status_checks ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -10906,32 +16509,62 @@ CREATE TABLE external_status_checks ( CONSTRAINT check_ae0dec3f61 CHECK ((char_length(external_url) <= 255)) ); -CREATE SEQUENCE external_status_checks_id_seq + +-- +-- Name: external_status_checks_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.external_status_checks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE external_status_checks_id_seq OWNED BY external_status_checks.id; -CREATE TABLE external_status_checks_protected_branches ( +-- +-- Name: external_status_checks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.external_status_checks_id_seq OWNED BY public.external_status_checks.id; + + +-- +-- Name: external_status_checks_protected_branches; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.external_status_checks_protected_branches ( id bigint NOT NULL, external_status_check_id bigint NOT NULL, protected_branch_id bigint NOT NULL, project_id bigint ); -CREATE SEQUENCE external_status_checks_protected_branches_id_seq + +-- +-- Name: external_status_checks_protected_branches_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.external_status_checks_protected_branches_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE external_status_checks_protected_branches_id_seq OWNED BY external_status_checks_protected_branches.id; -CREATE TABLE feature_gates ( +-- +-- Name: external_status_checks_protected_branches_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.external_status_checks_protected_branches_id_seq OWNED BY public.external_status_checks_protected_branches.id; + + +-- +-- Name: feature_gates; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.feature_gates ( id integer NOT NULL, feature_key character varying NOT NULL, key character varying NOT NULL, @@ -10940,77 +16573,152 @@ CREATE TABLE feature_gates ( updated_at timestamp without time zone NOT NULL ); -CREATE SEQUENCE feature_gates_id_seq + +-- +-- Name: feature_gates_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.feature_gates_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE feature_gates_id_seq OWNED BY feature_gates.id; -CREATE TABLE features ( +-- +-- Name: feature_gates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.feature_gates_id_seq OWNED BY public.feature_gates.id; + + +-- +-- Name: features; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.features ( id integer NOT NULL, key character varying NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); -CREATE SEQUENCE features_id_seq + +-- +-- Name: features_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.features_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE features_id_seq OWNED BY features.id; -CREATE TABLE fork_network_members ( +-- +-- Name: features_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.features_id_seq OWNED BY public.features.id; + + +-- +-- Name: fork_network_members; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.fork_network_members ( id integer NOT NULL, fork_network_id integer NOT NULL, project_id integer NOT NULL, forked_from_project_id integer ); -CREATE SEQUENCE fork_network_members_id_seq + +-- +-- Name: fork_network_members_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.fork_network_members_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE fork_network_members_id_seq OWNED BY fork_network_members.id; -CREATE TABLE fork_networks ( +-- +-- Name: fork_network_members_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.fork_network_members_id_seq OWNED BY public.fork_network_members.id; + + +-- +-- Name: fork_networks; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.fork_networks ( id integer NOT NULL, root_project_id integer, deleted_root_project_name character varying ); -CREATE SEQUENCE fork_networks_id_seq + +-- +-- Name: fork_networks_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.fork_networks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE fork_networks_id_seq OWNED BY fork_networks.id; -CREATE TABLE geo_cache_invalidation_events ( +-- +-- Name: fork_networks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.fork_networks_id_seq OWNED BY public.fork_networks.id; + + +-- +-- Name: geo_cache_invalidation_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.geo_cache_invalidation_events ( id bigint NOT NULL, key character varying NOT NULL ); -CREATE SEQUENCE geo_cache_invalidation_events_id_seq + +-- +-- Name: geo_cache_invalidation_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.geo_cache_invalidation_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE geo_cache_invalidation_events_id_seq OWNED BY geo_cache_invalidation_events.id; -CREATE TABLE geo_event_log ( +-- +-- Name: geo_cache_invalidation_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.geo_cache_invalidation_events_id_seq OWNED BY public.geo_cache_invalidation_events.id; + + +-- +-- Name: geo_event_log; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.geo_event_log ( id bigint NOT NULL, created_at timestamp without time zone NOT NULL, repositories_changed_event_id bigint, @@ -11019,16 +16727,31 @@ CREATE TABLE geo_event_log ( geo_event_id bigint ); -CREATE SEQUENCE geo_event_log_id_seq + +-- +-- Name: geo_event_log_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.geo_event_log_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE geo_event_log_id_seq OWNED BY geo_event_log.id; -CREATE TABLE geo_events ( +-- +-- Name: geo_event_log_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.geo_event_log_id_seq OWNED BY public.geo_event_log.id; + + +-- +-- Name: geo_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.geo_events ( id bigint NOT NULL, replicable_name character varying(255) NOT NULL, event_name character varying(255) NOT NULL, @@ -11036,16 +16759,31 @@ CREATE TABLE geo_events ( created_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE geo_events_id_seq + +-- +-- Name: geo_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.geo_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE geo_events_id_seq OWNED BY geo_events.id; -CREATE TABLE geo_node_namespace_links ( +-- +-- Name: geo_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.geo_events_id_seq OWNED BY public.geo_events.id; + + +-- +-- Name: geo_node_namespace_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.geo_node_namespace_links ( id integer NOT NULL, geo_node_id integer NOT NULL, namespace_id integer NOT NULL, @@ -11053,16 +16791,31 @@ CREATE TABLE geo_node_namespace_links ( updated_at timestamp without time zone NOT NULL ); -CREATE SEQUENCE geo_node_namespace_links_id_seq + +-- +-- Name: geo_node_namespace_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.geo_node_namespace_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE geo_node_namespace_links_id_seq OWNED BY geo_node_namespace_links.id; -CREATE TABLE geo_node_statuses ( +-- +-- Name: geo_node_namespace_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.geo_node_namespace_links_id_seq OWNED BY public.geo_node_namespace_links.id; + + +-- +-- Name: geo_node_statuses; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.geo_node_statuses ( id integer NOT NULL, geo_node_id integer NOT NULL, db_replication_lag_seconds integer, @@ -11084,16 +16837,31 @@ CREATE TABLE geo_node_statuses ( status jsonb DEFAULT '{}'::jsonb NOT NULL ); -CREATE SEQUENCE geo_node_statuses_id_seq + +-- +-- Name: geo_node_statuses_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.geo_node_statuses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE geo_node_statuses_id_seq OWNED BY geo_node_statuses.id; -CREATE TABLE geo_nodes ( +-- +-- Name: geo_node_statuses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.geo_node_statuses_id_seq OWNED BY public.geo_node_statuses.id; + + +-- +-- Name: geo_nodes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.geo_nodes ( id integer NOT NULL, "primary" boolean DEFAULT false NOT NULL, oauth_application_id integer, @@ -11117,16 +16885,31 @@ CREATE TABLE geo_nodes ( sync_object_storage boolean DEFAULT false NOT NULL ); -CREATE SEQUENCE geo_nodes_id_seq + +-- +-- Name: geo_nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.geo_nodes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE geo_nodes_id_seq OWNED BY geo_nodes.id; -CREATE TABLE ghost_user_migrations ( +-- +-- Name: geo_nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.geo_nodes_id_seq OWNED BY public.geo_nodes.id; + + +-- +-- Name: ghost_user_migrations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ghost_user_migrations ( id bigint NOT NULL, user_id bigint NOT NULL, initiator_user_id bigint, @@ -11136,16 +16919,31 @@ CREATE TABLE ghost_user_migrations ( consume_after timestamp with time zone DEFAULT now() NOT NULL ); -CREATE SEQUENCE ghost_user_migrations_id_seq + +-- +-- Name: ghost_user_migrations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ghost_user_migrations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ghost_user_migrations_id_seq OWNED BY ghost_user_migrations.id; -CREATE TABLE gitlab_subscription_histories ( +-- +-- Name: ghost_user_migrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ghost_user_migrations_id_seq OWNED BY public.ghost_user_migrations.id; + + +-- +-- Name: gitlab_subscription_histories; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.gitlab_subscription_histories ( id bigint NOT NULL, gitlab_subscription_created_at timestamp with time zone, gitlab_subscription_updated_at timestamp with time zone, @@ -11167,16 +16965,31 @@ CREATE TABLE gitlab_subscription_histories ( CONSTRAINT check_6d5f27a106 CHECK ((namespace_id IS NOT NULL)) ); -CREATE SEQUENCE gitlab_subscription_histories_id_seq + +-- +-- Name: gitlab_subscription_histories_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.gitlab_subscription_histories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE gitlab_subscription_histories_id_seq OWNED BY gitlab_subscription_histories.id; -CREATE TABLE gitlab_subscriptions ( +-- +-- Name: gitlab_subscription_histories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.gitlab_subscription_histories_id_seq OWNED BY public.gitlab_subscription_histories.id; + + +-- +-- Name: gitlab_subscriptions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.gitlab_subscriptions ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -11198,32 +17011,62 @@ CREATE TABLE gitlab_subscriptions ( CONSTRAINT check_77fea3f0e7 CHECK ((namespace_id IS NOT NULL)) ); -CREATE SEQUENCE gitlab_subscriptions_id_seq + +-- +-- Name: gitlab_subscriptions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.gitlab_subscriptions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE gitlab_subscriptions_id_seq OWNED BY gitlab_subscriptions.id; -CREATE TABLE gpg_key_subkeys ( +-- +-- Name: gitlab_subscriptions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.gitlab_subscriptions_id_seq OWNED BY public.gitlab_subscriptions.id; + + +-- +-- Name: gpg_key_subkeys; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.gpg_key_subkeys ( id integer NOT NULL, gpg_key_id integer NOT NULL, keyid bytea, fingerprint bytea ); -CREATE SEQUENCE gpg_key_subkeys_id_seq + +-- +-- Name: gpg_key_subkeys_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.gpg_key_subkeys_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE gpg_key_subkeys_id_seq OWNED BY gpg_key_subkeys.id; -CREATE TABLE gpg_keys ( +-- +-- Name: gpg_key_subkeys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.gpg_key_subkeys_id_seq OWNED BY public.gpg_key_subkeys.id; + + +-- +-- Name: gpg_keys; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.gpg_keys ( id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -11235,16 +17078,31 @@ CREATE TABLE gpg_keys ( externally_verified_at timestamp with time zone ); -CREATE SEQUENCE gpg_keys_id_seq + +-- +-- Name: gpg_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.gpg_keys_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE gpg_keys_id_seq OWNED BY gpg_keys.id; -CREATE TABLE gpg_signatures ( +-- +-- Name: gpg_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.gpg_keys_id_seq OWNED BY public.gpg_keys.id; + + +-- +-- Name: gpg_signatures; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.gpg_signatures ( id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -11258,16 +17116,31 @@ CREATE TABLE gpg_signatures ( gpg_key_subkey_id integer ); -CREATE SEQUENCE gpg_signatures_id_seq + +-- +-- Name: gpg_signatures_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.gpg_signatures_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE gpg_signatures_id_seq OWNED BY gpg_signatures.id; -CREATE TABLE grafana_integrations ( +-- +-- Name: gpg_signatures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.gpg_signatures_id_seq OWNED BY public.gpg_signatures.id; + + +-- +-- Name: grafana_integrations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.grafana_integrations ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -11278,16 +17151,31 @@ CREATE TABLE grafana_integrations ( enabled boolean DEFAULT false NOT NULL ); -CREATE SEQUENCE grafana_integrations_id_seq + +-- +-- Name: grafana_integrations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.grafana_integrations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE grafana_integrations_id_seq OWNED BY grafana_integrations.id; -CREATE TABLE group_crm_settings ( +-- +-- Name: grafana_integrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.grafana_integrations_id_seq OWNED BY public.grafana_integrations.id; + + +-- +-- Name: group_crm_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.group_crm_settings ( group_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -11295,16 +17183,31 @@ CREATE TABLE group_crm_settings ( source_group_id bigint ); -CREATE SEQUENCE group_crm_settings_group_id_seq + +-- +-- Name: group_crm_settings_group_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.group_crm_settings_group_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE group_crm_settings_group_id_seq OWNED BY group_crm_settings.group_id; -CREATE TABLE group_custom_attributes ( +-- +-- Name: group_crm_settings_group_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.group_crm_settings_group_id_seq OWNED BY public.group_crm_settings.group_id; + + +-- +-- Name: group_custom_attributes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.group_custom_attributes ( id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -11313,22 +17216,42 @@ CREATE TABLE group_custom_attributes ( value character varying NOT NULL ); -CREATE SEQUENCE group_custom_attributes_id_seq + +-- +-- Name: group_custom_attributes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.group_custom_attributes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE group_custom_attributes_id_seq OWNED BY group_custom_attributes.id; -CREATE TABLE group_deletion_schedules ( +-- +-- Name: group_custom_attributes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.group_custom_attributes_id_seq OWNED BY public.group_custom_attributes.id; + + +-- +-- Name: group_deletion_schedules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.group_deletion_schedules ( group_id bigint NOT NULL, user_id bigint NOT NULL, marked_for_deletion_on date NOT NULL ); -CREATE TABLE group_deploy_keys ( + +-- +-- Name: group_deploy_keys; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.group_deploy_keys ( id bigint NOT NULL, user_id bigint, created_at timestamp with time zone NOT NULL, @@ -11344,7 +17267,12 @@ CREATE TABLE group_deploy_keys ( CONSTRAINT check_f58fa0a0f7 CHECK ((char_length(key) <= 4096)) ); -CREATE TABLE group_deploy_keys_groups ( + +-- +-- Name: group_deploy_keys_groups; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.group_deploy_keys_groups ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -11353,25 +17281,50 @@ CREATE TABLE group_deploy_keys_groups ( can_push boolean DEFAULT false NOT NULL ); -CREATE SEQUENCE group_deploy_keys_groups_id_seq + +-- +-- Name: group_deploy_keys_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.group_deploy_keys_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE group_deploy_keys_groups_id_seq OWNED BY group_deploy_keys_groups.id; -CREATE SEQUENCE group_deploy_keys_id_seq +-- +-- Name: group_deploy_keys_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.group_deploy_keys_groups_id_seq OWNED BY public.group_deploy_keys_groups.id; + + +-- +-- Name: group_deploy_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.group_deploy_keys_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE group_deploy_keys_id_seq OWNED BY group_deploy_keys.id; -CREATE TABLE group_deploy_tokens ( +-- +-- Name: group_deploy_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.group_deploy_keys_id_seq OWNED BY public.group_deploy_keys.id; + + +-- +-- Name: group_deploy_tokens; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.group_deploy_tokens ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -11379,23 +17332,43 @@ CREATE TABLE group_deploy_tokens ( deploy_token_id bigint NOT NULL ); -CREATE SEQUENCE group_deploy_tokens_id_seq + +-- +-- Name: group_deploy_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.group_deploy_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE group_deploy_tokens_id_seq OWNED BY group_deploy_tokens.id; -CREATE TABLE group_features ( +-- +-- Name: group_deploy_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.group_deploy_tokens_id_seq OWNED BY public.group_deploy_tokens.id; + + +-- +-- Name: group_features; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.group_features ( group_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, wiki_access_level smallint DEFAULT 20 NOT NULL ); -CREATE TABLE group_group_links ( + +-- +-- Name: group_group_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.group_group_links ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -11406,16 +17379,31 @@ CREATE TABLE group_group_links ( member_role_id bigint ); -CREATE SEQUENCE group_group_links_id_seq + +-- +-- Name: group_group_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.group_group_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE group_group_links_id_seq OWNED BY group_group_links.id; -CREATE TABLE group_import_states ( +-- +-- Name: group_group_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.group_group_links_id_seq OWNED BY public.group_group_links.id; + + +-- +-- Name: group_import_states; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.group_import_states ( group_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -11427,16 +17415,31 @@ CREATE TABLE group_import_states ( CONSTRAINT check_96558fff96 CHECK ((char_length(jid) <= 100)) ); -CREATE SEQUENCE group_import_states_group_id_seq + +-- +-- Name: group_import_states_group_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.group_import_states_group_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE group_import_states_group_id_seq OWNED BY group_import_states.group_id; -CREATE TABLE group_merge_request_approval_settings ( +-- +-- Name: group_import_states_group_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.group_import_states_group_id_seq OWNED BY public.group_import_states.group_id; + + +-- +-- Name: group_merge_request_approval_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.group_merge_request_approval_settings ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, group_id bigint NOT NULL, @@ -11449,7 +17452,12 @@ CREATE TABLE group_merge_request_approval_settings ( require_reauthentication_to_approve boolean DEFAULT false NOT NULL ); -CREATE TABLE group_repository_storage_moves ( + +-- +-- Name: group_repository_storage_moves; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.group_repository_storage_moves ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -11463,16 +17471,31 @@ CREATE TABLE group_repository_storage_moves ( CONSTRAINT group_repository_storage_moves_source_storage_name CHECK ((char_length(source_storage_name) <= 255)) ); -CREATE SEQUENCE group_repository_storage_moves_id_seq + +-- +-- Name: group_repository_storage_moves_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.group_repository_storage_moves_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE group_repository_storage_moves_id_seq OWNED BY group_repository_storage_moves.id; -CREATE TABLE group_saved_replies ( +-- +-- Name: group_repository_storage_moves_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.group_repository_storage_moves_id_seq OWNED BY public.group_repository_storage_moves.id; + + +-- +-- Name: group_saved_replies; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.group_saved_replies ( id bigint NOT NULL, group_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -11483,16 +17506,31 @@ CREATE TABLE group_saved_replies ( CONSTRAINT check_4a96378d43 CHECK ((char_length(content) <= 10000)) ); -CREATE SEQUENCE group_saved_replies_id_seq + +-- +-- Name: group_saved_replies_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.group_saved_replies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE group_saved_replies_id_seq OWNED BY group_saved_replies.id; -CREATE TABLE group_ssh_certificates ( +-- +-- Name: group_saved_replies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.group_saved_replies_id_seq OWNED BY public.group_saved_replies.id; + + +-- +-- Name: group_ssh_certificates; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.group_ssh_certificates ( id bigint NOT NULL, namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -11503,23 +17541,43 @@ CREATE TABLE group_ssh_certificates ( CONSTRAINT check_6c1d920167 CHECK ((char_length(key) <= 524288)) ); -CREATE SEQUENCE group_ssh_certificates_id_seq + +-- +-- Name: group_ssh_certificates_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.group_ssh_certificates_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE group_ssh_certificates_id_seq OWNED BY group_ssh_certificates.id; -CREATE TABLE group_wiki_repositories ( +-- +-- Name: group_ssh_certificates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.group_ssh_certificates_id_seq OWNED BY public.group_ssh_certificates.id; + + +-- +-- Name: group_wiki_repositories; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.group_wiki_repositories ( shard_id bigint NOT NULL, group_id bigint NOT NULL, disk_path text NOT NULL, CONSTRAINT check_07f1c81806 CHECK ((char_length(disk_path) <= 80)) ); -CREATE TABLE group_wiki_repository_states ( + +-- +-- Name: group_wiki_repository_states; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.group_wiki_repository_states ( id bigint NOT NULL, verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, @@ -11532,25 +17590,50 @@ CREATE TABLE group_wiki_repository_states ( CONSTRAINT check_14d288436d CHECK ((char_length(verification_failure) <= 255)) ); -CREATE SEQUENCE group_wiki_repository_states_id_seq + +-- +-- Name: group_wiki_repository_states_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.group_wiki_repository_states_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE group_wiki_repository_states_id_seq OWNED BY group_wiki_repository_states.id; -CREATE SEQUENCE groups_visits_id_seq +-- +-- Name: group_wiki_repository_states_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.group_wiki_repository_states_id_seq OWNED BY public.group_wiki_repository_states.id; + + +-- +-- Name: groups_visits_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.groups_visits_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE groups_visits_id_seq OWNED BY groups_visits.id; -CREATE TABLE historical_data ( +-- +-- Name: groups_visits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.groups_visits_id_seq OWNED BY public.groups_visits.id; + + +-- +-- Name: historical_data; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.historical_data ( id integer NOT NULL, date date, active_user_count integer, @@ -11560,16 +17643,31 @@ CREATE TABLE historical_data ( CONSTRAINT check_640e8cf66c CHECK ((recorded_at IS NOT NULL)) ); -CREATE SEQUENCE historical_data_id_seq + +-- +-- Name: historical_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.historical_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE historical_data_id_seq OWNED BY historical_data.id; -CREATE TABLE identities ( +-- +-- Name: historical_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.historical_data_id_seq OWNED BY public.historical_data.id; + + +-- +-- Name: identities; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.identities ( id integer NOT NULL, extern_uid character varying, provider character varying, @@ -11581,16 +17679,31 @@ CREATE TABLE identities ( trusted_extern_uid boolean DEFAULT true ); -CREATE SEQUENCE identities_id_seq + +-- +-- Name: identities_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.identities_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE identities_id_seq OWNED BY identities.id; -CREATE TABLE import_export_uploads ( +-- +-- Name: identities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.identities_id_seq OWNED BY public.identities.id; + + +-- +-- Name: import_export_uploads; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.import_export_uploads ( id integer NOT NULL, updated_at timestamp with time zone NOT NULL, project_id integer, @@ -11602,16 +17715,31 @@ CREATE TABLE import_export_uploads ( CONSTRAINT check_58f0d37481 CHECK ((char_length(remote_import_url) <= 2048)) ); -CREATE SEQUENCE import_export_uploads_id_seq + +-- +-- Name: import_export_uploads_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.import_export_uploads_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE import_export_uploads_id_seq OWNED BY import_export_uploads.id; -CREATE TABLE import_failures ( +-- +-- Name: import_export_uploads_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.import_export_uploads_id_seq OWNED BY public.import_export_uploads.id; + + +-- +-- Name: import_failures; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.import_failures ( id bigint NOT NULL, relation_index integer, project_id bigint, @@ -11627,16 +17755,31 @@ CREATE TABLE import_failures ( user_id bigint ); -CREATE SEQUENCE import_failures_id_seq + +-- +-- Name: import_failures_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.import_failures_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE import_failures_id_seq OWNED BY import_failures.id; -CREATE TABLE import_placeholder_memberships ( +-- +-- Name: import_failures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.import_failures_id_seq OWNED BY public.import_failures.id; + + +-- +-- Name: import_placeholder_memberships; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.import_placeholder_memberships ( id bigint NOT NULL, source_user_id bigint NOT NULL, namespace_id bigint NOT NULL, @@ -11647,16 +17790,31 @@ CREATE TABLE import_placeholder_memberships ( access_level smallint NOT NULL ); -CREATE SEQUENCE import_placeholder_memberships_id_seq + +-- +-- Name: import_placeholder_memberships_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.import_placeholder_memberships_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE import_placeholder_memberships_id_seq OWNED BY import_placeholder_memberships.id; -CREATE TABLE import_source_user_placeholder_references ( +-- +-- Name: import_placeholder_memberships_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.import_placeholder_memberships_id_seq OWNED BY public.import_placeholder_memberships.id; + + +-- +-- Name: import_source_user_placeholder_references; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.import_source_user_placeholder_references ( id bigint NOT NULL, source_user_id bigint NOT NULL, namespace_id bigint NOT NULL, @@ -11670,16 +17828,31 @@ CREATE TABLE import_source_user_placeholder_references ( CONSTRAINT check_d17bd9dd4d CHECK ((char_length(model) <= 150)) ); -CREATE SEQUENCE import_source_user_placeholder_references_id_seq + +-- +-- Name: import_source_user_placeholder_references_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.import_source_user_placeholder_references_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE import_source_user_placeholder_references_id_seq OWNED BY import_source_user_placeholder_references.id; -CREATE TABLE import_source_users ( +-- +-- Name: import_source_user_placeholder_references_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.import_source_user_placeholder_references_id_seq OWNED BY public.import_source_user_placeholder_references.id; + + +-- +-- Name: import_source_users; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.import_source_users ( id bigint NOT NULL, placeholder_user_id bigint, reassign_to_user_id bigint, @@ -11702,16 +17875,31 @@ CREATE TABLE import_source_users ( CONSTRAINT check_e2039840c5 CHECK ((char_length(source_hostname) <= 255)) ); -CREATE SEQUENCE import_source_users_id_seq + +-- +-- Name: import_source_users_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.import_source_users_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE import_source_users_id_seq OWNED BY import_source_users.id; -CREATE TABLE incident_management_escalation_policies ( +-- +-- Name: import_source_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.import_source_users_id_seq OWNED BY public.import_source_users.id; + + +-- +-- Name: incident_management_escalation_policies; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.incident_management_escalation_policies ( id bigint NOT NULL, project_id bigint NOT NULL, name text NOT NULL, @@ -11720,16 +17908,31 @@ CREATE TABLE incident_management_escalation_policies ( CONSTRAINT check_9a26365850 CHECK ((char_length(name) <= 72)) ); -CREATE SEQUENCE incident_management_escalation_policies_id_seq + +-- +-- Name: incident_management_escalation_policies_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.incident_management_escalation_policies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE incident_management_escalation_policies_id_seq OWNED BY incident_management_escalation_policies.id; -CREATE TABLE incident_management_escalation_rules ( +-- +-- Name: incident_management_escalation_policies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.incident_management_escalation_policies_id_seq OWNED BY public.incident_management_escalation_policies.id; + + +-- +-- Name: incident_management_escalation_rules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.incident_management_escalation_rules ( id bigint NOT NULL, policy_id bigint NOT NULL, oncall_schedule_id bigint, @@ -11740,16 +17943,31 @@ CREATE TABLE incident_management_escalation_rules ( CONSTRAINT escalation_rules_one_of_oncall_schedule_or_user CHECK ((num_nonnulls(oncall_schedule_id, user_id) = 1)) ); -CREATE SEQUENCE incident_management_escalation_rules_id_seq + +-- +-- Name: incident_management_escalation_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.incident_management_escalation_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE incident_management_escalation_rules_id_seq OWNED BY incident_management_escalation_rules.id; -CREATE TABLE incident_management_issuable_escalation_statuses ( +-- +-- Name: incident_management_escalation_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.incident_management_escalation_rules_id_seq OWNED BY public.incident_management_escalation_rules.id; + + +-- +-- Name: incident_management_issuable_escalation_statuses; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.incident_management_issuable_escalation_statuses ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -11760,16 +17978,31 @@ CREATE TABLE incident_management_issuable_escalation_statuses ( status smallint DEFAULT 0 NOT NULL ); -CREATE SEQUENCE incident_management_issuable_escalation_statuses_id_seq + +-- +-- Name: incident_management_issuable_escalation_statuses_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.incident_management_issuable_escalation_statuses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE incident_management_issuable_escalation_statuses_id_seq OWNED BY incident_management_issuable_escalation_statuses.id; -CREATE TABLE incident_management_oncall_participants ( +-- +-- Name: incident_management_issuable_escalation_statuses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.incident_management_issuable_escalation_statuses_id_seq OWNED BY public.incident_management_issuable_escalation_statuses.id; + + +-- +-- Name: incident_management_oncall_participants; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.incident_management_oncall_participants ( id bigint NOT NULL, oncall_rotation_id bigint NOT NULL, user_id bigint NOT NULL, @@ -11778,16 +18011,31 @@ CREATE TABLE incident_management_oncall_participants ( is_removed boolean DEFAULT false NOT NULL ); -CREATE SEQUENCE incident_management_oncall_participants_id_seq + +-- +-- Name: incident_management_oncall_participants_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.incident_management_oncall_participants_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE incident_management_oncall_participants_id_seq OWNED BY incident_management_oncall_participants.id; -CREATE TABLE incident_management_oncall_rotations ( +-- +-- Name: incident_management_oncall_participants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.incident_management_oncall_participants_id_seq OWNED BY public.incident_management_oncall_participants.id; + + +-- +-- Name: incident_management_oncall_rotations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.incident_management_oncall_rotations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -11802,16 +18050,31 @@ CREATE TABLE incident_management_oncall_rotations ( CONSTRAINT check_5209fb5d02 CHECK ((char_length(name) <= 200)) ); -CREATE SEQUENCE incident_management_oncall_rotations_id_seq + +-- +-- Name: incident_management_oncall_rotations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.incident_management_oncall_rotations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE incident_management_oncall_rotations_id_seq OWNED BY incident_management_oncall_rotations.id; -CREATE TABLE incident_management_oncall_schedules ( +-- +-- Name: incident_management_oncall_rotations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.incident_management_oncall_rotations_id_seq OWNED BY public.incident_management_oncall_rotations.id; + + +-- +-- Name: incident_management_oncall_schedules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.incident_management_oncall_schedules ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -11825,16 +18088,31 @@ CREATE TABLE incident_management_oncall_schedules ( CONSTRAINT check_e6ef43a664 CHECK ((char_length(name) <= 200)) ); -CREATE SEQUENCE incident_management_oncall_schedules_id_seq + +-- +-- Name: incident_management_oncall_schedules_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.incident_management_oncall_schedules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE incident_management_oncall_schedules_id_seq OWNED BY incident_management_oncall_schedules.id; -CREATE TABLE incident_management_oncall_shifts ( +-- +-- Name: incident_management_oncall_schedules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.incident_management_oncall_schedules_id_seq OWNED BY public.incident_management_oncall_schedules.id; + + +-- +-- Name: incident_management_oncall_shifts; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.incident_management_oncall_shifts ( id bigint NOT NULL, rotation_id bigint NOT NULL, participant_id bigint NOT NULL, @@ -11842,50 +18120,100 @@ CREATE TABLE incident_management_oncall_shifts ( ends_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE incident_management_oncall_shifts_id_seq + +-- +-- Name: incident_management_oncall_shifts_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.incident_management_oncall_shifts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE incident_management_oncall_shifts_id_seq OWNED BY incident_management_oncall_shifts.id; -CREATE SEQUENCE incident_management_pending_alert_escalations_id_seq +-- +-- Name: incident_management_oncall_shifts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.incident_management_oncall_shifts_id_seq OWNED BY public.incident_management_oncall_shifts.id; + + +-- +-- Name: incident_management_pending_alert_escalations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.incident_management_pending_alert_escalations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE incident_management_pending_alert_escalations_id_seq OWNED BY incident_management_pending_alert_escalations.id; -CREATE SEQUENCE incident_management_pending_issue_escalations_id_seq +-- +-- Name: incident_management_pending_alert_escalations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.incident_management_pending_alert_escalations_id_seq OWNED BY public.incident_management_pending_alert_escalations.id; + + +-- +-- Name: incident_management_pending_issue_escalations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.incident_management_pending_issue_escalations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE incident_management_pending_issue_escalations_id_seq OWNED BY incident_management_pending_issue_escalations.id; -CREATE TABLE incident_management_timeline_event_tag_links ( +-- +-- Name: incident_management_pending_issue_escalations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.incident_management_pending_issue_escalations_id_seq OWNED BY public.incident_management_pending_issue_escalations.id; + + +-- +-- Name: incident_management_timeline_event_tag_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.incident_management_timeline_event_tag_links ( id bigint NOT NULL, timeline_event_id bigint NOT NULL, timeline_event_tag_id bigint NOT NULL, created_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE incident_management_timeline_event_tag_links_id_seq + +-- +-- Name: incident_management_timeline_event_tag_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.incident_management_timeline_event_tag_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE incident_management_timeline_event_tag_links_id_seq OWNED BY incident_management_timeline_event_tag_links.id; -CREATE TABLE incident_management_timeline_event_tags ( +-- +-- Name: incident_management_timeline_event_tag_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.incident_management_timeline_event_tag_links_id_seq OWNED BY public.incident_management_timeline_event_tag_links.id; + + +-- +-- Name: incident_management_timeline_event_tags; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.incident_management_timeline_event_tags ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -11894,16 +18222,31 @@ CREATE TABLE incident_management_timeline_event_tags ( CONSTRAINT check_8717184e2c CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE incident_management_timeline_event_tags_id_seq + +-- +-- Name: incident_management_timeline_event_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.incident_management_timeline_event_tags_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE incident_management_timeline_event_tags_id_seq OWNED BY incident_management_timeline_event_tags.id; -CREATE TABLE incident_management_timeline_events ( +-- +-- Name: incident_management_timeline_event_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.incident_management_timeline_event_tags_id_seq OWNED BY public.incident_management_timeline_event_tags.id; + + +-- +-- Name: incident_management_timeline_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.incident_management_timeline_events ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -11923,16 +18266,31 @@ CREATE TABLE incident_management_timeline_events ( CONSTRAINT check_94a235d6a4 CHECK ((char_length(note_html) <= 10000)) ); -CREATE SEQUENCE incident_management_timeline_events_id_seq + +-- +-- Name: incident_management_timeline_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.incident_management_timeline_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE incident_management_timeline_events_id_seq OWNED BY incident_management_timeline_events.id; -CREATE TABLE index_statuses ( +-- +-- Name: incident_management_timeline_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.incident_management_timeline_events_id_seq OWNED BY public.incident_management_timeline_events.id; + + +-- +-- Name: index_statuses; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.index_statuses ( id integer NOT NULL, project_id integer NOT NULL, indexed_at timestamp without time zone, @@ -11944,31 +18302,61 @@ CREATE TABLE index_statuses ( wiki_indexed_at timestamp with time zone ); -CREATE SEQUENCE index_statuses_id_seq + +-- +-- Name: index_statuses_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.index_statuses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE index_statuses_id_seq OWNED BY index_statuses.id; -CREATE TABLE insights ( +-- +-- Name: index_statuses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.index_statuses_id_seq OWNED BY public.index_statuses.id; + + +-- +-- Name: insights; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.insights ( id integer NOT NULL, namespace_id integer NOT NULL, project_id integer NOT NULL ); -CREATE SEQUENCE insights_id_seq + +-- +-- Name: insights_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.insights_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE insights_id_seq OWNED BY insights.id; -CREATE TABLE instance_audit_events_streaming_headers ( +-- +-- Name: insights_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.insights_id_seq OWNED BY public.insights.id; + + +-- +-- Name: instance_audit_events_streaming_headers; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.instance_audit_events_streaming_headers ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -11980,16 +18368,31 @@ CREATE TABLE instance_audit_events_streaming_headers ( CONSTRAINT check_e92010d531 CHECK ((char_length(key) <= 255)) ); -CREATE SEQUENCE instance_audit_events_streaming_headers_id_seq + +-- +-- Name: instance_audit_events_streaming_headers_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.instance_audit_events_streaming_headers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE instance_audit_events_streaming_headers_id_seq OWNED BY instance_audit_events_streaming_headers.id; -CREATE TABLE integrations ( +-- +-- Name: instance_audit_events_streaming_headers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.instance_audit_events_streaming_headers_id_seq OWNED BY public.instance_audit_events_streaming_headers.id; + + +-- +-- Name: integrations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.integrations ( id integer NOT NULL, project_id integer, created_at timestamp without time zone, @@ -12025,16 +18428,31 @@ CREATE TABLE integrations ( CONSTRAINT check_a948a0aa7e CHECK ((char_length(type_new) <= 255)) ); -CREATE SEQUENCE integrations_id_seq + +-- +-- Name: integrations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.integrations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE integrations_id_seq OWNED BY integrations.id; -CREATE TABLE internal_ids ( +-- +-- Name: integrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.integrations_id_seq OWNED BY public.integrations.id; + + +-- +-- Name: internal_ids; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.internal_ids ( id bigint NOT NULL, project_id integer, usage integer NOT NULL, @@ -12042,31 +18460,61 @@ CREATE TABLE internal_ids ( namespace_id integer ); -CREATE SEQUENCE internal_ids_id_seq + +-- +-- Name: internal_ids_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.internal_ids_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE internal_ids_id_seq OWNED BY internal_ids.id; -CREATE TABLE ip_restrictions ( +-- +-- Name: internal_ids_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.internal_ids_id_seq OWNED BY public.internal_ids.id; + + +-- +-- Name: ip_restrictions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ip_restrictions ( id bigint NOT NULL, group_id integer NOT NULL, range character varying NOT NULL ); -CREATE SEQUENCE ip_restrictions_id_seq + +-- +-- Name: ip_restrictions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ip_restrictions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ip_restrictions_id_seq OWNED BY ip_restrictions.id; -CREATE TABLE issuable_metric_images ( +-- +-- Name: ip_restrictions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ip_restrictions_id_seq OWNED BY public.ip_restrictions.id; + + +-- +-- Name: issuable_metric_images; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.issuable_metric_images ( id bigint NOT NULL, issue_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -12080,16 +18528,31 @@ CREATE TABLE issuable_metric_images ( CONSTRAINT check_7ed527062f CHECK ((char_length(file) <= 255)) ); -CREATE SEQUENCE issuable_metric_images_id_seq + +-- +-- Name: issuable_metric_images_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.issuable_metric_images_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE issuable_metric_images_id_seq OWNED BY issuable_metric_images.id; -CREATE TABLE issuable_resource_links ( +-- +-- Name: issuable_metric_images_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.issuable_metric_images_id_seq OWNED BY public.issuable_metric_images.id; + + +-- +-- Name: issuable_resource_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.issuable_resource_links ( id bigint NOT NULL, issue_id bigint NOT NULL, link_text text, @@ -12102,31 +18565,61 @@ CREATE TABLE issuable_resource_links ( CONSTRAINT check_b137147e0b CHECK ((char_length(link_text) <= 255)) ); -CREATE SEQUENCE issuable_resource_links_id_seq + +-- +-- Name: issuable_resource_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.issuable_resource_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE issuable_resource_links_id_seq OWNED BY issuable_resource_links.id; -CREATE TABLE issuable_severities ( +-- +-- Name: issuable_resource_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.issuable_resource_links_id_seq OWNED BY public.issuable_resource_links.id; + + +-- +-- Name: issuable_severities; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.issuable_severities ( id bigint NOT NULL, issue_id bigint NOT NULL, severity smallint DEFAULT 0 NOT NULL ); -CREATE SEQUENCE issuable_severities_id_seq + +-- +-- Name: issuable_severities_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.issuable_severities_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE issuable_severities_id_seq OWNED BY issuable_severities.id; -CREATE TABLE issuable_slas ( +-- +-- Name: issuable_severities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.issuable_severities_id_seq OWNED BY public.issuable_severities.id; + + +-- +-- Name: issuable_slas; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.issuable_slas ( id bigint NOT NULL, issue_id bigint NOT NULL, due_at timestamp with time zone NOT NULL, @@ -12134,21 +18627,41 @@ CREATE TABLE issuable_slas ( issuable_closed boolean DEFAULT false NOT NULL ); -CREATE SEQUENCE issuable_slas_id_seq + +-- +-- Name: issuable_slas_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.issuable_slas_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE issuable_slas_id_seq OWNED BY issuable_slas.id; -CREATE TABLE issue_assignees ( +-- +-- Name: issuable_slas_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.issuable_slas_id_seq OWNED BY public.issuable_slas.id; + + +-- +-- Name: issue_assignees; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.issue_assignees ( user_id integer NOT NULL, issue_id integer NOT NULL ); -CREATE TABLE issue_assignment_events ( + +-- +-- Name: issue_assignment_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.issue_assignment_events ( id bigint NOT NULL, user_id bigint, issue_id bigint NOT NULL, @@ -12156,16 +18669,31 @@ CREATE TABLE issue_assignment_events ( action smallint DEFAULT 1 NOT NULL ); -CREATE SEQUENCE issue_assignment_events_id_seq + +-- +-- Name: issue_assignment_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.issue_assignment_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE issue_assignment_events_id_seq OWNED BY issue_assignment_events.id; -CREATE TABLE issue_customer_relations_contacts ( +-- +-- Name: issue_assignment_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.issue_assignment_events_id_seq OWNED BY public.issue_assignment_events.id; + + +-- +-- Name: issue_customer_relations_contacts; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.issue_customer_relations_contacts ( id bigint NOT NULL, issue_id bigint NOT NULL, contact_id bigint NOT NULL, @@ -12173,16 +18701,31 @@ CREATE TABLE issue_customer_relations_contacts ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE issue_customer_relations_contacts_id_seq + +-- +-- Name: issue_customer_relations_contacts_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.issue_customer_relations_contacts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE issue_customer_relations_contacts_id_seq OWNED BY issue_customer_relations_contacts.id; -CREATE TABLE issue_email_participants ( +-- +-- Name: issue_customer_relations_contacts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.issue_customer_relations_contacts_id_seq OWNED BY public.issue_customer_relations_contacts.id; + + +-- +-- Name: issue_email_participants; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.issue_email_participants ( id bigint NOT NULL, issue_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -12191,32 +18734,62 @@ CREATE TABLE issue_email_participants ( CONSTRAINT check_2c321d408d CHECK ((char_length(email) <= 255)) ); -CREATE SEQUENCE issue_email_participants_id_seq + +-- +-- Name: issue_email_participants_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.issue_email_participants_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE issue_email_participants_id_seq OWNED BY issue_email_participants.id; -CREATE TABLE issue_emails ( +-- +-- Name: issue_email_participants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.issue_email_participants_id_seq OWNED BY public.issue_email_participants.id; + + +-- +-- Name: issue_emails; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.issue_emails ( id bigint NOT NULL, issue_id bigint NOT NULL, email_message_id text NOT NULL, CONSTRAINT check_5abf3e6aea CHECK ((char_length(email_message_id) <= 1000)) ); -CREATE SEQUENCE issue_emails_id_seq + +-- +-- Name: issue_emails_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.issue_emails_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE issue_emails_id_seq OWNED BY issue_emails.id; -CREATE TABLE issue_links ( +-- +-- Name: issue_emails_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.issue_emails_id_seq OWNED BY public.issue_emails.id; + + +-- +-- Name: issue_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.issue_links ( id integer NOT NULL, source_id integer NOT NULL, target_id integer NOT NULL, @@ -12226,16 +18799,31 @@ CREATE TABLE issue_links ( namespace_id bigint ); -CREATE SEQUENCE issue_links_id_seq + +-- +-- Name: issue_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.issue_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE issue_links_id_seq OWNED BY issue_links.id; -CREATE TABLE issue_metrics ( +-- +-- Name: issue_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.issue_links_id_seq OWNED BY public.issue_links.id; + + +-- +-- Name: issue_metrics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.issue_metrics ( id integer NOT NULL, issue_id integer NOT NULL, first_mentioned_in_commit_at timestamp without time zone, @@ -12245,16 +18833,31 @@ CREATE TABLE issue_metrics ( updated_at timestamp without time zone NOT NULL ); -CREATE SEQUENCE issue_metrics_id_seq + +-- +-- Name: issue_metrics_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.issue_metrics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE issue_metrics_id_seq OWNED BY issue_metrics.id; -CREATE TABLE issue_tracker_data ( +-- +-- Name: issue_metrics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.issue_metrics_id_seq OWNED BY public.issue_metrics.id; + + +-- +-- Name: issue_tracker_data; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.issue_tracker_data ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -12268,16 +18871,31 @@ CREATE TABLE issue_tracker_data ( CONSTRAINT check_7ca00cd891 CHECK ((integration_id IS NOT NULL)) ); -CREATE SEQUENCE issue_tracker_data_id_seq + +-- +-- Name: issue_tracker_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.issue_tracker_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE issue_tracker_data_id_seq OWNED BY issue_tracker_data.id; -CREATE TABLE issue_user_mentions ( +-- +-- Name: issue_tracker_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.issue_tracker_data_id_seq OWNED BY public.issue_tracker_data.id; + + +-- +-- Name: issue_user_mentions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.issue_user_mentions ( id bigint NOT NULL, issue_id integer NOT NULL, mentioned_users_ids integer[], @@ -12286,16 +18904,31 @@ CREATE TABLE issue_user_mentions ( note_id bigint ); -CREATE SEQUENCE issue_user_mentions_id_seq + +-- +-- Name: issue_user_mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.issue_user_mentions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE issue_user_mentions_id_seq OWNED BY issue_user_mentions.id; -CREATE TABLE issues ( +-- +-- Name: issue_user_mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.issue_user_mentions_id_seq OWNED BY public.issue_user_mentions.id; + + +-- +-- Name: issues; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.issues ( id integer NOT NULL, title character varying, author_id integer, @@ -12340,30 +18973,55 @@ CREATE TABLE issues ( CONSTRAINT check_fba63f706d CHECK ((lock_version IS NOT NULL)) ); -CREATE SEQUENCE issues_id_seq + +-- +-- Name: issues_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.issues_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE issues_id_seq OWNED BY issues.id; -CREATE TABLE issues_prometheus_alert_events ( +-- +-- Name: issues_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.issues_id_seq OWNED BY public.issues.id; + + +-- +-- Name: issues_prometheus_alert_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.issues_prometheus_alert_events ( issue_id bigint NOT NULL, prometheus_alert_event_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL ); -CREATE TABLE issues_self_managed_prometheus_alert_events ( + +-- +-- Name: issues_self_managed_prometheus_alert_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.issues_self_managed_prometheus_alert_events ( issue_id bigint NOT NULL, self_managed_prometheus_alert_event_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL ); -CREATE TABLE iterations_cadences ( + +-- +-- Name: iterations_cadences; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.iterations_cadences ( id bigint NOT NULL, group_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -12381,16 +19039,31 @@ CREATE TABLE iterations_cadences ( CONSTRAINT check_fedff82d3b CHECK ((char_length(title) <= 255)) ); -CREATE SEQUENCE iterations_cadences_id_seq + +-- +-- Name: iterations_cadences_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.iterations_cadences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE iterations_cadences_id_seq OWNED BY iterations_cadences.id; -CREATE TABLE jira_connect_installations ( +-- +-- Name: iterations_cadences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.iterations_cadences_id_seq OWNED BY public.iterations_cadences.id; + + +-- +-- Name: jira_connect_installations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.jira_connect_installations ( id bigint NOT NULL, client_key character varying, encrypted_shared_secret character varying, @@ -12400,16 +19073,31 @@ CREATE TABLE jira_connect_installations ( CONSTRAINT check_4c6abed669 CHECK ((char_length(instance_url) <= 255)) ); -CREATE SEQUENCE jira_connect_installations_id_seq + +-- +-- Name: jira_connect_installations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.jira_connect_installations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE jira_connect_installations_id_seq OWNED BY jira_connect_installations.id; -CREATE TABLE jira_connect_subscriptions ( +-- +-- Name: jira_connect_installations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.jira_connect_installations_id_seq OWNED BY public.jira_connect_installations.id; + + +-- +-- Name: jira_connect_subscriptions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.jira_connect_subscriptions ( id bigint NOT NULL, jira_connect_installation_id bigint NOT NULL, namespace_id integer NOT NULL, @@ -12417,16 +19105,31 @@ CREATE TABLE jira_connect_subscriptions ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE jira_connect_subscriptions_id_seq + +-- +-- Name: jira_connect_subscriptions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.jira_connect_subscriptions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE jira_connect_subscriptions_id_seq OWNED BY jira_connect_subscriptions.id; -CREATE TABLE jira_imports ( +-- +-- Name: jira_connect_subscriptions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.jira_connect_subscriptions_id_seq OWNED BY public.jira_connect_subscriptions.id; + + +-- +-- Name: jira_imports; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.jira_imports ( id bigint NOT NULL, project_id bigint NOT NULL, user_id bigint, @@ -12447,16 +19150,31 @@ CREATE TABLE jira_imports ( CONSTRAINT check_9ed451c5b1 CHECK ((char_length(error_message) <= 1000)) ); -CREATE SEQUENCE jira_imports_id_seq + +-- +-- Name: jira_imports_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.jira_imports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE jira_imports_id_seq OWNED BY jira_imports.id; -CREATE TABLE jira_tracker_data ( +-- +-- Name: jira_imports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.jira_imports_id_seq OWNED BY public.jira_imports.id; + + +-- +-- Name: jira_tracker_data; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.jira_tracker_data ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -12487,16 +19205,31 @@ CREATE TABLE jira_tracker_data ( CONSTRAINT check_9863a0a5fd CHECK ((char_length(jira_issue_regex) <= 255)) ); -CREATE SEQUENCE jira_tracker_data_id_seq + +-- +-- Name: jira_tracker_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.jira_tracker_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE jira_tracker_data_id_seq OWNED BY jira_tracker_data.id; -CREATE TABLE keys ( +-- +-- Name: jira_tracker_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.jira_tracker_data_id_seq OWNED BY public.jira_tracker_data.id; + + +-- +-- Name: keys; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.keys ( id integer NOT NULL, user_id integer, created_at timestamp without time zone, @@ -12514,16 +19247,31 @@ CREATE TABLE keys ( usage_type smallint DEFAULT 0 NOT NULL ); -CREATE SEQUENCE keys_id_seq + +-- +-- Name: keys_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.keys_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE keys_id_seq OWNED BY keys.id; -CREATE TABLE label_links ( +-- +-- Name: keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.keys_id_seq OWNED BY public.keys.id; + + +-- +-- Name: label_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.label_links ( id integer NOT NULL, label_id integer, target_id integer, @@ -12532,16 +19280,31 @@ CREATE TABLE label_links ( updated_at timestamp without time zone ); -CREATE SEQUENCE label_links_id_seq + +-- +-- Name: label_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.label_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE label_links_id_seq OWNED BY label_links.id; -CREATE TABLE label_priorities ( +-- +-- Name: label_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.label_links_id_seq OWNED BY public.label_links.id; + + +-- +-- Name: label_priorities; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.label_priorities ( id integer NOT NULL, project_id integer NOT NULL, label_id integer NOT NULL, @@ -12550,16 +19313,31 @@ CREATE TABLE label_priorities ( updated_at timestamp without time zone NOT NULL ); -CREATE SEQUENCE label_priorities_id_seq + +-- +-- Name: label_priorities_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.label_priorities_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE label_priorities_id_seq OWNED BY label_priorities.id; -CREATE TABLE labels ( +-- +-- Name: label_priorities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.label_priorities_id_seq OWNED BY public.label_priorities.id; + + +-- +-- Name: labels; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.labels ( id integer NOT NULL, title character varying, color character varying, @@ -12575,16 +19353,31 @@ CREATE TABLE labels ( lock_on_merge boolean DEFAULT false NOT NULL ); -CREATE SEQUENCE labels_id_seq + +-- +-- Name: labels_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.labels_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE labels_id_seq OWNED BY labels.id; -CREATE TABLE ldap_group_links ( +-- +-- Name: labels_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.labels_id_seq OWNED BY public.labels.id; + + +-- +-- Name: ldap_group_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ldap_group_links ( id integer NOT NULL, cn character varying, group_access integer NOT NULL, @@ -12596,16 +19389,31 @@ CREATE TABLE ldap_group_links ( member_role_id bigint ); -CREATE SEQUENCE ldap_group_links_id_seq + +-- +-- Name: ldap_group_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ldap_group_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ldap_group_links_id_seq OWNED BY ldap_group_links.id; -CREATE TABLE lfs_file_locks ( +-- +-- Name: ldap_group_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ldap_group_links_id_seq OWNED BY public.ldap_group_links.id; + + +-- +-- Name: lfs_file_locks; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.lfs_file_locks ( id integer NOT NULL, project_id integer NOT NULL, user_id integer NOT NULL, @@ -12613,16 +19421,31 @@ CREATE TABLE lfs_file_locks ( path character varying(511) ); -CREATE SEQUENCE lfs_file_locks_id_seq + +-- +-- Name: lfs_file_locks_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.lfs_file_locks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE lfs_file_locks_id_seq OWNED BY lfs_file_locks.id; -CREATE TABLE lfs_object_states ( +-- +-- Name: lfs_file_locks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.lfs_file_locks_id_seq OWNED BY public.lfs_file_locks.id; + + +-- +-- Name: lfs_object_states; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.lfs_object_states ( verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, verified_at timestamp with time zone, @@ -12634,16 +19457,31 @@ CREATE TABLE lfs_object_states ( CONSTRAINT check_efe45a8ab3 CHECK ((char_length(verification_failure) <= 255)) ); -CREATE SEQUENCE lfs_object_states_lfs_object_id_seq + +-- +-- Name: lfs_object_states_lfs_object_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.lfs_object_states_lfs_object_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE lfs_object_states_lfs_object_id_seq OWNED BY lfs_object_states.lfs_object_id; -CREATE TABLE lfs_objects ( +-- +-- Name: lfs_object_states_lfs_object_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.lfs_object_states_lfs_object_id_seq OWNED BY public.lfs_object_states.lfs_object_id; + + +-- +-- Name: lfs_objects; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.lfs_objects ( id integer NOT NULL, oid character varying NOT NULL, size bigint NOT NULL, @@ -12654,16 +19492,31 @@ CREATE TABLE lfs_objects ( CONSTRAINT check_eecfc5717d CHECK ((file_store IS NOT NULL)) ); -CREATE SEQUENCE lfs_objects_id_seq + +-- +-- Name: lfs_objects_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.lfs_objects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE lfs_objects_id_seq OWNED BY lfs_objects.id; -CREATE TABLE lfs_objects_projects ( +-- +-- Name: lfs_objects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.lfs_objects_id_seq OWNED BY public.lfs_objects.id; + + +-- +-- Name: lfs_objects_projects; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.lfs_objects_projects ( id integer NOT NULL, lfs_object_id integer NOT NULL, project_id integer NOT NULL, @@ -12672,16 +19525,31 @@ CREATE TABLE lfs_objects_projects ( repository_type smallint ); -CREATE SEQUENCE lfs_objects_projects_id_seq + +-- +-- Name: lfs_objects_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.lfs_objects_projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE lfs_objects_projects_id_seq OWNED BY lfs_objects_projects.id; -CREATE TABLE licenses ( +-- +-- Name: lfs_objects_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.lfs_objects_projects_id_seq OWNED BY public.lfs_objects_projects.id; + + +-- +-- Name: licenses; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.licenses ( id integer NOT NULL, data text NOT NULL, created_at timestamp without time zone, @@ -12690,16 +19558,31 @@ CREATE TABLE licenses ( last_synced_at timestamp with time zone ); -CREATE SEQUENCE licenses_id_seq + +-- +-- Name: licenses_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.licenses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE licenses_id_seq OWNED BY licenses.id; -CREATE TABLE list_user_preferences ( +-- +-- Name: licenses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.licenses_id_seq OWNED BY public.licenses.id; + + +-- +-- Name: list_user_preferences; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.list_user_preferences ( id bigint NOT NULL, user_id bigint NOT NULL, list_id bigint NOT NULL, @@ -12708,16 +19591,31 @@ CREATE TABLE list_user_preferences ( collapsed boolean ); -CREATE SEQUENCE list_user_preferences_id_seq + +-- +-- Name: list_user_preferences_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.list_user_preferences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE list_user_preferences_id_seq OWNED BY list_user_preferences.id; -CREATE TABLE lists ( +-- +-- Name: list_user_preferences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.list_user_preferences_id_seq OWNED BY public.list_user_preferences.id; + + +-- +-- Name: lists; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.lists ( id integer NOT NULL, board_id integer NOT NULL, label_id integer, @@ -12733,25 +19631,50 @@ CREATE TABLE lists ( iteration_id bigint ); -CREATE SEQUENCE lists_id_seq + +-- +-- Name: lists_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.lists_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE lists_id_seq OWNED BY lists.id; -CREATE SEQUENCE loose_foreign_keys_deleted_records_id_seq +-- +-- Name: lists_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.lists_id_seq OWNED BY public.lists.id; + + +-- +-- Name: loose_foreign_keys_deleted_records_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.loose_foreign_keys_deleted_records_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE loose_foreign_keys_deleted_records_id_seq OWNED BY loose_foreign_keys_deleted_records.id; -CREATE TABLE member_approvals ( +-- +-- Name: loose_foreign_keys_deleted_records_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.loose_foreign_keys_deleted_records_id_seq OWNED BY public.loose_foreign_keys_deleted_records.id; + + +-- +-- Name: member_approvals; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.member_approvals ( id bigint NOT NULL, reviewed_at timestamp with time zone, created_at timestamp with time zone NOT NULL, @@ -12768,16 +19691,31 @@ CREATE TABLE member_approvals ( metadata jsonb DEFAULT '{}'::jsonb NOT NULL ); -CREATE SEQUENCE member_approvals_id_seq + +-- +-- Name: member_approvals_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.member_approvals_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE member_approvals_id_seq OWNED BY member_approvals.id; -CREATE TABLE member_roles ( +-- +-- Name: member_approvals_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.member_approvals_id_seq OWNED BY public.member_approvals.id; + + +-- +-- Name: member_roles; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.member_roles ( id bigint NOT NULL, namespace_id bigint, created_at timestamp with time zone NOT NULL, @@ -12791,16 +19729,31 @@ CREATE TABLE member_roles ( CONSTRAINT check_9907916995 CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE member_roles_id_seq + +-- +-- Name: member_roles_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.member_roles_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE member_roles_id_seq OWNED BY member_roles.id; -CREATE TABLE members ( +-- +-- Name: member_roles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.member_roles_id_seq OWNED BY public.member_roles.id; + + +-- +-- Name: members; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.members ( id integer NOT NULL, access_level integer NOT NULL, source_id integer NOT NULL, @@ -12828,16 +19781,31 @@ CREATE TABLE members ( CONSTRAINT check_508774aac0 CHECK ((member_namespace_id IS NOT NULL)) ); -CREATE SEQUENCE members_id_seq + +-- +-- Name: members_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.members_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE members_id_seq OWNED BY members.id; -CREATE TABLE merge_request_assignees ( +-- +-- Name: members_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.members_id_seq OWNED BY public.members.id; + + +-- +-- Name: merge_request_assignees; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_request_assignees ( id bigint NOT NULL, user_id integer NOT NULL, merge_request_id integer NOT NULL, @@ -12845,16 +19813,31 @@ CREATE TABLE merge_request_assignees ( project_id bigint ); -CREATE SEQUENCE merge_request_assignees_id_seq + +-- +-- Name: merge_request_assignees_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.merge_request_assignees_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE merge_request_assignees_id_seq OWNED BY merge_request_assignees.id; -CREATE TABLE merge_request_assignment_events ( +-- +-- Name: merge_request_assignees_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.merge_request_assignees_id_seq OWNED BY public.merge_request_assignees.id; + + +-- +-- Name: merge_request_assignment_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_request_assignment_events ( id bigint NOT NULL, user_id bigint, merge_request_id bigint NOT NULL, @@ -12863,16 +19846,31 @@ CREATE TABLE merge_request_assignment_events ( project_id bigint ); -CREATE SEQUENCE merge_request_assignment_events_id_seq + +-- +-- Name: merge_request_assignment_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.merge_request_assignment_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE merge_request_assignment_events_id_seq OWNED BY merge_request_assignment_events.id; -CREATE TABLE merge_request_blocks ( +-- +-- Name: merge_request_assignment_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.merge_request_assignment_events_id_seq OWNED BY public.merge_request_assignment_events.id; + + +-- +-- Name: merge_request_blocks; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_request_blocks ( id bigint NOT NULL, blocking_merge_request_id integer NOT NULL, blocked_merge_request_id integer NOT NULL, @@ -12881,16 +19879,31 @@ CREATE TABLE merge_request_blocks ( project_id bigint ); -CREATE SEQUENCE merge_request_blocks_id_seq + +-- +-- Name: merge_request_blocks_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.merge_request_blocks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE merge_request_blocks_id_seq OWNED BY merge_request_blocks.id; -CREATE TABLE merge_request_cleanup_schedules ( +-- +-- Name: merge_request_blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.merge_request_blocks_id_seq OWNED BY public.merge_request_blocks.id; + + +-- +-- Name: merge_request_cleanup_schedules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_request_cleanup_schedules ( merge_request_id bigint NOT NULL, scheduled_at timestamp with time zone NOT NULL, completed_at timestamp with time zone, @@ -12900,16 +19913,31 @@ CREATE TABLE merge_request_cleanup_schedules ( failed_count integer DEFAULT 0 NOT NULL ); -CREATE SEQUENCE merge_request_cleanup_schedules_merge_request_id_seq + +-- +-- Name: merge_request_cleanup_schedules_merge_request_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.merge_request_cleanup_schedules_merge_request_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE merge_request_cleanup_schedules_merge_request_id_seq OWNED BY merge_request_cleanup_schedules.merge_request_id; -CREATE TABLE merge_request_context_commit_diff_files ( +-- +-- Name: merge_request_cleanup_schedules_merge_request_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.merge_request_cleanup_schedules_merge_request_id_seq OWNED BY public.merge_request_cleanup_schedules.merge_request_id; + + +-- +-- Name: merge_request_context_commit_diff_files; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_request_context_commit_diff_files ( sha bytea NOT NULL, relative_order integer NOT NULL, new_file boolean NOT NULL, @@ -12927,7 +19955,12 @@ CREATE TABLE merge_request_context_commit_diff_files ( encoded_file_path boolean DEFAULT false NOT NULL ); -CREATE TABLE merge_request_context_commits ( + +-- +-- Name: merge_request_context_commits; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_request_context_commits ( id bigint NOT NULL, authored_date timestamp with time zone, committed_date timestamp with time zone, @@ -12944,16 +19977,31 @@ CREATE TABLE merge_request_context_commits ( CONSTRAINT check_1dc6b5f2ac CHECK ((merge_request_id IS NOT NULL)) ); -CREATE SEQUENCE merge_request_context_commits_id_seq + +-- +-- Name: merge_request_context_commits_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.merge_request_context_commits_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE merge_request_context_commits_id_seq OWNED BY merge_request_context_commits.id; -CREATE TABLE merge_request_diff_commit_users ( +-- +-- Name: merge_request_context_commits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.merge_request_context_commits_id_seq OWNED BY public.merge_request_context_commits.id; + + +-- +-- Name: merge_request_diff_commit_users; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_request_diff_commit_users ( id bigint NOT NULL, name text, email text, @@ -12962,16 +20010,31 @@ CREATE TABLE merge_request_diff_commit_users ( CONSTRAINT merge_request_diff_commit_users_name_or_email_existence CHECK (((COALESCE(name, ''::text) <> ''::text) OR (COALESCE(email, ''::text) <> ''::text))) ); -CREATE SEQUENCE merge_request_diff_commit_users_id_seq + +-- +-- Name: merge_request_diff_commit_users_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.merge_request_diff_commit_users_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE merge_request_diff_commit_users_id_seq OWNED BY merge_request_diff_commit_users.id; -CREATE TABLE merge_request_diff_commits ( +-- +-- Name: merge_request_diff_commit_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.merge_request_diff_commit_users_id_seq OWNED BY public.merge_request_diff_commit_users.id; + + +-- +-- Name: merge_request_diff_commits; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_request_diff_commits ( authored_date timestamp without time zone, committed_date timestamp without time zone, merge_request_diff_id integer NOT NULL, @@ -12983,7 +20046,12 @@ CREATE TABLE merge_request_diff_commits ( committer_id bigint ); -CREATE TABLE merge_request_diff_details ( + +-- +-- Name: merge_request_diff_details; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_request_diff_details ( merge_request_diff_id bigint NOT NULL, verification_retry_at timestamp with time zone, verified_at timestamp with time zone, @@ -12995,16 +20063,31 @@ CREATE TABLE merge_request_diff_details ( CONSTRAINT check_81429e3622 CHECK ((char_length(verification_failure) <= 255)) ); -CREATE SEQUENCE merge_request_diff_details_merge_request_diff_id_seq + +-- +-- Name: merge_request_diff_details_merge_request_diff_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.merge_request_diff_details_merge_request_diff_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE merge_request_diff_details_merge_request_diff_id_seq OWNED BY merge_request_diff_details.merge_request_diff_id; -CREATE TABLE merge_request_diff_files ( +-- +-- Name: merge_request_diff_details_merge_request_diff_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.merge_request_diff_details_merge_request_diff_id_seq OWNED BY public.merge_request_diff_details.merge_request_diff_id; + + +-- +-- Name: merge_request_diff_files; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_request_diff_files ( merge_request_diff_id integer NOT NULL, relative_order integer NOT NULL, new_file boolean NOT NULL, @@ -13023,7 +20106,12 @@ CREATE TABLE merge_request_diff_files ( encoded_file_path boolean DEFAULT false NOT NULL ); -CREATE TABLE merge_request_diffs ( + +-- +-- Name: merge_request_diffs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_request_diffs ( id integer NOT NULL, state character varying, merge_request_id integer NOT NULL, @@ -13046,16 +20134,31 @@ CREATE TABLE merge_request_diffs ( CONSTRAINT check_93ee616ac9 CHECK ((external_diff_store IS NOT NULL)) ); -CREATE SEQUENCE merge_request_diffs_id_seq + +-- +-- Name: merge_request_diffs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.merge_request_diffs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE merge_request_diffs_id_seq OWNED BY merge_request_diffs.id; -CREATE TABLE merge_request_metrics ( +-- +-- Name: merge_request_diffs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.merge_request_diffs_id_seq OWNED BY public.merge_request_diffs.id; + + +-- +-- Name: merge_request_metrics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_request_metrics ( merge_request_id integer NOT NULL, latest_build_started_at timestamp without time zone, latest_build_finished_at timestamp without time zone, @@ -13084,16 +20187,31 @@ CREATE TABLE merge_request_metrics ( CONSTRAINT check_e03d0900bf CHECK ((target_project_id IS NOT NULL)) ); -CREATE SEQUENCE merge_request_metrics_id_seq + +-- +-- Name: merge_request_metrics_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.merge_request_metrics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE merge_request_metrics_id_seq OWNED BY merge_request_metrics.id; -CREATE TABLE merge_request_predictions ( +-- +-- Name: merge_request_metrics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.merge_request_metrics_id_seq OWNED BY public.merge_request_metrics.id; + + +-- +-- Name: merge_request_predictions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_request_predictions ( merge_request_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13101,16 +20219,31 @@ CREATE TABLE merge_request_predictions ( accepted_reviewers jsonb DEFAULT '{}'::jsonb NOT NULL ); -CREATE SEQUENCE merge_request_predictions_merge_request_id_seq + +-- +-- Name: merge_request_predictions_merge_request_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.merge_request_predictions_merge_request_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE merge_request_predictions_merge_request_id_seq OWNED BY merge_request_predictions.merge_request_id; -CREATE TABLE merge_request_requested_changes ( +-- +-- Name: merge_request_predictions_merge_request_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.merge_request_predictions_merge_request_id_seq OWNED BY public.merge_request_predictions.merge_request_id; + + +-- +-- Name: merge_request_requested_changes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_request_requested_changes ( id bigint NOT NULL, project_id bigint NOT NULL, user_id bigint NOT NULL, @@ -13119,16 +20252,31 @@ CREATE TABLE merge_request_requested_changes ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE merge_request_requested_changes_id_seq + +-- +-- Name: merge_request_requested_changes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.merge_request_requested_changes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE merge_request_requested_changes_id_seq OWNED BY merge_request_requested_changes.id; -CREATE TABLE merge_request_reviewers ( +-- +-- Name: merge_request_requested_changes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.merge_request_requested_changes_id_seq OWNED BY public.merge_request_requested_changes.id; + + +-- +-- Name: merge_request_reviewers; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_request_reviewers ( id bigint NOT NULL, user_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -13137,16 +20285,31 @@ CREATE TABLE merge_request_reviewers ( project_id bigint ); -CREATE SEQUENCE merge_request_reviewers_id_seq + +-- +-- Name: merge_request_reviewers_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.merge_request_reviewers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE merge_request_reviewers_id_seq OWNED BY merge_request_reviewers.id; -CREATE TABLE merge_request_user_mentions ( +-- +-- Name: merge_request_reviewers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.merge_request_reviewers_id_seq OWNED BY public.merge_request_reviewers.id; + + +-- +-- Name: merge_request_user_mentions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_request_user_mentions ( id bigint NOT NULL, merge_request_id integer NOT NULL, mentioned_users_ids integer[], @@ -13156,16 +20319,31 @@ CREATE TABLE merge_request_user_mentions ( project_id bigint ); -CREATE SEQUENCE merge_request_user_mentions_id_seq + +-- +-- Name: merge_request_user_mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.merge_request_user_mentions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE merge_request_user_mentions_id_seq OWNED BY merge_request_user_mentions.id; -CREATE TABLE merge_requests ( +-- +-- Name: merge_request_user_mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.merge_request_user_mentions_id_seq OWNED BY public.merge_request_user_mentions.id; + + +-- +-- Name: merge_requests; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_requests ( id integer NOT NULL, target_branch character varying NOT NULL, source_branch character varying NOT NULL, @@ -13216,7 +20394,12 @@ CREATE TABLE merge_requests ( CONSTRAINT check_970d272570 CHECK ((lock_version IS NOT NULL)) ); -CREATE TABLE merge_requests_closing_issues ( + +-- +-- Name: merge_requests_closing_issues; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_requests_closing_issues ( id integer NOT NULL, merge_request_id integer NOT NULL, issue_id integer NOT NULL, @@ -13226,16 +20409,31 @@ CREATE TABLE merge_requests_closing_issues ( project_id bigint ); -CREATE SEQUENCE merge_requests_closing_issues_id_seq + +-- +-- Name: merge_requests_closing_issues_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.merge_requests_closing_issues_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE merge_requests_closing_issues_id_seq OWNED BY merge_requests_closing_issues.id; -CREATE TABLE merge_requests_compliance_violations ( +-- +-- Name: merge_requests_closing_issues_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.merge_requests_closing_issues_id_seq OWNED BY public.merge_requests_closing_issues.id; + + +-- +-- Name: merge_requests_compliance_violations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_requests_compliance_violations ( id bigint NOT NULL, violating_user_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -13247,25 +20445,50 @@ CREATE TABLE merge_requests_compliance_violations ( target_branch text ); -CREATE SEQUENCE merge_requests_compliance_violations_id_seq + +-- +-- Name: merge_requests_compliance_violations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.merge_requests_compliance_violations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE merge_requests_compliance_violations_id_seq OWNED BY merge_requests_compliance_violations.id; -CREATE SEQUENCE merge_requests_id_seq +-- +-- Name: merge_requests_compliance_violations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.merge_requests_compliance_violations_id_seq OWNED BY public.merge_requests_compliance_violations.id; + + +-- +-- Name: merge_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.merge_requests_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE merge_requests_id_seq OWNED BY merge_requests.id; -CREATE TABLE merge_trains ( +-- +-- Name: merge_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.merge_requests_id_seq OWNED BY public.merge_requests.id; + + +-- +-- Name: merge_trains; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.merge_trains ( id bigint NOT NULL, merge_request_id integer NOT NULL, user_id integer NOT NULL, @@ -13279,16 +20502,31 @@ CREATE TABLE merge_trains ( pipeline_id bigint ); -CREATE SEQUENCE merge_trains_id_seq + +-- +-- Name: merge_trains_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.merge_trains_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE merge_trains_id_seq OWNED BY merge_trains.id; -CREATE TABLE metrics_dashboard_annotations ( +-- +-- Name: merge_trains_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.merge_trains_id_seq OWNED BY public.merge_trains.id; + + +-- +-- Name: metrics_dashboard_annotations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.metrics_dashboard_annotations ( id bigint NOT NULL, starting_at timestamp with time zone NOT NULL, ending_at timestamp with time zone, @@ -13299,16 +20537,31 @@ CREATE TABLE metrics_dashboard_annotations ( description text NOT NULL ); -CREATE SEQUENCE metrics_dashboard_annotations_id_seq + +-- +-- Name: metrics_dashboard_annotations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.metrics_dashboard_annotations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE metrics_dashboard_annotations_id_seq OWNED BY metrics_dashboard_annotations.id; -CREATE TABLE metrics_users_starred_dashboards ( +-- +-- Name: metrics_dashboard_annotations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.metrics_dashboard_annotations_id_seq OWNED BY public.metrics_dashboard_annotations.id; + + +-- +-- Name: metrics_users_starred_dashboards; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.metrics_users_starred_dashboards ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13318,21 +20571,41 @@ CREATE TABLE metrics_users_starred_dashboards ( CONSTRAINT check_79a84a0f57 CHECK ((char_length(dashboard_path) <= 255)) ); -CREATE SEQUENCE metrics_users_starred_dashboards_id_seq + +-- +-- Name: metrics_users_starred_dashboards_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.metrics_users_starred_dashboards_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE metrics_users_starred_dashboards_id_seq OWNED BY metrics_users_starred_dashboards.id; -CREATE TABLE milestone_releases ( +-- +-- Name: metrics_users_starred_dashboards_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.metrics_users_starred_dashboards_id_seq OWNED BY public.metrics_users_starred_dashboards.id; + + +-- +-- Name: milestone_releases; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.milestone_releases ( milestone_id bigint NOT NULL, release_id bigint NOT NULL ); -CREATE TABLE milestones ( + +-- +-- Name: milestones; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.milestones ( id integer NOT NULL, title character varying NOT NULL, project_id integer, @@ -13350,16 +20623,31 @@ CREATE TABLE milestones ( lock_version integer DEFAULT 0 NOT NULL ); -CREATE SEQUENCE milestones_id_seq + +-- +-- Name: milestones_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.milestones_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE milestones_id_seq OWNED BY milestones.id; -CREATE TABLE ml_candidate_metadata ( +-- +-- Name: milestones_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.milestones_id_seq OWNED BY public.milestones.id; + + +-- +-- Name: ml_candidate_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ml_candidate_metadata ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13371,16 +20659,31 @@ CREATE TABLE ml_candidate_metadata ( CONSTRAINT check_9453f4a8e9 CHECK ((char_length(value) <= 5000)) ); -CREATE SEQUENCE ml_candidate_metadata_id_seq + +-- +-- Name: ml_candidate_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ml_candidate_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ml_candidate_metadata_id_seq OWNED BY ml_candidate_metadata.id; -CREATE TABLE ml_candidate_metrics ( +-- +-- Name: ml_candidate_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ml_candidate_metadata_id_seq OWNED BY public.ml_candidate_metadata.id; + + +-- +-- Name: ml_candidate_metrics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ml_candidate_metrics ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13394,16 +20697,31 @@ CREATE TABLE ml_candidate_metrics ( CONSTRAINT check_d7dfd3de26 CHECK ((candidate_id IS NOT NULL)) ); -CREATE SEQUENCE ml_candidate_metrics_id_seq + +-- +-- Name: ml_candidate_metrics_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ml_candidate_metrics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ml_candidate_metrics_id_seq OWNED BY ml_candidate_metrics.id; -CREATE TABLE ml_candidate_params ( +-- +-- Name: ml_candidate_metrics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ml_candidate_metrics_id_seq OWNED BY public.ml_candidate_metrics.id; + + +-- +-- Name: ml_candidate_params; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ml_candidate_params ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13415,16 +20733,31 @@ CREATE TABLE ml_candidate_params ( CONSTRAINT check_7a0505ca91 CHECK ((candidate_id IS NOT NULL)) ); -CREATE SEQUENCE ml_candidate_params_id_seq + +-- +-- Name: ml_candidate_params_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ml_candidate_params_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ml_candidate_params_id_seq OWNED BY ml_candidate_params.id; -CREATE TABLE ml_candidates ( +-- +-- Name: ml_candidate_params_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ml_candidate_params_id_seq OWNED BY public.ml_candidate_params.id; + + +-- +-- Name: ml_candidates; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ml_candidates ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13445,16 +20778,31 @@ CREATE TABLE ml_candidates ( CONSTRAINT check_cd160587d4 CHECK ((eid IS NOT NULL)) ); -CREATE SEQUENCE ml_candidates_id_seq + +-- +-- Name: ml_candidates_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ml_candidates_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ml_candidates_id_seq OWNED BY ml_candidates.id; -CREATE TABLE ml_experiment_metadata ( +-- +-- Name: ml_candidates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ml_candidates_id_seq OWNED BY public.ml_candidates.id; + + +-- +-- Name: ml_experiment_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ml_experiment_metadata ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13466,16 +20814,31 @@ CREATE TABLE ml_experiment_metadata ( CONSTRAINT check_a91c633d68 CHECK ((char_length(value) <= 5000)) ); -CREATE SEQUENCE ml_experiment_metadata_id_seq + +-- +-- Name: ml_experiment_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ml_experiment_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ml_experiment_metadata_id_seq OWNED BY ml_experiment_metadata.id; -CREATE TABLE ml_experiments ( +-- +-- Name: ml_experiment_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ml_experiment_metadata_id_seq OWNED BY public.ml_experiment_metadata.id; + + +-- +-- Name: ml_experiments; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ml_experiments ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13488,16 +20851,31 @@ CREATE TABLE ml_experiments ( CONSTRAINT check_ee07a0be2c CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE ml_experiments_id_seq + +-- +-- Name: ml_experiments_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ml_experiments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ml_experiments_id_seq OWNED BY ml_experiments.id; -CREATE TABLE ml_model_metadata ( +-- +-- Name: ml_experiments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ml_experiments_id_seq OWNED BY public.ml_experiments.id; + + +-- +-- Name: ml_model_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ml_model_metadata ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13509,16 +20887,31 @@ CREATE TABLE ml_model_metadata ( CONSTRAINT check_36240c80a7 CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE ml_model_metadata_id_seq + +-- +-- Name: ml_model_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ml_model_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ml_model_metadata_id_seq OWNED BY ml_model_metadata.id; -CREATE TABLE ml_model_version_metadata ( +-- +-- Name: ml_model_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ml_model_metadata_id_seq OWNED BY public.ml_model_metadata.id; + + +-- +-- Name: ml_model_version_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ml_model_version_metadata ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13530,16 +20923,31 @@ CREATE TABLE ml_model_version_metadata ( CONSTRAINT check_21c444e039 CHECK ((char_length(value) <= 5000)) ); -CREATE SEQUENCE ml_model_version_metadata_id_seq + +-- +-- Name: ml_model_version_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ml_model_version_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ml_model_version_metadata_id_seq OWNED BY ml_model_version_metadata.id; -CREATE TABLE ml_model_versions ( +-- +-- Name: ml_model_version_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ml_model_version_metadata_id_seq OWNED BY public.ml_model_version_metadata.id; + + +-- +-- Name: ml_model_versions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ml_model_versions ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13560,16 +20968,31 @@ CREATE TABLE ml_model_versions ( CONSTRAINT check_caff7d000b CHECK ((char_length(description) <= 500)) ); -CREATE SEQUENCE ml_model_versions_id_seq + +-- +-- Name: ml_model_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ml_model_versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ml_model_versions_id_seq OWNED BY ml_model_versions.id; -CREATE TABLE ml_models ( +-- +-- Name: ml_model_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ml_model_versions_id_seq OWNED BY public.ml_model_versions.id; + + +-- +-- Name: ml_models; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ml_models ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13584,16 +21007,31 @@ CREATE TABLE ml_models ( CONSTRAINT check_d0c47d63b5 CHECK ((char_length(description) <= 5000)) ); -CREATE SEQUENCE ml_models_id_seq + +-- +-- Name: ml_models_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ml_models_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ml_models_id_seq OWNED BY ml_models.id; -CREATE TABLE namespace_admin_notes ( +-- +-- Name: ml_models_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ml_models_id_seq OWNED BY public.ml_models.id; + + +-- +-- Name: namespace_admin_notes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.namespace_admin_notes ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13602,20 +21040,40 @@ CREATE TABLE namespace_admin_notes ( CONSTRAINT check_e9d2e71b5d CHECK ((char_length(note) <= 1000)) ); -CREATE SEQUENCE namespace_admin_notes_id_seq + +-- +-- Name: namespace_admin_notes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.namespace_admin_notes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE namespace_admin_notes_id_seq OWNED BY namespace_admin_notes.id; -CREATE TABLE namespace_aggregation_schedules ( +-- +-- Name: namespace_admin_notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.namespace_admin_notes_id_seq OWNED BY public.namespace_admin_notes.id; + + +-- +-- Name: namespace_aggregation_schedules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.namespace_aggregation_schedules ( namespace_id integer NOT NULL ); -CREATE TABLE namespace_bans ( + +-- +-- Name: namespace_bans; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.namespace_bans ( id bigint NOT NULL, namespace_id bigint NOT NULL, user_id bigint NOT NULL, @@ -13623,21 +21081,41 @@ CREATE TABLE namespace_bans ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE namespace_bans_id_seq + +-- +-- Name: namespace_bans_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.namespace_bans_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE namespace_bans_id_seq OWNED BY namespace_bans.id; -CREATE TABLE namespace_ci_cd_settings ( +-- +-- Name: namespace_bans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.namespace_bans_id_seq OWNED BY public.namespace_bans.id; + + +-- +-- Name: namespace_ci_cd_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.namespace_ci_cd_settings ( namespace_id bigint NOT NULL, allow_stale_runner_pruning boolean DEFAULT false NOT NULL ); -CREATE TABLE namespace_commit_emails ( + +-- +-- Name: namespace_commit_emails; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.namespace_commit_emails ( id bigint NOT NULL, user_id bigint NOT NULL, namespace_id bigint NOT NULL, @@ -13646,16 +21124,31 @@ CREATE TABLE namespace_commit_emails ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE namespace_commit_emails_id_seq + +-- +-- Name: namespace_commit_emails_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.namespace_commit_emails_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE namespace_commit_emails_id_seq OWNED BY namespace_commit_emails.id; -CREATE TABLE namespace_details ( +-- +-- Name: namespace_commit_emails_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.namespace_commit_emails_id_seq OWNED BY public.namespace_commit_emails.id; + + +-- +-- Name: namespace_details; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.namespace_details ( namespace_id bigint NOT NULL, created_at timestamp with time zone, updated_at timestamp with time zone, @@ -13666,22 +21159,42 @@ CREATE TABLE namespace_details ( pending_delete boolean DEFAULT false NOT NULL ); -CREATE TABLE namespace_import_users ( + +-- +-- Name: namespace_import_users; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.namespace_import_users ( id bigint NOT NULL, user_id bigint NOT NULL, namespace_id bigint NOT NULL ); -CREATE SEQUENCE namespace_import_users_id_seq + +-- +-- Name: namespace_import_users_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.namespace_import_users_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE namespace_import_users_id_seq OWNED BY namespace_import_users.id; -CREATE TABLE namespace_ldap_settings ( +-- +-- Name: namespace_import_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.namespace_import_users_id_seq OWNED BY public.namespace_import_users.id; + + +-- +-- Name: namespace_ldap_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.namespace_ldap_settings ( namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13693,7 +21206,12 @@ CREATE TABLE namespace_ldap_settings ( CONSTRAINT check_51a03d26b6 CHECK ((char_length(sync_error) <= 255)) ); -CREATE TABLE namespace_limits ( + +-- +-- Name: namespace_limits; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.namespace_limits ( additional_purchased_storage_size bigint DEFAULT 0 NOT NULL, additional_purchased_storage_ends_on date, namespace_id integer NOT NULL, @@ -13705,7 +21223,12 @@ CREATE TABLE namespace_limits ( max_number_of_vulnerabilities_per_project integer ); -CREATE TABLE namespace_package_settings ( + +-- +-- Name: namespace_package_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.namespace_package_settings ( namespace_id bigint NOT NULL, maven_duplicates_allowed boolean DEFAULT true NOT NULL, maven_duplicate_exception_regex text DEFAULT ''::text NOT NULL, @@ -13728,7 +21251,12 @@ CREATE TABLE namespace_package_settings ( CONSTRAINT check_f10503f1ad CHECK ((char_length(terraform_module_duplicate_exception_regex) <= 255)) ); -CREATE TABLE namespace_root_storage_statistics ( + +-- +-- Name: namespace_root_storage_statistics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.namespace_root_storage_statistics ( namespace_id integer NOT NULL, updated_at timestamp with time zone NOT NULL, repository_size bigint DEFAULT 0 NOT NULL, @@ -13749,7 +21277,12 @@ CREATE TABLE namespace_root_storage_statistics ( private_forks_storage_size bigint DEFAULT 0 NOT NULL ); -CREATE TABLE namespace_settings ( + +-- +-- Name: namespace_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.namespace_settings ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, namespace_id integer NOT NULL, @@ -13806,7 +21339,12 @@ CREATE TABLE namespace_settings ( CONSTRAINT namespace_settings_unique_project_download_limit_allowlist_size CHECK ((cardinality(unique_project_download_limit_allowlist) <= 100)) ); -CREATE TABLE namespace_statistics ( + +-- +-- Name: namespace_statistics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.namespace_statistics ( id integer NOT NULL, namespace_id integer NOT NULL, shared_runners_seconds integer DEFAULT 0 NOT NULL, @@ -13816,25 +21354,50 @@ CREATE TABLE namespace_statistics ( dependency_proxy_size bigint DEFAULT 0 NOT NULL ); -CREATE SEQUENCE namespace_statistics_id_seq + +-- +-- Name: namespace_statistics_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.namespace_statistics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE namespace_statistics_id_seq OWNED BY namespace_statistics.id; -CREATE SEQUENCE namespaces_id_seq +-- +-- Name: namespace_statistics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.namespace_statistics_id_seq OWNED BY public.namespace_statistics.id; + + +-- +-- Name: namespaces_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.namespaces_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE namespaces_id_seq OWNED BY namespaces.id; -CREATE TABLE namespaces_storage_limit_exclusions ( +-- +-- Name: namespaces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.namespaces_id_seq OWNED BY public.namespaces.id; + + +-- +-- Name: namespaces_storage_limit_exclusions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.namespaces_storage_limit_exclusions ( id bigint NOT NULL, namespace_id bigint NOT NULL, reason text NOT NULL, @@ -13843,30 +21406,60 @@ CREATE TABLE namespaces_storage_limit_exclusions ( CONSTRAINT check_81640b2ee2 CHECK ((char_length(reason) <= 255)) ); -CREATE SEQUENCE namespaces_storage_limit_exclusions_id_seq + +-- +-- Name: namespaces_storage_limit_exclusions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.namespaces_storage_limit_exclusions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE namespaces_storage_limit_exclusions_id_seq OWNED BY namespaces_storage_limit_exclusions.id; -CREATE TABLE namespaces_sync_events ( +-- +-- Name: namespaces_storage_limit_exclusions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.namespaces_storage_limit_exclusions_id_seq OWNED BY public.namespaces_storage_limit_exclusions.id; + + +-- +-- Name: namespaces_sync_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.namespaces_sync_events ( id bigint NOT NULL, namespace_id bigint NOT NULL ); -CREATE SEQUENCE namespaces_sync_events_id_seq + +-- +-- Name: namespaces_sync_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.namespaces_sync_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE namespaces_sync_events_id_seq OWNED BY namespaces_sync_events.id; -CREATE TABLE note_diff_files ( +-- +-- Name: namespaces_sync_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.namespaces_sync_events_id_seq OWNED BY public.namespaces_sync_events.id; + + +-- +-- Name: note_diff_files; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.note_diff_files ( id integer NOT NULL, diff text NOT NULL, new_file boolean NOT NULL, @@ -13879,16 +21472,31 @@ CREATE TABLE note_diff_files ( diff_note_id bigint NOT NULL ); -CREATE SEQUENCE note_diff_files_id_seq + +-- +-- Name: note_diff_files_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.note_diff_files_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE note_diff_files_id_seq OWNED BY note_diff_files.id; -CREATE TABLE note_metadata ( +-- +-- Name: note_diff_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.note_diff_files_id_seq OWNED BY public.note_diff_files.id; + + +-- +-- Name: note_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.note_metadata ( note_id bigint NOT NULL, email_participant text, created_at timestamp with time zone, @@ -13896,16 +21504,31 @@ CREATE TABLE note_metadata ( CONSTRAINT check_40aa5ff1c6 CHECK ((char_length(email_participant) <= 255)) ); -CREATE SEQUENCE note_metadata_note_id_seq + +-- +-- Name: note_metadata_note_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.note_metadata_note_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE note_metadata_note_id_seq OWNED BY note_metadata.note_id; -CREATE TABLE notes ( +-- +-- Name: note_metadata_note_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.note_metadata_note_id_seq OWNED BY public.note_metadata.note_id; + + +-- +-- Name: notes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.notes ( note text, noteable_type character varying, author_id integer, @@ -13939,16 +21562,31 @@ CREATE TABLE notes ( CONSTRAINT check_1244cbd7d0 CHECK ((noteable_type IS NOT NULL)) ); -CREATE SEQUENCE notes_id_seq + +-- +-- Name: notes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.notes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE notes_id_seq OWNED BY notes.id; -CREATE TABLE notification_settings ( +-- +-- Name: notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.notes_id_seq OWNED BY public.notes.id; + + +-- +-- Name: notification_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.notification_settings ( id integer NOT NULL, user_id integer NOT NULL, source_id integer, @@ -13980,16 +21618,31 @@ CREATE TABLE notification_settings ( approver boolean DEFAULT false NOT NULL ); -CREATE SEQUENCE notification_settings_id_seq + +-- +-- Name: notification_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.notification_settings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE notification_settings_id_seq OWNED BY notification_settings.id; -CREATE TABLE oauth_access_grants ( +-- +-- Name: notification_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.notification_settings_id_seq OWNED BY public.notification_settings.id; + + +-- +-- Name: oauth_access_grants; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.oauth_access_grants ( id integer NOT NULL, resource_owner_id integer NOT NULL, application_id integer NOT NULL, @@ -14005,16 +21658,31 @@ CREATE TABLE oauth_access_grants ( CONSTRAINT oauth_access_grants_code_challenge_method CHECK ((char_length(code_challenge_method) <= 5)) ); -CREATE SEQUENCE oauth_access_grants_id_seq + +-- +-- Name: oauth_access_grants_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.oauth_access_grants_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE oauth_access_grants_id_seq OWNED BY oauth_access_grants.id; -CREATE TABLE oauth_access_tokens ( +-- +-- Name: oauth_access_grants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.oauth_access_grants_id_seq OWNED BY public.oauth_access_grants.id; + + +-- +-- Name: oauth_access_tokens; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.oauth_access_tokens ( id integer NOT NULL, resource_owner_id integer, application_id integer, @@ -14027,16 +21695,31 @@ CREATE TABLE oauth_access_tokens ( CONSTRAINT check_70f294ef54 CHECK ((expires_in IS NOT NULL)) ); -CREATE SEQUENCE oauth_access_tokens_id_seq + +-- +-- Name: oauth_access_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.oauth_access_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE oauth_access_tokens_id_seq OWNED BY oauth_access_tokens.id; -CREATE TABLE oauth_applications ( +-- +-- Name: oauth_access_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.oauth_access_tokens_id_seq OWNED BY public.oauth_access_tokens.id; + + +-- +-- Name: oauth_applications; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.oauth_applications ( id integer NOT NULL, name character varying NOT NULL, uid character varying NOT NULL, @@ -14052,16 +21735,31 @@ CREATE TABLE oauth_applications ( expire_access_tokens boolean DEFAULT false NOT NULL ); -CREATE SEQUENCE oauth_applications_id_seq + +-- +-- Name: oauth_applications_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.oauth_applications_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE oauth_applications_id_seq OWNED BY oauth_applications.id; -CREATE TABLE oauth_device_grants ( +-- +-- Name: oauth_applications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.oauth_applications_id_seq OWNED BY public.oauth_applications.id; + + +-- +-- Name: oauth_device_grants; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.oauth_device_grants ( id bigint NOT NULL, resource_owner_id bigint, application_id bigint NOT NULL, @@ -14076,31 +21774,61 @@ CREATE TABLE oauth_device_grants ( CONSTRAINT check_b36370c6df CHECK ((char_length(user_code) <= 255)) ); -CREATE SEQUENCE oauth_device_grants_id_seq + +-- +-- Name: oauth_device_grants_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.oauth_device_grants_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE oauth_device_grants_id_seq OWNED BY oauth_device_grants.id; -CREATE TABLE oauth_openid_requests ( +-- +-- Name: oauth_device_grants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.oauth_device_grants_id_seq OWNED BY public.oauth_device_grants.id; + + +-- +-- Name: oauth_openid_requests; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.oauth_openid_requests ( id integer NOT NULL, access_grant_id integer NOT NULL, nonce character varying NOT NULL ); -CREATE SEQUENCE oauth_openid_requests_id_seq + +-- +-- Name: oauth_openid_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.oauth_openid_requests_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE oauth_openid_requests_id_seq OWNED BY oauth_openid_requests.id; -CREATE TABLE observability_logs_issues_connections ( +-- +-- Name: oauth_openid_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.oauth_openid_requests_id_seq OWNED BY public.oauth_openid_requests.id; + + +-- +-- Name: observability_logs_issues_connections; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.observability_logs_issues_connections ( id bigint NOT NULL, issue_id bigint NOT NULL, project_id bigint NOT NULL, @@ -14116,16 +21844,31 @@ CREATE TABLE observability_logs_issues_connections ( CONSTRAINT check_d86a20d56b CHECK ((char_length(service_name) <= 500)) ); -CREATE SEQUENCE observability_logs_issues_connections_id_seq + +-- +-- Name: observability_logs_issues_connections_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.observability_logs_issues_connections_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE observability_logs_issues_connections_id_seq OWNED BY observability_logs_issues_connections.id; -CREATE TABLE observability_metrics_issues_connections ( +-- +-- Name: observability_logs_issues_connections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.observability_logs_issues_connections_id_seq OWNED BY public.observability_logs_issues_connections.id; + + +-- +-- Name: observability_metrics_issues_connections; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.observability_metrics_issues_connections ( id bigint NOT NULL, issue_id bigint NOT NULL, namespace_id bigint NOT NULL, @@ -14137,16 +21880,31 @@ CREATE TABLE observability_metrics_issues_connections ( CONSTRAINT check_3c743c1262 CHECK ((char_length(metric_name) <= 500)) ); -CREATE SEQUENCE observability_metrics_issues_connections_id_seq + +-- +-- Name: observability_metrics_issues_connections_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.observability_metrics_issues_connections_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE observability_metrics_issues_connections_id_seq OWNED BY observability_metrics_issues_connections.id; -CREATE TABLE observability_traces_issues_connections ( +-- +-- Name: observability_metrics_issues_connections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.observability_metrics_issues_connections_id_seq OWNED BY public.observability_metrics_issues_connections.id; + + +-- +-- Name: observability_traces_issues_connections; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.observability_traces_issues_connections ( id bigint NOT NULL, issue_id bigint NOT NULL, project_id bigint NOT NULL, @@ -14156,16 +21914,31 @@ CREATE TABLE observability_traces_issues_connections ( CONSTRAINT check_5b51f9ea15 CHECK ((char_length(trace_identifier) <= 128)) ); -CREATE SEQUENCE observability_traces_issues_connections_id_seq + +-- +-- Name: observability_traces_issues_connections_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.observability_traces_issues_connections_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE observability_traces_issues_connections_id_seq OWNED BY observability_traces_issues_connections.id; -CREATE TABLE onboarding_progresses ( +-- +-- Name: observability_traces_issues_connections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.observability_traces_issues_connections_id_seq OWNED BY public.observability_traces_issues_connections.id; + + +-- +-- Name: onboarding_progresses; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.onboarding_progresses ( id bigint NOT NULL, namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -14185,16 +21958,31 @@ CREATE TABLE onboarding_progresses ( ended_at timestamp with time zone ); -CREATE SEQUENCE onboarding_progresses_id_seq + +-- +-- Name: onboarding_progresses_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.onboarding_progresses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE onboarding_progresses_id_seq OWNED BY onboarding_progresses.id; -CREATE TABLE operations_feature_flag_scopes ( +-- +-- Name: onboarding_progresses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.onboarding_progresses_id_seq OWNED BY public.onboarding_progresses.id; + + +-- +-- Name: operations_feature_flag_scopes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.operations_feature_flag_scopes ( id bigint NOT NULL, feature_flag_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -14204,16 +21992,31 @@ CREATE TABLE operations_feature_flag_scopes ( strategies jsonb DEFAULT '[{"name": "default", "parameters": {}}]'::jsonb NOT NULL ); -CREATE SEQUENCE operations_feature_flag_scopes_id_seq + +-- +-- Name: operations_feature_flag_scopes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.operations_feature_flag_scopes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE operations_feature_flag_scopes_id_seq OWNED BY operations_feature_flag_scopes.id; -CREATE TABLE operations_feature_flags ( +-- +-- Name: operations_feature_flag_scopes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.operations_feature_flag_scopes_id_seq OWNED BY public.operations_feature_flag_scopes.id; + + +-- +-- Name: operations_feature_flags; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.operations_feature_flags ( id bigint NOT NULL, project_id integer NOT NULL, active boolean NOT NULL, @@ -14225,63 +22028,123 @@ CREATE TABLE operations_feature_flags ( version smallint DEFAULT 1 NOT NULL ); -CREATE TABLE operations_feature_flags_clients ( + +-- +-- Name: operations_feature_flags_clients; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.operations_feature_flags_clients ( id bigint NOT NULL, project_id integer NOT NULL, token_encrypted character varying, last_feature_flag_updated_at timestamp with time zone ); -CREATE SEQUENCE operations_feature_flags_clients_id_seq + +-- +-- Name: operations_feature_flags_clients_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.operations_feature_flags_clients_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE operations_feature_flags_clients_id_seq OWNED BY operations_feature_flags_clients.id; -CREATE SEQUENCE operations_feature_flags_id_seq +-- +-- Name: operations_feature_flags_clients_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.operations_feature_flags_clients_id_seq OWNED BY public.operations_feature_flags_clients.id; + + +-- +-- Name: operations_feature_flags_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.operations_feature_flags_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE operations_feature_flags_id_seq OWNED BY operations_feature_flags.id; -CREATE TABLE operations_feature_flags_issues ( +-- +-- Name: operations_feature_flags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.operations_feature_flags_id_seq OWNED BY public.operations_feature_flags.id; + + +-- +-- Name: operations_feature_flags_issues; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.operations_feature_flags_issues ( id bigint NOT NULL, feature_flag_id bigint NOT NULL, issue_id bigint NOT NULL, project_id bigint ); -CREATE SEQUENCE operations_feature_flags_issues_id_seq + +-- +-- Name: operations_feature_flags_issues_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.operations_feature_flags_issues_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE operations_feature_flags_issues_id_seq OWNED BY operations_feature_flags_issues.id; -CREATE TABLE operations_scopes ( +-- +-- Name: operations_feature_flags_issues_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.operations_feature_flags_issues_id_seq OWNED BY public.operations_feature_flags_issues.id; + + +-- +-- Name: operations_scopes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.operations_scopes ( id bigint NOT NULL, strategy_id bigint NOT NULL, environment_scope character varying(255) NOT NULL ); -CREATE SEQUENCE operations_scopes_id_seq + +-- +-- Name: operations_scopes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.operations_scopes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE operations_scopes_id_seq OWNED BY operations_scopes.id; -CREATE TABLE operations_strategies ( +-- +-- Name: operations_scopes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.operations_scopes_id_seq OWNED BY public.operations_scopes.id; + + +-- +-- Name: operations_strategies; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.operations_strategies ( id bigint NOT NULL, feature_flag_id bigint NOT NULL, name character varying(255) NOT NULL, @@ -14289,32 +22152,62 @@ CREATE TABLE operations_strategies ( project_id bigint ); -CREATE SEQUENCE operations_strategies_id_seq + +-- +-- Name: operations_strategies_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.operations_strategies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE operations_strategies_id_seq OWNED BY operations_strategies.id; -CREATE TABLE operations_strategies_user_lists ( +-- +-- Name: operations_strategies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.operations_strategies_id_seq OWNED BY public.operations_strategies.id; + + +-- +-- Name: operations_strategies_user_lists; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.operations_strategies_user_lists ( id bigint NOT NULL, strategy_id bigint NOT NULL, user_list_id bigint NOT NULL, project_id bigint ); -CREATE SEQUENCE operations_strategies_user_lists_id_seq + +-- +-- Name: operations_strategies_user_lists_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.operations_strategies_user_lists_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE operations_strategies_user_lists_id_seq OWNED BY operations_strategies_user_lists.id; -CREATE TABLE operations_user_lists ( +-- +-- Name: operations_strategies_user_lists_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.operations_strategies_user_lists_id_seq OWNED BY public.operations_strategies_user_lists.id; + + +-- +-- Name: operations_user_lists; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.operations_user_lists ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -14324,16 +22217,31 @@ CREATE TABLE operations_user_lists ( user_xids text DEFAULT ''::text NOT NULL ); -CREATE SEQUENCE operations_user_lists_id_seq + +-- +-- Name: operations_user_lists_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.operations_user_lists_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE operations_user_lists_id_seq OWNED BY operations_user_lists.id; -CREATE TABLE organization_details ( +-- +-- Name: operations_user_lists_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.operations_user_lists_id_seq OWNED BY public.operations_user_lists.id; + + +-- +-- Name: organization_details; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.organization_details ( organization_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14345,14 +22253,24 @@ CREATE TABLE organization_details ( CONSTRAINT check_9fbd483b51 CHECK ((char_length(avatar) <= 255)) ); -CREATE TABLE organization_settings ( + +-- +-- Name: organization_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.organization_settings ( organization_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, settings jsonb DEFAULT '{}'::jsonb NOT NULL ); -CREATE TABLE organization_users ( + +-- +-- Name: organization_users; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.organization_users ( id bigint NOT NULL, organization_id bigint NOT NULL, user_id bigint NOT NULL, @@ -14361,16 +22279,31 @@ CREATE TABLE organization_users ( access_level smallint DEFAULT 10 NOT NULL ); -CREATE SEQUENCE organization_users_id_seq + +-- +-- Name: organization_users_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.organization_users_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE organization_users_id_seq OWNED BY organization_users.id; -CREATE TABLE organizations ( +-- +-- Name: organization_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.organization_users_id_seq OWNED BY public.organization_users.id; + + +-- +-- Name: organizations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.organizations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14381,86 +22314,176 @@ CREATE TABLE organizations ( CONSTRAINT check_d130d769e0 CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE organizations_id_seq + +-- +-- Name: organizations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.organizations_id_seq START WITH 1000 INCREMENT BY 1 MINVALUE 1000 NO MAXVALUE CACHE 1; -ALTER SEQUENCE organizations_id_seq OWNED BY organizations.id; -CREATE SEQUENCE p_batched_git_ref_updates_deletions_id_seq +-- +-- Name: organizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.organizations_id_seq OWNED BY public.organizations.id; + + +-- +-- Name: p_batched_git_ref_updates_deletions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.p_batched_git_ref_updates_deletions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE p_batched_git_ref_updates_deletions_id_seq OWNED BY p_batched_git_ref_updates_deletions.id; -CREATE SEQUENCE p_catalog_resource_component_usages_id_seq +-- +-- Name: p_batched_git_ref_updates_deletions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.p_batched_git_ref_updates_deletions_id_seq OWNED BY public.p_batched_git_ref_updates_deletions.id; + + +-- +-- Name: p_catalog_resource_component_usages_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.p_catalog_resource_component_usages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE p_catalog_resource_component_usages_id_seq OWNED BY p_catalog_resource_component_usages.id; -CREATE SEQUENCE p_catalog_resource_sync_events_id_seq +-- +-- Name: p_catalog_resource_component_usages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.p_catalog_resource_component_usages_id_seq OWNED BY public.p_catalog_resource_component_usages.id; + + +-- +-- Name: p_catalog_resource_sync_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.p_catalog_resource_sync_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE p_catalog_resource_sync_events_id_seq OWNED BY p_catalog_resource_sync_events.id; -CREATE SEQUENCE p_ci_build_tags_id_seq +-- +-- Name: p_catalog_resource_sync_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.p_catalog_resource_sync_events_id_seq OWNED BY public.p_catalog_resource_sync_events.id; + + +-- +-- Name: p_ci_build_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.p_ci_build_tags_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE p_ci_build_tags_id_seq OWNED BY p_ci_build_tags.id; -CREATE SEQUENCE p_ci_builds_execution_configs_id_seq +-- +-- Name: p_ci_build_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.p_ci_build_tags_id_seq OWNED BY public.p_ci_build_tags.id; + + +-- +-- Name: p_ci_builds_execution_configs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.p_ci_builds_execution_configs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE p_ci_builds_execution_configs_id_seq OWNED BY p_ci_builds_execution_configs.id; -CREATE SEQUENCE p_ci_job_annotations_id_seq +-- +-- Name: p_ci_builds_execution_configs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.p_ci_builds_execution_configs_id_seq OWNED BY public.p_ci_builds_execution_configs.id; + + +-- +-- Name: p_ci_job_annotations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.p_ci_job_annotations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE p_ci_job_annotations_id_seq OWNED BY p_ci_job_annotations.id; -CREATE TABLE packages_build_infos ( +-- +-- Name: p_ci_job_annotations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.p_ci_job_annotations_id_seq OWNED BY public.p_ci_job_annotations.id; + + +-- +-- Name: packages_build_infos; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_build_infos ( id bigint NOT NULL, package_id integer NOT NULL, pipeline_id bigint, project_id bigint ); -CREATE SEQUENCE packages_build_infos_id_seq + +-- +-- Name: packages_build_infos_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_build_infos_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_build_infos_id_seq OWNED BY packages_build_infos.id; -CREATE TABLE packages_cleanup_policies ( +-- +-- Name: packages_build_infos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_build_infos_id_seq OWNED BY public.packages_build_infos.id; + + +-- +-- Name: packages_cleanup_policies; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_cleanup_policies ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, project_id bigint NOT NULL, @@ -14469,7 +22492,12 @@ CREATE TABLE packages_cleanup_policies ( CONSTRAINT check_e53f35ab7b CHECK ((char_length(keep_n_duplicated_package_files) <= 255)) ); -CREATE TABLE packages_composer_cache_files ( + +-- +-- Name: packages_composer_cache_files; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_composer_cache_files ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14481,23 +22509,43 @@ CREATE TABLE packages_composer_cache_files ( CONSTRAINT check_84f5ba81f5 CHECK ((char_length(file) <= 255)) ); -CREATE SEQUENCE packages_composer_cache_files_id_seq + +-- +-- Name: packages_composer_cache_files_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_composer_cache_files_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_composer_cache_files_id_seq OWNED BY packages_composer_cache_files.id; -CREATE TABLE packages_composer_metadata ( +-- +-- Name: packages_composer_cache_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_composer_cache_files_id_seq OWNED BY public.packages_composer_cache_files.id; + + +-- +-- Name: packages_composer_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_composer_metadata ( package_id bigint NOT NULL, target_sha bytea NOT NULL, composer_json jsonb DEFAULT '{}'::jsonb NOT NULL, version_cache_sha bytea ); -CREATE TABLE packages_conan_file_metadata ( + +-- +-- Name: packages_conan_file_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_conan_file_metadata ( id bigint NOT NULL, package_file_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -14508,16 +22556,31 @@ CREATE TABLE packages_conan_file_metadata ( conan_file_type smallint NOT NULL ); -CREATE SEQUENCE packages_conan_file_metadata_id_seq + +-- +-- Name: packages_conan_file_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_conan_file_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_conan_file_metadata_id_seq OWNED BY packages_conan_file_metadata.id; -CREATE TABLE packages_conan_metadata ( +-- +-- Name: packages_conan_file_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_conan_file_metadata_id_seq OWNED BY public.packages_conan_file_metadata.id; + + +-- +-- Name: packages_conan_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_conan_metadata ( id bigint NOT NULL, package_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -14541,16 +22604,31 @@ CREATE TABLE packages_conan_metadata ( CONSTRAINT check_e7f03884b8 CHECK ((char_length(compiler) <= 32)) ); -CREATE SEQUENCE packages_conan_metadata_id_seq + +-- +-- Name: packages_conan_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_conan_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_conan_metadata_id_seq OWNED BY packages_conan_metadata.id; -CREATE TABLE packages_debian_file_metadata ( +-- +-- Name: packages_conan_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_conan_metadata_id_seq OWNED BY public.packages_conan_metadata.id; + + +-- +-- Name: packages_debian_file_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_debian_file_metadata ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, package_file_id bigint NOT NULL, @@ -14562,7 +22640,12 @@ CREATE TABLE packages_debian_file_metadata ( CONSTRAINT check_e6e1fffcca CHECK ((char_length(architecture) <= 255)) ); -CREATE TABLE packages_debian_group_architectures ( + +-- +-- Name: packages_debian_group_architectures; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_debian_group_architectures ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14572,16 +22655,31 @@ CREATE TABLE packages_debian_group_architectures ( CONSTRAINT check_ddb220164a CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE packages_debian_group_architectures_id_seq + +-- +-- Name: packages_debian_group_architectures_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_debian_group_architectures_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_debian_group_architectures_id_seq OWNED BY packages_debian_group_architectures.id; -CREATE TABLE packages_debian_group_component_files ( +-- +-- Name: packages_debian_group_architectures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_debian_group_architectures_id_seq OWNED BY public.packages_debian_group_architectures.id; + + +-- +-- Name: packages_debian_group_component_files; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_debian_group_component_files ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14596,16 +22694,31 @@ CREATE TABLE packages_debian_group_component_files ( CONSTRAINT check_839e1685bc CHECK ((char_length(file) <= 255)) ); -CREATE SEQUENCE packages_debian_group_component_files_id_seq + +-- +-- Name: packages_debian_group_component_files_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_debian_group_component_files_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_debian_group_component_files_id_seq OWNED BY packages_debian_group_component_files.id; -CREATE TABLE packages_debian_group_components ( +-- +-- Name: packages_debian_group_component_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_debian_group_component_files_id_seq OWNED BY public.packages_debian_group_component_files.id; + + +-- +-- Name: packages_debian_group_components; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_debian_group_components ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14615,16 +22728,31 @@ CREATE TABLE packages_debian_group_components ( CONSTRAINT check_a9bc7d85be CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE packages_debian_group_components_id_seq + +-- +-- Name: packages_debian_group_components_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_debian_group_components_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_debian_group_components_id_seq OWNED BY packages_debian_group_components.id; -CREATE TABLE packages_debian_group_distribution_keys ( +-- +-- Name: packages_debian_group_components_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_debian_group_components_id_seq OWNED BY public.packages_debian_group_components.id; + + +-- +-- Name: packages_debian_group_distribution_keys; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_debian_group_distribution_keys ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14640,16 +22768,31 @@ CREATE TABLE packages_debian_group_distribution_keys ( CONSTRAINT check_f708183491 CHECK ((char_length(public_key) <= 524288)) ); -CREATE SEQUENCE packages_debian_group_distribution_keys_id_seq + +-- +-- Name: packages_debian_group_distribution_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_debian_group_distribution_keys_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_debian_group_distribution_keys_id_seq OWNED BY packages_debian_group_distribution_keys.id; -CREATE TABLE packages_debian_group_distributions ( +-- +-- Name: packages_debian_group_distribution_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_debian_group_distribution_keys_id_seq OWNED BY public.packages_debian_group_distribution_keys.id; + + +-- +-- Name: packages_debian_group_distributions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_debian_group_distributions ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14680,16 +22823,31 @@ CREATE TABLE packages_debian_group_distributions ( CONSTRAINT check_e7c928a24b CHECK ((char_length(suite) <= 255)) ); -CREATE SEQUENCE packages_debian_group_distributions_id_seq + +-- +-- Name: packages_debian_group_distributions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_debian_group_distributions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_debian_group_distributions_id_seq OWNED BY packages_debian_group_distributions.id; -CREATE TABLE packages_debian_project_architectures ( +-- +-- Name: packages_debian_group_distributions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_debian_group_distributions_id_seq OWNED BY public.packages_debian_group_distributions.id; + + +-- +-- Name: packages_debian_project_architectures; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_debian_project_architectures ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14699,16 +22857,31 @@ CREATE TABLE packages_debian_project_architectures ( CONSTRAINT check_9c2e1c99d8 CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE packages_debian_project_architectures_id_seq + +-- +-- Name: packages_debian_project_architectures_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_debian_project_architectures_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_debian_project_architectures_id_seq OWNED BY packages_debian_project_architectures.id; -CREATE TABLE packages_debian_project_component_files ( +-- +-- Name: packages_debian_project_architectures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_debian_project_architectures_id_seq OWNED BY public.packages_debian_project_architectures.id; + + +-- +-- Name: packages_debian_project_component_files; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_debian_project_component_files ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14723,16 +22896,31 @@ CREATE TABLE packages_debian_project_component_files ( CONSTRAINT check_e5af03fa2d CHECK ((char_length(file) <= 255)) ); -CREATE SEQUENCE packages_debian_project_component_files_id_seq + +-- +-- Name: packages_debian_project_component_files_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_debian_project_component_files_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_debian_project_component_files_id_seq OWNED BY packages_debian_project_component_files.id; -CREATE TABLE packages_debian_project_components ( +-- +-- Name: packages_debian_project_component_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_debian_project_component_files_id_seq OWNED BY public.packages_debian_project_component_files.id; + + +-- +-- Name: packages_debian_project_components; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_debian_project_components ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14742,16 +22930,31 @@ CREATE TABLE packages_debian_project_components ( CONSTRAINT check_517559f298 CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE packages_debian_project_components_id_seq + +-- +-- Name: packages_debian_project_components_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_debian_project_components_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_debian_project_components_id_seq OWNED BY packages_debian_project_components.id; -CREATE TABLE packages_debian_project_distribution_keys ( +-- +-- Name: packages_debian_project_components_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_debian_project_components_id_seq OWNED BY public.packages_debian_project_components.id; + + +-- +-- Name: packages_debian_project_distribution_keys; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_debian_project_distribution_keys ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14767,16 +22970,31 @@ CREATE TABLE packages_debian_project_distribution_keys ( CONSTRAINT check_d188f6547f CHECK ((char_length(public_key) <= 524288)) ); -CREATE SEQUENCE packages_debian_project_distribution_keys_id_seq + +-- +-- Name: packages_debian_project_distribution_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_debian_project_distribution_keys_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_debian_project_distribution_keys_id_seq OWNED BY packages_debian_project_distribution_keys.id; -CREATE TABLE packages_debian_project_distributions ( +-- +-- Name: packages_debian_project_distribution_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_debian_project_distribution_keys_id_seq OWNED BY public.packages_debian_project_distribution_keys.id; + + +-- +-- Name: packages_debian_project_distributions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_debian_project_distributions ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14807,48 +23025,93 @@ CREATE TABLE packages_debian_project_distributions ( CONSTRAINT check_cb4ac9599e CHECK ((char_length(file) <= 255)) ); -CREATE SEQUENCE packages_debian_project_distributions_id_seq + +-- +-- Name: packages_debian_project_distributions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_debian_project_distributions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_debian_project_distributions_id_seq OWNED BY packages_debian_project_distributions.id; -CREATE TABLE packages_debian_publications ( +-- +-- Name: packages_debian_project_distributions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_debian_project_distributions_id_seq OWNED BY public.packages_debian_project_distributions.id; + + +-- +-- Name: packages_debian_publications; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_debian_publications ( id bigint NOT NULL, package_id bigint NOT NULL, distribution_id bigint NOT NULL, project_id bigint ); -CREATE SEQUENCE packages_debian_publications_id_seq + +-- +-- Name: packages_debian_publications_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_debian_publications_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_debian_publications_id_seq OWNED BY packages_debian_publications.id; -CREATE TABLE packages_dependencies ( +-- +-- Name: packages_debian_publications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_debian_publications_id_seq OWNED BY public.packages_debian_publications.id; + + +-- +-- Name: packages_dependencies; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_dependencies ( id bigint NOT NULL, name character varying(255) NOT NULL, version_pattern character varying(255) NOT NULL, project_id bigint ); -CREATE SEQUENCE packages_dependencies_id_seq + +-- +-- Name: packages_dependencies_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_dependencies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_dependencies_id_seq OWNED BY packages_dependencies.id; -CREATE TABLE packages_dependency_links ( +-- +-- Name: packages_dependencies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_dependencies_id_seq OWNED BY public.packages_dependencies.id; + + +-- +-- Name: packages_dependency_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_dependency_links ( id bigint NOT NULL, package_id bigint NOT NULL, dependency_id bigint NOT NULL, @@ -14856,16 +23119,31 @@ CREATE TABLE packages_dependency_links ( project_id bigint ); -CREATE SEQUENCE packages_dependency_links_id_seq + +-- +-- Name: packages_dependency_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_dependency_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_dependency_links_id_seq OWNED BY packages_dependency_links.id; -CREATE TABLE packages_helm_file_metadata ( +-- +-- Name: packages_dependency_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_dependency_links_id_seq OWNED BY public.packages_dependency_links.id; + + +-- +-- Name: packages_helm_file_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_helm_file_metadata ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, package_file_id bigint NOT NULL, @@ -14874,7 +23152,12 @@ CREATE TABLE packages_helm_file_metadata ( CONSTRAINT check_06e8d100af CHECK ((char_length(channel) <= 255)) ); -CREATE TABLE packages_maven_metadata ( + +-- +-- Name: packages_maven_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_maven_metadata ( id bigint NOT NULL, package_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -14886,22 +23169,42 @@ CREATE TABLE packages_maven_metadata ( project_id bigint ); -CREATE SEQUENCE packages_maven_metadata_id_seq + +-- +-- Name: packages_maven_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_maven_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_maven_metadata_id_seq OWNED BY packages_maven_metadata.id; -CREATE TABLE packages_npm_metadata ( +-- +-- Name: packages_maven_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_maven_metadata_id_seq OWNED BY public.packages_maven_metadata.id; + + +-- +-- Name: packages_npm_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_npm_metadata ( package_id bigint NOT NULL, package_json jsonb DEFAULT '{}'::jsonb NOT NULL, CONSTRAINT chk_rails_e5cbc301ae CHECK ((char_length((package_json)::text) < 20000)) ); -CREATE TABLE packages_npm_metadata_caches ( + +-- +-- Name: packages_npm_metadata_caches; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_npm_metadata_caches ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14917,22 +23220,42 @@ CREATE TABLE packages_npm_metadata_caches ( CONSTRAINT check_f97c15aa60 CHECK ((char_length(object_storage_key) <= 255)) ); -CREATE SEQUENCE packages_npm_metadata_caches_id_seq + +-- +-- Name: packages_npm_metadata_caches_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_npm_metadata_caches_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_npm_metadata_caches_id_seq OWNED BY packages_npm_metadata_caches.id; -CREATE TABLE packages_nuget_dependency_link_metadata ( +-- +-- Name: packages_npm_metadata_caches_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_npm_metadata_caches_id_seq OWNED BY public.packages_npm_metadata_caches.id; + + +-- +-- Name: packages_nuget_dependency_link_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_nuget_dependency_link_metadata ( dependency_link_id bigint NOT NULL, target_framework text NOT NULL, CONSTRAINT packages_nuget_dependency_link_metadata_target_framework_constr CHECK ((char_length(target_framework) <= 255)) ); -CREATE TABLE packages_nuget_metadata ( + +-- +-- Name: packages_nuget_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_nuget_metadata ( package_id bigint NOT NULL, license_url text, project_url text, @@ -14948,7 +23271,12 @@ CREATE TABLE packages_nuget_metadata ( CONSTRAINT packages_nuget_metadata_project_url_constraint CHECK ((char_length(project_url) <= 255)) ); -CREATE TABLE packages_nuget_symbols ( + +-- +-- Name: packages_nuget_symbols; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_nuget_symbols ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14967,31 +23295,61 @@ CREATE TABLE packages_nuget_symbols ( CONSTRAINT check_8dc7152679 CHECK ((char_length(signature) <= 255)) ); -CREATE SEQUENCE packages_nuget_symbols_id_seq + +-- +-- Name: packages_nuget_symbols_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_nuget_symbols_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_nuget_symbols_id_seq OWNED BY packages_nuget_symbols.id; -CREATE TABLE packages_package_file_build_infos ( +-- +-- Name: packages_nuget_symbols_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_nuget_symbols_id_seq OWNED BY public.packages_nuget_symbols.id; + + +-- +-- Name: packages_package_file_build_infos; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_package_file_build_infos ( id bigint NOT NULL, package_file_id bigint NOT NULL, pipeline_id bigint ); -CREATE SEQUENCE packages_package_file_build_infos_id_seq + +-- +-- Name: packages_package_file_build_infos_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_package_file_build_infos_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_package_file_build_infos_id_seq OWNED BY packages_package_file_build_infos.id; -CREATE TABLE packages_package_files ( +-- +-- Name: packages_package_file_build_infos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_package_file_build_infos_id_seq OWNED BY public.packages_package_file_build_infos.id; + + +-- +-- Name: packages_package_files; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_package_files ( id bigint NOT NULL, package_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -15017,16 +23375,31 @@ CREATE TABLE packages_package_files ( CONSTRAINT check_4c5e6bb0b3 CHECK ((file_store IS NOT NULL)) ); -CREATE SEQUENCE packages_package_files_id_seq + +-- +-- Name: packages_package_files_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_package_files_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_package_files_id_seq OWNED BY packages_package_files.id; -CREATE TABLE packages_packages ( +-- +-- Name: packages_package_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_package_files_id_seq OWNED BY public.packages_package_files.id; + + +-- +-- Name: packages_packages; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_packages ( id bigint NOT NULL, project_id integer NOT NULL, created_at timestamp with time zone NOT NULL, @@ -15040,16 +23413,31 @@ CREATE TABLE packages_packages ( status_message text ); -CREATE SEQUENCE packages_packages_id_seq + +-- +-- Name: packages_packages_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_packages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_packages_id_seq OWNED BY packages_packages.id; -CREATE TABLE packages_protection_rules ( +-- +-- Name: packages_packages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_packages_id_seq OWNED BY public.packages_packages.id; + + +-- +-- Name: packages_protection_rules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_protection_rules ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -15061,16 +23449,31 @@ CREATE TABLE packages_protection_rules ( CONSTRAINT check_d2d75d206d CHECK ((char_length(package_name_pattern) <= 255)) ); -CREATE SEQUENCE packages_protection_rules_id_seq + +-- +-- Name: packages_protection_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_protection_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_protection_rules_id_seq OWNED BY packages_protection_rules.id; -CREATE TABLE packages_pypi_metadata ( +-- +-- Name: packages_protection_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_protection_rules_id_seq OWNED BY public.packages_protection_rules.id; + + +-- +-- Name: packages_pypi_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_pypi_metadata ( package_id bigint NOT NULL, required_python text DEFAULT ''::text, metadata_version text, @@ -15089,7 +23492,12 @@ CREATE TABLE packages_pypi_metadata ( CONSTRAINT check_b1f32be96c CHECK ((char_length(description_content_type) <= 128)) ); -CREATE TABLE packages_rpm_metadata ( + +-- +-- Name: packages_rpm_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_rpm_metadata ( package_id bigint NOT NULL, release text DEFAULT '1'::text NOT NULL, summary text DEFAULT ''::text NOT NULL, @@ -15106,7 +23514,12 @@ CREATE TABLE packages_rpm_metadata ( CONSTRAINT check_c3e2fc2e89 CHECK ((char_length(release) <= 128)) ); -CREATE TABLE packages_rpm_repository_files ( + +-- +-- Name: packages_rpm_repository_files; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_rpm_repository_files ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -15123,16 +23536,31 @@ CREATE TABLE packages_rpm_repository_files ( CONSTRAINT check_b6b721b275 CHECK ((char_length(file_name) <= 255)) ); -CREATE SEQUENCE packages_rpm_repository_files_id_seq + +-- +-- Name: packages_rpm_repository_files_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_rpm_repository_files_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_rpm_repository_files_id_seq OWNED BY packages_rpm_repository_files.id; -CREATE TABLE packages_rubygems_metadata ( +-- +-- Name: packages_rpm_repository_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_rpm_repository_files_id_seq OWNED BY public.packages_rpm_repository_files.id; + + +-- +-- Name: packages_rubygems_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_rubygems_metadata ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, package_id bigint NOT NULL, @@ -15184,7 +23612,12 @@ CREATE TABLE packages_rubygems_metadata ( CONSTRAINT check_f76bad1a9a CHECK ((char_length(require_paths) <= 255)) ); -CREATE TABLE packages_tags ( + +-- +-- Name: packages_tags; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_tags ( id bigint NOT NULL, package_id integer NOT NULL, name character varying(255) NOT NULL, @@ -15194,16 +23627,31 @@ CREATE TABLE packages_tags ( CONSTRAINT check_91b8472153 CHECK ((project_id IS NOT NULL)) ); -CREATE SEQUENCE packages_tags_id_seq + +-- +-- Name: packages_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.packages_tags_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE packages_tags_id_seq OWNED BY packages_tags.id; -CREATE TABLE packages_terraform_module_metadata ( +-- +-- Name: packages_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.packages_tags_id_seq OWNED BY public.packages_tags.id; + + +-- +-- Name: packages_terraform_module_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.packages_terraform_module_metadata ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, package_id bigint NOT NULL, @@ -15212,7 +23660,12 @@ CREATE TABLE packages_terraform_module_metadata ( CONSTRAINT chk_rails_49f7b485ae CHECK ((char_length((fields)::text) <= 10485760)) ); -CREATE TABLE pages_deployment_states ( + +-- +-- Name: pages_deployment_states; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.pages_deployment_states ( pages_deployment_id bigint NOT NULL, verification_state smallint DEFAULT 0 NOT NULL, verification_started_at timestamp with time zone, @@ -15224,16 +23677,31 @@ CREATE TABLE pages_deployment_states ( CONSTRAINT check_15217e8c3a CHECK ((char_length(verification_failure) <= 255)) ); -CREATE SEQUENCE pages_deployment_states_pages_deployment_id_seq + +-- +-- Name: pages_deployment_states_pages_deployment_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.pages_deployment_states_pages_deployment_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE pages_deployment_states_pages_deployment_id_seq OWNED BY pages_deployment_states.pages_deployment_id; -CREATE TABLE pages_deployments ( +-- +-- Name: pages_deployment_states_pages_deployment_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.pages_deployment_states_pages_deployment_id_seq OWNED BY public.pages_deployment_states.pages_deployment_id; + + +-- +-- Name: pages_deployments; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.pages_deployments ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -15257,16 +23725,31 @@ CREATE TABLE pages_deployments ( CONSTRAINT check_f0fe8032dd CHECK ((char_length(file) <= 255)) ); -CREATE SEQUENCE pages_deployments_id_seq + +-- +-- Name: pages_deployments_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.pages_deployments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE pages_deployments_id_seq OWNED BY pages_deployments.id; -CREATE TABLE pages_domain_acme_orders ( +-- +-- Name: pages_deployments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.pages_deployments_id_seq OWNED BY public.pages_deployments.id; + + +-- +-- Name: pages_domain_acme_orders; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.pages_domain_acme_orders ( id bigint NOT NULL, pages_domain_id integer NOT NULL, expires_at timestamp with time zone NOT NULL, @@ -15279,16 +23762,31 @@ CREATE TABLE pages_domain_acme_orders ( encrypted_private_key_iv text NOT NULL ); -CREATE SEQUENCE pages_domain_acme_orders_id_seq + +-- +-- Name: pages_domain_acme_orders_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.pages_domain_acme_orders_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE pages_domain_acme_orders_id_seq OWNED BY pages_domain_acme_orders.id; -CREATE TABLE pages_domains ( +-- +-- Name: pages_domain_acme_orders_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.pages_domain_acme_orders_id_seq OWNED BY public.pages_domain_acme_orders.id; + + +-- +-- Name: pages_domains; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.pages_domains ( id integer NOT NULL, project_id integer, certificate text, @@ -15310,16 +23808,31 @@ CREATE TABLE pages_domains ( auto_ssl_failed boolean DEFAULT false NOT NULL ); -CREATE SEQUENCE pages_domains_id_seq + +-- +-- Name: pages_domains_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.pages_domains_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE pages_domains_id_seq OWNED BY pages_domains.id; -CREATE TABLE path_locks ( +-- +-- Name: pages_domains_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.pages_domains_id_seq OWNED BY public.pages_domains.id; + + +-- +-- Name: path_locks; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.path_locks ( id integer NOT NULL, path character varying NOT NULL, project_id integer, @@ -15329,33 +23842,63 @@ CREATE TABLE path_locks ( CONSTRAINT check_e1de2eb0f1 CHECK ((project_id IS NOT NULL)) ); -CREATE SEQUENCE path_locks_id_seq + +-- +-- Name: path_locks_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.path_locks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE path_locks_id_seq OWNED BY path_locks.id; -CREATE TABLE personal_access_token_last_used_ips ( +-- +-- Name: path_locks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.path_locks_id_seq OWNED BY public.path_locks.id; + + +-- +-- Name: personal_access_token_last_used_ips; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.personal_access_token_last_used_ips ( id bigint NOT NULL, personal_access_token_id bigint NOT NULL, - ip_address inet, created_at timestamp with time zone NOT NULL, - updated_at timestamp with time zone NOT NULL + updated_at timestamp with time zone NOT NULL, + ip_address inet ); -CREATE SEQUENCE personal_access_token_last_used_ips_id_seq + +-- +-- Name: personal_access_token_last_used_ips_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.personal_access_token_last_used_ips_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE personal_access_token_last_used_ips_id_seq OWNED BY personal_access_token_last_used_ips.id; -CREATE TABLE personal_access_tokens ( +-- +-- Name: personal_access_token_last_used_ips_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.personal_access_token_last_used_ips_id_seq OWNED BY public.personal_access_token_last_used_ips.id; + + +-- +-- Name: personal_access_tokens; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.personal_access_tokens ( id integer NOT NULL, user_id integer NOT NULL, name character varying NOT NULL, @@ -15376,16 +23919,31 @@ CREATE TABLE personal_access_tokens ( CONSTRAINT check_aa95773861 CHECK ((char_length(advanced_scopes) <= 4096)) ); -CREATE SEQUENCE personal_access_tokens_id_seq + +-- +-- Name: personal_access_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.personal_access_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE personal_access_tokens_id_seq OWNED BY personal_access_tokens.id; -CREATE TABLE plan_limits ( +-- +-- Name: personal_access_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.personal_access_tokens_id_seq OWNED BY public.personal_access_tokens.id; + + +-- +-- Name: plan_limits; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.plan_limits ( id bigint NOT NULL, plan_id bigint NOT NULL, ci_pipeline_size integer DEFAULT 0 NOT NULL, @@ -15486,16 +24044,31 @@ CREATE TABLE plan_limits ( import_placeholder_user_limit_tier_4 integer DEFAULT 0 NOT NULL ); -CREATE SEQUENCE plan_limits_id_seq + +-- +-- Name: plan_limits_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.plan_limits_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE plan_limits_id_seq OWNED BY plan_limits.id; -CREATE TABLE plans ( +-- +-- Name: plan_limits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.plan_limits_id_seq OWNED BY public.plan_limits.id; + + +-- +-- Name: plans; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.plans ( id integer NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, @@ -15503,16 +24076,31 @@ CREATE TABLE plans ( title character varying ); -CREATE SEQUENCE plans_id_seq + +-- +-- Name: plans_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.plans_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE plans_id_seq OWNED BY plans.id; -CREATE TABLE pm_advisories ( +-- +-- Name: plans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.plans_id_seq OWNED BY public.plans.id; + + +-- +-- Name: pm_advisories; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.pm_advisories ( id bigint NOT NULL, advisory_xid text NOT NULL, published_date date NOT NULL, @@ -15533,16 +24121,31 @@ CREATE TABLE pm_advisories ( CONSTRAINT chk_rails_e73af9de76 CHECK ((cardinality(urls) <= 20)) ); -CREATE SEQUENCE pm_advisories_id_seq + +-- +-- Name: pm_advisories_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.pm_advisories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE pm_advisories_id_seq OWNED BY pm_advisories.id; -CREATE TABLE pm_affected_packages ( +-- +-- Name: pm_advisories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.pm_advisories_id_seq OWNED BY public.pm_advisories.id; + + +-- +-- Name: pm_affected_packages; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.pm_affected_packages ( id bigint NOT NULL, pm_advisory_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -15562,16 +24165,31 @@ CREATE TABLE pm_affected_packages ( CONSTRAINT chk_rails_a0f80d74e0 CHECK ((cardinality(fixed_versions) <= 10)) ); -CREATE SEQUENCE pm_affected_packages_id_seq + +-- +-- Name: pm_affected_packages_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.pm_affected_packages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE pm_affected_packages_id_seq OWNED BY pm_affected_packages.id; -CREATE TABLE pm_checkpoints ( +-- +-- Name: pm_affected_packages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.pm_affected_packages_id_seq OWNED BY public.pm_affected_packages.id; + + +-- +-- Name: pm_checkpoints; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.pm_checkpoints ( sequence integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -15582,16 +24200,31 @@ CREATE TABLE pm_checkpoints ( id bigint NOT NULL ); -CREATE SEQUENCE pm_checkpoints_id_seq + +-- +-- Name: pm_checkpoints_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.pm_checkpoints_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE pm_checkpoints_id_seq OWNED BY pm_checkpoints.id; -CREATE TABLE pm_epss ( +-- +-- Name: pm_checkpoints_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.pm_checkpoints_id_seq OWNED BY public.pm_checkpoints.id; + + +-- +-- Name: pm_epss; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.pm_epss ( id bigint NOT NULL, score double precision NOT NULL, created_at timestamp with time zone NOT NULL, @@ -15600,16 +24233,31 @@ CREATE TABLE pm_epss ( CONSTRAINT check_33a7364ae2 CHECK ((char_length(cve) <= 24)) ); -CREATE SEQUENCE pm_epss_id_seq + +-- +-- Name: pm_epss_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.pm_epss_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE pm_epss_id_seq OWNED BY pm_epss.id; -CREATE TABLE pm_licenses ( +-- +-- Name: pm_epss_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.pm_epss_id_seq OWNED BY public.pm_epss.id; + + +-- +-- Name: pm_licenses; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.pm_licenses ( id bigint NOT NULL, spdx_identifier text NOT NULL, created_at timestamp with time zone DEFAULT now() NOT NULL, @@ -15617,16 +24265,31 @@ CREATE TABLE pm_licenses ( CONSTRAINT check_c1eb81d1ba CHECK ((char_length(spdx_identifier) <= 50)) ); -CREATE SEQUENCE pm_licenses_id_seq + +-- +-- Name: pm_licenses_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.pm_licenses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE pm_licenses_id_seq OWNED BY pm_licenses.id; -CREATE TABLE pm_package_version_licenses ( +-- +-- Name: pm_licenses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.pm_licenses_id_seq OWNED BY public.pm_licenses.id; + + +-- +-- Name: pm_package_version_licenses; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.pm_package_version_licenses ( pm_package_version_id bigint NOT NULL, pm_license_id bigint NOT NULL, created_at timestamp with time zone DEFAULT now() NOT NULL, @@ -15634,16 +24297,31 @@ CREATE TABLE pm_package_version_licenses ( id bigint NOT NULL ); -CREATE SEQUENCE pm_package_version_licenses_id_seq + +-- +-- Name: pm_package_version_licenses_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.pm_package_version_licenses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE pm_package_version_licenses_id_seq OWNED BY pm_package_version_licenses.id; -CREATE TABLE pm_package_versions ( +-- +-- Name: pm_package_version_licenses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.pm_package_version_licenses_id_seq OWNED BY public.pm_package_version_licenses.id; + + +-- +-- Name: pm_package_versions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.pm_package_versions ( id bigint NOT NULL, pm_package_id bigint NOT NULL, version text NOT NULL, @@ -15652,16 +24330,31 @@ CREATE TABLE pm_package_versions ( CONSTRAINT check_2d8a88cfcc CHECK ((char_length(version) <= 255)) ); -CREATE SEQUENCE pm_package_versions_id_seq + +-- +-- Name: pm_package_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.pm_package_versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE pm_package_versions_id_seq OWNED BY pm_package_versions.id; -CREATE TABLE pm_packages ( +-- +-- Name: pm_package_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.pm_package_versions_id_seq OWNED BY public.pm_package_versions.id; + + +-- +-- Name: pm_packages; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.pm_packages ( id bigint NOT NULL, purl_type smallint NOT NULL, name text NOT NULL, @@ -15671,16 +24364,31 @@ CREATE TABLE pm_packages ( CONSTRAINT check_3a3aedb8ba CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE pm_packages_id_seq + +-- +-- Name: pm_packages_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.pm_packages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE pm_packages_id_seq OWNED BY pm_packages.id; -CREATE TABLE pool_repositories ( +-- +-- Name: pm_packages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.pm_packages_id_seq OWNED BY public.pm_packages.id; + + +-- +-- Name: pool_repositories; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.pool_repositories ( id bigint NOT NULL, shard_id integer NOT NULL, disk_path character varying, @@ -15688,16 +24396,31 @@ CREATE TABLE pool_repositories ( source_project_id integer ); -CREATE SEQUENCE pool_repositories_id_seq + +-- +-- Name: pool_repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.pool_repositories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE pool_repositories_id_seq OWNED BY pool_repositories.id; -CREATE TABLE postgres_async_foreign_key_validations ( +-- +-- Name: pool_repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.pool_repositories_id_seq OWNED BY public.pool_repositories.id; + + +-- +-- Name: postgres_async_foreign_key_validations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.postgres_async_foreign_key_validations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -15711,16 +24434,31 @@ CREATE TABLE postgres_async_foreign_key_validations ( CONSTRAINT check_cd435d6301 CHECK ((char_length(table_name) <= 63)) ); -CREATE SEQUENCE postgres_async_foreign_key_validations_id_seq + +-- +-- Name: postgres_async_foreign_key_validations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.postgres_async_foreign_key_validations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE postgres_async_foreign_key_validations_id_seq OWNED BY postgres_async_foreign_key_validations.id; -CREATE TABLE postgres_async_indexes ( +-- +-- Name: postgres_async_foreign_key_validations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.postgres_async_foreign_key_validations_id_seq OWNED BY public.postgres_async_foreign_key_validations.id; + + +-- +-- Name: postgres_async_indexes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.postgres_async_indexes ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -15735,16 +24473,31 @@ CREATE TABLE postgres_async_indexes ( CONSTRAINT check_schema_and_name_length CHECK ((char_length(table_name) <= 127)) ); -CREATE SEQUENCE postgres_async_indexes_id_seq + +-- +-- Name: postgres_async_indexes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.postgres_async_indexes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE postgres_async_indexes_id_seq OWNED BY postgres_async_indexes.id; -CREATE VIEW postgres_autovacuum_activity AS +-- +-- Name: postgres_async_indexes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.postgres_async_indexes_id_seq OWNED BY public.postgres_async_indexes.id; + + +-- +-- Name: postgres_autovacuum_activity; Type: VIEW; Schema: public; Owner: - +-- + +CREATE VIEW public.postgres_autovacuum_activity AS WITH processes AS ( SELECT postgres_pg_stat_activity_autovacuum.query, postgres_pg_stat_activity_autovacuum.query_start, @@ -15753,7 +24506,7 @@ CREATE VIEW postgres_autovacuum_activity AS WHEN (postgres_pg_stat_activity_autovacuum.query ~~* '%wraparound)'::text) THEN true ELSE false END AS wraparound_prevention - FROM postgres_pg_stat_activity_autovacuum() postgres_pg_stat_activity_autovacuum(query, query_start) + FROM public.postgres_pg_stat_activity_autovacuum() postgres_pg_stat_activity_autovacuum(query, query_start) WHERE (postgres_pg_stat_activity_autovacuum.query ~* '^autovacuum: VACUUM \w+\.\w+'::text) ) SELECT ((processes.matches[1] || '.'::text) || processes.matches[2]) AS table_identifier, @@ -15763,9 +24516,19 @@ CREATE VIEW postgres_autovacuum_activity AS processes.wraparound_prevention FROM processes; -COMMENT ON VIEW postgres_autovacuum_activity IS 'Contains information about PostgreSQL backends currently performing autovacuum operations on the tables indicated here.'; -CREATE VIEW postgres_constraints AS +-- +-- Name: VIEW postgres_autovacuum_activity; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON VIEW public.postgres_autovacuum_activity IS 'Contains information about PostgreSQL backends currently performing autovacuum operations on the tables indicated here.'; + + +-- +-- Name: postgres_constraints; Type: VIEW; Schema: public; Owner: - +-- + +CREATE VIEW public.postgres_constraints AS SELECT pg_constraint.oid, pg_constraint.conname AS name, pg_constraint.contype AS constraint_type, @@ -15780,7 +24543,12 @@ CREATE VIEW postgres_constraints AS JOIN pg_class ON ((pg_constraint.conrelid = pg_class.oid))) JOIN pg_namespace ON ((pg_class.relnamespace = pg_namespace.oid))); -CREATE VIEW postgres_foreign_keys AS + +-- +-- Name: postgres_foreign_keys; Type: VIEW; Schema: public; Owner: - +-- + +CREATE VIEW public.postgres_foreign_keys AS SELECT pg_constraint.oid, pg_constraint.conname AS name, (((constrained_namespace.nspname)::text || '.'::text) || (constrained_table.relname)::text) AS constrained_table_identifier, @@ -15813,7 +24581,12 @@ CREATE VIEW postgres_foreign_keys AS LIMIT 1) partitioned_parent_oids(parent_oid) ON (true)) WHERE (pg_constraint.contype = 'f'::"char"); -CREATE VIEW postgres_index_bloat_estimates AS + +-- +-- Name: postgres_index_bloat_estimates; Type: VIEW; Schema: public; Owner: - +-- + +CREATE VIEW public.postgres_index_bloat_estimates AS SELECT (((relation_stats.nspname)::text || '.'::text) || (relation_stats.idxname)::text) AS identifier, ( CASE @@ -15925,7 +24698,12 @@ END AS attrelname WHERE ((relation_stats.nspname = ANY (ARRAY["current_schema"(), 'gitlab_partitions_dynamic'::name, 'gitlab_partitions_static'::name])) AND (NOT relation_stats.is_na)) ORDER BY relation_stats.nspname, relation_stats.tblname, relation_stats.idxname; -CREATE VIEW postgres_indexes AS + +-- +-- Name: postgres_indexes; Type: VIEW; Schema: public; Owner: - +-- + +CREATE VIEW public.postgres_indexes AS SELECT (((pg_namespace.nspname)::text || '.'::text) || (i.relname)::text) AS identifier, pg_index.indexrelid, pg_namespace.nspname AS schema, @@ -15947,7 +24725,12 @@ CREATE VIEW postgres_indexes AS JOIN pg_am a ON ((i.relam = a.oid))) WHERE ((pg_namespace.nspname <> 'pg_catalog'::name) AND (pg_namespace.nspname = ANY (ARRAY["current_schema"(), 'gitlab_partitions_dynamic'::name, 'gitlab_partitions_static'::name]))); -CREATE VIEW postgres_partitioned_tables AS + +-- +-- Name: postgres_partitioned_tables; Type: VIEW; Schema: public; Owner: - +-- + +CREATE VIEW public.postgres_partitioned_tables AS SELECT (((pg_namespace.nspname)::text || '.'::text) || (pg_class.relname)::text) AS identifier, pg_class.oid, pg_namespace.nspname AS schema, @@ -15975,7 +24758,12 @@ CREATE VIEW postgres_partitioned_tables AS ELSE NULL::text END; -CREATE VIEW postgres_partitions AS + +-- +-- Name: postgres_partitions; Type: VIEW; Schema: public; Owner: - +-- + +CREATE VIEW public.postgres_partitions AS SELECT (((pg_namespace.nspname)::text || '.'::text) || (pg_class.relname)::text) AS identifier, pg_class.oid, pg_namespace.nspname AS schema, @@ -15989,7 +24777,12 @@ CREATE VIEW postgres_partitions AS JOIN pg_namespace parent_namespace ON ((parent_class.relnamespace = parent_namespace.oid))) WHERE (pg_class.relispartition AND (pg_namespace.nspname = ANY (ARRAY["current_schema"(), 'gitlab_partitions_dynamic'::name, 'gitlab_partitions_static'::name]))); -CREATE TABLE postgres_reindex_actions ( + +-- +-- Name: postgres_reindex_actions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.postgres_reindex_actions ( id bigint NOT NULL, action_start timestamp with time zone NOT NULL, action_end timestamp with time zone, @@ -16001,16 +24794,31 @@ CREATE TABLE postgres_reindex_actions ( CONSTRAINT check_f12527622c CHECK ((char_length(index_identifier) <= 255)) ); -CREATE SEQUENCE postgres_reindex_actions_id_seq + +-- +-- Name: postgres_reindex_actions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.postgres_reindex_actions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE postgres_reindex_actions_id_seq OWNED BY postgres_reindex_actions.id; -CREATE TABLE postgres_reindex_queued_actions ( +-- +-- Name: postgres_reindex_actions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.postgres_reindex_actions_id_seq OWNED BY public.postgres_reindex_actions.id; + + +-- +-- Name: postgres_reindex_queued_actions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.postgres_reindex_queued_actions ( id bigint NOT NULL, index_identifier text NOT NULL, state smallint DEFAULT 0 NOT NULL, @@ -16019,16 +24827,31 @@ CREATE TABLE postgres_reindex_queued_actions ( CONSTRAINT check_e4b01395c0 CHECK ((char_length(index_identifier) <= 255)) ); -CREATE SEQUENCE postgres_reindex_queued_actions_id_seq + +-- +-- Name: postgres_reindex_queued_actions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.postgres_reindex_queued_actions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE postgres_reindex_queued_actions_id_seq OWNED BY postgres_reindex_queued_actions.id; -CREATE VIEW postgres_sequences AS +-- +-- Name: postgres_reindex_queued_actions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.postgres_reindex_queued_actions_id_seq OWNED BY public.postgres_reindex_queued_actions.id; + + +-- +-- Name: postgres_sequences; Type: VIEW; Schema: public; Owner: - +-- + +CREATE VIEW public.postgres_sequences AS SELECT seq_pg_class.relname AS seq_name, dep_pg_class.relname AS table_name, pg_attribute.attname AS col_name @@ -16038,34 +24861,64 @@ CREATE VIEW postgres_sequences AS JOIN pg_attribute ON (((dep_pg_class.oid = pg_attribute.attrelid) AND (pg_depend.refobjsubid = pg_attribute.attnum)))) WHERE ((pg_depend.classid = ('pg_class'::regclass)::oid) AND (pg_depend.refclassid = ('pg_class'::regclass)::oid) AND (seq_pg_class.relkind = 'S'::"char")); -CREATE TABLE programming_languages ( + +-- +-- Name: programming_languages; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.programming_languages ( id integer NOT NULL, name character varying NOT NULL, color character varying NOT NULL, created_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE programming_languages_id_seq + +-- +-- Name: programming_languages_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.programming_languages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE programming_languages_id_seq OWNED BY programming_languages.id; -CREATE TABLE project_access_tokens ( +-- +-- Name: programming_languages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.programming_languages_id_seq OWNED BY public.programming_languages.id; + + +-- +-- Name: project_access_tokens; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_access_tokens ( personal_access_token_id bigint NOT NULL, project_id bigint NOT NULL ); -CREATE TABLE project_alerting_settings ( + +-- +-- Name: project_alerting_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_alerting_settings ( project_id integer NOT NULL, encrypted_token character varying NOT NULL, encrypted_token_iv character varying NOT NULL ); -CREATE TABLE project_aliases ( + +-- +-- Name: project_aliases; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_aliases ( id bigint NOT NULL, project_id integer NOT NULL, name character varying NOT NULL, @@ -16073,23 +24926,43 @@ CREATE TABLE project_aliases ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE project_aliases_id_seq + +-- +-- Name: project_aliases_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_aliases_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_aliases_id_seq OWNED BY project_aliases.id; -CREATE TABLE project_authorizations ( +-- +-- Name: project_aliases_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_aliases_id_seq OWNED BY public.project_aliases.id; + + +-- +-- Name: project_authorizations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_authorizations ( user_id integer NOT NULL, project_id integer NOT NULL, access_level integer NOT NULL, is_unique boolean ); -CREATE TABLE project_auto_devops ( + +-- +-- Name: project_auto_devops; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_auto_devops ( id integer NOT NULL, project_id integer NOT NULL, created_at timestamp with time zone NOT NULL, @@ -16098,16 +24971,31 @@ CREATE TABLE project_auto_devops ( deploy_strategy integer DEFAULT 0 NOT NULL ); -CREATE SEQUENCE project_auto_devops_id_seq + +-- +-- Name: project_auto_devops_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_auto_devops_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_auto_devops_id_seq OWNED BY project_auto_devops.id; -CREATE TABLE project_build_artifacts_size_refreshes ( +-- +-- Name: project_auto_devops_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_auto_devops_id_seq OWNED BY public.project_auto_devops.id; + + +-- +-- Name: project_build_artifacts_size_refreshes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_build_artifacts_size_refreshes ( id bigint NOT NULL, project_id bigint NOT NULL, last_job_artifact_id bigint, @@ -16118,16 +25006,31 @@ CREATE TABLE project_build_artifacts_size_refreshes ( last_job_artifact_id_on_refresh_start bigint DEFAULT 0 ); -CREATE SEQUENCE project_build_artifacts_size_refreshes_id_seq + +-- +-- Name: project_build_artifacts_size_refreshes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_build_artifacts_size_refreshes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_build_artifacts_size_refreshes_id_seq OWNED BY project_build_artifacts_size_refreshes.id; -CREATE TABLE project_ci_cd_settings ( +-- +-- Name: project_build_artifacts_size_refreshes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_build_artifacts_size_refreshes_id_seq OWNED BY public.project_build_artifacts_size_refreshes.id; + + +-- +-- Name: project_ci_cd_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_ci_cd_settings ( id integer NOT NULL, project_id integer NOT NULL, group_runners_enabled boolean DEFAULT true NOT NULL, @@ -16151,57 +25054,112 @@ CREATE TABLE project_ci_cd_settings ( id_token_sub_claim_components character varying[] DEFAULT '{project_path,ref_type,ref}'::character varying[] NOT NULL ); -CREATE SEQUENCE project_ci_cd_settings_id_seq + +-- +-- Name: project_ci_cd_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_ci_cd_settings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_ci_cd_settings_id_seq OWNED BY project_ci_cd_settings.id; -CREATE TABLE project_ci_feature_usages ( +-- +-- Name: project_ci_cd_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_ci_cd_settings_id_seq OWNED BY public.project_ci_cd_settings.id; + + +-- +-- Name: project_ci_feature_usages; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_ci_feature_usages ( id bigint NOT NULL, project_id bigint NOT NULL, feature smallint NOT NULL, default_branch boolean DEFAULT false NOT NULL ); -CREATE SEQUENCE project_ci_feature_usages_id_seq + +-- +-- Name: project_ci_feature_usages_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_ci_feature_usages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_ci_feature_usages_id_seq OWNED BY project_ci_feature_usages.id; -CREATE TABLE project_compliance_framework_settings ( +-- +-- Name: project_ci_feature_usages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_ci_feature_usages_id_seq OWNED BY public.project_ci_feature_usages.id; + + +-- +-- Name: project_compliance_framework_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_compliance_framework_settings ( project_id bigint NOT NULL, framework_id bigint, id bigint NOT NULL, CONSTRAINT check_d348de9e2d CHECK ((framework_id IS NOT NULL)) ); -CREATE SEQUENCE project_compliance_framework_settings_id_seq + +-- +-- Name: project_compliance_framework_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_compliance_framework_settings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_compliance_framework_settings_id_seq OWNED BY project_compliance_framework_settings.id; -CREATE SEQUENCE project_compliance_framework_settings_project_id_seq +-- +-- Name: project_compliance_framework_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_compliance_framework_settings_id_seq OWNED BY public.project_compliance_framework_settings.id; + + +-- +-- Name: project_compliance_framework_settings_project_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_compliance_framework_settings_project_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_compliance_framework_settings_project_id_seq OWNED BY project_compliance_framework_settings.project_id; -CREATE TABLE project_compliance_standards_adherence ( +-- +-- Name: project_compliance_framework_settings_project_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_compliance_framework_settings_project_id_seq OWNED BY public.project_compliance_framework_settings.project_id; + + +-- +-- Name: project_compliance_standards_adherence; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_compliance_standards_adherence ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -16212,16 +25170,31 @@ CREATE TABLE project_compliance_standards_adherence ( standard smallint NOT NULL ); -CREATE SEQUENCE project_compliance_standards_adherence_id_seq + +-- +-- Name: project_compliance_standards_adherence_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_compliance_standards_adherence_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_compliance_standards_adherence_id_seq OWNED BY project_compliance_standards_adherence.id; -CREATE TABLE project_custom_attributes ( +-- +-- Name: project_compliance_standards_adherence_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_compliance_standards_adherence_id_seq OWNED BY public.project_compliance_standards_adherence.id; + + +-- +-- Name: project_custom_attributes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_custom_attributes ( id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -16230,32 +25203,62 @@ CREATE TABLE project_custom_attributes ( value character varying NOT NULL ); -CREATE SEQUENCE project_custom_attributes_id_seq + +-- +-- Name: project_custom_attributes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_custom_attributes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_custom_attributes_id_seq OWNED BY project_custom_attributes.id; -CREATE TABLE project_daily_statistics ( +-- +-- Name: project_custom_attributes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_custom_attributes_id_seq OWNED BY public.project_custom_attributes.id; + + +-- +-- Name: project_daily_statistics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_daily_statistics ( id bigint NOT NULL, project_id integer NOT NULL, fetch_count integer NOT NULL, date date ); -CREATE SEQUENCE project_daily_statistics_id_seq + +-- +-- Name: project_daily_statistics_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_daily_statistics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_daily_statistics_id_seq OWNED BY project_daily_statistics.id; -CREATE TABLE project_data_transfers ( +-- +-- Name: project_daily_statistics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_daily_statistics_id_seq OWNED BY public.project_daily_statistics.id; + + +-- +-- Name: project_data_transfers; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_data_transfers ( id bigint NOT NULL, project_id bigint NOT NULL, namespace_id bigint NOT NULL, @@ -16268,32 +25271,62 @@ CREATE TABLE project_data_transfers ( CONSTRAINT project_data_transfers_project_year_month_constraint CHECK ((date = date_trunc('month'::text, (date)::timestamp with time zone))) ); -CREATE SEQUENCE project_data_transfers_id_seq + +-- +-- Name: project_data_transfers_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_data_transfers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_data_transfers_id_seq OWNED BY project_data_transfers.id; -CREATE TABLE project_deploy_tokens ( +-- +-- Name: project_data_transfers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_data_transfers_id_seq OWNED BY public.project_data_transfers.id; + + +-- +-- Name: project_deploy_tokens; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_deploy_tokens ( id integer NOT NULL, project_id integer NOT NULL, deploy_token_id integer NOT NULL, created_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE project_deploy_tokens_id_seq + +-- +-- Name: project_deploy_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_deploy_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_deploy_tokens_id_seq OWNED BY project_deploy_tokens.id; -CREATE TABLE project_error_tracking_settings ( +-- +-- Name: project_deploy_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_deploy_tokens_id_seq OWNED BY public.project_deploy_tokens.id; + + +-- +-- Name: project_error_tracking_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_error_tracking_settings ( project_id integer NOT NULL, enabled boolean DEFAULT false NOT NULL, api_url character varying, @@ -16305,7 +25338,12 @@ CREATE TABLE project_error_tracking_settings ( sentry_project_id bigint ); -CREATE TABLE project_export_jobs ( + +-- +-- Name: project_export_jobs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_export_jobs ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -16316,22 +25354,42 @@ CREATE TABLE project_export_jobs ( exported_by_admin boolean DEFAULT false ); -CREATE SEQUENCE project_export_jobs_id_seq + +-- +-- Name: project_export_jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_export_jobs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_export_jobs_id_seq OWNED BY project_export_jobs.id; -CREATE TABLE project_feature_usages ( +-- +-- Name: project_export_jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_export_jobs_id_seq OWNED BY public.project_export_jobs.id; + + +-- +-- Name: project_feature_usages; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_feature_usages ( project_id integer NOT NULL, jira_dvcs_cloud_last_sync_at timestamp without time zone, jira_dvcs_server_last_sync_at timestamp without time zone ); -CREATE TABLE project_features ( + +-- +-- Name: project_features; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_features ( id integer NOT NULL, project_id integer NOT NULL, merge_requests_access_level integer, @@ -16360,16 +25418,31 @@ CREATE TABLE project_features ( model_registry_access_level integer DEFAULT 20 NOT NULL ); -CREATE SEQUENCE project_features_id_seq + +-- +-- Name: project_features_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_features_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_features_id_seq OWNED BY project_features.id; -CREATE TABLE project_group_links ( +-- +-- Name: project_features_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_features_id_seq OWNED BY public.project_features.id; + + +-- +-- Name: project_group_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_group_links ( id integer NOT NULL, project_id integer NOT NULL, group_id integer NOT NULL, @@ -16379,16 +25452,31 @@ CREATE TABLE project_group_links ( expires_at date ); -CREATE SEQUENCE project_group_links_id_seq + +-- +-- Name: project_group_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_group_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_group_links_id_seq OWNED BY project_group_links.id; -CREATE TABLE project_import_data ( +-- +-- Name: project_group_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_group_links_id_seq OWNED BY public.project_group_links.id; + + +-- +-- Name: project_import_data; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_import_data ( id integer NOT NULL, project_id integer, data text, @@ -16397,16 +25485,31 @@ CREATE TABLE project_import_data ( encrypted_credentials_salt character varying ); -CREATE SEQUENCE project_import_data_id_seq + +-- +-- Name: project_import_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_import_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_import_data_id_seq OWNED BY project_import_data.id; -CREATE TABLE project_incident_management_settings ( +-- +-- Name: project_import_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_import_data_id_seq OWNED BY public.project_import_data.id; + + +-- +-- Name: project_incident_management_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_incident_management_settings ( project_id integer NOT NULL, create_issue boolean DEFAULT false NOT NULL, send_email boolean DEFAULT false NOT NULL, @@ -16421,22 +25524,42 @@ CREATE TABLE project_incident_management_settings ( CONSTRAINT pagerduty_token_length_constraint CHECK ((octet_length(encrypted_pagerduty_token) <= 255)) ); -CREATE SEQUENCE project_incident_management_settings_project_id_seq + +-- +-- Name: project_incident_management_settings_project_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_incident_management_settings_project_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_incident_management_settings_project_id_seq OWNED BY project_incident_management_settings.project_id; -CREATE TABLE project_metrics_settings ( +-- +-- Name: project_incident_management_settings_project_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_incident_management_settings_project_id_seq OWNED BY public.project_incident_management_settings.project_id; + + +-- +-- Name: project_metrics_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_metrics_settings ( project_id integer NOT NULL, external_dashboard_url character varying, dashboard_timezone smallint DEFAULT 0 NOT NULL ); -CREATE TABLE project_mirror_data ( + +-- +-- Name: project_mirror_data; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_mirror_data ( id integer NOT NULL, project_id integer NOT NULL, retry_count integer DEFAULT 0 NOT NULL, @@ -16452,23 +25575,43 @@ CREATE TABLE project_mirror_data ( checksums jsonb DEFAULT '{}'::jsonb NOT NULL ); -CREATE SEQUENCE project_mirror_data_id_seq + +-- +-- Name: project_mirror_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_mirror_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_mirror_data_id_seq OWNED BY project_mirror_data.id; -CREATE TABLE project_pages_metadata ( +-- +-- Name: project_mirror_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_mirror_data_id_seq OWNED BY public.project_mirror_data.id; + + +-- +-- Name: project_pages_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_pages_metadata ( project_id bigint NOT NULL, deployed boolean DEFAULT false NOT NULL, pages_deployment_id bigint, onboarding_complete boolean DEFAULT false NOT NULL ); -CREATE TABLE project_relation_export_uploads ( + +-- +-- Name: project_relation_export_uploads; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_relation_export_uploads ( id bigint NOT NULL, project_relation_export_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -16477,16 +25620,31 @@ CREATE TABLE project_relation_export_uploads ( CONSTRAINT check_d8ee243e9e CHECK ((char_length(export_file) <= 255)) ); -CREATE SEQUENCE project_relation_export_uploads_id_seq + +-- +-- Name: project_relation_export_uploads_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_relation_export_uploads_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_relation_export_uploads_id_seq OWNED BY project_relation_export_uploads.id; -CREATE TABLE project_relation_exports ( +-- +-- Name: project_relation_export_uploads_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_relation_export_uploads_id_seq OWNED BY public.project_relation_export_uploads.id; + + +-- +-- Name: project_relation_exports; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_relation_exports ( id bigint NOT NULL, project_export_job_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -16501,16 +25659,31 @@ CREATE TABLE project_relation_exports ( CONSTRAINT check_dbd1cf73d0 CHECK ((char_length(export_error) <= 300)) ); -CREATE SEQUENCE project_relation_exports_id_seq + +-- +-- Name: project_relation_exports_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_relation_exports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_relation_exports_id_seq OWNED BY project_relation_exports.id; -CREATE TABLE project_repositories ( +-- +-- Name: project_relation_exports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_relation_exports_id_seq OWNED BY public.project_relation_exports.id; + + +-- +-- Name: project_repositories; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_repositories ( id bigint NOT NULL, shard_id integer NOT NULL, disk_path character varying NOT NULL, @@ -16518,16 +25691,31 @@ CREATE TABLE project_repositories ( object_format smallint DEFAULT 0 NOT NULL ); -CREATE SEQUENCE project_repositories_id_seq + +-- +-- Name: project_repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_repositories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_repositories_id_seq OWNED BY project_repositories.id; -CREATE TABLE project_repository_storage_moves ( +-- +-- Name: project_repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_repositories_id_seq OWNED BY public.project_repositories.id; + + +-- +-- Name: project_repository_storage_moves; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_repository_storage_moves ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -16541,16 +25729,31 @@ CREATE TABLE project_repository_storage_moves ( CONSTRAINT project_repository_storage_moves_source_storage_name CHECK ((char_length(source_storage_name) <= 255)) ); -CREATE SEQUENCE project_repository_storage_moves_id_seq + +-- +-- Name: project_repository_storage_moves_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_repository_storage_moves_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_repository_storage_moves_id_seq OWNED BY project_repository_storage_moves.id; -CREATE TABLE project_saved_replies ( +-- +-- Name: project_repository_storage_moves_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_repository_storage_moves_id_seq OWNED BY public.project_repository_storage_moves.id; + + +-- +-- Name: project_saved_replies; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_saved_replies ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -16561,16 +25764,31 @@ CREATE TABLE project_saved_replies ( CONSTRAINT check_a3993908da CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE project_saved_replies_id_seq + +-- +-- Name: project_saved_replies_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_saved_replies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_saved_replies_id_seq OWNED BY project_saved_replies.id; -CREATE TABLE project_secrets_managers ( +-- +-- Name: project_saved_replies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_saved_replies_id_seq OWNED BY public.project_saved_replies.id; + + +-- +-- Name: project_secrets_managers; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_secrets_managers ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -16578,16 +25796,31 @@ CREATE TABLE project_secrets_managers ( status smallint DEFAULT 0 NOT NULL ); -CREATE SEQUENCE project_secrets_managers_id_seq + +-- +-- Name: project_secrets_managers_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_secrets_managers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_secrets_managers_id_seq OWNED BY project_secrets_managers.id; -CREATE TABLE project_security_settings ( +-- +-- Name: project_secrets_managers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_secrets_managers_id_seq OWNED BY public.project_secrets_managers.id; + + +-- +-- Name: project_security_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_security_settings ( project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -16600,16 +25833,31 @@ CREATE TABLE project_security_settings ( pre_receive_secret_detection_enabled boolean DEFAULT false NOT NULL ); -CREATE SEQUENCE project_security_settings_project_id_seq + +-- +-- Name: project_security_settings_project_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_security_settings_project_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_security_settings_project_id_seq OWNED BY project_security_settings.project_id; -CREATE TABLE project_settings ( +-- +-- Name: project_security_settings_project_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_security_settings_project_id_seq OWNED BY public.project_security_settings.project_id; + + +-- +-- Name: project_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_settings ( project_id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -16664,7 +25912,12 @@ CREATE TABLE project_settings ( CONSTRAINT check_f9df7bcee2 CHECK ((char_length(cube_api_base_url) <= 512)) ); -CREATE TABLE project_states ( + +-- +-- Name: project_states; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_states ( id bigint NOT NULL, verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, @@ -16677,16 +25930,31 @@ CREATE TABLE project_states ( CONSTRAINT check_0d5a9e7bde CHECK ((char_length(verification_failure) <= 255)) ); -CREATE SEQUENCE project_states_id_seq + +-- +-- Name: project_states_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_states_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_states_id_seq OWNED BY project_states.id; -CREATE TABLE project_statistics ( +-- +-- Name: project_states_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_states_id_seq OWNED BY public.project_states.id; + + +-- +-- Name: project_statistics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_statistics ( id integer NOT NULL, project_id integer NOT NULL, namespace_id integer NOT NULL, @@ -16709,16 +25977,31 @@ CREATE TABLE project_statistics ( vulnerability_count integer DEFAULT 0 NOT NULL ); -CREATE SEQUENCE project_statistics_id_seq + +-- +-- Name: project_statistics_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_statistics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_statistics_id_seq OWNED BY project_statistics.id; -CREATE TABLE project_topics ( +-- +-- Name: project_statistics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_statistics_id_seq OWNED BY public.project_statistics.id; + + +-- +-- Name: project_topics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_topics ( id bigint NOT NULL, project_id bigint NOT NULL, topic_id bigint NOT NULL, @@ -16726,64 +26009,129 @@ CREATE TABLE project_topics ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE project_topics_id_seq + +-- +-- Name: project_topics_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_topics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_topics_id_seq OWNED BY project_topics.id; -CREATE TABLE project_wiki_repositories ( +-- +-- Name: project_topics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_topics_id_seq OWNED BY public.project_topics.id; + + +-- +-- Name: project_wiki_repositories; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.project_wiki_repositories ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE project_wiki_repositories_id_seq + +-- +-- Name: project_wiki_repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.project_wiki_repositories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE project_wiki_repositories_id_seq OWNED BY project_wiki_repositories.id; -CREATE SEQUENCE projects_id_seq +-- +-- Name: project_wiki_repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.project_wiki_repositories_id_seq OWNED BY public.project_wiki_repositories.id; + + +-- +-- Name: projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE projects_id_seq OWNED BY projects.id; -CREATE TABLE projects_sync_events ( +-- +-- Name: projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.projects_id_seq OWNED BY public.projects.id; + + +-- +-- Name: projects_sync_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.projects_sync_events ( id bigint NOT NULL, project_id bigint NOT NULL ); -CREATE SEQUENCE projects_sync_events_id_seq + +-- +-- Name: projects_sync_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.projects_sync_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE projects_sync_events_id_seq OWNED BY projects_sync_events.id; -CREATE SEQUENCE projects_visits_id_seq +-- +-- Name: projects_sync_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.projects_sync_events_id_seq OWNED BY public.projects_sync_events.id; + + +-- +-- Name: projects_visits_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.projects_visits_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE projects_visits_id_seq OWNED BY projects_visits.id; -CREATE TABLE prometheus_alert_events ( +-- +-- Name: projects_visits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.projects_visits_id_seq OWNED BY public.projects_visits.id; + + +-- +-- Name: prometheus_alert_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.prometheus_alert_events ( id bigint NOT NULL, project_id integer NOT NULL, prometheus_alert_id integer NOT NULL, @@ -16793,16 +26141,31 @@ CREATE TABLE prometheus_alert_events ( payload_key character varying ); -CREATE SEQUENCE prometheus_alert_events_id_seq + +-- +-- Name: prometheus_alert_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.prometheus_alert_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE prometheus_alert_events_id_seq OWNED BY prometheus_alert_events.id; -CREATE TABLE prometheus_alerts ( +-- +-- Name: prometheus_alert_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.prometheus_alert_events_id_seq OWNED BY public.prometheus_alert_events.id; + + +-- +-- Name: prometheus_alerts; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.prometheus_alerts ( id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -16815,16 +26178,31 @@ CREATE TABLE prometheus_alerts ( CONSTRAINT check_cb76d7e629 CHECK ((char_length(runbook_url) <= 255)) ); -CREATE SEQUENCE prometheus_alerts_id_seq + +-- +-- Name: prometheus_alerts_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.prometheus_alerts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE prometheus_alerts_id_seq OWNED BY prometheus_alerts.id; -CREATE TABLE prometheus_metrics ( +-- +-- Name: prometheus_alerts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.prometheus_alerts_id_seq OWNED BY public.prometheus_alerts.id; + + +-- +-- Name: prometheus_metrics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.prometheus_metrics ( id integer NOT NULL, project_id integer, title character varying NOT NULL, @@ -16841,16 +26219,31 @@ CREATE TABLE prometheus_metrics ( CONSTRAINT check_0ad9f01463 CHECK ((char_length(dashboard_path) <= 2048)) ); -CREATE SEQUENCE prometheus_metrics_id_seq + +-- +-- Name: prometheus_metrics_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.prometheus_metrics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE prometheus_metrics_id_seq OWNED BY prometheus_metrics.id; -CREATE TABLE protected_branch_merge_access_levels ( +-- +-- Name: prometheus_metrics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.prometheus_metrics_id_seq OWNED BY public.prometheus_metrics.id; + + +-- +-- Name: protected_branch_merge_access_levels; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.protected_branch_merge_access_levels ( id integer NOT NULL, protected_branch_id integer NOT NULL, access_level integer DEFAULT 40, @@ -16860,16 +26253,31 @@ CREATE TABLE protected_branch_merge_access_levels ( group_id integer ); -CREATE SEQUENCE protected_branch_merge_access_levels_id_seq + +-- +-- Name: protected_branch_merge_access_levels_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.protected_branch_merge_access_levels_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE protected_branch_merge_access_levels_id_seq OWNED BY protected_branch_merge_access_levels.id; -CREATE TABLE protected_branch_push_access_levels ( +-- +-- Name: protected_branch_merge_access_levels_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.protected_branch_merge_access_levels_id_seq OWNED BY public.protected_branch_merge_access_levels.id; + + +-- +-- Name: protected_branch_push_access_levels; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.protected_branch_push_access_levels ( id integer NOT NULL, protected_branch_id integer NOT NULL, access_level integer DEFAULT 40, @@ -16880,16 +26288,31 @@ CREATE TABLE protected_branch_push_access_levels ( deploy_key_id integer ); -CREATE SEQUENCE protected_branch_push_access_levels_id_seq + +-- +-- Name: protected_branch_push_access_levels_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.protected_branch_push_access_levels_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE protected_branch_push_access_levels_id_seq OWNED BY protected_branch_push_access_levels.id; -CREATE TABLE protected_branch_unprotect_access_levels ( +-- +-- Name: protected_branch_push_access_levels_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.protected_branch_push_access_levels_id_seq OWNED BY public.protected_branch_push_access_levels.id; + + +-- +-- Name: protected_branch_unprotect_access_levels; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.protected_branch_unprotect_access_levels ( id integer NOT NULL, protected_branch_id integer NOT NULL, access_level integer DEFAULT 40, @@ -16897,16 +26320,31 @@ CREATE TABLE protected_branch_unprotect_access_levels ( group_id integer ); -CREATE SEQUENCE protected_branch_unprotect_access_levels_id_seq + +-- +-- Name: protected_branch_unprotect_access_levels_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.protected_branch_unprotect_access_levels_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE protected_branch_unprotect_access_levels_id_seq OWNED BY protected_branch_unprotect_access_levels.id; -CREATE TABLE protected_branches ( +-- +-- Name: protected_branch_unprotect_access_levels_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.protected_branch_unprotect_access_levels_id_seq OWNED BY public.protected_branch_unprotect_access_levels.id; + + +-- +-- Name: protected_branches; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.protected_branches ( id integer NOT NULL, project_id integer, name character varying NOT NULL, @@ -16918,16 +26356,31 @@ CREATE TABLE protected_branches ( CONSTRAINT protected_branches_project_id_namespace_id_any_not_null CHECK (((project_id IS NULL) <> (namespace_id IS NULL))) ); -CREATE SEQUENCE protected_branches_id_seq + +-- +-- Name: protected_branches_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.protected_branches_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE protected_branches_id_seq OWNED BY protected_branches.id; -CREATE TABLE protected_environment_approval_rules ( +-- +-- Name: protected_branches_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.protected_branches_id_seq OWNED BY public.protected_branches.id; + + +-- +-- Name: protected_environment_approval_rules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.protected_environment_approval_rules ( id bigint NOT NULL, protected_environment_id bigint NOT NULL, user_id bigint, @@ -16943,16 +26396,31 @@ CREATE TABLE protected_environment_approval_rules ( CONSTRAINT chk_rails_cfa90ae3b5 CHECK ((required_approvals > 0)) ); -CREATE SEQUENCE protected_environment_approval_rules_id_seq + +-- +-- Name: protected_environment_approval_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.protected_environment_approval_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE protected_environment_approval_rules_id_seq OWNED BY protected_environment_approval_rules.id; -CREATE TABLE protected_environment_deploy_access_levels ( +-- +-- Name: protected_environment_approval_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.protected_environment_approval_rules_id_seq OWNED BY public.protected_environment_approval_rules.id; + + +-- +-- Name: protected_environment_deploy_access_levels; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.protected_environment_deploy_access_levels ( id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -16966,16 +26434,31 @@ CREATE TABLE protected_environment_deploy_access_levels ( CONSTRAINT check_deploy_access_levels_user_group_access_level_any_not_null CHECK ((num_nonnulls(user_id, group_id, access_level) = 1)) ); -CREATE SEQUENCE protected_environment_deploy_access_levels_id_seq + +-- +-- Name: protected_environment_deploy_access_levels_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.protected_environment_deploy_access_levels_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE protected_environment_deploy_access_levels_id_seq OWNED BY protected_environment_deploy_access_levels.id; -CREATE TABLE protected_environments ( +-- +-- Name: protected_environment_deploy_access_levels_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.protected_environment_deploy_access_levels_id_seq OWNED BY public.protected_environment_deploy_access_levels.id; + + +-- +-- Name: protected_environments; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.protected_environments ( id integer NOT NULL, project_id integer, created_at timestamp with time zone NOT NULL, @@ -16987,16 +26470,31 @@ CREATE TABLE protected_environments ( CONSTRAINT protected_environments_required_approval_count_positive CHECK ((required_approval_count >= 0)) ); -CREATE SEQUENCE protected_environments_id_seq + +-- +-- Name: protected_environments_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.protected_environments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE protected_environments_id_seq OWNED BY protected_environments.id; -CREATE TABLE protected_tag_create_access_levels ( +-- +-- Name: protected_environments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.protected_environments_id_seq OWNED BY public.protected_environments.id; + + +-- +-- Name: protected_tag_create_access_levels; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.protected_tag_create_access_levels ( id integer NOT NULL, protected_tag_id integer NOT NULL, access_level integer DEFAULT 40, @@ -17008,16 +26506,31 @@ CREATE TABLE protected_tag_create_access_levels ( project_id bigint ); -CREATE SEQUENCE protected_tag_create_access_levels_id_seq + +-- +-- Name: protected_tag_create_access_levels_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.protected_tag_create_access_levels_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE protected_tag_create_access_levels_id_seq OWNED BY protected_tag_create_access_levels.id; -CREATE TABLE protected_tags ( +-- +-- Name: protected_tag_create_access_levels_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.protected_tag_create_access_levels_id_seq OWNED BY public.protected_tag_create_access_levels.id; + + +-- +-- Name: protected_tags; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.protected_tags ( id integer NOT NULL, project_id integer NOT NULL, name character varying NOT NULL, @@ -17025,16 +26538,31 @@ CREATE TABLE protected_tags ( updated_at timestamp without time zone NOT NULL ); -CREATE SEQUENCE protected_tags_id_seq + +-- +-- Name: protected_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.protected_tags_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE protected_tags_id_seq OWNED BY protected_tags.id; -CREATE TABLE push_event_payloads ( +-- +-- Name: protected_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.protected_tags_id_seq OWNED BY public.protected_tags.id; + + +-- +-- Name: push_event_payloads; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.push_event_payloads ( commit_count bigint NOT NULL, action smallint NOT NULL, ref_type smallint NOT NULL, @@ -17046,7 +26574,12 @@ CREATE TABLE push_event_payloads ( event_id bigint NOT NULL ); -CREATE TABLE push_rules ( + +-- +-- Name: push_rules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.push_rules ( id integer NOT NULL, force_push_regex character varying, delete_branch_regex character varying, @@ -17078,16 +26611,31 @@ CREATE TABLE push_rules ( CONSTRAINT force_push_regex_size_constraint CHECK ((char_length((force_push_regex)::text) <= 511)) ); -CREATE SEQUENCE push_rules_id_seq + +-- +-- Name: push_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.push_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE push_rules_id_seq OWNED BY push_rules.id; -CREATE TABLE raw_usage_data ( +-- +-- Name: push_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.push_rules_id_seq OWNED BY public.push_rules.id; + + +-- +-- Name: raw_usage_data; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.raw_usage_data ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17098,16 +26646,31 @@ CREATE TABLE raw_usage_data ( organization_id bigint DEFAULT 1 NOT NULL ); -CREATE SEQUENCE raw_usage_data_id_seq + +-- +-- Name: raw_usage_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.raw_usage_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE raw_usage_data_id_seq OWNED BY raw_usage_data.id; -CREATE TABLE redirect_routes ( +-- +-- Name: raw_usage_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.raw_usage_data_id_seq OWNED BY public.raw_usage_data.id; + + +-- +-- Name: redirect_routes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.redirect_routes ( id integer NOT NULL, source_id integer NOT NULL, source_type character varying NOT NULL, @@ -17116,16 +26679,31 @@ CREATE TABLE redirect_routes ( updated_at timestamp without time zone NOT NULL ); -CREATE SEQUENCE redirect_routes_id_seq + +-- +-- Name: redirect_routes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.redirect_routes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE redirect_routes_id_seq OWNED BY redirect_routes.id; -CREATE TABLE related_epic_links ( +-- +-- Name: redirect_routes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.redirect_routes_id_seq OWNED BY public.redirect_routes.id; + + +-- +-- Name: related_epic_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.related_epic_links ( id bigint NOT NULL, source_id bigint NOT NULL, target_id bigint NOT NULL, @@ -17135,16 +26713,31 @@ CREATE TABLE related_epic_links ( group_id bigint ); -CREATE SEQUENCE related_epic_links_id_seq + +-- +-- Name: related_epic_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.related_epic_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE related_epic_links_id_seq OWNED BY related_epic_links.id; -CREATE TABLE relation_import_trackers ( +-- +-- Name: related_epic_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.related_epic_links_id_seq OWNED BY public.related_epic_links.id; + + +-- +-- Name: relation_import_trackers; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.relation_import_trackers ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -17153,16 +26746,31 @@ CREATE TABLE relation_import_trackers ( status smallint DEFAULT 0 NOT NULL ); -CREATE SEQUENCE relation_import_trackers_id_seq + +-- +-- Name: relation_import_trackers_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.relation_import_trackers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE relation_import_trackers_id_seq OWNED BY relation_import_trackers.id; -CREATE TABLE release_links ( +-- +-- Name: relation_import_trackers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.relation_import_trackers_id_seq OWNED BY public.relation_import_trackers.id; + + +-- +-- Name: release_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.release_links ( id bigint NOT NULL, release_id integer NOT NULL, url character varying NOT NULL, @@ -17174,16 +26782,31 @@ CREATE TABLE release_links ( project_id bigint ); -CREATE SEQUENCE release_links_id_seq + +-- +-- Name: release_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.release_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE release_links_id_seq OWNED BY release_links.id; -CREATE TABLE releases ( +-- +-- Name: release_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.release_links_id_seq OWNED BY public.release_links.id; + + +-- +-- Name: releases; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.releases ( id integer NOT NULL, tag character varying, description text, @@ -17200,16 +26823,31 @@ CREATE TABLE releases ( CONSTRAINT check_6bb9ce4925 CHECK ((project_id IS NOT NULL)) ); -CREATE SEQUENCE releases_id_seq + +-- +-- Name: releases_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.releases_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE releases_id_seq OWNED BY releases.id; -CREATE TABLE remote_development_agent_configs ( +-- +-- Name: releases_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.releases_id_seq OWNED BY public.releases.id; + + +-- +-- Name: remote_development_agent_configs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.remote_development_agent_configs ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17230,16 +26868,31 @@ CREATE TABLE remote_development_agent_configs ( CONSTRAINT check_9f5cd54d1c CHECK ((char_length(dns_zone) <= 256)) ); -CREATE SEQUENCE remote_development_agent_configs_id_seq + +-- +-- Name: remote_development_agent_configs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.remote_development_agent_configs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE remote_development_agent_configs_id_seq OWNED BY remote_development_agent_configs.id; -CREATE TABLE remote_development_namespace_cluster_agent_mappings ( +-- +-- Name: remote_development_agent_configs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.remote_development_agent_configs_id_seq OWNED BY public.remote_development_agent_configs.id; + + +-- +-- Name: remote_development_namespace_cluster_agent_mappings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.remote_development_namespace_cluster_agent_mappings ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17248,16 +26901,31 @@ CREATE TABLE remote_development_namespace_cluster_agent_mappings ( creator_id bigint ); -CREATE SEQUENCE remote_development_namespace_cluster_agent_mappings_id_seq + +-- +-- Name: remote_development_namespace_cluster_agent_mappings_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.remote_development_namespace_cluster_agent_mappings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE remote_development_namespace_cluster_agent_mappings_id_seq OWNED BY remote_development_namespace_cluster_agent_mappings.id; -CREATE TABLE remote_mirrors ( +-- +-- Name: remote_development_namespace_cluster_agent_mappings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.remote_development_namespace_cluster_agent_mappings_id_seq OWNED BY public.remote_development_namespace_cluster_agent_mappings.id; + + +-- +-- Name: remote_mirrors; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.remote_mirrors ( id integer NOT NULL, project_id integer, url character varying, @@ -17281,38 +26949,73 @@ CREATE TABLE remote_mirrors ( CONSTRAINT check_aa6b497785 CHECK ((char_length(mirror_branch_regex) <= 255)) ); -CREATE SEQUENCE remote_mirrors_id_seq + +-- +-- Name: remote_mirrors_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.remote_mirrors_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE remote_mirrors_id_seq OWNED BY remote_mirrors.id; -CREATE TABLE repository_languages ( +-- +-- Name: remote_mirrors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.remote_mirrors_id_seq OWNED BY public.remote_mirrors.id; + + +-- +-- Name: repository_languages; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.repository_languages ( project_id integer NOT NULL, programming_language_id integer NOT NULL, share double precision NOT NULL ); -CREATE TABLE required_code_owners_sections ( + +-- +-- Name: required_code_owners_sections; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.required_code_owners_sections ( id bigint NOT NULL, protected_branch_id bigint NOT NULL, name text NOT NULL, CONSTRAINT check_e58d53741e CHECK ((char_length(name) <= 1024)) ); -CREATE SEQUENCE required_code_owners_sections_id_seq + +-- +-- Name: required_code_owners_sections_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.required_code_owners_sections_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE required_code_owners_sections_id_seq OWNED BY required_code_owners_sections.id; -CREATE TABLE requirements ( +-- +-- Name: required_code_owners_sections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.required_code_owners_sections_id_seq OWNED BY public.required_code_owners_sections.id; + + +-- +-- Name: requirements; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.requirements ( id bigint NOT NULL, project_id integer NOT NULL, iid integer NOT NULL, @@ -17320,16 +27023,31 @@ CREATE TABLE requirements ( CONSTRAINT check_requirement_issue_not_null CHECK ((issue_id IS NOT NULL)) ); -CREATE SEQUENCE requirements_id_seq + +-- +-- Name: requirements_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.requirements_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE requirements_id_seq OWNED BY requirements.id; -CREATE TABLE requirements_management_test_reports ( +-- +-- Name: requirements_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.requirements_id_seq OWNED BY public.requirements.id; + + +-- +-- Name: requirements_management_test_reports; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.requirements_management_test_reports ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, author_id bigint, @@ -17339,16 +27057,31 @@ CREATE TABLE requirements_management_test_reports ( uses_legacy_iid boolean DEFAULT true NOT NULL ); -CREATE SEQUENCE requirements_management_test_reports_id_seq + +-- +-- Name: requirements_management_test_reports_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.requirements_management_test_reports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE requirements_management_test_reports_id_seq OWNED BY requirements_management_test_reports.id; -CREATE TABLE resource_iteration_events ( +-- +-- Name: requirements_management_test_reports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.requirements_management_test_reports_id_seq OWNED BY public.requirements_management_test_reports.id; + + +-- +-- Name: resource_iteration_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.resource_iteration_events ( id bigint NOT NULL, user_id bigint NOT NULL, issue_id bigint, @@ -17358,16 +27091,31 @@ CREATE TABLE resource_iteration_events ( action smallint NOT NULL ); -CREATE SEQUENCE resource_iteration_events_id_seq + +-- +-- Name: resource_iteration_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.resource_iteration_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE resource_iteration_events_id_seq OWNED BY resource_iteration_events.id; -CREATE TABLE resource_label_events ( +-- +-- Name: resource_iteration_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.resource_iteration_events_id_seq OWNED BY public.resource_iteration_events.id; + + +-- +-- Name: resource_label_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.resource_label_events ( id bigint NOT NULL, action integer NOT NULL, issue_id integer, @@ -17382,16 +27130,31 @@ CREATE TABLE resource_label_events ( imported_from smallint DEFAULT 0 NOT NULL ); -CREATE SEQUENCE resource_label_events_id_seq + +-- +-- Name: resource_label_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.resource_label_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE resource_label_events_id_seq OWNED BY resource_label_events.id; -CREATE TABLE resource_link_events ( +-- +-- Name: resource_label_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.resource_label_events_id_seq OWNED BY public.resource_label_events.id; + + +-- +-- Name: resource_link_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.resource_link_events ( id bigint NOT NULL, action smallint NOT NULL, user_id bigint NOT NULL, @@ -17401,16 +27164,31 @@ CREATE TABLE resource_link_events ( system_note_metadata_id bigint ); -CREATE SEQUENCE resource_link_events_id_seq + +-- +-- Name: resource_link_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.resource_link_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE resource_link_events_id_seq OWNED BY resource_link_events.id; -CREATE TABLE resource_milestone_events ( +-- +-- Name: resource_link_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.resource_link_events_id_seq OWNED BY public.resource_link_events.id; + + +-- +-- Name: resource_milestone_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.resource_milestone_events ( id bigint NOT NULL, user_id bigint, issue_id bigint, @@ -17422,16 +27200,31 @@ CREATE TABLE resource_milestone_events ( imported_from smallint DEFAULT 0 NOT NULL ); -CREATE SEQUENCE resource_milestone_events_id_seq + +-- +-- Name: resource_milestone_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.resource_milestone_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE resource_milestone_events_id_seq OWNED BY resource_milestone_events.id; -CREATE TABLE resource_state_events ( +-- +-- Name: resource_milestone_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.resource_milestone_events_id_seq OWNED BY public.resource_milestone_events.id; + + +-- +-- Name: resource_state_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.resource_state_events ( id bigint NOT NULL, user_id bigint, issue_id bigint, @@ -17448,16 +27241,31 @@ CREATE TABLE resource_state_events ( CONSTRAINT state_events_must_belong_to_issue_or_merge_request_or_epic CHECK ((((issue_id <> NULL::bigint) AND (merge_request_id IS NULL) AND (epic_id IS NULL)) OR ((issue_id IS NULL) AND (merge_request_id <> NULL::bigint) AND (epic_id IS NULL)) OR ((issue_id IS NULL) AND (merge_request_id IS NULL) AND (epic_id <> NULL::integer)))) ); -CREATE SEQUENCE resource_state_events_id_seq + +-- +-- Name: resource_state_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.resource_state_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE resource_state_events_id_seq OWNED BY resource_state_events.id; -CREATE TABLE resource_weight_events ( +-- +-- Name: resource_state_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.resource_state_events_id_seq OWNED BY public.resource_state_events.id; + + +-- +-- Name: resource_weight_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.resource_weight_events ( id bigint NOT NULL, user_id bigint, issue_id bigint NOT NULL, @@ -17466,16 +27274,31 @@ CREATE TABLE resource_weight_events ( previous_weight integer ); -CREATE SEQUENCE resource_weight_events_id_seq + +-- +-- Name: resource_weight_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.resource_weight_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE resource_weight_events_id_seq OWNED BY resource_weight_events.id; -CREATE TABLE reviews ( +-- +-- Name: resource_weight_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.resource_weight_events_id_seq OWNED BY public.resource_weight_events.id; + + +-- +-- Name: reviews; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.reviews ( id bigint NOT NULL, author_id integer, merge_request_id integer NOT NULL, @@ -17483,16 +27306,31 @@ CREATE TABLE reviews ( created_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE reviews_id_seq + +-- +-- Name: reviews_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.reviews_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE reviews_id_seq OWNED BY reviews.id; -CREATE TABLE routes ( +-- +-- Name: reviews_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.reviews_id_seq OWNED BY public.reviews.id; + + +-- +-- Name: routes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.routes ( id integer NOT NULL, source_id integer NOT NULL, source_type character varying NOT NULL, @@ -17504,16 +27342,31 @@ CREATE TABLE routes ( CONSTRAINT check_af84c6c93f CHECK ((namespace_id IS NOT NULL)) ); -CREATE SEQUENCE routes_id_seq + +-- +-- Name: routes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.routes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE routes_id_seq OWNED BY routes.id; -CREATE TABLE saml_group_links ( +-- +-- Name: routes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.routes_id_seq OWNED BY public.routes.id; + + +-- +-- Name: saml_group_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.saml_group_links ( id bigint NOT NULL, access_level smallint NOT NULL, group_id bigint NOT NULL, @@ -17524,16 +27377,31 @@ CREATE TABLE saml_group_links ( CONSTRAINT check_1b3fc49d1e CHECK ((char_length(saml_group_name) <= 255)) ); -CREATE SEQUENCE saml_group_links_id_seq + +-- +-- Name: saml_group_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.saml_group_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE saml_group_links_id_seq OWNED BY saml_group_links.id; -CREATE TABLE saml_providers ( +-- +-- Name: saml_group_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.saml_group_links_id_seq OWNED BY public.saml_group_links.id; + + +-- +-- Name: saml_providers; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.saml_providers ( id integer NOT NULL, group_id integer NOT NULL, enabled boolean NOT NULL, @@ -17548,16 +27416,31 @@ CREATE TABLE saml_providers ( disable_password_authentication_for_enterprise_users boolean DEFAULT false ); -CREATE SEQUENCE saml_providers_id_seq + +-- +-- Name: saml_providers_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.saml_providers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE saml_providers_id_seq OWNED BY saml_providers.id; -CREATE TABLE saved_replies ( +-- +-- Name: saml_providers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.saml_providers_id_seq OWNED BY public.saml_providers.id; + + +-- +-- Name: saved_replies; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.saved_replies ( id bigint NOT NULL, user_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -17568,16 +27451,31 @@ CREATE TABLE saved_replies ( CONSTRAINT check_2eb3366d7f CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE saved_replies_id_seq + +-- +-- Name: saved_replies_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.saved_replies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE saved_replies_id_seq OWNED BY saved_replies.id; -CREATE TABLE sbom_component_versions ( +-- +-- Name: saved_replies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.saved_replies_id_seq OWNED BY public.saved_replies.id; + + +-- +-- Name: sbom_component_versions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.sbom_component_versions ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17588,16 +27486,31 @@ CREATE TABLE sbom_component_versions ( CONSTRAINT check_e71cad08d3 CHECK ((char_length(version) <= 255)) ); -CREATE SEQUENCE sbom_component_versions_id_seq + +-- +-- Name: sbom_component_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.sbom_component_versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE sbom_component_versions_id_seq OWNED BY sbom_component_versions.id; -CREATE TABLE sbom_components ( +-- +-- Name: sbom_component_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.sbom_component_versions_id_seq OWNED BY public.sbom_component_versions.id; + + +-- +-- Name: sbom_components; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.sbom_components ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17608,16 +27521,31 @@ CREATE TABLE sbom_components ( CONSTRAINT check_91a8f6ad53 CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE sbom_components_id_seq + +-- +-- Name: sbom_components_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.sbom_components_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE sbom_components_id_seq OWNED BY sbom_components.id; -CREATE TABLE sbom_occurrences ( +-- +-- Name: sbom_components_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.sbom_components_id_seq OWNED BY public.sbom_components.id; + + +-- +-- Name: sbom_occurrences; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.sbom_occurrences ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17643,16 +27571,31 @@ CREATE TABLE sbom_occurrences ( CONSTRAINT check_e6b8437cfe CHECK ((char_length(input_file_path) <= 1024)) ); -CREATE SEQUENCE sbom_occurrences_id_seq + +-- +-- Name: sbom_occurrences_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.sbom_occurrences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE sbom_occurrences_id_seq OWNED BY sbom_occurrences.id; -CREATE TABLE sbom_occurrences_vulnerabilities ( +-- +-- Name: sbom_occurrences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.sbom_occurrences_id_seq OWNED BY public.sbom_occurrences.id; + + +-- +-- Name: sbom_occurrences_vulnerabilities; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.sbom_occurrences_vulnerabilities ( id bigint NOT NULL, sbom_occurrence_id bigint NOT NULL, vulnerability_id bigint NOT NULL, @@ -17661,16 +27604,31 @@ CREATE TABLE sbom_occurrences_vulnerabilities ( project_id bigint ); -CREATE SEQUENCE sbom_occurrences_vulnerabilities_id_seq + +-- +-- Name: sbom_occurrences_vulnerabilities_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.sbom_occurrences_vulnerabilities_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE sbom_occurrences_vulnerabilities_id_seq OWNED BY sbom_occurrences_vulnerabilities.id; -CREATE TABLE sbom_source_packages ( +-- +-- Name: sbom_occurrences_vulnerabilities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.sbom_occurrences_vulnerabilities_id_seq OWNED BY public.sbom_occurrences_vulnerabilities.id; + + +-- +-- Name: sbom_source_packages; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.sbom_source_packages ( id bigint NOT NULL, name text NOT NULL, purl_type smallint NOT NULL, @@ -17680,16 +27638,31 @@ CREATE TABLE sbom_source_packages ( CONSTRAINT check_8fba79abed CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE sbom_source_packages_id_seq + +-- +-- Name: sbom_source_packages_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.sbom_source_packages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE sbom_source_packages_id_seq OWNED BY sbom_source_packages.id; -CREATE TABLE sbom_sources ( +-- +-- Name: sbom_source_packages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.sbom_source_packages_id_seq OWNED BY public.sbom_source_packages.id; + + +-- +-- Name: sbom_sources; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.sbom_sources ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17698,16 +27671,31 @@ CREATE TABLE sbom_sources ( organization_id bigint DEFAULT 1 NOT NULL ); -CREATE SEQUENCE sbom_sources_id_seq + +-- +-- Name: sbom_sources_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.sbom_sources_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE sbom_sources_id_seq OWNED BY sbom_sources.id; -CREATE TABLE scan_execution_policy_rules ( +-- +-- Name: sbom_sources_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.sbom_sources_id_seq OWNED BY public.sbom_sources.id; + + +-- +-- Name: scan_execution_policy_rules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.scan_execution_policy_rules ( id bigint NOT NULL, security_policy_id bigint NOT NULL, security_policy_management_project_id bigint NOT NULL, @@ -17718,16 +27706,31 @@ CREATE TABLE scan_execution_policy_rules ( content jsonb DEFAULT '{}'::jsonb NOT NULL ); -CREATE SEQUENCE scan_execution_policy_rules_id_seq + +-- +-- Name: scan_execution_policy_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.scan_execution_policy_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE scan_execution_policy_rules_id_seq OWNED BY scan_execution_policy_rules.id; -CREATE TABLE scan_result_policies ( +-- +-- Name: scan_execution_policy_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.scan_execution_policy_rules_id_seq OWNED BY public.scan_execution_policy_rules.id; + + +-- +-- Name: scan_result_policies; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.scan_result_policies ( id bigint NOT NULL, security_orchestration_policy_configuration_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -17750,16 +27753,31 @@ CREATE TABLE scan_result_policies ( CONSTRAINT check_scan_result_policies_rule_idx_positive CHECK (((rule_idx IS NULL) OR (rule_idx >= 0))) ); -CREATE SEQUENCE scan_result_policies_id_seq + +-- +-- Name: scan_result_policies_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.scan_result_policies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE scan_result_policies_id_seq OWNED BY scan_result_policies.id; -CREATE TABLE scan_result_policy_violations ( +-- +-- Name: scan_result_policies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.scan_result_policies_id_seq OWNED BY public.scan_result_policies.id; + + +-- +-- Name: scan_result_policy_violations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.scan_result_policy_violations ( id bigint NOT NULL, scan_result_policy_id bigint, merge_request_id bigint NOT NULL, @@ -17772,21 +27790,41 @@ CREATE TABLE scan_result_policy_violations ( CONSTRAINT chk_policy_violations_rule_id_or_policy_id_not_null CHECK (((approval_policy_rule_id IS NOT NULL) OR (scan_result_policy_id IS NOT NULL))) ); -CREATE SEQUENCE scan_result_policy_violations_id_seq + +-- +-- Name: scan_result_policy_violations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.scan_result_policy_violations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE scan_result_policy_violations_id_seq OWNED BY scan_result_policy_violations.id; -CREATE TABLE schema_migrations ( +-- +-- Name: scan_result_policy_violations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.scan_result_policy_violations_id_seq OWNED BY public.scan_result_policy_violations.id; + + +-- +-- Name: schema_migrations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.schema_migrations ( version character varying NOT NULL, finished_at timestamp with time zone DEFAULT now() ); -CREATE TABLE scim_identities ( + +-- +-- Name: scim_identities; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.scim_identities ( id bigint NOT NULL, group_id bigint, user_id bigint NOT NULL, @@ -17796,16 +27834,31 @@ CREATE TABLE scim_identities ( extern_uid character varying(255) NOT NULL ); -CREATE SEQUENCE scim_identities_id_seq + +-- +-- Name: scim_identities_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.scim_identities_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE scim_identities_id_seq OWNED BY scim_identities.id; -CREATE TABLE scim_oauth_access_tokens ( +-- +-- Name: scim_identities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.scim_identities_id_seq OWNED BY public.scim_identities.id; + + +-- +-- Name: scim_oauth_access_tokens; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.scim_oauth_access_tokens ( id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17813,16 +27866,31 @@ CREATE TABLE scim_oauth_access_tokens ( token_encrypted character varying NOT NULL ); -CREATE SEQUENCE scim_oauth_access_tokens_id_seq + +-- +-- Name: scim_oauth_access_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.scim_oauth_access_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE scim_oauth_access_tokens_id_seq OWNED BY scim_oauth_access_tokens.id; -CREATE TABLE search_indices ( +-- +-- Name: scim_oauth_access_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.scim_oauth_access_tokens_id_seq OWNED BY public.scim_oauth_access_tokens.id; + + +-- +-- Name: search_indices; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.search_indices ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17835,16 +27903,31 @@ CREATE TABLE search_indices ( CONSTRAINT check_ab47e7ff85 CHECK ((char_length(path) <= 255)) ); -CREATE SEQUENCE search_indices_id_seq + +-- +-- Name: search_indices_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.search_indices_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE search_indices_id_seq OWNED BY search_indices.id; -CREATE TABLE search_namespace_index_assignments ( +-- +-- Name: search_indices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.search_indices_id_seq OWNED BY public.search_indices.id; + + +-- +-- Name: search_namespace_index_assignments; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.search_namespace_index_assignments ( id bigint NOT NULL, namespace_id bigint, search_index_id bigint NOT NULL, @@ -17856,25 +27939,50 @@ CREATE TABLE search_namespace_index_assignments ( CONSTRAINT check_64cf4e670a CHECK ((char_length(index_type) <= 255)) ); -CREATE SEQUENCE search_namespace_index_assignments_id_seq + +-- +-- Name: search_namespace_index_assignments_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.search_namespace_index_assignments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE search_namespace_index_assignments_id_seq OWNED BY search_namespace_index_assignments.id; -CREATE SEQUENCE security_findings_id_seq +-- +-- Name: search_namespace_index_assignments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.search_namespace_index_assignments_id_seq OWNED BY public.search_namespace_index_assignments.id; + + +-- +-- Name: security_findings_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.security_findings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE security_findings_id_seq OWNED BY security_findings.id; -CREATE TABLE security_orchestration_policy_configurations ( +-- +-- Name: security_findings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.security_findings_id_seq OWNED BY public.security_findings.id; + + +-- +-- Name: security_orchestration_policy_configurations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.security_orchestration_policy_configurations ( id bigint NOT NULL, project_id bigint, security_policy_management_project_id bigint NOT NULL, @@ -17885,18 +27993,38 @@ CREATE TABLE security_orchestration_policy_configurations ( CONSTRAINT cop_configs_project_or_namespace_existence CHECK (((project_id IS NULL) <> (namespace_id IS NULL))) ); -COMMENT ON TABLE security_orchestration_policy_configurations IS '{"owner":"group::container security","description":"Configuration used to store relationship between project and security policy repository"}'; -CREATE SEQUENCE security_orchestration_policy_configurations_id_seq +-- +-- Name: TABLE security_orchestration_policy_configurations; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public.security_orchestration_policy_configurations IS '{"owner":"group::container security","description":"Configuration used to store relationship between project and security policy repository"}'; + + +-- +-- Name: security_orchestration_policy_configurations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.security_orchestration_policy_configurations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE security_orchestration_policy_configurations_id_seq OWNED BY security_orchestration_policy_configurations.id; -CREATE TABLE security_orchestration_policy_rule_schedules ( +-- +-- Name: security_orchestration_policy_configurations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.security_orchestration_policy_configurations_id_seq OWNED BY public.security_orchestration_policy_configurations.id; + + +-- +-- Name: security_orchestration_policy_rule_schedules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.security_orchestration_policy_rule_schedules ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17912,18 +28040,38 @@ CREATE TABLE security_orchestration_policy_rule_schedules ( CONSTRAINT check_915825a76e CHECK ((char_length(cron) <= 255)) ); -COMMENT ON TABLE security_orchestration_policy_rule_schedules IS '{"owner":"group::container security","description":"Schedules used to store relationship between project and security policy repository"}'; -CREATE SEQUENCE security_orchestration_policy_rule_schedules_id_seq +-- +-- Name: TABLE security_orchestration_policy_rule_schedules; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON TABLE public.security_orchestration_policy_rule_schedules IS '{"owner":"group::container security","description":"Schedules used to store relationship between project and security policy repository"}'; + + +-- +-- Name: security_orchestration_policy_rule_schedules_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.security_orchestration_policy_rule_schedules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE security_orchestration_policy_rule_schedules_id_seq OWNED BY security_orchestration_policy_rule_schedules.id; -CREATE TABLE security_policies ( +-- +-- Name: security_orchestration_policy_rule_schedules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.security_orchestration_policy_rule_schedules_id_seq OWNED BY public.security_orchestration_policy_rule_schedules.id; + + +-- +-- Name: security_policies; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.security_policies ( id bigint NOT NULL, security_orchestration_policy_configuration_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -17945,47 +28093,92 @@ CREATE TABLE security_policies ( CONSTRAINT check_99c8e08928 CHECK ((char_length(description) <= 255)) ); -CREATE SEQUENCE security_policies_id_seq + +-- +-- Name: security_policies_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.security_policies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE security_policies_id_seq OWNED BY security_policies.id; -CREATE TABLE security_policy_project_links ( +-- +-- Name: security_policies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.security_policies_id_seq OWNED BY public.security_policies.id; + + +-- +-- Name: security_policy_project_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.security_policy_project_links ( id bigint NOT NULL, project_id bigint NOT NULL, security_policy_id bigint NOT NULL ); -CREATE SEQUENCE security_policy_project_links_id_seq + +-- +-- Name: security_policy_project_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.security_policy_project_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE security_policy_project_links_id_seq OWNED BY security_policy_project_links.id; -CREATE TABLE security_policy_requirements ( +-- +-- Name: security_policy_project_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.security_policy_project_links_id_seq OWNED BY public.security_policy_project_links.id; + + +-- +-- Name: security_policy_requirements; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.security_policy_requirements ( id bigint NOT NULL, compliance_framework_security_policy_id bigint NOT NULL, compliance_requirement_id bigint NOT NULL, namespace_id bigint NOT NULL ); -CREATE SEQUENCE security_policy_requirements_id_seq + +-- +-- Name: security_policy_requirements_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.security_policy_requirements_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE security_policy_requirements_id_seq OWNED BY security_policy_requirements.id; -CREATE TABLE security_scans ( +-- +-- Name: security_policy_requirements_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.security_policy_requirements_id_seq OWNED BY public.security_policy_requirements.id; + + +-- +-- Name: security_scans; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.security_scans ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17999,16 +28192,31 @@ CREATE TABLE security_scans ( findings_partition_number integer DEFAULT 1 NOT NULL ); -CREATE SEQUENCE security_scans_id_seq + +-- +-- Name: security_scans_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.security_scans_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE security_scans_id_seq OWNED BY security_scans.id; -CREATE TABLE security_training_providers ( +-- +-- Name: security_scans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.security_scans_id_seq OWNED BY public.security_scans.id; + + +-- +-- Name: security_training_providers; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.security_training_providers ( id bigint NOT NULL, name text NOT NULL, description text, @@ -18022,16 +28230,31 @@ CREATE TABLE security_training_providers ( CONSTRAINT check_dae433eed6 CHECK ((char_length(name) <= 256)) ); -CREATE SEQUENCE security_training_providers_id_seq + +-- +-- Name: security_training_providers_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.security_training_providers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE security_training_providers_id_seq OWNED BY security_training_providers.id; -CREATE TABLE security_trainings ( +-- +-- Name: security_training_providers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.security_training_providers_id_seq OWNED BY public.security_training_providers.id; + + +-- +-- Name: security_trainings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.security_trainings ( id bigint NOT NULL, project_id bigint NOT NULL, provider_id bigint NOT NULL, @@ -18040,16 +28263,31 @@ CREATE TABLE security_trainings ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE security_trainings_id_seq + +-- +-- Name: security_trainings_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.security_trainings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE security_trainings_id_seq OWNED BY security_trainings.id; -CREATE TABLE self_managed_prometheus_alert_events ( +-- +-- Name: security_trainings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.security_trainings_id_seq OWNED BY public.security_trainings.id; + + +-- +-- Name: self_managed_prometheus_alert_events; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.self_managed_prometheus_alert_events ( id bigint NOT NULL, project_id bigint NOT NULL, environment_id bigint, @@ -18061,16 +28299,31 @@ CREATE TABLE self_managed_prometheus_alert_events ( payload_key character varying(255) NOT NULL ); -CREATE SEQUENCE self_managed_prometheus_alert_events_id_seq + +-- +-- Name: self_managed_prometheus_alert_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.self_managed_prometheus_alert_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE self_managed_prometheus_alert_events_id_seq OWNED BY self_managed_prometheus_alert_events.id; -CREATE TABLE sent_notifications ( +-- +-- Name: self_managed_prometheus_alert_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.self_managed_prometheus_alert_events_id_seq OWNED BY public.self_managed_prometheus_alert_events.id; + + +-- +-- Name: sent_notifications; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.sent_notifications ( project_id integer, noteable_id integer, noteable_type character varying, @@ -18082,31 +28335,61 @@ CREATE TABLE sent_notifications ( issue_email_participant_id bigint ); -CREATE SEQUENCE sent_notifications_id_seq + +-- +-- Name: sent_notifications_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.sent_notifications_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE sent_notifications_id_seq OWNED BY sent_notifications.id; -CREATE TABLE sentry_issues ( +-- +-- Name: sent_notifications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.sent_notifications_id_seq OWNED BY public.sent_notifications.id; + + +-- +-- Name: sentry_issues; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.sentry_issues ( id bigint NOT NULL, issue_id bigint NOT NULL, sentry_issue_identifier bigint NOT NULL ); -CREATE SEQUENCE sentry_issues_id_seq + +-- +-- Name: sentry_issues_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.sentry_issues_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE sentry_issues_id_seq OWNED BY sentry_issues.id; -CREATE TABLE service_access_tokens ( +-- +-- Name: sentry_issues_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.sentry_issues_id_seq OWNED BY public.sentry_issues.id; + + +-- +-- Name: service_access_tokens; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.service_access_tokens ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -18115,16 +28398,31 @@ CREATE TABLE service_access_tokens ( expires_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE service_access_tokens_id_seq + +-- +-- Name: service_access_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.service_access_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE service_access_tokens_id_seq OWNED BY service_access_tokens.id; -CREATE TABLE service_desk_custom_email_credentials ( +-- +-- Name: service_access_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.service_access_tokens_id_seq OWNED BY public.service_access_tokens.id; + + +-- +-- Name: service_desk_custom_email_credentials; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.service_desk_custom_email_credentials ( project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -18138,7 +28436,12 @@ CREATE TABLE service_desk_custom_email_credentials ( CONSTRAINT check_6dd11e956a CHECK ((char_length(smtp_address) <= 255)) ); -CREATE TABLE service_desk_custom_email_verifications ( + +-- +-- Name: service_desk_custom_email_verifications; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.service_desk_custom_email_verifications ( project_id bigint NOT NULL, triggerer_id bigint, created_at timestamp with time zone NOT NULL, @@ -18150,7 +28453,12 @@ CREATE TABLE service_desk_custom_email_verifications ( encrypted_token_iv bytea ); -CREATE TABLE service_desk_settings ( + +-- +-- Name: service_desk_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.service_desk_settings ( project_id bigint NOT NULL, issue_template_key character varying(255), outgoing_name character varying(255), @@ -18165,36 +28473,71 @@ CREATE TABLE service_desk_settings ( CONSTRAINT check_57a79552e1 CHECK ((char_length(custom_email) <= 255)) ); -CREATE TABLE shards ( + +-- +-- Name: shards; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.shards ( id integer NOT NULL, name character varying NOT NULL ); -CREATE SEQUENCE shards_id_seq + +-- +-- Name: shards_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.shards_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE shards_id_seq OWNED BY shards.id; -CREATE TABLE slack_api_scopes ( +-- +-- Name: shards_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.shards_id_seq OWNED BY public.shards.id; + + +-- +-- Name: slack_api_scopes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.slack_api_scopes ( id bigint NOT NULL, name text NOT NULL, CONSTRAINT check_738678187a CHECK ((char_length(name) <= 100)) ); -CREATE SEQUENCE slack_api_scopes_id_seq + +-- +-- Name: slack_api_scopes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.slack_api_scopes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE slack_api_scopes_id_seq OWNED BY slack_api_scopes.id; -CREATE TABLE slack_integrations ( +-- +-- Name: slack_api_scopes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.slack_api_scopes_id_seq OWNED BY public.slack_api_scopes.id; + + +-- +-- Name: slack_integrations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.slack_integrations ( id integer NOT NULL, team_id character varying NOT NULL, team_name character varying NOT NULL, @@ -18210,47 +28553,92 @@ CREATE TABLE slack_integrations ( CONSTRAINT check_c9ca9ae80d CHECK ((integration_id IS NOT NULL)) ); -CREATE SEQUENCE slack_integrations_id_seq + +-- +-- Name: slack_integrations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.slack_integrations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE slack_integrations_id_seq OWNED BY slack_integrations.id; -CREATE TABLE slack_integrations_scopes ( +-- +-- Name: slack_integrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.slack_integrations_id_seq OWNED BY public.slack_integrations.id; + + +-- +-- Name: slack_integrations_scopes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.slack_integrations_scopes ( id bigint NOT NULL, slack_api_scope_id bigint NOT NULL, slack_integration_id bigint NOT NULL ); -CREATE SEQUENCE slack_integrations_scopes_id_seq + +-- +-- Name: slack_integrations_scopes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.slack_integrations_scopes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE slack_integrations_scopes_id_seq OWNED BY slack_integrations_scopes.id; -CREATE TABLE smartcard_identities ( +-- +-- Name: slack_integrations_scopes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.slack_integrations_scopes_id_seq OWNED BY public.slack_integrations_scopes.id; + + +-- +-- Name: smartcard_identities; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.smartcard_identities ( id bigint NOT NULL, user_id integer NOT NULL, subject character varying NOT NULL, issuer character varying NOT NULL ); -CREATE SEQUENCE smartcard_identities_id_seq + +-- +-- Name: smartcard_identities_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.smartcard_identities_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE smartcard_identities_id_seq OWNED BY smartcard_identities.id; -CREATE TABLE snippet_repositories ( +-- +-- Name: smartcard_identities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.smartcard_identities_id_seq OWNED BY public.smartcard_identities.id; + + +-- +-- Name: snippet_repositories; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.snippet_repositories ( snippet_id bigint NOT NULL, shard_id bigint NOT NULL, disk_path character varying(80) NOT NULL, @@ -18264,7 +28652,12 @@ CREATE TABLE snippet_repositories ( CONSTRAINT snippet_repositories_verification_failure_text_limit CHECK ((char_length(verification_failure) <= 255)) ); -CREATE TABLE snippet_repository_storage_moves ( + +-- +-- Name: snippet_repository_storage_moves; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.snippet_repository_storage_moves ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -18278,23 +28671,43 @@ CREATE TABLE snippet_repository_storage_moves ( CONSTRAINT snippet_repository_storage_moves_source_storage_name CHECK ((char_length(source_storage_name) <= 255)) ); -CREATE SEQUENCE snippet_repository_storage_moves_id_seq + +-- +-- Name: snippet_repository_storage_moves_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.snippet_repository_storage_moves_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE snippet_repository_storage_moves_id_seq OWNED BY snippet_repository_storage_moves.id; -CREATE TABLE snippet_statistics ( +-- +-- Name: snippet_repository_storage_moves_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.snippet_repository_storage_moves_id_seq OWNED BY public.snippet_repository_storage_moves.id; + + +-- +-- Name: snippet_statistics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.snippet_statistics ( snippet_id bigint NOT NULL, repository_size bigint DEFAULT 0 NOT NULL, file_count bigint DEFAULT 0 NOT NULL, commit_count bigint DEFAULT 0 NOT NULL ); -CREATE TABLE snippet_user_mentions ( + +-- +-- Name: snippet_user_mentions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.snippet_user_mentions ( id bigint NOT NULL, snippet_id integer NOT NULL, mentioned_users_ids integer[], @@ -18303,16 +28716,31 @@ CREATE TABLE snippet_user_mentions ( note_id bigint ); -CREATE SEQUENCE snippet_user_mentions_id_seq + +-- +-- Name: snippet_user_mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.snippet_user_mentions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE snippet_user_mentions_id_seq OWNED BY snippet_user_mentions.id; -CREATE TABLE snippets ( +-- +-- Name: snippet_user_mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.snippet_user_mentions_id_seq OWNED BY public.snippet_user_mentions.id; + + +-- +-- Name: snippets; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.snippets ( id integer NOT NULL, title character varying, content text, @@ -18336,16 +28764,31 @@ CREATE TABLE snippets ( organization_id bigint ); -CREATE SEQUENCE snippets_id_seq + +-- +-- Name: snippets_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.snippets_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE snippets_id_seq OWNED BY snippets.id; -CREATE TABLE software_license_policies ( +-- +-- Name: snippets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.snippets_id_seq OWNED BY public.snippets.id; + + +-- +-- Name: software_license_policies; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.software_license_policies ( id integer NOT NULL, project_id integer NOT NULL, software_license_id integer, @@ -18358,31 +28801,61 @@ CREATE TABLE software_license_policies ( CONSTRAINT check_9ba23ae4c3 CHECK ((num_nonnulls(custom_software_license_id, software_license_id) = 1)) ); -CREATE SEQUENCE software_license_policies_id_seq + +-- +-- Name: software_license_policies_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.software_license_policies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE software_license_policies_id_seq OWNED BY software_license_policies.id; -CREATE TABLE software_licenses ( +-- +-- Name: software_license_policies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.software_license_policies_id_seq OWNED BY public.software_license_policies.id; + + +-- +-- Name: software_licenses; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.software_licenses ( id integer NOT NULL, name character varying NOT NULL, spdx_identifier character varying(255) ); -CREATE SEQUENCE software_licenses_id_seq + +-- +-- Name: software_licenses_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.software_licenses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE software_licenses_id_seq OWNED BY software_licenses.id; -CREATE TABLE spam_logs ( +-- +-- Name: software_licenses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.software_licenses_id_seq OWNED BY public.software_licenses.id; + + +-- +-- Name: spam_logs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.spam_logs ( id integer NOT NULL, user_id integer, source_ip character varying, @@ -18397,16 +28870,31 @@ CREATE TABLE spam_logs ( recaptcha_verified boolean DEFAULT false NOT NULL ); -CREATE SEQUENCE spam_logs_id_seq + +-- +-- Name: spam_logs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.spam_logs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE spam_logs_id_seq OWNED BY spam_logs.id; -CREATE TABLE sprints ( +-- +-- Name: spam_logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.spam_logs_id_seq OWNED BY public.spam_logs.id; + + +-- +-- Name: sprints; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.sprints ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -18425,16 +28913,31 @@ CREATE TABLE sprints ( CONSTRAINT sprints_title CHECK ((char_length(title) <= 255)) ); -CREATE SEQUENCE sprints_id_seq + +-- +-- Name: sprints_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.sprints_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE sprints_id_seq OWNED BY sprints.id; -CREATE TABLE ssh_signatures ( +-- +-- Name: sprints_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.sprints_id_seq OWNED BY public.sprints.id; + + +-- +-- Name: ssh_signatures; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.ssh_signatures ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -18446,16 +28949,31 @@ CREATE TABLE ssh_signatures ( key_fingerprint_sha256 bytea ); -CREATE SEQUENCE ssh_signatures_id_seq + +-- +-- Name: ssh_signatures_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.ssh_signatures_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE ssh_signatures_id_seq OWNED BY ssh_signatures.id; -CREATE TABLE status_check_responses ( +-- +-- Name: ssh_signatures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.ssh_signatures_id_seq OWNED BY public.ssh_signatures.id; + + +-- +-- Name: status_check_responses; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.status_check_responses ( id bigint NOT NULL, merge_request_id bigint NOT NULL, external_approval_rule_id bigint, @@ -18467,32 +28985,62 @@ CREATE TABLE status_check_responses ( project_id bigint ); -CREATE SEQUENCE status_check_responses_id_seq + +-- +-- Name: status_check_responses_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.status_check_responses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE status_check_responses_id_seq OWNED BY status_check_responses.id; -CREATE TABLE status_page_published_incidents ( +-- +-- Name: status_check_responses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.status_check_responses_id_seq OWNED BY public.status_check_responses.id; + + +-- +-- Name: status_page_published_incidents; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.status_page_published_incidents ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, issue_id bigint NOT NULL ); -CREATE SEQUENCE status_page_published_incidents_id_seq + +-- +-- Name: status_page_published_incidents_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.status_page_published_incidents_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE status_page_published_incidents_id_seq OWNED BY status_page_published_incidents.id; -CREATE TABLE status_page_settings ( +-- +-- Name: status_page_published_incidents_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.status_page_published_incidents_id_seq OWNED BY public.status_page_published_incidents.id; + + +-- +-- Name: status_page_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.status_page_settings ( project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -18506,16 +29054,31 @@ CREATE TABLE status_page_settings ( CONSTRAINT check_75a79cd992 CHECK ((char_length(status_page_url) <= 1024)) ); -CREATE SEQUENCE status_page_settings_project_id_seq + +-- +-- Name: status_page_settings_project_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.status_page_settings_project_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE status_page_settings_project_id_seq OWNED BY status_page_settings.project_id; -CREATE TABLE subscription_add_on_purchases ( +-- +-- Name: status_page_settings_project_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.status_page_settings_project_id_seq OWNED BY public.status_page_settings.project_id; + + +-- +-- Name: subscription_add_on_purchases; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.subscription_add_on_purchases ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -18531,16 +29094,31 @@ CREATE TABLE subscription_add_on_purchases ( CONSTRAINT check_3313c4d200 CHECK ((char_length(purchase_xid) <= 255)) ); -CREATE SEQUENCE subscription_add_on_purchases_id_seq + +-- +-- Name: subscription_add_on_purchases_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.subscription_add_on_purchases_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE subscription_add_on_purchases_id_seq OWNED BY subscription_add_on_purchases.id; -CREATE TABLE subscription_add_ons ( +-- +-- Name: subscription_add_on_purchases_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.subscription_add_on_purchases_id_seq OWNED BY public.subscription_add_on_purchases.id; + + +-- +-- Name: subscription_add_ons; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.subscription_add_ons ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -18549,16 +29127,31 @@ CREATE TABLE subscription_add_ons ( CONSTRAINT check_4c39d15ada CHECK ((char_length(description) <= 512)) ); -CREATE SEQUENCE subscription_add_ons_id_seq + +-- +-- Name: subscription_add_ons_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.subscription_add_ons_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE subscription_add_ons_id_seq OWNED BY subscription_add_ons.id; -CREATE TABLE subscription_user_add_on_assignments ( +-- +-- Name: subscription_add_ons_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.subscription_add_ons_id_seq OWNED BY public.subscription_add_ons.id; + + +-- +-- Name: subscription_user_add_on_assignments; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.subscription_user_add_on_assignments ( id bigint NOT NULL, add_on_purchase_id bigint NOT NULL, user_id bigint NOT NULL, @@ -18567,16 +29160,31 @@ CREATE TABLE subscription_user_add_on_assignments ( organization_id bigint ); -CREATE SEQUENCE subscription_user_add_on_assignments_id_seq + +-- +-- Name: subscription_user_add_on_assignments_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.subscription_user_add_on_assignments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE subscription_user_add_on_assignments_id_seq OWNED BY subscription_user_add_on_assignments.id; -CREATE TABLE subscriptions ( +-- +-- Name: subscription_user_add_on_assignments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.subscription_user_add_on_assignments_id_seq OWNED BY public.subscription_user_add_on_assignments.id; + + +-- +-- Name: subscriptions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.subscriptions ( id integer NOT NULL, user_id integer, subscribable_id integer, @@ -18587,16 +29195,31 @@ CREATE TABLE subscriptions ( project_id integer ); -CREATE SEQUENCE subscriptions_id_seq + +-- +-- Name: subscriptions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.subscriptions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE subscriptions_id_seq OWNED BY subscriptions.id; -CREATE TABLE suggestions ( +-- +-- Name: subscriptions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.subscriptions_id_seq OWNED BY public.subscriptions.id; + + +-- +-- Name: suggestions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.suggestions ( id bigint NOT NULL, relative_order smallint NOT NULL, applied boolean DEFAULT false NOT NULL, @@ -18609,16 +29232,31 @@ CREATE TABLE suggestions ( note_id bigint NOT NULL ); -CREATE SEQUENCE suggestions_id_seq + +-- +-- Name: suggestions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.suggestions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE suggestions_id_seq OWNED BY suggestions.id; -CREATE TABLE system_access_microsoft_applications ( +-- +-- Name: suggestions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.suggestions_id_seq OWNED BY public.suggestions.id; + + +-- +-- Name: system_access_microsoft_applications; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.system_access_microsoft_applications ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -18636,16 +29274,31 @@ CREATE TABLE system_access_microsoft_applications ( CONSTRAINT check_ee72fb5459 CHECK ((char_length(client_xid) <= 255)) ); -CREATE SEQUENCE system_access_microsoft_applications_id_seq + +-- +-- Name: system_access_microsoft_applications_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.system_access_microsoft_applications_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE system_access_microsoft_applications_id_seq OWNED BY system_access_microsoft_applications.id; -CREATE TABLE system_access_microsoft_graph_access_tokens ( +-- +-- Name: system_access_microsoft_applications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.system_access_microsoft_applications_id_seq OWNED BY public.system_access_microsoft_applications.id; + + +-- +-- Name: system_access_microsoft_graph_access_tokens; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.system_access_microsoft_graph_access_tokens ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -18655,16 +29308,31 @@ CREATE TABLE system_access_microsoft_graph_access_tokens ( encrypted_token_iv bytea NOT NULL ); -CREATE SEQUENCE system_access_microsoft_graph_access_tokens_id_seq + +-- +-- Name: system_access_microsoft_graph_access_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.system_access_microsoft_graph_access_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE system_access_microsoft_graph_access_tokens_id_seq OWNED BY system_access_microsoft_graph_access_tokens.id; -CREATE TABLE system_note_metadata ( +-- +-- Name: system_access_microsoft_graph_access_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.system_access_microsoft_graph_access_tokens_id_seq OWNED BY public.system_access_microsoft_graph_access_tokens.id; + + +-- +-- Name: system_note_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.system_note_metadata ( commit_count integer, action character varying, created_at timestamp without time zone NOT NULL, @@ -18674,16 +29342,31 @@ CREATE TABLE system_note_metadata ( id bigint NOT NULL ); -CREATE SEQUENCE system_note_metadata_id_seq + +-- +-- Name: system_note_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.system_note_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE system_note_metadata_id_seq OWNED BY system_note_metadata.id; -CREATE TABLE taggings ( +-- +-- Name: system_note_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.system_note_metadata_id_seq OWNED BY public.system_note_metadata.id; + + +-- +-- Name: taggings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.taggings ( tag_id integer, taggable_type character varying, tagger_id integer, @@ -18694,31 +29377,61 @@ CREATE TABLE taggings ( taggable_id bigint ); -CREATE SEQUENCE taggings_id_seq + +-- +-- Name: taggings_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.taggings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE taggings_id_seq OWNED BY taggings.id; -CREATE TABLE tags ( +-- +-- Name: taggings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.taggings_id_seq OWNED BY public.taggings.id; + + +-- +-- Name: tags; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.tags ( id integer NOT NULL, name character varying, taggings_count integer DEFAULT 0 ); -CREATE SEQUENCE tags_id_seq + +-- +-- Name: tags_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.tags_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE tags_id_seq OWNED BY tags.id; -CREATE TABLE target_branch_rules ( +-- +-- Name: tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.tags_id_seq OWNED BY public.tags.id; + + +-- +-- Name: target_branch_rules; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.target_branch_rules ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -18728,16 +29441,31 @@ CREATE TABLE target_branch_rules ( CONSTRAINT check_3a0b12cf8c CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE target_branch_rules_id_seq + +-- +-- Name: target_branch_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.target_branch_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE target_branch_rules_id_seq OWNED BY target_branch_rules.id; -CREATE TABLE term_agreements ( +-- +-- Name: target_branch_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.target_branch_rules_id_seq OWNED BY public.target_branch_rules.id; + + +-- +-- Name: term_agreements; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.term_agreements ( id integer NOT NULL, term_id integer NOT NULL, user_id integer NOT NULL, @@ -18746,16 +29474,31 @@ CREATE TABLE term_agreements ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE term_agreements_id_seq + +-- +-- Name: term_agreements_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.term_agreements_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE term_agreements_id_seq OWNED BY term_agreements.id; -CREATE TABLE terraform_state_versions ( +-- +-- Name: term_agreements_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.term_agreements_id_seq OWNED BY public.term_agreements.id; + + +-- +-- Name: terraform_state_versions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.terraform_state_versions ( id bigint NOT NULL, terraform_state_id bigint NOT NULL, created_by_user_id bigint, @@ -18777,16 +29520,31 @@ CREATE TABLE terraform_state_versions ( CONSTRAINT tf_state_versions_verification_failure_text_limit CHECK ((char_length(verification_failure) <= 255)) ); -CREATE SEQUENCE terraform_state_versions_id_seq + +-- +-- Name: terraform_state_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.terraform_state_versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE terraform_state_versions_id_seq OWNED BY terraform_state_versions.id; -CREATE TABLE terraform_states ( +-- +-- Name: terraform_state_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.terraform_state_versions_id_seq OWNED BY public.terraform_state_versions.id; + + +-- +-- Name: terraform_states; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.terraform_states ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -18803,16 +29561,31 @@ CREATE TABLE terraform_states ( activerecord_lock_version integer DEFAULT 0 NOT NULL ); -CREATE SEQUENCE terraform_states_id_seq + +-- +-- Name: terraform_states_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.terraform_states_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE terraform_states_id_seq OWNED BY terraform_states.id; -CREATE TABLE timelog_categories ( +-- +-- Name: terraform_states_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.terraform_states_id_seq OWNED BY public.terraform_states.id; + + +-- +-- Name: timelog_categories; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.timelog_categories ( id bigint NOT NULL, namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -18827,16 +29600,31 @@ CREATE TABLE timelog_categories ( CONSTRAINT check_c4b8aec13a CHECK ((char_length(description) <= 1024)) ); -CREATE SEQUENCE timelog_categories_id_seq + +-- +-- Name: timelog_categories_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.timelog_categories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE timelog_categories_id_seq OWNED BY timelog_categories.id; -CREATE TABLE timelogs ( +-- +-- Name: timelog_categories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.timelog_categories_id_seq OWNED BY public.timelog_categories.id; + + +-- +-- Name: timelogs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.timelogs ( id integer NOT NULL, time_spent integer NOT NULL, user_id integer, @@ -18852,16 +29640,31 @@ CREATE TABLE timelogs ( CONSTRAINT check_271d321699 CHECK ((char_length(summary) <= 255)) ); -CREATE SEQUENCE timelogs_id_seq + +-- +-- Name: timelogs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.timelogs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE timelogs_id_seq OWNED BY timelogs.id; -CREATE TABLE todos ( +-- +-- Name: timelogs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.timelogs_id_seq OWNED BY public.timelogs.id; + + +-- +-- Name: todos; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.todos ( id integer NOT NULL, user_id integer NOT NULL, project_id integer, @@ -18878,32 +29681,62 @@ CREATE TABLE todos ( note_id bigint ); -CREATE SEQUENCE todos_id_seq + +-- +-- Name: todos_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.todos_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE todos_id_seq OWNED BY todos.id; -CREATE TABLE token_with_ivs ( +-- +-- Name: todos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.todos_id_seq OWNED BY public.todos.id; + + +-- +-- Name: token_with_ivs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.token_with_ivs ( id bigint NOT NULL, hashed_token bytea NOT NULL, hashed_plaintext_token bytea NOT NULL, iv bytea NOT NULL ); -CREATE SEQUENCE token_with_ivs_id_seq + +-- +-- Name: token_with_ivs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.token_with_ivs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE token_with_ivs_id_seq OWNED BY token_with_ivs.id; -CREATE TABLE topics ( +-- +-- Name: token_with_ivs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.token_with_ivs_id_seq OWNED BY public.token_with_ivs.id; + + +-- +-- Name: topics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.topics ( id bigint NOT NULL, name text NOT NULL, created_at timestamp with time zone NOT NULL, @@ -18921,30 +29754,60 @@ CREATE TABLE topics ( CONSTRAINT check_7a90d4c757 CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE topics_id_seq + +-- +-- Name: topics_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.topics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE topics_id_seq OWNED BY topics.id; -CREATE TABLE trending_projects ( +-- +-- Name: topics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.topics_id_seq OWNED BY public.topics.id; + + +-- +-- Name: trending_projects; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.trending_projects ( id integer NOT NULL, project_id integer NOT NULL ); -CREATE SEQUENCE trending_projects_id_seq + +-- +-- Name: trending_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.trending_projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE trending_projects_id_seq OWNED BY trending_projects.id; -CREATE TABLE upcoming_reconciliations ( +-- +-- Name: trending_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.trending_projects_id_seq OWNED BY public.trending_projects.id; + + +-- +-- Name: upcoming_reconciliations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.upcoming_reconciliations ( id bigint NOT NULL, namespace_id bigint, next_reconciliation_date date NOT NULL, @@ -18954,16 +29817,31 @@ CREATE TABLE upcoming_reconciliations ( organization_id bigint DEFAULT 1 NOT NULL ); -CREATE SEQUENCE upcoming_reconciliations_id_seq + +-- +-- Name: upcoming_reconciliations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.upcoming_reconciliations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE upcoming_reconciliations_id_seq OWNED BY upcoming_reconciliations.id; -CREATE TABLE upload_states ( +-- +-- Name: upcoming_reconciliations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.upcoming_reconciliations_id_seq OWNED BY public.upcoming_reconciliations.id; + + +-- +-- Name: upload_states; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.upload_states ( verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, verified_at timestamp with time zone, @@ -18975,16 +29853,31 @@ CREATE TABLE upload_states ( CONSTRAINT check_7396dc8591 CHECK ((char_length(verification_failure) <= 255)) ); -CREATE SEQUENCE upload_states_upload_id_seq + +-- +-- Name: upload_states_upload_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.upload_states_upload_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE upload_states_upload_id_seq OWNED BY upload_states.upload_id; -CREATE TABLE uploads ( +-- +-- Name: upload_states_upload_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.upload_states_upload_id_seq OWNED BY public.upload_states.upload_id; + + +-- +-- Name: uploads; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.uploads ( id integer NOT NULL, size bigint NOT NULL, path character varying(511) NOT NULL, @@ -19001,16 +29894,31 @@ CREATE TABLE uploads ( CONSTRAINT check_5e9547379c CHECK ((store IS NOT NULL)) ); -CREATE SEQUENCE uploads_id_seq + +-- +-- Name: uploads_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.uploads_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE uploads_id_seq OWNED BY uploads.id; -CREATE TABLE user_achievements ( +-- +-- Name: uploads_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.uploads_id_seq OWNED BY public.uploads.id; + + +-- +-- Name: user_achievements; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_achievements ( id bigint NOT NULL, achievement_id bigint NOT NULL, user_id bigint NOT NULL, @@ -19024,16 +29932,31 @@ CREATE TABLE user_achievements ( show_on_profile boolean DEFAULT true NOT NULL ); -CREATE SEQUENCE user_achievements_id_seq + +-- +-- Name: user_achievements_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.user_achievements_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE user_achievements_id_seq OWNED BY user_achievements.id; -CREATE TABLE user_agent_details ( +-- +-- Name: user_achievements_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.user_achievements_id_seq OWNED BY public.user_achievements.id; + + +-- +-- Name: user_agent_details; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_agent_details ( id integer NOT NULL, user_agent character varying NOT NULL, ip_address character varying NOT NULL, @@ -19044,16 +29967,31 @@ CREATE TABLE user_agent_details ( updated_at timestamp without time zone NOT NULL ); -CREATE SEQUENCE user_agent_details_id_seq + +-- +-- Name: user_agent_details_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.user_agent_details_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE user_agent_details_id_seq OWNED BY user_agent_details.id; -CREATE TABLE user_broadcast_message_dismissals ( +-- +-- Name: user_agent_details_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.user_agent_details_id_seq OWNED BY public.user_agent_details.id; + + +-- +-- Name: user_broadcast_message_dismissals; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_broadcast_message_dismissals ( id bigint NOT NULL, user_id bigint NOT NULL, broadcast_message_id bigint NOT NULL, @@ -19062,32 +30000,62 @@ CREATE TABLE user_broadcast_message_dismissals ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE user_broadcast_message_dismissals_id_seq + +-- +-- Name: user_broadcast_message_dismissals_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.user_broadcast_message_dismissals_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE user_broadcast_message_dismissals_id_seq OWNED BY user_broadcast_message_dismissals.id; -CREATE TABLE user_callouts ( +-- +-- Name: user_broadcast_message_dismissals_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.user_broadcast_message_dismissals_id_seq OWNED BY public.user_broadcast_message_dismissals.id; + + +-- +-- Name: user_callouts; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_callouts ( id integer NOT NULL, feature_name integer NOT NULL, user_id integer NOT NULL, dismissed_at timestamp with time zone ); -CREATE SEQUENCE user_callouts_id_seq + +-- +-- Name: user_callouts_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.user_callouts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE user_callouts_id_seq OWNED BY user_callouts.id; -CREATE TABLE user_canonical_emails ( +-- +-- Name: user_callouts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.user_callouts_id_seq OWNED BY public.user_callouts.id; + + +-- +-- Name: user_canonical_emails; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_canonical_emails ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -19095,16 +30063,31 @@ CREATE TABLE user_canonical_emails ( canonical_email character varying NOT NULL ); -CREATE SEQUENCE user_canonical_emails_id_seq + +-- +-- Name: user_canonical_emails_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.user_canonical_emails_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE user_canonical_emails_id_seq OWNED BY user_canonical_emails.id; -CREATE TABLE user_credit_card_validations ( +-- +-- Name: user_canonical_emails_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.user_canonical_emails_id_seq OWNED BY public.user_canonical_emails.id; + + +-- +-- Name: user_credit_card_validations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_credit_card_validations ( user_id bigint NOT NULL, credit_card_validated_at timestamp with time zone NOT NULL, last_digits_hash text, @@ -19125,7 +30108,12 @@ CREATE TABLE user_credit_card_validations ( CONSTRAINT check_f5c35b1a6e CHECK ((char_length(last_digits_hash) <= 44)) ); -CREATE TABLE user_custom_attributes ( + +-- +-- Name: user_custom_attributes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_custom_attributes ( id integer NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, @@ -19134,16 +30122,31 @@ CREATE TABLE user_custom_attributes ( value character varying NOT NULL ); -CREATE SEQUENCE user_custom_attributes_id_seq + +-- +-- Name: user_custom_attributes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.user_custom_attributes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE user_custom_attributes_id_seq OWNED BY user_custom_attributes.id; -CREATE TABLE user_details ( +-- +-- Name: user_custom_attributes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.user_custom_attributes_id_seq OWNED BY public.user_custom_attributes.id; + + +-- +-- Name: user_details; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_details ( user_id bigint NOT NULL, job_title character varying(200) DEFAULT ''::character varying NOT NULL, bio character varying(255) DEFAULT ''::character varying NOT NULL, @@ -19184,25 +30187,55 @@ CREATE TABLE user_details ( CONSTRAINT check_f932ed37db CHECK ((char_length(pronunciation) <= 255)) ); -COMMENT ON COLUMN user_details.phone IS 'JiHu-specific column'; -COMMENT ON COLUMN user_details.password_last_changed_at IS 'JiHu-specific column'; +-- +-- Name: COLUMN user_details.phone; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.user_details.phone IS 'JiHu-specific column'; + + +-- +-- Name: COLUMN user_details.password_last_changed_at; Type: COMMENT; Schema: public; Owner: - +-- -CREATE SEQUENCE user_details_user_id_seq +COMMENT ON COLUMN public.user_details.password_last_changed_at IS 'JiHu-specific column'; + + +-- +-- Name: user_details_user_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.user_details_user_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE user_details_user_id_seq OWNED BY user_details.user_id; -CREATE TABLE user_follow_users ( +-- +-- Name: user_details_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.user_details_user_id_seq OWNED BY public.user_details.user_id; + + +-- +-- Name: user_follow_users; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_follow_users ( follower_id integer NOT NULL, followee_id integer NOT NULL ); -CREATE TABLE user_group_callouts ( + +-- +-- Name: user_group_callouts; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_group_callouts ( id bigint NOT NULL, user_id bigint NOT NULL, group_id bigint NOT NULL, @@ -19210,22 +30243,42 @@ CREATE TABLE user_group_callouts ( dismissed_at timestamp with time zone ); -CREATE SEQUENCE user_group_callouts_id_seq + +-- +-- Name: user_group_callouts_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.user_group_callouts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE user_group_callouts_id_seq OWNED BY user_group_callouts.id; -CREATE TABLE user_highest_roles ( +-- +-- Name: user_group_callouts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.user_group_callouts_id_seq OWNED BY public.user_group_callouts.id; + + +-- +-- Name: user_highest_roles; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_highest_roles ( user_id bigint NOT NULL, updated_at timestamp with time zone NOT NULL, highest_access_level integer ); -CREATE TABLE user_namespace_callouts ( + +-- +-- Name: user_namespace_callouts; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_namespace_callouts ( id bigint NOT NULL, user_id bigint NOT NULL, namespace_id bigint NOT NULL, @@ -19233,16 +30286,31 @@ CREATE TABLE user_namespace_callouts ( feature_name smallint NOT NULL ); -CREATE SEQUENCE user_namespace_callouts_id_seq + +-- +-- Name: user_namespace_callouts_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.user_namespace_callouts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE user_namespace_callouts_id_seq OWNED BY user_namespace_callouts.id; -CREATE TABLE user_permission_export_uploads ( +-- +-- Name: user_namespace_callouts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.user_namespace_callouts_id_seq OWNED BY public.user_namespace_callouts.id; + + +-- +-- Name: user_permission_export_uploads; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_permission_export_uploads ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -19253,16 +30321,31 @@ CREATE TABLE user_permission_export_uploads ( CONSTRAINT check_1956806648 CHECK ((char_length(file) <= 255)) ); -CREATE SEQUENCE user_permission_export_uploads_id_seq + +-- +-- Name: user_permission_export_uploads_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.user_permission_export_uploads_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE user_permission_export_uploads_id_seq OWNED BY user_permission_export_uploads.id; -CREATE TABLE user_phone_number_validations ( +-- +-- Name: user_permission_export_uploads_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.user_permission_export_uploads_id_seq OWNED BY public.user_permission_export_uploads.id; + + +-- +-- Name: user_phone_number_validations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_phone_number_validations ( user_id bigint NOT NULL, validated_at timestamp with time zone, created_at timestamp with time zone NOT NULL, @@ -19280,7 +30363,12 @@ CREATE TABLE user_phone_number_validations ( CONSTRAINT check_d7af4d3eb5 CHECK ((char_length(telesign_reference_xid) <= 255)) ); -CREATE TABLE user_preferences ( + +-- +-- Name: user_preferences; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_preferences ( id integer NOT NULL, user_id integer NOT NULL, issue_notes_filter smallint DEFAULT 0 NOT NULL, @@ -19333,16 +30421,31 @@ CREATE TABLE user_preferences ( CONSTRAINT check_d3248b1b9c CHECK ((tab_width IS NOT NULL)) ); -CREATE SEQUENCE user_preferences_id_seq + +-- +-- Name: user_preferences_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.user_preferences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE user_preferences_id_seq OWNED BY user_preferences.id; -CREATE TABLE user_project_callouts ( +-- +-- Name: user_preferences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.user_preferences_id_seq OWNED BY public.user_preferences.id; + + +-- +-- Name: user_project_callouts; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_project_callouts ( id bigint NOT NULL, user_id bigint NOT NULL, project_id bigint NOT NULL, @@ -19350,16 +30453,31 @@ CREATE TABLE user_project_callouts ( dismissed_at timestamp with time zone ); -CREATE SEQUENCE user_project_callouts_id_seq + +-- +-- Name: user_project_callouts_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.user_project_callouts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE user_project_callouts_id_seq OWNED BY user_project_callouts.id; -CREATE TABLE user_statuses ( +-- +-- Name: user_project_callouts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.user_project_callouts_id_seq OWNED BY public.user_project_callouts.id; + + +-- +-- Name: user_statuses; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_statuses ( user_id integer NOT NULL, cached_markdown_version integer, emoji character varying DEFAULT 'speech_balloon'::character varying NOT NULL, @@ -19369,16 +30487,31 @@ CREATE TABLE user_statuses ( clear_status_at timestamp with time zone ); -CREATE SEQUENCE user_statuses_user_id_seq + +-- +-- Name: user_statuses_user_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.user_statuses_user_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE user_statuses_user_id_seq OWNED BY user_statuses.user_id; -CREATE TABLE user_synced_attributes_metadata ( +-- +-- Name: user_statuses_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.user_statuses_user_id_seq OWNED BY public.user_statuses.user_id; + + +-- +-- Name: user_synced_attributes_metadata; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.user_synced_attributes_metadata ( id integer NOT NULL, name_synced boolean DEFAULT false, email_synced boolean DEFAULT false, @@ -19387,25 +30520,50 @@ CREATE TABLE user_synced_attributes_metadata ( provider character varying ); -CREATE SEQUENCE user_synced_attributes_metadata_id_seq + +-- +-- Name: user_synced_attributes_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.user_synced_attributes_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE user_synced_attributes_metadata_id_seq OWNED BY user_synced_attributes_metadata.id; -CREATE SEQUENCE users_id_seq +-- +-- Name: user_synced_attributes_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.user_synced_attributes_metadata_id_seq OWNED BY public.user_synced_attributes_metadata.id; + + +-- +-- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.users_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE users_id_seq OWNED BY users.id; -CREATE TABLE users_ops_dashboard_projects ( +-- +-- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id; + + +-- +-- Name: users_ops_dashboard_projects; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.users_ops_dashboard_projects ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -19413,21 +30571,41 @@ CREATE TABLE users_ops_dashboard_projects ( project_id integer NOT NULL ); -CREATE SEQUENCE users_ops_dashboard_projects_id_seq + +-- +-- Name: users_ops_dashboard_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.users_ops_dashboard_projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE users_ops_dashboard_projects_id_seq OWNED BY users_ops_dashboard_projects.id; -CREATE TABLE users_security_dashboard_projects ( +-- +-- Name: users_ops_dashboard_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.users_ops_dashboard_projects_id_seq OWNED BY public.users_ops_dashboard_projects.id; + + +-- +-- Name: users_security_dashboard_projects; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.users_security_dashboard_projects ( user_id bigint NOT NULL, project_id bigint NOT NULL ); -CREATE TABLE users_star_projects ( + +-- +-- Name: users_star_projects; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.users_star_projects ( id integer NOT NULL, project_id integer NOT NULL, user_id integer NOT NULL, @@ -19435,16 +30613,31 @@ CREATE TABLE users_star_projects ( updated_at timestamp without time zone ); -CREATE SEQUENCE users_star_projects_id_seq + +-- +-- Name: users_star_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.users_star_projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE users_star_projects_id_seq OWNED BY users_star_projects.id; -CREATE TABLE users_statistics ( +-- +-- Name: users_star_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.users_star_projects_id_seq OWNED BY public.users_star_projects.id; + + +-- +-- Name: users_statistics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.users_statistics ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -19460,31 +30653,61 @@ CREATE TABLE users_statistics ( with_highest_role_guest_with_custom_role integer DEFAULT 0 NOT NULL ); -CREATE SEQUENCE users_statistics_id_seq + +-- +-- Name: users_statistics_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.users_statistics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE users_statistics_id_seq OWNED BY users_statistics.id; -CREATE TABLE value_stream_dashboard_aggregations ( +-- +-- Name: users_statistics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.users_statistics_id_seq OWNED BY public.users_statistics.id; + + +-- +-- Name: value_stream_dashboard_aggregations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.value_stream_dashboard_aggregations ( namespace_id bigint NOT NULL, last_run_at timestamp with time zone, enabled boolean DEFAULT true NOT NULL ); -CREATE SEQUENCE value_stream_dashboard_counts_id_seq + +-- +-- Name: value_stream_dashboard_counts_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.value_stream_dashboard_counts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE value_stream_dashboard_counts_id_seq OWNED BY value_stream_dashboard_counts.id; -CREATE TABLE virtual_registries_packages_maven_cached_responses ( +-- +-- Name: value_stream_dashboard_counts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.value_stream_dashboard_counts_id_seq OWNED BY public.value_stream_dashboard_counts.id; + + +-- +-- Name: virtual_registries_packages_maven_cached_responses; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.virtual_registries_packages_maven_cached_responses ( id bigint NOT NULL, group_id bigint NOT NULL, upstream_id bigint, @@ -19508,16 +30731,31 @@ CREATE TABLE virtual_registries_packages_maven_cached_responses ( CONSTRAINT check_d35a8e931f CHECK ((char_length(relative_path) <= 255)) ); -CREATE SEQUENCE virtual_registries_packages_maven_cached_responses_id_seq + +-- +-- Name: virtual_registries_packages_maven_cached_responses_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.virtual_registries_packages_maven_cached_responses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE virtual_registries_packages_maven_cached_responses_id_seq OWNED BY virtual_registries_packages_maven_cached_responses.id; -CREATE TABLE virtual_registries_packages_maven_registries ( +-- +-- Name: virtual_registries_packages_maven_cached_responses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.virtual_registries_packages_maven_cached_responses_id_seq OWNED BY public.virtual_registries_packages_maven_cached_responses.id; + + +-- +-- Name: virtual_registries_packages_maven_registries; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.virtual_registries_packages_maven_registries ( id bigint NOT NULL, group_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -19526,16 +30764,31 @@ CREATE TABLE virtual_registries_packages_maven_registries ( CONSTRAINT check_b3fbe8eb62 CHECK ((cache_validity_hours >= 0)) ); -CREATE SEQUENCE virtual_registries_packages_maven_registries_id_seq + +-- +-- Name: virtual_registries_packages_maven_registries_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.virtual_registries_packages_maven_registries_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE virtual_registries_packages_maven_registries_id_seq OWNED BY virtual_registries_packages_maven_registries.id; -CREATE TABLE virtual_registries_packages_maven_registry_upstreams ( +-- +-- Name: virtual_registries_packages_maven_registries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.virtual_registries_packages_maven_registries_id_seq OWNED BY public.virtual_registries_packages_maven_registries.id; + + +-- +-- Name: virtual_registries_packages_maven_registry_upstreams; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.virtual_registries_packages_maven_registry_upstreams ( id bigint NOT NULL, group_id bigint NOT NULL, registry_id bigint NOT NULL, @@ -19544,16 +30797,31 @@ CREATE TABLE virtual_registries_packages_maven_registry_upstreams ( updated_at timestamp with time zone NOT NULL ); -CREATE SEQUENCE virtual_registries_packages_maven_registry_upstreams_id_seq + +-- +-- Name: virtual_registries_packages_maven_registry_upstreams_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.virtual_registries_packages_maven_registry_upstreams_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE virtual_registries_packages_maven_registry_upstreams_id_seq OWNED BY virtual_registries_packages_maven_registry_upstreams.id; -CREATE TABLE virtual_registries_packages_maven_upstreams ( +-- +-- Name: virtual_registries_packages_maven_registry_upstreams_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.virtual_registries_packages_maven_registry_upstreams_id_seq OWNED BY public.virtual_registries_packages_maven_registry_upstreams.id; + + +-- +-- Name: virtual_registries_packages_maven_upstreams; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.virtual_registries_packages_maven_upstreams ( id bigint NOT NULL, group_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -19566,16 +30834,31 @@ CREATE TABLE virtual_registries_packages_maven_upstreams ( CONSTRAINT check_b9e3bfa31a CHECK ((octet_length(encrypted_credentials) <= 1020)) ); -CREATE SEQUENCE virtual_registries_packages_maven_upstreams_id_seq + +-- +-- Name: virtual_registries_packages_maven_upstreams_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.virtual_registries_packages_maven_upstreams_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE virtual_registries_packages_maven_upstreams_id_seq OWNED BY virtual_registries_packages_maven_upstreams.id; -CREATE TABLE vs_code_settings ( +-- +-- Name: virtual_registries_packages_maven_upstreams_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.virtual_registries_packages_maven_upstreams_id_seq OWNED BY public.virtual_registries_packages_maven_upstreams.id; + + +-- +-- Name: vs_code_settings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vs_code_settings ( id bigint NOT NULL, user_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -19590,16 +30873,31 @@ CREATE TABLE vs_code_settings ( CONSTRAINT check_994c503fc4 CHECK ((char_length(setting_type) <= 256)) ); -CREATE SEQUENCE vs_code_settings_id_seq + +-- +-- Name: vs_code_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vs_code_settings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vs_code_settings_id_seq OWNED BY vs_code_settings.id; -CREATE TABLE vulnerabilities ( +-- +-- Name: vs_code_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vs_code_settings_id_seq OWNED BY public.vs_code_settings.id; + + +-- +-- Name: vulnerabilities; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerabilities ( id bigint NOT NULL, project_id bigint NOT NULL, author_id bigint NOT NULL, @@ -19630,16 +30928,31 @@ CREATE TABLE vulnerabilities ( CONSTRAINT check_4d8a873f1f CHECK ((finding_id IS NOT NULL)) ); -CREATE SEQUENCE vulnerabilities_id_seq + +-- +-- Name: vulnerabilities_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerabilities_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerabilities_id_seq OWNED BY vulnerabilities.id; -CREATE TABLE vulnerability_export_parts ( +-- +-- Name: vulnerabilities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerabilities_id_seq OWNED BY public.vulnerabilities.id; + + +-- +-- Name: vulnerability_export_parts; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_export_parts ( id bigint NOT NULL, vulnerability_export_id bigint NOT NULL, start_id bigint NOT NULL, @@ -19652,16 +30965,31 @@ CREATE TABLE vulnerability_export_parts ( CONSTRAINT check_baded21d39 CHECK ((char_length(file) <= 255)) ); -CREATE SEQUENCE vulnerability_export_parts_id_seq + +-- +-- Name: vulnerability_export_parts_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_export_parts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_export_parts_id_seq OWNED BY vulnerability_export_parts.id; -CREATE TABLE vulnerability_exports ( +-- +-- Name: vulnerability_export_parts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_export_parts_id_seq OWNED BY public.vulnerability_export_parts.id; + + +-- +-- Name: vulnerability_exports; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_exports ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -19677,16 +31005,31 @@ CREATE TABLE vulnerability_exports ( organization_id bigint DEFAULT 1 NOT NULL ); -CREATE SEQUENCE vulnerability_exports_id_seq + +-- +-- Name: vulnerability_exports_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_exports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_exports_id_seq OWNED BY vulnerability_exports.id; -CREATE TABLE vulnerability_external_issue_links ( +-- +-- Name: vulnerability_exports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_exports_id_seq OWNED BY public.vulnerability_exports.id; + + +-- +-- Name: vulnerability_external_issue_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_external_issue_links ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -19701,16 +31044,31 @@ CREATE TABLE vulnerability_external_issue_links ( CONSTRAINT check_68cffd19b0 CHECK ((char_length(external_project_key) <= 255)) ); -CREATE SEQUENCE vulnerability_external_issue_links_id_seq + +-- +-- Name: vulnerability_external_issue_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_external_issue_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_external_issue_links_id_seq OWNED BY vulnerability_external_issue_links.id; -CREATE TABLE vulnerability_feedback ( +-- +-- Name: vulnerability_external_issue_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_external_issue_links_id_seq OWNED BY public.vulnerability_external_issue_links.id; + + +-- +-- Name: vulnerability_feedback; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_feedback ( id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -19730,16 +31088,31 @@ CREATE TABLE vulnerability_feedback ( pipeline_id bigint ); -CREATE SEQUENCE vulnerability_feedback_id_seq + +-- +-- Name: vulnerability_feedback_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_feedback_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_feedback_id_seq OWNED BY vulnerability_feedback.id; -CREATE TABLE vulnerability_finding_evidences ( +-- +-- Name: vulnerability_feedback_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_feedback_id_seq OWNED BY public.vulnerability_feedback.id; + + +-- +-- Name: vulnerability_finding_evidences; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_finding_evidences ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -19748,16 +31121,31 @@ CREATE TABLE vulnerability_finding_evidences ( project_id bigint ); -CREATE SEQUENCE vulnerability_finding_evidences_id_seq + +-- +-- Name: vulnerability_finding_evidences_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_finding_evidences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_finding_evidences_id_seq OWNED BY vulnerability_finding_evidences.id; -CREATE TABLE vulnerability_finding_links ( +-- +-- Name: vulnerability_finding_evidences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_finding_evidences_id_seq OWNED BY public.vulnerability_finding_evidences.id; + + +-- +-- Name: vulnerability_finding_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_finding_links ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -19769,16 +31157,31 @@ CREATE TABLE vulnerability_finding_links ( CONSTRAINT check_b7fe886df6 CHECK ((char_length(url) <= 2048)) ); -CREATE SEQUENCE vulnerability_finding_links_id_seq + +-- +-- Name: vulnerability_finding_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_finding_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_finding_links_id_seq OWNED BY vulnerability_finding_links.id; -CREATE TABLE vulnerability_finding_signatures ( +-- +-- Name: vulnerability_finding_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_finding_links_id_seq OWNED BY public.vulnerability_finding_links.id; + + +-- +-- Name: vulnerability_finding_signatures; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_finding_signatures ( id bigint NOT NULL, finding_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -19788,16 +31191,31 @@ CREATE TABLE vulnerability_finding_signatures ( project_id bigint ); -CREATE SEQUENCE vulnerability_finding_signatures_id_seq + +-- +-- Name: vulnerability_finding_signatures_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_finding_signatures_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_finding_signatures_id_seq OWNED BY vulnerability_finding_signatures.id; -CREATE TABLE vulnerability_findings_remediations ( +-- +-- Name: vulnerability_finding_signatures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_finding_signatures_id_seq OWNED BY public.vulnerability_finding_signatures.id; + + +-- +-- Name: vulnerability_findings_remediations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_findings_remediations ( id bigint NOT NULL, vulnerability_occurrence_id bigint, vulnerability_remediation_id bigint, @@ -19806,16 +31224,31 @@ CREATE TABLE vulnerability_findings_remediations ( project_id bigint ); -CREATE SEQUENCE vulnerability_findings_remediations_id_seq + +-- +-- Name: vulnerability_findings_remediations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_findings_remediations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_findings_remediations_id_seq OWNED BY vulnerability_findings_remediations.id; -CREATE TABLE vulnerability_flags ( +-- +-- Name: vulnerability_findings_remediations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_findings_remediations_id_seq OWNED BY public.vulnerability_findings_remediations.id; + + +-- +-- Name: vulnerability_flags; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_flags ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -19828,16 +31261,31 @@ CREATE TABLE vulnerability_flags ( CONSTRAINT check_49c1d00032 CHECK ((char_length(origin) <= 255)) ); -CREATE SEQUENCE vulnerability_flags_id_seq + +-- +-- Name: vulnerability_flags_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_flags_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_flags_id_seq OWNED BY vulnerability_flags.id; -CREATE TABLE vulnerability_historical_statistics ( +-- +-- Name: vulnerability_flags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_flags_id_seq OWNED BY public.vulnerability_flags.id; + + +-- +-- Name: vulnerability_historical_statistics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_historical_statistics ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -19853,16 +31301,31 @@ CREATE TABLE vulnerability_historical_statistics ( letter_grade smallint NOT NULL ); -CREATE SEQUENCE vulnerability_historical_statistics_id_seq + +-- +-- Name: vulnerability_historical_statistics_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_historical_statistics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_historical_statistics_id_seq OWNED BY vulnerability_historical_statistics.id; -CREATE TABLE vulnerability_identifiers ( +-- +-- Name: vulnerability_historical_statistics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_historical_statistics_id_seq OWNED BY public.vulnerability_historical_statistics.id; + + +-- +-- Name: vulnerability_identifiers; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_identifiers ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -19874,16 +31337,31 @@ CREATE TABLE vulnerability_identifiers ( url text ); -CREATE SEQUENCE vulnerability_identifiers_id_seq + +-- +-- Name: vulnerability_identifiers_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_identifiers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_identifiers_id_seq OWNED BY vulnerability_identifiers.id; -CREATE TABLE vulnerability_issue_links ( +-- +-- Name: vulnerability_identifiers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_identifiers_id_seq OWNED BY public.vulnerability_identifiers.id; + + +-- +-- Name: vulnerability_issue_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_issue_links ( id bigint NOT NULL, vulnerability_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -19893,16 +31371,31 @@ CREATE TABLE vulnerability_issue_links ( project_id bigint ); -CREATE SEQUENCE vulnerability_issue_links_id_seq + +-- +-- Name: vulnerability_issue_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_issue_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_issue_links_id_seq OWNED BY vulnerability_issue_links.id; -CREATE TABLE vulnerability_merge_request_links ( +-- +-- Name: vulnerability_issue_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_issue_links_id_seq OWNED BY public.vulnerability_issue_links.id; + + +-- +-- Name: vulnerability_merge_request_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_merge_request_links ( id bigint NOT NULL, vulnerability_id bigint NOT NULL, merge_request_id integer NOT NULL, @@ -19911,16 +31404,31 @@ CREATE TABLE vulnerability_merge_request_links ( project_id bigint ); -CREATE SEQUENCE vulnerability_merge_request_links_id_seq + +-- +-- Name: vulnerability_merge_request_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_merge_request_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_merge_request_links_id_seq OWNED BY vulnerability_merge_request_links.id; -CREATE TABLE vulnerability_namespace_historical_statistics ( +-- +-- Name: vulnerability_merge_request_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_merge_request_links_id_seq OWNED BY public.vulnerability_merge_request_links.id; + + +-- +-- Name: vulnerability_namespace_historical_statistics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_namespace_historical_statistics ( id bigint NOT NULL, namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -19937,16 +31445,31 @@ CREATE TABLE vulnerability_namespace_historical_statistics ( letter_grade smallint NOT NULL ); -CREATE SEQUENCE vulnerability_namespace_historical_statistics_id_seq + +-- +-- Name: vulnerability_namespace_historical_statistics_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_namespace_historical_statistics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_namespace_historical_statistics_id_seq OWNED BY vulnerability_namespace_historical_statistics.id; -CREATE TABLE vulnerability_occurrence_identifiers ( +-- +-- Name: vulnerability_namespace_historical_statistics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_namespace_historical_statistics_id_seq OWNED BY public.vulnerability_namespace_historical_statistics.id; + + +-- +-- Name: vulnerability_occurrence_identifiers; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_occurrence_identifiers ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -19955,16 +31478,31 @@ CREATE TABLE vulnerability_occurrence_identifiers ( project_id bigint ); -CREATE SEQUENCE vulnerability_occurrence_identifiers_id_seq + +-- +-- Name: vulnerability_occurrence_identifiers_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_occurrence_identifiers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_occurrence_identifiers_id_seq OWNED BY vulnerability_occurrence_identifiers.id; -CREATE TABLE vulnerability_occurrence_pipelines ( +-- +-- Name: vulnerability_occurrence_identifiers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_occurrence_identifiers_id_seq OWNED BY public.vulnerability_occurrence_identifiers.id; + + +-- +-- Name: vulnerability_occurrence_pipelines; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_occurrence_pipelines ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -19973,16 +31511,31 @@ CREATE TABLE vulnerability_occurrence_pipelines ( project_id bigint ); -CREATE SEQUENCE vulnerability_occurrence_pipelines_id_seq + +-- +-- Name: vulnerability_occurrence_pipelines_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_occurrence_pipelines_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_occurrence_pipelines_id_seq OWNED BY vulnerability_occurrence_pipelines.id; -CREATE TABLE vulnerability_occurrences ( +-- +-- Name: vulnerability_occurrence_pipelines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_occurrence_pipelines_id_seq OWNED BY public.vulnerability_occurrence_pipelines.id; + + +-- +-- Name: vulnerability_occurrences; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_occurrences ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20012,16 +31565,31 @@ CREATE TABLE vulnerability_occurrences ( CONSTRAINT check_f602da68dd CHECK ((char_length(cve) <= 48400)) ); -CREATE SEQUENCE vulnerability_occurrences_id_seq + +-- +-- Name: vulnerability_occurrences_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_occurrences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_occurrences_id_seq OWNED BY vulnerability_occurrences.id; -CREATE TABLE vulnerability_reads ( +-- +-- Name: vulnerability_occurrences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_occurrences_id_seq OWNED BY public.vulnerability_occurrences.id; + + +-- +-- Name: vulnerability_reads; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_reads ( id bigint NOT NULL, vulnerability_id bigint NOT NULL, project_id bigint NOT NULL, @@ -20050,16 +31618,31 @@ CREATE TABLE vulnerability_reads ( CONSTRAINT check_f5ba7c2496 CHECK ((traversal_ids IS NOT NULL)) ); -CREATE SEQUENCE vulnerability_reads_id_seq + +-- +-- Name: vulnerability_reads_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_reads_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_reads_id_seq OWNED BY vulnerability_reads.id; -CREATE TABLE vulnerability_remediations ( +-- +-- Name: vulnerability_reads_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_reads_id_seq OWNED BY public.vulnerability_reads.id; + + +-- +-- Name: vulnerability_remediations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_remediations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20072,18 +31655,38 @@ CREATE TABLE vulnerability_remediations ( CONSTRAINT check_fe3325e3ba CHECK ((char_length(file) <= 255)) ); -COMMENT ON COLUMN vulnerability_remediations.checksum IS 'Stores the SHA256 checksum of the attached diff file'; -CREATE SEQUENCE vulnerability_remediations_id_seq +-- +-- Name: COLUMN vulnerability_remediations.checksum; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON COLUMN public.vulnerability_remediations.checksum IS 'Stores the SHA256 checksum of the attached diff file'; + + +-- +-- Name: vulnerability_remediations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_remediations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_remediations_id_seq OWNED BY vulnerability_remediations.id; -CREATE TABLE vulnerability_scanners ( +-- +-- Name: vulnerability_remediations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_remediations_id_seq OWNED BY public.vulnerability_remediations.id; + + +-- +-- Name: vulnerability_scanners; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_scanners ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20093,16 +31696,31 @@ CREATE TABLE vulnerability_scanners ( vendor text DEFAULT 'GitLab'::text NOT NULL ); -CREATE SEQUENCE vulnerability_scanners_id_seq + +-- +-- Name: vulnerability_scanners_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_scanners_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_scanners_id_seq OWNED BY vulnerability_scanners.id; -CREATE TABLE vulnerability_state_transitions ( +-- +-- Name: vulnerability_scanners_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_scanners_id_seq OWNED BY public.vulnerability_scanners.id; + + +-- +-- Name: vulnerability_state_transitions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_state_transitions ( id bigint NOT NULL, vulnerability_id bigint NOT NULL, to_state smallint NOT NULL, @@ -20117,16 +31735,31 @@ CREATE TABLE vulnerability_state_transitions ( CONSTRAINT check_fe2eb6a0f3 CHECK ((char_length(comment) <= 50000)) ); -CREATE SEQUENCE vulnerability_state_transitions_id_seq + +-- +-- Name: vulnerability_state_transitions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_state_transitions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_state_transitions_id_seq OWNED BY vulnerability_state_transitions.id; -CREATE TABLE vulnerability_statistics ( +-- +-- Name: vulnerability_state_transitions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_state_transitions_id_seq OWNED BY public.vulnerability_state_transitions.id; + + +-- +-- Name: vulnerability_statistics; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_statistics ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20142,16 +31775,31 @@ CREATE TABLE vulnerability_statistics ( latest_pipeline_id bigint ); -CREATE SEQUENCE vulnerability_statistics_id_seq + +-- +-- Name: vulnerability_statistics_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_statistics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_statistics_id_seq OWNED BY vulnerability_statistics.id; -CREATE TABLE vulnerability_user_mentions ( +-- +-- Name: vulnerability_statistics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_statistics_id_seq OWNED BY public.vulnerability_statistics.id; + + +-- +-- Name: vulnerability_user_mentions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.vulnerability_user_mentions ( id bigint NOT NULL, vulnerability_id bigint NOT NULL, mentioned_users_ids integer[], @@ -20161,25 +31809,50 @@ CREATE TABLE vulnerability_user_mentions ( project_id bigint ); -CREATE SEQUENCE vulnerability_user_mentions_id_seq + +-- +-- Name: vulnerability_user_mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.vulnerability_user_mentions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE vulnerability_user_mentions_id_seq OWNED BY vulnerability_user_mentions.id; -CREATE SEQUENCE web_hook_logs_id_seq +-- +-- Name: vulnerability_user_mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.vulnerability_user_mentions_id_seq OWNED BY public.vulnerability_user_mentions.id; + + +-- +-- Name: web_hook_logs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.web_hook_logs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE web_hook_logs_id_seq OWNED BY web_hook_logs.id; -CREATE TABLE web_hooks ( +-- +-- Name: web_hook_logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.web_hook_logs_id_seq OWNED BY public.web_hook_logs.id; + + +-- +-- Name: web_hooks; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.web_hooks ( id integer NOT NULL, project_id integer, created_at timestamp without time zone, @@ -20227,16 +31900,31 @@ CREATE TABLE web_hooks ( CONSTRAINT check_69ef76ee0c CHECK ((char_length(custom_webhook_template) <= 4096)) ); -CREATE SEQUENCE web_hooks_id_seq + +-- +-- Name: web_hooks_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.web_hooks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE web_hooks_id_seq OWNED BY web_hooks.id; -CREATE TABLE webauthn_registrations ( +-- +-- Name: web_hooks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.web_hooks_id_seq OWNED BY public.web_hooks.id; + + +-- +-- Name: webauthn_registrations; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.webauthn_registrations ( id bigint NOT NULL, user_id bigint NOT NULL, counter bigint DEFAULT 0 NOT NULL, @@ -20249,16 +31937,31 @@ CREATE TABLE webauthn_registrations ( CONSTRAINT check_f5ab2b551a CHECK ((char_length(credential_xid) <= 1364)) ); -CREATE SEQUENCE webauthn_registrations_id_seq + +-- +-- Name: webauthn_registrations_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.webauthn_registrations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE webauthn_registrations_id_seq OWNED BY webauthn_registrations.id; -CREATE TABLE wiki_page_meta ( +-- +-- Name: webauthn_registrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.webauthn_registrations_id_seq OWNED BY public.webauthn_registrations.id; + + +-- +-- Name: wiki_page_meta; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.wiki_page_meta ( id integer NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -20266,16 +31969,31 @@ CREATE TABLE wiki_page_meta ( title character varying(255) NOT NULL ); -CREATE SEQUENCE wiki_page_meta_id_seq + +-- +-- Name: wiki_page_meta_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.wiki_page_meta_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE wiki_page_meta_id_seq OWNED BY wiki_page_meta.id; -CREATE TABLE wiki_page_slugs ( +-- +-- Name: wiki_page_meta_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.wiki_page_meta_id_seq OWNED BY public.wiki_page_meta.id; + + +-- +-- Name: wiki_page_slugs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.wiki_page_slugs ( id integer NOT NULL, canonical boolean DEFAULT false NOT NULL, wiki_page_meta_id bigint NOT NULL, @@ -20285,16 +32003,31 @@ CREATE TABLE wiki_page_slugs ( project_id bigint ); -CREATE SEQUENCE wiki_page_slugs_id_seq + +-- +-- Name: wiki_page_slugs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.wiki_page_slugs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE wiki_page_slugs_id_seq OWNED BY wiki_page_slugs.id; -CREATE TABLE wiki_repository_states ( +-- +-- Name: wiki_page_slugs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.wiki_page_slugs_id_seq OWNED BY public.wiki_page_slugs.id; + + +-- +-- Name: wiki_repository_states; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.wiki_repository_states ( id bigint NOT NULL, verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, @@ -20308,16 +32041,31 @@ CREATE TABLE wiki_repository_states ( CONSTRAINT check_2933ff60dc CHECK ((char_length(verification_failure) <= 255)) ); -CREATE SEQUENCE wiki_repository_states_id_seq + +-- +-- Name: wiki_repository_states_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.wiki_repository_states_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE wiki_repository_states_id_seq OWNED BY wiki_repository_states.id; -CREATE TABLE work_item_colors ( +-- +-- Name: wiki_repository_states_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.wiki_repository_states_id_seq OWNED BY public.wiki_repository_states.id; + + +-- +-- Name: work_item_colors; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.work_item_colors ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, issue_id bigint NOT NULL, @@ -20326,7 +32074,12 @@ CREATE TABLE work_item_colors ( CONSTRAINT check_485e19ad7b CHECK ((char_length(color) <= 7)) ); -CREATE TABLE work_item_dates_sources ( + +-- +-- Name: work_item_dates_sources; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.work_item_dates_sources ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, issue_id bigint NOT NULL, @@ -20343,7 +32096,12 @@ CREATE TABLE work_item_dates_sources ( due_date_fixed date ); -CREATE TABLE work_item_hierarchy_restrictions ( + +-- +-- Name: work_item_hierarchy_restrictions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.work_item_hierarchy_restrictions ( id bigint NOT NULL, parent_type_id bigint NOT NULL, child_type_id bigint NOT NULL, @@ -20351,16 +32109,31 @@ CREATE TABLE work_item_hierarchy_restrictions ( cross_hierarchy_enabled boolean DEFAULT false NOT NULL ); -CREATE SEQUENCE work_item_hierarchy_restrictions_id_seq + +-- +-- Name: work_item_hierarchy_restrictions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.work_item_hierarchy_restrictions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE work_item_hierarchy_restrictions_id_seq OWNED BY work_item_hierarchy_restrictions.id; -CREATE TABLE work_item_parent_links ( +-- +-- Name: work_item_hierarchy_restrictions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.work_item_hierarchy_restrictions_id_seq OWNED BY public.work_item_hierarchy_restrictions.id; + + +-- +-- Name: work_item_parent_links; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.work_item_parent_links ( id bigint NOT NULL, work_item_id bigint NOT NULL, work_item_parent_id bigint NOT NULL, @@ -20370,16 +32143,31 @@ CREATE TABLE work_item_parent_links ( namespace_id bigint ); -CREATE SEQUENCE work_item_parent_links_id_seq + +-- +-- Name: work_item_parent_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.work_item_parent_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE work_item_parent_links_id_seq OWNED BY work_item_parent_links.id; -CREATE TABLE work_item_progresses ( +-- +-- Name: work_item_parent_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.work_item_parent_links_id_seq OWNED BY public.work_item_parent_links.id; + + +-- +-- Name: work_item_progresses; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.work_item_progresses ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, issue_id bigint NOT NULL, @@ -20392,23 +32180,43 @@ CREATE TABLE work_item_progresses ( last_reminder_sent_at timestamp with time zone ); -CREATE TABLE work_item_related_link_restrictions ( + +-- +-- Name: work_item_related_link_restrictions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.work_item_related_link_restrictions ( id bigint NOT NULL, source_type_id bigint NOT NULL, target_type_id bigint NOT NULL, link_type smallint DEFAULT 0 NOT NULL ); -CREATE SEQUENCE work_item_related_link_restrictions_id_seq + +-- +-- Name: work_item_related_link_restrictions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.work_item_related_link_restrictions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE work_item_related_link_restrictions_id_seq OWNED BY work_item_related_link_restrictions.id; -CREATE TABLE work_item_types ( +-- +-- Name: work_item_related_link_restrictions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.work_item_related_link_restrictions_id_seq OWNED BY public.work_item_related_link_restrictions.id; + + +-- +-- Name: work_item_types; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.work_item_types ( id bigint NOT NULL, base_type smallint DEFAULT 0 NOT NULL, cached_markdown_version integer, @@ -20422,16 +32230,31 @@ CREATE TABLE work_item_types ( CONSTRAINT check_fecb3a98d1 CHECK ((char_length(icon_name) <= 255)) ); -CREATE SEQUENCE work_item_types_id_seq + +-- +-- Name: work_item_types_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.work_item_types_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE work_item_types_id_seq OWNED BY work_item_types.id; -CREATE TABLE work_item_widget_definitions ( +-- +-- Name: work_item_types_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.work_item_types_id_seq OWNED BY public.work_item_types.id; + + +-- +-- Name: work_item_widget_definitions; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.work_item_widget_definitions ( id bigint NOT NULL, work_item_type_id bigint NOT NULL, widget_type smallint NOT NULL, @@ -20441,16 +32264,31 @@ CREATE TABLE work_item_widget_definitions ( CONSTRAINT check_050f2e2328 CHECK ((char_length(name) <= 255)) ); -CREATE SEQUENCE work_item_widget_definitions_id_seq + +-- +-- Name: work_item_widget_definitions_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.work_item_widget_definitions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE work_item_widget_definitions_id_seq OWNED BY work_item_widget_definitions.id; -CREATE TABLE workspace_variables ( +-- +-- Name: work_item_widget_definitions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.work_item_widget_definitions_id_seq OWNED BY public.work_item_widget_definitions.id; + + +-- +-- Name: workspace_variables; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.workspace_variables ( id bigint NOT NULL, workspace_id bigint NOT NULL, variable_type smallint NOT NULL, @@ -20463,16 +32301,31 @@ CREATE TABLE workspace_variables ( CONSTRAINT check_5545042100 CHECK ((char_length(key) <= 255)) ); -CREATE SEQUENCE workspace_variables_id_seq + +-- +-- Name: workspace_variables_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.workspace_variables_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE workspace_variables_id_seq OWNED BY workspace_variables.id; -CREATE TABLE workspaces ( +-- +-- Name: workspace_variables_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.workspace_variables_id_seq OWNED BY public.workspace_variables.id; + + +-- +-- Name: workspaces; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.workspaces ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20515,7 +32368,12 @@ CREATE TABLE workspaces ( CONSTRAINT check_ffa8cad434 CHECK ((char_length(url_prefix) <= 256)) ); -CREATE TABLE workspaces_agent_configs ( + +-- +-- Name: workspaces_agent_configs; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.workspaces_agent_configs ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20538,25 +32396,50 @@ CREATE TABLE workspaces_agent_configs ( CONSTRAINT check_ee2464835c CHECK ((char_length(gitlab_workspaces_proxy_namespace) <= 63)) ); -CREATE SEQUENCE workspaces_agent_configs_id_seq + +-- +-- Name: workspaces_agent_configs_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.workspaces_agent_configs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE workspaces_agent_configs_id_seq OWNED BY workspaces_agent_configs.id; -CREATE SEQUENCE workspaces_id_seq +-- +-- Name: workspaces_agent_configs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.workspaces_agent_configs_id_seq OWNED BY public.workspaces_agent_configs.id; + + +-- +-- Name: workspaces_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.workspaces_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE workspaces_id_seq OWNED BY workspaces.id; -CREATE TABLE x509_certificates ( +-- +-- Name: workspaces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.workspaces_id_seq OWNED BY public.workspaces.id; + + +-- +-- Name: x509_certificates; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.x509_certificates ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20569,16 +32452,31 @@ CREATE TABLE x509_certificates ( emails character varying[] DEFAULT '{}'::character varying[] NOT NULL ); -CREATE SEQUENCE x509_certificates_id_seq + +-- +-- Name: x509_certificates_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.x509_certificates_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE x509_certificates_id_seq OWNED BY x509_certificates.id; -CREATE TABLE x509_commit_signatures ( +-- +-- Name: x509_certificates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.x509_certificates_id_seq OWNED BY public.x509_certificates.id; + + +-- +-- Name: x509_commit_signatures; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.x509_commit_signatures ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20588,16 +32486,31 @@ CREATE TABLE x509_commit_signatures ( verification_status smallint DEFAULT 0 NOT NULL ); -CREATE SEQUENCE x509_commit_signatures_id_seq + +-- +-- Name: x509_commit_signatures_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.x509_commit_signatures_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE x509_commit_signatures_id_seq OWNED BY x509_commit_signatures.id; -CREATE TABLE x509_issuers ( +-- +-- Name: x509_commit_signatures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.x509_commit_signatures_id_seq OWNED BY public.x509_commit_signatures.id; + + +-- +-- Name: x509_issuers; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.x509_issuers ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20606,16 +32519,31 @@ CREATE TABLE x509_issuers ( crl_url character varying(255) ); -CREATE SEQUENCE x509_issuers_id_seq + +-- +-- Name: x509_issuers_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.x509_issuers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE x509_issuers_id_seq OWNED BY x509_issuers.id; -CREATE TABLE xray_reports ( +-- +-- Name: x509_issuers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.x509_issuers_id_seq OWNED BY public.x509_issuers.id; + + +-- +-- Name: xray_reports; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.xray_reports ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -20626,16 +32554,31 @@ CREATE TABLE xray_reports ( CONSTRAINT check_6da5a3b473 CHECK ((char_length(lang) <= 255)) ); -CREATE SEQUENCE xray_reports_id_seq + +-- +-- Name: xray_reports_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.xray_reports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE xray_reports_id_seq OWNED BY xray_reports.id; -CREATE TABLE zentao_tracker_data ( +-- +-- Name: xray_reports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.xray_reports_id_seq OWNED BY public.xray_reports.id; + + +-- +-- Name: zentao_tracker_data; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.zentao_tracker_data ( id bigint NOT NULL, integration_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -20650,16 +32593,31 @@ CREATE TABLE zentao_tracker_data ( encrypted_api_token_iv bytea ); -CREATE SEQUENCE zentao_tracker_data_id_seq + +-- +-- Name: zentao_tracker_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.zentao_tracker_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE zentao_tracker_data_id_seq OWNED BY zentao_tracker_data.id; -CREATE TABLE zoekt_enabled_namespaces ( +-- +-- Name: zentao_tracker_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.zentao_tracker_data_id_seq OWNED BY public.zentao_tracker_data.id; + + +-- +-- Name: zoekt_enabled_namespaces; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.zoekt_enabled_namespaces ( id bigint NOT NULL, root_namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -20667,16 +32625,31 @@ CREATE TABLE zoekt_enabled_namespaces ( search boolean DEFAULT true NOT NULL ); -CREATE SEQUENCE zoekt_enabled_namespaces_id_seq + +-- +-- Name: zoekt_enabled_namespaces_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.zoekt_enabled_namespaces_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE zoekt_enabled_namespaces_id_seq OWNED BY zoekt_enabled_namespaces.id; -CREATE TABLE zoekt_indices ( +-- +-- Name: zoekt_enabled_namespaces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.zoekt_enabled_namespaces_id_seq OWNED BY public.zoekt_enabled_namespaces.id; + + +-- +-- Name: zoekt_indices; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.zoekt_indices ( id bigint NOT NULL, zoekt_enabled_namespace_id bigint, zoekt_node_id bigint NOT NULL, @@ -20688,16 +32661,31 @@ CREATE TABLE zoekt_indices ( reserved_storage_bytes bigint DEFAULT '10737418240'::bigint ); -CREATE SEQUENCE zoekt_indices_id_seq + +-- +-- Name: zoekt_indices_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.zoekt_indices_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE zoekt_indices_id_seq OWNED BY zoekt_indices.id; -CREATE TABLE zoekt_nodes ( +-- +-- Name: zoekt_indices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.zoekt_indices_id_seq OWNED BY public.zoekt_indices.id; + + +-- +-- Name: zoekt_nodes; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.zoekt_nodes ( id bigint NOT NULL, uuid uuid NOT NULL, used_bytes bigint DEFAULT 0 NOT NULL, @@ -20713,16 +32701,31 @@ CREATE TABLE zoekt_nodes ( CONSTRAINT check_38c354a3c2 CHECK ((char_length(index_base_url) <= 1024)) ); -CREATE SEQUENCE zoekt_nodes_id_seq + +-- +-- Name: zoekt_nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.zoekt_nodes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE zoekt_nodes_id_seq OWNED BY zoekt_nodes.id; -CREATE TABLE zoekt_replicas ( +-- +-- Name: zoekt_nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.zoekt_nodes_id_seq OWNED BY public.zoekt_nodes.id; + + +-- +-- Name: zoekt_replicas; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.zoekt_replicas ( id bigint NOT NULL, zoekt_enabled_namespace_id bigint NOT NULL, namespace_id bigint NOT NULL, @@ -20731,16 +32734,31 @@ CREATE TABLE zoekt_replicas ( state smallint DEFAULT 0 NOT NULL ); -CREATE SEQUENCE zoekt_replicas_id_seq + +-- +-- Name: zoekt_replicas_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.zoekt_replicas_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE zoekt_replicas_id_seq OWNED BY zoekt_replicas.id; -CREATE TABLE zoekt_repositories ( +-- +-- Name: zoekt_replicas_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.zoekt_replicas_id_seq OWNED BY public.zoekt_replicas.id; + + +-- +-- Name: zoekt_repositories; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.zoekt_repositories ( id bigint NOT NULL, zoekt_index_id bigint NOT NULL, project_id bigint, @@ -20754,16 +32772,31 @@ CREATE TABLE zoekt_repositories ( CONSTRAINT c_zoekt_repositories_on_project_id_and_project_identifier CHECK (((project_id IS NULL) OR (project_identifier = project_id))) ); -CREATE SEQUENCE zoekt_repositories_id_seq + +-- +-- Name: zoekt_repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.zoekt_repositories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE zoekt_repositories_id_seq OWNED BY zoekt_repositories.id; -CREATE TABLE zoekt_shards ( +-- +-- Name: zoekt_repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.zoekt_repositories_id_seq OWNED BY public.zoekt_repositories.id; + + +-- +-- Name: zoekt_shards; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.zoekt_shards ( id bigint NOT NULL, index_base_url text NOT NULL, search_base_url text NOT NULL, @@ -20778,25 +32811,50 @@ CREATE TABLE zoekt_shards ( CONSTRAINT check_c65bb85a32 CHECK ((char_length(index_base_url) <= 1024)) ); -CREATE SEQUENCE zoekt_shards_id_seq + +-- +-- Name: zoekt_shards_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.zoekt_shards_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE zoekt_shards_id_seq OWNED BY zoekt_shards.id; -CREATE SEQUENCE zoekt_tasks_id_seq +-- +-- Name: zoekt_shards_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.zoekt_shards_id_seq OWNED BY public.zoekt_shards.id; + + +-- +-- Name: zoekt_tasks_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.zoekt_tasks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE zoekt_tasks_id_seq OWNED BY zoekt_tasks.id; -CREATE TABLE zoom_meetings ( +-- +-- Name: zoekt_tasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- + +ALTER SEQUENCE public.zoekt_tasks_id_seq OWNED BY public.zoekt_tasks.id; + + +-- +-- Name: zoom_meetings; Type: TABLE; Schema: public; Owner: - +-- + +CREATE TABLE public.zoom_meetings ( id bigint NOT NULL, project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -20806,15724 +32864,49709 @@ CREATE TABLE zoom_meetings ( url character varying(255) ); -CREATE SEQUENCE zoom_meetings_id_seq + +-- +-- Name: zoom_meetings_id_seq; Type: SEQUENCE; Schema: public; Owner: - +-- + +CREATE SEQUENCE public.zoom_meetings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; -ALTER SEQUENCE zoom_meetings_id_seq OWNED BY zoom_meetings.id; -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 FOR VALUES WITH (modulus 32, remainder 0); +-- +-- Name: zoom_meetings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 FOR VALUES WITH (modulus 32, remainder 1); +ALTER SEQUENCE public.zoom_meetings_id_seq OWNED BY public.zoom_meetings.id; -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 FOR VALUES WITH (modulus 32, remainder 2); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 FOR VALUES WITH (modulus 32, remainder 3); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_00; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 FOR VALUES WITH (modulus 32, remainder 4); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 FOR VALUES WITH (modulus 32, remainder 0); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 FOR VALUES WITH (modulus 32, remainder 5); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 FOR VALUES WITH (modulus 32, remainder 6); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_01; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 FOR VALUES WITH (modulus 32, remainder 7); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 FOR VALUES WITH (modulus 32, remainder 1); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 FOR VALUES WITH (modulus 32, remainder 8); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 FOR VALUES WITH (modulus 32, remainder 9); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_02; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 FOR VALUES WITH (modulus 32, remainder 10); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 FOR VALUES WITH (modulus 32, remainder 2); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 FOR VALUES WITH (modulus 32, remainder 11); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 FOR VALUES WITH (modulus 32, remainder 12); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_03; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 FOR VALUES WITH (modulus 32, remainder 13); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 FOR VALUES WITH (modulus 32, remainder 3); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 FOR VALUES WITH (modulus 32, remainder 14); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 FOR VALUES WITH (modulus 32, remainder 15); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_04; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 FOR VALUES WITH (modulus 32, remainder 16); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 FOR VALUES WITH (modulus 32, remainder 4); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 FOR VALUES WITH (modulus 32, remainder 17); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 FOR VALUES WITH (modulus 32, remainder 18); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_05; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 FOR VALUES WITH (modulus 32, remainder 19); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 FOR VALUES WITH (modulus 32, remainder 5); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 FOR VALUES WITH (modulus 32, remainder 20); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 FOR VALUES WITH (modulus 32, remainder 21); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_06; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 FOR VALUES WITH (modulus 32, remainder 22); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 FOR VALUES WITH (modulus 32, remainder 6); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 FOR VALUES WITH (modulus 32, remainder 23); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 FOR VALUES WITH (modulus 32, remainder 24); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_07; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 FOR VALUES WITH (modulus 32, remainder 25); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 FOR VALUES WITH (modulus 32, remainder 7); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 FOR VALUES WITH (modulus 32, remainder 26); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 FOR VALUES WITH (modulus 32, remainder 27); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_08; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 FOR VALUES WITH (modulus 32, remainder 28); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 FOR VALUES WITH (modulus 32, remainder 8); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 FOR VALUES WITH (modulus 32, remainder 29); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 FOR VALUES WITH (modulus 32, remainder 30); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_09; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 FOR VALUES WITH (modulus 32, remainder 31); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 FOR VALUES WITH (modulus 32, remainder 9); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 FOR VALUES WITH (modulus 32, remainder 0); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 FOR VALUES WITH (modulus 32, remainder 1); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_10; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 FOR VALUES WITH (modulus 32, remainder 2); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 FOR VALUES WITH (modulus 32, remainder 10); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 FOR VALUES WITH (modulus 32, remainder 3); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 FOR VALUES WITH (modulus 32, remainder 4); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_11; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 FOR VALUES WITH (modulus 32, remainder 5); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 FOR VALUES WITH (modulus 32, remainder 11); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 FOR VALUES WITH (modulus 32, remainder 6); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 FOR VALUES WITH (modulus 32, remainder 7); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_12; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 FOR VALUES WITH (modulus 32, remainder 8); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 FOR VALUES WITH (modulus 32, remainder 12); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 FOR VALUES WITH (modulus 32, remainder 9); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 FOR VALUES WITH (modulus 32, remainder 10); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_13; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 FOR VALUES WITH (modulus 32, remainder 11); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 FOR VALUES WITH (modulus 32, remainder 13); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 FOR VALUES WITH (modulus 32, remainder 12); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 FOR VALUES WITH (modulus 32, remainder 13); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_14; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 FOR VALUES WITH (modulus 32, remainder 14); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 FOR VALUES WITH (modulus 32, remainder 14); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 FOR VALUES WITH (modulus 32, remainder 15); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 FOR VALUES WITH (modulus 32, remainder 16); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_15; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 FOR VALUES WITH (modulus 32, remainder 17); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 FOR VALUES WITH (modulus 32, remainder 15); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 FOR VALUES WITH (modulus 32, remainder 18); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 FOR VALUES WITH (modulus 32, remainder 19); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_16; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 FOR VALUES WITH (modulus 32, remainder 20); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 FOR VALUES WITH (modulus 32, remainder 16); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 FOR VALUES WITH (modulus 32, remainder 21); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 FOR VALUES WITH (modulus 32, remainder 22); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_17; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 FOR VALUES WITH (modulus 32, remainder 23); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 FOR VALUES WITH (modulus 32, remainder 17); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 FOR VALUES WITH (modulus 32, remainder 24); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 FOR VALUES WITH (modulus 32, remainder 25); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_18; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 FOR VALUES WITH (modulus 32, remainder 26); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 FOR VALUES WITH (modulus 32, remainder 18); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 FOR VALUES WITH (modulus 32, remainder 27); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 FOR VALUES WITH (modulus 32, remainder 28); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_19; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 FOR VALUES WITH (modulus 32, remainder 29); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 FOR VALUES WITH (modulus 32, remainder 19); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 FOR VALUES WITH (modulus 32, remainder 30); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 FOR VALUES WITH (modulus 32, remainder 31); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_20; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_00 FOR VALUES WITH (modulus 64, remainder 0); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 FOR VALUES WITH (modulus 32, remainder 20); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_01 FOR VALUES WITH (modulus 64, remainder 1); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_02 FOR VALUES WITH (modulus 64, remainder 2); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_21; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_03 FOR VALUES WITH (modulus 64, remainder 3); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 FOR VALUES WITH (modulus 32, remainder 21); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_04 FOR VALUES WITH (modulus 64, remainder 4); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_05 FOR VALUES WITH (modulus 64, remainder 5); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_22; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_06 FOR VALUES WITH (modulus 64, remainder 6); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 FOR VALUES WITH (modulus 32, remainder 22); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_07 FOR VALUES WITH (modulus 64, remainder 7); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_08 FOR VALUES WITH (modulus 64, remainder 8); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_23; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_09 FOR VALUES WITH (modulus 64, remainder 9); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 FOR VALUES WITH (modulus 32, remainder 23); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_10 FOR VALUES WITH (modulus 64, remainder 10); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_11 FOR VALUES WITH (modulus 64, remainder 11); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_24; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_12 FOR VALUES WITH (modulus 64, remainder 12); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 FOR VALUES WITH (modulus 32, remainder 24); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_13 FOR VALUES WITH (modulus 64, remainder 13); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_14 FOR VALUES WITH (modulus 64, remainder 14); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_25; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_15 FOR VALUES WITH (modulus 64, remainder 15); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 FOR VALUES WITH (modulus 32, remainder 25); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_16 FOR VALUES WITH (modulus 64, remainder 16); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_17 FOR VALUES WITH (modulus 64, remainder 17); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_26; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_18 FOR VALUES WITH (modulus 64, remainder 18); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 FOR VALUES WITH (modulus 32, remainder 26); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_19 FOR VALUES WITH (modulus 64, remainder 19); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_20 FOR VALUES WITH (modulus 64, remainder 20); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_27; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_21 FOR VALUES WITH (modulus 64, remainder 21); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 FOR VALUES WITH (modulus 32, remainder 27); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_22 FOR VALUES WITH (modulus 64, remainder 22); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_23 FOR VALUES WITH (modulus 64, remainder 23); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_28; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_24 FOR VALUES WITH (modulus 64, remainder 24); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 FOR VALUES WITH (modulus 32, remainder 28); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_25 FOR VALUES WITH (modulus 64, remainder 25); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_26 FOR VALUES WITH (modulus 64, remainder 26); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_29; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_27 FOR VALUES WITH (modulus 64, remainder 27); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 FOR VALUES WITH (modulus 32, remainder 29); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_28 FOR VALUES WITH (modulus 64, remainder 28); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_29 FOR VALUES WITH (modulus 64, remainder 29); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_30; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_30 FOR VALUES WITH (modulus 64, remainder 30); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 FOR VALUES WITH (modulus 32, remainder 30); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_31 FOR VALUES WITH (modulus 64, remainder 31); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_32 FOR VALUES WITH (modulus 64, remainder 32); +-- +-- Name: analytics_cycle_analytics_issue_stage_events_31; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_33 FOR VALUES WITH (modulus 64, remainder 33); +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 FOR VALUES WITH (modulus 32, remainder 31); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_34 FOR VALUES WITH (modulus 64, remainder 34); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_35 FOR VALUES WITH (modulus 64, remainder 35); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_00; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_36 FOR VALUES WITH (modulus 64, remainder 36); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 FOR VALUES WITH (modulus 32, remainder 0); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_37 FOR VALUES WITH (modulus 64, remainder 37); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_38 FOR VALUES WITH (modulus 64, remainder 38); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_01; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_39 FOR VALUES WITH (modulus 64, remainder 39); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 FOR VALUES WITH (modulus 32, remainder 1); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_40 FOR VALUES WITH (modulus 64, remainder 40); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_41 FOR VALUES WITH (modulus 64, remainder 41); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_02; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_42 FOR VALUES WITH (modulus 64, remainder 42); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 FOR VALUES WITH (modulus 32, remainder 2); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_43 FOR VALUES WITH (modulus 64, remainder 43); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_44 FOR VALUES WITH (modulus 64, remainder 44); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_03; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_45 FOR VALUES WITH (modulus 64, remainder 45); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 FOR VALUES WITH (modulus 32, remainder 3); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_46 FOR VALUES WITH (modulus 64, remainder 46); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_47 FOR VALUES WITH (modulus 64, remainder 47); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_04; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_48 FOR VALUES WITH (modulus 64, remainder 48); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 FOR VALUES WITH (modulus 32, remainder 4); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_49 FOR VALUES WITH (modulus 64, remainder 49); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_50 FOR VALUES WITH (modulus 64, remainder 50); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_05; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_51 FOR VALUES WITH (modulus 64, remainder 51); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 FOR VALUES WITH (modulus 32, remainder 5); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_52 FOR VALUES WITH (modulus 64, remainder 52); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_53 FOR VALUES WITH (modulus 64, remainder 53); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_06; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_54 FOR VALUES WITH (modulus 64, remainder 54); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 FOR VALUES WITH (modulus 32, remainder 6); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_55 FOR VALUES WITH (modulus 64, remainder 55); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_56 FOR VALUES WITH (modulus 64, remainder 56); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_07; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_57 FOR VALUES WITH (modulus 64, remainder 57); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 FOR VALUES WITH (modulus 32, remainder 7); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_58 FOR VALUES WITH (modulus 64, remainder 58); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_59 FOR VALUES WITH (modulus 64, remainder 59); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_08; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_60 FOR VALUES WITH (modulus 64, remainder 60); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 FOR VALUES WITH (modulus 32, remainder 8); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_61 FOR VALUES WITH (modulus 64, remainder 61); -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_62 FOR VALUES WITH (modulus 64, remainder 62); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_09; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_63 FOR VALUES WITH (modulus 64, remainder 63); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 FOR VALUES WITH (modulus 32, remainder 9); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_00 FOR VALUES WITH (modulus 32, remainder 0); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_01 FOR VALUES WITH (modulus 32, remainder 1); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_10; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_02 FOR VALUES WITH (modulus 32, remainder 2); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 FOR VALUES WITH (modulus 32, remainder 10); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_03 FOR VALUES WITH (modulus 32, remainder 3); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_04 FOR VALUES WITH (modulus 32, remainder 4); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_11; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_05 FOR VALUES WITH (modulus 32, remainder 5); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 FOR VALUES WITH (modulus 32, remainder 11); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_06 FOR VALUES WITH (modulus 32, remainder 6); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_07 FOR VALUES WITH (modulus 32, remainder 7); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_12; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_08 FOR VALUES WITH (modulus 32, remainder 8); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 FOR VALUES WITH (modulus 32, remainder 12); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_09 FOR VALUES WITH (modulus 32, remainder 9); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_10 FOR VALUES WITH (modulus 32, remainder 10); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_13; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_11 FOR VALUES WITH (modulus 32, remainder 11); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 FOR VALUES WITH (modulus 32, remainder 13); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_12 FOR VALUES WITH (modulus 32, remainder 12); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_13 FOR VALUES WITH (modulus 32, remainder 13); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_14; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_14 FOR VALUES WITH (modulus 32, remainder 14); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 FOR VALUES WITH (modulus 32, remainder 14); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_15 FOR VALUES WITH (modulus 32, remainder 15); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_16 FOR VALUES WITH (modulus 32, remainder 16); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_15; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_17 FOR VALUES WITH (modulus 32, remainder 17); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 FOR VALUES WITH (modulus 32, remainder 15); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_18 FOR VALUES WITH (modulus 32, remainder 18); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_19 FOR VALUES WITH (modulus 32, remainder 19); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_16; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_20 FOR VALUES WITH (modulus 32, remainder 20); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 FOR VALUES WITH (modulus 32, remainder 16); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_21 FOR VALUES WITH (modulus 32, remainder 21); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_22 FOR VALUES WITH (modulus 32, remainder 22); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_17; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_23 FOR VALUES WITH (modulus 32, remainder 23); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 FOR VALUES WITH (modulus 32, remainder 17); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_24 FOR VALUES WITH (modulus 32, remainder 24); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_25 FOR VALUES WITH (modulus 32, remainder 25); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_18; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_26 FOR VALUES WITH (modulus 32, remainder 26); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 FOR VALUES WITH (modulus 32, remainder 18); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_27 FOR VALUES WITH (modulus 32, remainder 27); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_28 FOR VALUES WITH (modulus 32, remainder 28); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_19; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_29 FOR VALUES WITH (modulus 32, remainder 29); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 FOR VALUES WITH (modulus 32, remainder 19); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_30 FOR VALUES WITH (modulus 32, remainder 30); -ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_31 FOR VALUES WITH (modulus 32, remainder 31); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_20; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY p_ci_build_trace_metadata ATTACH PARTITION ci_build_trace_metadata FOR VALUES IN ('100', '101', '102'); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 FOR VALUES WITH (modulus 32, remainder 20); -ALTER TABLE ONLY p_ci_builds ATTACH PARTITION ci_builds FOR VALUES IN ('100'); -ALTER TABLE ONLY p_ci_builds_metadata ATTACH PARTITION ci_builds_metadata FOR VALUES IN ('100'); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_21; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY p_ci_job_artifacts ATTACH PARTITION ci_job_artifacts FOR VALUES IN ('100', '101'); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 FOR VALUES WITH (modulus 32, remainder 21); -ALTER TABLE ONLY p_ci_pipeline_variables ATTACH PARTITION ci_pipeline_variables FOR VALUES IN ('100', '101'); -ALTER TABLE ONLY p_ci_pipelines ATTACH PARTITION ci_pipelines FOR VALUES IN ('100', '101', '102'); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_22; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY p_ci_stages ATTACH PARTITION ci_stages FOR VALUES IN ('100', '101'); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 FOR VALUES WITH (modulus 32, remainder 22); -ALTER TABLE ONLY abuse_events ALTER COLUMN id SET DEFAULT nextval('abuse_events_id_seq'::regclass); -ALTER TABLE ONLY abuse_report_assignees ALTER COLUMN id SET DEFAULT nextval('abuse_report_assignees_id_seq'::regclass); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_23; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY abuse_report_events ALTER COLUMN id SET DEFAULT nextval('abuse_report_events_id_seq'::regclass); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 FOR VALUES WITH (modulus 32, remainder 23); -ALTER TABLE ONLY abuse_report_notes ALTER COLUMN id SET DEFAULT nextval('abuse_report_notes_id_seq'::regclass); -ALTER TABLE ONLY abuse_report_user_mentions ALTER COLUMN id SET DEFAULT nextval('abuse_report_user_mentions_id_seq'::regclass); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_24; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY abuse_reports ALTER COLUMN id SET DEFAULT nextval('abuse_reports_id_seq'::regclass); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 FOR VALUES WITH (modulus 32, remainder 24); -ALTER TABLE ONLY abuse_trust_scores ALTER COLUMN id SET DEFAULT nextval('abuse_trust_scores_id_seq'::regclass); -ALTER TABLE ONLY achievements ALTER COLUMN id SET DEFAULT nextval('achievements_id_seq'::regclass); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_25; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY activity_pub_releases_subscriptions ALTER COLUMN id SET DEFAULT nextval('activity_pub_releases_subscriptions_id_seq'::regclass); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 FOR VALUES WITH (modulus 32, remainder 25); -ALTER TABLE ONLY agent_activity_events ALTER COLUMN id SET DEFAULT nextval('agent_activity_events_id_seq'::regclass); -ALTER TABLE ONLY agent_group_authorizations ALTER COLUMN id SET DEFAULT nextval('agent_group_authorizations_id_seq'::regclass); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_26; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY agent_project_authorizations ALTER COLUMN id SET DEFAULT nextval('agent_project_authorizations_id_seq'::regclass); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 FOR VALUES WITH (modulus 32, remainder 26); -ALTER TABLE ONLY agent_user_access_group_authorizations ALTER COLUMN id SET DEFAULT nextval('agent_user_access_group_authorizations_id_seq'::regclass); -ALTER TABLE ONLY agent_user_access_project_authorizations ALTER COLUMN id SET DEFAULT nextval('agent_user_access_project_authorizations_id_seq'::regclass); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_27; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ai_agent_version_attachments ALTER COLUMN id SET DEFAULT nextval('ai_agent_version_attachments_id_seq'::regclass); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 FOR VALUES WITH (modulus 32, remainder 27); -ALTER TABLE ONLY ai_agent_versions ALTER COLUMN id SET DEFAULT nextval('ai_agent_versions_id_seq'::regclass); -ALTER TABLE ONLY ai_agents ALTER COLUMN id SET DEFAULT nextval('ai_agents_id_seq'::regclass); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_28; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ai_feature_settings ALTER COLUMN id SET DEFAULT nextval('ai_feature_settings_id_seq'::regclass); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 FOR VALUES WITH (modulus 32, remainder 28); -ALTER TABLE ONLY ai_self_hosted_models ALTER COLUMN id SET DEFAULT nextval('ai_self_hosted_models_id_seq'::regclass); -ALTER TABLE ONLY ai_vectorizable_files ALTER COLUMN id SET DEFAULT nextval('ai_vectorizable_files_id_seq'::regclass); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_29; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY alert_management_alert_assignees ALTER COLUMN id SET DEFAULT nextval('alert_management_alert_assignees_id_seq'::regclass); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 FOR VALUES WITH (modulus 32, remainder 29); -ALTER TABLE ONLY alert_management_alert_metric_images ALTER COLUMN id SET DEFAULT nextval('alert_management_alert_metric_images_id_seq'::regclass); -ALTER TABLE ONLY alert_management_alert_user_mentions ALTER COLUMN id SET DEFAULT nextval('alert_management_alert_user_mentions_id_seq'::regclass); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_30; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY alert_management_alerts ALTER COLUMN id SET DEFAULT nextval('alert_management_alerts_id_seq'::regclass); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 FOR VALUES WITH (modulus 32, remainder 30); -ALTER TABLE ONLY alert_management_http_integrations ALTER COLUMN id SET DEFAULT nextval('alert_management_http_integrations_id_seq'::regclass); -ALTER TABLE ONLY allowed_email_domains ALTER COLUMN id SET DEFAULT nextval('allowed_email_domains_id_seq'::regclass); +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_31; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_group_stages ALTER COLUMN id SET DEFAULT nextval('analytics_cycle_analytics_group_stages_id_seq'::regclass); +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 FOR VALUES WITH (modulus 32, remainder 31); -ALTER TABLE ONLY analytics_cycle_analytics_group_value_streams ALTER COLUMN id SET DEFAULT nextval('analytics_cycle_analytics_group_value_streams_id_seq'::regclass); -ALTER TABLE ONLY analytics_cycle_analytics_stage_event_hashes ALTER COLUMN id SET DEFAULT nextval('analytics_cycle_analytics_stage_event_hashes_id_seq'::regclass); +-- +-- Name: issue_search_data_00; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_dashboards_pointers ALTER COLUMN id SET DEFAULT nextval('analytics_dashboards_pointers_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_00 FOR VALUES WITH (modulus 64, remainder 0); -ALTER TABLE ONLY analytics_devops_adoption_segments ALTER COLUMN id SET DEFAULT nextval('analytics_devops_adoption_segments_id_seq'::regclass); -ALTER TABLE ONLY analytics_devops_adoption_snapshots ALTER COLUMN id SET DEFAULT nextval('analytics_devops_adoption_snapshots_id_seq'::regclass); +-- +-- Name: issue_search_data_01; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_usage_trends_measurements ALTER COLUMN id SET DEFAULT nextval('analytics_usage_trends_measurements_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_01 FOR VALUES WITH (modulus 64, remainder 1); -ALTER TABLE ONLY appearances ALTER COLUMN id SET DEFAULT nextval('appearances_id_seq'::regclass); -ALTER TABLE ONLY application_setting_terms ALTER COLUMN id SET DEFAULT nextval('application_setting_terms_id_seq'::regclass); +-- +-- Name: issue_search_data_02; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY application_settings ALTER COLUMN id SET DEFAULT nextval('application_settings_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_02 FOR VALUES WITH (modulus 64, remainder 2); -ALTER TABLE ONLY approval_group_rules ALTER COLUMN id SET DEFAULT nextval('approval_group_rules_id_seq'::regclass); -ALTER TABLE ONLY approval_group_rules_groups ALTER COLUMN id SET DEFAULT nextval('approval_group_rules_groups_id_seq'::regclass); +-- +-- Name: issue_search_data_03; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY approval_group_rules_protected_branches ALTER COLUMN id SET DEFAULT nextval('approval_group_rules_protected_branches_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_03 FOR VALUES WITH (modulus 64, remainder 3); -ALTER TABLE ONLY approval_group_rules_users ALTER COLUMN id SET DEFAULT nextval('approval_group_rules_users_id_seq'::regclass); -ALTER TABLE ONLY approval_merge_request_rule_sources ALTER COLUMN id SET DEFAULT nextval('approval_merge_request_rule_sources_id_seq'::regclass); +-- +-- Name: issue_search_data_04; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY approval_merge_request_rules ALTER COLUMN id SET DEFAULT nextval('approval_merge_request_rules_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_04 FOR VALUES WITH (modulus 64, remainder 4); -ALTER TABLE ONLY approval_merge_request_rules_approved_approvers ALTER COLUMN id SET DEFAULT nextval('approval_merge_request_rules_approved_approvers_id_seq'::regclass); -ALTER TABLE ONLY approval_merge_request_rules_groups ALTER COLUMN id SET DEFAULT nextval('approval_merge_request_rules_groups_id_seq'::regclass); +-- +-- Name: issue_search_data_05; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY approval_merge_request_rules_users ALTER COLUMN id SET DEFAULT nextval('approval_merge_request_rules_users_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_05 FOR VALUES WITH (modulus 64, remainder 5); -ALTER TABLE ONLY approval_policy_rule_project_links ALTER COLUMN id SET DEFAULT nextval('approval_policy_rule_project_links_id_seq'::regclass); -ALTER TABLE ONLY approval_policy_rules ALTER COLUMN id SET DEFAULT nextval('approval_policy_rules_id_seq'::regclass); +-- +-- Name: issue_search_data_06; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY approval_project_rules ALTER COLUMN id SET DEFAULT nextval('approval_project_rules_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_06 FOR VALUES WITH (modulus 64, remainder 6); -ALTER TABLE ONLY approval_project_rules_groups ALTER COLUMN id SET DEFAULT nextval('approval_project_rules_groups_id_seq'::regclass); -ALTER TABLE ONLY approval_project_rules_users ALTER COLUMN id SET DEFAULT nextval('approval_project_rules_users_id_seq'::regclass); +-- +-- Name: issue_search_data_07; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY approvals ALTER COLUMN id SET DEFAULT nextval('approvals_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_07 FOR VALUES WITH (modulus 64, remainder 7); -ALTER TABLE ONLY approver_groups ALTER COLUMN id SET DEFAULT nextval('approver_groups_id_seq'::regclass); -ALTER TABLE ONLY approvers ALTER COLUMN id SET DEFAULT nextval('approvers_id_seq'::regclass); +-- +-- Name: issue_search_data_08; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY atlassian_identities ALTER COLUMN user_id SET DEFAULT nextval('atlassian_identities_user_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_08 FOR VALUES WITH (modulus 64, remainder 8); -ALTER TABLE ONLY audit_events ALTER COLUMN id SET DEFAULT nextval('audit_events_id_seq'::regclass); -ALTER TABLE ONLY audit_events_amazon_s3_configurations ALTER COLUMN id SET DEFAULT nextval('audit_events_amazon_s3_configurations_id_seq'::regclass); +-- +-- Name: issue_search_data_09; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY audit_events_external_audit_event_destinations ALTER COLUMN id SET DEFAULT nextval('audit_events_external_audit_event_destinations_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_09 FOR VALUES WITH (modulus 64, remainder 9); -ALTER TABLE ONLY audit_events_google_cloud_logging_configurations ALTER COLUMN id SET DEFAULT nextval('audit_events_google_cloud_logging_configurations_id_seq'::regclass); -ALTER TABLE ONLY audit_events_group_external_streaming_destinations ALTER COLUMN id SET DEFAULT nextval('audit_events_group_external_streaming_destinations_id_seq'::regclass); +-- +-- Name: issue_search_data_10; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY audit_events_group_streaming_event_type_filters ALTER COLUMN id SET DEFAULT nextval('audit_events_group_streaming_event_type_filters_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_10 FOR VALUES WITH (modulus 64, remainder 10); -ALTER TABLE ONLY audit_events_instance_amazon_s3_configurations ALTER COLUMN id SET DEFAULT nextval('audit_events_instance_amazon_s3_configurations_id_seq'::regclass); -ALTER TABLE ONLY audit_events_instance_external_audit_event_destinations ALTER COLUMN id SET DEFAULT nextval('audit_events_instance_external_audit_event_destinations_id_seq'::regclass); +-- +-- Name: issue_search_data_11; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY audit_events_instance_external_streaming_destinations ALTER COLUMN id SET DEFAULT nextval('audit_events_instance_external_streaming_destinations_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_11 FOR VALUES WITH (modulus 64, remainder 11); -ALTER TABLE ONLY audit_events_instance_google_cloud_logging_configurations ALTER COLUMN id SET DEFAULT nextval('audit_events_instance_google_cloud_logging_configuration_id_seq'::regclass); -ALTER TABLE ONLY audit_events_instance_streaming_event_type_filters ALTER COLUMN id SET DEFAULT nextval('audit_events_instance_streaming_event_type_filters_id_seq'::regclass); +-- +-- Name: issue_search_data_12; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY audit_events_streaming_event_type_filters ALTER COLUMN id SET DEFAULT nextval('audit_events_streaming_event_type_filters_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_12 FOR VALUES WITH (modulus 64, remainder 12); -ALTER TABLE ONLY audit_events_streaming_group_namespace_filters ALTER COLUMN id SET DEFAULT nextval('audit_events_streaming_group_namespace_filters_id_seq'::regclass); -ALTER TABLE ONLY audit_events_streaming_headers ALTER COLUMN id SET DEFAULT nextval('audit_events_streaming_headers_id_seq'::regclass); +-- +-- Name: issue_search_data_13; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY audit_events_streaming_http_group_namespace_filters ALTER COLUMN id SET DEFAULT nextval('audit_events_streaming_http_group_namespace_filters_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_13 FOR VALUES WITH (modulus 64, remainder 13); -ALTER TABLE ONLY audit_events_streaming_http_instance_namespace_filters ALTER COLUMN id SET DEFAULT nextval('audit_events_streaming_http_instance_namespace_filters_id_seq'::regclass); -ALTER TABLE ONLY audit_events_streaming_instance_event_type_filters ALTER COLUMN id SET DEFAULT nextval('audit_events_streaming_instance_event_type_filters_id_seq'::regclass); +-- +-- Name: issue_search_data_14; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY audit_events_streaming_instance_namespace_filters ALTER COLUMN id SET DEFAULT nextval('audit_events_streaming_instance_namespace_filters_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_14 FOR VALUES WITH (modulus 64, remainder 14); -ALTER TABLE ONLY authentication_events ALTER COLUMN id SET DEFAULT nextval('authentication_events_id_seq'::regclass); -ALTER TABLE ONLY automation_rules ALTER COLUMN id SET DEFAULT nextval('automation_rules_id_seq'::regclass); +-- +-- Name: issue_search_data_15; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY award_emoji ALTER COLUMN id SET DEFAULT nextval('award_emoji_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_15 FOR VALUES WITH (modulus 64, remainder 15); -ALTER TABLE ONLY background_migration_jobs ALTER COLUMN id SET DEFAULT nextval('background_migration_jobs_id_seq'::regclass); -ALTER TABLE ONLY badges ALTER COLUMN id SET DEFAULT nextval('badges_id_seq'::regclass); +-- +-- Name: issue_search_data_16; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY batched_background_migration_job_transition_logs ALTER COLUMN id SET DEFAULT nextval('batched_background_migration_job_transition_logs_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_16 FOR VALUES WITH (modulus 64, remainder 16); -ALTER TABLE ONLY batched_background_migration_jobs ALTER COLUMN id SET DEFAULT nextval('batched_background_migration_jobs_id_seq'::regclass); -ALTER TABLE ONLY batched_background_migrations ALTER COLUMN id SET DEFAULT nextval('batched_background_migrations_id_seq'::regclass); +-- +-- Name: issue_search_data_17; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY board_assignees ALTER COLUMN id SET DEFAULT nextval('board_assignees_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_17 FOR VALUES WITH (modulus 64, remainder 17); -ALTER TABLE ONLY board_group_recent_visits ALTER COLUMN id SET DEFAULT nextval('board_group_recent_visits_id_seq'::regclass); -ALTER TABLE ONLY board_labels ALTER COLUMN id SET DEFAULT nextval('board_labels_id_seq'::regclass); +-- +-- Name: issue_search_data_18; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY board_project_recent_visits ALTER COLUMN id SET DEFAULT nextval('board_project_recent_visits_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_18 FOR VALUES WITH (modulus 64, remainder 18); -ALTER TABLE ONLY board_user_preferences ALTER COLUMN id SET DEFAULT nextval('board_user_preferences_id_seq'::regclass); -ALTER TABLE ONLY boards ALTER COLUMN id SET DEFAULT nextval('boards_id_seq'::regclass); +-- +-- Name: issue_search_data_19; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY boards_epic_board_labels ALTER COLUMN id SET DEFAULT nextval('boards_epic_board_labels_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_19 FOR VALUES WITH (modulus 64, remainder 19); -ALTER TABLE ONLY boards_epic_board_positions ALTER COLUMN id SET DEFAULT nextval('boards_epic_board_positions_id_seq'::regclass); -ALTER TABLE ONLY boards_epic_board_recent_visits ALTER COLUMN id SET DEFAULT nextval('boards_epic_board_recent_visits_id_seq'::regclass); +-- +-- Name: issue_search_data_20; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY boards_epic_boards ALTER COLUMN id SET DEFAULT nextval('boards_epic_boards_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_20 FOR VALUES WITH (modulus 64, remainder 20); -ALTER TABLE ONLY boards_epic_list_user_preferences ALTER COLUMN id SET DEFAULT nextval('boards_epic_list_user_preferences_id_seq'::regclass); -ALTER TABLE ONLY boards_epic_lists ALTER COLUMN id SET DEFAULT nextval('boards_epic_lists_id_seq'::regclass); +-- +-- Name: issue_search_data_21; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY boards_epic_user_preferences ALTER COLUMN id SET DEFAULT nextval('boards_epic_user_preferences_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_21 FOR VALUES WITH (modulus 64, remainder 21); -ALTER TABLE ONLY broadcast_messages ALTER COLUMN id SET DEFAULT nextval('broadcast_messages_id_seq'::regclass); -ALTER TABLE ONLY bulk_import_batch_trackers ALTER COLUMN id SET DEFAULT nextval('bulk_import_batch_trackers_id_seq'::regclass); +-- +-- Name: issue_search_data_22; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY bulk_import_configurations ALTER COLUMN id SET DEFAULT nextval('bulk_import_configurations_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_22 FOR VALUES WITH (modulus 64, remainder 22); -ALTER TABLE ONLY bulk_import_entities ALTER COLUMN id SET DEFAULT nextval('bulk_import_entities_id_seq'::regclass); -ALTER TABLE ONLY bulk_import_export_batches ALTER COLUMN id SET DEFAULT nextval('bulk_import_export_batches_id_seq'::regclass); +-- +-- Name: issue_search_data_23; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY bulk_import_export_uploads ALTER COLUMN id SET DEFAULT nextval('bulk_import_export_uploads_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_23 FOR VALUES WITH (modulus 64, remainder 23); -ALTER TABLE ONLY bulk_import_exports ALTER COLUMN id SET DEFAULT nextval('bulk_import_exports_id_seq'::regclass); -ALTER TABLE ONLY bulk_import_failures ALTER COLUMN id SET DEFAULT nextval('bulk_import_failures_id_seq'::regclass); +-- +-- Name: issue_search_data_24; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY bulk_import_trackers ALTER COLUMN id SET DEFAULT nextval('bulk_import_trackers_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_24 FOR VALUES WITH (modulus 64, remainder 24); -ALTER TABLE ONLY bulk_imports ALTER COLUMN id SET DEFAULT nextval('bulk_imports_id_seq'::regclass); -ALTER TABLE ONLY catalog_resource_components ALTER COLUMN id SET DEFAULT nextval('catalog_resource_components_id_seq'::regclass); +-- +-- Name: issue_search_data_25; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY catalog_resource_versions ALTER COLUMN id SET DEFAULT nextval('catalog_resource_versions_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_25 FOR VALUES WITH (modulus 64, remainder 25); -ALTER TABLE ONLY catalog_resources ALTER COLUMN id SET DEFAULT nextval('catalog_resources_id_seq'::regclass); -ALTER TABLE ONLY catalog_verified_namespaces ALTER COLUMN id SET DEFAULT nextval('catalog_verified_namespaces_id_seq'::regclass); +-- +-- Name: issue_search_data_26; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY chat_names ALTER COLUMN id SET DEFAULT nextval('chat_names_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_26 FOR VALUES WITH (modulus 64, remainder 26); -ALTER TABLE ONLY chat_teams ALTER COLUMN id SET DEFAULT nextval('chat_teams_id_seq'::regclass); -ALTER TABLE ONLY ci_build_needs ALTER COLUMN id SET DEFAULT nextval('ci_build_needs_id_seq'::regclass); +-- +-- Name: issue_search_data_27; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_build_pending_states ALTER COLUMN id SET DEFAULT nextval('ci_build_pending_states_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_27 FOR VALUES WITH (modulus 64, remainder 27); -ALTER TABLE ONLY ci_build_trace_chunks ALTER COLUMN id SET DEFAULT nextval('ci_build_trace_chunks_id_seq'::regclass); -ALTER TABLE ONLY ci_builds_runner_session ALTER COLUMN id SET DEFAULT nextval('ci_builds_runner_session_id_seq'::regclass); +-- +-- Name: issue_search_data_28; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_daily_build_group_report_results ALTER COLUMN id SET DEFAULT nextval('ci_daily_build_group_report_results_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_28 FOR VALUES WITH (modulus 64, remainder 28); -ALTER TABLE ONLY ci_deleted_objects ALTER COLUMN id SET DEFAULT nextval('ci_deleted_objects_id_seq'::regclass); -ALTER TABLE ONLY ci_freeze_periods ALTER COLUMN id SET DEFAULT nextval('ci_freeze_periods_id_seq'::regclass); +-- +-- Name: issue_search_data_29; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_group_variables ALTER COLUMN id SET DEFAULT nextval('ci_group_variables_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_29 FOR VALUES WITH (modulus 64, remainder 29); -ALTER TABLE ONLY ci_instance_variables ALTER COLUMN id SET DEFAULT nextval('ci_instance_variables_id_seq'::regclass); -ALTER TABLE ONLY ci_job_token_group_scope_links ALTER COLUMN id SET DEFAULT nextval('ci_job_token_group_scope_links_id_seq'::regclass); +-- +-- Name: issue_search_data_30; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_job_token_project_scope_links ALTER COLUMN id SET DEFAULT nextval('ci_job_token_project_scope_links_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_30 FOR VALUES WITH (modulus 64, remainder 30); -ALTER TABLE ONLY ci_job_variables ALTER COLUMN id SET DEFAULT nextval('ci_job_variables_id_seq'::regclass); -ALTER TABLE ONLY ci_minutes_additional_packs ALTER COLUMN id SET DEFAULT nextval('ci_minutes_additional_packs_id_seq'::regclass); +-- +-- Name: issue_search_data_31; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_namespace_mirrors ALTER COLUMN id SET DEFAULT nextval('ci_namespace_mirrors_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_31 FOR VALUES WITH (modulus 64, remainder 31); -ALTER TABLE ONLY ci_namespace_monthly_usages ALTER COLUMN id SET DEFAULT nextval('ci_namespace_monthly_usages_id_seq'::regclass); -ALTER TABLE ONLY ci_pending_builds ALTER COLUMN id SET DEFAULT nextval('ci_pending_builds_id_seq'::regclass); +-- +-- Name: issue_search_data_32; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_pipeline_artifacts ALTER COLUMN id SET DEFAULT nextval('ci_pipeline_artifacts_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_32 FOR VALUES WITH (modulus 64, remainder 32); -ALTER TABLE ONLY ci_pipeline_chat_data ALTER COLUMN id SET DEFAULT nextval('ci_pipeline_chat_data_id_seq'::regclass); -ALTER TABLE ONLY ci_pipeline_messages ALTER COLUMN id SET DEFAULT nextval('ci_pipeline_messages_id_seq'::regclass); +-- +-- Name: issue_search_data_33; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_pipeline_schedule_variables ALTER COLUMN id SET DEFAULT nextval('ci_pipeline_schedule_variables_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_33 FOR VALUES WITH (modulus 64, remainder 33); -ALTER TABLE ONLY ci_pipeline_schedules ALTER COLUMN id SET DEFAULT nextval('ci_pipeline_schedules_id_seq'::regclass); -ALTER TABLE ONLY ci_project_mirrors ALTER COLUMN id SET DEFAULT nextval('ci_project_mirrors_id_seq'::regclass); +-- +-- Name: issue_search_data_34; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_project_monthly_usages ALTER COLUMN id SET DEFAULT nextval('ci_project_monthly_usages_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_34 FOR VALUES WITH (modulus 64, remainder 34); -ALTER TABLE ONLY ci_refs ALTER COLUMN id SET DEFAULT nextval('ci_refs_id_seq'::regclass); -ALTER TABLE ONLY ci_resource_groups ALTER COLUMN id SET DEFAULT nextval('ci_resource_groups_id_seq'::regclass); +-- +-- Name: issue_search_data_35; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_resources ALTER COLUMN id SET DEFAULT nextval('ci_resources_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_35 FOR VALUES WITH (modulus 64, remainder 35); -ALTER TABLE ONLY ci_runner_machines ALTER COLUMN id SET DEFAULT nextval('ci_runner_machines_id_seq'::regclass); -ALTER TABLE ONLY ci_runner_namespaces ALTER COLUMN id SET DEFAULT nextval('ci_runner_namespaces_id_seq'::regclass); +-- +-- Name: issue_search_data_36; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_runner_projects ALTER COLUMN id SET DEFAULT nextval('ci_runner_projects_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_36 FOR VALUES WITH (modulus 64, remainder 36); -ALTER TABLE ONLY ci_runners ALTER COLUMN id SET DEFAULT nextval('ci_runners_id_seq'::regclass); -ALTER TABLE ONLY ci_running_builds ALTER COLUMN id SET DEFAULT nextval('ci_running_builds_id_seq'::regclass); +-- +-- Name: issue_search_data_37; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_secure_file_states ALTER COLUMN ci_secure_file_id SET DEFAULT nextval('ci_secure_file_states_ci_secure_file_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_37 FOR VALUES WITH (modulus 64, remainder 37); -ALTER TABLE ONLY ci_secure_files ALTER COLUMN id SET DEFAULT nextval('ci_secure_files_id_seq'::regclass); -ALTER TABLE ONLY ci_sources_pipelines ALTER COLUMN id SET DEFAULT nextval('ci_sources_pipelines_id_seq'::regclass); +-- +-- Name: issue_search_data_38; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_sources_projects ALTER COLUMN id SET DEFAULT nextval('ci_sources_projects_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_38 FOR VALUES WITH (modulus 64, remainder 38); -ALTER TABLE ONLY ci_subscriptions_projects ALTER COLUMN id SET DEFAULT nextval('ci_subscriptions_projects_id_seq'::regclass); -ALTER TABLE ONLY ci_trigger_requests ALTER COLUMN id SET DEFAULT nextval('ci_trigger_requests_id_seq'::regclass); +-- +-- Name: issue_search_data_39; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_triggers ALTER COLUMN id SET DEFAULT nextval('ci_triggers_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_39 FOR VALUES WITH (modulus 64, remainder 39); -ALTER TABLE ONLY ci_unit_test_failures ALTER COLUMN id SET DEFAULT nextval('ci_unit_test_failures_id_seq'::regclass); -ALTER TABLE ONLY ci_unit_tests ALTER COLUMN id SET DEFAULT nextval('ci_unit_tests_id_seq'::regclass); +-- +-- Name: issue_search_data_40; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_variables ALTER COLUMN id SET DEFAULT nextval('ci_variables_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_40 FOR VALUES WITH (modulus 64, remainder 40); -ALTER TABLE ONLY cloud_connector_access ALTER COLUMN id SET DEFAULT nextval('cloud_connector_access_id_seq'::regclass); -ALTER TABLE ONLY cluster_agent_tokens ALTER COLUMN id SET DEFAULT nextval('cluster_agent_tokens_id_seq'::regclass); +-- +-- Name: issue_search_data_41; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY cluster_agent_url_configurations ALTER COLUMN id SET DEFAULT nextval('cluster_agent_url_configurations_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_41 FOR VALUES WITH (modulus 64, remainder 41); -ALTER TABLE ONLY cluster_agents ALTER COLUMN id SET DEFAULT nextval('cluster_agents_id_seq'::regclass); -ALTER TABLE ONLY cluster_enabled_grants ALTER COLUMN id SET DEFAULT nextval('cluster_enabled_grants_id_seq'::regclass); +-- +-- Name: issue_search_data_42; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY cluster_groups ALTER COLUMN id SET DEFAULT nextval('cluster_groups_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_42 FOR VALUES WITH (modulus 64, remainder 42); -ALTER TABLE ONLY cluster_platforms_kubernetes ALTER COLUMN id SET DEFAULT nextval('cluster_platforms_kubernetes_id_seq'::regclass); -ALTER TABLE ONLY cluster_projects ALTER COLUMN id SET DEFAULT nextval('cluster_projects_id_seq'::regclass); +-- +-- Name: issue_search_data_43; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY cluster_providers_aws ALTER COLUMN id SET DEFAULT nextval('cluster_providers_aws_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_43 FOR VALUES WITH (modulus 64, remainder 43); -ALTER TABLE ONLY cluster_providers_gcp ALTER COLUMN id SET DEFAULT nextval('cluster_providers_gcp_id_seq'::regclass); -ALTER TABLE ONLY clusters ALTER COLUMN id SET DEFAULT nextval('clusters_id_seq'::regclass); +-- +-- Name: issue_search_data_44; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY clusters_kubernetes_namespaces ALTER COLUMN id SET DEFAULT nextval('clusters_kubernetes_namespaces_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_44 FOR VALUES WITH (modulus 64, remainder 44); -ALTER TABLE ONLY commit_user_mentions ALTER COLUMN id SET DEFAULT nextval('commit_user_mentions_id_seq'::regclass); -ALTER TABLE ONLY compliance_checks ALTER COLUMN id SET DEFAULT nextval('compliance_checks_id_seq'::regclass); +-- +-- Name: issue_search_data_45; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY compliance_framework_security_policies ALTER COLUMN id SET DEFAULT nextval('compliance_framework_security_policies_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_45 FOR VALUES WITH (modulus 64, remainder 45); -ALTER TABLE ONLY compliance_management_frameworks ALTER COLUMN id SET DEFAULT nextval('compliance_management_frameworks_id_seq'::regclass); -ALTER TABLE ONLY compliance_requirements ALTER COLUMN id SET DEFAULT nextval('compliance_requirements_id_seq'::regclass); +-- +-- Name: issue_search_data_46; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY container_registry_protection_rules ALTER COLUMN id SET DEFAULT nextval('container_registry_protection_rules_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_46 FOR VALUES WITH (modulus 64, remainder 46); -ALTER TABLE ONLY container_repositories ALTER COLUMN id SET DEFAULT nextval('container_repositories_id_seq'::regclass); -ALTER TABLE ONLY content_blocked_states ALTER COLUMN id SET DEFAULT nextval('content_blocked_states_id_seq'::regclass); +-- +-- Name: issue_search_data_47; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY conversational_development_index_metrics ALTER COLUMN id SET DEFAULT nextval('conversational_development_index_metrics_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_47 FOR VALUES WITH (modulus 64, remainder 47); -ALTER TABLE ONLY country_access_logs ALTER COLUMN id SET DEFAULT nextval('country_access_logs_id_seq'::regclass); -ALTER TABLE ONLY coverage_fuzzing_corpuses ALTER COLUMN id SET DEFAULT nextval('coverage_fuzzing_corpuses_id_seq'::regclass); +-- +-- Name: issue_search_data_48; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY csv_issue_imports ALTER COLUMN id SET DEFAULT nextval('csv_issue_imports_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_48 FOR VALUES WITH (modulus 64, remainder 48); -ALTER TABLE ONLY custom_emoji ALTER COLUMN id SET DEFAULT nextval('custom_emoji_id_seq'::regclass); -ALTER TABLE ONLY custom_software_licenses ALTER COLUMN id SET DEFAULT nextval('custom_software_licenses_id_seq'::regclass); +-- +-- Name: issue_search_data_49; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY customer_relations_contacts ALTER COLUMN id SET DEFAULT nextval('customer_relations_contacts_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_49 FOR VALUES WITH (modulus 64, remainder 49); -ALTER TABLE ONLY customer_relations_organizations ALTER COLUMN id SET DEFAULT nextval('customer_relations_organizations_id_seq'::regclass); -ALTER TABLE ONLY dast_pre_scan_verification_steps ALTER COLUMN id SET DEFAULT nextval('dast_pre_scan_verification_steps_id_seq'::regclass); +-- +-- Name: issue_search_data_50; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY dast_pre_scan_verifications ALTER COLUMN id SET DEFAULT nextval('dast_pre_scan_verifications_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_50 FOR VALUES WITH (modulus 64, remainder 50); -ALTER TABLE ONLY dast_profile_schedules ALTER COLUMN id SET DEFAULT nextval('dast_profile_schedules_id_seq'::regclass); -ALTER TABLE ONLY dast_profiles ALTER COLUMN id SET DEFAULT nextval('dast_profiles_id_seq'::regclass); +-- +-- Name: issue_search_data_51; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY dast_profiles_tags ALTER COLUMN id SET DEFAULT nextval('dast_profiles_tags_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_51 FOR VALUES WITH (modulus 64, remainder 51); -ALTER TABLE ONLY dast_scanner_profiles ALTER COLUMN id SET DEFAULT nextval('dast_scanner_profiles_id_seq'::regclass); -ALTER TABLE ONLY dast_site_profile_secret_variables ALTER COLUMN id SET DEFAULT nextval('dast_site_profile_secret_variables_id_seq'::regclass); +-- +-- Name: issue_search_data_52; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY dast_site_profiles ALTER COLUMN id SET DEFAULT nextval('dast_site_profiles_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_52 FOR VALUES WITH (modulus 64, remainder 52); -ALTER TABLE ONLY dast_site_tokens ALTER COLUMN id SET DEFAULT nextval('dast_site_tokens_id_seq'::regclass); -ALTER TABLE ONLY dast_site_validations ALTER COLUMN id SET DEFAULT nextval('dast_site_validations_id_seq'::regclass); +-- +-- Name: issue_search_data_53; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY dast_sites ALTER COLUMN id SET DEFAULT nextval('dast_sites_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_53 FOR VALUES WITH (modulus 64, remainder 53); -ALTER TABLE ONLY dependency_list_export_parts ALTER COLUMN id SET DEFAULT nextval('dependency_list_export_parts_id_seq'::regclass); -ALTER TABLE ONLY dependency_list_exports ALTER COLUMN id SET DEFAULT nextval('dependency_list_exports_id_seq'::regclass); +-- +-- Name: issue_search_data_54; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY dependency_proxy_blobs ALTER COLUMN id SET DEFAULT nextval('dependency_proxy_blobs_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_54 FOR VALUES WITH (modulus 64, remainder 54); -ALTER TABLE ONLY dependency_proxy_group_settings ALTER COLUMN id SET DEFAULT nextval('dependency_proxy_group_settings_id_seq'::regclass); -ALTER TABLE ONLY dependency_proxy_manifests ALTER COLUMN id SET DEFAULT nextval('dependency_proxy_manifests_id_seq'::regclass); +-- +-- Name: issue_search_data_55; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY deploy_keys_projects ALTER COLUMN id SET DEFAULT nextval('deploy_keys_projects_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_55 FOR VALUES WITH (modulus 64, remainder 55); -ALTER TABLE ONLY deploy_tokens ALTER COLUMN id SET DEFAULT nextval('deploy_tokens_id_seq'::regclass); -ALTER TABLE ONLY deployment_approvals ALTER COLUMN id SET DEFAULT nextval('deployment_approvals_id_seq'::regclass); +-- +-- Name: issue_search_data_56; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY deployments ALTER COLUMN id SET DEFAULT nextval('deployments_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_56 FOR VALUES WITH (modulus 64, remainder 56); -ALTER TABLE ONLY description_versions ALTER COLUMN id SET DEFAULT nextval('description_versions_id_seq'::regclass); -ALTER TABLE ONLY design_management_designs ALTER COLUMN id SET DEFAULT nextval('design_management_designs_id_seq'::regclass); +-- +-- Name: issue_search_data_57; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY design_management_designs_versions ALTER COLUMN id SET DEFAULT nextval('design_management_designs_versions_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_57 FOR VALUES WITH (modulus 64, remainder 57); -ALTER TABLE ONLY design_management_repositories ALTER COLUMN id SET DEFAULT nextval('design_management_repositories_id_seq'::regclass); -ALTER TABLE ONLY design_management_versions ALTER COLUMN id SET DEFAULT nextval('design_management_versions_id_seq'::regclass); +-- +-- Name: issue_search_data_58; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY design_user_mentions ALTER COLUMN id SET DEFAULT nextval('design_user_mentions_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_58 FOR VALUES WITH (modulus 64, remainder 58); -ALTER TABLE ONLY detached_partitions ALTER COLUMN id SET DEFAULT nextval('detached_partitions_id_seq'::regclass); -ALTER TABLE ONLY diff_note_positions ALTER COLUMN id SET DEFAULT nextval('diff_note_positions_id_seq'::regclass); +-- +-- Name: issue_search_data_59; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY dingtalk_tracker_data ALTER COLUMN id SET DEFAULT nextval('dingtalk_tracker_data_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_59 FOR VALUES WITH (modulus 64, remainder 59); -ALTER TABLE ONLY dora_configurations ALTER COLUMN id SET DEFAULT nextval('dora_configurations_id_seq'::regclass); -ALTER TABLE ONLY dora_daily_metrics ALTER COLUMN id SET DEFAULT nextval('dora_daily_metrics_id_seq'::regclass); +-- +-- Name: issue_search_data_60; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY dora_performance_scores ALTER COLUMN id SET DEFAULT nextval('dora_performance_scores_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_60 FOR VALUES WITH (modulus 64, remainder 60); -ALTER TABLE ONLY draft_notes ALTER COLUMN id SET DEFAULT nextval('draft_notes_id_seq'::regclass); -ALTER TABLE ONLY duo_workflows_checkpoints ALTER COLUMN id SET DEFAULT nextval('duo_workflows_checkpoints_id_seq'::regclass); +-- +-- Name: issue_search_data_61; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY duo_workflows_workflows ALTER COLUMN id SET DEFAULT nextval('duo_workflows_workflows_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_61 FOR VALUES WITH (modulus 64, remainder 61); -ALTER TABLE ONLY early_access_program_tracking_events ALTER COLUMN id SET DEFAULT nextval('early_access_program_tracking_events_id_seq'::regclass); -ALTER TABLE ONLY elastic_index_settings ALTER COLUMN id SET DEFAULT nextval('elastic_index_settings_id_seq'::regclass); +-- +-- Name: issue_search_data_62; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY elastic_reindexing_slices ALTER COLUMN id SET DEFAULT nextval('elastic_reindexing_slices_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_62 FOR VALUES WITH (modulus 64, remainder 62); -ALTER TABLE ONLY elastic_reindexing_subtasks ALTER COLUMN id SET DEFAULT nextval('elastic_reindexing_subtasks_id_seq'::regclass); -ALTER TABLE ONLY elastic_reindexing_tasks ALTER COLUMN id SET DEFAULT nextval('elastic_reindexing_tasks_id_seq'::regclass); +-- +-- Name: issue_search_data_63; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY emails ALTER COLUMN id SET DEFAULT nextval('emails_id_seq'::regclass); +ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_63 FOR VALUES WITH (modulus 64, remainder 63); -ALTER TABLE ONLY environments ALTER COLUMN id SET DEFAULT nextval('environments_id_seq'::regclass); -ALTER TABLE ONLY epic_issues ALTER COLUMN id SET DEFAULT nextval('epic_issues_id_seq'::regclass); +-- +-- Name: namespace_descendants_00; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY epic_metrics ALTER COLUMN id SET DEFAULT nextval('epic_metrics_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_00 FOR VALUES WITH (modulus 32, remainder 0); -ALTER TABLE ONLY epic_user_mentions ALTER COLUMN id SET DEFAULT nextval('epic_user_mentions_id_seq'::regclass); -ALTER TABLE ONLY epics ALTER COLUMN id SET DEFAULT nextval('epics_id_seq'::regclass); +-- +-- Name: namespace_descendants_01; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY error_tracking_client_keys ALTER COLUMN id SET DEFAULT nextval('error_tracking_client_keys_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_01 FOR VALUES WITH (modulus 32, remainder 1); -ALTER TABLE ONLY error_tracking_error_events ALTER COLUMN id SET DEFAULT nextval('error_tracking_error_events_id_seq'::regclass); -ALTER TABLE ONLY error_tracking_errors ALTER COLUMN id SET DEFAULT nextval('error_tracking_errors_id_seq'::regclass); +-- +-- Name: namespace_descendants_02; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY events ALTER COLUMN id SET DEFAULT nextval('events_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_02 FOR VALUES WITH (modulus 32, remainder 2); -ALTER TABLE ONLY evidences ALTER COLUMN id SET DEFAULT nextval('evidences_id_seq'::regclass); -ALTER TABLE ONLY external_approval_rules ALTER COLUMN id SET DEFAULT nextval('external_approval_rules_id_seq'::regclass); +-- +-- Name: namespace_descendants_03; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY external_pull_requests ALTER COLUMN id SET DEFAULT nextval('external_pull_requests_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_03 FOR VALUES WITH (modulus 32, remainder 3); -ALTER TABLE ONLY external_status_checks ALTER COLUMN id SET DEFAULT nextval('external_status_checks_id_seq'::regclass); -ALTER TABLE ONLY external_status_checks_protected_branches ALTER COLUMN id SET DEFAULT nextval('external_status_checks_protected_branches_id_seq'::regclass); +-- +-- Name: namespace_descendants_04; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY feature_gates ALTER COLUMN id SET DEFAULT nextval('feature_gates_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_04 FOR VALUES WITH (modulus 32, remainder 4); -ALTER TABLE ONLY features ALTER COLUMN id SET DEFAULT nextval('features_id_seq'::regclass); -ALTER TABLE ONLY fork_network_members ALTER COLUMN id SET DEFAULT nextval('fork_network_members_id_seq'::regclass); +-- +-- Name: namespace_descendants_05; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY fork_networks ALTER COLUMN id SET DEFAULT nextval('fork_networks_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_05 FOR VALUES WITH (modulus 32, remainder 5); -ALTER TABLE ONLY geo_cache_invalidation_events ALTER COLUMN id SET DEFAULT nextval('geo_cache_invalidation_events_id_seq'::regclass); -ALTER TABLE ONLY geo_event_log ALTER COLUMN id SET DEFAULT nextval('geo_event_log_id_seq'::regclass); +-- +-- Name: namespace_descendants_06; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY geo_events ALTER COLUMN id SET DEFAULT nextval('geo_events_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_06 FOR VALUES WITH (modulus 32, remainder 6); -ALTER TABLE ONLY geo_node_namespace_links ALTER COLUMN id SET DEFAULT nextval('geo_node_namespace_links_id_seq'::regclass); -ALTER TABLE ONLY geo_node_statuses ALTER COLUMN id SET DEFAULT nextval('geo_node_statuses_id_seq'::regclass); +-- +-- Name: namespace_descendants_07; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY geo_nodes ALTER COLUMN id SET DEFAULT nextval('geo_nodes_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_07 FOR VALUES WITH (modulus 32, remainder 7); -ALTER TABLE ONLY ghost_user_migrations ALTER COLUMN id SET DEFAULT nextval('ghost_user_migrations_id_seq'::regclass); -ALTER TABLE ONLY gitlab_subscription_histories ALTER COLUMN id SET DEFAULT nextval('gitlab_subscription_histories_id_seq'::regclass); +-- +-- Name: namespace_descendants_08; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY gitlab_subscriptions ALTER COLUMN id SET DEFAULT nextval('gitlab_subscriptions_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_08 FOR VALUES WITH (modulus 32, remainder 8); -ALTER TABLE ONLY gpg_key_subkeys ALTER COLUMN id SET DEFAULT nextval('gpg_key_subkeys_id_seq'::regclass); -ALTER TABLE ONLY gpg_keys ALTER COLUMN id SET DEFAULT nextval('gpg_keys_id_seq'::regclass); +-- +-- Name: namespace_descendants_09; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY gpg_signatures ALTER COLUMN id SET DEFAULT nextval('gpg_signatures_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_09 FOR VALUES WITH (modulus 32, remainder 9); -ALTER TABLE ONLY grafana_integrations ALTER COLUMN id SET DEFAULT nextval('grafana_integrations_id_seq'::regclass); -ALTER TABLE ONLY group_crm_settings ALTER COLUMN group_id SET DEFAULT nextval('group_crm_settings_group_id_seq'::regclass); +-- +-- Name: namespace_descendants_10; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY group_custom_attributes ALTER COLUMN id SET DEFAULT nextval('group_custom_attributes_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_10 FOR VALUES WITH (modulus 32, remainder 10); -ALTER TABLE ONLY group_deploy_keys ALTER COLUMN id SET DEFAULT nextval('group_deploy_keys_id_seq'::regclass); -ALTER TABLE ONLY group_deploy_keys_groups ALTER COLUMN id SET DEFAULT nextval('group_deploy_keys_groups_id_seq'::regclass); +-- +-- Name: namespace_descendants_11; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY group_deploy_tokens ALTER COLUMN id SET DEFAULT nextval('group_deploy_tokens_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_11 FOR VALUES WITH (modulus 32, remainder 11); -ALTER TABLE ONLY group_group_links ALTER COLUMN id SET DEFAULT nextval('group_group_links_id_seq'::regclass); -ALTER TABLE ONLY group_import_states ALTER COLUMN group_id SET DEFAULT nextval('group_import_states_group_id_seq'::regclass); +-- +-- Name: namespace_descendants_12; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY group_repository_storage_moves ALTER COLUMN id SET DEFAULT nextval('group_repository_storage_moves_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_12 FOR VALUES WITH (modulus 32, remainder 12); -ALTER TABLE ONLY group_saved_replies ALTER COLUMN id SET DEFAULT nextval('group_saved_replies_id_seq'::regclass); -ALTER TABLE ONLY group_ssh_certificates ALTER COLUMN id SET DEFAULT nextval('group_ssh_certificates_id_seq'::regclass); +-- +-- Name: namespace_descendants_13; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY group_wiki_repository_states ALTER COLUMN id SET DEFAULT nextval('group_wiki_repository_states_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_13 FOR VALUES WITH (modulus 32, remainder 13); -ALTER TABLE ONLY groups_visits ALTER COLUMN id SET DEFAULT nextval('groups_visits_id_seq'::regclass); -ALTER TABLE ONLY historical_data ALTER COLUMN id SET DEFAULT nextval('historical_data_id_seq'::regclass); +-- +-- Name: namespace_descendants_14; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY identities ALTER COLUMN id SET DEFAULT nextval('identities_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_14 FOR VALUES WITH (modulus 32, remainder 14); -ALTER TABLE ONLY import_export_uploads ALTER COLUMN id SET DEFAULT nextval('import_export_uploads_id_seq'::regclass); -ALTER TABLE ONLY import_failures ALTER COLUMN id SET DEFAULT nextval('import_failures_id_seq'::regclass); +-- +-- Name: namespace_descendants_15; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY import_placeholder_memberships ALTER COLUMN id SET DEFAULT nextval('import_placeholder_memberships_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_15 FOR VALUES WITH (modulus 32, remainder 15); -ALTER TABLE ONLY import_source_user_placeholder_references ALTER COLUMN id SET DEFAULT nextval('import_source_user_placeholder_references_id_seq'::regclass); -ALTER TABLE ONLY import_source_users ALTER COLUMN id SET DEFAULT nextval('import_source_users_id_seq'::regclass); +-- +-- Name: namespace_descendants_16; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY incident_management_escalation_policies ALTER COLUMN id SET DEFAULT nextval('incident_management_escalation_policies_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_16 FOR VALUES WITH (modulus 32, remainder 16); -ALTER TABLE ONLY incident_management_escalation_rules ALTER COLUMN id SET DEFAULT nextval('incident_management_escalation_rules_id_seq'::regclass); -ALTER TABLE ONLY incident_management_issuable_escalation_statuses ALTER COLUMN id SET DEFAULT nextval('incident_management_issuable_escalation_statuses_id_seq'::regclass); +-- +-- Name: namespace_descendants_17; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY incident_management_oncall_participants ALTER COLUMN id SET DEFAULT nextval('incident_management_oncall_participants_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_17 FOR VALUES WITH (modulus 32, remainder 17); -ALTER TABLE ONLY incident_management_oncall_rotations ALTER COLUMN id SET DEFAULT nextval('incident_management_oncall_rotations_id_seq'::regclass); -ALTER TABLE ONLY incident_management_oncall_schedules ALTER COLUMN id SET DEFAULT nextval('incident_management_oncall_schedules_id_seq'::regclass); +-- +-- Name: namespace_descendants_18; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY incident_management_oncall_shifts ALTER COLUMN id SET DEFAULT nextval('incident_management_oncall_shifts_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_18 FOR VALUES WITH (modulus 32, remainder 18); -ALTER TABLE ONLY incident_management_pending_alert_escalations ALTER COLUMN id SET DEFAULT nextval('incident_management_pending_alert_escalations_id_seq'::regclass); -ALTER TABLE ONLY incident_management_pending_issue_escalations ALTER COLUMN id SET DEFAULT nextval('incident_management_pending_issue_escalations_id_seq'::regclass); +-- +-- Name: namespace_descendants_19; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY incident_management_timeline_event_tag_links ALTER COLUMN id SET DEFAULT nextval('incident_management_timeline_event_tag_links_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_19 FOR VALUES WITH (modulus 32, remainder 19); -ALTER TABLE ONLY incident_management_timeline_event_tags ALTER COLUMN id SET DEFAULT nextval('incident_management_timeline_event_tags_id_seq'::regclass); -ALTER TABLE ONLY incident_management_timeline_events ALTER COLUMN id SET DEFAULT nextval('incident_management_timeline_events_id_seq'::regclass); +-- +-- Name: namespace_descendants_20; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY index_statuses ALTER COLUMN id SET DEFAULT nextval('index_statuses_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_20 FOR VALUES WITH (modulus 32, remainder 20); -ALTER TABLE ONLY insights ALTER COLUMN id SET DEFAULT nextval('insights_id_seq'::regclass); -ALTER TABLE ONLY instance_audit_events_streaming_headers ALTER COLUMN id SET DEFAULT nextval('instance_audit_events_streaming_headers_id_seq'::regclass); +-- +-- Name: namespace_descendants_21; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY integrations ALTER COLUMN id SET DEFAULT nextval('integrations_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_21 FOR VALUES WITH (modulus 32, remainder 21); -ALTER TABLE ONLY internal_ids ALTER COLUMN id SET DEFAULT nextval('internal_ids_id_seq'::regclass); -ALTER TABLE ONLY ip_restrictions ALTER COLUMN id SET DEFAULT nextval('ip_restrictions_id_seq'::regclass); +-- +-- Name: namespace_descendants_22; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issuable_metric_images ALTER COLUMN id SET DEFAULT nextval('issuable_metric_images_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_22 FOR VALUES WITH (modulus 32, remainder 22); -ALTER TABLE ONLY issuable_resource_links ALTER COLUMN id SET DEFAULT nextval('issuable_resource_links_id_seq'::regclass); -ALTER TABLE ONLY issuable_severities ALTER COLUMN id SET DEFAULT nextval('issuable_severities_id_seq'::regclass); +-- +-- Name: namespace_descendants_23; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issuable_slas ALTER COLUMN id SET DEFAULT nextval('issuable_slas_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_23 FOR VALUES WITH (modulus 32, remainder 23); -ALTER TABLE ONLY issue_assignment_events ALTER COLUMN id SET DEFAULT nextval('issue_assignment_events_id_seq'::regclass); -ALTER TABLE ONLY issue_customer_relations_contacts ALTER COLUMN id SET DEFAULT nextval('issue_customer_relations_contacts_id_seq'::regclass); +-- +-- Name: namespace_descendants_24; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_email_participants ALTER COLUMN id SET DEFAULT nextval('issue_email_participants_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_24 FOR VALUES WITH (modulus 32, remainder 24); -ALTER TABLE ONLY issue_emails ALTER COLUMN id SET DEFAULT nextval('issue_emails_id_seq'::regclass); -ALTER TABLE ONLY issue_links ALTER COLUMN id SET DEFAULT nextval('issue_links_id_seq'::regclass); +-- +-- Name: namespace_descendants_25; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_metrics ALTER COLUMN id SET DEFAULT nextval('issue_metrics_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_25 FOR VALUES WITH (modulus 32, remainder 25); -ALTER TABLE ONLY issue_tracker_data ALTER COLUMN id SET DEFAULT nextval('issue_tracker_data_id_seq'::regclass); -ALTER TABLE ONLY issue_user_mentions ALTER COLUMN id SET DEFAULT nextval('issue_user_mentions_id_seq'::regclass); +-- +-- Name: namespace_descendants_26; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issues ALTER COLUMN id SET DEFAULT nextval('issues_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_26 FOR VALUES WITH (modulus 32, remainder 26); -ALTER TABLE ONLY iterations_cadences ALTER COLUMN id SET DEFAULT nextval('iterations_cadences_id_seq'::regclass); -ALTER TABLE ONLY jira_connect_installations ALTER COLUMN id SET DEFAULT nextval('jira_connect_installations_id_seq'::regclass); +-- +-- Name: namespace_descendants_27; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY jira_connect_subscriptions ALTER COLUMN id SET DEFAULT nextval('jira_connect_subscriptions_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_27 FOR VALUES WITH (modulus 32, remainder 27); -ALTER TABLE ONLY jira_imports ALTER COLUMN id SET DEFAULT nextval('jira_imports_id_seq'::regclass); -ALTER TABLE ONLY jira_tracker_data ALTER COLUMN id SET DEFAULT nextval('jira_tracker_data_id_seq'::regclass); +-- +-- Name: namespace_descendants_28; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY keys ALTER COLUMN id SET DEFAULT nextval('keys_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_28 FOR VALUES WITH (modulus 32, remainder 28); -ALTER TABLE ONLY label_links ALTER COLUMN id SET DEFAULT nextval('label_links_id_seq'::regclass); -ALTER TABLE ONLY label_priorities ALTER COLUMN id SET DEFAULT nextval('label_priorities_id_seq'::regclass); +-- +-- Name: namespace_descendants_29; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY labels ALTER COLUMN id SET DEFAULT nextval('labels_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_29 FOR VALUES WITH (modulus 32, remainder 29); -ALTER TABLE ONLY ldap_group_links ALTER COLUMN id SET DEFAULT nextval('ldap_group_links_id_seq'::regclass); -ALTER TABLE ONLY lfs_file_locks ALTER COLUMN id SET DEFAULT nextval('lfs_file_locks_id_seq'::regclass); +-- +-- Name: namespace_descendants_30; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY lfs_object_states ALTER COLUMN lfs_object_id SET DEFAULT nextval('lfs_object_states_lfs_object_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_30 FOR VALUES WITH (modulus 32, remainder 30); -ALTER TABLE ONLY lfs_objects ALTER COLUMN id SET DEFAULT nextval('lfs_objects_id_seq'::regclass); -ALTER TABLE ONLY lfs_objects_projects ALTER COLUMN id SET DEFAULT nextval('lfs_objects_projects_id_seq'::regclass); +-- +-- Name: namespace_descendants_31; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY licenses ALTER COLUMN id SET DEFAULT nextval('licenses_id_seq'::regclass); +ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_31 FOR VALUES WITH (modulus 32, remainder 31); -ALTER TABLE ONLY list_user_preferences ALTER COLUMN id SET DEFAULT nextval('list_user_preferences_id_seq'::regclass); -ALTER TABLE ONLY lists ALTER COLUMN id SET DEFAULT nextval('lists_id_seq'::regclass); +-- +-- Name: ci_build_trace_metadata; Type: TABLE ATTACH; Schema: public; Owner: - +-- -ALTER TABLE ONLY loose_foreign_keys_deleted_records ALTER COLUMN id SET DEFAULT nextval('loose_foreign_keys_deleted_records_id_seq'::regclass); +ALTER TABLE ONLY public.p_ci_build_trace_metadata ATTACH PARTITION public.ci_build_trace_metadata FOR VALUES IN ('100', '101', '102'); -ALTER TABLE ONLY member_approvals ALTER COLUMN id SET DEFAULT nextval('member_approvals_id_seq'::regclass); -ALTER TABLE ONLY member_roles ALTER COLUMN id SET DEFAULT nextval('member_roles_id_seq'::regclass); +-- +-- Name: ci_builds; Type: TABLE ATTACH; Schema: public; Owner: - +-- -ALTER TABLE ONLY members ALTER COLUMN id SET DEFAULT nextval('members_id_seq'::regclass); +ALTER TABLE ONLY public.p_ci_builds ATTACH PARTITION public.ci_builds FOR VALUES IN ('100'); -ALTER TABLE ONLY merge_request_assignees ALTER COLUMN id SET DEFAULT nextval('merge_request_assignees_id_seq'::regclass); -ALTER TABLE ONLY merge_request_assignment_events ALTER COLUMN id SET DEFAULT nextval('merge_request_assignment_events_id_seq'::regclass); +-- +-- Name: ci_builds_metadata; Type: TABLE ATTACH; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_blocks ALTER COLUMN id SET DEFAULT nextval('merge_request_blocks_id_seq'::regclass); +ALTER TABLE ONLY public.p_ci_builds_metadata ATTACH PARTITION public.ci_builds_metadata FOR VALUES IN ('100'); -ALTER TABLE ONLY merge_request_cleanup_schedules ALTER COLUMN merge_request_id SET DEFAULT nextval('merge_request_cleanup_schedules_merge_request_id_seq'::regclass); -ALTER TABLE ONLY merge_request_context_commits ALTER COLUMN id SET DEFAULT nextval('merge_request_context_commits_id_seq'::regclass); +-- +-- Name: ci_job_artifacts; Type: TABLE ATTACH; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_diff_commit_users ALTER COLUMN id SET DEFAULT nextval('merge_request_diff_commit_users_id_seq'::regclass); +ALTER TABLE ONLY public.p_ci_job_artifacts ATTACH PARTITION public.ci_job_artifacts FOR VALUES IN ('100', '101'); -ALTER TABLE ONLY merge_request_diff_details ALTER COLUMN merge_request_diff_id SET DEFAULT nextval('merge_request_diff_details_merge_request_diff_id_seq'::regclass); -ALTER TABLE ONLY merge_request_diffs ALTER COLUMN id SET DEFAULT nextval('merge_request_diffs_id_seq'::regclass); +-- +-- Name: ci_pipeline_variables; Type: TABLE ATTACH; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_metrics ALTER COLUMN id SET DEFAULT nextval('merge_request_metrics_id_seq'::regclass); +ALTER TABLE ONLY public.p_ci_pipeline_variables ATTACH PARTITION public.ci_pipeline_variables FOR VALUES IN ('100', '101'); -ALTER TABLE ONLY merge_request_predictions ALTER COLUMN merge_request_id SET DEFAULT nextval('merge_request_predictions_merge_request_id_seq'::regclass); -ALTER TABLE ONLY merge_request_requested_changes ALTER COLUMN id SET DEFAULT nextval('merge_request_requested_changes_id_seq'::regclass); +-- +-- Name: ci_pipelines; Type: TABLE ATTACH; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_reviewers ALTER COLUMN id SET DEFAULT nextval('merge_request_reviewers_id_seq'::regclass); +ALTER TABLE ONLY public.p_ci_pipelines ATTACH PARTITION public.ci_pipelines FOR VALUES IN ('100', '101', '102'); -ALTER TABLE ONLY merge_request_user_mentions ALTER COLUMN id SET DEFAULT nextval('merge_request_user_mentions_id_seq'::regclass); -ALTER TABLE ONLY merge_requests ALTER COLUMN id SET DEFAULT nextval('merge_requests_id_seq'::regclass); +-- +-- Name: ci_stages; Type: TABLE ATTACH; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_requests_closing_issues ALTER COLUMN id SET DEFAULT nextval('merge_requests_closing_issues_id_seq'::regclass); +ALTER TABLE ONLY public.p_ci_stages ATTACH PARTITION public.ci_stages FOR VALUES IN ('100', '101'); -ALTER TABLE ONLY merge_requests_compliance_violations ALTER COLUMN id SET DEFAULT nextval('merge_requests_compliance_violations_id_seq'::regclass); -ALTER TABLE ONLY merge_trains ALTER COLUMN id SET DEFAULT nextval('merge_trains_id_seq'::regclass); +-- +-- Name: abuse_events id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY metrics_dashboard_annotations ALTER COLUMN id SET DEFAULT nextval('metrics_dashboard_annotations_id_seq'::regclass); +ALTER TABLE ONLY public.abuse_events ALTER COLUMN id SET DEFAULT nextval('public.abuse_events_id_seq'::regclass); -ALTER TABLE ONLY metrics_users_starred_dashboards ALTER COLUMN id SET DEFAULT nextval('metrics_users_starred_dashboards_id_seq'::regclass); -ALTER TABLE ONLY milestones ALTER COLUMN id SET DEFAULT nextval('milestones_id_seq'::regclass); +-- +-- Name: abuse_report_assignees id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ml_candidate_metadata ALTER COLUMN id SET DEFAULT nextval('ml_candidate_metadata_id_seq'::regclass); +ALTER TABLE ONLY public.abuse_report_assignees ALTER COLUMN id SET DEFAULT nextval('public.abuse_report_assignees_id_seq'::regclass); -ALTER TABLE ONLY ml_candidate_metrics ALTER COLUMN id SET DEFAULT nextval('ml_candidate_metrics_id_seq'::regclass); -ALTER TABLE ONLY ml_candidate_params ALTER COLUMN id SET DEFAULT nextval('ml_candidate_params_id_seq'::regclass); +-- +-- Name: abuse_report_events id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ml_candidates ALTER COLUMN id SET DEFAULT nextval('ml_candidates_id_seq'::regclass); +ALTER TABLE ONLY public.abuse_report_events ALTER COLUMN id SET DEFAULT nextval('public.abuse_report_events_id_seq'::regclass); -ALTER TABLE ONLY ml_experiment_metadata ALTER COLUMN id SET DEFAULT nextval('ml_experiment_metadata_id_seq'::regclass); -ALTER TABLE ONLY ml_experiments ALTER COLUMN id SET DEFAULT nextval('ml_experiments_id_seq'::regclass); +-- +-- Name: abuse_report_notes id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ml_model_metadata ALTER COLUMN id SET DEFAULT nextval('ml_model_metadata_id_seq'::regclass); +ALTER TABLE ONLY public.abuse_report_notes ALTER COLUMN id SET DEFAULT nextval('public.abuse_report_notes_id_seq'::regclass); -ALTER TABLE ONLY ml_model_version_metadata ALTER COLUMN id SET DEFAULT nextval('ml_model_version_metadata_id_seq'::regclass); -ALTER TABLE ONLY ml_model_versions ALTER COLUMN id SET DEFAULT nextval('ml_model_versions_id_seq'::regclass); +-- +-- Name: abuse_report_user_mentions id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ml_models ALTER COLUMN id SET DEFAULT nextval('ml_models_id_seq'::regclass); +ALTER TABLE ONLY public.abuse_report_user_mentions ALTER COLUMN id SET DEFAULT nextval('public.abuse_report_user_mentions_id_seq'::regclass); -ALTER TABLE ONLY namespace_admin_notes ALTER COLUMN id SET DEFAULT nextval('namespace_admin_notes_id_seq'::regclass); -ALTER TABLE ONLY namespace_bans ALTER COLUMN id SET DEFAULT nextval('namespace_bans_id_seq'::regclass); +-- +-- Name: abuse_reports id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY namespace_commit_emails ALTER COLUMN id SET DEFAULT nextval('namespace_commit_emails_id_seq'::regclass); +ALTER TABLE ONLY public.abuse_reports ALTER COLUMN id SET DEFAULT nextval('public.abuse_reports_id_seq'::regclass); -ALTER TABLE ONLY namespace_import_users ALTER COLUMN id SET DEFAULT nextval('namespace_import_users_id_seq'::regclass); -ALTER TABLE ONLY namespace_statistics ALTER COLUMN id SET DEFAULT nextval('namespace_statistics_id_seq'::regclass); +-- +-- Name: abuse_trust_scores id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY namespaces ALTER COLUMN id SET DEFAULT nextval('namespaces_id_seq'::regclass); +ALTER TABLE ONLY public.abuse_trust_scores ALTER COLUMN id SET DEFAULT nextval('public.abuse_trust_scores_id_seq'::regclass); -ALTER TABLE ONLY namespaces_storage_limit_exclusions ALTER COLUMN id SET DEFAULT nextval('namespaces_storage_limit_exclusions_id_seq'::regclass); -ALTER TABLE ONLY namespaces_sync_events ALTER COLUMN id SET DEFAULT nextval('namespaces_sync_events_id_seq'::regclass); +-- +-- Name: achievements id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY note_diff_files ALTER COLUMN id SET DEFAULT nextval('note_diff_files_id_seq'::regclass); +ALTER TABLE ONLY public.achievements ALTER COLUMN id SET DEFAULT nextval('public.achievements_id_seq'::regclass); -ALTER TABLE ONLY note_metadata ALTER COLUMN note_id SET DEFAULT nextval('note_metadata_note_id_seq'::regclass); -ALTER TABLE ONLY notes ALTER COLUMN id SET DEFAULT nextval('notes_id_seq'::regclass); +-- +-- Name: activity_pub_releases_subscriptions id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY notification_settings ALTER COLUMN id SET DEFAULT nextval('notification_settings_id_seq'::regclass); +ALTER TABLE ONLY public.activity_pub_releases_subscriptions ALTER COLUMN id SET DEFAULT nextval('public.activity_pub_releases_subscriptions_id_seq'::regclass); -ALTER TABLE ONLY oauth_access_grants ALTER COLUMN id SET DEFAULT nextval('oauth_access_grants_id_seq'::regclass); -ALTER TABLE ONLY oauth_access_tokens ALTER COLUMN id SET DEFAULT nextval('oauth_access_tokens_id_seq'::regclass); +-- +-- Name: agent_activity_events id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY oauth_applications ALTER COLUMN id SET DEFAULT nextval('oauth_applications_id_seq'::regclass); +ALTER TABLE ONLY public.agent_activity_events ALTER COLUMN id SET DEFAULT nextval('public.agent_activity_events_id_seq'::regclass); -ALTER TABLE ONLY oauth_device_grants ALTER COLUMN id SET DEFAULT nextval('oauth_device_grants_id_seq'::regclass); -ALTER TABLE ONLY oauth_openid_requests ALTER COLUMN id SET DEFAULT nextval('oauth_openid_requests_id_seq'::regclass); +-- +-- Name: agent_group_authorizations id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY observability_logs_issues_connections ALTER COLUMN id SET DEFAULT nextval('observability_logs_issues_connections_id_seq'::regclass); +ALTER TABLE ONLY public.agent_group_authorizations ALTER COLUMN id SET DEFAULT nextval('public.agent_group_authorizations_id_seq'::regclass); -ALTER TABLE ONLY observability_metrics_issues_connections ALTER COLUMN id SET DEFAULT nextval('observability_metrics_issues_connections_id_seq'::regclass); -ALTER TABLE ONLY observability_traces_issues_connections ALTER COLUMN id SET DEFAULT nextval('observability_traces_issues_connections_id_seq'::regclass); +-- +-- Name: agent_project_authorizations id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY onboarding_progresses ALTER COLUMN id SET DEFAULT nextval('onboarding_progresses_id_seq'::regclass); +ALTER TABLE ONLY public.agent_project_authorizations ALTER COLUMN id SET DEFAULT nextval('public.agent_project_authorizations_id_seq'::regclass); -ALTER TABLE ONLY operations_feature_flag_scopes ALTER COLUMN id SET DEFAULT nextval('operations_feature_flag_scopes_id_seq'::regclass); -ALTER TABLE ONLY operations_feature_flags ALTER COLUMN id SET DEFAULT nextval('operations_feature_flags_id_seq'::regclass); +-- +-- Name: agent_user_access_group_authorizations id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY operations_feature_flags_clients ALTER COLUMN id SET DEFAULT nextval('operations_feature_flags_clients_id_seq'::regclass); +ALTER TABLE ONLY public.agent_user_access_group_authorizations ALTER COLUMN id SET DEFAULT nextval('public.agent_user_access_group_authorizations_id_seq'::regclass); -ALTER TABLE ONLY operations_feature_flags_issues ALTER COLUMN id SET DEFAULT nextval('operations_feature_flags_issues_id_seq'::regclass); -ALTER TABLE ONLY operations_scopes ALTER COLUMN id SET DEFAULT nextval('operations_scopes_id_seq'::regclass); +-- +-- Name: agent_user_access_project_authorizations id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY operations_strategies ALTER COLUMN id SET DEFAULT nextval('operations_strategies_id_seq'::regclass); +ALTER TABLE ONLY public.agent_user_access_project_authorizations ALTER COLUMN id SET DEFAULT nextval('public.agent_user_access_project_authorizations_id_seq'::regclass); -ALTER TABLE ONLY operations_strategies_user_lists ALTER COLUMN id SET DEFAULT nextval('operations_strategies_user_lists_id_seq'::regclass); -ALTER TABLE ONLY operations_user_lists ALTER COLUMN id SET DEFAULT nextval('operations_user_lists_id_seq'::regclass); +-- +-- Name: ai_agent_version_attachments id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY organization_users ALTER COLUMN id SET DEFAULT nextval('organization_users_id_seq'::regclass); +ALTER TABLE ONLY public.ai_agent_version_attachments ALTER COLUMN id SET DEFAULT nextval('public.ai_agent_version_attachments_id_seq'::regclass); -ALTER TABLE ONLY organizations ALTER COLUMN id SET DEFAULT nextval('organizations_id_seq'::regclass); -ALTER TABLE ONLY p_batched_git_ref_updates_deletions ALTER COLUMN id SET DEFAULT nextval('p_batched_git_ref_updates_deletions_id_seq'::regclass); +-- +-- Name: ai_agent_versions id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY p_catalog_resource_component_usages ALTER COLUMN id SET DEFAULT nextval('p_catalog_resource_component_usages_id_seq'::regclass); +ALTER TABLE ONLY public.ai_agent_versions ALTER COLUMN id SET DEFAULT nextval('public.ai_agent_versions_id_seq'::regclass); -ALTER TABLE ONLY p_catalog_resource_sync_events ALTER COLUMN id SET DEFAULT nextval('p_catalog_resource_sync_events_id_seq'::regclass); -ALTER TABLE ONLY p_ci_builds_metadata ALTER COLUMN id SET DEFAULT nextval('ci_builds_metadata_id_seq'::regclass); +-- +-- Name: ai_agents id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY p_ci_pipelines ALTER COLUMN id SET DEFAULT nextval('ci_pipelines_id_seq'::regclass); +ALTER TABLE ONLY public.ai_agents ALTER COLUMN id SET DEFAULT nextval('public.ai_agents_id_seq'::regclass); -ALTER TABLE ONLY packages_build_infos ALTER COLUMN id SET DEFAULT nextval('packages_build_infos_id_seq'::regclass); -ALTER TABLE ONLY packages_composer_cache_files ALTER COLUMN id SET DEFAULT nextval('packages_composer_cache_files_id_seq'::regclass); +-- +-- Name: ai_feature_settings id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_conan_file_metadata ALTER COLUMN id SET DEFAULT nextval('packages_conan_file_metadata_id_seq'::regclass); +ALTER TABLE ONLY public.ai_feature_settings ALTER COLUMN id SET DEFAULT nextval('public.ai_feature_settings_id_seq'::regclass); -ALTER TABLE ONLY packages_conan_metadata ALTER COLUMN id SET DEFAULT nextval('packages_conan_metadata_id_seq'::regclass); -ALTER TABLE ONLY packages_debian_group_architectures ALTER COLUMN id SET DEFAULT nextval('packages_debian_group_architectures_id_seq'::regclass); +-- +-- Name: ai_self_hosted_models id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_debian_group_component_files ALTER COLUMN id SET DEFAULT nextval('packages_debian_group_component_files_id_seq'::regclass); +ALTER TABLE ONLY public.ai_self_hosted_models ALTER COLUMN id SET DEFAULT nextval('public.ai_self_hosted_models_id_seq'::regclass); -ALTER TABLE ONLY packages_debian_group_components ALTER COLUMN id SET DEFAULT nextval('packages_debian_group_components_id_seq'::regclass); -ALTER TABLE ONLY packages_debian_group_distribution_keys ALTER COLUMN id SET DEFAULT nextval('packages_debian_group_distribution_keys_id_seq'::regclass); +-- +-- Name: ai_vectorizable_files id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_debian_group_distributions ALTER COLUMN id SET DEFAULT nextval('packages_debian_group_distributions_id_seq'::regclass); +ALTER TABLE ONLY public.ai_vectorizable_files ALTER COLUMN id SET DEFAULT nextval('public.ai_vectorizable_files_id_seq'::regclass); -ALTER TABLE ONLY packages_debian_project_architectures ALTER COLUMN id SET DEFAULT nextval('packages_debian_project_architectures_id_seq'::regclass); -ALTER TABLE ONLY packages_debian_project_component_files ALTER COLUMN id SET DEFAULT nextval('packages_debian_project_component_files_id_seq'::regclass); +-- +-- Name: alert_management_alert_assignees id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_debian_project_components ALTER COLUMN id SET DEFAULT nextval('packages_debian_project_components_id_seq'::regclass); +ALTER TABLE ONLY public.alert_management_alert_assignees ALTER COLUMN id SET DEFAULT nextval('public.alert_management_alert_assignees_id_seq'::regclass); -ALTER TABLE ONLY packages_debian_project_distribution_keys ALTER COLUMN id SET DEFAULT nextval('packages_debian_project_distribution_keys_id_seq'::regclass); -ALTER TABLE ONLY packages_debian_project_distributions ALTER COLUMN id SET DEFAULT nextval('packages_debian_project_distributions_id_seq'::regclass); +-- +-- Name: alert_management_alert_metric_images id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_debian_publications ALTER COLUMN id SET DEFAULT nextval('packages_debian_publications_id_seq'::regclass); +ALTER TABLE ONLY public.alert_management_alert_metric_images ALTER COLUMN id SET DEFAULT nextval('public.alert_management_alert_metric_images_id_seq'::regclass); -ALTER TABLE ONLY packages_dependencies ALTER COLUMN id SET DEFAULT nextval('packages_dependencies_id_seq'::regclass); -ALTER TABLE ONLY packages_dependency_links ALTER COLUMN id SET DEFAULT nextval('packages_dependency_links_id_seq'::regclass); +-- +-- Name: alert_management_alert_user_mentions id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_maven_metadata ALTER COLUMN id SET DEFAULT nextval('packages_maven_metadata_id_seq'::regclass); +ALTER TABLE ONLY public.alert_management_alert_user_mentions ALTER COLUMN id SET DEFAULT nextval('public.alert_management_alert_user_mentions_id_seq'::regclass); -ALTER TABLE ONLY packages_npm_metadata_caches ALTER COLUMN id SET DEFAULT nextval('packages_npm_metadata_caches_id_seq'::regclass); -ALTER TABLE ONLY packages_nuget_symbols ALTER COLUMN id SET DEFAULT nextval('packages_nuget_symbols_id_seq'::regclass); +-- +-- Name: alert_management_alerts id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_package_file_build_infos ALTER COLUMN id SET DEFAULT nextval('packages_package_file_build_infos_id_seq'::regclass); +ALTER TABLE ONLY public.alert_management_alerts ALTER COLUMN id SET DEFAULT nextval('public.alert_management_alerts_id_seq'::regclass); -ALTER TABLE ONLY packages_package_files ALTER COLUMN id SET DEFAULT nextval('packages_package_files_id_seq'::regclass); -ALTER TABLE ONLY packages_packages ALTER COLUMN id SET DEFAULT nextval('packages_packages_id_seq'::regclass); +-- +-- Name: alert_management_http_integrations id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_protection_rules ALTER COLUMN id SET DEFAULT nextval('packages_protection_rules_id_seq'::regclass); +ALTER TABLE ONLY public.alert_management_http_integrations ALTER COLUMN id SET DEFAULT nextval('public.alert_management_http_integrations_id_seq'::regclass); -ALTER TABLE ONLY packages_rpm_repository_files ALTER COLUMN id SET DEFAULT nextval('packages_rpm_repository_files_id_seq'::regclass); -ALTER TABLE ONLY packages_tags ALTER COLUMN id SET DEFAULT nextval('packages_tags_id_seq'::regclass); +-- +-- Name: allowed_email_domains id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY pages_deployment_states ALTER COLUMN pages_deployment_id SET DEFAULT nextval('pages_deployment_states_pages_deployment_id_seq'::regclass); +ALTER TABLE ONLY public.allowed_email_domains ALTER COLUMN id SET DEFAULT nextval('public.allowed_email_domains_id_seq'::regclass); -ALTER TABLE ONLY pages_deployments ALTER COLUMN id SET DEFAULT nextval('pages_deployments_id_seq'::regclass); -ALTER TABLE ONLY pages_domain_acme_orders ALTER COLUMN id SET DEFAULT nextval('pages_domain_acme_orders_id_seq'::regclass); +-- +-- Name: analytics_cycle_analytics_group_stages id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY pages_domains ALTER COLUMN id SET DEFAULT nextval('pages_domains_id_seq'::regclass); +ALTER TABLE ONLY public.analytics_cycle_analytics_group_stages ALTER COLUMN id SET DEFAULT nextval('public.analytics_cycle_analytics_group_stages_id_seq'::regclass); -ALTER TABLE ONLY path_locks ALTER COLUMN id SET DEFAULT nextval('path_locks_id_seq'::regclass); -ALTER TABLE ONLY personal_access_token_last_used_ips ALTER COLUMN id SET DEFAULT nextval('personal_access_token_last_used_ips_id_seq'::regclass); +-- +-- Name: analytics_cycle_analytics_group_value_streams id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY personal_access_tokens ALTER COLUMN id SET DEFAULT nextval('personal_access_tokens_id_seq'::regclass); +ALTER TABLE ONLY public.analytics_cycle_analytics_group_value_streams ALTER COLUMN id SET DEFAULT nextval('public.analytics_cycle_analytics_group_value_streams_id_seq'::regclass); -ALTER TABLE ONLY plan_limits ALTER COLUMN id SET DEFAULT nextval('plan_limits_id_seq'::regclass); -ALTER TABLE ONLY plans ALTER COLUMN id SET DEFAULT nextval('plans_id_seq'::regclass); +-- +-- Name: analytics_cycle_analytics_stage_event_hashes id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY pm_advisories ALTER COLUMN id SET DEFAULT nextval('pm_advisories_id_seq'::regclass); +ALTER TABLE ONLY public.analytics_cycle_analytics_stage_event_hashes ALTER COLUMN id SET DEFAULT nextval('public.analytics_cycle_analytics_stage_event_hashes_id_seq'::regclass); -ALTER TABLE ONLY pm_affected_packages ALTER COLUMN id SET DEFAULT nextval('pm_affected_packages_id_seq'::regclass); -ALTER TABLE ONLY pm_checkpoints ALTER COLUMN id SET DEFAULT nextval('pm_checkpoints_id_seq'::regclass); +-- +-- Name: analytics_dashboards_pointers id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY pm_epss ALTER COLUMN id SET DEFAULT nextval('pm_epss_id_seq'::regclass); +ALTER TABLE ONLY public.analytics_dashboards_pointers ALTER COLUMN id SET DEFAULT nextval('public.analytics_dashboards_pointers_id_seq'::regclass); -ALTER TABLE ONLY pm_licenses ALTER COLUMN id SET DEFAULT nextval('pm_licenses_id_seq'::regclass); -ALTER TABLE ONLY pm_package_version_licenses ALTER COLUMN id SET DEFAULT nextval('pm_package_version_licenses_id_seq'::regclass); +-- +-- Name: analytics_devops_adoption_segments id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY pm_package_versions ALTER COLUMN id SET DEFAULT nextval('pm_package_versions_id_seq'::regclass); +ALTER TABLE ONLY public.analytics_devops_adoption_segments ALTER COLUMN id SET DEFAULT nextval('public.analytics_devops_adoption_segments_id_seq'::regclass); -ALTER TABLE ONLY pm_packages ALTER COLUMN id SET DEFAULT nextval('pm_packages_id_seq'::regclass); -ALTER TABLE ONLY pool_repositories ALTER COLUMN id SET DEFAULT nextval('pool_repositories_id_seq'::regclass); +-- +-- Name: analytics_devops_adoption_snapshots id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY postgres_async_foreign_key_validations ALTER COLUMN id SET DEFAULT nextval('postgres_async_foreign_key_validations_id_seq'::regclass); +ALTER TABLE ONLY public.analytics_devops_adoption_snapshots ALTER COLUMN id SET DEFAULT nextval('public.analytics_devops_adoption_snapshots_id_seq'::regclass); -ALTER TABLE ONLY postgres_async_indexes ALTER COLUMN id SET DEFAULT nextval('postgres_async_indexes_id_seq'::regclass); -ALTER TABLE ONLY postgres_reindex_actions ALTER COLUMN id SET DEFAULT nextval('postgres_reindex_actions_id_seq'::regclass); +-- +-- Name: analytics_usage_trends_measurements id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY postgres_reindex_queued_actions ALTER COLUMN id SET DEFAULT nextval('postgres_reindex_queued_actions_id_seq'::regclass); +ALTER TABLE ONLY public.analytics_usage_trends_measurements ALTER COLUMN id SET DEFAULT nextval('public.analytics_usage_trends_measurements_id_seq'::regclass); -ALTER TABLE ONLY programming_languages ALTER COLUMN id SET DEFAULT nextval('programming_languages_id_seq'::regclass); -ALTER TABLE ONLY project_aliases ALTER COLUMN id SET DEFAULT nextval('project_aliases_id_seq'::regclass); +-- +-- Name: appearances id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_auto_devops ALTER COLUMN id SET DEFAULT nextval('project_auto_devops_id_seq'::regclass); +ALTER TABLE ONLY public.appearances ALTER COLUMN id SET DEFAULT nextval('public.appearances_id_seq'::regclass); -ALTER TABLE ONLY project_build_artifacts_size_refreshes ALTER COLUMN id SET DEFAULT nextval('project_build_artifacts_size_refreshes_id_seq'::regclass); -ALTER TABLE ONLY project_ci_cd_settings ALTER COLUMN id SET DEFAULT nextval('project_ci_cd_settings_id_seq'::regclass); +-- +-- Name: application_setting_terms id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_ci_feature_usages ALTER COLUMN id SET DEFAULT nextval('project_ci_feature_usages_id_seq'::regclass); +ALTER TABLE ONLY public.application_setting_terms ALTER COLUMN id SET DEFAULT nextval('public.application_setting_terms_id_seq'::regclass); -ALTER TABLE ONLY project_compliance_framework_settings ALTER COLUMN project_id SET DEFAULT nextval('project_compliance_framework_settings_project_id_seq'::regclass); -ALTER TABLE ONLY project_compliance_framework_settings ALTER COLUMN id SET DEFAULT nextval('project_compliance_framework_settings_id_seq'::regclass); +-- +-- Name: application_settings id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_compliance_standards_adherence ALTER COLUMN id SET DEFAULT nextval('project_compliance_standards_adherence_id_seq'::regclass); +ALTER TABLE ONLY public.application_settings ALTER COLUMN id SET DEFAULT nextval('public.application_settings_id_seq'::regclass); -ALTER TABLE ONLY project_custom_attributes ALTER COLUMN id SET DEFAULT nextval('project_custom_attributes_id_seq'::regclass); -ALTER TABLE ONLY project_daily_statistics ALTER COLUMN id SET DEFAULT nextval('project_daily_statistics_id_seq'::regclass); +-- +-- Name: approval_group_rules id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_data_transfers ALTER COLUMN id SET DEFAULT nextval('project_data_transfers_id_seq'::regclass); +ALTER TABLE ONLY public.approval_group_rules ALTER COLUMN id SET DEFAULT nextval('public.approval_group_rules_id_seq'::regclass); -ALTER TABLE ONLY project_deploy_tokens ALTER COLUMN id SET DEFAULT nextval('project_deploy_tokens_id_seq'::regclass); -ALTER TABLE ONLY project_export_jobs ALTER COLUMN id SET DEFAULT nextval('project_export_jobs_id_seq'::regclass); +-- +-- Name: approval_group_rules_groups id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_features ALTER COLUMN id SET DEFAULT nextval('project_features_id_seq'::regclass); +ALTER TABLE ONLY public.approval_group_rules_groups ALTER COLUMN id SET DEFAULT nextval('public.approval_group_rules_groups_id_seq'::regclass); -ALTER TABLE ONLY project_group_links ALTER COLUMN id SET DEFAULT nextval('project_group_links_id_seq'::regclass); -ALTER TABLE ONLY project_import_data ALTER COLUMN id SET DEFAULT nextval('project_import_data_id_seq'::regclass); +-- +-- Name: approval_group_rules_protected_branches id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_incident_management_settings ALTER COLUMN project_id SET DEFAULT nextval('project_incident_management_settings_project_id_seq'::regclass); +ALTER TABLE ONLY public.approval_group_rules_protected_branches ALTER COLUMN id SET DEFAULT nextval('public.approval_group_rules_protected_branches_id_seq'::regclass); -ALTER TABLE ONLY project_mirror_data ALTER COLUMN id SET DEFAULT nextval('project_mirror_data_id_seq'::regclass); -ALTER TABLE ONLY project_relation_export_uploads ALTER COLUMN id SET DEFAULT nextval('project_relation_export_uploads_id_seq'::regclass); +-- +-- Name: approval_group_rules_users id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_relation_exports ALTER COLUMN id SET DEFAULT nextval('project_relation_exports_id_seq'::regclass); +ALTER TABLE ONLY public.approval_group_rules_users ALTER COLUMN id SET DEFAULT nextval('public.approval_group_rules_users_id_seq'::regclass); -ALTER TABLE ONLY project_repositories ALTER COLUMN id SET DEFAULT nextval('project_repositories_id_seq'::regclass); -ALTER TABLE ONLY project_repository_storage_moves ALTER COLUMN id SET DEFAULT nextval('project_repository_storage_moves_id_seq'::regclass); +-- +-- Name: approval_merge_request_rule_sources id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_saved_replies ALTER COLUMN id SET DEFAULT nextval('project_saved_replies_id_seq'::regclass); +ALTER TABLE ONLY public.approval_merge_request_rule_sources ALTER COLUMN id SET DEFAULT nextval('public.approval_merge_request_rule_sources_id_seq'::regclass); -ALTER TABLE ONLY project_secrets_managers ALTER COLUMN id SET DEFAULT nextval('project_secrets_managers_id_seq'::regclass); -ALTER TABLE ONLY project_security_settings ALTER COLUMN project_id SET DEFAULT nextval('project_security_settings_project_id_seq'::regclass); +-- +-- Name: approval_merge_request_rules id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_states ALTER COLUMN id SET DEFAULT nextval('project_states_id_seq'::regclass); +ALTER TABLE ONLY public.approval_merge_request_rules ALTER COLUMN id SET DEFAULT nextval('public.approval_merge_request_rules_id_seq'::regclass); -ALTER TABLE ONLY project_statistics ALTER COLUMN id SET DEFAULT nextval('project_statistics_id_seq'::regclass); -ALTER TABLE ONLY project_topics ALTER COLUMN id SET DEFAULT nextval('project_topics_id_seq'::regclass); +-- +-- Name: approval_merge_request_rules_approved_approvers id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_wiki_repositories ALTER COLUMN id SET DEFAULT nextval('project_wiki_repositories_id_seq'::regclass); +ALTER TABLE ONLY public.approval_merge_request_rules_approved_approvers ALTER COLUMN id SET DEFAULT nextval('public.approval_merge_request_rules_approved_approvers_id_seq'::regclass); -ALTER TABLE ONLY projects ALTER COLUMN id SET DEFAULT nextval('projects_id_seq'::regclass); -ALTER TABLE ONLY projects_sync_events ALTER COLUMN id SET DEFAULT nextval('projects_sync_events_id_seq'::regclass); +-- +-- Name: approval_merge_request_rules_groups id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY projects_visits ALTER COLUMN id SET DEFAULT nextval('projects_visits_id_seq'::regclass); +ALTER TABLE ONLY public.approval_merge_request_rules_groups ALTER COLUMN id SET DEFAULT nextval('public.approval_merge_request_rules_groups_id_seq'::regclass); -ALTER TABLE ONLY prometheus_alert_events ALTER COLUMN id SET DEFAULT nextval('prometheus_alert_events_id_seq'::regclass); -ALTER TABLE ONLY prometheus_alerts ALTER COLUMN id SET DEFAULT nextval('prometheus_alerts_id_seq'::regclass); +-- +-- Name: approval_merge_request_rules_users id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY prometheus_metrics ALTER COLUMN id SET DEFAULT nextval('prometheus_metrics_id_seq'::regclass); +ALTER TABLE ONLY public.approval_merge_request_rules_users ALTER COLUMN id SET DEFAULT nextval('public.approval_merge_request_rules_users_id_seq'::regclass); -ALTER TABLE ONLY protected_branch_merge_access_levels ALTER COLUMN id SET DEFAULT nextval('protected_branch_merge_access_levels_id_seq'::regclass); -ALTER TABLE ONLY protected_branch_push_access_levels ALTER COLUMN id SET DEFAULT nextval('protected_branch_push_access_levels_id_seq'::regclass); +-- +-- Name: approval_policy_rule_project_links id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY protected_branch_unprotect_access_levels ALTER COLUMN id SET DEFAULT nextval('protected_branch_unprotect_access_levels_id_seq'::regclass); +ALTER TABLE ONLY public.approval_policy_rule_project_links ALTER COLUMN id SET DEFAULT nextval('public.approval_policy_rule_project_links_id_seq'::regclass); -ALTER TABLE ONLY protected_branches ALTER COLUMN id SET DEFAULT nextval('protected_branches_id_seq'::regclass); -ALTER TABLE ONLY protected_environment_approval_rules ALTER COLUMN id SET DEFAULT nextval('protected_environment_approval_rules_id_seq'::regclass); +-- +-- Name: approval_policy_rules id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY protected_environment_deploy_access_levels ALTER COLUMN id SET DEFAULT nextval('protected_environment_deploy_access_levels_id_seq'::regclass); +ALTER TABLE ONLY public.approval_policy_rules ALTER COLUMN id SET DEFAULT nextval('public.approval_policy_rules_id_seq'::regclass); -ALTER TABLE ONLY protected_environments ALTER COLUMN id SET DEFAULT nextval('protected_environments_id_seq'::regclass); -ALTER TABLE ONLY protected_tag_create_access_levels ALTER COLUMN id SET DEFAULT nextval('protected_tag_create_access_levels_id_seq'::regclass); +-- +-- Name: approval_project_rules id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY protected_tags ALTER COLUMN id SET DEFAULT nextval('protected_tags_id_seq'::regclass); +ALTER TABLE ONLY public.approval_project_rules ALTER COLUMN id SET DEFAULT nextval('public.approval_project_rules_id_seq'::regclass); -ALTER TABLE ONLY push_rules ALTER COLUMN id SET DEFAULT nextval('push_rules_id_seq'::regclass); -ALTER TABLE ONLY raw_usage_data ALTER COLUMN id SET DEFAULT nextval('raw_usage_data_id_seq'::regclass); +-- +-- Name: approval_project_rules_groups id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY redirect_routes ALTER COLUMN id SET DEFAULT nextval('redirect_routes_id_seq'::regclass); +ALTER TABLE ONLY public.approval_project_rules_groups ALTER COLUMN id SET DEFAULT nextval('public.approval_project_rules_groups_id_seq'::regclass); -ALTER TABLE ONLY related_epic_links ALTER COLUMN id SET DEFAULT nextval('related_epic_links_id_seq'::regclass); -ALTER TABLE ONLY relation_import_trackers ALTER COLUMN id SET DEFAULT nextval('relation_import_trackers_id_seq'::regclass); +-- +-- Name: approval_project_rules_users id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY release_links ALTER COLUMN id SET DEFAULT nextval('release_links_id_seq'::regclass); +ALTER TABLE ONLY public.approval_project_rules_users ALTER COLUMN id SET DEFAULT nextval('public.approval_project_rules_users_id_seq'::regclass); -ALTER TABLE ONLY releases ALTER COLUMN id SET DEFAULT nextval('releases_id_seq'::regclass); -ALTER TABLE ONLY remote_development_agent_configs ALTER COLUMN id SET DEFAULT nextval('remote_development_agent_configs_id_seq'::regclass); +-- +-- Name: approvals id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY remote_development_namespace_cluster_agent_mappings ALTER COLUMN id SET DEFAULT nextval('remote_development_namespace_cluster_agent_mappings_id_seq'::regclass); +ALTER TABLE ONLY public.approvals ALTER COLUMN id SET DEFAULT nextval('public.approvals_id_seq'::regclass); -ALTER TABLE ONLY remote_mirrors ALTER COLUMN id SET DEFAULT nextval('remote_mirrors_id_seq'::regclass); -ALTER TABLE ONLY required_code_owners_sections ALTER COLUMN id SET DEFAULT nextval('required_code_owners_sections_id_seq'::regclass); +-- +-- Name: approver_groups id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY requirements ALTER COLUMN id SET DEFAULT nextval('requirements_id_seq'::regclass); +ALTER TABLE ONLY public.approver_groups ALTER COLUMN id SET DEFAULT nextval('public.approver_groups_id_seq'::regclass); -ALTER TABLE ONLY requirements_management_test_reports ALTER COLUMN id SET DEFAULT nextval('requirements_management_test_reports_id_seq'::regclass); -ALTER TABLE ONLY resource_iteration_events ALTER COLUMN id SET DEFAULT nextval('resource_iteration_events_id_seq'::regclass); +-- +-- Name: approvers id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY resource_label_events ALTER COLUMN id SET DEFAULT nextval('resource_label_events_id_seq'::regclass); +ALTER TABLE ONLY public.approvers ALTER COLUMN id SET DEFAULT nextval('public.approvers_id_seq'::regclass); -ALTER TABLE ONLY resource_link_events ALTER COLUMN id SET DEFAULT nextval('resource_link_events_id_seq'::regclass); -ALTER TABLE ONLY resource_milestone_events ALTER COLUMN id SET DEFAULT nextval('resource_milestone_events_id_seq'::regclass); +-- +-- Name: atlassian_identities user_id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY resource_state_events ALTER COLUMN id SET DEFAULT nextval('resource_state_events_id_seq'::regclass); +ALTER TABLE ONLY public.atlassian_identities ALTER COLUMN user_id SET DEFAULT nextval('public.atlassian_identities_user_id_seq'::regclass); -ALTER TABLE ONLY resource_weight_events ALTER COLUMN id SET DEFAULT nextval('resource_weight_events_id_seq'::regclass); -ALTER TABLE ONLY reviews ALTER COLUMN id SET DEFAULT nextval('reviews_id_seq'::regclass); +-- +-- Name: audit_events id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY routes ALTER COLUMN id SET DEFAULT nextval('routes_id_seq'::regclass); +ALTER TABLE ONLY public.audit_events ALTER COLUMN id SET DEFAULT nextval('public.audit_events_id_seq'::regclass); -ALTER TABLE ONLY saml_group_links ALTER COLUMN id SET DEFAULT nextval('saml_group_links_id_seq'::regclass); -ALTER TABLE ONLY saml_providers ALTER COLUMN id SET DEFAULT nextval('saml_providers_id_seq'::regclass); +-- +-- Name: audit_events_amazon_s3_configurations id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY saved_replies ALTER COLUMN id SET DEFAULT nextval('saved_replies_id_seq'::regclass); +ALTER TABLE ONLY public.audit_events_amazon_s3_configurations ALTER COLUMN id SET DEFAULT nextval('public.audit_events_amazon_s3_configurations_id_seq'::regclass); -ALTER TABLE ONLY sbom_component_versions ALTER COLUMN id SET DEFAULT nextval('sbom_component_versions_id_seq'::regclass); -ALTER TABLE ONLY sbom_components ALTER COLUMN id SET DEFAULT nextval('sbom_components_id_seq'::regclass); +-- +-- Name: audit_events_external_audit_event_destinations id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY sbom_occurrences ALTER COLUMN id SET DEFAULT nextval('sbom_occurrences_id_seq'::regclass); +ALTER TABLE ONLY public.audit_events_external_audit_event_destinations ALTER COLUMN id SET DEFAULT nextval('public.audit_events_external_audit_event_destinations_id_seq'::regclass); -ALTER TABLE ONLY sbom_occurrences_vulnerabilities ALTER COLUMN id SET DEFAULT nextval('sbom_occurrences_vulnerabilities_id_seq'::regclass); -ALTER TABLE ONLY sbom_source_packages ALTER COLUMN id SET DEFAULT nextval('sbom_source_packages_id_seq'::regclass); +-- +-- Name: audit_events_google_cloud_logging_configurations id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY sbom_sources ALTER COLUMN id SET DEFAULT nextval('sbom_sources_id_seq'::regclass); +ALTER TABLE ONLY public.audit_events_google_cloud_logging_configurations ALTER COLUMN id SET DEFAULT nextval('public.audit_events_google_cloud_logging_configurations_id_seq'::regclass); -ALTER TABLE ONLY scan_execution_policy_rules ALTER COLUMN id SET DEFAULT nextval('scan_execution_policy_rules_id_seq'::regclass); -ALTER TABLE ONLY scan_result_policies ALTER COLUMN id SET DEFAULT nextval('scan_result_policies_id_seq'::regclass); +-- +-- Name: audit_events_group_external_streaming_destinations id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY scan_result_policy_violations ALTER COLUMN id SET DEFAULT nextval('scan_result_policy_violations_id_seq'::regclass); +ALTER TABLE ONLY public.audit_events_group_external_streaming_destinations ALTER COLUMN id SET DEFAULT nextval('public.audit_events_group_external_streaming_destinations_id_seq'::regclass); -ALTER TABLE ONLY scim_identities ALTER COLUMN id SET DEFAULT nextval('scim_identities_id_seq'::regclass); -ALTER TABLE ONLY scim_oauth_access_tokens ALTER COLUMN id SET DEFAULT nextval('scim_oauth_access_tokens_id_seq'::regclass); +-- +-- Name: audit_events_group_streaming_event_type_filters id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY search_indices ALTER COLUMN id SET DEFAULT nextval('search_indices_id_seq'::regclass); +ALTER TABLE ONLY public.audit_events_group_streaming_event_type_filters ALTER COLUMN id SET DEFAULT nextval('public.audit_events_group_streaming_event_type_filters_id_seq'::regclass); -ALTER TABLE ONLY search_namespace_index_assignments ALTER COLUMN id SET DEFAULT nextval('search_namespace_index_assignments_id_seq'::regclass); -ALTER TABLE ONLY security_findings ALTER COLUMN id SET DEFAULT nextval('security_findings_id_seq'::regclass); +-- +-- Name: audit_events_instance_amazon_s3_configurations id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY security_orchestration_policy_configurations ALTER COLUMN id SET DEFAULT nextval('security_orchestration_policy_configurations_id_seq'::regclass); +ALTER TABLE ONLY public.audit_events_instance_amazon_s3_configurations ALTER COLUMN id SET DEFAULT nextval('public.audit_events_instance_amazon_s3_configurations_id_seq'::regclass); -ALTER TABLE ONLY security_orchestration_policy_rule_schedules ALTER COLUMN id SET DEFAULT nextval('security_orchestration_policy_rule_schedules_id_seq'::regclass); -ALTER TABLE ONLY security_policies ALTER COLUMN id SET DEFAULT nextval('security_policies_id_seq'::regclass); +-- +-- Name: audit_events_instance_external_audit_event_destinations id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY security_policy_project_links ALTER COLUMN id SET DEFAULT nextval('security_policy_project_links_id_seq'::regclass); +ALTER TABLE ONLY public.audit_events_instance_external_audit_event_destinations ALTER COLUMN id SET DEFAULT nextval('public.audit_events_instance_external_audit_event_destinations_id_seq'::regclass); -ALTER TABLE ONLY security_policy_requirements ALTER COLUMN id SET DEFAULT nextval('security_policy_requirements_id_seq'::regclass); -ALTER TABLE ONLY security_scans ALTER COLUMN id SET DEFAULT nextval('security_scans_id_seq'::regclass); +-- +-- Name: audit_events_instance_external_streaming_destinations id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY security_training_providers ALTER COLUMN id SET DEFAULT nextval('security_training_providers_id_seq'::regclass); +ALTER TABLE ONLY public.audit_events_instance_external_streaming_destinations ALTER COLUMN id SET DEFAULT nextval('public.audit_events_instance_external_streaming_destinations_id_seq'::regclass); -ALTER TABLE ONLY security_trainings ALTER COLUMN id SET DEFAULT nextval('security_trainings_id_seq'::regclass); -ALTER TABLE ONLY self_managed_prometheus_alert_events ALTER COLUMN id SET DEFAULT nextval('self_managed_prometheus_alert_events_id_seq'::regclass); +-- +-- Name: audit_events_instance_google_cloud_logging_configurations id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY sent_notifications ALTER COLUMN id SET DEFAULT nextval('sent_notifications_id_seq'::regclass); +ALTER TABLE ONLY public.audit_events_instance_google_cloud_logging_configurations ALTER COLUMN id SET DEFAULT nextval('public.audit_events_instance_google_cloud_logging_configuration_id_seq'::regclass); -ALTER TABLE ONLY sentry_issues ALTER COLUMN id SET DEFAULT nextval('sentry_issues_id_seq'::regclass); -ALTER TABLE ONLY service_access_tokens ALTER COLUMN id SET DEFAULT nextval('service_access_tokens_id_seq'::regclass); +-- +-- Name: audit_events_instance_streaming_event_type_filters id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY shards ALTER COLUMN id SET DEFAULT nextval('shards_id_seq'::regclass); +ALTER TABLE ONLY public.audit_events_instance_streaming_event_type_filters ALTER COLUMN id SET DEFAULT nextval('public.audit_events_instance_streaming_event_type_filters_id_seq'::regclass); -ALTER TABLE ONLY slack_api_scopes ALTER COLUMN id SET DEFAULT nextval('slack_api_scopes_id_seq'::regclass); -ALTER TABLE ONLY slack_integrations ALTER COLUMN id SET DEFAULT nextval('slack_integrations_id_seq'::regclass); +-- +-- Name: audit_events_streaming_event_type_filters id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY slack_integrations_scopes ALTER COLUMN id SET DEFAULT nextval('slack_integrations_scopes_id_seq'::regclass); +ALTER TABLE ONLY public.audit_events_streaming_event_type_filters ALTER COLUMN id SET DEFAULT nextval('public.audit_events_streaming_event_type_filters_id_seq'::regclass); -ALTER TABLE ONLY smartcard_identities ALTER COLUMN id SET DEFAULT nextval('smartcard_identities_id_seq'::regclass); -ALTER TABLE ONLY snippet_repository_storage_moves ALTER COLUMN id SET DEFAULT nextval('snippet_repository_storage_moves_id_seq'::regclass); +-- +-- Name: audit_events_streaming_group_namespace_filters id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY snippet_user_mentions ALTER COLUMN id SET DEFAULT nextval('snippet_user_mentions_id_seq'::regclass); +ALTER TABLE ONLY public.audit_events_streaming_group_namespace_filters ALTER COLUMN id SET DEFAULT nextval('public.audit_events_streaming_group_namespace_filters_id_seq'::regclass); -ALTER TABLE ONLY snippets ALTER COLUMN id SET DEFAULT nextval('snippets_id_seq'::regclass); -ALTER TABLE ONLY software_license_policies ALTER COLUMN id SET DEFAULT nextval('software_license_policies_id_seq'::regclass); +-- +-- Name: audit_events_streaming_headers id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY software_licenses ALTER COLUMN id SET DEFAULT nextval('software_licenses_id_seq'::regclass); +ALTER TABLE ONLY public.audit_events_streaming_headers ALTER COLUMN id SET DEFAULT nextval('public.audit_events_streaming_headers_id_seq'::regclass); -ALTER TABLE ONLY spam_logs ALTER COLUMN id SET DEFAULT nextval('spam_logs_id_seq'::regclass); -ALTER TABLE ONLY sprints ALTER COLUMN id SET DEFAULT nextval('sprints_id_seq'::regclass); +-- +-- Name: audit_events_streaming_http_group_namespace_filters id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ssh_signatures ALTER COLUMN id SET DEFAULT nextval('ssh_signatures_id_seq'::regclass); +ALTER TABLE ONLY public.audit_events_streaming_http_group_namespace_filters ALTER COLUMN id SET DEFAULT nextval('public.audit_events_streaming_http_group_namespace_filters_id_seq'::regclass); -ALTER TABLE ONLY status_check_responses ALTER COLUMN id SET DEFAULT nextval('status_check_responses_id_seq'::regclass); -ALTER TABLE ONLY status_page_published_incidents ALTER COLUMN id SET DEFAULT nextval('status_page_published_incidents_id_seq'::regclass); +-- +-- Name: audit_events_streaming_http_instance_namespace_filters id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY status_page_settings ALTER COLUMN project_id SET DEFAULT nextval('status_page_settings_project_id_seq'::regclass); +ALTER TABLE ONLY public.audit_events_streaming_http_instance_namespace_filters ALTER COLUMN id SET DEFAULT nextval('public.audit_events_streaming_http_instance_namespace_filters_id_seq'::regclass); -ALTER TABLE ONLY subscription_add_on_purchases ALTER COLUMN id SET DEFAULT nextval('subscription_add_on_purchases_id_seq'::regclass); -ALTER TABLE ONLY subscription_add_ons ALTER COLUMN id SET DEFAULT nextval('subscription_add_ons_id_seq'::regclass); +-- +-- Name: audit_events_streaming_instance_event_type_filters id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY subscription_user_add_on_assignments ALTER COLUMN id SET DEFAULT nextval('subscription_user_add_on_assignments_id_seq'::regclass); +ALTER TABLE ONLY public.audit_events_streaming_instance_event_type_filters ALTER COLUMN id SET DEFAULT nextval('public.audit_events_streaming_instance_event_type_filters_id_seq'::regclass); -ALTER TABLE ONLY subscriptions ALTER COLUMN id SET DEFAULT nextval('subscriptions_id_seq'::regclass); -ALTER TABLE ONLY suggestions ALTER COLUMN id SET DEFAULT nextval('suggestions_id_seq'::regclass); +-- +-- Name: audit_events_streaming_instance_namespace_filters id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY system_access_microsoft_applications ALTER COLUMN id SET DEFAULT nextval('system_access_microsoft_applications_id_seq'::regclass); +ALTER TABLE ONLY public.audit_events_streaming_instance_namespace_filters ALTER COLUMN id SET DEFAULT nextval('public.audit_events_streaming_instance_namespace_filters_id_seq'::regclass); -ALTER TABLE ONLY system_access_microsoft_graph_access_tokens ALTER COLUMN id SET DEFAULT nextval('system_access_microsoft_graph_access_tokens_id_seq'::regclass); -ALTER TABLE ONLY system_note_metadata ALTER COLUMN id SET DEFAULT nextval('system_note_metadata_id_seq'::regclass); +-- +-- Name: authentication_events id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY taggings ALTER COLUMN id SET DEFAULT nextval('taggings_id_seq'::regclass); +ALTER TABLE ONLY public.authentication_events ALTER COLUMN id SET DEFAULT nextval('public.authentication_events_id_seq'::regclass); -ALTER TABLE ONLY tags ALTER COLUMN id SET DEFAULT nextval('tags_id_seq'::regclass); -ALTER TABLE ONLY target_branch_rules ALTER COLUMN id SET DEFAULT nextval('target_branch_rules_id_seq'::regclass); +-- +-- Name: automation_rules id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY term_agreements ALTER COLUMN id SET DEFAULT nextval('term_agreements_id_seq'::regclass); +ALTER TABLE ONLY public.automation_rules ALTER COLUMN id SET DEFAULT nextval('public.automation_rules_id_seq'::regclass); -ALTER TABLE ONLY terraform_state_versions ALTER COLUMN id SET DEFAULT nextval('terraform_state_versions_id_seq'::regclass); -ALTER TABLE ONLY terraform_states ALTER COLUMN id SET DEFAULT nextval('terraform_states_id_seq'::regclass); +-- +-- Name: award_emoji id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY timelog_categories ALTER COLUMN id SET DEFAULT nextval('timelog_categories_id_seq'::regclass); +ALTER TABLE ONLY public.award_emoji ALTER COLUMN id SET DEFAULT nextval('public.award_emoji_id_seq'::regclass); -ALTER TABLE ONLY timelogs ALTER COLUMN id SET DEFAULT nextval('timelogs_id_seq'::regclass); -ALTER TABLE ONLY todos ALTER COLUMN id SET DEFAULT nextval('todos_id_seq'::regclass); +-- +-- Name: background_migration_jobs id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY token_with_ivs ALTER COLUMN id SET DEFAULT nextval('token_with_ivs_id_seq'::regclass); +ALTER TABLE ONLY public.background_migration_jobs ALTER COLUMN id SET DEFAULT nextval('public.background_migration_jobs_id_seq'::regclass); -ALTER TABLE ONLY topics ALTER COLUMN id SET DEFAULT nextval('topics_id_seq'::regclass); -ALTER TABLE ONLY trending_projects ALTER COLUMN id SET DEFAULT nextval('trending_projects_id_seq'::regclass); +-- +-- Name: badges id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY upcoming_reconciliations ALTER COLUMN id SET DEFAULT nextval('upcoming_reconciliations_id_seq'::regclass); +ALTER TABLE ONLY public.badges ALTER COLUMN id SET DEFAULT nextval('public.badges_id_seq'::regclass); -ALTER TABLE ONLY upload_states ALTER COLUMN upload_id SET DEFAULT nextval('upload_states_upload_id_seq'::regclass); -ALTER TABLE ONLY uploads ALTER COLUMN id SET DEFAULT nextval('uploads_id_seq'::regclass); +-- +-- Name: batched_background_migration_job_transition_logs id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY user_achievements ALTER COLUMN id SET DEFAULT nextval('user_achievements_id_seq'::regclass); +ALTER TABLE ONLY public.batched_background_migration_job_transition_logs ALTER COLUMN id SET DEFAULT nextval('public.batched_background_migration_job_transition_logs_id_seq'::regclass); -ALTER TABLE ONLY user_agent_details ALTER COLUMN id SET DEFAULT nextval('user_agent_details_id_seq'::regclass); -ALTER TABLE ONLY user_broadcast_message_dismissals ALTER COLUMN id SET DEFAULT nextval('user_broadcast_message_dismissals_id_seq'::regclass); +-- +-- Name: batched_background_migration_jobs id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY user_callouts ALTER COLUMN id SET DEFAULT nextval('user_callouts_id_seq'::regclass); +ALTER TABLE ONLY public.batched_background_migration_jobs ALTER COLUMN id SET DEFAULT nextval('public.batched_background_migration_jobs_id_seq'::regclass); -ALTER TABLE ONLY user_canonical_emails ALTER COLUMN id SET DEFAULT nextval('user_canonical_emails_id_seq'::regclass); -ALTER TABLE ONLY user_custom_attributes ALTER COLUMN id SET DEFAULT nextval('user_custom_attributes_id_seq'::regclass); +-- +-- Name: batched_background_migrations id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY user_details ALTER COLUMN user_id SET DEFAULT nextval('user_details_user_id_seq'::regclass); +ALTER TABLE ONLY public.batched_background_migrations ALTER COLUMN id SET DEFAULT nextval('public.batched_background_migrations_id_seq'::regclass); -ALTER TABLE ONLY user_group_callouts ALTER COLUMN id SET DEFAULT nextval('user_group_callouts_id_seq'::regclass); -ALTER TABLE ONLY user_namespace_callouts ALTER COLUMN id SET DEFAULT nextval('user_namespace_callouts_id_seq'::regclass); +-- +-- Name: board_assignees id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY user_permission_export_uploads ALTER COLUMN id SET DEFAULT nextval('user_permission_export_uploads_id_seq'::regclass); +ALTER TABLE ONLY public.board_assignees ALTER COLUMN id SET DEFAULT nextval('public.board_assignees_id_seq'::regclass); -ALTER TABLE ONLY user_preferences ALTER COLUMN id SET DEFAULT nextval('user_preferences_id_seq'::regclass); -ALTER TABLE ONLY user_project_callouts ALTER COLUMN id SET DEFAULT nextval('user_project_callouts_id_seq'::regclass); +-- +-- Name: board_group_recent_visits id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY user_statuses ALTER COLUMN user_id SET DEFAULT nextval('user_statuses_user_id_seq'::regclass); +ALTER TABLE ONLY public.board_group_recent_visits ALTER COLUMN id SET DEFAULT nextval('public.board_group_recent_visits_id_seq'::regclass); -ALTER TABLE ONLY user_synced_attributes_metadata ALTER COLUMN id SET DEFAULT nextval('user_synced_attributes_metadata_id_seq'::regclass); -ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass); +-- +-- Name: board_labels id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY users_ops_dashboard_projects ALTER COLUMN id SET DEFAULT nextval('users_ops_dashboard_projects_id_seq'::regclass); +ALTER TABLE ONLY public.board_labels ALTER COLUMN id SET DEFAULT nextval('public.board_labels_id_seq'::regclass); -ALTER TABLE ONLY users_star_projects ALTER COLUMN id SET DEFAULT nextval('users_star_projects_id_seq'::regclass); -ALTER TABLE ONLY users_statistics ALTER COLUMN id SET DEFAULT nextval('users_statistics_id_seq'::regclass); +-- +-- Name: board_project_recent_visits id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY value_stream_dashboard_counts ALTER COLUMN id SET DEFAULT nextval('value_stream_dashboard_counts_id_seq'::regclass); +ALTER TABLE ONLY public.board_project_recent_visits ALTER COLUMN id SET DEFAULT nextval('public.board_project_recent_visits_id_seq'::regclass); -ALTER TABLE ONLY virtual_registries_packages_maven_cached_responses ALTER COLUMN id SET DEFAULT nextval('virtual_registries_packages_maven_cached_responses_id_seq'::regclass); -ALTER TABLE ONLY virtual_registries_packages_maven_registries ALTER COLUMN id SET DEFAULT nextval('virtual_registries_packages_maven_registries_id_seq'::regclass); +-- +-- Name: board_user_preferences id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY virtual_registries_packages_maven_registry_upstreams ALTER COLUMN id SET DEFAULT nextval('virtual_registries_packages_maven_registry_upstreams_id_seq'::regclass); +ALTER TABLE ONLY public.board_user_preferences ALTER COLUMN id SET DEFAULT nextval('public.board_user_preferences_id_seq'::regclass); -ALTER TABLE ONLY virtual_registries_packages_maven_upstreams ALTER COLUMN id SET DEFAULT nextval('virtual_registries_packages_maven_upstreams_id_seq'::regclass); -ALTER TABLE ONLY vs_code_settings ALTER COLUMN id SET DEFAULT nextval('vs_code_settings_id_seq'::regclass); +-- +-- Name: boards id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerabilities ALTER COLUMN id SET DEFAULT nextval('vulnerabilities_id_seq'::regclass); +ALTER TABLE ONLY public.boards ALTER COLUMN id SET DEFAULT nextval('public.boards_id_seq'::regclass); -ALTER TABLE ONLY vulnerability_export_parts ALTER COLUMN id SET DEFAULT nextval('vulnerability_export_parts_id_seq'::regclass); -ALTER TABLE ONLY vulnerability_exports ALTER COLUMN id SET DEFAULT nextval('vulnerability_exports_id_seq'::regclass); +-- +-- Name: boards_epic_board_labels id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_external_issue_links ALTER COLUMN id SET DEFAULT nextval('vulnerability_external_issue_links_id_seq'::regclass); +ALTER TABLE ONLY public.boards_epic_board_labels ALTER COLUMN id SET DEFAULT nextval('public.boards_epic_board_labels_id_seq'::regclass); -ALTER TABLE ONLY vulnerability_feedback ALTER COLUMN id SET DEFAULT nextval('vulnerability_feedback_id_seq'::regclass); -ALTER TABLE ONLY vulnerability_finding_evidences ALTER COLUMN id SET DEFAULT nextval('vulnerability_finding_evidences_id_seq'::regclass); +-- +-- Name: boards_epic_board_positions id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_finding_links ALTER COLUMN id SET DEFAULT nextval('vulnerability_finding_links_id_seq'::regclass); +ALTER TABLE ONLY public.boards_epic_board_positions ALTER COLUMN id SET DEFAULT nextval('public.boards_epic_board_positions_id_seq'::regclass); -ALTER TABLE ONLY vulnerability_finding_signatures ALTER COLUMN id SET DEFAULT nextval('vulnerability_finding_signatures_id_seq'::regclass); -ALTER TABLE ONLY vulnerability_findings_remediations ALTER COLUMN id SET DEFAULT nextval('vulnerability_findings_remediations_id_seq'::regclass); +-- +-- Name: boards_epic_board_recent_visits id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_flags ALTER COLUMN id SET DEFAULT nextval('vulnerability_flags_id_seq'::regclass); +ALTER TABLE ONLY public.boards_epic_board_recent_visits ALTER COLUMN id SET DEFAULT nextval('public.boards_epic_board_recent_visits_id_seq'::regclass); -ALTER TABLE ONLY vulnerability_historical_statistics ALTER COLUMN id SET DEFAULT nextval('vulnerability_historical_statistics_id_seq'::regclass); -ALTER TABLE ONLY vulnerability_identifiers ALTER COLUMN id SET DEFAULT nextval('vulnerability_identifiers_id_seq'::regclass); +-- +-- Name: boards_epic_boards id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_issue_links ALTER COLUMN id SET DEFAULT nextval('vulnerability_issue_links_id_seq'::regclass); +ALTER TABLE ONLY public.boards_epic_boards ALTER COLUMN id SET DEFAULT nextval('public.boards_epic_boards_id_seq'::regclass); -ALTER TABLE ONLY vulnerability_merge_request_links ALTER COLUMN id SET DEFAULT nextval('vulnerability_merge_request_links_id_seq'::regclass); -ALTER TABLE ONLY vulnerability_namespace_historical_statistics ALTER COLUMN id SET DEFAULT nextval('vulnerability_namespace_historical_statistics_id_seq'::regclass); +-- +-- Name: boards_epic_list_user_preferences id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_occurrence_identifiers ALTER COLUMN id SET DEFAULT nextval('vulnerability_occurrence_identifiers_id_seq'::regclass); +ALTER TABLE ONLY public.boards_epic_list_user_preferences ALTER COLUMN id SET DEFAULT nextval('public.boards_epic_list_user_preferences_id_seq'::regclass); -ALTER TABLE ONLY vulnerability_occurrence_pipelines ALTER COLUMN id SET DEFAULT nextval('vulnerability_occurrence_pipelines_id_seq'::regclass); -ALTER TABLE ONLY vulnerability_occurrences ALTER COLUMN id SET DEFAULT nextval('vulnerability_occurrences_id_seq'::regclass); +-- +-- Name: boards_epic_lists id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_reads ALTER COLUMN id SET DEFAULT nextval('vulnerability_reads_id_seq'::regclass); +ALTER TABLE ONLY public.boards_epic_lists ALTER COLUMN id SET DEFAULT nextval('public.boards_epic_lists_id_seq'::regclass); -ALTER TABLE ONLY vulnerability_remediations ALTER COLUMN id SET DEFAULT nextval('vulnerability_remediations_id_seq'::regclass); -ALTER TABLE ONLY vulnerability_scanners ALTER COLUMN id SET DEFAULT nextval('vulnerability_scanners_id_seq'::regclass); +-- +-- Name: boards_epic_user_preferences id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_state_transitions ALTER COLUMN id SET DEFAULT nextval('vulnerability_state_transitions_id_seq'::regclass); +ALTER TABLE ONLY public.boards_epic_user_preferences ALTER COLUMN id SET DEFAULT nextval('public.boards_epic_user_preferences_id_seq'::regclass); -ALTER TABLE ONLY vulnerability_statistics ALTER COLUMN id SET DEFAULT nextval('vulnerability_statistics_id_seq'::regclass); -ALTER TABLE ONLY vulnerability_user_mentions ALTER COLUMN id SET DEFAULT nextval('vulnerability_user_mentions_id_seq'::regclass); +-- +-- Name: broadcast_messages id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY web_hook_logs ALTER COLUMN id SET DEFAULT nextval('web_hook_logs_id_seq'::regclass); +ALTER TABLE ONLY public.broadcast_messages ALTER COLUMN id SET DEFAULT nextval('public.broadcast_messages_id_seq'::regclass); -ALTER TABLE ONLY web_hooks ALTER COLUMN id SET DEFAULT nextval('web_hooks_id_seq'::regclass); -ALTER TABLE ONLY webauthn_registrations ALTER COLUMN id SET DEFAULT nextval('webauthn_registrations_id_seq'::regclass); +-- +-- Name: bulk_import_batch_trackers id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY wiki_page_meta ALTER COLUMN id SET DEFAULT nextval('wiki_page_meta_id_seq'::regclass); +ALTER TABLE ONLY public.bulk_import_batch_trackers ALTER COLUMN id SET DEFAULT nextval('public.bulk_import_batch_trackers_id_seq'::regclass); -ALTER TABLE ONLY wiki_page_slugs ALTER COLUMN id SET DEFAULT nextval('wiki_page_slugs_id_seq'::regclass); -ALTER TABLE ONLY wiki_repository_states ALTER COLUMN id SET DEFAULT nextval('wiki_repository_states_id_seq'::regclass); +-- +-- Name: bulk_import_configurations id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY work_item_hierarchy_restrictions ALTER COLUMN id SET DEFAULT nextval('work_item_hierarchy_restrictions_id_seq'::regclass); +ALTER TABLE ONLY public.bulk_import_configurations ALTER COLUMN id SET DEFAULT nextval('public.bulk_import_configurations_id_seq'::regclass); -ALTER TABLE ONLY work_item_parent_links ALTER COLUMN id SET DEFAULT nextval('work_item_parent_links_id_seq'::regclass); -ALTER TABLE ONLY work_item_related_link_restrictions ALTER COLUMN id SET DEFAULT nextval('work_item_related_link_restrictions_id_seq'::regclass); +-- +-- Name: bulk_import_entities id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY work_item_types ALTER COLUMN id SET DEFAULT nextval('work_item_types_id_seq'::regclass); +ALTER TABLE ONLY public.bulk_import_entities ALTER COLUMN id SET DEFAULT nextval('public.bulk_import_entities_id_seq'::regclass); -ALTER TABLE ONLY work_item_widget_definitions ALTER COLUMN id SET DEFAULT nextval('work_item_widget_definitions_id_seq'::regclass); -ALTER TABLE ONLY workspace_variables ALTER COLUMN id SET DEFAULT nextval('workspace_variables_id_seq'::regclass); +-- +-- Name: bulk_import_export_batches id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY workspaces ALTER COLUMN id SET DEFAULT nextval('workspaces_id_seq'::regclass); +ALTER TABLE ONLY public.bulk_import_export_batches ALTER COLUMN id SET DEFAULT nextval('public.bulk_import_export_batches_id_seq'::regclass); -ALTER TABLE ONLY workspaces_agent_configs ALTER COLUMN id SET DEFAULT nextval('workspaces_agent_configs_id_seq'::regclass); -ALTER TABLE ONLY x509_certificates ALTER COLUMN id SET DEFAULT nextval('x509_certificates_id_seq'::regclass); +-- +-- Name: bulk_import_export_uploads id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY x509_commit_signatures ALTER COLUMN id SET DEFAULT nextval('x509_commit_signatures_id_seq'::regclass); +ALTER TABLE ONLY public.bulk_import_export_uploads ALTER COLUMN id SET DEFAULT nextval('public.bulk_import_export_uploads_id_seq'::regclass); -ALTER TABLE ONLY x509_issuers ALTER COLUMN id SET DEFAULT nextval('x509_issuers_id_seq'::regclass); -ALTER TABLE ONLY xray_reports ALTER COLUMN id SET DEFAULT nextval('xray_reports_id_seq'::regclass); +-- +-- Name: bulk_import_exports id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY zentao_tracker_data ALTER COLUMN id SET DEFAULT nextval('zentao_tracker_data_id_seq'::regclass); +ALTER TABLE ONLY public.bulk_import_exports ALTER COLUMN id SET DEFAULT nextval('public.bulk_import_exports_id_seq'::regclass); -ALTER TABLE ONLY zoekt_enabled_namespaces ALTER COLUMN id SET DEFAULT nextval('zoekt_enabled_namespaces_id_seq'::regclass); -ALTER TABLE ONLY zoekt_indices ALTER COLUMN id SET DEFAULT nextval('zoekt_indices_id_seq'::regclass); +-- +-- Name: bulk_import_failures id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY zoekt_nodes ALTER COLUMN id SET DEFAULT nextval('zoekt_nodes_id_seq'::regclass); +ALTER TABLE ONLY public.bulk_import_failures ALTER COLUMN id SET DEFAULT nextval('public.bulk_import_failures_id_seq'::regclass); -ALTER TABLE ONLY zoekt_replicas ALTER COLUMN id SET DEFAULT nextval('zoekt_replicas_id_seq'::regclass); -ALTER TABLE ONLY zoekt_repositories ALTER COLUMN id SET DEFAULT nextval('zoekt_repositories_id_seq'::regclass); +-- +-- Name: bulk_import_trackers id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY zoekt_shards ALTER COLUMN id SET DEFAULT nextval('zoekt_shards_id_seq'::regclass); +ALTER TABLE ONLY public.bulk_import_trackers ALTER COLUMN id SET DEFAULT nextval('public.bulk_import_trackers_id_seq'::regclass); -ALTER TABLE ONLY zoom_meetings ALTER COLUMN id SET DEFAULT nextval('zoom_meetings_id_seq'::regclass); -ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +-- +-- Name: bulk_imports id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_00_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY public.bulk_imports ALTER COLUMN id SET DEFAULT nextval('public.bulk_imports_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_01_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_02_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +-- +-- Name: catalog_resource_components id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_03_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY public.catalog_resource_components ALTER COLUMN id SET DEFAULT nextval('public.catalog_resource_components_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_04_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_05_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +-- +-- Name: catalog_resource_versions id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_06_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY public.catalog_resource_versions ALTER COLUMN id SET DEFAULT nextval('public.catalog_resource_versions_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_07_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_08_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +-- +-- Name: catalog_resources id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_09_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY public.catalog_resources ALTER COLUMN id SET DEFAULT nextval('public.catalog_resources_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_10_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_11_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +-- +-- Name: catalog_verified_namespaces id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_12_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY public.catalog_verified_namespaces ALTER COLUMN id SET DEFAULT nextval('public.catalog_verified_namespaces_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_13_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_14_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +-- +-- Name: chat_names id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_15_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY public.chat_names ALTER COLUMN id SET DEFAULT nextval('public.chat_names_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_16_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_17_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +-- +-- Name: chat_teams id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_18_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY public.chat_teams ALTER COLUMN id SET DEFAULT nextval('public.chat_teams_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_19_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_20_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +-- +-- Name: ci_build_needs id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_21_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY public.ci_build_needs ALTER COLUMN id SET DEFAULT nextval('public.ci_build_needs_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_22_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_23_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +-- +-- Name: ci_build_pending_states id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_24_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY public.ci_build_pending_states ALTER COLUMN id SET DEFAULT nextval('public.ci_build_pending_states_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_25_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_26_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +-- +-- Name: ci_build_trace_chunks id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_27_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY public.ci_build_trace_chunks ALTER COLUMN id SET DEFAULT nextval('public.ci_build_trace_chunks_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_28_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_29_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +-- +-- Name: ci_builds_runner_session id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_30_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY public.ci_builds_runner_session ALTER COLUMN id SET DEFAULT nextval('public.ci_builds_runner_session_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_31_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +-- +-- Name: ci_daily_build_group_report_results id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_00_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY public.ci_daily_build_group_report_results ALTER COLUMN id SET DEFAULT nextval('public.ci_daily_build_group_report_results_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_01_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_02_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +-- +-- Name: ci_deleted_objects id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_03_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY public.ci_deleted_objects ALTER COLUMN id SET DEFAULT nextval('public.ci_deleted_objects_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_04_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_05_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +-- +-- Name: ci_freeze_periods id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_06_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY public.ci_freeze_periods ALTER COLUMN id SET DEFAULT nextval('public.ci_freeze_periods_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_07_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_08_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +-- +-- Name: ci_group_variables id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_09_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY public.ci_group_variables ALTER COLUMN id SET DEFAULT nextval('public.ci_group_variables_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_10_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_11_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +-- +-- Name: ci_instance_variables id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_12_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY public.ci_instance_variables ALTER COLUMN id SET DEFAULT nextval('public.ci_instance_variables_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_13_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_14_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +-- +-- Name: ci_job_token_group_scope_links id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_15_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY public.ci_job_token_group_scope_links ALTER COLUMN id SET DEFAULT nextval('public.ci_job_token_group_scope_links_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_16_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_17_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +-- +-- Name: ci_job_token_project_scope_links id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_18_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY public.ci_job_token_project_scope_links ALTER COLUMN id SET DEFAULT nextval('public.ci_job_token_project_scope_links_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_19_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_20_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +-- +-- Name: ci_job_variables id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_21_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY public.ci_job_variables ALTER COLUMN id SET DEFAULT nextval('public.ci_job_variables_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_22_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_23_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +-- +-- Name: ci_minutes_additional_packs id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_24_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY public.ci_minutes_additional_packs ALTER COLUMN id SET DEFAULT nextval('public.ci_minutes_additional_packs_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_25_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_26_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +-- +-- Name: ci_namespace_mirrors id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_27_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY public.ci_namespace_mirrors ALTER COLUMN id SET DEFAULT nextval('public.ci_namespace_mirrors_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_28_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_29_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +-- +-- Name: ci_namespace_monthly_usages id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_30_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY public.ci_namespace_monthly_usages ALTER COLUMN id SET DEFAULT nextval('public.ci_namespace_monthly_usages_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_31_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY issue_search_data - ADD CONSTRAINT issue_search_data_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_pending_builds id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_00 - ADD CONSTRAINT issue_search_data_00_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_pending_builds ALTER COLUMN id SET DEFAULT nextval('public.ci_pending_builds_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_01 - ADD CONSTRAINT issue_search_data_01_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_02 - ADD CONSTRAINT issue_search_data_02_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_pipeline_artifacts id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_03 - ADD CONSTRAINT issue_search_data_03_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_pipeline_artifacts ALTER COLUMN id SET DEFAULT nextval('public.ci_pipeline_artifacts_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_04 - ADD CONSTRAINT issue_search_data_04_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_05 - ADD CONSTRAINT issue_search_data_05_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_pipeline_chat_data id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_06 - ADD CONSTRAINT issue_search_data_06_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_pipeline_chat_data ALTER COLUMN id SET DEFAULT nextval('public.ci_pipeline_chat_data_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_07 - ADD CONSTRAINT issue_search_data_07_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_08 - ADD CONSTRAINT issue_search_data_08_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_pipeline_messages id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_09 - ADD CONSTRAINT issue_search_data_09_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_pipeline_messages ALTER COLUMN id SET DEFAULT nextval('public.ci_pipeline_messages_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_10 - ADD CONSTRAINT issue_search_data_10_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_11 - ADD CONSTRAINT issue_search_data_11_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_pipeline_schedule_variables id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_12 - ADD CONSTRAINT issue_search_data_12_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_pipeline_schedule_variables ALTER COLUMN id SET DEFAULT nextval('public.ci_pipeline_schedule_variables_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_13 - ADD CONSTRAINT issue_search_data_13_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_14 - ADD CONSTRAINT issue_search_data_14_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_pipeline_schedules id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_15 - ADD CONSTRAINT issue_search_data_15_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_pipeline_schedules ALTER COLUMN id SET DEFAULT nextval('public.ci_pipeline_schedules_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_16 - ADD CONSTRAINT issue_search_data_16_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_17 - ADD CONSTRAINT issue_search_data_17_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_project_mirrors id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_18 - ADD CONSTRAINT issue_search_data_18_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_project_mirrors ALTER COLUMN id SET DEFAULT nextval('public.ci_project_mirrors_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_19 - ADD CONSTRAINT issue_search_data_19_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_20 - ADD CONSTRAINT issue_search_data_20_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_project_monthly_usages id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_21 - ADD CONSTRAINT issue_search_data_21_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_project_monthly_usages ALTER COLUMN id SET DEFAULT nextval('public.ci_project_monthly_usages_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_22 - ADD CONSTRAINT issue_search_data_22_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_23 - ADD CONSTRAINT issue_search_data_23_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_refs id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_24 - ADD CONSTRAINT issue_search_data_24_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_refs ALTER COLUMN id SET DEFAULT nextval('public.ci_refs_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_25 - ADD CONSTRAINT issue_search_data_25_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_26 - ADD CONSTRAINT issue_search_data_26_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_resource_groups id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_27 - ADD CONSTRAINT issue_search_data_27_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_resource_groups ALTER COLUMN id SET DEFAULT nextval('public.ci_resource_groups_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_28 - ADD CONSTRAINT issue_search_data_28_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_29 - ADD CONSTRAINT issue_search_data_29_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_resources id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_30 - ADD CONSTRAINT issue_search_data_30_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_resources ALTER COLUMN id SET DEFAULT nextval('public.ci_resources_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_31 - ADD CONSTRAINT issue_search_data_31_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_32 - ADD CONSTRAINT issue_search_data_32_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_runner_machines id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_33 - ADD CONSTRAINT issue_search_data_33_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_runner_machines ALTER COLUMN id SET DEFAULT nextval('public.ci_runner_machines_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_34 - ADD CONSTRAINT issue_search_data_34_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_35 - ADD CONSTRAINT issue_search_data_35_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_runner_namespaces id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_36 - ADD CONSTRAINT issue_search_data_36_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_runner_namespaces ALTER COLUMN id SET DEFAULT nextval('public.ci_runner_namespaces_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_37 - ADD CONSTRAINT issue_search_data_37_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_38 - ADD CONSTRAINT issue_search_data_38_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_runner_projects id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_39 - ADD CONSTRAINT issue_search_data_39_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_runner_projects ALTER COLUMN id SET DEFAULT nextval('public.ci_runner_projects_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_40 - ADD CONSTRAINT issue_search_data_40_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_41 - ADD CONSTRAINT issue_search_data_41_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_runners id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_42 - ADD CONSTRAINT issue_search_data_42_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_runners ALTER COLUMN id SET DEFAULT nextval('public.ci_runners_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_43 - ADD CONSTRAINT issue_search_data_43_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_44 - ADD CONSTRAINT issue_search_data_44_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_running_builds id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_45 - ADD CONSTRAINT issue_search_data_45_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_running_builds ALTER COLUMN id SET DEFAULT nextval('public.ci_running_builds_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_46 - ADD CONSTRAINT issue_search_data_46_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_47 - ADD CONSTRAINT issue_search_data_47_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_secure_file_states ci_secure_file_id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_48 - ADD CONSTRAINT issue_search_data_48_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_secure_file_states ALTER COLUMN ci_secure_file_id SET DEFAULT nextval('public.ci_secure_file_states_ci_secure_file_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_49 - ADD CONSTRAINT issue_search_data_49_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_50 - ADD CONSTRAINT issue_search_data_50_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_secure_files id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_51 - ADD CONSTRAINT issue_search_data_51_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_secure_files ALTER COLUMN id SET DEFAULT nextval('public.ci_secure_files_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_52 - ADD CONSTRAINT issue_search_data_52_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_53 - ADD CONSTRAINT issue_search_data_53_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_sources_pipelines id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_54 - ADD CONSTRAINT issue_search_data_54_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_sources_pipelines ALTER COLUMN id SET DEFAULT nextval('public.ci_sources_pipelines_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_55 - ADD CONSTRAINT issue_search_data_55_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_56 - ADD CONSTRAINT issue_search_data_56_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_sources_projects id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_57 - ADD CONSTRAINT issue_search_data_57_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_sources_projects ALTER COLUMN id SET DEFAULT nextval('public.ci_sources_projects_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_58 - ADD CONSTRAINT issue_search_data_58_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_59 - ADD CONSTRAINT issue_search_data_59_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_subscriptions_projects id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_60 - ADD CONSTRAINT issue_search_data_60_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_subscriptions_projects ALTER COLUMN id SET DEFAULT nextval('public.ci_subscriptions_projects_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_61 - ADD CONSTRAINT issue_search_data_61_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_62 - ADD CONSTRAINT issue_search_data_62_pkey PRIMARY KEY (project_id, issue_id); +-- +-- Name: ci_trigger_requests id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_63 - ADD CONSTRAINT issue_search_data_63_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY public.ci_trigger_requests ALTER COLUMN id SET DEFAULT nextval('public.ci_trigger_requests_id_seq'::regclass); -ALTER TABLE ONLY namespace_descendants - ADD CONSTRAINT namespace_descendants_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_00 - ADD CONSTRAINT namespace_descendants_00_pkey PRIMARY KEY (namespace_id); +-- +-- Name: ci_triggers id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_01 - ADD CONSTRAINT namespace_descendants_01_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY public.ci_triggers ALTER COLUMN id SET DEFAULT nextval('public.ci_triggers_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_02 - ADD CONSTRAINT namespace_descendants_02_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_03 - ADD CONSTRAINT namespace_descendants_03_pkey PRIMARY KEY (namespace_id); +-- +-- Name: ci_unit_test_failures id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_04 - ADD CONSTRAINT namespace_descendants_04_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY public.ci_unit_test_failures ALTER COLUMN id SET DEFAULT nextval('public.ci_unit_test_failures_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_05 - ADD CONSTRAINT namespace_descendants_05_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_06 - ADD CONSTRAINT namespace_descendants_06_pkey PRIMARY KEY (namespace_id); +-- +-- Name: ci_unit_tests id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_07 - ADD CONSTRAINT namespace_descendants_07_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY public.ci_unit_tests ALTER COLUMN id SET DEFAULT nextval('public.ci_unit_tests_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_08 - ADD CONSTRAINT namespace_descendants_08_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_09 - ADD CONSTRAINT namespace_descendants_09_pkey PRIMARY KEY (namespace_id); +-- +-- Name: ci_variables id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_10 - ADD CONSTRAINT namespace_descendants_10_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY public.ci_variables ALTER COLUMN id SET DEFAULT nextval('public.ci_variables_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_11 - ADD CONSTRAINT namespace_descendants_11_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_12 - ADD CONSTRAINT namespace_descendants_12_pkey PRIMARY KEY (namespace_id); +-- +-- Name: cloud_connector_access id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_13 - ADD CONSTRAINT namespace_descendants_13_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY public.cloud_connector_access ALTER COLUMN id SET DEFAULT nextval('public.cloud_connector_access_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_14 - ADD CONSTRAINT namespace_descendants_14_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_15 - ADD CONSTRAINT namespace_descendants_15_pkey PRIMARY KEY (namespace_id); +-- +-- Name: cluster_agent_tokens id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_16 - ADD CONSTRAINT namespace_descendants_16_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY public.cluster_agent_tokens ALTER COLUMN id SET DEFAULT nextval('public.cluster_agent_tokens_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_17 - ADD CONSTRAINT namespace_descendants_17_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_18 - ADD CONSTRAINT namespace_descendants_18_pkey PRIMARY KEY (namespace_id); +-- +-- Name: cluster_agent_url_configurations id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_19 - ADD CONSTRAINT namespace_descendants_19_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY public.cluster_agent_url_configurations ALTER COLUMN id SET DEFAULT nextval('public.cluster_agent_url_configurations_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_20 - ADD CONSTRAINT namespace_descendants_20_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_21 - ADD CONSTRAINT namespace_descendants_21_pkey PRIMARY KEY (namespace_id); +-- +-- Name: cluster_agents id; Type: DEFAULT; Schema: public; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_22 - ADD CONSTRAINT namespace_descendants_22_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY public.cluster_agents ALTER COLUMN id SET DEFAULT nextval('public.cluster_agents_id_seq'::regclass); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_23 - ADD CONSTRAINT namespace_descendants_23_pkey PRIMARY KEY (namespace_id); + +-- +-- Name: cluster_enabled_grants id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.cluster_enabled_grants ALTER COLUMN id SET DEFAULT nextval('public.cluster_enabled_grants_id_seq'::regclass); + + +-- +-- Name: cluster_groups id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.cluster_groups ALTER COLUMN id SET DEFAULT nextval('public.cluster_groups_id_seq'::regclass); + + +-- +-- Name: cluster_platforms_kubernetes id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.cluster_platforms_kubernetes ALTER COLUMN id SET DEFAULT nextval('public.cluster_platforms_kubernetes_id_seq'::regclass); + + +-- +-- Name: cluster_projects id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.cluster_projects ALTER COLUMN id SET DEFAULT nextval('public.cluster_projects_id_seq'::regclass); + + +-- +-- Name: cluster_providers_aws id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.cluster_providers_aws ALTER COLUMN id SET DEFAULT nextval('public.cluster_providers_aws_id_seq'::regclass); + + +-- +-- Name: cluster_providers_gcp id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.cluster_providers_gcp ALTER COLUMN id SET DEFAULT nextval('public.cluster_providers_gcp_id_seq'::regclass); + + +-- +-- Name: clusters id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.clusters ALTER COLUMN id SET DEFAULT nextval('public.clusters_id_seq'::regclass); + + +-- +-- Name: clusters_kubernetes_namespaces id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.clusters_kubernetes_namespaces ALTER COLUMN id SET DEFAULT nextval('public.clusters_kubernetes_namespaces_id_seq'::regclass); + + +-- +-- Name: commit_user_mentions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.commit_user_mentions ALTER COLUMN id SET DEFAULT nextval('public.commit_user_mentions_id_seq'::regclass); + + +-- +-- Name: compliance_checks id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.compliance_checks ALTER COLUMN id SET DEFAULT nextval('public.compliance_checks_id_seq'::regclass); + + +-- +-- Name: compliance_framework_security_policies id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.compliance_framework_security_policies ALTER COLUMN id SET DEFAULT nextval('public.compliance_framework_security_policies_id_seq'::regclass); + + +-- +-- Name: compliance_management_frameworks id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.compliance_management_frameworks ALTER COLUMN id SET DEFAULT nextval('public.compliance_management_frameworks_id_seq'::regclass); + + +-- +-- Name: compliance_requirements id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.compliance_requirements ALTER COLUMN id SET DEFAULT nextval('public.compliance_requirements_id_seq'::regclass); + + +-- +-- Name: container_registry_protection_rules id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.container_registry_protection_rules ALTER COLUMN id SET DEFAULT nextval('public.container_registry_protection_rules_id_seq'::regclass); + + +-- +-- Name: container_repositories id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.container_repositories ALTER COLUMN id SET DEFAULT nextval('public.container_repositories_id_seq'::regclass); + + +-- +-- Name: content_blocked_states id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.content_blocked_states ALTER COLUMN id SET DEFAULT nextval('public.content_blocked_states_id_seq'::regclass); + + +-- +-- Name: conversational_development_index_metrics id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.conversational_development_index_metrics ALTER COLUMN id SET DEFAULT nextval('public.conversational_development_index_metrics_id_seq'::regclass); + + +-- +-- Name: country_access_logs id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.country_access_logs ALTER COLUMN id SET DEFAULT nextval('public.country_access_logs_id_seq'::regclass); + + +-- +-- Name: coverage_fuzzing_corpuses id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.coverage_fuzzing_corpuses ALTER COLUMN id SET DEFAULT nextval('public.coverage_fuzzing_corpuses_id_seq'::regclass); + + +-- +-- Name: csv_issue_imports id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.csv_issue_imports ALTER COLUMN id SET DEFAULT nextval('public.csv_issue_imports_id_seq'::regclass); + + +-- +-- Name: custom_emoji id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.custom_emoji ALTER COLUMN id SET DEFAULT nextval('public.custom_emoji_id_seq'::regclass); + + +-- +-- Name: custom_software_licenses id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.custom_software_licenses ALTER COLUMN id SET DEFAULT nextval('public.custom_software_licenses_id_seq'::regclass); + + +-- +-- Name: customer_relations_contacts id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.customer_relations_contacts ALTER COLUMN id SET DEFAULT nextval('public.customer_relations_contacts_id_seq'::regclass); + + +-- +-- Name: customer_relations_organizations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.customer_relations_organizations ALTER COLUMN id SET DEFAULT nextval('public.customer_relations_organizations_id_seq'::regclass); + + +-- +-- Name: dast_pre_scan_verification_steps id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_pre_scan_verification_steps ALTER COLUMN id SET DEFAULT nextval('public.dast_pre_scan_verification_steps_id_seq'::regclass); + + +-- +-- Name: dast_pre_scan_verifications id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_pre_scan_verifications ALTER COLUMN id SET DEFAULT nextval('public.dast_pre_scan_verifications_id_seq'::regclass); + + +-- +-- Name: dast_profile_schedules id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_profile_schedules ALTER COLUMN id SET DEFAULT nextval('public.dast_profile_schedules_id_seq'::regclass); + + +-- +-- Name: dast_profiles id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_profiles ALTER COLUMN id SET DEFAULT nextval('public.dast_profiles_id_seq'::regclass); + + +-- +-- Name: dast_profiles_tags id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_profiles_tags ALTER COLUMN id SET DEFAULT nextval('public.dast_profiles_tags_id_seq'::regclass); + + +-- +-- Name: dast_scanner_profiles id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_scanner_profiles ALTER COLUMN id SET DEFAULT nextval('public.dast_scanner_profiles_id_seq'::regclass); + + +-- +-- Name: dast_site_profile_secret_variables id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_site_profile_secret_variables ALTER COLUMN id SET DEFAULT nextval('public.dast_site_profile_secret_variables_id_seq'::regclass); + + +-- +-- Name: dast_site_profiles id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_site_profiles ALTER COLUMN id SET DEFAULT nextval('public.dast_site_profiles_id_seq'::regclass); + + +-- +-- Name: dast_site_tokens id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_site_tokens ALTER COLUMN id SET DEFAULT nextval('public.dast_site_tokens_id_seq'::regclass); + + +-- +-- Name: dast_site_validations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_site_validations ALTER COLUMN id SET DEFAULT nextval('public.dast_site_validations_id_seq'::regclass); + + +-- +-- Name: dast_sites id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_sites ALTER COLUMN id SET DEFAULT nextval('public.dast_sites_id_seq'::regclass); + + +-- +-- Name: dependency_list_export_parts id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dependency_list_export_parts ALTER COLUMN id SET DEFAULT nextval('public.dependency_list_export_parts_id_seq'::regclass); + + +-- +-- Name: dependency_list_exports id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dependency_list_exports ALTER COLUMN id SET DEFAULT nextval('public.dependency_list_exports_id_seq'::regclass); + + +-- +-- Name: dependency_proxy_blobs id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dependency_proxy_blobs ALTER COLUMN id SET DEFAULT nextval('public.dependency_proxy_blobs_id_seq'::regclass); + + +-- +-- Name: dependency_proxy_group_settings id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dependency_proxy_group_settings ALTER COLUMN id SET DEFAULT nextval('public.dependency_proxy_group_settings_id_seq'::regclass); + + +-- +-- Name: dependency_proxy_manifests id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dependency_proxy_manifests ALTER COLUMN id SET DEFAULT nextval('public.dependency_proxy_manifests_id_seq'::regclass); + + +-- +-- Name: deploy_keys_projects id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.deploy_keys_projects ALTER COLUMN id SET DEFAULT nextval('public.deploy_keys_projects_id_seq'::regclass); + + +-- +-- Name: deploy_tokens id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.deploy_tokens ALTER COLUMN id SET DEFAULT nextval('public.deploy_tokens_id_seq'::regclass); + + +-- +-- Name: deployment_approvals id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.deployment_approvals ALTER COLUMN id SET DEFAULT nextval('public.deployment_approvals_id_seq'::regclass); + + +-- +-- Name: deployments id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.deployments ALTER COLUMN id SET DEFAULT nextval('public.deployments_id_seq'::regclass); + + +-- +-- Name: description_versions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.description_versions ALTER COLUMN id SET DEFAULT nextval('public.description_versions_id_seq'::regclass); + + +-- +-- Name: design_management_designs id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.design_management_designs ALTER COLUMN id SET DEFAULT nextval('public.design_management_designs_id_seq'::regclass); + + +-- +-- Name: design_management_designs_versions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.design_management_designs_versions ALTER COLUMN id SET DEFAULT nextval('public.design_management_designs_versions_id_seq'::regclass); + + +-- +-- Name: design_management_repositories id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.design_management_repositories ALTER COLUMN id SET DEFAULT nextval('public.design_management_repositories_id_seq'::regclass); + + +-- +-- Name: design_management_versions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.design_management_versions ALTER COLUMN id SET DEFAULT nextval('public.design_management_versions_id_seq'::regclass); + + +-- +-- Name: design_user_mentions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.design_user_mentions ALTER COLUMN id SET DEFAULT nextval('public.design_user_mentions_id_seq'::regclass); + + +-- +-- Name: detached_partitions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.detached_partitions ALTER COLUMN id SET DEFAULT nextval('public.detached_partitions_id_seq'::regclass); + + +-- +-- Name: diff_note_positions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.diff_note_positions ALTER COLUMN id SET DEFAULT nextval('public.diff_note_positions_id_seq'::regclass); + + +-- +-- Name: dingtalk_tracker_data id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dingtalk_tracker_data ALTER COLUMN id SET DEFAULT nextval('public.dingtalk_tracker_data_id_seq'::regclass); + + +-- +-- Name: dora_configurations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dora_configurations ALTER COLUMN id SET DEFAULT nextval('public.dora_configurations_id_seq'::regclass); + + +-- +-- Name: dora_daily_metrics id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dora_daily_metrics ALTER COLUMN id SET DEFAULT nextval('public.dora_daily_metrics_id_seq'::regclass); + + +-- +-- Name: dora_performance_scores id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dora_performance_scores ALTER COLUMN id SET DEFAULT nextval('public.dora_performance_scores_id_seq'::regclass); + + +-- +-- Name: draft_notes id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.draft_notes ALTER COLUMN id SET DEFAULT nextval('public.draft_notes_id_seq'::regclass); + + +-- +-- Name: duo_workflows_checkpoints id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.duo_workflows_checkpoints ALTER COLUMN id SET DEFAULT nextval('public.duo_workflows_checkpoints_id_seq'::regclass); + + +-- +-- Name: duo_workflows_workflows id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.duo_workflows_workflows ALTER COLUMN id SET DEFAULT nextval('public.duo_workflows_workflows_id_seq'::regclass); + + +-- +-- Name: early_access_program_tracking_events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.early_access_program_tracking_events ALTER COLUMN id SET DEFAULT nextval('public.early_access_program_tracking_events_id_seq'::regclass); + + +-- +-- Name: elastic_index_settings id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.elastic_index_settings ALTER COLUMN id SET DEFAULT nextval('public.elastic_index_settings_id_seq'::regclass); + + +-- +-- Name: elastic_reindexing_slices id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.elastic_reindexing_slices ALTER COLUMN id SET DEFAULT nextval('public.elastic_reindexing_slices_id_seq'::regclass); + + +-- +-- Name: elastic_reindexing_subtasks id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.elastic_reindexing_subtasks ALTER COLUMN id SET DEFAULT nextval('public.elastic_reindexing_subtasks_id_seq'::regclass); + + +-- +-- Name: elastic_reindexing_tasks id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.elastic_reindexing_tasks ALTER COLUMN id SET DEFAULT nextval('public.elastic_reindexing_tasks_id_seq'::regclass); + + +-- +-- Name: emails id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.emails ALTER COLUMN id SET DEFAULT nextval('public.emails_id_seq'::regclass); + + +-- +-- Name: environments id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.environments ALTER COLUMN id SET DEFAULT nextval('public.environments_id_seq'::regclass); + + +-- +-- Name: epic_issues id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.epic_issues ALTER COLUMN id SET DEFAULT nextval('public.epic_issues_id_seq'::regclass); + + +-- +-- Name: epic_metrics id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.epic_metrics ALTER COLUMN id SET DEFAULT nextval('public.epic_metrics_id_seq'::regclass); + + +-- +-- Name: epic_user_mentions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.epic_user_mentions ALTER COLUMN id SET DEFAULT nextval('public.epic_user_mentions_id_seq'::regclass); + + +-- +-- Name: epics id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.epics ALTER COLUMN id SET DEFAULT nextval('public.epics_id_seq'::regclass); + + +-- +-- Name: error_tracking_client_keys id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.error_tracking_client_keys ALTER COLUMN id SET DEFAULT nextval('public.error_tracking_client_keys_id_seq'::regclass); + + +-- +-- Name: error_tracking_error_events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.error_tracking_error_events ALTER COLUMN id SET DEFAULT nextval('public.error_tracking_error_events_id_seq'::regclass); + + +-- +-- Name: error_tracking_errors id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.error_tracking_errors ALTER COLUMN id SET DEFAULT nextval('public.error_tracking_errors_id_seq'::regclass); + + +-- +-- Name: events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.events ALTER COLUMN id SET DEFAULT nextval('public.events_id_seq'::regclass); + + +-- +-- Name: evidences id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.evidences ALTER COLUMN id SET DEFAULT nextval('public.evidences_id_seq'::regclass); + + +-- +-- Name: external_approval_rules id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.external_approval_rules ALTER COLUMN id SET DEFAULT nextval('public.external_approval_rules_id_seq'::regclass); + + +-- +-- Name: external_pull_requests id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.external_pull_requests ALTER COLUMN id SET DEFAULT nextval('public.external_pull_requests_id_seq'::regclass); + + +-- +-- Name: external_status_checks id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.external_status_checks ALTER COLUMN id SET DEFAULT nextval('public.external_status_checks_id_seq'::regclass); + + +-- +-- Name: external_status_checks_protected_branches id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.external_status_checks_protected_branches ALTER COLUMN id SET DEFAULT nextval('public.external_status_checks_protected_branches_id_seq'::regclass); + + +-- +-- Name: feature_gates id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.feature_gates ALTER COLUMN id SET DEFAULT nextval('public.feature_gates_id_seq'::regclass); + + +-- +-- Name: features id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.features ALTER COLUMN id SET DEFAULT nextval('public.features_id_seq'::regclass); + + +-- +-- Name: fork_network_members id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.fork_network_members ALTER COLUMN id SET DEFAULT nextval('public.fork_network_members_id_seq'::regclass); + + +-- +-- Name: fork_networks id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.fork_networks ALTER COLUMN id SET DEFAULT nextval('public.fork_networks_id_seq'::regclass); + + +-- +-- Name: geo_cache_invalidation_events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.geo_cache_invalidation_events ALTER COLUMN id SET DEFAULT nextval('public.geo_cache_invalidation_events_id_seq'::regclass); + + +-- +-- Name: geo_event_log id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.geo_event_log ALTER COLUMN id SET DEFAULT nextval('public.geo_event_log_id_seq'::regclass); + + +-- +-- Name: geo_events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.geo_events ALTER COLUMN id SET DEFAULT nextval('public.geo_events_id_seq'::regclass); + + +-- +-- Name: geo_node_namespace_links id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.geo_node_namespace_links ALTER COLUMN id SET DEFAULT nextval('public.geo_node_namespace_links_id_seq'::regclass); + + +-- +-- Name: geo_node_statuses id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.geo_node_statuses ALTER COLUMN id SET DEFAULT nextval('public.geo_node_statuses_id_seq'::regclass); + + +-- +-- Name: geo_nodes id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.geo_nodes ALTER COLUMN id SET DEFAULT nextval('public.geo_nodes_id_seq'::regclass); + + +-- +-- Name: ghost_user_migrations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ghost_user_migrations ALTER COLUMN id SET DEFAULT nextval('public.ghost_user_migrations_id_seq'::regclass); + + +-- +-- Name: gitlab_subscription_histories id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.gitlab_subscription_histories ALTER COLUMN id SET DEFAULT nextval('public.gitlab_subscription_histories_id_seq'::regclass); + + +-- +-- Name: gitlab_subscriptions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.gitlab_subscriptions ALTER COLUMN id SET DEFAULT nextval('public.gitlab_subscriptions_id_seq'::regclass); + + +-- +-- Name: gpg_key_subkeys id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.gpg_key_subkeys ALTER COLUMN id SET DEFAULT nextval('public.gpg_key_subkeys_id_seq'::regclass); + + +-- +-- Name: gpg_keys id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.gpg_keys ALTER COLUMN id SET DEFAULT nextval('public.gpg_keys_id_seq'::regclass); + + +-- +-- Name: gpg_signatures id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.gpg_signatures ALTER COLUMN id SET DEFAULT nextval('public.gpg_signatures_id_seq'::regclass); + + +-- +-- Name: grafana_integrations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.grafana_integrations ALTER COLUMN id SET DEFAULT nextval('public.grafana_integrations_id_seq'::regclass); + + +-- +-- Name: group_crm_settings group_id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_crm_settings ALTER COLUMN group_id SET DEFAULT nextval('public.group_crm_settings_group_id_seq'::regclass); + + +-- +-- Name: group_custom_attributes id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_custom_attributes ALTER COLUMN id SET DEFAULT nextval('public.group_custom_attributes_id_seq'::regclass); + + +-- +-- Name: group_deploy_keys id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_deploy_keys ALTER COLUMN id SET DEFAULT nextval('public.group_deploy_keys_id_seq'::regclass); + + +-- +-- Name: group_deploy_keys_groups id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_deploy_keys_groups ALTER COLUMN id SET DEFAULT nextval('public.group_deploy_keys_groups_id_seq'::regclass); + + +-- +-- Name: group_deploy_tokens id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_deploy_tokens ALTER COLUMN id SET DEFAULT nextval('public.group_deploy_tokens_id_seq'::regclass); + + +-- +-- Name: group_group_links id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_group_links ALTER COLUMN id SET DEFAULT nextval('public.group_group_links_id_seq'::regclass); + + +-- +-- Name: group_import_states group_id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_import_states ALTER COLUMN group_id SET DEFAULT nextval('public.group_import_states_group_id_seq'::regclass); + + +-- +-- Name: group_repository_storage_moves id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_repository_storage_moves ALTER COLUMN id SET DEFAULT nextval('public.group_repository_storage_moves_id_seq'::regclass); + + +-- +-- Name: group_saved_replies id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_saved_replies ALTER COLUMN id SET DEFAULT nextval('public.group_saved_replies_id_seq'::regclass); + + +-- +-- Name: group_ssh_certificates id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_ssh_certificates ALTER COLUMN id SET DEFAULT nextval('public.group_ssh_certificates_id_seq'::regclass); + + +-- +-- Name: group_wiki_repository_states id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_wiki_repository_states ALTER COLUMN id SET DEFAULT nextval('public.group_wiki_repository_states_id_seq'::regclass); + + +-- +-- Name: groups_visits id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.groups_visits ALTER COLUMN id SET DEFAULT nextval('public.groups_visits_id_seq'::regclass); + + +-- +-- Name: historical_data id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.historical_data ALTER COLUMN id SET DEFAULT nextval('public.historical_data_id_seq'::regclass); + + +-- +-- Name: identities id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.identities ALTER COLUMN id SET DEFAULT nextval('public.identities_id_seq'::regclass); + + +-- +-- Name: import_export_uploads id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.import_export_uploads ALTER COLUMN id SET DEFAULT nextval('public.import_export_uploads_id_seq'::regclass); + + +-- +-- Name: import_failures id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.import_failures ALTER COLUMN id SET DEFAULT nextval('public.import_failures_id_seq'::regclass); + + +-- +-- Name: import_placeholder_memberships id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.import_placeholder_memberships ALTER COLUMN id SET DEFAULT nextval('public.import_placeholder_memberships_id_seq'::regclass); + + +-- +-- Name: import_source_user_placeholder_references id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.import_source_user_placeholder_references ALTER COLUMN id SET DEFAULT nextval('public.import_source_user_placeholder_references_id_seq'::regclass); + + +-- +-- Name: import_source_users id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.import_source_users ALTER COLUMN id SET DEFAULT nextval('public.import_source_users_id_seq'::regclass); + + +-- +-- Name: incident_management_escalation_policies id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_escalation_policies ALTER COLUMN id SET DEFAULT nextval('public.incident_management_escalation_policies_id_seq'::regclass); + + +-- +-- Name: incident_management_escalation_rules id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_escalation_rules ALTER COLUMN id SET DEFAULT nextval('public.incident_management_escalation_rules_id_seq'::regclass); + + +-- +-- Name: incident_management_issuable_escalation_statuses id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_issuable_escalation_statuses ALTER COLUMN id SET DEFAULT nextval('public.incident_management_issuable_escalation_statuses_id_seq'::regclass); + + +-- +-- Name: incident_management_oncall_participants id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_oncall_participants ALTER COLUMN id SET DEFAULT nextval('public.incident_management_oncall_participants_id_seq'::regclass); + + +-- +-- Name: incident_management_oncall_rotations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_oncall_rotations ALTER COLUMN id SET DEFAULT nextval('public.incident_management_oncall_rotations_id_seq'::regclass); + + +-- +-- Name: incident_management_oncall_schedules id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_oncall_schedules ALTER COLUMN id SET DEFAULT nextval('public.incident_management_oncall_schedules_id_seq'::regclass); + + +-- +-- Name: incident_management_oncall_shifts id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_oncall_shifts ALTER COLUMN id SET DEFAULT nextval('public.incident_management_oncall_shifts_id_seq'::regclass); + + +-- +-- Name: incident_management_pending_alert_escalations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_pending_alert_escalations ALTER COLUMN id SET DEFAULT nextval('public.incident_management_pending_alert_escalations_id_seq'::regclass); + + +-- +-- Name: incident_management_pending_issue_escalations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_pending_issue_escalations ALTER COLUMN id SET DEFAULT nextval('public.incident_management_pending_issue_escalations_id_seq'::regclass); + + +-- +-- Name: incident_management_timeline_event_tag_links id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_timeline_event_tag_links ALTER COLUMN id SET DEFAULT nextval('public.incident_management_timeline_event_tag_links_id_seq'::regclass); + + +-- +-- Name: incident_management_timeline_event_tags id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_timeline_event_tags ALTER COLUMN id SET DEFAULT nextval('public.incident_management_timeline_event_tags_id_seq'::regclass); + + +-- +-- Name: incident_management_timeline_events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_timeline_events ALTER COLUMN id SET DEFAULT nextval('public.incident_management_timeline_events_id_seq'::regclass); + + +-- +-- Name: index_statuses id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.index_statuses ALTER COLUMN id SET DEFAULT nextval('public.index_statuses_id_seq'::regclass); + + +-- +-- Name: insights id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.insights ALTER COLUMN id SET DEFAULT nextval('public.insights_id_seq'::regclass); + + +-- +-- Name: instance_audit_events_streaming_headers id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.instance_audit_events_streaming_headers ALTER COLUMN id SET DEFAULT nextval('public.instance_audit_events_streaming_headers_id_seq'::regclass); + + +-- +-- Name: integrations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.integrations ALTER COLUMN id SET DEFAULT nextval('public.integrations_id_seq'::regclass); + + +-- +-- Name: internal_ids id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.internal_ids ALTER COLUMN id SET DEFAULT nextval('public.internal_ids_id_seq'::regclass); + + +-- +-- Name: ip_restrictions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ip_restrictions ALTER COLUMN id SET DEFAULT nextval('public.ip_restrictions_id_seq'::regclass); + + +-- +-- Name: issuable_metric_images id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issuable_metric_images ALTER COLUMN id SET DEFAULT nextval('public.issuable_metric_images_id_seq'::regclass); + + +-- +-- Name: issuable_resource_links id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issuable_resource_links ALTER COLUMN id SET DEFAULT nextval('public.issuable_resource_links_id_seq'::regclass); + + +-- +-- Name: issuable_severities id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issuable_severities ALTER COLUMN id SET DEFAULT nextval('public.issuable_severities_id_seq'::regclass); + + +-- +-- Name: issuable_slas id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issuable_slas ALTER COLUMN id SET DEFAULT nextval('public.issuable_slas_id_seq'::regclass); + + +-- +-- Name: issue_assignment_events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issue_assignment_events ALTER COLUMN id SET DEFAULT nextval('public.issue_assignment_events_id_seq'::regclass); + + +-- +-- Name: issue_customer_relations_contacts id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issue_customer_relations_contacts ALTER COLUMN id SET DEFAULT nextval('public.issue_customer_relations_contacts_id_seq'::regclass); + + +-- +-- Name: issue_email_participants id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issue_email_participants ALTER COLUMN id SET DEFAULT nextval('public.issue_email_participants_id_seq'::regclass); + + +-- +-- Name: issue_emails id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issue_emails ALTER COLUMN id SET DEFAULT nextval('public.issue_emails_id_seq'::regclass); + + +-- +-- Name: issue_links id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issue_links ALTER COLUMN id SET DEFAULT nextval('public.issue_links_id_seq'::regclass); + + +-- +-- Name: issue_metrics id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issue_metrics ALTER COLUMN id SET DEFAULT nextval('public.issue_metrics_id_seq'::regclass); + + +-- +-- Name: issue_tracker_data id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issue_tracker_data ALTER COLUMN id SET DEFAULT nextval('public.issue_tracker_data_id_seq'::regclass); + + +-- +-- Name: issue_user_mentions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issue_user_mentions ALTER COLUMN id SET DEFAULT nextval('public.issue_user_mentions_id_seq'::regclass); + + +-- +-- Name: issues id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issues ALTER COLUMN id SET DEFAULT nextval('public.issues_id_seq'::regclass); + + +-- +-- Name: iterations_cadences id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.iterations_cadences ALTER COLUMN id SET DEFAULT nextval('public.iterations_cadences_id_seq'::regclass); + + +-- +-- Name: jira_connect_installations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.jira_connect_installations ALTER COLUMN id SET DEFAULT nextval('public.jira_connect_installations_id_seq'::regclass); + + +-- +-- Name: jira_connect_subscriptions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.jira_connect_subscriptions ALTER COLUMN id SET DEFAULT nextval('public.jira_connect_subscriptions_id_seq'::regclass); + + +-- +-- Name: jira_imports id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.jira_imports ALTER COLUMN id SET DEFAULT nextval('public.jira_imports_id_seq'::regclass); + + +-- +-- Name: jira_tracker_data id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.jira_tracker_data ALTER COLUMN id SET DEFAULT nextval('public.jira_tracker_data_id_seq'::regclass); + + +-- +-- Name: keys id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.keys ALTER COLUMN id SET DEFAULT nextval('public.keys_id_seq'::regclass); + + +-- +-- Name: label_links id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.label_links ALTER COLUMN id SET DEFAULT nextval('public.label_links_id_seq'::regclass); + + +-- +-- Name: label_priorities id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.label_priorities ALTER COLUMN id SET DEFAULT nextval('public.label_priorities_id_seq'::regclass); + + +-- +-- Name: labels id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.labels ALTER COLUMN id SET DEFAULT nextval('public.labels_id_seq'::regclass); + + +-- +-- Name: ldap_group_links id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ldap_group_links ALTER COLUMN id SET DEFAULT nextval('public.ldap_group_links_id_seq'::regclass); + + +-- +-- Name: lfs_file_locks id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.lfs_file_locks ALTER COLUMN id SET DEFAULT nextval('public.lfs_file_locks_id_seq'::regclass); + + +-- +-- Name: lfs_object_states lfs_object_id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.lfs_object_states ALTER COLUMN lfs_object_id SET DEFAULT nextval('public.lfs_object_states_lfs_object_id_seq'::regclass); + + +-- +-- Name: lfs_objects id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.lfs_objects ALTER COLUMN id SET DEFAULT nextval('public.lfs_objects_id_seq'::regclass); + + +-- +-- Name: lfs_objects_projects id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.lfs_objects_projects ALTER COLUMN id SET DEFAULT nextval('public.lfs_objects_projects_id_seq'::regclass); + + +-- +-- Name: licenses id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.licenses ALTER COLUMN id SET DEFAULT nextval('public.licenses_id_seq'::regclass); + + +-- +-- Name: list_user_preferences id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.list_user_preferences ALTER COLUMN id SET DEFAULT nextval('public.list_user_preferences_id_seq'::regclass); + + +-- +-- Name: lists id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.lists ALTER COLUMN id SET DEFAULT nextval('public.lists_id_seq'::regclass); + + +-- +-- Name: loose_foreign_keys_deleted_records id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.loose_foreign_keys_deleted_records ALTER COLUMN id SET DEFAULT nextval('public.loose_foreign_keys_deleted_records_id_seq'::regclass); + + +-- +-- Name: member_approvals id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.member_approvals ALTER COLUMN id SET DEFAULT nextval('public.member_approvals_id_seq'::regclass); + + +-- +-- Name: member_roles id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.member_roles ALTER COLUMN id SET DEFAULT nextval('public.member_roles_id_seq'::regclass); + + +-- +-- Name: members id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.members ALTER COLUMN id SET DEFAULT nextval('public.members_id_seq'::regclass); + + +-- +-- Name: merge_request_assignees id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_assignees ALTER COLUMN id SET DEFAULT nextval('public.merge_request_assignees_id_seq'::regclass); + + +-- +-- Name: merge_request_assignment_events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_assignment_events ALTER COLUMN id SET DEFAULT nextval('public.merge_request_assignment_events_id_seq'::regclass); + + +-- +-- Name: merge_request_blocks id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_blocks ALTER COLUMN id SET DEFAULT nextval('public.merge_request_blocks_id_seq'::regclass); + + +-- +-- Name: merge_request_cleanup_schedules merge_request_id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_cleanup_schedules ALTER COLUMN merge_request_id SET DEFAULT nextval('public.merge_request_cleanup_schedules_merge_request_id_seq'::regclass); + + +-- +-- Name: merge_request_context_commits id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_context_commits ALTER COLUMN id SET DEFAULT nextval('public.merge_request_context_commits_id_seq'::regclass); + + +-- +-- Name: merge_request_diff_commit_users id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_diff_commit_users ALTER COLUMN id SET DEFAULT nextval('public.merge_request_diff_commit_users_id_seq'::regclass); + + +-- +-- Name: merge_request_diff_details merge_request_diff_id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_diff_details ALTER COLUMN merge_request_diff_id SET DEFAULT nextval('public.merge_request_diff_details_merge_request_diff_id_seq'::regclass); + + +-- +-- Name: merge_request_diffs id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_diffs ALTER COLUMN id SET DEFAULT nextval('public.merge_request_diffs_id_seq'::regclass); + + +-- +-- Name: merge_request_metrics id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_metrics ALTER COLUMN id SET DEFAULT nextval('public.merge_request_metrics_id_seq'::regclass); + + +-- +-- Name: merge_request_predictions merge_request_id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_predictions ALTER COLUMN merge_request_id SET DEFAULT nextval('public.merge_request_predictions_merge_request_id_seq'::regclass); + + +-- +-- Name: merge_request_requested_changes id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_requested_changes ALTER COLUMN id SET DEFAULT nextval('public.merge_request_requested_changes_id_seq'::regclass); + + +-- +-- Name: merge_request_reviewers id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_reviewers ALTER COLUMN id SET DEFAULT nextval('public.merge_request_reviewers_id_seq'::regclass); + + +-- +-- Name: merge_request_user_mentions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_user_mentions ALTER COLUMN id SET DEFAULT nextval('public.merge_request_user_mentions_id_seq'::regclass); + + +-- +-- Name: merge_requests id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_requests ALTER COLUMN id SET DEFAULT nextval('public.merge_requests_id_seq'::regclass); + + +-- +-- Name: merge_requests_closing_issues id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_requests_closing_issues ALTER COLUMN id SET DEFAULT nextval('public.merge_requests_closing_issues_id_seq'::regclass); + + +-- +-- Name: merge_requests_compliance_violations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_requests_compliance_violations ALTER COLUMN id SET DEFAULT nextval('public.merge_requests_compliance_violations_id_seq'::regclass); + + +-- +-- Name: merge_trains id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_trains ALTER COLUMN id SET DEFAULT nextval('public.merge_trains_id_seq'::regclass); + + +-- +-- Name: metrics_dashboard_annotations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.metrics_dashboard_annotations ALTER COLUMN id SET DEFAULT nextval('public.metrics_dashboard_annotations_id_seq'::regclass); + + +-- +-- Name: metrics_users_starred_dashboards id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.metrics_users_starred_dashboards ALTER COLUMN id SET DEFAULT nextval('public.metrics_users_starred_dashboards_id_seq'::regclass); + + +-- +-- Name: milestones id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.milestones ALTER COLUMN id SET DEFAULT nextval('public.milestones_id_seq'::regclass); + + +-- +-- Name: ml_candidate_metadata id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_candidate_metadata ALTER COLUMN id SET DEFAULT nextval('public.ml_candidate_metadata_id_seq'::regclass); + + +-- +-- Name: ml_candidate_metrics id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_candidate_metrics ALTER COLUMN id SET DEFAULT nextval('public.ml_candidate_metrics_id_seq'::regclass); + + +-- +-- Name: ml_candidate_params id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_candidate_params ALTER COLUMN id SET DEFAULT nextval('public.ml_candidate_params_id_seq'::regclass); + + +-- +-- Name: ml_candidates id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_candidates ALTER COLUMN id SET DEFAULT nextval('public.ml_candidates_id_seq'::regclass); + + +-- +-- Name: ml_experiment_metadata id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_experiment_metadata ALTER COLUMN id SET DEFAULT nextval('public.ml_experiment_metadata_id_seq'::regclass); + + +-- +-- Name: ml_experiments id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_experiments ALTER COLUMN id SET DEFAULT nextval('public.ml_experiments_id_seq'::regclass); + + +-- +-- Name: ml_model_metadata id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_model_metadata ALTER COLUMN id SET DEFAULT nextval('public.ml_model_metadata_id_seq'::regclass); + + +-- +-- Name: ml_model_version_metadata id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_model_version_metadata ALTER COLUMN id SET DEFAULT nextval('public.ml_model_version_metadata_id_seq'::regclass); + + +-- +-- Name: ml_model_versions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_model_versions ALTER COLUMN id SET DEFAULT nextval('public.ml_model_versions_id_seq'::regclass); + + +-- +-- Name: ml_models id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_models ALTER COLUMN id SET DEFAULT nextval('public.ml_models_id_seq'::regclass); + + +-- +-- Name: namespace_admin_notes id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_admin_notes ALTER COLUMN id SET DEFAULT nextval('public.namespace_admin_notes_id_seq'::regclass); + + +-- +-- Name: namespace_bans id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_bans ALTER COLUMN id SET DEFAULT nextval('public.namespace_bans_id_seq'::regclass); + + +-- +-- Name: namespace_commit_emails id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_commit_emails ALTER COLUMN id SET DEFAULT nextval('public.namespace_commit_emails_id_seq'::regclass); + + +-- +-- Name: namespace_import_users id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_import_users ALTER COLUMN id SET DEFAULT nextval('public.namespace_import_users_id_seq'::regclass); + + +-- +-- Name: namespace_statistics id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_statistics ALTER COLUMN id SET DEFAULT nextval('public.namespace_statistics_id_seq'::regclass); + + +-- +-- Name: namespaces id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespaces ALTER COLUMN id SET DEFAULT nextval('public.namespaces_id_seq'::regclass); + + +-- +-- Name: namespaces_storage_limit_exclusions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespaces_storage_limit_exclusions ALTER COLUMN id SET DEFAULT nextval('public.namespaces_storage_limit_exclusions_id_seq'::regclass); + + +-- +-- Name: namespaces_sync_events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespaces_sync_events ALTER COLUMN id SET DEFAULT nextval('public.namespaces_sync_events_id_seq'::regclass); + + +-- +-- Name: note_diff_files id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.note_diff_files ALTER COLUMN id SET DEFAULT nextval('public.note_diff_files_id_seq'::regclass); + + +-- +-- Name: note_metadata note_id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.note_metadata ALTER COLUMN note_id SET DEFAULT nextval('public.note_metadata_note_id_seq'::regclass); + + +-- +-- Name: notes id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.notes ALTER COLUMN id SET DEFAULT nextval('public.notes_id_seq'::regclass); + + +-- +-- Name: notification_settings id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.notification_settings ALTER COLUMN id SET DEFAULT nextval('public.notification_settings_id_seq'::regclass); + + +-- +-- Name: oauth_access_grants id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.oauth_access_grants ALTER COLUMN id SET DEFAULT nextval('public.oauth_access_grants_id_seq'::regclass); + + +-- +-- Name: oauth_access_tokens id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.oauth_access_tokens ALTER COLUMN id SET DEFAULT nextval('public.oauth_access_tokens_id_seq'::regclass); + + +-- +-- Name: oauth_applications id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.oauth_applications ALTER COLUMN id SET DEFAULT nextval('public.oauth_applications_id_seq'::regclass); + + +-- +-- Name: oauth_device_grants id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.oauth_device_grants ALTER COLUMN id SET DEFAULT nextval('public.oauth_device_grants_id_seq'::regclass); + + +-- +-- Name: oauth_openid_requests id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.oauth_openid_requests ALTER COLUMN id SET DEFAULT nextval('public.oauth_openid_requests_id_seq'::regclass); + + +-- +-- Name: observability_logs_issues_connections id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.observability_logs_issues_connections ALTER COLUMN id SET DEFAULT nextval('public.observability_logs_issues_connections_id_seq'::regclass); + + +-- +-- Name: observability_metrics_issues_connections id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.observability_metrics_issues_connections ALTER COLUMN id SET DEFAULT nextval('public.observability_metrics_issues_connections_id_seq'::regclass); + + +-- +-- Name: observability_traces_issues_connections id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.observability_traces_issues_connections ALTER COLUMN id SET DEFAULT nextval('public.observability_traces_issues_connections_id_seq'::regclass); + + +-- +-- Name: onboarding_progresses id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.onboarding_progresses ALTER COLUMN id SET DEFAULT nextval('public.onboarding_progresses_id_seq'::regclass); + + +-- +-- Name: operations_feature_flag_scopes id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.operations_feature_flag_scopes ALTER COLUMN id SET DEFAULT nextval('public.operations_feature_flag_scopes_id_seq'::regclass); + + +-- +-- Name: operations_feature_flags id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.operations_feature_flags ALTER COLUMN id SET DEFAULT nextval('public.operations_feature_flags_id_seq'::regclass); + + +-- +-- Name: operations_feature_flags_clients id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.operations_feature_flags_clients ALTER COLUMN id SET DEFAULT nextval('public.operations_feature_flags_clients_id_seq'::regclass); + + +-- +-- Name: operations_feature_flags_issues id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.operations_feature_flags_issues ALTER COLUMN id SET DEFAULT nextval('public.operations_feature_flags_issues_id_seq'::regclass); + + +-- +-- Name: operations_scopes id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.operations_scopes ALTER COLUMN id SET DEFAULT nextval('public.operations_scopes_id_seq'::regclass); + + +-- +-- Name: operations_strategies id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.operations_strategies ALTER COLUMN id SET DEFAULT nextval('public.operations_strategies_id_seq'::regclass); + + +-- +-- Name: operations_strategies_user_lists id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.operations_strategies_user_lists ALTER COLUMN id SET DEFAULT nextval('public.operations_strategies_user_lists_id_seq'::regclass); + + +-- +-- Name: operations_user_lists id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.operations_user_lists ALTER COLUMN id SET DEFAULT nextval('public.operations_user_lists_id_seq'::regclass); + + +-- +-- Name: organization_users id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.organization_users ALTER COLUMN id SET DEFAULT nextval('public.organization_users_id_seq'::regclass); + + +-- +-- Name: organizations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.organizations ALTER COLUMN id SET DEFAULT nextval('public.organizations_id_seq'::regclass); + + +-- +-- Name: p_batched_git_ref_updates_deletions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_batched_git_ref_updates_deletions ALTER COLUMN id SET DEFAULT nextval('public.p_batched_git_ref_updates_deletions_id_seq'::regclass); + + +-- +-- Name: p_catalog_resource_component_usages id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_catalog_resource_component_usages ALTER COLUMN id SET DEFAULT nextval('public.p_catalog_resource_component_usages_id_seq'::regclass); + + +-- +-- Name: p_catalog_resource_sync_events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_catalog_resource_sync_events ALTER COLUMN id SET DEFAULT nextval('public.p_catalog_resource_sync_events_id_seq'::regclass); + + +-- +-- Name: p_ci_builds_metadata id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_ci_builds_metadata ALTER COLUMN id SET DEFAULT nextval('public.ci_builds_metadata_id_seq'::regclass); + + +-- +-- Name: p_ci_pipelines id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_ci_pipelines ALTER COLUMN id SET DEFAULT nextval('public.ci_pipelines_id_seq'::regclass); + + +-- +-- Name: packages_build_infos id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_build_infos ALTER COLUMN id SET DEFAULT nextval('public.packages_build_infos_id_seq'::regclass); + + +-- +-- Name: packages_composer_cache_files id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_composer_cache_files ALTER COLUMN id SET DEFAULT nextval('public.packages_composer_cache_files_id_seq'::regclass); + + +-- +-- Name: packages_conan_file_metadata id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_conan_file_metadata ALTER COLUMN id SET DEFAULT nextval('public.packages_conan_file_metadata_id_seq'::regclass); + + +-- +-- Name: packages_conan_metadata id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_conan_metadata ALTER COLUMN id SET DEFAULT nextval('public.packages_conan_metadata_id_seq'::regclass); + + +-- +-- Name: packages_debian_group_architectures id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_group_architectures ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_group_architectures_id_seq'::regclass); + + +-- +-- Name: packages_debian_group_component_files id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_group_component_files ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_group_component_files_id_seq'::regclass); + + +-- +-- Name: packages_debian_group_components id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_group_components ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_group_components_id_seq'::regclass); + + +-- +-- Name: packages_debian_group_distribution_keys id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_group_distribution_keys ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_group_distribution_keys_id_seq'::regclass); + + +-- +-- Name: packages_debian_group_distributions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_group_distributions ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_group_distributions_id_seq'::regclass); + + +-- +-- Name: packages_debian_project_architectures id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_project_architectures ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_project_architectures_id_seq'::regclass); + + +-- +-- Name: packages_debian_project_component_files id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_project_component_files ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_project_component_files_id_seq'::regclass); + + +-- +-- Name: packages_debian_project_components id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_project_components ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_project_components_id_seq'::regclass); + + +-- +-- Name: packages_debian_project_distribution_keys id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_project_distribution_keys ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_project_distribution_keys_id_seq'::regclass); + + +-- +-- Name: packages_debian_project_distributions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_project_distributions ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_project_distributions_id_seq'::regclass); + + +-- +-- Name: packages_debian_publications id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_publications ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_publications_id_seq'::regclass); + + +-- +-- Name: packages_dependencies id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_dependencies ALTER COLUMN id SET DEFAULT nextval('public.packages_dependencies_id_seq'::regclass); + + +-- +-- Name: packages_dependency_links id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_dependency_links ALTER COLUMN id SET DEFAULT nextval('public.packages_dependency_links_id_seq'::regclass); + + +-- +-- Name: packages_maven_metadata id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_maven_metadata ALTER COLUMN id SET DEFAULT nextval('public.packages_maven_metadata_id_seq'::regclass); + + +-- +-- Name: packages_npm_metadata_caches id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_npm_metadata_caches ALTER COLUMN id SET DEFAULT nextval('public.packages_npm_metadata_caches_id_seq'::regclass); + + +-- +-- Name: packages_nuget_symbols id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_nuget_symbols ALTER COLUMN id SET DEFAULT nextval('public.packages_nuget_symbols_id_seq'::regclass); + + +-- +-- Name: packages_package_file_build_infos id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_package_file_build_infos ALTER COLUMN id SET DEFAULT nextval('public.packages_package_file_build_infos_id_seq'::regclass); + + +-- +-- Name: packages_package_files id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_package_files ALTER COLUMN id SET DEFAULT nextval('public.packages_package_files_id_seq'::regclass); + + +-- +-- Name: packages_packages id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_packages ALTER COLUMN id SET DEFAULT nextval('public.packages_packages_id_seq'::regclass); + + +-- +-- Name: packages_protection_rules id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_protection_rules ALTER COLUMN id SET DEFAULT nextval('public.packages_protection_rules_id_seq'::regclass); + + +-- +-- Name: packages_rpm_repository_files id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_rpm_repository_files ALTER COLUMN id SET DEFAULT nextval('public.packages_rpm_repository_files_id_seq'::regclass); + + +-- +-- Name: packages_tags id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_tags ALTER COLUMN id SET DEFAULT nextval('public.packages_tags_id_seq'::regclass); + + +-- +-- Name: pages_deployment_states pages_deployment_id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pages_deployment_states ALTER COLUMN pages_deployment_id SET DEFAULT nextval('public.pages_deployment_states_pages_deployment_id_seq'::regclass); + + +-- +-- Name: pages_deployments id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pages_deployments ALTER COLUMN id SET DEFAULT nextval('public.pages_deployments_id_seq'::regclass); + + +-- +-- Name: pages_domain_acme_orders id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pages_domain_acme_orders ALTER COLUMN id SET DEFAULT nextval('public.pages_domain_acme_orders_id_seq'::regclass); + + +-- +-- Name: pages_domains id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pages_domains ALTER COLUMN id SET DEFAULT nextval('public.pages_domains_id_seq'::regclass); + + +-- +-- Name: path_locks id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.path_locks ALTER COLUMN id SET DEFAULT nextval('public.path_locks_id_seq'::regclass); + + +-- +-- Name: personal_access_token_last_used_ips id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.personal_access_token_last_used_ips ALTER COLUMN id SET DEFAULT nextval('public.personal_access_token_last_used_ips_id_seq'::regclass); + + +-- +-- Name: personal_access_tokens id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.personal_access_tokens ALTER COLUMN id SET DEFAULT nextval('public.personal_access_tokens_id_seq'::regclass); + + +-- +-- Name: plan_limits id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.plan_limits ALTER COLUMN id SET DEFAULT nextval('public.plan_limits_id_seq'::regclass); + + +-- +-- Name: plans id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.plans ALTER COLUMN id SET DEFAULT nextval('public.plans_id_seq'::regclass); + + +-- +-- Name: pm_advisories id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pm_advisories ALTER COLUMN id SET DEFAULT nextval('public.pm_advisories_id_seq'::regclass); + + +-- +-- Name: pm_affected_packages id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pm_affected_packages ALTER COLUMN id SET DEFAULT nextval('public.pm_affected_packages_id_seq'::regclass); + + +-- +-- Name: pm_checkpoints id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pm_checkpoints ALTER COLUMN id SET DEFAULT nextval('public.pm_checkpoints_id_seq'::regclass); + + +-- +-- Name: pm_epss id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pm_epss ALTER COLUMN id SET DEFAULT nextval('public.pm_epss_id_seq'::regclass); + + +-- +-- Name: pm_licenses id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pm_licenses ALTER COLUMN id SET DEFAULT nextval('public.pm_licenses_id_seq'::regclass); + + +-- +-- Name: pm_package_version_licenses id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pm_package_version_licenses ALTER COLUMN id SET DEFAULT nextval('public.pm_package_version_licenses_id_seq'::regclass); + + +-- +-- Name: pm_package_versions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pm_package_versions ALTER COLUMN id SET DEFAULT nextval('public.pm_package_versions_id_seq'::regclass); + + +-- +-- Name: pm_packages id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pm_packages ALTER COLUMN id SET DEFAULT nextval('public.pm_packages_id_seq'::regclass); + + +-- +-- Name: pool_repositories id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pool_repositories ALTER COLUMN id SET DEFAULT nextval('public.pool_repositories_id_seq'::regclass); + + +-- +-- Name: postgres_async_foreign_key_validations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.postgres_async_foreign_key_validations ALTER COLUMN id SET DEFAULT nextval('public.postgres_async_foreign_key_validations_id_seq'::regclass); + + +-- +-- Name: postgres_async_indexes id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.postgres_async_indexes ALTER COLUMN id SET DEFAULT nextval('public.postgres_async_indexes_id_seq'::regclass); + + +-- +-- Name: postgres_reindex_actions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.postgres_reindex_actions ALTER COLUMN id SET DEFAULT nextval('public.postgres_reindex_actions_id_seq'::regclass); + + +-- +-- Name: postgres_reindex_queued_actions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.postgres_reindex_queued_actions ALTER COLUMN id SET DEFAULT nextval('public.postgres_reindex_queued_actions_id_seq'::regclass); + + +-- +-- Name: programming_languages id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.programming_languages ALTER COLUMN id SET DEFAULT nextval('public.programming_languages_id_seq'::regclass); + + +-- +-- Name: project_aliases id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_aliases ALTER COLUMN id SET DEFAULT nextval('public.project_aliases_id_seq'::regclass); + + +-- +-- Name: project_auto_devops id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_auto_devops ALTER COLUMN id SET DEFAULT nextval('public.project_auto_devops_id_seq'::regclass); + + +-- +-- Name: project_build_artifacts_size_refreshes id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_build_artifacts_size_refreshes ALTER COLUMN id SET DEFAULT nextval('public.project_build_artifacts_size_refreshes_id_seq'::regclass); + + +-- +-- Name: project_ci_cd_settings id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_ci_cd_settings ALTER COLUMN id SET DEFAULT nextval('public.project_ci_cd_settings_id_seq'::regclass); + + +-- +-- Name: project_ci_feature_usages id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_ci_feature_usages ALTER COLUMN id SET DEFAULT nextval('public.project_ci_feature_usages_id_seq'::regclass); + + +-- +-- Name: project_compliance_framework_settings project_id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_compliance_framework_settings ALTER COLUMN project_id SET DEFAULT nextval('public.project_compliance_framework_settings_project_id_seq'::regclass); + + +-- +-- Name: project_compliance_framework_settings id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_compliance_framework_settings ALTER COLUMN id SET DEFAULT nextval('public.project_compliance_framework_settings_id_seq'::regclass); + + +-- +-- Name: project_compliance_standards_adherence id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_compliance_standards_adherence ALTER COLUMN id SET DEFAULT nextval('public.project_compliance_standards_adherence_id_seq'::regclass); + + +-- +-- Name: project_custom_attributes id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_custom_attributes ALTER COLUMN id SET DEFAULT nextval('public.project_custom_attributes_id_seq'::regclass); + + +-- +-- Name: project_daily_statistics id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_daily_statistics ALTER COLUMN id SET DEFAULT nextval('public.project_daily_statistics_id_seq'::regclass); + + +-- +-- Name: project_data_transfers id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_data_transfers ALTER COLUMN id SET DEFAULT nextval('public.project_data_transfers_id_seq'::regclass); + + +-- +-- Name: project_deploy_tokens id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_deploy_tokens ALTER COLUMN id SET DEFAULT nextval('public.project_deploy_tokens_id_seq'::regclass); + + +-- +-- Name: project_export_jobs id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_export_jobs ALTER COLUMN id SET DEFAULT nextval('public.project_export_jobs_id_seq'::regclass); + + +-- +-- Name: project_features id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_features ALTER COLUMN id SET DEFAULT nextval('public.project_features_id_seq'::regclass); + + +-- +-- Name: project_group_links id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_group_links ALTER COLUMN id SET DEFAULT nextval('public.project_group_links_id_seq'::regclass); + + +-- +-- Name: project_import_data id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_import_data ALTER COLUMN id SET DEFAULT nextval('public.project_import_data_id_seq'::regclass); + + +-- +-- Name: project_incident_management_settings project_id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_incident_management_settings ALTER COLUMN project_id SET DEFAULT nextval('public.project_incident_management_settings_project_id_seq'::regclass); + + +-- +-- Name: project_mirror_data id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_mirror_data ALTER COLUMN id SET DEFAULT nextval('public.project_mirror_data_id_seq'::regclass); + + +-- +-- Name: project_relation_export_uploads id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_relation_export_uploads ALTER COLUMN id SET DEFAULT nextval('public.project_relation_export_uploads_id_seq'::regclass); + + +-- +-- Name: project_relation_exports id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_relation_exports ALTER COLUMN id SET DEFAULT nextval('public.project_relation_exports_id_seq'::regclass); + + +-- +-- Name: project_repositories id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_repositories ALTER COLUMN id SET DEFAULT nextval('public.project_repositories_id_seq'::regclass); + + +-- +-- Name: project_repository_storage_moves id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_repository_storage_moves ALTER COLUMN id SET DEFAULT nextval('public.project_repository_storage_moves_id_seq'::regclass); + + +-- +-- Name: project_saved_replies id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_saved_replies ALTER COLUMN id SET DEFAULT nextval('public.project_saved_replies_id_seq'::regclass); + + +-- +-- Name: project_secrets_managers id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_secrets_managers ALTER COLUMN id SET DEFAULT nextval('public.project_secrets_managers_id_seq'::regclass); + + +-- +-- Name: project_security_settings project_id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_security_settings ALTER COLUMN project_id SET DEFAULT nextval('public.project_security_settings_project_id_seq'::regclass); + + +-- +-- Name: project_states id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_states ALTER COLUMN id SET DEFAULT nextval('public.project_states_id_seq'::regclass); + + +-- +-- Name: project_statistics id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_statistics ALTER COLUMN id SET DEFAULT nextval('public.project_statistics_id_seq'::regclass); + + +-- +-- Name: project_topics id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_topics ALTER COLUMN id SET DEFAULT nextval('public.project_topics_id_seq'::regclass); + + +-- +-- Name: project_wiki_repositories id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_wiki_repositories ALTER COLUMN id SET DEFAULT nextval('public.project_wiki_repositories_id_seq'::regclass); + + +-- +-- Name: projects id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.projects ALTER COLUMN id SET DEFAULT nextval('public.projects_id_seq'::regclass); + + +-- +-- Name: projects_sync_events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.projects_sync_events ALTER COLUMN id SET DEFAULT nextval('public.projects_sync_events_id_seq'::regclass); + + +-- +-- Name: projects_visits id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.projects_visits ALTER COLUMN id SET DEFAULT nextval('public.projects_visits_id_seq'::regclass); + + +-- +-- Name: prometheus_alert_events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.prometheus_alert_events ALTER COLUMN id SET DEFAULT nextval('public.prometheus_alert_events_id_seq'::regclass); + + +-- +-- Name: prometheus_alerts id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.prometheus_alerts ALTER COLUMN id SET DEFAULT nextval('public.prometheus_alerts_id_seq'::regclass); + + +-- +-- Name: prometheus_metrics id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.prometheus_metrics ALTER COLUMN id SET DEFAULT nextval('public.prometheus_metrics_id_seq'::regclass); + + +-- +-- Name: protected_branch_merge_access_levels id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.protected_branch_merge_access_levels ALTER COLUMN id SET DEFAULT nextval('public.protected_branch_merge_access_levels_id_seq'::regclass); + + +-- +-- Name: protected_branch_push_access_levels id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.protected_branch_push_access_levels ALTER COLUMN id SET DEFAULT nextval('public.protected_branch_push_access_levels_id_seq'::regclass); + + +-- +-- Name: protected_branch_unprotect_access_levels id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.protected_branch_unprotect_access_levels ALTER COLUMN id SET DEFAULT nextval('public.protected_branch_unprotect_access_levels_id_seq'::regclass); + + +-- +-- Name: protected_branches id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.protected_branches ALTER COLUMN id SET DEFAULT nextval('public.protected_branches_id_seq'::regclass); + + +-- +-- Name: protected_environment_approval_rules id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.protected_environment_approval_rules ALTER COLUMN id SET DEFAULT nextval('public.protected_environment_approval_rules_id_seq'::regclass); + + +-- +-- Name: protected_environment_deploy_access_levels id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.protected_environment_deploy_access_levels ALTER COLUMN id SET DEFAULT nextval('public.protected_environment_deploy_access_levels_id_seq'::regclass); + + +-- +-- Name: protected_environments id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.protected_environments ALTER COLUMN id SET DEFAULT nextval('public.protected_environments_id_seq'::regclass); + + +-- +-- Name: protected_tag_create_access_levels id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.protected_tag_create_access_levels ALTER COLUMN id SET DEFAULT nextval('public.protected_tag_create_access_levels_id_seq'::regclass); + + +-- +-- Name: protected_tags id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.protected_tags ALTER COLUMN id SET DEFAULT nextval('public.protected_tags_id_seq'::regclass); + + +-- +-- Name: push_rules id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.push_rules ALTER COLUMN id SET DEFAULT nextval('public.push_rules_id_seq'::regclass); + + +-- +-- Name: raw_usage_data id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.raw_usage_data ALTER COLUMN id SET DEFAULT nextval('public.raw_usage_data_id_seq'::regclass); + + +-- +-- Name: redirect_routes id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.redirect_routes ALTER COLUMN id SET DEFAULT nextval('public.redirect_routes_id_seq'::regclass); + + +-- +-- Name: related_epic_links id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.related_epic_links ALTER COLUMN id SET DEFAULT nextval('public.related_epic_links_id_seq'::regclass); + + +-- +-- Name: relation_import_trackers id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.relation_import_trackers ALTER COLUMN id SET DEFAULT nextval('public.relation_import_trackers_id_seq'::regclass); + + +-- +-- Name: release_links id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.release_links ALTER COLUMN id SET DEFAULT nextval('public.release_links_id_seq'::regclass); + + +-- +-- Name: releases id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.releases ALTER COLUMN id SET DEFAULT nextval('public.releases_id_seq'::regclass); + + +-- +-- Name: remote_development_agent_configs id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.remote_development_agent_configs ALTER COLUMN id SET DEFAULT nextval('public.remote_development_agent_configs_id_seq'::regclass); + + +-- +-- Name: remote_development_namespace_cluster_agent_mappings id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.remote_development_namespace_cluster_agent_mappings ALTER COLUMN id SET DEFAULT nextval('public.remote_development_namespace_cluster_agent_mappings_id_seq'::regclass); + + +-- +-- Name: remote_mirrors id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.remote_mirrors ALTER COLUMN id SET DEFAULT nextval('public.remote_mirrors_id_seq'::regclass); + + +-- +-- Name: required_code_owners_sections id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.required_code_owners_sections ALTER COLUMN id SET DEFAULT nextval('public.required_code_owners_sections_id_seq'::regclass); + + +-- +-- Name: requirements id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.requirements ALTER COLUMN id SET DEFAULT nextval('public.requirements_id_seq'::regclass); + + +-- +-- Name: requirements_management_test_reports id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.requirements_management_test_reports ALTER COLUMN id SET DEFAULT nextval('public.requirements_management_test_reports_id_seq'::regclass); + + +-- +-- Name: resource_iteration_events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.resource_iteration_events ALTER COLUMN id SET DEFAULT nextval('public.resource_iteration_events_id_seq'::regclass); + + +-- +-- Name: resource_label_events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.resource_label_events ALTER COLUMN id SET DEFAULT nextval('public.resource_label_events_id_seq'::regclass); + + +-- +-- Name: resource_link_events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.resource_link_events ALTER COLUMN id SET DEFAULT nextval('public.resource_link_events_id_seq'::regclass); + + +-- +-- Name: resource_milestone_events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.resource_milestone_events ALTER COLUMN id SET DEFAULT nextval('public.resource_milestone_events_id_seq'::regclass); + + +-- +-- Name: resource_state_events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.resource_state_events ALTER COLUMN id SET DEFAULT nextval('public.resource_state_events_id_seq'::regclass); + + +-- +-- Name: resource_weight_events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.resource_weight_events ALTER COLUMN id SET DEFAULT nextval('public.resource_weight_events_id_seq'::regclass); + + +-- +-- Name: reviews id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.reviews ALTER COLUMN id SET DEFAULT nextval('public.reviews_id_seq'::regclass); + + +-- +-- Name: routes id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.routes ALTER COLUMN id SET DEFAULT nextval('public.routes_id_seq'::regclass); + + +-- +-- Name: saml_group_links id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.saml_group_links ALTER COLUMN id SET DEFAULT nextval('public.saml_group_links_id_seq'::regclass); + + +-- +-- Name: saml_providers id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.saml_providers ALTER COLUMN id SET DEFAULT nextval('public.saml_providers_id_seq'::regclass); + + +-- +-- Name: saved_replies id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.saved_replies ALTER COLUMN id SET DEFAULT nextval('public.saved_replies_id_seq'::regclass); + + +-- +-- Name: sbom_component_versions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sbom_component_versions ALTER COLUMN id SET DEFAULT nextval('public.sbom_component_versions_id_seq'::regclass); + + +-- +-- Name: sbom_components id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sbom_components ALTER COLUMN id SET DEFAULT nextval('public.sbom_components_id_seq'::regclass); + + +-- +-- Name: sbom_occurrences id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sbom_occurrences ALTER COLUMN id SET DEFAULT nextval('public.sbom_occurrences_id_seq'::regclass); + + +-- +-- Name: sbom_occurrences_vulnerabilities id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sbom_occurrences_vulnerabilities ALTER COLUMN id SET DEFAULT nextval('public.sbom_occurrences_vulnerabilities_id_seq'::regclass); + + +-- +-- Name: sbom_source_packages id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sbom_source_packages ALTER COLUMN id SET DEFAULT nextval('public.sbom_source_packages_id_seq'::regclass); + + +-- +-- Name: sbom_sources id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sbom_sources ALTER COLUMN id SET DEFAULT nextval('public.sbom_sources_id_seq'::regclass); + + +-- +-- Name: scan_execution_policy_rules id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.scan_execution_policy_rules ALTER COLUMN id SET DEFAULT nextval('public.scan_execution_policy_rules_id_seq'::regclass); + + +-- +-- Name: scan_result_policies id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.scan_result_policies ALTER COLUMN id SET DEFAULT nextval('public.scan_result_policies_id_seq'::regclass); + + +-- +-- Name: scan_result_policy_violations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.scan_result_policy_violations ALTER COLUMN id SET DEFAULT nextval('public.scan_result_policy_violations_id_seq'::regclass); + + +-- +-- Name: scim_identities id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.scim_identities ALTER COLUMN id SET DEFAULT nextval('public.scim_identities_id_seq'::regclass); + + +-- +-- Name: scim_oauth_access_tokens id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.scim_oauth_access_tokens ALTER COLUMN id SET DEFAULT nextval('public.scim_oauth_access_tokens_id_seq'::regclass); + + +-- +-- Name: search_indices id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.search_indices ALTER COLUMN id SET DEFAULT nextval('public.search_indices_id_seq'::regclass); + + +-- +-- Name: search_namespace_index_assignments id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.search_namespace_index_assignments ALTER COLUMN id SET DEFAULT nextval('public.search_namespace_index_assignments_id_seq'::regclass); + + +-- +-- Name: security_findings id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.security_findings ALTER COLUMN id SET DEFAULT nextval('public.security_findings_id_seq'::regclass); + + +-- +-- Name: security_orchestration_policy_configurations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.security_orchestration_policy_configurations ALTER COLUMN id SET DEFAULT nextval('public.security_orchestration_policy_configurations_id_seq'::regclass); + + +-- +-- Name: security_orchestration_policy_rule_schedules id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.security_orchestration_policy_rule_schedules ALTER COLUMN id SET DEFAULT nextval('public.security_orchestration_policy_rule_schedules_id_seq'::regclass); + + +-- +-- Name: security_policies id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.security_policies ALTER COLUMN id SET DEFAULT nextval('public.security_policies_id_seq'::regclass); + + +-- +-- Name: security_policy_project_links id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.security_policy_project_links ALTER COLUMN id SET DEFAULT nextval('public.security_policy_project_links_id_seq'::regclass); + + +-- +-- Name: security_policy_requirements id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.security_policy_requirements ALTER COLUMN id SET DEFAULT nextval('public.security_policy_requirements_id_seq'::regclass); + + +-- +-- Name: security_scans id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.security_scans ALTER COLUMN id SET DEFAULT nextval('public.security_scans_id_seq'::regclass); + + +-- +-- Name: security_training_providers id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.security_training_providers ALTER COLUMN id SET DEFAULT nextval('public.security_training_providers_id_seq'::regclass); + + +-- +-- Name: security_trainings id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.security_trainings ALTER COLUMN id SET DEFAULT nextval('public.security_trainings_id_seq'::regclass); + + +-- +-- Name: self_managed_prometheus_alert_events id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.self_managed_prometheus_alert_events ALTER COLUMN id SET DEFAULT nextval('public.self_managed_prometheus_alert_events_id_seq'::regclass); + + +-- +-- Name: sent_notifications id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sent_notifications ALTER COLUMN id SET DEFAULT nextval('public.sent_notifications_id_seq'::regclass); + + +-- +-- Name: sentry_issues id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sentry_issues ALTER COLUMN id SET DEFAULT nextval('public.sentry_issues_id_seq'::regclass); + + +-- +-- Name: service_access_tokens id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.service_access_tokens ALTER COLUMN id SET DEFAULT nextval('public.service_access_tokens_id_seq'::regclass); + + +-- +-- Name: shards id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.shards ALTER COLUMN id SET DEFAULT nextval('public.shards_id_seq'::regclass); + + +-- +-- Name: slack_api_scopes id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.slack_api_scopes ALTER COLUMN id SET DEFAULT nextval('public.slack_api_scopes_id_seq'::regclass); + + +-- +-- Name: slack_integrations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.slack_integrations ALTER COLUMN id SET DEFAULT nextval('public.slack_integrations_id_seq'::regclass); + + +-- +-- Name: slack_integrations_scopes id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.slack_integrations_scopes ALTER COLUMN id SET DEFAULT nextval('public.slack_integrations_scopes_id_seq'::regclass); + + +-- +-- Name: smartcard_identities id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.smartcard_identities ALTER COLUMN id SET DEFAULT nextval('public.smartcard_identities_id_seq'::regclass); + + +-- +-- Name: snippet_repository_storage_moves id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.snippet_repository_storage_moves ALTER COLUMN id SET DEFAULT nextval('public.snippet_repository_storage_moves_id_seq'::regclass); + + +-- +-- Name: snippet_user_mentions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.snippet_user_mentions ALTER COLUMN id SET DEFAULT nextval('public.snippet_user_mentions_id_seq'::regclass); + + +-- +-- Name: snippets id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.snippets ALTER COLUMN id SET DEFAULT nextval('public.snippets_id_seq'::regclass); + + +-- +-- Name: software_license_policies id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.software_license_policies ALTER COLUMN id SET DEFAULT nextval('public.software_license_policies_id_seq'::regclass); + + +-- +-- Name: software_licenses id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.software_licenses ALTER COLUMN id SET DEFAULT nextval('public.software_licenses_id_seq'::regclass); + + +-- +-- Name: spam_logs id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.spam_logs ALTER COLUMN id SET DEFAULT nextval('public.spam_logs_id_seq'::regclass); + + +-- +-- Name: sprints id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sprints ALTER COLUMN id SET DEFAULT nextval('public.sprints_id_seq'::regclass); + + +-- +-- Name: ssh_signatures id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ssh_signatures ALTER COLUMN id SET DEFAULT nextval('public.ssh_signatures_id_seq'::regclass); + + +-- +-- Name: status_check_responses id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.status_check_responses ALTER COLUMN id SET DEFAULT nextval('public.status_check_responses_id_seq'::regclass); + + +-- +-- Name: status_page_published_incidents id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.status_page_published_incidents ALTER COLUMN id SET DEFAULT nextval('public.status_page_published_incidents_id_seq'::regclass); + + +-- +-- Name: status_page_settings project_id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.status_page_settings ALTER COLUMN project_id SET DEFAULT nextval('public.status_page_settings_project_id_seq'::regclass); + + +-- +-- Name: subscription_add_on_purchases id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.subscription_add_on_purchases ALTER COLUMN id SET DEFAULT nextval('public.subscription_add_on_purchases_id_seq'::regclass); + + +-- +-- Name: subscription_add_ons id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.subscription_add_ons ALTER COLUMN id SET DEFAULT nextval('public.subscription_add_ons_id_seq'::regclass); + + +-- +-- Name: subscription_user_add_on_assignments id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.subscription_user_add_on_assignments ALTER COLUMN id SET DEFAULT nextval('public.subscription_user_add_on_assignments_id_seq'::regclass); + + +-- +-- Name: subscriptions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.subscriptions ALTER COLUMN id SET DEFAULT nextval('public.subscriptions_id_seq'::regclass); + + +-- +-- Name: suggestions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.suggestions ALTER COLUMN id SET DEFAULT nextval('public.suggestions_id_seq'::regclass); + + +-- +-- Name: system_access_microsoft_applications id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.system_access_microsoft_applications ALTER COLUMN id SET DEFAULT nextval('public.system_access_microsoft_applications_id_seq'::regclass); + + +-- +-- Name: system_access_microsoft_graph_access_tokens id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.system_access_microsoft_graph_access_tokens ALTER COLUMN id SET DEFAULT nextval('public.system_access_microsoft_graph_access_tokens_id_seq'::regclass); + + +-- +-- Name: system_note_metadata id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.system_note_metadata ALTER COLUMN id SET DEFAULT nextval('public.system_note_metadata_id_seq'::regclass); + + +-- +-- Name: taggings id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.taggings ALTER COLUMN id SET DEFAULT nextval('public.taggings_id_seq'::regclass); + + +-- +-- Name: tags id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.tags ALTER COLUMN id SET DEFAULT nextval('public.tags_id_seq'::regclass); + + +-- +-- Name: target_branch_rules id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.target_branch_rules ALTER COLUMN id SET DEFAULT nextval('public.target_branch_rules_id_seq'::regclass); + + +-- +-- Name: term_agreements id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.term_agreements ALTER COLUMN id SET DEFAULT nextval('public.term_agreements_id_seq'::regclass); + + +-- +-- Name: terraform_state_versions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.terraform_state_versions ALTER COLUMN id SET DEFAULT nextval('public.terraform_state_versions_id_seq'::regclass); + + +-- +-- Name: terraform_states id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.terraform_states ALTER COLUMN id SET DEFAULT nextval('public.terraform_states_id_seq'::regclass); + + +-- +-- Name: timelog_categories id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.timelog_categories ALTER COLUMN id SET DEFAULT nextval('public.timelog_categories_id_seq'::regclass); + + +-- +-- Name: timelogs id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.timelogs ALTER COLUMN id SET DEFAULT nextval('public.timelogs_id_seq'::regclass); + + +-- +-- Name: todos id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.todos ALTER COLUMN id SET DEFAULT nextval('public.todos_id_seq'::regclass); + + +-- +-- Name: token_with_ivs id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.token_with_ivs ALTER COLUMN id SET DEFAULT nextval('public.token_with_ivs_id_seq'::regclass); + + +-- +-- Name: topics id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.topics ALTER COLUMN id SET DEFAULT nextval('public.topics_id_seq'::regclass); + + +-- +-- Name: trending_projects id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.trending_projects ALTER COLUMN id SET DEFAULT nextval('public.trending_projects_id_seq'::regclass); + + +-- +-- Name: upcoming_reconciliations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.upcoming_reconciliations ALTER COLUMN id SET DEFAULT nextval('public.upcoming_reconciliations_id_seq'::regclass); + + +-- +-- Name: upload_states upload_id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.upload_states ALTER COLUMN upload_id SET DEFAULT nextval('public.upload_states_upload_id_seq'::regclass); + + +-- +-- Name: uploads id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.uploads ALTER COLUMN id SET DEFAULT nextval('public.uploads_id_seq'::regclass); + + +-- +-- Name: user_achievements id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_achievements ALTER COLUMN id SET DEFAULT nextval('public.user_achievements_id_seq'::regclass); + + +-- +-- Name: user_agent_details id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_agent_details ALTER COLUMN id SET DEFAULT nextval('public.user_agent_details_id_seq'::regclass); + + +-- +-- Name: user_broadcast_message_dismissals id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_broadcast_message_dismissals ALTER COLUMN id SET DEFAULT nextval('public.user_broadcast_message_dismissals_id_seq'::regclass); + + +-- +-- Name: user_callouts id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_callouts ALTER COLUMN id SET DEFAULT nextval('public.user_callouts_id_seq'::regclass); + + +-- +-- Name: user_canonical_emails id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_canonical_emails ALTER COLUMN id SET DEFAULT nextval('public.user_canonical_emails_id_seq'::regclass); + + +-- +-- Name: user_custom_attributes id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_custom_attributes ALTER COLUMN id SET DEFAULT nextval('public.user_custom_attributes_id_seq'::regclass); + + +-- +-- Name: user_details user_id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_details ALTER COLUMN user_id SET DEFAULT nextval('public.user_details_user_id_seq'::regclass); + + +-- +-- Name: user_group_callouts id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_group_callouts ALTER COLUMN id SET DEFAULT nextval('public.user_group_callouts_id_seq'::regclass); + + +-- +-- Name: user_namespace_callouts id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_namespace_callouts ALTER COLUMN id SET DEFAULT nextval('public.user_namespace_callouts_id_seq'::regclass); + + +-- +-- Name: user_permission_export_uploads id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_permission_export_uploads ALTER COLUMN id SET DEFAULT nextval('public.user_permission_export_uploads_id_seq'::regclass); + + +-- +-- Name: user_preferences id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_preferences ALTER COLUMN id SET DEFAULT nextval('public.user_preferences_id_seq'::regclass); + + +-- +-- Name: user_project_callouts id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_project_callouts ALTER COLUMN id SET DEFAULT nextval('public.user_project_callouts_id_seq'::regclass); + + +-- +-- Name: user_statuses user_id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_statuses ALTER COLUMN user_id SET DEFAULT nextval('public.user_statuses_user_id_seq'::regclass); + + +-- +-- Name: user_synced_attributes_metadata id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_synced_attributes_metadata ALTER COLUMN id SET DEFAULT nextval('public.user_synced_attributes_metadata_id_seq'::regclass); + + +-- +-- Name: users id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass); + + +-- +-- Name: users_ops_dashboard_projects id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.users_ops_dashboard_projects ALTER COLUMN id SET DEFAULT nextval('public.users_ops_dashboard_projects_id_seq'::regclass); + + +-- +-- Name: users_star_projects id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.users_star_projects ALTER COLUMN id SET DEFAULT nextval('public.users_star_projects_id_seq'::regclass); + + +-- +-- Name: users_statistics id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.users_statistics ALTER COLUMN id SET DEFAULT nextval('public.users_statistics_id_seq'::regclass); + + +-- +-- Name: value_stream_dashboard_counts id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.value_stream_dashboard_counts ALTER COLUMN id SET DEFAULT nextval('public.value_stream_dashboard_counts_id_seq'::regclass); + + +-- +-- Name: virtual_registries_packages_maven_cached_responses id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.virtual_registries_packages_maven_cached_responses ALTER COLUMN id SET DEFAULT nextval('public.virtual_registries_packages_maven_cached_responses_id_seq'::regclass); + + +-- +-- Name: virtual_registries_packages_maven_registries id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.virtual_registries_packages_maven_registries ALTER COLUMN id SET DEFAULT nextval('public.virtual_registries_packages_maven_registries_id_seq'::regclass); + + +-- +-- Name: virtual_registries_packages_maven_registry_upstreams id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.virtual_registries_packages_maven_registry_upstreams ALTER COLUMN id SET DEFAULT nextval('public.virtual_registries_packages_maven_registry_upstreams_id_seq'::regclass); + + +-- +-- Name: virtual_registries_packages_maven_upstreams id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.virtual_registries_packages_maven_upstreams ALTER COLUMN id SET DEFAULT nextval('public.virtual_registries_packages_maven_upstreams_id_seq'::regclass); + + +-- +-- Name: vs_code_settings id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vs_code_settings ALTER COLUMN id SET DEFAULT nextval('public.vs_code_settings_id_seq'::regclass); + + +-- +-- Name: vulnerabilities id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerabilities ALTER COLUMN id SET DEFAULT nextval('public.vulnerabilities_id_seq'::regclass); + + +-- +-- Name: vulnerability_export_parts id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_export_parts ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_export_parts_id_seq'::regclass); + + +-- +-- Name: vulnerability_exports id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_exports ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_exports_id_seq'::regclass); + + +-- +-- Name: vulnerability_external_issue_links id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_external_issue_links ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_external_issue_links_id_seq'::regclass); + + +-- +-- Name: vulnerability_feedback id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_feedback ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_feedback_id_seq'::regclass); + + +-- +-- Name: vulnerability_finding_evidences id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_finding_evidences ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_finding_evidences_id_seq'::regclass); + + +-- +-- Name: vulnerability_finding_links id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_finding_links ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_finding_links_id_seq'::regclass); + + +-- +-- Name: vulnerability_finding_signatures id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_finding_signatures ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_finding_signatures_id_seq'::regclass); + + +-- +-- Name: vulnerability_findings_remediations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_findings_remediations ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_findings_remediations_id_seq'::regclass); + + +-- +-- Name: vulnerability_flags id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_flags ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_flags_id_seq'::regclass); + + +-- +-- Name: vulnerability_historical_statistics id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_historical_statistics ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_historical_statistics_id_seq'::regclass); + + +-- +-- Name: vulnerability_identifiers id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_identifiers ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_identifiers_id_seq'::regclass); + + +-- +-- Name: vulnerability_issue_links id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_issue_links ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_issue_links_id_seq'::regclass); + + +-- +-- Name: vulnerability_merge_request_links id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_merge_request_links ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_merge_request_links_id_seq'::regclass); + + +-- +-- Name: vulnerability_namespace_historical_statistics id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_namespace_historical_statistics ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_namespace_historical_statistics_id_seq'::regclass); + + +-- +-- Name: vulnerability_occurrence_identifiers id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_occurrence_identifiers ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_occurrence_identifiers_id_seq'::regclass); + + +-- +-- Name: vulnerability_occurrence_pipelines id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_occurrence_pipelines ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_occurrence_pipelines_id_seq'::regclass); + + +-- +-- Name: vulnerability_occurrences id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_occurrences ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_occurrences_id_seq'::regclass); + + +-- +-- Name: vulnerability_reads id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_reads ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_reads_id_seq'::regclass); + + +-- +-- Name: vulnerability_remediations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_remediations ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_remediations_id_seq'::regclass); + + +-- +-- Name: vulnerability_scanners id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_scanners ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_scanners_id_seq'::regclass); + + +-- +-- Name: vulnerability_state_transitions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_state_transitions ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_state_transitions_id_seq'::regclass); + + +-- +-- Name: vulnerability_statistics id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_statistics ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_statistics_id_seq'::regclass); + + +-- +-- Name: vulnerability_user_mentions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_user_mentions ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_user_mentions_id_seq'::regclass); + + +-- +-- Name: web_hook_logs id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.web_hook_logs ALTER COLUMN id SET DEFAULT nextval('public.web_hook_logs_id_seq'::regclass); + + +-- +-- Name: web_hooks id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.web_hooks ALTER COLUMN id SET DEFAULT nextval('public.web_hooks_id_seq'::regclass); + + +-- +-- Name: webauthn_registrations id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.webauthn_registrations ALTER COLUMN id SET DEFAULT nextval('public.webauthn_registrations_id_seq'::regclass); + + +-- +-- Name: wiki_page_meta id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.wiki_page_meta ALTER COLUMN id SET DEFAULT nextval('public.wiki_page_meta_id_seq'::regclass); + + +-- +-- Name: wiki_page_slugs id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.wiki_page_slugs ALTER COLUMN id SET DEFAULT nextval('public.wiki_page_slugs_id_seq'::regclass); + + +-- +-- Name: wiki_repository_states id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.wiki_repository_states ALTER COLUMN id SET DEFAULT nextval('public.wiki_repository_states_id_seq'::regclass); + + +-- +-- Name: work_item_hierarchy_restrictions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.work_item_hierarchy_restrictions ALTER COLUMN id SET DEFAULT nextval('public.work_item_hierarchy_restrictions_id_seq'::regclass); + + +-- +-- Name: work_item_parent_links id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.work_item_parent_links ALTER COLUMN id SET DEFAULT nextval('public.work_item_parent_links_id_seq'::regclass); + + +-- +-- Name: work_item_related_link_restrictions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.work_item_related_link_restrictions ALTER COLUMN id SET DEFAULT nextval('public.work_item_related_link_restrictions_id_seq'::regclass); + + +-- +-- Name: work_item_types id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.work_item_types ALTER COLUMN id SET DEFAULT nextval('public.work_item_types_id_seq'::regclass); + + +-- +-- Name: work_item_widget_definitions id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.work_item_widget_definitions ALTER COLUMN id SET DEFAULT nextval('public.work_item_widget_definitions_id_seq'::regclass); + + +-- +-- Name: workspace_variables id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.workspace_variables ALTER COLUMN id SET DEFAULT nextval('public.workspace_variables_id_seq'::regclass); + + +-- +-- Name: workspaces id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.workspaces ALTER COLUMN id SET DEFAULT nextval('public.workspaces_id_seq'::regclass); + + +-- +-- Name: workspaces_agent_configs id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.workspaces_agent_configs ALTER COLUMN id SET DEFAULT nextval('public.workspaces_agent_configs_id_seq'::regclass); + + +-- +-- Name: x509_certificates id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.x509_certificates ALTER COLUMN id SET DEFAULT nextval('public.x509_certificates_id_seq'::regclass); + + +-- +-- Name: x509_commit_signatures id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.x509_commit_signatures ALTER COLUMN id SET DEFAULT nextval('public.x509_commit_signatures_id_seq'::regclass); + + +-- +-- Name: x509_issuers id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.x509_issuers ALTER COLUMN id SET DEFAULT nextval('public.x509_issuers_id_seq'::regclass); + + +-- +-- Name: xray_reports id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.xray_reports ALTER COLUMN id SET DEFAULT nextval('public.xray_reports_id_seq'::regclass); + + +-- +-- Name: zentao_tracker_data id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.zentao_tracker_data ALTER COLUMN id SET DEFAULT nextval('public.zentao_tracker_data_id_seq'::regclass); + + +-- +-- Name: zoekt_enabled_namespaces id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.zoekt_enabled_namespaces ALTER COLUMN id SET DEFAULT nextval('public.zoekt_enabled_namespaces_id_seq'::regclass); + + +-- +-- Name: zoekt_indices id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.zoekt_indices ALTER COLUMN id SET DEFAULT nextval('public.zoekt_indices_id_seq'::regclass); + + +-- +-- Name: zoekt_nodes id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.zoekt_nodes ALTER COLUMN id SET DEFAULT nextval('public.zoekt_nodes_id_seq'::regclass); + + +-- +-- Name: zoekt_replicas id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.zoekt_replicas ALTER COLUMN id SET DEFAULT nextval('public.zoekt_replicas_id_seq'::regclass); + + +-- +-- Name: zoekt_repositories id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.zoekt_repositories ALTER COLUMN id SET DEFAULT nextval('public.zoekt_repositories_id_seq'::regclass); + + +-- +-- Name: zoekt_shards id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.zoekt_shards ALTER COLUMN id SET DEFAULT nextval('public.zoekt_shards_id_seq'::regclass); + + +-- +-- Name: zoom_meetings id; Type: DEFAULT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.zoom_meetings ALTER COLUMN id SET DEFAULT nextval('public.zoom_meetings_id_seq'::regclass); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events analytics_cycle_analytics_issue_stage_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_00 analytics_cycle_analytics_issue_stage_events_00_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_00_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_01 analytics_cycle_analytics_issue_stage_events_01_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_01_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_02 analytics_cycle_analytics_issue_stage_events_02_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_02_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_03 analytics_cycle_analytics_issue_stage_events_03_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_03_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_04 analytics_cycle_analytics_issue_stage_events_04_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_04_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_05 analytics_cycle_analytics_issue_stage_events_05_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_05_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_06 analytics_cycle_analytics_issue_stage_events_06_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_06_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_07 analytics_cycle_analytics_issue_stage_events_07_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_07_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_08 analytics_cycle_analytics_issue_stage_events_08_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_08_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_09 analytics_cycle_analytics_issue_stage_events_09_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_09_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_10 analytics_cycle_analytics_issue_stage_events_10_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_10_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_11 analytics_cycle_analytics_issue_stage_events_11_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_11_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_12 analytics_cycle_analytics_issue_stage_events_12_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_12_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_13 analytics_cycle_analytics_issue_stage_events_13_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_13_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_14 analytics_cycle_analytics_issue_stage_events_14_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_14_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_15 analytics_cycle_analytics_issue_stage_events_15_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_15_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_16 analytics_cycle_analytics_issue_stage_events_16_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_16_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_17 analytics_cycle_analytics_issue_stage_events_17_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_17_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_18 analytics_cycle_analytics_issue_stage_events_18_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_18_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_19 analytics_cycle_analytics_issue_stage_events_19_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_19_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_20 analytics_cycle_analytics_issue_stage_events_20_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_20_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_21 analytics_cycle_analytics_issue_stage_events_21_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_21_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_22 analytics_cycle_analytics_issue_stage_events_22_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_22_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_23 analytics_cycle_analytics_issue_stage_events_23_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_23_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_24 analytics_cycle_analytics_issue_stage_events_24_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_24_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_25 analytics_cycle_analytics_issue_stage_events_25_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_25_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_26 analytics_cycle_analytics_issue_stage_events_26_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_26_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_27 analytics_cycle_analytics_issue_stage_events_27_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_27_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_28 analytics_cycle_analytics_issue_stage_events_28_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_28_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_29 analytics_cycle_analytics_issue_stage_events_29_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_29_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_30 analytics_cycle_analytics_issue_stage_events_30_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_30_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_31 analytics_cycle_analytics_issue_stage_events_31_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_31_pkey PRIMARY KEY (stage_event_hash_id, issue_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events analytics_cycle_analytics_merge_request_stage_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_00 analytics_cycle_analytics_merge_request_stage_events_00_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_00_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_01 analytics_cycle_analytics_merge_request_stage_events_01_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_01_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_02 analytics_cycle_analytics_merge_request_stage_events_02_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_02_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_03 analytics_cycle_analytics_merge_request_stage_events_03_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_03_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_04 analytics_cycle_analytics_merge_request_stage_events_04_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_04_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_05 analytics_cycle_analytics_merge_request_stage_events_05_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_05_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_06 analytics_cycle_analytics_merge_request_stage_events_06_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_06_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_07 analytics_cycle_analytics_merge_request_stage_events_07_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_07_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_08 analytics_cycle_analytics_merge_request_stage_events_08_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_08_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_09 analytics_cycle_analytics_merge_request_stage_events_09_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_09_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_10 analytics_cycle_analytics_merge_request_stage_events_10_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_10_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_11 analytics_cycle_analytics_merge_request_stage_events_11_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_11_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_12 analytics_cycle_analytics_merge_request_stage_events_12_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_12_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_13 analytics_cycle_analytics_merge_request_stage_events_13_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_13_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_14 analytics_cycle_analytics_merge_request_stage_events_14_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_14_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_15 analytics_cycle_analytics_merge_request_stage_events_15_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_15_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_16 analytics_cycle_analytics_merge_request_stage_events_16_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_16_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_17 analytics_cycle_analytics_merge_request_stage_events_17_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_17_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_18 analytics_cycle_analytics_merge_request_stage_events_18_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_18_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_19 analytics_cycle_analytics_merge_request_stage_events_19_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_19_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_20 analytics_cycle_analytics_merge_request_stage_events_20_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_20_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_21 analytics_cycle_analytics_merge_request_stage_events_21_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_21_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_22 analytics_cycle_analytics_merge_request_stage_events_22_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_22_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_23 analytics_cycle_analytics_merge_request_stage_events_23_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_23_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_24 analytics_cycle_analytics_merge_request_stage_events_24_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_24_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_25 analytics_cycle_analytics_merge_request_stage_events_25_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_25_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_26 analytics_cycle_analytics_merge_request_stage_events_26_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_26_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_27 analytics_cycle_analytics_merge_request_stage_events_27_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_27_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_28 analytics_cycle_analytics_merge_request_stage_events_28_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_28_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_29 analytics_cycle_analytics_merge_request_stage_events_29_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_29_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_30 analytics_cycle_analytics_merge_request_stage_events_30_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_30_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_31 analytics_cycle_analytics_merge_request_stage_events_31_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_31_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); + + +-- +-- Name: issue_search_data issue_search_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issue_search_data + ADD CONSTRAINT issue_search_data_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_00 issue_search_data_00_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_00 + ADD CONSTRAINT issue_search_data_00_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_01 issue_search_data_01_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_01 + ADD CONSTRAINT issue_search_data_01_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_02 issue_search_data_02_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_02 + ADD CONSTRAINT issue_search_data_02_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_03 issue_search_data_03_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_03 + ADD CONSTRAINT issue_search_data_03_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_04 issue_search_data_04_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_04 + ADD CONSTRAINT issue_search_data_04_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_05 issue_search_data_05_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_05 + ADD CONSTRAINT issue_search_data_05_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_06 issue_search_data_06_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_06 + ADD CONSTRAINT issue_search_data_06_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_07 issue_search_data_07_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_07 + ADD CONSTRAINT issue_search_data_07_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_08 issue_search_data_08_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_08 + ADD CONSTRAINT issue_search_data_08_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_09 issue_search_data_09_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_09 + ADD CONSTRAINT issue_search_data_09_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_10 issue_search_data_10_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_10 + ADD CONSTRAINT issue_search_data_10_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_11 issue_search_data_11_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_11 + ADD CONSTRAINT issue_search_data_11_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_12 issue_search_data_12_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_12 + ADD CONSTRAINT issue_search_data_12_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_13 issue_search_data_13_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_13 + ADD CONSTRAINT issue_search_data_13_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_14 issue_search_data_14_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_14 + ADD CONSTRAINT issue_search_data_14_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_15 issue_search_data_15_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_15 + ADD CONSTRAINT issue_search_data_15_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_16 issue_search_data_16_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_16 + ADD CONSTRAINT issue_search_data_16_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_17 issue_search_data_17_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_17 + ADD CONSTRAINT issue_search_data_17_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_18 issue_search_data_18_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_18 + ADD CONSTRAINT issue_search_data_18_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_19 issue_search_data_19_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_19 + ADD CONSTRAINT issue_search_data_19_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_20 issue_search_data_20_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_20 + ADD CONSTRAINT issue_search_data_20_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_21 issue_search_data_21_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_21 + ADD CONSTRAINT issue_search_data_21_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_22 issue_search_data_22_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_22 + ADD CONSTRAINT issue_search_data_22_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_23 issue_search_data_23_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_23 + ADD CONSTRAINT issue_search_data_23_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_24 issue_search_data_24_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_24 + ADD CONSTRAINT issue_search_data_24_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_25 issue_search_data_25_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_25 + ADD CONSTRAINT issue_search_data_25_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_26 issue_search_data_26_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_26 + ADD CONSTRAINT issue_search_data_26_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_27 issue_search_data_27_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_27 + ADD CONSTRAINT issue_search_data_27_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_28 issue_search_data_28_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_28 + ADD CONSTRAINT issue_search_data_28_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_29 issue_search_data_29_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_29 + ADD CONSTRAINT issue_search_data_29_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_30 issue_search_data_30_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_30 + ADD CONSTRAINT issue_search_data_30_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_31 issue_search_data_31_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_31 + ADD CONSTRAINT issue_search_data_31_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_32 issue_search_data_32_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_32 + ADD CONSTRAINT issue_search_data_32_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_33 issue_search_data_33_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_33 + ADD CONSTRAINT issue_search_data_33_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_34 issue_search_data_34_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_34 + ADD CONSTRAINT issue_search_data_34_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_35 issue_search_data_35_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_35 + ADD CONSTRAINT issue_search_data_35_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_36 issue_search_data_36_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_36 + ADD CONSTRAINT issue_search_data_36_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_37 issue_search_data_37_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_37 + ADD CONSTRAINT issue_search_data_37_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_38 issue_search_data_38_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_38 + ADD CONSTRAINT issue_search_data_38_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_39 issue_search_data_39_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_39 + ADD CONSTRAINT issue_search_data_39_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_40 issue_search_data_40_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_40 + ADD CONSTRAINT issue_search_data_40_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_41 issue_search_data_41_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_41 + ADD CONSTRAINT issue_search_data_41_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_42 issue_search_data_42_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_42 + ADD CONSTRAINT issue_search_data_42_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_43 issue_search_data_43_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_43 + ADD CONSTRAINT issue_search_data_43_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_44 issue_search_data_44_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_44 + ADD CONSTRAINT issue_search_data_44_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_45 issue_search_data_45_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_45 + ADD CONSTRAINT issue_search_data_45_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_46 issue_search_data_46_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_46 + ADD CONSTRAINT issue_search_data_46_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_47 issue_search_data_47_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_47 + ADD CONSTRAINT issue_search_data_47_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_48 issue_search_data_48_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_48 + ADD CONSTRAINT issue_search_data_48_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_49 issue_search_data_49_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_49 + ADD CONSTRAINT issue_search_data_49_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_50 issue_search_data_50_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_50 + ADD CONSTRAINT issue_search_data_50_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_51 issue_search_data_51_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_51 + ADD CONSTRAINT issue_search_data_51_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_52 issue_search_data_52_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_52 + ADD CONSTRAINT issue_search_data_52_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_53 issue_search_data_53_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_53 + ADD CONSTRAINT issue_search_data_53_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_54 issue_search_data_54_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_54 + ADD CONSTRAINT issue_search_data_54_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_55 issue_search_data_55_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_55 + ADD CONSTRAINT issue_search_data_55_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_56 issue_search_data_56_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_56 + ADD CONSTRAINT issue_search_data_56_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_57 issue_search_data_57_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_57 + ADD CONSTRAINT issue_search_data_57_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_58 issue_search_data_58_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_58 + ADD CONSTRAINT issue_search_data_58_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_59 issue_search_data_59_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_59 + ADD CONSTRAINT issue_search_data_59_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_60 issue_search_data_60_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_60 + ADD CONSTRAINT issue_search_data_60_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_61 issue_search_data_61_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_61 + ADD CONSTRAINT issue_search_data_61_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_62 issue_search_data_62_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_62 + ADD CONSTRAINT issue_search_data_62_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: issue_search_data_63 issue_search_data_63_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_63 + ADD CONSTRAINT issue_search_data_63_pkey PRIMARY KEY (project_id, issue_id); + + +-- +-- Name: namespace_descendants namespace_descendants_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_descendants + ADD CONSTRAINT namespace_descendants_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_00 namespace_descendants_00_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_00 + ADD CONSTRAINT namespace_descendants_00_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_01 namespace_descendants_01_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_01 + ADD CONSTRAINT namespace_descendants_01_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_02 namespace_descendants_02_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_02 + ADD CONSTRAINT namespace_descendants_02_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_03 namespace_descendants_03_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_03 + ADD CONSTRAINT namespace_descendants_03_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_04 namespace_descendants_04_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_04 + ADD CONSTRAINT namespace_descendants_04_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_05 namespace_descendants_05_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_05 + ADD CONSTRAINT namespace_descendants_05_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_06 namespace_descendants_06_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_06 + ADD CONSTRAINT namespace_descendants_06_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_07 namespace_descendants_07_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_07 + ADD CONSTRAINT namespace_descendants_07_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_08 namespace_descendants_08_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_08 + ADD CONSTRAINT namespace_descendants_08_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_09 namespace_descendants_09_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_09 + ADD CONSTRAINT namespace_descendants_09_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_10 namespace_descendants_10_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_10 + ADD CONSTRAINT namespace_descendants_10_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_11 namespace_descendants_11_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_11 + ADD CONSTRAINT namespace_descendants_11_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_12 namespace_descendants_12_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_12 + ADD CONSTRAINT namespace_descendants_12_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_13 namespace_descendants_13_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_13 + ADD CONSTRAINT namespace_descendants_13_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_14 namespace_descendants_14_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_14 + ADD CONSTRAINT namespace_descendants_14_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_15 namespace_descendants_15_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_15 + ADD CONSTRAINT namespace_descendants_15_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_16 namespace_descendants_16_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_16 + ADD CONSTRAINT namespace_descendants_16_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_17 namespace_descendants_17_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_17 + ADD CONSTRAINT namespace_descendants_17_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_18 namespace_descendants_18_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_18 + ADD CONSTRAINT namespace_descendants_18_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_19 namespace_descendants_19_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_19 + ADD CONSTRAINT namespace_descendants_19_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_20 namespace_descendants_20_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_20 + ADD CONSTRAINT namespace_descendants_20_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_21 namespace_descendants_21_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_21 + ADD CONSTRAINT namespace_descendants_21_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_22 namespace_descendants_22_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_22 + ADD CONSTRAINT namespace_descendants_22_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_23 namespace_descendants_23_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_23 + ADD CONSTRAINT namespace_descendants_23_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_24 namespace_descendants_24_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_24 ADD CONSTRAINT namespace_descendants_24_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_25 - ADD CONSTRAINT namespace_descendants_25_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_26 - ADD CONSTRAINT namespace_descendants_26_pkey PRIMARY KEY (namespace_id); +-- +-- Name: namespace_descendants_25 namespace_descendants_25_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_25 + ADD CONSTRAINT namespace_descendants_25_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_26 namespace_descendants_26_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_26 + ADD CONSTRAINT namespace_descendants_26_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_27 namespace_descendants_27_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_27 + ADD CONSTRAINT namespace_descendants_27_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_28 namespace_descendants_28_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_28 + ADD CONSTRAINT namespace_descendants_28_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_29 namespace_descendants_29_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_29 + ADD CONSTRAINT namespace_descendants_29_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_30 namespace_descendants_30_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_30 + ADD CONSTRAINT namespace_descendants_30_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_descendants_31 namespace_descendants_31_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_31 + ADD CONSTRAINT namespace_descendants_31_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: abuse_events abuse_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.abuse_events + ADD CONSTRAINT abuse_events_pkey PRIMARY KEY (id); + + +-- +-- Name: abuse_report_assignees abuse_report_assignees_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.abuse_report_assignees + ADD CONSTRAINT abuse_report_assignees_pkey PRIMARY KEY (id); + + +-- +-- Name: abuse_report_events abuse_report_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.abuse_report_events + ADD CONSTRAINT abuse_report_events_pkey PRIMARY KEY (id); + + +-- +-- Name: abuse_report_notes abuse_report_notes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.abuse_report_notes + ADD CONSTRAINT abuse_report_notes_pkey PRIMARY KEY (id); + + +-- +-- Name: abuse_report_user_mentions abuse_report_user_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.abuse_report_user_mentions + ADD CONSTRAINT abuse_report_user_mentions_pkey PRIMARY KEY (id); + + +-- +-- Name: abuse_reports abuse_reports_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.abuse_reports + ADD CONSTRAINT abuse_reports_pkey PRIMARY KEY (id); + + +-- +-- Name: abuse_trust_scores abuse_trust_scores_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.abuse_trust_scores + ADD CONSTRAINT abuse_trust_scores_pkey PRIMARY KEY (id); + + +-- +-- Name: achievements achievements_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.achievements + ADD CONSTRAINT achievements_pkey PRIMARY KEY (id); + + +-- +-- Name: activity_pub_releases_subscriptions activity_pub_releases_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.activity_pub_releases_subscriptions + ADD CONSTRAINT activity_pub_releases_subscriptions_pkey PRIMARY KEY (id); + + +-- +-- Name: agent_activity_events agent_activity_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.agent_activity_events + ADD CONSTRAINT agent_activity_events_pkey PRIMARY KEY (id); + + +-- +-- Name: agent_group_authorizations agent_group_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.agent_group_authorizations + ADD CONSTRAINT agent_group_authorizations_pkey PRIMARY KEY (id); + + +-- +-- Name: agent_project_authorizations agent_project_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.agent_project_authorizations + ADD CONSTRAINT agent_project_authorizations_pkey PRIMARY KEY (id); + + +-- +-- Name: agent_user_access_group_authorizations agent_user_access_group_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.agent_user_access_group_authorizations + ADD CONSTRAINT agent_user_access_group_authorizations_pkey PRIMARY KEY (id); + + +-- +-- Name: agent_user_access_project_authorizations agent_user_access_project_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.agent_user_access_project_authorizations + ADD CONSTRAINT agent_user_access_project_authorizations_pkey PRIMARY KEY (id); + + +-- +-- Name: ai_agent_version_attachments ai_agent_version_attachments_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ai_agent_version_attachments + ADD CONSTRAINT ai_agent_version_attachments_pkey PRIMARY KEY (id); + + +-- +-- Name: ai_agent_versions ai_agent_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ai_agent_versions + ADD CONSTRAINT ai_agent_versions_pkey PRIMARY KEY (id); + + +-- +-- Name: ai_agents ai_agents_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ai_agents + ADD CONSTRAINT ai_agents_pkey PRIMARY KEY (id); + + +-- +-- Name: ai_feature_settings ai_feature_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ai_feature_settings + ADD CONSTRAINT ai_feature_settings_pkey PRIMARY KEY (id); + + +-- +-- Name: ai_self_hosted_models ai_self_hosted_models_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ai_self_hosted_models + ADD CONSTRAINT ai_self_hosted_models_pkey PRIMARY KEY (id); + + +-- +-- Name: ai_testing_terms_acceptances ai_testing_terms_acceptances_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ai_testing_terms_acceptances + ADD CONSTRAINT ai_testing_terms_acceptances_pkey PRIMARY KEY (user_id); + + +-- +-- Name: ai_vectorizable_files ai_vectorizable_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ai_vectorizable_files + ADD CONSTRAINT ai_vectorizable_files_pkey PRIMARY KEY (id); + + +-- +-- Name: alert_management_alert_assignees alert_management_alert_assignees_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.alert_management_alert_assignees + ADD CONSTRAINT alert_management_alert_assignees_pkey PRIMARY KEY (id); + + +-- +-- Name: alert_management_alert_metric_images alert_management_alert_metric_images_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.alert_management_alert_metric_images + ADD CONSTRAINT alert_management_alert_metric_images_pkey PRIMARY KEY (id); + + +-- +-- Name: alert_management_alert_user_mentions alert_management_alert_user_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.alert_management_alert_user_mentions + ADD CONSTRAINT alert_management_alert_user_mentions_pkey PRIMARY KEY (id); + + +-- +-- Name: alert_management_alerts alert_management_alerts_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.alert_management_alerts + ADD CONSTRAINT alert_management_alerts_pkey PRIMARY KEY (id); + + +-- +-- Name: alert_management_http_integrations alert_management_http_integrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.alert_management_http_integrations + ADD CONSTRAINT alert_management_http_integrations_pkey PRIMARY KEY (id); + + +-- +-- Name: allowed_email_domains allowed_email_domains_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.allowed_email_domains + ADD CONSTRAINT allowed_email_domains_pkey PRIMARY KEY (id); + + +-- +-- Name: analytics_cycle_analytics_aggregations analytics_cycle_analytics_aggregations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.analytics_cycle_analytics_aggregations + ADD CONSTRAINT analytics_cycle_analytics_aggregations_pkey PRIMARY KEY (group_id); + + +-- +-- Name: analytics_cycle_analytics_group_stages analytics_cycle_analytics_group_stages_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.analytics_cycle_analytics_group_stages + ADD CONSTRAINT analytics_cycle_analytics_group_stages_pkey PRIMARY KEY (id); + + +-- +-- Name: analytics_cycle_analytics_group_value_streams analytics_cycle_analytics_group_value_streams_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.analytics_cycle_analytics_group_value_streams + ADD CONSTRAINT analytics_cycle_analytics_group_value_streams_pkey PRIMARY KEY (id); + + +-- +-- Name: analytics_cycle_analytics_stage_event_hashes analytics_cycle_analytics_stage_event_hashes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.analytics_cycle_analytics_stage_event_hashes + ADD CONSTRAINT analytics_cycle_analytics_stage_event_hashes_pkey PRIMARY KEY (id); + + +-- +-- Name: analytics_cycle_analytics_value_stream_settings analytics_cycle_analytics_value_stream_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.analytics_cycle_analytics_value_stream_settings + ADD CONSTRAINT analytics_cycle_analytics_value_stream_settings_pkey PRIMARY KEY (value_stream_id); + + +-- +-- Name: analytics_dashboards_pointers analytics_dashboards_pointers_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.analytics_dashboards_pointers + ADD CONSTRAINT analytics_dashboards_pointers_pkey PRIMARY KEY (id); + + +-- +-- Name: analytics_devops_adoption_segments analytics_devops_adoption_segments_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.analytics_devops_adoption_segments + ADD CONSTRAINT analytics_devops_adoption_segments_pkey PRIMARY KEY (id); + + +-- +-- Name: analytics_devops_adoption_snapshots analytics_devops_adoption_snapshots_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.analytics_devops_adoption_snapshots + ADD CONSTRAINT analytics_devops_adoption_snapshots_pkey PRIMARY KEY (id); + + +-- +-- Name: analytics_language_trend_repository_languages analytics_language_trend_repository_languages_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.analytics_language_trend_repository_languages + ADD CONSTRAINT analytics_language_trend_repository_languages_pkey PRIMARY KEY (programming_language_id, project_id, snapshot_date); + + +-- +-- Name: analytics_usage_trends_measurements analytics_usage_trends_measurements_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.analytics_usage_trends_measurements + ADD CONSTRAINT analytics_usage_trends_measurements_pkey PRIMARY KEY (id); + + +-- +-- Name: appearances appearances_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.appearances + ADD CONSTRAINT appearances_pkey PRIMARY KEY (id); + + +-- +-- Name: application_setting_terms application_setting_terms_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.application_setting_terms + ADD CONSTRAINT application_setting_terms_pkey PRIMARY KEY (id); + + +-- +-- Name: application_settings application_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.application_settings + ADD CONSTRAINT application_settings_pkey PRIMARY KEY (id); + + +-- +-- Name: approval_group_rules_groups approval_group_rules_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.approval_group_rules_groups + ADD CONSTRAINT approval_group_rules_groups_pkey PRIMARY KEY (id); + + +-- +-- Name: approval_group_rules approval_group_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.approval_group_rules + ADD CONSTRAINT approval_group_rules_pkey PRIMARY KEY (id); + + +-- +-- Name: approval_group_rules_protected_branches approval_group_rules_protected_branches_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.approval_group_rules_protected_branches + ADD CONSTRAINT approval_group_rules_protected_branches_pkey PRIMARY KEY (id); + + +-- +-- Name: approval_group_rules_users approval_group_rules_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.approval_group_rules_users + ADD CONSTRAINT approval_group_rules_users_pkey PRIMARY KEY (id); + + +-- +-- Name: approval_merge_request_rule_sources approval_merge_request_rule_sources_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.approval_merge_request_rule_sources + ADD CONSTRAINT approval_merge_request_rule_sources_pkey PRIMARY KEY (id); + + +-- +-- Name: approval_merge_request_rules_approved_approvers approval_merge_request_rules_approved_approvers_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.approval_merge_request_rules_approved_approvers + ADD CONSTRAINT approval_merge_request_rules_approved_approvers_pkey PRIMARY KEY (id); + + +-- +-- Name: approval_merge_request_rules_groups approval_merge_request_rules_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.approval_merge_request_rules_groups + ADD CONSTRAINT approval_merge_request_rules_groups_pkey PRIMARY KEY (id); + + +-- +-- Name: approval_merge_request_rules approval_merge_request_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.approval_merge_request_rules + ADD CONSTRAINT approval_merge_request_rules_pkey PRIMARY KEY (id); + + +-- +-- Name: approval_merge_request_rules_users approval_merge_request_rules_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.approval_merge_request_rules_users + ADD CONSTRAINT approval_merge_request_rules_users_pkey PRIMARY KEY (id); + + +-- +-- Name: approval_policy_rule_project_links approval_policy_rule_project_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.approval_policy_rule_project_links + ADD CONSTRAINT approval_policy_rule_project_links_pkey PRIMARY KEY (id); + + +-- +-- Name: approval_policy_rules approval_policy_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.approval_policy_rules + ADD CONSTRAINT approval_policy_rules_pkey PRIMARY KEY (id); + + +-- +-- Name: approval_project_rules_groups approval_project_rules_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.approval_project_rules_groups + ADD CONSTRAINT approval_project_rules_groups_pkey PRIMARY KEY (id); + + +-- +-- Name: approval_project_rules approval_project_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.approval_project_rules + ADD CONSTRAINT approval_project_rules_pkey PRIMARY KEY (id); + + +-- +-- Name: approval_project_rules_protected_branches approval_project_rules_protected_branches_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.approval_project_rules_protected_branches + ADD CONSTRAINT approval_project_rules_protected_branches_pkey PRIMARY KEY (approval_project_rule_id, protected_branch_id); + + +-- +-- Name: approval_project_rules_users approval_project_rules_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.approval_project_rules_users + ADD CONSTRAINT approval_project_rules_users_pkey PRIMARY KEY (id); + + +-- +-- Name: approvals approvals_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.approvals + ADD CONSTRAINT approvals_pkey PRIMARY KEY (id); + + +-- +-- Name: approver_groups approver_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.approver_groups + ADD CONSTRAINT approver_groups_pkey PRIMARY KEY (id); + + +-- +-- Name: approvers approvers_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.approvers + ADD CONSTRAINT approvers_pkey PRIMARY KEY (id); + + +-- +-- Name: ar_internal_metadata ar_internal_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ar_internal_metadata + ADD CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key); + + +-- +-- Name: atlassian_identities atlassian_identities_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.atlassian_identities + ADD CONSTRAINT atlassian_identities_pkey PRIMARY KEY (user_id); + + +-- +-- Name: audit_events_amazon_s3_configurations audit_events_amazon_s3_configurations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.audit_events_amazon_s3_configurations + ADD CONSTRAINT audit_events_amazon_s3_configurations_pkey PRIMARY KEY (id); + + +-- +-- Name: audit_events_external_audit_event_destinations audit_events_external_audit_event_destinations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.audit_events_external_audit_event_destinations + ADD CONSTRAINT audit_events_external_audit_event_destinations_pkey PRIMARY KEY (id); + + +-- +-- Name: audit_events_google_cloud_logging_configurations audit_events_google_cloud_logging_configurations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.audit_events_google_cloud_logging_configurations + ADD CONSTRAINT audit_events_google_cloud_logging_configurations_pkey PRIMARY KEY (id); + + +-- +-- Name: audit_events_group_external_streaming_destinations audit_events_group_external_streaming_destinations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.audit_events_group_external_streaming_destinations + ADD CONSTRAINT audit_events_group_external_streaming_destinations_pkey PRIMARY KEY (id); + + +-- +-- Name: audit_events_group_streaming_event_type_filters audit_events_group_streaming_event_type_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.audit_events_group_streaming_event_type_filters + ADD CONSTRAINT audit_events_group_streaming_event_type_filters_pkey PRIMARY KEY (id); + + +-- +-- Name: audit_events_instance_amazon_s3_configurations audit_events_instance_amazon_s3_configurations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.audit_events_instance_amazon_s3_configurations + ADD CONSTRAINT audit_events_instance_amazon_s3_configurations_pkey PRIMARY KEY (id); + + +-- +-- Name: audit_events_instance_external_audit_event_destinations audit_events_instance_external_audit_event_destinations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.audit_events_instance_external_audit_event_destinations + ADD CONSTRAINT audit_events_instance_external_audit_event_destinations_pkey PRIMARY KEY (id); + + +-- +-- Name: audit_events_instance_external_streaming_destinations audit_events_instance_external_streaming_destinations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.audit_events_instance_external_streaming_destinations + ADD CONSTRAINT audit_events_instance_external_streaming_destinations_pkey PRIMARY KEY (id); + + +-- +-- Name: audit_events_instance_google_cloud_logging_configurations audit_events_instance_google_cloud_logging_configurations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.audit_events_instance_google_cloud_logging_configurations + ADD CONSTRAINT audit_events_instance_google_cloud_logging_configurations_pkey PRIMARY KEY (id); + + +-- +-- Name: audit_events_instance_streaming_event_type_filters audit_events_instance_streaming_event_type_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.audit_events_instance_streaming_event_type_filters + ADD CONSTRAINT audit_events_instance_streaming_event_type_filters_pkey PRIMARY KEY (id); + + +-- +-- Name: audit_events audit_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.audit_events + ADD CONSTRAINT audit_events_pkey PRIMARY KEY (id, created_at); + + +-- +-- Name: audit_events_streaming_event_type_filters audit_events_streaming_event_type_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.audit_events_streaming_event_type_filters + ADD CONSTRAINT audit_events_streaming_event_type_filters_pkey PRIMARY KEY (id); + + +-- +-- Name: audit_events_streaming_group_namespace_filters audit_events_streaming_group_namespace_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.audit_events_streaming_group_namespace_filters + ADD CONSTRAINT audit_events_streaming_group_namespace_filters_pkey PRIMARY KEY (id); + + +-- +-- Name: audit_events_streaming_headers audit_events_streaming_headers_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.audit_events_streaming_headers + ADD CONSTRAINT audit_events_streaming_headers_pkey PRIMARY KEY (id); + + +-- +-- Name: audit_events_streaming_http_group_namespace_filters audit_events_streaming_http_group_namespace_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.audit_events_streaming_http_group_namespace_filters + ADD CONSTRAINT audit_events_streaming_http_group_namespace_filters_pkey PRIMARY KEY (id); + + +-- +-- Name: audit_events_streaming_http_instance_namespace_filters audit_events_streaming_http_instance_namespace_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.audit_events_streaming_http_instance_namespace_filters + ADD CONSTRAINT audit_events_streaming_http_instance_namespace_filters_pkey PRIMARY KEY (id); + + +-- +-- Name: audit_events_streaming_instance_event_type_filters audit_events_streaming_instance_event_type_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.audit_events_streaming_instance_event_type_filters + ADD CONSTRAINT audit_events_streaming_instance_event_type_filters_pkey PRIMARY KEY (id); + + +-- +-- Name: audit_events_streaming_instance_namespace_filters audit_events_streaming_instance_namespace_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.audit_events_streaming_instance_namespace_filters + ADD CONSTRAINT audit_events_streaming_instance_namespace_filters_pkey PRIMARY KEY (id); + + +-- +-- Name: authentication_events authentication_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.authentication_events + ADD CONSTRAINT authentication_events_pkey PRIMARY KEY (id); + + +-- +-- Name: automation_rules automation_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.automation_rules + ADD CONSTRAINT automation_rules_pkey PRIMARY KEY (id); + + +-- +-- Name: award_emoji award_emoji_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.award_emoji + ADD CONSTRAINT award_emoji_pkey PRIMARY KEY (id); + + +-- +-- Name: aws_roles aws_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.aws_roles + ADD CONSTRAINT aws_roles_pkey PRIMARY KEY (user_id); + + +-- +-- Name: background_migration_jobs background_migration_jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.background_migration_jobs + ADD CONSTRAINT background_migration_jobs_pkey PRIMARY KEY (id); + + +-- +-- Name: badges badges_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.badges + ADD CONSTRAINT badges_pkey PRIMARY KEY (id); + + +-- +-- Name: banned_users banned_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.banned_users + ADD CONSTRAINT banned_users_pkey PRIMARY KEY (user_id); + + +-- +-- Name: batched_background_migration_job_transition_logs batched_background_migration_job_transition_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.batched_background_migration_job_transition_logs + ADD CONSTRAINT batched_background_migration_job_transition_logs_pkey PRIMARY KEY (id, created_at); + + +-- +-- Name: batched_background_migration_jobs batched_background_migration_jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.batched_background_migration_jobs + ADD CONSTRAINT batched_background_migration_jobs_pkey PRIMARY KEY (id); + + +-- +-- Name: batched_background_migrations batched_background_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.batched_background_migrations + ADD CONSTRAINT batched_background_migrations_pkey PRIMARY KEY (id); + + +-- +-- Name: board_assignees board_assignees_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.board_assignees + ADD CONSTRAINT board_assignees_pkey PRIMARY KEY (id); + + +-- +-- Name: board_group_recent_visits board_group_recent_visits_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.board_group_recent_visits + ADD CONSTRAINT board_group_recent_visits_pkey PRIMARY KEY (id); + + +-- +-- Name: board_labels board_labels_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.board_labels + ADD CONSTRAINT board_labels_pkey PRIMARY KEY (id); + + +-- +-- Name: board_project_recent_visits board_project_recent_visits_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.board_project_recent_visits + ADD CONSTRAINT board_project_recent_visits_pkey PRIMARY KEY (id); + + +-- +-- Name: board_user_preferences board_user_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.board_user_preferences + ADD CONSTRAINT board_user_preferences_pkey PRIMARY KEY (id); + + +-- +-- Name: boards_epic_board_labels boards_epic_board_labels_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.boards_epic_board_labels + ADD CONSTRAINT boards_epic_board_labels_pkey PRIMARY KEY (id); + + +-- +-- Name: boards_epic_board_positions boards_epic_board_positions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.boards_epic_board_positions + ADD CONSTRAINT boards_epic_board_positions_pkey PRIMARY KEY (id); + + +-- +-- Name: boards_epic_board_recent_visits boards_epic_board_recent_visits_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.boards_epic_board_recent_visits + ADD CONSTRAINT boards_epic_board_recent_visits_pkey PRIMARY KEY (id); + + +-- +-- Name: boards_epic_boards boards_epic_boards_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.boards_epic_boards + ADD CONSTRAINT boards_epic_boards_pkey PRIMARY KEY (id); + + +-- +-- Name: boards_epic_list_user_preferences boards_epic_list_user_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.boards_epic_list_user_preferences + ADD CONSTRAINT boards_epic_list_user_preferences_pkey PRIMARY KEY (id); + + +-- +-- Name: boards_epic_lists boards_epic_lists_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.boards_epic_lists + ADD CONSTRAINT boards_epic_lists_pkey PRIMARY KEY (id); + + +-- +-- Name: boards_epic_user_preferences boards_epic_user_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.boards_epic_user_preferences + ADD CONSTRAINT boards_epic_user_preferences_pkey PRIMARY KEY (id); + + +-- +-- Name: boards boards_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.boards + ADD CONSTRAINT boards_pkey PRIMARY KEY (id); + + +-- +-- Name: broadcast_messages broadcast_messages_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.broadcast_messages + ADD CONSTRAINT broadcast_messages_pkey PRIMARY KEY (id); + + +-- +-- Name: bulk_import_batch_trackers bulk_import_batch_trackers_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.bulk_import_batch_trackers + ADD CONSTRAINT bulk_import_batch_trackers_pkey PRIMARY KEY (id); + + +-- +-- Name: bulk_import_configurations bulk_import_configurations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.bulk_import_configurations + ADD CONSTRAINT bulk_import_configurations_pkey PRIMARY KEY (id); + + +-- +-- Name: bulk_import_entities bulk_import_entities_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.bulk_import_entities + ADD CONSTRAINT bulk_import_entities_pkey PRIMARY KEY (id); + + +-- +-- Name: bulk_import_export_batches bulk_import_export_batches_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.bulk_import_export_batches + ADD CONSTRAINT bulk_import_export_batches_pkey PRIMARY KEY (id); + + +-- +-- Name: bulk_import_export_uploads bulk_import_export_uploads_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.bulk_import_export_uploads + ADD CONSTRAINT bulk_import_export_uploads_pkey PRIMARY KEY (id); + + +-- +-- Name: bulk_import_exports bulk_import_exports_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.bulk_import_exports + ADD CONSTRAINT bulk_import_exports_pkey PRIMARY KEY (id); + + +-- +-- Name: bulk_import_failures bulk_import_failures_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.bulk_import_failures + ADD CONSTRAINT bulk_import_failures_pkey PRIMARY KEY (id); + + +-- +-- Name: bulk_import_trackers bulk_import_trackers_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.bulk_import_trackers + ADD CONSTRAINT bulk_import_trackers_pkey PRIMARY KEY (id); + + +-- +-- Name: bulk_imports bulk_imports_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.bulk_imports + ADD CONSTRAINT bulk_imports_pkey PRIMARY KEY (id); + + +-- +-- Name: catalog_resource_components catalog_resource_components_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.catalog_resource_components + ADD CONSTRAINT catalog_resource_components_pkey PRIMARY KEY (id); + + +-- +-- Name: catalog_resource_versions catalog_resource_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.catalog_resource_versions + ADD CONSTRAINT catalog_resource_versions_pkey PRIMARY KEY (id); + + +-- +-- Name: catalog_resources catalog_resources_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.catalog_resources + ADD CONSTRAINT catalog_resources_pkey PRIMARY KEY (id); + + +-- +-- Name: catalog_verified_namespaces catalog_verified_namespaces_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.catalog_verified_namespaces + ADD CONSTRAINT catalog_verified_namespaces_pkey PRIMARY KEY (id); + + +-- +-- Name: chat_names chat_names_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.chat_names + ADD CONSTRAINT chat_names_pkey PRIMARY KEY (id); + + +-- +-- Name: chat_teams chat_teams_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.chat_teams + ADD CONSTRAINT chat_teams_pkey PRIMARY KEY (id); + + +-- +-- Name: workspaces check_2a89035b04; Type: CHECK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE public.workspaces + ADD CONSTRAINT check_2a89035b04 CHECK ((personal_access_token_id IS NOT NULL)) NOT VALID; + + +-- +-- Name: vulnerability_scanners check_37608c9db5; Type: CHECK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE public.vulnerability_scanners + ADD CONSTRAINT check_37608c9db5 CHECK ((char_length(vendor) <= 255)) NOT VALID; + + +-- +-- Name: ci_runners check_46c685e76f; Type: CHECK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE public.ci_runners + ADD CONSTRAINT check_46c685e76f CHECK ((char_length((description)::text) <= 1024)) NOT VALID; + + +-- +-- Name: ci_job_variables check_567d1ccb72; Type: CHECK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE public.ci_job_variables + ADD CONSTRAINT check_567d1ccb72 CHECK ((project_id IS NOT NULL)) NOT VALID; + + +-- +-- Name: ci_runners check_91230910ec; Type: CHECK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE public.ci_runners + ADD CONSTRAINT check_91230910ec CHECK ((char_length((name)::text) <= 256)) NOT VALID; + + +-- +-- Name: sprints check_ccd8a1eae0; Type: CHECK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE public.sprints + ADD CONSTRAINT check_ccd8a1eae0 CHECK ((start_date IS NOT NULL)) NOT VALID; + + +-- +-- Name: group_import_states check_cda75c7c3f; Type: CHECK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE public.group_import_states + ADD CONSTRAINT check_cda75c7c3f CHECK ((user_id IS NOT NULL)) NOT VALID; + + +-- +-- Name: packages_packages check_d6301aedeb; Type: CHECK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE public.packages_packages + ADD CONSTRAINT check_d6301aedeb CHECK ((char_length(status_message) <= 255)) NOT VALID; + + +-- +-- Name: sprints check_df3816aed7; Type: CHECK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE public.sprints + ADD CONSTRAINT check_df3816aed7 CHECK ((due_date IS NOT NULL)) NOT VALID; + + +-- +-- Name: web_hook_logs check_df72cb58f5; Type: CHECK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE public.web_hook_logs + ADD CONSTRAINT check_df72cb58f5 CHECK ((char_length(url_hash) <= 44)) NOT VALID; + + +-- +-- Name: projects check_fa75869cb1; Type: CHECK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE public.projects + ADD CONSTRAINT check_fa75869cb1 CHECK ((project_namespace_id IS NOT NULL)) NOT VALID; + + +-- +-- Name: ci_build_needs ci_build_needs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_build_needs + ADD CONSTRAINT ci_build_needs_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_build_pending_states ci_build_pending_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_build_pending_states + ADD CONSTRAINT ci_build_pending_states_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_build_report_results ci_build_report_results_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_build_report_results + ADD CONSTRAINT ci_build_report_results_pkey PRIMARY KEY (build_id); + + +-- +-- Name: ci_build_trace_chunks ci_build_trace_chunks_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_build_trace_chunks + ADD CONSTRAINT ci_build_trace_chunks_pkey PRIMARY KEY (id); + + +-- +-- Name: p_ci_build_trace_metadata p_ci_build_trace_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_ci_build_trace_metadata + ADD CONSTRAINT p_ci_build_trace_metadata_pkey PRIMARY KEY (build_id, partition_id); + + +-- +-- Name: ci_build_trace_metadata ci_build_trace_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_build_trace_metadata + ADD CONSTRAINT ci_build_trace_metadata_pkey PRIMARY KEY (build_id, partition_id); + + +-- +-- Name: p_ci_builds_metadata p_ci_builds_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_ci_builds_metadata + ADD CONSTRAINT p_ci_builds_metadata_pkey PRIMARY KEY (id, partition_id); + + +-- +-- Name: ci_builds_metadata ci_builds_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_builds_metadata + ADD CONSTRAINT ci_builds_metadata_pkey PRIMARY KEY (id, partition_id); + + +-- +-- Name: p_ci_builds p_ci_builds_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_ci_builds + ADD CONSTRAINT p_ci_builds_pkey PRIMARY KEY (id, partition_id); + + +-- +-- Name: ci_builds ci_builds_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_builds + ADD CONSTRAINT ci_builds_pkey PRIMARY KEY (id, partition_id); + + +-- +-- Name: ci_builds_runner_session ci_builds_runner_session_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_builds_runner_session + ADD CONSTRAINT ci_builds_runner_session_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_cost_settings ci_cost_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_cost_settings + ADD CONSTRAINT ci_cost_settings_pkey PRIMARY KEY (runner_id); + + +-- +-- Name: ci_daily_build_group_report_results ci_daily_build_group_report_results_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_daily_build_group_report_results + ADD CONSTRAINT ci_daily_build_group_report_results_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_deleted_objects ci_deleted_objects_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_deleted_objects + ADD CONSTRAINT ci_deleted_objects_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_freeze_periods ci_freeze_periods_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_freeze_periods + ADD CONSTRAINT ci_freeze_periods_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_group_variables ci_group_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_group_variables + ADD CONSTRAINT ci_group_variables_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_instance_variables ci_instance_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_instance_variables + ADD CONSTRAINT ci_instance_variables_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_job_artifact_states ci_job_artifact_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_job_artifact_states + ADD CONSTRAINT ci_job_artifact_states_pkey PRIMARY KEY (job_artifact_id); + + +-- +-- Name: p_ci_job_artifacts p_ci_job_artifacts_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_ci_job_artifacts + ADD CONSTRAINT p_ci_job_artifacts_pkey PRIMARY KEY (id, partition_id); + + +-- +-- Name: ci_job_artifacts ci_job_artifacts_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_job_artifacts + ADD CONSTRAINT ci_job_artifacts_pkey PRIMARY KEY (id, partition_id); + + +-- +-- Name: ci_job_token_group_scope_links ci_job_token_group_scope_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_job_token_group_scope_links + ADD CONSTRAINT ci_job_token_group_scope_links_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_job_token_project_scope_links ci_job_token_project_scope_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_job_token_project_scope_links + ADD CONSTRAINT ci_job_token_project_scope_links_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_job_variables ci_job_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_job_variables + ADD CONSTRAINT ci_job_variables_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_minutes_additional_packs ci_minutes_additional_packs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_minutes_additional_packs + ADD CONSTRAINT ci_minutes_additional_packs_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_namespace_mirrors ci_namespace_mirrors_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_namespace_mirrors + ADD CONSTRAINT ci_namespace_mirrors_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_namespace_monthly_usages ci_namespace_monthly_usages_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_namespace_monthly_usages + ADD CONSTRAINT ci_namespace_monthly_usages_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_partitions ci_partitions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_partitions + ADD CONSTRAINT ci_partitions_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_pending_builds ci_pending_builds_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_pending_builds + ADD CONSTRAINT ci_pending_builds_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_pipeline_artifacts ci_pipeline_artifacts_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_pipeline_artifacts + ADD CONSTRAINT ci_pipeline_artifacts_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_pipeline_chat_data ci_pipeline_chat_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_pipeline_chat_data + ADD CONSTRAINT ci_pipeline_chat_data_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_pipeline_messages ci_pipeline_messages_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_pipeline_messages + ADD CONSTRAINT ci_pipeline_messages_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_pipeline_metadata ci_pipeline_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_pipeline_metadata + ADD CONSTRAINT ci_pipeline_metadata_pkey PRIMARY KEY (pipeline_id); + + +-- +-- Name: ci_pipeline_schedule_variables ci_pipeline_schedule_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_pipeline_schedule_variables + ADD CONSTRAINT ci_pipeline_schedule_variables_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_pipeline_schedules ci_pipeline_schedules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_pipeline_schedules + ADD CONSTRAINT ci_pipeline_schedules_pkey PRIMARY KEY (id); + + +-- +-- Name: p_ci_pipeline_variables p_ci_pipeline_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_ci_pipeline_variables + ADD CONSTRAINT p_ci_pipeline_variables_pkey PRIMARY KEY (id, partition_id); + + +-- +-- Name: ci_pipeline_variables ci_pipeline_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_pipeline_variables + ADD CONSTRAINT ci_pipeline_variables_pkey PRIMARY KEY (id, partition_id); + + +-- +-- Name: ci_pipelines_config ci_pipelines_config_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_pipelines_config + ADD CONSTRAINT ci_pipelines_config_pkey PRIMARY KEY (pipeline_id); + + +-- +-- Name: p_ci_pipelines p_ci_pipelines_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_ci_pipelines + ADD CONSTRAINT p_ci_pipelines_pkey PRIMARY KEY (id, partition_id); + + +-- +-- Name: ci_pipelines ci_pipelines_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_pipelines + ADD CONSTRAINT ci_pipelines_pkey PRIMARY KEY (id, partition_id); + + +-- +-- Name: ci_project_mirrors ci_project_mirrors_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_project_mirrors + ADD CONSTRAINT ci_project_mirrors_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_project_monthly_usages ci_project_monthly_usages_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_project_monthly_usages + ADD CONSTRAINT ci_project_monthly_usages_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_refs ci_refs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_refs + ADD CONSTRAINT ci_refs_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_resource_groups ci_resource_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_resource_groups + ADD CONSTRAINT ci_resource_groups_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_resources ci_resources_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_resources + ADD CONSTRAINT ci_resources_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_runner_machines ci_runner_machines_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_runner_machines + ADD CONSTRAINT ci_runner_machines_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_runner_namespaces ci_runner_namespaces_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_runner_namespaces + ADD CONSTRAINT ci_runner_namespaces_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_runner_projects ci_runner_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_runner_projects + ADD CONSTRAINT ci_runner_projects_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_runner_versions ci_runner_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_runner_versions + ADD CONSTRAINT ci_runner_versions_pkey PRIMARY KEY (version); + + +-- +-- Name: ci_runners ci_runners_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_runners + ADD CONSTRAINT ci_runners_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_running_builds ci_running_builds_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_running_builds + ADD CONSTRAINT ci_running_builds_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_secure_file_states ci_secure_file_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_secure_file_states + ADD CONSTRAINT ci_secure_file_states_pkey PRIMARY KEY (ci_secure_file_id); + + +-- +-- Name: ci_secure_files ci_secure_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_secure_files + ADD CONSTRAINT ci_secure_files_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_sources_pipelines ci_sources_pipelines_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_sources_pipelines + ADD CONSTRAINT ci_sources_pipelines_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_sources_projects ci_sources_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_sources_projects + ADD CONSTRAINT ci_sources_projects_pkey PRIMARY KEY (id); + + +-- +-- Name: p_ci_stages p_ci_stages_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_ci_stages + ADD CONSTRAINT p_ci_stages_pkey PRIMARY KEY (id, partition_id); + + +-- +-- Name: ci_stages ci_stages_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_stages + ADD CONSTRAINT ci_stages_pkey PRIMARY KEY (id, partition_id); + + +-- +-- Name: ci_subscriptions_projects ci_subscriptions_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_subscriptions_projects + ADD CONSTRAINT ci_subscriptions_projects_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_trigger_requests ci_trigger_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_trigger_requests + ADD CONSTRAINT ci_trigger_requests_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_triggers ci_triggers_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_triggers + ADD CONSTRAINT ci_triggers_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_unit_test_failures ci_unit_test_failures_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_unit_test_failures + ADD CONSTRAINT ci_unit_test_failures_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_unit_tests ci_unit_tests_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_unit_tests + ADD CONSTRAINT ci_unit_tests_pkey PRIMARY KEY (id); + + +-- +-- Name: ci_variables ci_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ci_variables + ADD CONSTRAINT ci_variables_pkey PRIMARY KEY (id); + + +-- +-- Name: cloud_connector_access cloud_connector_access_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.cloud_connector_access + ADD CONSTRAINT cloud_connector_access_pkey PRIMARY KEY (id); + + +-- +-- Name: cluster_agent_tokens cluster_agent_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.cluster_agent_tokens + ADD CONSTRAINT cluster_agent_tokens_pkey PRIMARY KEY (id); + + +-- +-- Name: cluster_agent_url_configurations cluster_agent_url_configurations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.cluster_agent_url_configurations + ADD CONSTRAINT cluster_agent_url_configurations_pkey PRIMARY KEY (id); + + +-- +-- Name: cluster_agents cluster_agents_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.cluster_agents + ADD CONSTRAINT cluster_agents_pkey PRIMARY KEY (id); + + +-- +-- Name: cluster_enabled_grants cluster_enabled_grants_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.cluster_enabled_grants + ADD CONSTRAINT cluster_enabled_grants_pkey PRIMARY KEY (id); + + +-- +-- Name: cluster_groups cluster_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.cluster_groups + ADD CONSTRAINT cluster_groups_pkey PRIMARY KEY (id); + + +-- +-- Name: cluster_platforms_kubernetes cluster_platforms_kubernetes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.cluster_platforms_kubernetes + ADD CONSTRAINT cluster_platforms_kubernetes_pkey PRIMARY KEY (id); + + +-- +-- Name: cluster_projects cluster_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.cluster_projects + ADD CONSTRAINT cluster_projects_pkey PRIMARY KEY (id); + + +-- +-- Name: cluster_providers_aws cluster_providers_aws_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.cluster_providers_aws + ADD CONSTRAINT cluster_providers_aws_pkey PRIMARY KEY (id); + + +-- +-- Name: cluster_providers_gcp cluster_providers_gcp_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.cluster_providers_gcp + ADD CONSTRAINT cluster_providers_gcp_pkey PRIMARY KEY (id); + + +-- +-- Name: clusters_integration_prometheus clusters_integration_prometheus_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.clusters_integration_prometheus + ADD CONSTRAINT clusters_integration_prometheus_pkey PRIMARY KEY (cluster_id); + + +-- +-- Name: clusters_kubernetes_namespaces clusters_kubernetes_namespaces_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.clusters_kubernetes_namespaces + ADD CONSTRAINT clusters_kubernetes_namespaces_pkey PRIMARY KEY (id); + + +-- +-- Name: clusters clusters_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.clusters + ADD CONSTRAINT clusters_pkey PRIMARY KEY (id); + + +-- +-- Name: commit_user_mentions commit_user_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.commit_user_mentions + ADD CONSTRAINT commit_user_mentions_pkey PRIMARY KEY (id); + + +-- +-- Name: compliance_checks compliance_checks_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.compliance_checks + ADD CONSTRAINT compliance_checks_pkey PRIMARY KEY (id); + + +-- +-- Name: compliance_framework_security_policies compliance_framework_security_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.compliance_framework_security_policies + ADD CONSTRAINT compliance_framework_security_policies_pkey PRIMARY KEY (id); + + +-- +-- Name: compliance_management_frameworks compliance_management_frameworks_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.compliance_management_frameworks + ADD CONSTRAINT compliance_management_frameworks_pkey PRIMARY KEY (id); + + +-- +-- Name: compliance_requirements compliance_requirements_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.compliance_requirements + ADD CONSTRAINT compliance_requirements_pkey PRIMARY KEY (id); + + +-- +-- Name: container_expiration_policies container_expiration_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.container_expiration_policies + ADD CONSTRAINT container_expiration_policies_pkey PRIMARY KEY (project_id); + + +-- +-- Name: container_registry_data_repair_details container_registry_data_repair_details_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.container_registry_data_repair_details + ADD CONSTRAINT container_registry_data_repair_details_pkey PRIMARY KEY (project_id); + + +-- +-- Name: container_registry_protection_rules container_registry_protection_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.container_registry_protection_rules + ADD CONSTRAINT container_registry_protection_rules_pkey PRIMARY KEY (id); + + +-- +-- Name: container_repositories container_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.container_repositories + ADD CONSTRAINT container_repositories_pkey PRIMARY KEY (id); + + +-- +-- Name: container_repository_states container_repository_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.container_repository_states + ADD CONSTRAINT container_repository_states_pkey PRIMARY KEY (container_repository_id); + + +-- +-- Name: content_blocked_states content_blocked_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.content_blocked_states + ADD CONSTRAINT content_blocked_states_pkey PRIMARY KEY (id); + + +-- +-- Name: conversational_development_index_metrics conversational_development_index_metrics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.conversational_development_index_metrics + ADD CONSTRAINT conversational_development_index_metrics_pkey PRIMARY KEY (id); + + +-- +-- Name: country_access_logs country_access_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.country_access_logs + ADD CONSTRAINT country_access_logs_pkey PRIMARY KEY (id); + + +-- +-- Name: coverage_fuzzing_corpuses coverage_fuzzing_corpuses_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.coverage_fuzzing_corpuses + ADD CONSTRAINT coverage_fuzzing_corpuses_pkey PRIMARY KEY (id); + + +-- +-- Name: csv_issue_imports csv_issue_imports_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.csv_issue_imports + ADD CONSTRAINT csv_issue_imports_pkey PRIMARY KEY (id); + + +-- +-- Name: custom_emoji custom_emoji_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.custom_emoji + ADD CONSTRAINT custom_emoji_pkey PRIMARY KEY (id); + + +-- +-- Name: custom_software_licenses custom_software_licenses_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.custom_software_licenses + ADD CONSTRAINT custom_software_licenses_pkey PRIMARY KEY (id); + + +-- +-- Name: customer_relations_contacts customer_relations_contacts_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.customer_relations_contacts + ADD CONSTRAINT customer_relations_contacts_pkey PRIMARY KEY (id); + + +-- +-- Name: customer_relations_organizations customer_relations_organizations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.customer_relations_organizations + ADD CONSTRAINT customer_relations_organizations_pkey PRIMARY KEY (id); + + +-- +-- Name: dast_pre_scan_verification_steps dast_pre_scan_verification_steps_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_pre_scan_verification_steps + ADD CONSTRAINT dast_pre_scan_verification_steps_pkey PRIMARY KEY (id); + + +-- +-- Name: dast_pre_scan_verifications dast_pre_scan_verifications_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_pre_scan_verifications + ADD CONSTRAINT dast_pre_scan_verifications_pkey PRIMARY KEY (id); + + +-- +-- Name: dast_profile_schedules dast_profile_schedules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_profile_schedules + ADD CONSTRAINT dast_profile_schedules_pkey PRIMARY KEY (id); + + +-- +-- Name: dast_profiles_pipelines dast_profiles_pipelines_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_profiles_pipelines + ADD CONSTRAINT dast_profiles_pipelines_pkey PRIMARY KEY (dast_profile_id, ci_pipeline_id); + + +-- +-- Name: dast_profiles dast_profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_profiles + ADD CONSTRAINT dast_profiles_pkey PRIMARY KEY (id); + + +-- +-- Name: dast_profiles_tags dast_profiles_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_profiles_tags + ADD CONSTRAINT dast_profiles_tags_pkey PRIMARY KEY (id); + + +-- +-- Name: dast_scanner_profiles_builds dast_scanner_profiles_builds_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_scanner_profiles_builds + ADD CONSTRAINT dast_scanner_profiles_builds_pkey PRIMARY KEY (dast_scanner_profile_id, ci_build_id); + + +-- +-- Name: dast_scanner_profiles dast_scanner_profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_scanner_profiles + ADD CONSTRAINT dast_scanner_profiles_pkey PRIMARY KEY (id); + + +-- +-- Name: dast_site_profile_secret_variables dast_site_profile_secret_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_site_profile_secret_variables + ADD CONSTRAINT dast_site_profile_secret_variables_pkey PRIMARY KEY (id); + + +-- +-- Name: dast_site_profiles_builds dast_site_profiles_builds_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_site_profiles_builds + ADD CONSTRAINT dast_site_profiles_builds_pkey PRIMARY KEY (dast_site_profile_id, ci_build_id); + + +-- +-- Name: dast_site_profiles dast_site_profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_site_profiles + ADD CONSTRAINT dast_site_profiles_pkey PRIMARY KEY (id); + + +-- +-- Name: dast_site_tokens dast_site_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_site_tokens + ADD CONSTRAINT dast_site_tokens_pkey PRIMARY KEY (id); + + +-- +-- Name: dast_site_validations dast_site_validations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_site_validations + ADD CONSTRAINT dast_site_validations_pkey PRIMARY KEY (id); + + +-- +-- Name: dast_sites dast_sites_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dast_sites + ADD CONSTRAINT dast_sites_pkey PRIMARY KEY (id); + + +-- +-- Name: namespace_settings default_branch_protection_defaults_size_constraint; Type: CHECK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE public.namespace_settings + ADD CONSTRAINT default_branch_protection_defaults_size_constraint CHECK ((octet_length((default_branch_protection_defaults)::text) <= 1024)) NOT VALID; + + +-- +-- Name: application_settings default_branch_protection_defaults_size_constraint; Type: CHECK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE public.application_settings + ADD CONSTRAINT default_branch_protection_defaults_size_constraint CHECK ((octet_length((default_branch_protection_defaults)::text) <= 1024)) NOT VALID; + + +-- +-- Name: dependency_list_export_parts dependency_list_export_parts_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dependency_list_export_parts + ADD CONSTRAINT dependency_list_export_parts_pkey PRIMARY KEY (id); + + +-- +-- Name: dependency_list_exports dependency_list_exports_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dependency_list_exports + ADD CONSTRAINT dependency_list_exports_pkey PRIMARY KEY (id); + + +-- +-- Name: dependency_proxy_blob_states dependency_proxy_blob_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dependency_proxy_blob_states + ADD CONSTRAINT dependency_proxy_blob_states_pkey PRIMARY KEY (dependency_proxy_blob_id); + + +-- +-- Name: dependency_proxy_blobs dependency_proxy_blobs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dependency_proxy_blobs + ADD CONSTRAINT dependency_proxy_blobs_pkey PRIMARY KEY (id); + + +-- +-- Name: dependency_proxy_group_settings dependency_proxy_group_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dependency_proxy_group_settings + ADD CONSTRAINT dependency_proxy_group_settings_pkey PRIMARY KEY (id); + + +-- +-- Name: dependency_proxy_image_ttl_group_policies dependency_proxy_image_ttl_group_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dependency_proxy_image_ttl_group_policies + ADD CONSTRAINT dependency_proxy_image_ttl_group_policies_pkey PRIMARY KEY (group_id); + + +-- +-- Name: dependency_proxy_manifest_states dependency_proxy_manifest_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dependency_proxy_manifest_states + ADD CONSTRAINT dependency_proxy_manifest_states_pkey PRIMARY KEY (dependency_proxy_manifest_id); + + +-- +-- Name: dependency_proxy_manifests dependency_proxy_manifests_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dependency_proxy_manifests + ADD CONSTRAINT dependency_proxy_manifests_pkey PRIMARY KEY (id); + + +-- +-- Name: dependency_proxy_packages_settings dependency_proxy_packages_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dependency_proxy_packages_settings + ADD CONSTRAINT dependency_proxy_packages_settings_pkey PRIMARY KEY (project_id); + + +-- +-- Name: deploy_keys_projects deploy_keys_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.deploy_keys_projects + ADD CONSTRAINT deploy_keys_projects_pkey PRIMARY KEY (id); + + +-- +-- Name: deploy_tokens deploy_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.deploy_tokens + ADD CONSTRAINT deploy_tokens_pkey PRIMARY KEY (id); + + +-- +-- Name: deployment_approvals deployment_approvals_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.deployment_approvals + ADD CONSTRAINT deployment_approvals_pkey PRIMARY KEY (id); + + +-- +-- Name: deployment_clusters deployment_clusters_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.deployment_clusters + ADD CONSTRAINT deployment_clusters_pkey PRIMARY KEY (deployment_id); + + +-- +-- Name: deployment_merge_requests deployment_merge_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.deployment_merge_requests + ADD CONSTRAINT deployment_merge_requests_pkey PRIMARY KEY (deployment_id, merge_request_id); + + +-- +-- Name: deployments deployments_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.deployments + ADD CONSTRAINT deployments_pkey PRIMARY KEY (id); + + +-- +-- Name: description_versions description_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.description_versions + ADD CONSTRAINT description_versions_pkey PRIMARY KEY (id); + + +-- +-- Name: design_management_designs design_management_designs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.design_management_designs + ADD CONSTRAINT design_management_designs_pkey PRIMARY KEY (id); + + +-- +-- Name: design_management_designs_versions design_management_designs_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.design_management_designs_versions + ADD CONSTRAINT design_management_designs_versions_pkey PRIMARY KEY (id); + + +-- +-- Name: design_management_repositories design_management_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.design_management_repositories + ADD CONSTRAINT design_management_repositories_pkey PRIMARY KEY (id); + + +-- +-- Name: design_management_repository_states design_management_repository_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.design_management_repository_states + ADD CONSTRAINT design_management_repository_states_pkey PRIMARY KEY (design_management_repository_id); + + +-- +-- Name: design_management_versions design_management_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.design_management_versions + ADD CONSTRAINT design_management_versions_pkey PRIMARY KEY (id); + + +-- +-- Name: design_user_mentions design_user_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.design_user_mentions + ADD CONSTRAINT design_user_mentions_pkey PRIMARY KEY (id); + + +-- +-- Name: detached_partitions detached_partitions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.detached_partitions + ADD CONSTRAINT detached_partitions_pkey PRIMARY KEY (id); + + +-- +-- Name: diff_note_positions diff_note_positions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.diff_note_positions + ADD CONSTRAINT diff_note_positions_pkey PRIMARY KEY (id); + + +-- +-- Name: dingtalk_tracker_data dingtalk_tracker_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dingtalk_tracker_data + ADD CONSTRAINT dingtalk_tracker_data_pkey PRIMARY KEY (id); + + +-- +-- Name: dora_configurations dora_configurations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dora_configurations + ADD CONSTRAINT dora_configurations_pkey PRIMARY KEY (id); + + +-- +-- Name: dora_daily_metrics dora_daily_metrics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dora_daily_metrics + ADD CONSTRAINT dora_daily_metrics_pkey PRIMARY KEY (id); + + +-- +-- Name: dora_performance_scores dora_performance_scores_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.dora_performance_scores + ADD CONSTRAINT dora_performance_scores_pkey PRIMARY KEY (id); + + +-- +-- Name: draft_notes draft_notes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.draft_notes + ADD CONSTRAINT draft_notes_pkey PRIMARY KEY (id); + + +-- +-- Name: duo_workflows_checkpoints duo_workflows_checkpoints_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.duo_workflows_checkpoints + ADD CONSTRAINT duo_workflows_checkpoints_pkey PRIMARY KEY (id); + + +-- +-- Name: duo_workflows_workflows duo_workflows_workflows_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.duo_workflows_workflows + ADD CONSTRAINT duo_workflows_workflows_pkey PRIMARY KEY (id); + + +-- +-- Name: early_access_program_tracking_events early_access_program_tracking_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.early_access_program_tracking_events + ADD CONSTRAINT early_access_program_tracking_events_pkey PRIMARY KEY (id); + + +-- +-- Name: elastic_group_index_statuses elastic_group_index_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.elastic_group_index_statuses + ADD CONSTRAINT elastic_group_index_statuses_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: elastic_index_settings elastic_index_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.elastic_index_settings + ADD CONSTRAINT elastic_index_settings_pkey PRIMARY KEY (id); + + +-- +-- Name: elastic_reindexing_slices elastic_reindexing_slices_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.elastic_reindexing_slices + ADD CONSTRAINT elastic_reindexing_slices_pkey PRIMARY KEY (id); + + +-- +-- Name: elastic_reindexing_subtasks elastic_reindexing_subtasks_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.elastic_reindexing_subtasks + ADD CONSTRAINT elastic_reindexing_subtasks_pkey PRIMARY KEY (id); + + +-- +-- Name: elastic_reindexing_tasks elastic_reindexing_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.elastic_reindexing_tasks + ADD CONSTRAINT elastic_reindexing_tasks_pkey PRIMARY KEY (id); + + +-- +-- Name: elasticsearch_indexed_namespaces elasticsearch_indexed_namespaces_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.elasticsearch_indexed_namespaces + ADD CONSTRAINT elasticsearch_indexed_namespaces_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: elasticsearch_indexed_projects elasticsearch_indexed_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.elasticsearch_indexed_projects + ADD CONSTRAINT elasticsearch_indexed_projects_pkey PRIMARY KEY (project_id); + + +-- +-- Name: emails emails_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.emails + ADD CONSTRAINT emails_pkey PRIMARY KEY (id); + + +-- +-- Name: environments environments_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.environments + ADD CONSTRAINT environments_pkey PRIMARY KEY (id); + + +-- +-- Name: epic_issues epic_issues_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.epic_issues + ADD CONSTRAINT epic_issues_pkey PRIMARY KEY (id); + + +-- +-- Name: epic_metrics epic_metrics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.epic_metrics + ADD CONSTRAINT epic_metrics_pkey PRIMARY KEY (id); + + +-- +-- Name: epic_user_mentions epic_user_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.epic_user_mentions + ADD CONSTRAINT epic_user_mentions_pkey PRIMARY KEY (id); + + +-- +-- Name: epics epics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.epics + ADD CONSTRAINT epics_pkey PRIMARY KEY (id); + + +-- +-- Name: error_tracking_client_keys error_tracking_client_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.error_tracking_client_keys + ADD CONSTRAINT error_tracking_client_keys_pkey PRIMARY KEY (id); + + +-- +-- Name: error_tracking_error_events error_tracking_error_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.error_tracking_error_events + ADD CONSTRAINT error_tracking_error_events_pkey PRIMARY KEY (id); + + +-- +-- Name: error_tracking_errors error_tracking_errors_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.error_tracking_errors + ADD CONSTRAINT error_tracking_errors_pkey PRIMARY KEY (id); + + +-- +-- Name: events events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.events + ADD CONSTRAINT events_pkey PRIMARY KEY (id); + + +-- +-- Name: evidences evidences_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.evidences + ADD CONSTRAINT evidences_pkey PRIMARY KEY (id); + + +-- +-- Name: external_approval_rules external_approval_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.external_approval_rules + ADD CONSTRAINT external_approval_rules_pkey PRIMARY KEY (id); + + +-- +-- Name: external_pull_requests external_pull_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.external_pull_requests + ADD CONSTRAINT external_pull_requests_pkey PRIMARY KEY (id); + + +-- +-- Name: external_status_checks external_status_checks_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.external_status_checks + ADD CONSTRAINT external_status_checks_pkey PRIMARY KEY (id); + + +-- +-- Name: external_status_checks_protected_branches external_status_checks_protected_branches_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.external_status_checks_protected_branches + ADD CONSTRAINT external_status_checks_protected_branches_pkey PRIMARY KEY (id); + + +-- +-- Name: feature_gates feature_gates_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.feature_gates + ADD CONSTRAINT feature_gates_pkey PRIMARY KEY (id); + + +-- +-- Name: features features_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.features + ADD CONSTRAINT features_pkey PRIMARY KEY (id); + + +-- +-- Name: fork_network_members fork_network_members_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.fork_network_members + ADD CONSTRAINT fork_network_members_pkey PRIMARY KEY (id); + + +-- +-- Name: fork_networks fork_networks_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.fork_networks + ADD CONSTRAINT fork_networks_pkey PRIMARY KEY (id); + + +-- +-- Name: geo_cache_invalidation_events geo_cache_invalidation_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.geo_cache_invalidation_events + ADD CONSTRAINT geo_cache_invalidation_events_pkey PRIMARY KEY (id); + + +-- +-- Name: geo_event_log geo_event_log_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.geo_event_log + ADD CONSTRAINT geo_event_log_pkey PRIMARY KEY (id); + + +-- +-- Name: geo_events geo_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.geo_events + ADD CONSTRAINT geo_events_pkey PRIMARY KEY (id); + + +-- +-- Name: geo_node_namespace_links geo_node_namespace_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.geo_node_namespace_links + ADD CONSTRAINT geo_node_namespace_links_pkey PRIMARY KEY (id); + + +-- +-- Name: geo_node_statuses geo_node_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.geo_node_statuses + ADD CONSTRAINT geo_node_statuses_pkey PRIMARY KEY (id); + + +-- +-- Name: geo_nodes geo_nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.geo_nodes + ADD CONSTRAINT geo_nodes_pkey PRIMARY KEY (id); + + +-- +-- Name: ghost_user_migrations ghost_user_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ghost_user_migrations + ADD CONSTRAINT ghost_user_migrations_pkey PRIMARY KEY (id); + + +-- +-- Name: gitlab_subscription_histories gitlab_subscription_histories_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.gitlab_subscription_histories + ADD CONSTRAINT gitlab_subscription_histories_pkey PRIMARY KEY (id); + + +-- +-- Name: gitlab_subscriptions gitlab_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.gitlab_subscriptions + ADD CONSTRAINT gitlab_subscriptions_pkey PRIMARY KEY (id); + + +-- +-- Name: gpg_key_subkeys gpg_key_subkeys_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.gpg_key_subkeys + ADD CONSTRAINT gpg_key_subkeys_pkey PRIMARY KEY (id); + + +-- +-- Name: gpg_keys gpg_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.gpg_keys + ADD CONSTRAINT gpg_keys_pkey PRIMARY KEY (id); + + +-- +-- Name: gpg_signatures gpg_signatures_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.gpg_signatures + ADD CONSTRAINT gpg_signatures_pkey PRIMARY KEY (id); + + +-- +-- Name: grafana_integrations grafana_integrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.grafana_integrations + ADD CONSTRAINT grafana_integrations_pkey PRIMARY KEY (id); + + +-- +-- Name: group_audit_events group_audit_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_audit_events + ADD CONSTRAINT group_audit_events_pkey PRIMARY KEY (id, created_at); + + +-- +-- Name: group_crm_settings group_crm_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_crm_settings + ADD CONSTRAINT group_crm_settings_pkey PRIMARY KEY (group_id); + + +-- +-- Name: group_custom_attributes group_custom_attributes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_custom_attributes + ADD CONSTRAINT group_custom_attributes_pkey PRIMARY KEY (id); + + +-- +-- Name: group_deletion_schedules group_deletion_schedules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_deletion_schedules + ADD CONSTRAINT group_deletion_schedules_pkey PRIMARY KEY (group_id); + + +-- +-- Name: group_deploy_keys_groups group_deploy_keys_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_deploy_keys_groups + ADD CONSTRAINT group_deploy_keys_groups_pkey PRIMARY KEY (id); + + +-- +-- Name: group_deploy_keys group_deploy_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_deploy_keys + ADD CONSTRAINT group_deploy_keys_pkey PRIMARY KEY (id); + + +-- +-- Name: group_deploy_tokens group_deploy_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_deploy_tokens + ADD CONSTRAINT group_deploy_tokens_pkey PRIMARY KEY (id); + + +-- +-- Name: group_features group_features_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_features + ADD CONSTRAINT group_features_pkey PRIMARY KEY (group_id); + + +-- +-- Name: group_group_links group_group_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_group_links + ADD CONSTRAINT group_group_links_pkey PRIMARY KEY (id); + + +-- +-- Name: group_import_states group_import_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_import_states + ADD CONSTRAINT group_import_states_pkey PRIMARY KEY (group_id); + + +-- +-- Name: group_merge_request_approval_settings group_merge_request_approval_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_merge_request_approval_settings + ADD CONSTRAINT group_merge_request_approval_settings_pkey PRIMARY KEY (group_id); + + +-- +-- Name: group_repository_storage_moves group_repository_storage_moves_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_repository_storage_moves + ADD CONSTRAINT group_repository_storage_moves_pkey PRIMARY KEY (id); + + +-- +-- Name: group_saved_replies group_saved_replies_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_saved_replies + ADD CONSTRAINT group_saved_replies_pkey PRIMARY KEY (id); + + +-- +-- Name: group_ssh_certificates group_ssh_certificates_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_ssh_certificates + ADD CONSTRAINT group_ssh_certificates_pkey PRIMARY KEY (id); + + +-- +-- Name: group_wiki_repositories group_wiki_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_wiki_repositories + ADD CONSTRAINT group_wiki_repositories_pkey PRIMARY KEY (group_id); + + +-- +-- Name: group_wiki_repository_states group_wiki_repository_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.group_wiki_repository_states + ADD CONSTRAINT group_wiki_repository_states_pkey PRIMARY KEY (id); + + +-- +-- Name: groups_visits groups_visits_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.groups_visits + ADD CONSTRAINT groups_visits_pkey PRIMARY KEY (id, visited_at); + + +-- +-- Name: historical_data historical_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.historical_data + ADD CONSTRAINT historical_data_pkey PRIMARY KEY (id); + + +-- +-- Name: identities identities_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.identities + ADD CONSTRAINT identities_pkey PRIMARY KEY (id); + + +-- +-- Name: import_export_uploads import_export_uploads_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.import_export_uploads + ADD CONSTRAINT import_export_uploads_pkey PRIMARY KEY (id); + + +-- +-- Name: import_failures import_failures_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.import_failures + ADD CONSTRAINT import_failures_pkey PRIMARY KEY (id); + + +-- +-- Name: import_placeholder_memberships import_placeholder_memberships_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.import_placeholder_memberships + ADD CONSTRAINT import_placeholder_memberships_pkey PRIMARY KEY (id); + + +-- +-- Name: import_source_user_placeholder_references import_source_user_placeholder_references_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.import_source_user_placeholder_references + ADD CONSTRAINT import_source_user_placeholder_references_pkey PRIMARY KEY (id); + + +-- +-- Name: import_source_users import_source_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.import_source_users + ADD CONSTRAINT import_source_users_pkey PRIMARY KEY (id); + + +-- +-- Name: incident_management_oncall_shifts inc_mgmnt_no_overlapping_oncall_shifts; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_oncall_shifts + ADD CONSTRAINT inc_mgmnt_no_overlapping_oncall_shifts EXCLUDE USING gist (rotation_id WITH =, tstzrange(starts_at, ends_at, '[)'::text) WITH &&); + + +-- +-- Name: incident_management_escalation_policies incident_management_escalation_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_escalation_policies + ADD CONSTRAINT incident_management_escalation_policies_pkey PRIMARY KEY (id); + + +-- +-- Name: incident_management_escalation_rules incident_management_escalation_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_escalation_rules + ADD CONSTRAINT incident_management_escalation_rules_pkey PRIMARY KEY (id); + + +-- +-- Name: incident_management_issuable_escalation_statuses incident_management_issuable_escalation_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_issuable_escalation_statuses + ADD CONSTRAINT incident_management_issuable_escalation_statuses_pkey PRIMARY KEY (id); + + +-- +-- Name: incident_management_oncall_participants incident_management_oncall_participants_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_oncall_participants + ADD CONSTRAINT incident_management_oncall_participants_pkey PRIMARY KEY (id); + + +-- +-- Name: incident_management_oncall_rotations incident_management_oncall_rotations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_oncall_rotations + ADD CONSTRAINT incident_management_oncall_rotations_pkey PRIMARY KEY (id); + + +-- +-- Name: incident_management_oncall_schedules incident_management_oncall_schedules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_oncall_schedules + ADD CONSTRAINT incident_management_oncall_schedules_pkey PRIMARY KEY (id); + + +-- +-- Name: incident_management_oncall_shifts incident_management_oncall_shifts_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_oncall_shifts + ADD CONSTRAINT incident_management_oncall_shifts_pkey PRIMARY KEY (id); + + +-- +-- Name: incident_management_pending_alert_escalations incident_management_pending_alert_escalations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_pending_alert_escalations + ADD CONSTRAINT incident_management_pending_alert_escalations_pkey PRIMARY KEY (id, process_at); + + +-- +-- Name: incident_management_pending_issue_escalations incident_management_pending_issue_escalations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_pending_issue_escalations + ADD CONSTRAINT incident_management_pending_issue_escalations_pkey PRIMARY KEY (id, process_at); + + +-- +-- Name: incident_management_timeline_event_tag_links incident_management_timeline_event_tag_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_timeline_event_tag_links + ADD CONSTRAINT incident_management_timeline_event_tag_links_pkey PRIMARY KEY (id); + + +-- +-- Name: incident_management_timeline_event_tags incident_management_timeline_event_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_timeline_event_tags + ADD CONSTRAINT incident_management_timeline_event_tags_pkey PRIMARY KEY (id); + + +-- +-- Name: incident_management_timeline_events incident_management_timeline_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.incident_management_timeline_events + ADD CONSTRAINT incident_management_timeline_events_pkey PRIMARY KEY (id); + + +-- +-- Name: index_statuses index_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.index_statuses + ADD CONSTRAINT index_statuses_pkey PRIMARY KEY (id); + + +-- +-- Name: insights insights_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.insights + ADD CONSTRAINT insights_pkey PRIMARY KEY (id); + + +-- +-- Name: instance_audit_events instance_audit_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.instance_audit_events + ADD CONSTRAINT instance_audit_events_pkey PRIMARY KEY (id, created_at); + + +-- +-- Name: instance_audit_events_streaming_headers instance_audit_events_streaming_headers_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.instance_audit_events_streaming_headers + ADD CONSTRAINT instance_audit_events_streaming_headers_pkey PRIMARY KEY (id); + + +-- +-- Name: integrations integrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.integrations + ADD CONSTRAINT integrations_pkey PRIMARY KEY (id); + + +-- +-- Name: internal_ids internal_ids_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.internal_ids + ADD CONSTRAINT internal_ids_pkey PRIMARY KEY (id); + + +-- +-- Name: ip_restrictions ip_restrictions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ip_restrictions + ADD CONSTRAINT ip_restrictions_pkey PRIMARY KEY (id); + + +-- +-- Name: issuable_metric_images issuable_metric_images_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issuable_metric_images + ADD CONSTRAINT issuable_metric_images_pkey PRIMARY KEY (id); + + +-- +-- Name: issuable_resource_links issuable_resource_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issuable_resource_links + ADD CONSTRAINT issuable_resource_links_pkey PRIMARY KEY (id); + + +-- +-- Name: issuable_severities issuable_severities_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issuable_severities + ADD CONSTRAINT issuable_severities_pkey PRIMARY KEY (id); + + +-- +-- Name: issuable_slas issuable_slas_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issuable_slas + ADD CONSTRAINT issuable_slas_pkey PRIMARY KEY (id); + + +-- +-- Name: issue_assignees issue_assignees_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issue_assignees + ADD CONSTRAINT issue_assignees_pkey PRIMARY KEY (issue_id, user_id); + + +-- +-- Name: issue_assignment_events issue_assignment_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issue_assignment_events + ADD CONSTRAINT issue_assignment_events_pkey PRIMARY KEY (id); + + +-- +-- Name: issue_customer_relations_contacts issue_customer_relations_contacts_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issue_customer_relations_contacts + ADD CONSTRAINT issue_customer_relations_contacts_pkey PRIMARY KEY (id); + + +-- +-- Name: issue_email_participants issue_email_participants_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issue_email_participants + ADD CONSTRAINT issue_email_participants_pkey PRIMARY KEY (id); + + +-- +-- Name: issue_emails issue_emails_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issue_emails + ADD CONSTRAINT issue_emails_pkey PRIMARY KEY (id); + + +-- +-- Name: issue_links issue_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issue_links + ADD CONSTRAINT issue_links_pkey PRIMARY KEY (id); + + +-- +-- Name: issue_metrics issue_metrics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issue_metrics + ADD CONSTRAINT issue_metrics_pkey PRIMARY KEY (id); + + +-- +-- Name: issue_tracker_data issue_tracker_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issue_tracker_data + ADD CONSTRAINT issue_tracker_data_pkey PRIMARY KEY (id); + + +-- +-- Name: issue_user_mentions issue_user_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issue_user_mentions + ADD CONSTRAINT issue_user_mentions_pkey PRIMARY KEY (id); + + +-- +-- Name: issues issues_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issues + ADD CONSTRAINT issues_pkey PRIMARY KEY (id); + + +-- +-- Name: issues_prometheus_alert_events issues_prometheus_alert_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issues_prometheus_alert_events + ADD CONSTRAINT issues_prometheus_alert_events_pkey PRIMARY KEY (issue_id, prometheus_alert_event_id); + + +-- +-- Name: issues_self_managed_prometheus_alert_events issues_self_managed_prometheus_alert_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.issues_self_managed_prometheus_alert_events + ADD CONSTRAINT issues_self_managed_prometheus_alert_events_pkey PRIMARY KEY (issue_id, self_managed_prometheus_alert_event_id); + + +-- +-- Name: sprints iteration_start_and_due_date_iterations_cadence_id_constraint; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sprints + ADD CONSTRAINT iteration_start_and_due_date_iterations_cadence_id_constraint EXCLUDE USING gist (iterations_cadence_id WITH =, daterange(start_date, due_date, '[]'::text) WITH &&) WHERE ((group_id IS NOT NULL)) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: iterations_cadences iterations_cadences_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.iterations_cadences + ADD CONSTRAINT iterations_cadences_pkey PRIMARY KEY (id); + + +-- +-- Name: jira_connect_installations jira_connect_installations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.jira_connect_installations + ADD CONSTRAINT jira_connect_installations_pkey PRIMARY KEY (id); + + +-- +-- Name: jira_connect_subscriptions jira_connect_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.jira_connect_subscriptions + ADD CONSTRAINT jira_connect_subscriptions_pkey PRIMARY KEY (id); + + +-- +-- Name: jira_imports jira_imports_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.jira_imports + ADD CONSTRAINT jira_imports_pkey PRIMARY KEY (id); + + +-- +-- Name: jira_tracker_data jira_tracker_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.jira_tracker_data + ADD CONSTRAINT jira_tracker_data_pkey PRIMARY KEY (id); + + +-- +-- Name: keys keys_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.keys + ADD CONSTRAINT keys_pkey PRIMARY KEY (id); + + +-- +-- Name: label_links label_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.label_links + ADD CONSTRAINT label_links_pkey PRIMARY KEY (id); + + +-- +-- Name: label_priorities label_priorities_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.label_priorities + ADD CONSTRAINT label_priorities_pkey PRIMARY KEY (id); + + +-- +-- Name: labels labels_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.labels + ADD CONSTRAINT labels_pkey PRIMARY KEY (id); + + +-- +-- Name: ldap_group_links ldap_group_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ldap_group_links + ADD CONSTRAINT ldap_group_links_pkey PRIMARY KEY (id); + + +-- +-- Name: lfs_file_locks lfs_file_locks_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.lfs_file_locks + ADD CONSTRAINT lfs_file_locks_pkey PRIMARY KEY (id); + + +-- +-- Name: lfs_object_states lfs_object_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.lfs_object_states + ADD CONSTRAINT lfs_object_states_pkey PRIMARY KEY (lfs_object_id); + + +-- +-- Name: lfs_objects lfs_objects_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.lfs_objects + ADD CONSTRAINT lfs_objects_pkey PRIMARY KEY (id); + + +-- +-- Name: lfs_objects_projects lfs_objects_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.lfs_objects_projects + ADD CONSTRAINT lfs_objects_projects_pkey PRIMARY KEY (id); + + +-- +-- Name: licenses licenses_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.licenses + ADD CONSTRAINT licenses_pkey PRIMARY KEY (id); + + +-- +-- Name: list_user_preferences list_user_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.list_user_preferences + ADD CONSTRAINT list_user_preferences_pkey PRIMARY KEY (id); + + +-- +-- Name: lists lists_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.lists + ADD CONSTRAINT lists_pkey PRIMARY KEY (id); + + +-- +-- Name: loose_foreign_keys_deleted_records loose_foreign_keys_deleted_records_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.loose_foreign_keys_deleted_records + ADD CONSTRAINT loose_foreign_keys_deleted_records_pkey PRIMARY KEY (partition, id); + + +-- +-- Name: member_approvals member_approvals_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.member_approvals + ADD CONSTRAINT member_approvals_pkey PRIMARY KEY (id); + + +-- +-- Name: member_roles member_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.member_roles + ADD CONSTRAINT member_roles_pkey PRIMARY KEY (id); + + +-- +-- Name: members members_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.members + ADD CONSTRAINT members_pkey PRIMARY KEY (id); + + +-- +-- Name: merge_request_assignees merge_request_assignees_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_assignees + ADD CONSTRAINT merge_request_assignees_pkey PRIMARY KEY (id); + + +-- +-- Name: merge_request_assignment_events merge_request_assignment_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_assignment_events + ADD CONSTRAINT merge_request_assignment_events_pkey PRIMARY KEY (id); + + +-- +-- Name: merge_request_blocks merge_request_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_blocks + ADD CONSTRAINT merge_request_blocks_pkey PRIMARY KEY (id); + + +-- +-- Name: merge_request_cleanup_schedules merge_request_cleanup_schedules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_cleanup_schedules + ADD CONSTRAINT merge_request_cleanup_schedules_pkey PRIMARY KEY (merge_request_id); + + +-- +-- Name: merge_request_context_commit_diff_files merge_request_context_commit_diff_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_context_commit_diff_files + ADD CONSTRAINT merge_request_context_commit_diff_files_pkey PRIMARY KEY (merge_request_context_commit_id, relative_order); + + +-- +-- Name: merge_request_context_commits merge_request_context_commits_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_context_commits + ADD CONSTRAINT merge_request_context_commits_pkey PRIMARY KEY (id); + + +-- +-- Name: merge_request_diff_commit_users merge_request_diff_commit_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_diff_commit_users + ADD CONSTRAINT merge_request_diff_commit_users_pkey PRIMARY KEY (id); + + +-- +-- Name: merge_request_diff_commits_b5377a7a34 merge_request_diff_commits_b5377a7a34_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_diff_commits_b5377a7a34 + ADD CONSTRAINT merge_request_diff_commits_b5377a7a34_pkey PRIMARY KEY (merge_request_diff_id, relative_order); + + +-- +-- Name: merge_request_diff_commits merge_request_diff_commits_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_diff_commits + ADD CONSTRAINT merge_request_diff_commits_pkey PRIMARY KEY (merge_request_diff_id, relative_order); + + +-- +-- Name: merge_request_diff_details merge_request_diff_details_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_diff_details + ADD CONSTRAINT merge_request_diff_details_pkey PRIMARY KEY (merge_request_diff_id); + + +-- +-- Name: merge_request_diff_files_99208b8fac merge_request_diff_files_99208b8fac_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_diff_files_99208b8fac + ADD CONSTRAINT merge_request_diff_files_99208b8fac_pkey PRIMARY KEY (merge_request_diff_id, relative_order); + + +-- +-- Name: merge_request_diff_files merge_request_diff_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_diff_files + ADD CONSTRAINT merge_request_diff_files_pkey PRIMARY KEY (merge_request_diff_id, relative_order); + + +-- +-- Name: merge_request_diffs merge_request_diffs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_diffs + ADD CONSTRAINT merge_request_diffs_pkey PRIMARY KEY (id); + + +-- +-- Name: merge_request_metrics merge_request_metrics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_metrics + ADD CONSTRAINT merge_request_metrics_pkey PRIMARY KEY (id); + + +-- +-- Name: merge_request_predictions merge_request_predictions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_predictions + ADD CONSTRAINT merge_request_predictions_pkey PRIMARY KEY (merge_request_id); + + +-- +-- Name: merge_request_requested_changes merge_request_requested_changes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_requested_changes + ADD CONSTRAINT merge_request_requested_changes_pkey PRIMARY KEY (id); + + +-- +-- Name: merge_request_reviewers merge_request_reviewers_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_reviewers + ADD CONSTRAINT merge_request_reviewers_pkey PRIMARY KEY (id); + + +-- +-- Name: merge_request_user_mentions merge_request_user_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_request_user_mentions + ADD CONSTRAINT merge_request_user_mentions_pkey PRIMARY KEY (id); + + +-- +-- Name: merge_requests_closing_issues merge_requests_closing_issues_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_requests_closing_issues + ADD CONSTRAINT merge_requests_closing_issues_pkey PRIMARY KEY (id); + + +-- +-- Name: merge_requests_compliance_violations merge_requests_compliance_violations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_requests_compliance_violations + ADD CONSTRAINT merge_requests_compliance_violations_pkey PRIMARY KEY (id); + + +-- +-- Name: merge_requests merge_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_requests + ADD CONSTRAINT merge_requests_pkey PRIMARY KEY (id); + + +-- +-- Name: merge_trains merge_trains_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.merge_trains + ADD CONSTRAINT merge_trains_pkey PRIMARY KEY (id); + + +-- +-- Name: metrics_dashboard_annotations metrics_dashboard_annotations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.metrics_dashboard_annotations + ADD CONSTRAINT metrics_dashboard_annotations_pkey PRIMARY KEY (id); + + +-- +-- Name: metrics_users_starred_dashboards metrics_users_starred_dashboards_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.metrics_users_starred_dashboards + ADD CONSTRAINT metrics_users_starred_dashboards_pkey PRIMARY KEY (id); + + +-- +-- Name: milestone_releases milestone_releases_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.milestone_releases + ADD CONSTRAINT milestone_releases_pkey PRIMARY KEY (milestone_id, release_id); + + +-- +-- Name: milestones milestones_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.milestones + ADD CONSTRAINT milestones_pkey PRIMARY KEY (id); + + +-- +-- Name: ml_candidate_metadata ml_candidate_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_candidate_metadata + ADD CONSTRAINT ml_candidate_metadata_pkey PRIMARY KEY (id); + + +-- +-- Name: ml_candidate_metrics ml_candidate_metrics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_candidate_metrics + ADD CONSTRAINT ml_candidate_metrics_pkey PRIMARY KEY (id); + + +-- +-- Name: ml_candidate_params ml_candidate_params_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_candidate_params + ADD CONSTRAINT ml_candidate_params_pkey PRIMARY KEY (id); + + +-- +-- Name: ml_candidates ml_candidates_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_candidates + ADD CONSTRAINT ml_candidates_pkey PRIMARY KEY (id); + + +-- +-- Name: ml_experiment_metadata ml_experiment_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_experiment_metadata + ADD CONSTRAINT ml_experiment_metadata_pkey PRIMARY KEY (id); + + +-- +-- Name: ml_experiments ml_experiments_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_experiments + ADD CONSTRAINT ml_experiments_pkey PRIMARY KEY (id); + + +-- +-- Name: ml_model_metadata ml_model_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_model_metadata + ADD CONSTRAINT ml_model_metadata_pkey PRIMARY KEY (id); + + +-- +-- Name: ml_model_version_metadata ml_model_version_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_model_version_metadata + ADD CONSTRAINT ml_model_version_metadata_pkey PRIMARY KEY (id); + + +-- +-- Name: ml_model_versions ml_model_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_model_versions + ADD CONSTRAINT ml_model_versions_pkey PRIMARY KEY (id); + + +-- +-- Name: ml_models ml_models_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ml_models + ADD CONSTRAINT ml_models_pkey PRIMARY KEY (id); + + +-- +-- Name: namespace_admin_notes namespace_admin_notes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_admin_notes + ADD CONSTRAINT namespace_admin_notes_pkey PRIMARY KEY (id); + + +-- +-- Name: namespace_aggregation_schedules namespace_aggregation_schedules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_aggregation_schedules + ADD CONSTRAINT namespace_aggregation_schedules_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_bans namespace_bans_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_bans + ADD CONSTRAINT namespace_bans_pkey PRIMARY KEY (id); + + +-- +-- Name: namespace_ci_cd_settings namespace_ci_cd_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_ci_cd_settings + ADD CONSTRAINT namespace_ci_cd_settings_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_commit_emails namespace_commit_emails_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_commit_emails + ADD CONSTRAINT namespace_commit_emails_pkey PRIMARY KEY (id); + + +-- +-- Name: namespace_details namespace_details_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_details + ADD CONSTRAINT namespace_details_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_import_users namespace_import_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_import_users + ADD CONSTRAINT namespace_import_users_pkey PRIMARY KEY (id); + + +-- +-- Name: namespace_ldap_settings namespace_ldap_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_ldap_settings + ADD CONSTRAINT namespace_ldap_settings_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_limits namespace_limits_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_limits + ADD CONSTRAINT namespace_limits_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_package_settings namespace_package_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_package_settings + ADD CONSTRAINT namespace_package_settings_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_root_storage_statistics namespace_root_storage_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_root_storage_statistics + ADD CONSTRAINT namespace_root_storage_statistics_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_settings namespace_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_settings + ADD CONSTRAINT namespace_settings_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: namespace_statistics namespace_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespace_statistics + ADD CONSTRAINT namespace_statistics_pkey PRIMARY KEY (id); + + +-- +-- Name: namespaces namespaces_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespaces + ADD CONSTRAINT namespaces_pkey PRIMARY KEY (id); + + +-- +-- Name: namespaces_storage_limit_exclusions namespaces_storage_limit_exclusions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespaces_storage_limit_exclusions + ADD CONSTRAINT namespaces_storage_limit_exclusions_pkey PRIMARY KEY (id); + + +-- +-- Name: namespaces_sync_events namespaces_sync_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.namespaces_sync_events + ADD CONSTRAINT namespaces_sync_events_pkey PRIMARY KEY (id); + + +-- +-- Name: note_diff_files note_diff_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.note_diff_files + ADD CONSTRAINT note_diff_files_pkey PRIMARY KEY (id); + + +-- +-- Name: note_metadata note_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.note_metadata + ADD CONSTRAINT note_metadata_pkey PRIMARY KEY (note_id); + + +-- +-- Name: notes notes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.notes + ADD CONSTRAINT notes_pkey PRIMARY KEY (id); + + +-- +-- Name: notification_settings notification_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.notification_settings + ADD CONSTRAINT notification_settings_pkey PRIMARY KEY (id); + + +-- +-- Name: oauth_access_grants oauth_access_grants_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.oauth_access_grants + ADD CONSTRAINT oauth_access_grants_pkey PRIMARY KEY (id); + + +-- +-- Name: oauth_access_tokens oauth_access_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.oauth_access_tokens + ADD CONSTRAINT oauth_access_tokens_pkey PRIMARY KEY (id); + + +-- +-- Name: oauth_applications oauth_applications_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.oauth_applications + ADD CONSTRAINT oauth_applications_pkey PRIMARY KEY (id); + + +-- +-- Name: oauth_device_grants oauth_device_grants_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.oauth_device_grants + ADD CONSTRAINT oauth_device_grants_pkey PRIMARY KEY (id); + + +-- +-- Name: oauth_openid_requests oauth_openid_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.oauth_openid_requests + ADD CONSTRAINT oauth_openid_requests_pkey PRIMARY KEY (id); + + +-- +-- Name: observability_logs_issues_connections observability_logs_issues_connections_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.observability_logs_issues_connections + ADD CONSTRAINT observability_logs_issues_connections_pkey PRIMARY KEY (id); + + +-- +-- Name: observability_metrics_issues_connections observability_metrics_issues_connections_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.observability_metrics_issues_connections + ADD CONSTRAINT observability_metrics_issues_connections_pkey PRIMARY KEY (id); + + +-- +-- Name: observability_traces_issues_connections observability_traces_issues_connections_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.observability_traces_issues_connections + ADD CONSTRAINT observability_traces_issues_connections_pkey PRIMARY KEY (id); + + +-- +-- Name: onboarding_progresses onboarding_progresses_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.onboarding_progresses + ADD CONSTRAINT onboarding_progresses_pkey PRIMARY KEY (id); + + +-- +-- Name: operations_feature_flag_scopes operations_feature_flag_scopes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.operations_feature_flag_scopes + ADD CONSTRAINT operations_feature_flag_scopes_pkey PRIMARY KEY (id); + + +-- +-- Name: operations_feature_flags_clients operations_feature_flags_clients_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.operations_feature_flags_clients + ADD CONSTRAINT operations_feature_flags_clients_pkey PRIMARY KEY (id); + + +-- +-- Name: operations_feature_flags_issues operations_feature_flags_issues_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.operations_feature_flags_issues + ADD CONSTRAINT operations_feature_flags_issues_pkey PRIMARY KEY (id); + + +-- +-- Name: operations_feature_flags operations_feature_flags_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.operations_feature_flags + ADD CONSTRAINT operations_feature_flags_pkey PRIMARY KEY (id); + + +-- +-- Name: operations_scopes operations_scopes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.operations_scopes + ADD CONSTRAINT operations_scopes_pkey PRIMARY KEY (id); + + +-- +-- Name: operations_strategies operations_strategies_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.operations_strategies + ADD CONSTRAINT operations_strategies_pkey PRIMARY KEY (id); + + +-- +-- Name: operations_strategies_user_lists operations_strategies_user_lists_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.operations_strategies_user_lists + ADD CONSTRAINT operations_strategies_user_lists_pkey PRIMARY KEY (id); + + +-- +-- Name: operations_user_lists operations_user_lists_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.operations_user_lists + ADD CONSTRAINT operations_user_lists_pkey PRIMARY KEY (id); + + +-- +-- Name: organization_details organization_details_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.organization_details + ADD CONSTRAINT organization_details_pkey PRIMARY KEY (organization_id); + + +-- +-- Name: organization_settings organization_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.organization_settings + ADD CONSTRAINT organization_settings_pkey PRIMARY KEY (organization_id); + + +-- +-- Name: organization_users organization_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.organization_users + ADD CONSTRAINT organization_users_pkey PRIMARY KEY (id); + + +-- +-- Name: organizations organizations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.organizations + ADD CONSTRAINT organizations_pkey PRIMARY KEY (id); + + +-- +-- Name: p_batched_git_ref_updates_deletions p_batched_git_ref_updates_deletions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_batched_git_ref_updates_deletions + ADD CONSTRAINT p_batched_git_ref_updates_deletions_pkey PRIMARY KEY (id, partition_id); + + +-- +-- Name: p_catalog_resource_component_usages p_catalog_resource_component_usages_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_catalog_resource_component_usages + ADD CONSTRAINT p_catalog_resource_component_usages_pkey PRIMARY KEY (id, used_date); + + +-- +-- Name: p_catalog_resource_sync_events p_catalog_resource_sync_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_catalog_resource_sync_events + ADD CONSTRAINT p_catalog_resource_sync_events_pkey PRIMARY KEY (id, partition_id); + + +-- +-- Name: p_ci_build_names p_ci_build_names_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_ci_build_names + ADD CONSTRAINT p_ci_build_names_pkey PRIMARY KEY (build_id, partition_id); + + +-- +-- Name: p_ci_build_sources p_ci_build_sources_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_ci_build_sources + ADD CONSTRAINT p_ci_build_sources_pkey PRIMARY KEY (build_id, partition_id); + + +-- +-- Name: p_ci_build_tags p_ci_build_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_ci_build_tags + ADD CONSTRAINT p_ci_build_tags_pkey PRIMARY KEY (id, partition_id); + + +-- +-- Name: p_ci_builds_execution_configs p_ci_builds_execution_configs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_ci_builds_execution_configs + ADD CONSTRAINT p_ci_builds_execution_configs_pkey PRIMARY KEY (id, partition_id); + + +-- +-- Name: p_ci_finished_build_ch_sync_events p_ci_finished_build_ch_sync_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_ci_finished_build_ch_sync_events + ADD CONSTRAINT p_ci_finished_build_ch_sync_events_pkey PRIMARY KEY (build_id, partition); + + +-- +-- Name: p_ci_finished_pipeline_ch_sync_events p_ci_finished_pipeline_ch_sync_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_ci_finished_pipeline_ch_sync_events + ADD CONSTRAINT p_ci_finished_pipeline_ch_sync_events_pkey PRIMARY KEY (pipeline_id, partition); + + +-- +-- Name: p_ci_job_annotations p_ci_job_annotations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_ci_job_annotations + ADD CONSTRAINT p_ci_job_annotations_pkey PRIMARY KEY (id, partition_id); + + +-- +-- Name: p_ci_runner_machine_builds p_ci_runner_machine_builds_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.p_ci_runner_machine_builds + ADD CONSTRAINT p_ci_runner_machine_builds_pkey PRIMARY KEY (build_id, partition_id); + + +-- +-- Name: packages_build_infos packages_build_infos_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_build_infos + ADD CONSTRAINT packages_build_infos_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_cleanup_policies packages_cleanup_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_cleanup_policies + ADD CONSTRAINT packages_cleanup_policies_pkey PRIMARY KEY (project_id); + + +-- +-- Name: packages_composer_cache_files packages_composer_cache_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_composer_cache_files + ADD CONSTRAINT packages_composer_cache_files_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_composer_metadata packages_composer_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_composer_metadata + ADD CONSTRAINT packages_composer_metadata_pkey PRIMARY KEY (package_id); + + +-- +-- Name: packages_conan_file_metadata packages_conan_file_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_conan_file_metadata + ADD CONSTRAINT packages_conan_file_metadata_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_conan_metadata packages_conan_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_conan_metadata + ADD CONSTRAINT packages_conan_metadata_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_debian_file_metadata packages_debian_file_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_file_metadata + ADD CONSTRAINT packages_debian_file_metadata_pkey PRIMARY KEY (package_file_id); + + +-- +-- Name: packages_debian_group_architectures packages_debian_group_architectures_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_group_architectures + ADD CONSTRAINT packages_debian_group_architectures_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_debian_group_component_files packages_debian_group_component_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_group_component_files + ADD CONSTRAINT packages_debian_group_component_files_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_debian_group_components packages_debian_group_components_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_group_components + ADD CONSTRAINT packages_debian_group_components_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_debian_group_distribution_keys packages_debian_group_distribution_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_group_distribution_keys + ADD CONSTRAINT packages_debian_group_distribution_keys_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_debian_group_distributions packages_debian_group_distributions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_group_distributions + ADD CONSTRAINT packages_debian_group_distributions_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_debian_project_architectures packages_debian_project_architectures_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_project_architectures + ADD CONSTRAINT packages_debian_project_architectures_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_debian_project_component_files packages_debian_project_component_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_project_component_files + ADD CONSTRAINT packages_debian_project_component_files_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_debian_project_components packages_debian_project_components_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_project_components + ADD CONSTRAINT packages_debian_project_components_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_debian_project_distribution_keys packages_debian_project_distribution_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_project_distribution_keys + ADD CONSTRAINT packages_debian_project_distribution_keys_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_debian_project_distributions packages_debian_project_distributions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_project_distributions + ADD CONSTRAINT packages_debian_project_distributions_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_debian_publications packages_debian_publications_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_debian_publications + ADD CONSTRAINT packages_debian_publications_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_dependencies packages_dependencies_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_dependencies + ADD CONSTRAINT packages_dependencies_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_dependency_links packages_dependency_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_dependency_links + ADD CONSTRAINT packages_dependency_links_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_helm_file_metadata packages_helm_file_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_helm_file_metadata + ADD CONSTRAINT packages_helm_file_metadata_pkey PRIMARY KEY (package_file_id); + + +-- +-- Name: packages_maven_metadata packages_maven_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_maven_metadata + ADD CONSTRAINT packages_maven_metadata_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_npm_metadata_caches packages_npm_metadata_caches_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_npm_metadata_caches + ADD CONSTRAINT packages_npm_metadata_caches_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_npm_metadata packages_npm_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_npm_metadata + ADD CONSTRAINT packages_npm_metadata_pkey PRIMARY KEY (package_id); + + +-- +-- Name: packages_nuget_dependency_link_metadata packages_nuget_dependency_link_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_nuget_dependency_link_metadata + ADD CONSTRAINT packages_nuget_dependency_link_metadata_pkey PRIMARY KEY (dependency_link_id); + + +-- +-- Name: packages_nuget_metadata packages_nuget_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_nuget_metadata + ADD CONSTRAINT packages_nuget_metadata_pkey PRIMARY KEY (package_id); + + +-- +-- Name: packages_nuget_symbols packages_nuget_symbols_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_nuget_symbols + ADD CONSTRAINT packages_nuget_symbols_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_package_file_build_infos packages_package_file_build_infos_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_package_file_build_infos + ADD CONSTRAINT packages_package_file_build_infos_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_package_files packages_package_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_package_files + ADD CONSTRAINT packages_package_files_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_packages packages_packages_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_packages + ADD CONSTRAINT packages_packages_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_protection_rules packages_protection_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_protection_rules + ADD CONSTRAINT packages_protection_rules_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_pypi_metadata packages_pypi_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_pypi_metadata + ADD CONSTRAINT packages_pypi_metadata_pkey PRIMARY KEY (package_id); + + +-- +-- Name: packages_rpm_metadata packages_rpm_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_rpm_metadata + ADD CONSTRAINT packages_rpm_metadata_pkey PRIMARY KEY (package_id); + + +-- +-- Name: packages_rpm_repository_files packages_rpm_repository_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_rpm_repository_files + ADD CONSTRAINT packages_rpm_repository_files_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_rubygems_metadata packages_rubygems_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_rubygems_metadata + ADD CONSTRAINT packages_rubygems_metadata_pkey PRIMARY KEY (package_id); + + +-- +-- Name: packages_tags packages_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_tags + ADD CONSTRAINT packages_tags_pkey PRIMARY KEY (id); + + +-- +-- Name: packages_terraform_module_metadata packages_terraform_module_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.packages_terraform_module_metadata + ADD CONSTRAINT packages_terraform_module_metadata_pkey PRIMARY KEY (package_id); + + +-- +-- Name: pages_deployment_states pages_deployment_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pages_deployment_states + ADD CONSTRAINT pages_deployment_states_pkey PRIMARY KEY (pages_deployment_id); + + +-- +-- Name: pages_deployments pages_deployments_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pages_deployments + ADD CONSTRAINT pages_deployments_pkey PRIMARY KEY (id); + + +-- +-- Name: pages_domain_acme_orders pages_domain_acme_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pages_domain_acme_orders + ADD CONSTRAINT pages_domain_acme_orders_pkey PRIMARY KEY (id); + + +-- +-- Name: pages_domains pages_domains_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pages_domains + ADD CONSTRAINT pages_domains_pkey PRIMARY KEY (id); + + +-- +-- Name: path_locks path_locks_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.path_locks + ADD CONSTRAINT path_locks_pkey PRIMARY KEY (id); + + +-- +-- Name: personal_access_token_last_used_ips personal_access_token_last_used_ips_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.personal_access_token_last_used_ips + ADD CONSTRAINT personal_access_token_last_used_ips_pkey PRIMARY KEY (id); + + +-- +-- Name: personal_access_tokens personal_access_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.personal_access_tokens + ADD CONSTRAINT personal_access_tokens_pkey PRIMARY KEY (id); + + +-- +-- Name: plan_limits plan_limits_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.plan_limits + ADD CONSTRAINT plan_limits_pkey PRIMARY KEY (id); + + +-- +-- Name: plans plans_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.plans + ADD CONSTRAINT plans_pkey PRIMARY KEY (id); + + +-- +-- Name: pm_advisories pm_advisories_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pm_advisories + ADD CONSTRAINT pm_advisories_pkey PRIMARY KEY (id); + + +-- +-- Name: pm_affected_packages pm_affected_packages_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pm_affected_packages + ADD CONSTRAINT pm_affected_packages_pkey PRIMARY KEY (id); + + +-- +-- Name: pm_checkpoints pm_checkpoints_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pm_checkpoints + ADD CONSTRAINT pm_checkpoints_pkey PRIMARY KEY (id); + + +-- +-- Name: pm_epss pm_epss_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pm_epss + ADD CONSTRAINT pm_epss_pkey PRIMARY KEY (id); + + +-- +-- Name: pm_licenses pm_licenses_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pm_licenses + ADD CONSTRAINT pm_licenses_pkey PRIMARY KEY (id); + + +-- +-- Name: pm_package_version_licenses pm_package_version_licenses_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pm_package_version_licenses + ADD CONSTRAINT pm_package_version_licenses_pkey PRIMARY KEY (id); + + +-- +-- Name: pm_package_versions pm_package_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pm_package_versions + ADD CONSTRAINT pm_package_versions_pkey PRIMARY KEY (id); + + +-- +-- Name: pm_packages pm_packages_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pm_packages + ADD CONSTRAINT pm_packages_pkey PRIMARY KEY (id); + + +-- +-- Name: pool_repositories pool_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.pool_repositories + ADD CONSTRAINT pool_repositories_pkey PRIMARY KEY (id); + + +-- +-- Name: postgres_async_foreign_key_validations postgres_async_foreign_key_validations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.postgres_async_foreign_key_validations + ADD CONSTRAINT postgres_async_foreign_key_validations_pkey PRIMARY KEY (id); + + +-- +-- Name: postgres_async_indexes postgres_async_indexes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.postgres_async_indexes + ADD CONSTRAINT postgres_async_indexes_pkey PRIMARY KEY (id); + + +-- +-- Name: postgres_reindex_actions postgres_reindex_actions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.postgres_reindex_actions + ADD CONSTRAINT postgres_reindex_actions_pkey PRIMARY KEY (id); + + +-- +-- Name: postgres_reindex_queued_actions postgres_reindex_queued_actions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.postgres_reindex_queued_actions + ADD CONSTRAINT postgres_reindex_queued_actions_pkey PRIMARY KEY (id); + + +-- +-- Name: programming_languages programming_languages_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.programming_languages + ADD CONSTRAINT programming_languages_pkey PRIMARY KEY (id); + + +-- +-- Name: project_access_tokens project_access_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_access_tokens + ADD CONSTRAINT project_access_tokens_pkey PRIMARY KEY (personal_access_token_id, project_id); + + +-- +-- Name: project_alerting_settings project_alerting_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_alerting_settings + ADD CONSTRAINT project_alerting_settings_pkey PRIMARY KEY (project_id); + + +-- +-- Name: project_aliases project_aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_aliases + ADD CONSTRAINT project_aliases_pkey PRIMARY KEY (id); + + +-- +-- Name: project_audit_events project_audit_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_audit_events + ADD CONSTRAINT project_audit_events_pkey PRIMARY KEY (id, created_at); + + +-- +-- Name: project_authorizations project_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_authorizations + ADD CONSTRAINT project_authorizations_pkey PRIMARY KEY (user_id, project_id, access_level); + + +-- +-- Name: project_auto_devops project_auto_devops_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_auto_devops + ADD CONSTRAINT project_auto_devops_pkey PRIMARY KEY (id); + + +-- +-- Name: project_build_artifacts_size_refreshes project_build_artifacts_size_refreshes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_build_artifacts_size_refreshes + ADD CONSTRAINT project_build_artifacts_size_refreshes_pkey PRIMARY KEY (id); + + +-- +-- Name: project_ci_cd_settings project_ci_cd_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_ci_cd_settings + ADD CONSTRAINT project_ci_cd_settings_pkey PRIMARY KEY (id); + + +-- +-- Name: project_ci_feature_usages project_ci_feature_usages_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_ci_feature_usages + ADD CONSTRAINT project_ci_feature_usages_pkey PRIMARY KEY (id); + + +-- +-- Name: project_compliance_framework_settings project_compliance_framework_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_compliance_framework_settings + ADD CONSTRAINT project_compliance_framework_settings_pkey PRIMARY KEY (id); + + +-- +-- Name: project_compliance_standards_adherence project_compliance_standards_adherence_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_compliance_standards_adherence + ADD CONSTRAINT project_compliance_standards_adherence_pkey PRIMARY KEY (id); + + +-- +-- Name: project_custom_attributes project_custom_attributes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_custom_attributes + ADD CONSTRAINT project_custom_attributes_pkey PRIMARY KEY (id); + + +-- +-- Name: project_daily_statistics project_daily_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_daily_statistics + ADD CONSTRAINT project_daily_statistics_pkey PRIMARY KEY (id); + + +-- +-- Name: project_data_transfers project_data_transfers_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_data_transfers + ADD CONSTRAINT project_data_transfers_pkey PRIMARY KEY (id); + + +-- +-- Name: project_deploy_tokens project_deploy_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_deploy_tokens + ADD CONSTRAINT project_deploy_tokens_pkey PRIMARY KEY (id); + + +-- +-- Name: project_error_tracking_settings project_error_tracking_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_error_tracking_settings + ADD CONSTRAINT project_error_tracking_settings_pkey PRIMARY KEY (project_id); + + +-- +-- Name: project_export_jobs project_export_jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_export_jobs + ADD CONSTRAINT project_export_jobs_pkey PRIMARY KEY (id); + + +-- +-- Name: project_feature_usages project_feature_usages_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_feature_usages + ADD CONSTRAINT project_feature_usages_pkey PRIMARY KEY (project_id); + + +-- +-- Name: project_features project_features_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_features + ADD CONSTRAINT project_features_pkey PRIMARY KEY (id); + + +-- +-- Name: project_group_links project_group_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_group_links + ADD CONSTRAINT project_group_links_pkey PRIMARY KEY (id); + + +-- +-- Name: project_import_data project_import_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_import_data + ADD CONSTRAINT project_import_data_pkey PRIMARY KEY (id); + + +-- +-- Name: project_incident_management_settings project_incident_management_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_incident_management_settings + ADD CONSTRAINT project_incident_management_settings_pkey PRIMARY KEY (project_id); + + +-- +-- Name: project_metrics_settings project_metrics_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_metrics_settings + ADD CONSTRAINT project_metrics_settings_pkey PRIMARY KEY (project_id); + + +-- +-- Name: project_mirror_data project_mirror_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_mirror_data + ADD CONSTRAINT project_mirror_data_pkey PRIMARY KEY (id); + + +-- +-- Name: project_pages_metadata project_pages_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_pages_metadata + ADD CONSTRAINT project_pages_metadata_pkey PRIMARY KEY (project_id); + + +-- +-- Name: project_relation_export_uploads project_relation_export_uploads_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_relation_export_uploads + ADD CONSTRAINT project_relation_export_uploads_pkey PRIMARY KEY (id); + + +-- +-- Name: project_relation_exports project_relation_exports_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_relation_exports + ADD CONSTRAINT project_relation_exports_pkey PRIMARY KEY (id); + + +-- +-- Name: project_repositories project_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_repositories + ADD CONSTRAINT project_repositories_pkey PRIMARY KEY (id); + + +-- +-- Name: project_repository_storage_moves project_repository_storage_moves_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_repository_storage_moves + ADD CONSTRAINT project_repository_storage_moves_pkey PRIMARY KEY (id); + + +-- +-- Name: project_saved_replies project_saved_replies_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_saved_replies + ADD CONSTRAINT project_saved_replies_pkey PRIMARY KEY (id); + + +-- +-- Name: project_secrets_managers project_secrets_managers_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_secrets_managers + ADD CONSTRAINT project_secrets_managers_pkey PRIMARY KEY (id); + + +-- +-- Name: project_security_settings project_security_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_security_settings + ADD CONSTRAINT project_security_settings_pkey PRIMARY KEY (project_id); + + +-- +-- Name: project_settings project_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_settings + ADD CONSTRAINT project_settings_pkey PRIMARY KEY (project_id); + + +-- +-- Name: project_states project_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_states + ADD CONSTRAINT project_states_pkey PRIMARY KEY (id); + + +-- +-- Name: project_statistics project_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_statistics + ADD CONSTRAINT project_statistics_pkey PRIMARY KEY (id); + + +-- +-- Name: project_topics project_topics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_topics + ADD CONSTRAINT project_topics_pkey PRIMARY KEY (id); + + +-- +-- Name: project_wiki_repositories project_wiki_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.project_wiki_repositories + ADD CONSTRAINT project_wiki_repositories_pkey PRIMARY KEY (id); + + +-- +-- Name: projects projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.projects + ADD CONSTRAINT projects_pkey PRIMARY KEY (id); + + +-- +-- Name: projects projects_star_count_positive; Type: CHECK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE public.projects + ADD CONSTRAINT projects_star_count_positive CHECK ((star_count >= 0)) NOT VALID; + + +-- +-- Name: projects_sync_events projects_sync_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.projects_sync_events + ADD CONSTRAINT projects_sync_events_pkey PRIMARY KEY (id); + + +-- +-- Name: projects_visits projects_visits_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.projects_visits + ADD CONSTRAINT projects_visits_pkey PRIMARY KEY (id, visited_at); + + +-- +-- Name: prometheus_alert_events prometheus_alert_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.prometheus_alert_events + ADD CONSTRAINT prometheus_alert_events_pkey PRIMARY KEY (id); + + +-- +-- Name: prometheus_alerts prometheus_alerts_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.prometheus_alerts + ADD CONSTRAINT prometheus_alerts_pkey PRIMARY KEY (id); + + +-- +-- Name: prometheus_metrics prometheus_metrics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.prometheus_metrics + ADD CONSTRAINT prometheus_metrics_pkey PRIMARY KEY (id); + + +-- +-- Name: protected_branch_merge_access_levels protected_branch_merge_access_levels_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.protected_branch_merge_access_levels + ADD CONSTRAINT protected_branch_merge_access_levels_pkey PRIMARY KEY (id); + + +-- +-- Name: protected_branch_push_access_levels protected_branch_push_access_levels_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.protected_branch_push_access_levels + ADD CONSTRAINT protected_branch_push_access_levels_pkey PRIMARY KEY (id); + + +-- +-- Name: protected_branch_unprotect_access_levels protected_branch_unprotect_access_levels_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.protected_branch_unprotect_access_levels + ADD CONSTRAINT protected_branch_unprotect_access_levels_pkey PRIMARY KEY (id); + + +-- +-- Name: protected_branches protected_branches_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.protected_branches + ADD CONSTRAINT protected_branches_pkey PRIMARY KEY (id); + + +-- +-- Name: protected_environment_approval_rules protected_environment_approval_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.protected_environment_approval_rules + ADD CONSTRAINT protected_environment_approval_rules_pkey PRIMARY KEY (id); + + +-- +-- Name: protected_environment_deploy_access_levels protected_environment_deploy_access_levels_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.protected_environment_deploy_access_levels + ADD CONSTRAINT protected_environment_deploy_access_levels_pkey PRIMARY KEY (id); + + +-- +-- Name: protected_environments protected_environments_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.protected_environments + ADD CONSTRAINT protected_environments_pkey PRIMARY KEY (id); + + +-- +-- Name: protected_tag_create_access_levels protected_tag_create_access_levels_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.protected_tag_create_access_levels + ADD CONSTRAINT protected_tag_create_access_levels_pkey PRIMARY KEY (id); + + +-- +-- Name: protected_tags protected_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.protected_tags + ADD CONSTRAINT protected_tags_pkey PRIMARY KEY (id); + + +-- +-- Name: push_event_payloads push_event_payloads_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.push_event_payloads + ADD CONSTRAINT push_event_payloads_pkey PRIMARY KEY (event_id); + + +-- +-- Name: push_rules push_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.push_rules + ADD CONSTRAINT push_rules_pkey PRIMARY KEY (id); + + +-- +-- Name: raw_usage_data raw_usage_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.raw_usage_data + ADD CONSTRAINT raw_usage_data_pkey PRIMARY KEY (id); + + +-- +-- Name: redirect_routes redirect_routes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.redirect_routes + ADD CONSTRAINT redirect_routes_pkey PRIMARY KEY (id); + + +-- +-- Name: related_epic_links related_epic_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.related_epic_links + ADD CONSTRAINT related_epic_links_pkey PRIMARY KEY (id); + + +-- +-- Name: relation_import_trackers relation_import_trackers_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.relation_import_trackers + ADD CONSTRAINT relation_import_trackers_pkey PRIMARY KEY (id); + + +-- +-- Name: release_links release_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.release_links + ADD CONSTRAINT release_links_pkey PRIMARY KEY (id); + + +-- +-- Name: releases releases_not_null_tag; Type: CHECK CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE public.releases + ADD CONSTRAINT releases_not_null_tag CHECK ((tag IS NOT NULL)) NOT VALID; + + +-- +-- Name: releases releases_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.releases + ADD CONSTRAINT releases_pkey PRIMARY KEY (id); + + +-- +-- Name: remote_development_agent_configs remote_development_agent_configs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.remote_development_agent_configs + ADD CONSTRAINT remote_development_agent_configs_pkey PRIMARY KEY (id); + + +-- +-- Name: remote_development_namespace_cluster_agent_mappings remote_development_namespace_cluster_agent_mappings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.remote_development_namespace_cluster_agent_mappings + ADD CONSTRAINT remote_development_namespace_cluster_agent_mappings_pkey PRIMARY KEY (id); + + +-- +-- Name: remote_mirrors remote_mirrors_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.remote_mirrors + ADD CONSTRAINT remote_mirrors_pkey PRIMARY KEY (id); + + +-- +-- Name: repository_languages repository_languages_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.repository_languages + ADD CONSTRAINT repository_languages_pkey PRIMARY KEY (project_id, programming_language_id); + + +-- +-- Name: required_code_owners_sections required_code_owners_sections_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.required_code_owners_sections + ADD CONSTRAINT required_code_owners_sections_pkey PRIMARY KEY (id); + + +-- +-- Name: requirements_management_test_reports requirements_management_test_reports_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.requirements_management_test_reports + ADD CONSTRAINT requirements_management_test_reports_pkey PRIMARY KEY (id); + + +-- +-- Name: requirements requirements_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.requirements + ADD CONSTRAINT requirements_pkey PRIMARY KEY (id); + + +-- +-- Name: resource_iteration_events resource_iteration_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.resource_iteration_events + ADD CONSTRAINT resource_iteration_events_pkey PRIMARY KEY (id); + + +-- +-- Name: resource_label_events resource_label_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.resource_label_events + ADD CONSTRAINT resource_label_events_pkey PRIMARY KEY (id); + + +-- +-- Name: resource_link_events resource_link_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.resource_link_events + ADD CONSTRAINT resource_link_events_pkey PRIMARY KEY (id); + + +-- +-- Name: resource_milestone_events resource_milestone_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.resource_milestone_events + ADD CONSTRAINT resource_milestone_events_pkey PRIMARY KEY (id); + + +-- +-- Name: resource_state_events resource_state_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.resource_state_events + ADD CONSTRAINT resource_state_events_pkey PRIMARY KEY (id); + + +-- +-- Name: resource_weight_events resource_weight_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.resource_weight_events + ADD CONSTRAINT resource_weight_events_pkey PRIMARY KEY (id); + + +-- +-- Name: reviews reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.reviews + ADD CONSTRAINT reviews_pkey PRIMARY KEY (id); + + +-- +-- Name: routes routes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.routes + ADD CONSTRAINT routes_pkey PRIMARY KEY (id); + + +-- +-- Name: saml_group_links saml_group_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.saml_group_links + ADD CONSTRAINT saml_group_links_pkey PRIMARY KEY (id); + + +-- +-- Name: saml_providers saml_providers_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.saml_providers + ADD CONSTRAINT saml_providers_pkey PRIMARY KEY (id); + + +-- +-- Name: saved_replies saved_replies_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.saved_replies + ADD CONSTRAINT saved_replies_pkey PRIMARY KEY (id); + + +-- +-- Name: sbom_component_versions sbom_component_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sbom_component_versions + ADD CONSTRAINT sbom_component_versions_pkey PRIMARY KEY (id); + + +-- +-- Name: sbom_components sbom_components_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sbom_components + ADD CONSTRAINT sbom_components_pkey PRIMARY KEY (id); + + +-- +-- Name: sbom_occurrences sbom_occurrences_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sbom_occurrences + ADD CONSTRAINT sbom_occurrences_pkey PRIMARY KEY (id); + + +-- +-- Name: sbom_occurrences_vulnerabilities sbom_occurrences_vulnerabilities_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sbom_occurrences_vulnerabilities + ADD CONSTRAINT sbom_occurrences_vulnerabilities_pkey PRIMARY KEY (id); + + +-- +-- Name: sbom_source_packages sbom_source_packages_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sbom_source_packages + ADD CONSTRAINT sbom_source_packages_pkey PRIMARY KEY (id); + + +-- +-- Name: sbom_sources sbom_sources_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sbom_sources + ADD CONSTRAINT sbom_sources_pkey PRIMARY KEY (id); + + +-- +-- Name: scan_execution_policy_rules scan_execution_policy_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.scan_execution_policy_rules + ADD CONSTRAINT scan_execution_policy_rules_pkey PRIMARY KEY (id); + + +-- +-- Name: scan_result_policies scan_result_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.scan_result_policies + ADD CONSTRAINT scan_result_policies_pkey PRIMARY KEY (id); + + +-- +-- Name: scan_result_policy_violations scan_result_policy_violations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.scan_result_policy_violations + ADD CONSTRAINT scan_result_policy_violations_pkey PRIMARY KEY (id); + + +-- +-- Name: schema_migrations schema_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.schema_migrations + ADD CONSTRAINT schema_migrations_pkey PRIMARY KEY (version); + + +-- +-- Name: scim_identities scim_identities_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.scim_identities + ADD CONSTRAINT scim_identities_pkey PRIMARY KEY (id); + + +-- +-- Name: scim_oauth_access_tokens scim_oauth_access_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.scim_oauth_access_tokens + ADD CONSTRAINT scim_oauth_access_tokens_pkey PRIMARY KEY (id); + + +-- +-- Name: search_indices search_indices_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.search_indices + ADD CONSTRAINT search_indices_pkey PRIMARY KEY (id); + + +-- +-- Name: search_namespace_index_assignments search_namespace_index_assignments_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.search_namespace_index_assignments + ADD CONSTRAINT search_namespace_index_assignments_pkey PRIMARY KEY (id); + + +-- +-- Name: security_findings security_findings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.security_findings + ADD CONSTRAINT security_findings_pkey PRIMARY KEY (id, partition_number); + + +-- +-- Name: security_orchestration_policy_configurations security_orchestration_policy_configurations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.security_orchestration_policy_configurations + ADD CONSTRAINT security_orchestration_policy_configurations_pkey PRIMARY KEY (id); + + +-- +-- Name: security_orchestration_policy_rule_schedules security_orchestration_policy_rule_schedules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.security_orchestration_policy_rule_schedules + ADD CONSTRAINT security_orchestration_policy_rule_schedules_pkey PRIMARY KEY (id); + + +-- +-- Name: security_policies security_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.security_policies + ADD CONSTRAINT security_policies_pkey PRIMARY KEY (id); + + +-- +-- Name: security_policy_project_links security_policy_project_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.security_policy_project_links + ADD CONSTRAINT security_policy_project_links_pkey PRIMARY KEY (id); + + +-- +-- Name: security_policy_requirements security_policy_requirements_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.security_policy_requirements + ADD CONSTRAINT security_policy_requirements_pkey PRIMARY KEY (id); + + +-- +-- Name: security_scans security_scans_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.security_scans + ADD CONSTRAINT security_scans_pkey PRIMARY KEY (id); + + +-- +-- Name: security_training_providers security_training_providers_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.security_training_providers + ADD CONSTRAINT security_training_providers_pkey PRIMARY KEY (id); + + +-- +-- Name: security_trainings security_trainings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.security_trainings + ADD CONSTRAINT security_trainings_pkey PRIMARY KEY (id); + + +-- +-- Name: self_managed_prometheus_alert_events self_managed_prometheus_alert_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.self_managed_prometheus_alert_events + ADD CONSTRAINT self_managed_prometheus_alert_events_pkey PRIMARY KEY (id); + + +-- +-- Name: sent_notifications sent_notifications_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sent_notifications + ADD CONSTRAINT sent_notifications_pkey PRIMARY KEY (id); + + +-- +-- Name: sentry_issues sentry_issues_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sentry_issues + ADD CONSTRAINT sentry_issues_pkey PRIMARY KEY (id); + + +-- +-- Name: sprints sequence_is_unique_per_iterations_cadence_id; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sprints + ADD CONSTRAINT sequence_is_unique_per_iterations_cadence_id UNIQUE (iterations_cadence_id, sequence) DEFERRABLE INITIALLY DEFERRED; + + +-- +-- Name: service_access_tokens service_access_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.service_access_tokens + ADD CONSTRAINT service_access_tokens_pkey PRIMARY KEY (id); + + +-- +-- Name: service_desk_custom_email_credentials service_desk_custom_email_credentials_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.service_desk_custom_email_credentials + ADD CONSTRAINT service_desk_custom_email_credentials_pkey PRIMARY KEY (project_id); + + +-- +-- Name: service_desk_custom_email_verifications service_desk_custom_email_verifications_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.service_desk_custom_email_verifications + ADD CONSTRAINT service_desk_custom_email_verifications_pkey PRIMARY KEY (project_id); + + +-- +-- Name: service_desk_settings service_desk_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.service_desk_settings + ADD CONSTRAINT service_desk_settings_pkey PRIMARY KEY (project_id); + + +-- +-- Name: shards shards_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.shards + ADD CONSTRAINT shards_pkey PRIMARY KEY (id); + + +-- +-- Name: slack_api_scopes slack_api_scopes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.slack_api_scopes + ADD CONSTRAINT slack_api_scopes_pkey PRIMARY KEY (id); + + +-- +-- Name: slack_integrations slack_integrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.slack_integrations + ADD CONSTRAINT slack_integrations_pkey PRIMARY KEY (id); + + +-- +-- Name: slack_integrations_scopes slack_integrations_scopes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.slack_integrations_scopes + ADD CONSTRAINT slack_integrations_scopes_pkey PRIMARY KEY (id); + + +-- +-- Name: smartcard_identities smartcard_identities_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.smartcard_identities + ADD CONSTRAINT smartcard_identities_pkey PRIMARY KEY (id); + + +-- +-- Name: snippet_repositories snippet_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.snippet_repositories + ADD CONSTRAINT snippet_repositories_pkey PRIMARY KEY (snippet_id); + + +-- +-- Name: snippet_repository_storage_moves snippet_repository_storage_moves_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.snippet_repository_storage_moves + ADD CONSTRAINT snippet_repository_storage_moves_pkey PRIMARY KEY (id); + + +-- +-- Name: snippet_statistics snippet_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.snippet_statistics + ADD CONSTRAINT snippet_statistics_pkey PRIMARY KEY (snippet_id); + + +-- +-- Name: snippet_user_mentions snippet_user_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.snippet_user_mentions + ADD CONSTRAINT snippet_user_mentions_pkey PRIMARY KEY (id); + + +-- +-- Name: snippets snippets_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.snippets + ADD CONSTRAINT snippets_pkey PRIMARY KEY (id); + + +-- +-- Name: software_license_policies software_license_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.software_license_policies + ADD CONSTRAINT software_license_policies_pkey PRIMARY KEY (id); + + +-- +-- Name: software_licenses software_licenses_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.software_licenses + ADD CONSTRAINT software_licenses_pkey PRIMARY KEY (id); + + +-- +-- Name: spam_logs spam_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.spam_logs + ADD CONSTRAINT spam_logs_pkey PRIMARY KEY (id); + + +-- +-- Name: sprints sprints_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.sprints + ADD CONSTRAINT sprints_pkey PRIMARY KEY (id); + + +-- +-- Name: ssh_signatures ssh_signatures_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.ssh_signatures + ADD CONSTRAINT ssh_signatures_pkey PRIMARY KEY (id); + + +-- +-- Name: status_check_responses status_check_responses_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.status_check_responses + ADD CONSTRAINT status_check_responses_pkey PRIMARY KEY (id); + + +-- +-- Name: status_page_published_incidents status_page_published_incidents_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.status_page_published_incidents + ADD CONSTRAINT status_page_published_incidents_pkey PRIMARY KEY (id); + + +-- +-- Name: status_page_settings status_page_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.status_page_settings + ADD CONSTRAINT status_page_settings_pkey PRIMARY KEY (project_id); + + +-- +-- Name: subscription_add_on_purchases subscription_add_on_purchases_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.subscription_add_on_purchases + ADD CONSTRAINT subscription_add_on_purchases_pkey PRIMARY KEY (id); + + +-- +-- Name: subscription_add_ons subscription_add_ons_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.subscription_add_ons + ADD CONSTRAINT subscription_add_ons_pkey PRIMARY KEY (id); + + +-- +-- Name: subscription_user_add_on_assignments subscription_user_add_on_assignments_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.subscription_user_add_on_assignments + ADD CONSTRAINT subscription_user_add_on_assignments_pkey PRIMARY KEY (id); + + +-- +-- Name: subscriptions subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.subscriptions + ADD CONSTRAINT subscriptions_pkey PRIMARY KEY (id); + + +-- +-- Name: suggestions suggestions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.suggestions + ADD CONSTRAINT suggestions_pkey PRIMARY KEY (id); + + +-- +-- Name: system_access_microsoft_applications system_access_microsoft_applications_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.system_access_microsoft_applications + ADD CONSTRAINT system_access_microsoft_applications_pkey PRIMARY KEY (id); + + +-- +-- Name: system_access_microsoft_graph_access_tokens system_access_microsoft_graph_access_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.system_access_microsoft_graph_access_tokens + ADD CONSTRAINT system_access_microsoft_graph_access_tokens_pkey PRIMARY KEY (id); + + +-- +-- Name: system_note_metadata system_note_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.system_note_metadata + ADD CONSTRAINT system_note_metadata_pkey PRIMARY KEY (id); + + +-- +-- Name: taggings taggings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.taggings + ADD CONSTRAINT taggings_pkey PRIMARY KEY (id); + + +-- +-- Name: tags tags_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.tags + ADD CONSTRAINT tags_pkey PRIMARY KEY (id); + + +-- +-- Name: target_branch_rules target_branch_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.target_branch_rules + ADD CONSTRAINT target_branch_rules_pkey PRIMARY KEY (id); + + +-- +-- Name: term_agreements term_agreements_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.term_agreements + ADD CONSTRAINT term_agreements_pkey PRIMARY KEY (id); + + +-- +-- Name: terraform_state_versions terraform_state_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.terraform_state_versions + ADD CONSTRAINT terraform_state_versions_pkey PRIMARY KEY (id); + + +-- +-- Name: terraform_states terraform_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.terraform_states + ADD CONSTRAINT terraform_states_pkey PRIMARY KEY (id); + + +-- +-- Name: timelog_categories timelog_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.timelog_categories + ADD CONSTRAINT timelog_categories_pkey PRIMARY KEY (id); + + +-- +-- Name: timelogs timelogs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.timelogs + ADD CONSTRAINT timelogs_pkey PRIMARY KEY (id); + + +-- +-- Name: todos todos_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.todos + ADD CONSTRAINT todos_pkey PRIMARY KEY (id); + + +-- +-- Name: token_with_ivs token_with_ivs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.token_with_ivs + ADD CONSTRAINT token_with_ivs_pkey PRIMARY KEY (id); + + +-- +-- Name: topics topics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.topics + ADD CONSTRAINT topics_pkey PRIMARY KEY (id); + + +-- +-- Name: trending_projects trending_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.trending_projects + ADD CONSTRAINT trending_projects_pkey PRIMARY KEY (id); + + +-- +-- Name: upcoming_reconciliations upcoming_reconciliations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.upcoming_reconciliations + ADD CONSTRAINT upcoming_reconciliations_pkey PRIMARY KEY (id); + + +-- +-- Name: upload_states upload_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.upload_states + ADD CONSTRAINT upload_states_pkey PRIMARY KEY (upload_id); + + +-- +-- Name: uploads uploads_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.uploads + ADD CONSTRAINT uploads_pkey PRIMARY KEY (id); + + +-- +-- Name: user_achievements user_achievements_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_achievements + ADD CONSTRAINT user_achievements_pkey PRIMARY KEY (id); + + +-- +-- Name: user_agent_details user_agent_details_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_agent_details + ADD CONSTRAINT user_agent_details_pkey PRIMARY KEY (id); + + +-- +-- Name: user_audit_events user_audit_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_audit_events + ADD CONSTRAINT user_audit_events_pkey PRIMARY KEY (id, created_at); + + +-- +-- Name: user_broadcast_message_dismissals user_broadcast_message_dismissals_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_broadcast_message_dismissals + ADD CONSTRAINT user_broadcast_message_dismissals_pkey PRIMARY KEY (id); + + +-- +-- Name: user_callouts user_callouts_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_callouts + ADD CONSTRAINT user_callouts_pkey PRIMARY KEY (id); + + +-- +-- Name: user_canonical_emails user_canonical_emails_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_canonical_emails + ADD CONSTRAINT user_canonical_emails_pkey PRIMARY KEY (id); + + +-- +-- Name: user_credit_card_validations user_credit_card_validations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_credit_card_validations + ADD CONSTRAINT user_credit_card_validations_pkey PRIMARY KEY (user_id); + + +-- +-- Name: user_custom_attributes user_custom_attributes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_custom_attributes + ADD CONSTRAINT user_custom_attributes_pkey PRIMARY KEY (id); + + +-- +-- Name: user_details user_details_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_details + ADD CONSTRAINT user_details_pkey PRIMARY KEY (user_id); + + +-- +-- Name: user_follow_users user_follow_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_follow_users + ADD CONSTRAINT user_follow_users_pkey PRIMARY KEY (follower_id, followee_id); + + +-- +-- Name: user_group_callouts user_group_callouts_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_group_callouts + ADD CONSTRAINT user_group_callouts_pkey PRIMARY KEY (id); + + +-- +-- Name: user_highest_roles user_highest_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_highest_roles + ADD CONSTRAINT user_highest_roles_pkey PRIMARY KEY (user_id); + + +-- +-- Name: user_namespace_callouts user_namespace_callouts_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_namespace_callouts + ADD CONSTRAINT user_namespace_callouts_pkey PRIMARY KEY (id); + + +-- +-- Name: user_permission_export_uploads user_permission_export_uploads_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_permission_export_uploads + ADD CONSTRAINT user_permission_export_uploads_pkey PRIMARY KEY (id); + + +-- +-- Name: user_phone_number_validations user_phone_number_validations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_phone_number_validations + ADD CONSTRAINT user_phone_number_validations_pkey PRIMARY KEY (user_id); + + +-- +-- Name: user_preferences user_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_preferences + ADD CONSTRAINT user_preferences_pkey PRIMARY KEY (id); + + +-- +-- Name: user_project_callouts user_project_callouts_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_project_callouts + ADD CONSTRAINT user_project_callouts_pkey PRIMARY KEY (id); + + +-- +-- Name: user_statuses user_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_statuses + ADD CONSTRAINT user_statuses_pkey PRIMARY KEY (user_id); + + +-- +-- Name: user_synced_attributes_metadata user_synced_attributes_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.user_synced_attributes_metadata + ADD CONSTRAINT user_synced_attributes_metadata_pkey PRIMARY KEY (id); + + +-- +-- Name: users_ops_dashboard_projects users_ops_dashboard_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.users_ops_dashboard_projects + ADD CONSTRAINT users_ops_dashboard_projects_pkey PRIMARY KEY (id); + + +-- +-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.users + ADD CONSTRAINT users_pkey PRIMARY KEY (id); + + +-- +-- Name: users_security_dashboard_projects users_security_dashboard_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.users_security_dashboard_projects + ADD CONSTRAINT users_security_dashboard_projects_pkey PRIMARY KEY (project_id, user_id); + + +-- +-- Name: users_star_projects users_star_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.users_star_projects + ADD CONSTRAINT users_star_projects_pkey PRIMARY KEY (id); + + +-- +-- Name: users_statistics users_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.users_statistics + ADD CONSTRAINT users_statistics_pkey PRIMARY KEY (id); + + +-- +-- Name: value_stream_dashboard_aggregations value_stream_dashboard_aggregations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.value_stream_dashboard_aggregations + ADD CONSTRAINT value_stream_dashboard_aggregations_pkey PRIMARY KEY (namespace_id); + + +-- +-- Name: value_stream_dashboard_counts value_stream_dashboard_counts_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.value_stream_dashboard_counts + ADD CONSTRAINT value_stream_dashboard_counts_pkey PRIMARY KEY (namespace_id, metric, recorded_at, count, id); + + +-- +-- Name: verification_codes verification_codes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.verification_codes + ADD CONSTRAINT verification_codes_pkey PRIMARY KEY (created_at, visitor_id_code, code, phone); + + +-- +-- Name: virtual_registries_packages_maven_cached_responses virtual_registries_packages_maven_cached_responses_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.virtual_registries_packages_maven_cached_responses + ADD CONSTRAINT virtual_registries_packages_maven_cached_responses_pkey PRIMARY KEY (id); + + +-- +-- Name: virtual_registries_packages_maven_registries virtual_registries_packages_maven_registries_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.virtual_registries_packages_maven_registries + ADD CONSTRAINT virtual_registries_packages_maven_registries_pkey PRIMARY KEY (id); + + +-- +-- Name: virtual_registries_packages_maven_registry_upstreams virtual_registries_packages_maven_registry_upstreams_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.virtual_registries_packages_maven_registry_upstreams + ADD CONSTRAINT virtual_registries_packages_maven_registry_upstreams_pkey PRIMARY KEY (id); + + +-- +-- Name: virtual_registries_packages_maven_upstreams virtual_registries_packages_maven_upstreams_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.virtual_registries_packages_maven_upstreams + ADD CONSTRAINT virtual_registries_packages_maven_upstreams_pkey PRIMARY KEY (id); + + +-- +-- Name: vs_code_settings vs_code_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vs_code_settings + ADD CONSTRAINT vs_code_settings_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerabilities vulnerabilities_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerabilities + ADD CONSTRAINT vulnerabilities_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_export_parts vulnerability_export_parts_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_export_parts + ADD CONSTRAINT vulnerability_export_parts_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_exports vulnerability_exports_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_exports + ADD CONSTRAINT vulnerability_exports_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_external_issue_links vulnerability_external_issue_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_external_issue_links + ADD CONSTRAINT vulnerability_external_issue_links_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_feedback vulnerability_feedback_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_feedback + ADD CONSTRAINT vulnerability_feedback_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_finding_evidences vulnerability_finding_evidences_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_finding_evidences + ADD CONSTRAINT vulnerability_finding_evidences_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_finding_links vulnerability_finding_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_finding_links + ADD CONSTRAINT vulnerability_finding_links_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_finding_signatures vulnerability_finding_signatures_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_finding_signatures + ADD CONSTRAINT vulnerability_finding_signatures_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_findings_remediations vulnerability_findings_remediations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_findings_remediations + ADD CONSTRAINT vulnerability_findings_remediations_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_flags vulnerability_flags_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_flags + ADD CONSTRAINT vulnerability_flags_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_historical_statistics vulnerability_historical_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_historical_statistics + ADD CONSTRAINT vulnerability_historical_statistics_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_identifiers vulnerability_identifiers_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_identifiers + ADD CONSTRAINT vulnerability_identifiers_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_issue_links vulnerability_issue_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_issue_links + ADD CONSTRAINT vulnerability_issue_links_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_merge_request_links vulnerability_merge_request_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_merge_request_links + ADD CONSTRAINT vulnerability_merge_request_links_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_namespace_historical_statistics vulnerability_namespace_historical_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_namespace_historical_statistics + ADD CONSTRAINT vulnerability_namespace_historical_statistics_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_occurrence_identifiers vulnerability_occurrence_identifiers_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_occurrence_identifiers + ADD CONSTRAINT vulnerability_occurrence_identifiers_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_occurrence_pipelines vulnerability_occurrence_pipelines_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_occurrence_pipelines + ADD CONSTRAINT vulnerability_occurrence_pipelines_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_occurrences vulnerability_occurrences_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_occurrences + ADD CONSTRAINT vulnerability_occurrences_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_reads vulnerability_reads_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_reads + ADD CONSTRAINT vulnerability_reads_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_remediations vulnerability_remediations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_remediations + ADD CONSTRAINT vulnerability_remediations_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_scanners vulnerability_scanners_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_scanners + ADD CONSTRAINT vulnerability_scanners_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_state_transitions vulnerability_state_transitions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_state_transitions + ADD CONSTRAINT vulnerability_state_transitions_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_statistics vulnerability_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_statistics + ADD CONSTRAINT vulnerability_statistics_pkey PRIMARY KEY (id); + + +-- +-- Name: vulnerability_user_mentions vulnerability_user_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.vulnerability_user_mentions + ADD CONSTRAINT vulnerability_user_mentions_pkey PRIMARY KEY (id); + + +-- +-- Name: web_hook_logs web_hook_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.web_hook_logs + ADD CONSTRAINT web_hook_logs_pkey PRIMARY KEY (id, created_at); + + +-- +-- Name: web_hooks web_hooks_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.web_hooks + ADD CONSTRAINT web_hooks_pkey PRIMARY KEY (id); + + +-- +-- Name: webauthn_registrations webauthn_registrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.webauthn_registrations + ADD CONSTRAINT webauthn_registrations_pkey PRIMARY KEY (id); + + +-- +-- Name: wiki_page_meta wiki_page_meta_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.wiki_page_meta + ADD CONSTRAINT wiki_page_meta_pkey PRIMARY KEY (id); + + +-- +-- Name: wiki_page_slugs wiki_page_slugs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.wiki_page_slugs + ADD CONSTRAINT wiki_page_slugs_pkey PRIMARY KEY (id); + + +-- +-- Name: wiki_repository_states wiki_repository_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.wiki_repository_states + ADD CONSTRAINT wiki_repository_states_pkey PRIMARY KEY (id); + + +-- +-- Name: work_item_colors work_item_colors_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.work_item_colors + ADD CONSTRAINT work_item_colors_pkey PRIMARY KEY (issue_id); + + +-- +-- Name: work_item_dates_sources work_item_dates_sources_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.work_item_dates_sources + ADD CONSTRAINT work_item_dates_sources_pkey PRIMARY KEY (issue_id); + + +-- +-- Name: work_item_hierarchy_restrictions work_item_hierarchy_restrictions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.work_item_hierarchy_restrictions + ADD CONSTRAINT work_item_hierarchy_restrictions_pkey PRIMARY KEY (id); + + +-- +-- Name: work_item_parent_links work_item_parent_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.work_item_parent_links + ADD CONSTRAINT work_item_parent_links_pkey PRIMARY KEY (id); + + +-- +-- Name: work_item_progresses work_item_progresses_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.work_item_progresses + ADD CONSTRAINT work_item_progresses_pkey PRIMARY KEY (issue_id); + + +-- +-- Name: work_item_related_link_restrictions work_item_related_link_restrictions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.work_item_related_link_restrictions + ADD CONSTRAINT work_item_related_link_restrictions_pkey PRIMARY KEY (id); + + +-- +-- Name: work_item_types work_item_types_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.work_item_types + ADD CONSTRAINT work_item_types_pkey PRIMARY KEY (id); + + +-- +-- Name: work_item_widget_definitions work_item_widget_definitions_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.work_item_widget_definitions + ADD CONSTRAINT work_item_widget_definitions_pkey PRIMARY KEY (id); + + +-- +-- Name: workspace_variables workspace_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.workspace_variables + ADD CONSTRAINT workspace_variables_pkey PRIMARY KEY (id); + + +-- +-- Name: workspaces_agent_configs workspaces_agent_configs_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.workspaces_agent_configs + ADD CONSTRAINT workspaces_agent_configs_pkey PRIMARY KEY (id); + + +-- +-- Name: workspaces workspaces_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.workspaces + ADD CONSTRAINT workspaces_pkey PRIMARY KEY (id); + + +-- +-- Name: x509_certificates x509_certificates_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.x509_certificates + ADD CONSTRAINT x509_certificates_pkey PRIMARY KEY (id); + + +-- +-- Name: x509_commit_signatures x509_commit_signatures_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.x509_commit_signatures + ADD CONSTRAINT x509_commit_signatures_pkey PRIMARY KEY (id); + + +-- +-- Name: x509_issuers x509_issuers_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.x509_issuers + ADD CONSTRAINT x509_issuers_pkey PRIMARY KEY (id); + + +-- +-- Name: xray_reports xray_reports_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.xray_reports + ADD CONSTRAINT xray_reports_pkey PRIMARY KEY (id); + + +-- +-- Name: zentao_tracker_data zentao_tracker_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.zentao_tracker_data + ADD CONSTRAINT zentao_tracker_data_pkey PRIMARY KEY (id); + + +-- +-- Name: zoekt_enabled_namespaces zoekt_enabled_namespaces_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.zoekt_enabled_namespaces + ADD CONSTRAINT zoekt_enabled_namespaces_pkey PRIMARY KEY (id); + + +-- +-- Name: zoekt_indices zoekt_indices_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.zoekt_indices + ADD CONSTRAINT zoekt_indices_pkey PRIMARY KEY (id); + + +-- +-- Name: zoekt_nodes zoekt_nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.zoekt_nodes + ADD CONSTRAINT zoekt_nodes_pkey PRIMARY KEY (id); + + +-- +-- Name: zoekt_replicas zoekt_replicas_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.zoekt_replicas + ADD CONSTRAINT zoekt_replicas_pkey PRIMARY KEY (id); + + +-- +-- Name: zoekt_repositories zoekt_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.zoekt_repositories + ADD CONSTRAINT zoekt_repositories_pkey PRIMARY KEY (id); + + +-- +-- Name: zoekt_shards zoekt_shards_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.zoekt_shards + ADD CONSTRAINT zoekt_shards_pkey PRIMARY KEY (id); + + +-- +-- Name: zoekt_tasks zoekt_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.zoekt_tasks + ADD CONSTRAINT zoekt_tasks_pkey PRIMARY KEY (id, partition_id); + + +-- +-- Name: zoom_meetings zoom_meetings_pkey; Type: CONSTRAINT; Schema: public; Owner: - +-- + +ALTER TABLE ONLY public.zoom_meetings + ADD CONSTRAINT zoom_meetings_pkey PRIMARY KEY (id); + + +-- +-- Name: index_issue_stage_events_project_duration; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_stage_events_project_duration ON ONLY public.analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_000925dbd7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_000925dbd7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_merge_request_stage_events_project_duration; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_stage_events_project_duration ON ONLY public.analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_006f943df6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_006f943df6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_issue_stage_events_for_consistency_check; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_stage_events_for_consistency_check ON ONLY public.analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_009e6c1133; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_009e6c1133 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_02749b504c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_02749b504c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_merge_request_stage_events_group_duration; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_stage_events_group_duration ON ONLY public.analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_0287f5ba09; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_0287f5ba09 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_03aa30a758; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_03aa30a758 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_issue_stage_events_group_duration; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_stage_events_group_duration ON ONLY public.analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_055179c3ea; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_055179c3ea ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_061fe00461; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_061fe00461 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_070cef72c3; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_070cef72c3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_issue_search_data_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_search_data_on_namespace_id ON ONLY public.issue_search_data USING btree (namespace_id); + + +-- +-- Name: index_08b7071d9b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_08b7071d9b ON gitlab_partitions_static.issue_search_data_41 USING btree (namespace_id); + + +-- +-- Name: index_08e3cfc564; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_08e3cfc564 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_merge_request_stage_events_group_in_progress_duration; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_stage_events_group_in_progress_duration ON ONLY public.analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_09af45dd6f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_09af45dd6f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_09fe0c1886; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_09fe0c1886 ON gitlab_partitions_static.issue_search_data_01 USING btree (namespace_id); + + +-- +-- Name: index_0c153e2eae; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_0c153e2eae ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_issue_stage_events_group_in_progress_duration; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_stage_events_group_in_progress_duration ON ONLY public.analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_0ca85f3d71; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_0ca85f3d71 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_issue_stage_events_project_in_progress_duration; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_stage_events_project_in_progress_duration ON ONLY public.analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_0d837a5dda; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_0d837a5dda ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_0e98daa03c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_0e98daa03c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_0f28a65451; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_0f28a65451 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_10588dbff0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_10588dbff0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_106d7d97e8; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_106d7d97e8 ON gitlab_partitions_static.issue_search_data_27 USING btree (namespace_id); + + +-- +-- Name: index_1076a9a98a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_1076a9a98a ON gitlab_partitions_static.issue_search_data_10 USING btree (namespace_id); + + +-- +-- Name: index_107e123e17; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_107e123e17 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_1230a7a402; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_1230a7a402 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_142c4e7ea4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_142c4e7ea4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_merge_request_stage_events_project_in_progress_duration; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_stage_events_project_in_progress_duration ON ONLY public.analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_14e4fa1d7d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_14e4fa1d7d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_14f3645821; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_14f3645821 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_16627b455e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_16627b455e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_17fa2812c5; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_17fa2812c5 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_19aa18ccc9; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_19aa18ccc9 ON gitlab_partitions_static.issue_search_data_45 USING btree (namespace_id); + + +-- +-- Name: index_19f4ed8614; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_19f4ed8614 ON gitlab_partitions_static.issue_search_data_33 USING btree (namespace_id); + + +-- +-- Name: index_1a0388713a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_1a0388713a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_1a349ed064; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_1a349ed064 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_1af932a3c7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_1af932a3c7 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_1b0ea30bdb; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_1b0ea30bdb ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_1b47bbbb6a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_1b47bbbb6a ON gitlab_partitions_static.issue_search_data_52 USING btree (namespace_id); + + +-- +-- Name: index_1f6c3faabe; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_1f6c3faabe ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_1f8af04ed1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_1f8af04ed1 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_201c5ddbe9; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_201c5ddbe9 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_20353089e0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_20353089e0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_mr_stage_events_for_consistency_check; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_mr_stage_events_for_consistency_check ON ONLY public.analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_203dd694bc; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_203dd694bc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_206349925b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_206349925b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_208e7ef042; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_208e7ef042 ON gitlab_partitions_static.issue_search_data_48 USING btree (namespace_id); + + +-- +-- Name: index_2098118748; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_2098118748 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_20c6491c6e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_20c6491c6e ON gitlab_partitions_static.issue_search_data_29 USING btree (namespace_id); + + +-- +-- Name: index_21db459e34; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_21db459e34 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_21e262390a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_21e262390a ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_2208bd7d7f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_2208bd7d7f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_223592b4a1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_223592b4a1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_22acc9ab11; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_22acc9ab11 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_22ed8f01dd; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_22ed8f01dd ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_234d38a657; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_234d38a657 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_23783dc748; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_23783dc748 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_241e9a574c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_241e9a574c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_24ac321751; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_24ac321751 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_25e2aaee9b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_25e2aaee9b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_2653e7eeb8; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_2653e7eeb8 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_2745f5a388; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_2745f5a388 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_27759556bc; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_27759556bc ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_27d7ad78d8; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_27d7ad78d8 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_281840d2d1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_281840d2d1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_2945cf4c6d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_2945cf4c6d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_296f64df5c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_296f64df5c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_2ad4b4fdbc; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_2ad4b4fdbc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_2b7c0a294e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_2b7c0a294e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_2bac9d64a0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_2bac9d64a0 ON gitlab_partitions_static.issue_search_data_38 USING btree (namespace_id); + + +-- +-- Name: index_2c6422f668; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_2c6422f668 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_2dfcdbe81e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_2dfcdbe81e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_2e1054b181; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_2e1054b181 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_2e6991d05b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_2e6991d05b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_2f80c360c3; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_2f80c360c3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_2fc271c673; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_2fc271c673 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_2fcfd0dc70; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_2fcfd0dc70 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_3005c75335; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_3005c75335 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_3206c1e6af; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_3206c1e6af ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_3249505125; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_3249505125 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_331eb67441; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_331eb67441 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_34a8b08081; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_34a8b08081 ON gitlab_partitions_static.issue_search_data_40 USING btree (namespace_id); + + +-- +-- Name: index_3640194b77; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_3640194b77 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_372160a706; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_372160a706 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_389dd3c9fc; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_389dd3c9fc ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_38a538234e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_38a538234e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_39625b8a41; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_39625b8a41 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_399dc06649; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_399dc06649 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_3a10b315c0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_3a10b315c0 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_3a7d21a6ee; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_3a7d21a6ee ON gitlab_partitions_static.issue_search_data_19 USING btree (namespace_id); + + +-- +-- Name: index_3a8848c00b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_3a8848c00b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_3b09ab5902; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_3b09ab5902 ON gitlab_partitions_static.issue_search_data_12 USING btree (namespace_id); + + +-- +-- Name: index_3bc2eedca5; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_3bc2eedca5 ON gitlab_partitions_static.issue_search_data_59 USING btree (namespace_id); + + +-- +-- Name: index_3c2a3a6ac9; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_3c2a3a6ac9 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_3dbde77b8b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_3dbde77b8b ON gitlab_partitions_static.issue_search_data_58 USING btree (namespace_id); + + +-- +-- Name: index_3e6be332b7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_3e6be332b7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_4137a6fac3; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_4137a6fac3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_41a1c3a4c6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_41a1c3a4c6 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_435802dd01; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_435802dd01 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_436fa9ad5f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_436fa9ad5f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_453a659cb6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_453a659cb6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_46b989b294; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_46b989b294 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_4717e7049b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_4717e7049b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_47638677a3; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_47638677a3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_4810ac88f5; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_4810ac88f5 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_482a09e0ee; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_482a09e0ee ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_491b4b749e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_491b4b749e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_4a243772d7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_4a243772d7 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_4b1793a4c4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_4b1793a4c4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_4b22560035; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_4b22560035 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_4c2645eef2; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_4c2645eef2 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_4c9d14f978; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_4c9d14f978 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_4d04210a95; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_4d04210a95 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_4d4f2f7de6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_4d4f2f7de6 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_4db5aa5872; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_4db5aa5872 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_4dead6f314; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_4dead6f314 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_4e6ce1c371; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_4e6ce1c371 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_4ea50d3a5b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_4ea50d3a5b ON gitlab_partitions_static.issue_search_data_24 USING btree (namespace_id); + + +-- +-- Name: index_4f2eb7a06b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_4f2eb7a06b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_4f6fc34e57; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_4f6fc34e57 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_50272372ba; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_50272372ba ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_5034eae5ff; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5034eae5ff ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_50c09f6e04; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_50c09f6e04 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_5111e3e7e7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5111e3e7e7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_52ea79bf8e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_52ea79bf8e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_541cc045fc; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_541cc045fc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_5445e466ee; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5445e466ee ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_551676e972; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_551676e972 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_56281bfb73; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_56281bfb73 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_5660b1b38e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5660b1b38e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_584c1e6fb0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_584c1e6fb0 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_5913107510; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5913107510 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_5968e77935; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5968e77935 ON gitlab_partitions_static.issue_search_data_46 USING btree (namespace_id); + + +-- +-- Name: index_59a8209ab6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_59a8209ab6 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_59ce40fcc4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_59ce40fcc4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_59cfd5bc9a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_59cfd5bc9a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_5a5f39d824; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5a5f39d824 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_5b613b5fcf; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5b613b5fcf ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_5b944f308d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5b944f308d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_5bc2f32084; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5bc2f32084 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_5bfa62771b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5bfa62771b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_5c4053b63d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5c4053b63d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_5db09170d4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5db09170d4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_5e46aea379; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5e46aea379 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_5e78c2eac1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5e78c2eac1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_5ee060202f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5ee060202f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_5f24f6ead2; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5f24f6ead2 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_5f96b344e2; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5f96b344e2 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_5fb1867c41; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5fb1867c41 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_5fe1d00845; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_5fe1d00845 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_60e3480f23; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_60e3480f23 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_6137e27484; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_6137e27484 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_620fe77c99; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_620fe77c99 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_625ed9e965; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_625ed9e965 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_64e3a1dfa1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_64e3a1dfa1 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_64eb4cf8bd; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_64eb4cf8bd ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_6578d04baa; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_6578d04baa ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_6580ecb2db; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_6580ecb2db ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_66a736da09; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_66a736da09 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_680d7ab4a6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_680d7ab4a6 ON gitlab_partitions_static.issue_search_data_06 USING btree (namespace_id); + + +-- +-- Name: index_682eba05f6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_682eba05f6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_69bdcf213e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_69bdcf213e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_6a39f6d5ac; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_6a39f6d5ac ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_6add8e74cf; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_6add8e74cf ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_6b1ce61c8f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_6b1ce61c8f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_6b431c9952; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_6b431c9952 ON gitlab_partitions_static.issue_search_data_23 USING btree (namespace_id); + + +-- +-- Name: index_6bf2b9282c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_6bf2b9282c ON gitlab_partitions_static.issue_search_data_22 USING btree (namespace_id); + + +-- +-- Name: index_6cfb391b86; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_6cfb391b86 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_6e560c1a4d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_6e560c1a4d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_6e64aa1646; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_6e64aa1646 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_6e6c2e6a1d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_6e6c2e6a1d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_6ea423bbd1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_6ea423bbd1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_6ec4c4afd4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_6ec4c4afd4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_6f4e0abe54; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_6f4e0abe54 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_6fa47e1334; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_6fa47e1334 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_708d792ae9; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_708d792ae9 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_70c657954b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_70c657954b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_713f462d76; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_713f462d76 ON gitlab_partitions_static.issue_search_data_57 USING btree (namespace_id); + + +-- +-- Name: index_71c0e45eca; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_71c0e45eca ON gitlab_partitions_static.issue_search_data_39 USING btree (namespace_id); + + +-- +-- Name: index_71c2b26944; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_71c2b26944 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_72027c157f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_72027c157f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_739845f617; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_739845f617 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_74addd1240; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_74addd1240 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_75dc81d1d7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_75dc81d1d7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_765b0cd8db; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_765b0cd8db ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_77096a1dc6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_77096a1dc6 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_77c6293242; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_77c6293242 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_77f67bf238; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_77f67bf238 ON gitlab_partitions_static.issue_search_data_02 USING btree (namespace_id); + + +-- +-- Name: index_7822759674; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_7822759674 ON gitlab_partitions_static.issue_search_data_56 USING btree (namespace_id); + + +-- +-- Name: index_7a0b7ffadf; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_7a0b7ffadf ON gitlab_partitions_static.issue_search_data_07 USING btree (namespace_id); + + +-- +-- Name: index_7b7c85eceb; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_7b7c85eceb ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_7da2307d2e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_7da2307d2e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_7ead2300ca; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_7ead2300ca ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_7ecb5b68b4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_7ecb5b68b4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_7f543eed8d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_7f543eed8d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_7f8a80dd47; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_7f8a80dd47 ON gitlab_partitions_static.issue_search_data_49 USING btree (namespace_id); + + +-- +-- Name: index_80305b1eed; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_80305b1eed ON gitlab_partitions_static.issue_search_data_42 USING btree (namespace_id); + + +-- +-- Name: index_807671c4be; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_807671c4be ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_807fa83fc0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_807fa83fc0 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_80a81ac235; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_80a81ac235 ON gitlab_partitions_static.issue_search_data_53 USING btree (namespace_id); + + +-- +-- Name: index_80c65daf20; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_80c65daf20 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_81b31eafac; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_81b31eafac ON gitlab_partitions_static.issue_search_data_63 USING btree (namespace_id); + + +-- +-- Name: index_81b9cf594f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_81b9cf594f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_82c675952c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_82c675952c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_831e7f124f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_831e7f124f ON gitlab_partitions_static.issue_search_data_43 USING btree (namespace_id); + + +-- +-- Name: index_837a193bf2; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_837a193bf2 ON gitlab_partitions_static.issue_search_data_55 USING btree (namespace_id); + + +-- +-- Name: index_837cc295f1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_837cc295f1 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_83c5049b3e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_83c5049b3e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_83edf231b8; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_83edf231b8 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_844abd2888; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_844abd2888 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_8464227c80; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_8464227c80 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_8685d7c69c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_8685d7c69c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_8688b40056; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_8688b40056 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_876145d1d5; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_876145d1d5 ON gitlab_partitions_static.issue_search_data_51 USING btree (namespace_id); + + +-- +-- Name: index_87d40fb9f9; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_87d40fb9f9 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_88b40d6740; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_88b40d6740 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_89c49cf697; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_89c49cf697 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_89c79afe5c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_89c79afe5c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_8a0fc3de4f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_8a0fc3de4f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_8a8eb06b9a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_8a8eb06b9a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_8b1b6b03b4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_8b1b6b03b4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_8b9f9a19a4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_8b9f9a19a4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_8fb48e72ce; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_8fb48e72ce ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_907e12b7ba; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_907e12b7ba ON gitlab_partitions_static.issue_search_data_54 USING btree (namespace_id); + + +-- +-- Name: index_918bb2ebbb; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_918bb2ebbb ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_91c432a4bd; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_91c432a4bd ON gitlab_partitions_static.issue_search_data_16 USING btree (namespace_id); + + +-- +-- Name: index_91d5e4e3df; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_91d5e4e3df ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_9201b952a0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_9201b952a0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_927796f71d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_927796f71d ON gitlab_partitions_static.issue_search_data_50 USING btree (namespace_id); + + +-- +-- Name: index_92c09e352b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_92c09e352b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_9490e0e0b7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_9490e0e0b7 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_9555c2ae92; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_9555c2ae92 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_95a353f50b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_95a353f50b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_971af9481e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_971af9481e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_994aa245b7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_994aa245b7 ON gitlab_partitions_static.issue_search_data_61 USING btree (namespace_id); + + +-- +-- Name: index_9955b1dc59; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_9955b1dc59 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_9a2eb72a3b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_9a2eb72a3b ON gitlab_partitions_static.issue_search_data_21 USING btree (namespace_id); + + +-- +-- Name: index_9b8e89ae41; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_9b8e89ae41 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_9d0e953ab3; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_9d0e953ab3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_9ee83b068b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_9ee83b068b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_a016d4ed08; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_a016d4ed08 ON gitlab_partitions_static.issue_search_data_36 USING btree (namespace_id); + + +-- +-- Name: index_a1a9dc36c1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_a1a9dc36c1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_a2d9f185a5; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_a2d9f185a5 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_a3feed3097; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_a3feed3097 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_a46b7b7f26; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_a46b7b7f26 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_a4f5106804; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_a4f5106804 ON gitlab_partitions_static.issue_search_data_11 USING btree (namespace_id); + + +-- +-- Name: index_a6999c65c9; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_a6999c65c9 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_a6c68d16b2; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_a6c68d16b2 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_a8276a450f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_a8276a450f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_a849f1bbcc; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_a849f1bbcc ON gitlab_partitions_static.issue_search_data_62 USING btree (namespace_id); + + +-- +-- Name: index_a88f20fc98; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_a88f20fc98 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_a8fe03fe34; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_a8fe03fe34 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_a9424aa392; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_a9424aa392 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_a99cee1904; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_a99cee1904 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_a9b1763c36; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_a9b1763c36 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_a9ba23c88e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_a9ba23c88e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_a9deff2159; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_a9deff2159 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_aa92d75d85; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_aa92d75d85 ON gitlab_partitions_static.issue_search_data_04 USING btree (namespace_id); + + +-- +-- Name: index_aabc184267; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_aabc184267 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_ab22231a16; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_ab22231a16 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_abbdf80ab1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_abbdf80ab1 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_aca42d7cff; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_aca42d7cff ON gitlab_partitions_static.issue_search_data_44 USING btree (namespace_id); + + +-- +-- Name: index_ad55e8b11c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_ad55e8b11c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_adc159c3fe; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_adc159c3fe ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_aed7f7b10c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_aed7f7b10c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_aee84adb5b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_aee84adb5b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_af8368d587; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_af8368d587 ON gitlab_partitions_static.issue_search_data_31 USING btree (namespace_id); + + +-- +-- Name: index_b1dda405af; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_b1dda405af ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_b24e8538c8; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_b24e8538c8 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_b286c595e8; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_b286c595e8 ON gitlab_partitions_static.issue_search_data_05 USING btree (namespace_id); + + +-- +-- Name: index_b377ac6784; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_b377ac6784 ON gitlab_partitions_static.issue_search_data_20 USING btree (namespace_id); + + +-- +-- Name: index_b3b64068e7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_b3b64068e7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_b3c4c9a53f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_b3c4c9a53f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_b4b2bba753; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_b4b2bba753 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_b607012614; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_b607012614 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_b6cc38a848; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_b6cc38a848 ON gitlab_partitions_static.issue_search_data_08 USING btree (namespace_id); + + +-- +-- Name: index_b748a3e0a6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_b748a3e0a6 ON gitlab_partitions_static.issue_search_data_15 USING btree (namespace_id); + + +-- +-- Name: index_b7f21460bb; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_b7f21460bb ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_b83fe1306b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_b83fe1306b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_bb6defaa27; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_bb6defaa27 ON gitlab_partitions_static.issue_search_data_34 USING btree (namespace_id); + + +-- +-- Name: index_bc189e47ab; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_bc189e47ab ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_bca83177ef; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_bca83177ef ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_bcaa8dcd34; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_bcaa8dcd34 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_bcae2cf631; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_bcae2cf631 ON gitlab_partitions_static.issue_search_data_00 USING btree (namespace_id); + + +-- +-- Name: index_be0a028bcc; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_be0a028bcc ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_beaa329ca0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_beaa329ca0 ON gitlab_partitions_static.issue_search_data_47 USING btree (namespace_id); + + +-- +-- Name: index_bedd7e160b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_bedd7e160b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_bee2b94a80; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_bee2b94a80 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_bf1809b19e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_bf1809b19e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_c02f569fba; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c02f569fba ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_c08e669dfa; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c08e669dfa ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_c09bb66559; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c09bb66559 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_c119f5b92e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c119f5b92e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_c17dae3605; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c17dae3605 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_c1cdd90d0d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c1cdd90d0d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_c2b951bf20; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c2b951bf20 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_c3a2cf8b3b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c3a2cf8b3b ON gitlab_partitions_static.issue_search_data_32 USING btree (namespace_id); + + +-- +-- Name: index_c42b2e7eae; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c42b2e7eae ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_c435d904ce; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c435d904ce ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_c473921734; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c473921734 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_c546bb0736; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c546bb0736 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_c59cde6209; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c59cde6209 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_c66758baa7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c66758baa7 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_c6ea8a0e26; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c6ea8a0e26 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_c7ac8595d3; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c7ac8595d3 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_c8bbf2b334; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c8bbf2b334 ON gitlab_partitions_static.issue_search_data_26 USING btree (namespace_id); + + +-- +-- Name: index_c8c4219c0a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c8c4219c0a ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_c971e6c5ce; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c971e6c5ce ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_c9b14a3d9f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_c9b14a3d9f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_cb222425ed; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_cb222425ed ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_cbb61ea269; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_cbb61ea269 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_cc0ba6343b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_cc0ba6343b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_ccb4f5c5a6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_ccb4f5c5a6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_cd2b2939a4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_cd2b2939a4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_cda41e106e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_cda41e106e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_ce87cbaf2d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_ce87cbaf2d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_cfa4237c83; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_cfa4237c83 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_d01ea0126a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_d01ea0126a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_d03e9cdfae; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_d03e9cdfae ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_d0d285c264; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_d0d285c264 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_d17b82ddd9; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_d17b82ddd9 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_d1c24d8199; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_d1c24d8199 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_d1c6c67ec1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_d1c6c67ec1 ON gitlab_partitions_static.issue_search_data_60 USING btree (namespace_id); + + +-- +-- Name: index_d27b4c84e7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_d27b4c84e7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_d2fe918e83; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_d2fe918e83 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_d35c969634; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_d35c969634 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_d3b6418940; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_d3b6418940 ON gitlab_partitions_static.issue_search_data_17 USING btree (namespace_id); + + +-- +-- Name: index_d493a5c171; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_d493a5c171 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_d6047ee813; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_d6047ee813 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_d69c2485f4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_d69c2485f4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_d70379e22c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_d70379e22c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_d87775b2e7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_d87775b2e7 ON gitlab_partitions_static.issue_search_data_35 USING btree (namespace_id); + + +-- +-- Name: index_d8fa9793ad; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_d8fa9793ad ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_d9384b768d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_d9384b768d ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_db2753330c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_db2753330c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_db6477916f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_db6477916f ON gitlab_partitions_static.issue_search_data_28 USING btree (namespace_id); + + +-- +-- Name: index_dc571ba649; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_dc571ba649 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_de0334da63; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_de0334da63 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_df62a8c50e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_df62a8c50e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_e1a4f994d8; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_e1a4f994d8 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_e38489ea98; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_e38489ea98 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_e3d1fd5b19; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_e3d1fd5b19 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_e3d6234929; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_e3d6234929 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_e54adf9acb; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_e54adf9acb ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_e6405afea0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_e6405afea0 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_e64588e276; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_e64588e276 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_e716b8ac3f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_e716b8ac3f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_e73bc5ba6a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_e73bc5ba6a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_e8f3a327b2; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_e8f3a327b2 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_ea0c2d3361; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_ea0c2d3361 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_ea1b583157; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_ea1b583157 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_eadcc94c4e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_eadcc94c4e ON gitlab_partitions_static.issue_search_data_03 USING btree (namespace_id); + + +-- +-- Name: index_eb558957f0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_eb558957f0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_eb5a7f918a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_eb5a7f918a ON gitlab_partitions_static.issue_search_data_09 USING btree (namespace_id); + + +-- +-- Name: index_ec25d494e6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_ec25d494e6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_ece25b5987; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_ece25b5987 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_ed094a4f13; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_ed094a4f13 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_ed6dbac8c0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_ed6dbac8c0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); + + +-- +-- Name: index_ee4c549a2d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_ee4c549a2d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_ef6a48bd29; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_ef6a48bd29 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_ef7be2ae94; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_ef7be2ae94 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_efa25b26bd; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_efa25b26bd ON gitlab_partitions_static.issue_search_data_25 USING btree (namespace_id); + + +-- +-- Name: index_f06b4c7a23; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f06b4c7a23 ON gitlab_partitions_static.issue_search_data_30 USING btree (namespace_id); + + +-- +-- Name: index_f0cdd09a5e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f0cdd09a5e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_f112fae8ac; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f112fae8ac ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_f1c3d14cdc; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f1c3d14cdc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_f256d3f6a1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f256d3f6a1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_f2848acfc7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f2848acfc7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_f3d7d86e09; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f3d7d86e09 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_f402f6a388; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f402f6a388 ON gitlab_partitions_static.issue_search_data_14 USING btree (namespace_id); + + +-- +-- Name: index_f415dc2abd; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f415dc2abd ON gitlab_partitions_static.issue_search_data_18 USING btree (namespace_id); + + +-- +-- Name: index_f47327ec1f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f47327ec1f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_f5f0e8eefd; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f5f0e8eefd ON gitlab_partitions_static.issue_search_data_37 USING btree (namespace_id); + + +-- +-- Name: index_f6b0d458a3; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f6b0d458a3 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_f705dc8541; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f705dc8541 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_f76e8a5304; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f76e8a5304 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_f836021e1e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f836021e1e ON gitlab_partitions_static.issue_search_data_13 USING btree (namespace_id); + + +-- +-- Name: index_f86acdc2ff; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f86acdc2ff ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_f86f73056d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f86f73056d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_f878aab8e3; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f878aab8e3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_f902c261ce; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f902c261ce ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_f91599d825; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_f91599d825 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); + + +-- +-- Name: index_fbccc855cf; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_fbccc855cf ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_fbf2d3310b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_fbf2d3310b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_fccbe45c32; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_fccbe45c32 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_fee429223e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_fee429223e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_ff00c038cc; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_ff00c038cc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_ff39be5400; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_ff39be5400 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); + + +-- +-- Name: index_ff8741d8d7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX index_ff8741d8d7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); + + +-- +-- Name: index_issue_search_data_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_search_data_on_issue_id ON ONLY public.issue_search_data USING btree (issue_id); + + +-- +-- Name: issue_search_data_00_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_00_issue_id_idx ON gitlab_partitions_static.issue_search_data_00 USING btree (issue_id); + + +-- +-- Name: index_issue_search_data_on_search_vector; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_search_data_on_search_vector ON ONLY public.issue_search_data USING gin (search_vector); + + +-- +-- Name: issue_search_data_00_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_00_search_vector_idx ON gitlab_partitions_static.issue_search_data_00 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_01_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_01_issue_id_idx ON gitlab_partitions_static.issue_search_data_01 USING btree (issue_id); + + +-- +-- Name: issue_search_data_01_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_01_search_vector_idx ON gitlab_partitions_static.issue_search_data_01 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_02_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_02_issue_id_idx ON gitlab_partitions_static.issue_search_data_02 USING btree (issue_id); + + +-- +-- Name: issue_search_data_02_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_02_search_vector_idx ON gitlab_partitions_static.issue_search_data_02 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_03_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_03_issue_id_idx ON gitlab_partitions_static.issue_search_data_03 USING btree (issue_id); + + +-- +-- Name: issue_search_data_03_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_03_search_vector_idx ON gitlab_partitions_static.issue_search_data_03 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_04_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_04_issue_id_idx ON gitlab_partitions_static.issue_search_data_04 USING btree (issue_id); + + +-- +-- Name: issue_search_data_04_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_04_search_vector_idx ON gitlab_partitions_static.issue_search_data_04 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_05_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_05_issue_id_idx ON gitlab_partitions_static.issue_search_data_05 USING btree (issue_id); + + +-- +-- Name: issue_search_data_05_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_05_search_vector_idx ON gitlab_partitions_static.issue_search_data_05 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_06_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_06_issue_id_idx ON gitlab_partitions_static.issue_search_data_06 USING btree (issue_id); + + +-- +-- Name: issue_search_data_06_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_06_search_vector_idx ON gitlab_partitions_static.issue_search_data_06 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_07_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_07_issue_id_idx ON gitlab_partitions_static.issue_search_data_07 USING btree (issue_id); + + +-- +-- Name: issue_search_data_07_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_07_search_vector_idx ON gitlab_partitions_static.issue_search_data_07 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_08_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_08_issue_id_idx ON gitlab_partitions_static.issue_search_data_08 USING btree (issue_id); + + +-- +-- Name: issue_search_data_08_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_08_search_vector_idx ON gitlab_partitions_static.issue_search_data_08 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_09_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_09_issue_id_idx ON gitlab_partitions_static.issue_search_data_09 USING btree (issue_id); + + +-- +-- Name: issue_search_data_09_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_09_search_vector_idx ON gitlab_partitions_static.issue_search_data_09 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_10_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_10_issue_id_idx ON gitlab_partitions_static.issue_search_data_10 USING btree (issue_id); + + +-- +-- Name: issue_search_data_10_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_10_search_vector_idx ON gitlab_partitions_static.issue_search_data_10 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_11_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_11_issue_id_idx ON gitlab_partitions_static.issue_search_data_11 USING btree (issue_id); + + +-- +-- Name: issue_search_data_11_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_11_search_vector_idx ON gitlab_partitions_static.issue_search_data_11 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_12_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_12_issue_id_idx ON gitlab_partitions_static.issue_search_data_12 USING btree (issue_id); + + +-- +-- Name: issue_search_data_12_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_12_search_vector_idx ON gitlab_partitions_static.issue_search_data_12 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_13_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_13_issue_id_idx ON gitlab_partitions_static.issue_search_data_13 USING btree (issue_id); + + +-- +-- Name: issue_search_data_13_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_13_search_vector_idx ON gitlab_partitions_static.issue_search_data_13 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_14_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_14_issue_id_idx ON gitlab_partitions_static.issue_search_data_14 USING btree (issue_id); + + +-- +-- Name: issue_search_data_14_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_14_search_vector_idx ON gitlab_partitions_static.issue_search_data_14 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_15_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_15_issue_id_idx ON gitlab_partitions_static.issue_search_data_15 USING btree (issue_id); + + +-- +-- Name: issue_search_data_15_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_15_search_vector_idx ON gitlab_partitions_static.issue_search_data_15 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_16_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_16_issue_id_idx ON gitlab_partitions_static.issue_search_data_16 USING btree (issue_id); + + +-- +-- Name: issue_search_data_16_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_16_search_vector_idx ON gitlab_partitions_static.issue_search_data_16 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_17_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_17_issue_id_idx ON gitlab_partitions_static.issue_search_data_17 USING btree (issue_id); + + +-- +-- Name: issue_search_data_17_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_17_search_vector_idx ON gitlab_partitions_static.issue_search_data_17 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_18_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_18_issue_id_idx ON gitlab_partitions_static.issue_search_data_18 USING btree (issue_id); + + +-- +-- Name: issue_search_data_18_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_18_search_vector_idx ON gitlab_partitions_static.issue_search_data_18 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_19_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_19_issue_id_idx ON gitlab_partitions_static.issue_search_data_19 USING btree (issue_id); + + +-- +-- Name: issue_search_data_19_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_19_search_vector_idx ON gitlab_partitions_static.issue_search_data_19 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_20_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_20_issue_id_idx ON gitlab_partitions_static.issue_search_data_20 USING btree (issue_id); + + +-- +-- Name: issue_search_data_20_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_20_search_vector_idx ON gitlab_partitions_static.issue_search_data_20 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_21_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_21_issue_id_idx ON gitlab_partitions_static.issue_search_data_21 USING btree (issue_id); + + +-- +-- Name: issue_search_data_21_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_21_search_vector_idx ON gitlab_partitions_static.issue_search_data_21 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_22_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_22_issue_id_idx ON gitlab_partitions_static.issue_search_data_22 USING btree (issue_id); + + +-- +-- Name: issue_search_data_22_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_22_search_vector_idx ON gitlab_partitions_static.issue_search_data_22 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_23_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_23_issue_id_idx ON gitlab_partitions_static.issue_search_data_23 USING btree (issue_id); + + +-- +-- Name: issue_search_data_23_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_23_search_vector_idx ON gitlab_partitions_static.issue_search_data_23 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_24_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_24_issue_id_idx ON gitlab_partitions_static.issue_search_data_24 USING btree (issue_id); + + +-- +-- Name: issue_search_data_24_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_24_search_vector_idx ON gitlab_partitions_static.issue_search_data_24 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_25_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_25_issue_id_idx ON gitlab_partitions_static.issue_search_data_25 USING btree (issue_id); + + +-- +-- Name: issue_search_data_25_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_25_search_vector_idx ON gitlab_partitions_static.issue_search_data_25 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_26_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_26_issue_id_idx ON gitlab_partitions_static.issue_search_data_26 USING btree (issue_id); + + +-- +-- Name: issue_search_data_26_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_26_search_vector_idx ON gitlab_partitions_static.issue_search_data_26 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_27_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_27_issue_id_idx ON gitlab_partitions_static.issue_search_data_27 USING btree (issue_id); + + +-- +-- Name: issue_search_data_27_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_27_search_vector_idx ON gitlab_partitions_static.issue_search_data_27 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_28_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_28_issue_id_idx ON gitlab_partitions_static.issue_search_data_28 USING btree (issue_id); + + +-- +-- Name: issue_search_data_28_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_28_search_vector_idx ON gitlab_partitions_static.issue_search_data_28 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_29_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_29_issue_id_idx ON gitlab_partitions_static.issue_search_data_29 USING btree (issue_id); + + +-- +-- Name: issue_search_data_29_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_29_search_vector_idx ON gitlab_partitions_static.issue_search_data_29 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_30_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_30_issue_id_idx ON gitlab_partitions_static.issue_search_data_30 USING btree (issue_id); + + +-- +-- Name: issue_search_data_30_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_30_search_vector_idx ON gitlab_partitions_static.issue_search_data_30 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_31_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_31_issue_id_idx ON gitlab_partitions_static.issue_search_data_31 USING btree (issue_id); + + +-- +-- Name: issue_search_data_31_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_31_search_vector_idx ON gitlab_partitions_static.issue_search_data_31 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_32_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_32_issue_id_idx ON gitlab_partitions_static.issue_search_data_32 USING btree (issue_id); + + +-- +-- Name: issue_search_data_32_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_32_search_vector_idx ON gitlab_partitions_static.issue_search_data_32 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_33_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_33_issue_id_idx ON gitlab_partitions_static.issue_search_data_33 USING btree (issue_id); + + +-- +-- Name: issue_search_data_33_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_33_search_vector_idx ON gitlab_partitions_static.issue_search_data_33 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_34_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_34_issue_id_idx ON gitlab_partitions_static.issue_search_data_34 USING btree (issue_id); + + +-- +-- Name: issue_search_data_34_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_34_search_vector_idx ON gitlab_partitions_static.issue_search_data_34 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_35_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_35_issue_id_idx ON gitlab_partitions_static.issue_search_data_35 USING btree (issue_id); + + +-- +-- Name: issue_search_data_35_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_35_search_vector_idx ON gitlab_partitions_static.issue_search_data_35 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_36_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_36_issue_id_idx ON gitlab_partitions_static.issue_search_data_36 USING btree (issue_id); + + +-- +-- Name: issue_search_data_36_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_36_search_vector_idx ON gitlab_partitions_static.issue_search_data_36 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_37_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_37_issue_id_idx ON gitlab_partitions_static.issue_search_data_37 USING btree (issue_id); + + +-- +-- Name: issue_search_data_37_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_37_search_vector_idx ON gitlab_partitions_static.issue_search_data_37 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_38_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_38_issue_id_idx ON gitlab_partitions_static.issue_search_data_38 USING btree (issue_id); + + +-- +-- Name: issue_search_data_38_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_38_search_vector_idx ON gitlab_partitions_static.issue_search_data_38 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_39_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_39_issue_id_idx ON gitlab_partitions_static.issue_search_data_39 USING btree (issue_id); + + +-- +-- Name: issue_search_data_39_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_39_search_vector_idx ON gitlab_partitions_static.issue_search_data_39 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_40_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_40_issue_id_idx ON gitlab_partitions_static.issue_search_data_40 USING btree (issue_id); + + +-- +-- Name: issue_search_data_40_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_40_search_vector_idx ON gitlab_partitions_static.issue_search_data_40 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_41_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_41_issue_id_idx ON gitlab_partitions_static.issue_search_data_41 USING btree (issue_id); + + +-- +-- Name: issue_search_data_41_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_41_search_vector_idx ON gitlab_partitions_static.issue_search_data_41 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_42_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_42_issue_id_idx ON gitlab_partitions_static.issue_search_data_42 USING btree (issue_id); + + +-- +-- Name: issue_search_data_42_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_42_search_vector_idx ON gitlab_partitions_static.issue_search_data_42 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_43_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_43_issue_id_idx ON gitlab_partitions_static.issue_search_data_43 USING btree (issue_id); + + +-- +-- Name: issue_search_data_43_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_43_search_vector_idx ON gitlab_partitions_static.issue_search_data_43 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_44_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_44_issue_id_idx ON gitlab_partitions_static.issue_search_data_44 USING btree (issue_id); + + +-- +-- Name: issue_search_data_44_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_44_search_vector_idx ON gitlab_partitions_static.issue_search_data_44 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_45_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_45_issue_id_idx ON gitlab_partitions_static.issue_search_data_45 USING btree (issue_id); + + +-- +-- Name: issue_search_data_45_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_45_search_vector_idx ON gitlab_partitions_static.issue_search_data_45 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_46_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_46_issue_id_idx ON gitlab_partitions_static.issue_search_data_46 USING btree (issue_id); + + +-- +-- Name: issue_search_data_46_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_46_search_vector_idx ON gitlab_partitions_static.issue_search_data_46 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_47_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_47_issue_id_idx ON gitlab_partitions_static.issue_search_data_47 USING btree (issue_id); + + +-- +-- Name: issue_search_data_47_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_47_search_vector_idx ON gitlab_partitions_static.issue_search_data_47 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_48_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_48_issue_id_idx ON gitlab_partitions_static.issue_search_data_48 USING btree (issue_id); + + +-- +-- Name: issue_search_data_48_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_48_search_vector_idx ON gitlab_partitions_static.issue_search_data_48 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_49_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_49_issue_id_idx ON gitlab_partitions_static.issue_search_data_49 USING btree (issue_id); + + +-- +-- Name: issue_search_data_49_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_49_search_vector_idx ON gitlab_partitions_static.issue_search_data_49 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_50_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_50_issue_id_idx ON gitlab_partitions_static.issue_search_data_50 USING btree (issue_id); + + +-- +-- Name: issue_search_data_50_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_50_search_vector_idx ON gitlab_partitions_static.issue_search_data_50 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_51_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_51_issue_id_idx ON gitlab_partitions_static.issue_search_data_51 USING btree (issue_id); + + +-- +-- Name: issue_search_data_51_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_51_search_vector_idx ON gitlab_partitions_static.issue_search_data_51 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_52_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_52_issue_id_idx ON gitlab_partitions_static.issue_search_data_52 USING btree (issue_id); + + +-- +-- Name: issue_search_data_52_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_52_search_vector_idx ON gitlab_partitions_static.issue_search_data_52 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_53_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_53_issue_id_idx ON gitlab_partitions_static.issue_search_data_53 USING btree (issue_id); + + +-- +-- Name: issue_search_data_53_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_53_search_vector_idx ON gitlab_partitions_static.issue_search_data_53 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_54_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_54_issue_id_idx ON gitlab_partitions_static.issue_search_data_54 USING btree (issue_id); + + +-- +-- Name: issue_search_data_54_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_54_search_vector_idx ON gitlab_partitions_static.issue_search_data_54 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_55_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_55_issue_id_idx ON gitlab_partitions_static.issue_search_data_55 USING btree (issue_id); + + +-- +-- Name: issue_search_data_55_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_55_search_vector_idx ON gitlab_partitions_static.issue_search_data_55 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_56_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_56_issue_id_idx ON gitlab_partitions_static.issue_search_data_56 USING btree (issue_id); + + +-- +-- Name: issue_search_data_56_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_56_search_vector_idx ON gitlab_partitions_static.issue_search_data_56 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_57_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_57_issue_id_idx ON gitlab_partitions_static.issue_search_data_57 USING btree (issue_id); + + +-- +-- Name: issue_search_data_57_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_57_search_vector_idx ON gitlab_partitions_static.issue_search_data_57 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_58_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_58_issue_id_idx ON gitlab_partitions_static.issue_search_data_58 USING btree (issue_id); + + +-- +-- Name: issue_search_data_58_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_58_search_vector_idx ON gitlab_partitions_static.issue_search_data_58 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_59_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_59_issue_id_idx ON gitlab_partitions_static.issue_search_data_59 USING btree (issue_id); + + +-- +-- Name: issue_search_data_59_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_59_search_vector_idx ON gitlab_partitions_static.issue_search_data_59 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_60_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_60_issue_id_idx ON gitlab_partitions_static.issue_search_data_60 USING btree (issue_id); + + +-- +-- Name: issue_search_data_60_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_60_search_vector_idx ON gitlab_partitions_static.issue_search_data_60 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_61_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_61_issue_id_idx ON gitlab_partitions_static.issue_search_data_61 USING btree (issue_id); + + +-- +-- Name: issue_search_data_61_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_61_search_vector_idx ON gitlab_partitions_static.issue_search_data_61 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_62_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_62_issue_id_idx ON gitlab_partitions_static.issue_search_data_62 USING btree (issue_id); + + +-- +-- Name: issue_search_data_62_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_62_search_vector_idx ON gitlab_partitions_static.issue_search_data_62 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: issue_search_data_63_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_63_issue_id_idx ON gitlab_partitions_static.issue_search_data_63 USING btree (issue_id); + + +-- +-- Name: issue_search_data_63_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX issue_search_data_63_search_vector_idx ON gitlab_partitions_static.issue_search_data_63 USING gin (search_vector) WITH (fastupdate='false'); + + +-- +-- Name: index_on_namespace_descendants_outdated; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_namespace_descendants_outdated ON ONLY public.namespace_descendants USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_00_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_00_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_00 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_01_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_01_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_01 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_02_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_02_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_02 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_03_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_03_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_03 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_04_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_04_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_04 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_05_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_05_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_05 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_06_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_06_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_06 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_07_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_07_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_07 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_08_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_08_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_08 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_09_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_09_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_09 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_10_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_10_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_10 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_11_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_11_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_11 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_12_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_12_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_12 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_13_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_13_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_13 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_14_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_14_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_14 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_15_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_15_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_15 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_16_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_16_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_16 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_17_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_17_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_17 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_18_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_18_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_18 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_19_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_19_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_19 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_20_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_20_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_20 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_21_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_21_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_21 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_22_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_22_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_22 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_23_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_23_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_23 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_24_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_24_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_24 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_25_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_25_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_25 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_26_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_26_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_26 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_27_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_27_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_27 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_28_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_28_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_28 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_29_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_29_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_29 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_30_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_30_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_30 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: namespace_descendants_31_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - +-- + +CREATE INDEX namespace_descendants_31_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_31 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); + + +-- +-- Name: analytics_index_audit_events_part_on_created_at_and_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX analytics_index_audit_events_part_on_created_at_and_author_id ON ONLY public.audit_events USING btree (created_at, author_id); + + +-- +-- Name: analytics_index_events_on_created_at_and_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX analytics_index_events_on_created_at_and_author_id ON public.events USING btree (created_at, author_id); + + +-- +-- Name: analytics_repository_languages_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX analytics_repository_languages_on_project_id ON public.analytics_language_trend_repository_languages USING btree (project_id); + + +-- +-- Name: any_approver_project_rule_type_unique_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX any_approver_project_rule_type_unique_index ON public.approval_project_rules USING btree (project_id) WHERE (rule_type = 3); + + +-- +-- Name: approval_mr_rule_index_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX approval_mr_rule_index_merge_request_id ON public.approval_merge_request_rules USING btree (merge_request_id); + + +-- +-- Name: bulk_import_export_uploads_batch_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX bulk_import_export_uploads_batch_id ON public.bulk_import_export_uploads USING btree (batch_id); + + +-- +-- Name: bulk_import_trackers_uniq_relation_by_entity; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX bulk_import_trackers_uniq_relation_by_entity ON public.bulk_import_trackers USING btree (bulk_import_entity_id, relation); + + +-- +-- Name: ca_aggregations_last_consistency_check_updated_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX ca_aggregations_last_consistency_check_updated_at ON public.analytics_cycle_analytics_aggregations USING btree (last_consistency_check_updated_at NULLS FIRST) WHERE (enabled IS TRUE); + + +-- +-- Name: ca_aggregations_last_full_run_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX ca_aggregations_last_full_run_at ON public.analytics_cycle_analytics_aggregations USING btree (last_full_run_at NULLS FIRST) WHERE (enabled IS TRUE); + + +-- +-- Name: ca_aggregations_last_incremental_run_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX ca_aggregations_last_incremental_run_at ON public.analytics_cycle_analytics_aggregations USING btree (last_incremental_run_at NULLS FIRST) WHERE (enabled IS TRUE); + + +-- +-- Name: index_p_ci_build_trace_metadata_on_trace_artifact_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_p_ci_build_trace_metadata_on_trace_artifact_id ON ONLY public.p_ci_build_trace_metadata USING btree (trace_artifact_id); + + +-- +-- Name: ci_build_trace_metadata_trace_artifact_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX ci_build_trace_metadata_trace_artifact_id_idx ON public.ci_build_trace_metadata USING btree (trace_artifact_id); + + +-- +-- Name: p_ci_builds_status_created_at_project_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_status_created_at_project_id_idx ON ONLY public.p_ci_builds USING btree (status, created_at, project_id) WHERE ((type)::text = 'Ci::Build'::text); + + +-- +-- Name: ci_builds_gitlab_monitor_metrics; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX ci_builds_gitlab_monitor_metrics ON public.ci_builds USING btree (status, created_at, project_id) WHERE ((type)::text = 'Ci::Build'::text); + + +-- +-- Name: ci_job_token_scope_links_source_and_target_project_direction; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX ci_job_token_scope_links_source_and_target_project_direction ON public.ci_job_token_project_scope_links USING btree (source_project_id, target_project_id, direction); + + +-- +-- Name: ci_pipeline_artifacts_on_expire_at_for_removal; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX ci_pipeline_artifacts_on_expire_at_for_removal ON public.ci_pipeline_artifacts USING btree (expire_at) WHERE ((locked = 0) AND (expire_at IS NOT NULL)); + + +-- +-- Name: code_owner_approval_required; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX code_owner_approval_required ON public.protected_branches USING btree (project_id, code_owner_approval_required) WHERE (code_owner_approval_required = true); + + +-- +-- Name: commit_user_mentions_on_commit_id_and_note_id_unique_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX commit_user_mentions_on_commit_id_and_note_id_unique_index ON public.commit_user_mentions USING btree (commit_id, note_id); + + +-- +-- Name: composer_cache_files_index_on_deleted_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX composer_cache_files_index_on_deleted_at ON public.packages_composer_cache_files USING btree (delete_at, id); + + +-- +-- Name: custom_email_unique_constraint; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX custom_email_unique_constraint ON public.service_desk_settings USING btree (custom_email); + + +-- +-- Name: dast_scanner_profiles_builds_on_ci_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX dast_scanner_profiles_builds_on_ci_build_id ON public.dast_scanner_profiles_builds USING btree (ci_build_id); + + +-- +-- Name: dast_site_profiles_builds_on_ci_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX dast_site_profiles_builds_on_ci_build_id ON public.dast_site_profiles_builds USING btree (ci_build_id); + + +-- +-- Name: design_management_designs_versions_uniqueness; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX design_management_designs_versions_uniqueness ON public.design_management_designs_versions USING btree (design_id, version_id); + + +-- +-- Name: design_user_mentions_on_design_id_and_note_id_unique_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX design_user_mentions_on_design_id_and_note_id_unique_index ON public.design_user_mentions USING btree (design_id, note_id); + + +-- +-- Name: epic_user_mentions_on_epic_id_and_note_id_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX epic_user_mentions_on_epic_id_and_note_id_index ON public.epic_user_mentions USING btree (epic_id, note_id); + + +-- +-- Name: epic_user_mentions_on_epic_id_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX epic_user_mentions_on_epic_id_index ON public.epic_user_mentions USING btree (epic_id) WHERE (note_id IS NULL); + + +-- +-- Name: finding_evidences_on_unique_vulnerability_occurrence_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX finding_evidences_on_unique_vulnerability_occurrence_id ON public.vulnerability_finding_evidences USING btree (vulnerability_occurrence_id); + + +-- +-- Name: finding_link_name_url_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX finding_link_name_url_idx ON public.vulnerability_finding_links USING btree (vulnerability_occurrence_id, name, url); + + +-- +-- Name: finding_link_url_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX finding_link_url_idx ON public.vulnerability_finding_links USING btree (vulnerability_occurrence_id, url) WHERE (name IS NULL); + + +-- +-- Name: i_affected_packages_unique_for_upsert; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX i_affected_packages_unique_for_upsert ON public.pm_affected_packages USING btree (pm_advisory_id, purl_type, package_name, distro_version); + + +-- +-- Name: i_batched_background_migration_job_transition_logs_on_job_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX i_batched_background_migration_job_transition_logs_on_job_id ON ONLY public.batched_background_migration_job_transition_logs USING btree (batched_background_migration_job_id); + + +-- +-- Name: i_bulk_import_export_batches_id_batch_number; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX i_bulk_import_export_batches_id_batch_number ON public.bulk_import_export_batches USING btree (export_id, batch_number); + + +-- +-- Name: i_bulk_import_trackers_id_batch_number; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX i_bulk_import_trackers_id_batch_number ON public.bulk_import_batch_trackers USING btree (tracker_id, batch_number); + + +-- +-- Name: i_ci_job_token_group_scope_links_on_source_and_target_project; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX i_ci_job_token_group_scope_links_on_source_and_target_project ON public.ci_job_token_group_scope_links USING btree (source_project_id, target_group_id); + + +-- +-- Name: i_compliance_frameworks_on_id_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX i_compliance_frameworks_on_id_and_created_at ON public.compliance_management_frameworks USING btree (id, created_at, pipeline_configuration_full_path); + + +-- +-- Name: i_compliance_standards_adherence_on_namespace_id_and_proj_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX i_compliance_standards_adherence_on_namespace_id_and_proj_id ON public.project_compliance_standards_adherence USING btree (namespace_id, project_id DESC, id DESC); + + +-- +-- Name: i_compliance_violations_for_export; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX i_compliance_violations_for_export ON public.merge_requests_compliance_violations USING btree (target_project_id, id); + + +-- +-- Name: i_compliance_violations_on_project_id_merged_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX i_compliance_violations_on_project_id_merged_at_and_id ON public.merge_requests_compliance_violations USING btree (target_project_id, merged_at, id); + + +-- +-- Name: i_compliance_violations_on_project_id_reason_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX i_compliance_violations_on_project_id_reason_and_id ON public.merge_requests_compliance_violations USING btree (target_project_id, reason, id); + + +-- +-- Name: i_compliance_violations_on_project_id_severity_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX i_compliance_violations_on_project_id_severity_and_id ON public.merge_requests_compliance_violations USING btree (target_project_id, severity_level DESC, id DESC); + + +-- +-- Name: i_compliance_violations_on_project_id_title_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX i_compliance_violations_on_project_id_title_and_id ON public.merge_requests_compliance_violations USING btree (target_project_id, title, id); + + +-- +-- Name: i_container_protection_unique_project_repository_path_pattern; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX i_container_protection_unique_project_repository_path_pattern ON public.container_registry_protection_rules USING btree (project_id, repository_path_pattern); + + +-- +-- Name: i_custom_email_verifications_on_triggered_at_and_state_started; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX i_custom_email_verifications_on_triggered_at_and_state_started ON public.service_desk_custom_email_verifications USING btree (triggered_at) WHERE (state = 0); + + +-- +-- Name: i_dast_pre_scan_verification_steps_on_pre_scan_verification_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX i_dast_pre_scan_verification_steps_on_pre_scan_verification_id ON public.dast_pre_scan_verification_steps USING btree (dast_pre_scan_verification_id); + + +-- +-- Name: i_dast_profiles_tags_on_scanner_profiles_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX i_dast_profiles_tags_on_scanner_profiles_id ON public.dast_profiles_tags USING btree (dast_profile_id); + + +-- +-- Name: i_namespace_cluster_agent_mappings_on_cluster_agent_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX i_namespace_cluster_agent_mappings_on_cluster_agent_id ON public.remote_development_namespace_cluster_agent_mappings USING btree (cluster_agent_id); + + +-- +-- Name: i_namespace_cluster_agent_mappings_on_creator_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX i_namespace_cluster_agent_mappings_on_creator_id ON public.remote_development_namespace_cluster_agent_mappings USING btree (creator_id); + + +-- +-- Name: i_packages_unique_project_id_package_type_package_name_pattern; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX i_packages_unique_project_id_package_type_package_name_pattern ON public.packages_protection_rules USING btree (project_id, package_type, package_name_pattern); + + +-- +-- Name: i_pkgs_deb_file_meta_on_updated_at_package_file_id_when_unknown; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX i_pkgs_deb_file_meta_on_updated_at_package_file_id_when_unknown ON public.packages_debian_file_metadata USING btree (updated_at, package_file_id) WHERE (file_type = 1); + + +-- +-- Name: i_pm_licenses_on_spdx_identifier; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX i_pm_licenses_on_spdx_identifier ON public.pm_licenses USING btree (spdx_identifier); + + +-- +-- Name: i_pm_package_version_licenses_join_ids; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX i_pm_package_version_licenses_join_ids ON public.pm_package_version_licenses USING btree (pm_package_version_id, pm_license_id); + + +-- +-- Name: i_pm_package_versions_on_package_id_and_version; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX i_pm_package_versions_on_package_id_and_version ON public.pm_package_versions USING btree (pm_package_id, version); + + +-- +-- Name: i_pm_packages_purl_type_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX i_pm_packages_purl_type_and_name ON public.pm_packages USING btree (purl_type, name); + + +-- +-- Name: i_sbom_occurrences_vulnerabilities_on_occ_id_and_vuln_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX i_sbom_occurrences_vulnerabilities_on_occ_id_and_vuln_id ON public.sbom_occurrences_vulnerabilities USING btree (sbom_occurrence_id, vulnerability_id); + + +-- +-- Name: i_software_license_policies_on_custom_software_license_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX i_software_license_policies_on_custom_software_license_id ON public.software_license_policies USING btree (custom_software_license_id); + + +-- +-- Name: i_vuln_occurrences_on_proj_report_loc_dep_pkg_ver_file_img; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX i_vuln_occurrences_on_proj_report_loc_dep_pkg_ver_file_img ON public.vulnerability_occurrences USING btree (project_id, report_type, ((((location -> 'dependency'::text) -> 'package'::text) ->> 'name'::text)), (((location -> 'dependency'::text) ->> 'version'::text)), COALESCE((location ->> 'file'::text), (location ->> 'image'::text))) WHERE (report_type = ANY (ARRAY[2, 1])); + + +-- +-- Name: idx_abuse_reports_user_id_status_and_category; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_abuse_reports_user_id_status_and_category ON public.abuse_reports USING btree (user_id, status, category); + + +-- +-- Name: idx_addon_purchases_on_last_refreshed_at_desc_nulls_last; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_addon_purchases_on_last_refreshed_at_desc_nulls_last ON public.subscription_add_on_purchases USING btree (last_assigned_users_refreshed_at DESC NULLS LAST); + + +-- +-- Name: idx_alert_management_alerts_on_created_at_project_id_with_issue; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_alert_management_alerts_on_created_at_project_id_with_issue ON public.alert_management_alerts USING btree (created_at, project_id) WHERE (issue_id IS NOT NULL); + + +-- +-- Name: idx_analytics_devops_adoption_segments_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_analytics_devops_adoption_segments_on_namespace_id ON public.analytics_devops_adoption_segments USING btree (namespace_id); + + +-- +-- Name: idx_analytics_devops_adoption_snapshots_finalized; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_analytics_devops_adoption_snapshots_finalized ON public.analytics_devops_adoption_snapshots USING btree (namespace_id, end_time) WHERE (recorded_at >= end_time); + + +-- +-- Name: idx_approval_merge_request_rules_on_scan_result_policy_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_approval_merge_request_rules_on_scan_result_policy_id ON public.approval_merge_request_rules USING btree (scan_result_policy_id); + + +-- +-- Name: idx_approval_mr_rules_on_config_id_and_id_and_updated_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_approval_mr_rules_on_config_id_and_id_and_updated_at ON public.approval_merge_request_rules USING btree (security_orchestration_policy_configuration_id, id, updated_at); + + +-- +-- Name: idx_approval_project_rules_on_configuration_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_approval_project_rules_on_configuration_id_and_id ON public.approval_project_rules USING btree (security_orchestration_policy_configuration_id, id); + + +-- +-- Name: idx_approval_project_rules_on_scan_result_policy_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_approval_project_rules_on_scan_result_policy_id ON public.approval_project_rules USING btree (scan_result_policy_id); + + +-- +-- Name: idx_audit_events_group_external_destinations_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_audit_events_group_external_destinations_on_group_id ON public.audit_events_group_external_streaming_destinations USING btree (group_id); + + +-- +-- Name: idx_audit_events_namespace_event_type_filters_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_audit_events_namespace_event_type_filters_on_group_id ON public.audit_events_group_streaming_event_type_filters USING btree (namespace_id); + + +-- +-- Name: idx_audit_events_part_on_entity_id_desc_author_id_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_audit_events_part_on_entity_id_desc_author_id_created_at ON ONLY public.audit_events USING btree (entity_id, entity_type, id DESC, author_id, created_at); + + +-- +-- Name: idx_award_emoji_on_user_emoji_name_awardable_type_awardable_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_award_emoji_on_user_emoji_name_awardable_type_awardable_id ON public.award_emoji USING btree (user_id, name, awardable_type, awardable_id); + + +-- +-- Name: idx_build_artifacts_size_refreshes_state_updated_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_build_artifacts_size_refreshes_state_updated_at ON public.project_build_artifacts_size_refreshes USING btree (state, updated_at); + + +-- +-- Name: p_ci_job_artifacts_job_id_file_type_partition_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX p_ci_job_artifacts_job_id_file_type_partition_id_idx ON ONLY public.p_ci_job_artifacts USING btree (job_id, file_type, partition_id); + + +-- +-- Name: idx_ci_job_artifacts_on_job_id_file_type_and_partition_id_uniq; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_ci_job_artifacts_on_job_id_file_type_and_partition_id_uniq ON public.ci_job_artifacts USING btree (job_id, file_type, partition_id); + + +-- +-- Name: p_ci_pipelines_ci_ref_id_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_ci_ref_id_id_idx ON ONLY public.p_ci_pipelines USING btree (ci_ref_id, id) WHERE (locked = 1); + + +-- +-- Name: idx_ci_pipelines_artifacts_locked; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_ci_pipelines_artifacts_locked ON public.ci_pipelines USING btree (ci_ref_id, id) WHERE (locked = 1); + + +-- +-- Name: idx_ci_running_builds_on_runner_type_and_owner_xid_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_ci_running_builds_on_runner_type_and_owner_xid_and_id ON public.ci_running_builds USING btree (runner_type, runner_owner_namespace_xid, runner_id); + + +-- +-- Name: idx_compliance_security_policies_on_policy_configuration_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_compliance_security_policies_on_policy_configuration_id ON public.compliance_framework_security_policies USING btree (policy_configuration_id); + + +-- +-- Name: idx_component_usages_on_catalog_resource_used_by_proj_used_date; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_component_usages_on_catalog_resource_used_by_proj_used_date ON ONLY public.p_catalog_resource_component_usages USING btree (catalog_resource_id, used_by_project_id, used_date); + + +-- +-- Name: idx_component_usages_on_component_used_by_project_and_used_date; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_component_usages_on_component_used_by_project_and_used_date ON ONLY public.p_catalog_resource_component_usages USING btree (component_id, used_by_project_id, used_date); + + +-- +-- Name: idx_container_exp_policies_on_project_id_next_run_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_container_exp_policies_on_project_id_next_run_at ON public.container_expiration_policies USING btree (project_id, next_run_at) WHERE (enabled = true); + + +-- +-- Name: idx_container_exp_policies_on_project_id_next_run_at_enabled; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_container_exp_policies_on_project_id_next_run_at_enabled ON public.container_expiration_policies USING btree (project_id, next_run_at, enabled); + + +-- +-- Name: idx_container_repos_on_exp_cleanup_status_project_id_start_date; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_container_repos_on_exp_cleanup_status_project_id_start_date ON public.container_repositories USING btree (expiration_policy_cleanup_status, project_id, expiration_policy_started_at); + + +-- +-- Name: idx_deletions_on_project_id_and_id_where_pending; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_deletions_on_project_id_and_id_where_pending ON ONLY public.p_batched_git_ref_updates_deletions USING btree (project_id, id) WHERE (status = 1); + + +-- +-- Name: idx_dep_proxy_pkgs_settings_enabled_maven_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_dep_proxy_pkgs_settings_enabled_maven_on_project_id ON public.dependency_proxy_packages_settings USING btree (project_id) WHERE ((enabled = true) AND (maven_external_registry_url IS NOT NULL)); + + +-- +-- Name: idx_deployment_clusters_on_cluster_id_and_kubernetes_namespace; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_deployment_clusters_on_cluster_id_and_kubernetes_namespace ON public.deployment_clusters USING btree (cluster_id, kubernetes_namespace); + + +-- +-- Name: idx_devops_adoption_segments_namespace_end_time; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_devops_adoption_segments_namespace_end_time ON public.analytics_devops_adoption_snapshots USING btree (namespace_id, end_time); + + +-- +-- Name: idx_devops_adoption_segments_namespace_recorded_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_devops_adoption_segments_namespace_recorded_at ON public.analytics_devops_adoption_snapshots USING btree (namespace_id, recorded_at); + + +-- +-- Name: idx_devops_adoption_segments_namespaces_pair; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_devops_adoption_segments_namespaces_pair ON public.analytics_devops_adoption_segments USING btree (display_namespace_id, namespace_id); + + +-- +-- Name: idx_elastic_reindexing_slices_on_elastic_reindexing_subtask_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_elastic_reindexing_slices_on_elastic_reindexing_subtask_id ON public.elastic_reindexing_slices USING btree (elastic_reindexing_subtask_id); + + +-- +-- Name: idx_enabled_pkgs_cleanup_policies_on_next_run_at_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_enabled_pkgs_cleanup_policies_on_next_run_at_project_id ON public.packages_cleanup_policies USING btree (next_run_at, project_id) WHERE (keep_n_duplicated_package_files <> 'all'::text); + + +-- +-- Name: idx_environment_merge_requests_unique_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_environment_merge_requests_unique_index ON public.deployment_merge_requests USING btree (environment_id, merge_request_id); + + +-- +-- Name: idx_external_audit_event_destination_id_key_uniq; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_external_audit_event_destination_id_key_uniq ON public.audit_events_streaming_headers USING btree (key, external_audit_event_destination_id); + + +-- +-- Name: idx_external_status_checks_on_id_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_external_status_checks_on_id_and_project_id ON public.external_status_checks USING btree (id, project_id); + + +-- +-- Name: idx_gpg_keys_on_user_externally_verified; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_gpg_keys_on_user_externally_verified ON public.gpg_keys USING btree (user_id) WHERE (externally_verified = true); + + +-- +-- Name: idx_group_audit_events_on_author_id_created_at_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_group_audit_events_on_author_id_created_at_id ON ONLY public.group_audit_events USING btree (author_id, created_at, id); + + +-- +-- Name: idx_group_audit_events_on_group_id_author_created_at_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_group_audit_events_on_group_id_author_created_at_id ON ONLY public.group_audit_events USING btree (group_id, author_id, created_at, id DESC); + + +-- +-- Name: idx_group_audit_events_on_project_created_at_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_group_audit_events_on_project_created_at_id ON ONLY public.group_audit_events USING btree (group_id, created_at, id); + + +-- +-- Name: idx_headers_instance_external_audit_event_destination_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_headers_instance_external_audit_event_destination_id ON public.instance_audit_events_streaming_headers USING btree (instance_external_audit_event_destination_id); + + +-- +-- Name: idx_installable_conan_pkgs_on_project_id_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_installable_conan_pkgs_on_project_id_id ON public.packages_packages USING btree (project_id, id) WHERE ((package_type = 3) AND (status = ANY (ARRAY[0, 1]))); + + +-- +-- Name: idx_installable_helm_pkgs_on_project_id_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_installable_helm_pkgs_on_project_id_id ON public.packages_packages USING btree (project_id, id); + + +-- +-- Name: idx_installable_npm_pkgs_on_project_id_name_version_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_installable_npm_pkgs_on_project_id_name_version_id ON public.packages_packages USING btree (project_id, name, version, id) WHERE ((package_type = 2) AND (status = 0)); + + +-- +-- Name: idx_instance_audit_events_on_author_id_created_at_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_instance_audit_events_on_author_id_created_at_id ON ONLY public.instance_audit_events USING btree (author_id, created_at, id); + + +-- +-- Name: idx_instance_external_audit_event_destination_id_key_uniq; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_instance_external_audit_event_destination_id_key_uniq ON public.instance_audit_events_streaming_headers USING btree (instance_external_audit_event_destination_id, key); + + +-- +-- Name: idx_issues_on_health_status_not_null; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_issues_on_health_status_not_null ON public.issues USING btree (health_status) WHERE (health_status IS NOT NULL); + + +-- +-- Name: idx_issues_on_project_id_and_created_at_and_id_and_state_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_issues_on_project_id_and_created_at_and_id_and_state_id ON public.issues USING btree (project_id, created_at, id, state_id); + + +-- +-- Name: idx_issues_on_project_id_and_due_date_and_id_and_state_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_issues_on_project_id_and_due_date_and_id_and_state_id ON public.issues USING btree (project_id, due_date, id, state_id) WHERE (due_date IS NOT NULL); + + +-- +-- Name: idx_issues_on_project_id_and_rel_position_and_id_and_state_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_issues_on_project_id_and_rel_position_and_id_and_state_id ON public.issues USING btree (project_id, relative_position, id, state_id); + + +-- +-- Name: idx_issues_on_project_id_and_updated_at_and_id_and_state_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_issues_on_project_id_and_updated_at_and_id_and_state_id ON public.issues USING btree (project_id, updated_at, id, state_id); + + +-- +-- Name: idx_issues_on_project_work_item_type_closed_at_where_closed; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_issues_on_project_work_item_type_closed_at_where_closed ON public.issues USING btree (project_id, work_item_type_id, closed_at) WHERE (state_id = 2); + + +-- +-- Name: idx_issues_on_state_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_issues_on_state_id ON public.issues USING btree (state_id); + + +-- +-- Name: idx_jira_connect_subscriptions_on_installation_id_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_jira_connect_subscriptions_on_installation_id_namespace_id ON public.jira_connect_subscriptions USING btree (jira_connect_installation_id, namespace_id); + + +-- +-- Name: idx_keys_expires_at_and_before_expiry_notification_undelivered; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_keys_expires_at_and_before_expiry_notification_undelivered ON public.keys USING btree (date(timezone('UTC'::text, expires_at)), before_expiry_notification_delivered_at) WHERE (before_expiry_notification_delivered_at IS NULL); + + +-- +-- Name: idx_members_created_at_user_id_invite_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_members_created_at_user_id_invite_token ON public.members USING btree (created_at) WHERE ((invite_token IS NOT NULL) AND (user_id IS NULL)); + + +-- +-- Name: idx_members_on_user_and_source_and_source_type_and_member_role; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_members_on_user_and_source_and_source_type_and_member_role ON public.members USING btree (user_id, source_id, source_type, member_role_id); + + +-- +-- Name: idx_merge_request_metrics_on_merged_by_project_and_mr; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_merge_request_metrics_on_merged_by_project_and_mr ON public.merge_request_metrics USING btree (merged_by_id, target_project_id, merge_request_id); + + +-- +-- Name: idx_merge_requests_on_id_and_merge_jid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_merge_requests_on_id_and_merge_jid ON public.merge_requests USING btree (id, merge_jid) WHERE ((merge_jid IS NOT NULL) AND (state_id = 4)); + + +-- +-- Name: idx_merge_requests_on_merged_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_merge_requests_on_merged_state ON public.merge_requests USING btree (id) WHERE (state_id = 3); + + +-- +-- Name: idx_merge_requests_on_source_project_and_branch_state_opened; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_merge_requests_on_source_project_and_branch_state_opened ON public.merge_requests USING btree (source_project_id, source_branch) WHERE (state_id = 1); + + +-- +-- Name: idx_merge_requests_on_unmerged_state_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_merge_requests_on_unmerged_state_id ON public.merge_requests USING btree (id) WHERE (state_id <> 3); + + +-- +-- Name: idx_metrics_users_starred_dashboard_on_user_project_dashboard; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_metrics_users_starred_dashboard_on_user_project_dashboard ON public.metrics_users_starred_dashboards USING btree (user_id, project_id, dashboard_path); + + +-- +-- Name: idx_mr_cc_diff_files_on_mr_cc_id_and_sha; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_mr_cc_diff_files_on_mr_cc_id_and_sha ON public.merge_request_context_commit_diff_files USING btree (merge_request_context_commit_id, sha); + + +-- +-- Name: idx_mrs_on_target_id_and_created_at_and_state_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_mrs_on_target_id_and_created_at_and_state_id ON public.merge_requests USING btree (target_project_id, state_id, created_at, id); + + +-- +-- Name: idx_namespace_settings_on_default_compliance_framework_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_namespace_settings_on_default_compliance_framework_id ON public.namespace_settings USING btree (default_compliance_framework_id); + + +-- +-- Name: idx_namespace_settings_on_last_dormant_member_review_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_namespace_settings_on_last_dormant_member_review_at ON public.namespace_settings USING btree (last_dormant_member_review_at) WHERE (remove_dormant_members IS TRUE); + + +-- +-- Name: idx_o11y_log_issue_conn_on_issue_id_logs_search_metadata; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_o11y_log_issue_conn_on_issue_id_logs_search_metadata ON public.observability_logs_issues_connections USING btree (issue_id, service_name, severity_number, log_timestamp, log_fingerprint, trace_identifier); + + +-- +-- Name: idx_o11y_metric_issue_conn_on_issue_id_metric_type_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_o11y_metric_issue_conn_on_issue_id_metric_type_name ON public.observability_metrics_issues_connections USING btree (issue_id, metric_type, metric_name); + + +-- +-- Name: idx_o11y_trace_issue_conn_on_issue_id_trace_identifier; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_o11y_trace_issue_conn_on_issue_id_trace_identifier ON public.observability_traces_issues_connections USING btree (issue_id, trace_identifier); + + +-- +-- Name: idx_on_approval_group_rules_any_approver_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_on_approval_group_rules_any_approver_type ON public.approval_group_rules USING btree (group_id, rule_type) WHERE (rule_type = 4); + + +-- +-- Name: idx_on_approval_group_rules_group_id_type_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_on_approval_group_rules_group_id_type_name ON public.approval_group_rules USING btree (group_id, rule_type, name); + + +-- +-- Name: idx_on_approval_group_rules_groups_rule_group; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_on_approval_group_rules_groups_rule_group ON public.approval_group_rules_groups USING btree (approval_group_rule_id, group_id); + + +-- +-- Name: idx_on_approval_group_rules_protected_branch; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_on_approval_group_rules_protected_branch ON public.approval_group_rules_protected_branches USING btree (approval_group_rule_id, protected_branch_id); + + +-- +-- Name: idx_on_approval_group_rules_security_orch_policy; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_on_approval_group_rules_security_orch_policy ON public.approval_group_rules USING btree (security_orchestration_policy_configuration_id); + + +-- +-- Name: idx_on_approval_group_rules_users_rule_user; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_on_approval_group_rules_users_rule_user ON public.approval_group_rules_users USING btree (approval_group_rule_id, user_id); + + +-- +-- Name: idx_on_compliance_management_frameworks_namespace_id_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_on_compliance_management_frameworks_namespace_id_name ON public.compliance_management_frameworks USING btree (namespace_id, name); + + +-- +-- Name: idx_on_external_approval_rules_project_id_external_url; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_on_external_approval_rules_project_id_external_url ON public.external_approval_rules USING btree (project_id, external_url); + + +-- +-- Name: idx_on_external_approval_rules_project_id_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_on_external_approval_rules_project_id_name ON public.external_approval_rules USING btree (project_id, name); + + +-- +-- Name: idx_on_external_status_checks_project_id_external_url; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_on_external_status_checks_project_id_external_url ON public.external_status_checks USING btree (project_id, external_url); + + +-- +-- Name: idx_on_external_status_checks_project_id_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_on_external_status_checks_project_id_name ON public.external_status_checks USING btree (project_id, name); + + +-- +-- Name: idx_on_protected_branch; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_on_protected_branch ON public.approval_group_rules_protected_branches USING btree (protected_branch_id); + + +-- +-- Name: idx_open_issues_on_project_and_confidential_and_author_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_open_issues_on_project_and_confidential_and_author_and_id ON public.issues USING btree (project_id, confidential, author_id, id) WHERE (state_id = 1); + + +-- +-- Name: idx_p_ci_finished_pipeline_ch_sync_evts_on_project_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_p_ci_finished_pipeline_ch_sync_evts_on_project_namespace_id ON ONLY public.p_ci_finished_pipeline_ch_sync_events USING btree (project_namespace_id); + + +-- +-- Name: idx_packages_debian_group_component_files_on_architecture_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_packages_debian_group_component_files_on_architecture_id ON public.packages_debian_group_component_files USING btree (architecture_id); + + +-- +-- Name: idx_packages_debian_project_component_files_on_architecture_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_packages_debian_project_component_files_on_architecture_id ON public.packages_debian_project_component_files USING btree (architecture_id); + + +-- +-- Name: idx_packages_dependencies_on_name_version_pattern_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_packages_dependencies_on_name_version_pattern_project_id ON public.packages_dependencies USING btree (name, version_pattern, project_id); + + +-- +-- Name: idx_packages_nuget_metadata_on_pkg_id_and_normalized_version; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_packages_nuget_metadata_on_pkg_id_and_normalized_version ON public.packages_nuget_metadata USING btree (package_id, normalized_version); + + +-- +-- Name: idx_packages_on_project_id_name_id_version_when_installable_npm; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_packages_on_project_id_name_id_version_when_installable_npm ON public.packages_packages USING btree (project_id, name, id, version) WHERE ((package_type = 2) AND (status = ANY (ARRAY[0, 1]))); + + +-- +-- Name: idx_packages_on_project_id_name_version_unique_when_generic; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_packages_on_project_id_name_version_unique_when_generic ON public.packages_packages USING btree (project_id, name, version) WHERE ((package_type = 7) AND (status <> 4)); + + +-- +-- Name: idx_packages_on_project_id_name_version_unique_when_golang; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_packages_on_project_id_name_version_unique_when_golang ON public.packages_packages USING btree (project_id, name, version) WHERE ((package_type = 8) AND (status <> 4)); + + +-- +-- Name: idx_packages_on_project_id_name_version_unique_when_helm; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_packages_on_project_id_name_version_unique_when_helm ON public.packages_packages USING btree (project_id, name, version) WHERE ((package_type = 11) AND (status <> 4)); + + +-- +-- Name: idx_packages_on_project_id_name_version_unique_when_npm; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_packages_on_project_id_name_version_unique_when_npm ON public.packages_packages USING btree (project_id, name, version) WHERE ((package_type = 2) AND (status <> 4)); + + +-- +-- Name: idx_packages_packages_on_npm_scope_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_packages_packages_on_npm_scope_and_project_id ON public.packages_packages USING btree (split_part((name)::text, '/'::text, 1), project_id) WHERE ((package_type = 2) AND ("position"((name)::text, '/'::text) > 0) AND (status = ANY (ARRAY[0, 3])) AND (version IS NOT NULL)); + + +-- +-- Name: idx_packages_packages_on_project_id_name_version_package_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_packages_packages_on_project_id_name_version_package_type ON public.packages_packages USING btree (project_id, name, version, package_type); + + +-- +-- Name: idx_pat_last_used_ips_on_pat_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_pat_last_used_ips_on_pat_id ON public.personal_access_token_last_used_ips USING btree (personal_access_token_id); + + +-- +-- Name: idx_personal_access_tokens_on_previous_personal_access_token_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_personal_access_tokens_on_previous_personal_access_token_id ON public.personal_access_tokens USING btree (previous_personal_access_token_id); + + +-- +-- Name: idx_pkgs_conan_file_metadata_on_pkg_file_id_when_recipe_file; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_pkgs_conan_file_metadata_on_pkg_file_id_when_recipe_file ON public.packages_conan_file_metadata USING btree (package_file_id) WHERE (conan_file_type = 1); + + +-- +-- Name: idx_pkgs_debian_group_distribution_keys_on_distribution_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_pkgs_debian_group_distribution_keys_on_distribution_id ON public.packages_debian_group_distribution_keys USING btree (distribution_id); + + +-- +-- Name: idx_pkgs_debian_project_distribution_keys_on_distribution_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_pkgs_debian_project_distribution_keys_on_distribution_id ON public.packages_debian_project_distribution_keys USING btree (distribution_id); + + +-- +-- Name: idx_pkgs_dep_links_on_pkg_id_dependency_id_dependency_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_pkgs_dep_links_on_pkg_id_dependency_id_dependency_type ON public.packages_dependency_links USING btree (package_id, dependency_id, dependency_type); + + +-- +-- Name: idx_pkgs_installable_package_files_on_package_id_id_file_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_pkgs_installable_package_files_on_package_id_id_file_name ON public.packages_package_files USING btree (package_id, id, file_name) WHERE (status = 0); + + +-- +-- Name: idx_pkgs_npm_metadata_caches_on_id_and_project_id_and_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_pkgs_npm_metadata_caches_on_id_and_project_id_and_status ON public.packages_npm_metadata_caches USING btree (id) WHERE ((project_id IS NULL) AND (status = 0)); + + +-- +-- Name: idx_pkgs_nuget_symbols_on_lowercase_signature_and_file_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_pkgs_nuget_symbols_on_lowercase_signature_and_file_name ON public.packages_nuget_symbols USING btree (lower(signature), lower(file)); + + +-- +-- Name: idx_pkgs_on_project_id_name_version_on_installable_terraform; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_pkgs_on_project_id_name_version_on_installable_terraform ON public.packages_packages USING btree (project_id, name, version, id) WHERE ((package_type = 12) AND (status = ANY (ARRAY[0, 1]))); + + +-- +-- Name: idx_pkgs_project_id_lower_name_when_nuget_installable_version; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_pkgs_project_id_lower_name_when_nuget_installable_version ON public.packages_packages USING btree (project_id, lower((name)::text)) WHERE ((package_type = 4) AND (version IS NOT NULL) AND (status = ANY (ARRAY[0, 1]))); + + +-- +-- Name: idx_proj_feat_usg_on_jira_dvcs_cloud_last_sync_at_and_proj_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_proj_feat_usg_on_jira_dvcs_cloud_last_sync_at_and_proj_id ON public.project_feature_usages USING btree (jira_dvcs_cloud_last_sync_at, project_id) WHERE (jira_dvcs_cloud_last_sync_at IS NOT NULL); + + +-- +-- Name: idx_proj_feat_usg_on_jira_dvcs_server_last_sync_at_and_proj_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_proj_feat_usg_on_jira_dvcs_server_last_sync_at_and_proj_id ON public.project_feature_usages USING btree (jira_dvcs_server_last_sync_at, project_id) WHERE (jira_dvcs_server_last_sync_at IS NOT NULL); + + +-- +-- Name: idx_project_audit_events_on_author_id_created_at_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_project_audit_events_on_author_id_created_at_id ON ONLY public.project_audit_events USING btree (author_id, created_at, id); + + +-- +-- Name: idx_project_audit_events_on_project_created_at_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_project_audit_events_on_project_created_at_id ON ONLY public.project_audit_events USING btree (project_id, created_at, id); + + +-- +-- Name: idx_project_audit_events_on_project_id_author_created_at_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_project_audit_events_on_project_id_author_created_at_id ON ONLY public.project_audit_events USING btree (project_id, author_id, created_at, id DESC); + + +-- +-- Name: idx_project_id_payload_key_self_managed_prometheus_alert_events; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_project_id_payload_key_self_managed_prometheus_alert_events ON public.self_managed_prometheus_alert_events USING btree (project_id, payload_key); + + +-- +-- Name: idx_project_repository_check_partial; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_project_repository_check_partial ON public.projects USING btree (repository_storage, created_at) WHERE (last_repository_check_at IS NULL); + + +-- +-- Name: idx_projects_api_created_at_id_for_archived; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_projects_api_created_at_id_for_archived ON public.projects USING btree (created_at, id) WHERE ((archived = true) AND (pending_delete = false) AND (hidden = false)); + + +-- +-- Name: idx_projects_api_created_at_id_for_archived_vis20; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_projects_api_created_at_id_for_archived_vis20 ON public.projects USING btree (created_at, id) WHERE ((archived = true) AND (visibility_level = 20) AND (pending_delete = false) AND (hidden = false)); + + +-- +-- Name: idx_projects_api_created_at_id_for_vis10; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_projects_api_created_at_id_for_vis10 ON public.projects USING btree (created_at, id) WHERE ((visibility_level = 10) AND (pending_delete = false) AND (hidden = false)); + + +-- +-- Name: idx_projects_id_created_at_disable_overriding_approvers_false; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_projects_id_created_at_disable_overriding_approvers_false ON public.projects USING btree (id, created_at) WHERE ((disable_overriding_approvers_per_merge_request = false) OR (disable_overriding_approvers_per_merge_request IS NULL)); + + +-- +-- Name: idx_projects_id_created_at_disable_overriding_approvers_true; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_projects_id_created_at_disable_overriding_approvers_true ON public.projects USING btree (id, created_at) WHERE (disable_overriding_approvers_per_merge_request = true); + + +-- +-- Name: idx_projects_on_repository_storage_last_repository_updated_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_projects_on_repository_storage_last_repository_updated_at ON public.projects USING btree (id, repository_storage, last_repository_updated_at); + + +-- +-- Name: idx_reminder_frequency_on_work_item_progresses; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_reminder_frequency_on_work_item_progresses ON public.work_item_progresses USING btree (reminder_frequency); + + +-- +-- Name: idx_sbom_components_on_name_gin; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_sbom_components_on_name_gin ON public.sbom_components USING gin (name public.gin_trgm_ops); + + +-- +-- Name: idx_sbom_components_on_name_purl_type_component_type_and_org_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_sbom_components_on_name_purl_type_component_type_and_org_id ON public.sbom_components USING btree (name, purl_type, component_type, organization_id); + + +-- +-- Name: idx_sbom_occurr_on_project_component_version_input_file_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_sbom_occurr_on_project_component_version_input_file_path ON public.sbom_occurrences USING btree (project_id, component_version_id, input_file_path); + + +-- +-- Name: idx_sbom_occurrences_on_project_id_and_source_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_sbom_occurrences_on_project_id_and_source_id ON public.sbom_occurrences USING btree (project_id, source_id); + + +-- +-- Name: idx_sbom_source_packages_on_name_and_purl_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_sbom_source_packages_on_name_and_purl_type ON public.sbom_source_packages USING btree (name, purl_type); + + +-- +-- Name: idx_scan_result_policies_on_configuration_id_id_updated_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_scan_result_policies_on_configuration_id_id_updated_at ON public.scan_result_policies USING btree (security_orchestration_policy_configuration_id, id, updated_at); + + +-- +-- Name: idx_scan_result_policy_violations_on_policy_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_scan_result_policy_violations_on_policy_id_and_id ON public.scan_result_policy_violations USING btree (scan_result_policy_id, id); + + +-- +-- Name: idx_security_scans_on_build_and_scan_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_security_scans_on_build_and_scan_type ON public.security_scans USING btree (build_id, scan_type); + + +-- +-- Name: idx_security_scans_on_scan_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_security_scans_on_scan_type ON public.security_scans USING btree (scan_type); + + +-- +-- Name: idx_software_license_policies_unique_on_custom_license_project; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_software_license_policies_unique_on_custom_license_project ON public.software_license_policies USING btree (project_id, custom_software_license_id, scan_result_policy_id); + + +-- +-- Name: idx_software_license_policies_unique_on_project_and_scan_policy; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_software_license_policies_unique_on_project_and_scan_policy ON public.software_license_policies USING btree (project_id, software_license_id, scan_result_policy_id); + + +-- +-- Name: idx_status_check_responses_on_id_and_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_status_check_responses_on_id_and_status ON public.status_check_responses USING btree (id, status); + + +-- +-- Name: idx_streaming_group_namespace_filters_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_streaming_group_namespace_filters_on_namespace_id ON public.audit_events_streaming_group_namespace_filters USING btree (namespace_id); + + +-- +-- Name: idx_streaming_headers_on_external_audit_event_destination_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_streaming_headers_on_external_audit_event_destination_id ON public.audit_events_streaming_headers USING btree (external_audit_event_destination_id); + + +-- +-- Name: idx_streaming_instance_namespace_filters_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_streaming_instance_namespace_filters_on_namespace_id ON public.audit_events_streaming_instance_namespace_filters USING btree (namespace_id); + + +-- +-- Name: idx_test_reports_on_issue_id_created_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_test_reports_on_issue_id_created_at_and_id ON public.requirements_management_test_reports USING btree (issue_id, created_at, id); + + +-- +-- Name: idx_uniq_analytics_dashboards_pointers_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_uniq_analytics_dashboards_pointers_on_project_id ON public.analytics_dashboards_pointers USING btree (project_id); + + +-- +-- Name: idx_user_add_on_assignments_on_add_on_purchase_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_user_add_on_assignments_on_add_on_purchase_id_and_id ON public.subscription_user_add_on_assignments USING btree (add_on_purchase_id, id); + + +-- +-- Name: idx_user_audit_events_on_author_id_created_at_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_user_audit_events_on_author_id_created_at_id ON ONLY public.user_audit_events USING btree (author_id, created_at, id); + + +-- +-- Name: idx_user_audit_events_on_project_created_at_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_user_audit_events_on_project_created_at_id ON ONLY public.user_audit_events USING btree (user_id, created_at, id); + + +-- +-- Name: idx_user_audit_events_on_user_id_author_created_at_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_user_audit_events_on_user_id_author_created_at_id ON ONLY public.user_audit_events USING btree (user_id, author_id, created_at, id DESC); + + +-- +-- Name: idx_user_credit_card_validations_on_holder_name_hash; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_user_credit_card_validations_on_holder_name_hash ON public.user_credit_card_validations USING btree (holder_name_hash); + + +-- +-- Name: idx_user_credit_card_validations_on_similar_to_meta_data; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_user_credit_card_validations_on_similar_to_meta_data ON public.user_credit_card_validations USING btree (expiration_date_hash, last_digits_hash, network_hash, credit_card_validated_at); + + +-- +-- Name: idx_user_details_on_provisioned_by_group_id_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_user_details_on_provisioned_by_group_id_user_id ON public.user_details USING btree (provisioned_by_group_id, user_id); + + +-- +-- Name: idx_vreg_pkgs_maven_cached_responses_on_relative_path_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_vreg_pkgs_maven_cached_responses_on_relative_path_trigram ON public.virtual_registries_packages_maven_cached_responses USING gin (relative_path public.gin_trgm_ops); + + +-- +-- Name: idx_vregs_pkgs_mvn_cached_resp_on_uniq_upstrm_id_and_rel_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_vregs_pkgs_mvn_cached_resp_on_uniq_upstrm_id_and_rel_path ON public.virtual_registries_packages_maven_cached_responses USING btree (upstream_id, relative_path); + + +-- +-- Name: idx_vuln_reads_for_filtering; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_vuln_reads_for_filtering ON public.vulnerability_reads USING btree (project_id, state, dismissal_reason, severity DESC, vulnerability_id DESC NULLS LAST); + + +-- +-- Name: idx_vuln_signatures_uniqueness_signature_sha; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_vuln_signatures_uniqueness_signature_sha ON public.vulnerability_finding_signatures USING btree (finding_id, algorithm_type, signature_sha); + + +-- +-- Name: idx_vulnerabilities_on_project_id_and_id_active_cis_dft_branch; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_vulnerabilities_on_project_id_and_id_active_cis_dft_branch ON public.vulnerabilities USING btree (project_id, id) WHERE ((report_type = 7) AND (state = ANY (ARRAY[1, 4])) AND (present_on_default_branch IS TRUE)); + + +-- +-- Name: idx_vulnerabilities_partial_devops_adoption_and_default_branch; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_vulnerabilities_partial_devops_adoption_and_default_branch ON public.vulnerabilities USING btree (project_id, created_at, present_on_default_branch) WHERE (state <> 1); + + +-- +-- Name: idx_vulnerability_ext_issue_links_on_vulne_id_and_ext_issue; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_vulnerability_ext_issue_links_on_vulne_id_and_ext_issue ON public.vulnerability_external_issue_links USING btree (vulnerability_id, external_type, external_project_key, external_issue_key); + + +-- +-- Name: idx_vulnerability_ext_issue_links_on_vulne_id_and_link_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_vulnerability_ext_issue_links_on_vulne_id_and_link_type ON public.vulnerability_external_issue_links USING btree (vulnerability_id, link_type) WHERE (link_type = 1); + + +-- +-- Name: idx_vulnerability_issue_links_on_vulnerability_id_and_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_vulnerability_issue_links_on_vulnerability_id_and_issue_id ON public.vulnerability_issue_links USING btree (vulnerability_id, issue_id); + + +-- +-- Name: idx_vulnerability_issue_links_on_vulnerability_id_and_link_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX idx_vulnerability_issue_links_on_vulnerability_id_and_link_type ON public.vulnerability_issue_links USING btree (vulnerability_id, link_type) WHERE (link_type = 2); + + +-- +-- Name: idx_vulnerability_reads_for_traversal_ids_queries_srt_severity; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_vulnerability_reads_for_traversal_ids_queries_srt_severity ON public.vulnerability_reads USING btree (state, report_type, severity, traversal_ids, vulnerability_id) WHERE (archived = false); + + +-- +-- Name: idx_vulnerability_reads_project_id_scanner_id_vulnerability_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX idx_vulnerability_reads_project_id_scanner_id_vulnerability_id ON public.vulnerability_reads USING btree (project_id, scanner_id, vulnerability_id); + + +-- +-- Name: index_p_ci_builds_on_execution_config_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_p_ci_builds_on_execution_config_id ON ONLY public.p_ci_builds USING btree (execution_config_id) WHERE (execution_config_id IS NOT NULL); + + +-- +-- Name: index_0928d9f200; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_0928d9f200 ON public.ci_builds USING btree (execution_config_id) WHERE (execution_config_id IS NOT NULL); + + +-- +-- Name: index_abuse_events_on_abuse_report_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_events_on_abuse_report_id ON public.abuse_events USING btree (abuse_report_id); + + +-- +-- Name: index_abuse_events_on_category_and_source; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_events_on_category_and_source ON public.abuse_events USING btree (category, source); + + +-- +-- Name: index_abuse_events_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_events_on_user_id ON public.abuse_events USING btree (user_id); + + +-- +-- Name: index_abuse_report_assignees_on_abuse_report_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_report_assignees_on_abuse_report_id ON public.abuse_report_assignees USING btree (abuse_report_id); + + +-- +-- Name: index_abuse_report_assignees_on_user_id_and_abuse_report_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_abuse_report_assignees_on_user_id_and_abuse_report_id ON public.abuse_report_assignees USING btree (user_id, abuse_report_id); + + +-- +-- Name: index_abuse_report_events_on_abuse_report_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_report_events_on_abuse_report_id ON public.abuse_report_events USING btree (abuse_report_id); + + +-- +-- Name: index_abuse_report_events_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_report_events_on_user_id ON public.abuse_report_events USING btree (user_id); + + +-- +-- Name: index_abuse_report_notes_on_abuse_report_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_report_notes_on_abuse_report_id ON public.abuse_report_notes USING btree (abuse_report_id); + + +-- +-- Name: index_abuse_report_notes_on_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_report_notes_on_author_id ON public.abuse_report_notes USING btree (author_id); + + +-- +-- Name: index_abuse_report_notes_on_resolved_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_report_notes_on_resolved_by_id ON public.abuse_report_notes USING btree (resolved_by_id); + + +-- +-- Name: index_abuse_report_notes_on_updated_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_report_notes_on_updated_by_id ON public.abuse_report_notes USING btree (updated_by_id); + + +-- +-- Name: index_abuse_report_user_mentions_on_abuse_report_id_and_note_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_abuse_report_user_mentions_on_abuse_report_id_and_note_id ON public.abuse_report_user_mentions USING btree (abuse_report_id, note_id); + + +-- +-- Name: index_abuse_report_user_mentions_on_note_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_report_user_mentions_on_note_id ON public.abuse_report_user_mentions USING btree (note_id); + + +-- +-- Name: index_abuse_reports_on_assignee_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_reports_on_assignee_id ON public.abuse_reports USING btree (assignee_id); + + +-- +-- Name: index_abuse_reports_on_resolved_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_reports_on_resolved_by_id ON public.abuse_reports USING btree (resolved_by_id); + + +-- +-- Name: index_abuse_reports_on_status_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_reports_on_status_and_created_at ON public.abuse_reports USING btree (status, created_at); + + +-- +-- Name: index_abuse_reports_on_status_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_reports_on_status_and_id ON public.abuse_reports USING btree (status, id); + + +-- +-- Name: index_abuse_reports_on_status_and_updated_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_reports_on_status_and_updated_at ON public.abuse_reports USING btree (status, updated_at); + + +-- +-- Name: index_abuse_reports_on_status_category_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_reports_on_status_category_and_id ON public.abuse_reports USING btree (status, category, id); + + +-- +-- Name: index_abuse_reports_on_status_reporter_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_reports_on_status_reporter_id_and_id ON public.abuse_reports USING btree (status, reporter_id, id); + + +-- +-- Name: index_abuse_trust_scores_on_user_id_and_source_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_abuse_trust_scores_on_user_id_and_source_and_created_at ON public.abuse_trust_scores USING btree (user_id, source, created_at); + + +-- +-- Name: index_achievements_on_namespace_id_LOWER_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX "index_achievements_on_namespace_id_LOWER_name" ON public.achievements USING btree (namespace_id, lower(name)); + + +-- +-- Name: index_activity_pub_releases_sub_on_project_id_inbox_url; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_activity_pub_releases_sub_on_project_id_inbox_url ON public.activity_pub_releases_subscriptions USING btree (project_id, lower(subscriber_inbox_url)); + + +-- +-- Name: index_activity_pub_releases_sub_on_project_id_sub_url; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_activity_pub_releases_sub_on_project_id_sub_url ON public.activity_pub_releases_subscriptions USING btree (project_id, lower(subscriber_url)); + + +-- +-- Name: index_add_on_purchases_on_organization_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_add_on_purchases_on_organization_id ON public.subscription_add_on_purchases USING btree (organization_id); + + +-- +-- Name: index_agent_activity_events_on_agent_id_and_recorded_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_agent_activity_events_on_agent_id_and_recorded_at_and_id ON public.agent_activity_events USING btree (agent_id, recorded_at, id); + + +-- +-- Name: index_agent_activity_events_on_agent_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_agent_activity_events_on_agent_project_id ON public.agent_activity_events USING btree (agent_project_id); + + +-- +-- Name: index_agent_activity_events_on_agent_token_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_agent_activity_events_on_agent_token_id ON public.agent_activity_events USING btree (agent_token_id) WHERE (agent_token_id IS NOT NULL); + + +-- +-- Name: index_agent_activity_events_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_agent_activity_events_on_merge_request_id ON public.agent_activity_events USING btree (merge_request_id) WHERE (merge_request_id IS NOT NULL); + + +-- +-- Name: index_agent_activity_events_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_agent_activity_events_on_project_id ON public.agent_activity_events USING btree (project_id) WHERE (project_id IS NOT NULL); + + +-- +-- Name: index_agent_activity_events_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_agent_activity_events_on_user_id ON public.agent_activity_events USING btree (user_id) WHERE (user_id IS NOT NULL); + + +-- +-- Name: index_agent_group_authorizations_on_agent_id_and_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_agent_group_authorizations_on_agent_id_and_group_id ON public.agent_group_authorizations USING btree (agent_id, group_id); + + +-- +-- Name: index_agent_group_authorizations_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_agent_group_authorizations_on_group_id ON public.agent_group_authorizations USING btree (group_id); + + +-- +-- Name: index_agent_project_authorizations_on_agent_id_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_agent_project_authorizations_on_agent_id_and_project_id ON public.agent_project_authorizations USING btree (agent_id, project_id); + + +-- +-- Name: index_agent_project_authorizations_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_agent_project_authorizations_on_project_id ON public.agent_project_authorizations USING btree (project_id); + + +-- +-- Name: index_agent_user_access_on_agent_id_and_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_agent_user_access_on_agent_id_and_group_id ON public.agent_user_access_group_authorizations USING btree (agent_id, group_id); + + +-- +-- Name: index_agent_user_access_on_agent_id_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_agent_user_access_on_agent_id_and_project_id ON public.agent_user_access_project_authorizations USING btree (agent_id, project_id); + + +-- +-- Name: index_agent_user_access_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_agent_user_access_on_group_id ON public.agent_user_access_group_authorizations USING btree (group_id); + + +-- +-- Name: index_agent_user_access_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_agent_user_access_on_project_id ON public.agent_user_access_project_authorizations USING btree (project_id); + + +-- +-- Name: index_ai_agent_version_attachments_on_ai_agent_version_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ai_agent_version_attachments_on_ai_agent_version_id ON public.ai_agent_version_attachments USING btree (ai_agent_version_id); + + +-- +-- Name: index_ai_agent_version_attachments_on_ai_vectorizable_file_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ai_agent_version_attachments_on_ai_vectorizable_file_id ON public.ai_agent_version_attachments USING btree (ai_vectorizable_file_id); + + +-- +-- Name: index_ai_agent_version_attachments_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ai_agent_version_attachments_on_project_id ON public.ai_agent_version_attachments USING btree (project_id); + + +-- +-- Name: index_ai_agent_versions_on_agent_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ai_agent_versions_on_agent_id ON public.ai_agent_versions USING btree (agent_id); + + +-- +-- Name: index_ai_agent_versions_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ai_agent_versions_on_project_id ON public.ai_agent_versions USING btree (project_id); + + +-- +-- Name: index_ai_agents_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ai_agents_on_project_id_and_name ON public.ai_agents USING btree (project_id, name); + + +-- +-- Name: index_ai_feature_settings_on_ai_self_hosted_model_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ai_feature_settings_on_ai_self_hosted_model_id ON public.ai_feature_settings USING btree (ai_self_hosted_model_id); + + +-- +-- Name: index_ai_feature_settings_on_feature; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ai_feature_settings_on_feature ON public.ai_feature_settings USING btree (feature); + + +-- +-- Name: index_ai_self_hosted_models_on_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ai_self_hosted_models_on_name ON public.ai_self_hosted_models USING btree (name); + + +-- +-- Name: index_ai_vectorizable_files_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ai_vectorizable_files_on_project_id ON public.ai_vectorizable_files USING btree (project_id); + + +-- +-- Name: index_alert_assignees_on_alert_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_alert_assignees_on_alert_id ON public.alert_management_alert_assignees USING btree (alert_id); + + +-- +-- Name: index_alert_assignees_on_user_id_and_alert_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_alert_assignees_on_user_id_and_alert_id ON public.alert_management_alert_assignees USING btree (user_id, alert_id); + + +-- +-- Name: index_alert_management_alert_metric_images_on_alert_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_alert_management_alert_metric_images_on_alert_id ON public.alert_management_alert_metric_images USING btree (alert_id); + + +-- +-- Name: index_alert_management_alerts_on_domain; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_alert_management_alerts_on_domain ON public.alert_management_alerts USING btree (domain); + + +-- +-- Name: index_alert_management_alerts_on_environment_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_alert_management_alerts_on_environment_id ON public.alert_management_alerts USING btree (environment_id) WHERE (environment_id IS NOT NULL); + + +-- +-- Name: index_alert_management_alerts_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_alert_management_alerts_on_issue_id ON public.alert_management_alerts USING btree (issue_id); + + +-- +-- Name: index_alert_management_alerts_on_project_id_and_iid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_alert_management_alerts_on_project_id_and_iid ON public.alert_management_alerts USING btree (project_id, iid); + + +-- +-- Name: index_alert_management_alerts_on_prometheus_alert_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_alert_management_alerts_on_prometheus_alert_id ON public.alert_management_alerts USING btree (prometheus_alert_id) WHERE (prometheus_alert_id IS NOT NULL); + + +-- +-- Name: index_alert_user_mentions_on_alert_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_alert_user_mentions_on_alert_id ON public.alert_management_alert_user_mentions USING btree (alert_management_alert_id) WHERE (note_id IS NULL); + + +-- +-- Name: index_alert_user_mentions_on_alert_id_and_note_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_alert_user_mentions_on_alert_id_and_note_id ON public.alert_management_alert_user_mentions USING btree (alert_management_alert_id, note_id); + + +-- +-- Name: index_alert_user_mentions_on_note_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_alert_user_mentions_on_note_id ON public.alert_management_alert_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); + + +-- +-- Name: index_allowed_email_domains_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_allowed_email_domains_on_group_id ON public.allowed_email_domains USING btree (group_id); + + +-- +-- Name: index_analytics_ca_group_stages_on_end_event_label_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_analytics_ca_group_stages_on_end_event_label_id ON public.analytics_cycle_analytics_group_stages USING btree (end_event_label_id); + + +-- +-- Name: index_analytics_ca_group_stages_on_relative_position; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_analytics_ca_group_stages_on_relative_position ON public.analytics_cycle_analytics_group_stages USING btree (relative_position); + + +-- +-- Name: index_analytics_ca_group_stages_on_start_event_label_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_analytics_ca_group_stages_on_start_event_label_id ON public.analytics_cycle_analytics_group_stages USING btree (start_event_label_id); + + +-- +-- Name: index_analytics_ca_group_stages_on_value_stream_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_analytics_ca_group_stages_on_value_stream_id ON public.analytics_cycle_analytics_group_stages USING btree (group_value_stream_id); + + +-- +-- Name: index_analytics_ca_group_value_streams_on_group_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_analytics_ca_group_value_streams_on_group_id_and_name ON public.analytics_cycle_analytics_group_value_streams USING btree (group_id, name); + + +-- +-- Name: index_analytics_cycle_analytics_group_stages_custom_only; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_analytics_cycle_analytics_group_stages_custom_only ON public.analytics_cycle_analytics_group_stages USING btree (id) WHERE (custom = true); + + +-- +-- Name: index_analytics_dashboards_pointers_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_analytics_dashboards_pointers_on_namespace_id ON public.analytics_dashboards_pointers USING btree (namespace_id); + + +-- +-- Name: index_analytics_dashboards_pointers_on_target_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_analytics_dashboards_pointers_on_target_project_id ON public.analytics_dashboards_pointers USING btree (target_project_id); + + +-- +-- Name: index_application_settings_on_custom_project_templates_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_application_settings_on_custom_project_templates_group_id ON public.application_settings USING btree (custom_project_templates_group_id); + + +-- +-- Name: index_application_settings_on_file_template_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_application_settings_on_file_template_project_id ON public.application_settings USING btree (file_template_project_id); + + +-- +-- Name: index_application_settings_on_push_rule_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_application_settings_on_push_rule_id ON public.application_settings USING btree (push_rule_id); + + +-- +-- Name: index_application_settings_on_usage_stats_set_by_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_application_settings_on_usage_stats_set_by_user_id ON public.application_settings USING btree (usage_stats_set_by_user_id); + + +-- +-- Name: index_application_settings_web_ide_oauth_application_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_application_settings_web_ide_oauth_application_id ON public.application_settings USING btree (web_ide_oauth_application_id); + + +-- +-- Name: index_approval_group_rules_groups_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_group_rules_groups_on_group_id ON public.approval_group_rules_groups USING btree (group_id); + + +-- +-- Name: index_approval_group_rules_on_approval_policy_rule_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_group_rules_on_approval_policy_rule_id ON public.approval_group_rules USING btree (approval_policy_rule_id); + + +-- +-- Name: index_approval_group_rules_on_scan_result_policy_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_group_rules_on_scan_result_policy_id ON public.approval_group_rules USING btree (scan_result_policy_id); + + +-- +-- Name: index_approval_group_rules_protected_branches_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_group_rules_protected_branches_on_group_id ON public.approval_group_rules_protected_branches USING btree (group_id); + + +-- +-- Name: index_approval_group_rules_users_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_group_rules_users_on_group_id ON public.approval_group_rules_users USING btree (group_id); + + +-- +-- Name: index_approval_group_rules_users_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_group_rules_users_on_user_id ON public.approval_group_rules_users USING btree (user_id); + + +-- +-- Name: index_approval_merge_request_rule_sources_1; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_approval_merge_request_rule_sources_1 ON public.approval_merge_request_rule_sources USING btree (approval_merge_request_rule_id); + + +-- +-- Name: index_approval_merge_request_rule_sources_2; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_merge_request_rule_sources_2 ON public.approval_merge_request_rule_sources USING btree (approval_project_rule_id); + + +-- +-- Name: index_approval_merge_request_rule_sources_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_merge_request_rule_sources_on_project_id ON public.approval_merge_request_rule_sources USING btree (project_id); + + +-- +-- Name: index_approval_merge_request_rules_approved_approvers_1; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_approval_merge_request_rules_approved_approvers_1 ON public.approval_merge_request_rules_approved_approvers USING btree (approval_merge_request_rule_id, user_id); + + +-- +-- Name: index_approval_merge_request_rules_approved_approvers_2; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_merge_request_rules_approved_approvers_2 ON public.approval_merge_request_rules_approved_approvers USING btree (user_id); + + +-- +-- Name: index_approval_merge_request_rules_groups_1; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_approval_merge_request_rules_groups_1 ON public.approval_merge_request_rules_groups USING btree (approval_merge_request_rule_id, group_id); + + +-- +-- Name: index_approval_merge_request_rules_groups_2; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_merge_request_rules_groups_2 ON public.approval_merge_request_rules_groups USING btree (group_id); + + +-- +-- Name: index_approval_merge_request_rules_on_approval_policy_rule_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_merge_request_rules_on_approval_policy_rule_id ON public.approval_merge_request_rules USING btree (approval_policy_rule_id); + + +-- +-- Name: index_approval_merge_request_rules_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_merge_request_rules_on_project_id ON public.approval_merge_request_rules USING btree (project_id); + + +-- +-- Name: index_approval_merge_request_rules_users_1; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_approval_merge_request_rules_users_1 ON public.approval_merge_request_rules_users USING btree (approval_merge_request_rule_id, user_id); + + +-- +-- Name: index_approval_merge_request_rules_users_2; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_merge_request_rules_users_2 ON public.approval_merge_request_rules_users USING btree (user_id); + + +-- +-- Name: index_approval_policy_rule_on_project_and_rule; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_approval_policy_rule_on_project_and_rule ON public.approval_policy_rule_project_links USING btree (approval_policy_rule_id, project_id); + + +-- +-- Name: index_approval_policy_rule_project_links_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_policy_rule_project_links_on_project_id ON public.approval_policy_rule_project_links USING btree (project_id); + + +-- +-- Name: index_approval_policy_rules_on_policy_management_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_policy_rules_on_policy_management_project_id ON public.approval_policy_rules USING btree (security_policy_management_project_id); + + +-- +-- Name: index_approval_policy_rules_on_unique_policy_rule_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_approval_policy_rules_on_unique_policy_rule_index ON public.approval_policy_rules USING btree (security_policy_id, rule_index); + + +-- +-- Name: index_approval_project_rules_groups_1; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_approval_project_rules_groups_1 ON public.approval_project_rules_groups USING btree (approval_project_rule_id, group_id); + + +-- +-- Name: index_approval_project_rules_groups_2; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_project_rules_groups_2 ON public.approval_project_rules_groups USING btree (group_id); + + +-- +-- Name: index_approval_project_rules_on_approval_policy_rule_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_project_rules_on_approval_policy_rule_id ON public.approval_project_rules USING btree (approval_policy_rule_id); + + +-- +-- Name: index_approval_project_rules_on_id_with_regular_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_project_rules_on_id_with_regular_type ON public.approval_project_rules USING btree (id) WHERE (rule_type = 0); + + +-- +-- Name: index_approval_project_rules_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_project_rules_on_project_id ON public.approval_project_rules USING btree (project_id); + + +-- +-- Name: index_approval_project_rules_on_rule_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_project_rules_on_rule_type ON public.approval_project_rules USING btree (rule_type); + + +-- +-- Name: index_approval_project_rules_protected_branches_pb_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_project_rules_protected_branches_pb_id ON public.approval_project_rules_protected_branches USING btree (protected_branch_id); + + +-- +-- Name: index_approval_project_rules_report_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_project_rules_report_type ON public.approval_project_rules USING btree (report_type); + + +-- +-- Name: index_approval_project_rules_users_1; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_approval_project_rules_users_1 ON public.approval_project_rules_users USING btree (approval_project_rule_id, user_id); + + +-- +-- Name: index_approval_project_rules_users_2; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_project_rules_users_2 ON public.approval_project_rules_users USING btree (user_id); + + +-- +-- Name: index_approval_project_rules_users_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_project_rules_users_on_project_id ON public.approval_project_rules_users USING btree (project_id); + + +-- +-- Name: index_approval_rule_name_for_code_owners_rule_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_approval_rule_name_for_code_owners_rule_type ON public.approval_merge_request_rules USING btree (merge_request_id, name) WHERE ((rule_type = 2) AND (section IS NULL)); + + +-- +-- Name: index_approval_rule_name_for_sectional_code_owners_rule_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_approval_rule_name_for_sectional_code_owners_rule_type ON public.approval_merge_request_rules USING btree (merge_request_id, name, section) WHERE (rule_type = 2); + + +-- +-- Name: index_approval_rule_on_protected_environment_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_rule_on_protected_environment_id ON public.protected_environment_approval_rules USING btree (protected_environment_id); + + +-- +-- Name: index_approval_rules_code_owners_rule_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approval_rules_code_owners_rule_type ON public.approval_merge_request_rules USING btree (merge_request_id) WHERE (rule_type = 2); + + +-- +-- Name: index_approvals_on_merge_request_id_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approvals_on_merge_request_id_and_created_at ON public.approvals USING btree (merge_request_id, created_at); + + +-- +-- Name: index_approvals_on_user_id_and_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_approvals_on_user_id_and_merge_request_id ON public.approvals USING btree (user_id, merge_request_id); + + +-- +-- Name: index_approver_groups_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approver_groups_on_group_id ON public.approver_groups USING btree (group_id); + + +-- +-- Name: index_approver_groups_on_target_id_and_target_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approver_groups_on_target_id_and_target_type ON public.approver_groups USING btree (target_id, target_type); + + +-- +-- Name: index_approvers_on_target_id_and_target_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approvers_on_target_id_and_target_type ON public.approvers USING btree (target_id, target_type); + + +-- +-- Name: index_approvers_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_approvers_on_user_id ON public.approvers USING btree (user_id); + + +-- +-- Name: index_atlassian_identities_on_extern_uid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_atlassian_identities_on_extern_uid ON public.atlassian_identities USING btree (extern_uid); + + +-- +-- Name: index_audit_events_external_audit_on_verification_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_audit_events_external_audit_on_verification_token ON public.audit_events_external_audit_event_destinations USING btree (verification_token); + + +-- +-- Name: index_audit_events_instance_namespace_filters_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_audit_events_instance_namespace_filters_on_namespace_id ON public.audit_events_streaming_http_instance_namespace_filters USING btree (namespace_id); + + +-- +-- Name: index_audit_events_on_entity_id_and_entity_type_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_audit_events_on_entity_id_and_entity_type_and_created_at ON ONLY public.audit_events USING btree (entity_id, entity_type, created_at, id); + + +-- +-- Name: index_audit_events_streaming_event_type_filters_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_audit_events_streaming_event_type_filters_on_group_id ON public.audit_events_streaming_event_type_filters USING btree (group_id); + + +-- +-- Name: index_audit_events_streaming_headers_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_audit_events_streaming_headers_on_group_id ON public.audit_events_streaming_headers USING btree (group_id); + + +-- +-- Name: index_authentication_events_on_provider; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_authentication_events_on_provider ON public.authentication_events USING btree (provider); + + +-- +-- Name: index_authentication_events_on_user_and_ip_address_and_result; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_authentication_events_on_user_and_ip_address_and_result ON public.authentication_events USING btree (user_id, ip_address, result); + + +-- +-- Name: index_automation_rules_namespace_id_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_automation_rules_namespace_id_name ON public.automation_rules USING btree (namespace_id, lower(name)); + + +-- +-- Name: index_automation_rules_namespace_id_permanently_disabled; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_automation_rules_namespace_id_permanently_disabled ON public.automation_rules USING btree (namespace_id, permanently_disabled); + + +-- +-- Name: index_award_emoji_on_awardable_type_and_awardable_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_award_emoji_on_awardable_type_and_awardable_id ON public.award_emoji USING btree (awardable_type, awardable_id); + + +-- +-- Name: index_aws_roles_on_role_external_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_aws_roles_on_role_external_id ON public.aws_roles USING btree (role_external_id); + + +-- +-- Name: index_aws_roles_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_aws_roles_on_user_id ON public.aws_roles USING btree (user_id); + + +-- +-- Name: index_background_migration_jobs_for_partitioning_migrations; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_background_migration_jobs_for_partitioning_migrations ON public.background_migration_jobs USING btree (((arguments ->> 2))) WHERE (class_name = 'Gitlab::Database::PartitioningMigrationHelpers::BackfillPartitionedTable'::text); + + +-- +-- Name: index_background_migration_jobs_on_class_name_and_arguments; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_background_migration_jobs_on_class_name_and_arguments ON public.background_migration_jobs USING btree (class_name, arguments); + + +-- +-- Name: index_background_migration_jobs_on_class_name_and_status_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_background_migration_jobs_on_class_name_and_status_and_id ON public.background_migration_jobs USING btree (class_name, status, id); + + +-- +-- Name: index_badges_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_badges_on_group_id ON public.badges USING btree (group_id); + + +-- +-- Name: index_badges_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_badges_on_project_id ON public.badges USING btree (project_id); + + +-- +-- Name: index_batch_trackers_on_tracker_id_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_batch_trackers_on_tracker_id_status ON public.bulk_import_batch_trackers USING btree (tracker_id, status); + + +-- +-- Name: index_batched_background_migrations_on_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_batched_background_migrations_on_status ON public.batched_background_migrations USING btree (status); + + +-- +-- Name: index_batched_background_migrations_on_unique_configuration; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_batched_background_migrations_on_unique_configuration ON public.batched_background_migrations USING btree (job_class_name, table_name, column_name, job_arguments); + + +-- +-- Name: index_batched_jobs_by_batched_migration_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_batched_jobs_by_batched_migration_id_and_id ON public.batched_background_migration_jobs USING btree (batched_background_migration_id, id); + + +-- +-- Name: index_batched_jobs_on_batched_migration_id_and_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_batched_jobs_on_batched_migration_id_and_status ON public.batched_background_migration_jobs USING btree (batched_background_migration_id, status); + + +-- +-- Name: index_batched_migrations_on_gl_schema_and_unique_configuration; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_batched_migrations_on_gl_schema_and_unique_configuration ON public.batched_background_migrations USING btree (gitlab_schema, job_class_name, table_name, column_name, job_arguments); + + +-- +-- Name: index_board_assignees_on_assignee_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_board_assignees_on_assignee_id ON public.board_assignees USING btree (assignee_id); + + +-- +-- Name: index_board_assignees_on_board_id_and_assignee_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_board_assignees_on_board_id_and_assignee_id ON public.board_assignees USING btree (board_id, assignee_id); + + +-- +-- Name: index_board_group_recent_visits_on_board_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_board_group_recent_visits_on_board_id ON public.board_group_recent_visits USING btree (board_id); + + +-- +-- Name: index_board_group_recent_visits_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_board_group_recent_visits_on_group_id ON public.board_group_recent_visits USING btree (group_id); + + +-- +-- Name: index_board_group_recent_visits_on_user_group_and_board; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_board_group_recent_visits_on_user_group_and_board ON public.board_group_recent_visits USING btree (user_id, group_id, board_id); + + +-- +-- Name: index_board_labels_on_board_id_and_label_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_board_labels_on_board_id_and_label_id ON public.board_labels USING btree (board_id, label_id); + + +-- +-- Name: index_board_labels_on_label_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_board_labels_on_label_id ON public.board_labels USING btree (label_id); + + +-- +-- Name: index_board_project_recent_visits_on_board_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_board_project_recent_visits_on_board_id ON public.board_project_recent_visits USING btree (board_id); + + +-- +-- Name: index_board_project_recent_visits_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_board_project_recent_visits_on_project_id ON public.board_project_recent_visits USING btree (project_id); + + +-- +-- Name: index_board_project_recent_visits_on_user_project_and_board; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_board_project_recent_visits_on_user_project_and_board ON public.board_project_recent_visits USING btree (user_id, project_id, board_id); + + +-- +-- Name: index_board_user_preferences_on_board_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_board_user_preferences_on_board_id ON public.board_user_preferences USING btree (board_id); + + +-- +-- Name: index_board_user_preferences_on_user_id_and_board_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_board_user_preferences_on_user_id_and_board_id ON public.board_user_preferences USING btree (user_id, board_id); + + +-- +-- Name: index_boards_epic_board_labels_on_epic_board_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_epic_board_labels_on_epic_board_id ON public.boards_epic_board_labels USING btree (epic_board_id); + + +-- +-- Name: index_boards_epic_board_labels_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_epic_board_labels_on_group_id ON public.boards_epic_board_labels USING btree (group_id); + + +-- +-- Name: index_boards_epic_board_labels_on_label_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_epic_board_labels_on_label_id ON public.boards_epic_board_labels USING btree (label_id); + + +-- +-- Name: index_boards_epic_board_positions_on_epic_board_id_and_epic_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_boards_epic_board_positions_on_epic_board_id_and_epic_id ON public.boards_epic_board_positions USING btree (epic_board_id, epic_id); + + +-- +-- Name: index_boards_epic_board_positions_on_epic_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_epic_board_positions_on_epic_id ON public.boards_epic_board_positions USING btree (epic_id); + + +-- +-- Name: index_boards_epic_board_positions_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_epic_board_positions_on_group_id ON public.boards_epic_board_positions USING btree (group_id); + + +-- +-- Name: index_boards_epic_board_positions_on_scoped_relative_position; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_epic_board_positions_on_scoped_relative_position ON public.boards_epic_board_positions USING btree (epic_board_id, epic_id, relative_position); + + +-- +-- Name: index_boards_epic_board_recent_visits_on_epic_board_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_epic_board_recent_visits_on_epic_board_id ON public.boards_epic_board_recent_visits USING btree (epic_board_id); + + +-- +-- Name: index_boards_epic_board_recent_visits_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_epic_board_recent_visits_on_group_id ON public.boards_epic_board_recent_visits USING btree (group_id); + + +-- +-- Name: index_boards_epic_boards_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_epic_boards_on_group_id ON public.boards_epic_boards USING btree (group_id); + + +-- +-- Name: index_boards_epic_list_user_preferences_on_epic_list_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_epic_list_user_preferences_on_epic_list_id ON public.boards_epic_list_user_preferences USING btree (epic_list_id); + + +-- +-- Name: index_boards_epic_lists_on_epic_board_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_epic_lists_on_epic_board_id ON public.boards_epic_lists USING btree (epic_board_id); + + +-- +-- Name: index_boards_epic_lists_on_epic_board_id_and_label_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_boards_epic_lists_on_epic_board_id_and_label_id ON public.boards_epic_lists USING btree (epic_board_id, label_id) WHERE (list_type = 1); + + +-- +-- Name: index_boards_epic_lists_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_epic_lists_on_group_id ON public.boards_epic_lists USING btree (group_id); + + +-- +-- Name: index_boards_epic_lists_on_label_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_epic_lists_on_label_id ON public.boards_epic_lists USING btree (label_id); + + +-- +-- Name: index_boards_epic_user_preferences_on_board_user_epic_unique; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_boards_epic_user_preferences_on_board_user_epic_unique ON public.boards_epic_user_preferences USING btree (board_id, user_id, epic_id); + + +-- +-- Name: index_boards_epic_user_preferences_on_epic_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_epic_user_preferences_on_epic_id ON public.boards_epic_user_preferences USING btree (epic_id); + + +-- +-- Name: index_boards_epic_user_preferences_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_epic_user_preferences_on_group_id ON public.boards_epic_user_preferences USING btree (group_id); + + +-- +-- Name: index_boards_epic_user_preferences_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_epic_user_preferences_on_user_id ON public.boards_epic_user_preferences USING btree (user_id); + + +-- +-- Name: index_boards_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_on_group_id ON public.boards USING btree (group_id); + + +-- +-- Name: index_boards_on_iteration_cadence_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_on_iteration_cadence_id ON public.boards USING btree (iteration_cadence_id); + + +-- +-- Name: index_boards_on_iteration_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_on_iteration_id ON public.boards USING btree (iteration_id); + + +-- +-- Name: index_boards_on_milestone_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_on_milestone_id ON public.boards USING btree (milestone_id); + + +-- +-- Name: index_boards_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_boards_on_project_id ON public.boards USING btree (project_id); + + +-- +-- Name: index_broadcast_dismissals_on_user_id_and_broadcast_message_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_broadcast_dismissals_on_user_id_and_broadcast_message_id ON public.user_broadcast_message_dismissals USING btree (user_id, broadcast_message_id); + + +-- +-- Name: index_broadcast_message_on_ends_at_and_broadcast_type_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_broadcast_message_on_ends_at_and_broadcast_type_and_id ON public.broadcast_messages USING btree (ends_at, broadcast_type, id); + + +-- +-- Name: index_bulk_import_batch_trackers_on_tracker_id_and_updated_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_bulk_import_batch_trackers_on_tracker_id_and_updated_at ON public.bulk_import_batch_trackers USING btree (tracker_id, updated_at); + + +-- +-- Name: index_bulk_import_configurations_on_bulk_import_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_bulk_import_configurations_on_bulk_import_id ON public.bulk_import_configurations USING btree (bulk_import_id); + + +-- +-- Name: index_bulk_import_entities_for_stale_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_bulk_import_entities_for_stale_status ON public.bulk_import_entities USING btree (updated_at, id) WHERE (status = ANY (ARRAY[0, 1])); + + +-- +-- Name: index_bulk_import_entities_on_bulk_import_id_and_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_bulk_import_entities_on_bulk_import_id_and_status ON public.bulk_import_entities USING btree (bulk_import_id, status); + + +-- +-- Name: index_bulk_import_entities_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_bulk_import_entities_on_namespace_id ON public.bulk_import_entities USING btree (namespace_id); + + +-- +-- Name: index_bulk_import_entities_on_parent_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_bulk_import_entities_on_parent_id ON public.bulk_import_entities USING btree (parent_id); + + +-- +-- Name: index_bulk_import_entities_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_bulk_import_entities_on_project_id ON public.bulk_import_entities USING btree (project_id); + + +-- +-- Name: index_bulk_import_export_uploads_on_export_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_bulk_import_export_uploads_on_export_id ON public.bulk_import_export_uploads USING btree (export_id); + + +-- +-- Name: index_bulk_import_exports_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_bulk_import_exports_on_group_id ON public.bulk_import_exports USING btree (group_id); + + +-- +-- Name: index_bulk_import_exports_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_bulk_import_exports_on_project_id ON public.bulk_import_exports USING btree (project_id); + + +-- +-- Name: index_bulk_import_exports_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_bulk_import_exports_on_user_id ON public.bulk_import_exports USING btree (user_id); + + +-- +-- Name: index_bulk_import_failures_on_bulk_import_entity_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_bulk_import_failures_on_bulk_import_entity_id ON public.bulk_import_failures USING btree (bulk_import_entity_id); + + +-- +-- Name: index_bulk_import_failures_on_correlation_id_value; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_bulk_import_failures_on_correlation_id_value ON public.bulk_import_failures USING btree (correlation_id_value); + + +-- +-- Name: index_bulk_imports_on_updated_at_and_id_for_stale_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_bulk_imports_on_updated_at_and_id_for_stale_status ON public.bulk_imports USING btree (updated_at, id) WHERE (status = ANY (ARRAY[0, 1])); + + +-- +-- Name: index_bulk_imports_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_bulk_imports_on_user_id ON public.bulk_imports USING btree (user_id); + + +-- +-- Name: index_catalog_resource_components_on_catalog_resource_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_catalog_resource_components_on_catalog_resource_id ON public.catalog_resource_components USING btree (catalog_resource_id); + + +-- +-- Name: index_catalog_resource_components_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_catalog_resource_components_on_project_id ON public.catalog_resource_components USING btree (project_id); + + +-- +-- Name: index_catalog_resource_components_on_version_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_catalog_resource_components_on_version_id ON public.catalog_resource_components USING btree (version_id); + + +-- +-- Name: index_catalog_resource_versions_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_catalog_resource_versions_on_project_id ON public.catalog_resource_versions USING btree (project_id); + + +-- +-- Name: index_catalog_resource_versions_on_published_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_catalog_resource_versions_on_published_by_id ON public.catalog_resource_versions USING btree (published_by_id); + + +-- +-- Name: index_catalog_resource_versions_on_release_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_catalog_resource_versions_on_release_id ON public.catalog_resource_versions USING btree (release_id); + + +-- +-- Name: index_catalog_resource_versions_on_resource_id_and_released_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_catalog_resource_versions_on_resource_id_and_released_at ON public.catalog_resource_versions USING btree (catalog_resource_id, released_at); + + +-- +-- Name: index_catalog_resources_on_last_30_day_usage_count; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_catalog_resources_on_last_30_day_usage_count ON public.catalog_resources USING btree (last_30_day_usage_count) WHERE (state = 1); + + +-- +-- Name: index_catalog_resources_on_last_30_day_usage_count_updated_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_catalog_resources_on_last_30_day_usage_count_updated_at ON public.catalog_resources USING btree (last_30_day_usage_count_updated_at); + + +-- +-- Name: index_catalog_resources_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_catalog_resources_on_project_id ON public.catalog_resources USING btree (project_id); + + +-- +-- Name: index_catalog_resources_on_search_vector; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_catalog_resources_on_search_vector ON public.catalog_resources USING gin (search_vector); + + +-- +-- Name: index_catalog_resources_on_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_catalog_resources_on_state ON public.catalog_resources USING btree (state); + + +-- +-- Name: index_catalog_verified_namespaces_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_catalog_verified_namespaces_on_namespace_id ON public.catalog_verified_namespaces USING btree (namespace_id); + + +-- +-- Name: index_chat_names_on_team_id_and_chat_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_chat_names_on_team_id_and_chat_id ON public.chat_names USING btree (team_id, chat_id); + + +-- +-- Name: index_chat_names_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_chat_names_on_user_id ON public.chat_names USING btree (user_id); + + +-- +-- Name: index_chat_teams_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_chat_teams_on_namespace_id ON public.chat_teams USING btree (namespace_id); + + +-- +-- Name: index_ci_build_needs_on_build_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_build_needs_on_build_id_and_name ON public.ci_build_needs USING btree (build_id, name); + + +-- +-- Name: index_ci_build_needs_on_partition_id_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_build_needs_on_partition_id_build_id ON public.ci_build_needs USING btree (partition_id, build_id); + + +-- +-- Name: index_ci_build_pending_states_on_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_build_pending_states_on_build_id ON public.ci_build_pending_states USING btree (build_id); + + +-- +-- Name: index_ci_build_report_results_on_partition_id_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_build_report_results_on_partition_id_build_id ON public.ci_build_report_results USING btree (partition_id, build_id); + + +-- +-- Name: index_ci_build_report_results_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_build_report_results_on_project_id ON public.ci_build_report_results USING btree (project_id); + + +-- +-- Name: index_ci_build_trace_chunks_on_build_id_and_chunk_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_build_trace_chunks_on_build_id_and_chunk_index ON public.ci_build_trace_chunks USING btree (build_id, chunk_index); + + +-- +-- Name: index_ci_build_trace_chunks_on_partition_id_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_build_trace_chunks_on_partition_id_build_id ON public.ci_build_trace_chunks USING btree (partition_id, build_id); + + +-- +-- Name: p_ci_builds_metadata_build_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_metadata_build_id_idx ON ONLY public.p_ci_builds_metadata USING btree (build_id) WHERE (has_exposed_artifacts IS TRUE); + + +-- +-- Name: index_ci_builds_metadata_on_build_id_and_has_exposed_artifacts; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_metadata_on_build_id_and_has_exposed_artifacts ON public.ci_builds_metadata USING btree (build_id) WHERE (has_exposed_artifacts IS TRUE); + + +-- +-- Name: p_ci_builds_metadata_build_id_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_metadata_build_id_id_idx ON ONLY public.p_ci_builds_metadata USING btree (build_id) INCLUDE (id) WHERE (interruptible = true); + + +-- +-- Name: index_ci_builds_metadata_on_build_id_and_id_and_interruptible; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_metadata_on_build_id_and_id_and_interruptible ON public.ci_builds_metadata USING btree (build_id) INCLUDE (id) WHERE (interruptible = true); + + +-- +-- Name: p_ci_builds_metadata_build_id_partition_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX p_ci_builds_metadata_build_id_partition_id_idx ON ONLY public.p_ci_builds_metadata USING btree (build_id, partition_id); + + +-- +-- Name: index_ci_builds_metadata_on_build_id_partition_id_unique; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_builds_metadata_on_build_id_partition_id_unique ON public.ci_builds_metadata USING btree (build_id, partition_id); + + +-- +-- Name: p_ci_builds_metadata_project_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_metadata_project_id_idx ON ONLY public.p_ci_builds_metadata USING btree (project_id); + + +-- +-- Name: index_ci_builds_metadata_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_metadata_on_project_id ON public.ci_builds_metadata USING btree (project_id); + + +-- +-- Name: p_ci_builds_auto_canceled_by_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_auto_canceled_by_id_idx ON ONLY public.p_ci_builds USING btree (auto_canceled_by_id) WHERE (auto_canceled_by_id IS NOT NULL); + + +-- +-- Name: index_ci_builds_on_auto_canceled_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_on_auto_canceled_by_id ON public.ci_builds USING btree (auto_canceled_by_id) WHERE (auto_canceled_by_id IS NOT NULL); + + +-- +-- Name: p_ci_builds_commit_id_stage_idx_created_at_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_commit_id_stage_idx_created_at_idx ON ONLY public.p_ci_builds USING btree (commit_id, stage_idx, created_at); + + +-- +-- Name: index_ci_builds_on_commit_id_and_stage_idx_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_on_commit_id_and_stage_idx_and_created_at ON public.ci_builds USING btree (commit_id, stage_idx, created_at); + + +-- +-- Name: p_ci_builds_commit_id_status_type_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_commit_id_status_type_idx ON ONLY public.p_ci_builds USING btree (commit_id, status, type); + + +-- +-- Name: index_ci_builds_on_commit_id_and_status_and_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_on_commit_id_and_status_and_type ON public.ci_builds USING btree (commit_id, status, type); + + +-- +-- Name: p_ci_builds_commit_id_type_name_ref_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_commit_id_type_name_ref_idx ON ONLY public.p_ci_builds USING btree (commit_id, type, name, ref); + + +-- +-- Name: index_ci_builds_on_commit_id_and_type_and_name_and_ref; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_on_commit_id_and_type_and_name_and_ref ON public.ci_builds USING btree (commit_id, type, name, ref); + + +-- +-- Name: p_ci_builds_commit_id_type_ref_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_commit_id_type_ref_idx ON ONLY public.p_ci_builds USING btree (commit_id, type, ref); + + +-- +-- Name: index_ci_builds_on_commit_id_and_type_and_ref; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_on_commit_id_and_type_and_ref ON public.ci_builds USING btree (commit_id, type, ref); + + +-- +-- Name: p_ci_builds_commit_id_artifacts_expire_at_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_commit_id_artifacts_expire_at_id_idx ON ONLY public.p_ci_builds USING btree (commit_id, artifacts_expire_at, id) WHERE (((type)::text = 'Ci::Build'::text) AND ((retried = false) OR (retried IS NULL)) AND ((name)::text = ANY (ARRAY[('sast'::character varying)::text, ('secret_detection'::character varying)::text, ('dependency_scanning'::character varying)::text, ('container_scanning'::character varying)::text, ('dast'::character varying)::text]))); + + +-- +-- Name: index_ci_builds_on_commit_id_artifacts_expired_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_on_commit_id_artifacts_expired_at_and_id ON public.ci_builds USING btree (commit_id, artifacts_expire_at, id) WHERE (((type)::text = 'Ci::Build'::text) AND ((retried = false) OR (retried IS NULL)) AND ((name)::text = ANY (ARRAY[('sast'::character varying)::text, ('secret_detection'::character varying)::text, ('dependency_scanning'::character varying)::text, ('container_scanning'::character varying)::text, ('dast'::character varying)::text]))); + + +-- +-- Name: p_ci_builds_project_id_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_project_id_id_idx ON ONLY public.p_ci_builds USING btree (project_id, id); + + +-- +-- Name: index_ci_builds_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_on_project_id_and_id ON public.ci_builds USING btree (project_id, id); + + +-- +-- Name: p_ci_builds_project_id_name_ref_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_project_id_name_ref_idx ON ONLY public.p_ci_builds USING btree (project_id, name, ref) WHERE (((type)::text = 'Ci::Build'::text) AND ((status)::text = 'success'::text) AND ((retried = false) OR (retried IS NULL))); + + +-- +-- Name: index_ci_builds_on_project_id_and_name_and_ref; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_on_project_id_and_name_and_ref ON public.ci_builds USING btree (project_id, name, ref) WHERE (((type)::text = 'Ci::Build'::text) AND ((status)::text = 'success'::text) AND ((retried = false) OR (retried IS NULL))); + + +-- +-- Name: p_ci_builds_resource_group_id_status_commit_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_resource_group_id_status_commit_id_idx ON ONLY public.p_ci_builds USING btree (resource_group_id, status, commit_id) WHERE (resource_group_id IS NOT NULL); + + +-- +-- Name: index_ci_builds_on_resource_group_and_status_and_commit_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_on_resource_group_and_status_and_commit_id ON public.ci_builds USING btree (resource_group_id, status, commit_id) WHERE (resource_group_id IS NOT NULL); + + +-- +-- Name: p_ci_builds_runner_id_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_runner_id_id_idx ON ONLY public.p_ci_builds USING btree (runner_id, id DESC); + + +-- +-- Name: index_ci_builds_on_runner_id_and_id_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_on_runner_id_and_id_desc ON public.ci_builds USING btree (runner_id, id DESC); + + +-- +-- Name: p_ci_builds_stage_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_stage_id_idx ON ONLY public.p_ci_builds USING btree (stage_id); + + +-- +-- Name: index_ci_builds_on_stage_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_on_stage_id ON public.ci_builds USING btree (stage_id); + + +-- +-- Name: p_ci_builds_status_type_runner_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_status_type_runner_id_idx ON ONLY public.p_ci_builds USING btree (status, type, runner_id); + + +-- +-- Name: index_ci_builds_on_status_and_type_and_runner_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_on_status_and_type_and_runner_id ON public.ci_builds USING btree (status, type, runner_id); + + +-- +-- Name: p_ci_builds_updated_at_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_updated_at_idx ON ONLY public.p_ci_builds USING btree (updated_at); + + +-- +-- Name: index_ci_builds_on_updated_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_on_updated_at ON public.ci_builds USING btree (updated_at); + + +-- +-- Name: p_ci_builds_upstream_pipeline_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_upstream_pipeline_id_idx ON ONLY public.p_ci_builds USING btree (upstream_pipeline_id) WHERE (upstream_pipeline_id IS NOT NULL); + + +-- +-- Name: index_ci_builds_on_upstream_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_on_upstream_pipeline_id ON public.ci_builds USING btree (upstream_pipeline_id) WHERE (upstream_pipeline_id IS NOT NULL); + + +-- +-- Name: p_ci_builds_user_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_user_id_idx ON ONLY public.p_ci_builds USING btree (user_id); + + +-- +-- Name: index_ci_builds_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_on_user_id ON public.ci_builds USING btree (user_id); + + +-- +-- Name: p_ci_builds_user_id_created_at_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_user_id_created_at_idx ON ONLY public.p_ci_builds USING btree (user_id, created_at) WHERE ((type)::text = 'Ci::Build'::text); + + +-- +-- Name: index_ci_builds_on_user_id_and_created_at_and_type_eq_ci_build; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_on_user_id_and_created_at_and_type_eq_ci_build ON public.ci_builds USING btree (user_id, created_at) WHERE ((type)::text = 'Ci::Build'::text); + + +-- +-- Name: p_ci_builds_project_id_status_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_project_id_status_idx ON ONLY public.p_ci_builds USING btree (project_id, status) WHERE (((type)::text = 'Ci::Build'::text) AND ((status)::text = ANY (ARRAY[('running'::character varying)::text, ('pending'::character varying)::text, ('created'::character varying)::text]))); + + +-- +-- Name: index_ci_builds_project_id_and_status_for_live_jobs_partial2; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_project_id_and_status_for_live_jobs_partial2 ON public.ci_builds USING btree (project_id, status) WHERE (((type)::text = 'Ci::Build'::text) AND ((status)::text = ANY (ARRAY[('running'::character varying)::text, ('pending'::character varying)::text, ('created'::character varying)::text]))); + + +-- +-- Name: p_ci_builds_runner_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_runner_id_idx ON ONLY public.p_ci_builds USING btree (runner_id) WHERE (((status)::text = 'running'::text) AND ((type)::text = 'Ci::Build'::text)); + + +-- +-- Name: index_ci_builds_runner_id_running; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_builds_runner_id_running ON public.ci_builds USING btree (runner_id) WHERE (((status)::text = 'running'::text) AND ((type)::text = 'Ci::Build'::text)); + + +-- +-- Name: index_ci_builds_runner_session_on_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_builds_runner_session_on_build_id ON public.ci_builds_runner_session USING btree (build_id); + + +-- +-- Name: index_ci_builds_runner_session_on_partition_id_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_builds_runner_session_on_partition_id_build_id ON public.ci_builds_runner_session USING btree (partition_id, build_id); + + +-- +-- Name: index_ci_daily_build_group_report_results_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_daily_build_group_report_results_on_group_id ON public.ci_daily_build_group_report_results USING btree (group_id); + + +-- +-- Name: index_ci_daily_build_group_report_results_on_last_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_daily_build_group_report_results_on_last_pipeline_id ON public.ci_daily_build_group_report_results USING btree (last_pipeline_id); + + +-- +-- Name: index_ci_daily_build_group_report_results_on_project_and_date; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_daily_build_group_report_results_on_project_and_date ON public.ci_daily_build_group_report_results USING btree (project_id, date DESC) WHERE ((default_branch = true) AND ((data -> 'coverage'::text) IS NOT NULL)); + + +-- +-- Name: index_ci_deleted_objects_on_pick_up_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_deleted_objects_on_pick_up_at ON public.ci_deleted_objects USING btree (pick_up_at); + + +-- +-- Name: index_ci_finished_build_ch_sync_events_for_partitioned_query; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_finished_build_ch_sync_events_for_partitioned_query ON ONLY public.p_ci_finished_build_ch_sync_events USING btree (((build_id % (100)::bigint)), build_id) WHERE (processed = false); + + +-- +-- Name: index_ci_finished_pipeline_ch_sync_events_for_partitioned_query; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_finished_pipeline_ch_sync_events_for_partitioned_query ON ONLY public.p_ci_finished_pipeline_ch_sync_events USING btree (((pipeline_id % (100)::bigint)), pipeline_id) WHERE (processed = false); + + +-- +-- Name: index_ci_freeze_periods_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_freeze_periods_on_project_id ON public.ci_freeze_periods USING btree (project_id); + + +-- +-- Name: index_ci_group_variables_on_group_id_and_key_and_environment; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_group_variables_on_group_id_and_key_and_environment ON public.ci_group_variables USING btree (group_id, key, environment_scope); + + +-- +-- Name: index_ci_instance_variables_on_key; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_instance_variables_on_key ON public.ci_instance_variables USING btree (key); + + +-- +-- Name: index_ci_job_artifact_states_on_job_artifact_id_partition_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_artifact_states_on_job_artifact_id_partition_id ON public.ci_job_artifact_states USING btree (job_artifact_id, partition_id); + + +-- +-- Name: p_ci_job_artifacts_expire_at_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_job_artifacts_expire_at_idx ON ONLY public.p_ci_job_artifacts USING btree (expire_at) WHERE ((locked = 0) AND (file_type <> 3) AND (expire_at IS NOT NULL)); + + +-- +-- Name: index_ci_job_artifacts_expire_at_unlocked_non_trace; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_artifacts_expire_at_unlocked_non_trace ON public.ci_job_artifacts USING btree (expire_at) WHERE ((locked = 0) AND (file_type <> 3) AND (expire_at IS NOT NULL)); + + +-- +-- Name: p_ci_job_artifacts_project_id_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_job_artifacts_project_id_id_idx ON ONLY public.p_ci_job_artifacts USING btree (project_id, id) WHERE (file_type = 18); + + +-- +-- Name: index_ci_job_artifacts_for_terraform_reports; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_artifacts_for_terraform_reports ON public.ci_job_artifacts USING btree (project_id, id) WHERE (file_type = 18); + + +-- +-- Name: p_ci_job_artifacts_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_job_artifacts_id_idx ON ONLY public.p_ci_job_artifacts USING btree (id) WHERE (file_type = 18); + + +-- +-- Name: index_ci_job_artifacts_id_for_terraform_reports; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_artifacts_id_for_terraform_reports ON public.ci_job_artifacts USING btree (id) WHERE (file_type = 18); + + +-- +-- Name: p_ci_job_artifacts_expire_at_job_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_job_artifacts_expire_at_job_id_idx ON ONLY public.p_ci_job_artifacts USING btree (expire_at, job_id); + + +-- +-- Name: index_ci_job_artifacts_on_expire_at_and_job_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_artifacts_on_expire_at_and_job_id ON public.ci_job_artifacts USING btree (expire_at, job_id); + + +-- +-- Name: p_ci_job_artifacts_file_final_path_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_job_artifacts_file_final_path_idx ON ONLY public.p_ci_job_artifacts USING btree (file_final_path) WHERE (file_final_path IS NOT NULL); + + +-- +-- Name: index_ci_job_artifacts_on_file_final_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_artifacts_on_file_final_path ON public.ci_job_artifacts USING btree (file_final_path) WHERE (file_final_path IS NOT NULL); + + +-- +-- Name: p_ci_job_artifacts_file_store_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_job_artifacts_file_store_idx ON ONLY public.p_ci_job_artifacts USING btree (file_store); + + +-- +-- Name: index_ci_job_artifacts_on_file_store; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_artifacts_on_file_store ON public.ci_job_artifacts USING btree (file_store); + + +-- +-- Name: p_ci_job_artifacts_file_type_project_id_created_at_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_job_artifacts_file_type_project_id_created_at_idx ON ONLY public.p_ci_job_artifacts USING btree (file_type, project_id, created_at) WHERE (file_type = ANY (ARRAY[5, 6, 8, 23])); + + +-- +-- Name: index_ci_job_artifacts_on_file_type_for_devops_adoption; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_artifacts_on_file_type_for_devops_adoption ON public.ci_job_artifacts USING btree (file_type, project_id, created_at) WHERE (file_type = ANY (ARRAY[5, 6, 8, 23])); + + +-- +-- Name: p_ci_job_artifacts_project_id_created_at_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_job_artifacts_project_id_created_at_id_idx ON ONLY public.p_ci_job_artifacts USING btree (project_id, created_at, id); + + +-- +-- Name: index_ci_job_artifacts_on_id_project_id_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_artifacts_on_id_project_id_and_created_at ON public.ci_job_artifacts USING btree (project_id, created_at, id); + + +-- +-- Name: p_ci_job_artifacts_project_id_file_type_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_job_artifacts_project_id_file_type_id_idx ON ONLY public.p_ci_job_artifacts USING btree (project_id, file_type, id); + + +-- +-- Name: index_ci_job_artifacts_on_id_project_id_and_file_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_artifacts_on_id_project_id_and_file_type ON public.ci_job_artifacts USING btree (project_id, file_type, id); + + +-- +-- Name: p_ci_job_artifacts_partition_id_job_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_job_artifacts_partition_id_job_id_idx ON ONLY public.p_ci_job_artifacts USING btree (partition_id, job_id); + + +-- +-- Name: index_ci_job_artifacts_on_partition_id_job_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_artifacts_on_partition_id_job_id ON public.ci_job_artifacts USING btree (partition_id, job_id); + + +-- +-- Name: p_ci_job_artifacts_project_id_id_idx1; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_job_artifacts_project_id_id_idx1 ON ONLY public.p_ci_job_artifacts USING btree (project_id, id); + + +-- +-- Name: index_ci_job_artifacts_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_artifacts_on_project_id_and_id ON public.ci_job_artifacts USING btree (project_id, id); + + +-- +-- Name: p_ci_job_artifacts_project_id_idx1; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_job_artifacts_project_id_idx1 ON ONLY public.p_ci_job_artifacts USING btree (project_id) WHERE (file_type = ANY (ARRAY[5, 6, 7, 8])); + + +-- +-- Name: index_ci_job_artifacts_on_project_id_for_security_reports; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_artifacts_on_project_id_for_security_reports ON public.ci_job_artifacts USING btree (project_id) WHERE (file_type = ANY (ARRAY[5, 6, 7, 8])); + + +-- +-- Name: index_ci_job_token_group_scope_links_on_added_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_token_group_scope_links_on_added_by_id ON public.ci_job_token_group_scope_links USING btree (added_by_id); + + +-- +-- Name: index_ci_job_token_group_scope_links_on_target_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_token_group_scope_links_on_target_group_id ON public.ci_job_token_group_scope_links USING btree (target_group_id); + + +-- +-- Name: index_ci_job_token_project_scope_links_on_added_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_token_project_scope_links_on_added_by_id ON public.ci_job_token_project_scope_links USING btree (added_by_id); + + +-- +-- Name: index_ci_job_token_project_scope_links_on_target_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_token_project_scope_links_on_target_project_id ON public.ci_job_token_project_scope_links USING btree (target_project_id); + + +-- +-- Name: index_ci_job_variables_on_job_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_variables_on_job_id ON public.ci_job_variables USING btree (job_id); + + +-- +-- Name: index_ci_job_variables_on_key_and_job_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_job_variables_on_key_and_job_id ON public.ci_job_variables USING btree (key, job_id); + + +-- +-- Name: index_ci_job_variables_on_partition_id_job_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_variables_on_partition_id_job_id ON public.ci_job_variables USING btree (partition_id, job_id); + + +-- +-- Name: index_ci_job_variables_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_job_variables_on_project_id ON public.ci_job_variables USING btree (project_id); + + +-- +-- Name: index_ci_minutes_additional_packs_on_namespace_id_purchase_xid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_minutes_additional_packs_on_namespace_id_purchase_xid ON public.ci_minutes_additional_packs USING btree (namespace_id, purchase_xid); + + +-- +-- Name: index_ci_namespace_mirrors_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_namespace_mirrors_on_namespace_id ON public.ci_namespace_mirrors USING btree (namespace_id); + + +-- +-- Name: index_ci_namespace_mirrors_on_traversal_ids_unnest; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_namespace_mirrors_on_traversal_ids_unnest ON public.ci_namespace_mirrors USING btree ((traversal_ids[1]), (traversal_ids[2]), (traversal_ids[3]), (traversal_ids[4])) INCLUDE (traversal_ids, namespace_id); + + +-- +-- Name: index_ci_namespace_monthly_usages_on_namespace_id_and_date; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_namespace_monthly_usages_on_namespace_id_and_date ON public.ci_namespace_monthly_usages USING btree (namespace_id, date); + + +-- +-- Name: index_ci_partitions_on_current_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_partitions_on_current_status ON public.ci_partitions USING btree (status) WHERE (status = 2); + + +-- +-- Name: index_ci_pending_builds_id_on_protected_partial; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pending_builds_id_on_protected_partial ON public.ci_pending_builds USING btree (id) WHERE (protected = true); + + +-- +-- Name: index_ci_pending_builds_on_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_pending_builds_on_build_id ON public.ci_pending_builds USING btree (build_id); + + +-- +-- Name: index_ci_pending_builds_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pending_builds_on_namespace_id ON public.ci_pending_builds USING btree (namespace_id); + + +-- +-- Name: index_ci_pending_builds_on_partition_id_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_pending_builds_on_partition_id_build_id ON public.ci_pending_builds USING btree (partition_id, build_id); + + +-- +-- Name: index_ci_pending_builds_on_plan_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pending_builds_on_plan_id ON public.ci_pending_builds USING btree (plan_id); + + +-- +-- Name: index_ci_pending_builds_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pending_builds_on_project_id ON public.ci_pending_builds USING btree (project_id); + + +-- +-- Name: index_ci_pending_builds_on_tag_ids; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pending_builds_on_tag_ids ON public.ci_pending_builds USING btree (tag_ids) WHERE (cardinality(tag_ids) > 0); + + +-- +-- Name: index_ci_pipeline_artifacts_failed_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipeline_artifacts_failed_verification ON public.ci_pipeline_artifacts USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); + + +-- +-- Name: index_ci_pipeline_artifacts_needs_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipeline_artifacts_needs_verification ON public.ci_pipeline_artifacts USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); + + +-- +-- Name: index_ci_pipeline_artifacts_on_expire_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipeline_artifacts_on_expire_at ON public.ci_pipeline_artifacts USING btree (expire_at); + + +-- +-- Name: index_ci_pipeline_artifacts_on_pipeline_id_and_file_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_pipeline_artifacts_on_pipeline_id_and_file_type ON public.ci_pipeline_artifacts USING btree (pipeline_id, file_type); + + +-- +-- Name: index_ci_pipeline_artifacts_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipeline_artifacts_on_project_id ON public.ci_pipeline_artifacts USING btree (project_id); + + +-- +-- Name: index_ci_pipeline_artifacts_pending_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipeline_artifacts_pending_verification ON public.ci_pipeline_artifacts USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); + + +-- +-- Name: index_ci_pipeline_artifacts_verification_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipeline_artifacts_verification_state ON public.ci_pipeline_artifacts USING btree (verification_state); + + +-- +-- Name: index_ci_pipeline_chat_data_on_chat_name_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipeline_chat_data_on_chat_name_id ON public.ci_pipeline_chat_data USING btree (chat_name_id); + + +-- +-- Name: index_ci_pipeline_chat_data_on_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_pipeline_chat_data_on_pipeline_id ON public.ci_pipeline_chat_data USING btree (pipeline_id); + + +-- +-- Name: index_ci_pipeline_messages_on_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipeline_messages_on_pipeline_id ON public.ci_pipeline_messages USING btree (pipeline_id); + + +-- +-- Name: index_ci_pipeline_metadata_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipeline_metadata_on_project_id ON public.ci_pipeline_metadata USING btree (project_id); + + +-- +-- Name: index_ci_pipeline_schedule_variables_on_schedule_id_and_key; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_pipeline_schedule_variables_on_schedule_id_and_key ON public.ci_pipeline_schedule_variables USING btree (pipeline_schedule_id, key); + + +-- +-- Name: index_ci_pipeline_schedules_on_id_and_next_run_at_and_active; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipeline_schedules_on_id_and_next_run_at_and_active ON public.ci_pipeline_schedules USING btree (id, next_run_at) WHERE (active = true); + + +-- +-- Name: index_ci_pipeline_schedules_on_next_run_at_and_active; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipeline_schedules_on_next_run_at_and_active ON public.ci_pipeline_schedules USING btree (next_run_at, active); + + +-- +-- Name: index_ci_pipeline_schedules_on_owner_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipeline_schedules_on_owner_id ON public.ci_pipeline_schedules USING btree (owner_id); + + +-- +-- Name: index_ci_pipeline_schedules_on_owner_id_and_id_and_active; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipeline_schedules_on_owner_id_and_id_and_active ON public.ci_pipeline_schedules USING btree (owner_id, id) WHERE (active = true); + + +-- +-- Name: index_ci_pipeline_schedules_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipeline_schedules_on_project_id ON public.ci_pipeline_schedules USING btree (project_id); + + +-- +-- Name: p_ci_pipelines_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_id_idx ON ONLY public.p_ci_pipelines USING btree (id) WHERE (source = 13); + + +-- +-- Name: index_ci_pipelines_for_ondemand_dast_scans; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_for_ondemand_dast_scans ON public.ci_pipelines USING btree (id) WHERE (source = 13); + + +-- +-- Name: p_ci_pipelines_auto_canceled_by_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_auto_canceled_by_id_idx ON ONLY public.p_ci_pipelines USING btree (auto_canceled_by_id); + + +-- +-- Name: index_ci_pipelines_on_auto_canceled_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_auto_canceled_by_id ON public.ci_pipelines USING btree (auto_canceled_by_id); + + +-- +-- Name: p_ci_pipelines_ci_ref_id_id_source_status_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_ci_ref_id_id_source_status_idx ON ONLY public.p_ci_pipelines USING btree (ci_ref_id, id DESC, source, status) WHERE (ci_ref_id IS NOT NULL); + + +-- +-- Name: index_ci_pipelines_on_ci_ref_id_and_more; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_ci_ref_id_and_more ON public.ci_pipelines USING btree (ci_ref_id, id DESC, source, status) WHERE (ci_ref_id IS NOT NULL); + + +-- +-- Name: p_ci_pipelines_external_pull_request_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_external_pull_request_id_idx ON ONLY public.p_ci_pipelines USING btree (external_pull_request_id) WHERE (external_pull_request_id IS NOT NULL); + + +-- +-- Name: index_ci_pipelines_on_external_pull_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_external_pull_request_id ON public.ci_pipelines USING btree (external_pull_request_id) WHERE (external_pull_request_id IS NOT NULL); + + +-- +-- Name: p_ci_pipelines_merge_request_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_merge_request_id_idx ON ONLY public.p_ci_pipelines USING btree (merge_request_id) WHERE (merge_request_id IS NOT NULL); + + +-- +-- Name: index_ci_pipelines_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_merge_request_id ON public.ci_pipelines USING btree (merge_request_id) WHERE (merge_request_id IS NOT NULL); + + +-- +-- Name: p_ci_pipelines_pipeline_schedule_id_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_pipeline_schedule_id_id_idx ON ONLY public.p_ci_pipelines USING btree (pipeline_schedule_id, id); + + +-- +-- Name: index_ci_pipelines_on_pipeline_schedule_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_pipeline_schedule_id_and_id ON public.ci_pipelines USING btree (pipeline_schedule_id, id); + + +-- +-- Name: p_ci_pipelines_project_id_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_project_id_id_idx ON ONLY public.p_ci_pipelines USING btree (project_id, id DESC); + + +-- +-- Name: index_ci_pipelines_on_project_id_and_id_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_project_id_and_id_desc ON public.ci_pipelines USING btree (project_id, id DESC); + + +-- +-- Name: p_ci_pipelines_project_id_iid_partition_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX p_ci_pipelines_project_id_iid_partition_id_idx ON ONLY public.p_ci_pipelines USING btree (project_id, iid, partition_id) WHERE (iid IS NOT NULL); + + +-- +-- Name: index_ci_pipelines_on_project_id_and_iid_and_partition_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_pipelines_on_project_id_and_iid_and_partition_id ON public.ci_pipelines USING btree (project_id, iid, partition_id) WHERE (iid IS NOT NULL); + + +-- +-- Name: p_ci_pipelines_project_id_ref_status_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_project_id_ref_status_id_idx ON ONLY public.p_ci_pipelines USING btree (project_id, ref, status, id); + + +-- +-- Name: index_ci_pipelines_on_project_id_and_ref_and_status_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_project_id_and_ref_and_status_and_id ON public.ci_pipelines USING btree (project_id, ref, status, id); + + +-- +-- Name: p_ci_pipelines_project_id_sha_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_project_id_sha_idx ON ONLY public.p_ci_pipelines USING btree (project_id, sha); + + +-- +-- Name: index_ci_pipelines_on_project_id_and_sha; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_project_id_and_sha ON public.ci_pipelines USING btree (project_id, sha); + + +-- +-- Name: p_ci_pipelines_project_id_source_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_project_id_source_idx ON ONLY public.p_ci_pipelines USING btree (project_id, source); + + +-- +-- Name: index_ci_pipelines_on_project_id_and_source; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_project_id_and_source ON public.ci_pipelines USING btree (project_id, source); + + +-- +-- Name: p_ci_pipelines_project_id_status_config_source_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_project_id_status_config_source_idx ON ONLY public.p_ci_pipelines USING btree (project_id, status, config_source); + + +-- +-- Name: index_ci_pipelines_on_project_id_and_status_and_config_source; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_project_id_and_status_and_config_source ON public.ci_pipelines USING btree (project_id, status, config_source); + + +-- +-- Name: p_ci_pipelines_project_id_status_created_at_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_project_id_status_created_at_idx ON ONLY public.p_ci_pipelines USING btree (project_id, status, created_at); + + +-- +-- Name: index_ci_pipelines_on_project_id_and_status_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_project_id_and_status_and_created_at ON public.ci_pipelines USING btree (project_id, status, created_at); + + +-- +-- Name: p_ci_pipelines_project_id_status_updated_at_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_project_id_status_updated_at_idx ON ONLY public.p_ci_pipelines USING btree (project_id, status, updated_at); + + +-- +-- Name: index_ci_pipelines_on_project_id_and_status_and_updated_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_project_id_and_status_and_updated_at ON public.ci_pipelines USING btree (project_id, status, updated_at); + + +-- +-- Name: p_ci_pipelines_project_id_user_id_status_ref_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_project_id_user_id_status_ref_idx ON ONLY public.p_ci_pipelines USING btree (project_id, user_id, status, ref) WHERE (source <> 12); + + +-- +-- Name: index_ci_pipelines_on_project_id_and_user_id_and_status_and_ref; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_project_id_and_user_id_and_status_and_ref ON public.ci_pipelines USING btree (project_id, user_id, status, ref) WHERE (source <> 12); + + +-- +-- Name: p_ci_pipelines_project_id_ref_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_project_id_ref_id_idx ON ONLY public.p_ci_pipelines USING btree (project_id, ref, id DESC); + + +-- +-- Name: index_ci_pipelines_on_project_idandrefandiddesc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_project_idandrefandiddesc ON public.ci_pipelines USING btree (project_id, ref, id DESC); + + +-- +-- Name: p_ci_pipelines_status_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_status_id_idx ON ONLY public.p_ci_pipelines USING btree (status, id); + + +-- +-- Name: index_ci_pipelines_on_status_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_status_and_id ON public.ci_pipelines USING btree (status, id); + + +-- +-- Name: p_ci_pipelines_user_id_created_at_config_source_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_user_id_created_at_config_source_idx ON ONLY public.p_ci_pipelines USING btree (user_id, created_at, config_source); + + +-- +-- Name: index_ci_pipelines_on_user_id_and_created_at_and_config_source; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_user_id_and_created_at_and_config_source ON public.ci_pipelines USING btree (user_id, created_at, config_source); + + +-- +-- Name: p_ci_pipelines_user_id_created_at_source_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_user_id_created_at_source_idx ON ONLY public.p_ci_pipelines USING btree (user_id, created_at, source); + + +-- +-- Name: index_ci_pipelines_on_user_id_and_created_at_and_source; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_user_id_and_created_at_and_source ON public.ci_pipelines USING btree (user_id, created_at, source); + + +-- +-- Name: p_ci_pipelines_user_id_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_user_id_id_idx ON ONLY public.p_ci_pipelines USING btree (user_id, id) WHERE ((status)::text = ANY (ARRAY[('running'::character varying)::text, ('waiting_for_resource'::character varying)::text, ('preparing'::character varying)::text, ('pending'::character varying)::text, ('created'::character varying)::text, ('scheduled'::character varying)::text])); + + +-- +-- Name: index_ci_pipelines_on_user_id_and_id_and_cancelable_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_user_id_and_id_and_cancelable_status ON public.ci_pipelines USING btree (user_id, id) WHERE ((status)::text = ANY (ARRAY[('running'::character varying)::text, ('waiting_for_resource'::character varying)::text, ('preparing'::character varying)::text, ('pending'::character varying)::text, ('created'::character varying)::text, ('scheduled'::character varying)::text])); + + +-- +-- Name: p_ci_pipelines_user_id_id_idx1; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_pipelines_user_id_id_idx1 ON ONLY public.p_ci_pipelines USING btree (user_id, id DESC) WHERE (failure_reason = 3); + + +-- +-- Name: index_ci_pipelines_on_user_id_and_id_desc_and_user_not_verified; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_pipelines_on_user_id_and_id_desc_and_user_not_verified ON public.ci_pipelines USING btree (user_id, id DESC) WHERE (failure_reason = 3); + + +-- +-- Name: index_ci_project_mirrors_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_project_mirrors_on_namespace_id ON public.ci_project_mirrors USING btree (namespace_id); + + +-- +-- Name: index_ci_project_mirrors_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_project_mirrors_on_project_id ON public.ci_project_mirrors USING btree (project_id); + + +-- +-- Name: index_ci_project_monthly_usages_on_project_id_and_date; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_project_monthly_usages_on_project_id_and_date ON public.ci_project_monthly_usages USING btree (project_id, date); + + +-- +-- Name: index_ci_refs_on_project_id_and_ref_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_refs_on_project_id_and_ref_path ON public.ci_refs USING btree (project_id, ref_path); + + +-- +-- Name: index_ci_resource_groups_on_project_id_and_key; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_resource_groups_on_project_id_and_key ON public.ci_resource_groups USING btree (project_id, key); + + +-- +-- Name: index_ci_resources_on_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_resources_on_build_id ON public.ci_resources USING btree (build_id); + + +-- +-- Name: index_ci_resources_on_partition_id_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_resources_on_partition_id_build_id ON public.ci_resources USING btree (partition_id, build_id); + + +-- +-- Name: index_ci_resources_on_resource_group_id_and_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_resources_on_resource_group_id_and_build_id ON public.ci_resources USING btree (resource_group_id, build_id); + + +-- +-- Name: index_ci_runner_machines_on_contacted_at_desc_and_id_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runner_machines_on_contacted_at_desc_and_id_desc ON public.ci_runner_machines USING btree (contacted_at DESC, id DESC); + + +-- +-- Name: index_ci_runner_machines_on_created_at_and_id_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runner_machines_on_created_at_and_id_desc ON public.ci_runner_machines USING btree (created_at, id DESC); + + +-- +-- Name: index_ci_runner_machines_on_major_version_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runner_machines_on_major_version_trigram ON public.ci_runner_machines USING btree ("substring"(version, '^\d+\.'::text), version, runner_id); + + +-- +-- Name: index_ci_runner_machines_on_minor_version_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runner_machines_on_minor_version_trigram ON public.ci_runner_machines USING btree ("substring"(version, '^\d+\.\d+\.'::text), version, runner_id); + + +-- +-- Name: index_ci_runner_machines_on_patch_version_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runner_machines_on_patch_version_trigram ON public.ci_runner_machines USING btree ("substring"(version, '^\d+\.\d+\.\d+'::text), version, runner_id); + + +-- +-- Name: index_ci_runner_machines_on_runner_id_and_system_xid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_runner_machines_on_runner_id_and_system_xid ON public.ci_runner_machines USING btree (runner_id, system_xid); + + +-- +-- Name: index_ci_runner_machines_on_version; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runner_machines_on_version ON public.ci_runner_machines USING btree (version); + + +-- +-- Name: index_ci_runner_namespaces_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runner_namespaces_on_namespace_id ON public.ci_runner_namespaces USING btree (namespace_id); + + +-- +-- Name: index_ci_runner_namespaces_on_runner_id_and_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_runner_namespaces_on_runner_id_and_namespace_id ON public.ci_runner_namespaces USING btree (runner_id, namespace_id); + + +-- +-- Name: index_ci_runner_projects_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runner_projects_on_project_id ON public.ci_runner_projects USING btree (project_id); + + +-- +-- Name: index_ci_runner_versions_on_unique_status_and_version; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_runner_versions_on_unique_status_and_version ON public.ci_runner_versions USING btree (status, version); + + +-- +-- Name: index_ci_runners_on_active; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runners_on_active ON public.ci_runners USING btree (active, id); + + +-- +-- Name: index_ci_runners_on_contacted_at_and_id_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runners_on_contacted_at_and_id_desc ON public.ci_runners USING btree (contacted_at, id DESC); + + +-- +-- Name: index_ci_runners_on_contacted_at_and_id_where_inactive; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runners_on_contacted_at_and_id_where_inactive ON public.ci_runners USING btree (contacted_at DESC, id DESC) WHERE (active = false); + + +-- +-- Name: index_ci_runners_on_contacted_at_desc_and_id_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runners_on_contacted_at_desc_and_id_desc ON public.ci_runners USING btree (contacted_at DESC, id DESC); + + +-- +-- Name: index_ci_runners_on_created_at_and_id_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runners_on_created_at_and_id_desc ON public.ci_runners USING btree (created_at, id DESC); + + +-- +-- Name: index_ci_runners_on_created_at_and_id_where_inactive; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runners_on_created_at_and_id_where_inactive ON public.ci_runners USING btree (created_at DESC, id DESC) WHERE (active = false); + + +-- +-- Name: index_ci_runners_on_created_at_desc_and_id_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runners_on_created_at_desc_and_id_desc ON public.ci_runners USING btree (created_at DESC, id DESC); + + +-- +-- Name: index_ci_runners_on_creator_id_where_creator_id_not_null; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runners_on_creator_id_where_creator_id_not_null ON public.ci_runners USING btree (creator_id) WHERE (creator_id IS NOT NULL); + + +-- +-- Name: index_ci_runners_on_description_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runners_on_description_trigram ON public.ci_runners USING gin (description public.gin_trgm_ops); + + +-- +-- Name: index_ci_runners_on_locked; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runners_on_locked ON public.ci_runners USING btree (locked); + + +-- +-- Name: index_ci_runners_on_runner_type_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runners_on_runner_type_and_id ON public.ci_runners USING btree (runner_type, id); + + +-- +-- Name: index_ci_runners_on_token_expires_at_and_id_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runners_on_token_expires_at_and_id_desc ON public.ci_runners USING btree (token_expires_at, id DESC); + + +-- +-- Name: index_ci_runners_on_token_expires_at_desc_and_id_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_runners_on_token_expires_at_desc_and_id_desc ON public.ci_runners USING btree (token_expires_at DESC, id DESC); + + +-- +-- Name: index_ci_running_builds_on_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_running_builds_on_build_id ON public.ci_running_builds USING btree (build_id); + + +-- +-- Name: index_ci_running_builds_on_partition_id_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_running_builds_on_partition_id_build_id ON public.ci_running_builds USING btree (partition_id, build_id); + + +-- +-- Name: index_ci_running_builds_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_running_builds_on_project_id ON public.ci_running_builds USING btree (project_id); + + +-- +-- Name: index_ci_running_builds_on_runner_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_running_builds_on_runner_id ON public.ci_running_builds USING btree (runner_id); + + +-- +-- Name: index_ci_secure_file_states_failed_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_secure_file_states_failed_verification ON public.ci_secure_file_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); + + +-- +-- Name: index_ci_secure_file_states_needs_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_secure_file_states_needs_verification ON public.ci_secure_file_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); + + +-- +-- Name: index_ci_secure_file_states_on_ci_secure_file_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_secure_file_states_on_ci_secure_file_id ON public.ci_secure_file_states USING btree (ci_secure_file_id); + + +-- +-- Name: index_ci_secure_file_states_on_verification_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_secure_file_states_on_verification_state ON public.ci_secure_file_states USING btree (verification_state); + + +-- +-- Name: index_ci_secure_file_states_pending_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_secure_file_states_pending_verification ON public.ci_secure_file_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); + + +-- +-- Name: index_ci_secure_files_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_secure_files_on_project_id ON public.ci_secure_files USING btree (project_id); + + +-- +-- Name: index_ci_sources_pipelines_on_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_sources_pipelines_on_pipeline_id ON public.ci_sources_pipelines USING btree (pipeline_id); + + +-- +-- Name: index_ci_sources_pipelines_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_sources_pipelines_on_project_id ON public.ci_sources_pipelines USING btree (project_id); + + +-- +-- Name: index_ci_sources_pipelines_on_source_job_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_sources_pipelines_on_source_job_id ON public.ci_sources_pipelines USING btree (source_job_id); + + +-- +-- Name: index_ci_sources_pipelines_on_source_partition_id_source_job_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_sources_pipelines_on_source_partition_id_source_job_id ON public.ci_sources_pipelines USING btree (source_partition_id, source_job_id); + + +-- +-- Name: index_ci_sources_pipelines_on_source_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_sources_pipelines_on_source_pipeline_id ON public.ci_sources_pipelines USING btree (source_pipeline_id); + + +-- +-- Name: index_ci_sources_pipelines_on_source_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_sources_pipelines_on_source_project_id ON public.ci_sources_pipelines USING btree (source_project_id); + + +-- +-- Name: index_ci_sources_projects_on_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_sources_projects_on_pipeline_id ON public.ci_sources_projects USING btree (pipeline_id); + + +-- +-- Name: index_ci_sources_projects_on_source_project_id_and_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_sources_projects_on_source_project_id_and_pipeline_id ON public.ci_sources_projects USING btree (source_project_id, pipeline_id); + + +-- +-- Name: p_ci_stages_pipeline_id_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_stages_pipeline_id_id_idx ON ONLY public.p_ci_stages USING btree (pipeline_id, id) WHERE (status = ANY (ARRAY[0, 1, 2, 8, 9, 10])); + + +-- +-- Name: index_ci_stages_on_pipeline_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_stages_on_pipeline_id_and_id ON public.ci_stages USING btree (pipeline_id, id) WHERE (status = ANY (ARRAY[0, 1, 2, 8, 9, 10])); + + +-- +-- Name: p_ci_stages_pipeline_id_position_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_stages_pipeline_id_position_idx ON ONLY public.p_ci_stages USING btree (pipeline_id, "position"); + + +-- +-- Name: index_ci_stages_on_pipeline_id_and_position; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_stages_on_pipeline_id_and_position ON public.ci_stages USING btree (pipeline_id, "position"); + + +-- +-- Name: p_ci_stages_pipeline_id_name_partition_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX p_ci_stages_pipeline_id_name_partition_id_idx ON ONLY public.p_ci_stages USING btree (pipeline_id, name, partition_id); + + +-- +-- Name: index_ci_stages_on_pipeline_id_name_partition_id_unique; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_stages_on_pipeline_id_name_partition_id_unique ON public.ci_stages USING btree (pipeline_id, name, partition_id); + + +-- +-- Name: p_ci_stages_project_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_stages_project_id_idx ON ONLY public.p_ci_stages USING btree (project_id); + + +-- +-- Name: index_ci_stages_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_stages_on_project_id ON public.ci_stages USING btree (project_id); + + +-- +-- Name: index_ci_subscriptions_projects_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_subscriptions_projects_author_id ON public.ci_subscriptions_projects USING btree (author_id); + + +-- +-- Name: index_ci_subscriptions_projects_on_upstream_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_subscriptions_projects_on_upstream_project_id ON public.ci_subscriptions_projects USING btree (upstream_project_id); + + +-- +-- Name: index_ci_subscriptions_projects_unique_subscription; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_subscriptions_projects_unique_subscription ON public.ci_subscriptions_projects USING btree (downstream_project_id, upstream_project_id); + + +-- +-- Name: index_ci_trigger_requests_on_commit_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_trigger_requests_on_commit_id ON public.ci_trigger_requests USING btree (commit_id); + + +-- +-- Name: index_ci_trigger_requests_on_trigger_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_trigger_requests_on_trigger_id_and_id ON public.ci_trigger_requests USING btree (trigger_id, id DESC); + + +-- +-- Name: index_ci_triggers_on_owner_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_triggers_on_owner_id ON public.ci_triggers USING btree (owner_id); + + +-- +-- Name: index_ci_triggers_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_triggers_on_project_id ON public.ci_triggers USING btree (project_id); + + +-- +-- Name: index_ci_triggers_on_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_triggers_on_token ON public.ci_triggers USING btree (token); + + +-- +-- Name: index_ci_unit_test_failures_on_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_unit_test_failures_on_build_id ON public.ci_unit_test_failures USING btree (build_id); + + +-- +-- Name: index_ci_unit_test_failures_on_partition_id_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_unit_test_failures_on_partition_id_build_id ON public.ci_unit_test_failures USING btree (partition_id, build_id); + + +-- +-- Name: index_ci_unit_tests_on_project_id_and_key_hash; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_unit_tests_on_project_id_and_key_hash ON public.ci_unit_tests USING btree (project_id, key_hash); + + +-- +-- Name: index_ci_variables_on_key; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ci_variables_on_key ON public.ci_variables USING btree (key); + + +-- +-- Name: index_ci_variables_on_project_id_and_key_and_environment_scope; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ci_variables_on_project_id_and_key_and_environment_scope ON public.ci_variables USING btree (project_id, key, environment_scope); + + +-- +-- Name: index_cicd_settings_on_namespace_id_where_stale_pruning_enabled; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_cicd_settings_on_namespace_id_where_stale_pruning_enabled ON public.namespace_ci_cd_settings USING btree (namespace_id) WHERE (allow_stale_runner_pruning = true); + + +-- +-- Name: index_cis_vulnerability_reads_on_cluster_agent_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_cis_vulnerability_reads_on_cluster_agent_id ON public.vulnerability_reads USING btree (casted_cluster_agent_id) WHERE (report_type = 7); + + +-- +-- Name: index_cluster_agent_tokens_on_agent_id_status_last_used_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_cluster_agent_tokens_on_agent_id_status_last_used_at ON public.cluster_agent_tokens USING btree (agent_id, status, last_used_at DESC NULLS LAST); + + +-- +-- Name: index_cluster_agent_tokens_on_created_by_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_cluster_agent_tokens_on_created_by_user_id ON public.cluster_agent_tokens USING btree (created_by_user_id); + + +-- +-- Name: index_cluster_agent_tokens_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_cluster_agent_tokens_on_project_id ON public.cluster_agent_tokens USING btree (project_id); + + +-- +-- Name: index_cluster_agent_tokens_on_token_encrypted; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_cluster_agent_tokens_on_token_encrypted ON public.cluster_agent_tokens USING btree (token_encrypted); + + +-- +-- Name: index_cluster_agent_url_configurations_on_agent_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_cluster_agent_url_configurations_on_agent_id ON public.cluster_agent_url_configurations USING btree (agent_id); + + +-- +-- Name: index_cluster_agent_url_configurations_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_cluster_agent_url_configurations_on_project_id ON public.cluster_agent_url_configurations USING btree (project_id); + + +-- +-- Name: index_cluster_agent_url_configurations_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_cluster_agent_url_configurations_on_user_id ON public.cluster_agent_url_configurations USING btree (created_by_user_id) WHERE (created_by_user_id IS NOT NULL); + + +-- +-- Name: index_cluster_agents_on_created_by_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_cluster_agents_on_created_by_user_id ON public.cluster_agents USING btree (created_by_user_id); + + +-- +-- Name: index_cluster_agents_on_project_id_and_has_vulnerabilities; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_cluster_agents_on_project_id_and_has_vulnerabilities ON public.cluster_agents USING btree (project_id, has_vulnerabilities); + + +-- +-- Name: index_cluster_agents_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_cluster_agents_on_project_id_and_name ON public.cluster_agents USING btree (project_id, name); + + +-- +-- Name: index_cluster_enabled_grants_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_cluster_enabled_grants_on_namespace_id ON public.cluster_enabled_grants USING btree (namespace_id); + + +-- +-- Name: index_cluster_groups_on_cluster_id_and_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_cluster_groups_on_cluster_id_and_group_id ON public.cluster_groups USING btree (cluster_id, group_id); + + +-- +-- Name: index_cluster_groups_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_cluster_groups_on_group_id ON public.cluster_groups USING btree (group_id); + + +-- +-- Name: index_cluster_platforms_kubernetes_on_cluster_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_cluster_platforms_kubernetes_on_cluster_id ON public.cluster_platforms_kubernetes USING btree (cluster_id); + + +-- +-- Name: index_cluster_projects_on_cluster_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_cluster_projects_on_cluster_id ON public.cluster_projects USING btree (cluster_id); + + +-- +-- Name: index_cluster_projects_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_cluster_projects_on_project_id ON public.cluster_projects USING btree (project_id); + + +-- +-- Name: index_cluster_providers_aws_on_cluster_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_cluster_providers_aws_on_cluster_id ON public.cluster_providers_aws USING btree (cluster_id); + + +-- +-- Name: index_cluster_providers_aws_on_cluster_id_and_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_cluster_providers_aws_on_cluster_id_and_status ON public.cluster_providers_aws USING btree (cluster_id, status); + + +-- +-- Name: index_cluster_providers_gcp_on_cloud_run; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_cluster_providers_gcp_on_cloud_run ON public.cluster_providers_gcp USING btree (cloud_run); + + +-- +-- Name: index_cluster_providers_gcp_on_cluster_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_cluster_providers_gcp_on_cluster_id ON public.cluster_providers_gcp USING btree (cluster_id); + + +-- +-- Name: index_clusters_integration_prometheus_enabled; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_clusters_integration_prometheus_enabled ON public.clusters_integration_prometheus USING btree (enabled, created_at, cluster_id); + + +-- +-- Name: index_clusters_kubernetes_namespaces_on_cluster_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_clusters_kubernetes_namespaces_on_cluster_project_id ON public.clusters_kubernetes_namespaces USING btree (cluster_project_id); + + +-- +-- Name: index_clusters_kubernetes_namespaces_on_environment_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_clusters_kubernetes_namespaces_on_environment_id ON public.clusters_kubernetes_namespaces USING btree (environment_id); + + +-- +-- Name: index_clusters_kubernetes_namespaces_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_clusters_kubernetes_namespaces_on_project_id ON public.clusters_kubernetes_namespaces USING btree (project_id); + + +-- +-- Name: index_clusters_on_enabled_and_provider_type_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_clusters_on_enabled_and_provider_type_and_id ON public.clusters USING btree (enabled, provider_type, id); + + +-- +-- Name: index_clusters_on_enabled_cluster_type_id_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_clusters_on_enabled_cluster_type_id_and_created_at ON public.clusters USING btree (enabled, cluster_type, id, created_at); + + +-- +-- Name: index_clusters_on_management_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_clusters_on_management_project_id ON public.clusters USING btree (management_project_id) WHERE (management_project_id IS NOT NULL); + + +-- +-- Name: index_clusters_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_clusters_on_user_id ON public.clusters USING btree (user_id); + + +-- +-- Name: index_commit_user_mentions_on_note_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_commit_user_mentions_on_note_id ON public.commit_user_mentions USING btree (note_id); + + +-- +-- Name: index_compliance_checks_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_compliance_checks_on_namespace_id ON public.compliance_checks USING btree (namespace_id); + + +-- +-- Name: index_compliance_framework_security_policies_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_compliance_framework_security_policies_on_namespace_id ON public.compliance_framework_security_policies USING btree (namespace_id); + + +-- +-- Name: index_compliance_framework_security_policies_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_compliance_framework_security_policies_on_project_id ON public.compliance_framework_security_policies USING btree (project_id); + + +-- +-- Name: index_compliance_frameworks_id_where_frameworks_not_null; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_compliance_frameworks_id_where_frameworks_not_null ON public.compliance_management_frameworks USING btree (id) WHERE (pipeline_configuration_full_path IS NOT NULL); + + +-- +-- Name: index_compliance_management_frameworks_on_name_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_compliance_management_frameworks_on_name_trigram ON public.compliance_management_frameworks USING gin (name public.gin_trgm_ops); + + +-- +-- Name: index_compliance_requirements_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_compliance_requirements_on_namespace_id ON public.compliance_requirements USING btree (namespace_id); + + +-- +-- Name: index_composer_cache_files_where_namespace_id_is_null; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_composer_cache_files_where_namespace_id_is_null ON public.packages_composer_cache_files USING btree (id) WHERE (namespace_id IS NULL); + + +-- +-- Name: index_container_expiration_policies_on_next_run_at_and_enabled; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_container_expiration_policies_on_next_run_at_and_enabled ON public.container_expiration_policies USING btree (next_run_at, enabled); + + +-- +-- Name: index_container_registry_data_repair_details_on_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_container_registry_data_repair_details_on_status ON public.container_registry_data_repair_details USING btree (status); + + +-- +-- Name: index_container_repositories_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_container_repositories_on_project_id_and_id ON public.container_repositories USING btree (project_id, id); + + +-- +-- Name: index_container_repositories_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_container_repositories_on_project_id_and_name ON public.container_repositories USING btree (project_id, name); + + +-- +-- Name: index_container_repositories_on_status_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_container_repositories_on_status_and_id ON public.container_repositories USING btree (status, id) WHERE (status IS NOT NULL); + + +-- +-- Name: index_container_repository_on_name_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_container_repository_on_name_trigram ON public.container_repositories USING gin (name public.gin_trgm_ops); + + +-- +-- Name: index_container_repository_states_failed_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_container_repository_states_failed_verification ON public.container_repository_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); + + +-- +-- Name: index_container_repository_states_needs_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_container_repository_states_needs_verification ON public.container_repository_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); + + +-- +-- Name: index_container_repository_states_on_verification_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_container_repository_states_on_verification_state ON public.container_repository_states USING btree (verification_state); + + +-- +-- Name: index_container_repository_states_pending_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_container_repository_states_pending_verification ON public.container_repository_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); + + +-- +-- Name: index_content_blocked_states_on_container_id_commit_sha_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_content_blocked_states_on_container_id_commit_sha_path ON public.content_blocked_states USING btree (container_identifier, commit_sha, path); + + +-- +-- Name: index_country_access_logs_on_user_id_and_country_code; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_country_access_logs_on_user_id_and_country_code ON public.country_access_logs USING btree (user_id, country_code); + + +-- +-- Name: index_coverage_fuzzing_corpuses_on_package_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_coverage_fuzzing_corpuses_on_package_id ON public.coverage_fuzzing_corpuses USING btree (package_id); + + +-- +-- Name: index_coverage_fuzzing_corpuses_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_coverage_fuzzing_corpuses_on_project_id ON public.coverage_fuzzing_corpuses USING btree (project_id); + + +-- +-- Name: index_coverage_fuzzing_corpuses_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_coverage_fuzzing_corpuses_on_user_id ON public.coverage_fuzzing_corpuses USING btree (user_id); + + +-- +-- Name: index_created_at_on_codeowner_approval_merge_request_rules; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_created_at_on_codeowner_approval_merge_request_rules ON public.approval_merge_request_rules USING btree (created_at) WHERE ((rule_type = 2) AND (section <> 'codeowners'::text)); + + +-- +-- Name: index_csv_issue_imports_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_csv_issue_imports_on_project_id ON public.csv_issue_imports USING btree (project_id); + + +-- +-- Name: index_csv_issue_imports_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_csv_issue_imports_on_user_id ON public.csv_issue_imports USING btree (user_id); + + +-- +-- Name: index_custom_emoji_on_creator_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_custom_emoji_on_creator_id ON public.custom_emoji USING btree (creator_id); + + +-- +-- Name: index_custom_emoji_on_namespace_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_custom_emoji_on_namespace_id_and_name ON public.custom_emoji USING btree (namespace_id, name); + + +-- +-- Name: index_custom_software_licenses_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_custom_software_licenses_on_project_id_and_name ON public.custom_software_licenses USING btree (project_id, name); + + +-- +-- Name: index_customer_relations_contacts_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_customer_relations_contacts_on_group_id ON public.customer_relations_contacts USING btree (group_id); + + +-- +-- Name: index_customer_relations_contacts_on_organization_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_customer_relations_contacts_on_organization_id ON public.customer_relations_contacts USING btree (organization_id); + + +-- +-- Name: index_customer_relations_contacts_on_unique_email_per_group; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_customer_relations_contacts_on_unique_email_per_group ON public.customer_relations_contacts USING btree (group_id, lower(email), id); + + +-- +-- Name: index_cycle_analytics_stage_event_hashes_on_org_id_sha_256; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_cycle_analytics_stage_event_hashes_on_org_id_sha_256 ON public.analytics_cycle_analytics_stage_event_hashes USING btree (organization_id, hash_sha256); + + +-- +-- Name: index_daily_build_group_report_results_unique_columns; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_daily_build_group_report_results_unique_columns ON public.ci_daily_build_group_report_results USING btree (project_id, ref_path, date, group_name); + + +-- +-- Name: index_dast_pre_scan_verifications_on_ci_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_dast_pre_scan_verifications_on_ci_pipeline_id ON public.dast_pre_scan_verifications USING btree (ci_pipeline_id); + + +-- +-- Name: index_dast_pre_scan_verifications_on_dast_profile_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dast_pre_scan_verifications_on_dast_profile_id ON public.dast_pre_scan_verifications USING btree (dast_profile_id); + + +-- +-- Name: index_dast_pre_scan_verifications_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dast_pre_scan_verifications_on_project_id ON public.dast_pre_scan_verifications USING btree (project_id); + + +-- +-- Name: index_dast_profile_schedules_active_next_run_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dast_profile_schedules_active_next_run_at ON public.dast_profile_schedules USING btree (active, next_run_at); + + +-- +-- Name: index_dast_profile_schedules_on_dast_profile_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_dast_profile_schedules_on_dast_profile_id ON public.dast_profile_schedules USING btree (dast_profile_id); + + +-- +-- Name: index_dast_profile_schedules_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dast_profile_schedules_on_project_id ON public.dast_profile_schedules USING btree (project_id); + + +-- +-- Name: index_dast_profile_schedules_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dast_profile_schedules_on_user_id ON public.dast_profile_schedules USING btree (user_id); + + +-- +-- Name: index_dast_profiles_on_dast_scanner_profile_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dast_profiles_on_dast_scanner_profile_id ON public.dast_profiles USING btree (dast_scanner_profile_id); + + +-- +-- Name: index_dast_profiles_on_dast_site_profile_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dast_profiles_on_dast_site_profile_id ON public.dast_profiles USING btree (dast_site_profile_id); + + +-- +-- Name: index_dast_profiles_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_dast_profiles_on_project_id_and_name ON public.dast_profiles USING btree (project_id, name); + + +-- +-- Name: index_dast_profiles_pipelines_on_ci_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_dast_profiles_pipelines_on_ci_pipeline_id ON public.dast_profiles_pipelines USING btree (ci_pipeline_id); + + +-- +-- Name: index_dast_profiles_tags_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dast_profiles_tags_on_project_id ON public.dast_profiles_tags USING btree (project_id); + + +-- +-- Name: index_dast_profiles_tags_on_tag_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dast_profiles_tags_on_tag_id ON public.dast_profiles_tags USING btree (tag_id); + + +-- +-- Name: index_dast_scanner_profiles_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_dast_scanner_profiles_on_project_id_and_name ON public.dast_scanner_profiles USING btree (project_id, name); + + +-- +-- Name: index_dast_site_profile_secret_variables_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dast_site_profile_secret_variables_on_project_id ON public.dast_site_profile_secret_variables USING btree (project_id); + + +-- +-- Name: index_dast_site_profiles_on_dast_site_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dast_site_profiles_on_dast_site_id ON public.dast_site_profiles USING btree (dast_site_id); + + +-- +-- Name: index_dast_site_profiles_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_dast_site_profiles_on_project_id_and_name ON public.dast_site_profiles USING btree (project_id, name); + + +-- +-- Name: index_dast_site_token_on_project_id_and_url; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_dast_site_token_on_project_id_and_url ON public.dast_site_tokens USING btree (project_id, url); + + +-- +-- Name: index_dast_site_token_on_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_dast_site_token_on_token ON public.dast_site_tokens USING btree (token); + + +-- +-- Name: index_dast_site_tokens_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dast_site_tokens_on_project_id ON public.dast_site_tokens USING btree (project_id); + + +-- +-- Name: index_dast_site_validations_on_dast_site_token_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dast_site_validations_on_dast_site_token_id ON public.dast_site_validations USING btree (dast_site_token_id); + + +-- +-- Name: index_dast_site_validations_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dast_site_validations_on_project_id ON public.dast_site_validations USING btree (project_id); + + +-- +-- Name: index_dast_site_validations_on_url_base_and_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dast_site_validations_on_url_base_and_state ON public.dast_site_validations USING btree (url_base, state); + + +-- +-- Name: index_dast_sites_on_dast_site_validation_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dast_sites_on_dast_site_validation_id ON public.dast_sites USING btree (dast_site_validation_id); + + +-- +-- Name: index_dast_sites_on_project_id_and_url; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_dast_sites_on_project_id_and_url ON public.dast_sites USING btree (project_id, url); + + +-- +-- Name: index_dep_prox_manifests_on_group_id_file_name_and_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_dep_prox_manifests_on_group_id_file_name_and_status ON public.dependency_proxy_manifests USING btree (group_id, file_name, status); + + +-- +-- Name: index_dependency_list_export_parts_on_dependency_list_export_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dependency_list_export_parts_on_dependency_list_export_id ON public.dependency_list_export_parts USING btree (dependency_list_export_id); + + +-- +-- Name: index_dependency_list_export_parts_on_organization_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dependency_list_export_parts_on_organization_id ON public.dependency_list_export_parts USING btree (organization_id); + + +-- +-- Name: index_dependency_list_exports_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dependency_list_exports_on_group_id ON public.dependency_list_exports USING btree (group_id); + + +-- +-- Name: index_dependency_list_exports_on_organization_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dependency_list_exports_on_organization_id ON public.dependency_list_exports USING btree (organization_id); + + +-- +-- Name: index_dependency_list_exports_on_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dependency_list_exports_on_pipeline_id ON public.dependency_list_exports USING btree (pipeline_id); + + +-- +-- Name: index_dependency_list_exports_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dependency_list_exports_on_project_id ON public.dependency_list_exports USING btree (project_id); + + +-- +-- Name: index_dependency_list_exports_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dependency_list_exports_on_user_id ON public.dependency_list_exports USING btree (user_id); + + +-- +-- Name: index_dependency_proxy_blob_states_failed_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dependency_proxy_blob_states_failed_verification ON public.dependency_proxy_blob_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); + + +-- +-- Name: index_dependency_proxy_blob_states_needs_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dependency_proxy_blob_states_needs_verification ON public.dependency_proxy_blob_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); + + +-- +-- Name: index_dependency_proxy_blob_states_on_dependency_proxy_blob_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dependency_proxy_blob_states_on_dependency_proxy_blob_id ON public.dependency_proxy_blob_states USING btree (dependency_proxy_blob_id); + + +-- +-- Name: index_dependency_proxy_blob_states_on_verification_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dependency_proxy_blob_states_on_verification_state ON public.dependency_proxy_blob_states USING btree (verification_state); + + +-- +-- Name: index_dependency_proxy_blob_states_pending_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dependency_proxy_blob_states_pending_verification ON public.dependency_proxy_blob_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); + + +-- +-- Name: index_dependency_proxy_blobs_on_group_id_and_file_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dependency_proxy_blobs_on_group_id_and_file_name ON public.dependency_proxy_blobs USING btree (group_id, file_name); + + +-- +-- Name: index_dependency_proxy_blobs_on_group_id_status_read_at_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dependency_proxy_blobs_on_group_id_status_read_at_id ON public.dependency_proxy_blobs USING btree (group_id, status, read_at, id); + + +-- +-- Name: index_dependency_proxy_blobs_on_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dependency_proxy_blobs_on_status ON public.dependency_proxy_blobs USING btree (status); + + +-- +-- Name: index_dependency_proxy_group_settings_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dependency_proxy_group_settings_on_group_id ON public.dependency_proxy_group_settings USING btree (group_id); + + +-- +-- Name: index_dependency_proxy_manifests_on_group_id_status_read_at_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dependency_proxy_manifests_on_group_id_status_read_at_id ON public.dependency_proxy_manifests USING btree (group_id, status, read_at, id); + + +-- +-- Name: index_dependency_proxy_manifests_on_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dependency_proxy_manifests_on_status ON public.dependency_proxy_manifests USING btree (status); + + +-- +-- Name: index_deploy_key_id_on_protected_branch_push_access_levels; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deploy_key_id_on_protected_branch_push_access_levels ON public.protected_branch_push_access_levels USING btree (deploy_key_id); + + +-- +-- Name: index_deploy_keys_projects_on_deploy_key_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deploy_keys_projects_on_deploy_key_id ON public.deploy_keys_projects USING btree (deploy_key_id); + + +-- +-- Name: index_deploy_keys_projects_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deploy_keys_projects_on_project_id ON public.deploy_keys_projects USING btree (project_id); + + +-- +-- Name: index_deploy_tokens_on_creator_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deploy_tokens_on_creator_id ON public.deploy_tokens USING btree (creator_id); + + +-- +-- Name: index_deploy_tokens_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deploy_tokens_on_group_id ON public.deploy_tokens USING btree (group_id); + + +-- +-- Name: index_deploy_tokens_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deploy_tokens_on_project_id ON public.deploy_tokens USING btree (project_id); + + +-- +-- Name: index_deploy_tokens_on_token_encrypted; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_deploy_tokens_on_token_encrypted ON public.deploy_tokens USING btree (token_encrypted); + + +-- +-- Name: index_deployment_approvals_on_approval_rule_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployment_approvals_on_approval_rule_id ON public.deployment_approvals USING btree (approval_rule_id); + + +-- +-- Name: index_deployment_approvals_on_created_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployment_approvals_on_created_at_and_id ON public.deployment_approvals USING btree (created_at, id); + + +-- +-- Name: index_deployment_approvals_on_deployment_user_approval_rule; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_deployment_approvals_on_deployment_user_approval_rule ON public.deployment_approvals USING btree (deployment_id, user_id, approval_rule_id); + + +-- +-- Name: index_deployment_approvals_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployment_approvals_on_project_id ON public.deployment_approvals USING btree (project_id); + + +-- +-- Name: index_deployment_approvals_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployment_approvals_on_user_id ON public.deployment_approvals USING btree (user_id); + + +-- +-- Name: index_deployment_clusters_on_cluster_id_and_deployment_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_deployment_clusters_on_cluster_id_and_deployment_id ON public.deployment_clusters USING btree (cluster_id, deployment_id); + + +-- +-- Name: index_deployment_merge_requests_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployment_merge_requests_on_merge_request_id ON public.deployment_merge_requests USING btree (merge_request_id); + + +-- +-- Name: index_deployments_for_visible_scope; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployments_for_visible_scope ON public.deployments USING btree (environment_id, finished_at DESC) WHERE (status = ANY (ARRAY[1, 2, 3, 4, 6])); + + +-- +-- Name: index_deployments_on_archived_project_id_iid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployments_on_archived_project_id_iid ON public.deployments USING btree (archived, project_id, iid); + + +-- +-- Name: index_deployments_on_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployments_on_created_at ON public.deployments USING btree (created_at); + + +-- +-- Name: index_deployments_on_deployable_type_and_deployable_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployments_on_deployable_type_and_deployable_id ON public.deployments USING btree (deployable_type, deployable_id); + + +-- +-- Name: index_deployments_on_environment_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployments_on_environment_id_and_id ON public.deployments USING btree (environment_id, id); + + +-- +-- Name: index_deployments_on_environment_id_and_ref; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployments_on_environment_id_and_ref ON public.deployments USING btree (environment_id, ref); + + +-- +-- Name: index_deployments_on_environment_id_status_and_finished_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployments_on_environment_id_status_and_finished_at ON public.deployments USING btree (environment_id, status, finished_at); + + +-- +-- Name: index_deployments_on_environment_id_status_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployments_on_environment_id_status_and_id ON public.deployments USING btree (environment_id, status, id); + + +-- +-- Name: index_deployments_on_environment_status_sha; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployments_on_environment_status_sha ON public.deployments USING btree (environment_id, status, sha); + + +-- +-- Name: index_deployments_on_id_and_status_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployments_on_id_and_status_and_created_at ON public.deployments USING btree (id, status, created_at); + + +-- +-- Name: index_deployments_on_project_and_environment_and_updated_at_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployments_on_project_and_environment_and_updated_at_id ON public.deployments USING btree (project_id, environment_id, updated_at, id); + + +-- +-- Name: index_deployments_on_project_and_finished; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployments_on_project_and_finished ON public.deployments USING btree (project_id, finished_at) WHERE (status = 2); + + +-- +-- Name: index_deployments_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployments_on_project_id_and_id ON public.deployments USING btree (project_id, id DESC); + + +-- +-- Name: index_deployments_on_project_id_and_iid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_deployments_on_project_id_and_iid ON public.deployments USING btree (project_id, iid); + + +-- +-- Name: index_deployments_on_project_id_and_status_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployments_on_project_id_and_status_and_created_at ON public.deployments USING btree (project_id, status, created_at); + + +-- +-- Name: index_deployments_on_project_id_and_updated_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployments_on_project_id_and_updated_at_and_id ON public.deployments USING btree (project_id, updated_at DESC, id DESC); + + +-- +-- Name: index_deployments_on_user_id_and_status_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_deployments_on_user_id_and_status_and_created_at ON public.deployments USING btree (user_id, status, created_at); + + +-- +-- Name: index_description_versions_on_epic_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_description_versions_on_epic_id ON public.description_versions USING btree (epic_id) WHERE (epic_id IS NOT NULL); + + +-- +-- Name: index_description_versions_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_description_versions_on_issue_id ON public.description_versions USING btree (issue_id) WHERE (issue_id IS NOT NULL); + + +-- +-- Name: index_description_versions_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_description_versions_on_merge_request_id ON public.description_versions USING btree (merge_request_id) WHERE (merge_request_id IS NOT NULL); + + +-- +-- Name: index_design_management_designs_issue_id_relative_position_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_design_management_designs_issue_id_relative_position_id ON public.design_management_designs USING btree (issue_id, relative_position, id); + + +-- +-- Name: index_design_management_designs_on_iid_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_design_management_designs_on_iid_and_project_id ON public.design_management_designs USING btree (project_id, iid); + + +-- +-- Name: index_design_management_designs_on_issue_id_and_filename; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_design_management_designs_on_issue_id_and_filename ON public.design_management_designs USING btree (issue_id, filename); + + +-- +-- Name: index_design_management_designs_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_design_management_designs_on_namespace_id ON public.design_management_designs USING btree (namespace_id); + + +-- +-- Name: index_design_management_designs_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_design_management_designs_on_project_id ON public.design_management_designs USING btree (project_id); + + +-- +-- Name: index_design_management_designs_versions_on_design_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_design_management_designs_versions_on_design_id ON public.design_management_designs_versions USING btree (design_id); + + +-- +-- Name: index_design_management_designs_versions_on_event; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_design_management_designs_versions_on_event ON public.design_management_designs_versions USING btree (event); + + +-- +-- Name: index_design_management_designs_versions_on_version_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_design_management_designs_versions_on_version_id ON public.design_management_designs_versions USING btree (version_id); + + +-- +-- Name: index_design_management_repositories_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_design_management_repositories_on_namespace_id ON public.design_management_repositories USING btree (namespace_id); + + +-- +-- Name: index_design_management_repositories_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_design_management_repositories_on_project_id ON public.design_management_repositories USING btree (project_id); + + +-- +-- Name: index_design_management_repository_states_failed_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_design_management_repository_states_failed_verification ON public.design_management_repository_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); + + +-- +-- Name: index_design_management_repository_states_needs_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_design_management_repository_states_needs_verification ON public.design_management_repository_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); + + +-- +-- Name: index_design_management_repository_states_on_verification_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_design_management_repository_states_on_verification_state ON public.design_management_repository_states USING btree (verification_state); + + +-- +-- Name: index_design_management_repository_states_pending_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_design_management_repository_states_pending_verification ON public.design_management_repository_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); + + +-- +-- Name: index_design_management_versions_on_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_design_management_versions_on_author_id ON public.design_management_versions USING btree (author_id) WHERE (author_id IS NOT NULL); + + +-- +-- Name: index_design_management_versions_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_design_management_versions_on_issue_id ON public.design_management_versions USING btree (issue_id); + + +-- +-- Name: index_design_management_versions_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_design_management_versions_on_namespace_id ON public.design_management_versions USING btree (namespace_id); + + +-- +-- Name: index_design_management_versions_on_sha_and_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_design_management_versions_on_sha_and_issue_id ON public.design_management_versions USING btree (sha, issue_id); + + +-- +-- Name: index_design_user_mentions_on_note_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_design_user_mentions_on_note_id ON public.design_user_mentions USING btree (note_id); + + +-- +-- Name: index_diff_note_positions_on_note_id_and_diff_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_diff_note_positions_on_note_id_and_diff_type ON public.diff_note_positions USING btree (note_id, diff_type); + + +-- +-- Name: index_dingtalk_tracker_data_on_integration_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dingtalk_tracker_data_on_integration_id ON public.dingtalk_tracker_data USING btree (integration_id); + + +-- +-- Name: index_dora_configurations_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_dora_configurations_on_project_id ON public.dora_configurations USING btree (project_id); + + +-- +-- Name: index_dora_daily_metrics_on_environment_id_and_date; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_dora_daily_metrics_on_environment_id_and_date ON public.dora_daily_metrics USING btree (environment_id, date); + + +-- +-- Name: index_dora_daily_metrics_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_dora_daily_metrics_on_project_id ON public.dora_daily_metrics USING btree (project_id); + + +-- +-- Name: index_dora_performance_scores_on_project_id_and_date; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_dora_performance_scores_on_project_id_and_date ON public.dora_performance_scores USING btree (project_id, date); + + +-- +-- Name: index_draft_notes_on_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_draft_notes_on_author_id ON public.draft_notes USING btree (author_id); + + +-- +-- Name: index_draft_notes_on_discussion_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_draft_notes_on_discussion_id ON public.draft_notes USING btree (discussion_id); + + +-- +-- Name: index_draft_notes_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_draft_notes_on_merge_request_id ON public.draft_notes USING btree (merge_request_id); + + +-- +-- Name: index_draft_notes_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_draft_notes_on_project_id ON public.draft_notes USING btree (project_id); + + +-- +-- Name: index_duo_workflows_checkpoints_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_duo_workflows_checkpoints_on_project_id ON public.duo_workflows_checkpoints USING btree (project_id); + + +-- +-- Name: index_duo_workflows_workflow_checkpoints_unique_thread; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_duo_workflows_workflow_checkpoints_unique_thread ON public.duo_workflows_checkpoints USING btree (workflow_id, thread_ts); + + +-- +-- Name: index_duo_workflows_workflows_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_duo_workflows_workflows_on_project_id ON public.duo_workflows_workflows USING btree (project_id); + + +-- +-- Name: index_duo_workflows_workflows_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_duo_workflows_workflows_on_user_id ON public.duo_workflows_workflows USING btree (user_id); + + +-- +-- Name: index_early_access_program_tracking_events_on_category; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_early_access_program_tracking_events_on_category ON public.early_access_program_tracking_events USING btree (category); + + +-- +-- Name: index_early_access_program_tracking_events_on_event_label; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_early_access_program_tracking_events_on_event_label ON public.early_access_program_tracking_events USING btree (event_label); + + +-- +-- Name: index_early_access_program_tracking_events_on_event_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_early_access_program_tracking_events_on_event_name ON public.early_access_program_tracking_events USING btree (event_name); + + +-- +-- Name: index_early_access_program_tracking_events_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_early_access_program_tracking_events_on_user_id ON public.early_access_program_tracking_events USING btree (user_id); + + +-- +-- Name: index_elastic_index_settings_on_alias_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_elastic_index_settings_on_alias_name ON public.elastic_index_settings USING btree (alias_name); + + +-- +-- Name: index_elastic_reindexing_subtasks_on_elastic_reindexing_task_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_elastic_reindexing_subtasks_on_elastic_reindexing_task_id ON public.elastic_reindexing_subtasks USING btree (elastic_reindexing_task_id); + + +-- +-- Name: index_elastic_reindexing_tasks_on_in_progress; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_elastic_reindexing_tasks_on_in_progress ON public.elastic_reindexing_tasks USING btree (in_progress) WHERE in_progress; + + +-- +-- Name: index_elastic_reindexing_tasks_on_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_elastic_reindexing_tasks_on_state ON public.elastic_reindexing_tasks USING btree (state); + + +-- +-- Name: index_elasticsearch_indexed_namespaces_on_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_elasticsearch_indexed_namespaces_on_created_at ON public.elasticsearch_indexed_namespaces USING btree (created_at); + + +-- +-- Name: index_emails_on_confirmation_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_emails_on_confirmation_token ON public.emails USING btree (confirmation_token); + + +-- +-- Name: index_emails_on_created_at_where_confirmed_at_is_null; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_emails_on_created_at_where_confirmed_at_is_null ON public.emails USING btree (created_at) WHERE (confirmed_at IS NULL); + + +-- +-- Name: index_emails_on_detumbled_email; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_emails_on_detumbled_email ON public.emails USING btree (detumbled_email); + + +-- +-- Name: index_emails_on_email; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_emails_on_email ON public.emails USING btree (email); + + +-- +-- Name: index_emails_on_email_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_emails_on_email_trigram ON public.emails USING gin (email public.gin_trgm_ops); + + +-- +-- Name: index_emails_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_emails_on_user_id ON public.emails USING btree (user_id); + + +-- +-- Name: index_enabled_clusters_on_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_enabled_clusters_on_id ON public.clusters USING btree (id) WHERE (enabled = true); + + +-- +-- Name: index_environments_cluster_agent_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_environments_cluster_agent_id ON public.environments USING btree (cluster_agent_id) WHERE (cluster_agent_id IS NOT NULL); + + +-- +-- Name: index_environments_name_without_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_environments_name_without_type ON public.environments USING btree (project_id, lower(ltrim(ltrim((name)::text, (environment_type)::text), '/'::text)) varchar_pattern_ops, state); + + +-- +-- Name: index_environments_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_environments_on_merge_request_id ON public.environments USING btree (merge_request_id); + + +-- +-- Name: index_environments_on_name_varchar_pattern_ops; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_environments_on_name_varchar_pattern_ops ON public.environments USING btree (name varchar_pattern_ops); + + +-- +-- Name: index_environments_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_environments_on_project_id_and_id ON public.environments USING btree (project_id, id); + + +-- +-- Name: index_environments_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_environments_on_project_id_and_name ON public.environments USING btree (project_id, name); + + +-- +-- Name: index_environments_on_project_id_and_slug; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_environments_on_project_id_and_slug ON public.environments USING btree (project_id, slug); + + +-- +-- Name: index_environments_on_project_id_and_tier; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_environments_on_project_id_and_tier ON public.environments USING btree (project_id, tier) WHERE (tier IS NOT NULL); + + +-- +-- Name: index_environments_on_project_id_state_environment_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_environments_on_project_id_state_environment_type ON public.environments USING btree (project_id, state, environment_type); + + +-- +-- Name: index_environments_on_project_name_varchar_pattern_ops_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_environments_on_project_name_varchar_pattern_ops_state ON public.environments USING btree (project_id, lower((name)::text) varchar_pattern_ops, state); + + +-- +-- Name: index_environments_on_state_and_auto_delete_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_environments_on_state_and_auto_delete_at ON public.environments USING btree (auto_delete_at) WHERE ((auto_delete_at IS NOT NULL) AND ((state)::text = 'stopped'::text)); + + +-- +-- Name: index_environments_on_state_and_auto_stop_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_environments_on_state_and_auto_stop_at ON public.environments USING btree (state, auto_stop_at) WHERE ((auto_stop_at IS NOT NULL) AND ((state)::text = 'available'::text)); + + +-- +-- Name: index_environments_on_updated_at_for_stopping_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_environments_on_updated_at_for_stopping_state ON public.environments USING btree (updated_at) WHERE ((state)::text = 'stopping'::text); + + +-- +-- Name: index_epic_board_list_preferences_on_user_and_list; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_epic_board_list_preferences_on_user_and_list ON public.boards_epic_list_user_preferences USING btree (user_id, epic_list_id); + + +-- +-- Name: index_epic_board_recent_visits_on_user_group_and_board; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_epic_board_recent_visits_on_user_group_and_board ON public.boards_epic_board_recent_visits USING btree (user_id, group_id, epic_board_id); + + +-- +-- Name: index_epic_issues_on_epic_id_and_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_epic_issues_on_epic_id_and_issue_id ON public.epic_issues USING btree (epic_id, issue_id); + + +-- +-- Name: index_epic_issues_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_epic_issues_on_issue_id ON public.epic_issues USING btree (issue_id); + + +-- +-- Name: index_epic_issues_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_epic_issues_on_namespace_id ON public.epic_issues USING btree (namespace_id); + + +-- +-- Name: index_epic_metrics; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_epic_metrics ON public.epic_metrics USING btree (epic_id); + + +-- +-- Name: index_epic_user_mentions_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_epic_user_mentions_on_group_id ON public.epic_user_mentions USING btree (group_id); + + +-- +-- Name: index_epic_user_mentions_on_note_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_epic_user_mentions_on_note_id ON public.epic_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); + + +-- +-- Name: index_epics_on_assignee_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_epics_on_assignee_id ON public.epics USING btree (assignee_id); + + +-- +-- Name: index_epics_on_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_epics_on_author_id ON public.epics USING btree (author_id); + + +-- +-- Name: index_epics_on_closed_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_epics_on_closed_by_id ON public.epics USING btree (closed_by_id); + + +-- +-- Name: index_epics_on_confidential; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_epics_on_confidential ON public.epics USING btree (confidential); + + +-- +-- Name: index_epics_on_due_date_sourcing_epic_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_epics_on_due_date_sourcing_epic_id ON public.epics USING btree (due_date_sourcing_epic_id) WHERE (due_date_sourcing_epic_id IS NOT NULL); + + +-- +-- Name: index_epics_on_due_date_sourcing_milestone_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_epics_on_due_date_sourcing_milestone_id ON public.epics USING btree (due_date_sourcing_milestone_id); + + +-- +-- Name: index_epics_on_end_date; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_epics_on_end_date ON public.epics USING btree (end_date); + + +-- +-- Name: index_epics_on_group_id_and_external_key; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_epics_on_group_id_and_external_key ON public.epics USING btree (group_id, external_key) WHERE (external_key IS NOT NULL); + + +-- +-- Name: index_epics_on_group_id_and_iid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_epics_on_group_id_and_iid ON public.epics USING btree (group_id, iid); + + +-- +-- Name: index_epics_on_group_id_and_iid_varchar_pattern; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_epics_on_group_id_and_iid_varchar_pattern ON public.epics USING btree (group_id, ((iid)::character varying) varchar_pattern_ops); + + +-- +-- Name: index_epics_on_iid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_epics_on_iid ON public.epics USING btree (iid); + + +-- +-- Name: index_epics_on_last_edited_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_epics_on_last_edited_by_id ON public.epics USING btree (last_edited_by_id); + + +-- +-- Name: index_epics_on_parent_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_epics_on_parent_id ON public.epics USING btree (parent_id); + + +-- +-- Name: index_epics_on_start_date; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_epics_on_start_date ON public.epics USING btree (start_date); + + +-- +-- Name: index_epics_on_start_date_sourcing_epic_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_epics_on_start_date_sourcing_epic_id ON public.epics USING btree (start_date_sourcing_epic_id) WHERE (start_date_sourcing_epic_id IS NOT NULL); + + +-- +-- Name: index_epics_on_start_date_sourcing_milestone_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_epics_on_start_date_sourcing_milestone_id ON public.epics USING btree (start_date_sourcing_milestone_id); + + +-- +-- Name: index_error_tracking_client_for_enabled_check; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_error_tracking_client_for_enabled_check ON public.error_tracking_client_keys USING btree (project_id, public_key) WHERE (active = true); + + +-- +-- Name: index_error_tracking_client_keys_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_error_tracking_client_keys_on_project_id ON public.error_tracking_client_keys USING btree (project_id); + + +-- +-- Name: index_error_tracking_error_events_on_error_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_error_tracking_error_events_on_error_id ON public.error_tracking_error_events USING btree (error_id); + + +-- +-- Name: index_error_tracking_error_events_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_error_tracking_error_events_on_project_id ON public.error_tracking_error_events USING btree (project_id); + + +-- +-- Name: index_error_tracking_errors_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_error_tracking_errors_on_project_id ON public.error_tracking_errors USING btree (project_id); + + +-- +-- Name: index_esc_protected_branches_on_external_status_check_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_esc_protected_branches_on_external_status_check_id ON public.external_status_checks_protected_branches USING btree (external_status_check_id); + + +-- +-- Name: index_esc_protected_branches_on_protected_branch_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_esc_protected_branches_on_protected_branch_id ON public.external_status_checks_protected_branches USING btree (protected_branch_id); + + +-- +-- Name: index_escalation_rules_on_all_attributes; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_escalation_rules_on_all_attributes ON public.incident_management_escalation_rules USING btree (policy_id, oncall_schedule_id, status, elapsed_time_seconds, user_id); + + +-- +-- Name: index_escalation_rules_on_user; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_escalation_rules_on_user ON public.incident_management_escalation_rules USING btree (user_id); + + +-- +-- Name: index_et_errors_on_project_id_and_status_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_et_errors_on_project_id_and_status_and_id ON public.error_tracking_errors USING btree (project_id, status, id); + + +-- +-- Name: index_et_errors_on_project_id_and_status_events_count_id_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_et_errors_on_project_id_and_status_events_count_id_desc ON public.error_tracking_errors USING btree (project_id, status, events_count DESC, id DESC); + + +-- +-- Name: index_et_errors_on_project_id_and_status_first_seen_at_id_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_et_errors_on_project_id_and_status_first_seen_at_id_desc ON public.error_tracking_errors USING btree (project_id, status, first_seen_at DESC, id DESC); + + +-- +-- Name: index_et_errors_on_project_id_and_status_last_seen_at_id_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_et_errors_on_project_id_and_status_last_seen_at_id_desc ON public.error_tracking_errors USING btree (project_id, status, last_seen_at DESC, id DESC); + + +-- +-- Name: index_events_author_id_group_id_action_target_type_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_events_author_id_group_id_action_target_type_created_at ON public.events USING btree (author_id, group_id, action, target_type, created_at); + + +-- +-- Name: index_events_author_id_project_id_action_target_type_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_events_author_id_project_id_action_target_type_created_at ON public.events USING btree (author_id, project_id, action, target_type, created_at); + + +-- +-- Name: index_events_for_followed_users; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_events_for_followed_users ON public.events USING btree (author_id, target_type, action, id); + + +-- +-- Name: index_events_for_group_activity; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_events_for_group_activity ON public.events USING btree (group_id, target_type, action, id) WHERE (group_id IS NOT NULL); + + +-- +-- Name: index_events_for_project_activity; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_events_for_project_activity ON public.events USING btree (project_id, target_type, action, id); + + +-- +-- Name: index_events_on_author_id_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_events_on_author_id_and_created_at ON public.events USING btree (author_id, created_at); + + +-- +-- Name: index_events_on_author_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_events_on_author_id_and_id ON public.events USING btree (author_id, id); + + +-- +-- Name: index_events_on_created_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_events_on_created_at_and_id ON public.events USING btree (created_at, id) WHERE (created_at > '2021-08-27 00:00:00+00'::timestamp with time zone); + + +-- +-- Name: index_events_on_group_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_events_on_group_id_and_id ON public.events USING btree (group_id, id) WHERE (group_id IS NOT NULL); + + +-- +-- Name: index_events_on_group_id_partial; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_events_on_group_id_partial ON public.events USING btree (group_id) WHERE (group_id IS NOT NULL); + + +-- +-- Name: index_events_on_project_id_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_events_on_project_id_and_created_at ON public.events USING btree (project_id, created_at); + + +-- +-- Name: index_events_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_events_on_project_id_and_id ON public.events USING btree (project_id, id); + + +-- +-- Name: index_events_on_target_type_and_target_id_and_fingerprint; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_events_on_target_type_and_target_id_and_fingerprint ON public.events USING btree (target_type, target_id, fingerprint); + + +-- +-- Name: index_evidences_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_evidences_on_project_id ON public.evidences USING btree (project_id); + + +-- +-- Name: index_evidences_on_release_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_evidences_on_release_id ON public.evidences USING btree (release_id); + + +-- +-- Name: index_expired_and_not_notified_personal_access_tokens; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_expired_and_not_notified_personal_access_tokens ON public.personal_access_tokens USING btree (id, expires_at) WHERE ((impersonation = false) AND (revoked = false) AND (expire_notification_delivered = false)); + + +-- +-- Name: index_external_audit_event_destinations_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_external_audit_event_destinations_on_namespace_id ON public.audit_events_external_audit_event_destinations USING btree (namespace_id, destination_url); + + +-- +-- Name: index_external_pull_requests_on_project_and_branches; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_external_pull_requests_on_project_and_branches ON public.external_pull_requests USING btree (project_id, source_branch, target_branch); + + +-- +-- Name: index_external_status_checks_protected_branches_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_external_status_checks_protected_branches_on_project_id ON public.external_status_checks_protected_branches USING btree (project_id); + + +-- +-- Name: index_feature_flag_scopes_on_flag_id_and_environment_scope; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_feature_flag_scopes_on_flag_id_and_environment_scope ON public.operations_feature_flag_scopes USING btree (feature_flag_id, environment_scope); + + +-- +-- Name: index_feature_flags_clients_on_project_id_and_token_encrypted; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_feature_flags_clients_on_project_id_and_token_encrypted ON public.operations_feature_flags_clients USING btree (project_id, token_encrypted); + + +-- +-- Name: index_feature_gates_on_feature_key_and_key_and_value; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_feature_gates_on_feature_key_and_key_and_value ON public.feature_gates USING btree (feature_key, key, value); + + +-- +-- Name: index_features_on_key; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_features_on_key ON public.features USING btree (key); + + +-- +-- Name: index_for_owasp_top_10_group_level_reports; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_for_owasp_top_10_group_level_reports ON public.vulnerability_reads USING btree (owasp_top_10, state, report_type, severity, traversal_ids, vulnerability_id, resolved_on_default_branch) WHERE (archived = false); + + +-- +-- Name: index_for_protected_environment_group_id_of_protected_environme; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_for_protected_environment_group_id_of_protected_environme ON public.protected_environment_deploy_access_levels USING btree (protected_environment_group_id); + + +-- +-- Name: index_for_protected_environment_project_id_of_protected_environ; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_for_protected_environment_project_id_of_protected_environ ON public.protected_environment_deploy_access_levels USING btree (protected_environment_project_id); + + +-- +-- Name: index_for_security_scans_scan_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_for_security_scans_scan_type ON public.security_scans USING btree (scan_type, project_id, pipeline_id) WHERE (status = 1); + + +-- +-- Name: index_for_status_per_branch_per_project; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_for_status_per_branch_per_project ON public.merge_trains USING btree (target_project_id, target_branch, status); + + +-- +-- Name: index_fork_network_members_on_fork_network_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_fork_network_members_on_fork_network_id ON public.fork_network_members USING btree (fork_network_id); + + +-- +-- Name: index_fork_network_members_on_forked_from_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_fork_network_members_on_forked_from_project_id ON public.fork_network_members USING btree (forked_from_project_id); + + +-- +-- Name: index_fork_network_members_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_fork_network_members_on_project_id ON public.fork_network_members USING btree (project_id); + + +-- +-- Name: index_fork_networks_on_root_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_fork_networks_on_root_project_id ON public.fork_networks USING btree (root_project_id); + + +-- +-- Name: index_geo_event_log_on_cache_invalidation_event_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_geo_event_log_on_cache_invalidation_event_id ON public.geo_event_log USING btree (cache_invalidation_event_id) WHERE (cache_invalidation_event_id IS NOT NULL); + + +-- +-- Name: index_geo_event_log_on_geo_event_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_geo_event_log_on_geo_event_id ON public.geo_event_log USING btree (geo_event_id) WHERE (geo_event_id IS NOT NULL); + + +-- +-- Name: index_geo_event_log_on_repositories_changed_event_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_geo_event_log_on_repositories_changed_event_id ON public.geo_event_log USING btree (repositories_changed_event_id) WHERE (repositories_changed_event_id IS NOT NULL); + + +-- +-- Name: index_geo_node_namespace_links_on_geo_node_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_geo_node_namespace_links_on_geo_node_id ON public.geo_node_namespace_links USING btree (geo_node_id); + + +-- +-- Name: index_geo_node_namespace_links_on_geo_node_id_and_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_geo_node_namespace_links_on_geo_node_id_and_namespace_id ON public.geo_node_namespace_links USING btree (geo_node_id, namespace_id); + + +-- +-- Name: index_geo_node_namespace_links_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_geo_node_namespace_links_on_namespace_id ON public.geo_node_namespace_links USING btree (namespace_id); + + +-- +-- Name: index_geo_node_statuses_on_geo_node_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_geo_node_statuses_on_geo_node_id ON public.geo_node_statuses USING btree (geo_node_id); + + +-- +-- Name: index_geo_nodes_on_access_key; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_geo_nodes_on_access_key ON public.geo_nodes USING btree (access_key); + + +-- +-- Name: index_geo_nodes_on_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_geo_nodes_on_name ON public.geo_nodes USING btree (name); + + +-- +-- Name: index_geo_nodes_on_primary; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_geo_nodes_on_primary ON public.geo_nodes USING btree ("primary"); + + +-- +-- Name: index_ghost_user_migrations_on_consume_after_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ghost_user_migrations_on_consume_after_id ON public.ghost_user_migrations USING btree (consume_after, id); + + +-- +-- Name: index_ghost_user_migrations_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ghost_user_migrations_on_user_id ON public.ghost_user_migrations USING btree (user_id); + + +-- +-- Name: index_gin_ci_namespace_mirrors_on_traversal_ids; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_gin_ci_namespace_mirrors_on_traversal_ids ON public.ci_namespace_mirrors USING gin (traversal_ids); + + +-- +-- Name: index_gin_ci_pending_builds_on_namespace_traversal_ids; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_gin_ci_pending_builds_on_namespace_traversal_ids ON public.ci_pending_builds USING gin (namespace_traversal_ids); + + +-- +-- Name: index_gitlab_subscription_histories_on_gitlab_subscription_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_gitlab_subscription_histories_on_gitlab_subscription_id ON public.gitlab_subscription_histories USING btree (gitlab_subscription_id); + + +-- +-- Name: index_gitlab_subscription_histories_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_gitlab_subscription_histories_on_namespace_id ON public.gitlab_subscription_histories USING btree (namespace_id); + + +-- +-- Name: index_gitlab_subscriptions_on_end_date_and_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_gitlab_subscriptions_on_end_date_and_namespace_id ON public.gitlab_subscriptions USING btree (end_date, namespace_id); + + +-- +-- Name: index_gitlab_subscriptions_on_hosted_plan_id_and_trial; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_gitlab_subscriptions_on_hosted_plan_id_and_trial ON public.gitlab_subscriptions USING btree (hosted_plan_id, trial); + + +-- +-- Name: index_gitlab_subscriptions_on_max_seats_used_changed_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_gitlab_subscriptions_on_max_seats_used_changed_at ON public.gitlab_subscriptions USING btree (max_seats_used_changed_at, namespace_id); + + +-- +-- Name: index_gitlab_subscriptions_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_gitlab_subscriptions_on_namespace_id ON public.gitlab_subscriptions USING btree (namespace_id); + + +-- +-- Name: index_gitlab_subscriptions_on_trial_and_trial_starts_on; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_gitlab_subscriptions_on_trial_and_trial_starts_on ON public.gitlab_subscriptions USING btree (trial, trial_starts_on); + + +-- +-- Name: index_gpg_key_subkeys_on_fingerprint; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_gpg_key_subkeys_on_fingerprint ON public.gpg_key_subkeys USING btree (fingerprint); + + +-- +-- Name: index_gpg_key_subkeys_on_gpg_key_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_gpg_key_subkeys_on_gpg_key_id ON public.gpg_key_subkeys USING btree (gpg_key_id); + + +-- +-- Name: index_gpg_key_subkeys_on_keyid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_gpg_key_subkeys_on_keyid ON public.gpg_key_subkeys USING btree (keyid); + + +-- +-- Name: index_gpg_keys_on_fingerprint; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_gpg_keys_on_fingerprint ON public.gpg_keys USING btree (fingerprint); + + +-- +-- Name: index_gpg_keys_on_primary_keyid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_gpg_keys_on_primary_keyid ON public.gpg_keys USING btree (primary_keyid); + + +-- +-- Name: index_gpg_keys_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_gpg_keys_on_user_id ON public.gpg_keys USING btree (user_id); + + +-- +-- Name: index_gpg_signatures_on_commit_sha; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_gpg_signatures_on_commit_sha ON public.gpg_signatures USING btree (commit_sha); + + +-- +-- Name: index_gpg_signatures_on_gpg_key_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_gpg_signatures_on_gpg_key_id_and_id ON public.gpg_signatures USING btree (gpg_key_id, id); + + +-- +-- Name: index_gpg_signatures_on_gpg_key_primary_keyid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_gpg_signatures_on_gpg_key_primary_keyid ON public.gpg_signatures USING btree (gpg_key_primary_keyid); + + +-- +-- Name: index_gpg_signatures_on_gpg_key_subkey_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_gpg_signatures_on_gpg_key_subkey_id ON public.gpg_signatures USING btree (gpg_key_subkey_id); + + +-- +-- Name: index_gpg_signatures_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_gpg_signatures_on_project_id ON public.gpg_signatures USING btree (project_id); + + +-- +-- Name: index_grafana_integrations_on_enabled; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_grafana_integrations_on_enabled ON public.grafana_integrations USING btree (enabled) WHERE (enabled IS TRUE); + + +-- +-- Name: index_grafana_integrations_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_grafana_integrations_on_project_id ON public.grafana_integrations USING btree (project_id); + + +-- +-- Name: index_group_crm_settings_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_crm_settings_on_group_id ON public.group_crm_settings USING btree (group_id); + + +-- +-- Name: index_group_crm_settings_on_source_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_crm_settings_on_source_group_id ON public.group_crm_settings USING btree (source_group_id); + + +-- +-- Name: index_group_custom_attributes_on_group_id_and_key; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_group_custom_attributes_on_group_id_and_key ON public.group_custom_attributes USING btree (group_id, key); + + +-- +-- Name: index_group_custom_attributes_on_key_and_value; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_custom_attributes_on_key_and_value ON public.group_custom_attributes USING btree (key, value); + + +-- +-- Name: index_group_deletion_schedules_on_marked_for_deletion_on; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_deletion_schedules_on_marked_for_deletion_on ON public.group_deletion_schedules USING btree (marked_for_deletion_on); + + +-- +-- Name: index_group_deletion_schedules_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_deletion_schedules_on_user_id ON public.group_deletion_schedules USING btree (user_id); + + +-- +-- Name: index_group_deploy_keys_group_on_group_deploy_key_and_group_ids; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_group_deploy_keys_group_on_group_deploy_key_and_group_ids ON public.group_deploy_keys_groups USING btree (group_id, group_deploy_key_id); + + +-- +-- Name: index_group_deploy_keys_groups_on_group_deploy_key_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_deploy_keys_groups_on_group_deploy_key_id ON public.group_deploy_keys_groups USING btree (group_deploy_key_id); + + +-- +-- Name: index_group_deploy_keys_on_fingerprint; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_deploy_keys_on_fingerprint ON public.group_deploy_keys USING btree (fingerprint); + + +-- +-- Name: index_group_deploy_keys_on_fingerprint_sha256_unique; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_group_deploy_keys_on_fingerprint_sha256_unique ON public.group_deploy_keys USING btree (fingerprint_sha256); + + +-- +-- Name: index_group_deploy_keys_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_deploy_keys_on_user_id ON public.group_deploy_keys USING btree (user_id); + + +-- +-- Name: index_group_deploy_tokens_on_deploy_token_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_deploy_tokens_on_deploy_token_id ON public.group_deploy_tokens USING btree (deploy_token_id); + + +-- +-- Name: index_group_deploy_tokens_on_group_and_deploy_token_ids; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_group_deploy_tokens_on_group_and_deploy_token_ids ON public.group_deploy_tokens USING btree (group_id, deploy_token_id); + + +-- +-- Name: index_group_group_links_on_member_role_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_group_links_on_member_role_id ON public.group_group_links USING btree (member_role_id); + + +-- +-- Name: index_group_group_links_on_shared_group_and_shared_with_group; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_group_group_links_on_shared_group_and_shared_with_group ON public.group_group_links USING btree (shared_group_id, shared_with_group_id); + + +-- +-- Name: index_group_group_links_on_shared_with_group_and_group_access; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_group_links_on_shared_with_group_and_group_access ON public.group_group_links USING btree (shared_with_group_id, group_access); + + +-- +-- Name: index_group_group_links_on_shared_with_group_and_shared_group; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_group_links_on_shared_with_group_and_shared_group ON public.group_group_links USING btree (shared_with_group_id, shared_group_id); + + +-- +-- Name: index_group_import_states_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_import_states_on_group_id ON public.group_import_states USING btree (group_id); + + +-- +-- Name: index_group_import_states_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_import_states_on_user_id ON public.group_import_states USING btree (user_id) WHERE (user_id IS NOT NULL); + + +-- +-- Name: index_group_repository_storage_moves_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_repository_storage_moves_on_group_id ON public.group_repository_storage_moves USING btree (group_id); + + +-- +-- Name: index_group_saved_replies_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_saved_replies_on_group_id ON public.group_saved_replies USING btree (group_id); + + +-- +-- Name: index_group_ssh_certificates_on_fingerprint; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_group_ssh_certificates_on_fingerprint ON public.group_ssh_certificates USING btree (fingerprint); + + +-- +-- Name: index_group_ssh_certificates_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_ssh_certificates_on_namespace_id ON public.group_ssh_certificates USING btree (namespace_id); + + +-- +-- Name: index_group_stages_on_group_id_group_value_stream_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_group_stages_on_group_id_group_value_stream_id_and_name ON public.analytics_cycle_analytics_group_stages USING btree (group_id, group_value_stream_id, name); + + +-- +-- Name: index_group_stages_on_stage_event_hash_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_stages_on_stage_event_hash_id ON public.analytics_cycle_analytics_group_stages USING btree (stage_event_hash_id); + + +-- +-- Name: index_group_user_callouts_feature; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_group_user_callouts_feature ON public.user_group_callouts USING btree (user_id, feature_name, group_id); + + +-- +-- Name: index_group_wiki_repositories_on_disk_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_group_wiki_repositories_on_disk_path ON public.group_wiki_repositories USING btree (disk_path); + + +-- +-- Name: index_group_wiki_repositories_on_shard_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_wiki_repositories_on_shard_id ON public.group_wiki_repositories USING btree (shard_id); + + +-- +-- Name: index_group_wiki_repository_states_failed_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_wiki_repository_states_failed_verification ON public.group_wiki_repository_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); + + +-- +-- Name: index_group_wiki_repository_states_needs_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_wiki_repository_states_needs_verification ON public.group_wiki_repository_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); + + +-- +-- Name: index_group_wiki_repository_states_on_group_wiki_repository_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_group_wiki_repository_states_on_group_wiki_repository_id ON public.group_wiki_repository_states USING btree (group_wiki_repository_id); + + +-- +-- Name: index_group_wiki_repository_states_on_verification_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_wiki_repository_states_on_verification_state ON public.group_wiki_repository_states USING btree (verification_state); + + +-- +-- Name: index_group_wiki_repository_states_pending_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_group_wiki_repository_states_pending_verification ON public.group_wiki_repository_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); + + +-- +-- Name: index_groups_on_parent_id_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_groups_on_parent_id_id ON public.namespaces USING btree (parent_id, id) WHERE ((type)::text = 'Group'::text); + + +-- +-- Name: index_groups_on_path_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_groups_on_path_and_id ON public.namespaces USING btree (path, id) WHERE ((type)::text = 'Group'::text); + + +-- +-- Name: index_groups_visits_on_entity_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_groups_visits_on_entity_id ON ONLY public.groups_visits USING btree (entity_id); + + +-- +-- Name: index_groups_visits_on_user_id_and_entity_id_and_visited_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_groups_visits_on_user_id_and_entity_id_and_visited_at ON ONLY public.groups_visits USING btree (user_id, entity_id, visited_at); + + +-- +-- Name: index_historical_data_on_recorded_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_historical_data_on_recorded_at ON public.historical_data USING btree (recorded_at); + + +-- +-- Name: index_http_integrations_on_project_and_endpoint; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_http_integrations_on_project_and_endpoint ON public.alert_management_http_integrations USING btree (project_id, endpoint_identifier); + + +-- +-- Name: index_identities_on_saml_provider_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_identities_on_saml_provider_id ON public.identities USING btree (saml_provider_id) WHERE (saml_provider_id IS NOT NULL); + + +-- +-- Name: index_identities_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_identities_on_user_id ON public.identities USING btree (user_id); + + +-- +-- Name: index_im_issuable_escalation_statuses_on_policy_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_im_issuable_escalation_statuses_on_policy_id ON public.incident_management_issuable_escalation_statuses USING btree (policy_id); + + +-- +-- Name: index_im_oncall_schedules_on_project_id_and_iid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_im_oncall_schedules_on_project_id_and_iid ON public.incident_management_oncall_schedules USING btree (project_id, iid); + + +-- +-- Name: index_im_timeline_event_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_im_timeline_event_id ON public.incident_management_timeline_event_tag_links USING btree (timeline_event_id); + + +-- +-- Name: index_im_timeline_event_tags_on_lower_name_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_im_timeline_event_tags_on_lower_name_and_project_id ON public.incident_management_timeline_event_tags USING btree (project_id, lower(name)); + + +-- +-- Name: index_im_timeline_event_tags_on_tag_id_and_event_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_im_timeline_event_tags_on_tag_id_and_event_id ON public.incident_management_timeline_event_tag_links USING btree (timeline_event_tag_id, timeline_event_id); + + +-- +-- Name: index_im_timeline_events_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_im_timeline_events_author_id ON public.incident_management_timeline_events USING btree (author_id); + + +-- +-- Name: index_im_timeline_events_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_im_timeline_events_issue_id ON public.incident_management_timeline_events USING btree (issue_id); + + +-- +-- Name: index_im_timeline_events_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_im_timeline_events_project_id ON public.incident_management_timeline_events USING btree (project_id); + + +-- +-- Name: index_im_timeline_events_promoted_from_note_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_im_timeline_events_promoted_from_note_id ON public.incident_management_timeline_events USING btree (promoted_from_note_id); + + +-- +-- Name: index_im_timeline_events_updated_by_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_im_timeline_events_updated_by_user_id ON public.incident_management_timeline_events USING btree (updated_by_user_id); + + +-- +-- Name: index_import_export_uploads_on_group_id_non_unique; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_export_uploads_on_group_id_non_unique ON public.import_export_uploads USING btree (group_id) WHERE (group_id IS NOT NULL); + + +-- +-- Name: index_import_export_uploads_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_export_uploads_on_project_id ON public.import_export_uploads USING btree (project_id); + + +-- +-- Name: index_import_export_uploads_on_updated_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_export_uploads_on_updated_at ON public.import_export_uploads USING btree (updated_at); + + +-- +-- Name: index_import_export_uploads_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_export_uploads_on_user_id ON public.import_export_uploads USING btree (user_id); + + +-- +-- Name: index_import_failures_on_correlation_id_value; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_failures_on_correlation_id_value ON public.import_failures USING btree (correlation_id_value); + + +-- +-- Name: index_import_failures_on_external_identifiers; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_failures_on_external_identifiers ON public.import_failures USING btree (external_identifiers) WHERE (external_identifiers <> '{}'::jsonb); + + +-- +-- Name: index_import_failures_on_group_id_not_null; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_failures_on_group_id_not_null ON public.import_failures USING btree (group_id) WHERE (group_id IS NOT NULL); + + +-- +-- Name: index_import_failures_on_project_id_and_correlation_id_value; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_failures_on_project_id_and_correlation_id_value ON public.import_failures USING btree (project_id, correlation_id_value) WHERE (retry_count = 0); + + +-- +-- Name: index_import_failures_on_project_id_not_null; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_failures_on_project_id_not_null ON public.import_failures USING btree (project_id) WHERE (project_id IS NOT NULL); + + +-- +-- Name: index_import_failures_on_user_id_not_null; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_failures_on_user_id_not_null ON public.import_failures USING btree (user_id) WHERE (user_id IS NOT NULL); + + +-- +-- Name: index_import_placeholder_memberships_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_placeholder_memberships_on_group_id ON public.import_placeholder_memberships USING btree (group_id); + + +-- +-- Name: index_import_placeholder_memberships_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_placeholder_memberships_on_namespace_id ON public.import_placeholder_memberships USING btree (namespace_id); + + +-- +-- Name: index_import_placeholder_memberships_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_placeholder_memberships_on_project_id ON public.import_placeholder_memberships USING btree (project_id); + + +-- +-- Name: index_import_placeholder_memberships_on_source_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_placeholder_memberships_on_source_user_id ON public.import_placeholder_memberships USING btree (source_user_id); + + +-- +-- Name: index_import_source_user_placeholder_references_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_source_user_placeholder_references_on_namespace_id ON public.import_source_user_placeholder_references USING btree (namespace_id); + + +-- +-- Name: index_import_source_user_placeholder_references_on_source_user_; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_source_user_placeholder_references_on_source_user_ ON public.import_source_user_placeholder_references USING btree (source_user_id); + + +-- +-- Name: index_import_source_users_on_namespace_id_and_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_source_users_on_namespace_id_and_status ON public.import_source_users USING btree (namespace_id, status); + + +-- +-- Name: index_import_source_users_on_placeholder_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_source_users_on_placeholder_user_id ON public.import_source_users USING btree (placeholder_user_id); + + +-- +-- Name: index_import_source_users_on_reassigned_by_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_import_source_users_on_reassigned_by_user_id ON public.import_source_users USING btree (reassigned_by_user_id); + + +-- +-- Name: index_imported_projects_on_import_type_creator_id_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_imported_projects_on_import_type_creator_id_created_at ON public.projects USING btree (import_type, creator_id, created_at) WHERE (import_type IS NOT NULL); + + +-- +-- Name: index_imported_projects_on_import_type_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_imported_projects_on_import_type_id ON public.projects USING btree (import_type, id) WHERE (import_type IS NOT NULL); + + +-- +-- Name: index_inc_mgmnt_oncall_participants_on_oncall_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_inc_mgmnt_oncall_participants_on_oncall_user_id ON public.incident_management_oncall_participants USING btree (user_id); + + +-- +-- Name: index_inc_mgmnt_oncall_participants_on_user_id_and_rotation_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_inc_mgmnt_oncall_participants_on_user_id_and_rotation_id ON public.incident_management_oncall_participants USING btree (user_id, oncall_rotation_id); + + +-- +-- Name: index_inc_mgmnt_oncall_pcpnt_on_oncall_rotation_id_is_removed; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_inc_mgmnt_oncall_pcpnt_on_oncall_rotation_id_is_removed ON public.incident_management_oncall_participants USING btree (oncall_rotation_id, is_removed); + + +-- +-- Name: index_inc_mgmnt_oncall_rotations_on_oncall_schedule_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_inc_mgmnt_oncall_rotations_on_oncall_schedule_id_and_id ON public.incident_management_oncall_rotations USING btree (oncall_schedule_id, id); + + +-- +-- Name: index_inc_mgmnt_oncall_rotations_on_oncall_schedule_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_inc_mgmnt_oncall_rotations_on_oncall_schedule_id_and_name ON public.incident_management_oncall_rotations USING btree (oncall_schedule_id, name); + + +-- +-- Name: index_incident_management_oncall_schedules_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_incident_management_oncall_schedules_on_project_id ON public.incident_management_oncall_schedules USING btree (project_id); + + +-- +-- Name: index_incident_management_oncall_shifts_on_participant_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_incident_management_oncall_shifts_on_participant_id ON public.incident_management_oncall_shifts USING btree (participant_id); + + +-- +-- Name: index_incident_management_pending_alert_escalations_on_alert_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_incident_management_pending_alert_escalations_on_alert_id ON ONLY public.incident_management_pending_alert_escalations USING btree (alert_id); + + +-- +-- Name: index_incident_management_pending_alert_escalations_on_rule_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_incident_management_pending_alert_escalations_on_rule_id ON ONLY public.incident_management_pending_alert_escalations USING btree (rule_id); + + +-- +-- Name: index_incident_management_pending_issue_escalations_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_incident_management_pending_issue_escalations_on_issue_id ON ONLY public.incident_management_pending_issue_escalations USING btree (issue_id); + + +-- +-- Name: index_incident_management_pending_issue_escalations_on_rule_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_incident_management_pending_issue_escalations_on_rule_id ON ONLY public.incident_management_pending_issue_escalations USING btree (rule_id); + + +-- +-- Name: index_index_statuses_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_index_statuses_on_project_id ON public.index_statuses USING btree (project_id); + + +-- +-- Name: index_insights_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_insights_on_namespace_id ON public.insights USING btree (namespace_id); + + +-- +-- Name: index_insights_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_insights_on_project_id ON public.insights USING btree (project_id); + + +-- +-- Name: index_integrations_on_inherit_from_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_integrations_on_inherit_from_id ON public.integrations USING btree (inherit_from_id); + + +-- +-- Name: index_integrations_on_project_and_type_new_where_inherit_null; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_integrations_on_project_and_type_new_where_inherit_null ON public.integrations USING btree (project_id, type_new) WHERE (inherit_from_id IS NULL); + + +-- +-- Name: index_integrations_on_project_id_and_type_new_unique; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_integrations_on_project_id_and_type_new_unique ON public.integrations USING btree (project_id, type_new); + + +-- +-- Name: index_integrations_on_type_new; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_integrations_on_type_new ON public.integrations USING btree (type_new); + + +-- +-- Name: index_integrations_on_type_new_and_instance_partial; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_integrations_on_type_new_and_instance_partial ON public.integrations USING btree (type_new, instance) WHERE (instance = true); + + +-- +-- Name: index_integrations_on_type_new_id_when_active_and_has_group; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_integrations_on_type_new_id_when_active_and_has_group ON public.integrations USING btree (type_new, id, inherit_from_id) WHERE ((active = true) AND (group_id IS NOT NULL)); + + +-- +-- Name: index_integrations_on_type_new_id_when_active_and_has_project; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_integrations_on_type_new_id_when_active_and_has_project ON public.integrations USING btree (type_new, id) WHERE ((active = true) AND (project_id IS NOT NULL)); + + +-- +-- Name: index_integrations_on_unique_group_id_and_type_new; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_integrations_on_unique_group_id_and_type_new ON public.integrations USING btree (group_id, type_new); + + +-- +-- Name: index_internal_ids_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_internal_ids_on_namespace_id ON public.internal_ids USING btree (namespace_id); + + +-- +-- Name: index_internal_ids_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_internal_ids_on_project_id ON public.internal_ids USING btree (project_id); + + +-- +-- Name: index_internal_ids_on_usage_and_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_internal_ids_on_usage_and_namespace_id ON public.internal_ids USING btree (usage, namespace_id) WHERE (namespace_id IS NOT NULL); + + +-- +-- Name: index_internal_ids_on_usage_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_internal_ids_on_usage_and_project_id ON public.internal_ids USING btree (usage, project_id) WHERE (project_id IS NOT NULL); + + +-- +-- Name: index_ip_restrictions_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ip_restrictions_on_group_id ON public.ip_restrictions USING btree (group_id); + + +-- +-- Name: index_issuable_metric_images_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issuable_metric_images_on_issue_id ON public.issuable_metric_images USING btree (issue_id); + + +-- +-- Name: index_issuable_resource_links_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issuable_resource_links_on_issue_id ON public.issuable_resource_links USING btree (issue_id); + + +-- +-- Name: index_issuable_severities_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_issuable_severities_on_issue_id ON public.issuable_severities USING btree (issue_id); + + +-- +-- Name: index_issuable_slas_on_due_at_id_label_applied_issuable_closed; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issuable_slas_on_due_at_id_label_applied_issuable_closed ON public.issuable_slas USING btree (due_at, id) WHERE ((label_applied = false) AND (issuable_closed = false)); + + +-- +-- Name: index_issuable_slas_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_issuable_slas_on_issue_id ON public.issuable_slas USING btree (issue_id); + + +-- +-- Name: index_issue_assignees_on_user_id_and_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_assignees_on_user_id_and_issue_id ON public.issue_assignees USING btree (user_id, issue_id); + + +-- +-- Name: index_issue_assignment_events_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_assignment_events_on_user_id ON public.issue_assignment_events USING btree (user_id); + + +-- +-- Name: index_issue_crm_contacts_on_issue_id_and_contact_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_issue_crm_contacts_on_issue_id_and_contact_id ON public.issue_customer_relations_contacts USING btree (issue_id, contact_id); + + +-- +-- Name: index_issue_customer_relations_contacts_on_contact_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_customer_relations_contacts_on_contact_id ON public.issue_customer_relations_contacts USING btree (contact_id); + + +-- +-- Name: index_issue_email_participants_on_issue_id_and_lower_email; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_issue_email_participants_on_issue_id_and_lower_email ON public.issue_email_participants USING btree (issue_id, lower(email)); + + +-- +-- Name: index_issue_emails_on_email_message_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_emails_on_email_message_id ON public.issue_emails USING btree (email_message_id); + + +-- +-- Name: index_issue_emails_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_emails_on_issue_id ON public.issue_emails USING btree (issue_id); + + +-- +-- Name: index_issue_links_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_links_on_namespace_id ON public.issue_links USING btree (namespace_id); + + +-- +-- Name: index_issue_links_on_source_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_links_on_source_id ON public.issue_links USING btree (source_id); + + +-- +-- Name: index_issue_links_on_source_id_and_target_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_issue_links_on_source_id_and_target_id ON public.issue_links USING btree (source_id, target_id); + + +-- +-- Name: index_issue_links_on_target_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_links_on_target_id ON public.issue_links USING btree (target_id); + + +-- +-- Name: index_issue_metrics_on_issue_id_and_timestamps; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_metrics_on_issue_id_and_timestamps ON public.issue_metrics USING btree (issue_id, first_mentioned_in_commit_at, first_associated_with_milestone_at, first_added_to_board_at); + + +-- +-- Name: index_issue_on_project_id_state_id_and_blocking_issues_count; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_on_project_id_state_id_and_blocking_issues_count ON public.issues USING btree (project_id, state_id, blocking_issues_count); + + +-- +-- Name: index_issue_tracker_data_on_integration_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issue_tracker_data_on_integration_id ON public.issue_tracker_data USING btree (integration_id); + + +-- +-- Name: index_issue_user_mentions_on_note_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_issue_user_mentions_on_note_id ON public.issue_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); + + +-- +-- Name: index_issues_on_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_author_id ON public.issues USING btree (author_id); + + +-- +-- Name: index_issues_on_author_id_and_id_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_author_id_and_id_and_created_at ON public.issues USING btree (author_id, id, created_at); + + +-- +-- Name: index_issues_on_closed_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_closed_by_id ON public.issues USING btree (closed_by_id); + + +-- +-- Name: index_issues_on_confidential; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_confidential ON public.issues USING btree (confidential); + + +-- +-- Name: index_issues_on_description_trigram_non_latin; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_description_trigram_non_latin ON public.issues USING gin (description public.gin_trgm_ops) WHERE (((title)::text !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text)) OR (description !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text))); + + +-- +-- Name: index_issues_on_duplicated_to_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_duplicated_to_id ON public.issues USING btree (duplicated_to_id) WHERE (duplicated_to_id IS NOT NULL); + + +-- +-- Name: index_issues_on_id_and_weight; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_id_and_weight ON public.issues USING btree (id, weight); + + +-- +-- Name: index_issues_on_last_edited_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_last_edited_by_id ON public.issues USING btree (last_edited_by_id); + + +-- +-- Name: index_issues_on_milestone_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_milestone_id_and_id ON public.issues USING btree (milestone_id, id); + + +-- +-- Name: index_issues_on_moved_to_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_moved_to_id ON public.issues USING btree (moved_to_id) WHERE (moved_to_id IS NOT NULL); + + +-- +-- Name: index_issues_on_namespace_id_iid_unique; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_issues_on_namespace_id_iid_unique ON public.issues USING btree (namespace_id, iid); + + +-- +-- Name: index_issues_on_project_health_status_asc_work_item_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_project_health_status_asc_work_item_type ON public.issues USING btree (project_id, health_status, id DESC, state_id, work_item_type_id); + + +-- +-- Name: index_issues_on_project_health_status_desc_work_item_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_project_health_status_desc_work_item_type ON public.issues USING btree (project_id, health_status DESC NULLS LAST, id DESC, state_id, work_item_type_id); + + +-- +-- Name: index_issues_on_project_id_and_external_key; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_issues_on_project_id_and_external_key ON public.issues USING btree (project_id, external_key) WHERE (external_key IS NOT NULL); + + +-- +-- Name: index_issues_on_project_id_and_iid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_issues_on_project_id_and_iid ON public.issues USING btree (project_id, iid); + + +-- +-- Name: index_issues_on_project_id_and_state_id_and_created_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_project_id_and_state_id_and_created_at_and_id ON public.issues USING btree (project_id, state_id, created_at, id); + + +-- +-- Name: index_issues_on_project_id_and_upvotes_count; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_project_id_and_upvotes_count ON public.issues USING btree (project_id, upvotes_count); + + +-- +-- Name: index_issues_on_project_id_closed_at_desc_state_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_project_id_closed_at_desc_state_id_and_id ON public.issues USING btree (project_id, closed_at DESC NULLS LAST, state_id, id); + + +-- +-- Name: index_issues_on_project_id_closed_at_state_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_project_id_closed_at_state_id_and_id ON public.issues USING btree (project_id, closed_at, state_id, id); + + +-- +-- Name: index_issues_on_project_id_health_status_created_at_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_project_id_health_status_created_at_id ON public.issues USING btree (project_id, health_status, created_at, id); + + +-- +-- Name: index_issues_on_promoted_to_epic_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_promoted_to_epic_id ON public.issues USING btree (promoted_to_epic_id) WHERE (promoted_to_epic_id IS NOT NULL); + + +-- +-- Name: index_issues_on_sprint_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_sprint_id ON public.issues USING btree (sprint_id); + + +-- +-- Name: index_issues_on_title_trigram_non_latin; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_title_trigram_non_latin ON public.issues USING gin (title public.gin_trgm_ops) WHERE (((title)::text !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text)) OR (description !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text))); + + +-- +-- Name: index_issues_on_updated_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_updated_at ON public.issues USING btree (updated_at); + + +-- +-- Name: index_issues_on_updated_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_updated_by_id ON public.issues USING btree (updated_by_id) WHERE (updated_by_id IS NOT NULL); + + +-- +-- Name: index_issues_on_work_item_type_id_project_id_created_at_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_issues_on_work_item_type_id_project_id_created_at_state ON public.issues USING btree (work_item_type_id, project_id, created_at, state_id); + + +-- +-- Name: index_iterations_cadences_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_iterations_cadences_on_group_id ON public.iterations_cadences USING btree (group_id); + + +-- +-- Name: index_jira_connect_installations_on_client_key; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_jira_connect_installations_on_client_key ON public.jira_connect_installations USING btree (client_key); + + +-- +-- Name: index_jira_connect_installations_on_instance_url; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_jira_connect_installations_on_instance_url ON public.jira_connect_installations USING btree (instance_url); + + +-- +-- Name: index_jira_connect_subscriptions_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_jira_connect_subscriptions_on_namespace_id ON public.jira_connect_subscriptions USING btree (namespace_id); + + +-- +-- Name: index_jira_imports_on_label_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_jira_imports_on_label_id ON public.jira_imports USING btree (label_id); + + +-- +-- Name: index_jira_imports_on_project_id_and_jira_project_key; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_jira_imports_on_project_id_and_jira_project_key ON public.jira_imports USING btree (project_id, jira_project_key); + + +-- +-- Name: index_jira_imports_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_jira_imports_on_user_id ON public.jira_imports USING btree (user_id); + + +-- +-- Name: index_jira_tracker_data_on_integration_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_jira_tracker_data_on_integration_id ON public.jira_tracker_data USING btree (integration_id); + + +-- +-- Name: index_job_artifact_states_failed_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_job_artifact_states_failed_verification ON public.ci_job_artifact_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); + + +-- +-- Name: index_job_artifact_states_needs_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_job_artifact_states_needs_verification ON public.ci_job_artifact_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); + + +-- +-- Name: index_job_artifact_states_on_verification_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_job_artifact_states_on_verification_state ON public.ci_job_artifact_states USING btree (verification_state); + + +-- +-- Name: index_job_artifact_states_pending_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_job_artifact_states_pending_verification ON public.ci_job_artifact_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); + + +-- +-- Name: index_key_updated_at_on_user_custom_attribute; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_key_updated_at_on_user_custom_attribute ON public.user_custom_attributes USING btree (key, updated_at); + + +-- +-- Name: index_keys_on_expires_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_keys_on_expires_at_and_id ON public.keys USING btree (date(timezone('UTC'::text, expires_at)), id) WHERE (expiry_notification_delivered_at IS NULL); + + +-- +-- Name: index_keys_on_fingerprint; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_keys_on_fingerprint ON public.keys USING btree (fingerprint); + + +-- +-- Name: index_keys_on_fingerprint_sha256_unique; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_keys_on_fingerprint_sha256_unique ON public.keys USING btree (fingerprint_sha256); + + +-- +-- Name: index_keys_on_id_and_ldap_key_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_keys_on_id_and_ldap_key_type ON public.keys USING btree (id) WHERE ((type)::text = 'LDAPKey'::text); + + +-- +-- Name: index_keys_on_last_used_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_keys_on_last_used_at ON public.keys USING btree (last_used_at DESC NULLS LAST); + + +-- +-- Name: index_keys_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_keys_on_user_id ON public.keys USING btree (user_id); + + +-- +-- Name: index_kubernetes_namespaces_on_cluster_project_environment_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_kubernetes_namespaces_on_cluster_project_environment_id ON public.clusters_kubernetes_namespaces USING btree (cluster_id, project_id, environment_id); + + +-- +-- Name: index_label_links_on_label_id_and_target_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_label_links_on_label_id_and_target_type ON public.label_links USING btree (label_id, target_type); + + +-- +-- Name: index_label_links_on_target_id_and_target_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_label_links_on_target_id_and_target_type ON public.label_links USING btree (target_id, target_type); + + +-- +-- Name: index_label_priorities_on_label_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_label_priorities_on_label_id ON public.label_priorities USING btree (label_id); + + +-- +-- Name: index_label_priorities_on_priority; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_label_priorities_on_priority ON public.label_priorities USING btree (priority); + + +-- +-- Name: index_label_priorities_on_project_id_and_label_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_label_priorities_on_project_id_and_label_id ON public.label_priorities USING btree (project_id, label_id); + + +-- +-- Name: index_labels_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_labels_on_group_id ON public.labels USING btree (group_id); + + +-- +-- Name: index_labels_on_group_id_and_title_varchar_unique; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_labels_on_group_id_and_title_varchar_unique ON public.labels USING btree (group_id, title varchar_pattern_ops) WHERE (project_id IS NULL); + + +-- +-- Name: index_labels_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_labels_on_project_id ON public.labels USING btree (project_id); + + +-- +-- Name: index_labels_on_project_id_and_title_varchar_unique; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_labels_on_project_id_and_title_varchar_unique ON public.labels USING btree (project_id, title varchar_pattern_ops) WHERE (group_id IS NULL); + + +-- +-- Name: index_labels_on_template; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_labels_on_template ON public.labels USING btree (template) WHERE template; + + +-- +-- Name: index_labels_on_title_varchar; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_labels_on_title_varchar ON public.labels USING btree (title varchar_pattern_ops); + + +-- +-- Name: index_labels_on_type_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_labels_on_type_and_project_id ON public.labels USING btree (type, project_id); + + +-- +-- Name: index_ldap_group_links_on_member_role_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ldap_group_links_on_member_role_id ON public.ldap_group_links USING btree (member_role_id); + + +-- +-- Name: index_lfs_file_locks_on_project_id_and_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_lfs_file_locks_on_project_id_and_path ON public.lfs_file_locks USING btree (project_id, path); + + +-- +-- Name: index_lfs_file_locks_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_lfs_file_locks_on_user_id ON public.lfs_file_locks USING btree (user_id); + + +-- +-- Name: index_lfs_object_states_failed_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_lfs_object_states_failed_verification ON public.lfs_object_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); + + +-- +-- Name: index_lfs_object_states_needs_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_lfs_object_states_needs_verification ON public.lfs_object_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); + + +-- +-- Name: index_lfs_object_states_on_lfs_object_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_lfs_object_states_on_lfs_object_id ON public.lfs_object_states USING btree (lfs_object_id); + + +-- +-- Name: index_lfs_object_states_on_verification_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_lfs_object_states_on_verification_state ON public.lfs_object_states USING btree (verification_state); + + +-- +-- Name: index_lfs_object_states_pending_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_lfs_object_states_pending_verification ON public.lfs_object_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); + + +-- +-- Name: index_lfs_objects_on_file; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_lfs_objects_on_file ON public.lfs_objects USING btree (file); + + +-- +-- Name: index_lfs_objects_on_file_store; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_lfs_objects_on_file_store ON public.lfs_objects USING btree (file_store); + + +-- +-- Name: index_lfs_objects_on_oid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_lfs_objects_on_oid ON public.lfs_objects USING btree (oid); + + +-- +-- Name: index_lfs_objects_projects_on_lfs_object_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_lfs_objects_projects_on_lfs_object_id ON public.lfs_objects_projects USING btree (lfs_object_id); + + +-- +-- Name: index_lfs_objects_projects_on_project_id_and_lfs_object_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_lfs_objects_projects_on_project_id_and_lfs_object_id ON public.lfs_objects_projects USING btree (project_id, lfs_object_id); + + +-- +-- Name: index_list_user_preferences_on_list_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_list_user_preferences_on_list_id ON public.list_user_preferences USING btree (list_id); + + +-- +-- Name: index_list_user_preferences_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_list_user_preferences_on_user_id ON public.list_user_preferences USING btree (user_id); + + +-- +-- Name: index_list_user_preferences_on_user_id_and_list_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_list_user_preferences_on_user_id_and_list_id ON public.list_user_preferences USING btree (user_id, list_id); + + +-- +-- Name: index_lists_on_board_id_and_label_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_lists_on_board_id_and_label_id ON public.lists USING btree (board_id, label_id); + + +-- +-- Name: index_lists_on_iteration_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_lists_on_iteration_id ON public.lists USING btree (iteration_id); + + +-- +-- Name: index_lists_on_label_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_lists_on_label_id ON public.lists USING btree (label_id); + + +-- +-- Name: index_lists_on_list_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_lists_on_list_type ON public.lists USING btree (list_type); + + +-- +-- Name: index_lists_on_milestone_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_lists_on_milestone_id ON public.lists USING btree (milestone_id); + + +-- +-- Name: index_lists_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_lists_on_user_id ON public.lists USING btree (user_id); + + +-- +-- Name: index_loose_foreign_keys_deleted_records_for_partitioned_query; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_loose_foreign_keys_deleted_records_for_partitioned_query ON ONLY public.loose_foreign_keys_deleted_records USING btree (partition, fully_qualified_table_name, consume_after, id) WHERE (status = 1); + + +-- +-- Name: index_manifest_states_failed_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_manifest_states_failed_verification ON public.dependency_proxy_manifest_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); + + +-- +-- Name: index_manifest_states_needs_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_manifest_states_needs_verification ON public.dependency_proxy_manifest_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); + + +-- +-- Name: index_manifest_states_on_dependency_proxy_manifest_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_manifest_states_on_dependency_proxy_manifest_id ON public.dependency_proxy_manifest_states USING btree (dependency_proxy_manifest_id); + + +-- +-- Name: index_manifest_states_on_verification_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_manifest_states_on_verification_state ON public.dependency_proxy_manifest_states USING btree (verification_state); + + +-- +-- Name: index_manifest_states_pending_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_manifest_states_pending_verification ON public.dependency_proxy_manifest_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); + + +-- +-- Name: index_member_approval_on_member_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_member_approval_on_member_id ON public.member_approvals USING btree (member_id); + + +-- +-- Name: index_member_approval_on_member_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_member_approval_on_member_namespace_id ON public.member_approvals USING btree (member_namespace_id); + + +-- +-- Name: index_member_approval_on_requested_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_member_approval_on_requested_by_id ON public.member_approvals USING btree (requested_by_id); + + +-- +-- Name: index_member_approval_on_reviewed_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_member_approval_on_reviewed_by_id ON public.member_approvals USING btree (reviewed_by_id); + + +-- +-- Name: index_member_approvals_on_member_namespace_id_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_member_approvals_on_member_namespace_id_status ON public.member_approvals USING btree (member_namespace_id, status) WHERE (status = 0); + + +-- +-- Name: index_member_approvals_on_member_role_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_member_approvals_on_member_role_id ON public.member_approvals USING btree (member_role_id); + + +-- +-- Name: index_member_approvals_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_member_approvals_on_user_id ON public.member_approvals USING btree (user_id); + + +-- +-- Name: index_member_roles_on_name_unique; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_member_roles_on_name_unique ON public.member_roles USING btree (name) WHERE (namespace_id IS NULL); + + +-- +-- Name: index_member_roles_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_member_roles_on_namespace_id ON public.member_roles USING btree (namespace_id); + + +-- +-- Name: index_member_roles_on_namespace_id_name_unique; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_member_roles_on_namespace_id_name_unique ON public.member_roles USING btree (namespace_id, name) WHERE (namespace_id IS NOT NULL); + + +-- +-- Name: index_member_roles_on_occupies_seat; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_member_roles_on_occupies_seat ON public.member_roles USING btree (occupies_seat); + + +-- +-- Name: index_member_roles_on_permissions; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_member_roles_on_permissions ON public.member_roles USING gin (permissions); + + +-- +-- Name: index_members_on_access_level; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_members_on_access_level ON public.members USING btree (access_level); + + +-- +-- Name: index_members_on_expires_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_members_on_expires_at ON public.members USING btree (expires_at); + + +-- +-- Name: index_members_on_expiring_at_access_level_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_members_on_expiring_at_access_level_id ON public.members USING btree (expires_at, access_level, id) WHERE ((requested_at IS NULL) AND (expiry_notified_at IS NULL)); + + +-- +-- Name: index_members_on_invite_email; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_members_on_invite_email ON public.members USING btree (invite_email); + + +-- +-- Name: index_members_on_invite_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_members_on_invite_token ON public.members USING btree (invite_token); + + +-- +-- Name: index_members_on_lower_invite_email_with_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_members_on_lower_invite_email_with_token ON public.members USING btree (lower((invite_email)::text)) WHERE (invite_token IS NOT NULL); + + +-- +-- Name: index_members_on_member_namespace_id_compound; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_members_on_member_namespace_id_compound ON public.members USING btree (member_namespace_id, type, requested_at, id); + + +-- +-- Name: index_members_on_member_role_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_members_on_member_role_id ON public.members USING btree (member_role_id); + + +-- +-- Name: index_members_on_requested_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_members_on_requested_at ON public.members USING btree (requested_at); + + +-- +-- Name: index_members_on_source_and_type_and_access_level; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_members_on_source_and_type_and_access_level ON public.members USING btree (source_id, source_type, type, access_level); + + +-- +-- Name: index_members_on_source_and_type_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_members_on_source_and_type_and_id ON public.members USING btree (source_id, source_type, type, id) WHERE (invite_token IS NULL); + + +-- +-- Name: index_members_on_source_state_type_access_level_and_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_members_on_source_state_type_access_level_and_user_id ON public.members USING btree (source_id, source_type, state, type, access_level, user_id) WHERE ((requested_at IS NULL) AND (invite_token IS NULL)); + + +-- +-- Name: index_members_on_user_id_and_access_level_requested_at_is_null; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_members_on_user_id_and_access_level_requested_at_is_null ON public.members USING btree (user_id, access_level) WHERE (requested_at IS NULL); + + +-- +-- Name: index_members_on_user_id_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_members_on_user_id_created_at ON public.members USING btree (user_id, created_at) WHERE ((ldap = true) AND ((type)::text = 'GroupMember'::text) AND ((source_type)::text = 'Namespace'::text)); + + +-- +-- Name: index_merge_request_assignees_on_merge_request_id_and_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_merge_request_assignees_on_merge_request_id_and_user_id ON public.merge_request_assignees USING btree (merge_request_id, user_id); + + +-- +-- Name: index_merge_request_assignees_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_assignees_on_project_id ON public.merge_request_assignees USING btree (project_id); + + +-- +-- Name: index_merge_request_assignees_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_assignees_on_user_id ON public.merge_request_assignees USING btree (user_id); + + +-- +-- Name: index_merge_request_assignment_events_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_assignment_events_on_project_id ON public.merge_request_assignment_events USING btree (project_id); + + +-- +-- Name: index_merge_request_assignment_events_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_assignment_events_on_user_id ON public.merge_request_assignment_events USING btree (user_id); + + +-- +-- Name: index_merge_request_blocks_on_blocked_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_blocks_on_blocked_merge_request_id ON public.merge_request_blocks USING btree (blocked_merge_request_id); + + +-- +-- Name: index_merge_request_blocks_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_blocks_on_project_id ON public.merge_request_blocks USING btree (project_id); + + +-- +-- Name: index_merge_request_cleanup_schedules_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_merge_request_cleanup_schedules_on_merge_request_id ON public.merge_request_cleanup_schedules USING btree (merge_request_id); + + +-- +-- Name: index_merge_request_cleanup_schedules_on_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_cleanup_schedules_on_status ON public.merge_request_cleanup_schedules USING btree (status); + + +-- +-- Name: index_merge_request_context_commits_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_context_commits_on_project_id ON public.merge_request_context_commits USING btree (project_id); + + +-- +-- Name: index_merge_request_diff_commit_users_on_name_and_email; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_merge_request_diff_commit_users_on_name_and_email ON public.merge_request_diff_commit_users USING btree (name, email); + + +-- +-- Name: index_merge_request_diff_commits_on_sha; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_diff_commits_on_sha ON public.merge_request_diff_commits USING btree (sha); + + +-- +-- Name: index_merge_request_diff_details_failed_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_diff_details_failed_verification ON public.merge_request_diff_details USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); + + +-- +-- Name: index_merge_request_diff_details_needs_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_diff_details_needs_verification ON public.merge_request_diff_details USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); + + +-- +-- Name: index_merge_request_diff_details_on_merge_request_diff_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_diff_details_on_merge_request_diff_id ON public.merge_request_diff_details USING btree (merge_request_diff_id); + + +-- +-- Name: index_merge_request_diff_details_on_verification_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_diff_details_on_verification_state ON public.merge_request_diff_details USING btree (verification_state); + + +-- +-- Name: index_merge_request_diff_details_pending_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_diff_details_pending_verification ON public.merge_request_diff_details USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); + + +-- +-- Name: index_merge_request_diffs_by_id_partial; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_diffs_by_id_partial ON public.merge_request_diffs USING btree (id) WHERE ((files_count > 0) AND ((NOT stored_externally) OR (stored_externally IS NULL))); + + +-- +-- Name: index_merge_request_diffs_on_external_diff; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_diffs_on_external_diff ON public.merge_request_diffs USING btree (external_diff); + + +-- +-- Name: index_merge_request_diffs_on_external_diff_store; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_diffs_on_external_diff_store ON public.merge_request_diffs USING btree (external_diff_store); + + +-- +-- Name: index_merge_request_diffs_on_merge_request_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_diffs_on_merge_request_id_and_id ON public.merge_request_diffs USING btree (merge_request_id, id); + + +-- +-- Name: index_merge_request_diffs_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_diffs_on_project_id ON public.merge_request_diffs USING btree (project_id); + + +-- +-- Name: index_merge_request_diffs_on_unique_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_merge_request_diffs_on_unique_merge_request_id ON public.merge_request_diffs USING btree (merge_request_id) WHERE (diff_type = 2); + + +-- +-- Name: index_merge_request_metrics_on_first_deployed_to_production_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_metrics_on_first_deployed_to_production_at ON public.merge_request_metrics USING btree (first_deployed_to_production_at); + + +-- +-- Name: index_merge_request_metrics_on_latest_closed_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_metrics_on_latest_closed_at ON public.merge_request_metrics USING btree (latest_closed_at) WHERE (latest_closed_at IS NOT NULL); + + +-- +-- Name: index_merge_request_metrics_on_latest_closed_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_metrics_on_latest_closed_by_id ON public.merge_request_metrics USING btree (latest_closed_by_id); + + +-- +-- Name: index_merge_request_metrics_on_merge_request_id_and_merged_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_metrics_on_merge_request_id_and_merged_at ON public.merge_request_metrics USING btree (merge_request_id, merged_at) WHERE (merged_at IS NOT NULL); + + +-- +-- Name: index_merge_request_metrics_on_merged_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_metrics_on_merged_at ON public.merge_request_metrics USING btree (merged_at); + + +-- +-- Name: index_merge_request_metrics_on_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_metrics_on_pipeline_id ON public.merge_request_metrics USING btree (pipeline_id); + + +-- +-- Name: index_merge_request_requested_changes_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_requested_changes_on_merge_request_id ON public.merge_request_requested_changes USING btree (merge_request_id); + + +-- +-- Name: index_merge_request_requested_changes_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_requested_changes_on_project_id ON public.merge_request_requested_changes USING btree (project_id); + + +-- +-- Name: index_merge_request_requested_changes_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_requested_changes_on_user_id ON public.merge_request_requested_changes USING btree (user_id); + + +-- +-- Name: index_merge_request_reviewers_on_merge_request_id_and_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_merge_request_reviewers_on_merge_request_id_and_user_id ON public.merge_request_reviewers USING btree (merge_request_id, user_id); + + +-- +-- Name: index_merge_request_reviewers_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_reviewers_on_project_id ON public.merge_request_reviewers USING btree (project_id); + + +-- +-- Name: index_merge_request_reviewers_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_request_reviewers_on_user_id ON public.merge_request_reviewers USING btree (user_id); + + +-- +-- Name: index_merge_request_user_mentions_on_note_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_merge_request_user_mentions_on_note_id ON public.merge_request_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); + + +-- +-- Name: index_merge_requests_closing_issues_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_closing_issues_on_issue_id ON public.merge_requests_closing_issues USING btree (issue_id); + + +-- +-- Name: index_merge_requests_closing_issues_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_closing_issues_on_merge_request_id ON public.merge_requests_closing_issues USING btree (merge_request_id); + + +-- +-- Name: index_merge_requests_closing_issues_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_closing_issues_on_project_id ON public.merge_requests_closing_issues USING btree (project_id); + + +-- +-- Name: index_merge_requests_compliance_violations_on_violating_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_compliance_violations_on_violating_user_id ON public.merge_requests_compliance_violations USING btree (violating_user_id); + + +-- +-- Name: index_merge_requests_compliance_violations_unique_columns; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_merge_requests_compliance_violations_unique_columns ON public.merge_requests_compliance_violations USING btree (merge_request_id, violating_user_id, reason); + + +-- +-- Name: index_merge_requests_for_latest_diffs_with_state_merged; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_for_latest_diffs_with_state_merged ON public.merge_requests USING btree (latest_merge_request_diff_id, target_project_id) WHERE (state_id = 3); + + +-- +-- Name: index_merge_requests_id_created_at_prepared_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_id_created_at_prepared_at ON public.merge_requests USING btree (created_at, id) WHERE (prepared_at IS NULL); + + +-- +-- Name: index_merge_requests_on_assignee_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_assignee_id ON public.merge_requests USING btree (assignee_id); + + +-- +-- Name: index_merge_requests_on_author_id_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_author_id_and_created_at ON public.merge_requests USING btree (author_id, created_at); + + +-- +-- Name: index_merge_requests_on_author_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_author_id_and_id ON public.merge_requests USING btree (author_id, id); + + +-- +-- Name: index_merge_requests_on_author_id_and_target_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_author_id_and_target_project_id ON public.merge_requests USING btree (author_id, target_project_id); + + +-- +-- Name: index_merge_requests_on_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_created_at ON public.merge_requests USING btree (created_at); + + +-- +-- Name: index_merge_requests_on_description_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_description_trigram ON public.merge_requests USING gin (description public.gin_trgm_ops) WITH (fastupdate='false'); + + +-- +-- Name: index_merge_requests_on_head_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_head_pipeline_id ON public.merge_requests USING btree (head_pipeline_id); + + +-- +-- Name: index_merge_requests_on_latest_merge_request_diff_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_latest_merge_request_diff_id ON public.merge_requests USING btree (latest_merge_request_diff_id); + + +-- +-- Name: index_merge_requests_on_merge_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_merge_user_id ON public.merge_requests USING btree (merge_user_id) WHERE (merge_user_id IS NOT NULL); + + +-- +-- Name: index_merge_requests_on_milestone_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_milestone_id ON public.merge_requests USING btree (milestone_id); + + +-- +-- Name: index_merge_requests_on_source_branch; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_source_branch ON public.merge_requests USING btree (source_branch); + + +-- +-- Name: index_merge_requests_on_source_project_id_and_source_branch; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_source_project_id_and_source_branch ON public.merge_requests USING btree (source_project_id, source_branch); + + +-- +-- Name: index_merge_requests_on_sprint_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_sprint_id ON public.merge_requests USING btree (sprint_id); + + +-- +-- Name: index_merge_requests_on_target_branch; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_target_branch ON public.merge_requests USING btree (target_branch); + + +-- +-- Name: index_merge_requests_on_target_project_id_and_created_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_target_project_id_and_created_at_and_id ON public.merge_requests USING btree (target_project_id, created_at, id); + + +-- +-- Name: index_merge_requests_on_target_project_id_and_iid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_merge_requests_on_target_project_id_and_iid ON public.merge_requests USING btree (target_project_id, iid); + + +-- +-- Name: index_merge_requests_on_target_project_id_and_merged_commit_sha; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_target_project_id_and_merged_commit_sha ON public.merge_requests USING btree (target_project_id, merged_commit_sha); + + +-- +-- Name: index_merge_requests_on_target_project_id_and_source_branch; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_target_project_id_and_source_branch ON public.merge_requests USING btree (target_project_id, source_branch); + + +-- +-- Name: index_merge_requests_on_target_project_id_and_squash_commit_sha; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_target_project_id_and_squash_commit_sha ON public.merge_requests USING btree (target_project_id, squash_commit_sha); + + +-- +-- Name: index_merge_requests_on_target_project_id_and_target_branch; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_target_project_id_and_target_branch ON public.merge_requests USING btree (target_project_id, target_branch) WHERE ((state_id = 1) AND (merge_when_pipeline_succeeds = true)); + + +-- +-- Name: index_merge_requests_on_target_project_id_and_updated_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_target_project_id_and_updated_at_and_id ON public.merge_requests USING btree (target_project_id, updated_at, id); + + +-- +-- Name: index_merge_requests_on_title_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_title_trigram ON public.merge_requests USING gin (title public.gin_trgm_ops) WITH (fastupdate='false'); + + +-- +-- Name: index_merge_requests_on_tp_id_and_merge_commit_sha_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_tp_id_and_merge_commit_sha_and_id ON public.merge_requests USING btree (target_project_id, merge_commit_sha, id); + + +-- +-- Name: index_merge_requests_on_updated_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_requests_on_updated_by_id ON public.merge_requests USING btree (updated_by_id) WHERE (updated_by_id IS NOT NULL); + + +-- +-- Name: index_merge_trains_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_merge_trains_on_merge_request_id ON public.merge_trains USING btree (merge_request_id); + + +-- +-- Name: index_merge_trains_on_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_trains_on_pipeline_id ON public.merge_trains USING btree (pipeline_id); + + +-- +-- Name: index_merge_trains_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_merge_trains_on_user_id ON public.merge_trains USING btree (user_id); + + +-- +-- Name: index_metrics_dashboard_annotations_on_cluster_id_and_3_columns; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_metrics_dashboard_annotations_on_cluster_id_and_3_columns ON public.metrics_dashboard_annotations USING btree (cluster_id, dashboard_path, starting_at, ending_at) WHERE (cluster_id IS NOT NULL); + + +-- +-- Name: index_metrics_dashboard_annotations_on_environment_id_and_3_col; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_metrics_dashboard_annotations_on_environment_id_and_3_col ON public.metrics_dashboard_annotations USING btree (environment_id, dashboard_path, starting_at, ending_at) WHERE (environment_id IS NOT NULL); + + +-- +-- Name: index_metrics_dashboard_annotations_on_timespan_end; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_metrics_dashboard_annotations_on_timespan_end ON public.metrics_dashboard_annotations USING btree (COALESCE(ending_at, starting_at)); + + +-- +-- Name: index_metrics_users_starred_dashboards_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_metrics_users_starred_dashboards_on_project_id ON public.metrics_users_starred_dashboards USING btree (project_id); + + +-- +-- Name: index_migration_jobs_on_migration_id_and_finished_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_migration_jobs_on_migration_id_and_finished_at ON public.batched_background_migration_jobs USING btree (batched_background_migration_id, finished_at); + + +-- +-- Name: index_migration_jobs_on_migration_id_and_max_value; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_migration_jobs_on_migration_id_and_max_value ON public.batched_background_migration_jobs USING btree (batched_background_migration_id, max_value); + + +-- +-- Name: index_milestone_releases_on_release_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_milestone_releases_on_release_id ON public.milestone_releases USING btree (release_id); + + +-- +-- Name: index_milestones_on_description_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_milestones_on_description_trigram ON public.milestones USING gin (description public.gin_trgm_ops); + + +-- +-- Name: index_milestones_on_due_date; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_milestones_on_due_date ON public.milestones USING btree (due_date); + + +-- +-- Name: index_milestones_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_milestones_on_group_id ON public.milestones USING btree (group_id); + + +-- +-- Name: index_milestones_on_project_id_and_iid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_milestones_on_project_id_and_iid ON public.milestones USING btree (project_id, iid); + + +-- +-- Name: index_milestones_on_title; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_milestones_on_title ON public.milestones USING btree (title); + + +-- +-- Name: index_milestones_on_title_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_milestones_on_title_trigram ON public.milestones USING gin (title public.gin_trgm_ops); + + +-- +-- Name: index_mirror_data_non_scheduled_or_started; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_mirror_data_non_scheduled_or_started ON public.project_mirror_data USING btree (next_execution_timestamp, retry_count) WHERE ((status)::text <> ALL ('{scheduled,started}'::text[])); + + +-- +-- Name: index_ml_candidate_metadata_on_candidate_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ml_candidate_metadata_on_candidate_id_and_name ON public.ml_candidate_metadata USING btree (candidate_id, name); + + +-- +-- Name: index_ml_candidate_metadata_on_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_candidate_metadata_on_name ON public.ml_candidate_metadata USING btree (name); + + +-- +-- Name: index_ml_candidate_metadata_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_candidate_metadata_on_project_id ON public.ml_candidate_metadata USING btree (project_id); + + +-- +-- Name: index_ml_candidate_metrics_on_candidate_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_candidate_metrics_on_candidate_id ON public.ml_candidate_metrics USING btree (candidate_id); + + +-- +-- Name: index_ml_candidate_params_on_candidate_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_candidate_params_on_candidate_id ON public.ml_candidate_params USING btree (candidate_id); + + +-- +-- Name: index_ml_candidate_params_on_candidate_id_on_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ml_candidate_params_on_candidate_id_on_name ON public.ml_candidate_params USING btree (candidate_id, name); + + +-- +-- Name: index_ml_candidates_on_ci_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_candidates_on_ci_build_id ON public.ml_candidates USING btree (ci_build_id); + + +-- +-- Name: index_ml_candidates_on_experiment_id_and_eid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ml_candidates_on_experiment_id_and_eid ON public.ml_candidates USING btree (experiment_id, eid); + + +-- +-- Name: index_ml_candidates_on_model_version_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ml_candidates_on_model_version_id ON public.ml_candidates USING btree (model_version_id); + + +-- +-- Name: index_ml_candidates_on_package_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_candidates_on_package_id ON public.ml_candidates USING btree (package_id); + + +-- +-- Name: index_ml_candidates_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_candidates_on_project_id ON public.ml_candidates USING btree (project_id); + + +-- +-- Name: index_ml_candidates_on_project_id_on_internal_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_candidates_on_project_id_on_internal_id ON public.ml_candidates USING btree (project_id, internal_id); + + +-- +-- Name: index_ml_candidates_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_candidates_on_user_id ON public.ml_candidates USING btree (user_id); + + +-- +-- Name: index_ml_experiment_metadata_on_experiment_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ml_experiment_metadata_on_experiment_id_and_name ON public.ml_experiment_metadata USING btree (experiment_id, name); + + +-- +-- Name: index_ml_experiment_metadata_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_experiment_metadata_on_project_id ON public.ml_experiment_metadata USING btree (project_id); + + +-- +-- Name: index_ml_experiments_on_model_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_experiments_on_model_id ON public.ml_experiments USING btree (model_id); + + +-- +-- Name: index_ml_experiments_on_project_id_and_iid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ml_experiments_on_project_id_and_iid ON public.ml_experiments USING btree (project_id, iid); + + +-- +-- Name: index_ml_experiments_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ml_experiments_on_project_id_and_name ON public.ml_experiments USING btree (project_id, name); + + +-- +-- Name: index_ml_experiments_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_experiments_on_user_id ON public.ml_experiments USING btree (user_id); + + +-- +-- Name: index_ml_model_metadata_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_model_metadata_on_project_id ON public.ml_model_metadata USING btree (project_id); + + +-- +-- Name: index_ml_model_version_metadata_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_model_version_metadata_on_project_id ON public.ml_model_version_metadata USING btree (project_id); + + +-- +-- Name: index_ml_model_versions_on_created_at_on_model_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_model_versions_on_created_at_on_model_id ON public.ml_model_versions USING btree (model_id, created_at); + + +-- +-- Name: index_ml_model_versions_on_package_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_model_versions_on_package_id ON public.ml_model_versions USING btree (package_id); + + +-- +-- Name: index_ml_model_versions_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_model_versions_on_project_id ON public.ml_model_versions USING btree (project_id); + + +-- +-- Name: index_ml_model_versions_on_project_id_and_model_id_and_version; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ml_model_versions_on_project_id_and_model_id_and_version ON public.ml_model_versions USING btree (project_id, model_id, version); + + +-- +-- Name: index_ml_models_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_models_on_project_id ON public.ml_models USING btree (project_id); + + +-- +-- Name: index_ml_models_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ml_models_on_project_id_and_name ON public.ml_models USING btree (project_id, name); + + +-- +-- Name: index_ml_models_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ml_models_on_user_id ON public.ml_models USING btree (user_id); + + +-- +-- Name: index_mr_blocks_on_blocking_and_blocked_mr_ids; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_mr_blocks_on_blocking_and_blocked_mr_ids ON public.merge_request_blocks USING btree (blocking_merge_request_id, blocked_merge_request_id); + + +-- +-- Name: index_mr_cleanup_schedules_timestamps_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_mr_cleanup_schedules_timestamps_status ON public.merge_request_cleanup_schedules USING btree (scheduled_at) WHERE ((completed_at IS NULL) AND (status = 0)); + + +-- +-- Name: index_mr_context_commits_on_merge_request_id_and_sha; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_mr_context_commits_on_merge_request_id_and_sha ON public.merge_request_context_commits USING btree (merge_request_id, sha); + + +-- +-- Name: index_mr_metrics_on_target_project_id_merged_at_nulls_last; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_mr_metrics_on_target_project_id_merged_at_nulls_last ON public.merge_request_metrics USING btree (target_project_id, merged_at DESC NULLS LAST, id DESC); + + +-- +-- Name: index_mr_metrics_on_target_project_id_merged_at_time_to_merge; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_mr_metrics_on_target_project_id_merged_at_time_to_merge ON public.merge_request_metrics USING btree (target_project_id, merged_at, created_at) WHERE (merged_at > created_at); + + +-- +-- Name: index_namespace_admin_notes_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespace_admin_notes_on_namespace_id ON public.namespace_admin_notes USING btree (namespace_id); + + +-- +-- Name: index_namespace_aggregation_schedules_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_namespace_aggregation_schedules_on_namespace_id ON public.namespace_aggregation_schedules USING btree (namespace_id); + + +-- +-- Name: index_namespace_bans_on_namespace_id_and_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_namespace_bans_on_namespace_id_and_user_id ON public.namespace_bans USING btree (namespace_id, user_id); + + +-- +-- Name: index_namespace_bans_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespace_bans_on_user_id ON public.namespace_bans USING btree (user_id); + + +-- +-- Name: index_namespace_commit_emails_on_email_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespace_commit_emails_on_email_id ON public.namespace_commit_emails USING btree (email_id); + + +-- +-- Name: index_namespace_commit_emails_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespace_commit_emails_on_namespace_id ON public.namespace_commit_emails USING btree (namespace_id); + + +-- +-- Name: index_namespace_commit_emails_on_user_id_and_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_namespace_commit_emails_on_user_id_and_namespace_id ON public.namespace_commit_emails USING btree (user_id, namespace_id); + + +-- +-- Name: index_namespace_details_on_creator_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespace_details_on_creator_id ON public.namespace_details USING btree (creator_id); + + +-- +-- Name: index_namespace_import_users_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_namespace_import_users_on_namespace_id ON public.namespace_import_users USING btree (namespace_id); + + +-- +-- Name: index_namespace_import_users_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_namespace_import_users_on_user_id ON public.namespace_import_users USING btree (user_id); + + +-- +-- Name: index_namespace_root_storage_statistics_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_namespace_root_storage_statistics_on_namespace_id ON public.namespace_root_storage_statistics USING btree (namespace_id); + + +-- +-- Name: index_namespace_statistics_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_namespace_statistics_on_namespace_id ON public.namespace_statistics USING btree (namespace_id); + + +-- +-- Name: index_namespaces_name_parent_id_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_namespaces_name_parent_id_type ON public.namespaces USING btree (name, parent_id, type); + + +-- +-- Name: index_namespaces_on_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespaces_on_created_at ON public.namespaces USING btree (created_at); + + +-- +-- Name: index_namespaces_on_custom_project_templates_group_id_and_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespaces_on_custom_project_templates_group_id_and_type ON public.namespaces USING btree (custom_project_templates_group_id, type) WHERE (custom_project_templates_group_id IS NOT NULL); + + +-- +-- Name: index_namespaces_on_file_template_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespaces_on_file_template_project_id ON public.namespaces USING btree (file_template_project_id); + + +-- +-- Name: index_namespaces_on_ldap_sync_last_successful_update_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespaces_on_ldap_sync_last_successful_update_at ON public.namespaces USING btree (ldap_sync_last_successful_update_at); + + +-- +-- Name: index_namespaces_on_name_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespaces_on_name_trigram ON public.namespaces USING gin (name public.gin_trgm_ops); + + +-- +-- Name: index_namespaces_on_organization_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespaces_on_organization_id ON public.namespaces USING btree (organization_id); + + +-- +-- Name: index_namespaces_on_organization_id_for_groups; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespaces_on_organization_id_for_groups ON public.namespaces USING btree (organization_id) WHERE ((type)::text = 'Group'::text); + + +-- +-- Name: index_namespaces_on_owner_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespaces_on_owner_id ON public.namespaces USING btree (owner_id); + + +-- +-- Name: index_namespaces_on_parent_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_namespaces_on_parent_id_and_id ON public.namespaces USING btree (parent_id, id); + + +-- +-- Name: index_namespaces_on_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespaces_on_path ON public.namespaces USING btree (path); + + +-- +-- Name: index_namespaces_on_path_for_top_level_non_projects; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespaces_on_path_for_top_level_non_projects ON public.namespaces USING btree (lower((path)::text)) WHERE ((parent_id IS NULL) AND ((type)::text <> 'Project'::text)); + + +-- +-- Name: index_namespaces_on_path_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespaces_on_path_trigram ON public.namespaces USING gin (path public.gin_trgm_ops); + + +-- +-- Name: index_namespaces_on_push_rule_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_namespaces_on_push_rule_id ON public.namespaces USING btree (push_rule_id); + + +-- +-- Name: index_namespaces_on_runners_token_encrypted; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_namespaces_on_runners_token_encrypted ON public.namespaces USING btree (runners_token_encrypted); + + +-- +-- Name: index_namespaces_on_traversal_ids; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespaces_on_traversal_ids ON public.namespaces USING gin (traversal_ids); + + +-- +-- Name: index_namespaces_on_traversal_ids_for_groups; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespaces_on_traversal_ids_for_groups ON public.namespaces USING gin (traversal_ids) WHERE ((type)::text = 'Group'::text); + + +-- +-- Name: index_namespaces_on_traversal_ids_for_groups_btree; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespaces_on_traversal_ids_for_groups_btree ON public.namespaces USING btree (traversal_ids) WHERE ((type)::text = 'Group'::text); + + +-- +-- Name: index_namespaces_on_type_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespaces_on_type_and_id ON public.namespaces USING btree (type, id); + + +-- +-- Name: index_namespaces_public_groups_name_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespaces_public_groups_name_id ON public.namespaces USING btree (name, id) WHERE (((type)::text = 'Group'::text) AND (visibility_level = 20)); + + +-- +-- Name: index_namespaces_sync_events_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_namespaces_sync_events_on_namespace_id ON public.namespaces_sync_events USING btree (namespace_id); + + +-- +-- Name: index_non_requested_project_members_on_source_id_and_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_non_requested_project_members_on_source_id_and_type ON public.members USING btree (source_id, source_type) WHERE ((requested_at IS NULL) AND ((type)::text = 'ProjectMember'::text)); + + +-- +-- Name: index_note_diff_files_on_diff_note_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_note_diff_files_on_diff_note_id ON public.note_diff_files USING btree (diff_note_id); + + +-- +-- Name: index_note_metadata_on_note_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_note_metadata_on_note_id ON public.note_metadata USING btree (note_id); + + +-- +-- Name: index_notes_for_cherry_picked_merge_requests; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_notes_for_cherry_picked_merge_requests ON public.notes USING btree (project_id, commit_id) WHERE ((noteable_type)::text = 'MergeRequest'::text); + + +-- +-- Name: index_notes_on_author_id_and_created_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_notes_on_author_id_and_created_at_and_id ON public.notes USING btree (author_id, created_at, id); + + +-- +-- Name: index_notes_on_commit_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_notes_on_commit_id ON public.notes USING btree (commit_id); + + +-- +-- Name: index_notes_on_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_notes_on_created_at ON public.notes USING btree (created_at); + + +-- +-- Name: index_notes_on_discussion_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_notes_on_discussion_id ON public.notes USING btree (discussion_id); + + +-- +-- Name: index_notes_on_id_where_confidential; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_notes_on_id_where_confidential ON public.notes USING btree (id) WHERE (confidential = true); + + +-- +-- Name: index_notes_on_id_where_internal; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_notes_on_id_where_internal ON public.notes USING btree (id) WHERE (internal = true); + + +-- +-- Name: index_notes_on_line_code; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_notes_on_line_code ON public.notes USING btree (line_code); + + +-- +-- Name: index_notes_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_notes_on_namespace_id ON public.notes USING btree (namespace_id); + + +-- +-- Name: index_notes_on_noteable_id_and_noteable_type_and_system; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_notes_on_noteable_id_and_noteable_type_and_system ON public.notes USING btree (noteable_id, noteable_type, system); + + +-- +-- Name: index_notes_on_project_id_and_id_and_system_false; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_notes_on_project_id_and_id_and_system_false ON public.notes USING btree (project_id, id) WHERE (NOT system); + + +-- +-- Name: index_notes_on_project_id_and_noteable_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_notes_on_project_id_and_noteable_type ON public.notes USING btree (project_id, noteable_type); + + +-- +-- Name: index_notes_on_review_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_notes_on_review_id ON public.notes USING btree (review_id); + + +-- +-- Name: index_notification_settings_on_source_and_level_and_user; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_notification_settings_on_source_and_level_and_user ON public.notification_settings USING btree (source_id, source_type, level, user_id); + + +-- +-- Name: index_notifications_on_user_id_and_source_id_and_source_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_notifications_on_user_id_and_source_id_and_source_type ON public.notification_settings USING btree (user_id, source_id, source_type); + + +-- +-- Name: index_npm_metadata_caches_on_package_name_project_id_unique; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_npm_metadata_caches_on_package_name_project_id_unique ON public.packages_npm_metadata_caches USING btree (package_name, project_id) WHERE (project_id IS NOT NULL); + + +-- +-- Name: index_ns_root_stor_stats_on_registry_size_estimated; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ns_root_stor_stats_on_registry_size_estimated ON public.namespace_root_storage_statistics USING btree (registry_size_estimated); + + +-- +-- Name: index_ns_user_callouts_feature; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ns_user_callouts_feature ON public.user_namespace_callouts USING btree (user_id, feature_name, namespace_id); + + +-- +-- Name: index_oauth_access_grants_on_application_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_oauth_access_grants_on_application_id ON public.oauth_access_grants USING btree (application_id); + + +-- +-- Name: index_oauth_access_grants_on_resource_owner_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_oauth_access_grants_on_resource_owner_id ON public.oauth_access_grants USING btree (resource_owner_id, application_id, created_at); + + +-- +-- Name: index_oauth_access_grants_on_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_oauth_access_grants_on_token ON public.oauth_access_grants USING btree (token); + + +-- +-- Name: index_oauth_access_tokens_on_application_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_oauth_access_tokens_on_application_id ON public.oauth_access_tokens USING btree (application_id); + + +-- +-- Name: index_oauth_access_tokens_on_refresh_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_oauth_access_tokens_on_refresh_token ON public.oauth_access_tokens USING btree (refresh_token); + + +-- +-- Name: index_oauth_access_tokens_on_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_oauth_access_tokens_on_token ON public.oauth_access_tokens USING btree (token); + + +-- +-- Name: index_oauth_applications_on_owner_id_and_owner_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_oauth_applications_on_owner_id_and_owner_type ON public.oauth_applications USING btree (owner_id, owner_type); + + +-- +-- Name: index_oauth_applications_on_uid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_oauth_applications_on_uid ON public.oauth_applications USING btree (uid); + + +-- +-- Name: index_oauth_device_grants_on_application_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_oauth_device_grants_on_application_id ON public.oauth_device_grants USING btree (application_id); + + +-- +-- Name: index_oauth_device_grants_on_device_code; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_oauth_device_grants_on_device_code ON public.oauth_device_grants USING btree (device_code); + + +-- +-- Name: index_oauth_device_grants_on_user_code; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_oauth_device_grants_on_user_code ON public.oauth_device_grants USING btree (user_code); + + +-- +-- Name: index_oauth_openid_requests_on_access_grant_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_oauth_openid_requests_on_access_grant_id ON public.oauth_openid_requests USING btree (access_grant_id); + + +-- +-- Name: index_observability_logs_issues_connections_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_observability_logs_issues_connections_on_project_id ON public.observability_logs_issues_connections USING btree (project_id); + + +-- +-- Name: index_observability_metrics_issues_connections_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_observability_metrics_issues_connections_on_namespace_id ON public.observability_metrics_issues_connections USING btree (namespace_id); + + +-- +-- Name: index_observability_metrics_issues_connections_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_observability_metrics_issues_connections_on_project_id ON public.observability_metrics_issues_connections USING btree (project_id); + + +-- +-- Name: index_observability_traces_issues_connections_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_observability_traces_issues_connections_on_project_id ON public.observability_traces_issues_connections USING btree (project_id); + + +-- +-- Name: index_on_deploy_keys_id_and_type_and_public; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_on_deploy_keys_id_and_type_and_public ON public.keys USING btree (id, type) WHERE (public = true); + + +-- +-- Name: index_on_dingtalk_tracker_data_corpid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_dingtalk_tracker_data_corpid ON public.dingtalk_tracker_data USING btree (corpid) WHERE (corpid IS NOT NULL); + + +-- +-- Name: INDEX index_on_dingtalk_tracker_data_corpid; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON INDEX public.index_on_dingtalk_tracker_data_corpid IS 'JiHu-specific index'; + + +-- +-- Name: index_on_events_to_improve_contribution_analytics_performance; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_events_to_improve_contribution_analytics_performance ON public.events USING btree (project_id, target_type, action, created_at, author_id, id); + + +-- +-- Name: index_on_group_id_on_webhooks; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_group_id_on_webhooks ON public.web_hooks USING btree (group_id); + + +-- +-- Name: index_on_identities_lower_extern_uid_and_provider; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_identities_lower_extern_uid_and_provider ON public.identities USING btree (lower((extern_uid)::text), provider); + + +-- +-- Name: index_on_instance_statistics_recorded_at_and_identifier; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_on_instance_statistics_recorded_at_and_identifier ON public.analytics_usage_trends_measurements USING btree (identifier, recorded_at); + + +-- +-- Name: index_on_issue_assignment_events_issue_id_action_created_at_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_issue_assignment_events_issue_id_action_created_at_id ON public.issue_assignment_events USING btree (issue_id, action, created_at, id); + + +-- +-- Name: index_on_job_artifact_id_partition_id_verification_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_job_artifact_id_partition_id_verification_state ON public.ci_job_artifact_states USING btree (verification_state, job_artifact_id, partition_id); + + +-- +-- Name: index_on_label_links_all_columns; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_label_links_all_columns ON public.label_links USING btree (target_id, label_id, target_type); + + +-- +-- Name: index_on_merge_request_diffs_head_commit_sha; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_merge_request_diffs_head_commit_sha ON public.merge_request_diffs USING btree (head_commit_sha); + + +-- +-- Name: index_on_merge_request_reviewers_user_id_and_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_merge_request_reviewers_user_id_and_state ON public.merge_request_reviewers USING btree (user_id, state) WHERE (state = 2); + + +-- +-- Name: index_on_merge_requests_for_latest_diffs; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_merge_requests_for_latest_diffs ON public.merge_requests USING btree (target_project_id) INCLUDE (id, latest_merge_request_diff_id); + + +-- +-- Name: INDEX index_on_merge_requests_for_latest_diffs; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON INDEX public.index_on_merge_requests_for_latest_diffs IS 'Index used to efficiently obtain the oldest merge request for a commit SHA'; + + +-- +-- Name: index_on_mr_assignment_events_mr_id_action_created_at_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_mr_assignment_events_mr_id_action_created_at_id ON public.merge_request_assignment_events USING btree (merge_request_id, action, created_at, id); + + +-- +-- Name: index_on_namespaces_lower_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_namespaces_lower_name ON public.namespaces USING btree (lower((name)::text)); + + +-- +-- Name: index_on_namespaces_lower_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_namespaces_lower_path ON public.namespaces USING btree (lower((path)::text)); + + +-- +-- Name: index_on_namespaces_namespaces_by_top_level_namespace; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_namespaces_namespaces_by_top_level_namespace ON public.namespaces USING btree ((traversal_ids[1]), type, id); + + +-- +-- Name: index_on_oncall_schedule_escalation_rule; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_oncall_schedule_escalation_rule ON public.incident_management_escalation_rules USING btree (oncall_schedule_id); + + +-- +-- Name: index_on_pages_metadata_not_migrated; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_pages_metadata_not_migrated ON public.project_pages_metadata USING btree (project_id) WHERE ((deployed = true) AND (pages_deployment_id IS NULL)); + + +-- +-- Name: index_on_project_id_escalation_policy_name_unique; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_on_project_id_escalation_policy_name_unique ON public.incident_management_escalation_policies USING btree (project_id, name); + + +-- +-- Name: index_on_routes_lower_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_routes_lower_path ON public.routes USING btree (lower((path)::text)); + + +-- +-- Name: index_on_sbom_sources_package_manager_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_sbom_sources_package_manager_name ON public.sbom_sources USING btree ((((source -> 'package_manager'::text) ->> 'name'::text))); + + +-- +-- Name: index_on_todos_user_project_target_and_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_todos_user_project_target_and_state ON public.todos USING btree (user_id, project_id, target_type, target_id, id) WHERE ((state)::text = 'pending'::text); + + +-- +-- Name: index_on_users_lower_email; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_users_lower_email ON public.users USING btree (lower((email)::text)); + + +-- +-- Name: index_on_users_lower_username; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_users_lower_username ON public.users USING btree (lower((username)::text)); + + +-- +-- Name: index_on_users_name_lower; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_users_name_lower ON public.users USING btree (lower((name)::text)); + + +-- +-- Name: index_on_value_stream_dashboard_aggregations_last_run_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_on_value_stream_dashboard_aggregations_last_run_at_and_id ON public.value_stream_dashboard_aggregations USING btree (last_run_at NULLS FIRST, namespace_id) WHERE (enabled IS TRUE); + + +-- +-- Name: index_onboarding_progresses_for_create_track; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_onboarding_progresses_for_create_track ON public.onboarding_progresses USING btree (created_at) WHERE (git_write_at IS NULL); + + +-- +-- Name: index_onboarding_progresses_for_team_track; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_onboarding_progresses_for_team_track ON public.onboarding_progresses USING btree (GREATEST(git_write_at, pipeline_created_at, trial_started_at)) WHERE ((git_write_at IS NOT NULL) AND (pipeline_created_at IS NOT NULL) AND (trial_started_at IS NOT NULL) AND (user_added_at IS NULL)); + + +-- +-- Name: index_onboarding_progresses_for_trial_track; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_onboarding_progresses_for_trial_track ON public.onboarding_progresses USING btree (GREATEST(git_write_at, pipeline_created_at)) WHERE ((git_write_at IS NOT NULL) AND (pipeline_created_at IS NOT NULL) AND (trial_started_at IS NULL)); + + +-- +-- Name: index_onboarding_progresses_for_verify_track; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_onboarding_progresses_for_verify_track ON public.onboarding_progresses USING btree (git_write_at) WHERE ((git_write_at IS NOT NULL) AND (pipeline_created_at IS NULL)); + + +-- +-- Name: index_onboarding_progresses_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_onboarding_progresses_on_namespace_id ON public.onboarding_progresses USING btree (namespace_id); + + +-- +-- Name: index_oncall_shifts_on_rotation_id_and_starts_at_and_ends_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_oncall_shifts_on_rotation_id_and_starts_at_and_ends_at ON public.incident_management_oncall_shifts USING btree (rotation_id, starts_at, ends_at); + + +-- +-- Name: index_operations_feature_flags_issues_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_operations_feature_flags_issues_on_issue_id ON public.operations_feature_flags_issues USING btree (issue_id); + + +-- +-- Name: index_operations_feature_flags_issues_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_operations_feature_flags_issues_on_project_id ON public.operations_feature_flags_issues USING btree (project_id); + + +-- +-- Name: index_operations_feature_flags_on_project_id_and_iid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_operations_feature_flags_on_project_id_and_iid ON public.operations_feature_flags USING btree (project_id, iid); + + +-- +-- Name: index_operations_feature_flags_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_operations_feature_flags_on_project_id_and_name ON public.operations_feature_flags USING btree (project_id, name); + + +-- +-- Name: index_operations_scopes_on_strategy_id_and_environment_scope; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_operations_scopes_on_strategy_id_and_environment_scope ON public.operations_scopes USING btree (strategy_id, environment_scope); + + +-- +-- Name: index_operations_strategies_on_feature_flag_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_operations_strategies_on_feature_flag_id ON public.operations_strategies USING btree (feature_flag_id); + + +-- +-- Name: index_operations_strategies_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_operations_strategies_on_project_id ON public.operations_strategies USING btree (project_id); + + +-- +-- Name: index_operations_strategies_user_lists_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_operations_strategies_user_lists_on_project_id ON public.operations_strategies_user_lists USING btree (project_id); + + +-- +-- Name: index_operations_strategies_user_lists_on_user_list_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_operations_strategies_user_lists_on_user_list_id ON public.operations_strategies_user_lists USING btree (user_list_id); + + +-- +-- Name: index_operations_user_lists_on_project_id_and_iid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_operations_user_lists_on_project_id_and_iid ON public.operations_user_lists USING btree (project_id, iid); + + +-- +-- Name: index_operations_user_lists_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_operations_user_lists_on_project_id_and_name ON public.operations_user_lists USING btree (project_id, name); + + +-- +-- Name: index_ops_feature_flags_issues_on_feature_flag_id_and_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ops_feature_flags_issues_on_feature_flag_id_and_issue_id ON public.operations_feature_flags_issues USING btree (feature_flag_id, issue_id); + + +-- +-- Name: index_ops_strategies_user_lists_on_strategy_id_and_user_list_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ops_strategies_user_lists_on_strategy_id_and_user_list_id ON public.operations_strategies_user_lists USING btree (strategy_id, user_list_id); + + +-- +-- Name: index_organization_users_on_org_id_access_level_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_organization_users_on_org_id_access_level_user_id ON public.organization_users USING btree (organization_id, access_level, user_id); + + +-- +-- Name: index_organization_users_on_organization_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_organization_users_on_organization_id_and_id ON public.organization_users USING btree (organization_id, id); + + +-- +-- Name: index_organization_users_on_organization_id_and_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_organization_users_on_organization_id_and_user_id ON public.organization_users USING btree (organization_id, user_id); + + +-- +-- Name: index_organization_users_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_organization_users_on_user_id ON public.organization_users USING btree (user_id); + + +-- +-- Name: index_organizations_on_name_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_organizations_on_name_trigram ON public.organizations USING gin (name public.gin_trgm_ops); + + +-- +-- Name: index_organizations_on_path_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_organizations_on_path_trigram ON public.organizations USING gin (path public.gin_trgm_ops); + + +-- +-- Name: index_organizations_on_unique_name_per_group; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_organizations_on_unique_name_per_group ON public.customer_relations_organizations USING btree (group_id, lower(name), id); + + +-- +-- Name: index_p_catalog_resource_component_usages_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_p_catalog_resource_component_usages_on_project_id ON ONLY public.p_catalog_resource_component_usages USING btree (project_id); + + +-- +-- Name: index_p_catalog_resource_sync_events_on_id_where_pending; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_p_catalog_resource_sync_events_on_id_where_pending ON ONLY public.p_catalog_resource_sync_events USING btree (id) WHERE (status = 1); + + +-- +-- Name: index_p_ci_build_names_on_project_id_and_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_p_ci_build_names_on_project_id_and_build_id ON ONLY public.p_ci_build_names USING btree (project_id, build_id); + + +-- +-- Name: index_p_ci_build_names_on_search_vector; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_p_ci_build_names_on_search_vector ON ONLY public.p_ci_build_names USING gin (search_vector); + + +-- +-- Name: index_p_ci_build_sources_on_project_id_and_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_p_ci_build_sources_on_project_id_and_build_id ON ONLY public.p_ci_build_sources USING btree (project_id, build_id); + + +-- +-- Name: index_p_ci_build_tags_on_build_id_and_partition_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_p_ci_build_tags_on_build_id_and_partition_id ON ONLY public.p_ci_build_tags USING btree (build_id, partition_id); + + +-- +-- Name: index_p_ci_build_tags_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_p_ci_build_tags_on_project_id ON ONLY public.p_ci_build_tags USING btree (project_id); + + +-- +-- Name: index_p_ci_build_tags_on_tag_id_and_build_id_and_partition_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_p_ci_build_tags_on_tag_id_and_build_id_and_partition_id ON ONLY public.p_ci_build_tags USING btree (tag_id, build_id, partition_id); + + +-- +-- Name: index_p_ci_builds_execution_configs_on_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_p_ci_builds_execution_configs_on_pipeline_id ON ONLY public.p_ci_builds_execution_configs USING btree (pipeline_id); + + +-- +-- Name: index_p_ci_builds_execution_configs_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_p_ci_builds_execution_configs_on_project_id ON ONLY public.p_ci_builds_execution_configs USING btree (project_id); + + +-- +-- Name: index_p_ci_finished_build_ch_sync_events_finished_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_p_ci_finished_build_ch_sync_events_finished_at ON ONLY public.p_ci_finished_build_ch_sync_events USING btree (partition, build_finished_at); + + +-- +-- Name: index_p_ci_job_annotations_on_partition_id_job_id_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_p_ci_job_annotations_on_partition_id_job_id_name ON ONLY public.p_ci_job_annotations USING btree (partition_id, job_id, name); + + +-- +-- Name: index_p_ci_runner_machine_builds_on_runner_machine_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_p_ci_runner_machine_builds_on_runner_machine_id ON ONLY public.p_ci_runner_machine_builds USING btree (runner_machine_id); + + +-- +-- Name: index_packages_build_infos_on_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_build_infos_on_pipeline_id ON public.packages_build_infos USING btree (pipeline_id); + + +-- +-- Name: index_packages_build_infos_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_build_infos_on_project_id ON public.packages_build_infos USING btree (project_id); + + +-- +-- Name: index_packages_build_infos_package_id_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_build_infos_package_id_id ON public.packages_build_infos USING btree (package_id, id); + + +-- +-- Name: index_packages_build_infos_package_id_pipeline_id_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_build_infos_package_id_pipeline_id_id ON public.packages_build_infos USING btree (package_id, pipeline_id, id); + + +-- +-- Name: index_packages_composer_cache_namespace_and_sha; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_packages_composer_cache_namespace_and_sha ON public.packages_composer_cache_files USING btree (namespace_id, file_sha256); + + +-- +-- Name: index_packages_composer_metadata_on_package_id_and_target_sha; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_packages_composer_metadata_on_package_id_and_target_sha ON public.packages_composer_metadata USING btree (package_id, target_sha); + + +-- +-- Name: index_packages_conan_file_metadata_on_package_file_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_packages_conan_file_metadata_on_package_file_id ON public.packages_conan_file_metadata USING btree (package_file_id); + + +-- +-- Name: index_packages_conan_metadata_on_package_id_username_channel; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_packages_conan_metadata_on_package_id_username_channel ON public.packages_conan_metadata USING btree (package_id, package_username, package_channel); + + +-- +-- Name: index_packages_conan_metadata_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_conan_metadata_on_project_id ON public.packages_conan_metadata USING btree (project_id); + + +-- +-- Name: index_packages_debian_group_architectures_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_debian_group_architectures_on_group_id ON public.packages_debian_group_architectures USING btree (group_id); + + +-- +-- Name: index_packages_debian_group_component_files_on_component_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_debian_group_component_files_on_component_id ON public.packages_debian_group_component_files USING btree (component_id); + + +-- +-- Name: index_packages_debian_group_components_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_debian_group_components_on_group_id ON public.packages_debian_group_components USING btree (group_id); + + +-- +-- Name: index_packages_debian_group_distribution_keys_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_debian_group_distribution_keys_on_group_id ON public.packages_debian_group_distribution_keys USING btree (group_id); + + +-- +-- Name: index_packages_debian_group_distributions_on_creator_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_debian_group_distributions_on_creator_id ON public.packages_debian_group_distributions USING btree (creator_id); + + +-- +-- Name: index_packages_debian_project_architectures_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_debian_project_architectures_on_project_id ON public.packages_debian_project_architectures USING btree (project_id); + + +-- +-- Name: index_packages_debian_project_component_files_on_component_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_debian_project_component_files_on_component_id ON public.packages_debian_project_component_files USING btree (component_id); + + +-- +-- Name: index_packages_debian_project_components_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_debian_project_components_on_project_id ON public.packages_debian_project_components USING btree (project_id); + + +-- +-- Name: index_packages_debian_project_distribution_keys_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_debian_project_distribution_keys_on_project_id ON public.packages_debian_project_distribution_keys USING btree (project_id); + + +-- +-- Name: index_packages_debian_project_distributions_on_creator_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_debian_project_distributions_on_creator_id ON public.packages_debian_project_distributions USING btree (creator_id); + + +-- +-- Name: index_packages_debian_publications_on_distribution_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_debian_publications_on_distribution_id ON public.packages_debian_publications USING btree (distribution_id); + + +-- +-- Name: index_packages_debian_publications_on_package_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_packages_debian_publications_on_package_id ON public.packages_debian_publications USING btree (package_id); + + +-- +-- Name: index_packages_debian_publications_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_debian_publications_on_project_id ON public.packages_debian_publications USING btree (project_id); + + +-- +-- Name: index_packages_dependencies_on_name_version_pattern_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_packages_dependencies_on_name_version_pattern_project_id ON public.packages_dependencies USING btree (name, version_pattern, project_id) WHERE (project_id IS NOT NULL); + + +-- +-- Name: index_packages_dependencies_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_dependencies_on_project_id ON public.packages_dependencies USING btree (project_id); + + +-- +-- Name: index_packages_dependency_links_on_dependency_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_dependency_links_on_dependency_id ON public.packages_dependency_links USING btree (dependency_id); + + +-- +-- Name: index_packages_dependency_links_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_dependency_links_on_project_id ON public.packages_dependency_links USING btree (project_id); + + +-- +-- Name: index_packages_helm_file_metadata_on_channel; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_helm_file_metadata_on_channel ON public.packages_helm_file_metadata USING btree (channel); + + +-- +-- Name: index_packages_helm_file_metadata_on_pf_id_and_channel; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_helm_file_metadata_on_pf_id_and_channel ON public.packages_helm_file_metadata USING btree (package_file_id, channel); + + +-- +-- Name: index_packages_maven_metadata_on_package_id_and_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_maven_metadata_on_package_id_and_path ON public.packages_maven_metadata USING btree (package_id, path); + + +-- +-- Name: index_packages_maven_metadata_on_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_maven_metadata_on_path ON public.packages_maven_metadata USING btree (path); + + +-- +-- Name: index_packages_maven_metadata_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_maven_metadata_on_project_id ON public.packages_maven_metadata USING btree (project_id); + + +-- +-- Name: index_packages_npm_metadata_caches_on_object_storage_key; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_packages_npm_metadata_caches_on_object_storage_key ON public.packages_npm_metadata_caches USING btree (object_storage_key); + + +-- +-- Name: index_packages_npm_metadata_caches_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_npm_metadata_caches_on_project_id ON public.packages_npm_metadata_caches USING btree (project_id); + + +-- +-- Name: index_packages_nuget_dl_metadata_on_dependency_link_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_nuget_dl_metadata_on_dependency_link_id ON public.packages_nuget_dependency_link_metadata USING btree (dependency_link_id); + + +-- +-- Name: index_packages_nuget_symbols_on_object_storage_key; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_packages_nuget_symbols_on_object_storage_key ON public.packages_nuget_symbols USING btree (object_storage_key); + + +-- +-- Name: index_packages_nuget_symbols_on_package_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_nuget_symbols_on_package_id ON public.packages_nuget_symbols USING btree (package_id); + + +-- +-- Name: index_packages_nuget_symbols_on_signature_and_file_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_packages_nuget_symbols_on_signature_and_file_path ON public.packages_nuget_symbols USING btree (signature, file_path); + + +-- +-- Name: index_packages_on_available_pypi_packages; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_on_available_pypi_packages ON public.packages_packages USING btree (project_id, id) WHERE ((status = ANY (ARRAY[0, 1])) AND (package_type = 5) AND (version IS NOT NULL)); + + +-- +-- Name: index_packages_package_file_build_infos_on_package_file_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_package_file_build_infos_on_package_file_id ON public.packages_package_file_build_infos USING btree (package_file_id); + + +-- +-- Name: index_packages_package_file_build_infos_on_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_package_file_build_infos_on_pipeline_id ON public.packages_package_file_build_infos USING btree (pipeline_id); + + +-- +-- Name: index_packages_package_files_on_file_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_package_files_on_file_name ON public.packages_package_files USING gin (file_name public.gin_trgm_ops); + + +-- +-- Name: index_packages_package_files_on_file_name_file_sha256; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_package_files_on_file_name_file_sha256 ON public.packages_package_files USING btree (file_name, file_sha256); + + +-- +-- Name: index_packages_package_files_on_file_store; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_package_files_on_file_store ON public.packages_package_files USING btree (file_store); + + +-- +-- Name: index_packages_package_files_on_id_for_cleanup; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_package_files_on_id_for_cleanup ON public.packages_package_files USING btree (id) WHERE (status = 1); + + +-- +-- Name: index_packages_package_files_on_package_file_extension_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_package_files_on_package_file_extension_status ON public.packages_package_files USING btree (package_id) WHERE ((status = 0) AND (reverse(split_part(reverse((file_name)::text), '.'::text, 1)) = 'nupkg'::text)); + + +-- +-- Name: index_packages_package_files_on_package_id_and_created_at_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_package_files_on_package_id_and_created_at_desc ON public.packages_package_files USING btree (package_id, created_at DESC); + + +-- +-- Name: index_packages_package_files_on_package_id_and_file_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_package_files_on_package_id_and_file_name ON public.packages_package_files USING btree (package_id, file_name); + + +-- +-- Name: index_packages_package_files_on_package_id_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_package_files_on_package_id_id ON public.packages_package_files USING btree (package_id, id); + + +-- +-- Name: index_packages_package_files_on_package_id_status_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_package_files_on_package_id_status_and_id ON public.packages_package_files USING btree (package_id, status, id); + + +-- +-- Name: index_packages_package_files_on_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_package_files_on_status ON public.packages_package_files USING btree (status); + + +-- +-- Name: index_packages_package_files_on_verification_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_package_files_on_verification_state ON public.packages_package_files USING btree (verification_state); + + +-- +-- Name: index_packages_packages_on_creator_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_packages_on_creator_id ON public.packages_packages USING btree (creator_id); + + +-- +-- Name: index_packages_packages_on_id_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_packages_on_id_and_created_at ON public.packages_packages USING btree (id, created_at); + + +-- +-- Name: index_packages_packages_on_name_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_packages_on_name_trigram ON public.packages_packages USING gin (name public.gin_trgm_ops); + + +-- +-- Name: index_packages_packages_on_project_id_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_packages_on_project_id_and_created_at ON public.packages_packages USING btree (project_id, created_at); + + +-- +-- Name: index_packages_packages_on_project_id_and_lower_version; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_packages_on_project_id_and_lower_version ON public.packages_packages USING btree (project_id, lower((version)::text)) WHERE (package_type = 4); + + +-- +-- Name: index_packages_packages_on_project_id_and_package_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_packages_on_project_id_and_package_type ON public.packages_packages USING btree (project_id, package_type); + + +-- +-- Name: index_packages_packages_on_project_id_and_status_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_packages_on_project_id_and_status_and_id ON public.packages_packages USING btree (project_id, status, id); + + +-- +-- Name: index_packages_packages_on_project_id_and_version; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_packages_on_project_id_and_version ON public.packages_packages USING btree (project_id, version); + + +-- +-- Name: index_packages_project_id_name_partial_for_nuget; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_project_id_name_partial_for_nuget ON public.packages_packages USING btree (project_id, name) WHERE (((name)::text <> 'NuGet.Temporary.Package'::text) AND (version IS NOT NULL) AND (package_type = 4)); + + +-- +-- Name: index_packages_rpm_metadata_on_package_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_rpm_metadata_on_package_id ON public.packages_rpm_metadata USING btree (package_id); + + +-- +-- Name: index_packages_rpm_repository_files_on_project_id_and_file_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_rpm_repository_files_on_project_id_and_file_name ON public.packages_rpm_repository_files USING btree (project_id, file_name); + + +-- +-- Name: index_packages_tags_on_package_id_and_updated_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_tags_on_package_id_and_updated_at ON public.packages_tags USING btree (package_id, updated_at DESC); + + +-- +-- Name: index_packages_tags_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_tags_on_project_id ON public.packages_tags USING btree (project_id); + + +-- +-- Name: index_packages_terraform_module_metadata_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_packages_terraform_module_metadata_on_project_id ON public.packages_terraform_module_metadata USING btree (project_id); + + +-- +-- Name: index_pages_deployment_states_failed_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_deployment_states_failed_verification ON public.pages_deployment_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); + + +-- +-- Name: index_pages_deployment_states_needs_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_deployment_states_needs_verification ON public.pages_deployment_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); + + +-- +-- Name: index_pages_deployment_states_on_pages_deployment_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_deployment_states_on_pages_deployment_id ON public.pages_deployment_states USING btree (pages_deployment_id); + + +-- +-- Name: index_pages_deployment_states_on_verification_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_deployment_states_on_verification_state ON public.pages_deployment_states USING btree (verification_state); + + +-- +-- Name: index_pages_deployment_states_pending_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_deployment_states_pending_verification ON public.pages_deployment_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); + + +-- +-- Name: index_pages_deployments_on_ci_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_deployments_on_ci_build_id ON public.pages_deployments USING btree (ci_build_id); + + +-- +-- Name: index_pages_deployments_on_deleted_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_deployments_on_deleted_at ON public.pages_deployments USING btree (deleted_at) WHERE (deleted_at IS NOT NULL); + + +-- +-- Name: index_pages_deployments_on_expires_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_deployments_on_expires_at ON public.pages_deployments USING btree (expires_at, id) WHERE (expires_at IS NOT NULL); + + +-- +-- Name: index_pages_deployments_on_file_store_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_deployments_on_file_store_and_id ON public.pages_deployments USING btree (file_store, id); + + +-- +-- Name: index_pages_deployments_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_deployments_on_project_id ON public.pages_deployments USING btree (project_id); + + +-- +-- Name: index_pages_domain_acme_orders_on_challenge_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_domain_acme_orders_on_challenge_token ON public.pages_domain_acme_orders USING btree (challenge_token); + + +-- +-- Name: index_pages_domain_acme_orders_on_pages_domain_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_domain_acme_orders_on_pages_domain_id ON public.pages_domain_acme_orders USING btree (pages_domain_id); + + +-- +-- Name: index_pages_domains_need_auto_ssl_renewal_user_provided; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_domains_need_auto_ssl_renewal_user_provided ON public.pages_domains USING btree (id) WHERE ((auto_ssl_enabled = true) AND (auto_ssl_failed = false) AND (certificate_source = 0)); + + +-- +-- Name: index_pages_domains_need_auto_ssl_renewal_valid_not_after; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_domains_need_auto_ssl_renewal_valid_not_after ON public.pages_domains USING btree (certificate_valid_not_after) WHERE ((auto_ssl_enabled = true) AND (auto_ssl_failed = false)); + + +-- +-- Name: index_pages_domains_on_domain_and_wildcard; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_pages_domains_on_domain_and_wildcard ON public.pages_domains USING btree (domain, wildcard); + + +-- +-- Name: index_pages_domains_on_domain_lowercase; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_domains_on_domain_lowercase ON public.pages_domains USING btree (lower((domain)::text)); + + +-- +-- Name: index_pages_domains_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_domains_on_project_id ON public.pages_domains USING btree (project_id); + + +-- +-- Name: index_pages_domains_on_project_id_and_enabled_until; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_domains_on_project_id_and_enabled_until ON public.pages_domains USING btree (project_id, enabled_until); + + +-- +-- Name: index_pages_domains_on_remove_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_domains_on_remove_at ON public.pages_domains USING btree (remove_at); + + +-- +-- Name: index_pages_domains_on_scope; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_domains_on_scope ON public.pages_domains USING btree (scope); + + +-- +-- Name: index_pages_domains_on_usage; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_domains_on_usage ON public.pages_domains USING btree (usage); + + +-- +-- Name: index_pages_domains_on_verified_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_domains_on_verified_at ON public.pages_domains USING btree (verified_at); + + +-- +-- Name: index_pages_domains_on_verified_at_and_enabled_until; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_domains_on_verified_at_and_enabled_until ON public.pages_domains USING btree (verified_at, enabled_until); + + +-- +-- Name: index_pages_domains_on_wildcard; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pages_domains_on_wildcard ON public.pages_domains USING btree (wildcard); + + +-- +-- Name: p_ci_builds_user_id_name_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_user_id_name_idx ON ONLY public.p_ci_builds USING btree (user_id, name) WHERE (((type)::text = 'Ci::Build'::text) AND ((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('license_scanning'::character varying)::text, ('sast'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('secret_detection'::character varying)::text]))); + + +-- +-- Name: index_partial_ci_builds_on_user_id_name_parser_features; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_partial_ci_builds_on_user_id_name_parser_features ON public.ci_builds USING btree (user_id, name) WHERE (((type)::text = 'Ci::Build'::text) AND ((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('license_scanning'::character varying)::text, ('sast'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('secret_detection'::character varying)::text]))); + + +-- +-- Name: index_pat_on_user_id_and_expires_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pat_on_user_id_and_expires_at ON public.personal_access_tokens USING btree (user_id, expires_at); + + +-- +-- Name: index_path_locks_on_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_path_locks_on_path ON public.path_locks USING btree (path); + + +-- +-- Name: index_path_locks_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_path_locks_on_project_id ON public.path_locks USING btree (project_id); + + +-- +-- Name: index_path_locks_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_path_locks_on_user_id ON public.path_locks USING btree (user_id); + + +-- +-- Name: index_pe_approval_rules_on_required_approvals_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pe_approval_rules_on_required_approvals_and_created_at ON public.protected_environment_approval_rules USING btree (required_approvals, created_at); + + +-- +-- Name: index_personal_access_tokens_on_id_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_personal_access_tokens_on_id_and_created_at ON public.personal_access_tokens USING btree (id, created_at); + + +-- +-- Name: index_personal_access_tokens_on_organization_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_personal_access_tokens_on_organization_id ON public.personal_access_tokens USING btree (organization_id); + + +-- +-- Name: index_personal_access_tokens_on_token_digest; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_personal_access_tokens_on_token_digest ON public.personal_access_tokens USING btree (token_digest); + + +-- +-- Name: index_personal_access_tokens_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_personal_access_tokens_on_user_id ON public.personal_access_tokens USING btree (user_id); + + +-- +-- Name: index_pipeline_metadata_on_name_text_pattern_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pipeline_metadata_on_name_text_pattern_pipeline_id ON public.ci_pipeline_metadata USING btree (name text_pattern_ops, pipeline_id); + + +-- +-- Name: p_ci_pipeline_variables_pipeline_id_key_partition_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX p_ci_pipeline_variables_pipeline_id_key_partition_id_idx ON ONLY public.p_ci_pipeline_variables USING btree (pipeline_id, key, partition_id); + + +-- +-- Name: index_pipeline_variables_on_pipeline_id_key_partition_id_unique; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_pipeline_variables_on_pipeline_id_key_partition_id_unique ON public.ci_pipeline_variables USING btree (pipeline_id, key, partition_id); + + +-- +-- Name: index_plan_limits_on_plan_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_plan_limits_on_plan_id ON public.plan_limits USING btree (plan_id); + + +-- +-- Name: index_plans_on_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_plans_on_name ON public.plans USING btree (name); + + +-- +-- Name: index_pm_advisories_on_advisory_xid_and_source_xid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_pm_advisories_on_advisory_xid_and_source_xid ON public.pm_advisories USING btree (advisory_xid, source_xid); + + +-- +-- Name: index_pm_affected_packages_on_pm_advisory_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pm_affected_packages_on_pm_advisory_id ON public.pm_affected_packages USING btree (pm_advisory_id); + + +-- +-- Name: index_pm_affected_packages_on_purl_type_and_package_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pm_affected_packages_on_purl_type_and_package_name ON public.pm_affected_packages USING btree (purl_type, package_name); + + +-- +-- Name: index_pm_epss_on_cve; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_pm_epss_on_cve ON public.pm_epss USING btree (cve); + + +-- +-- Name: index_pm_package_version_licenses_on_pm_license_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pm_package_version_licenses_on_pm_license_id ON public.pm_package_version_licenses USING btree (pm_license_id); + + +-- +-- Name: index_pm_package_version_licenses_on_pm_package_version_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pm_package_version_licenses_on_pm_package_version_id ON public.pm_package_version_licenses USING btree (pm_package_version_id); + + +-- +-- Name: index_pm_package_versions_on_pm_package_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pm_package_versions_on_pm_package_id ON public.pm_package_versions USING btree (pm_package_id); + + +-- +-- Name: index_pool_repositories_on_shard_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_pool_repositories_on_shard_id ON public.pool_repositories USING btree (shard_id); + + +-- +-- Name: index_pool_repositories_on_source_project_id_and_shard_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_pool_repositories_on_source_project_id_and_shard_id ON public.pool_repositories USING btree (source_project_id, shard_id); + + +-- +-- Name: index_postgres_async_indexes_on_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_postgres_async_indexes_on_name ON public.postgres_async_indexes USING btree (name); + + +-- +-- Name: index_postgres_reindex_actions_on_index_identifier; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_postgres_reindex_actions_on_index_identifier ON public.postgres_reindex_actions USING btree (index_identifier); + + +-- +-- Name: index_postgres_reindex_queued_actions_on_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_postgres_reindex_queued_actions_on_state ON public.postgres_reindex_queued_actions USING btree (state); + + +-- +-- Name: index_programming_languages_on_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_programming_languages_on_name ON public.programming_languages USING btree (name); + + +-- +-- Name: index_project_access_tokens_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_access_tokens_on_project_id ON public.project_access_tokens USING btree (project_id); + + +-- +-- Name: index_project_aliases_on_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_aliases_on_name ON public.project_aliases USING btree (name); + + +-- +-- Name: index_project_aliases_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_aliases_on_project_id ON public.project_aliases USING btree (project_id); + + +-- +-- Name: index_project_authorizations_on_project_user_access_level; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_authorizations_on_project_user_access_level ON public.project_authorizations USING btree (project_id, user_id, access_level); + + +-- +-- Name: index_project_auto_devops_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_auto_devops_on_project_id ON public.project_auto_devops USING btree (project_id); + + +-- +-- Name: index_project_build_artifacts_size_refreshes_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_build_artifacts_size_refreshes_on_project_id ON public.project_build_artifacts_size_refreshes USING btree (project_id); + + +-- +-- Name: index_project_ci_cd_settings_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_ci_cd_settings_on_project_id ON public.project_ci_cd_settings USING btree (project_id); + + +-- +-- Name: index_project_ci_feature_usages_unique_columns; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_ci_feature_usages_unique_columns ON public.project_ci_feature_usages USING btree (project_id, feature, default_branch); + + +-- +-- Name: index_project_compliance_framework_settings_on_framework_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_compliance_framework_settings_on_framework_id ON public.project_compliance_framework_settings USING btree (framework_id); + + +-- +-- Name: index_project_compliance_standards_adherence_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_compliance_standards_adherence_on_project_id ON public.project_compliance_standards_adherence USING btree (project_id); + + +-- +-- Name: index_project_custom_attributes_on_key_and_value; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_custom_attributes_on_key_and_value ON public.project_custom_attributes USING btree (key, value); + + +-- +-- Name: index_project_custom_attributes_on_project_id_and_key; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_custom_attributes_on_project_id_and_key ON public.project_custom_attributes USING btree (project_id, key); + + +-- +-- Name: index_project_daily_statistics_on_project_id_and_date; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_daily_statistics_on_project_id_and_date ON public.project_daily_statistics USING btree (project_id, date DESC); + + +-- +-- Name: index_project_data_transfers_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_data_transfers_on_namespace_id ON public.project_data_transfers USING btree (namespace_id); + + +-- +-- Name: index_project_data_transfers_on_project_and_namespace_and_date; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_data_transfers_on_project_and_namespace_and_date ON public.project_data_transfers USING btree (project_id, namespace_id, date); + + +-- +-- Name: index_project_deploy_tokens_on_deploy_token_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_deploy_tokens_on_deploy_token_id ON public.project_deploy_tokens USING btree (deploy_token_id); + + +-- +-- Name: index_project_deploy_tokens_on_project_id_and_deploy_token_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_deploy_tokens_on_project_id_and_deploy_token_id ON public.project_deploy_tokens USING btree (project_id, deploy_token_id); + + +-- +-- Name: index_project_export_job_relation; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_export_job_relation ON public.project_relation_exports USING btree (project_export_job_id, relation); + + +-- +-- Name: index_project_export_jobs_on_jid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_export_jobs_on_jid ON public.project_export_jobs USING btree (jid); + + +-- +-- Name: index_project_export_jobs_on_project_id_and_jid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_export_jobs_on_project_id_and_jid ON public.project_export_jobs USING btree (project_id, jid); + + +-- +-- Name: index_project_export_jobs_on_project_id_and_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_export_jobs_on_project_id_and_status ON public.project_export_jobs USING btree (project_id, status); + + +-- +-- Name: index_project_export_jobs_on_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_export_jobs_on_status ON public.project_export_jobs USING btree (status); + + +-- +-- Name: index_project_export_jobs_on_updated_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_export_jobs_on_updated_at_and_id ON public.project_export_jobs USING btree (updated_at, id); + + +-- +-- Name: index_project_export_jobs_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_export_jobs_on_user_id ON public.project_export_jobs USING btree (user_id); + + +-- +-- Name: index_project_feature_usages_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_feature_usages_on_project_id ON public.project_feature_usages USING btree (project_id); + + +-- +-- Name: index_project_features_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_features_on_project_id ON public.project_features USING btree (project_id); + + +-- +-- Name: index_project_features_on_project_id_bal_20; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_features_on_project_id_bal_20 ON public.project_features USING btree (project_id) WHERE (builds_access_level = 20); + + +-- +-- Name: index_project_features_on_project_id_include_container_registry; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_features_on_project_id_include_container_registry ON public.project_features USING btree (project_id) INCLUDE (container_registry_access_level); + + +-- +-- Name: INDEX index_project_features_on_project_id_include_container_registry; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON INDEX public.index_project_features_on_project_id_include_container_registry IS 'Included column (container_registry_access_level) improves performance of the ContainerRepository.for_group_and_its_subgroups scope query'; + + +-- +-- Name: index_project_features_on_project_id_on_public_package_registry; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_features_on_project_id_on_public_package_registry ON public.project_features USING btree (project_id) WHERE (package_registry_access_level = 30); + + +-- +-- Name: index_project_features_on_project_id_ral_20; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_features_on_project_id_ral_20 ON public.project_features USING btree (project_id) WHERE (repository_access_level = 20); + + +-- +-- Name: index_project_group_links_on_group_id_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_group_links_on_group_id_and_project_id ON public.project_group_links USING btree (group_id, project_id); + + +-- +-- Name: index_project_group_links_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_group_links_on_project_id ON public.project_group_links USING btree (project_id); + + +-- +-- Name: index_project_import_data_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_import_data_on_project_id ON public.project_import_data USING btree (project_id); + + +-- +-- Name: index_project_incident_management_settings_on_p_id_sla_timer; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_incident_management_settings_on_p_id_sla_timer ON public.project_incident_management_settings USING btree (project_id) WHERE (sla_timer = true); + + +-- +-- Name: index_project_members_on_id_temp; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_members_on_id_temp ON public.members USING btree (id) WHERE ((source_type)::text = 'Project'::text); + + +-- +-- Name: index_project_mirror_data_on_last_successful_update_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_mirror_data_on_last_successful_update_at ON public.project_mirror_data USING btree (last_successful_update_at); + + +-- +-- Name: index_project_mirror_data_on_last_update_at_and_retry_count; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_mirror_data_on_last_update_at_and_retry_count ON public.project_mirror_data USING btree (last_update_at, retry_count); + + +-- +-- Name: index_project_mirror_data_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_mirror_data_on_project_id ON public.project_mirror_data USING btree (project_id); + + +-- +-- Name: index_project_mirror_data_on_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_mirror_data_on_status ON public.project_mirror_data USING btree (status); + + +-- +-- Name: index_project_pages_metadata_on_pages_deployment_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_pages_metadata_on_pages_deployment_id ON public.project_pages_metadata USING btree (pages_deployment_id); + + +-- +-- Name: index_project_pages_metadata_on_project_id_and_deployed_is_true; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_pages_metadata_on_project_id_and_deployed_is_true ON public.project_pages_metadata USING btree (project_id) WHERE (deployed = true); + + +-- +-- Name: index_project_relation_export_upload_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_relation_export_upload_id ON public.project_relation_export_uploads USING btree (project_relation_export_id); + + +-- +-- Name: index_project_relation_exports_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_relation_exports_on_project_id ON public.project_relation_exports USING btree (project_id); + + +-- +-- Name: index_project_repositories_on_disk_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_repositories_on_disk_path ON public.project_repositories USING btree (disk_path); + + +-- +-- Name: index_project_repositories_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_repositories_on_project_id ON public.project_repositories USING btree (project_id); + + +-- +-- Name: index_project_repositories_on_shard_id_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_repositories_on_shard_id_and_project_id ON public.project_repositories USING btree (shard_id, project_id); + + +-- +-- Name: index_project_repository_storage_moves_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_repository_storage_moves_on_project_id ON public.project_repository_storage_moves USING btree (project_id); + + +-- +-- Name: index_project_saved_replies_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_saved_replies_on_project_id ON public.project_saved_replies USING btree (project_id); + + +-- +-- Name: index_project_secrets_managers_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_secrets_managers_on_project_id ON public.project_secrets_managers USING btree (project_id); + + +-- +-- Name: index_project_settings_on_legacy_os_license_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_settings_on_legacy_os_license_project_id ON public.project_settings USING btree (project_id) WHERE (legacy_open_source_license_available = true); + + +-- +-- Name: index_project_settings_on_project_id_partially; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_settings_on_project_id_partially ON public.project_settings USING btree (project_id) WHERE (has_vulnerabilities IS TRUE); + + +-- +-- Name: index_project_settings_on_push_rule_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_settings_on_push_rule_id ON public.project_settings USING btree (push_rule_id); + + +-- +-- Name: index_project_states_failed_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_states_failed_verification ON public.project_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); + + +-- +-- Name: index_project_states_needs_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_states_needs_verification ON public.project_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); + + +-- +-- Name: index_project_states_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_states_on_project_id ON public.project_states USING btree (project_id); + + +-- +-- Name: index_project_states_on_verification_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_states_on_verification_state ON public.project_states USING btree (verification_state); + + +-- +-- Name: index_project_states_pending_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_states_pending_verification ON public.project_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); + + +-- +-- Name: index_project_statistics_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_statistics_on_namespace_id ON public.project_statistics USING btree (namespace_id); + + +-- +-- Name: index_project_statistics_on_packages_size_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_statistics_on_packages_size_and_project_id ON public.project_statistics USING btree (packages_size, project_id); + + +-- +-- Name: index_project_statistics_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_statistics_on_project_id ON public.project_statistics USING btree (project_id); + + +-- +-- Name: index_project_statistics_on_repository_size_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_statistics_on_repository_size_and_project_id ON public.project_statistics USING btree (repository_size, project_id); + + +-- +-- Name: index_project_statistics_on_root_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_statistics_on_root_namespace_id ON public.project_statistics USING btree (root_namespace_id); + + +-- +-- Name: index_project_statistics_on_storage_size_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_statistics_on_storage_size_and_project_id ON public.project_statistics USING btree (storage_size, project_id); + + +-- +-- Name: index_project_statistics_on_wiki_size_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_statistics_on_wiki_size_and_project_id ON public.project_statistics USING btree (wiki_size, project_id); + + +-- +-- Name: index_project_topics_on_project_id_and_topic_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_topics_on_project_id_and_topic_id ON public.project_topics USING btree (project_id, topic_id); + + +-- +-- Name: index_project_topics_on_topic_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_project_topics_on_topic_id ON public.project_topics USING btree (topic_id); + + +-- +-- Name: index_project_user_callouts_feature; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_user_callouts_feature ON public.user_project_callouts USING btree (user_id, feature_name, project_id); + + +-- +-- Name: index_project_wiki_repositories_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_project_wiki_repositories_on_project_id ON public.project_wiki_repositories USING btree (project_id); + + +-- +-- Name: index_projects_aimed_for_deletion; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_aimed_for_deletion ON public.projects USING btree (marked_for_deletion_at) WHERE ((marked_for_deletion_at IS NOT NULL) AND (pending_delete = false)); + + +-- +-- Name: index_projects_api_created_at_id_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_api_created_at_id_desc ON public.projects USING btree (created_at, id DESC); + + +-- +-- Name: index_projects_api_last_activity_at_id_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_api_last_activity_at_id_desc ON public.projects USING btree (last_activity_at, id DESC); + + +-- +-- Name: index_projects_api_name_id_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_api_name_id_desc ON public.projects USING btree (name, id DESC); + + +-- +-- Name: index_projects_api_path_id_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_api_path_id_desc ON public.projects USING btree (path, id DESC); + + +-- +-- Name: index_projects_api_updated_at_id_desc; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_api_updated_at_id_desc ON public.projects USING btree (updated_at, id DESC); + + +-- +-- Name: index_projects_api_vis20_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_api_vis20_created_at ON public.projects USING btree (created_at, id) WHERE (visibility_level = 20); + + +-- +-- Name: index_projects_api_vis20_last_activity_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_api_vis20_last_activity_at ON public.projects USING btree (last_activity_at, id) WHERE (visibility_level = 20); + + +-- +-- Name: index_projects_api_vis20_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_api_vis20_name ON public.projects USING btree (name, id) WHERE (visibility_level = 20); + + +-- +-- Name: index_projects_api_vis20_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_api_vis20_path ON public.projects USING btree (path, id) WHERE (visibility_level = 20); + + +-- +-- Name: index_projects_api_vis20_updated_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_api_vis20_updated_at ON public.projects USING btree (updated_at, id) WHERE (visibility_level = 20); + + +-- +-- Name: index_projects_id_for_aimed_for_deletion; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_id_for_aimed_for_deletion ON public.projects USING btree (id, marked_for_deletion_at) WHERE ((marked_for_deletion_at IS NOT NULL) AND (pending_delete = false)); + + +-- +-- Name: index_projects_not_aimed_for_deletion; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_not_aimed_for_deletion ON public.projects USING btree (id) WHERE (marked_for_deletion_at IS NULL); + + +-- +-- Name: index_projects_on_creator_id_and_created_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_creator_id_and_created_at_and_id ON public.projects USING btree (creator_id, created_at, id); + + +-- +-- Name: index_projects_on_creator_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_creator_id_and_id ON public.projects USING btree (creator_id, id); + + +-- +-- Name: index_projects_on_creator_id_import_type_and_created_at_partial; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_creator_id_import_type_and_created_at_partial ON public.projects USING btree (creator_id, import_type, created_at) WHERE (import_type IS NOT NULL); + + +-- +-- Name: index_projects_on_description_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_description_trigram ON public.projects USING gin (description public.gin_trgm_ops); + + +-- +-- Name: index_projects_on_id_and_archived_and_pending_delete; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_id_and_archived_and_pending_delete ON public.projects USING btree (id) WHERE ((archived = false) AND (pending_delete = false)); + + +-- +-- Name: index_projects_on_id_partial_for_visibility; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_projects_on_id_partial_for_visibility ON public.projects USING btree (id) WHERE (visibility_level = ANY (ARRAY[10, 20])); + + +-- +-- Name: index_projects_on_id_service_desk_enabled; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_id_service_desk_enabled ON public.projects USING btree (id) WHERE (service_desk_enabled = true); + + +-- +-- Name: index_projects_on_last_activity_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_last_activity_at_and_id ON public.projects USING btree (last_activity_at, id); + + +-- +-- Name: index_projects_on_last_repository_check_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_last_repository_check_at ON public.projects USING btree (last_repository_check_at) WHERE (last_repository_check_at IS NOT NULL); + + +-- +-- Name: index_projects_on_last_repository_check_failed; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_last_repository_check_failed ON public.projects USING btree (last_repository_check_failed); + + +-- +-- Name: index_projects_on_last_repository_updated_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_last_repository_updated_at ON public.projects USING btree (last_repository_updated_at); + + +-- +-- Name: index_projects_on_lower_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_lower_name ON public.projects USING btree (lower((name)::text)); + + +-- +-- Name: index_projects_on_marked_for_deletion_by_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_marked_for_deletion_by_user_id ON public.projects USING btree (marked_for_deletion_by_user_id) WHERE (marked_for_deletion_by_user_id IS NOT NULL); + + +-- +-- Name: index_projects_on_mirror_creator_id_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_mirror_creator_id_created_at ON public.projects USING btree (creator_id, created_at) WHERE ((mirror = true) AND (mirror_trigger_builds = true)); + + +-- +-- Name: index_projects_on_mirror_id_where_mirror_and_trigger_builds; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_mirror_id_where_mirror_and_trigger_builds ON public.projects USING btree (id) WHERE ((mirror = true) AND (mirror_trigger_builds = true)); + + +-- +-- Name: index_projects_on_mirror_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_mirror_user_id ON public.projects USING btree (mirror_user_id); + + +-- +-- Name: index_projects_on_name_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_name_and_id ON public.projects USING btree (name, id); + + +-- +-- Name: index_projects_on_name_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_name_trigram ON public.projects USING gin (name public.gin_trgm_ops); + + +-- +-- Name: index_projects_on_namespace_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_namespace_id_and_id ON public.projects USING btree (namespace_id, id); + + +-- +-- Name: index_projects_on_namespace_id_and_repository_size_limit; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_namespace_id_and_repository_size_limit ON public.projects USING btree (namespace_id, repository_size_limit); + + +-- +-- Name: index_projects_on_organization_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_organization_id_and_id ON public.projects USING btree (organization_id, id); + + +-- +-- Name: index_projects_on_path_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_path_trigram ON public.projects USING gin (path public.gin_trgm_ops); + + +-- +-- Name: index_projects_on_pending_delete; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_pending_delete ON public.projects USING btree (pending_delete); + + +-- +-- Name: index_projects_on_pool_repository_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_pool_repository_id ON public.projects USING btree (pool_repository_id) WHERE (pool_repository_id IS NOT NULL); + + +-- +-- Name: index_projects_on_project_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_projects_on_project_namespace_id ON public.projects USING btree (project_namespace_id); + + +-- +-- Name: index_projects_on_repository_storage; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_repository_storage ON public.projects USING btree (repository_storage); + + +-- +-- Name: index_projects_on_star_count; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_star_count ON public.projects USING btree (star_count); + + +-- +-- Name: index_projects_on_updated_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_on_updated_at_and_id ON public.projects USING btree (updated_at, id); + + +-- +-- Name: index_projects_sync_events_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_sync_events_on_project_id ON public.projects_sync_events USING btree (project_id); + + +-- +-- Name: index_projects_visits_on_entity_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_visits_on_entity_id ON ONLY public.projects_visits USING btree (entity_id); + + +-- +-- Name: index_projects_visits_on_user_id_and_entity_id_and_visited_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_projects_visits_on_user_id_and_entity_id_and_visited_at ON ONLY public.projects_visits USING btree (user_id, entity_id, visited_at); + + +-- +-- Name: index_prometheus_alert_event_scoped_payload_key; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_prometheus_alert_event_scoped_payload_key ON public.prometheus_alert_events USING btree (prometheus_alert_id, payload_key); + + +-- +-- Name: index_prometheus_alert_events_on_project_id_and_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_prometheus_alert_events_on_project_id_and_status ON public.prometheus_alert_events USING btree (project_id, status); + + +-- +-- Name: index_prometheus_alerts_metric_environment; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_prometheus_alerts_metric_environment ON public.prometheus_alerts USING btree (project_id, prometheus_metric_id, environment_id); + + +-- +-- Name: index_prometheus_alerts_on_environment_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_prometheus_alerts_on_environment_id ON public.prometheus_alerts USING btree (environment_id); + + +-- +-- Name: index_prometheus_alerts_on_prometheus_metric_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_prometheus_alerts_on_prometheus_metric_id ON public.prometheus_alerts USING btree (prometheus_metric_id); + + +-- +-- Name: index_prometheus_metrics_on_common; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_prometheus_metrics_on_common ON public.prometheus_metrics USING btree (common); + + +-- +-- Name: index_prometheus_metrics_on_group; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_prometheus_metrics_on_group ON public.prometheus_metrics USING btree ("group"); + + +-- +-- Name: index_prometheus_metrics_on_identifier_and_null_project; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_prometheus_metrics_on_identifier_and_null_project ON public.prometheus_metrics USING btree (identifier) WHERE (project_id IS NULL); + + +-- +-- Name: index_prometheus_metrics_on_identifier_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_prometheus_metrics_on_identifier_and_project_id ON public.prometheus_metrics USING btree (identifier, project_id); + + +-- +-- Name: index_prometheus_metrics_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_prometheus_metrics_on_project_id ON public.prometheus_metrics USING btree (project_id); + + +-- +-- Name: index_protected_branch_merge_access; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_branch_merge_access ON public.protected_branch_merge_access_levels USING btree (protected_branch_id); + + +-- +-- Name: index_protected_branch_merge_access_levels_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_branch_merge_access_levels_on_group_id ON public.protected_branch_merge_access_levels USING btree (group_id); + + +-- +-- Name: index_protected_branch_merge_access_levels_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_branch_merge_access_levels_on_user_id ON public.protected_branch_merge_access_levels USING btree (user_id); + + +-- +-- Name: index_protected_branch_push_access; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_branch_push_access ON public.protected_branch_push_access_levels USING btree (protected_branch_id); + + +-- +-- Name: index_protected_branch_push_access_levels_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_branch_push_access_levels_on_group_id ON public.protected_branch_push_access_levels USING btree (group_id); + + +-- +-- Name: index_protected_branch_push_access_levels_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_branch_push_access_levels_on_user_id ON public.protected_branch_push_access_levels USING btree (user_id); + + +-- +-- Name: index_protected_branch_unprotect_access; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_branch_unprotect_access ON public.protected_branch_unprotect_access_levels USING btree (protected_branch_id); + + +-- +-- Name: index_protected_branch_unprotect_access_levels_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_branch_unprotect_access_levels_on_group_id ON public.protected_branch_unprotect_access_levels USING btree (group_id); + + +-- +-- Name: index_protected_branch_unprotect_access_levels_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_branch_unprotect_access_levels_on_user_id ON public.protected_branch_unprotect_access_levels USING btree (user_id); + + +-- +-- Name: index_protected_branches_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_branches_namespace_id ON public.protected_branches USING btree (namespace_id) WHERE (namespace_id IS NOT NULL); + + +-- +-- Name: index_protected_branches_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_branches_on_project_id ON public.protected_branches USING btree (project_id); + + +-- +-- Name: index_protected_environment_approval_rules_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_environment_approval_rules_on_group_id ON public.protected_environment_approval_rules USING btree (group_id); + + +-- +-- Name: index_protected_environment_approval_rules_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_environment_approval_rules_on_user_id ON public.protected_environment_approval_rules USING btree (user_id); + + +-- +-- Name: index_protected_environment_deploy_access; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_environment_deploy_access ON public.protected_environment_deploy_access_levels USING btree (protected_environment_id); + + +-- +-- Name: index_protected_environment_deploy_access_levels_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_environment_deploy_access_levels_on_group_id ON public.protected_environment_deploy_access_levels USING btree (group_id); + + +-- +-- Name: index_protected_environment_deploy_access_levels_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_environment_deploy_access_levels_on_user_id ON public.protected_environment_deploy_access_levels USING btree (user_id); + + +-- +-- Name: index_protected_environment_group_id_of_protected_environment_a; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_environment_group_id_of_protected_environment_a ON public.protected_environment_approval_rules USING btree (protected_environment_group_id); + + +-- +-- Name: index_protected_environment_project_id_of_protected_environment; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_environment_project_id_of_protected_environment ON public.protected_environment_approval_rules USING btree (protected_environment_project_id); + + +-- +-- Name: index_protected_environments_on_approval_count_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_environments_on_approval_count_and_created_at ON public.protected_environments USING btree (required_approval_count, created_at); + + +-- +-- Name: index_protected_environments_on_group_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_protected_environments_on_group_id_and_name ON public.protected_environments USING btree (group_id, name) WHERE (group_id IS NOT NULL); + + +-- +-- Name: index_protected_environments_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_protected_environments_on_project_id_and_name ON public.protected_environments USING btree (project_id, name); + + +-- +-- Name: index_protected_tag_create_access; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_tag_create_access ON public.protected_tag_create_access_levels USING btree (protected_tag_id); + + +-- +-- Name: index_protected_tag_create_access_levels_on_deploy_key_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_tag_create_access_levels_on_deploy_key_id ON public.protected_tag_create_access_levels USING btree (deploy_key_id); + + +-- +-- Name: index_protected_tag_create_access_levels_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_tag_create_access_levels_on_group_id ON public.protected_tag_create_access_levels USING btree (group_id); + + +-- +-- Name: index_protected_tag_create_access_levels_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_tag_create_access_levels_on_project_id ON public.protected_tag_create_access_levels USING btree (project_id); + + +-- +-- Name: index_protected_tag_create_access_levels_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_protected_tag_create_access_levels_on_user_id ON public.protected_tag_create_access_levels USING btree (user_id); + + +-- +-- Name: index_protected_tags_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_protected_tags_on_project_id_and_name ON public.protected_tags USING btree (project_id, name); + + +-- +-- Name: index_push_rules_on_is_sample; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_push_rules_on_is_sample ON public.push_rules USING btree (is_sample) WHERE is_sample; + + +-- +-- Name: index_push_rules_on_organization_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_push_rules_on_organization_id ON public.push_rules USING btree (organization_id); + + +-- +-- Name: index_push_rules_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_push_rules_on_project_id ON public.push_rules USING btree (project_id); + + +-- +-- Name: index_raw_usage_data_on_organization_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_raw_usage_data_on_organization_id ON public.raw_usage_data USING btree (organization_id); + + +-- +-- Name: index_raw_usage_data_on_recorded_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_raw_usage_data_on_recorded_at ON public.raw_usage_data USING btree (recorded_at); + + +-- +-- Name: index_redirect_routes_on_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_redirect_routes_on_path ON public.redirect_routes USING btree (path); + + +-- +-- Name: index_redirect_routes_on_path_unique_text_pattern_ops; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_redirect_routes_on_path_unique_text_pattern_ops ON public.redirect_routes USING btree (lower((path)::text) varchar_pattern_ops); + + +-- +-- Name: index_redirect_routes_on_source_type_and_source_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_redirect_routes_on_source_type_and_source_id ON public.redirect_routes USING btree (source_type, source_id); + + +-- +-- Name: index_related_epic_links_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_related_epic_links_on_group_id ON public.related_epic_links USING btree (group_id); + + +-- +-- Name: index_related_epic_links_on_source_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_related_epic_links_on_source_id ON public.related_epic_links USING btree (source_id); + + +-- +-- Name: index_related_epic_links_on_source_id_and_target_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_related_epic_links_on_source_id_and_target_id ON public.related_epic_links USING btree (source_id, target_id); + + +-- +-- Name: index_related_epic_links_on_target_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_related_epic_links_on_target_id ON public.related_epic_links USING btree (target_id); + + +-- +-- Name: index_relation_import_trackers_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_relation_import_trackers_on_project_id ON public.relation_import_trackers USING btree (project_id); + + +-- +-- Name: index_release_links_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_release_links_on_project_id ON public.release_links USING btree (project_id); + + +-- +-- Name: index_release_links_on_release_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_release_links_on_release_id_and_name ON public.release_links USING btree (release_id, name); + + +-- +-- Name: index_release_links_on_release_id_and_url; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_release_links_on_release_id_and_url ON public.release_links USING btree (release_id, url); + + +-- +-- Name: index_releases_on_author_id_id_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_releases_on_author_id_id_created_at ON public.releases USING btree (author_id, id, created_at); + + +-- +-- Name: index_releases_on_project_id_and_released_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_releases_on_project_id_and_released_at_and_id ON public.releases USING btree (project_id, released_at, id); + + +-- +-- Name: index_releases_on_project_id_and_updated_at_and_released_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_releases_on_project_id_and_updated_at_and_released_at ON public.releases USING btree (project_id, updated_at, released_at); + + +-- +-- Name: index_releases_on_project_id_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_releases_on_project_id_id ON public.releases USING btree (project_id, id); + + +-- +-- Name: index_releases_on_project_tag_unique; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_releases_on_project_tag_unique ON public.releases USING btree (project_id, tag); + + +-- +-- Name: index_releases_on_released_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_releases_on_released_at ON public.releases USING btree (released_at); + + +-- +-- Name: index_remote_development_agent_configs_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_remote_development_agent_configs_on_project_id ON public.remote_development_agent_configs USING btree (project_id); + + +-- +-- Name: index_remote_development_agent_configs_on_unique_agent_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_remote_development_agent_configs_on_unique_agent_id ON public.remote_development_agent_configs USING btree (cluster_agent_id); + + +-- +-- Name: index_remote_mirrors_on_last_successful_update_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_remote_mirrors_on_last_successful_update_at ON public.remote_mirrors USING btree (last_successful_update_at); + + +-- +-- Name: index_remote_mirrors_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_remote_mirrors_on_project_id ON public.remote_mirrors USING btree (project_id); + + +-- +-- Name: index_required_code_owners_sections_on_protected_branch_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_required_code_owners_sections_on_protected_branch_id ON public.required_code_owners_sections USING btree (protected_branch_id); + + +-- +-- Name: index_requirements_management_test_reports_on_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_requirements_management_test_reports_on_author_id ON public.requirements_management_test_reports USING btree (author_id); + + +-- +-- Name: index_requirements_management_test_reports_on_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_requirements_management_test_reports_on_build_id ON public.requirements_management_test_reports USING btree (build_id); + + +-- +-- Name: index_requirements_management_test_reports_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_requirements_management_test_reports_on_issue_id ON public.requirements_management_test_reports USING btree (issue_id); + + +-- +-- Name: index_requirements_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_requirements_on_issue_id ON public.requirements USING btree (issue_id); + + +-- +-- Name: index_requirements_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_requirements_on_project_id ON public.requirements USING btree (project_id); + + +-- +-- Name: index_requirements_on_project_id_and_iid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_requirements_on_project_id_and_iid ON public.requirements USING btree (project_id, iid) WHERE (project_id IS NOT NULL); + + +-- +-- Name: index_requirements_project_id_user_id_id_and_target_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_requirements_project_id_user_id_id_and_target_type ON public.todos USING btree (project_id, user_id, id, target_type); + + +-- +-- Name: index_requirements_user_id_and_target_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_requirements_user_id_and_target_type ON public.todos USING btree (user_id, target_type); + + +-- +-- Name: index_resource_iteration_events_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_iteration_events_on_issue_id ON public.resource_iteration_events USING btree (issue_id); + + +-- +-- Name: index_resource_iteration_events_on_iteration_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_iteration_events_on_iteration_id ON public.resource_iteration_events USING btree (iteration_id); + + +-- +-- Name: index_resource_iteration_events_on_iteration_id_and_add_action; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_iteration_events_on_iteration_id_and_add_action ON public.resource_iteration_events USING btree (iteration_id) WHERE (action = 1); + + +-- +-- Name: index_resource_iteration_events_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_iteration_events_on_merge_request_id ON public.resource_iteration_events USING btree (merge_request_id); + + +-- +-- Name: index_resource_iteration_events_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_iteration_events_on_user_id ON public.resource_iteration_events USING btree (user_id); + + +-- +-- Name: index_resource_label_events_issue_id_label_id_action; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_label_events_issue_id_label_id_action ON public.resource_label_events USING btree (issue_id, label_id, action); + + +-- +-- Name: index_resource_label_events_on_epic_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_label_events_on_epic_id ON public.resource_label_events USING btree (epic_id); + + +-- +-- Name: index_resource_label_events_on_label_id_and_action; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_label_events_on_label_id_and_action ON public.resource_label_events USING btree (label_id, action); + + +-- +-- Name: index_resource_label_events_on_merge_request_id_label_id_action; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_label_events_on_merge_request_id_label_id_action ON public.resource_label_events USING btree (merge_request_id, label_id, action); + + +-- +-- Name: index_resource_label_events_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_label_events_on_user_id ON public.resource_label_events USING btree (user_id); + + +-- +-- Name: index_resource_link_events_on_child_work_item_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_link_events_on_child_work_item_id ON public.resource_link_events USING btree (child_work_item_id); + + +-- +-- Name: index_resource_link_events_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_link_events_on_issue_id ON public.resource_link_events USING btree (issue_id); + + +-- +-- Name: index_resource_link_events_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_link_events_on_user_id ON public.resource_link_events USING btree (user_id); + + +-- +-- Name: index_resource_milestone_events_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_milestone_events_created_at ON public.resource_milestone_events USING btree (created_at); + + +-- +-- Name: index_resource_milestone_events_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_milestone_events_on_issue_id ON public.resource_milestone_events USING btree (issue_id); + + +-- +-- Name: index_resource_milestone_events_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_milestone_events_on_merge_request_id ON public.resource_milestone_events USING btree (merge_request_id); + + +-- +-- Name: index_resource_milestone_events_on_milestone_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_milestone_events_on_milestone_id ON public.resource_milestone_events USING btree (milestone_id); + + +-- +-- Name: index_resource_milestone_events_on_milestone_id_and_add_action; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_milestone_events_on_milestone_id_and_add_action ON public.resource_milestone_events USING btree (milestone_id) WHERE (action = 1); + + +-- +-- Name: index_resource_milestone_events_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_milestone_events_on_user_id ON public.resource_milestone_events USING btree (user_id); + + +-- +-- Name: index_resource_state_events_on_epic_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_state_events_on_epic_id ON public.resource_state_events USING btree (epic_id); + + +-- +-- Name: index_resource_state_events_on_issue_id_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_state_events_on_issue_id_and_created_at ON public.resource_state_events USING btree (issue_id, created_at); + + +-- +-- Name: index_resource_state_events_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_state_events_on_merge_request_id ON public.resource_state_events USING btree (merge_request_id); + + +-- +-- Name: index_resource_state_events_on_source_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_state_events_on_source_merge_request_id ON public.resource_state_events USING btree (source_merge_request_id); + + +-- +-- Name: index_resource_state_events_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_state_events_on_user_id ON public.resource_state_events USING btree (user_id); + + +-- +-- Name: index_resource_weight_events_on_issue_id_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_weight_events_on_issue_id_and_created_at ON public.resource_weight_events USING btree (issue_id, created_at); + + +-- +-- Name: index_resource_weight_events_on_issue_id_and_weight; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_weight_events_on_issue_id_and_weight ON public.resource_weight_events USING btree (issue_id, weight); + + +-- +-- Name: index_resource_weight_events_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_resource_weight_events_on_user_id ON public.resource_weight_events USING btree (user_id); + + +-- +-- Name: index_reviews_on_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_reviews_on_author_id ON public.reviews USING btree (author_id); + + +-- +-- Name: index_reviews_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_reviews_on_merge_request_id ON public.reviews USING btree (merge_request_id); + + +-- +-- Name: index_reviews_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_reviews_on_project_id ON public.reviews USING btree (project_id); + + +-- +-- Name: index_route_on_name_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_route_on_name_trigram ON public.routes USING gin (name public.gin_trgm_ops); + + +-- +-- Name: index_routes_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_routes_on_namespace_id ON public.routes USING btree (namespace_id); + + +-- +-- Name: index_routes_on_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_routes_on_path ON public.routes USING btree (path); + + +-- +-- Name: index_routes_on_path_text_pattern_ops; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_routes_on_path_text_pattern_ops ON public.routes USING btree (path varchar_pattern_ops); + + +-- +-- Name: index_routes_on_path_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_routes_on_path_trigram ON public.routes USING gin (path public.gin_trgm_ops); + + +-- +-- Name: index_routes_on_source_type_and_source_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_routes_on_source_type_and_source_id ON public.routes USING btree (source_type, source_id); + + +-- +-- Name: index_saml_group_links_on_group_id_and_saml_group_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_saml_group_links_on_group_id_and_saml_group_name ON public.saml_group_links USING btree (group_id, saml_group_name); + + +-- +-- Name: index_saml_group_links_on_member_role_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_saml_group_links_on_member_role_id ON public.saml_group_links USING btree (member_role_id); + + +-- +-- Name: index_saml_providers_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_saml_providers_on_group_id ON public.saml_providers USING btree (group_id); + + +-- +-- Name: index_saml_providers_on_member_role_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_saml_providers_on_member_role_id ON public.saml_providers USING btree (member_role_id); + + +-- +-- Name: index_saved_replies_on_name_text_pattern_ops; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_saved_replies_on_name_text_pattern_ops ON public.saved_replies USING btree (user_id, name text_pattern_ops); + + +-- +-- Name: index_sbom_component_versions_on_component_id_and_version; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_sbom_component_versions_on_component_id_and_version ON public.sbom_component_versions USING btree (component_id, version); + + +-- +-- Name: index_sbom_components_on_component_type_name_and_purl_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_sbom_components_on_component_type_name_and_purl_type ON public.sbom_components USING btree (name, purl_type, component_type); + + +-- +-- Name: index_sbom_components_on_organization_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sbom_components_on_organization_id ON public.sbom_components USING btree (organization_id); + + +-- +-- Name: index_sbom_occurr_on_project_id_and_component_version_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sbom_occurr_on_project_id_and_component_version_id_and_id ON public.sbom_occurrences USING btree (project_id, component_version_id, id); + + +-- +-- Name: index_sbom_occurrences_on_component_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sbom_occurrences_on_component_id_and_id ON public.sbom_occurrences USING btree (component_id, id); + + +-- +-- Name: index_sbom_occurrences_on_component_version_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sbom_occurrences_on_component_version_id ON public.sbom_occurrences USING btree (component_version_id); + + +-- +-- Name: index_sbom_occurrences_on_highest_severity; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sbom_occurrences_on_highest_severity ON public.sbom_occurrences USING btree (project_id, highest_severity DESC NULLS LAST); + + +-- +-- Name: index_sbom_occurrences_on_licenses_spdx_identifier; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sbom_occurrences_on_licenses_spdx_identifier ON public.sbom_occurrences USING btree (project_id, ((licenses #> '{0,spdx_identifier}'::text[])), ((licenses #> '{1,spdx_identifier}'::text[]))); + + +-- +-- Name: index_sbom_occurrences_on_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sbom_occurrences_on_pipeline_id ON public.sbom_occurrences USING btree (pipeline_id); + + +-- +-- Name: index_sbom_occurrences_on_project_id_and_component_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sbom_occurrences_on_project_id_and_component_id_and_id ON public.sbom_occurrences USING btree (project_id, component_id, id); + + +-- +-- Name: index_sbom_occurrences_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sbom_occurrences_on_project_id_and_id ON public.sbom_occurrences USING btree (project_id, id); + + +-- +-- Name: index_sbom_occurrences_on_project_id_and_package_manager; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sbom_occurrences_on_project_id_and_package_manager ON public.sbom_occurrences USING btree (project_id, package_manager); + + +-- +-- Name: index_sbom_occurrences_on_source_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sbom_occurrences_on_source_id ON public.sbom_occurrences USING btree (source_id); + + +-- +-- Name: index_sbom_occurrences_on_traversal_ids_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sbom_occurrences_on_traversal_ids_and_id ON public.sbom_occurrences USING btree (traversal_ids, id) WHERE (archived = false); + + +-- +-- Name: index_sbom_occurrences_on_uuid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_sbom_occurrences_on_uuid ON public.sbom_occurrences USING btree (uuid); + + +-- +-- Name: index_sbom_occurrences_vulnerabilities_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sbom_occurrences_vulnerabilities_on_project_id ON public.sbom_occurrences_vulnerabilities USING btree (project_id); + + +-- +-- Name: index_sbom_occurrences_vulnerabilities_on_vulnerability_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sbom_occurrences_vulnerabilities_on_vulnerability_id ON public.sbom_occurrences_vulnerabilities USING btree (vulnerability_id); + + +-- +-- Name: index_sbom_source_packages_on_name_and_purl_type_and_org_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_sbom_source_packages_on_name_and_purl_type_and_org_id ON public.sbom_source_packages USING btree (name, purl_type, organization_id); + + +-- +-- Name: index_sbom_source_packages_on_organization_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sbom_source_packages_on_organization_id ON public.sbom_source_packages USING btree (organization_id); + + +-- +-- Name: index_sbom_source_packages_on_source_package_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sbom_source_packages_on_source_package_id_and_id ON public.sbom_occurrences USING btree (source_package_id, id); + + +-- +-- Name: index_sbom_sources_on_organization_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sbom_sources_on_organization_id ON public.sbom_sources USING btree (organization_id); + + +-- +-- Name: index_sbom_sources_on_source_type_and_source_and_org_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_sbom_sources_on_source_type_and_source_and_org_id ON public.sbom_sources USING btree (source_type, source, organization_id); + + +-- +-- Name: index_scan_execution_policy_rules_on_policy_mgmt_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_scan_execution_policy_rules_on_policy_mgmt_project_id ON public.scan_execution_policy_rules USING btree (security_policy_management_project_id); + + +-- +-- Name: index_scan_execution_policy_rules_on_unique_policy_rule_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_scan_execution_policy_rules_on_unique_policy_rule_index ON public.scan_execution_policy_rules USING btree (security_policy_id, rule_index); + + +-- +-- Name: index_scan_result_policies_on_position_in_configuration; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_scan_result_policies_on_position_in_configuration ON public.scan_result_policies USING btree (security_orchestration_policy_configuration_id, project_id, orchestration_policy_idx, rule_idx); + + +-- +-- Name: index_scan_result_policies_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_scan_result_policies_on_project_id ON public.scan_result_policies USING btree (project_id); + + +-- +-- Name: index_scan_result_policy_violations_on_approval_policy_rule_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_scan_result_policy_violations_on_approval_policy_rule_id ON public.scan_result_policy_violations USING btree (approval_policy_rule_id); + + +-- +-- Name: index_scan_result_policy_violations_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_scan_result_policy_violations_on_merge_request_id ON public.scan_result_policy_violations USING btree (merge_request_id); + + +-- +-- Name: index_scan_result_policy_violations_on_policy_and_merge_request; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_scan_result_policy_violations_on_policy_and_merge_request ON public.scan_result_policy_violations USING btree (scan_result_policy_id, merge_request_id); + + +-- +-- Name: index_scan_result_policy_violations_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_scan_result_policy_violations_on_project_id ON public.scan_result_policy_violations USING btree (project_id); + + +-- +-- Name: index_scim_identities_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_scim_identities_on_group_id ON public.scim_identities USING btree (group_id); + + +-- +-- Name: index_scim_identities_on_lower_extern_uid_and_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_scim_identities_on_lower_extern_uid_and_group_id ON public.scim_identities USING btree (lower((extern_uid)::text), group_id); + + +-- +-- Name: index_scim_identities_on_user_id_and_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_scim_identities_on_user_id_and_group_id ON public.scim_identities USING btree (user_id, group_id); + + +-- +-- Name: index_scim_oauth_access_tokens_on_group_id_and_token_encrypted; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_scim_oauth_access_tokens_on_group_id_and_token_encrypted ON public.scim_oauth_access_tokens USING btree (group_id, token_encrypted); + + +-- +-- Name: index_search_indices_on_id_and_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_search_indices_on_id_and_type ON public.search_indices USING btree (id, type); + + +-- +-- Name: index_search_indices_on_type_and_bucket_number; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_search_indices_on_type_and_bucket_number ON public.search_indices USING btree (type, bucket_number); + + +-- +-- Name: index_search_indices_on_type_and_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_search_indices_on_type_and_path ON public.search_indices USING btree (type, path); + + +-- +-- Name: index_search_namespace_index_assignments_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_search_namespace_index_assignments_on_namespace_id ON public.search_namespace_index_assignments USING btree (namespace_id); + + +-- +-- Name: index_search_namespace_index_assignments_on_search_index_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_search_namespace_index_assignments_on_search_index_id ON public.search_namespace_index_assignments USING btree (search_index_id); + + +-- +-- Name: index_search_namespace_index_assignments_uniqueness_index_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_search_namespace_index_assignments_uniqueness_index_type ON public.search_namespace_index_assignments USING btree (namespace_id, index_type); + + +-- +-- Name: index_search_namespace_index_assignments_uniqueness_on_index_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_search_namespace_index_assignments_uniqueness_on_index_id ON public.search_namespace_index_assignments USING btree (namespace_id, search_index_id); + + +-- +-- Name: p_ci_builds_user_id_name_created_at_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_user_id_name_created_at_idx ON ONLY public.p_ci_builds USING btree (user_id, name, created_at) WHERE (((type)::text = 'Ci::Build'::text) AND ((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('license_scanning'::character varying)::text, ('sast'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('apifuzzer_fuzz'::character varying)::text, ('apifuzzer_fuzz_dnd'::character varying)::text, ('secret_detection'::character varying)::text]))); + + +-- +-- Name: index_secure_ci_builds_on_user_id_name_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_secure_ci_builds_on_user_id_name_created_at ON public.ci_builds USING btree (user_id, name, created_at) WHERE (((type)::text = 'Ci::Build'::text) AND ((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('license_scanning'::character varying)::text, ('sast'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('apifuzzer_fuzz'::character varying)::text, ('apifuzzer_fuzz_dnd'::character varying)::text, ('secret_detection'::character varying)::text]))); + + +-- +-- Name: p_ci_builds_name_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_name_id_idx ON ONLY public.p_ci_builds USING btree (name, id) WHERE (((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('sast'::character varying)::text, ('secret_detection'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('license_scanning'::character varying)::text, ('apifuzzer_fuzz'::character varying)::text, ('apifuzzer_fuzz_dnd'::character varying)::text])) AND ((type)::text = 'Ci::Build'::text)); + + +-- +-- Name: index_security_ci_builds_on_name_and_id_parser_features; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_security_ci_builds_on_name_and_id_parser_features ON public.ci_builds USING btree (name, id) WHERE (((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('sast'::character varying)::text, ('secret_detection'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('license_scanning'::character varying)::text, ('apifuzzer_fuzz'::character varying)::text, ('apifuzzer_fuzz_dnd'::character varying)::text])) AND ((type)::text = 'Ci::Build'::text)); + + +-- +-- Name: index_security_orchestration_policy_rule_schedules_on_namespace; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_security_orchestration_policy_rule_schedules_on_namespace ON public.security_orchestration_policy_rule_schedules USING btree (namespace_id); + + +-- +-- Name: index_security_orchestration_policy_rule_schedules_on_project_i; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_security_orchestration_policy_rule_schedules_on_project_i ON public.security_orchestration_policy_rule_schedules USING btree (project_id); + + +-- +-- Name: index_security_policies_on_policy_management_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_security_policies_on_policy_management_project_id ON public.security_policies USING btree (security_policy_management_project_id); + + +-- +-- Name: index_security_policies_on_unique_config_type_policy_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_security_policies_on_unique_config_type_policy_index ON public.security_policies USING btree (security_orchestration_policy_configuration_id, type, policy_index); + + +-- +-- Name: index_security_policy_project_links_on_project_and_policy; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_security_policy_project_links_on_project_and_policy ON public.security_policy_project_links USING btree (security_policy_id, project_id); + + +-- +-- Name: index_security_policy_project_links_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_security_policy_project_links_on_project_id ON public.security_policy_project_links USING btree (project_id); + + +-- +-- Name: index_security_policy_requirements_on_compliance_requirement_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_security_policy_requirements_on_compliance_requirement_id ON public.security_policy_requirements USING btree (compliance_requirement_id); + + +-- +-- Name: index_security_policy_requirements_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_security_policy_requirements_on_namespace_id ON public.security_policy_requirements USING btree (namespace_id); + + +-- +-- Name: index_security_scans_for_non_purged_records; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_security_scans_for_non_purged_records ON public.security_scans USING btree (created_at, id) WHERE (status <> 6); + + +-- +-- Name: index_security_scans_on_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_security_scans_on_created_at ON public.security_scans USING btree (created_at); + + +-- +-- Name: index_security_scans_on_date_created_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_security_scans_on_date_created_at_and_id ON public.security_scans USING btree (date(timezone('UTC'::text, created_at)), id); + + +-- +-- Name: index_security_scans_on_length_of_errors; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_security_scans_on_length_of_errors ON public.security_scans USING btree (pipeline_id, jsonb_array_length(COALESCE((info -> 'errors'::text), '[]'::jsonb))); + + +-- +-- Name: index_security_scans_on_length_of_warnings; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_security_scans_on_length_of_warnings ON public.security_scans USING btree (pipeline_id, jsonb_array_length(COALESCE((info -> 'warnings'::text), '[]'::jsonb))); + + +-- +-- Name: index_security_scans_on_pipeline_id_and_scan_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_security_scans_on_pipeline_id_and_scan_type ON public.security_scans USING btree (pipeline_id, scan_type); + + +-- +-- Name: index_security_scans_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_security_scans_on_project_id ON public.security_scans USING btree (project_id); + + +-- +-- Name: index_security_training_providers_on_unique_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_security_training_providers_on_unique_name ON public.security_training_providers USING btree (name); + + +-- +-- Name: index_security_trainings_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_security_trainings_on_project_id ON public.security_trainings USING btree (project_id); + + +-- +-- Name: index_security_trainings_on_provider_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_security_trainings_on_provider_id ON public.security_trainings USING btree (provider_id); + + +-- +-- Name: index_security_trainings_on_unique_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_security_trainings_on_unique_project_id ON public.security_trainings USING btree (project_id) WHERE (is_primary IS TRUE); + + +-- +-- Name: index_self_managed_prometheus_alert_events_on_environment_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_self_managed_prometheus_alert_events_on_environment_id ON public.self_managed_prometheus_alert_events USING btree (environment_id); + + +-- +-- Name: index_sent_notifications_on_issue_email_participant_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sent_notifications_on_issue_email_participant_id ON public.sent_notifications USING btree (issue_email_participant_id); + + +-- +-- Name: index_sent_notifications_on_noteable_type_noteable_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sent_notifications_on_noteable_type_noteable_id ON public.sent_notifications USING btree (noteable_id) WHERE ((noteable_type)::text = 'Issue'::text); + + +-- +-- Name: index_sent_notifications_on_reply_key; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_sent_notifications_on_reply_key ON public.sent_notifications USING btree (reply_key); + + +-- +-- Name: index_sentry_issues_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_sentry_issues_on_issue_id ON public.sentry_issues USING btree (issue_id); + + +-- +-- Name: index_sentry_issues_on_sentry_issue_identifier; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sentry_issues_on_sentry_issue_identifier ON public.sentry_issues USING btree (sentry_issue_identifier); + + +-- +-- Name: index_service_desk_custom_email_verifications_on_triggerer_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_service_desk_custom_email_verifications_on_triggerer_id ON public.service_desk_custom_email_verifications USING btree (triggerer_id); + + +-- +-- Name: index_service_desk_enabled_projects_on_id_creator_id_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_service_desk_enabled_projects_on_id_creator_id_created_at ON public.projects USING btree (id, creator_id, created_at) WHERE (service_desk_enabled = true); + + +-- +-- Name: index_service_desk_settings_on_custom_email_enabled; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_service_desk_settings_on_custom_email_enabled ON public.service_desk_settings USING btree (custom_email_enabled); + + +-- +-- Name: index_service_desk_settings_on_file_template_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_service_desk_settings_on_file_template_project_id ON public.service_desk_settings USING btree (file_template_project_id); + + +-- +-- Name: index_shards_on_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_shards_on_name ON public.shards USING btree (name); + + +-- +-- Name: index_site_profile_secret_variables_on_site_profile_id_and_key; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_site_profile_secret_variables_on_site_profile_id_and_key ON public.dast_site_profile_secret_variables USING btree (dast_site_profile_id, key); + + +-- +-- Name: index_slack_api_scopes_on_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_slack_api_scopes_on_name ON public.slack_api_scopes USING btree (name); + + +-- +-- Name: index_slack_api_scopes_on_name_and_integration; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_slack_api_scopes_on_name_and_integration ON public.slack_integrations_scopes USING btree (slack_integration_id, slack_api_scope_id); + + +-- +-- Name: index_slack_integrations_on_integration_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_slack_integrations_on_integration_id ON public.slack_integrations USING btree (integration_id); + + +-- +-- Name: index_slack_integrations_on_team_id_and_alias; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_slack_integrations_on_team_id_and_alias ON public.slack_integrations USING btree (team_id, alias); + + +-- +-- Name: index_smartcard_identities_on_subject_and_issuer; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_smartcard_identities_on_subject_and_issuer ON public.smartcard_identities USING btree (subject, issuer); + + +-- +-- Name: index_smartcard_identities_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_smartcard_identities_on_user_id ON public.smartcard_identities USING btree (user_id); + + +-- +-- Name: index_snippet_on_id_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippet_on_id_and_project_id ON public.snippets USING btree (id, project_id); + + +-- +-- Name: index_snippet_repositories_failed_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippet_repositories_failed_verification ON public.snippet_repositories USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); + + +-- +-- Name: index_snippet_repositories_needs_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippet_repositories_needs_verification ON public.snippet_repositories USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); + + +-- +-- Name: index_snippet_repositories_on_disk_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_snippet_repositories_on_disk_path ON public.snippet_repositories USING btree (disk_path); + + +-- +-- Name: index_snippet_repositories_on_shard_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippet_repositories_on_shard_id ON public.snippet_repositories USING btree (shard_id); + + +-- +-- Name: index_snippet_repositories_pending_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippet_repositories_pending_verification ON public.snippet_repositories USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); + + +-- +-- Name: index_snippet_repositories_verification_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippet_repositories_verification_state ON public.snippet_repositories USING btree (verification_state); + + +-- +-- Name: index_snippet_repository_storage_moves_on_snippet_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippet_repository_storage_moves_on_snippet_id ON public.snippet_repository_storage_moves USING btree (snippet_id); + + +-- +-- Name: index_snippet_repository_storage_moves_on_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippet_repository_storage_moves_on_state ON public.snippet_repository_storage_moves USING btree (state) WHERE (state = ANY (ARRAY[2, 3])); + + +-- +-- Name: index_snippet_user_mentions_on_note_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_snippet_user_mentions_on_note_id ON public.snippet_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); + + +-- +-- Name: index_snippets_on_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippets_on_author_id ON public.snippets USING btree (author_id); + + +-- +-- Name: index_snippets_on_content_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippets_on_content_trigram ON public.snippets USING gin (content public.gin_trgm_ops); + + +-- +-- Name: index_snippets_on_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippets_on_created_at ON public.snippets USING btree (created_at); + + +-- +-- Name: index_snippets_on_description_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippets_on_description_trigram ON public.snippets USING gin (description public.gin_trgm_ops); + + +-- +-- Name: index_snippets_on_file_name_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippets_on_file_name_trigram ON public.snippets USING gin (file_name public.gin_trgm_ops); + + +-- +-- Name: index_snippets_on_id_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippets_on_id_and_created_at ON public.snippets USING btree (id, created_at); + + +-- +-- Name: index_snippets_on_id_and_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippets_on_id_and_type ON public.snippets USING btree (id, type); + + +-- +-- Name: index_snippets_on_organization_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippets_on_organization_id ON public.snippets USING btree (organization_id); + + +-- +-- Name: index_snippets_on_project_id_and_title; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippets_on_project_id_and_title ON public.snippets USING btree (project_id, title); + + +-- +-- Name: index_snippets_on_project_id_and_visibility_level; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippets_on_project_id_and_visibility_level ON public.snippets USING btree (project_id, visibility_level); + + +-- +-- Name: index_snippets_on_title_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippets_on_title_trigram ON public.snippets USING gin (title public.gin_trgm_ops); + + +-- +-- Name: index_snippets_on_updated_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippets_on_updated_at ON public.snippets USING btree (updated_at); + + +-- +-- Name: index_snippets_on_visibility_level_and_secret; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_snippets_on_visibility_level_and_secret ON public.snippets USING btree (visibility_level, secret); + + +-- +-- Name: index_software_license_policies_on_approval_policy_rule_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_software_license_policies_on_approval_policy_rule_id ON public.software_license_policies USING btree (approval_policy_rule_id); + + +-- +-- Name: index_software_license_policies_on_scan_result_policy_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_software_license_policies_on_scan_result_policy_id ON public.software_license_policies USING btree (scan_result_policy_id); + + +-- +-- Name: index_software_license_policies_on_software_license_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_software_license_policies_on_software_license_id ON public.software_license_policies USING btree (software_license_id); + + +-- +-- Name: index_software_licenses_on_spdx_identifier; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_software_licenses_on_spdx_identifier ON public.software_licenses USING btree (spdx_identifier); + + +-- +-- Name: index_software_licenses_on_unique_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_software_licenses_on_unique_name ON public.software_licenses USING btree (name); + + +-- +-- Name: index_sop_configurations_project_id_policy_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sop_configurations_project_id_policy_project_id ON public.security_orchestration_policy_configurations USING btree (security_policy_management_project_id, project_id); + + +-- +-- Name: index_sop_schedules_on_sop_configuration_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sop_schedules_on_sop_configuration_id ON public.security_orchestration_policy_rule_schedules USING btree (security_orchestration_policy_configuration_id); + + +-- +-- Name: index_sop_schedules_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sop_schedules_on_user_id ON public.security_orchestration_policy_rule_schedules USING btree (user_id); + + +-- +-- Name: index_spam_logs_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_spam_logs_on_user_id ON public.spam_logs USING btree (user_id); + + +-- +-- Name: index_sprints_iterations_cadence_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sprints_iterations_cadence_id ON public.sprints USING btree (iterations_cadence_id); + + +-- +-- Name: index_sprints_on_description_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sprints_on_description_trigram ON public.sprints USING gin (description public.gin_trgm_ops); + + +-- +-- Name: index_sprints_on_due_date; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sprints_on_due_date ON public.sprints USING btree (due_date); + + +-- +-- Name: index_sprints_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sprints_on_group_id ON public.sprints USING btree (group_id); + + +-- +-- Name: index_sprints_on_title; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sprints_on_title ON public.sprints USING btree (title); + + +-- +-- Name: index_sprints_on_title_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_sprints_on_title_trigram ON public.sprints USING gin (title public.gin_trgm_ops); + + +-- +-- Name: index_ssh_signatures_on_commit_sha; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_ssh_signatures_on_commit_sha ON public.ssh_signatures USING btree (commit_sha); + + +-- +-- Name: index_ssh_signatures_on_key_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ssh_signatures_on_key_id ON public.ssh_signatures USING btree (key_id); + + +-- +-- Name: index_ssh_signatures_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ssh_signatures_on_project_id ON public.ssh_signatures USING btree (project_id); + + +-- +-- Name: index_ssh_signatures_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_ssh_signatures_on_user_id ON public.ssh_signatures USING btree (user_id); + + +-- +-- Name: index_status_check_responses_on_external_approval_rule_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_status_check_responses_on_external_approval_rule_id ON public.status_check_responses USING btree (external_approval_rule_id); + + +-- +-- Name: index_status_check_responses_on_external_status_check_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_status_check_responses_on_external_status_check_id ON public.status_check_responses USING btree (external_status_check_id); + + +-- +-- Name: index_status_check_responses_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_status_check_responses_on_merge_request_id ON public.status_check_responses USING btree (merge_request_id); + + +-- +-- Name: index_status_check_responses_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_status_check_responses_on_project_id ON public.status_check_responses USING btree (project_id); + + +-- +-- Name: index_status_page_published_incidents_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_status_page_published_incidents_on_issue_id ON public.status_page_published_incidents USING btree (issue_id); + + +-- +-- Name: index_status_page_settings_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_status_page_settings_on_project_id ON public.status_page_settings USING btree (project_id); + + +-- +-- Name: index_subscription_add_on_purchases_on_namespace_id_add_on_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_subscription_add_on_purchases_on_namespace_id_add_on_id ON public.subscription_add_on_purchases USING btree (namespace_id, subscription_add_on_id); + + +-- +-- Name: index_subscription_add_ons_on_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_subscription_add_ons_on_name ON public.subscription_add_ons USING btree (name); + + +-- +-- Name: index_subscription_addon_purchases_on_expires_on; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_subscription_addon_purchases_on_expires_on ON public.subscription_add_on_purchases USING btree (expires_on); + + +-- +-- Name: index_subscription_user_add_on_assignments_on_organization_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_subscription_user_add_on_assignments_on_organization_id ON public.subscription_user_add_on_assignments USING btree (organization_id); + + +-- +-- Name: index_subscription_user_add_on_assignments_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_subscription_user_add_on_assignments_on_user_id ON public.subscription_user_add_on_assignments USING btree (user_id); + + +-- +-- Name: index_subscriptions_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_subscriptions_on_project_id ON public.subscriptions USING btree (project_id); + + +-- +-- Name: index_subscriptions_on_subscribable_and_user_id_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_subscriptions_on_subscribable_and_user_id_and_project_id ON public.subscriptions USING btree (subscribable_id, subscribable_type, user_id, project_id); + + +-- +-- Name: index_successful_authentication_events_for_metrics; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_successful_authentication_events_for_metrics ON public.authentication_events USING btree (user_id, provider, created_at) WHERE (result = 1); + + +-- +-- Name: index_suggestions_on_note_id_and_relative_order; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_suggestions_on_note_id_and_relative_order ON public.suggestions USING btree (note_id, relative_order); + + +-- +-- Name: index_system_access_microsoft_applications_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_system_access_microsoft_applications_on_namespace_id ON public.system_access_microsoft_applications USING btree (namespace_id); + + +-- +-- Name: index_system_note_metadata_on_description_version_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_system_note_metadata_on_description_version_id ON public.system_note_metadata USING btree (description_version_id) WHERE (description_version_id IS NOT NULL); + + +-- +-- Name: index_system_note_metadata_on_note_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_system_note_metadata_on_note_id ON public.system_note_metadata USING btree (note_id); + + +-- +-- Name: index_taggings_on_tag_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_taggings_on_tag_id ON public.taggings USING btree (tag_id); + + +-- +-- Name: index_taggings_on_taggable_id_and_taggable_type_and_context; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_taggings_on_taggable_id_and_taggable_type_and_context ON public.taggings USING btree (taggable_id, taggable_type, context); + + +-- +-- Name: index_tags_on_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_tags_on_name ON public.tags USING btree (name); + + +-- +-- Name: index_tags_on_name_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_tags_on_name_trigram ON public.tags USING gin (name public.gin_trgm_ops); + + +-- +-- Name: index_target_branch_rules_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_target_branch_rules_on_project_id ON public.target_branch_rules USING btree (project_id); + + +-- +-- Name: index_term_agreements_on_term_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_term_agreements_on_term_id ON public.term_agreements USING btree (term_id); + + +-- +-- Name: index_term_agreements_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_term_agreements_on_user_id ON public.term_agreements USING btree (user_id); + + +-- +-- Name: index_terraform_state_versions_failed_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_terraform_state_versions_failed_verification ON public.terraform_state_versions USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); + + +-- +-- Name: index_terraform_state_versions_needs_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_terraform_state_versions_needs_verification ON public.terraform_state_versions USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); + + +-- +-- Name: index_terraform_state_versions_on_ci_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_terraform_state_versions_on_ci_build_id ON public.terraform_state_versions USING btree (ci_build_id); + + +-- +-- Name: index_terraform_state_versions_on_created_by_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_terraform_state_versions_on_created_by_user_id ON public.terraform_state_versions USING btree (created_by_user_id); + + +-- +-- Name: index_terraform_state_versions_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_terraform_state_versions_on_project_id ON public.terraform_state_versions USING btree (project_id); + + +-- +-- Name: index_terraform_state_versions_on_state_id_and_version; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_terraform_state_versions_on_state_id_and_version ON public.terraform_state_versions USING btree (terraform_state_id, version); + + +-- +-- Name: index_terraform_state_versions_on_verification_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_terraform_state_versions_on_verification_state ON public.terraform_state_versions USING btree (verification_state); + + +-- +-- Name: index_terraform_state_versions_pending_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_terraform_state_versions_pending_verification ON public.terraform_state_versions USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); + + +-- +-- Name: index_terraform_states_on_file_store; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_terraform_states_on_file_store ON public.terraform_states USING btree (file_store); + + +-- +-- Name: index_terraform_states_on_locked_by_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_terraform_states_on_locked_by_user_id ON public.terraform_states USING btree (locked_by_user_id); + + +-- +-- Name: index_terraform_states_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_terraform_states_on_project_id_and_name ON public.terraform_states USING btree (project_id, name); + + +-- +-- Name: index_terraform_states_on_uuid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_terraform_states_on_uuid ON public.terraform_states USING btree (uuid); + + +-- +-- Name: index_timelog_categories_on_unique_name_per_namespace; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_timelog_categories_on_unique_name_per_namespace ON public.timelog_categories USING btree (namespace_id, lower(name)); + + +-- +-- Name: index_timelogs_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_timelogs_on_issue_id ON public.timelogs USING btree (issue_id); + + +-- +-- Name: index_timelogs_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_timelogs_on_merge_request_id ON public.timelogs USING btree (merge_request_id); + + +-- +-- Name: index_timelogs_on_note_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_timelogs_on_note_id ON public.timelogs USING btree (note_id); + + +-- +-- Name: index_timelogs_on_project_id_and_spent_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_timelogs_on_project_id_and_spent_at ON public.timelogs USING btree (project_id, spent_at); + + +-- +-- Name: index_timelogs_on_spent_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_timelogs_on_spent_at ON public.timelogs USING btree (spent_at) WHERE (spent_at IS NOT NULL); + + +-- +-- Name: index_timelogs_on_timelog_category_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_timelogs_on_timelog_category_id ON public.timelogs USING btree (timelog_category_id); + + +-- +-- Name: index_timelogs_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_timelogs_on_user_id ON public.timelogs USING btree (user_id); + + +-- +-- Name: index_todos_on_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_todos_on_author_id ON public.todos USING btree (author_id); + + +-- +-- Name: index_todos_on_author_id_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_todos_on_author_id_and_created_at ON public.todos USING btree (author_id, created_at); + + +-- +-- Name: index_todos_on_commit_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_todos_on_commit_id ON public.todos USING btree (commit_id); + + +-- +-- Name: index_todos_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_todos_on_group_id ON public.todos USING btree (group_id); + + +-- +-- Name: index_todos_on_note_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_todos_on_note_id ON public.todos USING btree (note_id); + + +-- +-- Name: index_todos_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_todos_on_project_id_and_id ON public.todos USING btree (project_id, id); + + +-- +-- Name: index_todos_on_target_type_and_target_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_todos_on_target_type_and_target_id ON public.todos USING btree (target_type, target_id); + + +-- +-- Name: index_todos_on_user_id_and_id_done; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_todos_on_user_id_and_id_done ON public.todos USING btree (user_id, id) WHERE ((state)::text = 'done'::text); + + +-- +-- Name: index_todos_on_user_id_and_id_pending; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_todos_on_user_id_and_id_pending ON public.todos USING btree (user_id, id) WHERE ((state)::text = 'pending'::text); + + +-- +-- Name: index_token_with_ivs_on_hashed_plaintext_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_token_with_ivs_on_hashed_plaintext_token ON public.token_with_ivs USING btree (hashed_plaintext_token); + + +-- +-- Name: index_token_with_ivs_on_hashed_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_token_with_ivs_on_hashed_token ON public.token_with_ivs USING btree (hashed_token); + + +-- +-- Name: index_topics_non_private_projects_count; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_topics_non_private_projects_count ON public.topics USING btree (non_private_projects_count DESC, id); + + +-- +-- Name: index_topics_on_lower_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_topics_on_lower_name ON public.topics USING btree (lower(name)); + + +-- +-- Name: index_topics_on_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_topics_on_name ON public.topics USING btree (name); + + +-- +-- Name: index_topics_on_name_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_topics_on_name_trigram ON public.topics USING gin (name public.gin_trgm_ops); + + +-- +-- Name: index_topics_on_slug; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_topics_on_slug ON public.topics USING btree (slug) WHERE (slug IS NOT NULL); + + +-- +-- Name: index_topics_total_projects_count; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_topics_total_projects_count ON public.topics USING btree (total_projects_count DESC, id); + + +-- +-- Name: index_trending_projects_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_trending_projects_on_project_id ON public.trending_projects USING btree (project_id); + + +-- +-- Name: index_unarchived_occurrences_for_aggregations_component_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_unarchived_occurrences_for_aggregations_component_name ON public.sbom_occurrences USING btree (traversal_ids, component_name, component_id, component_version_id) WHERE (archived = false); + + +-- +-- Name: index_unarchived_occurrences_for_aggregations_license; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_unarchived_occurrences_for_aggregations_license ON public.sbom_occurrences USING btree (traversal_ids, (((licenses -> 0) ->> 'spdx_identifier'::text)), component_id, component_version_id) WHERE (archived = false); + + +-- +-- Name: index_unarchived_occurrences_for_aggregations_package_manager; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_unarchived_occurrences_for_aggregations_package_manager ON public.sbom_occurrences USING btree (traversal_ids, package_manager, component_id, component_version_id) WHERE (archived = false); + + +-- +-- Name: index_unarchived_occurrences_for_aggregations_severity; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_unarchived_occurrences_for_aggregations_severity ON public.sbom_occurrences USING btree (traversal_ids, highest_severity, component_id, component_version_id) WHERE (archived = false); + + +-- +-- Name: index_unarchived_occurrences_on_version_id_and_traversal_ids; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_unarchived_occurrences_on_version_id_and_traversal_ids ON public.sbom_occurrences USING btree (component_version_id, traversal_ids) WHERE (archived = false); + + +-- +-- Name: index_unarchived_sbom_occurrences_for_aggregations; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_unarchived_sbom_occurrences_for_aggregations ON public.sbom_occurrences USING btree (traversal_ids, component_id, component_version_id) WHERE (archived = false); + + +-- +-- Name: index_uniq_ci_runners_on_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_uniq_ci_runners_on_token ON public.ci_runners USING btree (token); + + +-- +-- Name: index_uniq_ci_runners_on_token_encrypted; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_uniq_ci_runners_on_token_encrypted ON public.ci_runners USING btree (token_encrypted); + + +-- +-- Name: index_uniq_im_issuable_escalation_statuses_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_uniq_im_issuable_escalation_statuses_on_issue_id ON public.incident_management_issuable_escalation_statuses USING btree (issue_id); + + +-- +-- Name: index_uniq_projects_on_runners_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_uniq_projects_on_runners_token ON public.projects USING btree (runners_token); + + +-- +-- Name: index_uniq_projects_on_runners_token_encrypted; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_uniq_projects_on_runners_token_encrypted ON public.projects USING btree (runners_token_encrypted); + + +-- +-- Name: index_unique_ci_runner_projects_on_runner_id_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_unique_ci_runner_projects_on_runner_id_and_project_id ON public.ci_runner_projects USING btree (runner_id, project_id); + + +-- +-- Name: index_unique_epics_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_unique_epics_on_issue_id ON public.epics USING btree (issue_id); + + +-- +-- Name: index_unique_issuable_resource_links_on_unique_issue_link; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_unique_issuable_resource_links_on_unique_issue_link ON public.issuable_resource_links USING btree (issue_id, link) WHERE is_unique; + + +-- +-- Name: index_unique_issue_metrics_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_unique_issue_metrics_issue_id ON public.issue_metrics USING btree (issue_id); + + +-- +-- Name: index_unique_project_authorizations_on_unique_project_user; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_unique_project_authorizations_on_unique_project_user ON public.project_authorizations USING btree (project_id, user_id) WHERE is_unique; + + +-- +-- Name: index_unit_test_failures_failed_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_unit_test_failures_failed_at ON public.ci_unit_test_failures USING btree (failed_at DESC); + + +-- +-- Name: index_unit_test_failures_unique_columns; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_unit_test_failures_unique_columns ON public.ci_unit_test_failures USING btree (unit_test_id, failed_at DESC, build_id); + + +-- +-- Name: index_unresolved_alerts_on_project_id_and_fingerprint; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_unresolved_alerts_on_project_id_and_fingerprint ON public.alert_management_alerts USING btree (project_id, fingerprint) WHERE ((fingerprint IS NOT NULL) AND (status <> 2)); + + +-- +-- Name: index_upcoming_reconciliations_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_upcoming_reconciliations_on_namespace_id ON public.upcoming_reconciliations USING btree (namespace_id); + + +-- +-- Name: index_upcoming_reconciliations_on_organization_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_upcoming_reconciliations_on_organization_id ON public.upcoming_reconciliations USING btree (organization_id); + + +-- +-- Name: index_upload_states_failed_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_upload_states_failed_verification ON public.upload_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); + + +-- +-- Name: index_upload_states_needs_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_upload_states_needs_verification ON public.upload_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); + + +-- +-- Name: index_upload_states_on_upload_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_upload_states_on_upload_id ON public.upload_states USING btree (upload_id); + + +-- +-- Name: index_upload_states_on_verification_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_upload_states_on_verification_state ON public.upload_states USING btree (verification_state); + + +-- +-- Name: index_upload_states_pending_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_upload_states_pending_verification ON public.upload_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); + + +-- +-- Name: index_uploads_on_checksum; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_uploads_on_checksum ON public.uploads USING btree (checksum); + + +-- +-- Name: index_uploads_on_model_id_model_type_uploader_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_uploads_on_model_id_model_type_uploader_created_at ON public.uploads USING btree (model_id, model_type, uploader, created_at); + + +-- +-- Name: index_uploads_on_store; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_uploads_on_store ON public.uploads USING btree (store); + + +-- +-- Name: index_uploads_on_uploaded_by_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_uploads_on_uploaded_by_user_id ON public.uploads USING btree (uploaded_by_user_id); + + +-- +-- Name: index_uploads_on_uploader_and_path; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_uploads_on_uploader_and_path ON public.uploads USING btree (uploader, path); + + +-- +-- Name: index_user_achievements_on_achievement_id_revoked_by_is_null; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_achievements_on_achievement_id_revoked_by_is_null ON public.user_achievements USING btree (achievement_id, ((revoked_by_user_id IS NULL))); + + +-- +-- Name: index_user_achievements_on_awarded_by_revoked_by_is_null; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_achievements_on_awarded_by_revoked_by_is_null ON public.user_achievements USING btree (awarded_by_user_id, ((revoked_by_user_id IS NULL))); + + +-- +-- Name: index_user_achievements_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_achievements_on_namespace_id ON public.user_achievements USING btree (namespace_id); + + +-- +-- Name: index_user_achievements_on_revoked_by_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_achievements_on_revoked_by_user_id ON public.user_achievements USING btree (revoked_by_user_id); + + +-- +-- Name: index_user_achievements_on_user_id_revoked_by_is_null; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_achievements_on_user_id_revoked_by_is_null ON public.user_achievements USING btree (user_id, ((revoked_by_user_id IS NULL))); + + +-- +-- Name: index_user_agent_details_on_subject_id_and_subject_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_agent_details_on_subject_id_and_subject_type ON public.user_agent_details USING btree (subject_id, subject_type); + + +-- +-- Name: index_user_broadcast_message_dismissals_on_broadcast_message_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_broadcast_message_dismissals_on_broadcast_message_id ON public.user_broadcast_message_dismissals USING btree (broadcast_message_id); + + +-- +-- Name: index_user_callouts_on_user_id_and_feature_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_user_callouts_on_user_id_and_feature_name ON public.user_callouts USING btree (user_id, feature_name); + + +-- +-- Name: index_user_canonical_emails_on_canonical_email; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_canonical_emails_on_canonical_email ON public.user_canonical_emails USING btree (canonical_email); + + +-- +-- Name: index_user_canonical_emails_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_user_canonical_emails_on_user_id ON public.user_canonical_emails USING btree (user_id); + + +-- +-- Name: index_user_canonical_emails_on_user_id_and_canonical_email; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_user_canonical_emails_on_user_id_and_canonical_email ON public.user_canonical_emails USING btree (user_id, canonical_email); + + +-- +-- Name: index_user_credit_card_validations_on_stripe_card_fingerprint; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_credit_card_validations_on_stripe_card_fingerprint ON public.user_credit_card_validations USING btree (stripe_card_fingerprint); + + +-- +-- Name: index_user_custom_attributes_on_key_and_value; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_custom_attributes_on_key_and_value ON public.user_custom_attributes USING btree (key, value); + + +-- +-- Name: index_user_custom_attributes_on_user_id_and_key; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_user_custom_attributes_on_user_id_and_key ON public.user_custom_attributes USING btree (user_id, key); + + +-- +-- Name: index_user_details_on_enterprise_group_id_and_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_details_on_enterprise_group_id_and_user_id ON public.user_details USING btree (enterprise_group_id, user_id); + + +-- +-- Name: index_user_details_on_password_last_changed_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_details_on_password_last_changed_at ON public.user_details USING btree (password_last_changed_at); + + +-- +-- Name: INDEX index_user_details_on_password_last_changed_at; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON INDEX public.index_user_details_on_password_last_changed_at IS 'JiHu-specific index'; + + +-- +-- Name: index_user_details_on_phone; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_user_details_on_phone ON public.user_details USING btree (phone) WHERE (phone IS NOT NULL); + + +-- +-- Name: INDEX index_user_details_on_phone; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON INDEX public.index_user_details_on_phone IS 'JiHu-specific index'; + + +-- +-- Name: index_user_details_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_user_details_on_user_id ON public.user_details USING btree (user_id); + + +-- +-- Name: index_user_group_callouts_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_group_callouts_on_group_id ON public.user_group_callouts USING btree (group_id); + + +-- +-- Name: index_user_highest_roles_on_user_id_and_highest_access_level; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_highest_roles_on_user_id_and_highest_access_level ON public.user_highest_roles USING btree (user_id, highest_access_level); + + +-- +-- Name: index_user_id_and_notification_email_to_notification_settings; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_id_and_notification_email_to_notification_settings ON public.notification_settings USING btree (user_id, notification_email, id) WHERE (notification_email IS NOT NULL); + + +-- +-- Name: index_user_namespace_callouts_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_namespace_callouts_on_namespace_id ON public.user_namespace_callouts USING btree (namespace_id); + + +-- +-- Name: index_user_permission_export_uploads_on_user_id_and_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_permission_export_uploads_on_user_id_and_status ON public.user_permission_export_uploads USING btree (user_id, status); + + +-- +-- Name: index_user_phone_number_validations_on_telesign_reference_xid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_phone_number_validations_on_telesign_reference_xid ON public.user_phone_number_validations USING btree (telesign_reference_xid); + + +-- +-- Name: index_user_phone_validations_on_dial_code_phone_number; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_phone_validations_on_dial_code_phone_number ON public.user_phone_number_validations USING btree (international_dial_code, phone_number); + + +-- +-- Name: index_user_preferences_on_gitpod_enabled; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_preferences_on_gitpod_enabled ON public.user_preferences USING btree (gitpod_enabled); + + +-- +-- Name: index_user_preferences_on_home_organization_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_preferences_on_home_organization_id ON public.user_preferences USING btree (home_organization_id); + + +-- +-- Name: index_user_preferences_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_user_preferences_on_user_id ON public.user_preferences USING btree (user_id); + + +-- +-- Name: index_user_project_callouts_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_project_callouts_on_project_id ON public.user_project_callouts USING btree (project_id); + + +-- +-- Name: index_user_statuses_on_clear_status_at_not_null; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_statuses_on_clear_status_at_not_null ON public.user_statuses USING btree (clear_status_at) WHERE (clear_status_at IS NOT NULL); + + +-- +-- Name: index_user_statuses_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_user_statuses_on_user_id ON public.user_statuses USING btree (user_id); + + +-- +-- Name: index_user_synced_attributes_metadata_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_user_synced_attributes_metadata_on_user_id ON public.user_synced_attributes_metadata USING btree (user_id); + + +-- +-- Name: index_users_for_active_billable_users; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_for_active_billable_users ON public.users USING btree (id) WHERE (((state)::text = 'active'::text) AND (user_type = ANY (ARRAY[0, 6, 4, 13])) AND (user_type = ANY (ARRAY[0, 4, 5]))); + + +-- +-- Name: index_users_for_auditors; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_for_auditors ON public.users USING btree (id) WHERE (auditor IS TRUE); + + +-- +-- Name: index_users_on_admin; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_admin ON public.users USING btree (admin); + + +-- +-- Name: index_users_on_confirmation_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_users_on_confirmation_token ON public.users USING btree (confirmation_token); + + +-- +-- Name: index_users_on_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_created_at ON public.users USING btree (created_at); + + +-- +-- Name: index_users_on_email; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_users_on_email ON public.users USING btree (email); + + +-- +-- Name: index_users_on_email_domain_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_email_domain_and_id ON public.users USING btree (lower(split_part((email)::text, '@'::text, 2)), id); + + +-- +-- Name: index_users_on_email_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_email_trigram ON public.users USING gin (email public.gin_trgm_ops); + + +-- +-- Name: index_users_on_feed_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_feed_token ON public.users USING btree (feed_token); + + +-- +-- Name: index_users_on_group_view; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_group_view ON public.users USING btree (group_view); + + +-- +-- Name: index_users_on_id_and_last_activity_on_for_active_human_service; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_id_and_last_activity_on_for_active_human_service ON public.users USING btree (id, last_activity_on) WHERE (((state)::text = 'active'::text) AND (user_type = ANY (ARRAY[0, 4]))); + + +-- +-- Name: index_users_on_incoming_email_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_incoming_email_token ON public.users USING btree (incoming_email_token); + + +-- +-- Name: index_users_on_managing_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_managing_group_id ON public.users USING btree (managing_group_id); + + +-- +-- Name: index_users_on_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_name ON public.users USING btree (name); + + +-- +-- Name: index_users_on_name_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_name_trigram ON public.users USING gin (name public.gin_trgm_ops); + + +-- +-- Name: index_users_on_public_email_excluding_null_and_empty; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_public_email_excluding_null_and_empty ON public.users USING btree (public_email) WHERE (((public_email)::text <> ''::text) AND (public_email IS NOT NULL)); + + +-- +-- Name: index_users_on_public_email_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_public_email_trigram ON public.users USING gin (public_email public.gin_trgm_ops); + + +-- +-- Name: index_users_on_reset_password_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_users_on_reset_password_token ON public.users USING btree (reset_password_token); + + +-- +-- Name: index_users_on_state_and_user_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_state_and_user_type ON public.users USING btree (state, user_type); + + +-- +-- Name: index_users_on_static_object_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_users_on_static_object_token ON public.users USING btree (static_object_token); + + +-- +-- Name: index_users_on_unconfirmed_created_at_active_type_sign_in_count; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_unconfirmed_created_at_active_type_sign_in_count ON public.users USING btree (created_at, id) WHERE ((confirmed_at IS NULL) AND ((state)::text = 'active'::text) AND (user_type = 0) AND (sign_in_count = 0)); + + +-- +-- Name: index_users_on_unconfirmed_email; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_unconfirmed_email ON public.users USING btree (unconfirmed_email) WHERE (unconfirmed_email IS NOT NULL); + + +-- +-- Name: index_users_on_unlock_token; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_users_on_unlock_token ON public.users USING btree (unlock_token); + + +-- +-- Name: index_users_on_updated_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_updated_at ON public.users USING btree (updated_at); + + +-- +-- Name: index_users_on_user_type_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_user_type_and_id ON public.users USING btree (user_type, id); + + +-- +-- Name: index_users_on_username; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_username ON public.users USING btree (username); + + +-- +-- Name: index_users_on_username_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_on_username_trigram ON public.users USING gin (username public.gin_trgm_ops); + + +-- +-- Name: index_users_ops_dashboard_projects_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_ops_dashboard_projects_on_project_id ON public.users_ops_dashboard_projects USING btree (project_id); + + +-- +-- Name: index_users_ops_dashboard_projects_on_user_id_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_users_ops_dashboard_projects_on_user_id_and_project_id ON public.users_ops_dashboard_projects USING btree (user_id, project_id); + + +-- +-- Name: index_users_security_dashboard_projects_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_security_dashboard_projects_on_user_id ON public.users_security_dashboard_projects USING btree (user_id); + + +-- +-- Name: index_users_star_projects_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_users_star_projects_on_project_id ON public.users_star_projects USING btree (project_id); + + +-- +-- Name: index_users_star_projects_on_user_id_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_users_star_projects_on_user_id_and_project_id ON public.users_star_projects USING btree (user_id, project_id); + + +-- +-- Name: index_verification_codes_on_phone_and_visitor_id_code; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_verification_codes_on_phone_and_visitor_id_code ON ONLY public.verification_codes USING btree (visitor_id_code, phone, created_at); + + +-- +-- Name: INDEX index_verification_codes_on_phone_and_visitor_id_code; Type: COMMENT; Schema: public; Owner: - +-- + +COMMENT ON INDEX public.index_verification_codes_on_phone_and_visitor_id_code IS 'JiHu-specific index'; + + +-- +-- Name: index_virtual_reg_pkgs_maven_cached_responses_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_virtual_reg_pkgs_maven_cached_responses_on_group_id ON public.virtual_registries_packages_maven_cached_responses USING btree (group_id); + + +-- +-- Name: index_virtual_reg_pkgs_maven_reg_upstreams_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_virtual_reg_pkgs_maven_reg_upstreams_on_group_id ON public.virtual_registries_packages_maven_registry_upstreams USING btree (group_id); + + +-- +-- Name: index_virtual_reg_pkgs_maven_upstreams_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_virtual_reg_pkgs_maven_upstreams_on_group_id ON public.virtual_registries_packages_maven_upstreams USING btree (group_id); + + +-- +-- Name: index_vuln_findings_on_uuid_including_vuln_id_1; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_vuln_findings_on_uuid_including_vuln_id_1 ON public.vulnerability_occurrences USING btree (uuid) INCLUDE (vulnerability_id); + + +-- +-- Name: index_vuln_historical_statistics_on_project_id_and_date; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_vuln_historical_statistics_on_project_id_and_date ON public.vulnerability_historical_statistics USING btree (project_id, date); + + +-- +-- Name: index_vuln_namespace_historical_statistics_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vuln_namespace_historical_statistics_on_namespace_id ON public.vulnerability_namespace_historical_statistics USING btree (namespace_id); + + +-- +-- Name: index_vuln_namespace_historical_statistics_traversal_ids_date; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_vuln_namespace_historical_statistics_traversal_ids_date ON public.vulnerability_namespace_historical_statistics USING btree (traversal_ids, date); + + +-- +-- Name: index_vuln_reads_common_query_on_resolved_on_default_branch; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vuln_reads_common_query_on_resolved_on_default_branch ON public.vulnerability_reads USING btree (project_id, state, report_type, vulnerability_id DESC) WHERE (resolved_on_default_branch IS TRUE); + + +-- +-- Name: index_vuln_reads_on_casted_cluster_agent_id_where_it_is_null; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vuln_reads_on_casted_cluster_agent_id_where_it_is_null ON public.vulnerability_reads USING btree (casted_cluster_agent_id) WHERE (casted_cluster_agent_id IS NOT NULL); + + +-- +-- Name: index_vuln_reads_on_project_id_owasp_top_10; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vuln_reads_on_project_id_owasp_top_10 ON public.vulnerability_reads USING btree (project_id, owasp_top_10); + + +-- +-- Name: index_vuln_reads_on_project_id_state_severity_and_vuln_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vuln_reads_on_project_id_state_severity_and_vuln_id ON public.vulnerability_reads USING btree (project_id, state, severity, vulnerability_id DESC); + + +-- +-- Name: index_vulnerabilities_common_finder_query_on_default_branch; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerabilities_common_finder_query_on_default_branch ON public.vulnerabilities USING btree (project_id, state, report_type, present_on_default_branch, severity, id); + + +-- +-- Name: index_vulnerabilities_on_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerabilities_on_author_id ON public.vulnerabilities USING btree (author_id); + + +-- +-- Name: index_vulnerabilities_on_confirmed_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerabilities_on_confirmed_by_id ON public.vulnerabilities USING btree (confirmed_by_id); + + +-- +-- Name: index_vulnerabilities_on_detected_at_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerabilities_on_detected_at_and_id ON public.vulnerabilities USING btree (id, detected_at); + + +-- +-- Name: index_vulnerabilities_on_dismissed_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerabilities_on_dismissed_by_id ON public.vulnerabilities USING btree (dismissed_by_id); + + +-- +-- Name: index_vulnerabilities_on_finding_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerabilities_on_finding_id ON public.vulnerabilities USING btree (finding_id); + + +-- +-- Name: index_vulnerabilities_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerabilities_on_project_id_and_id ON public.vulnerabilities USING btree (project_id, id); + + +-- +-- Name: index_vulnerabilities_on_resolved_by_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerabilities_on_resolved_by_id ON public.vulnerabilities USING btree (resolved_by_id); + + +-- +-- Name: index_vulnerabilities_project_id_and_id_on_default_branch; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerabilities_project_id_and_id_on_default_branch ON public.vulnerabilities USING btree (project_id, id) WHERE (present_on_default_branch IS TRUE); + + +-- +-- Name: index_vulnerabilities_project_id_state_severity_default_branch; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerabilities_project_id_state_severity_default_branch ON public.vulnerabilities USING btree (project_id, state, severity, present_on_default_branch); + + +-- +-- Name: index_vulnerability_export_parts_on_organization_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_export_parts_on_organization_id ON public.vulnerability_export_parts USING btree (organization_id); + + +-- +-- Name: index_vulnerability_export_parts_on_vulnerability_export_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_export_parts_on_vulnerability_export_id ON public.vulnerability_export_parts USING btree (vulnerability_export_id); + + +-- +-- Name: index_vulnerability_exports_on_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_exports_on_author_id ON public.vulnerability_exports USING btree (author_id); + + +-- +-- Name: index_vulnerability_exports_on_file_store; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_exports_on_file_store ON public.vulnerability_exports USING btree (file_store); + + +-- +-- Name: index_vulnerability_exports_on_group_id_not_null; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_exports_on_group_id_not_null ON public.vulnerability_exports USING btree (group_id) WHERE (group_id IS NOT NULL); + + +-- +-- Name: index_vulnerability_exports_on_organization_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_exports_on_organization_id ON public.vulnerability_exports USING btree (organization_id); + + +-- +-- Name: index_vulnerability_exports_on_project_id_not_null; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_exports_on_project_id_not_null ON public.vulnerability_exports USING btree (project_id) WHERE (project_id IS NOT NULL); + + +-- +-- Name: index_vulnerability_external_issue_links_on_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_external_issue_links_on_author_id ON public.vulnerability_external_issue_links USING btree (author_id); + + +-- +-- Name: index_vulnerability_external_issue_links_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_external_issue_links_on_project_id ON public.vulnerability_external_issue_links USING btree (project_id); + + +-- +-- Name: index_vulnerability_feedback_finding_uuid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_feedback_finding_uuid ON public.vulnerability_feedback USING hash (finding_uuid); + + +-- +-- Name: index_vulnerability_feedback_on_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_feedback_on_author_id ON public.vulnerability_feedback USING btree (author_id); + + +-- +-- Name: index_vulnerability_feedback_on_comment_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_feedback_on_comment_author_id ON public.vulnerability_feedback USING btree (comment_author_id); + + +-- +-- Name: index_vulnerability_feedback_on_common_attributes; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_feedback_on_common_attributes ON public.vulnerability_feedback USING btree (project_id, category, feedback_type, project_fingerprint); + + +-- +-- Name: index_vulnerability_feedback_on_feedback_type_and_finding_uuid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_feedback_on_feedback_type_and_finding_uuid ON public.vulnerability_feedback USING btree (feedback_type, finding_uuid); + + +-- +-- Name: index_vulnerability_feedback_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_feedback_on_issue_id ON public.vulnerability_feedback USING btree (issue_id); + + +-- +-- Name: index_vulnerability_feedback_on_issue_id_not_null; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_feedback_on_issue_id_not_null ON public.vulnerability_feedback USING btree (id) WHERE (issue_id IS NOT NULL); + + +-- +-- Name: index_vulnerability_feedback_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_feedback_on_merge_request_id ON public.vulnerability_feedback USING btree (merge_request_id); + + +-- +-- Name: index_vulnerability_feedback_on_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_feedback_on_pipeline_id ON public.vulnerability_feedback USING btree (pipeline_id); + + +-- +-- Name: index_vulnerability_finding_evidences_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_finding_evidences_on_project_id ON public.vulnerability_finding_evidences USING btree (project_id); + + +-- +-- Name: index_vulnerability_finding_signatures_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_finding_signatures_on_project_id ON public.vulnerability_finding_signatures USING btree (project_id); + + +-- +-- Name: index_vulnerability_finding_signatures_on_signature_sha; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_finding_signatures_on_signature_sha ON public.vulnerability_finding_signatures USING btree (signature_sha); + + +-- +-- Name: index_vulnerability_findings_remediations_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_findings_remediations_on_project_id ON public.vulnerability_findings_remediations USING btree (project_id); + + +-- +-- Name: index_vulnerability_findings_remediations_on_remediation_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_findings_remediations_on_remediation_id ON public.vulnerability_findings_remediations USING btree (vulnerability_remediation_id); + + +-- +-- Name: index_vulnerability_findings_remediations_on_unique_keys; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_vulnerability_findings_remediations_on_unique_keys ON public.vulnerability_findings_remediations USING btree (vulnerability_occurrence_id, vulnerability_remediation_id); + + +-- +-- Name: index_vulnerability_flags_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_flags_on_project_id ON public.vulnerability_flags USING btree (project_id); + + +-- +-- Name: index_vulnerability_flags_on_unique_columns; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_vulnerability_flags_on_unique_columns ON public.vulnerability_flags USING btree (vulnerability_occurrence_id, flag_type, origin); + + +-- +-- Name: index_vulnerability_historical_statistics_on_date_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_historical_statistics_on_date_and_id ON public.vulnerability_historical_statistics USING btree (date, id); + + +-- +-- Name: index_vulnerability_identifiers_on_project_id_and_fingerprint; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_vulnerability_identifiers_on_project_id_and_fingerprint ON public.vulnerability_identifiers USING btree (project_id, fingerprint); + + +-- +-- Name: index_vulnerability_issue_links_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_issue_links_on_issue_id ON public.vulnerability_issue_links USING btree (issue_id); + + +-- +-- Name: index_vulnerability_issue_links_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_issue_links_on_project_id ON public.vulnerability_issue_links USING btree (project_id); + + +-- +-- Name: index_vulnerability_merge_request_links_on_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_merge_request_links_on_merge_request_id ON public.vulnerability_merge_request_links USING btree (merge_request_id); + + +-- +-- Name: index_vulnerability_merge_request_links_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_merge_request_links_on_project_id ON public.vulnerability_merge_request_links USING btree (project_id); + + +-- +-- Name: index_vulnerability_occurrence_identifiers_on_identifier_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_occurrence_identifiers_on_identifier_id ON public.vulnerability_occurrence_identifiers USING btree (identifier_id); + + +-- +-- Name: index_vulnerability_occurrence_identifiers_on_unique_keys; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_vulnerability_occurrence_identifiers_on_unique_keys ON public.vulnerability_occurrence_identifiers USING btree (occurrence_id, identifier_id); + + +-- +-- Name: index_vulnerability_occurrence_pipelines_occurrence_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_occurrence_pipelines_occurrence_id_and_id ON public.vulnerability_occurrence_pipelines USING btree (occurrence_id, id DESC); + + +-- +-- Name: index_vulnerability_occurrence_pipelines_on_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_occurrence_pipelines_on_pipeline_id ON public.vulnerability_occurrence_pipelines USING btree (pipeline_id); + + +-- +-- Name: index_vulnerability_occurrences_for_override_uuids_logic; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_occurrences_for_override_uuids_logic ON public.vulnerability_occurrences USING btree (project_id, report_type, location_fingerprint); + + +-- +-- Name: index_vulnerability_occurrences_on_initial_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_occurrences_on_initial_pipeline_id ON public.vulnerability_occurrences USING btree (initial_pipeline_id); + + +-- +-- Name: index_vulnerability_occurrences_on_latest_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_occurrences_on_latest_pipeline_id ON public.vulnerability_occurrences USING btree (latest_pipeline_id); + + +-- +-- Name: index_vulnerability_occurrences_on_location_image; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_occurrences_on_location_image ON public.vulnerability_occurrences USING gin (((location -> 'image'::text))) WHERE (report_type = ANY (ARRAY[2, 7])); + + +-- +-- Name: index_vulnerability_occurrences_on_location_k8s_agent_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_occurrences_on_location_k8s_agent_id ON public.vulnerability_occurrences USING gin ((((location -> 'kubernetes_resource'::text) -> 'agent_id'::text))) WHERE (report_type = 7); + + +-- +-- Name: index_vulnerability_occurrences_on_location_k8s_cluster_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_occurrences_on_location_k8s_cluster_id ON public.vulnerability_occurrences USING gin ((((location -> 'kubernetes_resource'::text) -> 'cluster_id'::text))) WHERE (report_type = 7); + + +-- +-- Name: index_vulnerability_occurrences_on_scanner_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_occurrences_on_scanner_id ON public.vulnerability_occurrences USING btree (scanner_id); + + +-- +-- Name: index_vulnerability_occurrences_on_uuid_1; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_vulnerability_occurrences_on_uuid_1 ON public.vulnerability_occurrences USING btree (uuid); + + +-- +-- Name: index_vulnerability_occurrences_on_vulnerability_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_occurrences_on_vulnerability_id ON public.vulnerability_occurrences USING btree (vulnerability_id); + + +-- +-- Name: index_vulnerability_occurrences_prim_iden_id_and_vuln_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_occurrences_prim_iden_id_and_vuln_id ON public.vulnerability_occurrences USING btree (primary_identifier_id, vulnerability_id); + + +-- +-- Name: index_vulnerability_reads_common_attrs_and_detection_for_groups; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_reads_common_attrs_and_detection_for_groups ON public.vulnerability_reads USING btree (resolved_on_default_branch, state, report_type, severity, traversal_ids, vulnerability_id) WHERE (archived = false); + + +-- +-- Name: index_vulnerability_reads_common_finder_query_2; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_reads_common_finder_query_2 ON public.vulnerability_reads USING btree (project_id, state, report_type, severity, vulnerability_id DESC, dismissal_reason); + + +-- +-- Name: index_vulnerability_reads_for_vulnerability_export; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_reads_for_vulnerability_export ON public.vulnerability_reads USING btree (traversal_ids, vulnerability_id) WHERE (archived = false); + + +-- +-- Name: index_vulnerability_reads_on_cluster_agent_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_reads_on_cluster_agent_id ON public.vulnerability_reads USING btree (cluster_agent_id) WHERE (report_type = 7); + + +-- +-- Name: index_vulnerability_reads_on_location_image; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_reads_on_location_image ON public.vulnerability_reads USING btree (location_image) WHERE (report_type = ANY (ARRAY[2, 7])); + + +-- +-- Name: index_vulnerability_reads_on_location_image_partial; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_reads_on_location_image_partial ON public.vulnerability_reads USING btree (project_id, location_image) WHERE ((report_type = ANY (ARRAY[2, 7])) AND (location_image IS NOT NULL)); + + +-- +-- Name: index_vulnerability_reads_on_location_image_trigram; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_reads_on_location_image_trigram ON public.vulnerability_reads USING gin (location_image public.gin_trgm_ops) WHERE ((report_type = ANY (ARRAY[2, 7])) AND (location_image IS NOT NULL)); + + +-- +-- Name: index_vulnerability_reads_on_project_id_and_vulnerability_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_reads_on_project_id_and_vulnerability_id ON public.vulnerability_reads USING btree (project_id, vulnerability_id); + + +-- +-- Name: index_vulnerability_reads_on_scanner_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_reads_on_scanner_id ON public.vulnerability_reads USING btree (scanner_id); + + +-- +-- Name: index_vulnerability_reads_on_uuid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_vulnerability_reads_on_uuid ON public.vulnerability_reads USING btree (uuid); + + +-- +-- Name: index_vulnerability_reads_on_uuid_project_id_and_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_reads_on_uuid_project_id_and_state ON public.vulnerability_reads USING btree (uuid, project_id, state); + + +-- +-- Name: index_vulnerability_reads_on_vulnerability_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_vulnerability_reads_on_vulnerability_id ON public.vulnerability_reads USING btree (vulnerability_id); + + +-- +-- Name: index_vulnerability_remediations_on_project_id_and_checksum; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_vulnerability_remediations_on_project_id_and_checksum ON public.vulnerability_remediations USING btree (project_id, checksum); + + +-- +-- Name: index_vulnerability_scanners_on_project_id_and_external_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_vulnerability_scanners_on_project_id_and_external_id ON public.vulnerability_scanners USING btree (project_id, external_id); + + +-- +-- Name: index_vulnerability_state_transitions_id_and_vulnerability_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_state_transitions_id_and_vulnerability_id ON public.vulnerability_state_transitions USING btree (vulnerability_id, id); + + +-- +-- Name: index_vulnerability_state_transitions_on_author_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_state_transitions_on_author_id ON public.vulnerability_state_transitions USING btree (author_id); + + +-- +-- Name: index_vulnerability_state_transitions_on_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_state_transitions_on_pipeline_id ON public.vulnerability_state_transitions USING btree (state_changed_at_pipeline_id); + + +-- +-- Name: index_vulnerability_state_transitions_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_state_transitions_on_project_id ON public.vulnerability_state_transitions USING btree (project_id); + + +-- +-- Name: index_vulnerability_statistics_on_latest_pipeline_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_statistics_on_latest_pipeline_id ON public.vulnerability_statistics USING btree (latest_pipeline_id); + + +-- +-- Name: index_vulnerability_statistics_on_letter_grade; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_statistics_on_letter_grade ON public.vulnerability_statistics USING btree (letter_grade); + + +-- +-- Name: index_vulnerability_statistics_on_unique_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_vulnerability_statistics_on_unique_project_id ON public.vulnerability_statistics USING btree (project_id); + + +-- +-- Name: index_vulnerability_user_mentions_on_note_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_vulnerability_user_mentions_on_note_id ON public.vulnerability_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); + + +-- +-- Name: index_vulnerability_user_mentions_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_vulnerability_user_mentions_on_project_id ON public.vulnerability_user_mentions USING btree (project_id); + + +-- +-- Name: index_vulns_user_mentions_on_vulnerability_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_vulns_user_mentions_on_vulnerability_id ON public.vulnerability_user_mentions USING btree (vulnerability_id) WHERE (note_id IS NULL); + + +-- +-- Name: index_vulns_user_mentions_on_vulnerability_id_and_note_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_vulns_user_mentions_on_vulnerability_id_and_note_id ON public.vulnerability_user_mentions USING btree (vulnerability_id, note_id); + + +-- +-- Name: index_web_hook_logs_on_web_hook_id_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_web_hook_logs_on_web_hook_id_and_created_at ON ONLY public.web_hook_logs USING btree (web_hook_id, created_at); + + +-- +-- Name: index_web_hook_logs_part_on_created_at_and_web_hook_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_web_hook_logs_part_on_created_at_and_web_hook_id ON ONLY public.web_hook_logs USING btree (created_at, web_hook_id); + + +-- +-- Name: index_web_hooks_on_group_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_web_hooks_on_group_id ON public.web_hooks USING btree (group_id) WHERE ((type)::text = 'GroupHook'::text); + + +-- +-- Name: index_web_hooks_on_integration_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_web_hooks_on_integration_id ON public.web_hooks USING btree (integration_id); + + +-- +-- Name: index_web_hooks_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_web_hooks_on_project_id_and_id ON public.web_hooks USING btree (project_id, id) WHERE ((type)::text = 'ProjectHook'::text); + + +-- +-- Name: index_web_hooks_on_project_id_recent_failures; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_web_hooks_on_project_id_recent_failures ON public.web_hooks USING btree (project_id, recent_failures); + + +-- +-- Name: index_web_hooks_on_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_web_hooks_on_type ON public.web_hooks USING btree (type); + + +-- +-- Name: index_webauthn_registrations_on_credential_xid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_webauthn_registrations_on_credential_xid ON public.webauthn_registrations USING btree (credential_xid); + + +-- +-- Name: index_webauthn_registrations_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_webauthn_registrations_on_user_id ON public.webauthn_registrations USING btree (user_id); + + +-- +-- Name: index_wiki_page_meta_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_wiki_page_meta_on_project_id ON public.wiki_page_meta USING btree (project_id); + + +-- +-- Name: index_wiki_page_slugs_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_wiki_page_slugs_on_project_id ON public.wiki_page_slugs USING btree (project_id); + + +-- +-- Name: index_wiki_page_slugs_on_slug_and_wiki_page_meta_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_wiki_page_slugs_on_slug_and_wiki_page_meta_id ON public.wiki_page_slugs USING btree (slug, wiki_page_meta_id); + + +-- +-- Name: index_wiki_page_slugs_on_wiki_page_meta_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_wiki_page_slugs_on_wiki_page_meta_id ON public.wiki_page_slugs USING btree (wiki_page_meta_id); + + +-- +-- Name: index_wiki_repository_states_failed_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_wiki_repository_states_failed_verification ON public.wiki_repository_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); + + +-- +-- Name: index_wiki_repository_states_needs_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_wiki_repository_states_needs_verification ON public.wiki_repository_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); + + +-- +-- Name: index_wiki_repository_states_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_wiki_repository_states_on_project_id ON public.wiki_repository_states USING btree (project_id); + + +-- +-- Name: index_wiki_repository_states_on_project_wiki_repository_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_wiki_repository_states_on_project_wiki_repository_id ON public.wiki_repository_states USING btree (project_wiki_repository_id); + + +-- +-- Name: index_wiki_repository_states_on_verification_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_wiki_repository_states_on_verification_state ON public.wiki_repository_states USING btree (verification_state); + + +-- +-- Name: index_wiki_repository_states_pending_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_wiki_repository_states_pending_verification ON public.wiki_repository_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); + + +-- +-- Name: index_work_item_hierarchy_restrictions_on_child_type_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_work_item_hierarchy_restrictions_on_child_type_id ON public.work_item_hierarchy_restrictions USING btree (child_type_id); + + +-- +-- Name: index_work_item_hierarchy_restrictions_on_parent_and_child; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_work_item_hierarchy_restrictions_on_parent_and_child ON public.work_item_hierarchy_restrictions USING btree (parent_type_id, child_type_id); + + +-- +-- Name: index_work_item_hierarchy_restrictions_on_parent_type_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_work_item_hierarchy_restrictions_on_parent_type_id ON public.work_item_hierarchy_restrictions USING btree (parent_type_id); + + +-- +-- Name: index_work_item_link_restrictions_on_source_link_type_target; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_work_item_link_restrictions_on_source_link_type_target ON public.work_item_related_link_restrictions USING btree (source_type_id, link_type, target_type_id); + + +-- +-- Name: index_work_item_parent_links_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_work_item_parent_links_on_namespace_id ON public.work_item_parent_links USING btree (namespace_id); + + +-- +-- Name: index_work_item_parent_links_on_work_item_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_work_item_parent_links_on_work_item_id ON public.work_item_parent_links USING btree (work_item_id); + + +-- +-- Name: index_work_item_parent_links_on_work_item_parent_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_work_item_parent_links_on_work_item_parent_id ON public.work_item_parent_links USING btree (work_item_parent_id); + + +-- +-- Name: index_work_item_related_link_restrictions_on_target_type_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_work_item_related_link_restrictions_on_target_type_id ON public.work_item_related_link_restrictions USING btree (target_type_id); + + +-- +-- Name: index_work_item_types_on_base_type_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_work_item_types_on_base_type_and_id ON public.work_item_types USING btree (base_type, id); + + +-- +-- Name: index_work_item_types_on_name_unique; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_work_item_types_on_name_unique ON public.work_item_types USING btree (TRIM(BOTH FROM lower(name))); + + +-- +-- Name: index_work_item_widget_definitions_on_type_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_work_item_widget_definitions_on_type_id_and_name ON public.work_item_widget_definitions USING btree (work_item_type_id, TRIM(BOTH FROM lower(name))); + + +-- +-- Name: index_work_item_widget_definitions_on_work_item_type_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_work_item_widget_definitions_on_work_item_type_id ON public.work_item_widget_definitions USING btree (work_item_type_id); + + +-- +-- Name: index_workspace_variables_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_workspace_variables_on_project_id ON public.workspace_variables USING btree (project_id); + + +-- +-- Name: index_workspace_variables_on_workspace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_workspace_variables_on_workspace_id ON public.workspace_variables USING btree (workspace_id); + + +-- +-- Name: index_workspaces_agent_configs_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_workspaces_agent_configs_on_project_id ON public.workspaces_agent_configs USING btree (project_id); + + +-- +-- Name: index_workspaces_agent_configs_on_unique_cluster_agent_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_workspaces_agent_configs_on_unique_cluster_agent_id ON public.workspaces_agent_configs USING btree (cluster_agent_id); + + +-- +-- Name: index_workspaces_on_cluster_agent_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_workspaces_on_cluster_agent_id ON public.workspaces USING btree (cluster_agent_id); + + +-- +-- Name: index_workspaces_on_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_workspaces_on_name ON public.workspaces USING btree (name); + + +-- +-- Name: index_workspaces_on_personal_access_token_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_workspaces_on_personal_access_token_id ON public.workspaces USING btree (personal_access_token_id); + + +-- +-- Name: index_workspaces_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_workspaces_on_project_id ON public.workspaces USING btree (project_id); + + +-- +-- Name: index_workspaces_on_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_workspaces_on_user_id ON public.workspaces USING btree (user_id); + + +-- +-- Name: index_x509_certificates_on_subject_key_identifier; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_x509_certificates_on_subject_key_identifier ON public.x509_certificates USING btree (subject_key_identifier); + + +-- +-- Name: index_x509_certificates_on_x509_issuer_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_x509_certificates_on_x509_issuer_id ON public.x509_certificates USING btree (x509_issuer_id); + + +-- +-- Name: index_x509_commit_signatures_on_commit_sha; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_x509_commit_signatures_on_commit_sha ON public.x509_commit_signatures USING btree (commit_sha); + + +-- +-- Name: index_x509_commit_signatures_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_x509_commit_signatures_on_project_id ON public.x509_commit_signatures USING btree (project_id); + + +-- +-- Name: index_x509_commit_signatures_on_x509_certificate_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_x509_commit_signatures_on_x509_certificate_id ON public.x509_commit_signatures USING btree (x509_certificate_id); + + +-- +-- Name: index_x509_issuers_on_subject_key_identifier; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_x509_issuers_on_subject_key_identifier ON public.x509_issuers USING btree (subject_key_identifier); + + +-- +-- Name: index_xray_reports_on_project_id_and_lang; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_xray_reports_on_project_id_and_lang ON public.xray_reports USING btree (project_id, lang); + + +-- +-- Name: index_zentao_tracker_data_on_integration_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_zentao_tracker_data_on_integration_id ON public.zentao_tracker_data USING btree (integration_id); + + +-- +-- Name: index_zoekt_indices_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_zoekt_indices_on_namespace_id ON public.zoekt_indices USING btree (namespace_id, zoekt_enabled_namespace_id); + + +-- +-- Name: index_zoekt_indices_on_replica_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_zoekt_indices_on_replica_id ON public.zoekt_indices USING btree (zoekt_replica_id); + + +-- +-- Name: index_zoekt_indices_on_state_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_zoekt_indices_on_state_and_id ON public.zoekt_indices USING btree (state, id); + + +-- +-- Name: index_zoekt_indices_on_zoekt_node_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_zoekt_indices_on_zoekt_node_id_and_id ON public.zoekt_indices USING btree (zoekt_node_id, id); + + +-- +-- Name: index_zoekt_nodes_on_last_seen_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_zoekt_nodes_on_last_seen_at ON public.zoekt_nodes USING btree (last_seen_at); + + +-- +-- Name: index_zoekt_nodes_on_uuid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_zoekt_nodes_on_uuid ON public.zoekt_nodes USING btree (uuid); + + +-- +-- Name: index_zoekt_replicas_on_enabled_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_zoekt_replicas_on_enabled_namespace_id ON public.zoekt_replicas USING btree (zoekt_enabled_namespace_id); + + +-- +-- Name: index_zoekt_replicas_on_namespace_id_enabled_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_zoekt_replicas_on_namespace_id_enabled_namespace_id ON public.zoekt_replicas USING btree (namespace_id, zoekt_enabled_namespace_id); + + +-- +-- Name: index_zoekt_replicas_on_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_zoekt_replicas_on_state ON public.zoekt_replicas USING btree (state); + + +-- +-- Name: index_zoekt_repositories_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_zoekt_repositories_on_project_id ON public.zoekt_repositories USING btree (project_id); + + +-- +-- Name: index_zoekt_repositories_on_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_zoekt_repositories_on_state ON public.zoekt_repositories USING btree (state); + + +-- +-- Name: index_zoekt_shards_on_index_base_url; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_zoekt_shards_on_index_base_url ON public.zoekt_shards USING btree (index_base_url); + + +-- +-- Name: index_zoekt_shards_on_last_seen_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_zoekt_shards_on_last_seen_at ON public.zoekt_shards USING btree (last_seen_at); + + +-- +-- Name: index_zoekt_shards_on_search_base_url; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_zoekt_shards_on_search_base_url ON public.zoekt_shards USING btree (search_base_url); + + +-- +-- Name: index_zoekt_tasks_on_state; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_zoekt_tasks_on_state ON ONLY public.zoekt_tasks USING btree (state); + + +-- +-- Name: index_zoekt_tasks_on_zoekt_node_id_and_state_and_perform_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_zoekt_tasks_on_zoekt_node_id_and_state_and_perform_at ON ONLY public.zoekt_tasks USING btree (zoekt_node_id, state, perform_at); + + +-- +-- Name: index_zoekt_tasks_on_zoekt_repository_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_zoekt_tasks_on_zoekt_repository_id ON ONLY public.zoekt_tasks USING btree (zoekt_repository_id); + + +-- +-- Name: index_zoom_meetings_on_issue_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_zoom_meetings_on_issue_id ON public.zoom_meetings USING btree (issue_id); + + +-- +-- Name: index_zoom_meetings_on_issue_id_and_issue_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX index_zoom_meetings_on_issue_id_and_issue_status ON public.zoom_meetings USING btree (issue_id, issue_status) WHERE (issue_status = 1); + + +-- +-- Name: index_zoom_meetings_on_issue_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_zoom_meetings_on_issue_status ON public.zoom_meetings USING btree (issue_status); + + +-- +-- Name: index_zoom_meetings_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX index_zoom_meetings_on_project_id ON public.zoom_meetings USING btree (project_id); + + +-- +-- Name: issue_id_issues_prometheus_alert_events_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX issue_id_issues_prometheus_alert_events_index ON public.issues_prometheus_alert_events USING btree (prometheus_alert_event_id); + + +-- +-- Name: issue_id_issues_self_managed_rometheus_alert_events_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX issue_id_issues_self_managed_rometheus_alert_events_index ON public.issues_self_managed_prometheus_alert_events USING btree (self_managed_prometheus_alert_event_id); + + +-- +-- Name: issue_user_mentions_on_issue_id_and_note_id_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX issue_user_mentions_on_issue_id_and_note_id_index ON public.issue_user_mentions USING btree (issue_id, note_id); + + +-- +-- Name: issue_user_mentions_on_issue_id_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX issue_user_mentions_on_issue_id_index ON public.issue_user_mentions USING btree (issue_id) WHERE (note_id IS NULL); + + +-- +-- Name: kubernetes_namespaces_cluster_and_namespace; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX kubernetes_namespaces_cluster_and_namespace ON public.clusters_kubernetes_namespaces USING btree (cluster_id, namespace); + + +-- +-- Name: merge_request_user_mentions_on_mr_id_and_note_id_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX merge_request_user_mentions_on_mr_id_and_note_id_index ON public.merge_request_user_mentions USING btree (merge_request_id, note_id); + + +-- +-- Name: merge_request_user_mentions_on_mr_id_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX merge_request_user_mentions_on_mr_id_index ON public.merge_request_user_mentions USING btree (merge_request_id) WHERE (note_id IS NULL); + + +-- +-- Name: one_canonical_wiki_page_slug_per_metadata; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX one_canonical_wiki_page_slug_per_metadata ON public.wiki_page_slugs USING btree (wiki_page_meta_id) WHERE (canonical = true); + + +-- +-- Name: p_ci_builds_scheduled_at_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_builds_scheduled_at_idx ON ONLY public.p_ci_builds USING btree (scheduled_at) WHERE ((scheduled_at IS NOT NULL) AND ((type)::text = 'Ci::Build'::text) AND ((status)::text = 'scheduled'::text)); + + +-- +-- Name: p_ci_builds_token_encrypted_partition_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX p_ci_builds_token_encrypted_partition_id_idx ON ONLY public.p_ci_builds USING btree (token_encrypted, partition_id) WHERE (token_encrypted IS NOT NULL); + + +-- +-- Name: p_ci_job_artifacts_expire_at_job_id_idx1; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX p_ci_job_artifacts_expire_at_job_id_idx1 ON ONLY public.p_ci_job_artifacts USING btree (expire_at, job_id) WHERE ((locked = 2) AND (expire_at IS NOT NULL)); + + +-- +-- Name: package_name_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX package_name_index ON public.packages_packages USING btree (name); + + +-- +-- Name: packages_packages_failed_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX packages_packages_failed_verification ON public.packages_package_files USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); + + +-- +-- Name: packages_packages_needs_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX packages_packages_needs_verification ON public.packages_package_files USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); + + +-- +-- Name: packages_packages_pending_verification; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX packages_packages_pending_verification ON public.packages_package_files USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); + + +-- +-- Name: pages_deployments_deleted_at_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX pages_deployments_deleted_at_index ON public.pages_deployments USING btree (id, project_id, path_prefix) WHERE (deleted_at IS NULL); + + +-- +-- Name: partial_idx_bulk_import_exports_on_group_user_and_relation; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX partial_idx_bulk_import_exports_on_group_user_and_relation ON public.bulk_import_exports USING btree (group_id, relation, user_id) WHERE ((group_id IS NOT NULL) AND (user_id IS NOT NULL)); + + +-- +-- Name: partial_idx_bulk_import_exports_on_project_user_and_relation; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX partial_idx_bulk_import_exports_on_project_user_and_relation ON public.bulk_import_exports USING btree (project_id, relation, user_id) WHERE ((project_id IS NOT NULL) AND (user_id IS NOT NULL)); + + +-- +-- Name: partial_index_ci_builds_on_scheduled_at_with_scheduled_jobs; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX partial_index_ci_builds_on_scheduled_at_with_scheduled_jobs ON public.ci_builds USING btree (scheduled_at) WHERE ((scheduled_at IS NOT NULL) AND ((type)::text = 'Ci::Build'::text) AND ((status)::text = 'scheduled'::text)); + + +-- +-- Name: partial_index_slack_integrations_with_bot_user_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX partial_index_slack_integrations_with_bot_user_id ON public.slack_integrations USING btree (id) WHERE (bot_user_id IS NOT NULL); + + +-- +-- Name: partial_index_sop_configs_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX partial_index_sop_configs_on_namespace_id ON public.security_orchestration_policy_configurations USING btree (namespace_id) WHERE (namespace_id IS NOT NULL); + + +-- +-- Name: partial_index_sop_configs_on_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX partial_index_sop_configs_on_project_id ON public.security_orchestration_policy_configurations USING btree (project_id) WHERE (project_id IS NOT NULL); + + +-- +-- Name: partial_index_user_id_app_id_created_at_token_not_revoked; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX partial_index_user_id_app_id_created_at_token_not_revoked ON public.oauth_access_tokens USING btree (resource_owner_id, application_id, created_at) WHERE (revoked_at IS NULL); + + +-- +-- Name: pm_checkpoints_path_components; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX pm_checkpoints_path_components ON public.pm_checkpoints USING btree (purl_type, data_type, version_format); + + +-- +-- Name: releases_published_at_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX releases_published_at_index ON public.releases USING btree (release_published_at); + + +-- +-- Name: scan_finding_approval_mr_rule_index_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX scan_finding_approval_mr_rule_index_id ON public.approval_merge_request_rules USING btree (id) WHERE (report_type = 4); + + +-- +-- Name: scan_finding_approval_mr_rule_index_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX scan_finding_approval_mr_rule_index_merge_request_id ON public.approval_merge_request_rules USING btree (merge_request_id) WHERE (report_type = 4); + + +-- +-- Name: scan_finding_approval_mr_rule_index_mr_id_and_created_at; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX scan_finding_approval_mr_rule_index_mr_id_and_created_at ON public.approval_merge_request_rules USING btree (merge_request_id, created_at) WHERE (report_type = 4); + + +-- +-- Name: scan_finding_approval_project_rule_index_created_at_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX scan_finding_approval_project_rule_index_created_at_project_id ON public.approval_project_rules USING btree (created_at, project_id) WHERE (report_type = 4); + + +-- +-- Name: scan_finding_approval_project_rule_index_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX scan_finding_approval_project_rule_index_project_id ON public.approval_project_rules USING btree (project_id) WHERE (report_type = 4); + + +-- +-- Name: security_findings_project_fingerprint_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX security_findings_project_fingerprint_idx ON ONLY public.security_findings USING btree (project_fingerprint); + + +-- +-- Name: security_findings_scan_id_deduplicated_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX security_findings_scan_id_deduplicated_idx ON ONLY public.security_findings USING btree (scan_id, deduplicated); + + +-- +-- Name: security_findings_scan_id_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX security_findings_scan_id_id_idx ON ONLY public.security_findings USING btree (scan_id, id); + + +-- +-- Name: security_findings_scanner_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX security_findings_scanner_id_idx ON ONLY public.security_findings USING btree (scanner_id); + + +-- +-- Name: security_findings_severity_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX security_findings_severity_idx ON ONLY public.security_findings USING btree (severity); + + +-- +-- Name: security_findings_uuid_scan_id_partition_number_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX security_findings_uuid_scan_id_partition_number_idx ON ONLY public.security_findings USING btree (uuid, scan_id, partition_number); + + +-- +-- Name: snippet_user_mentions_on_snippet_id_and_note_id_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX snippet_user_mentions_on_snippet_id_and_note_id_index ON public.snippet_user_mentions USING btree (snippet_id, note_id); + + +-- +-- Name: snippet_user_mentions_on_snippet_id_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX snippet_user_mentions_on_snippet_id_index ON public.snippet_user_mentions USING btree (snippet_id) WHERE (note_id IS NULL); + + +-- +-- Name: taggings_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX taggings_idx ON public.taggings USING btree (tag_id, taggable_id, taggable_type, context, tagger_id, tagger_type); + + +-- +-- Name: temp_index_on_users_where_dark_theme; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX temp_index_on_users_where_dark_theme ON public.users USING btree (id) WHERE (theme_id = 11); + + +-- +-- Name: term_agreements_unique_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX term_agreements_unique_index ON public.term_agreements USING btree (user_id, term_id); + + +-- +-- Name: tmp_idx_for_feedback_comment_processing; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX tmp_idx_for_feedback_comment_processing ON public.vulnerability_feedback USING btree (id) WHERE (char_length(comment) > 50000); + + +-- +-- Name: tmp_idx_for_vulnerability_feedback_migration; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX tmp_idx_for_vulnerability_feedback_migration ON public.vulnerability_feedback USING btree (id) WHERE ((migrated_to_state_transition = false) AND (feedback_type = 0)); + + +-- +-- Name: tmp_idx_orphaned_approval_merge_request_rules; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX tmp_idx_orphaned_approval_merge_request_rules ON public.approval_merge_request_rules USING btree (id) WHERE ((report_type = ANY (ARRAY[2, 4])) AND (security_orchestration_policy_configuration_id IS NULL)); + + +-- +-- Name: tmp_idx_orphaned_approval_project_rules; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX tmp_idx_orphaned_approval_project_rules ON public.approval_project_rules USING btree (id) WHERE ((report_type = ANY (ARRAY[2, 4])) AND (security_orchestration_policy_configuration_id IS NULL)); + + +-- +-- Name: tmp_idx_packages_dependencies_on_name_version_pattern; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX tmp_idx_packages_dependencies_on_name_version_pattern ON public.packages_dependencies USING btree (name, version_pattern) WHERE (project_id IS NULL); + + +-- +-- Name: tmp_index_ci_job_artifacts_on_expire_at_where_locked_unknown; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX tmp_index_ci_job_artifacts_on_expire_at_where_locked_unknown ON public.ci_job_artifacts USING btree (expire_at, job_id) WHERE ((locked = 2) AND (expire_at IS NOT NULL)); + + +-- +-- Name: tmp_index_for_null_member_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX tmp_index_for_null_member_namespace_id ON public.members USING btree (member_namespace_id) WHERE (member_namespace_id IS NULL); + + +-- +-- Name: tmp_index_for_owasp_null_on_vulnerability_reads; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX tmp_index_for_owasp_null_on_vulnerability_reads ON public.vulnerability_reads USING btree (vulnerability_id) WHERE (owasp_top_10 IS NULL); + + +-- +-- Name: tmp_index_for_project_namespace_id_migration_on_routes; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX tmp_index_for_project_namespace_id_migration_on_routes ON public.routes USING btree (id) WHERE ((namespace_id IS NULL) AND ((source_type)::text = 'Project'::text)); + + +-- +-- Name: tmp_index_for_succeeded_security_scans; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX tmp_index_for_succeeded_security_scans ON public.security_scans USING btree (id) WHERE (status = 1); + + +-- +-- Name: tmp_index_issues_on_tmp_epic_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX tmp_index_issues_on_tmp_epic_id ON public.issues USING btree (tmp_epic_id); + + +-- +-- Name: tmp_index_on_vulnerabilities_non_dismissed; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX tmp_index_on_vulnerabilities_non_dismissed ON public.vulnerabilities USING btree (id) WHERE (state <> 2); + + +-- +-- Name: tmp_index_project_statistics_cont_registry_size; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX tmp_index_project_statistics_cont_registry_size ON public.project_statistics USING btree (project_id) WHERE (container_registry_size = 0); + + +-- +-- Name: tmp_index_vulnerability_overlong_title_html; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX tmp_index_vulnerability_overlong_title_html ON public.vulnerabilities USING btree (id) WHERE (length(title_html) > 800); + + +-- +-- Name: tmp_index_vulnerability_reads_where_state_is_detected; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX tmp_index_vulnerability_reads_where_state_is_detected ON public.vulnerability_reads USING btree (id) WHERE (state = 1); + + +-- +-- Name: u_compliance_checks_for_requirement; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX u_compliance_checks_for_requirement ON public.compliance_checks USING btree (requirement_id, check_name); + + +-- +-- Name: u_compliance_requirements_for_framework; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX u_compliance_requirements_for_framework ON public.compliance_requirements USING btree (framework_id, name); + + +-- +-- Name: u_project_compliance_standards_adherence_for_reporting; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX u_project_compliance_standards_adherence_for_reporting ON public.project_compliance_standards_adherence USING btree (project_id, check_name, standard); + + +-- +-- Name: u_zoekt_indices_zoekt_enabled_namespace_id_and_zoekt_node_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX u_zoekt_indices_zoekt_enabled_namespace_id_and_zoekt_node_id ON public.zoekt_indices USING btree (zoekt_enabled_namespace_id, zoekt_node_id); + + +-- +-- Name: u_zoekt_repositories_zoekt_index_id_and_project_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX u_zoekt_repositories_zoekt_index_id_and_project_id ON public.zoekt_repositories USING btree (zoekt_index_id, project_id); + + +-- +-- Name: uniq_audit_group_event_filters_destination_id_and_event_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX uniq_audit_group_event_filters_destination_id_and_event_type ON public.audit_events_group_streaming_event_type_filters USING btree (external_streaming_destination_id, audit_event_type); + + +-- +-- Name: uniq_audit_instance_event_filters_destination_id_and_event_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX uniq_audit_instance_event_filters_destination_id_and_event_type ON public.audit_events_instance_streaming_event_type_filters USING btree (external_streaming_destination_id, audit_event_type); + + +-- +-- Name: uniq_google_cloud_logging_configuration_namespace_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX uniq_google_cloud_logging_configuration_namespace_id_and_name ON public.audit_events_google_cloud_logging_configurations USING btree (namespace_id, name); + + +-- +-- Name: uniq_idx_packages_packages_on_project_id_name_version_ml_model; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX uniq_idx_packages_packages_on_project_id_name_version_ml_model ON public.packages_packages USING btree (project_id, name, version) WHERE ((package_type = 14) AND (status <> 4)); + + +-- +-- Name: uniq_idx_project_compliance_framework_on_project_framework; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX uniq_idx_project_compliance_framework_on_project_framework ON public.project_compliance_framework_settings USING btree (project_id, framework_id); + + +-- +-- Name: uniq_idx_security_policy_requirements_on_requirement_and_policy; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX uniq_idx_security_policy_requirements_on_requirement_and_policy ON public.security_policy_requirements USING btree (compliance_framework_security_policy_id, compliance_requirement_id); + + +-- +-- Name: uniq_idx_streaming_destination_id_and_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX uniq_idx_streaming_destination_id_and_namespace_id ON public.audit_events_streaming_instance_namespace_filters USING btree (external_streaming_destination_id, namespace_id); + + +-- +-- Name: uniq_idx_streaming_group_destination_id_and_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX uniq_idx_streaming_group_destination_id_and_namespace_id ON public.audit_events_streaming_group_namespace_filters USING btree (external_streaming_destination_id, namespace_id); + + +-- +-- Name: uniq_idx_user_add_on_assignments_on_add_on_purchase_and_user; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX uniq_idx_user_add_on_assignments_on_add_on_purchase_and_user ON public.subscription_user_add_on_assignments USING btree (add_on_purchase_id, user_id); + + +-- +-- Name: uniq_pkgs_deb_grp_architectures_on_distribution_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX uniq_pkgs_deb_grp_architectures_on_distribution_id_and_name ON public.packages_debian_group_architectures USING btree (distribution_id, name); + + +-- +-- Name: uniq_pkgs_deb_grp_components_on_distribution_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX uniq_pkgs_deb_grp_components_on_distribution_id_and_name ON public.packages_debian_group_components USING btree (distribution_id, name); + + +-- +-- Name: uniq_pkgs_deb_proj_architectures_on_distribution_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX uniq_pkgs_deb_proj_architectures_on_distribution_id_and_name ON public.packages_debian_project_architectures USING btree (distribution_id, name); + + +-- +-- Name: uniq_pkgs_deb_proj_components_on_distribution_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX uniq_pkgs_deb_proj_components_on_distribution_id_and_name ON public.packages_debian_project_components USING btree (distribution_id, name); + + +-- +-- Name: uniq_pkgs_debian_group_distributions_group_id_and_codename; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX uniq_pkgs_debian_group_distributions_group_id_and_codename ON public.packages_debian_group_distributions USING btree (group_id, codename); + + +-- +-- Name: uniq_pkgs_debian_group_distributions_group_id_and_suite; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX uniq_pkgs_debian_group_distributions_group_id_and_suite ON public.packages_debian_group_distributions USING btree (group_id, suite); + + +-- +-- Name: uniq_pkgs_debian_project_distributions_project_id_and_codename; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX uniq_pkgs_debian_project_distributions_project_id_and_codename ON public.packages_debian_project_distributions USING btree (project_id, codename); + + +-- +-- Name: uniq_pkgs_debian_project_distributions_project_id_and_suite; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX uniq_pkgs_debian_project_distributions_project_id_and_suite ON public.packages_debian_project_distributions USING btree (project_id, suite); + + +-- +-- Name: unique_amazon_s3_configurations_namespace_id_and_bucket_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_amazon_s3_configurations_namespace_id_and_bucket_name ON public.audit_events_amazon_s3_configurations USING btree (namespace_id, bucket_name); + + +-- +-- Name: unique_amazon_s3_configurations_namespace_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_amazon_s3_configurations_namespace_id_and_name ON public.audit_events_amazon_s3_configurations USING btree (namespace_id, name); + + +-- +-- Name: unique_any_approver_merge_request_rule_type_post_merge; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_any_approver_merge_request_rule_type_post_merge ON public.approval_merge_request_rules USING btree (merge_request_id, rule_type, applicable_post_merge) WHERE (rule_type = 4); + + +-- +-- Name: unique_audit_events_group_namespace_filters_destination_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_audit_events_group_namespace_filters_destination_id ON public.audit_events_streaming_http_group_namespace_filters USING btree (external_audit_event_destination_id); + + +-- +-- Name: unique_audit_events_group_namespace_filters_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_audit_events_group_namespace_filters_namespace_id ON public.audit_events_streaming_http_group_namespace_filters USING btree (namespace_id); + + +-- +-- Name: unique_audit_events_instance_namespace_filters_destination_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_audit_events_instance_namespace_filters_destination_id ON public.audit_events_streaming_http_instance_namespace_filters USING btree (audit_events_instance_external_audit_event_destination_id); + + +-- +-- Name: unique_batched_background_migrations_queued_migration_version; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_batched_background_migrations_queued_migration_version ON public.batched_background_migrations USING btree (queued_migration_version); + + +-- +-- Name: unique_ci_builds_token_encrypted_and_partition_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_ci_builds_token_encrypted_and_partition_id ON public.ci_builds USING btree (token_encrypted, partition_id) WHERE (token_encrypted IS NOT NULL); + + +-- +-- Name: unique_compliance_framework_security_policies_framework_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_compliance_framework_security_policies_framework_id ON public.compliance_framework_security_policies USING btree (framework_id, policy_configuration_id, policy_index); + + +-- +-- Name: unique_external_audit_event_destination_namespace_id_and_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_external_audit_event_destination_namespace_id_and_name ON public.audit_events_external_audit_event_destinations USING btree (namespace_id, name); + + +-- +-- Name: unique_google_cloud_logging_configurations_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_google_cloud_logging_configurations_on_namespace_id ON public.audit_events_google_cloud_logging_configurations USING btree (namespace_id, google_project_id_name, log_id_name); + + +-- +-- Name: unique_idx_member_approvals_on_pending_status; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_idx_member_approvals_on_pending_status ON public.member_approvals USING btree (user_id, member_namespace_id) WHERE (status = 0); + + +-- +-- Name: unique_idx_namespaces_storage_limit_exclusions_on_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_idx_namespaces_storage_limit_exclusions_on_namespace_id ON public.namespaces_storage_limit_exclusions USING btree (namespace_id); + + +-- +-- Name: unique_import_source_users_on_reassign_to_user_id_and_import; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_import_source_users_on_reassign_to_user_id_and_import ON public.import_source_users USING btree (reassign_to_user_id, namespace_id, source_hostname, import_type); + + +-- +-- Name: unique_import_source_users_source_identifier_and_import_source; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_import_source_users_source_identifier_and_import_source ON public.import_source_users USING btree (source_user_identifier, namespace_id, source_hostname, import_type); + + +-- +-- Name: unique_index_ci_build_pending_states_on_partition_id_build_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_index_ci_build_pending_states_on_partition_id_build_id ON public.ci_build_pending_states USING btree (partition_id, build_id); + + +-- +-- Name: unique_index_for_credit_card_validation_payment_method_xid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_index_for_credit_card_validation_payment_method_xid ON public.user_credit_card_validations USING btree (zuora_payment_method_xid) WHERE (zuora_payment_method_xid IS NOT NULL); + + +-- +-- Name: unique_index_for_project_pages_unique_domain; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_index_for_project_pages_unique_domain ON public.project_settings USING btree (pages_unique_domain) WHERE (pages_unique_domain IS NOT NULL); + + +-- +-- Name: unique_index_ml_model_metadata_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_index_ml_model_metadata_name ON public.ml_model_metadata USING btree (model_id, name); + + +-- +-- Name: unique_index_ml_model_version_metadata_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_index_ml_model_version_metadata_name ON public.ml_model_version_metadata USING btree (model_version_id, name); + + +-- +-- Name: unique_index_on_system_note_metadata_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_index_on_system_note_metadata_id ON public.resource_link_events USING btree (system_note_metadata_id); + + +-- +-- Name: unique_index_sysaccess_ms_access_tokens_on_sysaccess_ms_app_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_index_sysaccess_ms_access_tokens_on_sysaccess_ms_app_id ON public.system_access_microsoft_graph_access_tokens USING btree (system_access_microsoft_application_id); + + +-- +-- Name: unique_instance_amazon_s3_configurations_bucket_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_instance_amazon_s3_configurations_bucket_name ON public.audit_events_instance_amazon_s3_configurations USING btree (bucket_name); + + +-- +-- Name: unique_instance_amazon_s3_configurations_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_instance_amazon_s3_configurations_name ON public.audit_events_instance_amazon_s3_configurations USING btree (name); + + +-- +-- Name: unique_instance_audit_event_destination_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_instance_audit_event_destination_name ON public.audit_events_instance_external_audit_event_destinations USING btree (name); + + +-- +-- Name: unique_instance_google_cloud_logging_configurations; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_instance_google_cloud_logging_configurations ON public.audit_events_instance_google_cloud_logging_configurations USING btree (google_project_id_name, log_id_name); + + +-- +-- Name: unique_instance_google_cloud_logging_configurations_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_instance_google_cloud_logging_configurations_name ON public.audit_events_instance_google_cloud_logging_configurations USING btree (name); + + +-- +-- Name: unique_merge_request_metrics_by_merge_request_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_merge_request_metrics_by_merge_request_id ON public.merge_request_metrics USING btree (merge_request_id); + + +-- +-- Name: unique_ml_model_versions_on_model_id_and_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX unique_ml_model_versions_on_model_id_and_id ON public.ml_model_versions USING btree (model_id, id DESC); + + +-- +-- Name: unique_namespace_cluster_agent_mappings_for_agent_association; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_namespace_cluster_agent_mappings_for_agent_association ON public.remote_development_namespace_cluster_agent_mappings USING btree (namespace_id, cluster_agent_id); + + +-- +-- Name: unique_organizations_on_path_case_insensitive; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_organizations_on_path_case_insensitive ON public.organizations USING btree (lower(path)); + + +-- +-- Name: unique_packages_project_id_and_name_and_version_when_debian; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_packages_project_id_and_name_and_version_when_debian ON public.packages_packages USING btree (project_id, name, version) WHERE ((package_type = 9) AND (status <> 4)); + + +-- +-- Name: unique_pool_repositories_on_disk_path_and_shard_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_pool_repositories_on_disk_path_and_shard_id ON public.pool_repositories USING btree (disk_path, shard_id); + + +-- +-- Name: unique_postgres_async_fk_validations_name_and_table_name; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_postgres_async_fk_validations_name_and_table_name ON public.postgres_async_foreign_key_validations USING btree (name, table_name); + + +-- +-- Name: unique_projects_on_name_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_projects_on_name_namespace_id ON public.projects USING btree (name, namespace_id); + + +-- +-- Name: unique_streaming_event_type_filters_destination_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_streaming_event_type_filters_destination_id ON public.audit_events_streaming_event_type_filters USING btree (external_audit_event_destination_id, audit_event_type); + + +-- +-- Name: unique_streaming_instance_event_type_filters_destination_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_streaming_instance_event_type_filters_destination_id ON public.audit_events_streaming_instance_event_type_filters USING btree (instance_external_audit_event_destination_id, audit_event_type); + + +-- +-- Name: unique_user_id_and_setting_type; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_user_id_and_setting_type ON public.vs_code_settings USING btree (user_id, setting_type); + + +-- +-- Name: unique_vuln_merge_request_link_vuln_id_and_mr_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_vuln_merge_request_link_vuln_id_and_mr_id ON public.vulnerability_merge_request_links USING btree (vulnerability_id, merge_request_id); + + +-- +-- Name: unique_zoekt_enabled_namespaces_on_root_namespace_id; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_zoekt_enabled_namespaces_on_root_namespace_id ON public.zoekt_enabled_namespaces USING btree (root_namespace_id); + + +-- +-- Name: unique_zoekt_shards_uuid; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX unique_zoekt_shards_uuid ON public.zoekt_shards USING btree (uuid); + + +-- +-- Name: user_follow_users_followee_id_idx; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX user_follow_users_followee_id_idx ON public.user_follow_users USING btree (followee_id); + + +-- +-- Name: virtual_reg_packages_maven_reg_upstreams_on_unique_reg_ids; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX virtual_reg_packages_maven_reg_upstreams_on_unique_reg_ids ON public.virtual_registries_packages_maven_registry_upstreams USING btree (registry_id); + + +-- +-- Name: virtual_reg_packages_maven_reg_upstreams_on_unique_upstream_ids; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX virtual_reg_packages_maven_reg_upstreams_on_unique_upstream_ids ON public.virtual_registries_packages_maven_registry_upstreams USING btree (upstream_id); + + +-- +-- Name: virtual_registries_pkgs_maven_registries_on_unique_group_ids; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX virtual_registries_pkgs_maven_registries_on_unique_group_ids ON public.virtual_registries_packages_maven_registries USING btree (group_id); + + +-- +-- Name: vulnerability_occurrence_pipelines_on_unique_keys; Type: INDEX; Schema: public; Owner: - +-- + +CREATE UNIQUE INDEX vulnerability_occurrence_pipelines_on_unique_keys ON public.vulnerability_occurrence_pipelines USING btree (occurrence_id, pipeline_id); + + +-- +-- Name: wi_colors_namespace_id_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX wi_colors_namespace_id_index ON public.work_item_colors USING btree (namespace_id); + + +-- +-- Name: wi_datessources_due_date_sourcing_milestone_id_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX wi_datessources_due_date_sourcing_milestone_id_index ON public.work_item_dates_sources USING btree (due_date_sourcing_milestone_id); + + +-- +-- Name: wi_datessources_due_date_sourcing_work_item_id_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX wi_datessources_due_date_sourcing_work_item_id_index ON public.work_item_dates_sources USING btree (due_date_sourcing_work_item_id); + + +-- +-- Name: wi_datessources_namespace_id_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX wi_datessources_namespace_id_index ON public.work_item_dates_sources USING btree (namespace_id); + + +-- +-- Name: wi_datessources_start_date_sourcing_milestone_id_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX wi_datessources_start_date_sourcing_milestone_id_index ON public.work_item_dates_sources USING btree (start_date_sourcing_milestone_id); + + +-- +-- Name: wi_datessources_start_date_sourcing_work_item_id_index; Type: INDEX; Schema: public; Owner: - +-- + +CREATE INDEX wi_datessources_start_date_sourcing_work_item_id_index ON public.work_item_dates_sources USING btree (start_date_sourcing_work_item_id); + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_00_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_01_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_02_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_03_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_04_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_05_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_06_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_07_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_08_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_09_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_10_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_11_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_12_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_13_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_14_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_15_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_16_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_17_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_18_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_19_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_20_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_21_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_22_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_23_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_24_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_25_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_26_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_27_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_28_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_29_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_30_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30_pkey; + + +-- +-- Name: analytics_cycle_analytics_issue_stage_events_31_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_00_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_01_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_02_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_03_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_04_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_05_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_06_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_07_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_08_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_09_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_10_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_11_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_12_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_13_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_14_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_15_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_16_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_17_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_18_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_19_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_20_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_21_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_22_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_23_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_24_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_25_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_26_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_27_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_28_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_29_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_30_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30_pkey; + + +-- +-- Name: analytics_cycle_analytics_merge_request_stage_events_31_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31_pkey; + + +-- +-- Name: index_000925dbd7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_000925dbd7; + + +-- +-- Name: index_006f943df6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_006f943df6; + + +-- +-- Name: index_009e6c1133; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_009e6c1133; + + +-- +-- Name: index_02749b504c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_02749b504c; + + +-- +-- Name: index_0287f5ba09; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_0287f5ba09; + + +-- +-- Name: index_03aa30a758; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_03aa30a758; + + +-- +-- Name: index_055179c3ea; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_055179c3ea; + + +-- +-- Name: index_061fe00461; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_061fe00461; + + +-- +-- Name: index_070cef72c3; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_070cef72c3; + + +-- +-- Name: index_08b7071d9b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_08b7071d9b; + + +-- +-- Name: index_08e3cfc564; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_08e3cfc564; + + +-- +-- Name: index_09af45dd6f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_09af45dd6f; + + +-- +-- Name: index_09fe0c1886; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_09fe0c1886; + + +-- +-- Name: index_0c153e2eae; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_0c153e2eae; + + +-- +-- Name: index_0ca85f3d71; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_0ca85f3d71; + + +-- +-- Name: index_0d837a5dda; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_0d837a5dda; + + +-- +-- Name: index_0e98daa03c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_0e98daa03c; + + +-- +-- Name: index_0f28a65451; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_0f28a65451; + + +-- +-- Name: index_10588dbff0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_10588dbff0; + + +-- +-- Name: index_106d7d97e8; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_106d7d97e8; + + +-- +-- Name: index_1076a9a98a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_1076a9a98a; + + +-- +-- Name: index_107e123e17; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_107e123e17; + + +-- +-- Name: index_1230a7a402; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1230a7a402; + + +-- +-- Name: index_142c4e7ea4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_142c4e7ea4; + + +-- +-- Name: index_14e4fa1d7d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_14e4fa1d7d; + + +-- +-- Name: index_14f3645821; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_14f3645821; + + +-- +-- Name: index_16627b455e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_16627b455e; + + +-- +-- Name: index_17fa2812c5; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_17fa2812c5; + + +-- +-- Name: index_19aa18ccc9; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_19aa18ccc9; + + +-- +-- Name: index_19f4ed8614; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_19f4ed8614; + + +-- +-- Name: index_1a0388713a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_1a0388713a; + + +-- +-- Name: index_1a349ed064; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1a349ed064; + + +-- +-- Name: index_1af932a3c7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1af932a3c7; + + +-- +-- Name: index_1b0ea30bdb; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1b0ea30bdb; + + +-- +-- Name: index_1b47bbbb6a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_1b47bbbb6a; + + +-- +-- Name: index_1f6c3faabe; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1f6c3faabe; + + +-- +-- Name: index_1f8af04ed1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1f8af04ed1; + + +-- +-- Name: index_201c5ddbe9; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_201c5ddbe9; + + +-- +-- Name: index_20353089e0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_20353089e0; + + +-- +-- Name: index_203dd694bc; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_203dd694bc; + + +-- +-- Name: index_206349925b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_27 - ADD CONSTRAINT namespace_descendants_27_pkey PRIMARY KEY (namespace_id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_206349925b; -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_28 - ADD CONSTRAINT namespace_descendants_28_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_29 - ADD CONSTRAINT namespace_descendants_29_pkey PRIMARY KEY (namespace_id); +-- +-- Name: index_208e7ef042; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_30 - ADD CONSTRAINT namespace_descendants_30_pkey PRIMARY KEY (namespace_id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_208e7ef042; -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_31 - ADD CONSTRAINT namespace_descendants_31_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY abuse_events - ADD CONSTRAINT abuse_events_pkey PRIMARY KEY (id); +-- +-- Name: index_2098118748; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY abuse_report_assignees - ADD CONSTRAINT abuse_report_assignees_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_2098118748; -ALTER TABLE ONLY abuse_report_events - ADD CONSTRAINT abuse_report_events_pkey PRIMARY KEY (id); -ALTER TABLE ONLY abuse_report_notes - ADD CONSTRAINT abuse_report_notes_pkey PRIMARY KEY (id); +-- +-- Name: index_20c6491c6e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY abuse_report_user_mentions - ADD CONSTRAINT abuse_report_user_mentions_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_20c6491c6e; -ALTER TABLE ONLY abuse_reports - ADD CONSTRAINT abuse_reports_pkey PRIMARY KEY (id); -ALTER TABLE ONLY abuse_trust_scores - ADD CONSTRAINT abuse_trust_scores_pkey PRIMARY KEY (id); +-- +-- Name: index_21db459e34; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY achievements - ADD CONSTRAINT achievements_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_21db459e34; -ALTER TABLE ONLY activity_pub_releases_subscriptions - ADD CONSTRAINT activity_pub_releases_subscriptions_pkey PRIMARY KEY (id); -ALTER TABLE ONLY agent_activity_events - ADD CONSTRAINT agent_activity_events_pkey PRIMARY KEY (id); +-- +-- Name: index_21e262390a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY agent_group_authorizations - ADD CONSTRAINT agent_group_authorizations_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_21e262390a; -ALTER TABLE ONLY agent_project_authorizations - ADD CONSTRAINT agent_project_authorizations_pkey PRIMARY KEY (id); -ALTER TABLE ONLY agent_user_access_group_authorizations - ADD CONSTRAINT agent_user_access_group_authorizations_pkey PRIMARY KEY (id); +-- +-- Name: index_2208bd7d7f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY agent_user_access_project_authorizations - ADD CONSTRAINT agent_user_access_project_authorizations_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_2208bd7d7f; -ALTER TABLE ONLY ai_agent_version_attachments - ADD CONSTRAINT ai_agent_version_attachments_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ai_agent_versions - ADD CONSTRAINT ai_agent_versions_pkey PRIMARY KEY (id); +-- +-- Name: index_223592b4a1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ai_agents - ADD CONSTRAINT ai_agents_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_223592b4a1; -ALTER TABLE ONLY ai_feature_settings - ADD CONSTRAINT ai_feature_settings_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ai_self_hosted_models - ADD CONSTRAINT ai_self_hosted_models_pkey PRIMARY KEY (id); +-- +-- Name: index_22acc9ab11; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ai_testing_terms_acceptances - ADD CONSTRAINT ai_testing_terms_acceptances_pkey PRIMARY KEY (user_id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_22acc9ab11; -ALTER TABLE ONLY ai_vectorizable_files - ADD CONSTRAINT ai_vectorizable_files_pkey PRIMARY KEY (id); -ALTER TABLE ONLY alert_management_alert_assignees - ADD CONSTRAINT alert_management_alert_assignees_pkey PRIMARY KEY (id); +-- +-- Name: index_22ed8f01dd; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY alert_management_alert_metric_images - ADD CONSTRAINT alert_management_alert_metric_images_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_22ed8f01dd; -ALTER TABLE ONLY alert_management_alert_user_mentions - ADD CONSTRAINT alert_management_alert_user_mentions_pkey PRIMARY KEY (id); -ALTER TABLE ONLY alert_management_alerts - ADD CONSTRAINT alert_management_alerts_pkey PRIMARY KEY (id); +-- +-- Name: index_234d38a657; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY alert_management_http_integrations - ADD CONSTRAINT alert_management_http_integrations_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_234d38a657; -ALTER TABLE ONLY allowed_email_domains - ADD CONSTRAINT allowed_email_domains_pkey PRIMARY KEY (id); -ALTER TABLE ONLY analytics_cycle_analytics_aggregations - ADD CONSTRAINT analytics_cycle_analytics_aggregations_pkey PRIMARY KEY (group_id); +-- +-- Name: index_23783dc748; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_group_stages - ADD CONSTRAINT analytics_cycle_analytics_group_stages_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_23783dc748; -ALTER TABLE ONLY analytics_cycle_analytics_group_value_streams - ADD CONSTRAINT analytics_cycle_analytics_group_value_streams_pkey PRIMARY KEY (id); -ALTER TABLE ONLY analytics_cycle_analytics_stage_event_hashes - ADD CONSTRAINT analytics_cycle_analytics_stage_event_hashes_pkey PRIMARY KEY (id); +-- +-- Name: index_241e9a574c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_value_stream_settings - ADD CONSTRAINT analytics_cycle_analytics_value_stream_settings_pkey PRIMARY KEY (value_stream_id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_241e9a574c; -ALTER TABLE ONLY analytics_dashboards_pointers - ADD CONSTRAINT analytics_dashboards_pointers_pkey PRIMARY KEY (id); -ALTER TABLE ONLY analytics_devops_adoption_segments - ADD CONSTRAINT analytics_devops_adoption_segments_pkey PRIMARY KEY (id); +-- +-- Name: index_24ac321751; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY analytics_devops_adoption_snapshots - ADD CONSTRAINT analytics_devops_adoption_snapshots_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_24ac321751; -ALTER TABLE ONLY analytics_language_trend_repository_languages - ADD CONSTRAINT analytics_language_trend_repository_languages_pkey PRIMARY KEY (programming_language_id, project_id, snapshot_date); -ALTER TABLE ONLY analytics_usage_trends_measurements - ADD CONSTRAINT analytics_usage_trends_measurements_pkey PRIMARY KEY (id); +-- +-- Name: index_25e2aaee9b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY appearances - ADD CONSTRAINT appearances_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_25e2aaee9b; -ALTER TABLE ONLY application_setting_terms - ADD CONSTRAINT application_setting_terms_pkey PRIMARY KEY (id); -ALTER TABLE ONLY application_settings - ADD CONSTRAINT application_settings_pkey PRIMARY KEY (id); +-- +-- Name: index_2653e7eeb8; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY approval_group_rules_groups - ADD CONSTRAINT approval_group_rules_groups_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_2653e7eeb8; -ALTER TABLE ONLY approval_group_rules - ADD CONSTRAINT approval_group_rules_pkey PRIMARY KEY (id); -ALTER TABLE ONLY approval_group_rules_protected_branches - ADD CONSTRAINT approval_group_rules_protected_branches_pkey PRIMARY KEY (id); +-- +-- Name: index_2745f5a388; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY approval_group_rules_users - ADD CONSTRAINT approval_group_rules_users_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_2745f5a388; -ALTER TABLE ONLY approval_merge_request_rule_sources - ADD CONSTRAINT approval_merge_request_rule_sources_pkey PRIMARY KEY (id); -ALTER TABLE ONLY approval_merge_request_rules_approved_approvers - ADD CONSTRAINT approval_merge_request_rules_approved_approvers_pkey PRIMARY KEY (id); +-- +-- Name: index_27759556bc; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY approval_merge_request_rules_groups - ADD CONSTRAINT approval_merge_request_rules_groups_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_27759556bc; -ALTER TABLE ONLY approval_merge_request_rules - ADD CONSTRAINT approval_merge_request_rules_pkey PRIMARY KEY (id); -ALTER TABLE ONLY approval_merge_request_rules_users - ADD CONSTRAINT approval_merge_request_rules_users_pkey PRIMARY KEY (id); +-- +-- Name: index_27d7ad78d8; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY approval_policy_rule_project_links - ADD CONSTRAINT approval_policy_rule_project_links_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_27d7ad78d8; -ALTER TABLE ONLY approval_policy_rules - ADD CONSTRAINT approval_policy_rules_pkey PRIMARY KEY (id); -ALTER TABLE ONLY approval_project_rules_groups - ADD CONSTRAINT approval_project_rules_groups_pkey PRIMARY KEY (id); +-- +-- Name: index_281840d2d1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY approval_project_rules - ADD CONSTRAINT approval_project_rules_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_281840d2d1; -ALTER TABLE ONLY approval_project_rules_protected_branches - ADD CONSTRAINT approval_project_rules_protected_branches_pkey PRIMARY KEY (approval_project_rule_id, protected_branch_id); -ALTER TABLE ONLY approval_project_rules_users - ADD CONSTRAINT approval_project_rules_users_pkey PRIMARY KEY (id); +-- +-- Name: index_2945cf4c6d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY approvals - ADD CONSTRAINT approvals_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_2945cf4c6d; -ALTER TABLE ONLY approver_groups - ADD CONSTRAINT approver_groups_pkey PRIMARY KEY (id); -ALTER TABLE ONLY approvers - ADD CONSTRAINT approvers_pkey PRIMARY KEY (id); +-- +-- Name: index_296f64df5c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ar_internal_metadata - ADD CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_296f64df5c; -ALTER TABLE ONLY atlassian_identities - ADD CONSTRAINT atlassian_identities_pkey PRIMARY KEY (user_id); -ALTER TABLE ONLY audit_events_amazon_s3_configurations - ADD CONSTRAINT audit_events_amazon_s3_configurations_pkey PRIMARY KEY (id); +-- +-- Name: index_2ad4b4fdbc; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY audit_events_external_audit_event_destinations - ADD CONSTRAINT audit_events_external_audit_event_destinations_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2ad4b4fdbc; -ALTER TABLE ONLY audit_events_google_cloud_logging_configurations - ADD CONSTRAINT audit_events_google_cloud_logging_configurations_pkey PRIMARY KEY (id); -ALTER TABLE ONLY audit_events_group_external_streaming_destinations - ADD CONSTRAINT audit_events_group_external_streaming_destinations_pkey PRIMARY KEY (id); +-- +-- Name: index_2b7c0a294e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY audit_events_group_streaming_event_type_filters - ADD CONSTRAINT audit_events_group_streaming_event_type_filters_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2b7c0a294e; -ALTER TABLE ONLY audit_events_instance_amazon_s3_configurations - ADD CONSTRAINT audit_events_instance_amazon_s3_configurations_pkey PRIMARY KEY (id); -ALTER TABLE ONLY audit_events_instance_external_audit_event_destinations - ADD CONSTRAINT audit_events_instance_external_audit_event_destinations_pkey PRIMARY KEY (id); +-- +-- Name: index_2bac9d64a0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY audit_events_instance_external_streaming_destinations - ADD CONSTRAINT audit_events_instance_external_streaming_destinations_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_2bac9d64a0; -ALTER TABLE ONLY audit_events_instance_google_cloud_logging_configurations - ADD CONSTRAINT audit_events_instance_google_cloud_logging_configurations_pkey PRIMARY KEY (id); -ALTER TABLE ONLY audit_events_instance_streaming_event_type_filters - ADD CONSTRAINT audit_events_instance_streaming_event_type_filters_pkey PRIMARY KEY (id); +-- +-- Name: index_2c6422f668; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY audit_events - ADD CONSTRAINT audit_events_pkey PRIMARY KEY (id, created_at); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2c6422f668; -ALTER TABLE ONLY audit_events_streaming_event_type_filters - ADD CONSTRAINT audit_events_streaming_event_type_filters_pkey PRIMARY KEY (id); -ALTER TABLE ONLY audit_events_streaming_group_namespace_filters - ADD CONSTRAINT audit_events_streaming_group_namespace_filters_pkey PRIMARY KEY (id); +-- +-- Name: index_2dfcdbe81e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY audit_events_streaming_headers - ADD CONSTRAINT audit_events_streaming_headers_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2dfcdbe81e; -ALTER TABLE ONLY audit_events_streaming_http_group_namespace_filters - ADD CONSTRAINT audit_events_streaming_http_group_namespace_filters_pkey PRIMARY KEY (id); -ALTER TABLE ONLY audit_events_streaming_http_instance_namespace_filters - ADD CONSTRAINT audit_events_streaming_http_instance_namespace_filters_pkey PRIMARY KEY (id); +-- +-- Name: index_2e1054b181; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY audit_events_streaming_instance_event_type_filters - ADD CONSTRAINT audit_events_streaming_instance_event_type_filters_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_2e1054b181; -ALTER TABLE ONLY audit_events_streaming_instance_namespace_filters - ADD CONSTRAINT audit_events_streaming_instance_namespace_filters_pkey PRIMARY KEY (id); -ALTER TABLE ONLY authentication_events - ADD CONSTRAINT authentication_events_pkey PRIMARY KEY (id); +-- +-- Name: index_2e6991d05b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY automation_rules - ADD CONSTRAINT automation_rules_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2e6991d05b; -ALTER TABLE ONLY award_emoji - ADD CONSTRAINT award_emoji_pkey PRIMARY KEY (id); -ALTER TABLE ONLY aws_roles - ADD CONSTRAINT aws_roles_pkey PRIMARY KEY (user_id); +-- +-- Name: index_2f80c360c3; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY background_migration_jobs - ADD CONSTRAINT background_migration_jobs_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_2f80c360c3; -ALTER TABLE ONLY badges - ADD CONSTRAINT badges_pkey PRIMARY KEY (id); -ALTER TABLE ONLY banned_users - ADD CONSTRAINT banned_users_pkey PRIMARY KEY (user_id); +-- +-- Name: index_2fc271c673; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY batched_background_migration_job_transition_logs - ADD CONSTRAINT batched_background_migration_job_transition_logs_pkey PRIMARY KEY (id, created_at); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2fc271c673; -ALTER TABLE ONLY batched_background_migration_jobs - ADD CONSTRAINT batched_background_migration_jobs_pkey PRIMARY KEY (id); -ALTER TABLE ONLY batched_background_migrations - ADD CONSTRAINT batched_background_migrations_pkey PRIMARY KEY (id); +-- +-- Name: index_2fcfd0dc70; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY board_assignees - ADD CONSTRAINT board_assignees_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_2fcfd0dc70; -ALTER TABLE ONLY board_group_recent_visits - ADD CONSTRAINT board_group_recent_visits_pkey PRIMARY KEY (id); -ALTER TABLE ONLY board_labels - ADD CONSTRAINT board_labels_pkey PRIMARY KEY (id); +-- +-- Name: index_3005c75335; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY board_project_recent_visits - ADD CONSTRAINT board_project_recent_visits_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_3005c75335; -ALTER TABLE ONLY board_user_preferences - ADD CONSTRAINT board_user_preferences_pkey PRIMARY KEY (id); -ALTER TABLE ONLY boards_epic_board_labels - ADD CONSTRAINT boards_epic_board_labels_pkey PRIMARY KEY (id); +-- +-- Name: index_3206c1e6af; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY boards_epic_board_positions - ADD CONSTRAINT boards_epic_board_positions_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_3206c1e6af; -ALTER TABLE ONLY boards_epic_board_recent_visits - ADD CONSTRAINT boards_epic_board_recent_visits_pkey PRIMARY KEY (id); -ALTER TABLE ONLY boards_epic_boards - ADD CONSTRAINT boards_epic_boards_pkey PRIMARY KEY (id); +-- +-- Name: index_3249505125; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY boards_epic_list_user_preferences - ADD CONSTRAINT boards_epic_list_user_preferences_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_3249505125; -ALTER TABLE ONLY boards_epic_lists - ADD CONSTRAINT boards_epic_lists_pkey PRIMARY KEY (id); -ALTER TABLE ONLY boards_epic_user_preferences - ADD CONSTRAINT boards_epic_user_preferences_pkey PRIMARY KEY (id); +-- +-- Name: index_331eb67441; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY boards - ADD CONSTRAINT boards_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_331eb67441; -ALTER TABLE ONLY broadcast_messages - ADD CONSTRAINT broadcast_messages_pkey PRIMARY KEY (id); -ALTER TABLE ONLY bulk_import_batch_trackers - ADD CONSTRAINT bulk_import_batch_trackers_pkey PRIMARY KEY (id); +-- +-- Name: index_34a8b08081; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY bulk_import_configurations - ADD CONSTRAINT bulk_import_configurations_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_34a8b08081; -ALTER TABLE ONLY bulk_import_entities - ADD CONSTRAINT bulk_import_entities_pkey PRIMARY KEY (id); -ALTER TABLE ONLY bulk_import_export_batches - ADD CONSTRAINT bulk_import_export_batches_pkey PRIMARY KEY (id); +-- +-- Name: index_3640194b77; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY bulk_import_export_uploads - ADD CONSTRAINT bulk_import_export_uploads_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_3640194b77; -ALTER TABLE ONLY bulk_import_exports - ADD CONSTRAINT bulk_import_exports_pkey PRIMARY KEY (id); -ALTER TABLE ONLY bulk_import_failures - ADD CONSTRAINT bulk_import_failures_pkey PRIMARY KEY (id); +-- +-- Name: index_372160a706; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY bulk_import_trackers - ADD CONSTRAINT bulk_import_trackers_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_372160a706; -ALTER TABLE ONLY bulk_imports - ADD CONSTRAINT bulk_imports_pkey PRIMARY KEY (id); -ALTER TABLE ONLY catalog_resource_components - ADD CONSTRAINT catalog_resource_components_pkey PRIMARY KEY (id); +-- +-- Name: index_389dd3c9fc; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY catalog_resource_versions - ADD CONSTRAINT catalog_resource_versions_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_389dd3c9fc; -ALTER TABLE ONLY catalog_resources - ADD CONSTRAINT catalog_resources_pkey PRIMARY KEY (id); -ALTER TABLE ONLY catalog_verified_namespaces - ADD CONSTRAINT catalog_verified_namespaces_pkey PRIMARY KEY (id); +-- +-- Name: index_38a538234e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY chat_names - ADD CONSTRAINT chat_names_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_38a538234e; -ALTER TABLE ONLY chat_teams - ADD CONSTRAINT chat_teams_pkey PRIMARY KEY (id); -ALTER TABLE workspaces - ADD CONSTRAINT check_2a89035b04 CHECK ((personal_access_token_id IS NOT NULL)) NOT VALID; +-- +-- Name: index_39625b8a41; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE vulnerability_scanners - ADD CONSTRAINT check_37608c9db5 CHECK ((char_length(vendor) <= 255)) NOT VALID; +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_39625b8a41; -ALTER TABLE ci_runners - ADD CONSTRAINT check_46c685e76f CHECK ((char_length((description)::text) <= 1024)) NOT VALID; -ALTER TABLE ci_job_variables - ADD CONSTRAINT check_567d1ccb72 CHECK ((project_id IS NOT NULL)) NOT VALID; +-- +-- Name: index_399dc06649; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ci_runners - ADD CONSTRAINT check_91230910ec CHECK ((char_length((name)::text) <= 256)) NOT VALID; +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_399dc06649; -ALTER TABLE sprints - ADD CONSTRAINT check_ccd8a1eae0 CHECK ((start_date IS NOT NULL)) NOT VALID; -ALTER TABLE group_import_states - ADD CONSTRAINT check_cda75c7c3f CHECK ((user_id IS NOT NULL)) NOT VALID; +-- +-- Name: index_3a10b315c0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE packages_packages - ADD CONSTRAINT check_d6301aedeb CHECK ((char_length(status_message) <= 255)) NOT VALID; +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_3a10b315c0; -ALTER TABLE sprints - ADD CONSTRAINT check_df3816aed7 CHECK ((due_date IS NOT NULL)) NOT VALID; -ALTER TABLE web_hook_logs - ADD CONSTRAINT check_df72cb58f5 CHECK ((char_length(url_hash) <= 44)) NOT VALID; +-- +-- Name: index_3a7d21a6ee; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE projects - ADD CONSTRAINT check_fa75869cb1 CHECK ((project_namespace_id IS NOT NULL)) NOT VALID; +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_3a7d21a6ee; -ALTER TABLE ONLY ci_build_needs - ADD CONSTRAINT ci_build_needs_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ci_build_pending_states - ADD CONSTRAINT ci_build_pending_states_pkey PRIMARY KEY (id); +-- +-- Name: index_3a8848c00b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_build_report_results - ADD CONSTRAINT ci_build_report_results_pkey PRIMARY KEY (build_id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_3a8848c00b; -ALTER TABLE ONLY ci_build_trace_chunks - ADD CONSTRAINT ci_build_trace_chunks_pkey PRIMARY KEY (id); -ALTER TABLE ONLY p_ci_build_trace_metadata - ADD CONSTRAINT p_ci_build_trace_metadata_pkey PRIMARY KEY (build_id, partition_id); +-- +-- Name: index_3b09ab5902; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_build_trace_metadata - ADD CONSTRAINT ci_build_trace_metadata_pkey PRIMARY KEY (build_id, partition_id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_3b09ab5902; -ALTER TABLE ONLY p_ci_builds_metadata - ADD CONSTRAINT p_ci_builds_metadata_pkey PRIMARY KEY (id, partition_id); -ALTER TABLE ONLY ci_builds_metadata - ADD CONSTRAINT ci_builds_metadata_pkey PRIMARY KEY (id, partition_id); +-- +-- Name: index_3bc2eedca5; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY p_ci_builds - ADD CONSTRAINT p_ci_builds_pkey PRIMARY KEY (id, partition_id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_3bc2eedca5; -ALTER TABLE ONLY ci_builds - ADD CONSTRAINT ci_builds_pkey PRIMARY KEY (id, partition_id); -ALTER TABLE ONLY ci_builds_runner_session - ADD CONSTRAINT ci_builds_runner_session_pkey PRIMARY KEY (id); +-- +-- Name: index_3c2a3a6ac9; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_cost_settings - ADD CONSTRAINT ci_cost_settings_pkey PRIMARY KEY (runner_id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_3c2a3a6ac9; -ALTER TABLE ONLY ci_daily_build_group_report_results - ADD CONSTRAINT ci_daily_build_group_report_results_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ci_deleted_objects - ADD CONSTRAINT ci_deleted_objects_pkey PRIMARY KEY (id); +-- +-- Name: index_3dbde77b8b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_freeze_periods - ADD CONSTRAINT ci_freeze_periods_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_3dbde77b8b; -ALTER TABLE ONLY ci_group_variables - ADD CONSTRAINT ci_group_variables_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ci_instance_variables - ADD CONSTRAINT ci_instance_variables_pkey PRIMARY KEY (id); +-- +-- Name: index_3e6be332b7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_job_artifact_states - ADD CONSTRAINT ci_job_artifact_states_pkey PRIMARY KEY (job_artifact_id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_3e6be332b7; -ALTER TABLE ONLY p_ci_job_artifacts - ADD CONSTRAINT p_ci_job_artifacts_pkey PRIMARY KEY (id, partition_id); -ALTER TABLE ONLY ci_job_artifacts - ADD CONSTRAINT ci_job_artifacts_pkey PRIMARY KEY (id, partition_id); +-- +-- Name: index_4137a6fac3; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_job_token_group_scope_links - ADD CONSTRAINT ci_job_token_group_scope_links_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_4137a6fac3; -ALTER TABLE ONLY ci_job_token_project_scope_links - ADD CONSTRAINT ci_job_token_project_scope_links_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ci_job_variables - ADD CONSTRAINT ci_job_variables_pkey PRIMARY KEY (id); +-- +-- Name: index_41a1c3a4c6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_minutes_additional_packs - ADD CONSTRAINT ci_minutes_additional_packs_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_41a1c3a4c6; -ALTER TABLE ONLY ci_namespace_mirrors - ADD CONSTRAINT ci_namespace_mirrors_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ci_namespace_monthly_usages - ADD CONSTRAINT ci_namespace_monthly_usages_pkey PRIMARY KEY (id); +-- +-- Name: index_435802dd01; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_partitions - ADD CONSTRAINT ci_partitions_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_435802dd01; -ALTER TABLE ONLY ci_pending_builds - ADD CONSTRAINT ci_pending_builds_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ci_pipeline_artifacts - ADD CONSTRAINT ci_pipeline_artifacts_pkey PRIMARY KEY (id); +-- +-- Name: index_436fa9ad5f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_pipeline_chat_data - ADD CONSTRAINT ci_pipeline_chat_data_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_436fa9ad5f; -ALTER TABLE ONLY ci_pipeline_messages - ADD CONSTRAINT ci_pipeline_messages_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ci_pipeline_metadata - ADD CONSTRAINT ci_pipeline_metadata_pkey PRIMARY KEY (pipeline_id); +-- +-- Name: index_453a659cb6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_pipeline_schedule_variables - ADD CONSTRAINT ci_pipeline_schedule_variables_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_453a659cb6; -ALTER TABLE ONLY ci_pipeline_schedules - ADD CONSTRAINT ci_pipeline_schedules_pkey PRIMARY KEY (id); -ALTER TABLE ONLY p_ci_pipeline_variables - ADD CONSTRAINT p_ci_pipeline_variables_pkey PRIMARY KEY (id, partition_id); +-- +-- Name: index_46b989b294; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_pipeline_variables - ADD CONSTRAINT ci_pipeline_variables_pkey PRIMARY KEY (id, partition_id); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_46b989b294; -ALTER TABLE ONLY ci_pipelines_config - ADD CONSTRAINT ci_pipelines_config_pkey PRIMARY KEY (pipeline_id); -ALTER TABLE ONLY p_ci_pipelines - ADD CONSTRAINT p_ci_pipelines_pkey PRIMARY KEY (id, partition_id); +-- +-- Name: index_4717e7049b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_pipelines - ADD CONSTRAINT ci_pipelines_pkey PRIMARY KEY (id, partition_id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_4717e7049b; -ALTER TABLE ONLY ci_project_mirrors - ADD CONSTRAINT ci_project_mirrors_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ci_project_monthly_usages - ADD CONSTRAINT ci_project_monthly_usages_pkey PRIMARY KEY (id); +-- +-- Name: index_47638677a3; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_refs - ADD CONSTRAINT ci_refs_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_47638677a3; -ALTER TABLE ONLY ci_resource_groups - ADD CONSTRAINT ci_resource_groups_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ci_resources - ADD CONSTRAINT ci_resources_pkey PRIMARY KEY (id); +-- +-- Name: index_4810ac88f5; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_runner_machines - ADD CONSTRAINT ci_runner_machines_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4810ac88f5; -ALTER TABLE ONLY ci_runner_namespaces - ADD CONSTRAINT ci_runner_namespaces_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ci_runner_projects - ADD CONSTRAINT ci_runner_projects_pkey PRIMARY KEY (id); +-- +-- Name: index_482a09e0ee; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_runner_versions - ADD CONSTRAINT ci_runner_versions_pkey PRIMARY KEY (version); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_482a09e0ee; -ALTER TABLE ONLY ci_runners - ADD CONSTRAINT ci_runners_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ci_running_builds - ADD CONSTRAINT ci_running_builds_pkey PRIMARY KEY (id); +-- +-- Name: index_491b4b749e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_secure_file_states - ADD CONSTRAINT ci_secure_file_states_pkey PRIMARY KEY (ci_secure_file_id); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_491b4b749e; -ALTER TABLE ONLY ci_secure_files - ADD CONSTRAINT ci_secure_files_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ci_sources_pipelines - ADD CONSTRAINT ci_sources_pipelines_pkey PRIMARY KEY (id); +-- +-- Name: index_4a243772d7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_sources_projects - ADD CONSTRAINT ci_sources_projects_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4a243772d7; -ALTER TABLE ONLY p_ci_stages - ADD CONSTRAINT p_ci_stages_pkey PRIMARY KEY (id, partition_id); -ALTER TABLE ONLY ci_stages - ADD CONSTRAINT ci_stages_pkey PRIMARY KEY (id, partition_id); +-- +-- Name: index_4b1793a4c4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_subscriptions_projects - ADD CONSTRAINT ci_subscriptions_projects_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_4b1793a4c4; -ALTER TABLE ONLY ci_trigger_requests - ADD CONSTRAINT ci_trigger_requests_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ci_triggers - ADD CONSTRAINT ci_triggers_pkey PRIMARY KEY (id); +-- +-- Name: index_4b22560035; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ci_unit_test_failures - ADD CONSTRAINT ci_unit_test_failures_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_4b22560035; -ALTER TABLE ONLY ci_unit_tests - ADD CONSTRAINT ci_unit_tests_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ci_variables - ADD CONSTRAINT ci_variables_pkey PRIMARY KEY (id); +-- +-- Name: index_4c2645eef2; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY cloud_connector_access - ADD CONSTRAINT cloud_connector_access_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4c2645eef2; -ALTER TABLE ONLY cluster_agent_tokens - ADD CONSTRAINT cluster_agent_tokens_pkey PRIMARY KEY (id); -ALTER TABLE ONLY cluster_agent_url_configurations - ADD CONSTRAINT cluster_agent_url_configurations_pkey PRIMARY KEY (id); +-- +-- Name: index_4c9d14f978; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY cluster_agents - ADD CONSTRAINT cluster_agents_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_4c9d14f978; -ALTER TABLE ONLY cluster_enabled_grants - ADD CONSTRAINT cluster_enabled_grants_pkey PRIMARY KEY (id); -ALTER TABLE ONLY cluster_groups - ADD CONSTRAINT cluster_groups_pkey PRIMARY KEY (id); +-- +-- Name: index_4d04210a95; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY cluster_platforms_kubernetes - ADD CONSTRAINT cluster_platforms_kubernetes_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_4d04210a95; -ALTER TABLE ONLY cluster_projects - ADD CONSTRAINT cluster_projects_pkey PRIMARY KEY (id); -ALTER TABLE ONLY cluster_providers_aws - ADD CONSTRAINT cluster_providers_aws_pkey PRIMARY KEY (id); +-- +-- Name: index_4d4f2f7de6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY cluster_providers_gcp - ADD CONSTRAINT cluster_providers_gcp_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_4d4f2f7de6; -ALTER TABLE ONLY clusters_integration_prometheus - ADD CONSTRAINT clusters_integration_prometheus_pkey PRIMARY KEY (cluster_id); -ALTER TABLE ONLY clusters_kubernetes_namespaces - ADD CONSTRAINT clusters_kubernetes_namespaces_pkey PRIMARY KEY (id); +-- +-- Name: index_4db5aa5872; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY clusters - ADD CONSTRAINT clusters_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_4db5aa5872; -ALTER TABLE ONLY commit_user_mentions - ADD CONSTRAINT commit_user_mentions_pkey PRIMARY KEY (id); -ALTER TABLE ONLY compliance_checks - ADD CONSTRAINT compliance_checks_pkey PRIMARY KEY (id); +-- +-- Name: index_4dead6f314; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY compliance_framework_security_policies - ADD CONSTRAINT compliance_framework_security_policies_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4dead6f314; -ALTER TABLE ONLY compliance_management_frameworks - ADD CONSTRAINT compliance_management_frameworks_pkey PRIMARY KEY (id); -ALTER TABLE ONLY compliance_requirements - ADD CONSTRAINT compliance_requirements_pkey PRIMARY KEY (id); +-- +-- Name: index_4e6ce1c371; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY container_expiration_policies - ADD CONSTRAINT container_expiration_policies_pkey PRIMARY KEY (project_id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4e6ce1c371; -ALTER TABLE ONLY container_registry_data_repair_details - ADD CONSTRAINT container_registry_data_repair_details_pkey PRIMARY KEY (project_id); -ALTER TABLE ONLY container_registry_protection_rules - ADD CONSTRAINT container_registry_protection_rules_pkey PRIMARY KEY (id); +-- +-- Name: index_4ea50d3a5b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY container_repositories - ADD CONSTRAINT container_repositories_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_4ea50d3a5b; -ALTER TABLE ONLY container_repository_states - ADD CONSTRAINT container_repository_states_pkey PRIMARY KEY (container_repository_id); -ALTER TABLE ONLY content_blocked_states - ADD CONSTRAINT content_blocked_states_pkey PRIMARY KEY (id); +-- +-- Name: index_4f2eb7a06b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY conversational_development_index_metrics - ADD CONSTRAINT conversational_development_index_metrics_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4f2eb7a06b; -ALTER TABLE ONLY country_access_logs - ADD CONSTRAINT country_access_logs_pkey PRIMARY KEY (id); -ALTER TABLE ONLY coverage_fuzzing_corpuses - ADD CONSTRAINT coverage_fuzzing_corpuses_pkey PRIMARY KEY (id); +-- +-- Name: index_4f6fc34e57; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY csv_issue_imports - ADD CONSTRAINT csv_issue_imports_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_4f6fc34e57; -ALTER TABLE ONLY custom_emoji - ADD CONSTRAINT custom_emoji_pkey PRIMARY KEY (id); -ALTER TABLE ONLY custom_software_licenses - ADD CONSTRAINT custom_software_licenses_pkey PRIMARY KEY (id); +-- +-- Name: index_50272372ba; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY customer_relations_contacts - ADD CONSTRAINT customer_relations_contacts_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_50272372ba; -ALTER TABLE ONLY customer_relations_organizations - ADD CONSTRAINT customer_relations_organizations_pkey PRIMARY KEY (id); -ALTER TABLE ONLY dast_pre_scan_verification_steps - ADD CONSTRAINT dast_pre_scan_verification_steps_pkey PRIMARY KEY (id); +-- +-- Name: index_5034eae5ff; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY dast_pre_scan_verifications - ADD CONSTRAINT dast_pre_scan_verifications_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5034eae5ff; -ALTER TABLE ONLY dast_profile_schedules - ADD CONSTRAINT dast_profile_schedules_pkey PRIMARY KEY (id); -ALTER TABLE ONLY dast_profiles_pipelines - ADD CONSTRAINT dast_profiles_pipelines_pkey PRIMARY KEY (dast_profile_id, ci_pipeline_id); +-- +-- Name: index_50c09f6e04; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY dast_profiles - ADD CONSTRAINT dast_profiles_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_50c09f6e04; -ALTER TABLE ONLY dast_profiles_tags - ADD CONSTRAINT dast_profiles_tags_pkey PRIMARY KEY (id); -ALTER TABLE ONLY dast_scanner_profiles_builds - ADD CONSTRAINT dast_scanner_profiles_builds_pkey PRIMARY KEY (dast_scanner_profile_id, ci_build_id); +-- +-- Name: index_5111e3e7e7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY dast_scanner_profiles - ADD CONSTRAINT dast_scanner_profiles_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5111e3e7e7; -ALTER TABLE ONLY dast_site_profile_secret_variables - ADD CONSTRAINT dast_site_profile_secret_variables_pkey PRIMARY KEY (id); -ALTER TABLE ONLY dast_site_profiles_builds - ADD CONSTRAINT dast_site_profiles_builds_pkey PRIMARY KEY (dast_site_profile_id, ci_build_id); +-- +-- Name: index_52ea79bf8e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY dast_site_profiles - ADD CONSTRAINT dast_site_profiles_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_52ea79bf8e; -ALTER TABLE ONLY dast_site_tokens - ADD CONSTRAINT dast_site_tokens_pkey PRIMARY KEY (id); -ALTER TABLE ONLY dast_site_validations - ADD CONSTRAINT dast_site_validations_pkey PRIMARY KEY (id); +-- +-- Name: index_541cc045fc; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY dast_sites - ADD CONSTRAINT dast_sites_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_541cc045fc; -ALTER TABLE namespace_settings - ADD CONSTRAINT default_branch_protection_defaults_size_constraint CHECK ((octet_length((default_branch_protection_defaults)::text) <= 1024)) NOT VALID; -ALTER TABLE application_settings - ADD CONSTRAINT default_branch_protection_defaults_size_constraint CHECK ((octet_length((default_branch_protection_defaults)::text) <= 1024)) NOT VALID; +-- +-- Name: index_5445e466ee; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY dependency_list_export_parts - ADD CONSTRAINT dependency_list_export_parts_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5445e466ee; -ALTER TABLE ONLY dependency_list_exports - ADD CONSTRAINT dependency_list_exports_pkey PRIMARY KEY (id); -ALTER TABLE ONLY dependency_proxy_blob_states - ADD CONSTRAINT dependency_proxy_blob_states_pkey PRIMARY KEY (dependency_proxy_blob_id); +-- +-- Name: index_551676e972; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY dependency_proxy_blobs - ADD CONSTRAINT dependency_proxy_blobs_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_551676e972; -ALTER TABLE ONLY dependency_proxy_group_settings - ADD CONSTRAINT dependency_proxy_group_settings_pkey PRIMARY KEY (id); -ALTER TABLE ONLY dependency_proxy_image_ttl_group_policies - ADD CONSTRAINT dependency_proxy_image_ttl_group_policies_pkey PRIMARY KEY (group_id); +-- +-- Name: index_56281bfb73; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY dependency_proxy_manifest_states - ADD CONSTRAINT dependency_proxy_manifest_states_pkey PRIMARY KEY (dependency_proxy_manifest_id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_56281bfb73; -ALTER TABLE ONLY dependency_proxy_manifests - ADD CONSTRAINT dependency_proxy_manifests_pkey PRIMARY KEY (id); -ALTER TABLE ONLY dependency_proxy_packages_settings - ADD CONSTRAINT dependency_proxy_packages_settings_pkey PRIMARY KEY (project_id); +-- +-- Name: index_5660b1b38e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY deploy_keys_projects - ADD CONSTRAINT deploy_keys_projects_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_5660b1b38e; -ALTER TABLE ONLY deploy_tokens - ADD CONSTRAINT deploy_tokens_pkey PRIMARY KEY (id); -ALTER TABLE ONLY deployment_approvals - ADD CONSTRAINT deployment_approvals_pkey PRIMARY KEY (id); +-- +-- Name: index_584c1e6fb0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY deployment_clusters - ADD CONSTRAINT deployment_clusters_pkey PRIMARY KEY (deployment_id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_584c1e6fb0; -ALTER TABLE ONLY deployment_merge_requests - ADD CONSTRAINT deployment_merge_requests_pkey PRIMARY KEY (deployment_id, merge_request_id); -ALTER TABLE ONLY deployments - ADD CONSTRAINT deployments_pkey PRIMARY KEY (id); +-- +-- Name: index_5913107510; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY description_versions - ADD CONSTRAINT description_versions_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5913107510; -ALTER TABLE ONLY design_management_designs - ADD CONSTRAINT design_management_designs_pkey PRIMARY KEY (id); -ALTER TABLE ONLY design_management_designs_versions - ADD CONSTRAINT design_management_designs_versions_pkey PRIMARY KEY (id); +-- +-- Name: index_5968e77935; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY design_management_repositories - ADD CONSTRAINT design_management_repositories_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_5968e77935; -ALTER TABLE ONLY design_management_repository_states - ADD CONSTRAINT design_management_repository_states_pkey PRIMARY KEY (design_management_repository_id); -ALTER TABLE ONLY design_management_versions - ADD CONSTRAINT design_management_versions_pkey PRIMARY KEY (id); +-- +-- Name: index_59a8209ab6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY design_user_mentions - ADD CONSTRAINT design_user_mentions_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_59a8209ab6; -ALTER TABLE ONLY detached_partitions - ADD CONSTRAINT detached_partitions_pkey PRIMARY KEY (id); -ALTER TABLE ONLY diff_note_positions - ADD CONSTRAINT diff_note_positions_pkey PRIMARY KEY (id); +-- +-- Name: index_59ce40fcc4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY dingtalk_tracker_data - ADD CONSTRAINT dingtalk_tracker_data_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_59ce40fcc4; -ALTER TABLE ONLY dora_configurations - ADD CONSTRAINT dora_configurations_pkey PRIMARY KEY (id); -ALTER TABLE ONLY dora_daily_metrics - ADD CONSTRAINT dora_daily_metrics_pkey PRIMARY KEY (id); +-- +-- Name: index_59cfd5bc9a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY dora_performance_scores - ADD CONSTRAINT dora_performance_scores_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_59cfd5bc9a; -ALTER TABLE ONLY draft_notes - ADD CONSTRAINT draft_notes_pkey PRIMARY KEY (id); -ALTER TABLE ONLY duo_workflows_checkpoints - ADD CONSTRAINT duo_workflows_checkpoints_pkey PRIMARY KEY (id); +-- +-- Name: index_5a5f39d824; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY duo_workflows_workflows - ADD CONSTRAINT duo_workflows_workflows_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5a5f39d824; -ALTER TABLE ONLY early_access_program_tracking_events - ADD CONSTRAINT early_access_program_tracking_events_pkey PRIMARY KEY (id); -ALTER TABLE ONLY elastic_group_index_statuses - ADD CONSTRAINT elastic_group_index_statuses_pkey PRIMARY KEY (namespace_id); +-- +-- Name: index_5b613b5fcf; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY elastic_index_settings - ADD CONSTRAINT elastic_index_settings_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5b613b5fcf; -ALTER TABLE ONLY elastic_reindexing_slices - ADD CONSTRAINT elastic_reindexing_slices_pkey PRIMARY KEY (id); -ALTER TABLE ONLY elastic_reindexing_subtasks - ADD CONSTRAINT elastic_reindexing_subtasks_pkey PRIMARY KEY (id); +-- +-- Name: index_5b944f308d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY elastic_reindexing_tasks - ADD CONSTRAINT elastic_reindexing_tasks_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_5b944f308d; -ALTER TABLE ONLY elasticsearch_indexed_namespaces - ADD CONSTRAINT elasticsearch_indexed_namespaces_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY elasticsearch_indexed_projects - ADD CONSTRAINT elasticsearch_indexed_projects_pkey PRIMARY KEY (project_id); +-- +-- Name: index_5bc2f32084; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY emails - ADD CONSTRAINT emails_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_5bc2f32084; -ALTER TABLE ONLY environments - ADD CONSTRAINT environments_pkey PRIMARY KEY (id); -ALTER TABLE ONLY epic_issues - ADD CONSTRAINT epic_issues_pkey PRIMARY KEY (id); +-- +-- Name: index_5bfa62771b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY epic_metrics - ADD CONSTRAINT epic_metrics_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5bfa62771b; -ALTER TABLE ONLY epic_user_mentions - ADD CONSTRAINT epic_user_mentions_pkey PRIMARY KEY (id); -ALTER TABLE ONLY epics - ADD CONSTRAINT epics_pkey PRIMARY KEY (id); +-- +-- Name: index_5c4053b63d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY error_tracking_client_keys - ADD CONSTRAINT error_tracking_client_keys_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5c4053b63d; -ALTER TABLE ONLY error_tracking_error_events - ADD CONSTRAINT error_tracking_error_events_pkey PRIMARY KEY (id); -ALTER TABLE ONLY error_tracking_errors - ADD CONSTRAINT error_tracking_errors_pkey PRIMARY KEY (id); +-- +-- Name: index_5db09170d4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY events - ADD CONSTRAINT events_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_5db09170d4; -ALTER TABLE ONLY evidences - ADD CONSTRAINT evidences_pkey PRIMARY KEY (id); -ALTER TABLE ONLY external_approval_rules - ADD CONSTRAINT external_approval_rules_pkey PRIMARY KEY (id); +-- +-- Name: index_5e46aea379; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY external_pull_requests - ADD CONSTRAINT external_pull_requests_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5e46aea379; -ALTER TABLE ONLY external_status_checks - ADD CONSTRAINT external_status_checks_pkey PRIMARY KEY (id); -ALTER TABLE ONLY external_status_checks_protected_branches - ADD CONSTRAINT external_status_checks_protected_branches_pkey PRIMARY KEY (id); +-- +-- Name: index_5e78c2eac1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY feature_gates - ADD CONSTRAINT feature_gates_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5e78c2eac1; -ALTER TABLE ONLY features - ADD CONSTRAINT features_pkey PRIMARY KEY (id); -ALTER TABLE ONLY fork_network_members - ADD CONSTRAINT fork_network_members_pkey PRIMARY KEY (id); +-- +-- Name: index_5ee060202f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY fork_networks - ADD CONSTRAINT fork_networks_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5ee060202f; + + +-- +-- Name: index_5f24f6ead2; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5f24f6ead2; + + +-- +-- Name: index_5f96b344e2; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5f96b344e2; + + +-- +-- Name: index_5fb1867c41; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_5fb1867c41; + + +-- +-- Name: index_5fe1d00845; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_5fe1d00845; + + +-- +-- Name: index_60e3480f23; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_60e3480f23; + + +-- +-- Name: index_6137e27484; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_6137e27484; + + +-- +-- Name: index_620fe77c99; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_620fe77c99; + + +-- +-- Name: index_625ed9e965; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_625ed9e965; + + +-- +-- Name: index_64e3a1dfa1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_64e3a1dfa1; + + +-- +-- Name: index_64eb4cf8bd; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_64eb4cf8bd; + + +-- +-- Name: index_6578d04baa; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_6578d04baa; + + +-- +-- Name: index_6580ecb2db; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6580ecb2db; + + +-- +-- Name: index_66a736da09; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_66a736da09; + + +-- +-- Name: index_680d7ab4a6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_680d7ab4a6; + + +-- +-- Name: index_682eba05f6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_682eba05f6; + + +-- +-- Name: index_69bdcf213e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_69bdcf213e; + + +-- +-- Name: index_6a39f6d5ac; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_6a39f6d5ac; + + +-- +-- Name: index_6add8e74cf; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6add8e74cf; + + +-- +-- Name: index_6b1ce61c8f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6b1ce61c8f; + + +-- +-- Name: index_6b431c9952; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_6b431c9952; + + +-- +-- Name: index_6bf2b9282c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_6bf2b9282c; + + +-- +-- Name: index_6cfb391b86; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_6cfb391b86; + + +-- +-- Name: index_6e560c1a4d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_6e560c1a4d; + + +-- +-- Name: index_6e64aa1646; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_6e64aa1646; + + +-- +-- Name: index_6e6c2e6a1d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6e6c2e6a1d; + + +-- +-- Name: index_6ea423bbd1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_6ea423bbd1; + + +-- +-- Name: index_6ec4c4afd4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6ec4c4afd4; + + +-- +-- Name: index_6f4e0abe54; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6f4e0abe54; + + +-- +-- Name: index_6fa47e1334; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6fa47e1334; + + +-- +-- Name: index_708d792ae9; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_708d792ae9; + + +-- +-- Name: index_70c657954b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_70c657954b; + + +-- +-- Name: index_713f462d76; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_713f462d76; + + +-- +-- Name: index_71c0e45eca; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_71c0e45eca; + + +-- +-- Name: index_71c2b26944; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_71c2b26944; + + +-- +-- Name: index_72027c157f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_72027c157f; + + +-- +-- Name: index_739845f617; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_739845f617; + + +-- +-- Name: index_74addd1240; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_74addd1240; + + +-- +-- Name: index_75dc81d1d7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_75dc81d1d7; + + +-- +-- Name: index_765b0cd8db; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_765b0cd8db; + + +-- +-- Name: index_77096a1dc6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_77096a1dc6; + + +-- +-- Name: index_77c6293242; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_77c6293242; + + +-- +-- Name: index_77f67bf238; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_77f67bf238; + + +-- +-- Name: index_7822759674; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_7822759674; + + +-- +-- Name: index_7a0b7ffadf; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_7a0b7ffadf; + + +-- +-- Name: index_7b7c85eceb; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_7b7c85eceb; + + +-- +-- Name: index_7da2307d2e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_7da2307d2e; + + +-- +-- Name: index_7ead2300ca; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_7ead2300ca; + + +-- +-- Name: index_7ecb5b68b4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_7ecb5b68b4; + + +-- +-- Name: index_7f543eed8d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_7f543eed8d; + + +-- +-- Name: index_7f8a80dd47; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_7f8a80dd47; + + +-- +-- Name: index_80305b1eed; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_80305b1eed; + + +-- +-- Name: index_807671c4be; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_807671c4be; + + +-- +-- Name: index_807fa83fc0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_807fa83fc0; + + +-- +-- Name: index_80a81ac235; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_80a81ac235; + + +-- +-- Name: index_80c65daf20; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_80c65daf20; + + +-- +-- Name: index_81b31eafac; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_81b31eafac; + + +-- +-- Name: index_81b9cf594f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_81b9cf594f; + + +-- +-- Name: index_82c675952c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_82c675952c; + + +-- +-- Name: index_831e7f124f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_831e7f124f; + + +-- +-- Name: index_837a193bf2; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_837a193bf2; + + +-- +-- Name: index_837cc295f1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_837cc295f1; + + +-- +-- Name: index_83c5049b3e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_83c5049b3e; + + +-- +-- Name: index_83edf231b8; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_83edf231b8; + + +-- +-- Name: index_844abd2888; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_844abd2888; + + +-- +-- Name: index_8464227c80; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_8464227c80; + + +-- +-- Name: index_8685d7c69c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_8685d7c69c; + + +-- +-- Name: index_8688b40056; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- + +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_8688b40056; -ALTER TABLE ONLY geo_cache_invalidation_events - ADD CONSTRAINT geo_cache_invalidation_events_pkey PRIMARY KEY (id); -ALTER TABLE ONLY geo_event_log - ADD CONSTRAINT geo_event_log_pkey PRIMARY KEY (id); +-- +-- Name: index_876145d1d5; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY geo_events - ADD CONSTRAINT geo_events_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_876145d1d5; -ALTER TABLE ONLY geo_node_namespace_links - ADD CONSTRAINT geo_node_namespace_links_pkey PRIMARY KEY (id); -ALTER TABLE ONLY geo_node_statuses - ADD CONSTRAINT geo_node_statuses_pkey PRIMARY KEY (id); +-- +-- Name: index_87d40fb9f9; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY geo_nodes - ADD CONSTRAINT geo_nodes_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_87d40fb9f9; -ALTER TABLE ONLY ghost_user_migrations - ADD CONSTRAINT ghost_user_migrations_pkey PRIMARY KEY (id); -ALTER TABLE ONLY gitlab_subscription_histories - ADD CONSTRAINT gitlab_subscription_histories_pkey PRIMARY KEY (id); +-- +-- Name: index_88b40d6740; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY gitlab_subscriptions - ADD CONSTRAINT gitlab_subscriptions_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_88b40d6740; -ALTER TABLE ONLY gpg_key_subkeys - ADD CONSTRAINT gpg_key_subkeys_pkey PRIMARY KEY (id); -ALTER TABLE ONLY gpg_keys - ADD CONSTRAINT gpg_keys_pkey PRIMARY KEY (id); +-- +-- Name: index_89c49cf697; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY gpg_signatures - ADD CONSTRAINT gpg_signatures_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_89c49cf697; -ALTER TABLE ONLY grafana_integrations - ADD CONSTRAINT grafana_integrations_pkey PRIMARY KEY (id); -ALTER TABLE ONLY group_audit_events - ADD CONSTRAINT group_audit_events_pkey PRIMARY KEY (id, created_at); +-- +-- Name: index_89c79afe5c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY group_crm_settings - ADD CONSTRAINT group_crm_settings_pkey PRIMARY KEY (group_id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_89c79afe5c; -ALTER TABLE ONLY group_custom_attributes - ADD CONSTRAINT group_custom_attributes_pkey PRIMARY KEY (id); -ALTER TABLE ONLY group_deletion_schedules - ADD CONSTRAINT group_deletion_schedules_pkey PRIMARY KEY (group_id); +-- +-- Name: index_8a0fc3de4f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY group_deploy_keys_groups - ADD CONSTRAINT group_deploy_keys_groups_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_8a0fc3de4f; -ALTER TABLE ONLY group_deploy_keys - ADD CONSTRAINT group_deploy_keys_pkey PRIMARY KEY (id); -ALTER TABLE ONLY group_deploy_tokens - ADD CONSTRAINT group_deploy_tokens_pkey PRIMARY KEY (id); +-- +-- Name: index_8a8eb06b9a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY group_features - ADD CONSTRAINT group_features_pkey PRIMARY KEY (group_id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_8a8eb06b9a; -ALTER TABLE ONLY group_group_links - ADD CONSTRAINT group_group_links_pkey PRIMARY KEY (id); -ALTER TABLE ONLY group_import_states - ADD CONSTRAINT group_import_states_pkey PRIMARY KEY (group_id); +-- +-- Name: index_8b1b6b03b4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY group_merge_request_approval_settings - ADD CONSTRAINT group_merge_request_approval_settings_pkey PRIMARY KEY (group_id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_8b1b6b03b4; -ALTER TABLE ONLY group_repository_storage_moves - ADD CONSTRAINT group_repository_storage_moves_pkey PRIMARY KEY (id); -ALTER TABLE ONLY group_saved_replies - ADD CONSTRAINT group_saved_replies_pkey PRIMARY KEY (id); +-- +-- Name: index_8b9f9a19a4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY group_ssh_certificates - ADD CONSTRAINT group_ssh_certificates_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_8b9f9a19a4; -ALTER TABLE ONLY group_wiki_repositories - ADD CONSTRAINT group_wiki_repositories_pkey PRIMARY KEY (group_id); -ALTER TABLE ONLY group_wiki_repository_states - ADD CONSTRAINT group_wiki_repository_states_pkey PRIMARY KEY (id); +-- +-- Name: index_8fb48e72ce; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY groups_visits - ADD CONSTRAINT groups_visits_pkey PRIMARY KEY (id, visited_at); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_8fb48e72ce; -ALTER TABLE ONLY historical_data - ADD CONSTRAINT historical_data_pkey PRIMARY KEY (id); -ALTER TABLE ONLY identities - ADD CONSTRAINT identities_pkey PRIMARY KEY (id); +-- +-- Name: index_907e12b7ba; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY import_export_uploads - ADD CONSTRAINT import_export_uploads_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_907e12b7ba; -ALTER TABLE ONLY import_failures - ADD CONSTRAINT import_failures_pkey PRIMARY KEY (id); -ALTER TABLE ONLY import_placeholder_memberships - ADD CONSTRAINT import_placeholder_memberships_pkey PRIMARY KEY (id); +-- +-- Name: index_918bb2ebbb; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY import_source_user_placeholder_references - ADD CONSTRAINT import_source_user_placeholder_references_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_918bb2ebbb; -ALTER TABLE ONLY import_source_users - ADD CONSTRAINT import_source_users_pkey PRIMARY KEY (id); -ALTER TABLE ONLY incident_management_oncall_shifts - ADD CONSTRAINT inc_mgmnt_no_overlapping_oncall_shifts EXCLUDE USING gist (rotation_id WITH =, tstzrange(starts_at, ends_at, '[)'::text) WITH &&); +-- +-- Name: index_91c432a4bd; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY incident_management_escalation_policies - ADD CONSTRAINT incident_management_escalation_policies_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_91c432a4bd; -ALTER TABLE ONLY incident_management_escalation_rules - ADD CONSTRAINT incident_management_escalation_rules_pkey PRIMARY KEY (id); -ALTER TABLE ONLY incident_management_issuable_escalation_statuses - ADD CONSTRAINT incident_management_issuable_escalation_statuses_pkey PRIMARY KEY (id); +-- +-- Name: index_91d5e4e3df; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY incident_management_oncall_participants - ADD CONSTRAINT incident_management_oncall_participants_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_91d5e4e3df; -ALTER TABLE ONLY incident_management_oncall_rotations - ADD CONSTRAINT incident_management_oncall_rotations_pkey PRIMARY KEY (id); -ALTER TABLE ONLY incident_management_oncall_schedules - ADD CONSTRAINT incident_management_oncall_schedules_pkey PRIMARY KEY (id); +-- +-- Name: index_9201b952a0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY incident_management_oncall_shifts - ADD CONSTRAINT incident_management_oncall_shifts_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_9201b952a0; -ALTER TABLE ONLY incident_management_pending_alert_escalations - ADD CONSTRAINT incident_management_pending_alert_escalations_pkey PRIMARY KEY (id, process_at); -ALTER TABLE ONLY incident_management_pending_issue_escalations - ADD CONSTRAINT incident_management_pending_issue_escalations_pkey PRIMARY KEY (id, process_at); +-- +-- Name: index_927796f71d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY incident_management_timeline_event_tag_links - ADD CONSTRAINT incident_management_timeline_event_tag_links_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_927796f71d; -ALTER TABLE ONLY incident_management_timeline_event_tags - ADD CONSTRAINT incident_management_timeline_event_tags_pkey PRIMARY KEY (id); -ALTER TABLE ONLY incident_management_timeline_events - ADD CONSTRAINT incident_management_timeline_events_pkey PRIMARY KEY (id); +-- +-- Name: index_92c09e352b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY index_statuses - ADD CONSTRAINT index_statuses_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_92c09e352b; -ALTER TABLE ONLY insights - ADD CONSTRAINT insights_pkey PRIMARY KEY (id); -ALTER TABLE ONLY instance_audit_events - ADD CONSTRAINT instance_audit_events_pkey PRIMARY KEY (id, created_at); +-- +-- Name: index_9490e0e0b7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY instance_audit_events_streaming_headers - ADD CONSTRAINT instance_audit_events_streaming_headers_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_9490e0e0b7; -ALTER TABLE ONLY integrations - ADD CONSTRAINT integrations_pkey PRIMARY KEY (id); -ALTER TABLE ONLY internal_ids - ADD CONSTRAINT internal_ids_pkey PRIMARY KEY (id); +-- +-- Name: index_9555c2ae92; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ip_restrictions - ADD CONSTRAINT ip_restrictions_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_9555c2ae92; -ALTER TABLE ONLY issuable_metric_images - ADD CONSTRAINT issuable_metric_images_pkey PRIMARY KEY (id); -ALTER TABLE ONLY issuable_resource_links - ADD CONSTRAINT issuable_resource_links_pkey PRIMARY KEY (id); +-- +-- Name: index_95a353f50b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issuable_severities - ADD CONSTRAINT issuable_severities_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_95a353f50b; -ALTER TABLE ONLY issuable_slas - ADD CONSTRAINT issuable_slas_pkey PRIMARY KEY (id); -ALTER TABLE ONLY issue_assignees - ADD CONSTRAINT issue_assignees_pkey PRIMARY KEY (issue_id, user_id); +-- +-- Name: index_971af9481e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_assignment_events - ADD CONSTRAINT issue_assignment_events_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_971af9481e; -ALTER TABLE ONLY issue_customer_relations_contacts - ADD CONSTRAINT issue_customer_relations_contacts_pkey PRIMARY KEY (id); -ALTER TABLE ONLY issue_email_participants - ADD CONSTRAINT issue_email_participants_pkey PRIMARY KEY (id); +-- +-- Name: index_994aa245b7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_emails - ADD CONSTRAINT issue_emails_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_994aa245b7; -ALTER TABLE ONLY issue_links - ADD CONSTRAINT issue_links_pkey PRIMARY KEY (id); -ALTER TABLE ONLY issue_metrics - ADD CONSTRAINT issue_metrics_pkey PRIMARY KEY (id); +-- +-- Name: index_9955b1dc59; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issue_tracker_data - ADD CONSTRAINT issue_tracker_data_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_9955b1dc59; -ALTER TABLE ONLY issue_user_mentions - ADD CONSTRAINT issue_user_mentions_pkey PRIMARY KEY (id); -ALTER TABLE ONLY issues - ADD CONSTRAINT issues_pkey PRIMARY KEY (id); +-- +-- Name: index_9a2eb72a3b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY issues_prometheus_alert_events - ADD CONSTRAINT issues_prometheus_alert_events_pkey PRIMARY KEY (issue_id, prometheus_alert_event_id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_9a2eb72a3b; -ALTER TABLE ONLY issues_self_managed_prometheus_alert_events - ADD CONSTRAINT issues_self_managed_prometheus_alert_events_pkey PRIMARY KEY (issue_id, self_managed_prometheus_alert_event_id); -ALTER TABLE ONLY sprints - ADD CONSTRAINT iteration_start_and_due_date_iterations_cadence_id_constraint EXCLUDE USING gist (iterations_cadence_id WITH =, daterange(start_date, due_date, '[]'::text) WITH &&) WHERE ((group_id IS NOT NULL)) DEFERRABLE INITIALLY DEFERRED; +-- +-- Name: index_9b8e89ae41; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY iterations_cadences - ADD CONSTRAINT iterations_cadences_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_9b8e89ae41; -ALTER TABLE ONLY jira_connect_installations - ADD CONSTRAINT jira_connect_installations_pkey PRIMARY KEY (id); -ALTER TABLE ONLY jira_connect_subscriptions - ADD CONSTRAINT jira_connect_subscriptions_pkey PRIMARY KEY (id); +-- +-- Name: index_9d0e953ab3; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY jira_imports - ADD CONSTRAINT jira_imports_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_9d0e953ab3; -ALTER TABLE ONLY jira_tracker_data - ADD CONSTRAINT jira_tracker_data_pkey PRIMARY KEY (id); -ALTER TABLE ONLY keys - ADD CONSTRAINT keys_pkey PRIMARY KEY (id); +-- +-- Name: index_9ee83b068b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY label_links - ADD CONSTRAINT label_links_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_9ee83b068b; -ALTER TABLE ONLY label_priorities - ADD CONSTRAINT label_priorities_pkey PRIMARY KEY (id); -ALTER TABLE ONLY labels - ADD CONSTRAINT labels_pkey PRIMARY KEY (id); +-- +-- Name: index_a016d4ed08; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ldap_group_links - ADD CONSTRAINT ldap_group_links_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_a016d4ed08; -ALTER TABLE ONLY lfs_file_locks - ADD CONSTRAINT lfs_file_locks_pkey PRIMARY KEY (id); -ALTER TABLE ONLY lfs_object_states - ADD CONSTRAINT lfs_object_states_pkey PRIMARY KEY (lfs_object_id); +-- +-- Name: index_a1a9dc36c1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY lfs_objects - ADD CONSTRAINT lfs_objects_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a1a9dc36c1; -ALTER TABLE ONLY lfs_objects_projects - ADD CONSTRAINT lfs_objects_projects_pkey PRIMARY KEY (id); -ALTER TABLE ONLY licenses - ADD CONSTRAINT licenses_pkey PRIMARY KEY (id); +-- +-- Name: index_a2d9f185a5; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY list_user_preferences - ADD CONSTRAINT list_user_preferences_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a2d9f185a5; -ALTER TABLE ONLY lists - ADD CONSTRAINT lists_pkey PRIMARY KEY (id); -ALTER TABLE ONLY loose_foreign_keys_deleted_records - ADD CONSTRAINT loose_foreign_keys_deleted_records_pkey PRIMARY KEY (partition, id); +-- +-- Name: index_a3feed3097; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY member_approvals - ADD CONSTRAINT member_approvals_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a3feed3097; -ALTER TABLE ONLY member_roles - ADD CONSTRAINT member_roles_pkey PRIMARY KEY (id); -ALTER TABLE ONLY members - ADD CONSTRAINT members_pkey PRIMARY KEY (id); +-- +-- Name: index_a46b7b7f26; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY merge_request_assignees - ADD CONSTRAINT merge_request_assignees_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_a46b7b7f26; -ALTER TABLE ONLY merge_request_assignment_events - ADD CONSTRAINT merge_request_assignment_events_pkey PRIMARY KEY (id); -ALTER TABLE ONLY merge_request_blocks - ADD CONSTRAINT merge_request_blocks_pkey PRIMARY KEY (id); +-- +-- Name: index_a4f5106804; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY merge_request_cleanup_schedules - ADD CONSTRAINT merge_request_cleanup_schedules_pkey PRIMARY KEY (merge_request_id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_a4f5106804; -ALTER TABLE ONLY merge_request_context_commit_diff_files - ADD CONSTRAINT merge_request_context_commit_diff_files_pkey PRIMARY KEY (merge_request_context_commit_id, relative_order); -ALTER TABLE ONLY merge_request_context_commits - ADD CONSTRAINT merge_request_context_commits_pkey PRIMARY KEY (id); +-- +-- Name: index_a6999c65c9; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY merge_request_diff_commit_users - ADD CONSTRAINT merge_request_diff_commit_users_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a6999c65c9; -ALTER TABLE ONLY merge_request_diff_commits_b5377a7a34 - ADD CONSTRAINT merge_request_diff_commits_b5377a7a34_pkey PRIMARY KEY (merge_request_diff_id, relative_order); -ALTER TABLE ONLY merge_request_diff_commits - ADD CONSTRAINT merge_request_diff_commits_pkey PRIMARY KEY (merge_request_diff_id, relative_order); +-- +-- Name: index_a6c68d16b2; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY merge_request_diff_details - ADD CONSTRAINT merge_request_diff_details_pkey PRIMARY KEY (merge_request_diff_id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_a6c68d16b2; -ALTER TABLE ONLY merge_request_diff_files_99208b8fac - ADD CONSTRAINT merge_request_diff_files_99208b8fac_pkey PRIMARY KEY (merge_request_diff_id, relative_order); -ALTER TABLE ONLY merge_request_diff_files - ADD CONSTRAINT merge_request_diff_files_pkey PRIMARY KEY (merge_request_diff_id, relative_order); +-- +-- Name: index_a8276a450f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY merge_request_diffs - ADD CONSTRAINT merge_request_diffs_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_a8276a450f; -ALTER TABLE ONLY merge_request_metrics - ADD CONSTRAINT merge_request_metrics_pkey PRIMARY KEY (id); -ALTER TABLE ONLY merge_request_predictions - ADD CONSTRAINT merge_request_predictions_pkey PRIMARY KEY (merge_request_id); +-- +-- Name: index_a849f1bbcc; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY merge_request_requested_changes - ADD CONSTRAINT merge_request_requested_changes_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_a849f1bbcc; -ALTER TABLE ONLY merge_request_reviewers - ADD CONSTRAINT merge_request_reviewers_pkey PRIMARY KEY (id); -ALTER TABLE ONLY merge_request_user_mentions - ADD CONSTRAINT merge_request_user_mentions_pkey PRIMARY KEY (id); +-- +-- Name: index_a88f20fc98; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY merge_requests_closing_issues - ADD CONSTRAINT merge_requests_closing_issues_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a88f20fc98; -ALTER TABLE ONLY merge_requests_compliance_violations - ADD CONSTRAINT merge_requests_compliance_violations_pkey PRIMARY KEY (id); -ALTER TABLE ONLY merge_requests - ADD CONSTRAINT merge_requests_pkey PRIMARY KEY (id); +-- +-- Name: index_a8fe03fe34; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY merge_trains - ADD CONSTRAINT merge_trains_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_a8fe03fe34; -ALTER TABLE ONLY metrics_dashboard_annotations - ADD CONSTRAINT metrics_dashboard_annotations_pkey PRIMARY KEY (id); -ALTER TABLE ONLY metrics_users_starred_dashboards - ADD CONSTRAINT metrics_users_starred_dashboards_pkey PRIMARY KEY (id); +-- +-- Name: index_a9424aa392; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY milestone_releases - ADD CONSTRAINT milestone_releases_pkey PRIMARY KEY (milestone_id, release_id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a9424aa392; -ALTER TABLE ONLY milestones - ADD CONSTRAINT milestones_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ml_candidate_metadata - ADD CONSTRAINT ml_candidate_metadata_pkey PRIMARY KEY (id); +-- +-- Name: index_a99cee1904; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ml_candidate_metrics - ADD CONSTRAINT ml_candidate_metrics_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a99cee1904; -ALTER TABLE ONLY ml_candidate_params - ADD CONSTRAINT ml_candidate_params_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ml_candidates - ADD CONSTRAINT ml_candidates_pkey PRIMARY KEY (id); +-- +-- Name: index_a9b1763c36; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ml_experiment_metadata - ADD CONSTRAINT ml_experiment_metadata_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_a9b1763c36; -ALTER TABLE ONLY ml_experiments - ADD CONSTRAINT ml_experiments_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ml_model_metadata - ADD CONSTRAINT ml_model_metadata_pkey PRIMARY KEY (id); +-- +-- Name: index_a9ba23c88e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ml_model_version_metadata - ADD CONSTRAINT ml_model_version_metadata_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_a9ba23c88e; -ALTER TABLE ONLY ml_model_versions - ADD CONSTRAINT ml_model_versions_pkey PRIMARY KEY (id); -ALTER TABLE ONLY ml_models - ADD CONSTRAINT ml_models_pkey PRIMARY KEY (id); +-- +-- Name: index_a9deff2159; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY namespace_admin_notes - ADD CONSTRAINT namespace_admin_notes_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_a9deff2159; -ALTER TABLE ONLY namespace_aggregation_schedules - ADD CONSTRAINT namespace_aggregation_schedules_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY namespace_bans - ADD CONSTRAINT namespace_bans_pkey PRIMARY KEY (id); +-- +-- Name: index_aa92d75d85; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY namespace_ci_cd_settings - ADD CONSTRAINT namespace_ci_cd_settings_pkey PRIMARY KEY (namespace_id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_aa92d75d85; -ALTER TABLE ONLY namespace_commit_emails - ADD CONSTRAINT namespace_commit_emails_pkey PRIMARY KEY (id); -ALTER TABLE ONLY namespace_details - ADD CONSTRAINT namespace_details_pkey PRIMARY KEY (namespace_id); +-- +-- Name: index_aabc184267; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY namespace_import_users - ADD CONSTRAINT namespace_import_users_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_aabc184267; -ALTER TABLE ONLY namespace_ldap_settings - ADD CONSTRAINT namespace_ldap_settings_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY namespace_limits - ADD CONSTRAINT namespace_limits_pkey PRIMARY KEY (namespace_id); +-- +-- Name: index_ab22231a16; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY namespace_package_settings - ADD CONSTRAINT namespace_package_settings_pkey PRIMARY KEY (namespace_id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_ab22231a16; -ALTER TABLE ONLY namespace_root_storage_statistics - ADD CONSTRAINT namespace_root_storage_statistics_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY namespace_settings - ADD CONSTRAINT namespace_settings_pkey PRIMARY KEY (namespace_id); +-- +-- Name: index_abbdf80ab1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY namespace_statistics - ADD CONSTRAINT namespace_statistics_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_abbdf80ab1; -ALTER TABLE ONLY namespaces - ADD CONSTRAINT namespaces_pkey PRIMARY KEY (id); -ALTER TABLE ONLY namespaces_storage_limit_exclusions - ADD CONSTRAINT namespaces_storage_limit_exclusions_pkey PRIMARY KEY (id); +-- +-- Name: index_aca42d7cff; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY namespaces_sync_events - ADD CONSTRAINT namespaces_sync_events_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_aca42d7cff; -ALTER TABLE ONLY note_diff_files - ADD CONSTRAINT note_diff_files_pkey PRIMARY KEY (id); -ALTER TABLE ONLY note_metadata - ADD CONSTRAINT note_metadata_pkey PRIMARY KEY (note_id); +-- +-- Name: index_ad55e8b11c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY notes - ADD CONSTRAINT notes_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ad55e8b11c; -ALTER TABLE ONLY notification_settings - ADD CONSTRAINT notification_settings_pkey PRIMARY KEY (id); -ALTER TABLE ONLY oauth_access_grants - ADD CONSTRAINT oauth_access_grants_pkey PRIMARY KEY (id); +-- +-- Name: index_adc159c3fe; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY oauth_access_tokens - ADD CONSTRAINT oauth_access_tokens_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_adc159c3fe; -ALTER TABLE ONLY oauth_applications - ADD CONSTRAINT oauth_applications_pkey PRIMARY KEY (id); -ALTER TABLE ONLY oauth_device_grants - ADD CONSTRAINT oauth_device_grants_pkey PRIMARY KEY (id); +-- +-- Name: index_aed7f7b10c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY oauth_openid_requests - ADD CONSTRAINT oauth_openid_requests_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_aed7f7b10c; -ALTER TABLE ONLY observability_logs_issues_connections - ADD CONSTRAINT observability_logs_issues_connections_pkey PRIMARY KEY (id); -ALTER TABLE ONLY observability_metrics_issues_connections - ADD CONSTRAINT observability_metrics_issues_connections_pkey PRIMARY KEY (id); +-- +-- Name: index_aee84adb5b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY observability_traces_issues_connections - ADD CONSTRAINT observability_traces_issues_connections_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_aee84adb5b; -ALTER TABLE ONLY onboarding_progresses - ADD CONSTRAINT onboarding_progresses_pkey PRIMARY KEY (id); -ALTER TABLE ONLY operations_feature_flag_scopes - ADD CONSTRAINT operations_feature_flag_scopes_pkey PRIMARY KEY (id); +-- +-- Name: index_af8368d587; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY operations_feature_flags_clients - ADD CONSTRAINT operations_feature_flags_clients_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_af8368d587; -ALTER TABLE ONLY operations_feature_flags_issues - ADD CONSTRAINT operations_feature_flags_issues_pkey PRIMARY KEY (id); -ALTER TABLE ONLY operations_feature_flags - ADD CONSTRAINT operations_feature_flags_pkey PRIMARY KEY (id); +-- +-- Name: index_b1dda405af; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY operations_scopes - ADD CONSTRAINT operations_scopes_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_b1dda405af; -ALTER TABLE ONLY operations_strategies - ADD CONSTRAINT operations_strategies_pkey PRIMARY KEY (id); -ALTER TABLE ONLY operations_strategies_user_lists - ADD CONSTRAINT operations_strategies_user_lists_pkey PRIMARY KEY (id); +-- +-- Name: index_b24e8538c8; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY operations_user_lists - ADD CONSTRAINT operations_user_lists_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_b24e8538c8; -ALTER TABLE ONLY organization_details - ADD CONSTRAINT organization_details_pkey PRIMARY KEY (organization_id); -ALTER TABLE ONLY organization_settings - ADD CONSTRAINT organization_settings_pkey PRIMARY KEY (organization_id); +-- +-- Name: index_b286c595e8; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY organization_users - ADD CONSTRAINT organization_users_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_b286c595e8; -ALTER TABLE ONLY organizations - ADD CONSTRAINT organizations_pkey PRIMARY KEY (id); -ALTER TABLE ONLY p_batched_git_ref_updates_deletions - ADD CONSTRAINT p_batched_git_ref_updates_deletions_pkey PRIMARY KEY (id, partition_id); +-- +-- Name: index_b377ac6784; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY p_catalog_resource_component_usages - ADD CONSTRAINT p_catalog_resource_component_usages_pkey PRIMARY KEY (id, used_date); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_b377ac6784; -ALTER TABLE ONLY p_catalog_resource_sync_events - ADD CONSTRAINT p_catalog_resource_sync_events_pkey PRIMARY KEY (id, partition_id); -ALTER TABLE ONLY p_ci_build_names - ADD CONSTRAINT p_ci_build_names_pkey PRIMARY KEY (build_id, partition_id); +-- +-- Name: index_b3b64068e7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY p_ci_build_sources - ADD CONSTRAINT p_ci_build_sources_pkey PRIMARY KEY (build_id, partition_id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_b3b64068e7; -ALTER TABLE ONLY p_ci_build_tags - ADD CONSTRAINT p_ci_build_tags_pkey PRIMARY KEY (id, partition_id); -ALTER TABLE ONLY p_ci_builds_execution_configs - ADD CONSTRAINT p_ci_builds_execution_configs_pkey PRIMARY KEY (id, partition_id); +-- +-- Name: index_b3c4c9a53f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY p_ci_finished_build_ch_sync_events - ADD CONSTRAINT p_ci_finished_build_ch_sync_events_pkey PRIMARY KEY (build_id, partition); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_b3c4c9a53f; -ALTER TABLE ONLY p_ci_finished_pipeline_ch_sync_events - ADD CONSTRAINT p_ci_finished_pipeline_ch_sync_events_pkey PRIMARY KEY (pipeline_id, partition); -ALTER TABLE ONLY p_ci_job_annotations - ADD CONSTRAINT p_ci_job_annotations_pkey PRIMARY KEY (id, partition_id); +-- +-- Name: index_b4b2bba753; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY p_ci_runner_machine_builds - ADD CONSTRAINT p_ci_runner_machine_builds_pkey PRIMARY KEY (build_id, partition_id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_b4b2bba753; -ALTER TABLE ONLY packages_build_infos - ADD CONSTRAINT packages_build_infos_pkey PRIMARY KEY (id); -ALTER TABLE ONLY packages_cleanup_policies - ADD CONSTRAINT packages_cleanup_policies_pkey PRIMARY KEY (project_id); +-- +-- Name: index_b607012614; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY packages_composer_cache_files - ADD CONSTRAINT packages_composer_cache_files_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_b607012614; -ALTER TABLE ONLY packages_composer_metadata - ADD CONSTRAINT packages_composer_metadata_pkey PRIMARY KEY (package_id); -ALTER TABLE ONLY packages_conan_file_metadata - ADD CONSTRAINT packages_conan_file_metadata_pkey PRIMARY KEY (id); +-- +-- Name: index_b6cc38a848; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY packages_conan_metadata - ADD CONSTRAINT packages_conan_metadata_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_b6cc38a848; -ALTER TABLE ONLY packages_debian_file_metadata - ADD CONSTRAINT packages_debian_file_metadata_pkey PRIMARY KEY (package_file_id); -ALTER TABLE ONLY packages_debian_group_architectures - ADD CONSTRAINT packages_debian_group_architectures_pkey PRIMARY KEY (id); +-- +-- Name: index_b748a3e0a6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY packages_debian_group_component_files - ADD CONSTRAINT packages_debian_group_component_files_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_b748a3e0a6; -ALTER TABLE ONLY packages_debian_group_components - ADD CONSTRAINT packages_debian_group_components_pkey PRIMARY KEY (id); -ALTER TABLE ONLY packages_debian_group_distribution_keys - ADD CONSTRAINT packages_debian_group_distribution_keys_pkey PRIMARY KEY (id); +-- +-- Name: index_b7f21460bb; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY packages_debian_group_distributions - ADD CONSTRAINT packages_debian_group_distributions_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_b7f21460bb; -ALTER TABLE ONLY packages_debian_project_architectures - ADD CONSTRAINT packages_debian_project_architectures_pkey PRIMARY KEY (id); -ALTER TABLE ONLY packages_debian_project_component_files - ADD CONSTRAINT packages_debian_project_component_files_pkey PRIMARY KEY (id); +-- +-- Name: index_b83fe1306b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY packages_debian_project_components - ADD CONSTRAINT packages_debian_project_components_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_b83fe1306b; -ALTER TABLE ONLY packages_debian_project_distribution_keys - ADD CONSTRAINT packages_debian_project_distribution_keys_pkey PRIMARY KEY (id); -ALTER TABLE ONLY packages_debian_project_distributions - ADD CONSTRAINT packages_debian_project_distributions_pkey PRIMARY KEY (id); +-- +-- Name: index_bb6defaa27; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY packages_debian_publications - ADD CONSTRAINT packages_debian_publications_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_bb6defaa27; -ALTER TABLE ONLY packages_dependencies - ADD CONSTRAINT packages_dependencies_pkey PRIMARY KEY (id); -ALTER TABLE ONLY packages_dependency_links - ADD CONSTRAINT packages_dependency_links_pkey PRIMARY KEY (id); +-- +-- Name: index_bc189e47ab; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY packages_helm_file_metadata - ADD CONSTRAINT packages_helm_file_metadata_pkey PRIMARY KEY (package_file_id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_bc189e47ab; -ALTER TABLE ONLY packages_maven_metadata - ADD CONSTRAINT packages_maven_metadata_pkey PRIMARY KEY (id); -ALTER TABLE ONLY packages_npm_metadata_caches - ADD CONSTRAINT packages_npm_metadata_caches_pkey PRIMARY KEY (id); +-- +-- Name: index_bca83177ef; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY packages_npm_metadata - ADD CONSTRAINT packages_npm_metadata_pkey PRIMARY KEY (package_id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_bca83177ef; -ALTER TABLE ONLY packages_nuget_dependency_link_metadata - ADD CONSTRAINT packages_nuget_dependency_link_metadata_pkey PRIMARY KEY (dependency_link_id); -ALTER TABLE ONLY packages_nuget_metadata - ADD CONSTRAINT packages_nuget_metadata_pkey PRIMARY KEY (package_id); +-- +-- Name: index_bcaa8dcd34; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY packages_nuget_symbols - ADD CONSTRAINT packages_nuget_symbols_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_bcaa8dcd34; -ALTER TABLE ONLY packages_package_file_build_infos - ADD CONSTRAINT packages_package_file_build_infos_pkey PRIMARY KEY (id); -ALTER TABLE ONLY packages_package_files - ADD CONSTRAINT packages_package_files_pkey PRIMARY KEY (id); +-- +-- Name: index_bcae2cf631; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY packages_packages - ADD CONSTRAINT packages_packages_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_bcae2cf631; -ALTER TABLE ONLY packages_protection_rules - ADD CONSTRAINT packages_protection_rules_pkey PRIMARY KEY (id); -ALTER TABLE ONLY packages_pypi_metadata - ADD CONSTRAINT packages_pypi_metadata_pkey PRIMARY KEY (package_id); +-- +-- Name: index_be0a028bcc; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY packages_rpm_metadata - ADD CONSTRAINT packages_rpm_metadata_pkey PRIMARY KEY (package_id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_be0a028bcc; -ALTER TABLE ONLY packages_rpm_repository_files - ADD CONSTRAINT packages_rpm_repository_files_pkey PRIMARY KEY (id); -ALTER TABLE ONLY packages_rubygems_metadata - ADD CONSTRAINT packages_rubygems_metadata_pkey PRIMARY KEY (package_id); +-- +-- Name: index_beaa329ca0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY packages_tags - ADD CONSTRAINT packages_tags_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_beaa329ca0; -ALTER TABLE ONLY packages_terraform_module_metadata - ADD CONSTRAINT packages_terraform_module_metadata_pkey PRIMARY KEY (package_id); -ALTER TABLE ONLY pages_deployment_states - ADD CONSTRAINT pages_deployment_states_pkey PRIMARY KEY (pages_deployment_id); +-- +-- Name: index_bedd7e160b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY pages_deployments - ADD CONSTRAINT pages_deployments_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_bedd7e160b; -ALTER TABLE ONLY pages_domain_acme_orders - ADD CONSTRAINT pages_domain_acme_orders_pkey PRIMARY KEY (id); -ALTER TABLE ONLY pages_domains - ADD CONSTRAINT pages_domains_pkey PRIMARY KEY (id); +-- +-- Name: index_bee2b94a80; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY path_locks - ADD CONSTRAINT path_locks_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_bee2b94a80; -ALTER TABLE ONLY personal_access_token_last_used_ips - ADD CONSTRAINT personal_access_token_last_used_ips_pkey PRIMARY KEY (id); -ALTER TABLE ONLY personal_access_tokens - ADD CONSTRAINT personal_access_tokens_pkey PRIMARY KEY (id); +-- +-- Name: index_bf1809b19e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY plan_limits - ADD CONSTRAINT plan_limits_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_bf1809b19e; -ALTER TABLE ONLY plans - ADD CONSTRAINT plans_pkey PRIMARY KEY (id); -ALTER TABLE ONLY pm_advisories - ADD CONSTRAINT pm_advisories_pkey PRIMARY KEY (id); +-- +-- Name: index_c02f569fba; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY pm_affected_packages - ADD CONSTRAINT pm_affected_packages_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_c02f569fba; -ALTER TABLE ONLY pm_checkpoints - ADD CONSTRAINT pm_checkpoints_pkey PRIMARY KEY (id); -ALTER TABLE ONLY pm_epss - ADD CONSTRAINT pm_epss_pkey PRIMARY KEY (id); +-- +-- Name: index_c08e669dfa; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY pm_licenses - ADD CONSTRAINT pm_licenses_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c08e669dfa; -ALTER TABLE ONLY pm_package_version_licenses - ADD CONSTRAINT pm_package_version_licenses_pkey PRIMARY KEY (id); -ALTER TABLE ONLY pm_package_versions - ADD CONSTRAINT pm_package_versions_pkey PRIMARY KEY (id); +-- +-- Name: index_c09bb66559; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY pm_packages - ADD CONSTRAINT pm_packages_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c09bb66559; -ALTER TABLE ONLY pool_repositories - ADD CONSTRAINT pool_repositories_pkey PRIMARY KEY (id); -ALTER TABLE ONLY postgres_async_foreign_key_validations - ADD CONSTRAINT postgres_async_foreign_key_validations_pkey PRIMARY KEY (id); +-- +-- Name: index_c119f5b92e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY postgres_async_indexes - ADD CONSTRAINT postgres_async_indexes_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_c119f5b92e; -ALTER TABLE ONLY postgres_reindex_actions - ADD CONSTRAINT postgres_reindex_actions_pkey PRIMARY KEY (id); -ALTER TABLE ONLY postgres_reindex_queued_actions - ADD CONSTRAINT postgres_reindex_queued_actions_pkey PRIMARY KEY (id); +-- +-- Name: index_c17dae3605; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY programming_languages - ADD CONSTRAINT programming_languages_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c17dae3605; -ALTER TABLE ONLY project_access_tokens - ADD CONSTRAINT project_access_tokens_pkey PRIMARY KEY (personal_access_token_id, project_id); -ALTER TABLE ONLY project_alerting_settings - ADD CONSTRAINT project_alerting_settings_pkey PRIMARY KEY (project_id); +-- +-- Name: index_c1cdd90d0d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY project_aliases - ADD CONSTRAINT project_aliases_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c1cdd90d0d; -ALTER TABLE ONLY project_audit_events - ADD CONSTRAINT project_audit_events_pkey PRIMARY KEY (id, created_at); -ALTER TABLE ONLY project_authorizations - ADD CONSTRAINT project_authorizations_pkey PRIMARY KEY (user_id, project_id, access_level); +-- +-- Name: index_c2b951bf20; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY project_auto_devops - ADD CONSTRAINT project_auto_devops_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_c2b951bf20; -ALTER TABLE ONLY project_build_artifacts_size_refreshes - ADD CONSTRAINT project_build_artifacts_size_refreshes_pkey PRIMARY KEY (id); -ALTER TABLE ONLY project_ci_cd_settings - ADD CONSTRAINT project_ci_cd_settings_pkey PRIMARY KEY (id); +-- +-- Name: index_c3a2cf8b3b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY project_ci_feature_usages - ADD CONSTRAINT project_ci_feature_usages_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_c3a2cf8b3b; -ALTER TABLE ONLY project_compliance_framework_settings - ADD CONSTRAINT project_compliance_framework_settings_pkey PRIMARY KEY (id); -ALTER TABLE ONLY project_compliance_standards_adherence - ADD CONSTRAINT project_compliance_standards_adherence_pkey PRIMARY KEY (id); +-- +-- Name: index_c42b2e7eae; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY project_custom_attributes - ADD CONSTRAINT project_custom_attributes_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c42b2e7eae; -ALTER TABLE ONLY project_daily_statistics - ADD CONSTRAINT project_daily_statistics_pkey PRIMARY KEY (id); -ALTER TABLE ONLY project_data_transfers - ADD CONSTRAINT project_data_transfers_pkey PRIMARY KEY (id); +-- +-- Name: index_c435d904ce; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY project_deploy_tokens - ADD CONSTRAINT project_deploy_tokens_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c435d904ce; -ALTER TABLE ONLY project_error_tracking_settings - ADD CONSTRAINT project_error_tracking_settings_pkey PRIMARY KEY (project_id); -ALTER TABLE ONLY project_export_jobs - ADD CONSTRAINT project_export_jobs_pkey PRIMARY KEY (id); +-- +-- Name: index_c473921734; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY project_feature_usages - ADD CONSTRAINT project_feature_usages_pkey PRIMARY KEY (project_id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c473921734; -ALTER TABLE ONLY project_features - ADD CONSTRAINT project_features_pkey PRIMARY KEY (id); -ALTER TABLE ONLY project_group_links - ADD CONSTRAINT project_group_links_pkey PRIMARY KEY (id); +-- +-- Name: index_c546bb0736; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY project_import_data - ADD CONSTRAINT project_import_data_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c546bb0736; -ALTER TABLE ONLY project_incident_management_settings - ADD CONSTRAINT project_incident_management_settings_pkey PRIMARY KEY (project_id); -ALTER TABLE ONLY project_metrics_settings - ADD CONSTRAINT project_metrics_settings_pkey PRIMARY KEY (project_id); +-- +-- Name: index_c59cde6209; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY project_mirror_data - ADD CONSTRAINT project_mirror_data_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c59cde6209; -ALTER TABLE ONLY project_pages_metadata - ADD CONSTRAINT project_pages_metadata_pkey PRIMARY KEY (project_id); -ALTER TABLE ONLY project_relation_export_uploads - ADD CONSTRAINT project_relation_export_uploads_pkey PRIMARY KEY (id); +-- +-- Name: index_c66758baa7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY project_relation_exports - ADD CONSTRAINT project_relation_exports_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c66758baa7; -ALTER TABLE ONLY project_repositories - ADD CONSTRAINT project_repositories_pkey PRIMARY KEY (id); -ALTER TABLE ONLY project_repository_storage_moves - ADD CONSTRAINT project_repository_storage_moves_pkey PRIMARY KEY (id); +-- +-- Name: index_c6ea8a0e26; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY project_saved_replies - ADD CONSTRAINT project_saved_replies_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c6ea8a0e26; -ALTER TABLE ONLY project_secrets_managers - ADD CONSTRAINT project_secrets_managers_pkey PRIMARY KEY (id); -ALTER TABLE ONLY project_security_settings - ADD CONSTRAINT project_security_settings_pkey PRIMARY KEY (project_id); +-- +-- Name: index_c7ac8595d3; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY project_settings - ADD CONSTRAINT project_settings_pkey PRIMARY KEY (project_id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_c7ac8595d3; -ALTER TABLE ONLY project_states - ADD CONSTRAINT project_states_pkey PRIMARY KEY (id); -ALTER TABLE ONLY project_statistics - ADD CONSTRAINT project_statistics_pkey PRIMARY KEY (id); +-- +-- Name: index_c8bbf2b334; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY project_topics - ADD CONSTRAINT project_topics_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_c8bbf2b334; -ALTER TABLE ONLY project_wiki_repositories - ADD CONSTRAINT project_wiki_repositories_pkey PRIMARY KEY (id); -ALTER TABLE ONLY projects - ADD CONSTRAINT projects_pkey PRIMARY KEY (id); +-- +-- Name: index_c8c4219c0a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE projects - ADD CONSTRAINT projects_star_count_positive CHECK ((star_count >= 0)) NOT VALID; +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c8c4219c0a; -ALTER TABLE ONLY projects_sync_events - ADD CONSTRAINT projects_sync_events_pkey PRIMARY KEY (id); -ALTER TABLE ONLY projects_visits - ADD CONSTRAINT projects_visits_pkey PRIMARY KEY (id, visited_at); +-- +-- Name: index_c971e6c5ce; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY prometheus_alert_events - ADD CONSTRAINT prometheus_alert_events_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_c971e6c5ce; -ALTER TABLE ONLY prometheus_alerts - ADD CONSTRAINT prometheus_alerts_pkey PRIMARY KEY (id); -ALTER TABLE ONLY prometheus_metrics - ADD CONSTRAINT prometheus_metrics_pkey PRIMARY KEY (id); +-- +-- Name: index_c9b14a3d9f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY protected_branch_merge_access_levels - ADD CONSTRAINT protected_branch_merge_access_levels_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c9b14a3d9f; -ALTER TABLE ONLY protected_branch_push_access_levels - ADD CONSTRAINT protected_branch_push_access_levels_pkey PRIMARY KEY (id); -ALTER TABLE ONLY protected_branch_unprotect_access_levels - ADD CONSTRAINT protected_branch_unprotect_access_levels_pkey PRIMARY KEY (id); +-- +-- Name: index_cb222425ed; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY protected_branches - ADD CONSTRAINT protected_branches_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_cb222425ed; -ALTER TABLE ONLY protected_environment_approval_rules - ADD CONSTRAINT protected_environment_approval_rules_pkey PRIMARY KEY (id); -ALTER TABLE ONLY protected_environment_deploy_access_levels - ADD CONSTRAINT protected_environment_deploy_access_levels_pkey PRIMARY KEY (id); +-- +-- Name: index_cbb61ea269; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY protected_environments - ADD CONSTRAINT protected_environments_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_cbb61ea269; -ALTER TABLE ONLY protected_tag_create_access_levels - ADD CONSTRAINT protected_tag_create_access_levels_pkey PRIMARY KEY (id); -ALTER TABLE ONLY protected_tags - ADD CONSTRAINT protected_tags_pkey PRIMARY KEY (id); +-- +-- Name: index_cc0ba6343b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY push_event_payloads - ADD CONSTRAINT push_event_payloads_pkey PRIMARY KEY (event_id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_cc0ba6343b; -ALTER TABLE ONLY push_rules - ADD CONSTRAINT push_rules_pkey PRIMARY KEY (id); -ALTER TABLE ONLY raw_usage_data - ADD CONSTRAINT raw_usage_data_pkey PRIMARY KEY (id); +-- +-- Name: index_ccb4f5c5a6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY redirect_routes - ADD CONSTRAINT redirect_routes_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ccb4f5c5a6; -ALTER TABLE ONLY related_epic_links - ADD CONSTRAINT related_epic_links_pkey PRIMARY KEY (id); -ALTER TABLE ONLY relation_import_trackers - ADD CONSTRAINT relation_import_trackers_pkey PRIMARY KEY (id); +-- +-- Name: index_cd2b2939a4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY release_links - ADD CONSTRAINT release_links_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_cd2b2939a4; -ALTER TABLE releases - ADD CONSTRAINT releases_not_null_tag CHECK ((tag IS NOT NULL)) NOT VALID; -ALTER TABLE ONLY releases - ADD CONSTRAINT releases_pkey PRIMARY KEY (id); +-- +-- Name: index_cda41e106e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY remote_development_agent_configs - ADD CONSTRAINT remote_development_agent_configs_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_cda41e106e; -ALTER TABLE ONLY remote_development_namespace_cluster_agent_mappings - ADD CONSTRAINT remote_development_namespace_cluster_agent_mappings_pkey PRIMARY KEY (id); -ALTER TABLE ONLY remote_mirrors - ADD CONSTRAINT remote_mirrors_pkey PRIMARY KEY (id); +-- +-- Name: index_ce87cbaf2d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY repository_languages - ADD CONSTRAINT repository_languages_pkey PRIMARY KEY (project_id, programming_language_id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ce87cbaf2d; -ALTER TABLE ONLY required_code_owners_sections - ADD CONSTRAINT required_code_owners_sections_pkey PRIMARY KEY (id); -ALTER TABLE ONLY requirements_management_test_reports - ADD CONSTRAINT requirements_management_test_reports_pkey PRIMARY KEY (id); +-- +-- Name: index_cfa4237c83; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY requirements - ADD CONSTRAINT requirements_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_cfa4237c83; -ALTER TABLE ONLY resource_iteration_events - ADD CONSTRAINT resource_iteration_events_pkey PRIMARY KEY (id); -ALTER TABLE ONLY resource_label_events - ADD CONSTRAINT resource_label_events_pkey PRIMARY KEY (id); +-- +-- Name: index_d01ea0126a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY resource_link_events - ADD CONSTRAINT resource_link_events_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_d01ea0126a; -ALTER TABLE ONLY resource_milestone_events - ADD CONSTRAINT resource_milestone_events_pkey PRIMARY KEY (id); -ALTER TABLE ONLY resource_state_events - ADD CONSTRAINT resource_state_events_pkey PRIMARY KEY (id); +-- +-- Name: index_d03e9cdfae; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY resource_weight_events - ADD CONSTRAINT resource_weight_events_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d03e9cdfae; -ALTER TABLE ONLY reviews - ADD CONSTRAINT reviews_pkey PRIMARY KEY (id); -ALTER TABLE ONLY routes - ADD CONSTRAINT routes_pkey PRIMARY KEY (id); +-- +-- Name: index_d0d285c264; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY saml_group_links - ADD CONSTRAINT saml_group_links_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_d0d285c264; -ALTER TABLE ONLY saml_providers - ADD CONSTRAINT saml_providers_pkey PRIMARY KEY (id); -ALTER TABLE ONLY saved_replies - ADD CONSTRAINT saved_replies_pkey PRIMARY KEY (id); +-- +-- Name: index_d17b82ddd9; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY sbom_component_versions - ADD CONSTRAINT sbom_component_versions_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d17b82ddd9; -ALTER TABLE ONLY sbom_components - ADD CONSTRAINT sbom_components_pkey PRIMARY KEY (id); -ALTER TABLE ONLY sbom_occurrences - ADD CONSTRAINT sbom_occurrences_pkey PRIMARY KEY (id); +-- +-- Name: index_d1c24d8199; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY sbom_occurrences_vulnerabilities - ADD CONSTRAINT sbom_occurrences_vulnerabilities_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d1c24d8199; -ALTER TABLE ONLY sbom_source_packages - ADD CONSTRAINT sbom_source_packages_pkey PRIMARY KEY (id); -ALTER TABLE ONLY sbom_sources - ADD CONSTRAINT sbom_sources_pkey PRIMARY KEY (id); +-- +-- Name: index_d1c6c67ec1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY scan_execution_policy_rules - ADD CONSTRAINT scan_execution_policy_rules_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_d1c6c67ec1; -ALTER TABLE ONLY scan_result_policies - ADD CONSTRAINT scan_result_policies_pkey PRIMARY KEY (id); -ALTER TABLE ONLY scan_result_policy_violations - ADD CONSTRAINT scan_result_policy_violations_pkey PRIMARY KEY (id); +-- +-- Name: index_d27b4c84e7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY schema_migrations - ADD CONSTRAINT schema_migrations_pkey PRIMARY KEY (version); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_d27b4c84e7; -ALTER TABLE ONLY scim_identities - ADD CONSTRAINT scim_identities_pkey PRIMARY KEY (id); -ALTER TABLE ONLY scim_oauth_access_tokens - ADD CONSTRAINT scim_oauth_access_tokens_pkey PRIMARY KEY (id); +-- +-- Name: index_d2fe918e83; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY search_indices - ADD CONSTRAINT search_indices_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_d2fe918e83; -ALTER TABLE ONLY search_namespace_index_assignments - ADD CONSTRAINT search_namespace_index_assignments_pkey PRIMARY KEY (id); -ALTER TABLE ONLY security_findings - ADD CONSTRAINT security_findings_pkey PRIMARY KEY (id, partition_number); +-- +-- Name: index_d35c969634; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY security_orchestration_policy_configurations - ADD CONSTRAINT security_orchestration_policy_configurations_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_d35c969634; -ALTER TABLE ONLY security_orchestration_policy_rule_schedules - ADD CONSTRAINT security_orchestration_policy_rule_schedules_pkey PRIMARY KEY (id); -ALTER TABLE ONLY security_policies - ADD CONSTRAINT security_policies_pkey PRIMARY KEY (id); +-- +-- Name: index_d3b6418940; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY security_policy_project_links - ADD CONSTRAINT security_policy_project_links_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_d3b6418940; -ALTER TABLE ONLY security_policy_requirements - ADD CONSTRAINT security_policy_requirements_pkey PRIMARY KEY (id); -ALTER TABLE ONLY security_scans - ADD CONSTRAINT security_scans_pkey PRIMARY KEY (id); +-- +-- Name: index_d493a5c171; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY security_training_providers - ADD CONSTRAINT security_training_providers_pkey PRIMARY KEY (id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d493a5c171; -ALTER TABLE ONLY security_trainings - ADD CONSTRAINT security_trainings_pkey PRIMARY KEY (id); -ALTER TABLE ONLY self_managed_prometheus_alert_events - ADD CONSTRAINT self_managed_prometheus_alert_events_pkey PRIMARY KEY (id); +-- +-- Name: index_d6047ee813; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY sent_notifications - ADD CONSTRAINT sent_notifications_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_d6047ee813; -ALTER TABLE ONLY sentry_issues - ADD CONSTRAINT sentry_issues_pkey PRIMARY KEY (id); -ALTER TABLE ONLY sprints - ADD CONSTRAINT sequence_is_unique_per_iterations_cadence_id UNIQUE (iterations_cadence_id, sequence) DEFERRABLE INITIALLY DEFERRED; +-- +-- Name: index_d69c2485f4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY service_access_tokens - ADD CONSTRAINT service_access_tokens_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_d69c2485f4; -ALTER TABLE ONLY service_desk_custom_email_credentials - ADD CONSTRAINT service_desk_custom_email_credentials_pkey PRIMARY KEY (project_id); -ALTER TABLE ONLY service_desk_custom_email_verifications - ADD CONSTRAINT service_desk_custom_email_verifications_pkey PRIMARY KEY (project_id); +-- +-- Name: index_d70379e22c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY service_desk_settings - ADD CONSTRAINT service_desk_settings_pkey PRIMARY KEY (project_id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d70379e22c; -ALTER TABLE ONLY shards - ADD CONSTRAINT shards_pkey PRIMARY KEY (id); -ALTER TABLE ONLY slack_api_scopes - ADD CONSTRAINT slack_api_scopes_pkey PRIMARY KEY (id); +-- +-- Name: index_d87775b2e7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY slack_integrations - ADD CONSTRAINT slack_integrations_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_d87775b2e7; -ALTER TABLE ONLY slack_integrations_scopes - ADD CONSTRAINT slack_integrations_scopes_pkey PRIMARY KEY (id); -ALTER TABLE ONLY smartcard_identities - ADD CONSTRAINT smartcard_identities_pkey PRIMARY KEY (id); +-- +-- Name: index_d8fa9793ad; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY snippet_repositories - ADD CONSTRAINT snippet_repositories_pkey PRIMARY KEY (snippet_id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_d8fa9793ad; -ALTER TABLE ONLY snippet_repository_storage_moves - ADD CONSTRAINT snippet_repository_storage_moves_pkey PRIMARY KEY (id); -ALTER TABLE ONLY snippet_statistics - ADD CONSTRAINT snippet_statistics_pkey PRIMARY KEY (snippet_id); +-- +-- Name: index_d9384b768d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY snippet_user_mentions - ADD CONSTRAINT snippet_user_mentions_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_d9384b768d; -ALTER TABLE ONLY snippets - ADD CONSTRAINT snippets_pkey PRIMARY KEY (id); -ALTER TABLE ONLY software_license_policies - ADD CONSTRAINT software_license_policies_pkey PRIMARY KEY (id); +-- +-- Name: index_db2753330c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY software_licenses - ADD CONSTRAINT software_licenses_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_db2753330c; -ALTER TABLE ONLY spam_logs - ADD CONSTRAINT spam_logs_pkey PRIMARY KEY (id); -ALTER TABLE ONLY sprints - ADD CONSTRAINT sprints_pkey PRIMARY KEY (id); +-- +-- Name: index_db6477916f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY ssh_signatures - ADD CONSTRAINT ssh_signatures_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_db6477916f; -ALTER TABLE ONLY status_check_responses - ADD CONSTRAINT status_check_responses_pkey PRIMARY KEY (id); -ALTER TABLE ONLY status_page_published_incidents - ADD CONSTRAINT status_page_published_incidents_pkey PRIMARY KEY (id); +-- +-- Name: index_dc571ba649; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY status_page_settings - ADD CONSTRAINT status_page_settings_pkey PRIMARY KEY (project_id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_dc571ba649; -ALTER TABLE ONLY subscription_add_on_purchases - ADD CONSTRAINT subscription_add_on_purchases_pkey PRIMARY KEY (id); -ALTER TABLE ONLY subscription_add_ons - ADD CONSTRAINT subscription_add_ons_pkey PRIMARY KEY (id); +-- +-- Name: index_de0334da63; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY subscription_user_add_on_assignments - ADD CONSTRAINT subscription_user_add_on_assignments_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_de0334da63; -ALTER TABLE ONLY subscriptions - ADD CONSTRAINT subscriptions_pkey PRIMARY KEY (id); -ALTER TABLE ONLY suggestions - ADD CONSTRAINT suggestions_pkey PRIMARY KEY (id); +-- +-- Name: index_df62a8c50e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY system_access_microsoft_applications - ADD CONSTRAINT system_access_microsoft_applications_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_df62a8c50e; -ALTER TABLE ONLY system_access_microsoft_graph_access_tokens - ADD CONSTRAINT system_access_microsoft_graph_access_tokens_pkey PRIMARY KEY (id); -ALTER TABLE ONLY system_note_metadata - ADD CONSTRAINT system_note_metadata_pkey PRIMARY KEY (id); +-- +-- Name: index_e1a4f994d8; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY taggings - ADD CONSTRAINT taggings_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e1a4f994d8; -ALTER TABLE ONLY tags - ADD CONSTRAINT tags_pkey PRIMARY KEY (id); -ALTER TABLE ONLY target_branch_rules - ADD CONSTRAINT target_branch_rules_pkey PRIMARY KEY (id); +-- +-- Name: index_e38489ea98; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY term_agreements - ADD CONSTRAINT term_agreements_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_e38489ea98; -ALTER TABLE ONLY terraform_state_versions - ADD CONSTRAINT terraform_state_versions_pkey PRIMARY KEY (id); -ALTER TABLE ONLY terraform_states - ADD CONSTRAINT terraform_states_pkey PRIMARY KEY (id); +-- +-- Name: index_e3d1fd5b19; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY timelog_categories - ADD CONSTRAINT timelog_categories_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_e3d1fd5b19; -ALTER TABLE ONLY timelogs - ADD CONSTRAINT timelogs_pkey PRIMARY KEY (id); -ALTER TABLE ONLY todos - ADD CONSTRAINT todos_pkey PRIMARY KEY (id); +-- +-- Name: index_e3d6234929; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY token_with_ivs - ADD CONSTRAINT token_with_ivs_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e3d6234929; -ALTER TABLE ONLY topics - ADD CONSTRAINT topics_pkey PRIMARY KEY (id); -ALTER TABLE ONLY trending_projects - ADD CONSTRAINT trending_projects_pkey PRIMARY KEY (id); +-- +-- Name: index_e54adf9acb; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY upcoming_reconciliations - ADD CONSTRAINT upcoming_reconciliations_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e54adf9acb; -ALTER TABLE ONLY upload_states - ADD CONSTRAINT upload_states_pkey PRIMARY KEY (upload_id); -ALTER TABLE ONLY uploads - ADD CONSTRAINT uploads_pkey PRIMARY KEY (id); +-- +-- Name: index_e6405afea0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY user_achievements - ADD CONSTRAINT user_achievements_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e6405afea0; -ALTER TABLE ONLY user_agent_details - ADD CONSTRAINT user_agent_details_pkey PRIMARY KEY (id); -ALTER TABLE ONLY user_audit_events - ADD CONSTRAINT user_audit_events_pkey PRIMARY KEY (id, created_at); +-- +-- Name: index_e64588e276; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY user_broadcast_message_dismissals - ADD CONSTRAINT user_broadcast_message_dismissals_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e64588e276; -ALTER TABLE ONLY user_callouts - ADD CONSTRAINT user_callouts_pkey PRIMARY KEY (id); -ALTER TABLE ONLY user_canonical_emails - ADD CONSTRAINT user_canonical_emails_pkey PRIMARY KEY (id); +-- +-- Name: index_e716b8ac3f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY user_credit_card_validations - ADD CONSTRAINT user_credit_card_validations_pkey PRIMARY KEY (user_id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_e716b8ac3f; -ALTER TABLE ONLY user_custom_attributes - ADD CONSTRAINT user_custom_attributes_pkey PRIMARY KEY (id); -ALTER TABLE ONLY user_details - ADD CONSTRAINT user_details_pkey PRIMARY KEY (user_id); +-- +-- Name: index_e73bc5ba6a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY user_follow_users - ADD CONSTRAINT user_follow_users_pkey PRIMARY KEY (follower_id, followee_id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_e73bc5ba6a; -ALTER TABLE ONLY user_group_callouts - ADD CONSTRAINT user_group_callouts_pkey PRIMARY KEY (id); -ALTER TABLE ONLY user_highest_roles - ADD CONSTRAINT user_highest_roles_pkey PRIMARY KEY (user_id); +-- +-- Name: index_e8f3a327b2; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY user_namespace_callouts - ADD CONSTRAINT user_namespace_callouts_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_e8f3a327b2; -ALTER TABLE ONLY user_permission_export_uploads - ADD CONSTRAINT user_permission_export_uploads_pkey PRIMARY KEY (id); -ALTER TABLE ONLY user_phone_number_validations - ADD CONSTRAINT user_phone_number_validations_pkey PRIMARY KEY (user_id); +-- +-- Name: index_ea0c2d3361; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY user_preferences - ADD CONSTRAINT user_preferences_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_ea0c2d3361; -ALTER TABLE ONLY user_project_callouts - ADD CONSTRAINT user_project_callouts_pkey PRIMARY KEY (id); -ALTER TABLE ONLY user_statuses - ADD CONSTRAINT user_statuses_pkey PRIMARY KEY (user_id); +-- +-- Name: index_ea1b583157; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY user_synced_attributes_metadata - ADD CONSTRAINT user_synced_attributes_metadata_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ea1b583157; -ALTER TABLE ONLY users_ops_dashboard_projects - ADD CONSTRAINT users_ops_dashboard_projects_pkey PRIMARY KEY (id); -ALTER TABLE ONLY users - ADD CONSTRAINT users_pkey PRIMARY KEY (id); +-- +-- Name: index_eadcc94c4e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY users_security_dashboard_projects - ADD CONSTRAINT users_security_dashboard_projects_pkey PRIMARY KEY (project_id, user_id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_eadcc94c4e; -ALTER TABLE ONLY users_star_projects - ADD CONSTRAINT users_star_projects_pkey PRIMARY KEY (id); -ALTER TABLE ONLY users_statistics - ADD CONSTRAINT users_statistics_pkey PRIMARY KEY (id); +-- +-- Name: index_eb558957f0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY value_stream_dashboard_aggregations - ADD CONSTRAINT value_stream_dashboard_aggregations_pkey PRIMARY KEY (namespace_id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_eb558957f0; -ALTER TABLE ONLY value_stream_dashboard_counts - ADD CONSTRAINT value_stream_dashboard_counts_pkey PRIMARY KEY (namespace_id, metric, recorded_at, count, id); -ALTER TABLE ONLY verification_codes - ADD CONSTRAINT verification_codes_pkey PRIMARY KEY (created_at, visitor_id_code, code, phone); +-- +-- Name: index_eb5a7f918a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY virtual_registries_packages_maven_cached_responses - ADD CONSTRAINT virtual_registries_packages_maven_cached_responses_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_eb5a7f918a; -ALTER TABLE ONLY virtual_registries_packages_maven_registries - ADD CONSTRAINT virtual_registries_packages_maven_registries_pkey PRIMARY KEY (id); -ALTER TABLE ONLY virtual_registries_packages_maven_registry_upstreams - ADD CONSTRAINT virtual_registries_packages_maven_registry_upstreams_pkey PRIMARY KEY (id); +-- +-- Name: index_ec25d494e6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY virtual_registries_packages_maven_upstreams - ADD CONSTRAINT virtual_registries_packages_maven_upstreams_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_ec25d494e6; -ALTER TABLE ONLY vs_code_settings - ADD CONSTRAINT vs_code_settings_pkey PRIMARY KEY (id); -ALTER TABLE ONLY vulnerabilities - ADD CONSTRAINT vulnerabilities_pkey PRIMARY KEY (id); +-- +-- Name: index_ece25b5987; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY vulnerability_export_parts - ADD CONSTRAINT vulnerability_export_parts_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ece25b5987; -ALTER TABLE ONLY vulnerability_exports - ADD CONSTRAINT vulnerability_exports_pkey PRIMARY KEY (id); -ALTER TABLE ONLY vulnerability_external_issue_links - ADD CONSTRAINT vulnerability_external_issue_links_pkey PRIMARY KEY (id); +-- +-- Name: index_ed094a4f13; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY vulnerability_feedback - ADD CONSTRAINT vulnerability_feedback_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_ed094a4f13; -ALTER TABLE ONLY vulnerability_finding_evidences - ADD CONSTRAINT vulnerability_finding_evidences_pkey PRIMARY KEY (id); -ALTER TABLE ONLY vulnerability_finding_links - ADD CONSTRAINT vulnerability_finding_links_pkey PRIMARY KEY (id); +-- +-- Name: index_ed6dbac8c0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY vulnerability_finding_signatures - ADD CONSTRAINT vulnerability_finding_signatures_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ed6dbac8c0; -ALTER TABLE ONLY vulnerability_findings_remediations - ADD CONSTRAINT vulnerability_findings_remediations_pkey PRIMARY KEY (id); -ALTER TABLE ONLY vulnerability_flags - ADD CONSTRAINT vulnerability_flags_pkey PRIMARY KEY (id); +-- +-- Name: index_ee4c549a2d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY vulnerability_historical_statistics - ADD CONSTRAINT vulnerability_historical_statistics_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_ee4c549a2d; -ALTER TABLE ONLY vulnerability_identifiers - ADD CONSTRAINT vulnerability_identifiers_pkey PRIMARY KEY (id); -ALTER TABLE ONLY vulnerability_issue_links - ADD CONSTRAINT vulnerability_issue_links_pkey PRIMARY KEY (id); +-- +-- Name: index_ef6a48bd29; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY vulnerability_merge_request_links - ADD CONSTRAINT vulnerability_merge_request_links_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_ef6a48bd29; -ALTER TABLE ONLY vulnerability_namespace_historical_statistics - ADD CONSTRAINT vulnerability_namespace_historical_statistics_pkey PRIMARY KEY (id); -ALTER TABLE ONLY vulnerability_occurrence_identifiers - ADD CONSTRAINT vulnerability_occurrence_identifiers_pkey PRIMARY KEY (id); +-- +-- Name: index_ef7be2ae94; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY vulnerability_occurrence_pipelines - ADD CONSTRAINT vulnerability_occurrence_pipelines_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_ef7be2ae94; -ALTER TABLE ONLY vulnerability_occurrences - ADD CONSTRAINT vulnerability_occurrences_pkey PRIMARY KEY (id); -ALTER TABLE ONLY vulnerability_reads - ADD CONSTRAINT vulnerability_reads_pkey PRIMARY KEY (id); +-- +-- Name: index_efa25b26bd; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY vulnerability_remediations - ADD CONSTRAINT vulnerability_remediations_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_efa25b26bd; -ALTER TABLE ONLY vulnerability_scanners - ADD CONSTRAINT vulnerability_scanners_pkey PRIMARY KEY (id); -ALTER TABLE ONLY vulnerability_state_transitions - ADD CONSTRAINT vulnerability_state_transitions_pkey PRIMARY KEY (id); +-- +-- Name: index_f06b4c7a23; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY vulnerability_statistics - ADD CONSTRAINT vulnerability_statistics_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f06b4c7a23; -ALTER TABLE ONLY vulnerability_user_mentions - ADD CONSTRAINT vulnerability_user_mentions_pkey PRIMARY KEY (id); -ALTER TABLE ONLY web_hook_logs - ADD CONSTRAINT web_hook_logs_pkey PRIMARY KEY (id, created_at); +-- +-- Name: index_f0cdd09a5e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY web_hooks - ADD CONSTRAINT web_hooks_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f0cdd09a5e; -ALTER TABLE ONLY webauthn_registrations - ADD CONSTRAINT webauthn_registrations_pkey PRIMARY KEY (id); -ALTER TABLE ONLY wiki_page_meta - ADD CONSTRAINT wiki_page_meta_pkey PRIMARY KEY (id); +-- +-- Name: index_f112fae8ac; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY wiki_page_slugs - ADD CONSTRAINT wiki_page_slugs_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_f112fae8ac; -ALTER TABLE ONLY wiki_repository_states - ADD CONSTRAINT wiki_repository_states_pkey PRIMARY KEY (id); -ALTER TABLE ONLY work_item_colors - ADD CONSTRAINT work_item_colors_pkey PRIMARY KEY (issue_id); +-- +-- Name: index_f1c3d14cdc; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY work_item_dates_sources - ADD CONSTRAINT work_item_dates_sources_pkey PRIMARY KEY (issue_id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_f1c3d14cdc; -ALTER TABLE ONLY work_item_hierarchy_restrictions - ADD CONSTRAINT work_item_hierarchy_restrictions_pkey PRIMARY KEY (id); -ALTER TABLE ONLY work_item_parent_links - ADD CONSTRAINT work_item_parent_links_pkey PRIMARY KEY (id); +-- +-- Name: index_f256d3f6a1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY work_item_progresses - ADD CONSTRAINT work_item_progresses_pkey PRIMARY KEY (issue_id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f256d3f6a1; -ALTER TABLE ONLY work_item_related_link_restrictions - ADD CONSTRAINT work_item_related_link_restrictions_pkey PRIMARY KEY (id); -ALTER TABLE ONLY work_item_types - ADD CONSTRAINT work_item_types_pkey PRIMARY KEY (id); +-- +-- Name: index_f2848acfc7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY work_item_widget_definitions - ADD CONSTRAINT work_item_widget_definitions_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_f2848acfc7; -ALTER TABLE ONLY workspace_variables - ADD CONSTRAINT workspace_variables_pkey PRIMARY KEY (id); -ALTER TABLE ONLY workspaces_agent_configs - ADD CONSTRAINT workspaces_agent_configs_pkey PRIMARY KEY (id); +-- +-- Name: index_f3d7d86e09; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY workspaces - ADD CONSTRAINT workspaces_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f3d7d86e09; -ALTER TABLE ONLY x509_certificates - ADD CONSTRAINT x509_certificates_pkey PRIMARY KEY (id); -ALTER TABLE ONLY x509_commit_signatures - ADD CONSTRAINT x509_commit_signatures_pkey PRIMARY KEY (id); +-- +-- Name: index_f402f6a388; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY x509_issuers - ADD CONSTRAINT x509_issuers_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f402f6a388; -ALTER TABLE ONLY xray_reports - ADD CONSTRAINT xray_reports_pkey PRIMARY KEY (id); -ALTER TABLE ONLY zentao_tracker_data - ADD CONSTRAINT zentao_tracker_data_pkey PRIMARY KEY (id); +-- +-- Name: index_f415dc2abd; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY zoekt_enabled_namespaces - ADD CONSTRAINT zoekt_enabled_namespaces_pkey PRIMARY KEY (id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f415dc2abd; -ALTER TABLE ONLY zoekt_indices - ADD CONSTRAINT zoekt_indices_pkey PRIMARY KEY (id); -ALTER TABLE ONLY zoekt_nodes - ADD CONSTRAINT zoekt_nodes_pkey PRIMARY KEY (id); +-- +-- Name: index_f47327ec1f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY zoekt_replicas - ADD CONSTRAINT zoekt_replicas_pkey PRIMARY KEY (id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_f47327ec1f; -ALTER TABLE ONLY zoekt_repositories - ADD CONSTRAINT zoekt_repositories_pkey PRIMARY KEY (id); -ALTER TABLE ONLY zoekt_shards - ADD CONSTRAINT zoekt_shards_pkey PRIMARY KEY (id); +-- +-- Name: index_f5f0e8eefd; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -ALTER TABLE ONLY zoekt_tasks - ADD CONSTRAINT zoekt_tasks_pkey PRIMARY KEY (id, partition_id); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f5f0e8eefd; -ALTER TABLE ONLY zoom_meetings - ADD CONSTRAINT zoom_meetings_pkey PRIMARY KEY (id); -CREATE INDEX index_issue_stage_events_project_duration ON ONLY analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: index_f6b0d458a3; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_000925dbd7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_f6b0d458a3; -CREATE INDEX index_merge_request_stage_events_project_duration ON ONLY analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_006f943df6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: index_f705dc8541; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_issue_stage_events_for_consistency_check ON ONLY analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f705dc8541; -CREATE INDEX index_009e6c1133 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -CREATE INDEX index_02749b504c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: index_f76e8a5304; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_merge_request_stage_events_group_duration ON ONLY analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f76e8a5304; -CREATE INDEX index_0287f5ba09 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_03aa30a758 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: index_f836021e1e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_issue_stage_events_group_duration ON ONLY analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f836021e1e; -CREATE INDEX index_055179c3ea ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_061fe00461 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: index_f86acdc2ff; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_070cef72c3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f86acdc2ff; -CREATE INDEX index_issue_search_data_on_namespace_id ON ONLY issue_search_data USING btree (namespace_id); -CREATE INDEX index_08b7071d9b ON gitlab_partitions_static.issue_search_data_41 USING btree (namespace_id); +-- +-- Name: index_f86f73056d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_08e3cfc564 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_f86f73056d; -CREATE INDEX index_merge_request_stage_events_group_in_progress_duration ON ONLY analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_09af45dd6f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: index_f878aab8e3; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_09fe0c1886 ON gitlab_partitions_static.issue_search_data_01 USING btree (namespace_id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f878aab8e3; -CREATE INDEX index_0c153e2eae ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_issue_stage_events_group_in_progress_duration ON ONLY analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: index_f902c261ce; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_0ca85f3d71 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f902c261ce; -CREATE INDEX index_issue_stage_events_project_in_progress_duration ON ONLY analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_0d837a5dda ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: index_f91599d825; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_0e98daa03c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_f91599d825; -CREATE INDEX index_0f28a65451 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_10588dbff0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: index_fbccc855cf; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_106d7d97e8 ON gitlab_partitions_static.issue_search_data_27 USING btree (namespace_id); +ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_fbccc855cf; -CREATE INDEX index_1076a9a98a ON gitlab_partitions_static.issue_search_data_10 USING btree (namespace_id); -CREATE INDEX index_107e123e17 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: index_fbf2d3310b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_1230a7a402 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_fbf2d3310b; -CREATE INDEX index_142c4e7ea4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_merge_request_stage_events_project_in_progress_duration ON ONLY analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: index_fccbe45c32; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_14e4fa1d7d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_fccbe45c32; -CREATE INDEX index_14f3645821 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_16627b455e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: index_fee429223e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_17fa2812c5 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_fee429223e; -CREATE INDEX index_19aa18ccc9 ON gitlab_partitions_static.issue_search_data_45 USING btree (namespace_id); -CREATE INDEX index_19f4ed8614 ON gitlab_partitions_static.issue_search_data_33 USING btree (namespace_id); +-- +-- Name: index_ff00c038cc; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_1a0388713a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_ff00c038cc; -CREATE INDEX index_1a349ed064 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_1af932a3c7 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: index_ff39be5400; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_1b0ea30bdb ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_ff39be5400; -CREATE INDEX index_1b47bbbb6a ON gitlab_partitions_static.issue_search_data_52 USING btree (namespace_id); -CREATE INDEX index_1f6c3faabe ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: index_ff8741d8d7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_1f8af04ed1 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_ff8741d8d7; -CREATE INDEX index_201c5ddbe9 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_20353089e0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_00_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_mr_stage_events_for_consistency_check ON ONLY analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_00_issue_id_idx; -CREATE INDEX index_203dd694bc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -CREATE INDEX index_206349925b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_00_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_208e7ef042 ON gitlab_partitions_static.issue_search_data_48 USING btree (namespace_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_00_pkey; -CREATE INDEX index_2098118748 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -CREATE INDEX index_20c6491c6e ON gitlab_partitions_static.issue_search_data_29 USING btree (namespace_id); +-- +-- Name: issue_search_data_00_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_21db459e34 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_00_search_vector_idx; -CREATE INDEX index_21e262390a ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_2208bd7d7f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_01_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_223592b4a1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_01_issue_id_idx; -CREATE INDEX index_22acc9ab11 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_22ed8f01dd ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_01_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_234d38a657 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_01_pkey; -CREATE INDEX index_23783dc748 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_241e9a574c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_01_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_24ac321751 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_01_search_vector_idx; -CREATE INDEX index_25e2aaee9b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_2653e7eeb8 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_02_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_2745f5a388 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_02_issue_id_idx; -CREATE INDEX index_27759556bc ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_27d7ad78d8 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_02_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_281840d2d1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_02_pkey; -CREATE INDEX index_2945cf4c6d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -CREATE INDEX index_296f64df5c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_02_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_2ad4b4fdbc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_02_search_vector_idx; -CREATE INDEX index_2b7c0a294e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_2bac9d64a0 ON gitlab_partitions_static.issue_search_data_38 USING btree (namespace_id); +-- +-- Name: issue_search_data_03_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_2c6422f668 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_03_issue_id_idx; -CREATE INDEX index_2dfcdbe81e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_2e1054b181 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_03_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_2e6991d05b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_03_pkey; -CREATE INDEX index_2f80c360c3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_2fc271c673 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_03_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_2fcfd0dc70 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_03_search_vector_idx; -CREATE INDEX index_3005c75335 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_3206c1e6af ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_04_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_3249505125 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_04_issue_id_idx; -CREATE INDEX index_331eb67441 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_34a8b08081 ON gitlab_partitions_static.issue_search_data_40 USING btree (namespace_id); +-- +-- Name: issue_search_data_04_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_3640194b77 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_04_pkey; -CREATE INDEX index_372160a706 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_389dd3c9fc ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +-- +-- Name: issue_search_data_04_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_38a538234e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_04_search_vector_idx; -CREATE INDEX index_39625b8a41 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_399dc06649 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_05_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_3a10b315c0 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_05_issue_id_idx; -CREATE INDEX index_3a7d21a6ee ON gitlab_partitions_static.issue_search_data_19 USING btree (namespace_id); -CREATE INDEX index_3a8848c00b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +-- +-- Name: issue_search_data_05_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_3b09ab5902 ON gitlab_partitions_static.issue_search_data_12 USING btree (namespace_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_05_pkey; -CREATE INDEX index_3bc2eedca5 ON gitlab_partitions_static.issue_search_data_59 USING btree (namespace_id); -CREATE INDEX index_3c2a3a6ac9 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_05_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_3dbde77b8b ON gitlab_partitions_static.issue_search_data_58 USING btree (namespace_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_05_search_vector_idx; -CREATE INDEX index_3e6be332b7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_4137a6fac3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +-- +-- Name: issue_search_data_06_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_41a1c3a4c6 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_06_issue_id_idx; -CREATE INDEX index_435802dd01 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_436fa9ad5f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_06_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_453a659cb6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_06_pkey; -CREATE INDEX index_46b989b294 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_4717e7049b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +-- +-- Name: issue_search_data_06_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_47638677a3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_06_search_vector_idx; -CREATE INDEX index_4810ac88f5 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_482a09e0ee ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +-- +-- Name: issue_search_data_07_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_491b4b749e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_07_issue_id_idx; -CREATE INDEX index_4a243772d7 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_4b1793a4c4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_07_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_4b22560035 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_07_pkey; -CREATE INDEX index_4c2645eef2 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_4c9d14f978 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_07_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_4d04210a95 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_07_search_vector_idx; -CREATE INDEX index_4d4f2f7de6 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_4db5aa5872 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_08_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_4dead6f314 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_08_issue_id_idx; -CREATE INDEX index_4e6ce1c371 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_4ea50d3a5b ON gitlab_partitions_static.issue_search_data_24 USING btree (namespace_id); +-- +-- Name: issue_search_data_08_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_4f2eb7a06b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_08_pkey; -CREATE INDEX index_4f6fc34e57 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_50272372ba ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +-- +-- Name: issue_search_data_08_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_5034eae5ff ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_08_search_vector_idx; -CREATE INDEX index_50c09f6e04 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_5111e3e7e7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_09_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_52ea79bf8e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_09_issue_id_idx; -CREATE INDEX index_541cc045fc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_5445e466ee ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +-- +-- Name: issue_search_data_09_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_551676e972 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_09_pkey; -CREATE INDEX index_56281bfb73 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_5660b1b38e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_09_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_584c1e6fb0 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_09_search_vector_idx; -CREATE INDEX index_5913107510 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -CREATE INDEX index_5968e77935 ON gitlab_partitions_static.issue_search_data_46 USING btree (namespace_id); +-- +-- Name: issue_search_data_10_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_59a8209ab6 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_10_issue_id_idx; -CREATE INDEX index_59ce40fcc4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_59cfd5bc9a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +-- +-- Name: issue_search_data_10_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_5a5f39d824 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_10_pkey; -CREATE INDEX index_5b613b5fcf ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_5b944f308d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_10_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_5bc2f32084 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_10_search_vector_idx; -CREATE INDEX index_5bfa62771b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -CREATE INDEX index_5c4053b63d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_11_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_5db09170d4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_11_issue_id_idx; -CREATE INDEX index_5e46aea379 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -CREATE INDEX index_5e78c2eac1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +-- +-- Name: issue_search_data_11_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_5ee060202f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_11_pkey; -CREATE INDEX index_5f24f6ead2 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_5f96b344e2 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_11_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_5fb1867c41 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_11_search_vector_idx; -CREATE INDEX index_5fe1d00845 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_60e3480f23 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_12_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_6137e27484 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_12_issue_id_idx; -CREATE INDEX index_620fe77c99 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_625ed9e965 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_12_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_64e3a1dfa1 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_12_pkey; -CREATE INDEX index_64eb4cf8bd ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_6578d04baa ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +-- +-- Name: issue_search_data_12_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_6580ecb2db ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_12_search_vector_idx; -CREATE INDEX index_66a736da09 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -CREATE INDEX index_680d7ab4a6 ON gitlab_partitions_static.issue_search_data_06 USING btree (namespace_id); +-- +-- Name: issue_search_data_13_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_682eba05f6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_13_issue_id_idx; -CREATE INDEX index_69bdcf213e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_6a39f6d5ac ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_13_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_6add8e74cf ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_13_pkey; -CREATE INDEX index_6b1ce61c8f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_6b431c9952 ON gitlab_partitions_static.issue_search_data_23 USING btree (namespace_id); +-- +-- Name: issue_search_data_13_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_6bf2b9282c ON gitlab_partitions_static.issue_search_data_22 USING btree (namespace_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_13_search_vector_idx; -CREATE INDEX index_6cfb391b86 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_6e560c1a4d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +-- +-- Name: issue_search_data_14_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_6e64aa1646 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_14_issue_id_idx; -CREATE INDEX index_6e6c2e6a1d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_6ea423bbd1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_14_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_6ec4c4afd4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_14_pkey; -CREATE INDEX index_6f4e0abe54 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_6fa47e1334 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_14_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_708d792ae9 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_14_search_vector_idx; -CREATE INDEX index_70c657954b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_713f462d76 ON gitlab_partitions_static.issue_search_data_57 USING btree (namespace_id); +-- +-- Name: issue_search_data_15_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_71c0e45eca ON gitlab_partitions_static.issue_search_data_39 USING btree (namespace_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_15_issue_id_idx; -CREATE INDEX index_71c2b26944 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_72027c157f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_15_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_739845f617 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_15_pkey; -CREATE INDEX index_74addd1240 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_75dc81d1d7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_15_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_765b0cd8db ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_15_search_vector_idx; -CREATE INDEX index_77096a1dc6 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_77c6293242 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_16_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_77f67bf238 ON gitlab_partitions_static.issue_search_data_02 USING btree (namespace_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_16_issue_id_idx; -CREATE INDEX index_7822759674 ON gitlab_partitions_static.issue_search_data_56 USING btree (namespace_id); -CREATE INDEX index_7a0b7ffadf ON gitlab_partitions_static.issue_search_data_07 USING btree (namespace_id); +-- +-- Name: issue_search_data_16_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_7b7c85eceb ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_16_pkey; -CREATE INDEX index_7da2307d2e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_7ead2300ca ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_16_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_7ecb5b68b4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_16_search_vector_idx; -CREATE INDEX index_7f543eed8d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -CREATE INDEX index_7f8a80dd47 ON gitlab_partitions_static.issue_search_data_49 USING btree (namespace_id); +-- +-- Name: issue_search_data_17_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_80305b1eed ON gitlab_partitions_static.issue_search_data_42 USING btree (namespace_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_17_issue_id_idx; -CREATE INDEX index_807671c4be ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_807fa83fc0 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_17_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_80a81ac235 ON gitlab_partitions_static.issue_search_data_53 USING btree (namespace_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_17_pkey; -CREATE INDEX index_80c65daf20 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_81b31eafac ON gitlab_partitions_static.issue_search_data_63 USING btree (namespace_id); +-- +-- Name: issue_search_data_17_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_81b9cf594f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_17_search_vector_idx; -CREATE INDEX index_82c675952c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_831e7f124f ON gitlab_partitions_static.issue_search_data_43 USING btree (namespace_id); +-- +-- Name: issue_search_data_18_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_837a193bf2 ON gitlab_partitions_static.issue_search_data_55 USING btree (namespace_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_18_issue_id_idx; -CREATE INDEX index_837cc295f1 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -CREATE INDEX index_83c5049b3e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_18_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_83edf231b8 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_18_pkey; -CREATE INDEX index_844abd2888 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_8464227c80 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_18_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_8685d7c69c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_18_search_vector_idx; -CREATE INDEX index_8688b40056 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_876145d1d5 ON gitlab_partitions_static.issue_search_data_51 USING btree (namespace_id); +-- +-- Name: issue_search_data_19_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_87d40fb9f9 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_19_issue_id_idx; -CREATE INDEX index_88b40d6740 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_89c49cf697 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +-- +-- Name: issue_search_data_19_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_89c79afe5c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_19_pkey; -CREATE INDEX index_8a0fc3de4f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_8a8eb06b9a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +-- +-- Name: issue_search_data_19_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_8b1b6b03b4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_19_search_vector_idx; -CREATE INDEX index_8b9f9a19a4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_8fb48e72ce ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_20_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_907e12b7ba ON gitlab_partitions_static.issue_search_data_54 USING btree (namespace_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_20_issue_id_idx; -CREATE INDEX index_918bb2ebbb ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -CREATE INDEX index_91c432a4bd ON gitlab_partitions_static.issue_search_data_16 USING btree (namespace_id); +-- +-- Name: issue_search_data_20_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_91d5e4e3df ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_20_pkey; -CREATE INDEX index_9201b952a0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_927796f71d ON gitlab_partitions_static.issue_search_data_50 USING btree (namespace_id); +-- +-- Name: issue_search_data_20_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_92c09e352b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_20_search_vector_idx; -CREATE INDEX index_9490e0e0b7 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_9555c2ae92 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +-- +-- Name: issue_search_data_21_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_95a353f50b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_21_issue_id_idx; -CREATE INDEX index_971af9481e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_994aa245b7 ON gitlab_partitions_static.issue_search_data_61 USING btree (namespace_id); +-- +-- Name: issue_search_data_21_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_9955b1dc59 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_21_pkey; -CREATE INDEX index_9a2eb72a3b ON gitlab_partitions_static.issue_search_data_21 USING btree (namespace_id); -CREATE INDEX index_9b8e89ae41 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_21_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_9d0e953ab3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_21_search_vector_idx; -CREATE INDEX index_9ee83b068b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_a016d4ed08 ON gitlab_partitions_static.issue_search_data_36 USING btree (namespace_id); +-- +-- Name: issue_search_data_22_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_a1a9dc36c1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_22_issue_id_idx; -CREATE INDEX index_a2d9f185a5 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_a3feed3097 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_22_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_a46b7b7f26 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_22_pkey; -CREATE INDEX index_a4f5106804 ON gitlab_partitions_static.issue_search_data_11 USING btree (namespace_id); -CREATE INDEX index_a6999c65c9 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_22_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_a6c68d16b2 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_22_search_vector_idx; -CREATE INDEX index_a8276a450f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_a849f1bbcc ON gitlab_partitions_static.issue_search_data_62 USING btree (namespace_id); +-- +-- Name: issue_search_data_23_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_a88f20fc98 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_23_issue_id_idx; -CREATE INDEX index_a8fe03fe34 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -CREATE INDEX index_a9424aa392 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_23_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_a99cee1904 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_23_pkey; -CREATE INDEX index_a9b1763c36 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -CREATE INDEX index_a9ba23c88e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +-- +-- Name: issue_search_data_23_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_a9deff2159 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_23_search_vector_idx; -CREATE INDEX index_aa92d75d85 ON gitlab_partitions_static.issue_search_data_04 USING btree (namespace_id); -CREATE INDEX index_aabc184267 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_24_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_ab22231a16 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_24_issue_id_idx; -CREATE INDEX index_abbdf80ab1 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_aca42d7cff ON gitlab_partitions_static.issue_search_data_44 USING btree (namespace_id); +-- +-- Name: issue_search_data_24_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_ad55e8b11c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_24_pkey; -CREATE INDEX index_adc159c3fe ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_aed7f7b10c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_24_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_aee84adb5b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_24_search_vector_idx; -CREATE INDEX index_af8368d587 ON gitlab_partitions_static.issue_search_data_31 USING btree (namespace_id); -CREATE INDEX index_b1dda405af ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_25_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_b24e8538c8 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_25_issue_id_idx; -CREATE INDEX index_b286c595e8 ON gitlab_partitions_static.issue_search_data_05 USING btree (namespace_id); -CREATE INDEX index_b377ac6784 ON gitlab_partitions_static.issue_search_data_20 USING btree (namespace_id); +-- +-- Name: issue_search_data_25_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_b3b64068e7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_25_pkey; -CREATE INDEX index_b3c4c9a53f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -CREATE INDEX index_b4b2bba753 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +-- +-- Name: issue_search_data_25_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_b607012614 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_25_search_vector_idx; -CREATE INDEX index_b6cc38a848 ON gitlab_partitions_static.issue_search_data_08 USING btree (namespace_id); -CREATE INDEX index_b748a3e0a6 ON gitlab_partitions_static.issue_search_data_15 USING btree (namespace_id); +-- +-- Name: issue_search_data_26_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_b7f21460bb ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_26_issue_id_idx; -CREATE INDEX index_b83fe1306b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_bb6defaa27 ON gitlab_partitions_static.issue_search_data_34 USING btree (namespace_id); +-- +-- Name: issue_search_data_26_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_bc189e47ab ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_26_pkey; -CREATE INDEX index_bca83177ef ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_bcaa8dcd34 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +-- +-- Name: issue_search_data_26_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_bcae2cf631 ON gitlab_partitions_static.issue_search_data_00 USING btree (namespace_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_26_search_vector_idx; -CREATE INDEX index_be0a028bcc ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -CREATE INDEX index_beaa329ca0 ON gitlab_partitions_static.issue_search_data_47 USING btree (namespace_id); +-- +-- Name: issue_search_data_27_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_bedd7e160b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_27_issue_id_idx; -CREATE INDEX index_bee2b94a80 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_bf1809b19e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +-- +-- Name: issue_search_data_27_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_c02f569fba ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_27_pkey; -CREATE INDEX index_c08e669dfa ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_c09bb66559 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_27_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_c119f5b92e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_27_search_vector_idx; -CREATE INDEX index_c17dae3605 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_c1cdd90d0d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_28_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_c2b951bf20 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_28_issue_id_idx; -CREATE INDEX index_c3a2cf8b3b ON gitlab_partitions_static.issue_search_data_32 USING btree (namespace_id); -CREATE INDEX index_c42b2e7eae ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_28_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_c435d904ce ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_28_pkey; -CREATE INDEX index_c473921734 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_c546bb0736 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_28_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_c59cde6209 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_28_search_vector_idx; -CREATE INDEX index_c66758baa7 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_c6ea8a0e26 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_29_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_c7ac8595d3 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_29_issue_id_idx; -CREATE INDEX index_c8bbf2b334 ON gitlab_partitions_static.issue_search_data_26 USING btree (namespace_id); -CREATE INDEX index_c8c4219c0a ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_29_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_c971e6c5ce ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_29_pkey; -CREATE INDEX index_c9b14a3d9f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_cb222425ed ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +-- +-- Name: issue_search_data_29_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_cbb61ea269 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_29_search_vector_idx; -CREATE INDEX index_cc0ba6343b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_ccb4f5c5a6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +-- +-- Name: issue_search_data_30_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_cd2b2939a4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_30_issue_id_idx; -CREATE INDEX index_cda41e106e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_ce87cbaf2d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +-- +-- Name: issue_search_data_30_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_cfa4237c83 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_30_pkey; -CREATE INDEX index_d01ea0126a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_d03e9cdfae ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +-- +-- Name: issue_search_data_30_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_d0d285c264 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_30_search_vector_idx; -CREATE INDEX index_d17b82ddd9 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -CREATE INDEX index_d1c24d8199 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +-- +-- Name: issue_search_data_31_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_d1c6c67ec1 ON gitlab_partitions_static.issue_search_data_60 USING btree (namespace_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_31_issue_id_idx; -CREATE INDEX index_d27b4c84e7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_d2fe918e83 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_31_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_d35c969634 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_31_pkey; -CREATE INDEX index_d3b6418940 ON gitlab_partitions_static.issue_search_data_17 USING btree (namespace_id); -CREATE INDEX index_d493a5c171 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +-- +-- Name: issue_search_data_31_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_d6047ee813 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_31_search_vector_idx; -CREATE INDEX index_d69c2485f4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_d70379e22c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +-- +-- Name: issue_search_data_32_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_d87775b2e7 ON gitlab_partitions_static.issue_search_data_35 USING btree (namespace_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_32_issue_id_idx; -CREATE INDEX index_d8fa9793ad ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_d9384b768d ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_32_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_db2753330c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_32_pkey; -CREATE INDEX index_db6477916f ON gitlab_partitions_static.issue_search_data_28 USING btree (namespace_id); -CREATE INDEX index_dc571ba649 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_32_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_de0334da63 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_32_search_vector_idx; -CREATE INDEX index_df62a8c50e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_e1a4f994d8 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_33_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_e38489ea98 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_33_issue_id_idx; -CREATE INDEX index_e3d1fd5b19 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_e3d6234929 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_33_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_e54adf9acb ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_33_pkey; -CREATE INDEX index_e6405afea0 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_e64588e276 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_33_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_e716b8ac3f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_33_search_vector_idx; -CREATE INDEX index_e73bc5ba6a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_e8f3a327b2 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_34_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_ea0c2d3361 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_34_issue_id_idx; -CREATE INDEX index_ea1b583157 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -CREATE INDEX index_eadcc94c4e ON gitlab_partitions_static.issue_search_data_03 USING btree (namespace_id); +-- +-- Name: issue_search_data_34_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_eb558957f0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_34_pkey; -CREATE INDEX index_eb5a7f918a ON gitlab_partitions_static.issue_search_data_09 USING btree (namespace_id); -CREATE INDEX index_ec25d494e6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_34_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_ece25b5987 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_34_search_vector_idx; -CREATE INDEX index_ed094a4f13 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_ed6dbac8c0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +-- +-- Name: issue_search_data_35_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_ee4c549a2d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_35_issue_id_idx; -CREATE INDEX index_ef6a48bd29 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_ef7be2ae94 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_35_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_efa25b26bd ON gitlab_partitions_static.issue_search_data_25 USING btree (namespace_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_35_pkey; -CREATE INDEX index_f06b4c7a23 ON gitlab_partitions_static.issue_search_data_30 USING btree (namespace_id); -CREATE INDEX index_f0cdd09a5e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_35_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_f112fae8ac ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_35_search_vector_idx; -CREATE INDEX index_f1c3d14cdc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_f256d3f6a1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_36_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_f2848acfc7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_36_issue_id_idx; -CREATE INDEX index_f3d7d86e09 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_f402f6a388 ON gitlab_partitions_static.issue_search_data_14 USING btree (namespace_id); +-- +-- Name: issue_search_data_36_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_f415dc2abd ON gitlab_partitions_static.issue_search_data_18 USING btree (namespace_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_36_pkey; -CREATE INDEX index_f47327ec1f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -CREATE INDEX index_f5f0e8eefd ON gitlab_partitions_static.issue_search_data_37 USING btree (namespace_id); +-- +-- Name: issue_search_data_36_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_f6b0d458a3 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_36_search_vector_idx; -CREATE INDEX index_f705dc8541 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_f76e8a5304 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_37_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_f836021e1e ON gitlab_partitions_static.issue_search_data_13 USING btree (namespace_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_37_issue_id_idx; -CREATE INDEX index_f86acdc2ff ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_f86f73056d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +-- +-- Name: issue_search_data_37_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_f878aab8e3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_37_pkey; -CREATE INDEX index_f902c261ce ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_f91599d825 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +-- +-- Name: issue_search_data_37_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_fbccc855cf ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_37_search_vector_idx; -CREATE INDEX index_fbf2d3310b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_fccbe45c32 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +-- +-- Name: issue_search_data_38_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_fee429223e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_38_issue_id_idx; -CREATE INDEX index_ff00c038cc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -CREATE INDEX index_ff39be5400 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +-- +-- Name: issue_search_data_38_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_ff8741d8d7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_38_pkey; -CREATE INDEX index_issue_search_data_on_issue_id ON ONLY issue_search_data USING btree (issue_id); -CREATE INDEX issue_search_data_00_issue_id_idx ON gitlab_partitions_static.issue_search_data_00 USING btree (issue_id); +-- +-- Name: issue_search_data_38_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_issue_search_data_on_search_vector ON ONLY issue_search_data USING gin (search_vector); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_38_search_vector_idx; -CREATE INDEX issue_search_data_00_search_vector_idx ON gitlab_partitions_static.issue_search_data_00 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_01_issue_id_idx ON gitlab_partitions_static.issue_search_data_01 USING btree (issue_id); +-- +-- Name: issue_search_data_39_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_01_search_vector_idx ON gitlab_partitions_static.issue_search_data_01 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_39_issue_id_idx; -CREATE INDEX issue_search_data_02_issue_id_idx ON gitlab_partitions_static.issue_search_data_02 USING btree (issue_id); -CREATE INDEX issue_search_data_02_search_vector_idx ON gitlab_partitions_static.issue_search_data_02 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_39_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_03_issue_id_idx ON gitlab_partitions_static.issue_search_data_03 USING btree (issue_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_39_pkey; -CREATE INDEX issue_search_data_03_search_vector_idx ON gitlab_partitions_static.issue_search_data_03 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_04_issue_id_idx ON gitlab_partitions_static.issue_search_data_04 USING btree (issue_id); +-- +-- Name: issue_search_data_39_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_04_search_vector_idx ON gitlab_partitions_static.issue_search_data_04 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_39_search_vector_idx; -CREATE INDEX issue_search_data_05_issue_id_idx ON gitlab_partitions_static.issue_search_data_05 USING btree (issue_id); -CREATE INDEX issue_search_data_05_search_vector_idx ON gitlab_partitions_static.issue_search_data_05 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_40_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_06_issue_id_idx ON gitlab_partitions_static.issue_search_data_06 USING btree (issue_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_40_issue_id_idx; -CREATE INDEX issue_search_data_06_search_vector_idx ON gitlab_partitions_static.issue_search_data_06 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_07_issue_id_idx ON gitlab_partitions_static.issue_search_data_07 USING btree (issue_id); +-- +-- Name: issue_search_data_40_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_07_search_vector_idx ON gitlab_partitions_static.issue_search_data_07 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_40_pkey; -CREATE INDEX issue_search_data_08_issue_id_idx ON gitlab_partitions_static.issue_search_data_08 USING btree (issue_id); -CREATE INDEX issue_search_data_08_search_vector_idx ON gitlab_partitions_static.issue_search_data_08 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_40_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_09_issue_id_idx ON gitlab_partitions_static.issue_search_data_09 USING btree (issue_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_40_search_vector_idx; -CREATE INDEX issue_search_data_09_search_vector_idx ON gitlab_partitions_static.issue_search_data_09 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_10_issue_id_idx ON gitlab_partitions_static.issue_search_data_10 USING btree (issue_id); +-- +-- Name: issue_search_data_41_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_10_search_vector_idx ON gitlab_partitions_static.issue_search_data_10 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_41_issue_id_idx; -CREATE INDEX issue_search_data_11_issue_id_idx ON gitlab_partitions_static.issue_search_data_11 USING btree (issue_id); -CREATE INDEX issue_search_data_11_search_vector_idx ON gitlab_partitions_static.issue_search_data_11 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_41_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_12_issue_id_idx ON gitlab_partitions_static.issue_search_data_12 USING btree (issue_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_41_pkey; -CREATE INDEX issue_search_data_12_search_vector_idx ON gitlab_partitions_static.issue_search_data_12 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_13_issue_id_idx ON gitlab_partitions_static.issue_search_data_13 USING btree (issue_id); +-- +-- Name: issue_search_data_41_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_13_search_vector_idx ON gitlab_partitions_static.issue_search_data_13 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_41_search_vector_idx; -CREATE INDEX issue_search_data_14_issue_id_idx ON gitlab_partitions_static.issue_search_data_14 USING btree (issue_id); -CREATE INDEX issue_search_data_14_search_vector_idx ON gitlab_partitions_static.issue_search_data_14 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_42_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_15_issue_id_idx ON gitlab_partitions_static.issue_search_data_15 USING btree (issue_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_42_issue_id_idx; -CREATE INDEX issue_search_data_15_search_vector_idx ON gitlab_partitions_static.issue_search_data_15 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_16_issue_id_idx ON gitlab_partitions_static.issue_search_data_16 USING btree (issue_id); +-- +-- Name: issue_search_data_42_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_16_search_vector_idx ON gitlab_partitions_static.issue_search_data_16 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_42_pkey; -CREATE INDEX issue_search_data_17_issue_id_idx ON gitlab_partitions_static.issue_search_data_17 USING btree (issue_id); -CREATE INDEX issue_search_data_17_search_vector_idx ON gitlab_partitions_static.issue_search_data_17 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_42_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_18_issue_id_idx ON gitlab_partitions_static.issue_search_data_18 USING btree (issue_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_42_search_vector_idx; -CREATE INDEX issue_search_data_18_search_vector_idx ON gitlab_partitions_static.issue_search_data_18 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_19_issue_id_idx ON gitlab_partitions_static.issue_search_data_19 USING btree (issue_id); +-- +-- Name: issue_search_data_43_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_19_search_vector_idx ON gitlab_partitions_static.issue_search_data_19 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_43_issue_id_idx; -CREATE INDEX issue_search_data_20_issue_id_idx ON gitlab_partitions_static.issue_search_data_20 USING btree (issue_id); -CREATE INDEX issue_search_data_20_search_vector_idx ON gitlab_partitions_static.issue_search_data_20 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_43_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_21_issue_id_idx ON gitlab_partitions_static.issue_search_data_21 USING btree (issue_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_43_pkey; -CREATE INDEX issue_search_data_21_search_vector_idx ON gitlab_partitions_static.issue_search_data_21 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_22_issue_id_idx ON gitlab_partitions_static.issue_search_data_22 USING btree (issue_id); +-- +-- Name: issue_search_data_43_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_22_search_vector_idx ON gitlab_partitions_static.issue_search_data_22 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_43_search_vector_idx; -CREATE INDEX issue_search_data_23_issue_id_idx ON gitlab_partitions_static.issue_search_data_23 USING btree (issue_id); -CREATE INDEX issue_search_data_23_search_vector_idx ON gitlab_partitions_static.issue_search_data_23 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_44_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_24_issue_id_idx ON gitlab_partitions_static.issue_search_data_24 USING btree (issue_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_44_issue_id_idx; -CREATE INDEX issue_search_data_24_search_vector_idx ON gitlab_partitions_static.issue_search_data_24 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_25_issue_id_idx ON gitlab_partitions_static.issue_search_data_25 USING btree (issue_id); +-- +-- Name: issue_search_data_44_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_25_search_vector_idx ON gitlab_partitions_static.issue_search_data_25 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_44_pkey; -CREATE INDEX issue_search_data_26_issue_id_idx ON gitlab_partitions_static.issue_search_data_26 USING btree (issue_id); -CREATE INDEX issue_search_data_26_search_vector_idx ON gitlab_partitions_static.issue_search_data_26 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_44_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_27_issue_id_idx ON gitlab_partitions_static.issue_search_data_27 USING btree (issue_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_44_search_vector_idx; -CREATE INDEX issue_search_data_27_search_vector_idx ON gitlab_partitions_static.issue_search_data_27 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_28_issue_id_idx ON gitlab_partitions_static.issue_search_data_28 USING btree (issue_id); +-- +-- Name: issue_search_data_45_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_28_search_vector_idx ON gitlab_partitions_static.issue_search_data_28 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_45_issue_id_idx; -CREATE INDEX issue_search_data_29_issue_id_idx ON gitlab_partitions_static.issue_search_data_29 USING btree (issue_id); -CREATE INDEX issue_search_data_29_search_vector_idx ON gitlab_partitions_static.issue_search_data_29 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_45_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_30_issue_id_idx ON gitlab_partitions_static.issue_search_data_30 USING btree (issue_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_45_pkey; -CREATE INDEX issue_search_data_30_search_vector_idx ON gitlab_partitions_static.issue_search_data_30 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_31_issue_id_idx ON gitlab_partitions_static.issue_search_data_31 USING btree (issue_id); +-- +-- Name: issue_search_data_45_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_31_search_vector_idx ON gitlab_partitions_static.issue_search_data_31 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_45_search_vector_idx; -CREATE INDEX issue_search_data_32_issue_id_idx ON gitlab_partitions_static.issue_search_data_32 USING btree (issue_id); -CREATE INDEX issue_search_data_32_search_vector_idx ON gitlab_partitions_static.issue_search_data_32 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_46_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_33_issue_id_idx ON gitlab_partitions_static.issue_search_data_33 USING btree (issue_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_46_issue_id_idx; -CREATE INDEX issue_search_data_33_search_vector_idx ON gitlab_partitions_static.issue_search_data_33 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_34_issue_id_idx ON gitlab_partitions_static.issue_search_data_34 USING btree (issue_id); +-- +-- Name: issue_search_data_46_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_34_search_vector_idx ON gitlab_partitions_static.issue_search_data_34 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_46_pkey; -CREATE INDEX issue_search_data_35_issue_id_idx ON gitlab_partitions_static.issue_search_data_35 USING btree (issue_id); -CREATE INDEX issue_search_data_35_search_vector_idx ON gitlab_partitions_static.issue_search_data_35 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_46_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_36_issue_id_idx ON gitlab_partitions_static.issue_search_data_36 USING btree (issue_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_46_search_vector_idx; -CREATE INDEX issue_search_data_36_search_vector_idx ON gitlab_partitions_static.issue_search_data_36 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_37_issue_id_idx ON gitlab_partitions_static.issue_search_data_37 USING btree (issue_id); +-- +-- Name: issue_search_data_47_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_37_search_vector_idx ON gitlab_partitions_static.issue_search_data_37 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_47_issue_id_idx; -CREATE INDEX issue_search_data_38_issue_id_idx ON gitlab_partitions_static.issue_search_data_38 USING btree (issue_id); -CREATE INDEX issue_search_data_38_search_vector_idx ON gitlab_partitions_static.issue_search_data_38 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_47_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_39_issue_id_idx ON gitlab_partitions_static.issue_search_data_39 USING btree (issue_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_47_pkey; -CREATE INDEX issue_search_data_39_search_vector_idx ON gitlab_partitions_static.issue_search_data_39 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_40_issue_id_idx ON gitlab_partitions_static.issue_search_data_40 USING btree (issue_id); +-- +-- Name: issue_search_data_47_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_40_search_vector_idx ON gitlab_partitions_static.issue_search_data_40 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_47_search_vector_idx; -CREATE INDEX issue_search_data_41_issue_id_idx ON gitlab_partitions_static.issue_search_data_41 USING btree (issue_id); -CREATE INDEX issue_search_data_41_search_vector_idx ON gitlab_partitions_static.issue_search_data_41 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_48_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_42_issue_id_idx ON gitlab_partitions_static.issue_search_data_42 USING btree (issue_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_48_issue_id_idx; -CREATE INDEX issue_search_data_42_search_vector_idx ON gitlab_partitions_static.issue_search_data_42 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_43_issue_id_idx ON gitlab_partitions_static.issue_search_data_43 USING btree (issue_id); +-- +-- Name: issue_search_data_48_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_43_search_vector_idx ON gitlab_partitions_static.issue_search_data_43 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_48_pkey; -CREATE INDEX issue_search_data_44_issue_id_idx ON gitlab_partitions_static.issue_search_data_44 USING btree (issue_id); -CREATE INDEX issue_search_data_44_search_vector_idx ON gitlab_partitions_static.issue_search_data_44 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_48_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_45_issue_id_idx ON gitlab_partitions_static.issue_search_data_45 USING btree (issue_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_48_search_vector_idx; -CREATE INDEX issue_search_data_45_search_vector_idx ON gitlab_partitions_static.issue_search_data_45 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_46_issue_id_idx ON gitlab_partitions_static.issue_search_data_46 USING btree (issue_id); +-- +-- Name: issue_search_data_49_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_46_search_vector_idx ON gitlab_partitions_static.issue_search_data_46 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_49_issue_id_idx; -CREATE INDEX issue_search_data_47_issue_id_idx ON gitlab_partitions_static.issue_search_data_47 USING btree (issue_id); -CREATE INDEX issue_search_data_47_search_vector_idx ON gitlab_partitions_static.issue_search_data_47 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_49_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_48_issue_id_idx ON gitlab_partitions_static.issue_search_data_48 USING btree (issue_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_49_pkey; -CREATE INDEX issue_search_data_48_search_vector_idx ON gitlab_partitions_static.issue_search_data_48 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_49_issue_id_idx ON gitlab_partitions_static.issue_search_data_49 USING btree (issue_id); +-- +-- Name: issue_search_data_49_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_49_search_vector_idx ON gitlab_partitions_static.issue_search_data_49 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_49_search_vector_idx; -CREATE INDEX issue_search_data_50_issue_id_idx ON gitlab_partitions_static.issue_search_data_50 USING btree (issue_id); -CREATE INDEX issue_search_data_50_search_vector_idx ON gitlab_partitions_static.issue_search_data_50 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_50_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_51_issue_id_idx ON gitlab_partitions_static.issue_search_data_51 USING btree (issue_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_50_issue_id_idx; -CREATE INDEX issue_search_data_51_search_vector_idx ON gitlab_partitions_static.issue_search_data_51 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_52_issue_id_idx ON gitlab_partitions_static.issue_search_data_52 USING btree (issue_id); +-- +-- Name: issue_search_data_50_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_52_search_vector_idx ON gitlab_partitions_static.issue_search_data_52 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_50_pkey; -CREATE INDEX issue_search_data_53_issue_id_idx ON gitlab_partitions_static.issue_search_data_53 USING btree (issue_id); -CREATE INDEX issue_search_data_53_search_vector_idx ON gitlab_partitions_static.issue_search_data_53 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_50_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_54_issue_id_idx ON gitlab_partitions_static.issue_search_data_54 USING btree (issue_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_50_search_vector_idx; -CREATE INDEX issue_search_data_54_search_vector_idx ON gitlab_partitions_static.issue_search_data_54 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_55_issue_id_idx ON gitlab_partitions_static.issue_search_data_55 USING btree (issue_id); +-- +-- Name: issue_search_data_51_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_55_search_vector_idx ON gitlab_partitions_static.issue_search_data_55 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_51_issue_id_idx; -CREATE INDEX issue_search_data_56_issue_id_idx ON gitlab_partitions_static.issue_search_data_56 USING btree (issue_id); -CREATE INDEX issue_search_data_56_search_vector_idx ON gitlab_partitions_static.issue_search_data_56 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_51_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_57_issue_id_idx ON gitlab_partitions_static.issue_search_data_57 USING btree (issue_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_51_pkey; -CREATE INDEX issue_search_data_57_search_vector_idx ON gitlab_partitions_static.issue_search_data_57 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_58_issue_id_idx ON gitlab_partitions_static.issue_search_data_58 USING btree (issue_id); +-- +-- Name: issue_search_data_51_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_58_search_vector_idx ON gitlab_partitions_static.issue_search_data_58 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_51_search_vector_idx; -CREATE INDEX issue_search_data_59_issue_id_idx ON gitlab_partitions_static.issue_search_data_59 USING btree (issue_id); -CREATE INDEX issue_search_data_59_search_vector_idx ON gitlab_partitions_static.issue_search_data_59 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_52_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_60_issue_id_idx ON gitlab_partitions_static.issue_search_data_60 USING btree (issue_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_52_issue_id_idx; -CREATE INDEX issue_search_data_60_search_vector_idx ON gitlab_partitions_static.issue_search_data_60 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX issue_search_data_61_issue_id_idx ON gitlab_partitions_static.issue_search_data_61 USING btree (issue_id); +-- +-- Name: issue_search_data_52_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_61_search_vector_idx ON gitlab_partitions_static.issue_search_data_61 USING gin (search_vector) WITH (fastupdate='false'); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_52_pkey; -CREATE INDEX issue_search_data_62_issue_id_idx ON gitlab_partitions_static.issue_search_data_62 USING btree (issue_id); -CREATE INDEX issue_search_data_62_search_vector_idx ON gitlab_partitions_static.issue_search_data_62 USING gin (search_vector) WITH (fastupdate='false'); +-- +-- Name: issue_search_data_52_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX issue_search_data_63_issue_id_idx ON gitlab_partitions_static.issue_search_data_63 USING btree (issue_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_52_search_vector_idx; -CREATE INDEX issue_search_data_63_search_vector_idx ON gitlab_partitions_static.issue_search_data_63 USING gin (search_vector) WITH (fastupdate='false'); -CREATE INDEX index_on_namespace_descendants_outdated ON ONLY namespace_descendants USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +-- +-- Name: issue_search_data_53_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX namespace_descendants_00_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_00 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_53_issue_id_idx; -CREATE INDEX namespace_descendants_01_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_01 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -CREATE INDEX namespace_descendants_02_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_02 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +-- +-- Name: issue_search_data_53_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX namespace_descendants_03_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_03 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_53_pkey; -CREATE INDEX namespace_descendants_04_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_04 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -CREATE INDEX namespace_descendants_05_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_05 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +-- +-- Name: issue_search_data_53_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX namespace_descendants_06_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_06 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_53_search_vector_idx; -CREATE INDEX namespace_descendants_07_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_07 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -CREATE INDEX namespace_descendants_08_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_08 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +-- +-- Name: issue_search_data_54_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX namespace_descendants_09_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_09 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_54_issue_id_idx; -CREATE INDEX namespace_descendants_10_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_10 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -CREATE INDEX namespace_descendants_11_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_11 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +-- +-- Name: issue_search_data_54_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX namespace_descendants_12_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_12 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_54_pkey; -CREATE INDEX namespace_descendants_13_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_13 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -CREATE INDEX namespace_descendants_14_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_14 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +-- +-- Name: issue_search_data_54_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX namespace_descendants_15_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_15 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_54_search_vector_idx; -CREATE INDEX namespace_descendants_16_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_16 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -CREATE INDEX namespace_descendants_17_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_17 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +-- +-- Name: issue_search_data_55_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX namespace_descendants_18_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_18 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_55_issue_id_idx; -CREATE INDEX namespace_descendants_19_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_19 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -CREATE INDEX namespace_descendants_20_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_20 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +-- +-- Name: issue_search_data_55_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX namespace_descendants_21_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_21 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_55_pkey; -CREATE INDEX namespace_descendants_22_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_22 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -CREATE INDEX namespace_descendants_23_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_23 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +-- +-- Name: issue_search_data_55_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX namespace_descendants_24_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_24 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_55_search_vector_idx; -CREATE INDEX namespace_descendants_25_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_25 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -CREATE INDEX namespace_descendants_26_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_26 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +-- +-- Name: issue_search_data_56_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX namespace_descendants_27_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_27 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_56_issue_id_idx; -CREATE INDEX namespace_descendants_28_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_28 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -CREATE INDEX namespace_descendants_29_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_29 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +-- +-- Name: issue_search_data_56_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX namespace_descendants_30_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_30 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_56_pkey; -CREATE INDEX namespace_descendants_31_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_31 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -CREATE INDEX analytics_index_audit_events_part_on_created_at_and_author_id ON ONLY audit_events USING btree (created_at, author_id); +-- +-- Name: issue_search_data_56_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX analytics_index_events_on_created_at_and_author_id ON events USING btree (created_at, author_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_56_search_vector_idx; -CREATE INDEX analytics_repository_languages_on_project_id ON analytics_language_trend_repository_languages USING btree (project_id); -CREATE UNIQUE INDEX any_approver_project_rule_type_unique_index ON approval_project_rules USING btree (project_id) WHERE (rule_type = 3); +-- +-- Name: issue_search_data_57_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX approval_mr_rule_index_merge_request_id ON approval_merge_request_rules USING btree (merge_request_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_57_issue_id_idx; -CREATE INDEX bulk_import_export_uploads_batch_id ON bulk_import_export_uploads USING btree (batch_id); -CREATE UNIQUE INDEX bulk_import_trackers_uniq_relation_by_entity ON bulk_import_trackers USING btree (bulk_import_entity_id, relation); +-- +-- Name: issue_search_data_57_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX ca_aggregations_last_consistency_check_updated_at ON analytics_cycle_analytics_aggregations USING btree (last_consistency_check_updated_at NULLS FIRST) WHERE (enabled IS TRUE); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_57_pkey; -CREATE INDEX ca_aggregations_last_full_run_at ON analytics_cycle_analytics_aggregations USING btree (last_full_run_at NULLS FIRST) WHERE (enabled IS TRUE); -CREATE INDEX ca_aggregations_last_incremental_run_at ON analytics_cycle_analytics_aggregations USING btree (last_incremental_run_at NULLS FIRST) WHERE (enabled IS TRUE); +-- +-- Name: issue_search_data_57_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_p_ci_build_trace_metadata_on_trace_artifact_id ON ONLY p_ci_build_trace_metadata USING btree (trace_artifact_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_57_search_vector_idx; -CREATE INDEX ci_build_trace_metadata_trace_artifact_id_idx ON ci_build_trace_metadata USING btree (trace_artifact_id); -CREATE INDEX p_ci_builds_status_created_at_project_id_idx ON ONLY p_ci_builds USING btree (status, created_at, project_id) WHERE ((type)::text = 'Ci::Build'::text); +-- +-- Name: issue_search_data_58_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX ci_builds_gitlab_monitor_metrics ON ci_builds USING btree (status, created_at, project_id) WHERE ((type)::text = 'Ci::Build'::text); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_58_issue_id_idx; -CREATE UNIQUE INDEX ci_job_token_scope_links_source_and_target_project_direction ON ci_job_token_project_scope_links USING btree (source_project_id, target_project_id, direction); -CREATE INDEX ci_pipeline_artifacts_on_expire_at_for_removal ON ci_pipeline_artifacts USING btree (expire_at) WHERE ((locked = 0) AND (expire_at IS NOT NULL)); +-- +-- Name: issue_search_data_58_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX code_owner_approval_required ON protected_branches USING btree (project_id, code_owner_approval_required) WHERE (code_owner_approval_required = true); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_58_pkey; -CREATE UNIQUE INDEX commit_user_mentions_on_commit_id_and_note_id_unique_index ON commit_user_mentions USING btree (commit_id, note_id); -CREATE INDEX composer_cache_files_index_on_deleted_at ON packages_composer_cache_files USING btree (delete_at, id); +-- +-- Name: issue_search_data_58_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX custom_email_unique_constraint ON service_desk_settings USING btree (custom_email); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_58_search_vector_idx; -CREATE UNIQUE INDEX dast_scanner_profiles_builds_on_ci_build_id ON dast_scanner_profiles_builds USING btree (ci_build_id); -CREATE UNIQUE INDEX dast_site_profiles_builds_on_ci_build_id ON dast_site_profiles_builds USING btree (ci_build_id); +-- +-- Name: issue_search_data_59_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX design_management_designs_versions_uniqueness ON design_management_designs_versions USING btree (design_id, version_id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_59_issue_id_idx; -CREATE UNIQUE INDEX design_user_mentions_on_design_id_and_note_id_unique_index ON design_user_mentions USING btree (design_id, note_id); -CREATE UNIQUE INDEX epic_user_mentions_on_epic_id_and_note_id_index ON epic_user_mentions USING btree (epic_id, note_id); +-- +-- Name: issue_search_data_59_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX epic_user_mentions_on_epic_id_index ON epic_user_mentions USING btree (epic_id) WHERE (note_id IS NULL); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_59_pkey; -CREATE UNIQUE INDEX finding_evidences_on_unique_vulnerability_occurrence_id ON vulnerability_finding_evidences USING btree (vulnerability_occurrence_id); -CREATE UNIQUE INDEX finding_link_name_url_idx ON vulnerability_finding_links USING btree (vulnerability_occurrence_id, name, url); +-- +-- Name: issue_search_data_59_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX finding_link_url_idx ON vulnerability_finding_links USING btree (vulnerability_occurrence_id, url) WHERE (name IS NULL); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_59_search_vector_idx; -CREATE UNIQUE INDEX i_affected_packages_unique_for_upsert ON pm_affected_packages USING btree (pm_advisory_id, purl_type, package_name, distro_version); -CREATE INDEX i_batched_background_migration_job_transition_logs_on_job_id ON ONLY batched_background_migration_job_transition_logs USING btree (batched_background_migration_job_id); +-- +-- Name: issue_search_data_60_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX i_bulk_import_export_batches_id_batch_number ON bulk_import_export_batches USING btree (export_id, batch_number); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_60_issue_id_idx; -CREATE UNIQUE INDEX i_bulk_import_trackers_id_batch_number ON bulk_import_batch_trackers USING btree (tracker_id, batch_number); -CREATE UNIQUE INDEX i_ci_job_token_group_scope_links_on_source_and_target_project ON ci_job_token_group_scope_links USING btree (source_project_id, target_group_id); +-- +-- Name: issue_search_data_60_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX i_compliance_frameworks_on_id_and_created_at ON compliance_management_frameworks USING btree (id, created_at, pipeline_configuration_full_path); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_60_pkey; -CREATE INDEX i_compliance_standards_adherence_on_namespace_id_and_proj_id ON project_compliance_standards_adherence USING btree (namespace_id, project_id DESC, id DESC); -CREATE INDEX i_compliance_violations_for_export ON merge_requests_compliance_violations USING btree (target_project_id, id); +-- +-- Name: issue_search_data_60_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX i_compliance_violations_on_project_id_merged_at_and_id ON merge_requests_compliance_violations USING btree (target_project_id, merged_at, id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_60_search_vector_idx; -CREATE INDEX i_compliance_violations_on_project_id_reason_and_id ON merge_requests_compliance_violations USING btree (target_project_id, reason, id); -CREATE INDEX i_compliance_violations_on_project_id_severity_and_id ON merge_requests_compliance_violations USING btree (target_project_id, severity_level DESC, id DESC); +-- +-- Name: issue_search_data_61_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX i_compliance_violations_on_project_id_title_and_id ON merge_requests_compliance_violations USING btree (target_project_id, title, id); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_61_issue_id_idx; -CREATE UNIQUE INDEX i_container_protection_unique_project_repository_path_pattern ON container_registry_protection_rules USING btree (project_id, repository_path_pattern); -CREATE INDEX i_custom_email_verifications_on_triggered_at_and_state_started ON service_desk_custom_email_verifications USING btree (triggered_at) WHERE (state = 0); +-- +-- Name: issue_search_data_61_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX i_dast_pre_scan_verification_steps_on_pre_scan_verification_id ON dast_pre_scan_verification_steps USING btree (dast_pre_scan_verification_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_61_pkey; -CREATE INDEX i_dast_profiles_tags_on_scanner_profiles_id ON dast_profiles_tags USING btree (dast_profile_id); -CREATE INDEX i_namespace_cluster_agent_mappings_on_cluster_agent_id ON remote_development_namespace_cluster_agent_mappings USING btree (cluster_agent_id); +-- +-- Name: issue_search_data_61_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX i_namespace_cluster_agent_mappings_on_creator_id ON remote_development_namespace_cluster_agent_mappings USING btree (creator_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_61_search_vector_idx; -CREATE UNIQUE INDEX i_packages_unique_project_id_package_type_package_name_pattern ON packages_protection_rules USING btree (project_id, package_type, package_name_pattern); -CREATE INDEX i_pkgs_deb_file_meta_on_updated_at_package_file_id_when_unknown ON packages_debian_file_metadata USING btree (updated_at, package_file_id) WHERE (file_type = 1); +-- +-- Name: issue_search_data_62_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX i_pm_licenses_on_spdx_identifier ON pm_licenses USING btree (spdx_identifier); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_62_issue_id_idx; -CREATE UNIQUE INDEX i_pm_package_version_licenses_join_ids ON pm_package_version_licenses USING btree (pm_package_version_id, pm_license_id); -CREATE UNIQUE INDEX i_pm_package_versions_on_package_id_and_version ON pm_package_versions USING btree (pm_package_id, version); +-- +-- Name: issue_search_data_62_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX i_pm_packages_purl_type_and_name ON pm_packages USING btree (purl_type, name); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_62_pkey; -CREATE UNIQUE INDEX i_sbom_occurrences_vulnerabilities_on_occ_id_and_vuln_id ON sbom_occurrences_vulnerabilities USING btree (sbom_occurrence_id, vulnerability_id); -CREATE INDEX i_software_license_policies_on_custom_software_license_id ON software_license_policies USING btree (custom_software_license_id); +-- +-- Name: issue_search_data_62_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX i_vuln_occurrences_on_proj_report_loc_dep_pkg_ver_file_img ON vulnerability_occurrences USING btree (project_id, report_type, ((((location -> 'dependency'::text) -> 'package'::text) ->> 'name'::text)), (((location -> 'dependency'::text) ->> 'version'::text)), COALESCE((location ->> 'file'::text), (location ->> 'image'::text))) WHERE (report_type = ANY (ARRAY[2, 1])); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_62_search_vector_idx; -CREATE INDEX idx_abuse_reports_user_id_status_and_category ON abuse_reports USING btree (user_id, status, category); -CREATE INDEX idx_addon_purchases_on_last_refreshed_at_desc_nulls_last ON subscription_add_on_purchases USING btree (last_assigned_users_refreshed_at DESC NULLS LAST); +-- +-- Name: issue_search_data_63_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_alert_management_alerts_on_created_at_project_id_with_issue ON alert_management_alerts USING btree (created_at, project_id) WHERE (issue_id IS NOT NULL); +ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_63_issue_id_idx; -CREATE INDEX idx_analytics_devops_adoption_segments_on_namespace_id ON analytics_devops_adoption_segments USING btree (namespace_id); -CREATE INDEX idx_analytics_devops_adoption_snapshots_finalized ON analytics_devops_adoption_snapshots USING btree (namespace_id, end_time) WHERE (recorded_at >= end_time); +-- +-- Name: issue_search_data_63_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_approval_merge_request_rules_on_scan_result_policy_id ON approval_merge_request_rules USING btree (scan_result_policy_id); +ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_63_pkey; -CREATE INDEX idx_approval_mr_rules_on_config_id_and_id_and_updated_at ON approval_merge_request_rules USING btree (security_orchestration_policy_configuration_id, id, updated_at); -CREATE INDEX idx_approval_project_rules_on_configuration_id_and_id ON approval_project_rules USING btree (security_orchestration_policy_configuration_id, id); +-- +-- Name: issue_search_data_63_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_approval_project_rules_on_scan_result_policy_id ON approval_project_rules USING btree (scan_result_policy_id); +ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_63_search_vector_idx; -CREATE INDEX idx_audit_events_group_external_destinations_on_group_id ON audit_events_group_external_streaming_destinations USING btree (group_id); -CREATE INDEX idx_audit_events_namespace_event_type_filters_on_group_id ON audit_events_group_streaming_event_type_filters USING btree (namespace_id); +-- +-- Name: namespace_descendants_00_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_audit_events_part_on_entity_id_desc_author_id_created_at ON ONLY audit_events USING btree (entity_id, entity_type, id DESC, author_id, created_at); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_00_namespace_id_idx; -CREATE INDEX idx_award_emoji_on_user_emoji_name_awardable_type_awardable_id ON award_emoji USING btree (user_id, name, awardable_type, awardable_id); -CREATE INDEX idx_build_artifacts_size_refreshes_state_updated_at ON project_build_artifacts_size_refreshes USING btree (state, updated_at); +-- +-- Name: namespace_descendants_00_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX p_ci_job_artifacts_job_id_file_type_partition_id_idx ON ONLY p_ci_job_artifacts USING btree (job_id, file_type, partition_id); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_00_pkey; -CREATE UNIQUE INDEX idx_ci_job_artifacts_on_job_id_file_type_and_partition_id_uniq ON ci_job_artifacts USING btree (job_id, file_type, partition_id); -CREATE INDEX p_ci_pipelines_ci_ref_id_id_idx ON ONLY p_ci_pipelines USING btree (ci_ref_id, id) WHERE (locked = 1); +-- +-- Name: namespace_descendants_01_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_ci_pipelines_artifacts_locked ON ci_pipelines USING btree (ci_ref_id, id) WHERE (locked = 1); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_01_namespace_id_idx; -CREATE INDEX idx_ci_running_builds_on_runner_type_and_owner_xid_and_id ON ci_running_builds USING btree (runner_type, runner_owner_namespace_xid, runner_id); -CREATE INDEX idx_compliance_security_policies_on_policy_configuration_id ON compliance_framework_security_policies USING btree (policy_configuration_id); +-- +-- Name: namespace_descendants_01_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_component_usages_on_catalog_resource_used_by_proj_used_date ON ONLY p_catalog_resource_component_usages USING btree (catalog_resource_id, used_by_project_id, used_date); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_01_pkey; -CREATE UNIQUE INDEX idx_component_usages_on_component_used_by_project_and_used_date ON ONLY p_catalog_resource_component_usages USING btree (component_id, used_by_project_id, used_date); -CREATE INDEX idx_container_exp_policies_on_project_id_next_run_at ON container_expiration_policies USING btree (project_id, next_run_at) WHERE (enabled = true); +-- +-- Name: namespace_descendants_02_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_container_exp_policies_on_project_id_next_run_at_enabled ON container_expiration_policies USING btree (project_id, next_run_at, enabled); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_02_namespace_id_idx; -CREATE INDEX idx_container_repos_on_exp_cleanup_status_project_id_start_date ON container_repositories USING btree (expiration_policy_cleanup_status, project_id, expiration_policy_started_at); -CREATE INDEX idx_deletions_on_project_id_and_id_where_pending ON ONLY p_batched_git_ref_updates_deletions USING btree (project_id, id) WHERE (status = 1); +-- +-- Name: namespace_descendants_02_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_dep_proxy_pkgs_settings_enabled_maven_on_project_id ON dependency_proxy_packages_settings USING btree (project_id) WHERE ((enabled = true) AND (maven_external_registry_url IS NOT NULL)); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_02_pkey; -CREATE INDEX idx_deployment_clusters_on_cluster_id_and_kubernetes_namespace ON deployment_clusters USING btree (cluster_id, kubernetes_namespace); -CREATE INDEX idx_devops_adoption_segments_namespace_end_time ON analytics_devops_adoption_snapshots USING btree (namespace_id, end_time); +-- +-- Name: namespace_descendants_03_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_devops_adoption_segments_namespace_recorded_at ON analytics_devops_adoption_snapshots USING btree (namespace_id, recorded_at); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_03_namespace_id_idx; -CREATE UNIQUE INDEX idx_devops_adoption_segments_namespaces_pair ON analytics_devops_adoption_segments USING btree (display_namespace_id, namespace_id); -CREATE INDEX idx_elastic_reindexing_slices_on_elastic_reindexing_subtask_id ON elastic_reindexing_slices USING btree (elastic_reindexing_subtask_id); +-- +-- Name: namespace_descendants_03_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_enabled_pkgs_cleanup_policies_on_next_run_at_project_id ON packages_cleanup_policies USING btree (next_run_at, project_id) WHERE (keep_n_duplicated_package_files <> 'all'::text); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_03_pkey; -CREATE UNIQUE INDEX idx_environment_merge_requests_unique_index ON deployment_merge_requests USING btree (environment_id, merge_request_id); -CREATE UNIQUE INDEX idx_external_audit_event_destination_id_key_uniq ON audit_events_streaming_headers USING btree (key, external_audit_event_destination_id); +-- +-- Name: namespace_descendants_04_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_external_status_checks_on_id_and_project_id ON external_status_checks USING btree (id, project_id); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_04_namespace_id_idx; -CREATE INDEX idx_gpg_keys_on_user_externally_verified ON gpg_keys USING btree (user_id) WHERE (externally_verified = true); -CREATE INDEX idx_group_audit_events_on_author_id_created_at_id ON ONLY group_audit_events USING btree (author_id, created_at, id); +-- +-- Name: namespace_descendants_04_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_group_audit_events_on_group_id_author_created_at_id ON ONLY group_audit_events USING btree (group_id, author_id, created_at, id DESC); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_04_pkey; -CREATE INDEX idx_group_audit_events_on_project_created_at_id ON ONLY group_audit_events USING btree (group_id, created_at, id); -CREATE INDEX idx_headers_instance_external_audit_event_destination_id ON instance_audit_events_streaming_headers USING btree (instance_external_audit_event_destination_id); +-- +-- Name: namespace_descendants_05_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_installable_conan_pkgs_on_project_id_id ON packages_packages USING btree (project_id, id) WHERE ((package_type = 3) AND (status = ANY (ARRAY[0, 1]))); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_05_namespace_id_idx; -CREATE INDEX idx_installable_helm_pkgs_on_project_id_id ON packages_packages USING btree (project_id, id); -CREATE INDEX idx_installable_npm_pkgs_on_project_id_name_version_id ON packages_packages USING btree (project_id, name, version, id) WHERE ((package_type = 2) AND (status = 0)); +-- +-- Name: namespace_descendants_05_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_instance_audit_events_on_author_id_created_at_id ON ONLY instance_audit_events USING btree (author_id, created_at, id); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_05_pkey; -CREATE UNIQUE INDEX idx_instance_external_audit_event_destination_id_key_uniq ON instance_audit_events_streaming_headers USING btree (instance_external_audit_event_destination_id, key); -CREATE INDEX idx_issues_on_health_status_not_null ON issues USING btree (health_status) WHERE (health_status IS NOT NULL); +-- +-- Name: namespace_descendants_06_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_issues_on_project_id_and_created_at_and_id_and_state_id ON issues USING btree (project_id, created_at, id, state_id); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_06_namespace_id_idx; -CREATE INDEX idx_issues_on_project_id_and_due_date_and_id_and_state_id ON issues USING btree (project_id, due_date, id, state_id) WHERE (due_date IS NOT NULL); -CREATE INDEX idx_issues_on_project_id_and_rel_position_and_id_and_state_id ON issues USING btree (project_id, relative_position, id, state_id); +-- +-- Name: namespace_descendants_06_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_issues_on_project_id_and_updated_at_and_id_and_state_id ON issues USING btree (project_id, updated_at, id, state_id); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_06_pkey; -CREATE INDEX idx_issues_on_project_work_item_type_closed_at_where_closed ON issues USING btree (project_id, work_item_type_id, closed_at) WHERE (state_id = 2); -CREATE INDEX idx_issues_on_state_id ON issues USING btree (state_id); +-- +-- Name: namespace_descendants_07_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX idx_jira_connect_subscriptions_on_installation_id_namespace_id ON jira_connect_subscriptions USING btree (jira_connect_installation_id, namespace_id); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_07_namespace_id_idx; -CREATE INDEX idx_keys_expires_at_and_before_expiry_notification_undelivered ON keys USING btree (date(timezone('UTC'::text, expires_at)), before_expiry_notification_delivered_at) WHERE (before_expiry_notification_delivered_at IS NULL); -CREATE INDEX idx_members_created_at_user_id_invite_token ON members USING btree (created_at) WHERE ((invite_token IS NOT NULL) AND (user_id IS NULL)); +-- +-- Name: namespace_descendants_07_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_members_on_user_and_source_and_source_type_and_member_role ON members USING btree (user_id, source_id, source_type, member_role_id); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_07_pkey; -CREATE INDEX idx_merge_request_metrics_on_merged_by_project_and_mr ON merge_request_metrics USING btree (merged_by_id, target_project_id, merge_request_id); -CREATE INDEX idx_merge_requests_on_id_and_merge_jid ON merge_requests USING btree (id, merge_jid) WHERE ((merge_jid IS NOT NULL) AND (state_id = 4)); +-- +-- Name: namespace_descendants_08_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_merge_requests_on_merged_state ON merge_requests USING btree (id) WHERE (state_id = 3); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_08_namespace_id_idx; -CREATE INDEX idx_merge_requests_on_source_project_and_branch_state_opened ON merge_requests USING btree (source_project_id, source_branch) WHERE (state_id = 1); -CREATE INDEX idx_merge_requests_on_unmerged_state_id ON merge_requests USING btree (id) WHERE (state_id <> 3); +-- +-- Name: namespace_descendants_08_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX idx_metrics_users_starred_dashboard_on_user_project_dashboard ON metrics_users_starred_dashboards USING btree (user_id, project_id, dashboard_path); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_08_pkey; -CREATE INDEX idx_mr_cc_diff_files_on_mr_cc_id_and_sha ON merge_request_context_commit_diff_files USING btree (merge_request_context_commit_id, sha); -CREATE INDEX idx_mrs_on_target_id_and_created_at_and_state_id ON merge_requests USING btree (target_project_id, state_id, created_at, id); +-- +-- Name: namespace_descendants_09_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX idx_namespace_settings_on_default_compliance_framework_id ON namespace_settings USING btree (default_compliance_framework_id); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_09_namespace_id_idx; -CREATE INDEX idx_namespace_settings_on_last_dormant_member_review_at ON namespace_settings USING btree (last_dormant_member_review_at) WHERE (remove_dormant_members IS TRUE); -CREATE UNIQUE INDEX idx_o11y_log_issue_conn_on_issue_id_logs_search_metadata ON observability_logs_issues_connections USING btree (issue_id, service_name, severity_number, log_timestamp, log_fingerprint, trace_identifier); +-- +-- Name: namespace_descendants_09_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX idx_o11y_metric_issue_conn_on_issue_id_metric_type_name ON observability_metrics_issues_connections USING btree (issue_id, metric_type, metric_name); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_09_pkey; -CREATE UNIQUE INDEX idx_o11y_trace_issue_conn_on_issue_id_trace_identifier ON observability_traces_issues_connections USING btree (issue_id, trace_identifier); -CREATE UNIQUE INDEX idx_on_approval_group_rules_any_approver_type ON approval_group_rules USING btree (group_id, rule_type) WHERE (rule_type = 4); +-- +-- Name: namespace_descendants_10_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX idx_on_approval_group_rules_group_id_type_name ON approval_group_rules USING btree (group_id, rule_type, name); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_10_namespace_id_idx; -CREATE UNIQUE INDEX idx_on_approval_group_rules_groups_rule_group ON approval_group_rules_groups USING btree (approval_group_rule_id, group_id); -CREATE UNIQUE INDEX idx_on_approval_group_rules_protected_branch ON approval_group_rules_protected_branches USING btree (approval_group_rule_id, protected_branch_id); +-- +-- Name: namespace_descendants_10_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_on_approval_group_rules_security_orch_policy ON approval_group_rules USING btree (security_orchestration_policy_configuration_id); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_10_pkey; -CREATE UNIQUE INDEX idx_on_approval_group_rules_users_rule_user ON approval_group_rules_users USING btree (approval_group_rule_id, user_id); -CREATE UNIQUE INDEX idx_on_compliance_management_frameworks_namespace_id_name ON compliance_management_frameworks USING btree (namespace_id, name); +-- +-- Name: namespace_descendants_11_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX idx_on_external_approval_rules_project_id_external_url ON external_approval_rules USING btree (project_id, external_url); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_11_namespace_id_idx; -CREATE UNIQUE INDEX idx_on_external_approval_rules_project_id_name ON external_approval_rules USING btree (project_id, name); -CREATE UNIQUE INDEX idx_on_external_status_checks_project_id_external_url ON external_status_checks USING btree (project_id, external_url); +-- +-- Name: namespace_descendants_11_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX idx_on_external_status_checks_project_id_name ON external_status_checks USING btree (project_id, name); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_11_pkey; -CREATE INDEX idx_on_protected_branch ON approval_group_rules_protected_branches USING btree (protected_branch_id); -CREATE INDEX idx_open_issues_on_project_and_confidential_and_author_and_id ON issues USING btree (project_id, confidential, author_id, id) WHERE (state_id = 1); +-- +-- Name: namespace_descendants_12_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_p_ci_finished_pipeline_ch_sync_evts_on_project_namespace_id ON ONLY p_ci_finished_pipeline_ch_sync_events USING btree (project_namespace_id); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_12_namespace_id_idx; -CREATE INDEX idx_packages_debian_group_component_files_on_architecture_id ON packages_debian_group_component_files USING btree (architecture_id); -CREATE INDEX idx_packages_debian_project_component_files_on_architecture_id ON packages_debian_project_component_files USING btree (architecture_id); +-- +-- Name: namespace_descendants_12_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_packages_dependencies_on_name_version_pattern_project_id ON packages_dependencies USING btree (name, version_pattern, project_id); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_12_pkey; -CREATE INDEX idx_packages_nuget_metadata_on_pkg_id_and_normalized_version ON packages_nuget_metadata USING btree (package_id, normalized_version); -CREATE INDEX idx_packages_on_project_id_name_id_version_when_installable_npm ON packages_packages USING btree (project_id, name, id, version) WHERE ((package_type = 2) AND (status = ANY (ARRAY[0, 1]))); +-- +-- Name: namespace_descendants_13_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX idx_packages_on_project_id_name_version_unique_when_generic ON packages_packages USING btree (project_id, name, version) WHERE ((package_type = 7) AND (status <> 4)); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_13_namespace_id_idx; -CREATE UNIQUE INDEX idx_packages_on_project_id_name_version_unique_when_golang ON packages_packages USING btree (project_id, name, version) WHERE ((package_type = 8) AND (status <> 4)); -CREATE UNIQUE INDEX idx_packages_on_project_id_name_version_unique_when_helm ON packages_packages USING btree (project_id, name, version) WHERE ((package_type = 11) AND (status <> 4)); +-- +-- Name: namespace_descendants_13_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX idx_packages_on_project_id_name_version_unique_when_npm ON packages_packages USING btree (project_id, name, version) WHERE ((package_type = 2) AND (status <> 4)); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_13_pkey; -CREATE INDEX idx_packages_packages_on_npm_scope_and_project_id ON packages_packages USING btree (split_part((name)::text, '/'::text, 1), project_id) WHERE ((package_type = 2) AND ("position"((name)::text, '/'::text) > 0) AND (status = ANY (ARRAY[0, 3])) AND (version IS NOT NULL)); -CREATE INDEX idx_packages_packages_on_project_id_name_version_package_type ON packages_packages USING btree (project_id, name, version, package_type); +-- +-- Name: namespace_descendants_14_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_pat_last_used_ips_on_pat_id ON personal_access_token_last_used_ips USING btree (personal_access_token_id); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_14_namespace_id_idx; -CREATE INDEX idx_personal_access_tokens_on_previous_personal_access_token_id ON personal_access_tokens USING btree (previous_personal_access_token_id); -CREATE INDEX idx_pkgs_conan_file_metadata_on_pkg_file_id_when_recipe_file ON packages_conan_file_metadata USING btree (package_file_id) WHERE (conan_file_type = 1); +-- +-- Name: namespace_descendants_14_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_pkgs_debian_group_distribution_keys_on_distribution_id ON packages_debian_group_distribution_keys USING btree (distribution_id); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_14_pkey; -CREATE INDEX idx_pkgs_debian_project_distribution_keys_on_distribution_id ON packages_debian_project_distribution_keys USING btree (distribution_id); -CREATE UNIQUE INDEX idx_pkgs_dep_links_on_pkg_id_dependency_id_dependency_type ON packages_dependency_links USING btree (package_id, dependency_id, dependency_type); +-- +-- Name: namespace_descendants_15_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_pkgs_installable_package_files_on_package_id_id_file_name ON packages_package_files USING btree (package_id, id, file_name) WHERE (status = 0); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_15_namespace_id_idx; -CREATE INDEX idx_pkgs_npm_metadata_caches_on_id_and_project_id_and_status ON packages_npm_metadata_caches USING btree (id) WHERE ((project_id IS NULL) AND (status = 0)); -CREATE INDEX idx_pkgs_nuget_symbols_on_lowercase_signature_and_file_name ON packages_nuget_symbols USING btree (lower(signature), lower(file)); +-- +-- Name: namespace_descendants_15_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_pkgs_on_project_id_name_version_on_installable_terraform ON packages_packages USING btree (project_id, name, version, id) WHERE ((package_type = 12) AND (status = ANY (ARRAY[0, 1]))); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_15_pkey; -CREATE INDEX idx_pkgs_project_id_lower_name_when_nuget_installable_version ON packages_packages USING btree (project_id, lower((name)::text)) WHERE ((package_type = 4) AND (version IS NOT NULL) AND (status = ANY (ARRAY[0, 1]))); -CREATE INDEX idx_proj_feat_usg_on_jira_dvcs_cloud_last_sync_at_and_proj_id ON project_feature_usages USING btree (jira_dvcs_cloud_last_sync_at, project_id) WHERE (jira_dvcs_cloud_last_sync_at IS NOT NULL); +-- +-- Name: namespace_descendants_16_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_proj_feat_usg_on_jira_dvcs_server_last_sync_at_and_proj_id ON project_feature_usages USING btree (jira_dvcs_server_last_sync_at, project_id) WHERE (jira_dvcs_server_last_sync_at IS NOT NULL); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_16_namespace_id_idx; -CREATE INDEX idx_project_audit_events_on_author_id_created_at_id ON ONLY project_audit_events USING btree (author_id, created_at, id); -CREATE INDEX idx_project_audit_events_on_project_created_at_id ON ONLY project_audit_events USING btree (project_id, created_at, id); +-- +-- Name: namespace_descendants_16_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_project_audit_events_on_project_id_author_created_at_id ON ONLY project_audit_events USING btree (project_id, author_id, created_at, id DESC); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_16_pkey; -CREATE UNIQUE INDEX idx_project_id_payload_key_self_managed_prometheus_alert_events ON self_managed_prometheus_alert_events USING btree (project_id, payload_key); -CREATE INDEX idx_project_repository_check_partial ON projects USING btree (repository_storage, created_at) WHERE (last_repository_check_at IS NULL); +-- +-- Name: namespace_descendants_17_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_projects_api_created_at_id_for_archived ON projects USING btree (created_at, id) WHERE ((archived = true) AND (pending_delete = false) AND (hidden = false)); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_17_namespace_id_idx; -CREATE INDEX idx_projects_api_created_at_id_for_archived_vis20 ON projects USING btree (created_at, id) WHERE ((archived = true) AND (visibility_level = 20) AND (pending_delete = false) AND (hidden = false)); -CREATE INDEX idx_projects_api_created_at_id_for_vis10 ON projects USING btree (created_at, id) WHERE ((visibility_level = 10) AND (pending_delete = false) AND (hidden = false)); +-- +-- Name: namespace_descendants_17_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_projects_id_created_at_disable_overriding_approvers_false ON projects USING btree (id, created_at) WHERE ((disable_overriding_approvers_per_merge_request = false) OR (disable_overriding_approvers_per_merge_request IS NULL)); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_17_pkey; -CREATE INDEX idx_projects_id_created_at_disable_overriding_approvers_true ON projects USING btree (id, created_at) WHERE (disable_overriding_approvers_per_merge_request = true); -CREATE INDEX idx_projects_on_repository_storage_last_repository_updated_at ON projects USING btree (id, repository_storage, last_repository_updated_at); +-- +-- Name: namespace_descendants_18_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_reminder_frequency_on_work_item_progresses ON work_item_progresses USING btree (reminder_frequency); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_18_namespace_id_idx; -CREATE INDEX idx_sbom_components_on_name_gin ON sbom_components USING gin (name gin_trgm_ops); -CREATE UNIQUE INDEX idx_sbom_components_on_name_purl_type_component_type_and_org_id ON sbom_components USING btree (name, purl_type, component_type, organization_id); +-- +-- Name: namespace_descendants_18_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_sbom_occurr_on_project_component_version_input_file_path ON sbom_occurrences USING btree (project_id, component_version_id, input_file_path); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_18_pkey; -CREATE INDEX idx_sbom_occurrences_on_project_id_and_source_id ON sbom_occurrences USING btree (project_id, source_id); -CREATE UNIQUE INDEX idx_sbom_source_packages_on_name_and_purl_type ON sbom_source_packages USING btree (name, purl_type); +-- +-- Name: namespace_descendants_19_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_scan_result_policies_on_configuration_id_id_updated_at ON scan_result_policies USING btree (security_orchestration_policy_configuration_id, id, updated_at); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_19_namespace_id_idx; -CREATE INDEX idx_scan_result_policy_violations_on_policy_id_and_id ON scan_result_policy_violations USING btree (scan_result_policy_id, id); -CREATE UNIQUE INDEX idx_security_scans_on_build_and_scan_type ON security_scans USING btree (build_id, scan_type); +-- +-- Name: namespace_descendants_19_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_security_scans_on_scan_type ON security_scans USING btree (scan_type); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_19_pkey; -CREATE UNIQUE INDEX idx_software_license_policies_unique_on_custom_license_project ON software_license_policies USING btree (project_id, custom_software_license_id, scan_result_policy_id); -CREATE UNIQUE INDEX idx_software_license_policies_unique_on_project_and_scan_policy ON software_license_policies USING btree (project_id, software_license_id, scan_result_policy_id); +-- +-- Name: namespace_descendants_20_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_status_check_responses_on_id_and_status ON status_check_responses USING btree (id, status); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_20_namespace_id_idx; -CREATE INDEX idx_streaming_group_namespace_filters_on_namespace_id ON audit_events_streaming_group_namespace_filters USING btree (namespace_id); -CREATE INDEX idx_streaming_headers_on_external_audit_event_destination_id ON audit_events_streaming_headers USING btree (external_audit_event_destination_id); +-- +-- Name: namespace_descendants_20_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_streaming_instance_namespace_filters_on_namespace_id ON audit_events_streaming_instance_namespace_filters USING btree (namespace_id); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_20_pkey; -CREATE INDEX idx_test_reports_on_issue_id_created_at_and_id ON requirements_management_test_reports USING btree (issue_id, created_at, id); -CREATE UNIQUE INDEX idx_uniq_analytics_dashboards_pointers_on_project_id ON analytics_dashboards_pointers USING btree (project_id); +-- +-- Name: namespace_descendants_21_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_user_add_on_assignments_on_add_on_purchase_id_and_id ON subscription_user_add_on_assignments USING btree (add_on_purchase_id, id); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_21_namespace_id_idx; -CREATE INDEX idx_user_audit_events_on_author_id_created_at_id ON ONLY user_audit_events USING btree (author_id, created_at, id); -CREATE INDEX idx_user_audit_events_on_project_created_at_id ON ONLY user_audit_events USING btree (user_id, created_at, id); +-- +-- Name: namespace_descendants_21_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_user_audit_events_on_user_id_author_created_at_id ON ONLY user_audit_events USING btree (user_id, author_id, created_at, id DESC); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_21_pkey; -CREATE INDEX idx_user_credit_card_validations_on_holder_name_hash ON user_credit_card_validations USING btree (holder_name_hash); -CREATE INDEX idx_user_credit_card_validations_on_similar_to_meta_data ON user_credit_card_validations USING btree (expiration_date_hash, last_digits_hash, network_hash, credit_card_validated_at); +-- +-- Name: namespace_descendants_22_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_user_details_on_provisioned_by_group_id_user_id ON user_details USING btree (provisioned_by_group_id, user_id); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_22_namespace_id_idx; -CREATE INDEX idx_vreg_pkgs_maven_cached_responses_on_relative_path_trigram ON virtual_registries_packages_maven_cached_responses USING gin (relative_path gin_trgm_ops); -CREATE UNIQUE INDEX idx_vregs_pkgs_mvn_cached_resp_on_uniq_upstrm_id_and_rel_path ON virtual_registries_packages_maven_cached_responses USING btree (upstream_id, relative_path); +-- +-- Name: namespace_descendants_22_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_vuln_reads_for_filtering ON vulnerability_reads USING btree (project_id, state, dismissal_reason, severity DESC, vulnerability_id DESC NULLS LAST); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_22_pkey; -CREATE UNIQUE INDEX idx_vuln_signatures_uniqueness_signature_sha ON vulnerability_finding_signatures USING btree (finding_id, algorithm_type, signature_sha); -CREATE INDEX idx_vulnerabilities_on_project_id_and_id_active_cis_dft_branch ON vulnerabilities USING btree (project_id, id) WHERE ((report_type = 7) AND (state = ANY (ARRAY[1, 4])) AND (present_on_default_branch IS TRUE)); +-- +-- Name: namespace_descendants_23_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_vulnerabilities_partial_devops_adoption_and_default_branch ON vulnerabilities USING btree (project_id, created_at, present_on_default_branch) WHERE (state <> 1); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_23_namespace_id_idx; -CREATE UNIQUE INDEX idx_vulnerability_ext_issue_links_on_vulne_id_and_ext_issue ON vulnerability_external_issue_links USING btree (vulnerability_id, external_type, external_project_key, external_issue_key); -CREATE UNIQUE INDEX idx_vulnerability_ext_issue_links_on_vulne_id_and_link_type ON vulnerability_external_issue_links USING btree (vulnerability_id, link_type) WHERE (link_type = 1); +-- +-- Name: namespace_descendants_23_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX idx_vulnerability_issue_links_on_vulnerability_id_and_issue_id ON vulnerability_issue_links USING btree (vulnerability_id, issue_id); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_23_pkey; -CREATE UNIQUE INDEX idx_vulnerability_issue_links_on_vulnerability_id_and_link_type ON vulnerability_issue_links USING btree (vulnerability_id, link_type) WHERE (link_type = 2); -CREATE INDEX idx_vulnerability_reads_for_traversal_ids_queries_srt_severity ON vulnerability_reads USING btree (state, report_type, severity, traversal_ids, vulnerability_id) WHERE (archived = false); +-- +-- Name: namespace_descendants_24_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX idx_vulnerability_reads_project_id_scanner_id_vulnerability_id ON vulnerability_reads USING btree (project_id, scanner_id, vulnerability_id); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_24_namespace_id_idx; -CREATE INDEX index_p_ci_builds_on_execution_config_id ON ONLY p_ci_builds USING btree (execution_config_id) WHERE (execution_config_id IS NOT NULL); -CREATE INDEX index_0928d9f200 ON ci_builds USING btree (execution_config_id) WHERE (execution_config_id IS NOT NULL); +-- +-- Name: namespace_descendants_24_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_abuse_events_on_abuse_report_id ON abuse_events USING btree (abuse_report_id); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_24_pkey; -CREATE INDEX index_abuse_events_on_category_and_source ON abuse_events USING btree (category, source); -CREATE INDEX index_abuse_events_on_user_id ON abuse_events USING btree (user_id); +-- +-- Name: namespace_descendants_25_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_abuse_report_assignees_on_abuse_report_id ON abuse_report_assignees USING btree (abuse_report_id); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_25_namespace_id_idx; -CREATE UNIQUE INDEX index_abuse_report_assignees_on_user_id_and_abuse_report_id ON abuse_report_assignees USING btree (user_id, abuse_report_id); -CREATE INDEX index_abuse_report_events_on_abuse_report_id ON abuse_report_events USING btree (abuse_report_id); +-- +-- Name: namespace_descendants_25_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_abuse_report_events_on_user_id ON abuse_report_events USING btree (user_id); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_25_pkey; -CREATE INDEX index_abuse_report_notes_on_abuse_report_id ON abuse_report_notes USING btree (abuse_report_id); -CREATE INDEX index_abuse_report_notes_on_author_id ON abuse_report_notes USING btree (author_id); +-- +-- Name: namespace_descendants_26_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_abuse_report_notes_on_resolved_by_id ON abuse_report_notes USING btree (resolved_by_id); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_26_namespace_id_idx; -CREATE INDEX index_abuse_report_notes_on_updated_by_id ON abuse_report_notes USING btree (updated_by_id); -CREATE UNIQUE INDEX index_abuse_report_user_mentions_on_abuse_report_id_and_note_id ON abuse_report_user_mentions USING btree (abuse_report_id, note_id); +-- +-- Name: namespace_descendants_26_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_abuse_report_user_mentions_on_note_id ON abuse_report_user_mentions USING btree (note_id); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_26_pkey; -CREATE INDEX index_abuse_reports_on_assignee_id ON abuse_reports USING btree (assignee_id); -CREATE INDEX index_abuse_reports_on_resolved_by_id ON abuse_reports USING btree (resolved_by_id); +-- +-- Name: namespace_descendants_27_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_abuse_reports_on_status_and_created_at ON abuse_reports USING btree (status, created_at); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_27_namespace_id_idx; -CREATE INDEX index_abuse_reports_on_status_and_id ON abuse_reports USING btree (status, id); -CREATE INDEX index_abuse_reports_on_status_and_updated_at ON abuse_reports USING btree (status, updated_at); +-- +-- Name: namespace_descendants_27_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_abuse_reports_on_status_category_and_id ON abuse_reports USING btree (status, category, id); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_27_pkey; -CREATE INDEX index_abuse_reports_on_status_reporter_id_and_id ON abuse_reports USING btree (status, reporter_id, id); -CREATE INDEX index_abuse_trust_scores_on_user_id_and_source_and_created_at ON abuse_trust_scores USING btree (user_id, source, created_at); +-- +-- Name: namespace_descendants_28_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX "index_achievements_on_namespace_id_LOWER_name" ON achievements USING btree (namespace_id, lower(name)); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_28_namespace_id_idx; -CREATE UNIQUE INDEX index_activity_pub_releases_sub_on_project_id_inbox_url ON activity_pub_releases_subscriptions USING btree (project_id, lower(subscriber_inbox_url)); -CREATE UNIQUE INDEX index_activity_pub_releases_sub_on_project_id_sub_url ON activity_pub_releases_subscriptions USING btree (project_id, lower(subscriber_url)); +-- +-- Name: namespace_descendants_28_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_add_on_purchases_on_organization_id ON subscription_add_on_purchases USING btree (organization_id); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_28_pkey; -CREATE INDEX index_agent_activity_events_on_agent_id_and_recorded_at_and_id ON agent_activity_events USING btree (agent_id, recorded_at, id); -CREATE INDEX index_agent_activity_events_on_agent_project_id ON agent_activity_events USING btree (agent_project_id); +-- +-- Name: namespace_descendants_29_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_agent_activity_events_on_agent_token_id ON agent_activity_events USING btree (agent_token_id) WHERE (agent_token_id IS NOT NULL); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_29_namespace_id_idx; -CREATE INDEX index_agent_activity_events_on_merge_request_id ON agent_activity_events USING btree (merge_request_id) WHERE (merge_request_id IS NOT NULL); -CREATE INDEX index_agent_activity_events_on_project_id ON agent_activity_events USING btree (project_id) WHERE (project_id IS NOT NULL); +-- +-- Name: namespace_descendants_29_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_agent_activity_events_on_user_id ON agent_activity_events USING btree (user_id) WHERE (user_id IS NOT NULL); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_29_pkey; -CREATE UNIQUE INDEX index_agent_group_authorizations_on_agent_id_and_group_id ON agent_group_authorizations USING btree (agent_id, group_id); -CREATE INDEX index_agent_group_authorizations_on_group_id ON agent_group_authorizations USING btree (group_id); +-- +-- Name: namespace_descendants_30_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX index_agent_project_authorizations_on_agent_id_and_project_id ON agent_project_authorizations USING btree (agent_id, project_id); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_30_namespace_id_idx; -CREATE INDEX index_agent_project_authorizations_on_project_id ON agent_project_authorizations USING btree (project_id); -CREATE UNIQUE INDEX index_agent_user_access_on_agent_id_and_group_id ON agent_user_access_group_authorizations USING btree (agent_id, group_id); +-- +-- Name: namespace_descendants_30_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE UNIQUE INDEX index_agent_user_access_on_agent_id_and_project_id ON agent_user_access_project_authorizations USING btree (agent_id, project_id); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_30_pkey; -CREATE INDEX index_agent_user_access_on_group_id ON agent_user_access_group_authorizations USING btree (group_id); -CREATE INDEX index_agent_user_access_on_project_id ON agent_user_access_project_authorizations USING btree (project_id); +-- +-- Name: namespace_descendants_31_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_ai_agent_version_attachments_on_ai_agent_version_id ON ai_agent_version_attachments USING btree (ai_agent_version_id); +ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_31_namespace_id_idx; -CREATE INDEX index_ai_agent_version_attachments_on_ai_vectorizable_file_id ON ai_agent_version_attachments USING btree (ai_vectorizable_file_id); -CREATE INDEX index_ai_agent_version_attachments_on_project_id ON ai_agent_version_attachments USING btree (project_id); +-- +-- Name: namespace_descendants_31_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - +-- -CREATE INDEX index_ai_agent_versions_on_agent_id ON ai_agent_versions USING btree (agent_id); +ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_31_pkey; -CREATE INDEX index_ai_agent_versions_on_project_id ON ai_agent_versions USING btree (project_id); -CREATE UNIQUE INDEX index_ai_agents_on_project_id_and_name ON ai_agents USING btree (project_id, name); +-- +-- Name: ci_build_trace_metadata_pkey; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_ai_feature_settings_on_ai_self_hosted_model_id ON ai_feature_settings USING btree (ai_self_hosted_model_id); +ALTER INDEX public.p_ci_build_trace_metadata_pkey ATTACH PARTITION public.ci_build_trace_metadata_pkey; -CREATE UNIQUE INDEX index_ai_feature_settings_on_feature ON ai_feature_settings USING btree (feature); -CREATE UNIQUE INDEX index_ai_self_hosted_models_on_name ON ai_self_hosted_models USING btree (name); +-- +-- Name: ci_build_trace_metadata_trace_artifact_id_idx; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_ai_vectorizable_files_on_project_id ON ai_vectorizable_files USING btree (project_id); +ALTER INDEX public.index_p_ci_build_trace_metadata_on_trace_artifact_id ATTACH PARTITION public.ci_build_trace_metadata_trace_artifact_id_idx; -CREATE INDEX index_alert_assignees_on_alert_id ON alert_management_alert_assignees USING btree (alert_id); -CREATE UNIQUE INDEX index_alert_assignees_on_user_id_and_alert_id ON alert_management_alert_assignees USING btree (user_id, alert_id); +-- +-- Name: ci_builds_gitlab_monitor_metrics; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_alert_management_alert_metric_images_on_alert_id ON alert_management_alert_metric_images USING btree (alert_id); +ALTER INDEX public.p_ci_builds_status_created_at_project_id_idx ATTACH PARTITION public.ci_builds_gitlab_monitor_metrics; -CREATE INDEX index_alert_management_alerts_on_domain ON alert_management_alerts USING btree (domain); -CREATE INDEX index_alert_management_alerts_on_environment_id ON alert_management_alerts USING btree (environment_id) WHERE (environment_id IS NOT NULL); +-- +-- Name: ci_builds_metadata_pkey; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_alert_management_alerts_on_issue_id ON alert_management_alerts USING btree (issue_id); +ALTER INDEX public.p_ci_builds_metadata_pkey ATTACH PARTITION public.ci_builds_metadata_pkey; -CREATE UNIQUE INDEX index_alert_management_alerts_on_project_id_and_iid ON alert_management_alerts USING btree (project_id, iid); -CREATE INDEX index_alert_management_alerts_on_prometheus_alert_id ON alert_management_alerts USING btree (prometheus_alert_id) WHERE (prometheus_alert_id IS NOT NULL); +-- +-- Name: ci_builds_pkey; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_alert_user_mentions_on_alert_id ON alert_management_alert_user_mentions USING btree (alert_management_alert_id) WHERE (note_id IS NULL); +ALTER INDEX public.p_ci_builds_pkey ATTACH PARTITION public.ci_builds_pkey; -CREATE UNIQUE INDEX index_alert_user_mentions_on_alert_id_and_note_id ON alert_management_alert_user_mentions USING btree (alert_management_alert_id, note_id); -CREATE UNIQUE INDEX index_alert_user_mentions_on_note_id ON alert_management_alert_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); +-- +-- Name: ci_job_artifacts_pkey; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_allowed_email_domains_on_group_id ON allowed_email_domains USING btree (group_id); +ALTER INDEX public.p_ci_job_artifacts_pkey ATTACH PARTITION public.ci_job_artifacts_pkey; -CREATE INDEX index_analytics_ca_group_stages_on_end_event_label_id ON analytics_cycle_analytics_group_stages USING btree (end_event_label_id); -CREATE INDEX index_analytics_ca_group_stages_on_relative_position ON analytics_cycle_analytics_group_stages USING btree (relative_position); +-- +-- Name: ci_pipeline_variables_pkey; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_analytics_ca_group_stages_on_start_event_label_id ON analytics_cycle_analytics_group_stages USING btree (start_event_label_id); +ALTER INDEX public.p_ci_pipeline_variables_pkey ATTACH PARTITION public.ci_pipeline_variables_pkey; -CREATE INDEX index_analytics_ca_group_stages_on_value_stream_id ON analytics_cycle_analytics_group_stages USING btree (group_value_stream_id); -CREATE UNIQUE INDEX index_analytics_ca_group_value_streams_on_group_id_and_name ON analytics_cycle_analytics_group_value_streams USING btree (group_id, name); +-- +-- Name: ci_pipelines_pkey; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_analytics_cycle_analytics_group_stages_custom_only ON analytics_cycle_analytics_group_stages USING btree (id) WHERE (custom = true); +ALTER INDEX public.p_ci_pipelines_pkey ATTACH PARTITION public.ci_pipelines_pkey; -CREATE UNIQUE INDEX index_analytics_dashboards_pointers_on_namespace_id ON analytics_dashboards_pointers USING btree (namespace_id); -CREATE INDEX index_analytics_dashboards_pointers_on_target_project_id ON analytics_dashboards_pointers USING btree (target_project_id); +-- +-- Name: ci_stages_pkey; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_application_settings_on_custom_project_templates_group_id ON application_settings USING btree (custom_project_templates_group_id); +ALTER INDEX public.p_ci_stages_pkey ATTACH PARTITION public.ci_stages_pkey; -CREATE INDEX index_application_settings_on_file_template_project_id ON application_settings USING btree (file_template_project_id); -CREATE UNIQUE INDEX index_application_settings_on_push_rule_id ON application_settings USING btree (push_rule_id); +-- +-- Name: idx_ci_job_artifacts_on_job_id_file_type_and_partition_id_uniq; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_application_settings_on_usage_stats_set_by_user_id ON application_settings USING btree (usage_stats_set_by_user_id); +ALTER INDEX public.p_ci_job_artifacts_job_id_file_type_partition_id_idx ATTACH PARTITION public.idx_ci_job_artifacts_on_job_id_file_type_and_partition_id_uniq; -CREATE INDEX index_application_settings_web_ide_oauth_application_id ON application_settings USING btree (web_ide_oauth_application_id); -CREATE INDEX index_approval_group_rules_groups_on_group_id ON approval_group_rules_groups USING btree (group_id); +-- +-- Name: idx_ci_pipelines_artifacts_locked; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_approval_group_rules_on_approval_policy_rule_id ON approval_group_rules USING btree (approval_policy_rule_id); +ALTER INDEX public.p_ci_pipelines_ci_ref_id_id_idx ATTACH PARTITION public.idx_ci_pipelines_artifacts_locked; -CREATE INDEX index_approval_group_rules_on_scan_result_policy_id ON approval_group_rules USING btree (scan_result_policy_id); -CREATE INDEX index_approval_group_rules_protected_branches_on_group_id ON approval_group_rules_protected_branches USING btree (group_id); +-- +-- Name: index_0928d9f200; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_approval_group_rules_users_on_group_id ON approval_group_rules_users USING btree (group_id); +ALTER INDEX public.index_p_ci_builds_on_execution_config_id ATTACH PARTITION public.index_0928d9f200; -CREATE INDEX index_approval_group_rules_users_on_user_id ON approval_group_rules_users USING btree (user_id); -CREATE UNIQUE INDEX index_approval_merge_request_rule_sources_1 ON approval_merge_request_rule_sources USING btree (approval_merge_request_rule_id); +-- +-- Name: index_ci_builds_metadata_on_build_id_and_has_exposed_artifacts; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_approval_merge_request_rule_sources_2 ON approval_merge_request_rule_sources USING btree (approval_project_rule_id); +ALTER INDEX public.p_ci_builds_metadata_build_id_idx ATTACH PARTITION public.index_ci_builds_metadata_on_build_id_and_has_exposed_artifacts; -CREATE INDEX index_approval_merge_request_rule_sources_on_project_id ON approval_merge_request_rule_sources USING btree (project_id); -CREATE UNIQUE INDEX index_approval_merge_request_rules_approved_approvers_1 ON approval_merge_request_rules_approved_approvers USING btree (approval_merge_request_rule_id, user_id); +-- +-- Name: index_ci_builds_metadata_on_build_id_and_id_and_interruptible; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_approval_merge_request_rules_approved_approvers_2 ON approval_merge_request_rules_approved_approvers USING btree (user_id); +ALTER INDEX public.p_ci_builds_metadata_build_id_id_idx ATTACH PARTITION public.index_ci_builds_metadata_on_build_id_and_id_and_interruptible; -CREATE UNIQUE INDEX index_approval_merge_request_rules_groups_1 ON approval_merge_request_rules_groups USING btree (approval_merge_request_rule_id, group_id); -CREATE INDEX index_approval_merge_request_rules_groups_2 ON approval_merge_request_rules_groups USING btree (group_id); +-- +-- Name: index_ci_builds_metadata_on_build_id_partition_id_unique; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_approval_merge_request_rules_on_approval_policy_rule_id ON approval_merge_request_rules USING btree (approval_policy_rule_id); +ALTER INDEX public.p_ci_builds_metadata_build_id_partition_id_idx ATTACH PARTITION public.index_ci_builds_metadata_on_build_id_partition_id_unique; -CREATE INDEX index_approval_merge_request_rules_on_project_id ON approval_merge_request_rules USING btree (project_id); -CREATE UNIQUE INDEX index_approval_merge_request_rules_users_1 ON approval_merge_request_rules_users USING btree (approval_merge_request_rule_id, user_id); +-- +-- Name: index_ci_builds_metadata_on_project_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_approval_merge_request_rules_users_2 ON approval_merge_request_rules_users USING btree (user_id); +ALTER INDEX public.p_ci_builds_metadata_project_id_idx ATTACH PARTITION public.index_ci_builds_metadata_on_project_id; -CREATE UNIQUE INDEX index_approval_policy_rule_on_project_and_rule ON approval_policy_rule_project_links USING btree (approval_policy_rule_id, project_id); -CREATE INDEX index_approval_policy_rule_project_links_on_project_id ON approval_policy_rule_project_links USING btree (project_id); +-- +-- Name: index_ci_builds_on_auto_canceled_by_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_approval_policy_rules_on_policy_management_project_id ON approval_policy_rules USING btree (security_policy_management_project_id); +ALTER INDEX public.p_ci_builds_auto_canceled_by_id_idx ATTACH PARTITION public.index_ci_builds_on_auto_canceled_by_id; -CREATE UNIQUE INDEX index_approval_policy_rules_on_unique_policy_rule_index ON approval_policy_rules USING btree (security_policy_id, rule_index); -CREATE UNIQUE INDEX index_approval_project_rules_groups_1 ON approval_project_rules_groups USING btree (approval_project_rule_id, group_id); +-- +-- Name: index_ci_builds_on_commit_id_and_stage_idx_and_created_at; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_approval_project_rules_groups_2 ON approval_project_rules_groups USING btree (group_id); +ALTER INDEX public.p_ci_builds_commit_id_stage_idx_created_at_idx ATTACH PARTITION public.index_ci_builds_on_commit_id_and_stage_idx_and_created_at; -CREATE INDEX index_approval_project_rules_on_approval_policy_rule_id ON approval_project_rules USING btree (approval_policy_rule_id); -CREATE INDEX index_approval_project_rules_on_id_with_regular_type ON approval_project_rules USING btree (id) WHERE (rule_type = 0); +-- +-- Name: index_ci_builds_on_commit_id_and_status_and_type; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_approval_project_rules_on_project_id ON approval_project_rules USING btree (project_id); +ALTER INDEX public.p_ci_builds_commit_id_status_type_idx ATTACH PARTITION public.index_ci_builds_on_commit_id_and_status_and_type; -CREATE INDEX index_approval_project_rules_on_rule_type ON approval_project_rules USING btree (rule_type); -CREATE INDEX index_approval_project_rules_protected_branches_pb_id ON approval_project_rules_protected_branches USING btree (protected_branch_id); +-- +-- Name: index_ci_builds_on_commit_id_and_type_and_name_and_ref; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_approval_project_rules_report_type ON approval_project_rules USING btree (report_type); +ALTER INDEX public.p_ci_builds_commit_id_type_name_ref_idx ATTACH PARTITION public.index_ci_builds_on_commit_id_and_type_and_name_and_ref; -CREATE UNIQUE INDEX index_approval_project_rules_users_1 ON approval_project_rules_users USING btree (approval_project_rule_id, user_id); -CREATE INDEX index_approval_project_rules_users_2 ON approval_project_rules_users USING btree (user_id); +-- +-- Name: index_ci_builds_on_commit_id_and_type_and_ref; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_approval_project_rules_users_on_project_id ON approval_project_rules_users USING btree (project_id); +ALTER INDEX public.p_ci_builds_commit_id_type_ref_idx ATTACH PARTITION public.index_ci_builds_on_commit_id_and_type_and_ref; -CREATE UNIQUE INDEX index_approval_rule_name_for_code_owners_rule_type ON approval_merge_request_rules USING btree (merge_request_id, name) WHERE ((rule_type = 2) AND (section IS NULL)); -CREATE UNIQUE INDEX index_approval_rule_name_for_sectional_code_owners_rule_type ON approval_merge_request_rules USING btree (merge_request_id, name, section) WHERE (rule_type = 2); +-- +-- Name: index_ci_builds_on_commit_id_artifacts_expired_at_and_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_approval_rule_on_protected_environment_id ON protected_environment_approval_rules USING btree (protected_environment_id); +ALTER INDEX public.p_ci_builds_commit_id_artifacts_expire_at_id_idx ATTACH PARTITION public.index_ci_builds_on_commit_id_artifacts_expired_at_and_id; -CREATE INDEX index_approval_rules_code_owners_rule_type ON approval_merge_request_rules USING btree (merge_request_id) WHERE (rule_type = 2); -CREATE INDEX index_approvals_on_merge_request_id_and_created_at ON approvals USING btree (merge_request_id, created_at); +-- +-- Name: index_ci_builds_on_project_id_and_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_approvals_on_user_id_and_merge_request_id ON approvals USING btree (user_id, merge_request_id); +ALTER INDEX public.p_ci_builds_project_id_id_idx ATTACH PARTITION public.index_ci_builds_on_project_id_and_id; -CREATE INDEX index_approver_groups_on_group_id ON approver_groups USING btree (group_id); -CREATE INDEX index_approver_groups_on_target_id_and_target_type ON approver_groups USING btree (target_id, target_type); +-- +-- Name: index_ci_builds_on_project_id_and_name_and_ref; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_approvers_on_target_id_and_target_type ON approvers USING btree (target_id, target_type); +ALTER INDEX public.p_ci_builds_project_id_name_ref_idx ATTACH PARTITION public.index_ci_builds_on_project_id_and_name_and_ref; -CREATE INDEX index_approvers_on_user_id ON approvers USING btree (user_id); -CREATE UNIQUE INDEX index_atlassian_identities_on_extern_uid ON atlassian_identities USING btree (extern_uid); +-- +-- Name: index_ci_builds_on_resource_group_and_status_and_commit_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_audit_events_external_audit_on_verification_token ON audit_events_external_audit_event_destinations USING btree (verification_token); +ALTER INDEX public.p_ci_builds_resource_group_id_status_commit_id_idx ATTACH PARTITION public.index_ci_builds_on_resource_group_and_status_and_commit_id; -CREATE INDEX index_audit_events_instance_namespace_filters_on_namespace_id ON audit_events_streaming_http_instance_namespace_filters USING btree (namespace_id); -CREATE INDEX index_audit_events_on_entity_id_and_entity_type_and_created_at ON ONLY audit_events USING btree (entity_id, entity_type, created_at, id); +-- +-- Name: index_ci_builds_on_runner_id_and_id_desc; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_audit_events_streaming_event_type_filters_on_group_id ON audit_events_streaming_event_type_filters USING btree (group_id); +ALTER INDEX public.p_ci_builds_runner_id_id_idx ATTACH PARTITION public.index_ci_builds_on_runner_id_and_id_desc; -CREATE INDEX index_audit_events_streaming_headers_on_group_id ON audit_events_streaming_headers USING btree (group_id); -CREATE INDEX index_authentication_events_on_provider ON authentication_events USING btree (provider); +-- +-- Name: index_ci_builds_on_stage_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_authentication_events_on_user_and_ip_address_and_result ON authentication_events USING btree (user_id, ip_address, result); +ALTER INDEX public.p_ci_builds_stage_id_idx ATTACH PARTITION public.index_ci_builds_on_stage_id; -CREATE UNIQUE INDEX index_automation_rules_namespace_id_name ON automation_rules USING btree (namespace_id, lower(name)); -CREATE INDEX index_automation_rules_namespace_id_permanently_disabled ON automation_rules USING btree (namespace_id, permanently_disabled); +-- +-- Name: index_ci_builds_on_status_and_type_and_runner_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_award_emoji_on_awardable_type_and_awardable_id ON award_emoji USING btree (awardable_type, awardable_id); +ALTER INDEX public.p_ci_builds_status_type_runner_id_idx ATTACH PARTITION public.index_ci_builds_on_status_and_type_and_runner_id; -CREATE UNIQUE INDEX index_aws_roles_on_role_external_id ON aws_roles USING btree (role_external_id); -CREATE UNIQUE INDEX index_aws_roles_on_user_id ON aws_roles USING btree (user_id); +-- +-- Name: index_ci_builds_on_updated_at; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_background_migration_jobs_for_partitioning_migrations ON background_migration_jobs USING btree (((arguments ->> 2))) WHERE (class_name = 'Gitlab::Database::PartitioningMigrationHelpers::BackfillPartitionedTable'::text); +ALTER INDEX public.p_ci_builds_updated_at_idx ATTACH PARTITION public.index_ci_builds_on_updated_at; -CREATE INDEX index_background_migration_jobs_on_class_name_and_arguments ON background_migration_jobs USING btree (class_name, arguments); -CREATE INDEX index_background_migration_jobs_on_class_name_and_status_and_id ON background_migration_jobs USING btree (class_name, status, id); +-- +-- Name: index_ci_builds_on_upstream_pipeline_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_badges_on_group_id ON badges USING btree (group_id); +ALTER INDEX public.p_ci_builds_upstream_pipeline_id_idx ATTACH PARTITION public.index_ci_builds_on_upstream_pipeline_id; -CREATE INDEX index_badges_on_project_id ON badges USING btree (project_id); -CREATE INDEX index_batch_trackers_on_tracker_id_status ON bulk_import_batch_trackers USING btree (tracker_id, status); +-- +-- Name: index_ci_builds_on_user_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_batched_background_migrations_on_status ON batched_background_migrations USING btree (status); +ALTER INDEX public.p_ci_builds_user_id_idx ATTACH PARTITION public.index_ci_builds_on_user_id; -CREATE UNIQUE INDEX index_batched_background_migrations_on_unique_configuration ON batched_background_migrations USING btree (job_class_name, table_name, column_name, job_arguments); -CREATE INDEX index_batched_jobs_by_batched_migration_id_and_id ON batched_background_migration_jobs USING btree (batched_background_migration_id, id); +-- +-- Name: index_ci_builds_on_user_id_and_created_at_and_type_eq_ci_build; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_batched_jobs_on_batched_migration_id_and_status ON batched_background_migration_jobs USING btree (batched_background_migration_id, status); +ALTER INDEX public.p_ci_builds_user_id_created_at_idx ATTACH PARTITION public.index_ci_builds_on_user_id_and_created_at_and_type_eq_ci_build; -CREATE UNIQUE INDEX index_batched_migrations_on_gl_schema_and_unique_configuration ON batched_background_migrations USING btree (gitlab_schema, job_class_name, table_name, column_name, job_arguments); -CREATE INDEX index_board_assignees_on_assignee_id ON board_assignees USING btree (assignee_id); +-- +-- Name: index_ci_builds_project_id_and_status_for_live_jobs_partial2; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_board_assignees_on_board_id_and_assignee_id ON board_assignees USING btree (board_id, assignee_id); +ALTER INDEX public.p_ci_builds_project_id_status_idx ATTACH PARTITION public.index_ci_builds_project_id_and_status_for_live_jobs_partial2; -CREATE INDEX index_board_group_recent_visits_on_board_id ON board_group_recent_visits USING btree (board_id); -CREATE INDEX index_board_group_recent_visits_on_group_id ON board_group_recent_visits USING btree (group_id); +-- +-- Name: index_ci_builds_runner_id_running; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_board_group_recent_visits_on_user_group_and_board ON board_group_recent_visits USING btree (user_id, group_id, board_id); +ALTER INDEX public.p_ci_builds_runner_id_idx ATTACH PARTITION public.index_ci_builds_runner_id_running; -CREATE UNIQUE INDEX index_board_labels_on_board_id_and_label_id ON board_labels USING btree (board_id, label_id); -CREATE INDEX index_board_labels_on_label_id ON board_labels USING btree (label_id); +-- +-- Name: index_ci_job_artifacts_expire_at_unlocked_non_trace; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_board_project_recent_visits_on_board_id ON board_project_recent_visits USING btree (board_id); +ALTER INDEX public.p_ci_job_artifacts_expire_at_idx ATTACH PARTITION public.index_ci_job_artifacts_expire_at_unlocked_non_trace; -CREATE INDEX index_board_project_recent_visits_on_project_id ON board_project_recent_visits USING btree (project_id); -CREATE UNIQUE INDEX index_board_project_recent_visits_on_user_project_and_board ON board_project_recent_visits USING btree (user_id, project_id, board_id); +-- +-- Name: index_ci_job_artifacts_for_terraform_reports; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_board_user_preferences_on_board_id ON board_user_preferences USING btree (board_id); +ALTER INDEX public.p_ci_job_artifacts_project_id_id_idx ATTACH PARTITION public.index_ci_job_artifacts_for_terraform_reports; -CREATE UNIQUE INDEX index_board_user_preferences_on_user_id_and_board_id ON board_user_preferences USING btree (user_id, board_id); -CREATE INDEX index_boards_epic_board_labels_on_epic_board_id ON boards_epic_board_labels USING btree (epic_board_id); +-- +-- Name: index_ci_job_artifacts_id_for_terraform_reports; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_boards_epic_board_labels_on_group_id ON boards_epic_board_labels USING btree (group_id); +ALTER INDEX public.p_ci_job_artifacts_id_idx ATTACH PARTITION public.index_ci_job_artifacts_id_for_terraform_reports; -CREATE INDEX index_boards_epic_board_labels_on_label_id ON boards_epic_board_labels USING btree (label_id); -CREATE UNIQUE INDEX index_boards_epic_board_positions_on_epic_board_id_and_epic_id ON boards_epic_board_positions USING btree (epic_board_id, epic_id); +-- +-- Name: index_ci_job_artifacts_on_expire_at_and_job_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_boards_epic_board_positions_on_epic_id ON boards_epic_board_positions USING btree (epic_id); +ALTER INDEX public.p_ci_job_artifacts_expire_at_job_id_idx ATTACH PARTITION public.index_ci_job_artifacts_on_expire_at_and_job_id; -CREATE INDEX index_boards_epic_board_positions_on_group_id ON boards_epic_board_positions USING btree (group_id); -CREATE INDEX index_boards_epic_board_positions_on_scoped_relative_position ON boards_epic_board_positions USING btree (epic_board_id, epic_id, relative_position); +-- +-- Name: index_ci_job_artifacts_on_file_final_path; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_boards_epic_board_recent_visits_on_epic_board_id ON boards_epic_board_recent_visits USING btree (epic_board_id); +ALTER INDEX public.p_ci_job_artifacts_file_final_path_idx ATTACH PARTITION public.index_ci_job_artifacts_on_file_final_path; -CREATE INDEX index_boards_epic_board_recent_visits_on_group_id ON boards_epic_board_recent_visits USING btree (group_id); -CREATE INDEX index_boards_epic_boards_on_group_id ON boards_epic_boards USING btree (group_id); +-- +-- Name: index_ci_job_artifacts_on_file_store; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_boards_epic_list_user_preferences_on_epic_list_id ON boards_epic_list_user_preferences USING btree (epic_list_id); +ALTER INDEX public.p_ci_job_artifacts_file_store_idx ATTACH PARTITION public.index_ci_job_artifacts_on_file_store; -CREATE INDEX index_boards_epic_lists_on_epic_board_id ON boards_epic_lists USING btree (epic_board_id); -CREATE UNIQUE INDEX index_boards_epic_lists_on_epic_board_id_and_label_id ON boards_epic_lists USING btree (epic_board_id, label_id) WHERE (list_type = 1); +-- +-- Name: index_ci_job_artifacts_on_file_type_for_devops_adoption; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_boards_epic_lists_on_group_id ON boards_epic_lists USING btree (group_id); +ALTER INDEX public.p_ci_job_artifacts_file_type_project_id_created_at_idx ATTACH PARTITION public.index_ci_job_artifacts_on_file_type_for_devops_adoption; -CREATE INDEX index_boards_epic_lists_on_label_id ON boards_epic_lists USING btree (label_id); -CREATE UNIQUE INDEX index_boards_epic_user_preferences_on_board_user_epic_unique ON boards_epic_user_preferences USING btree (board_id, user_id, epic_id); +-- +-- Name: index_ci_job_artifacts_on_id_project_id_and_created_at; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_boards_epic_user_preferences_on_epic_id ON boards_epic_user_preferences USING btree (epic_id); +ALTER INDEX public.p_ci_job_artifacts_project_id_created_at_id_idx ATTACH PARTITION public.index_ci_job_artifacts_on_id_project_id_and_created_at; -CREATE INDEX index_boards_epic_user_preferences_on_group_id ON boards_epic_user_preferences USING btree (group_id); -CREATE INDEX index_boards_epic_user_preferences_on_user_id ON boards_epic_user_preferences USING btree (user_id); +-- +-- Name: index_ci_job_artifacts_on_id_project_id_and_file_type; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_boards_on_group_id ON boards USING btree (group_id); +ALTER INDEX public.p_ci_job_artifacts_project_id_file_type_id_idx ATTACH PARTITION public.index_ci_job_artifacts_on_id_project_id_and_file_type; -CREATE INDEX index_boards_on_iteration_cadence_id ON boards USING btree (iteration_cadence_id); -CREATE INDEX index_boards_on_iteration_id ON boards USING btree (iteration_id); +-- +-- Name: index_ci_job_artifacts_on_partition_id_job_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_boards_on_milestone_id ON boards USING btree (milestone_id); +ALTER INDEX public.p_ci_job_artifacts_partition_id_job_id_idx ATTACH PARTITION public.index_ci_job_artifacts_on_partition_id_job_id; -CREATE INDEX index_boards_on_project_id ON boards USING btree (project_id); -CREATE UNIQUE INDEX index_broadcast_dismissals_on_user_id_and_broadcast_message_id ON user_broadcast_message_dismissals USING btree (user_id, broadcast_message_id); +-- +-- Name: index_ci_job_artifacts_on_project_id_and_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_broadcast_message_on_ends_at_and_broadcast_type_and_id ON broadcast_messages USING btree (ends_at, broadcast_type, id); +ALTER INDEX public.p_ci_job_artifacts_project_id_id_idx1 ATTACH PARTITION public.index_ci_job_artifacts_on_project_id_and_id; -CREATE INDEX index_bulk_import_batch_trackers_on_tracker_id_and_updated_at ON bulk_import_batch_trackers USING btree (tracker_id, updated_at); -CREATE INDEX index_bulk_import_configurations_on_bulk_import_id ON bulk_import_configurations USING btree (bulk_import_id); +-- +-- Name: index_ci_job_artifacts_on_project_id_for_security_reports; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_bulk_import_entities_for_stale_status ON bulk_import_entities USING btree (updated_at, id) WHERE (status = ANY (ARRAY[0, 1])); +ALTER INDEX public.p_ci_job_artifacts_project_id_idx1 ATTACH PARTITION public.index_ci_job_artifacts_on_project_id_for_security_reports; -CREATE INDEX index_bulk_import_entities_on_bulk_import_id_and_status ON bulk_import_entities USING btree (bulk_import_id, status); -CREATE INDEX index_bulk_import_entities_on_namespace_id ON bulk_import_entities USING btree (namespace_id); +-- +-- Name: index_ci_pipelines_for_ondemand_dast_scans; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_bulk_import_entities_on_parent_id ON bulk_import_entities USING btree (parent_id); +ALTER INDEX public.p_ci_pipelines_id_idx ATTACH PARTITION public.index_ci_pipelines_for_ondemand_dast_scans; -CREATE INDEX index_bulk_import_entities_on_project_id ON bulk_import_entities USING btree (project_id); -CREATE INDEX index_bulk_import_export_uploads_on_export_id ON bulk_import_export_uploads USING btree (export_id); +-- +-- Name: index_ci_pipelines_on_auto_canceled_by_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_bulk_import_exports_on_group_id ON bulk_import_exports USING btree (group_id); +ALTER INDEX public.p_ci_pipelines_auto_canceled_by_id_idx ATTACH PARTITION public.index_ci_pipelines_on_auto_canceled_by_id; -CREATE INDEX index_bulk_import_exports_on_project_id ON bulk_import_exports USING btree (project_id); -CREATE INDEX index_bulk_import_exports_on_user_id ON bulk_import_exports USING btree (user_id); +-- +-- Name: index_ci_pipelines_on_ci_ref_id_and_more; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_bulk_import_failures_on_bulk_import_entity_id ON bulk_import_failures USING btree (bulk_import_entity_id); +ALTER INDEX public.p_ci_pipelines_ci_ref_id_id_source_status_idx ATTACH PARTITION public.index_ci_pipelines_on_ci_ref_id_and_more; -CREATE INDEX index_bulk_import_failures_on_correlation_id_value ON bulk_import_failures USING btree (correlation_id_value); -CREATE INDEX index_bulk_imports_on_updated_at_and_id_for_stale_status ON bulk_imports USING btree (updated_at, id) WHERE (status = ANY (ARRAY[0, 1])); +-- +-- Name: index_ci_pipelines_on_external_pull_request_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_bulk_imports_on_user_id ON bulk_imports USING btree (user_id); +ALTER INDEX public.p_ci_pipelines_external_pull_request_id_idx ATTACH PARTITION public.index_ci_pipelines_on_external_pull_request_id; -CREATE INDEX index_catalog_resource_components_on_catalog_resource_id ON catalog_resource_components USING btree (catalog_resource_id); -CREATE INDEX index_catalog_resource_components_on_project_id ON catalog_resource_components USING btree (project_id); +-- +-- Name: index_ci_pipelines_on_merge_request_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_catalog_resource_components_on_version_id ON catalog_resource_components USING btree (version_id); +ALTER INDEX public.p_ci_pipelines_merge_request_id_idx ATTACH PARTITION public.index_ci_pipelines_on_merge_request_id; -CREATE INDEX index_catalog_resource_versions_on_project_id ON catalog_resource_versions USING btree (project_id); -CREATE INDEX index_catalog_resource_versions_on_published_by_id ON catalog_resource_versions USING btree (published_by_id); +-- +-- Name: index_ci_pipelines_on_pipeline_schedule_id_and_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_catalog_resource_versions_on_release_id ON catalog_resource_versions USING btree (release_id); +ALTER INDEX public.p_ci_pipelines_pipeline_schedule_id_id_idx ATTACH PARTITION public.index_ci_pipelines_on_pipeline_schedule_id_and_id; -CREATE INDEX index_catalog_resource_versions_on_resource_id_and_released_at ON catalog_resource_versions USING btree (catalog_resource_id, released_at); -CREATE INDEX index_catalog_resources_on_last_30_day_usage_count ON catalog_resources USING btree (last_30_day_usage_count) WHERE (state = 1); +-- +-- Name: index_ci_pipelines_on_project_id_and_id_desc; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_catalog_resources_on_last_30_day_usage_count_updated_at ON catalog_resources USING btree (last_30_day_usage_count_updated_at); +ALTER INDEX public.p_ci_pipelines_project_id_id_idx ATTACH PARTITION public.index_ci_pipelines_on_project_id_and_id_desc; -CREATE UNIQUE INDEX index_catalog_resources_on_project_id ON catalog_resources USING btree (project_id); -CREATE INDEX index_catalog_resources_on_search_vector ON catalog_resources USING gin (search_vector); +-- +-- Name: index_ci_pipelines_on_project_id_and_iid_and_partition_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_catalog_resources_on_state ON catalog_resources USING btree (state); +ALTER INDEX public.p_ci_pipelines_project_id_iid_partition_id_idx ATTACH PARTITION public.index_ci_pipelines_on_project_id_and_iid_and_partition_id; -CREATE UNIQUE INDEX index_catalog_verified_namespaces_on_namespace_id ON catalog_verified_namespaces USING btree (namespace_id); -CREATE INDEX index_chat_names_on_team_id_and_chat_id ON chat_names USING btree (team_id, chat_id); +-- +-- Name: index_ci_pipelines_on_project_id_and_ref_and_status_and_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_chat_names_on_user_id ON chat_names USING btree (user_id); +ALTER INDEX public.p_ci_pipelines_project_id_ref_status_id_idx ATTACH PARTITION public.index_ci_pipelines_on_project_id_and_ref_and_status_and_id; -CREATE UNIQUE INDEX index_chat_teams_on_namespace_id ON chat_teams USING btree (namespace_id); -CREATE UNIQUE INDEX index_ci_build_needs_on_build_id_and_name ON ci_build_needs USING btree (build_id, name); +-- +-- Name: index_ci_pipelines_on_project_id_and_sha; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_ci_build_needs_on_partition_id_build_id ON ci_build_needs USING btree (partition_id, build_id); +ALTER INDEX public.p_ci_pipelines_project_id_sha_idx ATTACH PARTITION public.index_ci_pipelines_on_project_id_and_sha; -CREATE UNIQUE INDEX index_ci_build_pending_states_on_build_id ON ci_build_pending_states USING btree (build_id); -CREATE UNIQUE INDEX index_ci_build_report_results_on_partition_id_build_id ON ci_build_report_results USING btree (partition_id, build_id); +-- +-- Name: index_ci_pipelines_on_project_id_and_source; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_ci_build_report_results_on_project_id ON ci_build_report_results USING btree (project_id); +ALTER INDEX public.p_ci_pipelines_project_id_source_idx ATTACH PARTITION public.index_ci_pipelines_on_project_id_and_source; -CREATE UNIQUE INDEX index_ci_build_trace_chunks_on_build_id_and_chunk_index ON ci_build_trace_chunks USING btree (build_id, chunk_index); -CREATE INDEX index_ci_build_trace_chunks_on_partition_id_build_id ON ci_build_trace_chunks USING btree (partition_id, build_id); +-- +-- Name: index_ci_pipelines_on_project_id_and_status_and_config_source; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX p_ci_builds_metadata_build_id_idx ON ONLY p_ci_builds_metadata USING btree (build_id) WHERE (has_exposed_artifacts IS TRUE); +ALTER INDEX public.p_ci_pipelines_project_id_status_config_source_idx ATTACH PARTITION public.index_ci_pipelines_on_project_id_and_status_and_config_source; -CREATE INDEX index_ci_builds_metadata_on_build_id_and_has_exposed_artifacts ON ci_builds_metadata USING btree (build_id) WHERE (has_exposed_artifacts IS TRUE); -CREATE INDEX p_ci_builds_metadata_build_id_id_idx ON ONLY p_ci_builds_metadata USING btree (build_id) INCLUDE (id) WHERE (interruptible = true); +-- +-- Name: index_ci_pipelines_on_project_id_and_status_and_created_at; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_ci_builds_metadata_on_build_id_and_id_and_interruptible ON ci_builds_metadata USING btree (build_id) INCLUDE (id) WHERE (interruptible = true); +ALTER INDEX public.p_ci_pipelines_project_id_status_created_at_idx ATTACH PARTITION public.index_ci_pipelines_on_project_id_and_status_and_created_at; -CREATE UNIQUE INDEX p_ci_builds_metadata_build_id_partition_id_idx ON ONLY p_ci_builds_metadata USING btree (build_id, partition_id); -CREATE UNIQUE INDEX index_ci_builds_metadata_on_build_id_partition_id_unique ON ci_builds_metadata USING btree (build_id, partition_id); +-- +-- Name: index_ci_pipelines_on_project_id_and_status_and_updated_at; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX p_ci_builds_metadata_project_id_idx ON ONLY p_ci_builds_metadata USING btree (project_id); +ALTER INDEX public.p_ci_pipelines_project_id_status_updated_at_idx ATTACH PARTITION public.index_ci_pipelines_on_project_id_and_status_and_updated_at; -CREATE INDEX index_ci_builds_metadata_on_project_id ON ci_builds_metadata USING btree (project_id); -CREATE INDEX p_ci_builds_auto_canceled_by_id_idx ON ONLY p_ci_builds USING btree (auto_canceled_by_id) WHERE (auto_canceled_by_id IS NOT NULL); +-- +-- Name: index_ci_pipelines_on_project_id_and_user_id_and_status_and_ref; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_ci_builds_on_auto_canceled_by_id ON ci_builds USING btree (auto_canceled_by_id) WHERE (auto_canceled_by_id IS NOT NULL); +ALTER INDEX public.p_ci_pipelines_project_id_user_id_status_ref_idx ATTACH PARTITION public.index_ci_pipelines_on_project_id_and_user_id_and_status_and_ref; -CREATE INDEX p_ci_builds_commit_id_stage_idx_created_at_idx ON ONLY p_ci_builds USING btree (commit_id, stage_idx, created_at); -CREATE INDEX index_ci_builds_on_commit_id_and_stage_idx_and_created_at ON ci_builds USING btree (commit_id, stage_idx, created_at); +-- +-- Name: index_ci_pipelines_on_project_idandrefandiddesc; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX p_ci_builds_commit_id_status_type_idx ON ONLY p_ci_builds USING btree (commit_id, status, type); +ALTER INDEX public.p_ci_pipelines_project_id_ref_id_idx ATTACH PARTITION public.index_ci_pipelines_on_project_idandrefandiddesc; -CREATE INDEX index_ci_builds_on_commit_id_and_status_and_type ON ci_builds USING btree (commit_id, status, type); -CREATE INDEX p_ci_builds_commit_id_type_name_ref_idx ON ONLY p_ci_builds USING btree (commit_id, type, name, ref); +-- +-- Name: index_ci_pipelines_on_status_and_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_ci_builds_on_commit_id_and_type_and_name_and_ref ON ci_builds USING btree (commit_id, type, name, ref); +ALTER INDEX public.p_ci_pipelines_status_id_idx ATTACH PARTITION public.index_ci_pipelines_on_status_and_id; -CREATE INDEX p_ci_builds_commit_id_type_ref_idx ON ONLY p_ci_builds USING btree (commit_id, type, ref); -CREATE INDEX index_ci_builds_on_commit_id_and_type_and_ref ON ci_builds USING btree (commit_id, type, ref); +-- +-- Name: index_ci_pipelines_on_user_id_and_created_at_and_config_source; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX p_ci_builds_commit_id_artifacts_expire_at_id_idx ON ONLY p_ci_builds USING btree (commit_id, artifacts_expire_at, id) WHERE (((type)::text = 'Ci::Build'::text) AND ((retried = false) OR (retried IS NULL)) AND ((name)::text = ANY (ARRAY[('sast'::character varying)::text, ('secret_detection'::character varying)::text, ('dependency_scanning'::character varying)::text, ('container_scanning'::character varying)::text, ('dast'::character varying)::text]))); +ALTER INDEX public.p_ci_pipelines_user_id_created_at_config_source_idx ATTACH PARTITION public.index_ci_pipelines_on_user_id_and_created_at_and_config_source; -CREATE INDEX index_ci_builds_on_commit_id_artifacts_expired_at_and_id ON ci_builds USING btree (commit_id, artifacts_expire_at, id) WHERE (((type)::text = 'Ci::Build'::text) AND ((retried = false) OR (retried IS NULL)) AND ((name)::text = ANY (ARRAY[('sast'::character varying)::text, ('secret_detection'::character varying)::text, ('dependency_scanning'::character varying)::text, ('container_scanning'::character varying)::text, ('dast'::character varying)::text]))); -CREATE INDEX p_ci_builds_project_id_id_idx ON ONLY p_ci_builds USING btree (project_id, id); +-- +-- Name: index_ci_pipelines_on_user_id_and_created_at_and_source; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_ci_builds_on_project_id_and_id ON ci_builds USING btree (project_id, id); +ALTER INDEX public.p_ci_pipelines_user_id_created_at_source_idx ATTACH PARTITION public.index_ci_pipelines_on_user_id_and_created_at_and_source; -CREATE INDEX p_ci_builds_project_id_name_ref_idx ON ONLY p_ci_builds USING btree (project_id, name, ref) WHERE (((type)::text = 'Ci::Build'::text) AND ((status)::text = 'success'::text) AND ((retried = false) OR (retried IS NULL))); -CREATE INDEX index_ci_builds_on_project_id_and_name_and_ref ON ci_builds USING btree (project_id, name, ref) WHERE (((type)::text = 'Ci::Build'::text) AND ((status)::text = 'success'::text) AND ((retried = false) OR (retried IS NULL))); +-- +-- Name: index_ci_pipelines_on_user_id_and_id_and_cancelable_status; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX p_ci_builds_resource_group_id_status_commit_id_idx ON ONLY p_ci_builds USING btree (resource_group_id, status, commit_id) WHERE (resource_group_id IS NOT NULL); +ALTER INDEX public.p_ci_pipelines_user_id_id_idx ATTACH PARTITION public.index_ci_pipelines_on_user_id_and_id_and_cancelable_status; -CREATE INDEX index_ci_builds_on_resource_group_and_status_and_commit_id ON ci_builds USING btree (resource_group_id, status, commit_id) WHERE (resource_group_id IS NOT NULL); -CREATE INDEX p_ci_builds_runner_id_id_idx ON ONLY p_ci_builds USING btree (runner_id, id DESC); +-- +-- Name: index_ci_pipelines_on_user_id_and_id_desc_and_user_not_verified; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_ci_builds_on_runner_id_and_id_desc ON ci_builds USING btree (runner_id, id DESC); +ALTER INDEX public.p_ci_pipelines_user_id_id_idx1 ATTACH PARTITION public.index_ci_pipelines_on_user_id_and_id_desc_and_user_not_verified; -CREATE INDEX p_ci_builds_stage_id_idx ON ONLY p_ci_builds USING btree (stage_id); -CREATE INDEX index_ci_builds_on_stage_id ON ci_builds USING btree (stage_id); +-- +-- Name: index_ci_stages_on_pipeline_id_and_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX p_ci_builds_status_type_runner_id_idx ON ONLY p_ci_builds USING btree (status, type, runner_id); +ALTER INDEX public.p_ci_stages_pipeline_id_id_idx ATTACH PARTITION public.index_ci_stages_on_pipeline_id_and_id; -CREATE INDEX index_ci_builds_on_status_and_type_and_runner_id ON ci_builds USING btree (status, type, runner_id); -CREATE INDEX p_ci_builds_updated_at_idx ON ONLY p_ci_builds USING btree (updated_at); +-- +-- Name: index_ci_stages_on_pipeline_id_and_position; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_ci_builds_on_updated_at ON ci_builds USING btree (updated_at); +ALTER INDEX public.p_ci_stages_pipeline_id_position_idx ATTACH PARTITION public.index_ci_stages_on_pipeline_id_and_position; -CREATE INDEX p_ci_builds_upstream_pipeline_id_idx ON ONLY p_ci_builds USING btree (upstream_pipeline_id) WHERE (upstream_pipeline_id IS NOT NULL); -CREATE INDEX index_ci_builds_on_upstream_pipeline_id ON ci_builds USING btree (upstream_pipeline_id) WHERE (upstream_pipeline_id IS NOT NULL); +-- +-- Name: index_ci_stages_on_pipeline_id_name_partition_id_unique; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX p_ci_builds_user_id_idx ON ONLY p_ci_builds USING btree (user_id); +ALTER INDEX public.p_ci_stages_pipeline_id_name_partition_id_idx ATTACH PARTITION public.index_ci_stages_on_pipeline_id_name_partition_id_unique; -CREATE INDEX index_ci_builds_on_user_id ON ci_builds USING btree (user_id); -CREATE INDEX p_ci_builds_user_id_created_at_idx ON ONLY p_ci_builds USING btree (user_id, created_at) WHERE ((type)::text = 'Ci::Build'::text); +-- +-- Name: index_ci_stages_on_project_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_ci_builds_on_user_id_and_created_at_and_type_eq_ci_build ON ci_builds USING btree (user_id, created_at) WHERE ((type)::text = 'Ci::Build'::text); +ALTER INDEX public.p_ci_stages_project_id_idx ATTACH PARTITION public.index_ci_stages_on_project_id; -CREATE INDEX p_ci_builds_project_id_status_idx ON ONLY p_ci_builds USING btree (project_id, status) WHERE (((type)::text = 'Ci::Build'::text) AND ((status)::text = ANY (ARRAY[('running'::character varying)::text, ('pending'::character varying)::text, ('created'::character varying)::text]))); -CREATE INDEX index_ci_builds_project_id_and_status_for_live_jobs_partial2 ON ci_builds USING btree (project_id, status) WHERE (((type)::text = 'Ci::Build'::text) AND ((status)::text = ANY (ARRAY[('running'::character varying)::text, ('pending'::character varying)::text, ('created'::character varying)::text]))); +-- +-- Name: index_partial_ci_builds_on_user_id_name_parser_features; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX p_ci_builds_runner_id_idx ON ONLY p_ci_builds USING btree (runner_id) WHERE (((status)::text = 'running'::text) AND ((type)::text = 'Ci::Build'::text)); +ALTER INDEX public.p_ci_builds_user_id_name_idx ATTACH PARTITION public.index_partial_ci_builds_on_user_id_name_parser_features; -CREATE INDEX index_ci_builds_runner_id_running ON ci_builds USING btree (runner_id) WHERE (((status)::text = 'running'::text) AND ((type)::text = 'Ci::Build'::text)); -CREATE UNIQUE INDEX index_ci_builds_runner_session_on_build_id ON ci_builds_runner_session USING btree (build_id); +-- +-- Name: index_pipeline_variables_on_pipeline_id_key_partition_id_unique; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_ci_builds_runner_session_on_partition_id_build_id ON ci_builds_runner_session USING btree (partition_id, build_id); +ALTER INDEX public.p_ci_pipeline_variables_pipeline_id_key_partition_id_idx ATTACH PARTITION public.index_pipeline_variables_on_pipeline_id_key_partition_id_unique; -CREATE INDEX index_ci_daily_build_group_report_results_on_group_id ON ci_daily_build_group_report_results USING btree (group_id); -CREATE INDEX index_ci_daily_build_group_report_results_on_last_pipeline_id ON ci_daily_build_group_report_results USING btree (last_pipeline_id); +-- +-- Name: index_secure_ci_builds_on_user_id_name_created_at; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_ci_daily_build_group_report_results_on_project_and_date ON ci_daily_build_group_report_results USING btree (project_id, date DESC) WHERE ((default_branch = true) AND ((data -> 'coverage'::text) IS NOT NULL)); +ALTER INDEX public.p_ci_builds_user_id_name_created_at_idx ATTACH PARTITION public.index_secure_ci_builds_on_user_id_name_created_at; -CREATE INDEX index_ci_deleted_objects_on_pick_up_at ON ci_deleted_objects USING btree (pick_up_at); -CREATE INDEX index_ci_finished_build_ch_sync_events_for_partitioned_query ON ONLY p_ci_finished_build_ch_sync_events USING btree (((build_id % (100)::bigint)), build_id) WHERE (processed = false); +-- +-- Name: index_security_ci_builds_on_name_and_id_parser_features; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_ci_finished_pipeline_ch_sync_events_for_partitioned_query ON ONLY p_ci_finished_pipeline_ch_sync_events USING btree (((pipeline_id % (100)::bigint)), pipeline_id) WHERE (processed = false); +ALTER INDEX public.p_ci_builds_name_id_idx ATTACH PARTITION public.index_security_ci_builds_on_name_and_id_parser_features; -CREATE INDEX index_ci_freeze_periods_on_project_id ON ci_freeze_periods USING btree (project_id); -CREATE UNIQUE INDEX index_ci_group_variables_on_group_id_and_key_and_environment ON ci_group_variables USING btree (group_id, key, environment_scope); +-- +-- Name: partial_index_ci_builds_on_scheduled_at_with_scheduled_jobs; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_ci_instance_variables_on_key ON ci_instance_variables USING btree (key); +ALTER INDEX public.p_ci_builds_scheduled_at_idx ATTACH PARTITION public.partial_index_ci_builds_on_scheduled_at_with_scheduled_jobs; -CREATE INDEX index_ci_job_artifact_states_on_job_artifact_id_partition_id ON ci_job_artifact_states USING btree (job_artifact_id, partition_id); -CREATE INDEX p_ci_job_artifacts_expire_at_idx ON ONLY p_ci_job_artifacts USING btree (expire_at) WHERE ((locked = 0) AND (file_type <> 3) AND (expire_at IS NOT NULL)); +-- +-- Name: tmp_index_ci_job_artifacts_on_expire_at_where_locked_unknown; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX index_ci_job_artifacts_expire_at_unlocked_non_trace ON ci_job_artifacts USING btree (expire_at) WHERE ((locked = 0) AND (file_type <> 3) AND (expire_at IS NOT NULL)); +ALTER INDEX public.p_ci_job_artifacts_expire_at_job_id_idx1 ATTACH PARTITION public.tmp_index_ci_job_artifacts_on_expire_at_where_locked_unknown; -CREATE INDEX p_ci_job_artifacts_project_id_id_idx ON ONLY p_ci_job_artifacts USING btree (project_id, id) WHERE (file_type = 18); -CREATE INDEX index_ci_job_artifacts_for_terraform_reports ON ci_job_artifacts USING btree (project_id, id) WHERE (file_type = 18); +-- +-- Name: unique_ci_builds_token_encrypted_and_partition_id; Type: INDEX ATTACH; Schema: public; Owner: - +-- -CREATE INDEX p_ci_job_artifacts_id_idx ON ONLY p_ci_job_artifacts USING btree (id) WHERE (file_type = 18); +ALTER INDEX public.p_ci_builds_token_encrypted_partition_id_idx ATTACH PARTITION public.unique_ci_builds_token_encrypted_and_partition_id; -CREATE INDEX index_ci_job_artifacts_id_for_terraform_reports ON ci_job_artifacts USING btree (id) WHERE (file_type = 18); -CREATE INDEX p_ci_job_artifacts_expire_at_job_id_idx ON ONLY p_ci_job_artifacts USING btree (expire_at, job_id); +-- +-- Name: p_ci_build_tags assign_p_ci_build_tags_id_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_job_artifacts_on_expire_at_and_job_id ON ci_job_artifacts USING btree (expire_at, job_id); +CREATE TRIGGER assign_p_ci_build_tags_id_trigger BEFORE INSERT ON public.p_ci_build_tags FOR EACH ROW EXECUTE FUNCTION public.assign_p_ci_build_tags_id_value(); -CREATE INDEX p_ci_job_artifacts_file_final_path_idx ON ONLY p_ci_job_artifacts USING btree (file_final_path) WHERE (file_final_path IS NOT NULL); -CREATE INDEX index_ci_job_artifacts_on_file_final_path ON ci_job_artifacts USING btree (file_final_path) WHERE (file_final_path IS NOT NULL); +-- +-- Name: p_ci_builds_execution_configs assign_p_ci_builds_execution_configs_id_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX p_ci_job_artifacts_file_store_idx ON ONLY p_ci_job_artifacts USING btree (file_store); +CREATE TRIGGER assign_p_ci_builds_execution_configs_id_trigger BEFORE INSERT ON public.p_ci_builds_execution_configs FOR EACH ROW EXECUTE FUNCTION public.assign_p_ci_builds_execution_configs_id_value(); -CREATE INDEX index_ci_job_artifacts_on_file_store ON ci_job_artifacts USING btree (file_store); -CREATE INDEX p_ci_job_artifacts_file_type_project_id_created_at_idx ON ONLY p_ci_job_artifacts USING btree (file_type, project_id, created_at) WHERE (file_type = ANY (ARRAY[5, 6, 8, 23])); +-- +-- Name: p_ci_builds assign_p_ci_builds_id_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_job_artifacts_on_file_type_for_devops_adoption ON ci_job_artifacts USING btree (file_type, project_id, created_at) WHERE (file_type = ANY (ARRAY[5, 6, 8, 23])); +CREATE TRIGGER assign_p_ci_builds_id_trigger BEFORE INSERT ON public.p_ci_builds FOR EACH ROW EXECUTE FUNCTION public.assign_p_ci_builds_id_value(); -CREATE INDEX p_ci_job_artifacts_project_id_created_at_id_idx ON ONLY p_ci_job_artifacts USING btree (project_id, created_at, id); -CREATE INDEX index_ci_job_artifacts_on_id_project_id_and_created_at ON ci_job_artifacts USING btree (project_id, created_at, id); +-- +-- Name: p_ci_job_annotations assign_p_ci_job_annotations_id_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX p_ci_job_artifacts_project_id_file_type_id_idx ON ONLY p_ci_job_artifacts USING btree (project_id, file_type, id); +CREATE TRIGGER assign_p_ci_job_annotations_id_trigger BEFORE INSERT ON public.p_ci_job_annotations FOR EACH ROW EXECUTE FUNCTION public.assign_p_ci_job_annotations_id_value(); -CREATE INDEX index_ci_job_artifacts_on_id_project_id_and_file_type ON ci_job_artifacts USING btree (project_id, file_type, id); -CREATE INDEX p_ci_job_artifacts_partition_id_job_id_idx ON ONLY p_ci_job_artifacts USING btree (partition_id, job_id); +-- +-- Name: p_ci_job_artifacts assign_p_ci_job_artifacts_id_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_job_artifacts_on_partition_id_job_id ON ci_job_artifacts USING btree (partition_id, job_id); +CREATE TRIGGER assign_p_ci_job_artifacts_id_trigger BEFORE INSERT ON public.p_ci_job_artifacts FOR EACH ROW EXECUTE FUNCTION public.assign_p_ci_job_artifacts_id_value(); -CREATE INDEX p_ci_job_artifacts_project_id_id_idx1 ON ONLY p_ci_job_artifacts USING btree (project_id, id); -CREATE INDEX index_ci_job_artifacts_on_project_id_and_id ON ci_job_artifacts USING btree (project_id, id); +-- +-- Name: p_ci_pipeline_variables assign_p_ci_pipeline_variables_id_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX p_ci_job_artifacts_project_id_idx1 ON ONLY p_ci_job_artifacts USING btree (project_id) WHERE (file_type = ANY (ARRAY[5, 6, 7, 8])); +CREATE TRIGGER assign_p_ci_pipeline_variables_id_trigger BEFORE INSERT ON public.p_ci_pipeline_variables FOR EACH ROW EXECUTE FUNCTION public.assign_p_ci_pipeline_variables_id_value(); -CREATE INDEX index_ci_job_artifacts_on_project_id_for_security_reports ON ci_job_artifacts USING btree (project_id) WHERE (file_type = ANY (ARRAY[5, 6, 7, 8])); -CREATE INDEX index_ci_job_token_group_scope_links_on_added_by_id ON ci_job_token_group_scope_links USING btree (added_by_id); +-- +-- Name: p_ci_stages assign_p_ci_stages_id_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_job_token_group_scope_links_on_target_group_id ON ci_job_token_group_scope_links USING btree (target_group_id); +CREATE TRIGGER assign_p_ci_stages_id_trigger BEFORE INSERT ON public.p_ci_stages FOR EACH ROW EXECUTE FUNCTION public.assign_p_ci_stages_id_value(); -CREATE INDEX index_ci_job_token_project_scope_links_on_added_by_id ON ci_job_token_project_scope_links USING btree (added_by_id); -CREATE INDEX index_ci_job_token_project_scope_links_on_target_project_id ON ci_job_token_project_scope_links USING btree (target_project_id); +-- +-- Name: zoekt_tasks assign_zoekt_tasks_id_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_job_variables_on_job_id ON ci_job_variables USING btree (job_id); +CREATE TRIGGER assign_zoekt_tasks_id_trigger BEFORE INSERT ON public.zoekt_tasks FOR EACH ROW EXECUTE FUNCTION public.assign_zoekt_tasks_id_value(); -CREATE UNIQUE INDEX index_ci_job_variables_on_key_and_job_id ON ci_job_variables USING btree (key, job_id); -CREATE INDEX index_ci_job_variables_on_partition_id_job_id ON ci_job_variables USING btree (partition_id, job_id); +-- +-- Name: chat_names chat_names_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_job_variables_on_project_id ON ci_job_variables USING btree (project_id); +CREATE TRIGGER chat_names_loose_fk_trigger AFTER DELETE ON public.chat_names REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); -CREATE INDEX index_ci_minutes_additional_packs_on_namespace_id_purchase_xid ON ci_minutes_additional_packs USING btree (namespace_id, purchase_xid); -CREATE UNIQUE INDEX index_ci_namespace_mirrors_on_namespace_id ON ci_namespace_mirrors USING btree (namespace_id); +-- +-- Name: ci_builds ci_builds_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_namespace_mirrors_on_traversal_ids_unnest ON ci_namespace_mirrors USING btree ((traversal_ids[1]), (traversal_ids[2]), (traversal_ids[3]), (traversal_ids[4])) INCLUDE (traversal_ids, namespace_id); +CREATE TRIGGER ci_builds_loose_fk_trigger AFTER DELETE ON public.ci_builds REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); -CREATE UNIQUE INDEX index_ci_namespace_monthly_usages_on_namespace_id_and_date ON ci_namespace_monthly_usages USING btree (namespace_id, date); -CREATE UNIQUE INDEX index_ci_partitions_on_current_status ON ci_partitions USING btree (status) WHERE (status = 2); +-- +-- Name: ci_pipelines ci_pipelines_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_pending_builds_id_on_protected_partial ON ci_pending_builds USING btree (id) WHERE (protected = true); +CREATE TRIGGER ci_pipelines_loose_fk_trigger AFTER DELETE ON public.ci_pipelines REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); -CREATE UNIQUE INDEX index_ci_pending_builds_on_build_id ON ci_pending_builds USING btree (build_id); -CREATE INDEX index_ci_pending_builds_on_namespace_id ON ci_pending_builds USING btree (namespace_id); +-- +-- Name: ci_runner_machines ci_runner_machines_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_ci_pending_builds_on_partition_id_build_id ON ci_pending_builds USING btree (partition_id, build_id); +CREATE TRIGGER ci_runner_machines_loose_fk_trigger AFTER DELETE ON public.ci_runner_machines REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); -CREATE INDEX index_ci_pending_builds_on_plan_id ON ci_pending_builds USING btree (plan_id); -CREATE INDEX index_ci_pending_builds_on_project_id ON ci_pending_builds USING btree (project_id); +-- +-- Name: ci_runners ci_runners_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_pending_builds_on_tag_ids ON ci_pending_builds USING btree (tag_ids) WHERE (cardinality(tag_ids) > 0); +CREATE TRIGGER ci_runners_loose_fk_trigger AFTER DELETE ON public.ci_runners REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); -CREATE INDEX index_ci_pipeline_artifacts_failed_verification ON ci_pipeline_artifacts USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); -CREATE INDEX index_ci_pipeline_artifacts_needs_verification ON ci_pipeline_artifacts USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); +-- +-- Name: clusters clusters_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_pipeline_artifacts_on_expire_at ON ci_pipeline_artifacts USING btree (expire_at); +CREATE TRIGGER clusters_loose_fk_trigger AFTER DELETE ON public.clusters REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); -CREATE UNIQUE INDEX index_ci_pipeline_artifacts_on_pipeline_id_and_file_type ON ci_pipeline_artifacts USING btree (pipeline_id, file_type); -CREATE INDEX index_ci_pipeline_artifacts_on_project_id ON ci_pipeline_artifacts USING btree (project_id); +-- +-- Name: p_ci_pipelines gitlab_schema_write_trigger_for_p_ci_pipelines; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_pipeline_artifacts_pending_verification ON ci_pipeline_artifacts USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); +CREATE TRIGGER gitlab_schema_write_trigger_for_p_ci_pipelines BEFORE INSERT OR DELETE OR UPDATE OR TRUNCATE ON public.p_ci_pipelines FOR EACH STATEMENT EXECUTE FUNCTION public.gitlab_schema_prevent_write(); -CREATE INDEX index_ci_pipeline_artifacts_verification_state ON ci_pipeline_artifacts USING btree (verification_state); -CREATE INDEX index_ci_pipeline_chat_data_on_chat_name_id ON ci_pipeline_chat_data USING btree (chat_name_id); +-- +-- Name: merge_requests merge_requests_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_ci_pipeline_chat_data_on_pipeline_id ON ci_pipeline_chat_data USING btree (pipeline_id); +CREATE TRIGGER merge_requests_loose_fk_trigger AFTER DELETE ON public.merge_requests REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); -CREATE INDEX index_ci_pipeline_messages_on_pipeline_id ON ci_pipeline_messages USING btree (pipeline_id); -CREATE INDEX index_ci_pipeline_metadata_on_project_id ON ci_pipeline_metadata USING btree (project_id); +-- +-- Name: namespaces namespaces_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_ci_pipeline_schedule_variables_on_schedule_id_and_key ON ci_pipeline_schedule_variables USING btree (pipeline_schedule_id, key); +CREATE TRIGGER namespaces_loose_fk_trigger AFTER DELETE ON public.namespaces REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); -CREATE INDEX index_ci_pipeline_schedules_on_id_and_next_run_at_and_active ON ci_pipeline_schedules USING btree (id, next_run_at) WHERE (active = true); -CREATE INDEX index_ci_pipeline_schedules_on_next_run_at_and_active ON ci_pipeline_schedules USING btree (next_run_at, active); +-- +-- Name: merge_request_metrics nullify_merge_request_metrics_build_data_on_update; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_pipeline_schedules_on_owner_id ON ci_pipeline_schedules USING btree (owner_id); +CREATE TRIGGER nullify_merge_request_metrics_build_data_on_update BEFORE UPDATE ON public.merge_request_metrics FOR EACH ROW EXECUTE FUNCTION public.nullify_merge_request_metrics_build_data(); -CREATE INDEX index_ci_pipeline_schedules_on_owner_id_and_id_and_active ON ci_pipeline_schedules USING btree (owner_id, id) WHERE (active = true); -CREATE INDEX index_ci_pipeline_schedules_on_project_id ON ci_pipeline_schedules USING btree (project_id); +-- +-- Name: organizations organizations_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX p_ci_pipelines_id_idx ON ONLY p_ci_pipelines USING btree (id) WHERE (source = 13); +CREATE TRIGGER organizations_loose_fk_trigger AFTER DELETE ON public.organizations REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); -CREATE INDEX index_ci_pipelines_for_ondemand_dast_scans ON ci_pipelines USING btree (id) WHERE (source = 13); -CREATE INDEX p_ci_pipelines_auto_canceled_by_id_idx ON ONLY p_ci_pipelines USING btree (auto_canceled_by_id); +-- +-- Name: p_ci_builds p_ci_builds_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_pipelines_on_auto_canceled_by_id ON ci_pipelines USING btree (auto_canceled_by_id); +CREATE TRIGGER p_ci_builds_loose_fk_trigger AFTER DELETE ON public.p_ci_builds REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); -CREATE INDEX p_ci_pipelines_ci_ref_id_id_source_status_idx ON ONLY p_ci_pipelines USING btree (ci_ref_id, id DESC, source, status) WHERE (ci_ref_id IS NOT NULL); -CREATE INDEX index_ci_pipelines_on_ci_ref_id_and_more ON ci_pipelines USING btree (ci_ref_id, id DESC, source, status) WHERE (ci_ref_id IS NOT NULL); +-- +-- Name: p_ci_pipelines p_ci_pipelines_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX p_ci_pipelines_external_pull_request_id_idx ON ONLY p_ci_pipelines USING btree (external_pull_request_id) WHERE (external_pull_request_id IS NOT NULL); +CREATE TRIGGER p_ci_pipelines_loose_fk_trigger AFTER DELETE ON public.p_ci_pipelines REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); -CREATE INDEX index_ci_pipelines_on_external_pull_request_id ON ci_pipelines USING btree (external_pull_request_id) WHERE (external_pull_request_id IS NOT NULL); -CREATE INDEX p_ci_pipelines_merge_request_id_idx ON ONLY p_ci_pipelines USING btree (merge_request_id) WHERE (merge_request_id IS NOT NULL); +-- +-- Name: plans plans_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_pipelines_on_merge_request_id ON ci_pipelines USING btree (merge_request_id) WHERE (merge_request_id IS NOT NULL); +CREATE TRIGGER plans_loose_fk_trigger AFTER DELETE ON public.plans REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); -CREATE INDEX p_ci_pipelines_pipeline_schedule_id_id_idx ON ONLY p_ci_pipelines USING btree (pipeline_schedule_id, id); -CREATE INDEX index_ci_pipelines_on_pipeline_schedule_id_and_id ON ci_pipelines USING btree (pipeline_schedule_id, id); +-- +-- Name: organizations prevent_delete_of_default_organization_before_destroy; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX p_ci_pipelines_project_id_id_idx ON ONLY p_ci_pipelines USING btree (project_id, id DESC); +CREATE TRIGGER prevent_delete_of_default_organization_before_destroy BEFORE DELETE ON public.organizations FOR EACH ROW EXECUTE FUNCTION public.prevent_delete_of_default_organization(); -CREATE INDEX index_ci_pipelines_on_project_id_and_id_desc ON ci_pipelines USING btree (project_id, id DESC); -CREATE UNIQUE INDEX p_ci_pipelines_project_id_iid_partition_id_idx ON ONLY p_ci_pipelines USING btree (project_id, iid, partition_id) WHERE (iid IS NOT NULL); +-- +-- Name: projects projects_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_ci_pipelines_on_project_id_and_iid_and_partition_id ON ci_pipelines USING btree (project_id, iid, partition_id) WHERE (iid IS NOT NULL); +CREATE TRIGGER projects_loose_fk_trigger AFTER DELETE ON public.projects REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); -CREATE INDEX p_ci_pipelines_project_id_ref_status_id_idx ON ONLY p_ci_pipelines USING btree (project_id, ref, status, id); -CREATE INDEX index_ci_pipelines_on_project_id_and_ref_and_status_and_id ON ci_pipelines USING btree (project_id, ref, status, id); +-- +-- Name: push_rules push_rules_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX p_ci_pipelines_project_id_sha_idx ON ONLY p_ci_pipelines USING btree (project_id, sha); +CREATE TRIGGER push_rules_loose_fk_trigger AFTER DELETE ON public.push_rules REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); -CREATE INDEX index_ci_pipelines_on_project_id_and_sha ON ci_pipelines USING btree (project_id, sha); -CREATE INDEX p_ci_pipelines_project_id_source_idx ON ONLY p_ci_pipelines USING btree (project_id, source); +-- +-- Name: merge_request_diff_commits table_sync_trigger_57c8465cd7; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_pipelines_on_project_id_and_source ON ci_pipelines USING btree (project_id, source); +CREATE TRIGGER table_sync_trigger_57c8465cd7 AFTER INSERT OR DELETE OR UPDATE ON public.merge_request_diff_commits FOR EACH ROW EXECUTE FUNCTION public.table_sync_function_0992e728d3(); -CREATE INDEX p_ci_pipelines_project_id_status_config_source_idx ON ONLY p_ci_pipelines USING btree (project_id, status, config_source); -CREATE INDEX index_ci_pipelines_on_project_id_and_status_and_config_source ON ci_pipelines USING btree (project_id, status, config_source); +-- +-- Name: merge_request_diff_files table_sync_trigger_cd362c20e2; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX p_ci_pipelines_project_id_status_created_at_idx ON ONLY p_ci_pipelines USING btree (project_id, status, created_at); +CREATE TRIGGER table_sync_trigger_cd362c20e2 AFTER INSERT OR DELETE OR UPDATE ON public.merge_request_diff_files FOR EACH ROW EXECUTE FUNCTION public.table_sync_function_3f39f64fc3(); -CREATE INDEX index_ci_pipelines_on_project_id_and_status_and_created_at ON ci_pipelines USING btree (project_id, status, created_at); -CREATE INDEX p_ci_pipelines_project_id_status_updated_at_idx ON ONLY p_ci_pipelines USING btree (project_id, status, updated_at); +-- +-- Name: tags tags_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_pipelines_on_project_id_and_status_and_updated_at ON ci_pipelines USING btree (project_id, status, updated_at); +CREATE TRIGGER tags_loose_fk_trigger AFTER DELETE ON public.tags REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); -CREATE INDEX p_ci_pipelines_project_id_user_id_status_ref_idx ON ONLY p_ci_pipelines USING btree (project_id, user_id, status, ref) WHERE (source <> 12); -CREATE INDEX index_ci_pipelines_on_project_id_and_user_id_and_status_and_ref ON ci_pipelines USING btree (project_id, user_id, status, ref) WHERE (source <> 12); +-- +-- Name: approval_merge_request_rules trigger_01b3fc052119; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX p_ci_pipelines_project_id_ref_id_idx ON ONLY p_ci_pipelines USING btree (project_id, ref, id DESC); +CREATE TRIGGER trigger_01b3fc052119 BEFORE INSERT OR UPDATE ON public.approval_merge_request_rules FOR EACH ROW EXECUTE FUNCTION public.trigger_01b3fc052119(); -CREATE INDEX index_ci_pipelines_on_project_idandrefandiddesc ON ci_pipelines USING btree (project_id, ref, id DESC); -CREATE INDEX p_ci_pipelines_status_id_idx ON ONLY p_ci_pipelines USING btree (status, id); +-- +-- Name: vulnerability_occurrence_identifiers trigger_02450faab875; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_pipelines_on_status_and_id ON ci_pipelines USING btree (status, id); +CREATE TRIGGER trigger_02450faab875 BEFORE INSERT OR UPDATE ON public.vulnerability_occurrence_identifiers FOR EACH ROW EXECUTE FUNCTION public.trigger_02450faab875(); -CREATE INDEX p_ci_pipelines_user_id_created_at_config_source_idx ON ONLY p_ci_pipelines USING btree (user_id, created_at, config_source); -CREATE INDEX index_ci_pipelines_on_user_id_and_created_at_and_config_source ON ci_pipelines USING btree (user_id, created_at, config_source); +-- +-- Name: approvals trigger_038fe84feff7; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX p_ci_pipelines_user_id_created_at_source_idx ON ONLY p_ci_pipelines USING btree (user_id, created_at, source); +CREATE TRIGGER trigger_038fe84feff7 BEFORE INSERT OR UPDATE ON public.approvals FOR EACH ROW EXECUTE FUNCTION public.trigger_038fe84feff7(); -CREATE INDEX index_ci_pipelines_on_user_id_and_created_at_and_source ON ci_pipelines USING btree (user_id, created_at, source); -CREATE INDEX p_ci_pipelines_user_id_id_idx ON ONLY p_ci_pipelines USING btree (user_id, id) WHERE ((status)::text = ANY (ARRAY[('running'::character varying)::text, ('waiting_for_resource'::character varying)::text, ('preparing'::character varying)::text, ('pending'::character varying)::text, ('created'::character varying)::text, ('scheduled'::character varying)::text])); +-- +-- Name: status_check_responses trigger_05ce163deddf; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_pipelines_on_user_id_and_id_and_cancelable_status ON ci_pipelines USING btree (user_id, id) WHERE ((status)::text = ANY (ARRAY[('running'::character varying)::text, ('waiting_for_resource'::character varying)::text, ('preparing'::character varying)::text, ('pending'::character varying)::text, ('created'::character varying)::text, ('scheduled'::character varying)::text])); +CREATE TRIGGER trigger_05ce163deddf BEFORE INSERT OR UPDATE ON public.status_check_responses FOR EACH ROW EXECUTE FUNCTION public.trigger_05ce163deddf(); -CREATE INDEX p_ci_pipelines_user_id_id_idx1 ON ONLY p_ci_pipelines USING btree (user_id, id DESC) WHERE (failure_reason = 3); -CREATE INDEX index_ci_pipelines_on_user_id_and_id_desc_and_user_not_verified ON ci_pipelines USING btree (user_id, id DESC) WHERE (failure_reason = 3); +-- +-- Name: packages_debian_project_components trigger_0a1b0adcf686; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_project_mirrors_on_namespace_id ON ci_project_mirrors USING btree (namespace_id); +CREATE TRIGGER trigger_0a1b0adcf686 BEFORE INSERT OR UPDATE ON public.packages_debian_project_components FOR EACH ROW EXECUTE FUNCTION public.trigger_0a1b0adcf686(); -CREATE UNIQUE INDEX index_ci_project_mirrors_on_project_id ON ci_project_mirrors USING btree (project_id); -CREATE UNIQUE INDEX index_ci_project_monthly_usages_on_project_id_and_date ON ci_project_monthly_usages USING btree (project_id, date); +-- +-- Name: operations_feature_flags_issues trigger_0da002390fdc; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_ci_refs_on_project_id_and_ref_path ON ci_refs USING btree (project_id, ref_path); +CREATE TRIGGER trigger_0da002390fdc BEFORE INSERT OR UPDATE ON public.operations_feature_flags_issues FOR EACH ROW EXECUTE FUNCTION public.trigger_0da002390fdc(); -CREATE UNIQUE INDEX index_ci_resource_groups_on_project_id_and_key ON ci_resource_groups USING btree (project_id, key); -CREATE INDEX index_ci_resources_on_build_id ON ci_resources USING btree (build_id); +-- +-- Name: merge_request_assignment_events trigger_0e13f214e504; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_resources_on_partition_id_build_id ON ci_resources USING btree (partition_id, build_id); +CREATE TRIGGER trigger_0e13f214e504 BEFORE INSERT OR UPDATE ON public.merge_request_assignment_events FOR EACH ROW EXECUTE FUNCTION public.trigger_0e13f214e504(); -CREATE UNIQUE INDEX index_ci_resources_on_resource_group_id_and_build_id ON ci_resources USING btree (resource_group_id, build_id); -CREATE INDEX index_ci_runner_machines_on_contacted_at_desc_and_id_desc ON ci_runner_machines USING btree (contacted_at DESC, id DESC); +-- +-- Name: draft_notes trigger_13d4aa8fe3dd; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_runner_machines_on_created_at_and_id_desc ON ci_runner_machines USING btree (created_at, id DESC); +CREATE TRIGGER trigger_13d4aa8fe3dd BEFORE INSERT OR UPDATE ON public.draft_notes FOR EACH ROW EXECUTE FUNCTION public.trigger_13d4aa8fe3dd(); -CREATE INDEX index_ci_runner_machines_on_major_version_trigram ON ci_runner_machines USING btree ("substring"(version, '^\d+\.'::text), version, runner_id); -CREATE INDEX index_ci_runner_machines_on_minor_version_trigram ON ci_runner_machines USING btree ("substring"(version, '^\d+\.\d+\.'::text), version, runner_id); +-- +-- Name: approval_group_rules_users trigger_158ac875f254; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_runner_machines_on_patch_version_trigram ON ci_runner_machines USING btree ("substring"(version, '^\d+\.\d+\.\d+'::text), version, runner_id); +CREATE TRIGGER trigger_158ac875f254 BEFORE INSERT OR UPDATE ON public.approval_group_rules_users FOR EACH ROW EXECUTE FUNCTION public.trigger_158ac875f254(); -CREATE UNIQUE INDEX index_ci_runner_machines_on_runner_id_and_system_xid ON ci_runner_machines USING btree (runner_id, system_xid); -CREATE INDEX index_ci_runner_machines_on_version ON ci_runner_machines USING btree (version); +-- +-- Name: approval_project_rules_users trigger_174b23fa3dfb; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_runner_namespaces_on_namespace_id ON ci_runner_namespaces USING btree (namespace_id); +CREATE TRIGGER trigger_174b23fa3dfb BEFORE INSERT OR UPDATE ON public.approval_project_rules_users FOR EACH ROW EXECUTE FUNCTION public.trigger_174b23fa3dfb(); -CREATE UNIQUE INDEX index_ci_runner_namespaces_on_runner_id_and_namespace_id ON ci_runner_namespaces USING btree (runner_id, namespace_id); -CREATE INDEX index_ci_runner_projects_on_project_id ON ci_runner_projects USING btree (project_id); +-- +-- Name: packages_conan_metadata trigger_18bc439a6741; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_ci_runner_versions_on_unique_status_and_version ON ci_runner_versions USING btree (status, version); +CREATE TRIGGER trigger_18bc439a6741 BEFORE INSERT OR UPDATE ON public.packages_conan_metadata FOR EACH ROW EXECUTE FUNCTION public.trigger_18bc439a6741(); -CREATE INDEX index_ci_runners_on_active ON ci_runners USING btree (active, id); -CREATE INDEX index_ci_runners_on_contacted_at_and_id_desc ON ci_runners USING btree (contacted_at, id DESC); +-- +-- Name: packages_maven_metadata trigger_1ed40f4d5f4e; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_runners_on_contacted_at_and_id_where_inactive ON ci_runners USING btree (contacted_at DESC, id DESC) WHERE (active = false); +CREATE TRIGGER trigger_1ed40f4d5f4e BEFORE INSERT OR UPDATE ON public.packages_maven_metadata FOR EACH ROW EXECUTE FUNCTION public.trigger_1ed40f4d5f4e(); -CREATE INDEX index_ci_runners_on_contacted_at_desc_and_id_desc ON ci_runners USING btree (contacted_at DESC, id DESC); -CREATE INDEX index_ci_runners_on_created_at_and_id_desc ON ci_runners USING btree (created_at, id DESC); +-- +-- Name: packages_package_files trigger_206cbe2dc1a2; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_runners_on_created_at_and_id_where_inactive ON ci_runners USING btree (created_at DESC, id DESC) WHERE (active = false); +CREATE TRIGGER trigger_206cbe2dc1a2 BEFORE INSERT OR UPDATE ON public.packages_package_files FOR EACH ROW EXECUTE FUNCTION public.trigger_206cbe2dc1a2(); -CREATE INDEX index_ci_runners_on_created_at_desc_and_id_desc ON ci_runners USING btree (created_at DESC, id DESC); -CREATE INDEX index_ci_runners_on_creator_id_where_creator_id_not_null ON ci_runners USING btree (creator_id) WHERE (creator_id IS NOT NULL); +-- +-- Name: operations_strategies trigger_207005e8e995; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_runners_on_description_trigram ON ci_runners USING gin (description gin_trgm_ops); +CREATE TRIGGER trigger_207005e8e995 BEFORE INSERT OR UPDATE ON public.operations_strategies FOR EACH ROW EXECUTE FUNCTION public.trigger_207005e8e995(); -CREATE INDEX index_ci_runners_on_locked ON ci_runners USING btree (locked); -CREATE INDEX index_ci_runners_on_runner_type_and_id ON ci_runners USING btree (runner_type, id); +-- +-- Name: merge_request_blocks trigger_219952df8fc4; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_runners_on_token_expires_at_and_id_desc ON ci_runners USING btree (token_expires_at, id DESC); +CREATE TRIGGER trigger_219952df8fc4 BEFORE INSERT OR UPDATE ON public.merge_request_blocks FOR EACH ROW EXECUTE FUNCTION public.trigger_219952df8fc4(); -CREATE INDEX index_ci_runners_on_token_expires_at_desc_and_id_desc ON ci_runners USING btree (token_expires_at DESC, id DESC); -CREATE UNIQUE INDEX index_ci_running_builds_on_build_id ON ci_running_builds USING btree (build_id); +-- +-- Name: dast_site_profile_secret_variables trigger_2514245c7fc5; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_ci_running_builds_on_partition_id_build_id ON ci_running_builds USING btree (partition_id, build_id); +CREATE TRIGGER trigger_2514245c7fc5 BEFORE INSERT OR UPDATE ON public.dast_site_profile_secret_variables FOR EACH ROW EXECUTE FUNCTION public.trigger_2514245c7fc5(); -CREATE INDEX index_ci_running_builds_on_project_id ON ci_running_builds USING btree (project_id); -CREATE INDEX index_ci_running_builds_on_runner_id ON ci_running_builds USING btree (runner_id); +-- +-- Name: work_item_parent_links trigger_25c44c30884f; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_secure_file_states_failed_verification ON ci_secure_file_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +CREATE TRIGGER trigger_25c44c30884f BEFORE INSERT OR UPDATE ON public.work_item_parent_links FOR EACH ROW EXECUTE FUNCTION public.trigger_25c44c30884f(); -CREATE INDEX index_ci_secure_file_states_needs_verification ON ci_secure_file_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); -CREATE INDEX index_ci_secure_file_states_on_ci_secure_file_id ON ci_secure_file_states USING btree (ci_secure_file_id); +-- +-- Name: ml_candidate_metadata trigger_25d35f02ab55; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_secure_file_states_on_verification_state ON ci_secure_file_states USING btree (verification_state); +CREATE TRIGGER trigger_25d35f02ab55 BEFORE INSERT OR UPDATE ON public.ml_candidate_metadata FOR EACH ROW EXECUTE FUNCTION public.trigger_25d35f02ab55(); -CREATE INDEX index_ci_secure_file_states_pending_verification ON ci_secure_file_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); -CREATE INDEX index_ci_secure_files_on_project_id ON ci_secure_files USING btree (project_id); +-- +-- Name: vulnerability_issue_links trigger_25fe4f7da510; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_sources_pipelines_on_pipeline_id ON ci_sources_pipelines USING btree (pipeline_id); +CREATE TRIGGER trigger_25fe4f7da510 BEFORE INSERT OR UPDATE ON public.vulnerability_issue_links FOR EACH ROW EXECUTE FUNCTION public.trigger_25fe4f7da510(); -CREATE INDEX index_ci_sources_pipelines_on_project_id ON ci_sources_pipelines USING btree (project_id); -CREATE INDEX index_ci_sources_pipelines_on_source_job_id ON ci_sources_pipelines USING btree (source_job_id); +-- +-- Name: ml_experiment_metadata trigger_2b8fdc9b4a4e; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_sources_pipelines_on_source_partition_id_source_job_id ON ci_sources_pipelines USING btree (source_partition_id, source_job_id); +CREATE TRIGGER trigger_2b8fdc9b4a4e BEFORE INSERT OR UPDATE ON public.ml_experiment_metadata FOR EACH ROW EXECUTE FUNCTION public.trigger_2b8fdc9b4a4e(); -CREATE INDEX index_ci_sources_pipelines_on_source_pipeline_id ON ci_sources_pipelines USING btree (source_pipeline_id); -CREATE INDEX index_ci_sources_pipelines_on_source_project_id ON ci_sources_pipelines USING btree (source_project_id); +-- +-- Name: remote_development_agent_configs trigger_3691f9f6a69f; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_sources_projects_on_pipeline_id ON ci_sources_projects USING btree (pipeline_id); +CREATE TRIGGER trigger_3691f9f6a69f BEFORE INSERT OR UPDATE ON public.remote_development_agent_configs FOR EACH ROW EXECUTE FUNCTION public.trigger_3691f9f6a69f(); -CREATE UNIQUE INDEX index_ci_sources_projects_on_source_project_id_and_pipeline_id ON ci_sources_projects USING btree (source_project_id, pipeline_id); -CREATE INDEX p_ci_stages_pipeline_id_id_idx ON ONLY p_ci_stages USING btree (pipeline_id, id) WHERE (status = ANY (ARRAY[0, 1, 2, 8, 9, 10])); +-- +-- Name: vulnerability_merge_request_links trigger_3fe922f4db67; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_stages_on_pipeline_id_and_id ON ci_stages USING btree (pipeline_id, id) WHERE (status = ANY (ARRAY[0, 1, 2, 8, 9, 10])); +CREATE TRIGGER trigger_3fe922f4db67 BEFORE INSERT OR UPDATE ON public.vulnerability_merge_request_links FOR EACH ROW EXECUTE FUNCTION public.trigger_3fe922f4db67(); -CREATE INDEX p_ci_stages_pipeline_id_position_idx ON ONLY p_ci_stages USING btree (pipeline_id, "position"); -CREATE INDEX index_ci_stages_on_pipeline_id_and_position ON ci_stages USING btree (pipeline_id, "position"); +-- +-- Name: release_links trigger_41eaf23bf547; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX p_ci_stages_pipeline_id_name_partition_id_idx ON ONLY p_ci_stages USING btree (pipeline_id, name, partition_id); +CREATE TRIGGER trigger_41eaf23bf547 BEFORE INSERT OR UPDATE ON public.release_links FOR EACH ROW EXECUTE FUNCTION public.trigger_41eaf23bf547(); -CREATE UNIQUE INDEX index_ci_stages_on_pipeline_id_name_partition_id_unique ON ci_stages USING btree (pipeline_id, name, partition_id); -CREATE INDEX p_ci_stages_project_id_idx ON ONLY p_ci_stages USING btree (project_id); +-- +-- Name: wiki_repository_states trigger_43484cb41aca; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_stages_on_project_id ON ci_stages USING btree (project_id); +CREATE TRIGGER trigger_43484cb41aca BEFORE INSERT OR UPDATE ON public.wiki_repository_states FOR EACH ROW EXECUTE FUNCTION public.trigger_43484cb41aca(); -CREATE INDEX index_ci_subscriptions_projects_author_id ON ci_subscriptions_projects USING btree (author_id); -CREATE INDEX index_ci_subscriptions_projects_on_upstream_project_id ON ci_subscriptions_projects USING btree (upstream_project_id); +-- +-- Name: merge_request_assignees trigger_44558add1625; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_ci_subscriptions_projects_unique_subscription ON ci_subscriptions_projects USING btree (downstream_project_id, upstream_project_id); +CREATE TRIGGER trigger_44558add1625 BEFORE INSERT OR UPDATE ON public.merge_request_assignees FOR EACH ROW EXECUTE FUNCTION public.trigger_44558add1625(); -CREATE INDEX index_ci_trigger_requests_on_commit_id ON ci_trigger_requests USING btree (commit_id); -CREATE INDEX index_ci_trigger_requests_on_trigger_id_and_id ON ci_trigger_requests USING btree (trigger_id, id DESC); +-- +-- Name: epic_issues trigger_46ebe375f632; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_triggers_on_owner_id ON ci_triggers USING btree (owner_id); +CREATE TRIGGER trigger_46ebe375f632 BEFORE INSERT OR UPDATE ON public.epic_issues FOR EACH ROW EXECUTE FUNCTION public.trigger_46ebe375f632(); -CREATE INDEX index_ci_triggers_on_project_id ON ci_triggers USING btree (project_id); -CREATE UNIQUE INDEX index_ci_triggers_on_token ON ci_triggers USING btree (token); +-- +-- Name: approval_group_rules_protected_branches trigger_49862b4b3035; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_unit_test_failures_on_build_id ON ci_unit_test_failures USING btree (build_id); +CREATE TRIGGER trigger_49862b4b3035 BEFORE INSERT OR UPDATE ON public.approval_group_rules_protected_branches FOR EACH ROW EXECUTE FUNCTION public.trigger_49862b4b3035(); -CREATE INDEX index_ci_unit_test_failures_on_partition_id_build_id ON ci_unit_test_failures USING btree (partition_id, build_id); -CREATE UNIQUE INDEX index_ci_unit_tests_on_project_id_and_key_hash ON ci_unit_tests USING btree (project_id, key_hash); +-- +-- Name: packages_dependency_links trigger_49e070da6320; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_ci_variables_on_key ON ci_variables USING btree (key); +CREATE TRIGGER trigger_49e070da6320 BEFORE INSERT OR UPDATE ON public.packages_dependency_links FOR EACH ROW EXECUTE FUNCTION public.trigger_49e070da6320(); -CREATE UNIQUE INDEX index_ci_variables_on_project_id_and_key_and_environment_scope ON ci_variables USING btree (project_id, key, environment_scope); -CREATE INDEX index_cicd_settings_on_namespace_id_where_stale_pruning_enabled ON namespace_ci_cd_settings USING btree (namespace_id) WHERE (allow_stale_runner_pruning = true); +-- +-- Name: sbom_occurrences_vulnerabilities trigger_4ad9a52a6614; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_cis_vulnerability_reads_on_cluster_agent_id ON vulnerability_reads USING btree (casted_cluster_agent_id) WHERE (report_type = 7); +CREATE TRIGGER trigger_4ad9a52a6614 BEFORE INSERT OR UPDATE ON public.sbom_occurrences_vulnerabilities FOR EACH ROW EXECUTE FUNCTION public.trigger_4ad9a52a6614(); -CREATE INDEX index_cluster_agent_tokens_on_agent_id_status_last_used_at ON cluster_agent_tokens USING btree (agent_id, status, last_used_at DESC NULLS LAST); -CREATE INDEX index_cluster_agent_tokens_on_created_by_user_id ON cluster_agent_tokens USING btree (created_by_user_id); +-- +-- Name: protected_environment_approval_rules trigger_4b43790d717f; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_cluster_agent_tokens_on_project_id ON cluster_agent_tokens USING btree (project_id); +CREATE TRIGGER trigger_4b43790d717f BEFORE INSERT OR UPDATE ON public.protected_environment_approval_rules FOR EACH ROW EXECUTE FUNCTION public.trigger_4b43790d717f(); -CREATE UNIQUE INDEX index_cluster_agent_tokens_on_token_encrypted ON cluster_agent_tokens USING btree (token_encrypted); -CREATE INDEX index_cluster_agent_url_configurations_on_agent_id ON cluster_agent_url_configurations USING btree (agent_id); +-- +-- Name: security_orchestration_policy_rule_schedules trigger_54707c384ad7; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_cluster_agent_url_configurations_on_project_id ON cluster_agent_url_configurations USING btree (project_id); +CREATE TRIGGER trigger_54707c384ad7 BEFORE INSERT OR UPDATE ON public.security_orchestration_policy_rule_schedules FOR EACH ROW EXECUTE FUNCTION public.trigger_54707c384ad7(); -CREATE INDEX index_cluster_agent_url_configurations_on_user_id ON cluster_agent_url_configurations USING btree (created_by_user_id) WHERE (created_by_user_id IS NOT NULL); -CREATE INDEX index_cluster_agents_on_created_by_user_id ON cluster_agents USING btree (created_by_user_id); +-- +-- Name: workspace_variables trigger_56d49f4ed623; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_cluster_agents_on_project_id_and_has_vulnerabilities ON cluster_agents USING btree (project_id, has_vulnerabilities); +CREATE TRIGGER trigger_56d49f4ed623 BEFORE INSERT OR UPDATE ON public.workspace_variables FOR EACH ROW EXECUTE FUNCTION public.trigger_56d49f4ed623(); -CREATE UNIQUE INDEX index_cluster_agents_on_project_id_and_name ON cluster_agents USING btree (project_id, name); -CREATE UNIQUE INDEX index_cluster_enabled_grants_on_namespace_id ON cluster_enabled_grants USING btree (namespace_id); +-- +-- Name: user_achievements trigger_57ad2742ac16; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_cluster_groups_on_cluster_id_and_group_id ON cluster_groups USING btree (cluster_id, group_id); +CREATE TRIGGER trigger_57ad2742ac16 BEFORE INSERT OR UPDATE ON public.user_achievements FOR EACH ROW EXECUTE FUNCTION public.trigger_57ad2742ac16(); -CREATE INDEX index_cluster_groups_on_group_id ON cluster_groups USING btree (group_id); -CREATE UNIQUE INDEX index_cluster_platforms_kubernetes_on_cluster_id ON cluster_platforms_kubernetes USING btree (cluster_id); +-- +-- Name: merge_request_context_commits trigger_5ca97b87ee30; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_cluster_projects_on_cluster_id ON cluster_projects USING btree (cluster_id); +CREATE TRIGGER trigger_5ca97b87ee30 BEFORE INSERT OR UPDATE ON public.merge_request_context_commits FOR EACH ROW EXECUTE FUNCTION public.trigger_5ca97b87ee30(); -CREATE INDEX index_cluster_projects_on_project_id ON cluster_projects USING btree (project_id); -CREATE UNIQUE INDEX index_cluster_providers_aws_on_cluster_id ON cluster_providers_aws USING btree (cluster_id); +-- +-- Name: operations_strategies_user_lists trigger_5f6432d2dccc; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_cluster_providers_aws_on_cluster_id_and_status ON cluster_providers_aws USING btree (cluster_id, status); +CREATE TRIGGER trigger_5f6432d2dccc BEFORE INSERT OR UPDATE ON public.operations_strategies_user_lists FOR EACH ROW EXECUTE FUNCTION public.trigger_5f6432d2dccc(); -CREATE INDEX index_cluster_providers_gcp_on_cloud_run ON cluster_providers_gcp USING btree (cloud_run); -CREATE UNIQUE INDEX index_cluster_providers_gcp_on_cluster_id ON cluster_providers_gcp USING btree (cluster_id); +-- +-- Name: merge_request_user_mentions trigger_664594a3d0a7; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_clusters_integration_prometheus_enabled ON clusters_integration_prometheus USING btree (enabled, created_at, cluster_id); +CREATE TRIGGER trigger_664594a3d0a7 BEFORE INSERT OR UPDATE ON public.merge_request_user_mentions FOR EACH ROW EXECUTE FUNCTION public.trigger_664594a3d0a7(); -CREATE INDEX index_clusters_kubernetes_namespaces_on_cluster_project_id ON clusters_kubernetes_namespaces USING btree (cluster_project_id); -CREATE INDEX index_clusters_kubernetes_namespaces_on_environment_id ON clusters_kubernetes_namespaces USING btree (environment_id); +-- +-- Name: packages_debian_project_architectures trigger_68435a54ee2b; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_clusters_kubernetes_namespaces_on_project_id ON clusters_kubernetes_namespaces USING btree (project_id); +CREATE TRIGGER trigger_68435a54ee2b BEFORE INSERT OR UPDATE ON public.packages_debian_project_architectures FOR EACH ROW EXECUTE FUNCTION public.trigger_68435a54ee2b(); -CREATE INDEX index_clusters_on_enabled_and_provider_type_and_id ON clusters USING btree (enabled, provider_type, id); -CREATE INDEX index_clusters_on_enabled_cluster_type_id_and_created_at ON clusters USING btree (enabled, cluster_type, id, created_at); +-- +-- Name: compliance_framework_security_policies trigger_6bf50b363152; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_clusters_on_management_project_id ON clusters USING btree (management_project_id) WHERE (management_project_id IS NOT NULL); +CREATE TRIGGER trigger_6bf50b363152 BEFORE INSERT OR UPDATE ON public.compliance_framework_security_policies FOR EACH ROW EXECUTE FUNCTION public.trigger_6bf50b363152(); -CREATE INDEX index_clusters_on_user_id ON clusters USING btree (user_id); -CREATE UNIQUE INDEX index_commit_user_mentions_on_note_id ON commit_user_mentions USING btree (note_id); +-- +-- Name: error_tracking_error_events trigger_6c38ba395cc1; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_compliance_checks_on_namespace_id ON compliance_checks USING btree (namespace_id); +CREATE TRIGGER trigger_6c38ba395cc1 BEFORE INSERT OR UPDATE ON public.error_tracking_error_events FOR EACH ROW EXECUTE FUNCTION public.trigger_6c38ba395cc1(); -CREATE INDEX index_compliance_framework_security_policies_on_namespace_id ON compliance_framework_security_policies USING btree (namespace_id); -CREATE INDEX index_compliance_framework_security_policies_on_project_id ON compliance_framework_security_policies USING btree (project_id); +-- +-- Name: issue_links trigger_6cdea9559242; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_compliance_frameworks_id_where_frameworks_not_null ON compliance_management_frameworks USING btree (id) WHERE (pipeline_configuration_full_path IS NOT NULL); +CREATE TRIGGER trigger_6cdea9559242 BEFORE INSERT OR UPDATE ON public.issue_links FOR EACH ROW EXECUTE FUNCTION public.trigger_6cdea9559242(); -CREATE INDEX index_compliance_management_frameworks_on_name_trigram ON compliance_management_frameworks USING gin (name gin_trgm_ops); -CREATE INDEX index_compliance_requirements_on_namespace_id ON compliance_requirements USING btree (namespace_id); +-- +-- Name: protected_environment_deploy_access_levels trigger_6d6c79ce74e1; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_composer_cache_files_where_namespace_id_is_null ON packages_composer_cache_files USING btree (id) WHERE (namespace_id IS NULL); +CREATE TRIGGER trigger_6d6c79ce74e1 BEFORE INSERT OR UPDATE ON public.protected_environment_deploy_access_levels FOR EACH ROW EXECUTE FUNCTION public.trigger_6d6c79ce74e1(); -CREATE INDEX index_container_expiration_policies_on_next_run_at_and_enabled ON container_expiration_policies USING btree (next_run_at, enabled); -CREATE INDEX index_container_registry_data_repair_details_on_status ON container_registry_data_repair_details USING btree (status); +-- +-- Name: compliance_framework_security_policies trigger_70d3f0bba1de; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_container_repositories_on_project_id_and_id ON container_repositories USING btree (project_id, id); +CREATE TRIGGER trigger_70d3f0bba1de BEFORE INSERT OR UPDATE ON public.compliance_framework_security_policies FOR EACH ROW EXECUTE FUNCTION public.trigger_70d3f0bba1de(); -CREATE UNIQUE INDEX index_container_repositories_on_project_id_and_name ON container_repositories USING btree (project_id, name); -CREATE INDEX index_container_repositories_on_status_and_id ON container_repositories USING btree (status, id) WHERE (status IS NOT NULL); +-- +-- Name: subscription_user_add_on_assignments trigger_740afa9807b8; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_container_repository_on_name_trigram ON container_repositories USING gin (name gin_trgm_ops); +CREATE TRIGGER trigger_740afa9807b8 BEFORE INSERT OR UPDATE ON public.subscription_user_add_on_assignments FOR EACH ROW EXECUTE FUNCTION public.trigger_740afa9807b8(); -CREATE INDEX index_container_repository_states_failed_verification ON container_repository_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); -CREATE INDEX index_container_repository_states_needs_verification ON container_repository_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); +-- +-- Name: packages_debian_project_distribution_keys trigger_77d9fbad5b12; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_container_repository_states_on_verification_state ON container_repository_states USING btree (verification_state); +CREATE TRIGGER trigger_77d9fbad5b12 BEFORE INSERT OR UPDATE ON public.packages_debian_project_distribution_keys FOR EACH ROW EXECUTE FUNCTION public.trigger_77d9fbad5b12(); -CREATE INDEX index_container_repository_states_pending_verification ON container_repository_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); -CREATE UNIQUE INDEX index_content_blocked_states_on_container_id_commit_sha_path ON content_blocked_states USING btree (container_identifier, commit_sha, path); +-- +-- Name: boards_epic_board_positions trigger_7a8b08eed782; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_country_access_logs_on_user_id_and_country_code ON country_access_logs USING btree (user_id, country_code); +CREATE TRIGGER trigger_7a8b08eed782 BEFORE INSERT OR UPDATE ON public.boards_epic_board_positions FOR EACH ROW EXECUTE FUNCTION public.trigger_7a8b08eed782(); -CREATE UNIQUE INDEX index_coverage_fuzzing_corpuses_on_package_id ON coverage_fuzzing_corpuses USING btree (package_id); -CREATE INDEX index_coverage_fuzzing_corpuses_on_project_id ON coverage_fuzzing_corpuses USING btree (project_id); +-- +-- Name: dast_site_validations trigger_7de792ddbc05; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_coverage_fuzzing_corpuses_on_user_id ON coverage_fuzzing_corpuses USING btree (user_id); +CREATE TRIGGER trigger_7de792ddbc05 BEFORE INSERT OR UPDATE ON public.dast_site_validations FOR EACH ROW EXECUTE FUNCTION public.trigger_7de792ddbc05(); -CREATE INDEX index_created_at_on_codeowner_approval_merge_request_rules ON approval_merge_request_rules USING btree (created_at) WHERE ((rule_type = 2) AND (section <> 'codeowners'::text)); -CREATE INDEX index_csv_issue_imports_on_project_id ON csv_issue_imports USING btree (project_id); +-- +-- Name: wiki_page_slugs trigger_84d67ad63e93; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_csv_issue_imports_on_user_id ON csv_issue_imports USING btree (user_id); +CREATE TRIGGER trigger_84d67ad63e93 BEFORE INSERT OR UPDATE ON public.wiki_page_slugs FOR EACH ROW EXECUTE FUNCTION public.trigger_84d67ad63e93(); -CREATE INDEX index_custom_emoji_on_creator_id ON custom_emoji USING btree (creator_id); -CREATE UNIQUE INDEX index_custom_emoji_on_namespace_id_and_name ON custom_emoji USING btree (namespace_id, name); +-- +-- Name: boards_epic_user_preferences trigger_8a38ce2327de; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_custom_software_licenses_on_project_id_and_name ON custom_software_licenses USING btree (project_id, name); +CREATE TRIGGER trigger_8a38ce2327de BEFORE INSERT OR UPDATE ON public.boards_epic_user_preferences FOR EACH ROW EXECUTE FUNCTION public.trigger_8a38ce2327de(); -CREATE INDEX index_customer_relations_contacts_on_group_id ON customer_relations_contacts USING btree (group_id); -CREATE INDEX index_customer_relations_contacts_on_organization_id ON customer_relations_contacts USING btree (organization_id); +-- +-- Name: design_management_repositories trigger_8ac78f164b2d; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_customer_relations_contacts_on_unique_email_per_group ON customer_relations_contacts USING btree (group_id, lower(email), id); +CREATE TRIGGER trigger_8ac78f164b2d BEFORE INSERT OR UPDATE ON public.design_management_repositories FOR EACH ROW EXECUTE FUNCTION public.trigger_8ac78f164b2d(); -CREATE UNIQUE INDEX index_cycle_analytics_stage_event_hashes_on_org_id_sha_256 ON analytics_cycle_analytics_stage_event_hashes USING btree (organization_id, hash_sha256); -CREATE UNIQUE INDEX index_daily_build_group_report_results_unique_columns ON ci_daily_build_group_report_results USING btree (project_id, ref_path, date, group_name); +-- +-- Name: vulnerability_occurrence_pipelines trigger_8ba31bddd655; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_dast_pre_scan_verifications_on_ci_pipeline_id ON dast_pre_scan_verifications USING btree (ci_pipeline_id); +CREATE TRIGGER trigger_8ba31bddd655 BEFORE INSERT OR UPDATE ON public.vulnerability_occurrence_pipelines FOR EACH ROW EXECUTE FUNCTION public.trigger_8ba31bddd655(); -CREATE INDEX index_dast_pre_scan_verifications_on_dast_profile_id ON dast_pre_scan_verifications USING btree (dast_profile_id); -CREATE INDEX index_dast_pre_scan_verifications_on_project_id ON dast_pre_scan_verifications USING btree (project_id); +-- +-- Name: packages_debian_group_components trigger_8d002f38bdef; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_dast_profile_schedules_active_next_run_at ON dast_profile_schedules USING btree (active, next_run_at); +CREATE TRIGGER trigger_8d002f38bdef BEFORE INSERT OR UPDATE ON public.packages_debian_group_components FOR EACH ROW EXECUTE FUNCTION public.trigger_8d002f38bdef(); -CREATE UNIQUE INDEX index_dast_profile_schedules_on_dast_profile_id ON dast_profile_schedules USING btree (dast_profile_id); -CREATE INDEX index_dast_profile_schedules_on_project_id ON dast_profile_schedules USING btree (project_id); +-- +-- Name: merge_request_reviewers trigger_8d17725116fe; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_dast_profile_schedules_on_user_id ON dast_profile_schedules USING btree (user_id); +CREATE TRIGGER trigger_8d17725116fe BEFORE INSERT OR UPDATE ON public.merge_request_reviewers FOR EACH ROW EXECUTE FUNCTION public.trigger_8d17725116fe(); -CREATE INDEX index_dast_profiles_on_dast_scanner_profile_id ON dast_profiles USING btree (dast_scanner_profile_id); -CREATE INDEX index_dast_profiles_on_dast_site_profile_id ON dast_profiles USING btree (dast_site_profile_id); +-- +-- Name: audit_events_streaming_event_type_filters trigger_8e66b994e8f0; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_dast_profiles_on_project_id_and_name ON dast_profiles USING btree (project_id, name); +CREATE TRIGGER trigger_8e66b994e8f0 BEFORE INSERT OR UPDATE ON public.audit_events_streaming_event_type_filters FOR EACH ROW EXECUTE FUNCTION public.trigger_8e66b994e8f0(); -CREATE UNIQUE INDEX index_dast_profiles_pipelines_on_ci_pipeline_id ON dast_profiles_pipelines USING btree (ci_pipeline_id); -CREATE INDEX index_dast_profiles_tags_on_project_id ON dast_profiles_tags USING btree (project_id); +-- +-- Name: design_management_designs trigger_8fbb044c64ad; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_dast_profiles_tags_on_tag_id ON dast_profiles_tags USING btree (tag_id); +CREATE TRIGGER trigger_8fbb044c64ad BEFORE INSERT OR UPDATE ON public.design_management_designs FOR EACH ROW EXECUTE FUNCTION public.trigger_8fbb044c64ad(); -CREATE UNIQUE INDEX index_dast_scanner_profiles_on_project_id_and_name ON dast_scanner_profiles USING btree (project_id, name); -CREATE INDEX index_dast_site_profile_secret_variables_on_project_id ON dast_site_profile_secret_variables USING btree (project_id); +-- +-- Name: dast_profiles_tags trigger_90fa5c6951f1; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_dast_site_profiles_on_dast_site_id ON dast_site_profiles USING btree (dast_site_id); +CREATE TRIGGER trigger_90fa5c6951f1 BEFORE INSERT OR UPDATE ON public.dast_profiles_tags FOR EACH ROW EXECUTE FUNCTION public.trigger_90fa5c6951f1(); -CREATE UNIQUE INDEX index_dast_site_profiles_on_project_id_and_name ON dast_site_profiles USING btree (project_id, name); -CREATE UNIQUE INDEX index_dast_site_token_on_project_id_and_url ON dast_site_tokens USING btree (project_id, url); +-- +-- Name: packages_build_infos trigger_9259aae92378; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_dast_site_token_on_token ON dast_site_tokens USING btree (token); +CREATE TRIGGER trigger_9259aae92378 BEFORE INSERT OR UPDATE ON public.packages_build_infos FOR EACH ROW EXECUTE FUNCTION public.trigger_9259aae92378(); -CREATE INDEX index_dast_site_tokens_on_project_id ON dast_site_tokens USING btree (project_id); -CREATE INDEX index_dast_site_validations_on_dast_site_token_id ON dast_site_validations USING btree (dast_site_token_id); +-- +-- Name: deployment_approvals trigger_94514aeadc50; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_dast_site_validations_on_project_id ON dast_site_validations USING btree (project_id); +CREATE TRIGGER trigger_94514aeadc50 BEFORE INSERT OR UPDATE ON public.deployment_approvals FOR EACH ROW EXECUTE FUNCTION public.trigger_94514aeadc50(); -CREATE INDEX index_dast_site_validations_on_url_base_and_state ON dast_site_validations USING btree (url_base, state); -CREATE INDEX index_dast_sites_on_dast_site_validation_id ON dast_sites USING btree (dast_site_validation_id); +-- +-- Name: related_epic_links trigger_9699ea03bb37; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_dast_sites_on_project_id_and_url ON dast_sites USING btree (project_id, url); +CREATE TRIGGER trigger_9699ea03bb37 BEFORE INSERT OR UPDATE ON public.related_epic_links FOR EACH ROW EXECUTE FUNCTION public.trigger_9699ea03bb37(); -CREATE UNIQUE INDEX index_dep_prox_manifests_on_group_id_file_name_and_status ON dependency_proxy_manifests USING btree (group_id, file_name, status); -CREATE INDEX index_dependency_list_export_parts_on_dependency_list_export_id ON dependency_list_export_parts USING btree (dependency_list_export_id); +-- +-- Name: design_management_versions trigger_96a76ee9f147; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_dependency_list_export_parts_on_organization_id ON dependency_list_export_parts USING btree (organization_id); +CREATE TRIGGER trigger_96a76ee9f147 BEFORE INSERT OR UPDATE ON public.design_management_versions FOR EACH ROW EXECUTE FUNCTION public.trigger_96a76ee9f147(); -CREATE INDEX index_dependency_list_exports_on_group_id ON dependency_list_exports USING btree (group_id); -CREATE INDEX index_dependency_list_exports_on_organization_id ON dependency_list_exports USING btree (organization_id); +-- +-- Name: vulnerability_findings_remediations trigger_9e137c16de79; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_dependency_list_exports_on_pipeline_id ON dependency_list_exports USING btree (pipeline_id); +CREATE TRIGGER trigger_9e137c16de79 BEFORE INSERT OR UPDATE ON public.vulnerability_findings_remediations FOR EACH ROW EXECUTE FUNCTION public.trigger_9e137c16de79(); -CREATE INDEX index_dependency_list_exports_on_project_id ON dependency_list_exports USING btree (project_id); -CREATE INDEX index_dependency_list_exports_on_user_id ON dependency_list_exports USING btree (user_id); +-- +-- Name: merge_requests_closing_issues trigger_9f3745f8fe32; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_dependency_proxy_blob_states_failed_verification ON dependency_proxy_blob_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +CREATE TRIGGER trigger_9f3745f8fe32 BEFORE INSERT OR UPDATE ON public.merge_requests_closing_issues FOR EACH ROW EXECUTE FUNCTION public.trigger_9f3745f8fe32(); -CREATE INDEX index_dependency_proxy_blob_states_needs_verification ON dependency_proxy_blob_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); -CREATE INDEX index_dependency_proxy_blob_states_on_dependency_proxy_blob_id ON dependency_proxy_blob_states USING btree (dependency_proxy_blob_id); +-- +-- Name: vulnerability_user_mentions trigger_a1bc7c70cbdf; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_dependency_proxy_blob_states_on_verification_state ON dependency_proxy_blob_states USING btree (verification_state); +CREATE TRIGGER trigger_a1bc7c70cbdf BEFORE INSERT OR UPDATE ON public.vulnerability_user_mentions FOR EACH ROW EXECUTE FUNCTION public.trigger_a1bc7c70cbdf(); -CREATE INDEX index_dependency_proxy_blob_states_pending_verification ON dependency_proxy_blob_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); -CREATE INDEX index_dependency_proxy_blobs_on_group_id_and_file_name ON dependency_proxy_blobs USING btree (group_id, file_name); +-- +-- Name: dora_daily_metrics trigger_a253cb3cacdf; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_dependency_proxy_blobs_on_group_id_status_read_at_id ON dependency_proxy_blobs USING btree (group_id, status, read_at, id); +CREATE TRIGGER trigger_a253cb3cacdf BEFORE INSERT OR UPDATE ON public.dora_daily_metrics FOR EACH ROW EXECUTE FUNCTION public.trigger_a253cb3cacdf(); -CREATE INDEX index_dependency_proxy_blobs_on_status ON dependency_proxy_blobs USING btree (status); -CREATE INDEX index_dependency_proxy_group_settings_on_group_id ON dependency_proxy_group_settings USING btree (group_id); +-- +-- Name: epic_user_mentions trigger_a4e4fb2451d9; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_dependency_proxy_manifests_on_group_id_status_read_at_id ON dependency_proxy_manifests USING btree (group_id, status, read_at, id); +CREATE TRIGGER trigger_a4e4fb2451d9 BEFORE INSERT OR UPDATE ON public.epic_user_mentions FOR EACH ROW EXECUTE FUNCTION public.trigger_a4e4fb2451d9(); -CREATE INDEX index_dependency_proxy_manifests_on_status ON dependency_proxy_manifests USING btree (status); -CREATE INDEX index_deploy_key_id_on_protected_branch_push_access_levels ON protected_branch_push_access_levels USING btree (deploy_key_id); +-- +-- Name: vulnerability_finding_evidences trigger_a7e0fb195210; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_deploy_keys_projects_on_deploy_key_id ON deploy_keys_projects USING btree (deploy_key_id); +CREATE TRIGGER trigger_a7e0fb195210 BEFORE INSERT OR UPDATE ON public.vulnerability_finding_evidences FOR EACH ROW EXECUTE FUNCTION public.trigger_a7e0fb195210(); -CREATE INDEX index_deploy_keys_projects_on_project_id ON deploy_keys_projects USING btree (project_id); -CREATE INDEX index_deploy_tokens_on_creator_id ON deploy_tokens USING btree (creator_id); +-- +-- Name: protected_tag_create_access_levels trigger_af3f17817e4d; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_deploy_tokens_on_group_id ON deploy_tokens USING btree (group_id); +CREATE TRIGGER trigger_af3f17817e4d BEFORE INSERT OR UPDATE ON public.protected_tag_create_access_levels FOR EACH ROW EXECUTE FUNCTION public.trigger_af3f17817e4d(); -CREATE INDEX index_deploy_tokens_on_project_id ON deploy_tokens USING btree (project_id); -CREATE UNIQUE INDEX index_deploy_tokens_on_token_encrypted ON deploy_tokens USING btree (token_encrypted); +-- +-- Name: project_relation_exports trigger_b2612138515d; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_deployment_approvals_on_approval_rule_id ON deployment_approvals USING btree (approval_rule_id); +CREATE TRIGGER trigger_b2612138515d BEFORE INSERT OR UPDATE ON public.project_relation_exports FOR EACH ROW EXECUTE FUNCTION public.trigger_b2612138515d(); -CREATE INDEX index_deployment_approvals_on_created_at_and_id ON deployment_approvals USING btree (created_at, id); -CREATE UNIQUE INDEX index_deployment_approvals_on_deployment_user_approval_rule ON deployment_approvals USING btree (deployment_id, user_id, approval_rule_id); +-- +-- Name: approval_merge_request_rule_sources trigger_b4520c29ea74; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_deployment_approvals_on_project_id ON deployment_approvals USING btree (project_id); +CREATE TRIGGER trigger_b4520c29ea74 BEFORE INSERT OR UPDATE ON public.approval_merge_request_rule_sources FOR EACH ROW EXECUTE FUNCTION public.trigger_b4520c29ea74(); -CREATE INDEX index_deployment_approvals_on_user_id ON deployment_approvals USING btree (user_id); -CREATE UNIQUE INDEX index_deployment_clusters_on_cluster_id_and_deployment_id ON deployment_clusters USING btree (cluster_id, deployment_id); +-- +-- Name: audit_events_streaming_headers trigger_c17a166692a2; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_deployment_merge_requests_on_merge_request_id ON deployment_merge_requests USING btree (merge_request_id); +CREATE TRIGGER trigger_c17a166692a2 BEFORE INSERT OR UPDATE ON public.audit_events_streaming_headers FOR EACH ROW EXECUTE FUNCTION public.trigger_c17a166692a2(); -CREATE INDEX index_deployments_for_visible_scope ON deployments USING btree (environment_id, finished_at DESC) WHERE (status = ANY (ARRAY[1, 2, 3, 4, 6])); -CREATE INDEX index_deployments_on_archived_project_id_iid ON deployments USING btree (archived, project_id, iid); +-- +-- Name: security_orchestration_policy_rule_schedules trigger_c59fe6f31e71; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_deployments_on_created_at ON deployments USING btree (created_at); +CREATE TRIGGER trigger_c59fe6f31e71 BEFORE INSERT OR UPDATE ON public.security_orchestration_policy_rule_schedules FOR EACH ROW EXECUTE FUNCTION public.trigger_c59fe6f31e71(); -CREATE INDEX index_deployments_on_deployable_type_and_deployable_id ON deployments USING btree (deployable_type, deployable_id); -CREATE INDEX index_deployments_on_environment_id_and_id ON deployments USING btree (environment_id, id); +-- +-- Name: dast_pre_scan_verifications trigger_c5eec113ea76; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_deployments_on_environment_id_and_ref ON deployments USING btree (environment_id, ref); +CREATE TRIGGER trigger_c5eec113ea76 BEFORE INSERT OR UPDATE ON public.dast_pre_scan_verifications FOR EACH ROW EXECUTE FUNCTION public.trigger_c5eec113ea76(); -CREATE INDEX index_deployments_on_environment_id_status_and_finished_at ON deployments USING btree (environment_id, status, finished_at); -CREATE INDEX index_deployments_on_environment_id_status_and_id ON deployments USING btree (environment_id, status, id); +-- +-- Name: vulnerability_state_transitions trigger_c8bc8646bce9; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_deployments_on_environment_status_sha ON deployments USING btree (environment_id, status, sha); +CREATE TRIGGER trigger_c8bc8646bce9 BEFORE INSERT OR UPDATE ON public.vulnerability_state_transitions FOR EACH ROW EXECUTE FUNCTION public.trigger_c8bc8646bce9(); -CREATE INDEX index_deployments_on_id_and_status_and_created_at ON deployments USING btree (id, status, created_at); -CREATE INDEX index_deployments_on_project_and_environment_and_updated_at_id ON deployments USING btree (project_id, environment_id, updated_at, id); +-- +-- Name: boards_epic_lists trigger_c9090feed334; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_deployments_on_project_and_finished ON deployments USING btree (project_id, finished_at) WHERE (status = 2); +CREATE TRIGGER trigger_c9090feed334 BEFORE INSERT OR UPDATE ON public.boards_epic_lists FOR EACH ROW EXECUTE FUNCTION public.trigger_c9090feed334(); -CREATE INDEX index_deployments_on_project_id_and_id ON deployments USING btree (project_id, id DESC); -CREATE UNIQUE INDEX index_deployments_on_project_id_and_iid ON deployments USING btree (project_id, iid); +-- +-- Name: evidences trigger_cac7c0698291; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_deployments_on_project_id_and_status_and_created_at ON deployments USING btree (project_id, status, created_at); +CREATE TRIGGER trigger_cac7c0698291 BEFORE INSERT OR UPDATE ON public.evidences FOR EACH ROW EXECUTE FUNCTION public.trigger_cac7c0698291(); -CREATE INDEX index_deployments_on_project_id_and_updated_at_and_id ON deployments USING btree (project_id, updated_at DESC, id DESC); -CREATE INDEX index_deployments_on_user_id_and_status_and_created_at ON deployments USING btree (user_id, status, created_at); +-- +-- Name: projects trigger_catalog_resource_sync_event_on_project_update; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_description_versions_on_epic_id ON description_versions USING btree (epic_id) WHERE (epic_id IS NOT NULL); +CREATE TRIGGER trigger_catalog_resource_sync_event_on_project_update AFTER UPDATE ON public.projects FOR EACH ROW WHEN ((((old.name)::text IS DISTINCT FROM (new.name)::text) OR (old.description IS DISTINCT FROM new.description) OR (old.visibility_level IS DISTINCT FROM new.visibility_level))) EXECUTE FUNCTION public.insert_catalog_resource_sync_event(); -CREATE INDEX index_description_versions_on_issue_id ON description_versions USING btree (issue_id) WHERE (issue_id IS NOT NULL); -CREATE INDEX index_description_versions_on_merge_request_id ON description_versions USING btree (merge_request_id) WHERE (merge_request_id IS NOT NULL); +-- +-- Name: terraform_state_versions trigger_d4487a75bd44; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_design_management_designs_issue_id_relative_position_id ON design_management_designs USING btree (issue_id, relative_position, id); +CREATE TRIGGER trigger_d4487a75bd44 BEFORE INSERT OR UPDATE ON public.terraform_state_versions FOR EACH ROW EXECUTE FUNCTION public.trigger_d4487a75bd44(); -CREATE UNIQUE INDEX index_design_management_designs_on_iid_and_project_id ON design_management_designs USING btree (project_id, iid); -CREATE UNIQUE INDEX index_design_management_designs_on_issue_id_and_filename ON design_management_designs USING btree (issue_id, filename); +-- +-- Name: protected_environment_approval_rules trigger_d5c895007948; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_design_management_designs_on_namespace_id ON design_management_designs USING btree (namespace_id); +CREATE TRIGGER trigger_d5c895007948 BEFORE INSERT OR UPDATE ON public.protected_environment_approval_rules FOR EACH ROW EXECUTE FUNCTION public.trigger_d5c895007948(); -CREATE INDEX index_design_management_designs_on_project_id ON design_management_designs USING btree (project_id); -CREATE INDEX index_design_management_designs_versions_on_design_id ON design_management_designs_versions USING btree (design_id); +-- +-- Name: packages_debian_group_distribution_keys trigger_dadd660afe2c; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_design_management_designs_versions_on_event ON design_management_designs_versions USING btree (event); +CREATE TRIGGER trigger_dadd660afe2c BEFORE INSERT OR UPDATE ON public.packages_debian_group_distribution_keys FOR EACH ROW EXECUTE FUNCTION public.trigger_dadd660afe2c(); -CREATE INDEX index_design_management_designs_versions_on_version_id ON design_management_designs_versions USING btree (version_id); -CREATE INDEX index_design_management_repositories_on_namespace_id ON design_management_repositories USING btree (namespace_id); +-- +-- Name: agent_activity_events trigger_dbdd61a66a91; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_design_management_repositories_on_project_id ON design_management_repositories USING btree (project_id); +CREATE TRIGGER trigger_dbdd61a66a91 BEFORE INSERT OR UPDATE ON public.agent_activity_events FOR EACH ROW EXECUTE FUNCTION public.trigger_dbdd61a66a91(); -CREATE INDEX index_design_management_repository_states_failed_verification ON design_management_repository_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); -CREATE INDEX index_design_management_repository_states_needs_verification ON design_management_repository_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); +-- +-- Name: vulnerability_flags trigger_dc13168b8025; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_design_management_repository_states_on_verification_state ON design_management_repository_states USING btree (verification_state); +CREATE TRIGGER trigger_dc13168b8025 BEFORE INSERT OR UPDATE ON public.vulnerability_flags FOR EACH ROW EXECUTE FUNCTION public.trigger_dc13168b8025(); -CREATE INDEX index_design_management_repository_states_pending_verification ON design_management_repository_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); -CREATE INDEX index_design_management_versions_on_author_id ON design_management_versions USING btree (author_id) WHERE (author_id IS NOT NULL); +-- +-- Name: projects trigger_delete_project_namespace_on_project_delete; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_design_management_versions_on_issue_id ON design_management_versions USING btree (issue_id); +CREATE TRIGGER trigger_delete_project_namespace_on_project_delete AFTER DELETE ON public.projects FOR EACH ROW WHEN ((old.project_namespace_id IS NOT NULL)) EXECUTE FUNCTION public.delete_associated_project_namespace(); -CREATE INDEX index_design_management_versions_on_namespace_id ON design_management_versions USING btree (namespace_id); -CREATE UNIQUE INDEX index_design_management_versions_on_sha_and_issue_id ON design_management_versions USING btree (sha, issue_id); +-- +-- Name: packages_debian_group_architectures trigger_e0864d1cff37; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_design_user_mentions_on_note_id ON design_user_mentions USING btree (note_id); +CREATE TRIGGER trigger_e0864d1cff37 BEFORE INSERT OR UPDATE ON public.packages_debian_group_architectures FOR EACH ROW EXECUTE FUNCTION public.trigger_e0864d1cff37(); -CREATE UNIQUE INDEX index_diff_note_positions_on_note_id_and_diff_type ON diff_note_positions USING btree (note_id, diff_type); -CREATE INDEX index_dingtalk_tracker_data_on_integration_id ON dingtalk_tracker_data USING btree (integration_id); +-- +-- Name: vulnerability_external_issue_links trigger_e1da4a738230; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_dora_configurations_on_project_id ON dora_configurations USING btree (project_id); +CREATE TRIGGER trigger_e1da4a738230 BEFORE INSERT OR UPDATE ON public.vulnerability_external_issue_links FOR EACH ROW EXECUTE FUNCTION public.trigger_e1da4a738230(); -CREATE UNIQUE INDEX index_dora_daily_metrics_on_environment_id_and_date ON dora_daily_metrics USING btree (environment_id, date); -CREATE INDEX index_dora_daily_metrics_on_project_id ON dora_daily_metrics USING btree (project_id); +-- +-- Name: vulnerability_finding_links trigger_e49ab4d904a0; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_dora_performance_scores_on_project_id_and_date ON dora_performance_scores USING btree (project_id, date); +CREATE TRIGGER trigger_e49ab4d904a0 BEFORE INSERT OR UPDATE ON public.vulnerability_finding_links FOR EACH ROW EXECUTE FUNCTION public.trigger_e49ab4d904a0(); -CREATE INDEX index_draft_notes_on_author_id ON draft_notes USING btree (author_id); -CREATE INDEX index_draft_notes_on_discussion_id ON draft_notes USING btree (discussion_id); +-- +-- Name: packages_debian_publications trigger_ebab34f83f1d; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_draft_notes_on_merge_request_id ON draft_notes USING btree (merge_request_id); +CREATE TRIGGER trigger_ebab34f83f1d BEFORE INSERT OR UPDATE ON public.packages_debian_publications FOR EACH ROW EXECUTE FUNCTION public.trigger_ebab34f83f1d(); -CREATE INDEX index_draft_notes_on_project_id ON draft_notes USING btree (project_id); -CREATE INDEX index_duo_workflows_checkpoints_on_project_id ON duo_workflows_checkpoints USING btree (project_id); +-- +-- Name: ml_model_metadata trigger_f6c61cdddf31; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_duo_workflows_workflow_checkpoints_unique_thread ON duo_workflows_checkpoints USING btree (workflow_id, thread_ts); +CREATE TRIGGER trigger_f6c61cdddf31 BEFORE INSERT OR UPDATE ON public.ml_model_metadata FOR EACH ROW EXECUTE FUNCTION public.trigger_f6c61cdddf31(); -CREATE INDEX index_duo_workflows_workflows_on_project_id ON duo_workflows_workflows USING btree (project_id); -CREATE INDEX index_duo_workflows_workflows_on_user_id ON duo_workflows_workflows USING btree (user_id); +-- +-- Name: protected_environment_deploy_access_levels trigger_f6f59d8216b3; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_early_access_program_tracking_events_on_category ON early_access_program_tracking_events USING btree (category); +CREATE TRIGGER trigger_f6f59d8216b3 BEFORE INSERT OR UPDATE ON public.protected_environment_deploy_access_levels FOR EACH ROW EXECUTE FUNCTION public.trigger_f6f59d8216b3(); -CREATE INDEX index_early_access_program_tracking_events_on_event_label ON early_access_program_tracking_events USING btree (event_label); -CREATE INDEX index_early_access_program_tracking_events_on_event_name ON early_access_program_tracking_events USING btree (event_name); +-- +-- Name: external_status_checks_protected_branches trigger_fbd42ed69453; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_early_access_program_tracking_events_on_user_id ON early_access_program_tracking_events USING btree (user_id); +CREATE TRIGGER trigger_fbd42ed69453 BEFORE INSERT OR UPDATE ON public.external_status_checks_protected_branches FOR EACH ROW EXECUTE FUNCTION public.trigger_fbd42ed69453(); -CREATE UNIQUE INDEX index_elastic_index_settings_on_alias_name ON elastic_index_settings USING btree (alias_name); -CREATE INDEX index_elastic_reindexing_subtasks_on_elastic_reindexing_task_id ON elastic_reindexing_subtasks USING btree (elastic_reindexing_task_id); +-- +-- Name: boards_epic_board_labels trigger_fbd8825b3057; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_elastic_reindexing_tasks_on_in_progress ON elastic_reindexing_tasks USING btree (in_progress) WHERE in_progress; +CREATE TRIGGER trigger_fbd8825b3057 BEFORE INSERT OR UPDATE ON public.boards_epic_board_labels FOR EACH ROW EXECUTE FUNCTION public.trigger_fbd8825b3057(); -CREATE INDEX index_elastic_reindexing_tasks_on_state ON elastic_reindexing_tasks USING btree (state); -CREATE INDEX index_elasticsearch_indexed_namespaces_on_created_at ON elasticsearch_indexed_namespaces USING btree (created_at); +-- +-- Name: geo_event_log trigger_ff16c1fd43ea; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_emails_on_confirmation_token ON emails USING btree (confirmation_token); +CREATE TRIGGER trigger_ff16c1fd43ea BEFORE INSERT OR UPDATE ON public.geo_event_log FOR EACH ROW EXECUTE FUNCTION public.trigger_ff16c1fd43ea(); -CREATE INDEX index_emails_on_created_at_where_confirmed_at_is_null ON emails USING btree (created_at) WHERE (confirmed_at IS NULL); -CREATE INDEX index_emails_on_detumbled_email ON emails USING btree (detumbled_email); +-- +-- Name: vulnerability_finding_signatures trigger_fff8735b6b9a; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_emails_on_email ON emails USING btree (email); +CREATE TRIGGER trigger_fff8735b6b9a BEFORE INSERT OR UPDATE ON public.vulnerability_finding_signatures FOR EACH ROW EXECUTE FUNCTION public.trigger_fff8735b6b9a(); -CREATE INDEX index_emails_on_email_trigram ON emails USING gin (email gin_trgm_ops); -CREATE INDEX index_emails_on_user_id ON emails USING btree (user_id); +-- +-- Name: integrations trigger_has_external_issue_tracker_on_delete; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_enabled_clusters_on_id ON clusters USING btree (id) WHERE (enabled = true); +CREATE TRIGGER trigger_has_external_issue_tracker_on_delete AFTER DELETE ON public.integrations FOR EACH ROW WHEN ((((old.category)::text = 'issue_tracker'::text) AND (old.active = true) AND (old.project_id IS NOT NULL))) EXECUTE FUNCTION public.set_has_external_issue_tracker(); -CREATE INDEX index_environments_cluster_agent_id ON environments USING btree (cluster_agent_id) WHERE (cluster_agent_id IS NOT NULL); -CREATE INDEX index_environments_name_without_type ON environments USING btree (project_id, lower(ltrim(ltrim((name)::text, (environment_type)::text), '/'::text)) varchar_pattern_ops, state); +-- +-- Name: integrations trigger_has_external_issue_tracker_on_insert; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_environments_on_merge_request_id ON environments USING btree (merge_request_id); +CREATE TRIGGER trigger_has_external_issue_tracker_on_insert AFTER INSERT ON public.integrations FOR EACH ROW WHEN ((((new.category)::text = 'issue_tracker'::text) AND (new.active = true) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION public.set_has_external_issue_tracker(); -CREATE INDEX index_environments_on_name_varchar_pattern_ops ON environments USING btree (name varchar_pattern_ops); -CREATE INDEX index_environments_on_project_id_and_id ON environments USING btree (project_id, id); +-- +-- Name: integrations trigger_has_external_issue_tracker_on_update; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_environments_on_project_id_and_name ON environments USING btree (project_id, name); +CREATE TRIGGER trigger_has_external_issue_tracker_on_update AFTER UPDATE ON public.integrations FOR EACH ROW WHEN ((((new.category)::text = 'issue_tracker'::text) AND (old.active <> new.active) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION public.set_has_external_issue_tracker(); -CREATE UNIQUE INDEX index_environments_on_project_id_and_slug ON environments USING btree (project_id, slug); -CREATE INDEX index_environments_on_project_id_and_tier ON environments USING btree (project_id, tier) WHERE (tier IS NOT NULL); +-- +-- Name: integrations trigger_has_external_wiki_on_delete; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_environments_on_project_id_state_environment_type ON environments USING btree (project_id, state, environment_type); +CREATE TRIGGER trigger_has_external_wiki_on_delete AFTER DELETE ON public.integrations FOR EACH ROW WHEN (((old.type_new = 'Integrations::ExternalWiki'::text) AND (old.project_id IS NOT NULL))) EXECUTE FUNCTION public.set_has_external_wiki(); -CREATE INDEX index_environments_on_project_name_varchar_pattern_ops_state ON environments USING btree (project_id, lower((name)::text) varchar_pattern_ops, state); -CREATE INDEX index_environments_on_state_and_auto_delete_at ON environments USING btree (auto_delete_at) WHERE ((auto_delete_at IS NOT NULL) AND ((state)::text = 'stopped'::text)); +-- +-- Name: integrations trigger_has_external_wiki_on_insert; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_environments_on_state_and_auto_stop_at ON environments USING btree (state, auto_stop_at) WHERE ((auto_stop_at IS NOT NULL) AND ((state)::text = 'available'::text)); +CREATE TRIGGER trigger_has_external_wiki_on_insert AFTER INSERT ON public.integrations FOR EACH ROW WHEN (((new.active = true) AND (new.type_new = 'Integrations::ExternalWiki'::text) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION public.set_has_external_wiki(); -CREATE INDEX index_environments_on_updated_at_for_stopping_state ON environments USING btree (updated_at) WHERE ((state)::text = 'stopping'::text); -CREATE UNIQUE INDEX index_epic_board_list_preferences_on_user_and_list ON boards_epic_list_user_preferences USING btree (user_id, epic_list_id); +-- +-- Name: integrations trigger_has_external_wiki_on_type_new_updated; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_epic_board_recent_visits_on_user_group_and_board ON boards_epic_board_recent_visits USING btree (user_id, group_id, epic_board_id); +CREATE TRIGGER trigger_has_external_wiki_on_type_new_updated AFTER UPDATE OF type_new ON public.integrations FOR EACH ROW WHEN (((new.type_new = 'Integrations::ExternalWiki'::text) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION public.set_has_external_wiki(); -CREATE INDEX index_epic_issues_on_epic_id_and_issue_id ON epic_issues USING btree (epic_id, issue_id); -CREATE UNIQUE INDEX index_epic_issues_on_issue_id ON epic_issues USING btree (issue_id); +-- +-- Name: integrations trigger_has_external_wiki_on_update; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_epic_issues_on_namespace_id ON epic_issues USING btree (namespace_id); +CREATE TRIGGER trigger_has_external_wiki_on_update AFTER UPDATE ON public.integrations FOR EACH ROW WHEN (((new.type_new = 'Integrations::ExternalWiki'::text) AND (old.active <> new.active) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION public.set_has_external_wiki(); -CREATE INDEX index_epic_metrics ON epic_metrics USING btree (epic_id); -CREATE INDEX index_epic_user_mentions_on_group_id ON epic_user_mentions USING btree (group_id); +-- +-- Name: vulnerability_occurrences trigger_insert_or_update_vulnerability_reads_from_occurrences; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_epic_user_mentions_on_note_id ON epic_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); +CREATE TRIGGER trigger_insert_or_update_vulnerability_reads_from_occurrences AFTER INSERT OR UPDATE ON public.vulnerability_occurrences FOR EACH ROW EXECUTE FUNCTION public.insert_or_update_vulnerability_reads(); -CREATE INDEX index_epics_on_assignee_id ON epics USING btree (assignee_id); -CREATE INDEX index_epics_on_author_id ON epics USING btree (author_id); +-- +-- Name: vulnerabilities trigger_insert_vulnerability_reads_from_vulnerability; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_epics_on_closed_by_id ON epics USING btree (closed_by_id); +CREATE TRIGGER trigger_insert_vulnerability_reads_from_vulnerability AFTER UPDATE ON public.vulnerabilities FOR EACH ROW WHEN (((old.present_on_default_branch IS NOT TRUE) AND (new.present_on_default_branch IS TRUE))) EXECUTE FUNCTION public.insert_vulnerability_reads_from_vulnerability(); -CREATE INDEX index_epics_on_confidential ON epics USING btree (confidential); -CREATE INDEX index_epics_on_due_date_sourcing_epic_id ON epics USING btree (due_date_sourcing_epic_id) WHERE (due_date_sourcing_epic_id IS NOT NULL); +-- +-- Name: namespaces trigger_namespaces_traversal_ids_on_update; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_epics_on_due_date_sourcing_milestone_id ON epics USING btree (due_date_sourcing_milestone_id); +CREATE TRIGGER trigger_namespaces_traversal_ids_on_update AFTER UPDATE ON public.namespaces FOR EACH ROW WHEN ((old.traversal_ids IS DISTINCT FROM new.traversal_ids)) EXECUTE FUNCTION public.insert_namespaces_sync_event(); -CREATE INDEX index_epics_on_end_date ON epics USING btree (end_date); -CREATE UNIQUE INDEX index_epics_on_group_id_and_external_key ON epics USING btree (group_id, external_key) WHERE (external_key IS NOT NULL); +-- +-- Name: projects trigger_projects_parent_id_on_insert; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_epics_on_group_id_and_iid ON epics USING btree (group_id, iid); +CREATE TRIGGER trigger_projects_parent_id_on_insert AFTER INSERT ON public.projects FOR EACH ROW EXECUTE FUNCTION public.insert_projects_sync_event(); -CREATE INDEX index_epics_on_group_id_and_iid_varchar_pattern ON epics USING btree (group_id, ((iid)::character varying) varchar_pattern_ops); -CREATE INDEX index_epics_on_iid ON epics USING btree (iid); +-- +-- Name: projects trigger_projects_parent_id_on_update; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_epics_on_last_edited_by_id ON epics USING btree (last_edited_by_id); +CREATE TRIGGER trigger_projects_parent_id_on_update AFTER UPDATE ON public.projects FOR EACH ROW WHEN ((old.namespace_id IS DISTINCT FROM new.namespace_id)) EXECUTE FUNCTION public.insert_projects_sync_event(); -CREATE INDEX index_epics_on_parent_id ON epics USING btree (parent_id); -CREATE INDEX index_epics_on_start_date ON epics USING btree (start_date); +-- +-- Name: work_item_dates_sources trigger_sync_issues_dates_with_work_item_dates_sources; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_epics_on_start_date_sourcing_epic_id ON epics USING btree (start_date_sourcing_epic_id) WHERE (start_date_sourcing_epic_id IS NOT NULL); +CREATE TRIGGER trigger_sync_issues_dates_with_work_item_dates_sources AFTER INSERT OR UPDATE OF start_date, due_date ON public.work_item_dates_sources FOR EACH ROW EXECUTE FUNCTION public.sync_issues_dates_with_work_item_dates_sources(); -CREATE INDEX index_epics_on_start_date_sourcing_milestone_id ON epics USING btree (start_date_sourcing_milestone_id); -CREATE INDEX index_error_tracking_client_for_enabled_check ON error_tracking_client_keys USING btree (project_id, public_key) WHERE (active = true); +-- +-- Name: namespaces trigger_update_details_on_namespace_insert; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_error_tracking_client_keys_on_project_id ON error_tracking_client_keys USING btree (project_id); +CREATE TRIGGER trigger_update_details_on_namespace_insert AFTER INSERT ON public.namespaces FOR EACH ROW WHEN (((new.type)::text <> 'Project'::text)) EXECUTE FUNCTION public.update_namespace_details_from_namespaces(); -CREATE INDEX index_error_tracking_error_events_on_error_id ON error_tracking_error_events USING btree (error_id); -CREATE INDEX index_error_tracking_error_events_on_project_id ON error_tracking_error_events USING btree (project_id); +-- +-- Name: namespaces trigger_update_details_on_namespace_update; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_error_tracking_errors_on_project_id ON error_tracking_errors USING btree (project_id); +CREATE TRIGGER trigger_update_details_on_namespace_update AFTER UPDATE ON public.namespaces FOR EACH ROW WHEN ((((new.type)::text <> 'Project'::text) AND (((old.description)::text IS DISTINCT FROM (new.description)::text) OR (old.description_html IS DISTINCT FROM new.description_html) OR (old.cached_markdown_version IS DISTINCT FROM new.cached_markdown_version)))) EXECUTE FUNCTION public.update_namespace_details_from_namespaces(); -CREATE INDEX index_esc_protected_branches_on_external_status_check_id ON external_status_checks_protected_branches USING btree (external_status_check_id); -CREATE INDEX index_esc_protected_branches_on_protected_branch_id ON external_status_checks_protected_branches USING btree (protected_branch_id); +-- +-- Name: projects trigger_update_details_on_project_insert; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_escalation_rules_on_all_attributes ON incident_management_escalation_rules USING btree (policy_id, oncall_schedule_id, status, elapsed_time_seconds, user_id); +CREATE TRIGGER trigger_update_details_on_project_insert AFTER INSERT ON public.projects FOR EACH ROW EXECUTE FUNCTION public.update_namespace_details_from_projects(); -CREATE INDEX index_escalation_rules_on_user ON incident_management_escalation_rules USING btree (user_id); -CREATE INDEX index_et_errors_on_project_id_and_status_and_id ON error_tracking_errors USING btree (project_id, status, id); +-- +-- Name: projects trigger_update_details_on_project_update; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_et_errors_on_project_id_and_status_events_count_id_desc ON error_tracking_errors USING btree (project_id, status, events_count DESC, id DESC); +CREATE TRIGGER trigger_update_details_on_project_update AFTER UPDATE ON public.projects FOR EACH ROW WHEN (((old.description IS DISTINCT FROM new.description) OR (old.description_html IS DISTINCT FROM new.description_html) OR (old.cached_markdown_version IS DISTINCT FROM new.cached_markdown_version))) EXECUTE FUNCTION public.update_namespace_details_from_projects(); -CREATE INDEX index_et_errors_on_project_id_and_status_first_seen_at_id_desc ON error_tracking_errors USING btree (project_id, status, first_seen_at DESC, id DESC); -CREATE INDEX index_et_errors_on_project_id_and_status_last_seen_at_id_desc ON error_tracking_errors USING btree (project_id, status, last_seen_at DESC, id DESC); +-- +-- Name: vulnerability_issue_links trigger_update_has_issues_on_vulnerability_issue_links_delete; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_events_author_id_group_id_action_target_type_created_at ON events USING btree (author_id, group_id, action, target_type, created_at); +CREATE TRIGGER trigger_update_has_issues_on_vulnerability_issue_links_delete AFTER DELETE ON public.vulnerability_issue_links FOR EACH ROW EXECUTE FUNCTION public.unset_has_issues_on_vulnerability_reads(); -CREATE INDEX index_events_author_id_project_id_action_target_type_created_at ON events USING btree (author_id, project_id, action, target_type, created_at); -CREATE INDEX index_events_for_followed_users ON events USING btree (author_id, target_type, action, id); +-- +-- Name: vulnerability_issue_links trigger_update_has_issues_on_vulnerability_issue_links_update; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_events_for_group_activity ON events USING btree (group_id, target_type, action, id) WHERE (group_id IS NOT NULL); +CREATE TRIGGER trigger_update_has_issues_on_vulnerability_issue_links_update AFTER INSERT ON public.vulnerability_issue_links FOR EACH ROW EXECUTE FUNCTION public.set_has_issues_on_vulnerability_reads(); -CREATE INDEX index_events_for_project_activity ON events USING btree (project_id, target_type, action, id); -CREATE INDEX index_events_on_author_id_and_created_at ON events USING btree (author_id, created_at); +-- +-- Name: vulnerability_merge_request_links trigger_update_has_merge_request_on_vulnerability_mr_links_dele; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_events_on_author_id_and_id ON events USING btree (author_id, id); +CREATE TRIGGER trigger_update_has_merge_request_on_vulnerability_mr_links_dele AFTER DELETE ON public.vulnerability_merge_request_links FOR EACH ROW EXECUTE FUNCTION public.unset_has_merge_request_on_vulnerability_reads(); -CREATE INDEX index_events_on_created_at_and_id ON events USING btree (created_at, id) WHERE (created_at > '2021-08-27 00:00:00+00'::timestamp with time zone); -CREATE INDEX index_events_on_group_id_and_id ON events USING btree (group_id, id) WHERE (group_id IS NOT NULL); +-- +-- Name: vulnerability_merge_request_links trigger_update_has_merge_request_on_vulnerability_mr_links_upda; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_events_on_group_id_partial ON events USING btree (group_id) WHERE (group_id IS NOT NULL); +CREATE TRIGGER trigger_update_has_merge_request_on_vulnerability_mr_links_upda AFTER INSERT ON public.vulnerability_merge_request_links FOR EACH ROW EXECUTE FUNCTION public.set_has_merge_request_on_vulnerability_reads(); -CREATE INDEX index_events_on_project_id_and_created_at ON events USING btree (project_id, created_at); -CREATE INDEX index_events_on_project_id_and_id ON events USING btree (project_id, id); +-- +-- Name: vulnerability_occurrences trigger_update_location_on_vulnerability_occurrences_update; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_events_on_target_type_and_target_id_and_fingerprint ON events USING btree (target_type, target_id, fingerprint); +CREATE TRIGGER trigger_update_location_on_vulnerability_occurrences_update AFTER UPDATE ON public.vulnerability_occurrences FOR EACH ROW WHEN (((new.report_type = ANY (ARRAY[2, 7])) AND (((old.location ->> 'image'::text) IS DISTINCT FROM (new.location ->> 'image'::text)) OR (((old.location -> 'kubernetes_resource'::text) ->> 'agent_id'::text) IS DISTINCT FROM ((new.location -> 'kubernetes_resource'::text) ->> 'agent_id'::text))))) EXECUTE FUNCTION public.update_location_from_vulnerability_occurrences(); -CREATE INDEX index_evidences_on_project_id ON evidences USING btree (project_id); -CREATE INDEX index_evidences_on_release_id ON evidences USING btree (release_id); +-- +-- Name: vulnerabilities trigger_update_vulnerability_reads_on_vulnerability_update; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_expired_and_not_notified_personal_access_tokens ON personal_access_tokens USING btree (id, expires_at) WHERE ((impersonation = false) AND (revoked = false) AND (expire_notification_delivered = false)); +CREATE TRIGGER trigger_update_vulnerability_reads_on_vulnerability_update AFTER UPDATE ON public.vulnerabilities FOR EACH ROW WHEN (((old.present_on_default_branch IS TRUE) AND ((old.severity IS DISTINCT FROM new.severity) OR (old.state IS DISTINCT FROM new.state) OR (old.resolved_on_default_branch IS DISTINCT FROM new.resolved_on_default_branch)))) EXECUTE FUNCTION public.update_vulnerability_reads_from_vulnerability(); -CREATE UNIQUE INDEX index_external_audit_event_destinations_on_namespace_id ON audit_events_external_audit_event_destinations USING btree (namespace_id, destination_url); -CREATE UNIQUE INDEX index_external_pull_requests_on_project_and_branches ON external_pull_requests USING btree (project_id, source_branch, target_branch); +-- +-- Name: users users_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - +-- -CREATE INDEX index_external_status_checks_protected_branches_on_project_id ON external_status_checks_protected_branches USING btree (project_id); +CREATE TRIGGER users_loose_fk_trigger AFTER DELETE ON public.users REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); -CREATE UNIQUE INDEX index_feature_flag_scopes_on_flag_id_and_environment_scope ON operations_feature_flag_scopes USING btree (feature_flag_id, environment_scope); -CREATE UNIQUE INDEX index_feature_flags_clients_on_project_id_and_token_encrypted ON operations_feature_flags_clients USING btree (project_id, token_encrypted); +-- +-- Name: deployments fk_009fd21147; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_feature_gates_on_feature_key_and_key_and_value ON feature_gates USING btree (feature_key, key, value); +ALTER TABLE ONLY public.deployments + ADD CONSTRAINT fk_009fd21147 FOREIGN KEY (environment_id) REFERENCES public.environments(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_features_on_key ON features USING btree (key); -CREATE INDEX index_for_owasp_top_10_group_level_reports ON vulnerability_reads USING btree (owasp_top_10, state, report_type, severity, traversal_ids, vulnerability_id, resolved_on_default_branch) WHERE (archived = false); +-- +-- Name: epics fk_013c9f36ca; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_for_protected_environment_group_id_of_protected_environme ON protected_environment_deploy_access_levels USING btree (protected_environment_group_id); +ALTER TABLE ONLY public.epics + ADD CONSTRAINT fk_013c9f36ca FOREIGN KEY (due_date_sourcing_epic_id) REFERENCES public.epics(id) ON DELETE SET NULL; -CREATE INDEX index_for_protected_environment_project_id_of_protected_environ ON protected_environment_deploy_access_levels USING btree (protected_environment_project_id); -CREATE INDEX index_for_security_scans_scan_type ON security_scans USING btree (scan_type, project_id, pipeline_id) WHERE (status = 1); +-- +-- Name: environments fk_01a033a308; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_for_status_per_branch_per_project ON merge_trains USING btree (target_project_id, target_branch, status); +ALTER TABLE ONLY public.environments + ADD CONSTRAINT fk_01a033a308 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE SET NULL; -CREATE INDEX index_fork_network_members_on_fork_network_id ON fork_network_members USING btree (fork_network_id); -CREATE INDEX index_fork_network_members_on_forked_from_project_id ON fork_network_members USING btree (forked_from_project_id); +-- +-- Name: agent_user_access_project_authorizations fk_0250c0ad51; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_fork_network_members_on_project_id ON fork_network_members USING btree (project_id); +ALTER TABLE ONLY public.agent_user_access_project_authorizations + ADD CONSTRAINT fk_0250c0ad51 FOREIGN KEY (agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_fork_networks_on_root_project_id ON fork_networks USING btree (root_project_id); -CREATE INDEX index_geo_event_log_on_cache_invalidation_event_id ON geo_event_log USING btree (cache_invalidation_event_id) WHERE (cache_invalidation_event_id IS NOT NULL); +-- +-- Name: cluster_agent_url_configurations fk_02c2a4f060; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_geo_event_log_on_geo_event_id ON geo_event_log USING btree (geo_event_id) WHERE (geo_event_id IS NOT NULL); +ALTER TABLE ONLY public.cluster_agent_url_configurations + ADD CONSTRAINT fk_02c2a4f060 FOREIGN KEY (agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; -CREATE INDEX index_geo_event_log_on_repositories_changed_event_id ON geo_event_log USING btree (repositories_changed_event_id) WHERE (repositories_changed_event_id IS NOT NULL); -CREATE INDEX index_geo_node_namespace_links_on_geo_node_id ON geo_node_namespace_links USING btree (geo_node_id); +-- +-- Name: incident_management_escalation_rules fk_0314ee86eb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_geo_node_namespace_links_on_geo_node_id_and_namespace_id ON geo_node_namespace_links USING btree (geo_node_id, namespace_id); +ALTER TABLE ONLY public.incident_management_escalation_rules + ADD CONSTRAINT fk_0314ee86eb FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_geo_node_namespace_links_on_namespace_id ON geo_node_namespace_links USING btree (namespace_id); -CREATE UNIQUE INDEX index_geo_node_statuses_on_geo_node_id ON geo_node_statuses USING btree (geo_node_id); +-- +-- Name: service_desk_settings fk_03afb71f06; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_geo_nodes_on_access_key ON geo_nodes USING btree (access_key); +ALTER TABLE ONLY public.service_desk_settings + ADD CONSTRAINT fk_03afb71f06 FOREIGN KEY (file_template_project_id) REFERENCES public.projects(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_geo_nodes_on_name ON geo_nodes USING btree (name); -CREATE INDEX index_geo_nodes_on_primary ON geo_nodes USING btree ("primary"); +-- +-- Name: design_management_designs_versions fk_03c671965c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_ghost_user_migrations_on_consume_after_id ON ghost_user_migrations USING btree (consume_after, id); +ALTER TABLE ONLY public.design_management_designs_versions + ADD CONSTRAINT fk_03c671965c FOREIGN KEY (design_id) REFERENCES public.design_management_designs(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_ghost_user_migrations_on_user_id ON ghost_user_migrations USING btree (user_id); -CREATE INDEX index_gin_ci_namespace_mirrors_on_traversal_ids ON ci_namespace_mirrors USING gin (traversal_ids); +-- +-- Name: external_status_checks_protected_branches fk_0480f2308c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_gin_ci_pending_builds_on_namespace_traversal_ids ON ci_pending_builds USING gin (namespace_traversal_ids); +ALTER TABLE ONLY public.external_status_checks_protected_branches + ADD CONSTRAINT fk_0480f2308c FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_gitlab_subscription_histories_on_gitlab_subscription_id ON gitlab_subscription_histories USING btree (gitlab_subscription_id); -CREATE INDEX index_gitlab_subscription_histories_on_namespace_id ON gitlab_subscription_histories USING btree (namespace_id); +-- +-- Name: sbom_occurrences_vulnerabilities fk_058f258503; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_gitlab_subscriptions_on_end_date_and_namespace_id ON gitlab_subscriptions USING btree (end_date, namespace_id); +ALTER TABLE ONLY public.sbom_occurrences_vulnerabilities + ADD CONSTRAINT fk_058f258503 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_gitlab_subscriptions_on_hosted_plan_id_and_trial ON gitlab_subscriptions USING btree (hosted_plan_id, trial); -CREATE INDEX index_gitlab_subscriptions_on_max_seats_used_changed_at ON gitlab_subscriptions USING btree (max_seats_used_changed_at, namespace_id); +-- +-- Name: analytics_dashboards_pointers fk_05d96922bd; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_gitlab_subscriptions_on_namespace_id ON gitlab_subscriptions USING btree (namespace_id); +ALTER TABLE ONLY public.analytics_dashboards_pointers + ADD CONSTRAINT fk_05d96922bd FOREIGN KEY (target_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_gitlab_subscriptions_on_trial_and_trial_starts_on ON gitlab_subscriptions USING btree (trial, trial_starts_on); -CREATE UNIQUE INDEX index_gpg_key_subkeys_on_fingerprint ON gpg_key_subkeys USING btree (fingerprint); +-- +-- Name: issues fk_05f1e72feb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_gpg_key_subkeys_on_gpg_key_id ON gpg_key_subkeys USING btree (gpg_key_id); +ALTER TABLE ONLY public.issues + ADD CONSTRAINT fk_05f1e72feb FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_gpg_key_subkeys_on_keyid ON gpg_key_subkeys USING btree (keyid); -CREATE UNIQUE INDEX index_gpg_keys_on_fingerprint ON gpg_keys USING btree (fingerprint); +-- +-- Name: merge_requests fk_06067f5644; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_gpg_keys_on_primary_keyid ON gpg_keys USING btree (primary_keyid); +ALTER TABLE ONLY public.merge_requests + ADD CONSTRAINT fk_06067f5644 FOREIGN KEY (latest_merge_request_diff_id) REFERENCES public.merge_request_diffs(id) ON DELETE SET NULL; -CREATE INDEX index_gpg_keys_on_user_id ON gpg_keys USING btree (user_id); -CREATE UNIQUE INDEX index_gpg_signatures_on_commit_sha ON gpg_signatures USING btree (commit_sha); +-- +-- Name: sbom_occurrences_vulnerabilities fk_07b81e3a81; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_gpg_signatures_on_gpg_key_id_and_id ON gpg_signatures USING btree (gpg_key_id, id); +ALTER TABLE ONLY public.sbom_occurrences_vulnerabilities + ADD CONSTRAINT fk_07b81e3a81 FOREIGN KEY (vulnerability_id) REFERENCES public.vulnerabilities(id) ON DELETE CASCADE; -CREATE INDEX index_gpg_signatures_on_gpg_key_primary_keyid ON gpg_signatures USING btree (gpg_key_primary_keyid); -CREATE INDEX index_gpg_signatures_on_gpg_key_subkey_id ON gpg_signatures USING btree (gpg_key_subkey_id); +-- +-- Name: ai_agent_version_attachments fk_07db0a0e5b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_gpg_signatures_on_project_id ON gpg_signatures USING btree (project_id); +ALTER TABLE ONLY public.ai_agent_version_attachments + ADD CONSTRAINT fk_07db0a0e5b FOREIGN KEY (ai_agent_version_id) REFERENCES public.ai_agent_versions(id) ON DELETE CASCADE; -CREATE INDEX index_grafana_integrations_on_enabled ON grafana_integrations USING btree (enabled) WHERE (enabled IS TRUE); -CREATE INDEX index_grafana_integrations_on_project_id ON grafana_integrations USING btree (project_id); +-- +-- Name: abuse_report_notes fk_0801b83126; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_group_crm_settings_on_group_id ON group_crm_settings USING btree (group_id); +ALTER TABLE ONLY public.abuse_report_notes + ADD CONSTRAINT fk_0801b83126 FOREIGN KEY (updated_by_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_group_crm_settings_on_source_group_id ON group_crm_settings USING btree (source_group_id); -CREATE UNIQUE INDEX index_group_custom_attributes_on_group_id_and_key ON group_custom_attributes USING btree (group_id, key); +-- +-- Name: vulnerability_issue_links fk_081e11030b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_group_custom_attributes_on_key_and_value ON group_custom_attributes USING btree (key, value); +ALTER TABLE ONLY public.vulnerability_issue_links + ADD CONSTRAINT fk_081e11030b FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_group_deletion_schedules_on_marked_for_deletion_on ON group_deletion_schedules USING btree (marked_for_deletion_on); -CREATE INDEX index_group_deletion_schedules_on_user_id ON group_deletion_schedules USING btree (user_id); +-- +-- Name: analytics_cycle_analytics_stage_event_hashes fk_0839874e4f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_group_deploy_keys_group_on_group_deploy_key_and_group_ids ON group_deploy_keys_groups USING btree (group_id, group_deploy_key_id); +ALTER TABLE ONLY public.analytics_cycle_analytics_stage_event_hashes + ADD CONSTRAINT fk_0839874e4f FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; -CREATE INDEX index_group_deploy_keys_groups_on_group_deploy_key_id ON group_deploy_keys_groups USING btree (group_deploy_key_id); -CREATE INDEX index_group_deploy_keys_on_fingerprint ON group_deploy_keys USING btree (fingerprint); +-- +-- Name: abuse_report_user_mentions fk_088018ecd8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_group_deploy_keys_on_fingerprint_sha256_unique ON group_deploy_keys USING btree (fingerprint_sha256); +ALTER TABLE ONLY public.abuse_report_user_mentions + ADD CONSTRAINT fk_088018ecd8 FOREIGN KEY (abuse_report_id) REFERENCES public.abuse_reports(id) ON DELETE CASCADE; -CREATE INDEX index_group_deploy_keys_on_user_id ON group_deploy_keys USING btree (user_id); -CREATE INDEX index_group_deploy_tokens_on_deploy_token_id ON group_deploy_tokens USING btree (deploy_token_id); +-- +-- Name: merge_request_assignees fk_088f01d08d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_group_deploy_tokens_on_group_and_deploy_token_ids ON group_deploy_tokens USING btree (group_id, deploy_token_id); +ALTER TABLE ONLY public.merge_request_assignees + ADD CONSTRAINT fk_088f01d08d FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_group_group_links_on_member_role_id ON group_group_links USING btree (member_role_id); -CREATE UNIQUE INDEX index_group_group_links_on_shared_group_and_shared_with_group ON group_group_links USING btree (shared_group_id, shared_with_group_id); +-- +-- Name: observability_traces_issues_connections fk_08c2664321; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_group_group_links_on_shared_with_group_and_group_access ON group_group_links USING btree (shared_with_group_id, group_access); +ALTER TABLE ONLY public.observability_traces_issues_connections + ADD CONSTRAINT fk_08c2664321 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_group_group_links_on_shared_with_group_and_shared_group ON group_group_links USING btree (shared_with_group_id, shared_group_id); -CREATE INDEX index_group_import_states_on_group_id ON group_import_states USING btree (group_id); +-- +-- Name: merge_request_assignment_events fk_08f7602bfd; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_group_import_states_on_user_id ON group_import_states USING btree (user_id) WHERE (user_id IS NOT NULL); +ALTER TABLE ONLY public.merge_request_assignment_events + ADD CONSTRAINT fk_08f7602bfd FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -CREATE INDEX index_group_repository_storage_moves_on_group_id ON group_repository_storage_moves USING btree (group_id); -CREATE INDEX index_group_saved_replies_on_group_id ON group_saved_replies USING btree (group_id); +-- +-- Name: remote_development_agent_configs fk_0a3c0ada56; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_group_ssh_certificates_on_fingerprint ON group_ssh_certificates USING btree (fingerprint); +ALTER TABLE ONLY public.remote_development_agent_configs + ADD CONSTRAINT fk_0a3c0ada56 FOREIGN KEY (cluster_agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; -CREATE INDEX index_group_ssh_certificates_on_namespace_id ON group_ssh_certificates USING btree (namespace_id); -CREATE UNIQUE INDEX index_group_stages_on_group_id_group_value_stream_id_and_name ON analytics_cycle_analytics_group_stages USING btree (group_id, group_value_stream_id, name); +-- +-- Name: dast_sites fk_0a57f2271b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_group_stages_on_stage_event_hash_id ON analytics_cycle_analytics_group_stages USING btree (stage_event_hash_id); +ALTER TABLE ONLY public.dast_sites + ADD CONSTRAINT fk_0a57f2271b FOREIGN KEY (dast_site_validation_id) REFERENCES public.dast_site_validations(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_group_user_callouts_feature ON user_group_callouts USING btree (user_id, feature_name, group_id); -CREATE UNIQUE INDEX index_group_wiki_repositories_on_disk_path ON group_wiki_repositories USING btree (disk_path); +-- +-- Name: project_saved_replies fk_0ace76afbb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_group_wiki_repositories_on_shard_id ON group_wiki_repositories USING btree (shard_id); +ALTER TABLE ONLY public.project_saved_replies + ADD CONSTRAINT fk_0ace76afbb FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE NOT VALID; -CREATE INDEX index_group_wiki_repository_states_failed_verification ON group_wiki_repository_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); -CREATE INDEX index_group_wiki_repository_states_needs_verification ON group_wiki_repository_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); +-- +-- Name: approval_group_rules_protected_branches fk_0b85e6c388; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_group_wiki_repository_states_on_group_wiki_repository_id ON group_wiki_repository_states USING btree (group_wiki_repository_id); +ALTER TABLE ONLY public.approval_group_rules_protected_branches + ADD CONSTRAINT fk_0b85e6c388 FOREIGN KEY (protected_branch_id) REFERENCES public.protected_branches(id) ON DELETE CASCADE; -CREATE INDEX index_group_wiki_repository_states_on_verification_state ON group_wiki_repository_states USING btree (verification_state); -CREATE INDEX index_group_wiki_repository_states_pending_verification ON group_wiki_repository_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); +-- +-- Name: issue_customer_relations_contacts fk_0c0037f723; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_groups_on_parent_id_id ON namespaces USING btree (parent_id, id) WHERE ((type)::text = 'Group'::text); +ALTER TABLE ONLY public.issue_customer_relations_contacts + ADD CONSTRAINT fk_0c0037f723 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -CREATE INDEX index_groups_on_path_and_id ON namespaces USING btree (path, id) WHERE ((type)::text = 'Group'::text); -CREATE INDEX index_groups_visits_on_entity_id ON ONLY groups_visits USING btree (entity_id); +-- +-- Name: remote_development_namespace_cluster_agent_mappings fk_0c483ecb9d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_groups_visits_on_user_id_and_entity_id_and_visited_at ON ONLY groups_visits USING btree (user_id, entity_id, visited_at); +ALTER TABLE ONLY public.remote_development_namespace_cluster_agent_mappings + ADD CONSTRAINT fk_0c483ecb9d FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_historical_data_on_recorded_at ON historical_data USING btree (recorded_at); -CREATE UNIQUE INDEX index_http_integrations_on_project_and_endpoint ON alert_management_http_integrations USING btree (project_id, endpoint_identifier); +-- +-- Name: zoekt_replicas fk_0c62cc0251; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_identities_on_saml_provider_id ON identities USING btree (saml_provider_id) WHERE (saml_provider_id IS NOT NULL); +ALTER TABLE ONLY public.zoekt_replicas + ADD CONSTRAINT fk_0c62cc0251 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_identities_on_user_id ON identities USING btree (user_id); -CREATE INDEX index_im_issuable_escalation_statuses_on_policy_id ON incident_management_issuable_escalation_statuses USING btree (policy_id); +-- +-- Name: ssh_signatures fk_0c83baaa5f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_im_oncall_schedules_on_project_id_and_iid ON incident_management_oncall_schedules USING btree (project_id, iid); +ALTER TABLE ONLY public.ssh_signatures + ADD CONSTRAINT fk_0c83baaa5f FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_im_timeline_event_id ON incident_management_timeline_event_tag_links USING btree (timeline_event_id); -CREATE UNIQUE INDEX index_im_timeline_event_tags_on_lower_name_and_project_id ON incident_management_timeline_event_tags USING btree (project_id, lower(name)); +-- +-- Name: web_hooks fk_0c8ca6d9d1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_im_timeline_event_tags_on_tag_id_and_event_id ON incident_management_timeline_event_tag_links USING btree (timeline_event_tag_id, timeline_event_id); +ALTER TABLE ONLY public.web_hooks + ADD CONSTRAINT fk_0c8ca6d9d1 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_im_timeline_events_author_id ON incident_management_timeline_events USING btree (author_id); -CREATE INDEX index_im_timeline_events_issue_id ON incident_management_timeline_events USING btree (issue_id); +-- +-- Name: lists fk_0d3f677137; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_im_timeline_events_project_id ON incident_management_timeline_events USING btree (project_id); +ALTER TABLE ONLY public.lists + ADD CONSTRAINT fk_0d3f677137 FOREIGN KEY (board_id) REFERENCES public.boards(id) ON DELETE CASCADE; -CREATE INDEX index_im_timeline_events_promoted_from_note_id ON incident_management_timeline_events USING btree (promoted_from_note_id); -CREATE INDEX index_im_timeline_events_updated_by_user_id ON incident_management_timeline_events USING btree (updated_by_user_id); +-- +-- Name: subscription_user_add_on_assignments fk_0d89020c49; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_import_export_uploads_on_group_id_non_unique ON import_export_uploads USING btree (group_id) WHERE (group_id IS NOT NULL); +ALTER TABLE ONLY public.subscription_user_add_on_assignments + ADD CONSTRAINT fk_0d89020c49 FOREIGN KEY (add_on_purchase_id) REFERENCES public.subscription_add_on_purchases(id) ON DELETE CASCADE; -CREATE INDEX index_import_export_uploads_on_project_id ON import_export_uploads USING btree (project_id); -CREATE INDEX index_import_export_uploads_on_updated_at ON import_export_uploads USING btree (updated_at); +-- +-- Name: approval_project_rules_users fk_0dfcd9e339; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_import_export_uploads_on_user_id ON import_export_uploads USING btree (user_id); +ALTER TABLE ONLY public.approval_project_rules_users + ADD CONSTRAINT fk_0dfcd9e339 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_import_failures_on_correlation_id_value ON import_failures USING btree (correlation_id_value); -CREATE INDEX index_import_failures_on_external_identifiers ON import_failures USING btree (external_identifiers) WHERE (external_identifiers <> '{}'::jsonb); +-- +-- Name: security_policy_project_links fk_0eba4d5d71; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_import_failures_on_group_id_not_null ON import_failures USING btree (group_id) WHERE (group_id IS NOT NULL); +ALTER TABLE ONLY public.security_policy_project_links + ADD CONSTRAINT fk_0eba4d5d71 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_import_failures_on_project_id_and_correlation_id_value ON import_failures USING btree (project_id, correlation_id_value) WHERE (retry_count = 0); -CREATE INDEX index_import_failures_on_project_id_not_null ON import_failures USING btree (project_id) WHERE (project_id IS NOT NULL); +-- +-- Name: deployment_approvals fk_0f58311058; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_import_failures_on_user_id_not_null ON import_failures USING btree (user_id) WHERE (user_id IS NOT NULL); +ALTER TABLE ONLY public.deployment_approvals + ADD CONSTRAINT fk_0f58311058 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_import_placeholder_memberships_on_group_id ON import_placeholder_memberships USING btree (group_id); -CREATE INDEX index_import_placeholder_memberships_on_namespace_id ON import_placeholder_memberships USING btree (namespace_id); +-- +-- Name: project_pages_metadata fk_0fd5b22688; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_import_placeholder_memberships_on_project_id ON import_placeholder_memberships USING btree (project_id); +ALTER TABLE ONLY public.project_pages_metadata + ADD CONSTRAINT fk_0fd5b22688 FOREIGN KEY (pages_deployment_id) REFERENCES public.pages_deployments(id) ON DELETE SET NULL; -CREATE INDEX index_import_placeholder_memberships_on_source_user_id ON import_placeholder_memberships USING btree (source_user_id); -CREATE INDEX index_import_source_user_placeholder_references_on_namespace_id ON import_source_user_placeholder_references USING btree (namespace_id); +-- +-- Name: audit_events_streaming_event_type_filters fk_107946dffb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_import_source_user_placeholder_references_on_source_user_ ON import_source_user_placeholder_references USING btree (source_user_id); +ALTER TABLE ONLY public.audit_events_streaming_event_type_filters + ADD CONSTRAINT fk_107946dffb FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_import_source_users_on_namespace_id_and_status ON import_source_users USING btree (namespace_id, status); -CREATE INDEX index_import_source_users_on_placeholder_user_id ON import_source_users USING btree (placeholder_user_id); +-- +-- Name: group_deletion_schedules fk_11e3ebfcdd; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_import_source_users_on_reassigned_by_user_id ON import_source_users USING btree (reassigned_by_user_id); +ALTER TABLE ONLY public.group_deletion_schedules + ADD CONSTRAINT fk_11e3ebfcdd FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_imported_projects_on_import_type_creator_id_created_at ON projects USING btree (import_type, creator_id, created_at) WHERE (import_type IS NOT NULL); -CREATE INDEX index_imported_projects_on_import_type_id ON projects USING btree (import_type, id) WHERE (import_type IS NOT NULL); +-- +-- Name: protected_environment_deploy_access_levels fk_11ede44198; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_inc_mgmnt_oncall_participants_on_oncall_user_id ON incident_management_oncall_participants USING btree (user_id); +ALTER TABLE ONLY public.protected_environment_deploy_access_levels + ADD CONSTRAINT fk_11ede44198 FOREIGN KEY (protected_environment_group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_inc_mgmnt_oncall_participants_on_user_id_and_rotation_id ON incident_management_oncall_participants USING btree (user_id, oncall_rotation_id); -CREATE INDEX index_inc_mgmnt_oncall_pcpnt_on_oncall_rotation_id_is_removed ON incident_management_oncall_participants USING btree (oncall_rotation_id, is_removed); +-- +-- Name: remote_development_namespace_cluster_agent_mappings fk_124d8167c5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_inc_mgmnt_oncall_rotations_on_oncall_schedule_id_and_id ON incident_management_oncall_rotations USING btree (oncall_schedule_id, id); +ALTER TABLE ONLY public.remote_development_namespace_cluster_agent_mappings + ADD CONSTRAINT fk_124d8167c5 FOREIGN KEY (creator_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_inc_mgmnt_oncall_rotations_on_oncall_schedule_id_and_name ON incident_management_oncall_rotations USING btree (oncall_schedule_id, name); -CREATE INDEX index_incident_management_oncall_schedules_on_project_id ON incident_management_oncall_schedules USING btree (project_id); +-- +-- Name: cluster_agent_url_configurations fk_12d4a33b65; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_incident_management_oncall_shifts_on_participant_id ON incident_management_oncall_shifts USING btree (participant_id); +ALTER TABLE ONLY public.cluster_agent_url_configurations + ADD CONSTRAINT fk_12d4a33b65 FOREIGN KEY (created_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_incident_management_pending_alert_escalations_on_alert_id ON ONLY incident_management_pending_alert_escalations USING btree (alert_id); -CREATE INDEX index_incident_management_pending_alert_escalations_on_rule_id ON ONLY incident_management_pending_alert_escalations USING btree (rule_id); +-- +-- Name: member_approvals fk_1383c72212; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_incident_management_pending_issue_escalations_on_issue_id ON ONLY incident_management_pending_issue_escalations USING btree (issue_id); +ALTER TABLE ONLY public.member_approvals + ADD CONSTRAINT fk_1383c72212 FOREIGN KEY (member_namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_incident_management_pending_issue_escalations_on_rule_id ON ONLY incident_management_pending_issue_escalations USING btree (rule_id); -CREATE UNIQUE INDEX index_index_statuses_on_project_id ON index_statuses USING btree (project_id); +-- +-- Name: audit_events_streaming_headers fk_1413743b7d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_insights_on_namespace_id ON insights USING btree (namespace_id); +ALTER TABLE ONLY public.audit_events_streaming_headers + ADD CONSTRAINT fk_1413743b7d FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_insights_on_project_id ON insights USING btree (project_id); -CREATE INDEX index_integrations_on_inherit_from_id ON integrations USING btree (inherit_from_id); +-- +-- Name: approval_group_rules fk_1485c451e3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_integrations_on_project_and_type_new_where_inherit_null ON integrations USING btree (project_id, type_new) WHERE (inherit_from_id IS NULL); +ALTER TABLE ONLY public.approval_group_rules + ADD CONSTRAINT fk_1485c451e3 FOREIGN KEY (scan_result_policy_id) REFERENCES public.scan_result_policies(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_integrations_on_project_id_and_type_new_unique ON integrations USING btree (project_id, type_new); -CREATE INDEX index_integrations_on_type_new ON integrations USING btree (type_new); +-- +-- Name: ldap_group_links fk_14a86de4b3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_integrations_on_type_new_and_instance_partial ON integrations USING btree (type_new, instance) WHERE (instance = true); +ALTER TABLE ONLY public.ldap_group_links + ADD CONSTRAINT fk_14a86de4b3 FOREIGN KEY (member_role_id) REFERENCES public.member_roles(id) ON DELETE SET NULL; -CREATE INDEX index_integrations_on_type_new_id_when_active_and_has_group ON integrations USING btree (type_new, id, inherit_from_id) WHERE ((active = true) AND (group_id IS NOT NULL)); -CREATE INDEX index_integrations_on_type_new_id_when_active_and_has_project ON integrations USING btree (type_new, id) WHERE ((active = true) AND (project_id IS NOT NULL)); +-- +-- Name: catalog_resource_versions fk_15376d917e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_integrations_on_unique_group_id_and_type_new ON integrations USING btree (group_id, type_new); +ALTER TABLE ONLY public.catalog_resource_versions + ADD CONSTRAINT fk_15376d917e FOREIGN KEY (release_id) REFERENCES public.releases(id) ON DELETE CASCADE; -CREATE INDEX index_internal_ids_on_namespace_id ON internal_ids USING btree (namespace_id); -CREATE INDEX index_internal_ids_on_project_id ON internal_ids USING btree (project_id); +-- +-- Name: merge_request_blocks fk_1551efdd17; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_internal_ids_on_usage_and_namespace_id ON internal_ids USING btree (usage, namespace_id) WHERE (namespace_id IS NOT NULL); +ALTER TABLE ONLY public.merge_request_blocks + ADD CONSTRAINT fk_1551efdd17 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_internal_ids_on_usage_and_project_id ON internal_ids USING btree (usage, project_id) WHERE (project_id IS NOT NULL); -CREATE INDEX index_ip_restrictions_on_group_id ON ip_restrictions USING btree (group_id); +-- +-- Name: protected_branch_push_access_levels fk_15d2a7a4ae; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_issuable_metric_images_on_issue_id ON issuable_metric_images USING btree (issue_id); +ALTER TABLE ONLY public.protected_branch_push_access_levels + ADD CONSTRAINT fk_15d2a7a4ae FOREIGN KEY (deploy_key_id) REFERENCES public.keys(id) ON DELETE CASCADE; -CREATE INDEX index_issuable_resource_links_on_issue_id ON issuable_resource_links USING btree (issue_id); -CREATE UNIQUE INDEX index_issuable_severities_on_issue_id ON issuable_severities USING btree (issue_id); +-- +-- Name: user_achievements fk_15d6451a81; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_issuable_slas_on_due_at_id_label_applied_issuable_closed ON issuable_slas USING btree (due_at, id) WHERE ((label_applied = false) AND (issuable_closed = false)); +ALTER TABLE ONLY public.user_achievements + ADD CONSTRAINT fk_15d6451a81 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_issuable_slas_on_issue_id ON issuable_slas USING btree (issue_id); -CREATE INDEX index_issue_assignees_on_user_id_and_issue_id ON issue_assignees USING btree (user_id, issue_id); +-- +-- Name: internal_ids fk_162941d509; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_issue_assignment_events_on_user_id ON issue_assignment_events USING btree (user_id); +ALTER TABLE ONLY public.internal_ids + ADD CONSTRAINT fk_162941d509 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_issue_crm_contacts_on_issue_id_and_contact_id ON issue_customer_relations_contacts USING btree (issue_id, contact_id); -CREATE INDEX index_issue_customer_relations_contacts_on_contact_id ON issue_customer_relations_contacts USING btree (contact_id); +-- +-- Name: incident_management_timeline_events fk_17a5fafbd4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_issue_email_participants_on_issue_id_and_lower_email ON issue_email_participants USING btree (issue_id, lower(email)); +ALTER TABLE ONLY public.incident_management_timeline_events + ADD CONSTRAINT fk_17a5fafbd4 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -CREATE INDEX index_issue_emails_on_email_message_id ON issue_emails USING btree (email_message_id); -CREATE INDEX index_issue_emails_on_issue_id ON issue_emails USING btree (issue_id); +-- +-- Name: scan_result_policy_violations fk_17ce579abf; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_issue_links_on_namespace_id ON issue_links USING btree (namespace_id); +ALTER TABLE ONLY public.scan_result_policy_violations + ADD CONSTRAINT fk_17ce579abf FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -CREATE INDEX index_issue_links_on_source_id ON issue_links USING btree (source_id); -CREATE UNIQUE INDEX index_issue_links_on_source_id_and_target_id ON issue_links USING btree (source_id, target_id); +-- +-- Name: incident_management_timeline_events fk_1800597ef9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_issue_links_on_target_id ON issue_links USING btree (target_id); +ALTER TABLE ONLY public.incident_management_timeline_events + ADD CONSTRAINT fk_1800597ef9 FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_issue_metrics_on_issue_id_and_timestamps ON issue_metrics USING btree (issue_id, first_mentioned_in_commit_at, first_associated_with_milestone_at, first_added_to_board_at); -CREATE INDEX index_issue_on_project_id_state_id_and_blocking_issues_count ON issues USING btree (project_id, state_id, blocking_issues_count); +-- +-- Name: terraform_state_versions fk_180cde327a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_issue_tracker_data_on_integration_id ON issue_tracker_data USING btree (integration_id); +ALTER TABLE ONLY public.terraform_state_versions + ADD CONSTRAINT fk_180cde327a FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_issue_user_mentions_on_note_id ON issue_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); -CREATE INDEX index_issues_on_author_id ON issues USING btree (author_id); +-- +-- Name: project_features fk_18513d9b92; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_issues_on_author_id_and_id_and_created_at ON issues USING btree (author_id, id, created_at); +ALTER TABLE ONLY public.project_features + ADD CONSTRAINT fk_18513d9b92 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_issues_on_closed_by_id ON issues USING btree (closed_by_id); -CREATE INDEX index_issues_on_confidential ON issues USING btree (confidential); +-- +-- Name: abuse_report_events fk_18c774c06b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_issues_on_description_trigram_non_latin ON issues USING gin (description gin_trgm_ops) WHERE (((title)::text !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text)) OR (description !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text))); +ALTER TABLE ONLY public.abuse_report_events + ADD CONSTRAINT fk_18c774c06b FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_issues_on_duplicated_to_id ON issues USING btree (duplicated_to_id) WHERE (duplicated_to_id IS NOT NULL); -CREATE INDEX index_issues_on_id_and_weight ON issues USING btree (id, weight); +-- +-- Name: p_ci_pipelines fk_190998ef09; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_issues_on_last_edited_by_id ON issues USING btree (last_edited_by_id); +ALTER TABLE public.p_ci_pipelines + ADD CONSTRAINT fk_190998ef09 FOREIGN KEY (external_pull_request_id) REFERENCES public.external_pull_requests(id) ON DELETE SET NULL; -CREATE INDEX index_issues_on_milestone_id_and_id ON issues USING btree (milestone_id, id); -CREATE INDEX index_issues_on_moved_to_id ON issues USING btree (moved_to_id) WHERE (moved_to_id IS NOT NULL); +-- +-- Name: analytics_devops_adoption_segments fk_190a24754d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_issues_on_namespace_id_iid_unique ON issues USING btree (namespace_id, iid); +ALTER TABLE ONLY public.analytics_devops_adoption_segments + ADD CONSTRAINT fk_190a24754d FOREIGN KEY (display_namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_issues_on_project_health_status_asc_work_item_type ON issues USING btree (project_id, health_status, id DESC, state_id, work_item_type_id); -CREATE INDEX index_issues_on_project_health_status_desc_work_item_type ON issues USING btree (project_id, health_status DESC NULLS LAST, id DESC, state_id, work_item_type_id); +-- +-- Name: project_statistics fk_198ad46fdc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_issues_on_project_id_and_external_key ON issues USING btree (project_id, external_key) WHERE (external_key IS NOT NULL); +ALTER TABLE ONLY public.project_statistics + ADD CONSTRAINT fk_198ad46fdc FOREIGN KEY (root_namespace_id) REFERENCES public.namespaces(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_issues_on_project_id_and_iid ON issues USING btree (project_id, iid); -CREATE INDEX index_issues_on_project_id_and_state_id_and_created_at_and_id ON issues USING btree (project_id, state_id, created_at, id); +-- +-- Name: approval_policy_rule_project_links fk_1c78796d52; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_issues_on_project_id_and_upvotes_count ON issues USING btree (project_id, upvotes_count); +ALTER TABLE ONLY public.approval_policy_rule_project_links + ADD CONSTRAINT fk_1c78796d52 FOREIGN KEY (approval_policy_rule_id) REFERENCES public.approval_policy_rules(id) ON DELETE CASCADE; -CREATE INDEX index_issues_on_project_id_closed_at_desc_state_id_and_id ON issues USING btree (project_id, closed_at DESC NULLS LAST, state_id, id); -CREATE INDEX index_issues_on_project_id_closed_at_state_id_and_id ON issues USING btree (project_id, closed_at, state_id, id); +-- +-- Name: issue_links fk_1cce06b868; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_issues_on_project_id_health_status_created_at_id ON issues USING btree (project_id, health_status, created_at, id); +ALTER TABLE ONLY public.issue_links + ADD CONSTRAINT fk_1cce06b868 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_issues_on_promoted_to_epic_id ON issues USING btree (promoted_to_epic_id) WHERE (promoted_to_epic_id IS NOT NULL); -CREATE INDEX index_issues_on_sprint_id ON issues USING btree (sprint_id); +-- +-- Name: agent_project_authorizations fk_1d30bb4987; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_issues_on_title_trigram_non_latin ON issues USING gin (title gin_trgm_ops) WHERE (((title)::text !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text)) OR (description !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text))); +ALTER TABLE ONLY public.agent_project_authorizations + ADD CONSTRAINT fk_1d30bb4987 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_issues_on_updated_at ON issues USING btree (updated_at); -CREATE INDEX index_issues_on_updated_by_id ON issues USING btree (updated_by_id) WHERE (updated_by_id IS NOT NULL); +-- +-- Name: ai_agent_version_attachments fk_1d4253673b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_issues_on_work_item_type_id_project_id_created_at_state ON issues USING btree (work_item_type_id, project_id, created_at, state_id); +ALTER TABLE ONLY public.ai_agent_version_attachments + ADD CONSTRAINT fk_1d4253673b FOREIGN KEY (ai_vectorizable_file_id) REFERENCES public.ai_vectorizable_files(id) ON DELETE CASCADE; -CREATE INDEX index_iterations_cadences_on_group_id ON iterations_cadences USING btree (group_id); -CREATE UNIQUE INDEX index_jira_connect_installations_on_client_key ON jira_connect_installations USING btree (client_key); +-- +-- Name: design_management_versions fk_1dccb304f8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_jira_connect_installations_on_instance_url ON jira_connect_installations USING btree (instance_url); +ALTER TABLE ONLY public.design_management_versions + ADD CONSTRAINT fk_1dccb304f8 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_jira_connect_subscriptions_on_namespace_id ON jira_connect_subscriptions USING btree (namespace_id); -CREATE INDEX index_jira_imports_on_label_id ON jira_imports USING btree (label_id); +-- +-- Name: boards fk_1e9a074a35; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_jira_imports_on_project_id_and_jira_project_key ON jira_imports USING btree (project_id, jira_project_key); +ALTER TABLE ONLY public.boards + ADD CONSTRAINT fk_1e9a074a35 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_jira_imports_on_user_id ON jira_imports USING btree (user_id); -CREATE INDEX index_jira_tracker_data_on_integration_id ON jira_tracker_data USING btree (integration_id); +-- +-- Name: zoekt_enabled_namespaces fk_1effa65b25; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_job_artifact_states_failed_verification ON ci_job_artifact_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +ALTER TABLE ONLY public.zoekt_enabled_namespaces + ADD CONSTRAINT fk_1effa65b25 FOREIGN KEY (root_namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_job_artifact_states_needs_verification ON ci_job_artifact_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); -CREATE INDEX index_job_artifact_states_on_verification_state ON ci_job_artifact_states USING btree (verification_state); +-- +-- Name: import_placeholder_memberships fk_1f4659deee; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_job_artifact_states_pending_verification ON ci_job_artifact_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); +ALTER TABLE ONLY public.import_placeholder_memberships + ADD CONSTRAINT fk_1f4659deee FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_key_updated_at_on_user_custom_attribute ON user_custom_attributes USING btree (key, updated_at); -CREATE INDEX index_keys_on_expires_at_and_id ON keys USING btree (date(timezone('UTC'::text, expires_at)), id) WHERE (expiry_notification_delivered_at IS NULL); +-- +-- Name: epics fk_1fbed67632; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_keys_on_fingerprint ON keys USING btree (fingerprint); +ALTER TABLE ONLY public.epics + ADD CONSTRAINT fk_1fbed67632 FOREIGN KEY (start_date_sourcing_milestone_id) REFERENCES public.milestones(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_keys_on_fingerprint_sha256_unique ON keys USING btree (fingerprint_sha256); -CREATE INDEX index_keys_on_id_and_ldap_key_type ON keys USING btree (id) WHERE ((type)::text = 'LDAPKey'::text); +-- +-- Name: ghost_user_migrations fk_202e642a2f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_keys_on_last_used_at ON keys USING btree (last_used_at DESC NULLS LAST); +ALTER TABLE ONLY public.ghost_user_migrations + ADD CONSTRAINT fk_202e642a2f FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_keys_on_user_id ON keys USING btree (user_id); -CREATE UNIQUE INDEX index_kubernetes_namespaces_on_cluster_project_environment_id ON clusters_kubernetes_namespaces USING btree (cluster_id, project_id, environment_id); +-- +-- Name: coverage_fuzzing_corpuses fk_204d40056a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_label_links_on_label_id_and_target_type ON label_links USING btree (label_id, target_type); +ALTER TABLE ONLY public.coverage_fuzzing_corpuses + ADD CONSTRAINT fk_204d40056a FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_label_links_on_target_id_and_target_type ON label_links USING btree (target_id, target_type); -CREATE INDEX index_label_priorities_on_label_id ON label_priorities USING btree (label_id); +-- +-- Name: namespace_settings fk_20cf0eb2f9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_label_priorities_on_priority ON label_priorities USING btree (priority); +ALTER TABLE ONLY public.namespace_settings + ADD CONSTRAINT fk_20cf0eb2f9 FOREIGN KEY (default_compliance_framework_id) REFERENCES public.compliance_management_frameworks(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_label_priorities_on_project_id_and_label_id ON label_priorities USING btree (project_id, label_id); -CREATE INDEX index_labels_on_group_id ON labels USING btree (group_id); +-- +-- Name: p_ci_build_trace_metadata fk_21d25cac1a_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_labels_on_group_id_and_title_varchar_unique ON labels USING btree (group_id, title varchar_pattern_ops) WHERE (project_id IS NULL); +ALTER TABLE public.p_ci_build_trace_metadata + ADD CONSTRAINT fk_21d25cac1a_p FOREIGN KEY (partition_id, trace_artifact_id) REFERENCES public.p_ci_job_artifacts(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -CREATE INDEX index_labels_on_project_id ON labels USING btree (project_id); -CREATE UNIQUE INDEX index_labels_on_project_id_and_title_varchar_unique ON labels USING btree (project_id, title varchar_pattern_ops) WHERE (group_id IS NULL); +-- +-- Name: users_star_projects fk_22cd27ddfc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_labels_on_template ON labels USING btree (template) WHERE template; +ALTER TABLE ONLY public.users_star_projects + ADD CONSTRAINT fk_22cd27ddfc FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_labels_on_title_varchar ON labels USING btree (title varchar_pattern_ops); -CREATE INDEX index_labels_on_type_and_project_id ON labels USING btree (type, project_id); +-- +-- Name: alert_management_alerts fk_2358b75436; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_ldap_group_links_on_member_role_id ON ldap_group_links USING btree (member_role_id); +ALTER TABLE ONLY public.alert_management_alerts + ADD CONSTRAINT fk_2358b75436 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_lfs_file_locks_on_project_id_and_path ON lfs_file_locks USING btree (project_id, path); -CREATE INDEX index_lfs_file_locks_on_user_id ON lfs_file_locks USING btree (user_id); +-- +-- Name: design_management_designs fk_239cd63678; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_lfs_object_states_failed_verification ON lfs_object_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +ALTER TABLE ONLY public.design_management_designs + ADD CONSTRAINT fk_239cd63678 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_lfs_object_states_needs_verification ON lfs_object_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); -CREATE INDEX index_lfs_object_states_on_lfs_object_id ON lfs_object_states USING btree (lfs_object_id); +-- +-- Name: audit_events_streaming_http_instance_namespace_filters fk_23f3ab7df0; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_lfs_object_states_on_verification_state ON lfs_object_states USING btree (verification_state); +ALTER TABLE ONLY public.audit_events_streaming_http_instance_namespace_filters + ADD CONSTRAINT fk_23f3ab7df0 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_lfs_object_states_pending_verification ON lfs_object_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); -CREATE INDEX index_lfs_objects_on_file ON lfs_objects USING btree (file); +-- +-- Name: import_failures fk_24b824da43; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_lfs_objects_on_file_store ON lfs_objects USING btree (file_store); +ALTER TABLE ONLY public.import_failures + ADD CONSTRAINT fk_24b824da43 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_lfs_objects_on_oid ON lfs_objects USING btree (oid); -CREATE INDEX index_lfs_objects_projects_on_lfs_object_id ON lfs_objects_projects USING btree (lfs_object_id); +-- +-- Name: project_ci_cd_settings fk_24c15d2f2e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_lfs_objects_projects_on_project_id_and_lfs_object_id ON lfs_objects_projects USING btree (project_id, lfs_object_id); +ALTER TABLE ONLY public.project_ci_cd_settings + ADD CONSTRAINT fk_24c15d2f2e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_list_user_preferences_on_list_id ON list_user_preferences USING btree (list_id); -CREATE INDEX index_list_user_preferences_on_user_id ON list_user_preferences USING btree (user_id); +-- +-- Name: agent_activity_events fk_256c631779; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_list_user_preferences_on_user_id_and_list_id ON list_user_preferences USING btree (user_id, list_id); +ALTER TABLE ONLY public.agent_activity_events + ADD CONSTRAINT fk_256c631779 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_lists_on_board_id_and_label_id ON lists USING btree (board_id, label_id); -CREATE INDEX index_lists_on_iteration_id ON lists USING btree (iteration_id); +-- +-- Name: zoekt_repositories fk_25a92aeccd; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_lists_on_label_id ON lists USING btree (label_id); +ALTER TABLE ONLY public.zoekt_repositories + ADD CONSTRAINT fk_25a92aeccd FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE SET NULL; -CREATE INDEX index_lists_on_list_type ON lists USING btree (list_type); -CREATE INDEX index_lists_on_milestone_id ON lists USING btree (milestone_id); +-- +-- Name: ci_pipelines fk_262d4c2d19_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_lists_on_user_id ON lists USING btree (user_id); +ALTER TABLE ONLY public.ci_pipelines + ADD CONSTRAINT fk_262d4c2d19_p FOREIGN KEY (auto_canceled_by_partition_id, auto_canceled_by_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL; -CREATE INDEX index_loose_foreign_keys_deleted_records_for_partitioned_query ON ONLY loose_foreign_keys_deleted_records USING btree (partition, fully_qualified_table_name, consume_after, id) WHERE (status = 1); -CREATE INDEX index_manifest_states_failed_verification ON dependency_proxy_manifest_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +-- +-- Name: ci_pipelines fk_262d4c2d19_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_manifest_states_needs_verification ON dependency_proxy_manifest_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); +ALTER TABLE ONLY public.ci_pipelines + ADD CONSTRAINT fk_262d4c2d19_p_tmp FOREIGN KEY (auto_canceled_by_partition_id, auto_canceled_by_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL NOT VALID; -CREATE INDEX index_manifest_states_on_dependency_proxy_manifest_id ON dependency_proxy_manifest_states USING btree (dependency_proxy_manifest_id); -CREATE INDEX index_manifest_states_on_verification_state ON dependency_proxy_manifest_states USING btree (verification_state); +-- +-- Name: user_namespace_callouts fk_27a69fd1bd; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_manifest_states_pending_verification ON dependency_proxy_manifest_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); +ALTER TABLE ONLY public.user_namespace_callouts + ADD CONSTRAINT fk_27a69fd1bd FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_member_approval_on_member_id ON member_approvals USING btree (member_id); -CREATE INDEX index_member_approval_on_member_namespace_id ON member_approvals USING btree (member_namespace_id); +-- +-- Name: work_item_dates_sources fk_283fb4ad36; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_member_approval_on_requested_by_id ON member_approvals USING btree (requested_by_id); +ALTER TABLE ONLY public.work_item_dates_sources + ADD CONSTRAINT fk_283fb4ad36 FOREIGN KEY (start_date_sourcing_milestone_id) REFERENCES public.milestones(id) ON DELETE SET NULL; -CREATE INDEX index_member_approval_on_reviewed_by_id ON member_approvals USING btree (reviewed_by_id); -CREATE INDEX index_member_approvals_on_member_namespace_id_status ON member_approvals USING btree (member_namespace_id, status) WHERE (status = 0); +-- +-- Name: project_group_links fk_28a1244b01; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_member_approvals_on_member_role_id ON member_approvals USING btree (member_role_id); +ALTER TABLE ONLY public.project_group_links + ADD CONSTRAINT fk_28a1244b01 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE NOT VALID; -CREATE INDEX index_member_approvals_on_user_id ON member_approvals USING btree (user_id); -CREATE UNIQUE INDEX index_member_roles_on_name_unique ON member_roles USING btree (name) WHERE (namespace_id IS NULL); +-- +-- Name: merge_requests_compliance_violations fk_290ec1ab02; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_member_roles_on_namespace_id ON member_roles USING btree (namespace_id); +ALTER TABLE ONLY public.merge_requests_compliance_violations + ADD CONSTRAINT fk_290ec1ab02 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_member_roles_on_namespace_id_name_unique ON member_roles USING btree (namespace_id, name) WHERE (namespace_id IS NOT NULL); -CREATE INDEX index_member_roles_on_occupies_seat ON member_roles USING btree (occupies_seat); +-- +-- Name: coverage_fuzzing_corpuses fk_29f6f15f82; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_member_roles_on_permissions ON member_roles USING gin (permissions); +ALTER TABLE ONLY public.coverage_fuzzing_corpuses + ADD CONSTRAINT fk_29f6f15f82 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_members_on_access_level ON members USING btree (access_level); -CREATE INDEX index_members_on_expires_at ON members USING btree (expires_at); +-- +-- Name: resource_link_events fk_2a039c40f4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_members_on_expiring_at_access_level_id ON members USING btree (expires_at, access_level, id) WHERE ((requested_at IS NULL) AND (expiry_notified_at IS NULL)); +ALTER TABLE ONLY public.resource_link_events + ADD CONSTRAINT fk_2a039c40f4 FOREIGN KEY (system_note_metadata_id) REFERENCES public.system_note_metadata(id) ON DELETE CASCADE; -CREATE INDEX index_members_on_invite_email ON members USING btree (invite_email); -CREATE UNIQUE INDEX index_members_on_invite_token ON members USING btree (invite_token); +-- +-- Name: ml_candidates fk_2a0421d824; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_members_on_lower_invite_email_with_token ON members USING btree (lower((invite_email)::text)) WHERE (invite_token IS NOT NULL); +ALTER TABLE ONLY public.ml_candidates + ADD CONSTRAINT fk_2a0421d824 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_members_on_member_namespace_id_compound ON members USING btree (member_namespace_id, type, requested_at, id); -CREATE INDEX index_members_on_member_role_id ON members USING btree (member_role_id); +-- +-- Name: approval_group_rules fk_2a74c6e52d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_members_on_requested_at ON members USING btree (requested_at); +ALTER TABLE ONLY public.approval_group_rules + ADD CONSTRAINT fk_2a74c6e52d FOREIGN KEY (approval_policy_rule_id) REFERENCES public.approval_policy_rules(id) ON DELETE CASCADE; -CREATE INDEX index_members_on_source_and_type_and_access_level ON members USING btree (source_id, source_type, type, access_level); -CREATE INDEX index_members_on_source_and_type_and_id ON members USING btree (source_id, source_type, type, id) WHERE (invite_token IS NULL); +-- +-- Name: agent_group_authorizations fk_2c9f941965; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_members_on_source_state_type_access_level_and_user_id ON members USING btree (source_id, source_type, state, type, access_level, user_id) WHERE ((requested_at IS NULL) AND (invite_token IS NULL)); +ALTER TABLE ONLY public.agent_group_authorizations + ADD CONSTRAINT fk_2c9f941965 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_members_on_user_id_and_access_level_requested_at_is_null ON members USING btree (user_id, access_level) WHERE (requested_at IS NULL); -CREATE INDEX index_members_on_user_id_created_at ON members USING btree (user_id, created_at) WHERE ((ldap = true) AND ((type)::text = 'GroupMember'::text) AND ((source_type)::text = 'Namespace'::text)); +-- +-- Name: deployment_approvals fk_2d060dfc73; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_merge_request_assignees_on_merge_request_id_and_user_id ON merge_request_assignees USING btree (merge_request_id, user_id); +ALTER TABLE ONLY public.deployment_approvals + ADD CONSTRAINT fk_2d060dfc73 FOREIGN KEY (deployment_id) REFERENCES public.deployments(id) ON DELETE CASCADE; -CREATE INDEX index_merge_request_assignees_on_project_id ON merge_request_assignees USING btree (project_id); -CREATE INDEX index_merge_request_assignees_on_user_id ON merge_request_assignees USING btree (user_id); +-- +-- Name: notes fk_2e82291620; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_request_assignment_events_on_project_id ON merge_request_assignment_events USING btree (project_id); +ALTER TABLE ONLY public.notes + ADD CONSTRAINT fk_2e82291620 FOREIGN KEY (review_id) REFERENCES public.reviews(id) ON DELETE SET NULL; -CREATE INDEX index_merge_request_assignment_events_on_user_id ON merge_request_assignment_events USING btree (user_id); -CREATE INDEX index_merge_request_blocks_on_blocked_merge_request_id ON merge_request_blocks USING btree (blocked_merge_request_id); +-- +-- Name: lfs_objects_projects fk_2eb33f7a78; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_request_blocks_on_project_id ON merge_request_blocks USING btree (project_id); +ALTER TABLE ONLY public.lfs_objects_projects + ADD CONSTRAINT fk_2eb33f7a78 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE NOT VALID; -CREATE UNIQUE INDEX index_merge_request_cleanup_schedules_on_merge_request_id ON merge_request_cleanup_schedules USING btree (merge_request_id); -CREATE INDEX index_merge_request_cleanup_schedules_on_status ON merge_request_cleanup_schedules USING btree (status); +-- +-- Name: vulnerability_merge_request_links fk_2ef3954596; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_request_context_commits_on_project_id ON merge_request_context_commits USING btree (project_id); +ALTER TABLE ONLY public.vulnerability_merge_request_links + ADD CONSTRAINT fk_2ef3954596 FOREIGN KEY (vulnerability_id) REFERENCES public.vulnerabilities(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_merge_request_diff_commit_users_on_name_and_email ON merge_request_diff_commit_users USING btree (name, email); -CREATE INDEX index_merge_request_diff_commits_on_sha ON merge_request_diff_commits USING btree (sha); +-- +-- Name: duo_workflows_workflows fk_2f6398d8ee; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_request_diff_details_failed_verification ON merge_request_diff_details USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +ALTER TABLE ONLY public.duo_workflows_workflows + ADD CONSTRAINT fk_2f6398d8ee FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_merge_request_diff_details_needs_verification ON merge_request_diff_details USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); -CREATE INDEX index_merge_request_diff_details_on_merge_request_diff_id ON merge_request_diff_details USING btree (merge_request_diff_id); +-- +-- Name: members fk_2f85abf8f1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_request_diff_details_on_verification_state ON merge_request_diff_details USING btree (verification_state); +ALTER TABLE ONLY public.members + ADD CONSTRAINT fk_2f85abf8f1 FOREIGN KEY (member_namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_merge_request_diff_details_pending_verification ON merge_request_diff_details USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); -CREATE INDEX index_merge_request_diffs_by_id_partial ON merge_request_diffs USING btree (id) WHERE ((files_count > 0) AND ((NOT stored_externally) OR (stored_externally IS NULL))); +-- +-- Name: group_group_links fk_2fbc7071a3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_request_diffs_on_external_diff ON merge_request_diffs USING btree (external_diff); +ALTER TABLE ONLY public.group_group_links + ADD CONSTRAINT fk_2fbc7071a3 FOREIGN KEY (member_role_id) REFERENCES public.member_roles(id) ON DELETE SET NULL; -CREATE INDEX index_merge_request_diffs_on_external_diff_store ON merge_request_diffs USING btree (external_diff_store); -CREATE INDEX index_merge_request_diffs_on_merge_request_id_and_id ON merge_request_diffs USING btree (merge_request_id, id); +-- +-- Name: zoekt_replicas fk_3035f4b498; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_request_diffs_on_project_id ON merge_request_diffs USING btree (project_id); +ALTER TABLE ONLY public.zoekt_replicas + ADD CONSTRAINT fk_3035f4b498 FOREIGN KEY (zoekt_enabled_namespace_id) REFERENCES public.zoekt_enabled_namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_merge_request_diffs_on_unique_merge_request_id ON merge_request_diffs USING btree (merge_request_id) WHERE (diff_type = 2); -CREATE INDEX index_merge_request_metrics_on_first_deployed_to_production_at ON merge_request_metrics USING btree (first_deployed_to_production_at); +-- +-- Name: analytics_cycle_analytics_group_stages fk_3078345d6d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_request_metrics_on_latest_closed_at ON merge_request_metrics USING btree (latest_closed_at) WHERE (latest_closed_at IS NOT NULL); +ALTER TABLE ONLY public.analytics_cycle_analytics_group_stages + ADD CONSTRAINT fk_3078345d6d FOREIGN KEY (stage_event_hash_id) REFERENCES public.analytics_cycle_analytics_stage_event_hashes(id) ON DELETE CASCADE; -CREATE INDEX index_merge_request_metrics_on_latest_closed_by_id ON merge_request_metrics USING btree (latest_closed_by_id); -CREATE INDEX index_merge_request_metrics_on_merge_request_id_and_merged_at ON merge_request_metrics USING btree (merge_request_id, merged_at) WHERE (merged_at IS NOT NULL); +-- +-- Name: oauth_device_grants fk_308d5b76fe; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_request_metrics_on_merged_at ON merge_request_metrics USING btree (merged_at); +ALTER TABLE ONLY public.oauth_device_grants + ADD CONSTRAINT fk_308d5b76fe FOREIGN KEY (application_id) REFERENCES public.oauth_applications(id) ON DELETE CASCADE; -CREATE INDEX index_merge_request_metrics_on_pipeline_id ON merge_request_metrics USING btree (pipeline_id); -CREATE INDEX index_merge_request_requested_changes_on_merge_request_id ON merge_request_requested_changes USING btree (merge_request_id); +-- +-- Name: lists fk_30f2a831f4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_request_requested_changes_on_project_id ON merge_request_requested_changes USING btree (project_id); +ALTER TABLE ONLY public.lists + ADD CONSTRAINT fk_30f2a831f4 FOREIGN KEY (iteration_id) REFERENCES public.sprints(id) ON DELETE CASCADE; -CREATE INDEX index_merge_request_requested_changes_on_user_id ON merge_request_requested_changes USING btree (user_id); -CREATE UNIQUE INDEX index_merge_request_reviewers_on_merge_request_id_and_user_id ON merge_request_reviewers USING btree (merge_request_id, user_id); +-- +-- Name: approvals fk_310d714958; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_request_reviewers_on_project_id ON merge_request_reviewers USING btree (project_id); +ALTER TABLE ONLY public.approvals + ADD CONSTRAINT fk_310d714958 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -CREATE INDEX index_merge_request_reviewers_on_user_id ON merge_request_reviewers USING btree (user_id); -CREATE UNIQUE INDEX index_merge_request_user_mentions_on_note_id ON merge_request_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); +-- +-- Name: namespaces fk_319256d87a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_requests_closing_issues_on_issue_id ON merge_requests_closing_issues USING btree (issue_id); +ALTER TABLE ONLY public.namespaces + ADD CONSTRAINT fk_319256d87a FOREIGN KEY (file_template_project_id) REFERENCES public.projects(id) ON DELETE SET NULL; -CREATE INDEX index_merge_requests_closing_issues_on_merge_request_id ON merge_requests_closing_issues USING btree (merge_request_id); -CREATE INDEX index_merge_requests_closing_issues_on_project_id ON merge_requests_closing_issues USING btree (project_id); +-- +-- Name: design_management_repositories fk_335d4698e2; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_requests_compliance_violations_on_violating_user_id ON merge_requests_compliance_violations USING btree (violating_user_id); +ALTER TABLE ONLY public.design_management_repositories + ADD CONSTRAINT fk_335d4698e2 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_merge_requests_compliance_violations_unique_columns ON merge_requests_compliance_violations USING btree (merge_request_id, violating_user_id, reason); -CREATE INDEX index_merge_requests_for_latest_diffs_with_state_merged ON merge_requests USING btree (latest_merge_request_diff_id, target_project_id) WHERE (state_id = 3); +-- +-- Name: issue_tracker_data fk_33921c0ee1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_requests_id_created_at_prepared_at ON merge_requests USING btree (created_at, id) WHERE (prepared_at IS NULL); +ALTER TABLE ONLY public.issue_tracker_data + ADD CONSTRAINT fk_33921c0ee1 FOREIGN KEY (integration_id) REFERENCES public.integrations(id) ON DELETE CASCADE; -CREATE INDEX index_merge_requests_on_assignee_id ON merge_requests USING btree (assignee_id); -CREATE INDEX index_merge_requests_on_author_id_and_created_at ON merge_requests USING btree (author_id, created_at); +-- +-- Name: user_project_callouts fk_33b4814f6b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_requests_on_author_id_and_id ON merge_requests USING btree (author_id, id); +ALTER TABLE ONLY public.user_project_callouts + ADD CONSTRAINT fk_33b4814f6b FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_merge_requests_on_author_id_and_target_project_id ON merge_requests USING btree (author_id, target_project_id); -CREATE INDEX index_merge_requests_on_created_at ON merge_requests USING btree (created_at); +-- +-- Name: namespaces fk_3448c97865; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_requests_on_description_trigram ON merge_requests USING gin (description gin_trgm_ops) WITH (fastupdate='false'); +ALTER TABLE ONLY public.namespaces + ADD CONSTRAINT fk_3448c97865 FOREIGN KEY (push_rule_id) REFERENCES public.push_rules(id) ON DELETE SET NULL; -CREATE INDEX index_merge_requests_on_head_pipeline_id ON merge_requests USING btree (head_pipeline_id); -CREATE INDEX index_merge_requests_on_latest_merge_request_diff_id ON merge_requests USING btree (latest_merge_request_diff_id); +-- +-- Name: project_topics fk_34af9ab07a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_requests_on_merge_user_id ON merge_requests USING btree (merge_user_id) WHERE (merge_user_id IS NOT NULL); +ALTER TABLE ONLY public.project_topics + ADD CONSTRAINT fk_34af9ab07a FOREIGN KEY (topic_id) REFERENCES public.topics(id) ON DELETE CASCADE; -CREATE INDEX index_merge_requests_on_milestone_id ON merge_requests USING btree (milestone_id); -CREATE INDEX index_merge_requests_on_source_branch ON merge_requests USING btree (source_branch); +-- +-- Name: saml_providers fk_351dde3a84; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_requests_on_source_project_id_and_source_branch ON merge_requests USING btree (source_project_id, source_branch); +ALTER TABLE ONLY public.saml_providers + ADD CONSTRAINT fk_351dde3a84 FOREIGN KEY (member_role_id) REFERENCES public.member_roles(id) ON DELETE SET NULL; -CREATE INDEX index_merge_requests_on_sprint_id ON merge_requests USING btree (sprint_id); -CREATE INDEX index_merge_requests_on_target_branch ON merge_requests USING btree (target_branch); +-- +-- Name: epics fk_3654b61b03; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_requests_on_target_project_id_and_created_at_and_id ON merge_requests USING btree (target_project_id, created_at, id); +ALTER TABLE ONLY public.epics + ADD CONSTRAINT fk_3654b61b03 FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_merge_requests_on_target_project_id_and_iid ON merge_requests USING btree (target_project_id, iid); -CREATE INDEX index_merge_requests_on_target_project_id_and_merged_commit_sha ON merge_requests USING btree (target_project_id, merged_commit_sha); +-- +-- Name: sprints fk_365d1db505; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_requests_on_target_project_id_and_source_branch ON merge_requests USING btree (target_project_id, source_branch); +ALTER TABLE ONLY public.sprints + ADD CONSTRAINT fk_365d1db505 FOREIGN KEY (iterations_cadence_id) REFERENCES public.iterations_cadences(id) ON DELETE CASCADE; -CREATE INDEX index_merge_requests_on_target_project_id_and_squash_commit_sha ON merge_requests USING btree (target_project_id, squash_commit_sha); -CREATE INDEX index_merge_requests_on_target_project_id_and_target_branch ON merge_requests USING btree (target_project_id, target_branch) WHERE ((state_id = 1) AND (merge_when_pipeline_succeeds = true)); +-- +-- Name: operations_feature_flags_issues fk_3685a990ae; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_requests_on_target_project_id_and_updated_at_and_id ON merge_requests USING btree (target_project_id, updated_at, id); +ALTER TABLE ONLY public.operations_feature_flags_issues + ADD CONSTRAINT fk_3685a990ae FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_merge_requests_on_title_trigram ON merge_requests USING gin (title gin_trgm_ops) WITH (fastupdate='false'); -CREATE INDEX index_merge_requests_on_tp_id_and_merge_commit_sha_and_id ON merge_requests USING btree (target_project_id, merge_commit_sha, id); +-- +-- Name: push_event_payloads fk_36c74129da; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_requests_on_updated_by_id ON merge_requests USING btree (updated_by_id) WHERE (updated_by_id IS NOT NULL); +ALTER TABLE ONLY public.push_event_payloads + ADD CONSTRAINT fk_36c74129da FOREIGN KEY (event_id) REFERENCES public.events(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_merge_trains_on_merge_request_id ON merge_trains USING btree (merge_request_id); -CREATE INDEX index_merge_trains_on_pipeline_id ON merge_trains USING btree (pipeline_id); +-- +-- Name: protected_tag_create_access_levels fk_386a642e13; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_merge_trains_on_user_id ON merge_trains USING btree (user_id); +ALTER TABLE ONLY public.protected_tag_create_access_levels + ADD CONSTRAINT fk_386a642e13 FOREIGN KEY (deploy_key_id) REFERENCES public.keys(id) ON DELETE CASCADE; -CREATE INDEX index_metrics_dashboard_annotations_on_cluster_id_and_3_columns ON metrics_dashboard_annotations USING btree (cluster_id, dashboard_path, starting_at, ending_at) WHERE (cluster_id IS NOT NULL); -CREATE INDEX index_metrics_dashboard_annotations_on_environment_id_and_3_col ON metrics_dashboard_annotations USING btree (environment_id, dashboard_path, starting_at, ending_at) WHERE (environment_id IS NOT NULL); +-- +-- Name: incident_management_timeline_events fk_38a74279df; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_metrics_dashboard_annotations_on_timespan_end ON metrics_dashboard_annotations USING btree (COALESCE(ending_at, starting_at)); +ALTER TABLE ONLY public.incident_management_timeline_events + ADD CONSTRAINT fk_38a74279df FOREIGN KEY (updated_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_metrics_users_starred_dashboards_on_project_id ON metrics_users_starred_dashboards USING btree (project_id); -CREATE INDEX index_migration_jobs_on_migration_id_and_finished_at ON batched_background_migration_jobs USING btree (batched_background_migration_id, finished_at); +-- +-- Name: import_export_uploads fk_38e11735aa; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_migration_jobs_on_migration_id_and_max_value ON batched_background_migration_jobs USING btree (batched_background_migration_id, max_value); +ALTER TABLE ONLY public.import_export_uploads + ADD CONSTRAINT fk_38e11735aa FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_milestone_releases_on_release_id ON milestone_releases USING btree (release_id); -CREATE INDEX index_milestones_on_description_trigram ON milestones USING gin (description gin_trgm_ops); +-- +-- Name: approval_group_rules_users fk_3995d73930; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_milestones_on_due_date ON milestones USING btree (due_date); +ALTER TABLE ONLY public.approval_group_rules_users + ADD CONSTRAINT fk_3995d73930 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_milestones_on_group_id ON milestones USING btree (group_id); -CREATE UNIQUE INDEX index_milestones_on_project_id_and_iid ON milestones USING btree (project_id, iid); +-- +-- Name: bulk_import_exports fk_39c726d3b5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_milestones_on_title ON milestones USING btree (title); +ALTER TABLE ONLY public.bulk_import_exports + ADD CONSTRAINT fk_39c726d3b5 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_milestones_on_title_trigram ON milestones USING gin (title gin_trgm_ops); -CREATE INDEX index_mirror_data_non_scheduled_or_started ON project_mirror_data USING btree (next_execution_timestamp, retry_count) WHERE ((status)::text <> ALL ('{scheduled,started}'::text[])); +-- +-- Name: ml_model_versions fk_39f8aa0b8a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_ml_candidate_metadata_on_candidate_id_and_name ON ml_candidate_metadata USING btree (candidate_id, name); +ALTER TABLE ONLY public.ml_model_versions + ADD CONSTRAINT fk_39f8aa0b8a FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE SET NULL; -CREATE INDEX index_ml_candidate_metadata_on_name ON ml_candidate_metadata USING btree (name); -CREATE INDEX index_ml_candidate_metadata_on_project_id ON ml_candidate_metadata USING btree (project_id); +-- +-- Name: p_ci_builds fk_3a9eaa254d_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_ml_candidate_metrics_on_candidate_id ON ml_candidate_metrics USING btree (candidate_id); +ALTER TABLE public.p_ci_builds + ADD CONSTRAINT fk_3a9eaa254d_p FOREIGN KEY (partition_id, stage_id) REFERENCES public.p_ci_stages(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -CREATE INDEX index_ml_candidate_params_on_candidate_id ON ml_candidate_params USING btree (candidate_id); -CREATE UNIQUE INDEX index_ml_candidate_params_on_candidate_id_on_name ON ml_candidate_params USING btree (candidate_id, name); +-- +-- Name: draft_notes fk_3ac2bcb746; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_ml_candidates_on_ci_build_id ON ml_candidates USING btree (ci_build_id); +ALTER TABLE ONLY public.draft_notes + ADD CONSTRAINT fk_3ac2bcb746 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_ml_candidates_on_experiment_id_and_eid ON ml_candidates USING btree (experiment_id, eid); -CREATE UNIQUE INDEX index_ml_candidates_on_model_version_id ON ml_candidates USING btree (model_version_id); +-- +-- Name: agent_activity_events fk_3af186389b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_ml_candidates_on_package_id ON ml_candidates USING btree (package_id); +ALTER TABLE ONLY public.agent_activity_events + ADD CONSTRAINT fk_3af186389b FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE SET NULL; -CREATE INDEX index_ml_candidates_on_project_id ON ml_candidates USING btree (project_id); -CREATE INDEX index_ml_candidates_on_project_id_on_internal_id ON ml_candidates USING btree (project_id, internal_id); +-- +-- Name: protected_environment_approval_rules fk_3b3f2f0470; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_ml_candidates_on_user_id ON ml_candidates USING btree (user_id); +ALTER TABLE ONLY public.protected_environment_approval_rules + ADD CONSTRAINT fk_3b3f2f0470 FOREIGN KEY (protected_environment_group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_ml_experiment_metadata_on_experiment_id_and_name ON ml_experiment_metadata USING btree (experiment_id, name); -CREATE INDEX index_ml_experiment_metadata_on_project_id ON ml_experiment_metadata USING btree (project_id); +-- +-- Name: issues fk_3b8c72ea56; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_ml_experiments_on_model_id ON ml_experiments USING btree (model_id); +ALTER TABLE ONLY public.issues + ADD CONSTRAINT fk_3b8c72ea56 FOREIGN KEY (sprint_id) REFERENCES public.sprints(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_ml_experiments_on_project_id_and_iid ON ml_experiments USING btree (project_id, iid); -CREATE UNIQUE INDEX index_ml_experiments_on_project_id_and_name ON ml_experiments USING btree (project_id, name); +-- +-- Name: merge_request_reviewers fk_3b8e02a846; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_ml_experiments_on_user_id ON ml_experiments USING btree (user_id); +ALTER TABLE ONLY public.merge_request_reviewers + ADD CONSTRAINT fk_3b8e02a846 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_ml_model_metadata_on_project_id ON ml_model_metadata USING btree (project_id); -CREATE INDEX index_ml_model_version_metadata_on_project_id ON ml_model_version_metadata USING btree (project_id); +-- +-- Name: epics fk_3c1fd1cccc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_ml_model_versions_on_created_at_on_model_id ON ml_model_versions USING btree (model_id, created_at); +ALTER TABLE ONLY public.epics + ADD CONSTRAINT fk_3c1fd1cccc FOREIGN KEY (due_date_sourcing_milestone_id) REFERENCES public.milestones(id) ON DELETE SET NULL; -CREATE INDEX index_ml_model_versions_on_package_id ON ml_model_versions USING btree (package_id); -CREATE INDEX index_ml_model_versions_on_project_id ON ml_model_versions USING btree (project_id); +-- +-- Name: release_links fk_3cb34866ac; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_ml_model_versions_on_project_id_and_model_id_and_version ON ml_model_versions USING btree (project_id, model_id, version); +ALTER TABLE ONLY public.release_links + ADD CONSTRAINT fk_3cb34866ac FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_ml_models_on_project_id ON ml_models USING btree (project_id); -CREATE UNIQUE INDEX index_ml_models_on_project_id_and_name ON ml_models USING btree (project_id, name); +-- +-- Name: bulk_import_export_uploads fk_3cbf0b9a2e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_ml_models_on_user_id ON ml_models USING btree (user_id); +ALTER TABLE ONLY public.bulk_import_export_uploads + ADD CONSTRAINT fk_3cbf0b9a2e FOREIGN KEY (batch_id) REFERENCES public.bulk_import_export_batches(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_mr_blocks_on_blocking_and_blocked_mr_ids ON merge_request_blocks USING btree (blocking_merge_request_id, blocked_merge_request_id); -CREATE INDEX index_mr_cleanup_schedules_timestamps_status ON merge_request_cleanup_schedules USING btree (scheduled_at) WHERE ((completed_at IS NULL) AND (status = 0)); +-- +-- Name: compliance_framework_security_policies fk_3ce58167f1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_mr_context_commits_on_merge_request_id_and_sha ON merge_request_context_commits USING btree (merge_request_id, sha); +ALTER TABLE ONLY public.compliance_framework_security_policies + ADD CONSTRAINT fk_3ce58167f1 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_mr_metrics_on_target_project_id_merged_at_nulls_last ON merge_request_metrics USING btree (target_project_id, merged_at DESC NULLS LAST, id DESC); -CREATE INDEX index_mr_metrics_on_target_project_id_merged_at_time_to_merge ON merge_request_metrics USING btree (target_project_id, merged_at, created_at) WHERE (merged_at > created_at); +-- +-- Name: p_ci_pipelines fk_3d34ab2e06; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_namespace_admin_notes_on_namespace_id ON namespace_admin_notes USING btree (namespace_id); +ALTER TABLE public.p_ci_pipelines + ADD CONSTRAINT fk_3d34ab2e06 FOREIGN KEY (pipeline_schedule_id) REFERENCES public.ci_pipeline_schedules(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_namespace_aggregation_schedules_on_namespace_id ON namespace_aggregation_schedules USING btree (namespace_id); -CREATE UNIQUE INDEX index_namespace_bans_on_namespace_id_and_user_id ON namespace_bans USING btree (namespace_id, user_id); +-- +-- Name: scan_result_policy_violations fk_3d58aa6aee; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_namespace_bans_on_user_id ON namespace_bans USING btree (user_id); +ALTER TABLE ONLY public.scan_result_policy_violations + ADD CONSTRAINT fk_3d58aa6aee FOREIGN KEY (approval_policy_rule_id) REFERENCES public.approval_policy_rules(id) ON DELETE CASCADE; -CREATE INDEX index_namespace_commit_emails_on_email_id ON namespace_commit_emails USING btree (email_id); -CREATE INDEX index_namespace_commit_emails_on_namespace_id ON namespace_commit_emails USING btree (namespace_id); +-- +-- Name: wiki_page_slugs fk_3d71295ac9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_namespace_commit_emails_on_user_id_and_namespace_id ON namespace_commit_emails USING btree (user_id, namespace_id); +ALTER TABLE ONLY public.wiki_page_slugs + ADD CONSTRAINT fk_3d71295ac9 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_namespace_details_on_creator_id ON namespace_details USING btree (creator_id); -CREATE UNIQUE INDEX index_namespace_import_users_on_namespace_id ON namespace_import_users USING btree (namespace_id); +-- +-- Name: security_orchestration_policy_rule_schedules fk_3e78b9a150; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_namespace_import_users_on_user_id ON namespace_import_users USING btree (user_id); +ALTER TABLE ONLY public.security_orchestration_policy_rule_schedules + ADD CONSTRAINT fk_3e78b9a150 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_namespace_root_storage_statistics_on_namespace_id ON namespace_root_storage_statistics USING btree (namespace_id); -CREATE UNIQUE INDEX index_namespace_statistics_on_namespace_id ON namespace_statistics USING btree (namespace_id); +-- +-- Name: compliance_checks fk_3fbfa4295c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_namespaces_name_parent_id_type ON namespaces USING btree (name, parent_id, type); +ALTER TABLE ONLY public.compliance_checks + ADD CONSTRAINT fk_3fbfa4295c FOREIGN KEY (requirement_id) REFERENCES public.compliance_requirements(id) ON DELETE CASCADE; -CREATE INDEX index_namespaces_on_created_at ON namespaces USING btree (created_at); -CREATE INDEX index_namespaces_on_custom_project_templates_group_id_and_type ON namespaces USING btree (custom_project_templates_group_id, type) WHERE (custom_project_templates_group_id IS NOT NULL); +-- +-- Name: abuse_reports fk_3fe6467b93; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_namespaces_on_file_template_project_id ON namespaces USING btree (file_template_project_id); +ALTER TABLE ONLY public.abuse_reports + ADD CONSTRAINT fk_3fe6467b93 FOREIGN KEY (assignee_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_namespaces_on_ldap_sync_last_successful_update_at ON namespaces USING btree (ldap_sync_last_successful_update_at); -CREATE INDEX index_namespaces_on_name_trigram ON namespaces USING gin (name gin_trgm_ops); +-- +-- Name: protected_environment_approval_rules fk_405568b491; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_namespaces_on_organization_id ON namespaces USING btree (organization_id); +ALTER TABLE ONLY public.protected_environment_approval_rules + ADD CONSTRAINT fk_405568b491 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_namespaces_on_organization_id_for_groups ON namespaces USING btree (organization_id) WHERE ((type)::text = 'Group'::text); -CREATE INDEX index_namespaces_on_owner_id ON namespaces USING btree (owner_id); +-- +-- Name: subscription_add_on_purchases fk_410004d68b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_namespaces_on_parent_id_and_id ON namespaces USING btree (parent_id, id); +ALTER TABLE ONLY public.subscription_add_on_purchases + ADD CONSTRAINT fk_410004d68b FOREIGN KEY (subscription_add_on_id) REFERENCES public.subscription_add_ons(id) ON DELETE CASCADE; -CREATE INDEX index_namespaces_on_path ON namespaces USING btree (path); -CREATE INDEX index_namespaces_on_path_for_top_level_non_projects ON namespaces USING btree (lower((path)::text)) WHERE ((parent_id IS NULL) AND ((type)::text <> 'Project'::text)); +-- +-- Name: ci_pipeline_schedule_variables fk_41c35fda51; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_namespaces_on_path_trigram ON namespaces USING gin (path gin_trgm_ops); +ALTER TABLE ONLY public.ci_pipeline_schedule_variables + ADD CONSTRAINT fk_41c35fda51 FOREIGN KEY (pipeline_schedule_id) REFERENCES public.ci_pipeline_schedules(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_namespaces_on_push_rule_id ON namespaces USING btree (push_rule_id); -CREATE UNIQUE INDEX index_namespaces_on_runners_token_encrypted ON namespaces USING btree (runners_token_encrypted); +-- +-- Name: namespace_bans fk_4275fbb1d7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_namespaces_on_traversal_ids ON namespaces USING gin (traversal_ids); +ALTER TABLE ONLY public.namespace_bans + ADD CONSTRAINT fk_4275fbb1d7 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_namespaces_on_traversal_ids_for_groups ON namespaces USING gin (traversal_ids) WHERE ((type)::text = 'Group'::text); -CREATE INDEX index_namespaces_on_traversal_ids_for_groups_btree ON namespaces USING btree (traversal_ids) WHERE ((type)::text = 'Group'::text); +-- +-- Name: geo_event_log fk_42c3b54bed; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_namespaces_on_type_and_id ON namespaces USING btree (type, id); +ALTER TABLE ONLY public.geo_event_log + ADD CONSTRAINT fk_42c3b54bed FOREIGN KEY (cache_invalidation_event_id) REFERENCES public.geo_cache_invalidation_events(id) ON DELETE CASCADE; -CREATE INDEX index_namespaces_public_groups_name_id ON namespaces USING btree (name, id) WHERE (((type)::text = 'Group'::text) AND (visibility_level = 20)); -CREATE INDEX index_namespaces_sync_events_on_namespace_id ON namespaces_sync_events USING btree (namespace_id); +-- +-- Name: remote_mirrors fk_43a9aa4ca8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_non_requested_project_members_on_source_id_and_type ON members USING btree (source_id, source_type) WHERE ((requested_at IS NULL) AND ((type)::text = 'ProjectMember'::text)); +ALTER TABLE ONLY public.remote_mirrors + ADD CONSTRAINT fk_43a9aa4ca8 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_note_diff_files_on_diff_note_id ON note_diff_files USING btree (diff_note_id); -CREATE INDEX index_note_metadata_on_note_id ON note_metadata USING btree (note_id); +-- +-- Name: abuse_report_notes fk_44166fe70f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_notes_for_cherry_picked_merge_requests ON notes USING btree (project_id, commit_id) WHERE ((noteable_type)::text = 'MergeRequest'::text); +ALTER TABLE ONLY public.abuse_report_notes + ADD CONSTRAINT fk_44166fe70f FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_notes_on_author_id_and_created_at_and_id ON notes USING btree (author_id, created_at, id); -CREATE INDEX index_notes_on_commit_id ON notes USING btree (commit_id); +-- +-- Name: incident_management_timeline_events fk_4432fc4d78; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_notes_on_created_at ON notes USING btree (created_at); +ALTER TABLE ONLY public.incident_management_timeline_events + ADD CONSTRAINT fk_4432fc4d78 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_notes_on_discussion_id ON notes USING btree (discussion_id); -CREATE INDEX index_notes_on_id_where_confidential ON notes USING btree (id) WHERE (confidential = true); +-- +-- Name: todos fk_45054f9c45; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_notes_on_id_where_internal ON notes USING btree (id) WHERE (internal = true); +ALTER TABLE ONLY public.todos + ADD CONSTRAINT fk_45054f9c45 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_notes_on_line_code ON notes USING btree (line_code); -CREATE INDEX index_notes_on_namespace_id ON notes USING btree (namespace_id); +-- +-- Name: security_policy_requirements fk_458f7f5ad5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_notes_on_noteable_id_and_noteable_type_and_system ON notes USING btree (noteable_id, noteable_type, system); +ALTER TABLE ONLY public.security_policy_requirements + ADD CONSTRAINT fk_458f7f5ad5 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_notes_on_project_id_and_id_and_system_false ON notes USING btree (project_id, id) WHERE (NOT system); -CREATE INDEX index_notes_on_project_id_and_noteable_type ON notes USING btree (project_id, noteable_type); +-- +-- Name: releases fk_47fe2a0596; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_notes_on_review_id ON notes USING btree (review_id); +ALTER TABLE ONLY public.releases + ADD CONSTRAINT fk_47fe2a0596 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_notification_settings_on_source_and_level_and_user ON notification_settings USING btree (source_id, source_type, level, user_id); -CREATE UNIQUE INDEX index_notifications_on_user_id_and_source_id_and_source_type ON notification_settings USING btree (user_id, source_id, source_type); +-- +-- Name: workspace_variables fk_494e093520; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_npm_metadata_caches_on_package_name_project_id_unique ON packages_npm_metadata_caches USING btree (package_name, project_id) WHERE (project_id IS NOT NULL); +ALTER TABLE ONLY public.workspace_variables + ADD CONSTRAINT fk_494e093520 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_ns_root_stor_stats_on_registry_size_estimated ON namespace_root_storage_statistics USING btree (registry_size_estimated); -CREATE UNIQUE INDEX index_ns_user_callouts_feature ON user_namespace_callouts USING btree (user_id, feature_name, namespace_id); +-- +-- Name: cluster_agent_url_configurations fk_49b126e246; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_oauth_access_grants_on_application_id ON oauth_access_grants USING btree (application_id); +ALTER TABLE ONLY public.cluster_agent_url_configurations + ADD CONSTRAINT fk_49b126e246 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_oauth_access_grants_on_resource_owner_id ON oauth_access_grants USING btree (resource_owner_id, application_id, created_at); -CREATE UNIQUE INDEX index_oauth_access_grants_on_token ON oauth_access_grants USING btree (token); +-- +-- Name: user_namespace_callouts fk_4b1257f385; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_oauth_access_tokens_on_application_id ON oauth_access_tokens USING btree (application_id); +ALTER TABLE ONLY public.user_namespace_callouts + ADD CONSTRAINT fk_4b1257f385 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_oauth_access_tokens_on_refresh_token ON oauth_access_tokens USING btree (refresh_token); -CREATE UNIQUE INDEX index_oauth_access_tokens_on_token ON oauth_access_tokens USING btree (token); +-- +-- Name: sbom_occurrences fk_4b88e5b255; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_oauth_applications_on_owner_id_and_owner_type ON oauth_applications USING btree (owner_id, owner_type); +ALTER TABLE ONLY public.sbom_occurrences + ADD CONSTRAINT fk_4b88e5b255 FOREIGN KEY (component_version_id) REFERENCES public.sbom_component_versions(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_oauth_applications_on_uid ON oauth_applications USING btree (uid); -CREATE INDEX index_oauth_device_grants_on_application_id ON oauth_device_grants USING btree (application_id); +-- +-- Name: namespace_commit_emails fk_4d6ba63ba5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_oauth_device_grants_on_device_code ON oauth_device_grants USING btree (device_code); +ALTER TABLE ONLY public.namespace_commit_emails + ADD CONSTRAINT fk_4d6ba63ba5 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_oauth_device_grants_on_user_code ON oauth_device_grants USING btree (user_code); -CREATE INDEX index_oauth_openid_requests_on_access_grant_id ON oauth_openid_requests USING btree (access_grant_id); +-- +-- Name: vulnerabilities fk_4e64972902; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_observability_logs_issues_connections_on_project_id ON observability_logs_issues_connections USING btree (project_id); +ALTER TABLE ONLY public.vulnerabilities + ADD CONSTRAINT fk_4e64972902 FOREIGN KEY (finding_id) REFERENCES public.vulnerability_occurrences(id) ON DELETE CASCADE; -CREATE INDEX index_observability_metrics_issues_connections_on_namespace_id ON observability_metrics_issues_connections USING btree (namespace_id); -CREATE INDEX index_observability_metrics_issues_connections_on_project_id ON observability_metrics_issues_connections USING btree (project_id); +-- +-- Name: ml_model_versions fk_4e8b59e7a8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_observability_traces_issues_connections_on_project_id ON observability_traces_issues_connections USING btree (project_id); +ALTER TABLE ONLY public.ml_model_versions + ADD CONSTRAINT fk_4e8b59e7a8 FOREIGN KEY (model_id) REFERENCES public.ml_models(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_on_deploy_keys_id_and_type_and_public ON keys USING btree (id, type) WHERE (public = true); -CREATE INDEX index_on_dingtalk_tracker_data_corpid ON dingtalk_tracker_data USING btree (corpid) WHERE (corpid IS NOT NULL); +-- +-- Name: user_achievements fk_4efde02858; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -COMMENT ON INDEX index_on_dingtalk_tracker_data_corpid IS 'JiHu-specific index'; +ALTER TABLE ONLY public.user_achievements + ADD CONSTRAINT fk_4efde02858 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_on_events_to_improve_contribution_analytics_performance ON events USING btree (project_id, target_type, action, created_at, author_id, id); -CREATE INDEX index_on_group_id_on_webhooks ON web_hooks USING btree (group_id); +-- +-- Name: approval_group_rules_protected_branches fk_4f85f13b20; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_on_identities_lower_extern_uid_and_provider ON identities USING btree (lower((extern_uid)::text), provider); +ALTER TABLE ONLY public.approval_group_rules_protected_branches + ADD CONSTRAINT fk_4f85f13b20 FOREIGN KEY (approval_group_rule_id) REFERENCES public.approval_group_rules(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_on_instance_statistics_recorded_at_and_identifier ON analytics_usage_trends_measurements USING btree (identifier, recorded_at); -CREATE INDEX index_on_issue_assignment_events_issue_id_action_created_at_id ON issue_assignment_events USING btree (issue_id, action, created_at, id); +-- +-- Name: project_compliance_standards_adherence fk_4fd1d9d9b0; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_on_job_artifact_id_partition_id_verification_state ON ci_job_artifact_states USING btree (verification_state, job_artifact_id, partition_id); +ALTER TABLE ONLY public.project_compliance_standards_adherence + ADD CONSTRAINT fk_4fd1d9d9b0 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE SET NULL; -CREATE INDEX index_on_label_links_all_columns ON label_links USING btree (target_id, label_id, target_type); -CREATE INDEX index_on_merge_request_diffs_head_commit_sha ON merge_request_diffs USING btree (head_commit_sha); +-- +-- Name: vulnerability_reads fk_5001652292; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_on_merge_request_reviewers_user_id_and_state ON merge_request_reviewers USING btree (user_id, state) WHERE (state = 2); +ALTER TABLE ONLY public.vulnerability_reads + ADD CONSTRAINT fk_5001652292 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_on_merge_requests_for_latest_diffs ON merge_requests USING btree (target_project_id) INCLUDE (id, latest_merge_request_diff_id); -COMMENT ON INDEX index_on_merge_requests_for_latest_diffs IS 'Index used to efficiently obtain the oldest merge request for a commit SHA'; +-- +-- Name: approval_group_rules_groups fk_50edc8134e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_on_mr_assignment_events_mr_id_action_created_at_id ON merge_request_assignment_events USING btree (merge_request_id, action, created_at, id); +ALTER TABLE ONLY public.approval_group_rules_groups + ADD CONSTRAINT fk_50edc8134e FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_on_namespaces_lower_name ON namespaces USING btree (lower((name)::text)); -CREATE INDEX index_on_namespaces_lower_path ON namespaces USING btree (lower((path)::text)); +-- +-- Name: approval_group_rules_protected_branches fk_514003db08; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_on_namespaces_namespaces_by_top_level_namespace ON namespaces USING btree ((traversal_ids[1]), type, id); +ALTER TABLE ONLY public.approval_group_rules_protected_branches + ADD CONSTRAINT fk_514003db08 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_on_oncall_schedule_escalation_rule ON incident_management_escalation_rules USING btree (oncall_schedule_id); -CREATE INDEX index_on_pages_metadata_not_migrated ON project_pages_metadata USING btree (project_id) WHERE ((deployed = true) AND (pages_deployment_id IS NULL)); +-- +-- Name: alert_management_alerts fk_51ab4b6089; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_on_project_id_escalation_policy_name_unique ON incident_management_escalation_policies USING btree (project_id, name); +ALTER TABLE ONLY public.alert_management_alerts + ADD CONSTRAINT fk_51ab4b6089 FOREIGN KEY (prometheus_alert_id) REFERENCES public.prometheus_alerts(id) ON DELETE CASCADE; -CREATE INDEX index_on_routes_lower_path ON routes USING btree (lower((path)::text)); -CREATE INDEX index_on_sbom_sources_package_manager_name ON sbom_sources USING btree ((((source -> 'package_manager'::text) ->> 'name'::text))); +-- +-- Name: deploy_tokens fk_51bf7bfb69; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_on_todos_user_project_target_and_state ON todos USING btree (user_id, project_id, target_type, target_id, id) WHERE ((state)::text = 'pending'::text); +ALTER TABLE ONLY public.deploy_tokens + ADD CONSTRAINT fk_51bf7bfb69 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_on_users_lower_email ON users USING btree (lower((email)::text)); -CREATE INDEX index_on_users_lower_username ON users USING btree (lower((username)::text)); +-- +-- Name: path_locks fk_5265c98f24; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_on_users_name_lower ON users USING btree (lower((name)::text)); +ALTER TABLE ONLY public.path_locks + ADD CONSTRAINT fk_5265c98f24 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_on_value_stream_dashboard_aggregations_last_run_at_and_id ON value_stream_dashboard_aggregations USING btree (last_run_at NULLS FIRST, namespace_id) WHERE (enabled IS TRUE); -CREATE INDEX index_onboarding_progresses_for_create_track ON onboarding_progresses USING btree (created_at) WHERE (git_write_at IS NULL); +-- +-- Name: agent_user_access_group_authorizations fk_53fd98ccbf; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_onboarding_progresses_for_team_track ON onboarding_progresses USING btree (GREATEST(git_write_at, pipeline_created_at, trial_started_at)) WHERE ((git_write_at IS NOT NULL) AND (pipeline_created_at IS NOT NULL) AND (trial_started_at IS NOT NULL) AND (user_added_at IS NULL)); +ALTER TABLE ONLY public.agent_user_access_group_authorizations + ADD CONSTRAINT fk_53fd98ccbf FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_onboarding_progresses_for_trial_track ON onboarding_progresses USING btree (GREATEST(git_write_at, pipeline_created_at)) WHERE ((git_write_at IS NOT NULL) AND (pipeline_created_at IS NOT NULL) AND (trial_started_at IS NULL)); -CREATE INDEX index_onboarding_progresses_for_verify_track ON onboarding_progresses USING btree (git_write_at) WHERE ((git_write_at IS NOT NULL) AND (pipeline_created_at IS NULL)); +-- +-- Name: group_crm_settings fk_54592e5f57; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_onboarding_progresses_on_namespace_id ON onboarding_progresses USING btree (namespace_id); +ALTER TABLE ONLY public.group_crm_settings + ADD CONSTRAINT fk_54592e5f57 FOREIGN KEY (source_group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_oncall_shifts_on_rotation_id_and_starts_at_and_ends_at ON incident_management_oncall_shifts USING btree (rotation_id, starts_at, ends_at); -CREATE INDEX index_operations_feature_flags_issues_on_issue_id ON operations_feature_flags_issues USING btree (issue_id); +-- +-- Name: terraform_states fk_558901b030; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_operations_feature_flags_issues_on_project_id ON operations_feature_flags_issues USING btree (project_id); +ALTER TABLE ONLY public.terraform_states + ADD CONSTRAINT fk_558901b030 FOREIGN KEY (locked_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_operations_feature_flags_on_project_id_and_iid ON operations_feature_flags USING btree (project_id, iid); -CREATE UNIQUE INDEX index_operations_feature_flags_on_project_id_and_name ON operations_feature_flags USING btree (project_id, name); +-- +-- Name: status_check_responses fk_55bd2abc83; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_operations_scopes_on_strategy_id_and_environment_scope ON operations_scopes USING btree (strategy_id, environment_scope); +ALTER TABLE ONLY public.status_check_responses + ADD CONSTRAINT fk_55bd2abc83 FOREIGN KEY (external_status_check_id) REFERENCES public.external_status_checks(id) ON DELETE CASCADE; -CREATE INDEX index_operations_strategies_on_feature_flag_id ON operations_strategies USING btree (feature_flag_id); -CREATE INDEX index_operations_strategies_on_project_id ON operations_strategies USING btree (project_id); +-- +-- Name: merge_request_metrics fk_56067dcb44; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_operations_strategies_user_lists_on_project_id ON operations_strategies_user_lists USING btree (project_id); +ALTER TABLE ONLY public.merge_request_metrics + ADD CONSTRAINT fk_56067dcb44 FOREIGN KEY (target_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_operations_strategies_user_lists_on_user_list_id ON operations_strategies_user_lists USING btree (user_list_id); -CREATE UNIQUE INDEX index_operations_user_lists_on_project_id_and_iid ON operations_user_lists USING btree (project_id, iid); +-- +-- Name: vulnerability_feedback fk_563ff1912e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_operations_user_lists_on_project_id_and_name ON operations_user_lists USING btree (project_id, name); +ALTER TABLE ONLY public.vulnerability_feedback + ADD CONSTRAINT fk_563ff1912e FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_ops_feature_flags_issues_on_feature_flag_id_and_issue_id ON operations_feature_flags_issues USING btree (feature_flag_id, issue_id); -CREATE UNIQUE INDEX index_ops_strategies_user_lists_on_strategy_id_and_user_list_id ON operations_strategies_user_lists USING btree (strategy_id, user_list_id); +-- +-- Name: merge_request_diffs fk_56ac6fc9c0; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_organization_users_on_org_id_access_level_user_id ON organization_users USING btree (organization_id, access_level, user_id); +ALTER TABLE ONLY public.merge_request_diffs + ADD CONSTRAINT fk_56ac6fc9c0 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_organization_users_on_organization_id_and_id ON organization_users USING btree (organization_id, id); -CREATE UNIQUE INDEX index_organization_users_on_organization_id_and_user_id ON organization_users USING btree (organization_id, user_id); +-- +-- Name: ml_candidates fk_56d6ed4d3d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_organization_users_on_user_id ON organization_users USING btree (user_id); +ALTER TABLE ONLY public.ml_candidates + ADD CONSTRAINT fk_56d6ed4d3d FOREIGN KEY (experiment_id) REFERENCES public.ml_experiments(id) ON DELETE CASCADE; -CREATE INDEX index_organizations_on_name_trigram ON organizations USING gin (name gin_trgm_ops); -CREATE INDEX index_organizations_on_path_trigram ON organizations USING gin (path gin_trgm_ops); +-- +-- Name: abuse_report_notes fk_57fb3e3bf2; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_organizations_on_unique_name_per_group ON customer_relations_organizations USING btree (group_id, lower(name), id); +ALTER TABLE ONLY public.abuse_report_notes + ADD CONSTRAINT fk_57fb3e3bf2 FOREIGN KEY (resolved_by_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_p_catalog_resource_component_usages_on_project_id ON ONLY p_catalog_resource_component_usages USING btree (project_id); -CREATE INDEX index_p_catalog_resource_sync_events_on_id_where_pending ON ONLY p_catalog_resource_sync_events USING btree (id) WHERE (status = 1); +-- +-- Name: approval_merge_request_rules fk_5822f009ea; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_p_ci_build_names_on_project_id_and_build_id ON ONLY p_ci_build_names USING btree (project_id, build_id); +ALTER TABLE ONLY public.approval_merge_request_rules + ADD CONSTRAINT fk_5822f009ea FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES public.security_orchestration_policy_configurations(id) ON DELETE CASCADE; -CREATE INDEX index_p_ci_build_names_on_search_vector ON ONLY p_ci_build_names USING gin (search_vector); -CREATE INDEX index_p_ci_build_sources_on_project_id_and_build_id ON ONLY p_ci_build_sources USING btree (project_id, build_id); +-- +-- Name: deploy_keys_projects fk_58a901ca7e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_p_ci_build_tags_on_build_id_and_partition_id ON ONLY p_ci_build_tags USING btree (build_id, partition_id); +ALTER TABLE ONLY public.deploy_keys_projects + ADD CONSTRAINT fk_58a901ca7e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_p_ci_build_tags_on_project_id ON ONLY p_ci_build_tags USING btree (project_id); -CREATE UNIQUE INDEX index_p_ci_build_tags_on_tag_id_and_build_id_and_partition_id ON ONLY p_ci_build_tags USING btree (tag_id, build_id, partition_id); +-- +-- Name: packages_tags fk_5a230894f6; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_p_ci_builds_execution_configs_on_pipeline_id ON ONLY p_ci_builds_execution_configs USING btree (pipeline_id); +ALTER TABLE ONLY public.packages_tags + ADD CONSTRAINT fk_5a230894f6 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_p_ci_builds_execution_configs_on_project_id ON ONLY p_ci_builds_execution_configs USING btree (project_id); -CREATE INDEX index_p_ci_finished_build_ch_sync_events_finished_at ON ONLY p_ci_finished_build_ch_sync_events USING btree (partition, build_finished_at); +-- +-- Name: security_policy_project_links fk_5a5eba6f88; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_p_ci_job_annotations_on_partition_id_job_id_name ON ONLY p_ci_job_annotations USING btree (partition_id, job_id, name); +ALTER TABLE ONLY public.security_policy_project_links + ADD CONSTRAINT fk_5a5eba6f88 FOREIGN KEY (security_policy_id) REFERENCES public.security_policies(id) ON DELETE CASCADE; -CREATE INDEX index_p_ci_runner_machine_builds_on_runner_machine_id ON ONLY p_ci_runner_machine_builds USING btree (runner_machine_id); -CREATE INDEX index_packages_build_infos_on_pipeline_id ON packages_build_infos USING btree (pipeline_id); +-- +-- Name: project_export_jobs fk_5ab0242530; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_packages_build_infos_on_project_id ON packages_build_infos USING btree (project_id); +ALTER TABLE ONLY public.project_export_jobs + ADD CONSTRAINT fk_5ab0242530 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_packages_build_infos_package_id_id ON packages_build_infos USING btree (package_id, id); -CREATE INDEX index_packages_build_infos_package_id_pipeline_id_id ON packages_build_infos USING btree (package_id, pipeline_id, id); +-- +-- Name: dependency_list_exports fk_5b3d11e1ef; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_packages_composer_cache_namespace_and_sha ON packages_composer_cache_files USING btree (namespace_id, file_sha256); +ALTER TABLE ONLY public.dependency_list_exports + ADD CONSTRAINT fk_5b3d11e1ef FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_packages_composer_metadata_on_package_id_and_target_sha ON packages_composer_metadata USING btree (package_id, target_sha); -CREATE UNIQUE INDEX index_packages_conan_file_metadata_on_package_file_id ON packages_conan_file_metadata USING btree (package_file_id); +-- +-- Name: security_policy_requirements fk_5b4fae9635; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_packages_conan_metadata_on_package_id_username_channel ON packages_conan_metadata USING btree (package_id, package_username, package_channel); +ALTER TABLE ONLY public.security_policy_requirements + ADD CONSTRAINT fk_5b4fae9635 FOREIGN KEY (compliance_requirement_id) REFERENCES public.compliance_requirements(id) ON DELETE CASCADE; -CREATE INDEX index_packages_conan_metadata_on_project_id ON packages_conan_metadata USING btree (project_id); -CREATE INDEX index_packages_debian_group_architectures_on_group_id ON packages_debian_group_architectures USING btree (group_id); +-- +-- Name: user_broadcast_message_dismissals fk_5c0cfb74ce; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_packages_debian_group_component_files_on_component_id ON packages_debian_group_component_files USING btree (component_id); +ALTER TABLE ONLY public.user_broadcast_message_dismissals + ADD CONSTRAINT fk_5c0cfb74ce FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_packages_debian_group_components_on_group_id ON packages_debian_group_components USING btree (group_id); -CREATE INDEX index_packages_debian_group_distribution_keys_on_group_id ON packages_debian_group_distribution_keys USING btree (group_id); +-- +-- Name: boards_epic_lists fk_5cbb450986; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_packages_debian_group_distributions_on_creator_id ON packages_debian_group_distributions USING btree (creator_id); +ALTER TABLE ONLY public.boards_epic_lists + ADD CONSTRAINT fk_5cbb450986 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_packages_debian_project_architectures_on_project_id ON packages_debian_project_architectures USING btree (project_id); -CREATE INDEX index_packages_debian_project_component_files_on_component_id ON packages_debian_project_component_files USING btree (component_id); +-- +-- Name: dast_scanner_profiles_builds fk_5d46286ad3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_packages_debian_project_components_on_project_id ON packages_debian_project_components USING btree (project_id); +ALTER TABLE ONLY public.dast_scanner_profiles_builds + ADD CONSTRAINT fk_5d46286ad3 FOREIGN KEY (dast_scanner_profile_id) REFERENCES public.dast_scanner_profiles(id) ON DELETE CASCADE; -CREATE INDEX index_packages_debian_project_distribution_keys_on_project_id ON packages_debian_project_distribution_keys USING btree (project_id); -CREATE INDEX index_packages_debian_project_distributions_on_creator_id ON packages_debian_project_distributions USING btree (creator_id); +-- +-- Name: protected_environment_deploy_access_levels fk_5d9b05a7e9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_packages_debian_publications_on_distribution_id ON packages_debian_publications USING btree (distribution_id); +ALTER TABLE ONLY public.protected_environment_deploy_access_levels + ADD CONSTRAINT fk_5d9b05a7e9 FOREIGN KEY (protected_environment_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_packages_debian_publications_on_package_id ON packages_debian_publications USING btree (package_id); -CREATE INDEX index_packages_debian_publications_on_project_id ON packages_debian_publications USING btree (project_id); +-- +-- Name: issue_assignees fk_5e0c8d9154; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_packages_dependencies_on_name_version_pattern_project_id ON packages_dependencies USING btree (name, version_pattern, project_id) WHERE (project_id IS NOT NULL); +ALTER TABLE ONLY public.issue_assignees + ADD CONSTRAINT fk_5e0c8d9154 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_packages_dependencies_on_project_id ON packages_dependencies USING btree (project_id); -CREATE INDEX index_packages_dependency_links_on_dependency_id ON packages_dependency_links USING btree (dependency_id); +-- +-- Name: csv_issue_imports fk_5e1572387c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_packages_dependency_links_on_project_id ON packages_dependency_links USING btree (project_id); +ALTER TABLE ONLY public.csv_issue_imports + ADD CONSTRAINT fk_5e1572387c FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_packages_helm_file_metadata_on_channel ON packages_helm_file_metadata USING btree (channel); -CREATE INDEX index_packages_helm_file_metadata_on_pf_id_and_channel ON packages_helm_file_metadata USING btree (package_file_id, channel); +-- +-- Name: project_access_tokens fk_5f7e8450e1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_packages_maven_metadata_on_package_id_and_path ON packages_maven_metadata USING btree (package_id, path); +ALTER TABLE ONLY public.project_access_tokens + ADD CONSTRAINT fk_5f7e8450e1 FOREIGN KEY (personal_access_token_id) REFERENCES public.personal_access_tokens(id) ON DELETE CASCADE; -CREATE INDEX index_packages_maven_metadata_on_path ON packages_maven_metadata USING btree (path); -CREATE INDEX index_packages_maven_metadata_on_project_id ON packages_maven_metadata USING btree (project_id); +-- +-- Name: user_achievements fk_60b12fcda3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_packages_npm_metadata_caches_on_object_storage_key ON packages_npm_metadata_caches USING btree (object_storage_key); +ALTER TABLE ONLY public.user_achievements + ADD CONSTRAINT fk_60b12fcda3 FOREIGN KEY (awarded_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_packages_npm_metadata_caches_on_project_id ON packages_npm_metadata_caches USING btree (project_id); -CREATE INDEX index_packages_nuget_dl_metadata_on_dependency_link_id ON packages_nuget_dependency_link_metadata USING btree (dependency_link_id); +-- +-- Name: merge_requests fk_6149611a04; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_packages_nuget_symbols_on_object_storage_key ON packages_nuget_symbols USING btree (object_storage_key); +ALTER TABLE ONLY public.merge_requests + ADD CONSTRAINT fk_6149611a04 FOREIGN KEY (assignee_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_packages_nuget_symbols_on_package_id ON packages_nuget_symbols USING btree (package_id); -CREATE UNIQUE INDEX index_packages_nuget_symbols_on_signature_and_file_path ON packages_nuget_symbols USING btree (signature, file_path); +-- +-- Name: member_approvals fk_619f381144; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_packages_on_available_pypi_packages ON packages_packages USING btree (project_id, id) WHERE ((status = ANY (ARRAY[0, 1])) AND (package_type = 5) AND (version IS NOT NULL)); +ALTER TABLE ONLY public.member_approvals + ADD CONSTRAINT fk_619f381144 FOREIGN KEY (member_role_id) REFERENCES public.member_roles(id) ON DELETE SET NULL; -CREATE INDEX index_packages_package_file_build_infos_on_package_file_id ON packages_package_file_build_infos USING btree (package_file_id); -CREATE INDEX index_packages_package_file_build_infos_on_pipeline_id ON packages_package_file_build_infos USING btree (pipeline_id); +-- +-- Name: work_item_widget_definitions fk_61bfa96db5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_packages_package_files_on_file_name ON packages_package_files USING gin (file_name gin_trgm_ops); +ALTER TABLE ONLY public.work_item_widget_definitions + ADD CONSTRAINT fk_61bfa96db5 FOREIGN KEY (work_item_type_id) REFERENCES public.work_item_types(id) ON DELETE CASCADE; -CREATE INDEX index_packages_package_files_on_file_name_file_sha256 ON packages_package_files USING btree (file_name, file_sha256); -CREATE INDEX index_packages_package_files_on_file_store ON packages_package_files USING btree (file_store); +-- +-- Name: deployment_approvals fk_61cdbdc5b9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_packages_package_files_on_id_for_cleanup ON packages_package_files USING btree (id) WHERE (status = 1); +ALTER TABLE ONLY public.deployment_approvals + ADD CONSTRAINT fk_61cdbdc5b9 FOREIGN KEY (approval_rule_id) REFERENCES public.protected_environment_approval_rules(id) ON DELETE SET NULL; -CREATE INDEX index_packages_package_files_on_package_file_extension_status ON packages_package_files USING btree (package_id) WHERE ((status = 0) AND (reverse(split_part(reverse((file_name)::text), '.'::text, 1)) = 'nupkg'::text)); -CREATE INDEX index_packages_package_files_on_package_id_and_created_at_desc ON packages_package_files USING btree (package_id, created_at DESC); +-- +-- Name: dast_profile_schedules fk_61d52aa0e7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_packages_package_files_on_package_id_and_file_name ON packages_package_files USING btree (package_id, file_name); +ALTER TABLE ONLY public.dast_profile_schedules + ADD CONSTRAINT fk_61d52aa0e7 FOREIGN KEY (dast_profile_id) REFERENCES public.dast_profiles(id) ON DELETE CASCADE; -CREATE INDEX index_packages_package_files_on_package_id_id ON packages_package_files USING btree (package_id, id); -CREATE INDEX index_packages_package_files_on_package_id_status_and_id ON packages_package_files USING btree (package_id, status, id); +-- +-- Name: events fk_61fbf6ca48; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_packages_package_files_on_status ON packages_package_files USING btree (status); +ALTER TABLE ONLY public.events + ADD CONSTRAINT fk_61fbf6ca48 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_packages_package_files_on_verification_state ON packages_package_files USING btree (verification_state); -CREATE INDEX index_packages_packages_on_creator_id ON packages_packages USING btree (creator_id); +-- +-- Name: vulnerability_reads fk_62736f638f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_packages_packages_on_id_and_created_at ON packages_packages USING btree (id, created_at); +ALTER TABLE ONLY public.vulnerability_reads + ADD CONSTRAINT fk_62736f638f FOREIGN KEY (vulnerability_id) REFERENCES public.vulnerabilities(id) ON DELETE CASCADE; -CREATE INDEX index_packages_packages_on_name_trigram ON packages_packages USING gin (name gin_trgm_ops); -CREATE INDEX index_packages_packages_on_project_id_and_created_at ON packages_packages USING btree (project_id, created_at); +-- +-- Name: saml_group_links fk_6336b1d1d0; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_packages_packages_on_project_id_and_lower_version ON packages_packages USING btree (project_id, lower((version)::text)) WHERE (package_type = 4); +ALTER TABLE ONLY public.saml_group_links + ADD CONSTRAINT fk_6336b1d1d0 FOREIGN KEY (member_role_id) REFERENCES public.member_roles(id) ON DELETE SET NULL; -CREATE INDEX index_packages_packages_on_project_id_and_package_type ON packages_packages USING btree (project_id, package_type); -CREATE INDEX index_packages_packages_on_project_id_and_status_and_id ON packages_packages USING btree (project_id, status, id); +-- +-- Name: deployment_approvals fk_63920ba071; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_packages_packages_on_project_id_and_version ON packages_packages USING btree (project_id, version); +ALTER TABLE ONLY public.deployment_approvals + ADD CONSTRAINT fk_63920ba071 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_packages_project_id_name_partial_for_nuget ON packages_packages USING btree (project_id, name) WHERE (((name)::text <> 'NuGet.Temporary.Package'::text) AND (version IS NOT NULL) AND (package_type = 4)); -CREATE INDEX index_packages_rpm_metadata_on_package_id ON packages_rpm_metadata USING btree (package_id); +-- +-- Name: merge_requests fk_641731faff; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_packages_rpm_repository_files_on_project_id_and_file_name ON packages_rpm_repository_files USING btree (project_id, file_name); +ALTER TABLE ONLY public.merge_requests + ADD CONSTRAINT fk_641731faff FOREIGN KEY (updated_by_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_packages_tags_on_package_id_and_updated_at ON packages_tags USING btree (package_id, updated_at DESC); -CREATE INDEX index_packages_tags_on_project_id ON packages_tags USING btree (project_id); +-- +-- Name: approval_group_rules fk_64450bea52; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_packages_terraform_module_metadata_on_project_id ON packages_terraform_module_metadata USING btree (project_id); +ALTER TABLE ONLY public.approval_group_rules + ADD CONSTRAINT fk_64450bea52 FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES public.security_orchestration_policy_configurations(id) ON DELETE CASCADE; -CREATE INDEX index_pages_deployment_states_failed_verification ON pages_deployment_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); -CREATE INDEX index_pages_deployment_states_needs_verification ON pages_deployment_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); +-- +-- Name: ci_pipeline_chat_data fk_64ebfab6b3_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_pages_deployment_states_on_pages_deployment_id ON pages_deployment_states USING btree (pages_deployment_id); +ALTER TABLE ONLY public.ci_pipeline_chat_data + ADD CONSTRAINT fk_64ebfab6b3_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -CREATE INDEX index_pages_deployment_states_on_verification_state ON pages_deployment_states USING btree (verification_state); -CREATE INDEX index_pages_deployment_states_pending_verification ON pages_deployment_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); +-- +-- Name: ci_pipeline_chat_data fk_64ebfab6b3_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_pages_deployments_on_ci_build_id ON pages_deployments USING btree (ci_build_id); +ALTER TABLE ONLY public.ci_pipeline_chat_data + ADD CONSTRAINT fk_64ebfab6b3_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -CREATE INDEX index_pages_deployments_on_deleted_at ON pages_deployments USING btree (deleted_at) WHERE (deleted_at IS NOT NULL); -CREATE INDEX index_pages_deployments_on_expires_at ON pages_deployments USING btree (expires_at, id) WHERE (expires_at IS NOT NULL); +-- +-- Name: cluster_agent_tokens fk_64f741f626; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_pages_deployments_on_file_store_and_id ON pages_deployments USING btree (file_store, id); +ALTER TABLE ONLY public.cluster_agent_tokens + ADD CONSTRAINT fk_64f741f626 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_pages_deployments_on_project_id ON pages_deployments USING btree (project_id); -CREATE INDEX index_pages_domain_acme_orders_on_challenge_token ON pages_domain_acme_orders USING btree (challenge_token); +-- +-- Name: import_placeholder_memberships fk_66286fb5e6; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_pages_domain_acme_orders_on_pages_domain_id ON pages_domain_acme_orders USING btree (pages_domain_id); +ALTER TABLE ONLY public.import_placeholder_memberships + ADD CONSTRAINT fk_66286fb5e6 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_pages_domains_need_auto_ssl_renewal_user_provided ON pages_domains USING btree (id) WHERE ((auto_ssl_enabled = true) AND (auto_ssl_failed = false) AND (certificate_source = 0)); -CREATE INDEX index_pages_domains_need_auto_ssl_renewal_valid_not_after ON pages_domains USING btree (certificate_valid_not_after) WHERE ((auto_ssl_enabled = true) AND (auto_ssl_failed = false)); +-- +-- Name: p_ci_builds fk_6661f4f0e8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_pages_domains_on_domain_and_wildcard ON pages_domains USING btree (domain, wildcard); +ALTER TABLE public.p_ci_builds + ADD CONSTRAINT fk_6661f4f0e8 FOREIGN KEY (resource_group_id) REFERENCES public.ci_resource_groups(id) ON DELETE SET NULL; -CREATE INDEX index_pages_domains_on_domain_lowercase ON pages_domains USING btree (lower((domain)::text)); -CREATE INDEX index_pages_domains_on_project_id ON pages_domains USING btree (project_id); +-- +-- Name: remote_development_agent_configs fk_6a09894a0f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_pages_domains_on_project_id_and_enabled_until ON pages_domains USING btree (project_id, enabled_until); +ALTER TABLE ONLY public.remote_development_agent_configs + ADD CONSTRAINT fk_6a09894a0f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_pages_domains_on_remove_at ON pages_domains USING btree (remove_at); -CREATE INDEX index_pages_domains_on_scope ON pages_domains USING btree (scope); +-- +-- Name: dast_site_profile_secret_variables fk_6a254b170e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_pages_domains_on_usage ON pages_domains USING btree (usage); +ALTER TABLE ONLY public.dast_site_profile_secret_variables + ADD CONSTRAINT fk_6a254b170e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_pages_domains_on_verified_at ON pages_domains USING btree (verified_at); -CREATE INDEX index_pages_domains_on_verified_at_and_enabled_until ON pages_domains USING btree (verified_at, enabled_until); +-- +-- Name: merge_requests fk_6a5165a692; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_pages_domains_on_wildcard ON pages_domains USING btree (wildcard); +ALTER TABLE ONLY public.merge_requests + ADD CONSTRAINT fk_6a5165a692 FOREIGN KEY (milestone_id) REFERENCES public.milestones(id) ON DELETE SET NULL; -CREATE INDEX p_ci_builds_user_id_name_idx ON ONLY p_ci_builds USING btree (user_id, name) WHERE (((type)::text = 'Ci::Build'::text) AND ((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('license_scanning'::character varying)::text, ('sast'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('secret_detection'::character varying)::text]))); -CREATE INDEX index_partial_ci_builds_on_user_id_name_parser_features ON ci_builds USING btree (user_id, name) WHERE (((type)::text = 'Ci::Build'::text) AND ((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('license_scanning'::character varying)::text, ('sast'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('secret_detection'::character varying)::text]))); +-- +-- Name: ai_agent_versions fk_6c2f682587; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_pat_on_user_id_and_expires_at ON personal_access_tokens USING btree (user_id, expires_at); +ALTER TABLE ONLY public.ai_agent_versions + ADD CONSTRAINT fk_6c2f682587 FOREIGN KEY (agent_id) REFERENCES public.ai_agents(id) ON DELETE CASCADE; -CREATE INDEX index_path_locks_on_path ON path_locks USING btree (path); -CREATE INDEX index_path_locks_on_project_id ON path_locks USING btree (project_id); +-- +-- Name: ml_models fk_6c95e61a6e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_path_locks_on_user_id ON path_locks USING btree (user_id); +ALTER TABLE ONLY public.ml_models + ADD CONSTRAINT fk_6c95e61a6e FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_pe_approval_rules_on_required_approvals_and_created_at ON protected_environment_approval_rules USING btree (required_approvals, created_at); -CREATE INDEX index_personal_access_tokens_on_id_and_created_at ON personal_access_tokens USING btree (id, created_at); +-- +-- Name: projects fk_6ca23af0a3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_personal_access_tokens_on_organization_id ON personal_access_tokens USING btree (organization_id); +ALTER TABLE ONLY public.projects + ADD CONSTRAINT fk_6ca23af0a3 FOREIGN KEY (project_namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_personal_access_tokens_on_token_digest ON personal_access_tokens USING btree (token_digest); -CREATE INDEX index_personal_access_tokens_on_user_id ON personal_access_tokens USING btree (user_id); +-- +-- Name: dast_profile_schedules fk_6cca0d8800; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_pipeline_metadata_on_name_text_pattern_pipeline_id ON ci_pipeline_metadata USING btree (name text_pattern_ops, pipeline_id); +ALTER TABLE ONLY public.dast_profile_schedules + ADD CONSTRAINT fk_6cca0d8800 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX p_ci_pipeline_variables_pipeline_id_key_partition_id_idx ON ONLY p_ci_pipeline_variables USING btree (pipeline_id, key, partition_id); -CREATE UNIQUE INDEX index_pipeline_variables_on_pipeline_id_key_partition_id_unique ON ci_pipeline_variables USING btree (pipeline_id, key, partition_id); +-- +-- Name: compliance_framework_security_policies fk_6d3bd0c9f1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_plan_limits_on_plan_id ON plan_limits USING btree (plan_id); +ALTER TABLE ONLY public.compliance_framework_security_policies + ADD CONSTRAINT fk_6d3bd0c9f1 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_plans_on_name ON plans USING btree (name); -CREATE UNIQUE INDEX index_pm_advisories_on_advisory_xid_and_source_xid ON pm_advisories USING btree (advisory_xid, source_xid); +-- +-- Name: audit_events_streaming_instance_namespace_filters fk_6e0be28087; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_pm_affected_packages_on_pm_advisory_id ON pm_affected_packages USING btree (pm_advisory_id); +ALTER TABLE ONLY public.audit_events_streaming_instance_namespace_filters + ADD CONSTRAINT fk_6e0be28087 FOREIGN KEY (external_streaming_destination_id) REFERENCES public.audit_events_instance_external_streaming_destinations(id) ON DELETE CASCADE; -CREATE INDEX index_pm_affected_packages_on_purl_type_and_package_name ON pm_affected_packages USING btree (purl_type, package_name); -CREATE UNIQUE INDEX index_pm_epss_on_cve ON pm_epss USING btree (cve); +-- +-- Name: projects fk_6e5c14658a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_pm_package_version_licenses_on_pm_license_id ON pm_package_version_licenses USING btree (pm_license_id); +ALTER TABLE ONLY public.projects + ADD CONSTRAINT fk_6e5c14658a FOREIGN KEY (pool_repository_id) REFERENCES public.pool_repositories(id) ON DELETE SET NULL; -CREATE INDEX index_pm_package_version_licenses_on_pm_package_version_id ON pm_package_version_licenses USING btree (pm_package_version_id); -CREATE INDEX index_pm_package_versions_on_pm_package_id ON pm_package_versions USING btree (pm_package_id); +-- +-- Name: terraform_state_versions fk_6e81384d7f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_pool_repositories_on_shard_id ON pool_repositories USING btree (shard_id); +ALTER TABLE ONLY public.terraform_state_versions + ADD CONSTRAINT fk_6e81384d7f FOREIGN KEY (created_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_pool_repositories_on_source_project_id_and_shard_id ON pool_repositories USING btree (source_project_id, shard_id); -CREATE UNIQUE INDEX index_postgres_async_indexes_on_name ON postgres_async_indexes USING btree (name); +-- +-- Name: protected_environment_approval_rules fk_6ee8249821; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_postgres_reindex_actions_on_index_identifier ON postgres_reindex_actions USING btree (index_identifier); +ALTER TABLE ONLY public.protected_environment_approval_rules + ADD CONSTRAINT fk_6ee8249821 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_postgres_reindex_queued_actions_on_state ON postgres_reindex_queued_actions USING btree (state); -CREATE UNIQUE INDEX index_programming_languages_on_name ON programming_languages USING btree (name); +-- +-- Name: deploy_tokens fk_7082f8a288; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_project_access_tokens_on_project_id ON project_access_tokens USING btree (project_id); +ALTER TABLE ONLY public.deploy_tokens + ADD CONSTRAINT fk_7082f8a288 FOREIGN KEY (creator_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_project_aliases_on_name ON project_aliases USING btree (name); -CREATE INDEX index_project_aliases_on_project_id ON project_aliases USING btree (project_id); +-- +-- Name: protected_branch_push_access_levels fk_7111b68cdb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_project_authorizations_on_project_user_access_level ON project_authorizations USING btree (project_id, user_id, access_level); +ALTER TABLE ONLY public.protected_branch_push_access_levels + ADD CONSTRAINT fk_7111b68cdb FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_project_auto_devops_on_project_id ON project_auto_devops USING btree (project_id); -CREATE UNIQUE INDEX index_project_build_artifacts_size_refreshes_on_project_id ON project_build_artifacts_size_refreshes USING btree (project_id); +-- +-- Name: import_source_users fk_719b74231d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_project_ci_cd_settings_on_project_id ON project_ci_cd_settings USING btree (project_id); +ALTER TABLE ONLY public.import_source_users + ADD CONSTRAINT fk_719b74231d FOREIGN KEY (reassigned_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_project_ci_feature_usages_unique_columns ON project_ci_feature_usages USING btree (project_id, feature, default_branch); -CREATE INDEX index_project_compliance_framework_settings_on_framework_id ON project_compliance_framework_settings USING btree (framework_id); +-- +-- Name: integrations fk_71cce407f9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_project_compliance_standards_adherence_on_project_id ON project_compliance_standards_adherence USING btree (project_id); +ALTER TABLE ONLY public.integrations + ADD CONSTRAINT fk_71cce407f9 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_project_custom_attributes_on_key_and_value ON project_custom_attributes USING btree (key, value); -CREATE UNIQUE INDEX index_project_custom_attributes_on_project_id_and_key ON project_custom_attributes USING btree (project_id, key); +-- +-- Name: subscription_user_add_on_assignments fk_724c2df9a8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_project_daily_statistics_on_project_id_and_date ON project_daily_statistics USING btree (project_id, date DESC); +ALTER TABLE ONLY public.subscription_user_add_on_assignments + ADD CONSTRAINT fk_724c2df9a8 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_project_data_transfers_on_namespace_id ON project_data_transfers USING btree (namespace_id); -CREATE UNIQUE INDEX index_project_data_transfers_on_project_and_namespace_and_date ON project_data_transfers USING btree (project_id, namespace_id, date); +-- +-- Name: vulnerabilities fk_725465b774; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_project_deploy_tokens_on_deploy_token_id ON project_deploy_tokens USING btree (deploy_token_id); +ALTER TABLE ONLY public.vulnerabilities + ADD CONSTRAINT fk_725465b774 FOREIGN KEY (dismissed_by_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_project_deploy_tokens_on_project_id_and_deploy_token_id ON project_deploy_tokens USING btree (project_id, deploy_token_id); -CREATE UNIQUE INDEX index_project_export_job_relation ON project_relation_exports USING btree (project_export_job_id, relation); +-- +-- Name: packages_conan_metadata fk_7302a29cd9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_project_export_jobs_on_jid ON project_export_jobs USING btree (jid); +ALTER TABLE ONLY public.packages_conan_metadata + ADD CONSTRAINT fk_7302a29cd9 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_project_export_jobs_on_project_id_and_jid ON project_export_jobs USING btree (project_id, jid); -CREATE INDEX index_project_export_jobs_on_project_id_and_status ON project_export_jobs USING btree (project_id, status); +-- +-- Name: approval_merge_request_rules fk_73fec3d7e5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_project_export_jobs_on_status ON project_export_jobs USING btree (status); +ALTER TABLE ONLY public.approval_merge_request_rules + ADD CONSTRAINT fk_73fec3d7e5 FOREIGN KEY (approval_policy_rule_id) REFERENCES public.approval_policy_rules(id) ON DELETE CASCADE; -CREATE INDEX index_project_export_jobs_on_updated_at_and_id ON project_export_jobs USING btree (updated_at, id); -CREATE INDEX index_project_export_jobs_on_user_id ON project_export_jobs USING btree (user_id); +-- +-- Name: index_statuses fk_74b2492545; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_project_feature_usages_on_project_id ON project_feature_usages USING btree (project_id); +ALTER TABLE ONLY public.index_statuses + ADD CONSTRAINT fk_74b2492545 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_project_features_on_project_id ON project_features USING btree (project_id); -CREATE INDEX index_project_features_on_project_id_bal_20 ON project_features USING btree (project_id) WHERE (builds_access_level = 20); +-- +-- Name: abuse_report_notes fk_74e1990397; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_project_features_on_project_id_include_container_registry ON project_features USING btree (project_id) INCLUDE (container_registry_access_level); +ALTER TABLE ONLY public.abuse_report_notes + ADD CONSTRAINT fk_74e1990397 FOREIGN KEY (abuse_report_id) REFERENCES public.abuse_reports(id) ON DELETE CASCADE; -COMMENT ON INDEX index_project_features_on_project_id_include_container_registry IS 'Included column (container_registry_access_level) improves performance of the ContainerRepository.for_group_and_its_subgroups scope query'; -CREATE INDEX index_project_features_on_project_id_on_public_package_registry ON project_features USING btree (project_id) WHERE (package_registry_access_level = 30); +-- +-- Name: software_license_policies fk_74f6d8328a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_project_features_on_project_id_ral_20 ON project_features USING btree (project_id) WHERE (repository_access_level = 20); +ALTER TABLE ONLY public.software_license_policies + ADD CONSTRAINT fk_74f6d8328a FOREIGN KEY (custom_software_license_id) REFERENCES public.custom_software_licenses(id) ON DELETE CASCADE; -CREATE INDEX index_project_group_links_on_group_id_and_project_id ON project_group_links USING btree (group_id, project_id); -CREATE INDEX index_project_group_links_on_project_id ON project_group_links USING btree (project_id); +-- +-- Name: cluster_agent_tokens fk_75008f3553; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_project_import_data_on_project_id ON project_import_data USING btree (project_id); +ALTER TABLE ONLY public.cluster_agent_tokens + ADD CONSTRAINT fk_75008f3553 FOREIGN KEY (created_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_project_incident_management_settings_on_p_id_sla_timer ON project_incident_management_settings USING btree (project_id) WHERE (sla_timer = true); -CREATE INDEX index_project_members_on_id_temp ON members USING btree (id) WHERE ((source_type)::text = 'Project'::text); +-- +-- Name: protected_tag_create_access_levels fk_7537413f9d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_project_mirror_data_on_last_successful_update_at ON project_mirror_data USING btree (last_successful_update_at); +ALTER TABLE ONLY public.protected_tag_create_access_levels + ADD CONSTRAINT fk_7537413f9d FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_project_mirror_data_on_last_update_at_and_retry_count ON project_mirror_data USING btree (last_update_at, retry_count); -CREATE UNIQUE INDEX index_project_mirror_data_on_project_id ON project_mirror_data USING btree (project_id); +-- +-- Name: environments fk_75c2098045; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_project_mirror_data_on_status ON project_mirror_data USING btree (status); +ALTER TABLE ONLY public.environments + ADD CONSTRAINT fk_75c2098045 FOREIGN KEY (cluster_agent_id) REFERENCES public.cluster_agents(id) ON DELETE SET NULL; -CREATE INDEX index_project_pages_metadata_on_pages_deployment_id ON project_pages_metadata USING btree (pages_deployment_id); -CREATE INDEX index_project_pages_metadata_on_project_id_and_deployed_is_true ON project_pages_metadata USING btree (project_id) WHERE (deployed = true); +-- +-- Name: vulnerabilities fk_76bc5f5455; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_project_relation_export_upload_id ON project_relation_export_uploads USING btree (project_relation_export_id); +ALTER TABLE ONLY public.vulnerabilities + ADD CONSTRAINT fk_76bc5f5455 FOREIGN KEY (resolved_by_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_project_relation_exports_on_project_id ON project_relation_exports USING btree (project_id); -CREATE UNIQUE INDEX index_project_repositories_on_disk_path ON project_repositories USING btree (disk_path); +-- +-- Name: notes fk_76db6d50c6; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_project_repositories_on_project_id ON project_repositories USING btree (project_id); +ALTER TABLE ONLY public.notes + ADD CONSTRAINT fk_76db6d50c6 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_project_repositories_on_shard_id_and_project_id ON project_repositories USING btree (shard_id, project_id); -CREATE INDEX index_project_repository_storage_moves_on_project_id ON project_repository_storage_moves USING btree (project_id); +-- +-- Name: oauth_openid_requests fk_77114b3b09; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_project_saved_replies_on_project_id ON project_saved_replies USING btree (project_id); +ALTER TABLE ONLY public.oauth_openid_requests + ADD CONSTRAINT fk_77114b3b09 FOREIGN KEY (access_grant_id) REFERENCES public.oauth_access_grants(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_project_secrets_managers_on_project_id ON project_secrets_managers USING btree (project_id); -CREATE INDEX index_project_settings_on_legacy_os_license_project_id ON project_settings USING btree (project_id) WHERE (legacy_open_source_license_available = true); +-- +-- Name: scan_result_policy_violations fk_77251168f1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_project_settings_on_project_id_partially ON project_settings USING btree (project_id) WHERE (has_vulnerabilities IS TRUE); +ALTER TABLE ONLY public.scan_result_policy_violations + ADD CONSTRAINT fk_77251168f1 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_project_settings_on_push_rule_id ON project_settings USING btree (push_rule_id); -CREATE INDEX index_project_states_failed_verification ON project_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +-- +-- Name: approval_project_rules fk_773289d10b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_project_states_needs_verification ON project_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); +ALTER TABLE ONLY public.approval_project_rules + ADD CONSTRAINT fk_773289d10b FOREIGN KEY (approval_policy_rule_id) REFERENCES public.approval_policy_rules(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_project_states_on_project_id ON project_states USING btree (project_id); -CREATE INDEX index_project_states_on_verification_state ON project_states USING btree (verification_state); +-- +-- Name: agent_user_access_project_authorizations fk_78034b05d8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_project_states_pending_verification ON project_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); +ALTER TABLE ONLY public.agent_user_access_project_authorizations + ADD CONSTRAINT fk_78034b05d8 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_project_statistics_on_namespace_id ON project_statistics USING btree (namespace_id); -CREATE INDEX index_project_statistics_on_packages_size_and_project_id ON project_statistics USING btree (packages_size, project_id); +-- +-- Name: users fk_789cd90b35; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_project_statistics_on_project_id ON project_statistics USING btree (project_id); +ALTER TABLE ONLY public.users + ADD CONSTRAINT fk_789cd90b35 FOREIGN KEY (accepted_term_id) REFERENCES public.application_setting_terms(id) ON DELETE CASCADE; -CREATE INDEX index_project_statistics_on_repository_size_and_project_id ON project_statistics USING btree (repository_size, project_id); -CREATE INDEX index_project_statistics_on_root_namespace_id ON project_statistics USING btree (root_namespace_id); +-- +-- Name: analytics_devops_adoption_snapshots fk_78c9eac821; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_project_statistics_on_storage_size_and_project_id ON project_statistics USING btree (storage_size, project_id); +ALTER TABLE ONLY public.analytics_devops_adoption_snapshots + ADD CONSTRAINT fk_78c9eac821 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_project_statistics_on_wiki_size_and_project_id ON project_statistics USING btree (wiki_size, project_id); -CREATE UNIQUE INDEX index_project_topics_on_project_id_and_topic_id ON project_topics USING btree (project_id, topic_id); +-- +-- Name: packages_maven_metadata fk_7a170ee0a3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_project_topics_on_topic_id ON project_topics USING btree (topic_id); +ALTER TABLE ONLY public.packages_maven_metadata + ADD CONSTRAINT fk_7a170ee0a3 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_project_user_callouts_feature ON user_project_callouts USING btree (user_id, feature_name, project_id); -CREATE UNIQUE INDEX index_project_wiki_repositories_on_project_id ON project_wiki_repositories USING btree (project_id); +-- +-- Name: project_relation_exports fk_7a4d3d5c0f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_projects_aimed_for_deletion ON projects USING btree (marked_for_deletion_at) WHERE ((marked_for_deletion_at IS NOT NULL) AND (pending_delete = false)); +ALTER TABLE ONLY public.project_relation_exports + ADD CONSTRAINT fk_7a4d3d5c0f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_projects_api_created_at_id_desc ON projects USING btree (created_at, id DESC); -CREATE INDEX index_projects_api_last_activity_at_id_desc ON projects USING btree (last_activity_at, id DESC); +-- +-- Name: lists fk_7a5553d60f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_projects_api_name_id_desc ON projects USING btree (name, id DESC); +ALTER TABLE ONLY public.lists + ADD CONSTRAINT fk_7a5553d60f FOREIGN KEY (label_id) REFERENCES public.labels(id) ON DELETE CASCADE; -CREATE INDEX index_projects_api_path_id_desc ON projects USING btree (path, id DESC); -CREATE INDEX index_projects_api_updated_at_id_desc ON projects USING btree (updated_at, id DESC); +-- +-- Name: protected_branches fk_7a9c6d93e7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_projects_api_vis20_created_at ON projects USING btree (created_at, id) WHERE (visibility_level = 20); +ALTER TABLE ONLY public.protected_branches + ADD CONSTRAINT fk_7a9c6d93e7 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_projects_api_vis20_last_activity_at ON projects USING btree (last_activity_at, id) WHERE (visibility_level = 20); -CREATE INDEX index_projects_api_vis20_name ON projects USING btree (name, id) WHERE (visibility_level = 20); +-- +-- Name: scan_result_policies fk_7aa24439f1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_projects_api_vis20_path ON projects USING btree (path, id) WHERE (visibility_level = 20); +ALTER TABLE ONLY public.scan_result_policies + ADD CONSTRAINT fk_7aa24439f1 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_projects_api_vis20_updated_at ON projects USING btree (updated_at, id) WHERE (visibility_level = 20); -CREATE INDEX index_projects_id_for_aimed_for_deletion ON projects USING btree (id, marked_for_deletion_at) WHERE ((marked_for_deletion_at IS NOT NULL) AND (pending_delete = false)); +-- +-- Name: catalog_resource_versions fk_7ad8849db4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_projects_not_aimed_for_deletion ON projects USING btree (id) WHERE (marked_for_deletion_at IS NULL); +ALTER TABLE ONLY public.catalog_resource_versions + ADD CONSTRAINT fk_7ad8849db4 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_projects_on_creator_id_and_created_at_and_id ON projects USING btree (creator_id, created_at, id); -CREATE INDEX index_projects_on_creator_id_and_id ON projects USING btree (creator_id, id); +-- +-- Name: issue_customer_relations_contacts fk_7b92f835bb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_projects_on_creator_id_import_type_and_created_at_partial ON projects USING btree (creator_id, import_type, created_at) WHERE (import_type IS NOT NULL); +ALTER TABLE ONLY public.issue_customer_relations_contacts + ADD CONSTRAINT fk_7b92f835bb FOREIGN KEY (contact_id) REFERENCES public.customer_relations_contacts(id) ON DELETE CASCADE; -CREATE INDEX index_projects_on_description_trigram ON projects USING gin (description gin_trgm_ops); -CREATE INDEX index_projects_on_id_and_archived_and_pending_delete ON projects USING btree (id) WHERE ((archived = false) AND (pending_delete = false)); +-- +-- Name: ssh_signatures fk_7d2f93996c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_projects_on_id_partial_for_visibility ON projects USING btree (id) WHERE (visibility_level = ANY (ARRAY[10, 20])); +ALTER TABLE ONLY public.ssh_signatures + ADD CONSTRAINT fk_7d2f93996c FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_projects_on_id_service_desk_enabled ON projects USING btree (id) WHERE (service_desk_enabled = true); -CREATE INDEX index_projects_on_last_activity_at_and_id ON projects USING btree (last_activity_at, id); +-- +-- Name: sent_notifications fk_7d7663e36a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_projects_on_last_repository_check_at ON projects USING btree (last_repository_check_at) WHERE (last_repository_check_at IS NOT NULL); +ALTER TABLE ONLY public.sent_notifications + ADD CONSTRAINT fk_7d7663e36a FOREIGN KEY (issue_email_participant_id) REFERENCES public.issue_email_participants(id) ON DELETE SET NULL NOT VALID; -CREATE INDEX index_projects_on_last_repository_check_failed ON projects USING btree (last_repository_check_failed); -CREATE INDEX index_projects_on_last_repository_updated_at ON projects USING btree (last_repository_updated_at); +-- +-- Name: labels fk_7de4989a69; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_projects_on_lower_name ON projects USING btree (lower((name)::text)); +ALTER TABLE ONLY public.labels + ADD CONSTRAINT fk_7de4989a69 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_projects_on_marked_for_deletion_by_user_id ON projects USING btree (marked_for_deletion_by_user_id) WHERE (marked_for_deletion_by_user_id IS NOT NULL); -CREATE INDEX index_projects_on_mirror_creator_id_created_at ON projects USING btree (creator_id, created_at) WHERE ((mirror = true) AND (mirror_trigger_builds = true)); +-- +-- Name: merge_requests fk_7e85395a64; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_projects_on_mirror_id_where_mirror_and_trigger_builds ON projects USING btree (id) WHERE ((mirror = true) AND (mirror_trigger_builds = true)); +ALTER TABLE ONLY public.merge_requests + ADD CONSTRAINT fk_7e85395a64 FOREIGN KEY (sprint_id) REFERENCES public.sprints(id) ON DELETE SET NULL; -CREATE INDEX index_projects_on_mirror_user_id ON projects USING btree (mirror_user_id); -CREATE INDEX index_projects_on_name_and_id ON projects USING btree (name, id); +-- +-- Name: merge_request_metrics fk_7f28d925f3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_projects_on_name_trigram ON projects USING gin (name gin_trgm_ops); +ALTER TABLE ONLY public.merge_request_metrics + ADD CONSTRAINT fk_7f28d925f3 FOREIGN KEY (merged_by_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_projects_on_namespace_id_and_id ON projects USING btree (namespace_id, id); -CREATE INDEX index_projects_on_namespace_id_and_repository_size_limit ON projects USING btree (namespace_id, repository_size_limit); +-- +-- Name: namespaces fk_7f813d8c90; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_projects_on_organization_id_and_id ON projects USING btree (organization_id, id); +ALTER TABLE ONLY public.namespaces + ADD CONSTRAINT fk_7f813d8c90 FOREIGN KEY (parent_id) REFERENCES public.namespaces(id) ON DELETE RESTRICT NOT VALID; -CREATE INDEX index_projects_on_path_trigram ON projects USING gin (path gin_trgm_ops); -CREATE INDEX index_projects_on_pending_delete ON projects USING btree (pending_delete); +-- +-- Name: group_import_states fk_8053b3ebd6; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_projects_on_pool_repository_id ON projects USING btree (pool_repository_id) WHERE (pool_repository_id IS NOT NULL); +ALTER TABLE ONLY public.group_import_states + ADD CONSTRAINT fk_8053b3ebd6 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_projects_on_project_namespace_id ON projects USING btree (project_namespace_id); -CREATE INDEX index_projects_on_repository_storage ON projects USING btree (repository_storage); +-- +-- Name: packages_debian_project_components fk_8053c57c65; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_projects_on_star_count ON projects USING btree (star_count); +ALTER TABLE ONLY public.packages_debian_project_components + ADD CONSTRAINT fk_8053c57c65 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_projects_on_updated_at_and_id ON projects USING btree (updated_at, id); -CREATE INDEX index_projects_sync_events_on_project_id ON projects_sync_events USING btree (project_id); +-- +-- Name: sprints fk_80aa8a1f95; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_projects_visits_on_entity_id ON ONLY projects_visits USING btree (entity_id); +ALTER TABLE ONLY public.sprints + ADD CONSTRAINT fk_80aa8a1f95 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_projects_visits_on_user_id_and_entity_id_and_visited_at ON ONLY projects_visits USING btree (user_id, entity_id, visited_at); -CREATE UNIQUE INDEX index_prometheus_alert_event_scoped_payload_key ON prometheus_alert_events USING btree (prometheus_alert_id, payload_key); +-- +-- Name: related_epic_links fk_8257080565; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_prometheus_alert_events_on_project_id_and_status ON prometheus_alert_events USING btree (project_id, status); +ALTER TABLE ONLY public.related_epic_links + ADD CONSTRAINT fk_8257080565 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_prometheus_alerts_metric_environment ON prometheus_alerts USING btree (project_id, prometheus_metric_id, environment_id); -CREATE INDEX index_prometheus_alerts_on_environment_id ON prometheus_alerts USING btree (environment_id); +-- +-- Name: import_export_uploads fk_83319d9721; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_prometheus_alerts_on_prometheus_metric_id ON prometheus_alerts USING btree (prometheus_metric_id); +ALTER TABLE ONLY public.import_export_uploads + ADD CONSTRAINT fk_83319d9721 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_prometheus_metrics_on_common ON prometheus_metrics USING btree (common); -CREATE INDEX index_prometheus_metrics_on_group ON prometheus_metrics USING btree ("group"); +-- +-- Name: push_rules fk_83b29894de; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_prometheus_metrics_on_identifier_and_null_project ON prometheus_metrics USING btree (identifier) WHERE (project_id IS NULL); +ALTER TABLE ONLY public.push_rules + ADD CONSTRAINT fk_83b29894de FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_prometheus_metrics_on_identifier_and_project_id ON prometheus_metrics USING btree (identifier, project_id); -CREATE INDEX index_prometheus_metrics_on_project_id ON prometheus_metrics USING btree (project_id); +-- +-- Name: merge_request_diffs fk_8483f3258f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_protected_branch_merge_access ON protected_branch_merge_access_levels USING btree (protected_branch_id); +ALTER TABLE ONLY public.merge_request_diffs + ADD CONSTRAINT fk_8483f3258f FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -CREATE INDEX index_protected_branch_merge_access_levels_on_group_id ON protected_branch_merge_access_levels USING btree (group_id); -CREATE INDEX index_protected_branch_merge_access_levels_on_user_id ON protected_branch_merge_access_levels USING btree (user_id); +-- +-- Name: requirements fk_85044baef0; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_protected_branch_push_access ON protected_branch_push_access_levels USING btree (protected_branch_id); +ALTER TABLE ONLY public.requirements + ADD CONSTRAINT fk_85044baef0 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -CREATE INDEX index_protected_branch_push_access_levels_on_group_id ON protected_branch_push_access_levels USING btree (group_id); -CREATE INDEX index_protected_branch_push_access_levels_on_user_id ON protected_branch_push_access_levels USING btree (user_id); +-- +-- Name: catalog_resource_components fk_85bb1d1e79; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_protected_branch_unprotect_access ON protected_branch_unprotect_access_levels USING btree (protected_branch_id); +ALTER TABLE ONLY public.catalog_resource_components + ADD CONSTRAINT fk_85bb1d1e79 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_protected_branch_unprotect_access_levels_on_group_id ON protected_branch_unprotect_access_levels USING btree (group_id); -CREATE INDEX index_protected_branch_unprotect_access_levels_on_user_id ON protected_branch_unprotect_access_levels USING btree (user_id); +-- +-- Name: ci_build_pending_states fk_861cd17da3_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_protected_branches_namespace_id ON protected_branches USING btree (namespace_id) WHERE (namespace_id IS NOT NULL); +ALTER TABLE ONLY public.ci_build_pending_states + ADD CONSTRAINT fk_861cd17da3_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -CREATE INDEX index_protected_branches_on_project_id ON protected_branches USING btree (project_id); -CREATE INDEX index_protected_environment_approval_rules_on_group_id ON protected_environment_approval_rules USING btree (group_id); +-- +-- Name: observability_logs_issues_connections fk_86c5fb94cc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_protected_environment_approval_rules_on_user_id ON protected_environment_approval_rules USING btree (user_id); +ALTER TABLE ONLY public.observability_logs_issues_connections + ADD CONSTRAINT fk_86c5fb94cc FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_protected_environment_deploy_access ON protected_environment_deploy_access_levels USING btree (protected_environment_id); -CREATE INDEX index_protected_environment_deploy_access_levels_on_group_id ON protected_environment_deploy_access_levels USING btree (group_id); +-- +-- Name: packages_package_files fk_86f0f182f8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_protected_environment_deploy_access_levels_on_user_id ON protected_environment_deploy_access_levels USING btree (user_id); +ALTER TABLE ONLY public.packages_package_files + ADD CONSTRAINT fk_86f0f182f8 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; -CREATE INDEX index_protected_environment_group_id_of_protected_environment_a ON protected_environment_approval_rules USING btree (protected_environment_group_id); -CREATE INDEX index_protected_environment_project_id_of_protected_environment ON protected_environment_approval_rules USING btree (protected_environment_project_id); +-- +-- Name: p_ci_builds fk_87f4cefcda_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_protected_environments_on_approval_count_and_created_at ON protected_environments USING btree (required_approval_count, created_at); +ALTER TABLE public.p_ci_builds + ADD CONSTRAINT fk_87f4cefcda_p FOREIGN KEY (upstream_pipeline_partition_id, upstream_pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -CREATE UNIQUE INDEX index_protected_environments_on_group_id_and_name ON protected_environments USING btree (group_id, name) WHERE (group_id IS NOT NULL); -CREATE UNIQUE INDEX index_protected_environments_on_project_id_and_name ON protected_environments USING btree (project_id, name); +-- +-- Name: ci_builds fk_87f4cefcda_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_protected_tag_create_access ON protected_tag_create_access_levels USING btree (protected_tag_id); +ALTER TABLE ONLY public.ci_builds + ADD CONSTRAINT fk_87f4cefcda_p_tmp FOREIGN KEY (upstream_pipeline_partition_id, upstream_pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -CREATE INDEX index_protected_tag_create_access_levels_on_deploy_key_id ON protected_tag_create_access_levels USING btree (deploy_key_id); -CREATE INDEX index_protected_tag_create_access_levels_on_group_id ON protected_tag_create_access_levels USING btree (group_id); +-- +-- Name: approval_group_rules_users fk_888a0df3b7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_protected_tag_create_access_levels_on_project_id ON protected_tag_create_access_levels USING btree (project_id); +ALTER TABLE ONLY public.approval_group_rules_users + ADD CONSTRAINT fk_888a0df3b7 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_protected_tag_create_access_levels_on_user_id ON protected_tag_create_access_levels USING btree (user_id); -CREATE UNIQUE INDEX index_protected_tags_on_project_id_and_name ON protected_tags USING btree (project_id, name); +-- +-- Name: vulnerability_findings_remediations fk_88a2923914; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_push_rules_on_is_sample ON push_rules USING btree (is_sample) WHERE is_sample; +ALTER TABLE ONLY public.vulnerability_findings_remediations + ADD CONSTRAINT fk_88a2923914 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_push_rules_on_organization_id ON push_rules USING btree (organization_id); -CREATE INDEX index_push_rules_on_project_id ON push_rules USING btree (project_id); +-- +-- Name: bulk_import_entities fk_88c725229f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_raw_usage_data_on_organization_id ON raw_usage_data USING btree (organization_id); +ALTER TABLE ONLY public.bulk_import_entities + ADD CONSTRAINT fk_88c725229f FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_raw_usage_data_on_recorded_at ON raw_usage_data USING btree (recorded_at); -CREATE UNIQUE INDEX index_redirect_routes_on_path ON redirect_routes USING btree (path); +-- +-- Name: requirements_management_test_reports fk_88f30752fc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_redirect_routes_on_path_unique_text_pattern_ops ON redirect_routes USING btree (lower((path)::text) varchar_pattern_ops); +ALTER TABLE ONLY public.requirements_management_test_reports + ADD CONSTRAINT fk_88f30752fc FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -CREATE INDEX index_redirect_routes_on_source_type_and_source_id ON redirect_routes USING btree (source_type, source_id); -CREATE INDEX index_related_epic_links_on_group_id ON related_epic_links USING btree (group_id); +-- +-- Name: issues fk_899c8f3231; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_related_epic_links_on_source_id ON related_epic_links USING btree (source_id); +ALTER TABLE ONLY public.issues + ADD CONSTRAINT fk_899c8f3231 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_related_epic_links_on_source_id_and_target_id ON related_epic_links USING btree (source_id, target_id); -CREATE INDEX index_related_epic_links_on_target_id ON related_epic_links USING btree (target_id); +-- +-- Name: ci_build_trace_chunks fk_89e29fa5ee_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_relation_import_trackers_on_project_id ON relation_import_trackers USING btree (project_id); +ALTER TABLE ONLY public.ci_build_trace_chunks + ADD CONSTRAINT fk_89e29fa5ee_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -CREATE INDEX index_release_links_on_project_id ON release_links USING btree (project_id); -CREATE UNIQUE INDEX index_release_links_on_release_id_and_name ON release_links USING btree (release_id, name); +-- +-- Name: catalog_resource_components fk_89fd1a3e33; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_release_links_on_release_id_and_url ON release_links USING btree (release_id, url); +ALTER TABLE ONLY public.catalog_resource_components + ADD CONSTRAINT fk_89fd1a3e33 FOREIGN KEY (version_id) REFERENCES public.catalog_resource_versions(id) ON DELETE CASCADE; -CREATE INDEX index_releases_on_author_id_id_created_at ON releases USING btree (author_id, id, created_at); -CREATE INDEX index_releases_on_project_id_and_released_at_and_id ON releases USING btree (project_id, released_at, id); +-- +-- Name: epic_issues fk_8a0fdc0d65; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_releases_on_project_id_and_updated_at_and_released_at ON releases USING btree (project_id, updated_at, released_at); +ALTER TABLE ONLY public.epic_issues + ADD CONSTRAINT fk_8a0fdc0d65 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_releases_on_project_id_id ON releases USING btree (project_id, id); -CREATE UNIQUE INDEX index_releases_on_project_tag_unique ON releases USING btree (project_id, tag); +-- +-- Name: protected_branch_merge_access_levels fk_8a3072ccb3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_releases_on_released_at ON releases USING btree (released_at); +ALTER TABLE ONLY public.protected_branch_merge_access_levels + ADD CONSTRAINT fk_8a3072ccb3 FOREIGN KEY (protected_branch_id) REFERENCES public.protected_branches(id) ON DELETE CASCADE; -CREATE INDEX index_remote_development_agent_configs_on_project_id ON remote_development_agent_configs USING btree (project_id); -CREATE UNIQUE INDEX index_remote_development_agent_configs_on_unique_agent_id ON remote_development_agent_configs USING btree (cluster_agent_id); +-- +-- Name: work_item_dates_sources fk_8a4948b668; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_remote_mirrors_on_last_successful_update_at ON remote_mirrors USING btree (last_successful_update_at); +ALTER TABLE ONLY public.work_item_dates_sources + ADD CONSTRAINT fk_8a4948b668 FOREIGN KEY (start_date_sourcing_work_item_id) REFERENCES public.issues(id) ON DELETE SET NULL; -CREATE INDEX index_remote_mirrors_on_project_id ON remote_mirrors USING btree (project_id); -CREATE INDEX index_required_code_owners_sections_on_protected_branch_id ON required_code_owners_sections USING btree (protected_branch_id); +-- +-- Name: bulk_import_exports fk_8c6f33cebe; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_requirements_management_test_reports_on_author_id ON requirements_management_test_reports USING btree (author_id); +ALTER TABLE ONLY public.bulk_import_exports + ADD CONSTRAINT fk_8c6f33cebe FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_requirements_management_test_reports_on_build_id ON requirements_management_test_reports USING btree (build_id); -CREATE INDEX index_requirements_management_test_reports_on_issue_id ON requirements_management_test_reports USING btree (issue_id); +-- +-- Name: raw_usage_data fk_8e21125854; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_requirements_on_issue_id ON requirements USING btree (issue_id); +ALTER TABLE ONLY public.raw_usage_data + ADD CONSTRAINT fk_8e21125854 FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; -CREATE INDEX index_requirements_on_project_id ON requirements USING btree (project_id); -CREATE UNIQUE INDEX index_requirements_on_project_id_and_iid ON requirements USING btree (project_id, iid) WHERE (project_id IS NOT NULL); +-- +-- Name: releases fk_8e4456f90f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_requirements_project_id_user_id_id_and_target_type ON todos USING btree (project_id, user_id, id, target_type); +ALTER TABLE ONLY public.releases + ADD CONSTRAINT fk_8e4456f90f FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_requirements_user_id_and_target_type ON todos USING btree (user_id, target_type); -CREATE INDEX index_resource_iteration_events_on_issue_id ON resource_iteration_events USING btree (issue_id); +-- +-- Name: protected_tags fk_8e4af87648; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_resource_iteration_events_on_iteration_id ON resource_iteration_events USING btree (iteration_id); +ALTER TABLE ONLY public.protected_tags + ADD CONSTRAINT fk_8e4af87648 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_resource_iteration_events_on_iteration_id_and_add_action ON resource_iteration_events USING btree (iteration_id) WHERE (action = 1); -CREATE INDEX index_resource_iteration_events_on_merge_request_id ON resource_iteration_events USING btree (merge_request_id); +-- +-- Name: observability_metrics_issues_connections fk_8e765678ba; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_resource_iteration_events_on_user_id ON resource_iteration_events USING btree (user_id); +ALTER TABLE ONLY public.observability_metrics_issues_connections + ADD CONSTRAINT fk_8e765678ba FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_resource_label_events_issue_id_label_id_action ON resource_label_events USING btree (issue_id, label_id, action); -CREATE INDEX index_resource_label_events_on_epic_id ON resource_label_events USING btree (epic_id); +-- +-- Name: audit_events_streaming_group_namespace_filters fk_8ed182d7da; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_resource_label_events_on_label_id_and_action ON resource_label_events USING btree (label_id, action); +ALTER TABLE ONLY public.audit_events_streaming_group_namespace_filters + ADD CONSTRAINT fk_8ed182d7da FOREIGN KEY (external_streaming_destination_id) REFERENCES public.audit_events_group_external_streaming_destinations(id) ON DELETE CASCADE; -CREATE INDEX index_resource_label_events_on_merge_request_id_label_id_action ON resource_label_events USING btree (merge_request_id, label_id, action); -CREATE INDEX index_resource_label_events_on_user_id ON resource_label_events USING btree (user_id); +-- +-- Name: compliance_requirements fk_8f5fb77fc7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_resource_link_events_on_child_work_item_id ON resource_link_events USING btree (child_work_item_id); +ALTER TABLE ONLY public.compliance_requirements + ADD CONSTRAINT fk_8f5fb77fc7 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_resource_link_events_on_issue_id ON resource_link_events USING btree (issue_id); -CREATE INDEX index_resource_link_events_on_user_id ON resource_link_events USING btree (user_id); +-- +-- Name: todos fk_91d1f47b13; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_resource_milestone_events_created_at ON resource_milestone_events USING btree (created_at); +ALTER TABLE ONLY public.todos + ADD CONSTRAINT fk_91d1f47b13 FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; -CREATE INDEX index_resource_milestone_events_on_issue_id ON resource_milestone_events USING btree (issue_id); -CREATE INDEX index_resource_milestone_events_on_merge_request_id ON resource_milestone_events USING btree (merge_request_id); +-- +-- Name: packages_debian_group_architectures fk_92714bcab1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_resource_milestone_events_on_milestone_id ON resource_milestone_events USING btree (milestone_id); +ALTER TABLE ONLY public.packages_debian_group_architectures + ADD CONSTRAINT fk_92714bcab1 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_resource_milestone_events_on_milestone_id_and_add_action ON resource_milestone_events USING btree (milestone_id) WHERE (action = 1); -CREATE INDEX index_resource_milestone_events_on_user_id ON resource_milestone_events USING btree (user_id); +-- +-- Name: workspaces_agent_configs fk_94660551c8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_resource_state_events_on_epic_id ON resource_state_events USING btree (epic_id); +ALTER TABLE ONLY public.workspaces_agent_configs + ADD CONSTRAINT fk_94660551c8 FOREIGN KEY (cluster_agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; -CREATE INDEX index_resource_state_events_on_issue_id_and_created_at ON resource_state_events USING btree (issue_id, created_at); -CREATE INDEX index_resource_state_events_on_merge_request_id ON resource_state_events USING btree (merge_request_id); +-- +-- Name: dast_site_profiles_builds fk_94e80df60e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_resource_state_events_on_source_merge_request_id ON resource_state_events USING btree (source_merge_request_id); +ALTER TABLE ONLY public.dast_site_profiles_builds + ADD CONSTRAINT fk_94e80df60e FOREIGN KEY (dast_site_profile_id) REFERENCES public.dast_site_profiles(id) ON DELETE CASCADE; -CREATE INDEX index_resource_state_events_on_user_id ON resource_state_events USING btree (user_id); -CREATE INDEX index_resource_weight_events_on_issue_id_and_created_at ON resource_weight_events USING btree (issue_id, created_at); +-- +-- Name: vulnerability_feedback fk_94f7c8a81e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_resource_weight_events_on_issue_id_and_weight ON resource_weight_events USING btree (issue_id, weight); +ALTER TABLE ONLY public.vulnerability_feedback + ADD CONSTRAINT fk_94f7c8a81e FOREIGN KEY (comment_author_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_resource_weight_events_on_user_id ON resource_weight_events USING btree (user_id); -CREATE INDEX index_reviews_on_author_id ON reviews USING btree (author_id); +-- +-- Name: milestones fk_95650a40d4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_reviews_on_merge_request_id ON reviews USING btree (merge_request_id); +ALTER TABLE ONLY public.milestones + ADD CONSTRAINT fk_95650a40d4 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_reviews_on_project_id ON reviews USING btree (project_id); -CREATE INDEX index_route_on_name_trigram ON routes USING gin (name gin_trgm_ops); +-- +-- Name: vulnerabilities fk_959d40ad0a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_routes_on_namespace_id ON routes USING btree (namespace_id); +ALTER TABLE ONLY public.vulnerabilities + ADD CONSTRAINT fk_959d40ad0a FOREIGN KEY (confirmed_by_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_routes_on_path ON routes USING btree (path); -CREATE INDEX index_routes_on_path_text_pattern_ops ON routes USING btree (path varchar_pattern_ops); +-- +-- Name: boards_epic_list_user_preferences fk_95eac55851; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_routes_on_path_trigram ON routes USING gin (path gin_trgm_ops); +ALTER TABLE ONLY public.boards_epic_list_user_preferences + ADD CONSTRAINT fk_95eac55851 FOREIGN KEY (epic_list_id) REFERENCES public.boards_epic_lists(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_routes_on_source_type_and_source_id ON routes USING btree (source_type, source_id); -CREATE UNIQUE INDEX index_saml_group_links_on_group_id_and_saml_group_name ON saml_group_links USING btree (group_id, saml_group_name); +-- +-- Name: issues fk_96b1dd429c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_saml_group_links_on_member_role_id ON saml_group_links USING btree (member_role_id); +ALTER TABLE ONLY public.issues + ADD CONSTRAINT fk_96b1dd429c FOREIGN KEY (milestone_id) REFERENCES public.milestones(id) ON DELETE SET NULL; -CREATE INDEX index_saml_providers_on_group_id ON saml_providers USING btree (group_id); -CREATE INDEX index_saml_providers_on_member_role_id ON saml_providers USING btree (member_role_id); +-- +-- Name: agent_user_access_group_authorizations fk_97ce8e8284; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_saved_replies_on_name_text_pattern_ops ON saved_replies USING btree (user_id, name text_pattern_ops); +ALTER TABLE ONLY public.agent_user_access_group_authorizations + ADD CONSTRAINT fk_97ce8e8284 FOREIGN KEY (agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_sbom_component_versions_on_component_id_and_version ON sbom_component_versions USING btree (component_id, version); -CREATE UNIQUE INDEX index_sbom_components_on_component_type_name_and_purl_type ON sbom_components USING btree (name, purl_type, component_type); +-- +-- Name: vulnerability_occurrences fk_97ffe77653; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_sbom_components_on_organization_id ON sbom_components USING btree (organization_id); +ALTER TABLE ONLY public.vulnerability_occurrences + ADD CONSTRAINT fk_97ffe77653 FOREIGN KEY (vulnerability_id) REFERENCES public.vulnerabilities(id) ON DELETE SET NULL; -CREATE INDEX index_sbom_occurr_on_project_id_and_component_version_id_and_id ON sbom_occurrences USING btree (project_id, component_version_id, id); -CREATE INDEX index_sbom_occurrences_on_component_id_and_id ON sbom_occurrences USING btree (component_id, id); +-- +-- Name: protected_branch_merge_access_levels fk_98f3d044fe; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_sbom_occurrences_on_component_version_id ON sbom_occurrences USING btree (component_version_id); +ALTER TABLE ONLY public.protected_branch_merge_access_levels + ADD CONSTRAINT fk_98f3d044fe FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_sbom_occurrences_on_highest_severity ON sbom_occurrences USING btree (project_id, highest_severity DESC NULLS LAST); -CREATE INDEX index_sbom_occurrences_on_licenses_spdx_identifier ON sbom_occurrences USING btree (project_id, ((licenses #> '{0,spdx_identifier}'::text[])), ((licenses #> '{1,spdx_identifier}'::text[]))); +-- +-- Name: notes fk_99e097b079; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_sbom_occurrences_on_pipeline_id ON sbom_occurrences USING btree (pipeline_id); +ALTER TABLE ONLY public.notes + ADD CONSTRAINT fk_99e097b079 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_sbom_occurrences_on_project_id_and_component_id_and_id ON sbom_occurrences USING btree (project_id, component_id, id); -CREATE INDEX index_sbom_occurrences_on_project_id_and_id ON sbom_occurrences USING btree (project_id, id); +-- +-- Name: approval_group_rules_users fk_9a4b673183; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_sbom_occurrences_on_project_id_and_package_manager ON sbom_occurrences USING btree (project_id, package_manager); +ALTER TABLE ONLY public.approval_group_rules_users + ADD CONSTRAINT fk_9a4b673183 FOREIGN KEY (approval_group_rule_id) REFERENCES public.approval_group_rules(id) ON DELETE CASCADE; -CREATE INDEX index_sbom_occurrences_on_source_id ON sbom_occurrences USING btree (source_id); -CREATE INDEX index_sbom_occurrences_on_traversal_ids_and_id ON sbom_occurrences USING btree (traversal_ids, id) WHERE (archived = false); +-- +-- Name: import_failures fk_9a9b9ba21c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_sbom_occurrences_on_uuid ON sbom_occurrences USING btree (uuid); +ALTER TABLE ONLY public.import_failures + ADD CONSTRAINT fk_9a9b9ba21c FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_sbom_occurrences_vulnerabilities_on_project_id ON sbom_occurrences_vulnerabilities USING btree (project_id); -CREATE INDEX index_sbom_occurrences_vulnerabilities_on_vulnerability_id ON sbom_occurrences_vulnerabilities USING btree (vulnerability_id); +-- +-- Name: deploy_tokens fk_9b0d2e92a6; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_sbom_source_packages_on_name_and_purl_type_and_org_id ON sbom_source_packages USING btree (name, purl_type, organization_id); +ALTER TABLE ONLY public.deploy_tokens + ADD CONSTRAINT fk_9b0d2e92a6 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_sbom_source_packages_on_organization_id ON sbom_source_packages USING btree (organization_id); -CREATE INDEX index_sbom_source_packages_on_source_package_id_and_id ON sbom_occurrences USING btree (source_package_id, id); +-- +-- Name: milestones fk_9bd0a0c791; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_sbom_sources_on_organization_id ON sbom_sources USING btree (organization_id); +ALTER TABLE ONLY public.milestones + ADD CONSTRAINT fk_9bd0a0c791 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_sbom_sources_on_source_type_and_source_and_org_id ON sbom_sources USING btree (source_type, source, organization_id); -CREATE INDEX index_scan_execution_policy_rules_on_policy_mgmt_project_id ON scan_execution_policy_rules USING btree (security_policy_management_project_id); +-- +-- Name: work_item_parent_links fk_9be5ef5f80; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_scan_execution_policy_rules_on_unique_policy_rule_index ON scan_execution_policy_rules USING btree (security_policy_id, rule_index); +ALTER TABLE ONLY public.work_item_parent_links + ADD CONSTRAINT fk_9be5ef5f80 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_scan_result_policies_on_position_in_configuration ON scan_result_policies USING btree (security_orchestration_policy_configuration_id, project_id, orchestration_policy_idx, rule_idx); -CREATE INDEX index_scan_result_policies_on_project_id ON scan_result_policies USING btree (project_id); +-- +-- Name: agent_activity_events fk_9c07afa098; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_scan_result_policy_violations_on_approval_policy_rule_id ON scan_result_policy_violations USING btree (approval_policy_rule_id); +ALTER TABLE ONLY public.agent_activity_events + ADD CONSTRAINT fk_9c07afa098 FOREIGN KEY (agent_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_scan_result_policy_violations_on_merge_request_id ON scan_result_policy_violations USING btree (merge_request_id); -CREATE UNIQUE INDEX index_scan_result_policy_violations_on_policy_and_merge_request ON scan_result_policy_violations USING btree (scan_result_policy_id, merge_request_id); +-- +-- Name: issues fk_9c4516d665; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_scan_result_policy_violations_on_project_id ON scan_result_policy_violations USING btree (project_id); +ALTER TABLE ONLY public.issues + ADD CONSTRAINT fk_9c4516d665 FOREIGN KEY (duplicated_to_id) REFERENCES public.issues(id) ON DELETE SET NULL; -CREATE INDEX index_scim_identities_on_group_id ON scim_identities USING btree (group_id); -CREATE UNIQUE INDEX index_scim_identities_on_lower_extern_uid_and_group_id ON scim_identities USING btree (lower((extern_uid)::text), group_id); +-- +-- Name: epics fk_9d480c64b2; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_scim_identities_on_user_id_and_group_id ON scim_identities USING btree (user_id, group_id); +ALTER TABLE ONLY public.epics + ADD CONSTRAINT fk_9d480c64b2 FOREIGN KEY (start_date_sourcing_epic_id) REFERENCES public.epics(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_scim_oauth_access_tokens_on_group_id_and_token_encrypted ON scim_oauth_access_tokens USING btree (group_id, token_encrypted); -CREATE UNIQUE INDEX index_search_indices_on_id_and_type ON search_indices USING btree (id, type); +-- +-- Name: user_group_callouts fk_9dc8b9d4b2; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_search_indices_on_type_and_bucket_number ON search_indices USING btree (type, bucket_number); +ALTER TABLE ONLY public.user_group_callouts + ADD CONSTRAINT fk_9dc8b9d4b2 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_search_indices_on_type_and_path ON search_indices USING btree (type, path); -CREATE INDEX index_search_namespace_index_assignments_on_namespace_id ON search_namespace_index_assignments USING btree (namespace_id); +-- +-- Name: ci_unit_test_failures fk_9e0fc58930_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_search_namespace_index_assignments_on_search_index_id ON search_namespace_index_assignments USING btree (search_index_id); +ALTER TABLE ONLY public.ci_unit_test_failures + ADD CONSTRAINT fk_9e0fc58930_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -CREATE UNIQUE INDEX index_search_namespace_index_assignments_uniqueness_index_type ON search_namespace_index_assignments USING btree (namespace_id, index_type); -CREATE UNIQUE INDEX index_search_namespace_index_assignments_uniqueness_on_index_id ON search_namespace_index_assignments USING btree (namespace_id, search_index_id); +-- +-- Name: protected_environments fk_9e112565b7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX p_ci_builds_user_id_name_created_at_idx ON ONLY p_ci_builds USING btree (user_id, name, created_at) WHERE (((type)::text = 'Ci::Build'::text) AND ((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('license_scanning'::character varying)::text, ('sast'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('apifuzzer_fuzz'::character varying)::text, ('apifuzzer_fuzz_dnd'::character varying)::text, ('secret_detection'::character varying)::text]))); +ALTER TABLE ONLY public.protected_environments + ADD CONSTRAINT fk_9e112565b7 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_secure_ci_builds_on_user_id_name_created_at ON ci_builds USING btree (user_id, name, created_at) WHERE (((type)::text = 'Ci::Build'::text) AND ((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('license_scanning'::character varying)::text, ('sast'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('apifuzzer_fuzz'::character varying)::text, ('apifuzzer_fuzz_dnd'::character varying)::text, ('secret_detection'::character varying)::text]))); -CREATE INDEX p_ci_builds_name_id_idx ON ONLY p_ci_builds USING btree (name, id) WHERE (((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('sast'::character varying)::text, ('secret_detection'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('license_scanning'::character varying)::text, ('apifuzzer_fuzz'::character varying)::text, ('apifuzzer_fuzz_dnd'::character varying)::text])) AND ((type)::text = 'Ci::Build'::text)); +-- +-- Name: alert_management_alerts fk_9e49e5c2b7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_security_ci_builds_on_name_and_id_parser_features ON ci_builds USING btree (name, id) WHERE (((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('sast'::character varying)::text, ('secret_detection'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('license_scanning'::character varying)::text, ('apifuzzer_fuzz'::character varying)::text, ('apifuzzer_fuzz_dnd'::character varying)::text])) AND ((type)::text = 'Ci::Build'::text)); +ALTER TABLE ONLY public.alert_management_alerts + ADD CONSTRAINT fk_9e49e5c2b7 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_security_orchestration_policy_rule_schedules_on_namespace ON security_orchestration_policy_rule_schedules USING btree (namespace_id); -CREATE INDEX index_security_orchestration_policy_rule_schedules_on_project_i ON security_orchestration_policy_rule_schedules USING btree (project_id); +-- +-- Name: approval_policy_rule_project_links fk_9ed5cf0600; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_security_policies_on_policy_management_project_id ON security_policies USING btree (security_policy_management_project_id); +ALTER TABLE ONLY public.approval_policy_rule_project_links + ADD CONSTRAINT fk_9ed5cf0600 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_security_policies_on_unique_config_type_policy_index ON security_policies USING btree (security_orchestration_policy_configuration_id, type, policy_index); -CREATE UNIQUE INDEX index_security_policy_project_links_on_project_and_policy ON security_policy_project_links USING btree (security_policy_id, project_id); +-- +-- Name: protected_branch_push_access_levels fk_9ffc86a3d9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_security_policy_project_links_on_project_id ON security_policy_project_links USING btree (project_id); +ALTER TABLE ONLY public.protected_branch_push_access_levels + ADD CONSTRAINT fk_9ffc86a3d9 FOREIGN KEY (protected_branch_id) REFERENCES public.protected_branches(id) ON DELETE CASCADE; -CREATE INDEX index_security_policy_requirements_on_compliance_requirement_id ON security_policy_requirements USING btree (compliance_requirement_id); -CREATE INDEX index_security_policy_requirements_on_namespace_id ON security_policy_requirements USING btree (namespace_id); +-- +-- Name: deployment_merge_requests fk_a064ff4453; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_security_scans_for_non_purged_records ON security_scans USING btree (created_at, id) WHERE (status <> 6); +ALTER TABLE ONLY public.deployment_merge_requests + ADD CONSTRAINT fk_a064ff4453 FOREIGN KEY (environment_id) REFERENCES public.environments(id) ON DELETE CASCADE; -CREATE INDEX index_security_scans_on_created_at ON security_scans USING btree (created_at); -CREATE INDEX index_security_scans_on_date_created_at_and_id ON security_scans USING btree (date(timezone('UTC'::text, created_at)), id); +-- +-- Name: issues fk_a194299be1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_security_scans_on_length_of_errors ON security_scans USING btree (pipeline_id, jsonb_array_length(COALESCE((info -> 'errors'::text), '[]'::jsonb))); +ALTER TABLE ONLY public.issues + ADD CONSTRAINT fk_a194299be1 FOREIGN KEY (moved_to_id) REFERENCES public.issues(id) ON DELETE SET NULL; -CREATE INDEX index_security_scans_on_length_of_warnings ON security_scans USING btree (pipeline_id, jsonb_array_length(COALESCE((info -> 'warnings'::text), '[]'::jsonb))); -CREATE INDEX index_security_scans_on_pipeline_id_and_scan_type ON security_scans USING btree (pipeline_id, scan_type); +-- +-- Name: audit_events_streaming_group_namespace_filters fk_a1a4486a96; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_security_scans_on_project_id ON security_scans USING btree (project_id); +ALTER TABLE ONLY public.audit_events_streaming_group_namespace_filters + ADD CONSTRAINT fk_a1a4486a96 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_security_training_providers_on_unique_name ON security_training_providers USING btree (name); -CREATE INDEX index_security_trainings_on_project_id ON security_trainings USING btree (project_id); +-- +-- Name: ml_candidates fk_a1d5f1bc45; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_security_trainings_on_provider_id ON security_trainings USING btree (provider_id); +ALTER TABLE ONLY public.ml_candidates + ADD CONSTRAINT fk_a1d5f1bc45 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_security_trainings_on_unique_project_id ON security_trainings USING btree (project_id) WHERE (is_primary IS TRUE); -CREATE INDEX index_self_managed_prometheus_alert_events_on_environment_id ON self_managed_prometheus_alert_events USING btree (environment_id); +-- +-- Name: subscription_add_on_purchases fk_a1db288990; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_sent_notifications_on_issue_email_participant_id ON sent_notifications USING btree (issue_email_participant_id); +ALTER TABLE ONLY public.subscription_add_on_purchases + ADD CONSTRAINT fk_a1db288990 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_sent_notifications_on_noteable_type_noteable_id ON sent_notifications USING btree (noteable_id) WHERE ((noteable_type)::text = 'Issue'::text); -CREATE UNIQUE INDEX index_sent_notifications_on_reply_key ON sent_notifications USING btree (reply_key); +-- +-- Name: p_ci_builds fk_a2141b1522_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_sentry_issues_on_issue_id ON sentry_issues USING btree (issue_id); +ALTER TABLE public.p_ci_builds + ADD CONSTRAINT fk_a2141b1522_p FOREIGN KEY (auto_canceled_by_partition_id, auto_canceled_by_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL; -CREATE INDEX index_sentry_issues_on_sentry_issue_identifier ON sentry_issues USING btree (sentry_issue_identifier); -CREATE INDEX index_service_desk_custom_email_verifications_on_triggerer_id ON service_desk_custom_email_verifications USING btree (triggerer_id); +-- +-- Name: ci_builds fk_a2141b1522_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_service_desk_enabled_projects_on_id_creator_id_created_at ON projects USING btree (id, creator_id, created_at) WHERE (service_desk_enabled = true); +ALTER TABLE ONLY public.ci_builds + ADD CONSTRAINT fk_a2141b1522_p_tmp FOREIGN KEY (auto_canceled_by_partition_id, auto_canceled_by_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL NOT VALID; -CREATE INDEX index_service_desk_settings_on_custom_email_enabled ON service_desk_settings USING btree (custom_email_enabled); -CREATE INDEX index_service_desk_settings_on_file_template_project_id ON service_desk_settings USING btree (file_template_project_id); +-- +-- Name: protected_environment_approval_rules fk_a3cc825836; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_shards_on_name ON shards USING btree (name); +ALTER TABLE ONLY public.protected_environment_approval_rules + ADD CONSTRAINT fk_a3cc825836 FOREIGN KEY (protected_environment_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_site_profile_secret_variables_on_site_profile_id_and_key ON dast_site_profile_secret_variables USING btree (dast_site_profile_id, key); -CREATE UNIQUE INDEX index_slack_api_scopes_on_name ON slack_api_scopes USING btree (name); +-- +-- Name: merge_request_assignment_events fk_a437da318b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_slack_api_scopes_on_name_and_integration ON slack_integrations_scopes USING btree (slack_integration_id, slack_api_scope_id); +ALTER TABLE ONLY public.merge_request_assignment_events + ADD CONSTRAINT fk_a437da318b FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_slack_integrations_on_integration_id ON slack_integrations USING btree (integration_id); -CREATE UNIQUE INDEX index_slack_integrations_on_team_id_and_alias ON slack_integrations USING btree (team_id, alias); +-- +-- Name: bulk_import_entities fk_a44ff95be5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_smartcard_identities_on_subject_and_issuer ON smartcard_identities USING btree (subject, issuer); +ALTER TABLE ONLY public.bulk_import_entities + ADD CONSTRAINT fk_a44ff95be5 FOREIGN KEY (parent_id) REFERENCES public.bulk_import_entities(id) ON DELETE CASCADE; -CREATE INDEX index_smartcard_identities_on_user_id ON smartcard_identities USING btree (user_id); -CREATE INDEX index_snippet_on_id_and_project_id ON snippets USING btree (id, project_id); +-- +-- Name: namespace_import_users fk_a49233ca5d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_snippet_repositories_failed_verification ON snippet_repositories USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +ALTER TABLE ONLY public.namespace_import_users + ADD CONSTRAINT fk_a49233ca5d FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_snippet_repositories_needs_verification ON snippet_repositories USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); -CREATE UNIQUE INDEX index_snippet_repositories_on_disk_path ON snippet_repositories USING btree (disk_path); +-- +-- Name: abuse_report_user_mentions fk_a4bd02b7df; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_snippet_repositories_on_shard_id ON snippet_repositories USING btree (shard_id); +ALTER TABLE ONLY public.abuse_report_user_mentions + ADD CONSTRAINT fk_a4bd02b7df FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; -CREATE INDEX index_snippet_repositories_pending_verification ON snippet_repositories USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); -CREATE INDEX index_snippet_repositories_verification_state ON snippet_repositories USING btree (verification_state); +-- +-- Name: security_orchestration_policy_configurations fk_a50430b375; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_snippet_repository_storage_moves_on_snippet_id ON snippet_repository_storage_moves USING btree (snippet_id); +ALTER TABLE ONLY public.security_orchestration_policy_configurations + ADD CONSTRAINT fk_a50430b375 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_snippet_repository_storage_moves_on_state ON snippet_repository_storage_moves USING btree (state) WHERE (state = ANY (ARRAY[2, 3])); -CREATE UNIQUE INDEX index_snippet_user_mentions_on_note_id ON snippet_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); +-- +-- Name: operations_strategies fk_a542e10c31; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_snippets_on_author_id ON snippets USING btree (author_id); +ALTER TABLE ONLY public.operations_strategies + ADD CONSTRAINT fk_a542e10c31 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_snippets_on_content_trigram ON snippets USING gin (content gin_trgm_ops); -CREATE INDEX index_snippets_on_created_at ON snippets USING btree (created_at); +-- +-- Name: lfs_objects_projects fk_a56e02279c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_snippets_on_description_trigram ON snippets USING gin (description gin_trgm_ops); +ALTER TABLE ONLY public.lfs_objects_projects + ADD CONSTRAINT fk_a56e02279c FOREIGN KEY (lfs_object_id) REFERENCES public.lfs_objects(id) ON DELETE RESTRICT NOT VALID; -CREATE INDEX index_snippets_on_file_name_trigram ON snippets USING gin (file_name gin_trgm_ops); -CREATE INDEX index_snippets_on_id_and_created_at ON snippets USING btree (id, created_at); +-- +-- Name: merge_requests fk_a6963e8447; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_snippets_on_id_and_type ON snippets USING btree (id, type); +ALTER TABLE ONLY public.merge_requests + ADD CONSTRAINT fk_a6963e8447 FOREIGN KEY (target_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_snippets_on_organization_id ON snippets USING btree (organization_id); -CREATE INDEX index_snippets_on_project_id_and_title ON snippets USING btree (project_id, title); +-- +-- Name: merge_requests_closing_issues fk_a8703820ae; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_snippets_on_project_id_and_visibility_level ON snippets USING btree (project_id, visibility_level); +ALTER TABLE ONLY public.merge_requests_closing_issues + ADD CONSTRAINT fk_a8703820ae FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_snippets_on_title_trigram ON snippets USING gin (title gin_trgm_ops); -CREATE INDEX index_snippets_on_updated_at ON snippets USING btree (updated_at); +-- +-- Name: ssh_signatures fk_aa1efbe865; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_snippets_on_visibility_level_and_secret ON snippets USING btree (visibility_level, secret); +ALTER TABLE ONLY public.ssh_signatures + ADD CONSTRAINT fk_aa1efbe865 FOREIGN KEY (key_id) REFERENCES public.keys(id) ON DELETE SET NULL; -CREATE INDEX index_software_license_policies_on_approval_policy_rule_id ON software_license_policies USING btree (approval_policy_rule_id); -CREATE INDEX index_software_license_policies_on_scan_result_policy_id ON software_license_policies USING btree (scan_result_policy_id); +-- +-- Name: epics fk_aa5798e761; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_software_license_policies_on_software_license_id ON software_license_policies USING btree (software_license_id); +ALTER TABLE ONLY public.epics + ADD CONSTRAINT fk_aa5798e761 FOREIGN KEY (closed_by_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_software_licenses_on_spdx_identifier ON software_licenses USING btree (spdx_identifier); -CREATE UNIQUE INDEX index_software_licenses_on_unique_name ON software_licenses USING btree (name); +-- +-- Name: dast_profiles fk_aa76ef30e9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_sop_configurations_project_id_policy_project_id ON security_orchestration_policy_configurations USING btree (security_policy_management_project_id, project_id); +ALTER TABLE ONLY public.dast_profiles + ADD CONSTRAINT fk_aa76ef30e9 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_sop_schedules_on_sop_configuration_id ON security_orchestration_policy_rule_schedules USING btree (security_orchestration_policy_configuration_id); -CREATE INDEX index_sop_schedules_on_user_id ON security_orchestration_policy_rule_schedules USING btree (user_id); +-- +-- Name: alert_management_alerts fk_aad61aedca; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_spam_logs_on_user_id ON spam_logs USING btree (user_id); +ALTER TABLE ONLY public.alert_management_alerts + ADD CONSTRAINT fk_aad61aedca FOREIGN KEY (environment_id) REFERENCES public.environments(id) ON DELETE SET NULL; -CREATE INDEX index_sprints_iterations_cadence_id ON sprints USING btree (iterations_cadence_id); -CREATE INDEX index_sprints_on_description_trigram ON sprints USING gin (description gin_trgm_ops); +-- +-- Name: identities fk_aade90f0fc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_sprints_on_due_date ON sprints USING btree (due_date); +ALTER TABLE ONLY public.identities + ADD CONSTRAINT fk_aade90f0fc FOREIGN KEY (saml_provider_id) REFERENCES public.saml_providers(id) ON DELETE CASCADE; -CREATE INDEX index_sprints_on_group_id ON sprints USING btree (group_id); -CREATE INDEX index_sprints_on_title ON sprints USING btree (title); +-- +-- Name: boards fk_ab0a250ff6; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_sprints_on_title_trigram ON sprints USING gin (title gin_trgm_ops); +ALTER TABLE ONLY public.boards + ADD CONSTRAINT fk_ab0a250ff6 FOREIGN KEY (iteration_cadence_id) REFERENCES public.iterations_cadences(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_ssh_signatures_on_commit_sha ON ssh_signatures USING btree (commit_sha); -CREATE INDEX index_ssh_signatures_on_key_id ON ssh_signatures USING btree (key_id); +-- +-- Name: vulnerability_external_issue_links fk_abd093bb21; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_ssh_signatures_on_project_id ON ssh_signatures USING btree (project_id); +ALTER TABLE ONLY public.vulnerability_external_issue_links + ADD CONSTRAINT fk_abd093bb21 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_ssh_signatures_on_user_id ON ssh_signatures USING btree (user_id); -CREATE INDEX index_status_check_responses_on_external_approval_rule_id ON status_check_responses USING btree (external_approval_rule_id); +-- +-- Name: audit_events_streaming_http_instance_namespace_filters fk_abe44125bc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_status_check_responses_on_external_status_check_id ON status_check_responses USING btree (external_status_check_id); +ALTER TABLE ONLY public.audit_events_streaming_http_instance_namespace_filters + ADD CONSTRAINT fk_abe44125bc FOREIGN KEY (audit_events_instance_external_audit_event_destination_id) REFERENCES public.audit_events_instance_external_audit_event_destinations(id) ON DELETE CASCADE; -CREATE INDEX index_status_check_responses_on_merge_request_id ON status_check_responses USING btree (merge_request_id); -CREATE INDEX index_status_check_responses_on_project_id ON status_check_responses USING btree (project_id); +-- +-- Name: audit_events_streaming_instance_namespace_filters fk_ac20a85a68; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_status_page_published_incidents_on_issue_id ON status_page_published_incidents USING btree (issue_id); +ALTER TABLE ONLY public.audit_events_streaming_instance_namespace_filters + ADD CONSTRAINT fk_ac20a85a68 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_status_page_settings_on_project_id ON status_page_settings USING btree (project_id); -CREATE INDEX index_subscription_add_on_purchases_on_namespace_id ON subscription_add_on_purchases USING btree (namespace_id); +-- +-- Name: merge_requests fk_ad525e1f87; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_subscription_add_on_purchases_on_subscription_add_on_id ON subscription_add_on_purchases USING btree (subscription_add_on_id); +ALTER TABLE ONLY public.merge_requests + ADD CONSTRAINT fk_ad525e1f87 FOREIGN KEY (merge_user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_subscription_add_ons_on_name ON subscription_add_ons USING btree (name); -CREATE INDEX index_subscription_addon_purchases_on_expires_on ON subscription_add_on_purchases USING btree (expires_on); +-- +-- Name: ml_experiments fk_ad89c59858; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_subscription_user_add_on_assignments_on_organization_id ON subscription_user_add_on_assignments USING btree (organization_id); +ALTER TABLE ONLY public.ml_experiments + ADD CONSTRAINT fk_ad89c59858 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_subscription_user_add_on_assignments_on_user_id ON subscription_user_add_on_assignments USING btree (user_id); -CREATE INDEX index_subscriptions_on_project_id ON subscriptions USING btree (project_id); +-- +-- Name: packages_npm_metadata_caches fk_ada23b1d30; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_subscriptions_on_subscribable_and_user_id_and_project_id ON subscriptions USING btree (subscribable_id, subscribable_type, user_id, project_id); +ALTER TABLE ONLY public.packages_npm_metadata_caches + ADD CONSTRAINT fk_ada23b1d30 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE SET NULL; -CREATE INDEX index_successful_authentication_events_for_metrics ON authentication_events USING btree (user_id, provider, created_at) WHERE (result = 1); -CREATE UNIQUE INDEX index_suggestions_on_note_id_and_relative_order ON suggestions USING btree (note_id, relative_order); +-- +-- Name: merge_request_metrics fk_ae440388cc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_system_access_microsoft_applications_on_namespace_id ON system_access_microsoft_applications USING btree (namespace_id); +ALTER TABLE ONLY public.merge_request_metrics + ADD CONSTRAINT fk_ae440388cc FOREIGN KEY (latest_closed_by_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_system_note_metadata_on_description_version_id ON system_note_metadata USING btree (description_version_id) WHERE (description_version_id IS NOT NULL); -CREATE UNIQUE INDEX index_system_note_metadata_on_note_id ON system_note_metadata USING btree (note_id); +-- +-- Name: vulnerability_reads fk_aee839e611; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_taggings_on_tag_id ON taggings USING btree (tag_id); +ALTER TABLE ONLY public.vulnerability_reads + ADD CONSTRAINT fk_aee839e611 FOREIGN KEY (casted_cluster_agent_id) REFERENCES public.cluster_agents(id) ON DELETE SET NULL; -CREATE INDEX index_taggings_on_taggable_id_and_taggable_type_and_context ON taggings USING btree (taggable_id, taggable_type, context); -CREATE UNIQUE INDEX index_tags_on_name ON tags USING btree (name); +-- +-- Name: dast_profile_schedules fk_aef03d62e5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_tags_on_name_trigram ON tags USING gin (name gin_trgm_ops); +ALTER TABLE ONLY public.dast_profile_schedules + ADD CONSTRAINT fk_aef03d62e5 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_target_branch_rules_on_project_id ON target_branch_rules USING btree (project_id); -CREATE INDEX index_term_agreements_on_term_id ON term_agreements USING btree (term_id); +-- +-- Name: analytics_cycle_analytics_group_stages fk_analytics_cycle_analytics_group_stages_group_value_stream_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_term_agreements_on_user_id ON term_agreements USING btree (user_id); +ALTER TABLE ONLY public.analytics_cycle_analytics_group_stages + ADD CONSTRAINT fk_analytics_cycle_analytics_group_stages_group_value_stream_id FOREIGN KEY (group_value_stream_id) REFERENCES public.analytics_cycle_analytics_group_value_streams(id) ON DELETE CASCADE; -CREATE INDEX index_terraform_state_versions_failed_verification ON terraform_state_versions USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); -CREATE INDEX index_terraform_state_versions_needs_verification ON terraform_state_versions USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); +-- +-- Name: approval_merge_request_rules fk_approval_merge_request_rules_on_scan_result_policy_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_terraform_state_versions_on_ci_build_id ON terraform_state_versions USING btree (ci_build_id); +ALTER TABLE ONLY public.approval_merge_request_rules + ADD CONSTRAINT fk_approval_merge_request_rules_on_scan_result_policy_id FOREIGN KEY (scan_result_policy_id) REFERENCES public.scan_result_policies(id) ON DELETE SET NULL; -CREATE INDEX index_terraform_state_versions_on_created_by_user_id ON terraform_state_versions USING btree (created_by_user_id); -CREATE INDEX index_terraform_state_versions_on_project_id ON terraform_state_versions USING btree (project_id); +-- +-- Name: fork_network_members fk_b01280dae4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_terraform_state_versions_on_state_id_and_version ON terraform_state_versions USING btree (terraform_state_id, version); +ALTER TABLE ONLY public.fork_network_members + ADD CONSTRAINT fk_b01280dae4 FOREIGN KEY (forked_from_project_id) REFERENCES public.projects(id) ON DELETE SET NULL; -CREATE INDEX index_terraform_state_versions_on_verification_state ON terraform_state_versions USING btree (verification_state); -CREATE INDEX index_terraform_state_versions_pending_verification ON terraform_state_versions USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); +-- +-- Name: ml_candidate_metadata fk_b044692715; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_terraform_states_on_file_store ON terraform_states USING btree (file_store); +ALTER TABLE ONLY public.ml_candidate_metadata + ADD CONSTRAINT fk_b044692715 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_terraform_states_on_locked_by_user_id ON terraform_states USING btree (locked_by_user_id); -CREATE UNIQUE INDEX index_terraform_states_on_project_id_and_name ON terraform_states USING btree (project_id, name); +-- +-- Name: sbom_occurrences fk_b1b65d8d17; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_terraform_states_on_uuid ON terraform_states USING btree (uuid); +ALTER TABLE ONLY public.sbom_occurrences + ADD CONSTRAINT fk_b1b65d8d17 FOREIGN KEY (source_package_id) REFERENCES public.sbom_source_packages(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_timelog_categories_on_unique_name_per_namespace ON timelog_categories USING btree (namespace_id, lower(name)); -CREATE INDEX index_timelogs_on_issue_id ON timelogs USING btree (issue_id); +-- +-- Name: vulnerabilities fk_b1de915a15; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_timelogs_on_merge_request_id ON timelogs USING btree (merge_request_id); +ALTER TABLE ONLY public.vulnerabilities + ADD CONSTRAINT fk_b1de915a15 FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_timelogs_on_note_id ON timelogs USING btree (note_id); -CREATE INDEX index_timelogs_on_project_id_and_spent_at ON timelogs USING btree (project_id, spent_at); +-- +-- Name: project_access_tokens fk_b27801bfbf; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_timelogs_on_spent_at ON timelogs USING btree (spent_at) WHERE (spent_at IS NOT NULL); +ALTER TABLE ONLY public.project_access_tokens + ADD CONSTRAINT fk_b27801bfbf FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_timelogs_on_timelog_category_id ON timelogs USING btree (timelog_category_id); -CREATE INDEX index_timelogs_on_user_id ON timelogs USING btree (user_id); +-- +-- Name: vulnerability_reads fk_b28c28abf1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_todos_on_author_id ON todos USING btree (author_id); +ALTER TABLE ONLY public.vulnerability_reads + ADD CONSTRAINT fk_b28c28abf1 FOREIGN KEY (scanner_id) REFERENCES public.vulnerability_scanners(id) ON DELETE CASCADE; -CREATE INDEX index_todos_on_author_id_and_created_at ON todos USING btree (author_id, created_at); -CREATE INDEX index_todos_on_commit_id ON todos USING btree (commit_id); +-- +-- Name: member_approvals fk_b2e4a4b68a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_todos_on_group_id ON todos USING btree (group_id); +ALTER TABLE ONLY public.member_approvals + ADD CONSTRAINT fk_b2e4a4b68a FOREIGN KEY (member_id) REFERENCES public.members(id) ON DELETE CASCADE; -CREATE INDEX index_todos_on_note_id ON todos USING btree (note_id); -CREATE INDEX index_todos_on_project_id_and_id ON todos USING btree (project_id, id); +-- +-- Name: issues fk_b37be69be6; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_todos_on_target_type_and_target_id ON todos USING btree (target_type, target_id); +ALTER TABLE ONLY public.issues + ADD CONSTRAINT fk_b37be69be6 FOREIGN KEY (work_item_type_id) REFERENCES public.work_item_types(id); -CREATE INDEX index_todos_on_user_id_and_id_done ON todos USING btree (user_id, id) WHERE ((state)::text = 'done'::text); -CREATE INDEX index_todos_on_user_id_and_id_pending ON todos USING btree (user_id, id) WHERE ((state)::text = 'pending'::text); +-- +-- Name: duo_workflows_checkpoints fk_b3d9cea509; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_token_with_ivs_on_hashed_plaintext_token ON token_with_ivs USING btree (hashed_plaintext_token); +ALTER TABLE ONLY public.duo_workflows_checkpoints + ADD CONSTRAINT fk_b3d9cea509 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_token_with_ivs_on_hashed_token ON token_with_ivs USING btree (hashed_token); -CREATE INDEX index_topics_non_private_projects_count ON topics USING btree (non_private_projects_count DESC, id); +-- +-- Name: protected_tag_create_access_levels fk_b4eb82fe3c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_topics_on_lower_name ON topics USING btree (lower(name)); +ALTER TABLE ONLY public.protected_tag_create_access_levels + ADD CONSTRAINT fk_b4eb82fe3c FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_topics_on_name ON topics USING btree (name); -CREATE INDEX index_topics_on_name_trigram ON topics USING gin (name gin_trgm_ops); +-- +-- Name: status_check_responses fk_b53bf31a72; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_topics_on_slug ON topics USING btree (slug) WHERE (slug IS NOT NULL); +ALTER TABLE ONLY public.status_check_responses + ADD CONSTRAINT fk_b53bf31a72 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_topics_total_projects_count ON topics USING btree (total_projects_count DESC, id); -CREATE UNIQUE INDEX index_trending_projects_on_project_id ON trending_projects USING btree (project_id); +-- +-- Name: packages_dependency_links fk_b5c56b6ede; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_unarchived_occurrences_for_aggregations_component_name ON sbom_occurrences USING btree (traversal_ids, component_name, component_id, component_version_id) WHERE (archived = false); +ALTER TABLE ONLY public.packages_dependency_links + ADD CONSTRAINT fk_b5c56b6ede FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_unarchived_occurrences_for_aggregations_license ON sbom_occurrences USING btree (traversal_ids, (((licenses -> 0) ->> 'spdx_identifier'::text)), component_id, component_version_id) WHERE (archived = false); -CREATE INDEX index_unarchived_occurrences_for_aggregations_package_manager ON sbom_occurrences USING btree (traversal_ids, package_manager, component_id, component_version_id) WHERE (archived = false); +-- +-- Name: compliance_framework_security_policies fk_b5df066d8f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_unarchived_occurrences_for_aggregations_severity ON sbom_occurrences USING btree (traversal_ids, highest_severity, component_id, component_version_id) WHERE (archived = false); +ALTER TABLE ONLY public.compliance_framework_security_policies + ADD CONSTRAINT fk_b5df066d8f FOREIGN KEY (framework_id) REFERENCES public.compliance_management_frameworks(id) ON DELETE CASCADE; -CREATE INDEX index_unarchived_occurrences_on_version_id_and_traversal_ids ON sbom_occurrences USING btree (component_version_id, traversal_ids) WHERE (archived = false); -CREATE INDEX index_unarchived_sbom_occurrences_for_aggregations ON sbom_occurrences USING btree (traversal_ids, component_id, component_version_id) WHERE (archived = false); +-- +-- Name: catalog_resource_versions fk_b670eae96b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_uniq_ci_runners_on_token ON ci_runners USING btree (token); +ALTER TABLE ONLY public.catalog_resource_versions + ADD CONSTRAINT fk_b670eae96b FOREIGN KEY (catalog_resource_id) REFERENCES public.catalog_resources(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_uniq_ci_runners_on_token_encrypted ON ci_runners USING btree (token_encrypted); -CREATE UNIQUE INDEX index_uniq_im_issuable_escalation_statuses_on_issue_id ON incident_management_issuable_escalation_statuses USING btree (issue_id); +-- +-- Name: bulk_import_entities fk_b69fa2b2df; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_uniq_projects_on_runners_token ON projects USING btree (runners_token); +ALTER TABLE ONLY public.bulk_import_entities + ADD CONSTRAINT fk_b69fa2b2df FOREIGN KEY (bulk_import_id) REFERENCES public.bulk_imports(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_uniq_projects_on_runners_token_encrypted ON projects USING btree (runners_token_encrypted); -CREATE UNIQUE INDEX index_unique_ci_runner_projects_on_runner_id_and_project_id ON ci_runner_projects USING btree (runner_id, project_id); +-- +-- Name: security_policy_requirements fk_b6e48e3428; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_unique_epics_on_issue_id ON epics USING btree (issue_id); +ALTER TABLE ONLY public.security_policy_requirements + ADD CONSTRAINT fk_b6e48e3428 FOREIGN KEY (compliance_framework_security_policy_id) REFERENCES public.compliance_framework_security_policies(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_unique_issuable_resource_links_on_unique_issue_link ON issuable_resource_links USING btree (issue_id, link) WHERE is_unique; -CREATE UNIQUE INDEX index_unique_issue_metrics_issue_id ON issue_metrics USING btree (issue_id); +-- +-- Name: compliance_management_frameworks fk_b74c45b71f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_unique_project_authorizations_on_unique_project_user ON project_authorizations USING btree (project_id, user_id) WHERE is_unique; +ALTER TABLE ONLY public.compliance_management_frameworks + ADD CONSTRAINT fk_b74c45b71f FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_unit_test_failures_failed_at ON ci_unit_test_failures USING btree (failed_at DESC); -CREATE UNIQUE INDEX index_unit_test_failures_unique_columns ON ci_unit_test_failures USING btree (unit_test_id, failed_at DESC, build_id); +-- +-- Name: ml_experiment_metadata fk_b764e76c6c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_unresolved_alerts_on_project_id_and_fingerprint ON alert_management_alerts USING btree (project_id, fingerprint) WHERE ((fingerprint IS NOT NULL) AND (status <> 2)); +ALTER TABLE ONLY public.ml_experiment_metadata + ADD CONSTRAINT fk_b764e76c6c FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_upcoming_reconciliations_on_namespace_id ON upcoming_reconciliations USING btree (namespace_id); -CREATE INDEX index_upcoming_reconciliations_on_organization_id ON upcoming_reconciliations USING btree (organization_id); +-- +-- Name: external_status_checks_protected_branches fk_b7d788e813; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_upload_states_failed_verification ON upload_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +ALTER TABLE ONLY public.external_status_checks_protected_branches + ADD CONSTRAINT fk_b7d788e813 FOREIGN KEY (protected_branch_id) REFERENCES public.protected_branches(id) ON DELETE CASCADE; -CREATE INDEX index_upload_states_needs_verification ON upload_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); -CREATE INDEX index_upload_states_on_upload_id ON upload_states USING btree (upload_id); +-- +-- Name: issue_assignees fk_b7d881734a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_upload_states_on_verification_state ON upload_states USING btree (verification_state); +ALTER TABLE ONLY public.issue_assignees + ADD CONSTRAINT fk_b7d881734a FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -CREATE INDEX index_upload_states_pending_verification ON upload_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); -CREATE INDEX index_uploads_on_checksum ON uploads USING btree (checksum); +-- +-- Name: agent_project_authorizations fk_b7fe9b4777; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_uploads_on_model_id_model_type_uploader_created_at ON uploads USING btree (model_id, model_type, uploader, created_at); +ALTER TABLE ONLY public.agent_project_authorizations + ADD CONSTRAINT fk_b7fe9b4777 FOREIGN KEY (agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; -CREATE INDEX index_uploads_on_store ON uploads USING btree (store); -CREATE INDEX index_uploads_on_uploaded_by_user_id ON uploads USING btree (uploaded_by_user_id); +-- +-- Name: namespace_import_users fk_b82be3e1f3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_uploads_on_uploader_and_path ON uploads USING btree (uploader, path); +ALTER TABLE ONLY public.namespace_import_users + ADD CONSTRAINT fk_b82be3e1f3 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_user_achievements_on_achievement_id_revoked_by_is_null ON user_achievements USING btree (achievement_id, ((revoked_by_user_id IS NULL))); -CREATE INDEX index_user_achievements_on_awarded_by_revoked_by_is_null ON user_achievements USING btree (awarded_by_user_id, ((revoked_by_user_id IS NULL))); +-- +-- Name: namespace_commit_emails fk_b8d89d555e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_user_achievements_on_namespace_id ON user_achievements USING btree (namespace_id); +ALTER TABLE ONLY public.namespace_commit_emails + ADD CONSTRAINT fk_b8d89d555e FOREIGN KEY (email_id) REFERENCES public.emails(id) ON DELETE CASCADE; -CREATE INDEX index_user_achievements_on_revoked_by_user_id ON user_achievements USING btree (revoked_by_user_id); -CREATE INDEX index_user_achievements_on_user_id_revoked_by_is_null ON user_achievements USING btree (user_id, ((revoked_by_user_id IS NULL))); +-- +-- Name: ci_trigger_requests fk_b8ec8b7245; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_user_agent_details_on_subject_id_and_subject_type ON user_agent_details USING btree (subject_id, subject_type); +ALTER TABLE ONLY public.ci_trigger_requests + ADD CONSTRAINT fk_b8ec8b7245 FOREIGN KEY (trigger_id) REFERENCES public.ci_triggers(id) ON DELETE CASCADE; -CREATE INDEX index_user_broadcast_message_dismissals_on_broadcast_message_id ON user_broadcast_message_dismissals USING btree (broadcast_message_id); -CREATE UNIQUE INDEX index_user_callouts_on_user_id_and_feature_name ON user_callouts USING btree (user_id, feature_name); +-- +-- Name: customer_relations_contacts fk_b91ddd9345; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_user_canonical_emails_on_canonical_email ON user_canonical_emails USING btree (canonical_email); +ALTER TABLE ONLY public.customer_relations_contacts + ADD CONSTRAINT fk_b91ddd9345 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_user_canonical_emails_on_user_id ON user_canonical_emails USING btree (user_id); -CREATE UNIQUE INDEX index_user_canonical_emails_on_user_id_and_canonical_email ON user_canonical_emails USING btree (user_id, canonical_email); +-- +-- Name: uploads fk_b94f059d73; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_user_credit_card_validations_on_stripe_card_fingerprint ON user_credit_card_validations USING btree (stripe_card_fingerprint); +ALTER TABLE ONLY public.uploads + ADD CONSTRAINT fk_b94f059d73 FOREIGN KEY (uploaded_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_user_custom_attributes_on_key_and_value ON user_custom_attributes USING btree (key, value); -CREATE UNIQUE INDEX index_user_custom_attributes_on_user_id_and_key ON user_custom_attributes USING btree (user_id, key); +-- +-- Name: deployments fk_b9a3851b82; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_user_details_on_enterprise_group_id_and_user_id ON user_details USING btree (enterprise_group_id, user_id); +ALTER TABLE ONLY public.deployments + ADD CONSTRAINT fk_b9a3851b82 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_user_details_on_password_last_changed_at ON user_details USING btree (password_last_changed_at); -COMMENT ON INDEX index_user_details_on_password_last_changed_at IS 'JiHu-specific index'; +-- +-- Name: project_compliance_standards_adherence fk_baf6f6f878; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_user_details_on_phone ON user_details USING btree (phone) WHERE (phone IS NOT NULL); +ALTER TABLE ONLY public.project_compliance_standards_adherence + ADD CONSTRAINT fk_baf6f6f878 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -COMMENT ON INDEX index_user_details_on_phone IS 'JiHu-specific index'; -CREATE UNIQUE INDEX index_user_details_on_user_id ON user_details USING btree (user_id); +-- +-- Name: p_ci_runner_machine_builds fk_bb490f12fe_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_user_group_callouts_on_group_id ON user_group_callouts USING btree (group_id); +ALTER TABLE public.p_ci_runner_machine_builds + ADD CONSTRAINT fk_bb490f12fe_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -CREATE INDEX index_user_highest_roles_on_user_id_and_highest_access_level ON user_highest_roles USING btree (user_id, highest_access_level); -CREATE INDEX index_user_id_and_notification_email_to_notification_settings ON notification_settings USING btree (user_id, notification_email, id) WHERE (notification_email IS NOT NULL); +-- +-- Name: security_orchestration_policy_rule_schedules fk_bcbb90477f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_user_namespace_callouts_on_namespace_id ON user_namespace_callouts USING btree (namespace_id); +ALTER TABLE ONLY public.security_orchestration_policy_rule_schedules + ADD CONSTRAINT fk_bcbb90477f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_user_permission_export_uploads_on_user_id_and_status ON user_permission_export_uploads USING btree (user_id, status); -CREATE INDEX index_user_phone_number_validations_on_telesign_reference_xid ON user_phone_number_validations USING btree (telesign_reference_xid); +-- +-- Name: namespace_bans fk_bcc024eef2; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_user_phone_validations_on_dial_code_phone_number ON user_phone_number_validations USING btree (international_dial_code, phone_number); +ALTER TABLE ONLY public.namespace_bans + ADD CONSTRAINT fk_bcc024eef2 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_user_preferences_on_gitpod_enabled ON user_preferences USING btree (gitpod_enabled); -CREATE INDEX index_user_preferences_on_home_organization_id ON user_preferences USING btree (home_organization_id); +-- +-- Name: gitlab_subscriptions fk_bd0c4019c3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_user_preferences_on_user_id ON user_preferences USING btree (user_id); +ALTER TABLE ONLY public.gitlab_subscriptions + ADD CONSTRAINT fk_bd0c4019c3 FOREIGN KEY (hosted_plan_id) REFERENCES public.plans(id) ON DELETE CASCADE; -CREATE INDEX index_user_project_callouts_on_project_id ON user_project_callouts USING btree (project_id); -CREATE INDEX index_user_statuses_on_clear_status_at_not_null ON user_statuses USING btree (clear_status_at) WHERE (clear_status_at IS NOT NULL); +-- +-- Name: catalog_resource_versions fk_bd1b87591a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_user_statuses_on_user_id ON user_statuses USING btree (user_id); +ALTER TABLE ONLY public.catalog_resource_versions + ADD CONSTRAINT fk_bd1b87591a FOREIGN KEY (published_by_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_user_synced_attributes_metadata_on_user_id ON user_synced_attributes_metadata USING btree (user_id); -CREATE INDEX index_users_for_active_billable_users ON users USING btree (id) WHERE (((state)::text = 'active'::text) AND (user_type = ANY (ARRAY[0, 6, 4, 13])) AND (user_type = ANY (ARRAY[0, 4, 5]))); +-- +-- Name: resource_link_events fk_bd4ae15ce4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_users_for_auditors ON users USING btree (id) WHERE (auditor IS TRUE); +ALTER TABLE ONLY public.resource_link_events + ADD CONSTRAINT fk_bd4ae15ce4 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_users_on_admin ON users USING btree (admin); -CREATE UNIQUE INDEX index_users_on_confirmation_token ON users USING btree (confirmation_token); +-- +-- Name: metrics_users_starred_dashboards fk_bd6ae32fac; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_users_on_created_at ON users USING btree (created_at); +ALTER TABLE ONLY public.metrics_users_starred_dashboards + ADD CONSTRAINT fk_bd6ae32fac FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_users_on_email ON users USING btree (email); -CREATE INDEX index_users_on_email_domain_and_id ON users USING btree (lower(split_part((email)::text, '@'::text, 2)), id); +-- +-- Name: workspaces fk_bdb0b31131; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_users_on_email_trigram ON users USING gin (email gin_trgm_ops); +ALTER TABLE ONLY public.workspaces + ADD CONSTRAINT fk_bdb0b31131 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_users_on_feed_token ON users USING btree (feed_token); -CREATE INDEX index_users_on_group_view ON users USING btree (group_view); +-- +-- Name: project_compliance_framework_settings fk_be413374a9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_users_on_id_and_last_activity_on_for_active_human_service ON users USING btree (id, last_activity_on) WHERE (((state)::text = 'active'::text) AND (user_type = ANY (ARRAY[0, 4]))); +ALTER TABLE ONLY public.project_compliance_framework_settings + ADD CONSTRAINT fk_be413374a9 FOREIGN KEY (framework_id) REFERENCES public.compliance_management_frameworks(id) ON DELETE CASCADE; -CREATE INDEX index_users_on_incoming_email_token ON users USING btree (incoming_email_token); -CREATE INDEX index_users_on_managing_group_id ON users USING btree (managing_group_id); +-- +-- Name: snippets fk_be41fd4bb7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_users_on_name ON users USING btree (name); +ALTER TABLE ONLY public.snippets + ADD CONSTRAINT fk_be41fd4bb7 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_users_on_name_trigram ON users USING gin (name gin_trgm_ops); -CREATE INDEX index_users_on_public_email_excluding_null_and_empty ON users USING btree (public_email) WHERE (((public_email)::text <> ''::text) AND (public_email IS NOT NULL)); +-- +-- Name: ci_sources_pipelines fk_be5624bf37_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_users_on_public_email_trigram ON users USING gin (public_email gin_trgm_ops); +ALTER TABLE ONLY public.ci_sources_pipelines + ADD CONSTRAINT fk_be5624bf37_p FOREIGN KEY (source_partition_id, source_job_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -CREATE UNIQUE INDEX index_users_on_reset_password_token ON users USING btree (reset_password_token); -CREATE INDEX index_users_on_state_and_user_type ON users USING btree (state, user_type); +-- +-- Name: packages_maven_metadata fk_be88aed360; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_users_on_static_object_token ON users USING btree (static_object_token); +ALTER TABLE ONLY public.packages_maven_metadata + ADD CONSTRAINT fk_be88aed360 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; -CREATE INDEX index_users_on_unconfirmed_created_at_active_type_sign_in_count ON users USING btree (created_at, id) WHERE ((confirmed_at IS NULL) AND ((state)::text = 'active'::text) AND (user_type = 0) AND (sign_in_count = 0)); -CREATE INDEX index_users_on_unconfirmed_email ON users USING btree (unconfirmed_email) WHERE (unconfirmed_email IS NOT NULL); +-- +-- Name: remote_development_namespace_cluster_agent_mappings fk_be8e9c740f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_users_on_unlock_token ON users USING btree (unlock_token); +ALTER TABLE ONLY public.remote_development_namespace_cluster_agent_mappings + ADD CONSTRAINT fk_be8e9c740f FOREIGN KEY (cluster_agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; -CREATE INDEX index_users_on_updated_at ON users USING btree (updated_at); -CREATE INDEX index_users_on_user_type_and_id ON users USING btree (user_type, id); +-- +-- Name: zoekt_indices fk_bf205d4773; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_users_on_username ON users USING btree (username); +ALTER TABLE ONLY public.zoekt_indices + ADD CONSTRAINT fk_bf205d4773 FOREIGN KEY (zoekt_enabled_namespace_id) REFERENCES public.zoekt_enabled_namespaces(id) ON DELETE SET NULL; -CREATE INDEX index_users_on_username_trigram ON users USING gin (username gin_trgm_ops); -CREATE INDEX index_users_ops_dashboard_projects_on_project_id ON users_ops_dashboard_projects USING btree (project_id); +-- +-- Name: packages_build_infos fk_c0bc6b19ff; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_users_ops_dashboard_projects_on_user_id_and_project_id ON users_ops_dashboard_projects USING btree (user_id, project_id); +ALTER TABLE ONLY public.packages_build_infos + ADD CONSTRAINT fk_c0bc6b19ff FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_users_security_dashboard_projects_on_user_id ON users_security_dashboard_projects USING btree (user_id); -CREATE INDEX index_users_star_projects_on_project_id ON users_star_projects USING btree (project_id); +-- +-- Name: design_management_versions fk_c1440b4896; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_users_star_projects_on_user_id_and_project_id ON users_star_projects USING btree (user_id, project_id); +ALTER TABLE ONLY public.design_management_versions + ADD CONSTRAINT fk_c1440b4896 FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_verification_codes_on_phone_and_visitor_id_code ON ONLY verification_codes USING btree (visitor_id_code, phone, created_at); -COMMENT ON INDEX index_verification_codes_on_phone_and_visitor_id_code IS 'JiHu-specific index'; +-- +-- Name: packages_packages fk_c188f0dba4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_virtual_reg_pkgs_maven_cached_responses_on_group_id ON virtual_registries_packages_maven_cached_responses USING btree (group_id); +ALTER TABLE ONLY public.packages_packages + ADD CONSTRAINT fk_c188f0dba4 FOREIGN KEY (creator_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_virtual_reg_pkgs_maven_reg_upstreams_on_group_id ON virtual_registries_packages_maven_registry_upstreams USING btree (group_id); -CREATE INDEX index_virtual_reg_pkgs_maven_upstreams_on_group_id ON virtual_registries_packages_maven_upstreams USING btree (group_id); +-- +-- Name: sbom_occurrences fk_c2a5562923; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_vuln_findings_on_uuid_including_vuln_id_1 ON vulnerability_occurrences USING btree (uuid) INCLUDE (vulnerability_id); +ALTER TABLE ONLY public.sbom_occurrences + ADD CONSTRAINT fk_c2a5562923 FOREIGN KEY (source_id) REFERENCES public.sbom_sources(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_vuln_historical_statistics_on_project_id_and_date ON vulnerability_historical_statistics USING btree (project_id, date); -CREATE INDEX index_vuln_namespace_historical_statistics_on_namespace_id ON vulnerability_namespace_historical_statistics USING btree (namespace_id); +-- +-- Name: dependency_list_exports fk_c348f16f10; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_vuln_namespace_historical_statistics_traversal_ids_date ON vulnerability_namespace_historical_statistics USING btree (traversal_ids, date); +ALTER TABLE ONLY public.dependency_list_exports + ADD CONSTRAINT fk_c348f16f10 FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; -CREATE INDEX index_vuln_reads_common_query_on_resolved_on_default_branch ON vulnerability_reads USING btree (project_id, state, report_type, vulnerability_id DESC) WHERE (resolved_on_default_branch IS TRUE); -CREATE INDEX index_vuln_reads_on_casted_cluster_agent_id_where_it_is_null ON vulnerability_reads USING btree (casted_cluster_agent_id) WHERE (casted_cluster_agent_id IS NOT NULL); +-- +-- Name: issues fk_c34dd2b036; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vuln_reads_on_project_id_owasp_top_10 ON vulnerability_reads USING btree (project_id, owasp_top_10); +ALTER TABLE ONLY public.issues + ADD CONSTRAINT fk_c34dd2b036 FOREIGN KEY (tmp_epic_id) REFERENCES public.epics(id) ON DELETE CASCADE; -CREATE INDEX index_vuln_reads_on_project_id_state_severity_and_vuln_id ON vulnerability_reads USING btree (project_id, state, severity, vulnerability_id DESC); -CREATE INDEX index_vulnerabilities_common_finder_query_on_default_branch ON vulnerabilities USING btree (project_id, state, report_type, present_on_default_branch, severity, id); +-- +-- Name: user_group_callouts fk_c366e12ec3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerabilities_on_author_id ON vulnerabilities USING btree (author_id); +ALTER TABLE ONLY public.user_group_callouts + ADD CONSTRAINT fk_c366e12ec3 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_vulnerabilities_on_confirmed_by_id ON vulnerabilities USING btree (confirmed_by_id); -CREATE INDEX index_vulnerabilities_on_detected_at_and_id ON vulnerabilities USING btree (id, detected_at); +-- +-- Name: timelogs fk_c49c83dd77; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerabilities_on_dismissed_by_id ON vulnerabilities USING btree (dismissed_by_id); +ALTER TABLE ONLY public.timelogs + ADD CONSTRAINT fk_c49c83dd77 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_vulnerabilities_on_finding_id ON vulnerabilities USING btree (finding_id); -CREATE INDEX index_vulnerabilities_on_project_id_and_id ON vulnerabilities USING btree (project_id, id); +-- +-- Name: wiki_repository_states fk_c558ca51b8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerabilities_on_resolved_by_id ON vulnerabilities USING btree (resolved_by_id); +ALTER TABLE ONLY public.wiki_repository_states + ADD CONSTRAINT fk_c558ca51b8 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_vulnerabilities_project_id_and_id_on_default_branch ON vulnerabilities USING btree (project_id, id) WHERE (present_on_default_branch IS TRUE); -CREATE INDEX index_vulnerabilities_project_id_state_severity_default_branch ON vulnerabilities USING btree (project_id, state, severity, present_on_default_branch); +-- +-- Name: issues fk_c63cbf6c25; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_export_parts_on_organization_id ON vulnerability_export_parts USING btree (organization_id); +ALTER TABLE ONLY public.issues + ADD CONSTRAINT fk_c63cbf6c25 FOREIGN KEY (closed_by_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_vulnerability_export_parts_on_vulnerability_export_id ON vulnerability_export_parts USING btree (vulnerability_export_id); -CREATE INDEX index_vulnerability_exports_on_author_id ON vulnerability_exports USING btree (author_id); +-- +-- Name: sbom_occurrences_vulnerabilities fk_c677cb859e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_exports_on_file_store ON vulnerability_exports USING btree (file_store); +ALTER TABLE ONLY public.sbom_occurrences_vulnerabilities + ADD CONSTRAINT fk_c677cb859e FOREIGN KEY (sbom_occurrence_id) REFERENCES public.sbom_occurrences(id) ON DELETE CASCADE; -CREATE INDEX index_vulnerability_exports_on_group_id_not_null ON vulnerability_exports USING btree (group_id) WHERE (group_id IS NOT NULL); -CREATE INDEX index_vulnerability_exports_on_organization_id ON vulnerability_exports USING btree (organization_id); +-- +-- Name: issues fk_c78fbacd64; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_exports_on_project_id_not_null ON vulnerability_exports USING btree (project_id) WHERE (project_id IS NOT NULL); +ALTER TABLE ONLY public.issues + ADD CONSTRAINT fk_c78fbacd64 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_vulnerability_external_issue_links_on_author_id ON vulnerability_external_issue_links USING btree (author_id); -CREATE INDEX index_vulnerability_external_issue_links_on_project_id ON vulnerability_external_issue_links USING btree (project_id); +-- +-- Name: user_broadcast_message_dismissals fk_c7cbf5566d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_feedback_finding_uuid ON vulnerability_feedback USING hash (finding_uuid); +ALTER TABLE ONLY public.user_broadcast_message_dismissals + ADD CONSTRAINT fk_c7cbf5566d FOREIGN KEY (broadcast_message_id) REFERENCES public.broadcast_messages(id) ON DELETE CASCADE; -CREATE INDEX index_vulnerability_feedback_on_author_id ON vulnerability_feedback USING btree (author_id); -CREATE INDEX index_vulnerability_feedback_on_comment_author_id ON vulnerability_feedback USING btree (comment_author_id); +-- +-- Name: packages_debian_group_distribution_keys fk_c802025a67; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_feedback_on_common_attributes ON vulnerability_feedback USING btree (project_id, category, feedback_type, project_fingerprint); +ALTER TABLE ONLY public.packages_debian_group_distribution_keys + ADD CONSTRAINT fk_c802025a67 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_vulnerability_feedback_on_feedback_type_and_finding_uuid ON vulnerability_feedback USING btree (feedback_type, finding_uuid); -CREATE INDEX index_vulnerability_feedback_on_issue_id ON vulnerability_feedback USING btree (issue_id); +-- +-- Name: agent_activity_events fk_c815368376; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_feedback_on_issue_id_not_null ON vulnerability_feedback USING btree (id) WHERE (issue_id IS NOT NULL); +ALTER TABLE ONLY public.agent_activity_events + ADD CONSTRAINT fk_c815368376 FOREIGN KEY (agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; -CREATE INDEX index_vulnerability_feedback_on_merge_request_id ON vulnerability_feedback USING btree (merge_request_id); -CREATE INDEX index_vulnerability_feedback_on_pipeline_id ON vulnerability_feedback USING btree (pipeline_id); +-- +-- Name: agent_activity_events fk_c8b006d40f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_finding_evidences_on_project_id ON vulnerability_finding_evidences USING btree (project_id); +ALTER TABLE ONLY public.agent_activity_events + ADD CONSTRAINT fk_c8b006d40f FOREIGN KEY (agent_token_id) REFERENCES public.cluster_agent_tokens(id) ON DELETE SET NULL; -CREATE INDEX index_vulnerability_finding_signatures_on_project_id ON vulnerability_finding_signatures USING btree (project_id); -CREATE INDEX index_vulnerability_finding_signatures_on_signature_sha ON vulnerability_finding_signatures USING btree (signature_sha); +-- +-- Name: issue_links fk_c900194ff2; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_findings_remediations_on_project_id ON vulnerability_findings_remediations USING btree (project_id); +ALTER TABLE ONLY public.issue_links + ADD CONSTRAINT fk_c900194ff2 FOREIGN KEY (source_id) REFERENCES public.issues(id) ON DELETE CASCADE; -CREATE INDEX index_vulnerability_findings_remediations_on_remediation_id ON vulnerability_findings_remediations USING btree (vulnerability_remediation_id); -CREATE UNIQUE INDEX index_vulnerability_findings_remediations_on_unique_keys ON vulnerability_findings_remediations USING btree (vulnerability_occurrence_id, vulnerability_remediation_id); +-- +-- Name: bulk_import_exports fk_c9250a4d3f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_flags_on_project_id ON vulnerability_flags USING btree (project_id); +ALTER TABLE ONLY public.bulk_import_exports + ADD CONSTRAINT fk_c9250a4d3f FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_vulnerability_flags_on_unique_columns ON vulnerability_flags USING btree (vulnerability_occurrence_id, flag_type, origin); -CREATE INDEX index_vulnerability_historical_statistics_on_date_and_id ON vulnerability_historical_statistics USING btree (date, id); +-- +-- Name: personal_access_tokens fk_c951fbf57e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_vulnerability_identifiers_on_project_id_and_fingerprint ON vulnerability_identifiers USING btree (project_id, fingerprint); +ALTER TABLE ONLY public.personal_access_tokens + ADD CONSTRAINT fk_c951fbf57e FOREIGN KEY (previous_personal_access_token_id) REFERENCES public.personal_access_tokens(id) ON DELETE SET NULL; -CREATE INDEX index_vulnerability_issue_links_on_issue_id ON vulnerability_issue_links USING btree (issue_id); -CREATE INDEX index_vulnerability_issue_links_on_project_id ON vulnerability_issue_links USING btree (project_id); +-- +-- Name: compliance_checks fk_c9683a794f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_merge_request_links_on_merge_request_id ON vulnerability_merge_request_links USING btree (merge_request_id); +ALTER TABLE ONLY public.compliance_checks + ADD CONSTRAINT fk_c9683a794f FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_vulnerability_merge_request_links_on_project_id ON vulnerability_merge_request_links USING btree (project_id); -CREATE INDEX index_vulnerability_occurrence_identifiers_on_identifier_id ON vulnerability_occurrence_identifiers USING btree (identifier_id); +-- +-- Name: jira_tracker_data fk_c98abcd54c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_vulnerability_occurrence_identifiers_on_unique_keys ON vulnerability_occurrence_identifiers USING btree (occurrence_id, identifier_id); +ALTER TABLE ONLY public.jira_tracker_data + ADD CONSTRAINT fk_c98abcd54c FOREIGN KEY (integration_id) REFERENCES public.integrations(id) ON DELETE CASCADE; -CREATE INDEX index_vulnerability_occurrence_pipelines_occurrence_id_and_id ON vulnerability_occurrence_pipelines USING btree (occurrence_id, id DESC); -CREATE INDEX index_vulnerability_occurrence_pipelines_on_pipeline_id ON vulnerability_occurrence_pipelines USING btree (pipeline_id); +-- +-- Name: evidences fk_ca4bbc114d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_occurrences_for_override_uuids_logic ON vulnerability_occurrences USING btree (project_id, report_type, location_fingerprint); +ALTER TABLE ONLY public.evidences + ADD CONSTRAINT fk_ca4bbc114d FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_vulnerability_occurrences_on_initial_pipeline_id ON vulnerability_occurrences USING btree (initial_pipeline_id); -CREATE INDEX index_vulnerability_occurrences_on_latest_pipeline_id ON vulnerability_occurrences USING btree (latest_pipeline_id); +-- +-- Name: subscription_add_on_purchases fk_caed789645; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_occurrences_on_location_image ON vulnerability_occurrences USING gin (((location -> 'image'::text))) WHERE (report_type = ANY (ARRAY[2, 7])); +ALTER TABLE ONLY public.subscription_add_on_purchases + ADD CONSTRAINT fk_caed789645 FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; -CREATE INDEX index_vulnerability_occurrences_on_location_k8s_agent_id ON vulnerability_occurrences USING gin ((((location -> 'kubernetes_resource'::text) -> 'agent_id'::text))) WHERE (report_type = 7); -CREATE INDEX index_vulnerability_occurrences_on_location_k8s_cluster_id ON vulnerability_occurrences USING gin ((((location -> 'kubernetes_resource'::text) -> 'cluster_id'::text))) WHERE (report_type = 7); +-- +-- Name: duo_workflows_workflows fk_cb28eb3e34; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_occurrences_on_scanner_id ON vulnerability_occurrences USING btree (scanner_id); +ALTER TABLE ONLY public.duo_workflows_workflows + ADD CONSTRAINT fk_cb28eb3e34 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_vulnerability_occurrences_on_uuid_1 ON vulnerability_occurrences USING btree (uuid); -CREATE INDEX index_vulnerability_occurrences_on_vulnerability_id ON vulnerability_occurrences USING btree (vulnerability_id); +-- +-- Name: boards_epic_board_labels fk_cb8ded70e2; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_occurrences_prim_iden_id_and_vuln_id ON vulnerability_occurrences USING btree (primary_identifier_id, vulnerability_id); +ALTER TABLE ONLY public.boards_epic_board_labels + ADD CONSTRAINT fk_cb8ded70e2 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_vulnerability_reads_common_attrs_and_detection_for_groups ON vulnerability_reads USING btree (resolved_on_default_branch, state, report_type, severity, traversal_ids, vulnerability_id) WHERE (archived = false); -CREATE INDEX index_vulnerability_reads_common_finder_query_2 ON vulnerability_reads USING btree (project_id, state, report_type, severity, vulnerability_id DESC, dismissal_reason); +-- +-- Name: slack_integrations fk_cbe270434e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_reads_for_vulnerability_export ON vulnerability_reads USING btree (traversal_ids, vulnerability_id) WHERE (archived = false); +ALTER TABLE ONLY public.slack_integrations + ADD CONSTRAINT fk_cbe270434e FOREIGN KEY (integration_id) REFERENCES public.integrations(id) ON DELETE CASCADE; -CREATE INDEX index_vulnerability_reads_on_cluster_agent_id ON vulnerability_reads USING btree (cluster_agent_id) WHERE (report_type = 7); -CREATE INDEX index_vulnerability_reads_on_location_image ON vulnerability_reads USING btree (location_image) WHERE (report_type = ANY (ARRAY[2, 7])); +-- +-- Name: external_status_checks_protected_branches fk_cc0dcc36d1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_reads_on_location_image_partial ON vulnerability_reads USING btree (project_id, location_image) WHERE ((report_type = ANY (ARRAY[2, 7])) AND (location_image IS NOT NULL)); +ALTER TABLE ONLY public.external_status_checks_protected_branches + ADD CONSTRAINT fk_cc0dcc36d1 FOREIGN KEY (external_status_check_id) REFERENCES public.external_status_checks(id) ON DELETE CASCADE; -CREATE INDEX index_vulnerability_reads_on_location_image_trigram ON vulnerability_reads USING gin (location_image gin_trgm_ops) WHERE ((report_type = ANY (ARRAY[2, 7])) AND (location_image IS NOT NULL)); -CREATE INDEX index_vulnerability_reads_on_project_id_and_vulnerability_id ON vulnerability_reads USING btree (project_id, vulnerability_id); +-- +-- Name: dast_profiles_pipelines fk_cc206a8c13; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_reads_on_scanner_id ON vulnerability_reads USING btree (scanner_id); +ALTER TABLE ONLY public.dast_profiles_pipelines + ADD CONSTRAINT fk_cc206a8c13 FOREIGN KEY (dast_profile_id) REFERENCES public.dast_profiles(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_vulnerability_reads_on_uuid ON vulnerability_reads USING btree (uuid); -CREATE INDEX index_vulnerability_reads_on_uuid_project_id_and_state ON vulnerability_reads USING btree (uuid, project_id, state); +-- +-- Name: todos fk_ccf0373936; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_vulnerability_reads_on_vulnerability_id ON vulnerability_reads USING btree (vulnerability_id); +ALTER TABLE ONLY public.todos + ADD CONSTRAINT fk_ccf0373936 FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_vulnerability_remediations_on_project_id_and_checksum ON vulnerability_remediations USING btree (project_id, checksum); -CREATE UNIQUE INDEX index_vulnerability_scanners_on_project_id_and_external_id ON vulnerability_scanners USING btree (project_id, external_id); +-- +-- Name: packages_debian_project_architectures fk_cd96fce0a1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_state_transitions_id_and_vulnerability_id ON vulnerability_state_transitions USING btree (vulnerability_id, id); +ALTER TABLE ONLY public.packages_debian_project_architectures + ADD CONSTRAINT fk_cd96fce0a1 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_vulnerability_state_transitions_on_author_id ON vulnerability_state_transitions USING btree (author_id); -CREATE INDEX index_vulnerability_state_transitions_on_pipeline_id ON vulnerability_state_transitions USING btree (state_changed_at_pipeline_id); +-- +-- Name: packages_dependencies fk_cea1124da7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_vulnerability_state_transitions_on_project_id ON vulnerability_state_transitions USING btree (project_id); +ALTER TABLE ONLY public.packages_dependencies + ADD CONSTRAINT fk_cea1124da7 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_vulnerability_statistics_on_latest_pipeline_id ON vulnerability_statistics USING btree (latest_pipeline_id); -CREATE INDEX index_vulnerability_statistics_on_letter_grade ON vulnerability_statistics USING btree (letter_grade); +-- +-- Name: compliance_framework_security_policies fk_cf3c0ac207; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_vulnerability_statistics_on_unique_project_id ON vulnerability_statistics USING btree (project_id); +ALTER TABLE ONLY public.compliance_framework_security_policies + ADD CONSTRAINT fk_cf3c0ac207 FOREIGN KEY (policy_configuration_id) REFERENCES public.security_orchestration_policy_configurations(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_vulnerability_user_mentions_on_note_id ON vulnerability_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); -CREATE INDEX index_vulnerability_user_mentions_on_project_id ON vulnerability_user_mentions USING btree (project_id); +-- +-- Name: issue_assignment_events fk_cfd2073177; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_vulns_user_mentions_on_vulnerability_id ON vulnerability_user_mentions USING btree (vulnerability_id) WHERE (note_id IS NULL); +ALTER TABLE ONLY public.issue_assignment_events + ADD CONSTRAINT fk_cfd2073177 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_vulns_user_mentions_on_vulnerability_id_and_note_id ON vulnerability_user_mentions USING btree (vulnerability_id, note_id); -CREATE INDEX index_web_hook_logs_on_web_hook_id_and_created_at ON ONLY web_hook_logs USING btree (web_hook_id, created_at); +-- +-- Name: custom_emoji fk_custom_emoji_creator_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_web_hook_logs_part_on_created_at_and_web_hook_id ON ONLY web_hook_logs USING btree (created_at, web_hook_id); +ALTER TABLE ONLY public.custom_emoji + ADD CONSTRAINT fk_custom_emoji_creator_id FOREIGN KEY (creator_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_web_hooks_on_group_id ON web_hooks USING btree (group_id) WHERE ((type)::text = 'GroupHook'::text); -CREATE INDEX index_web_hooks_on_integration_id ON web_hooks USING btree (integration_id); +-- +-- Name: bulk_import_entities fk_d06d023c30; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_web_hooks_on_project_id_and_id ON web_hooks USING btree (project_id, id) WHERE ((type)::text = 'ProjectHook'::text); +ALTER TABLE ONLY public.bulk_import_entities + ADD CONSTRAINT fk_d06d023c30 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_web_hooks_on_project_id_recent_failures ON web_hooks USING btree (project_id, recent_failures); -CREATE INDEX index_web_hooks_on_type ON web_hooks USING btree (type); +-- +-- Name: subscription_user_add_on_assignments fk_d1074a6e16; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_webauthn_registrations_on_credential_xid ON webauthn_registrations USING btree (credential_xid); +ALTER TABLE ONLY public.subscription_user_add_on_assignments + ADD CONSTRAINT fk_d1074a6e16 FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; -CREATE INDEX index_webauthn_registrations_on_user_id ON webauthn_registrations USING btree (user_id); -CREATE INDEX index_wiki_page_meta_on_project_id ON wiki_page_meta USING btree (project_id); +-- +-- Name: project_mirror_data fk_d1aad367d7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_wiki_page_slugs_on_project_id ON wiki_page_slugs USING btree (project_id); +ALTER TABLE ONLY public.project_mirror_data + ADD CONSTRAINT fk_d1aad367d7 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_wiki_page_slugs_on_slug_and_wiki_page_meta_id ON wiki_page_slugs USING btree (slug, wiki_page_meta_id); -CREATE INDEX index_wiki_page_slugs_on_wiki_page_meta_id ON wiki_page_slugs USING btree (wiki_page_meta_id); +-- +-- Name: environments fk_d1c8c1da6a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_wiki_repository_states_failed_verification ON wiki_repository_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +ALTER TABLE ONLY public.environments + ADD CONSTRAINT fk_d1c8c1da6a FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_wiki_repository_states_needs_verification ON wiki_repository_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); -CREATE INDEX index_wiki_repository_states_on_project_id ON wiki_repository_states USING btree (project_id); +-- +-- Name: dast_pre_scan_verifications fk_d23ad33d6e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_wiki_repository_states_on_project_wiki_repository_id ON wiki_repository_states USING btree (project_wiki_repository_id); +ALTER TABLE ONLY public.dast_pre_scan_verifications + ADD CONSTRAINT fk_d23ad33d6e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_wiki_repository_states_on_verification_state ON wiki_repository_states USING btree (verification_state); -CREATE INDEX index_wiki_repository_states_pending_verification ON wiki_repository_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); +-- +-- Name: p_ci_builds fk_d3130c9a7f_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_work_item_hierarchy_restrictions_on_child_type_id ON work_item_hierarchy_restrictions USING btree (child_type_id); +ALTER TABLE public.p_ci_builds + ADD CONSTRAINT fk_d3130c9a7f_p FOREIGN KEY (partition_id, commit_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -CREATE UNIQUE INDEX index_work_item_hierarchy_restrictions_on_parent_and_child ON work_item_hierarchy_restrictions USING btree (parent_type_id, child_type_id); -CREATE INDEX index_work_item_hierarchy_restrictions_on_parent_type_id ON work_item_hierarchy_restrictions USING btree (parent_type_id); +-- +-- Name: ci_builds fk_d3130c9a7f_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_work_item_link_restrictions_on_source_link_type_target ON work_item_related_link_restrictions USING btree (source_type_id, link_type, target_type_id); +ALTER TABLE ONLY public.ci_builds + ADD CONSTRAINT fk_d3130c9a7f_p_tmp FOREIGN KEY (partition_id, commit_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -CREATE INDEX index_work_item_parent_links_on_namespace_id ON work_item_parent_links USING btree (namespace_id); -CREATE UNIQUE INDEX index_work_item_parent_links_on_work_item_id ON work_item_parent_links USING btree (work_item_id); +-- +-- Name: boards_epic_user_preferences fk_d32c3d693c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_work_item_parent_links_on_work_item_parent_id ON work_item_parent_links USING btree (work_item_parent_id); +ALTER TABLE ONLY public.boards_epic_user_preferences + ADD CONSTRAINT fk_d32c3d693c FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX index_work_item_related_link_restrictions_on_target_type_id ON work_item_related_link_restrictions USING btree (target_type_id); -CREATE INDEX index_work_item_types_on_base_type_and_id ON work_item_types USING btree (base_type, id); +-- +-- Name: vulnerability_state_transitions fk_d3ede71c58; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_work_item_types_on_name_unique ON work_item_types USING btree (TRIM(BOTH FROM lower(name))); +ALTER TABLE ONLY public.vulnerability_state_transitions + ADD CONSTRAINT fk_d3ede71c58 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_work_item_widget_definitions_on_type_id_and_name ON work_item_widget_definitions USING btree (work_item_type_id, TRIM(BOTH FROM lower(name))); -CREATE INDEX index_work_item_widget_definitions_on_work_item_type_id ON work_item_widget_definitions USING btree (work_item_type_id); +-- +-- Name: ci_sources_pipelines fk_d4e29af7d7_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_workspace_variables_on_project_id ON workspace_variables USING btree (project_id); +ALTER TABLE ONLY public.ci_sources_pipelines + ADD CONSTRAINT fk_d4e29af7d7_p FOREIGN KEY (source_partition_id, source_pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -CREATE INDEX index_workspace_variables_on_workspace_id ON workspace_variables USING btree (workspace_id); -CREATE INDEX index_workspaces_agent_configs_on_project_id ON workspaces_agent_configs USING btree (project_id); +-- +-- Name: ci_sources_pipelines fk_d4e29af7d7_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_workspaces_agent_configs_on_unique_cluster_agent_id ON workspaces_agent_configs USING btree (cluster_agent_id); +ALTER TABLE ONLY public.ci_sources_pipelines + ADD CONSTRAINT fk_d4e29af7d7_p_tmp FOREIGN KEY (source_partition_id, source_pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -CREATE INDEX index_workspaces_on_cluster_agent_id ON workspaces USING btree (cluster_agent_id); -CREATE UNIQUE INDEX index_workspaces_on_name ON workspaces USING btree (name); +-- +-- Name: operations_strategies_user_lists fk_d4f7076369; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_workspaces_on_personal_access_token_id ON workspaces USING btree (personal_access_token_id); +ALTER TABLE ONLY public.operations_strategies_user_lists + ADD CONSTRAINT fk_d4f7076369 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_workspaces_on_project_id ON workspaces USING btree (project_id); -CREATE INDEX index_workspaces_on_user_id ON workspaces USING btree (user_id); +-- +-- Name: incident_management_timeline_events fk_d606a2a890; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_x509_certificates_on_subject_key_identifier ON x509_certificates USING btree (subject_key_identifier); +ALTER TABLE ONLY public.incident_management_timeline_events + ADD CONSTRAINT fk_d606a2a890 FOREIGN KEY (promoted_from_note_id) REFERENCES public.notes(id) ON DELETE SET NULL; -CREATE INDEX index_x509_certificates_on_x509_issuer_id ON x509_certificates USING btree (x509_issuer_id); -CREATE INDEX index_x509_commit_signatures_on_commit_sha ON x509_commit_signatures USING btree (commit_sha); +-- +-- Name: lists fk_d6cf4279f7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_x509_commit_signatures_on_project_id ON x509_commit_signatures USING btree (project_id); +ALTER TABLE ONLY public.lists + ADD CONSTRAINT fk_d6cf4279f7 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX index_x509_commit_signatures_on_x509_certificate_id ON x509_commit_signatures USING btree (x509_certificate_id); -CREATE INDEX index_x509_issuers_on_subject_key_identifier ON x509_issuers USING btree (subject_key_identifier); +-- +-- Name: agent_activity_events fk_d6f785c9fc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_xray_reports_on_project_id_and_lang ON xray_reports USING btree (project_id, lang); +ALTER TABLE ONLY public.agent_activity_events + ADD CONSTRAINT fk_d6f785c9fc FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX index_zentao_tracker_data_on_integration_id ON zentao_tracker_data USING btree (integration_id); -CREATE INDEX index_zoekt_indices_on_namespace_id ON zoekt_indices USING btree (namespace_id, zoekt_enabled_namespace_id); +-- +-- Name: user_achievements fk_d7653ef780; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_zoekt_indices_on_replica_id ON zoekt_indices USING btree (zoekt_replica_id); +ALTER TABLE ONLY public.user_achievements + ADD CONSTRAINT fk_d7653ef780 FOREIGN KEY (revoked_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX index_zoekt_indices_on_state_and_id ON zoekt_indices USING btree (state, id); -CREATE UNIQUE INDEX index_zoekt_indices_on_zoekt_node_id_and_id ON zoekt_indices USING btree (zoekt_node_id, id); +-- +-- Name: metrics_users_starred_dashboards fk_d76a2b9a8c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_zoekt_nodes_on_last_seen_at ON zoekt_nodes USING btree (last_seen_at); +ALTER TABLE ONLY public.metrics_users_starred_dashboards + ADD CONSTRAINT fk_d76a2b9a8c FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_zoekt_nodes_on_uuid ON zoekt_nodes USING btree (uuid); -CREATE INDEX index_zoekt_replicas_on_enabled_namespace_id ON zoekt_replicas USING btree (zoekt_enabled_namespace_id); +-- +-- Name: p_ci_pipelines fk_d80e161c54; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_zoekt_replicas_on_namespace_id_enabled_namespace_id ON zoekt_replicas USING btree (namespace_id, zoekt_enabled_namespace_id); +ALTER TABLE public.p_ci_pipelines + ADD CONSTRAINT fk_d80e161c54 FOREIGN KEY (ci_ref_id) REFERENCES public.ci_refs(id) ON DELETE SET NULL; -CREATE INDEX index_zoekt_replicas_on_state ON zoekt_replicas USING btree (state); -CREATE INDEX index_zoekt_repositories_on_project_id ON zoekt_repositories USING btree (project_id); +-- +-- Name: upcoming_reconciliations fk_d81de6b493; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_zoekt_repositories_on_state ON zoekt_repositories USING btree (state); +ALTER TABLE ONLY public.upcoming_reconciliations + ADD CONSTRAINT fk_d81de6b493 FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX index_zoekt_shards_on_index_base_url ON zoekt_shards USING btree (index_base_url); -CREATE INDEX index_zoekt_shards_on_last_seen_at ON zoekt_shards USING btree (last_seen_at); +-- +-- Name: system_note_metadata fk_d83a918cb1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX index_zoekt_shards_on_search_base_url ON zoekt_shards USING btree (search_base_url); +ALTER TABLE ONLY public.system_note_metadata + ADD CONSTRAINT fk_d83a918cb1 FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; -CREATE INDEX index_zoekt_tasks_on_state ON ONLY zoekt_tasks USING btree (state); -CREATE INDEX index_zoekt_tasks_on_zoekt_node_id_and_state_and_perform_at ON ONLY zoekt_tasks USING btree (zoekt_node_id, state, perform_at); +-- +-- Name: sbom_occurrences fk_d857c6edc1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_zoekt_tasks_on_zoekt_repository_id ON ONLY zoekt_tasks USING btree (zoekt_repository_id); +ALTER TABLE ONLY public.sbom_occurrences + ADD CONSTRAINT fk_d857c6edc1 FOREIGN KEY (component_id) REFERENCES public.sbom_components(id) ON DELETE CASCADE; -CREATE INDEX index_zoom_meetings_on_issue_id ON zoom_meetings USING btree (issue_id); -CREATE UNIQUE INDEX index_zoom_meetings_on_issue_id_and_issue_status ON zoom_meetings USING btree (issue_id, issue_status) WHERE (issue_status = 1); +-- +-- Name: dependency_list_exports fk_d871d74675; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX index_zoom_meetings_on_issue_status ON zoom_meetings USING btree (issue_status); +ALTER TABLE ONLY public.dependency_list_exports + ADD CONSTRAINT fk_d871d74675 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX index_zoom_meetings_on_project_id ON zoom_meetings USING btree (project_id); -CREATE INDEX issue_id_issues_prometheus_alert_events_index ON issues_prometheus_alert_events USING btree (prometheus_alert_event_id); +-- +-- Name: todos fk_d94154aa95; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX issue_id_issues_self_managed_rometheus_alert_events_index ON issues_self_managed_prometheus_alert_events USING btree (self_managed_prometheus_alert_event_id); +ALTER TABLE ONLY public.todos + ADD CONSTRAINT fk_d94154aa95 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX issue_user_mentions_on_issue_id_and_note_id_index ON issue_user_mentions USING btree (issue_id, note_id); -CREATE UNIQUE INDEX issue_user_mentions_on_issue_id_index ON issue_user_mentions USING btree (issue_id) WHERE (note_id IS NULL); +-- +-- Name: label_links fk_d97dd08678; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX kubernetes_namespaces_cluster_and_namespace ON clusters_kubernetes_namespaces USING btree (cluster_id, namespace); +ALTER TABLE ONLY public.label_links + ADD CONSTRAINT fk_d97dd08678 FOREIGN KEY (label_id) REFERENCES public.labels(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX merge_request_user_mentions_on_mr_id_and_note_id_index ON merge_request_user_mentions USING btree (merge_request_id, note_id); -CREATE UNIQUE INDEX merge_request_user_mentions_on_mr_id_index ON merge_request_user_mentions USING btree (merge_request_id) WHERE (note_id IS NULL); +-- +-- Name: personal_access_tokens fk_da676c7ca5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX one_canonical_wiki_page_slug_per_metadata ON wiki_page_slugs USING btree (wiki_page_meta_id) WHERE (canonical = true); +ALTER TABLE ONLY public.personal_access_tokens + ADD CONSTRAINT fk_da676c7ca5 FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; -CREATE INDEX p_ci_builds_scheduled_at_idx ON ONLY p_ci_builds USING btree (scheduled_at) WHERE ((scheduled_at IS NOT NULL) AND ((type)::text = 'Ci::Build'::text) AND ((status)::text = 'scheduled'::text)); -CREATE UNIQUE INDEX p_ci_builds_token_encrypted_partition_id_idx ON ONLY p_ci_builds USING btree (token_encrypted, partition_id) WHERE (token_encrypted IS NOT NULL); +-- +-- Name: project_group_links fk_daa8cee94c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX p_ci_job_artifacts_expire_at_job_id_idx1 ON ONLY p_ci_job_artifacts USING btree (expire_at, job_id) WHERE ((locked = 2) AND (expire_at IS NOT NULL)); +ALTER TABLE ONLY public.project_group_links + ADD CONSTRAINT fk_daa8cee94c FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX package_name_index ON packages_packages USING btree (name); -CREATE INDEX packages_packages_failed_verification ON packages_package_files USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +-- +-- Name: project_topics fk_db13576296; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX packages_packages_needs_verification ON packages_package_files USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); +ALTER TABLE ONLY public.project_topics + ADD CONSTRAINT fk_db13576296 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX packages_packages_pending_verification ON packages_package_files USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); -CREATE INDEX pages_deployments_deleted_at_index ON pages_deployments USING btree (id, project_id, path_prefix) WHERE (deleted_at IS NULL); +-- +-- Name: web_hooks fk_db1ea5699b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX partial_idx_bulk_import_exports_on_group_user_and_relation ON bulk_import_exports USING btree (group_id, relation, user_id) WHERE ((group_id IS NOT NULL) AND (user_id IS NOT NULL)); +ALTER TABLE ONLY public.web_hooks + ADD CONSTRAINT fk_db1ea5699b FOREIGN KEY (integration_id) REFERENCES public.integrations(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX partial_idx_bulk_import_exports_on_project_user_and_relation ON bulk_import_exports USING btree (project_id, relation, user_id) WHERE ((project_id IS NOT NULL) AND (user_id IS NOT NULL)); -CREATE INDEX partial_index_ci_builds_on_scheduled_at_with_scheduled_jobs ON ci_builds USING btree (scheduled_at) WHERE ((scheduled_at IS NOT NULL) AND ((type)::text = 'Ci::Build'::text) AND ((status)::text = 'scheduled'::text)); +-- +-- Name: work_item_dates_sources fk_dbbe8917ee; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX partial_index_slack_integrations_with_bot_user_id ON slack_integrations USING btree (id) WHERE (bot_user_id IS NOT NULL); +ALTER TABLE ONLY public.work_item_dates_sources + ADD CONSTRAINT fk_dbbe8917ee FOREIGN KEY (due_date_sourcing_work_item_id) REFERENCES public.issues(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX partial_index_sop_configs_on_namespace_id ON security_orchestration_policy_configurations USING btree (namespace_id) WHERE (namespace_id IS NOT NULL); -CREATE UNIQUE INDEX partial_index_sop_configs_on_project_id ON security_orchestration_policy_configurations USING btree (project_id) WHERE (project_id IS NOT NULL); +-- +-- Name: boards_epic_board_positions fk_dc62428d81; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX partial_index_user_id_app_id_created_at_token_not_revoked ON oauth_access_tokens USING btree (resource_owner_id, application_id, created_at) WHERE (revoked_at IS NULL); +ALTER TABLE ONLY public.boards_epic_board_positions + ADD CONSTRAINT fk_dc62428d81 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX pm_checkpoints_path_components ON pm_checkpoints USING btree (purl_type, data_type, version_format); -CREATE INDEX releases_published_at_index ON releases USING btree (release_published_at); +-- +-- Name: workspaces fk_dc7c316be1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX scan_finding_approval_mr_rule_index_id ON approval_merge_request_rules USING btree (id) WHERE (report_type = 4); +ALTER TABLE ONLY public.workspaces + ADD CONSTRAINT fk_dc7c316be1 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX scan_finding_approval_mr_rule_index_merge_request_id ON approval_merge_request_rules USING btree (merge_request_id) WHERE (report_type = 4); -CREATE INDEX scan_finding_approval_mr_rule_index_mr_id_and_created_at ON approval_merge_request_rules USING btree (merge_request_id, created_at) WHERE (report_type = 4); +-- +-- Name: software_license_policies fk_dca6a58d53; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX scan_finding_approval_project_rule_index_created_at_project_id ON approval_project_rules USING btree (created_at, project_id) WHERE (report_type = 4); +ALTER TABLE ONLY public.software_license_policies + ADD CONSTRAINT fk_dca6a58d53 FOREIGN KEY (approval_policy_rule_id) REFERENCES public.approval_policy_rules(id) ON DELETE CASCADE; -CREATE INDEX scan_finding_approval_project_rule_index_project_id ON approval_project_rules USING btree (project_id) WHERE (report_type = 4); -CREATE INDEX security_findings_project_fingerprint_idx ON ONLY security_findings USING btree (project_fingerprint); +-- +-- Name: epics fk_dccd3f98fc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX security_findings_scan_id_deduplicated_idx ON ONLY security_findings USING btree (scan_id, deduplicated); +ALTER TABLE ONLY public.epics + ADD CONSTRAINT fk_dccd3f98fc FOREIGN KEY (assignee_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE INDEX security_findings_scan_id_id_idx ON ONLY security_findings USING btree (scan_id, id); -CREATE INDEX security_findings_scanner_id_idx ON ONLY security_findings USING btree (scanner_id); +-- +-- Name: protected_branches fk_de9216e774; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX security_findings_severity_idx ON ONLY security_findings USING btree (severity); +ALTER TABLE ONLY public.protected_branches + ADD CONSTRAINT fk_de9216e774 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX security_findings_uuid_scan_id_partition_number_idx ON ONLY security_findings USING btree (uuid, scan_id, partition_number); -CREATE UNIQUE INDEX snippet_user_mentions_on_snippet_id_and_note_id_index ON snippet_user_mentions USING btree (snippet_id, note_id); +-- +-- Name: issues fk_df75a7c8b8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX snippet_user_mentions_on_snippet_id_index ON snippet_user_mentions USING btree (snippet_id) WHERE (note_id IS NULL); +ALTER TABLE ONLY public.issues + ADD CONSTRAINT fk_df75a7c8b8 FOREIGN KEY (promoted_to_epic_id) REFERENCES public.epics(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX taggings_idx ON taggings USING btree (tag_id, taggable_id, taggable_type, context, tagger_id, tagger_type); -CREATE INDEX temp_index_on_users_where_dark_theme ON users USING btree (id) WHERE (theme_id = 11); +-- +-- Name: dependency_list_exports fk_e133f6725e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX term_agreements_unique_index ON term_agreements USING btree (user_id, term_id); +ALTER TABLE ONLY public.dependency_list_exports + ADD CONSTRAINT fk_e133f6725e FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE INDEX tmp_idx_for_feedback_comment_processing ON vulnerability_feedback USING btree (id) WHERE (char_length(comment) > 50000); -CREATE INDEX tmp_idx_for_vulnerability_feedback_migration ON vulnerability_feedback USING btree (id) WHERE ((migrated_to_state_transition = false) AND (feedback_type = 0)); +-- +-- Name: approval_project_rules fk_e1372c912e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX tmp_idx_orphaned_approval_merge_request_rules ON approval_merge_request_rules USING btree (id) WHERE ((report_type = ANY (ARRAY[2, 4])) AND (security_orchestration_policy_configuration_id IS NULL)); +ALTER TABLE ONLY public.approval_project_rules + ADD CONSTRAINT fk_e1372c912e FOREIGN KEY (scan_result_policy_id) REFERENCES public.scan_result_policies(id) ON DELETE CASCADE; -CREATE INDEX tmp_idx_orphaned_approval_project_rules ON approval_project_rules USING btree (id) WHERE ((report_type = ANY (ARRAY[2, 4])) AND (security_orchestration_policy_configuration_id IS NULL)); -CREATE UNIQUE INDEX tmp_idx_packages_dependencies_on_name_version_pattern ON packages_dependencies USING btree (name, version_pattern) WHERE (project_id IS NULL); +-- +-- Name: ci_resources fk_e169a8e3d5_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX tmp_index_ci_job_artifacts_on_expire_at_where_locked_unknown ON ci_job_artifacts USING btree (expire_at, job_id) WHERE ((locked = 2) AND (expire_at IS NOT NULL)); +ALTER TABLE ONLY public.ci_resources + ADD CONSTRAINT fk_e169a8e3d5_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL; -CREATE INDEX tmp_index_for_null_member_namespace_id ON members USING btree (member_namespace_id) WHERE (member_namespace_id IS NULL); -CREATE INDEX tmp_index_for_owasp_null_on_vulnerability_reads ON vulnerability_reads USING btree (vulnerability_id) WHERE (owasp_top_10 IS NULL); +-- +-- Name: ci_sources_pipelines fk_e1bad85861_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX tmp_index_for_project_namespace_id_migration_on_routes ON routes USING btree (id) WHERE ((namespace_id IS NULL) AND ((source_type)::text = 'Project'::text)); +ALTER TABLE ONLY public.ci_sources_pipelines + ADD CONSTRAINT fk_e1bad85861_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -CREATE INDEX tmp_index_for_succeeded_security_scans ON security_scans USING btree (id) WHERE (status = 1); -CREATE UNIQUE INDEX tmp_index_issues_on_tmp_epic_id ON issues USING btree (tmp_epic_id); +-- +-- Name: ci_sources_pipelines fk_e1bad85861_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX tmp_index_on_vulnerabilities_non_dismissed ON vulnerabilities USING btree (id) WHERE (state <> 2); +ALTER TABLE ONLY public.ci_sources_pipelines + ADD CONSTRAINT fk_e1bad85861_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -CREATE INDEX tmp_index_project_statistics_cont_registry_size ON project_statistics USING btree (project_id) WHERE (container_registry_size = 0); -CREATE INDEX tmp_index_vulnerability_overlong_title_html ON vulnerabilities USING btree (id) WHERE (length(title_html) > 800); +-- +-- Name: p_ci_builds_metadata fk_e20479742e_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX tmp_index_vulnerability_reads_where_state_is_detected ON vulnerability_reads USING btree (id) WHERE (state = 1); +ALTER TABLE public.p_ci_builds_metadata + ADD CONSTRAINT fk_e20479742e_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -CREATE UNIQUE INDEX u_compliance_checks_for_requirement ON compliance_checks USING btree (requirement_id, check_name); -CREATE UNIQUE INDEX u_compliance_requirements_for_framework ON compliance_requirements USING btree (framework_id, name); +-- +-- Name: gitlab_subscriptions fk_e2595d00a1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX u_project_compliance_standards_adherence_for_reporting ON project_compliance_standards_adherence USING btree (project_id, check_name, standard); +ALTER TABLE ONLY public.gitlab_subscriptions + ADD CONSTRAINT fk_e2595d00a1 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX u_zoekt_indices_zoekt_enabled_namespace_id_and_zoekt_node_id ON zoekt_indices USING btree (zoekt_enabled_namespace_id, zoekt_node_id); -CREATE UNIQUE INDEX u_zoekt_repositories_zoekt_index_id_and_project_id ON zoekt_repositories USING btree (zoekt_index_id, project_id); +-- +-- Name: approval_merge_request_rules fk_e33a9aaf67; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX uniq_audit_group_event_filters_destination_id_and_event_type ON audit_events_group_streaming_event_type_filters USING btree (external_streaming_destination_id, audit_event_type); +ALTER TABLE ONLY public.approval_merge_request_rules + ADD CONSTRAINT fk_e33a9aaf67 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX uniq_audit_instance_event_filters_destination_id_and_event_type ON audit_events_instance_streaming_event_type_filters USING btree (external_streaming_destination_id, audit_event_type); -CREATE UNIQUE INDEX uniq_google_cloud_logging_configuration_namespace_id_and_name ON audit_events_google_cloud_logging_configurations USING btree (namespace_id, name); +-- +-- Name: abuse_events fk_e5ce49c215; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX uniq_idx_packages_packages_on_project_id_name_version_ml_model ON packages_packages USING btree (project_id, name, version) WHERE ((package_type = 14) AND (status <> 4)); +ALTER TABLE ONLY public.abuse_events + ADD CONSTRAINT fk_e5ce49c215 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX uniq_idx_project_compliance_framework_on_project_framework ON project_compliance_framework_settings USING btree (project_id, framework_id); -CREATE UNIQUE INDEX uniq_idx_security_policy_requirements_on_requirement_and_policy ON security_policy_requirements USING btree (compliance_framework_security_policy_id, compliance_requirement_id); +-- +-- Name: user_preferences fk_e5e029c10b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX uniq_idx_streaming_destination_id_and_namespace_id ON audit_events_streaming_instance_namespace_filters USING btree (external_streaming_destination_id, namespace_id); +ALTER TABLE ONLY public.user_preferences + ADD CONSTRAINT fk_e5e029c10b FOREIGN KEY (home_organization_id) REFERENCES public.organizations(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX uniq_idx_streaming_group_destination_id_and_namespace_id ON audit_events_streaming_group_namespace_filters USING btree (external_streaming_destination_id, namespace_id); -CREATE UNIQUE INDEX uniq_idx_user_add_on_assignments_on_add_on_purchase_and_user ON subscription_user_add_on_assignments USING btree (add_on_purchase_id, user_id); +-- +-- Name: packages_debian_group_components fk_e63e8ee3b1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX uniq_pkgs_deb_grp_architectures_on_distribution_id_and_name ON packages_debian_group_architectures USING btree (distribution_id, name); +ALTER TABLE ONLY public.packages_debian_group_components + ADD CONSTRAINT fk_e63e8ee3b1 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX uniq_pkgs_deb_grp_components_on_distribution_id_and_name ON packages_debian_group_components USING btree (distribution_id, name); -CREATE UNIQUE INDEX uniq_pkgs_deb_proj_architectures_on_distribution_id_and_name ON packages_debian_project_architectures USING btree (distribution_id, name); +-- +-- Name: merge_requests fk_e719a85f8a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX uniq_pkgs_deb_proj_components_on_distribution_id_and_name ON packages_debian_project_components USING btree (distribution_id, name); +ALTER TABLE ONLY public.merge_requests + ADD CONSTRAINT fk_e719a85f8a FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX uniq_pkgs_debian_group_distributions_group_id_and_codename ON packages_debian_group_distributions USING btree (group_id, codename); -CREATE UNIQUE INDEX uniq_pkgs_debian_group_distributions_group_id_and_suite ON packages_debian_group_distributions USING btree (group_id, suite); +-- +-- Name: vulnerability_state_transitions fk_e719dc63df; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX uniq_pkgs_debian_project_distributions_project_id_and_codename ON packages_debian_project_distributions USING btree (project_id, codename); +ALTER TABLE ONLY public.vulnerability_state_transitions + ADD CONSTRAINT fk_e719dc63df FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX uniq_pkgs_debian_project_distributions_project_id_and_suite ON packages_debian_project_distributions USING btree (project_id, suite); -CREATE UNIQUE INDEX unique_amazon_s3_configurations_namespace_id_and_bucket_name ON audit_events_amazon_s3_configurations USING btree (namespace_id, bucket_name); +-- +-- Name: issue_links fk_e71bb44f1f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX unique_amazon_s3_configurations_namespace_id_and_name ON audit_events_amazon_s3_configurations USING btree (namespace_id, name); +ALTER TABLE ONLY public.issue_links + ADD CONSTRAINT fk_e71bb44f1f FOREIGN KEY (target_id) REFERENCES public.issues(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX unique_any_approver_merge_request_rule_type_post_merge ON approval_merge_request_rules USING btree (merge_request_id, rule_type, applicable_post_merge) WHERE (rule_type = 4); -CREATE UNIQUE INDEX unique_audit_events_group_namespace_filters_destination_id ON audit_events_streaming_http_group_namespace_filters USING btree (external_audit_event_destination_id); +-- +-- Name: csv_issue_imports fk_e71c0ae362; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX unique_audit_events_group_namespace_filters_namespace_id ON audit_events_streaming_http_group_namespace_filters USING btree (namespace_id); +ALTER TABLE ONLY public.csv_issue_imports + ADD CONSTRAINT fk_e71c0ae362 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX unique_audit_events_instance_namespace_filters_destination_id ON audit_events_streaming_http_instance_namespace_filters USING btree (audit_events_instance_external_audit_event_destination_id); -CREATE UNIQUE INDEX unique_batched_background_migrations_queued_migration_version ON batched_background_migrations USING btree (queued_migration_version); +-- +-- Name: namespaces fk_e7a0b20a6b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX unique_ci_builds_token_encrypted_and_partition_id ON ci_builds USING btree (token_encrypted, partition_id) WHERE (token_encrypted IS NOT NULL); +ALTER TABLE ONLY public.namespaces + ADD CONSTRAINT fk_e7a0b20a6b FOREIGN KEY (custom_project_templates_group_id) REFERENCES public.namespaces(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX unique_compliance_framework_security_policies_framework_id ON compliance_framework_security_policies USING btree (framework_id, policy_configuration_id, policy_index); -CREATE UNIQUE INDEX unique_external_audit_event_destination_namespace_id_and_name ON audit_events_external_audit_event_destinations USING btree (namespace_id, name); +-- +-- Name: fork_networks fk_e7b436b2b5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX unique_google_cloud_logging_configurations_on_namespace_id ON audit_events_google_cloud_logging_configurations USING btree (namespace_id, google_project_id_name, log_id_name); +ALTER TABLE ONLY public.fork_networks + ADD CONSTRAINT fk_e7b436b2b5 FOREIGN KEY (root_project_id) REFERENCES public.projects(id) ON DELETE SET NULL; -CREATE UNIQUE INDEX unique_idx_member_approvals_on_pending_status ON member_approvals USING btree (user_id, member_namespace_id) WHERE (status = 0); -CREATE UNIQUE INDEX unique_idx_namespaces_storage_limit_exclusions_on_namespace_id ON namespaces_storage_limit_exclusions USING btree (namespace_id); +-- +-- Name: error_tracking_error_events fk_e84882273e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX unique_import_source_users_on_reassign_to_user_id_and_import ON import_source_users USING btree (reassign_to_user_id, namespace_id, source_hostname, import_type); +ALTER TABLE ONLY public.error_tracking_error_events + ADD CONSTRAINT fk_e84882273e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX unique_import_source_users_source_identifier_and_import_source ON import_source_users USING btree (source_user_identifier, namespace_id, source_hostname, import_type); -CREATE UNIQUE INDEX unique_index_ci_build_pending_states_on_partition_id_build_id ON ci_build_pending_states USING btree (partition_id, build_id); +-- +-- Name: ml_candidates fk_e86e0bfa5a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX unique_index_for_credit_card_validation_payment_method_xid ON user_credit_card_validations USING btree (zuora_payment_method_xid) WHERE (zuora_payment_method_xid IS NOT NULL); +ALTER TABLE ONLY public.ml_candidates + ADD CONSTRAINT fk_e86e0bfa5a FOREIGN KEY (model_version_id) REFERENCES public.ml_model_versions(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX unique_index_for_project_pages_unique_domain ON project_settings USING btree (pages_unique_domain) WHERE (pages_unique_domain IS NOT NULL); -CREATE UNIQUE INDEX unique_index_ml_model_metadata_name ON ml_model_metadata USING btree (model_id, name); +-- +-- Name: integrations fk_e8fe908a34; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX unique_index_ml_model_version_metadata_name ON ml_model_version_metadata USING btree (model_version_id, name); +ALTER TABLE ONLY public.integrations + ADD CONSTRAINT fk_e8fe908a34 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX unique_index_on_system_note_metadata_id ON resource_link_events USING btree (system_note_metadata_id); -CREATE UNIQUE INDEX unique_index_sysaccess_ms_access_tokens_on_sysaccess_ms_app_id ON system_access_microsoft_graph_access_tokens USING btree (system_access_microsoft_application_id); +-- +-- Name: pages_domains fk_ea2f6dfc6f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX unique_instance_amazon_s3_configurations_bucket_name ON audit_events_instance_amazon_s3_configurations USING btree (bucket_name); +ALTER TABLE ONLY public.pages_domains + ADD CONSTRAINT fk_ea2f6dfc6f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX unique_instance_amazon_s3_configurations_name ON audit_events_instance_amazon_s3_configurations USING btree (name); -CREATE UNIQUE INDEX unique_instance_audit_event_destination_name ON audit_events_instance_external_audit_event_destinations USING btree (name); +-- +-- Name: packages_debian_project_distribution_keys fk_eb2224a3c0; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX unique_instance_google_cloud_logging_configurations ON audit_events_instance_google_cloud_logging_configurations USING btree (google_project_id_name, log_id_name); +ALTER TABLE ONLY public.packages_debian_project_distribution_keys + ADD CONSTRAINT fk_eb2224a3c0 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX unique_instance_google_cloud_logging_configurations_name ON audit_events_instance_google_cloud_logging_configurations USING btree (name); -CREATE UNIQUE INDEX unique_merge_request_metrics_by_merge_request_id ON merge_request_metrics USING btree (merge_request_id); +-- +-- Name: dast_profiles_tags fk_eb7e19f8da; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX unique_ml_model_versions_on_model_id_and_id ON ml_model_versions USING btree (model_id, id DESC); +ALTER TABLE ONLY public.dast_profiles_tags + ADD CONSTRAINT fk_eb7e19f8da FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX unique_namespace_cluster_agent_mappings_for_agent_association ON remote_development_namespace_cluster_agent_mappings USING btree (namespace_id, cluster_agent_id); -CREATE UNIQUE INDEX unique_organizations_on_path_case_insensitive ON organizations USING btree (lower(path)); +-- +-- Name: compliance_requirements fk_ebf5c3365b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX unique_packages_project_id_and_name_and_version_when_debian ON packages_packages USING btree (project_id, name, version) WHERE ((package_type = 9) AND (status <> 4)); +ALTER TABLE ONLY public.compliance_requirements + ADD CONSTRAINT fk_ebf5c3365b FOREIGN KEY (framework_id) REFERENCES public.compliance_management_frameworks(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX unique_pool_repositories_on_disk_path_and_shard_id ON pool_repositories USING btree (disk_path, shard_id); -CREATE UNIQUE INDEX unique_postgres_async_fk_validations_name_and_table_name ON postgres_async_foreign_key_validations USING btree (name, table_name); +-- +-- Name: catalog_resource_components fk_ec417536da; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX unique_projects_on_name_namespace_id ON projects USING btree (name, namespace_id); +ALTER TABLE ONLY public.catalog_resource_components + ADD CONSTRAINT fk_ec417536da FOREIGN KEY (catalog_resource_id) REFERENCES public.catalog_resources(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX unique_streaming_event_type_filters_destination_id ON audit_events_streaming_event_type_filters USING btree (external_audit_event_destination_id, audit_event_type); -CREATE UNIQUE INDEX unique_streaming_instance_event_type_filters_destination_id ON audit_events_streaming_instance_event_type_filters USING btree (instance_external_audit_event_destination_id, audit_event_type); +-- +-- Name: workspaces fk_ec70695b2c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX unique_user_id_and_setting_type ON vs_code_settings USING btree (user_id, setting_type); +ALTER TABLE ONLY public.workspaces + ADD CONSTRAINT fk_ec70695b2c FOREIGN KEY (personal_access_token_id) REFERENCES public.personal_access_tokens(id) ON DELETE RESTRICT; -CREATE UNIQUE INDEX unique_vuln_merge_request_link_vuln_id_and_mr_id ON vulnerability_merge_request_links USING btree (vulnerability_id, merge_request_id); -CREATE UNIQUE INDEX unique_zoekt_enabled_namespaces_on_root_namespace_id ON zoekt_enabled_namespaces USING btree (root_namespace_id); +-- +-- Name: merge_requests_compliance_violations fk_ec881c1c6f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX unique_zoekt_shards_uuid ON zoekt_shards USING btree (uuid); +ALTER TABLE ONLY public.merge_requests_compliance_violations + ADD CONSTRAINT fk_ec881c1c6f FOREIGN KEY (violating_user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE INDEX user_follow_users_followee_id_idx ON user_follow_users USING btree (followee_id); -CREATE UNIQUE INDEX virtual_reg_packages_maven_reg_upstreams_on_unique_reg_ids ON virtual_registries_packages_maven_registry_upstreams USING btree (registry_id); +-- +-- Name: coverage_fuzzing_corpuses fk_ef5ebf339f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE UNIQUE INDEX virtual_reg_packages_maven_reg_upstreams_on_unique_upstream_ids ON virtual_registries_packages_maven_registry_upstreams USING btree (upstream_id); +ALTER TABLE ONLY public.coverage_fuzzing_corpuses + ADD CONSTRAINT fk_ef5ebf339f FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; -CREATE UNIQUE INDEX virtual_registries_pkgs_maven_registries_on_unique_group_ids ON virtual_registries_packages_maven_registries USING btree (group_id); -CREATE UNIQUE INDEX vulnerability_occurrence_pipelines_on_unique_keys ON vulnerability_occurrence_pipelines USING btree (occurrence_id, pipeline_id); +-- +-- Name: merge_request_context_commits fk_ef6766ed57; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX wi_colors_namespace_id_index ON work_item_colors USING btree (namespace_id); +ALTER TABLE ONLY public.merge_request_context_commits + ADD CONSTRAINT fk_ef6766ed57 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE INDEX wi_datessources_due_date_sourcing_milestone_id_index ON work_item_dates_sources USING btree (due_date_sourcing_milestone_id); -CREATE INDEX wi_datessources_due_date_sourcing_work_item_id_index ON work_item_dates_sources USING btree (due_date_sourcing_work_item_id); +-- +-- Name: approval_project_rules fk_efa5a1e3fb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE INDEX wi_datessources_namespace_id_index ON work_item_dates_sources USING btree (namespace_id); +ALTER TABLE ONLY public.approval_project_rules + ADD CONSTRAINT fk_efa5a1e3fb FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES public.security_orchestration_policy_configurations(id) ON DELETE CASCADE; -CREATE INDEX wi_datessources_start_date_sourcing_milestone_id_index ON work_item_dates_sources USING btree (start_date_sourcing_milestone_id); -CREATE INDEX wi_datessources_start_date_sourcing_work_item_id_index ON work_item_dates_sources USING btree (start_date_sourcing_work_item_id); +-- +-- Name: vulnerabilities fk_efb96ab1e2; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00_pkey; +ALTER TABLE ONLY public.vulnerabilities + ADD CONSTRAINT fk_efb96ab1e2 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01_pkey; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02_pkey; +-- +-- Name: dora_daily_metrics fk_efc32a39fa; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03_pkey; +ALTER TABLE ONLY public.dora_daily_metrics + ADD CONSTRAINT fk_efc32a39fa FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04_pkey; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05_pkey; +-- +-- Name: approval_group_rules_groups fk_efff219a48; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06_pkey; +ALTER TABLE ONLY public.approval_group_rules_groups + ADD CONSTRAINT fk_efff219a48 FOREIGN KEY (approval_group_rule_id) REFERENCES public.approval_group_rules(id) ON DELETE CASCADE; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07_pkey; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08_pkey; +-- +-- Name: emails fk_emails_user_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09_pkey; +ALTER TABLE ONLY public.emails + ADD CONSTRAINT fk_emails_user_id FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10_pkey; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11_pkey; +-- +-- Name: epics fk_epics_issue_id_with_on_delete_cascade; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12_pkey; +ALTER TABLE ONLY public.epics + ADD CONSTRAINT fk_epics_issue_id_with_on_delete_cascade FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13_pkey; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14_pkey; +-- +-- Name: epics fk_epics_on_parent_id_with_on_delete_nullify; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15_pkey; +ALTER TABLE ONLY public.epics + ADD CONSTRAINT fk_epics_on_parent_id_with_on_delete_nullify FOREIGN KEY (parent_id) REFERENCES public.epics(id) ON DELETE SET NULL; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16_pkey; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17_pkey; +-- +-- Name: clusters fk_f05c5e5a42; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18_pkey; +ALTER TABLE ONLY public.clusters + ADD CONSTRAINT fk_f05c5e5a42 FOREIGN KEY (management_project_id) REFERENCES public.projects(id) ON DELETE SET NULL; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19_pkey; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20_pkey; +-- +-- Name: vulnerability_external_issue_links fk_f07bb8233d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21_pkey; +ALTER TABLE ONLY public.vulnerability_external_issue_links + ADD CONSTRAINT fk_f07bb8233d FOREIGN KEY (vulnerability_id) REFERENCES public.vulnerabilities(id) ON DELETE CASCADE; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22_pkey; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23_pkey; +-- +-- Name: epics fk_f081aa4489; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24_pkey; +ALTER TABLE ONLY public.epics + ADD CONSTRAINT fk_f081aa4489 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25_pkey; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26_pkey; +-- +-- Name: abuse_reports fk_f10de8b524; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27_pkey; +ALTER TABLE ONLY public.abuse_reports + ADD CONSTRAINT fk_f10de8b524 FOREIGN KEY (resolved_by_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28_pkey; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29_pkey; +-- +-- Name: timelogs fk_f12ef8db70; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30_pkey; +ALTER TABLE ONLY public.timelogs + ADD CONSTRAINT fk_f12ef8db70 FOREIGN KEY (timelog_category_id) REFERENCES public.timelog_categories(id) ON DELETE SET NULL; -ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31_pkey; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00_pkey; +-- +-- Name: boards fk_f15266b5f9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01_pkey; +ALTER TABLE ONLY public.boards + ADD CONSTRAINT fk_f15266b5f9 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02_pkey; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03_pkey; +-- +-- Name: epic_user_mentions fk_f1ab52883e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04_pkey; +ALTER TABLE ONLY public.epic_user_mentions + ADD CONSTRAINT fk_f1ab52883e FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05_pkey; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06_pkey; +-- +-- Name: observability_metrics_issues_connections fk_f218d84a14; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07_pkey; +ALTER TABLE ONLY public.observability_metrics_issues_connections + ADD CONSTRAINT fk_f218d84a14 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08_pkey; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09_pkey; +-- +-- Name: workspaces_agent_configs fk_f25d0fbfae; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10_pkey; +ALTER TABLE ONLY public.workspaces_agent_configs + ADD CONSTRAINT fk_f25d0fbfae FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11_pkey; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12_pkey; +-- +-- Name: p_ci_pipeline_variables fk_f29c5f4380_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13_pkey; +ALTER TABLE public.p_ci_pipeline_variables + ADD CONSTRAINT fk_f29c5f4380_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14_pkey; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15_pkey; +-- +-- Name: ci_pipeline_variables fk_f29c5f4380_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16_pkey; +ALTER TABLE ONLY public.ci_pipeline_variables + ADD CONSTRAINT fk_f29c5f4380_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17_pkey; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18_pkey; +-- +-- Name: zoekt_indices fk_f34800a202; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19_pkey; +ALTER TABLE ONLY public.zoekt_indices + ADD CONSTRAINT fk_f34800a202 FOREIGN KEY (zoekt_node_id) REFERENCES public.zoekt_nodes(id) ON DELETE CASCADE; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20_pkey; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21_pkey; +-- +-- Name: status_check_responses fk_f3953d86c6; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22_pkey; +ALTER TABLE ONLY public.status_check_responses + ADD CONSTRAINT fk_f3953d86c6 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23_pkey; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24_pkey; +-- +-- Name: design_management_designs_versions fk_f4d25ba00c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25_pkey; +ALTER TABLE ONLY public.design_management_designs_versions + ADD CONSTRAINT fk_f4d25ba00c FOREIGN KEY (version_id) REFERENCES public.design_management_versions(id) ON DELETE CASCADE; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26_pkey; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27_pkey; +-- +-- Name: scan_result_policy_violations fk_f53706dbdd; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28_pkey; +ALTER TABLE ONLY public.scan_result_policy_violations + ADD CONSTRAINT fk_f53706dbdd FOREIGN KEY (scan_result_policy_id) REFERENCES public.scan_result_policies(id) ON DELETE CASCADE; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29_pkey; -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30_pkey; +-- +-- Name: vulnerability_user_mentions fk_f5768ba1ec; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31_pkey; +ALTER TABLE ONLY public.vulnerability_user_mentions + ADD CONSTRAINT fk_f5768ba1ec FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_000925dbd7; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_006f943df6; +-- +-- Name: analytics_devops_adoption_segments fk_f5aa768998; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_009e6c1133; +ALTER TABLE ONLY public.analytics_devops_adoption_segments + ADD CONSTRAINT fk_f5aa768998 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_02749b504c; -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_0287f5ba09; +-- +-- Name: boards_epic_list_user_preferences fk_f5f2fe5c1f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_03aa30a758; +ALTER TABLE ONLY public.boards_epic_list_user_preferences + ADD CONSTRAINT fk_f5f2fe5c1f FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_055179c3ea; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_061fe00461; +-- +-- Name: user_project_callouts fk_f62dd11a33; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_070cef72c3; +ALTER TABLE ONLY public.user_project_callouts + ADD CONSTRAINT fk_f62dd11a33 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_08b7071d9b; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_08e3cfc564; +-- +-- Name: ml_model_metadata fk_f68c7e109c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_09af45dd6f; +ALTER TABLE ONLY public.ml_model_metadata + ADD CONSTRAINT fk_f68c7e109c FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_09fe0c1886; -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_0c153e2eae; +-- +-- Name: workspaces fk_f78aeddc77; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_0ca85f3d71; +ALTER TABLE ONLY public.workspaces + ADD CONSTRAINT fk_f78aeddc77 FOREIGN KEY (cluster_agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_0d837a5dda; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_0e98daa03c; +-- +-- Name: cluster_agents fk_f7d43dee13; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_0f28a65451; +ALTER TABLE ONLY public.cluster_agents + ADD CONSTRAINT fk_f7d43dee13 FOREIGN KEY (created_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_10588dbff0; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_106d7d97e8; +-- +-- Name: protected_tag_create_access_levels fk_f7dfda8c51; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_1076a9a98a; +ALTER TABLE ONLY public.protected_tag_create_access_levels + ADD CONSTRAINT fk_f7dfda8c51 FOREIGN KEY (protected_tag_id) REFERENCES public.protected_tags(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_107e123e17; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1230a7a402; +-- +-- Name: application_settings fk_f9867b3540; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_142c4e7ea4; +ALTER TABLE ONLY public.application_settings + ADD CONSTRAINT fk_f9867b3540 FOREIGN KEY (web_ide_oauth_application_id) REFERENCES public.oauth_applications(id) ON DELETE SET NULL; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_14e4fa1d7d; -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_14f3645821; +-- +-- Name: p_ci_stages fk_fb57e6cc56_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_16627b455e; +ALTER TABLE public.p_ci_stages + ADD CONSTRAINT fk_fb57e6cc56_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_17fa2812c5; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_19aa18ccc9; +-- +-- Name: ci_stages fk_fb57e6cc56_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_19f4ed8614; +ALTER TABLE ONLY public.ci_stages + ADD CONSTRAINT fk_fb57e6cc56_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_1a0388713a; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1a349ed064; +-- +-- Name: agent_group_authorizations fk_fb70782616; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1af932a3c7; +ALTER TABLE ONLY public.agent_group_authorizations + ADD CONSTRAINT fk_fb70782616 FOREIGN KEY (agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1b0ea30bdb; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_1b47bbbb6a; +-- +-- Name: system_note_metadata fk_fbd87415c9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1f6c3faabe; +ALTER TABLE ONLY public.system_note_metadata + ADD CONSTRAINT fk_fbd87415c9 FOREIGN KEY (description_version_id) REFERENCES public.description_versions(id) ON DELETE SET NULL; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1f8af04ed1; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_201c5ddbe9; +-- +-- Name: work_item_dates_sources fk_fc7bc5e687; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_20353089e0; +ALTER TABLE ONLY public.work_item_dates_sources + ADD CONSTRAINT fk_fc7bc5e687 FOREIGN KEY (due_date_sourcing_milestone_id) REFERENCES public.milestones(id) ON DELETE SET NULL; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_203dd694bc; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_206349925b; +-- +-- Name: packages_debian_publications fk_fd1ad5dd37; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_208e7ef042; +ALTER TABLE ONLY public.packages_debian_publications + ADD CONSTRAINT fk_fd1ad5dd37 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_2098118748; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_20c6491c6e; +-- +-- Name: abuse_report_events fk_fdd4d610e0; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_21db459e34; +ALTER TABLE ONLY public.abuse_report_events + ADD CONSTRAINT fk_fdd4d610e0 FOREIGN KEY (abuse_report_id) REFERENCES public.abuse_reports(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_21e262390a; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_2208bd7d7f; +-- +-- Name: approval_merge_request_rule_sources fk_fea41830d0; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_223592b4a1; +ALTER TABLE ONLY public.approval_merge_request_rule_sources + ADD CONSTRAINT fk_fea41830d0 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_22acc9ab11; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_22ed8f01dd; +-- +-- Name: import_placeholder_memberships fk_ffae4107ac; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_234d38a657; +ALTER TABLE ONLY public.import_placeholder_memberships + ADD CONSTRAINT fk_ffae4107ac FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_23783dc748; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_241e9a574c; +-- +-- Name: project_import_data fk_ffb9ee3a10; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_24ac321751; +ALTER TABLE ONLY public.project_import_data + ADD CONSTRAINT fk_ffb9ee3a10 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_25e2aaee9b; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_2653e7eeb8; +-- +-- Name: issues fk_ffed080f01; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_2745f5a388; +ALTER TABLE ONLY public.issues + ADD CONSTRAINT fk_ffed080f01 FOREIGN KEY (updated_by_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_27759556bc; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_27d7ad78d8; +-- +-- Name: geo_event_log fk_geo_event_log_on_geo_event_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_281840d2d1; +ALTER TABLE ONLY public.geo_event_log + ADD CONSTRAINT fk_geo_event_log_on_geo_event_id FOREIGN KEY (geo_event_id) REFERENCES public.geo_events(id) ON DELETE CASCADE; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_2945cf4c6d; -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_296f64df5c; +-- +-- Name: members fk_member_role_on_members; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2ad4b4fdbc; +ALTER TABLE ONLY public.members + ADD CONSTRAINT fk_member_role_on_members FOREIGN KEY (member_role_id) REFERENCES public.member_roles(id) ON DELETE SET NULL; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2b7c0a294e; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_2bac9d64a0; +-- +-- Name: ml_candidate_metrics fk_ml_candidate_metrics_on_candidate_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2c6422f668; +ALTER TABLE ONLY public.ml_candidate_metrics + ADD CONSTRAINT fk_ml_candidate_metrics_on_candidate_id FOREIGN KEY (candidate_id) REFERENCES public.ml_candidates(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2dfcdbe81e; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_2e1054b181; +-- +-- Name: ml_candidate_params fk_ml_candidate_params_on_candidate_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2e6991d05b; +ALTER TABLE ONLY public.ml_candidate_params + ADD CONSTRAINT fk_ml_candidate_params_on_candidate_id FOREIGN KEY (candidate_id) REFERENCES public.ml_candidates(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_2f80c360c3; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2fc271c673; +-- +-- Name: ml_candidates fk_ml_candidates_on_user_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_2fcfd0dc70; +ALTER TABLE ONLY public.ml_candidates + ADD CONSTRAINT fk_ml_candidates_on_user_id FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_3005c75335; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_3206c1e6af; +-- +-- Name: ml_experiments fk_ml_experiments_on_user_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_3249505125; +ALTER TABLE ONLY public.ml_experiments + ADD CONSTRAINT fk_ml_experiments_on_user_id FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_331eb67441; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_34a8b08081; +-- +-- Name: path_locks fk_path_locks_user_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_3640194b77; +ALTER TABLE ONLY public.path_locks + ADD CONSTRAINT fk_path_locks_user_id FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_372160a706; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_389dd3c9fc; +-- +-- Name: personal_access_tokens fk_personal_access_tokens_user_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_38a538234e; +ALTER TABLE ONLY public.personal_access_tokens + ADD CONSTRAINT fk_personal_access_tokens_user_id FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_39625b8a41; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_399dc06649; +-- +-- Name: project_settings fk_project_settings_push_rule_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_3a10b315c0; +ALTER TABLE ONLY public.project_settings + ADD CONSTRAINT fk_project_settings_push_rule_id FOREIGN KEY (push_rule_id) REFERENCES public.push_rules(id) ON DELETE SET NULL; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_3a7d21a6ee; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_3a8848c00b; +-- +-- Name: projects fk_projects_namespace_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_3b09ab5902; +ALTER TABLE ONLY public.projects + ADD CONSTRAINT fk_projects_namespace_id FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE RESTRICT; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_3bc2eedca5; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_3c2a3a6ac9; +-- +-- Name: protected_branch_merge_access_levels fk_protected_branch_merge_access_levels_user_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_3dbde77b8b; +ALTER TABLE ONLY public.protected_branch_merge_access_levels + ADD CONSTRAINT fk_protected_branch_merge_access_levels_user_id FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_3e6be332b7; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_4137a6fac3; +-- +-- Name: protected_branch_push_access_levels fk_protected_branch_push_access_levels_user_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_41a1c3a4c6; +ALTER TABLE ONLY public.protected_branch_push_access_levels + ADD CONSTRAINT fk_protected_branch_push_access_levels_user_id FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_435802dd01; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_436fa9ad5f; +-- +-- Name: protected_tag_create_access_levels fk_protected_tag_create_access_levels_user_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_453a659cb6; +ALTER TABLE ONLY public.protected_tag_create_access_levels + ADD CONSTRAINT fk_protected_tag_create_access_levels_user_id FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_46b989b294; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_4717e7049b; +-- +-- Name: scan_execution_policy_rules fk_rails_003cb62f9b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_47638677a3; +ALTER TABLE ONLY public.scan_execution_policy_rules + ADD CONSTRAINT fk_rails_003cb62f9b FOREIGN KEY (security_policy_management_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4810ac88f5; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_482a09e0ee; +-- +-- Name: approval_merge_request_rules fk_rails_004ce82224; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_491b4b749e; +ALTER TABLE ONLY public.approval_merge_request_rules + ADD CONSTRAINT fk_rails_004ce82224 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4a243772d7; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_4b1793a4c4; +-- +-- Name: namespace_statistics fk_rails_0062050394; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_4b22560035; +ALTER TABLE ONLY public.namespace_statistics + ADD CONSTRAINT fk_rails_0062050394 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4c2645eef2; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_4c9d14f978; +-- +-- Name: p_ci_build_sources fk_rails_023578ae70; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_4d04210a95; +ALTER TABLE public.p_ci_build_sources + ADD CONSTRAINT fk_rails_023578ae70 FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_4d4f2f7de6; -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_4db5aa5872; +-- +-- Name: automation_rules fk_rails_025b519b8d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4dead6f314; +ALTER TABLE ONLY public.automation_rules + ADD CONSTRAINT fk_rails_025b519b8d FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4e6ce1c371; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_4ea50d3a5b; +-- +-- Name: incident_management_oncall_participants fk_rails_032b12996a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4f2eb7a06b; +ALTER TABLE ONLY public.incident_management_oncall_participants + ADD CONSTRAINT fk_rails_032b12996a FOREIGN KEY (oncall_rotation_id) REFERENCES public.incident_management_oncall_rotations(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_4f6fc34e57; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_50272372ba; +-- +-- Name: events fk_rails_0434b48643; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5034eae5ff; +ALTER TABLE ONLY public.events + ADD CONSTRAINT fk_rails_0434b48643 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_50c09f6e04; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5111e3e7e7; +-- +-- Name: incident_management_pending_issue_escalations fk_rails_0470889ee5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_52ea79bf8e; +ALTER TABLE public.incident_management_pending_issue_escalations + ADD CONSTRAINT fk_rails_0470889ee5 FOREIGN KEY (rule_id) REFERENCES public.incident_management_escalation_rules(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_541cc045fc; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5445e466ee; +-- +-- Name: ip_restrictions fk_rails_04a93778d5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_551676e972; +ALTER TABLE ONLY public.ip_restrictions + ADD CONSTRAINT fk_rails_04a93778d5 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_56281bfb73; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_5660b1b38e; +-- +-- Name: terraform_state_versions fk_rails_04f176e239; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_584c1e6fb0; +ALTER TABLE ONLY public.terraform_state_versions + ADD CONSTRAINT fk_rails_04f176e239 FOREIGN KEY (terraform_state_id) REFERENCES public.terraform_states(id) ON DELETE CASCADE; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5913107510; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_5968e77935; +-- +-- Name: search_namespace_index_assignments fk_rails_06f9b905d3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_59a8209ab6; +ALTER TABLE ONLY public.search_namespace_index_assignments + ADD CONSTRAINT fk_rails_06f9b905d3 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id); -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_59ce40fcc4; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_59cfd5bc9a; +-- +-- Name: issue_assignment_events fk_rails_07683f8e80; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5a5f39d824; +ALTER TABLE ONLY public.issue_assignment_events + ADD CONSTRAINT fk_rails_07683f8e80 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5b613b5fcf; -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_5b944f308d; +-- +-- Name: virtual_registries_packages_maven_cached_responses fk_rails_0816e694a3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_5bc2f32084; +ALTER TABLE ONLY public.virtual_registries_packages_maven_cached_responses + ADD CONSTRAINT fk_rails_0816e694a3 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5bfa62771b; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5c4053b63d; +-- +-- Name: security_policies fk_rails_08722e8ac7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_5db09170d4; +ALTER TABLE ONLY public.security_policies + ADD CONSTRAINT fk_rails_08722e8ac7 FOREIGN KEY (security_policy_management_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5e46aea379; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5e78c2eac1; +-- +-- Name: work_item_hierarchy_restrictions fk_rails_08cd7fef58; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5ee060202f; +ALTER TABLE ONLY public.work_item_hierarchy_restrictions + ADD CONSTRAINT fk_rails_08cd7fef58 FOREIGN KEY (child_type_id) REFERENCES public.work_item_types(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5f24f6ead2; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5f96b344e2; +-- +-- Name: trending_projects fk_rails_09feecd872; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_5fb1867c41; +ALTER TABLE ONLY public.trending_projects + ADD CONSTRAINT fk_rails_09feecd872 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_5fe1d00845; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_60e3480f23; +-- +-- Name: security_orchestration_policy_configurations fk_rails_0a22dcd52d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_6137e27484; +ALTER TABLE ONLY public.security_orchestration_policy_configurations + ADD CONSTRAINT fk_rails_0a22dcd52d FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_620fe77c99; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_625ed9e965; +-- +-- Name: project_deploy_tokens fk_rails_0aca134388; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_64e3a1dfa1; +ALTER TABLE ONLY public.project_deploy_tokens + ADD CONSTRAINT fk_rails_0aca134388 FOREIGN KEY (deploy_token_id) REFERENCES public.deploy_tokens(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_64eb4cf8bd; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_6578d04baa; +-- +-- Name: project_saved_replies fk_rails_0ace76afbb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6580ecb2db; +ALTER TABLE ONLY public.project_saved_replies + ADD CONSTRAINT fk_rails_0ace76afbb FOREIGN KEY (project_id) REFERENCES public.projects(id); -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_66a736da09; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_680d7ab4a6; +-- +-- Name: packages_debian_group_distributions fk_rails_0adf75c347; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_682eba05f6; +ALTER TABLE ONLY public.packages_debian_group_distributions + ADD CONSTRAINT fk_rails_0adf75c347 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE RESTRICT; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_69bdcf213e; -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_6a39f6d5ac; +-- +-- Name: packages_conan_file_metadata fk_rails_0afabd9328; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6add8e74cf; +ALTER TABLE ONLY public.packages_conan_file_metadata + ADD CONSTRAINT fk_rails_0afabd9328 FOREIGN KEY (package_file_id) REFERENCES public.packages_package_files(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6b1ce61c8f; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_6b431c9952; +-- +-- Name: related_epic_links fk_rails_0b72027748; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_6bf2b9282c; +ALTER TABLE ONLY public.related_epic_links + ADD CONSTRAINT fk_rails_0b72027748 FOREIGN KEY (target_id) REFERENCES public.epics(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_6cfb391b86; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_6e560c1a4d; +-- +-- Name: audit_events_external_audit_event_destinations fk_rails_0bc80a4edc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_6e64aa1646; +ALTER TABLE ONLY public.audit_events_external_audit_event_destinations + ADD CONSTRAINT fk_rails_0bc80a4edc FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6e6c2e6a1d; -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_6ea423bbd1; +-- +-- Name: operations_user_lists fk_rails_0c716e079b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6ec4c4afd4; +ALTER TABLE ONLY public.operations_user_lists + ADD CONSTRAINT fk_rails_0c716e079b FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6f4e0abe54; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6fa47e1334; +-- +-- Name: resource_link_events fk_rails_0cea73eba5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_708d792ae9; +ALTER TABLE ONLY public.resource_link_events + ADD CONSTRAINT fk_rails_0cea73eba5 FOREIGN KEY (child_work_item_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_70c657954b; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_713f462d76; +-- +-- Name: p_catalog_resource_component_usages fk_rails_0e15a4677f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_71c0e45eca; +ALTER TABLE public.p_catalog_resource_component_usages + ADD CONSTRAINT fk_rails_0e15a4677f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_71c2b26944; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_72027c157f; +-- +-- Name: audit_events_google_cloud_logging_configurations fk_rails_0eb52fc617; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_739845f617; +ALTER TABLE ONLY public.audit_events_google_cloud_logging_configurations + ADD CONSTRAINT fk_rails_0eb52fc617 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_74addd1240; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_75dc81d1d7; +-- +-- Name: geo_node_statuses fk_rails_0ecc699c2a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_765b0cd8db; +ALTER TABLE ONLY public.geo_node_statuses + ADD CONSTRAINT fk_rails_0ecc699c2a FOREIGN KEY (geo_node_id) REFERENCES public.geo_nodes(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_77096a1dc6; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_77c6293242; +-- +-- Name: user_synced_attributes_metadata fk_rails_0f4aa0981f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_77f67bf238; +ALTER TABLE ONLY public.user_synced_attributes_metadata + ADD CONSTRAINT fk_rails_0f4aa0981f FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_7822759674; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_7a0b7ffadf; +-- +-- Name: project_authorizations fk_rails_0f84bb11f3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_7b7c85eceb; +ALTER TABLE ONLY public.project_authorizations + ADD CONSTRAINT fk_rails_0f84bb11f3 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_7da2307d2e; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_7ead2300ca; +-- +-- Name: boards_epic_lists fk_rails_0f9c7f646f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_7ecb5b68b4; +ALTER TABLE ONLY public.boards_epic_lists + ADD CONSTRAINT fk_rails_0f9c7f646f FOREIGN KEY (epic_board_id) REFERENCES public.boards_epic_boards(id) ON DELETE CASCADE; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_7f543eed8d; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_7f8a80dd47; +-- +-- Name: issue_email_participants fk_rails_0fdfd8b811; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_80305b1eed; +ALTER TABLE ONLY public.issue_email_participants + ADD CONSTRAINT fk_rails_0fdfd8b811 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_807671c4be; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_807fa83fc0; +-- +-- Name: merge_request_context_commits fk_rails_0fe0039f60; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_80a81ac235; +ALTER TABLE ONLY public.merge_request_context_commits + ADD CONSTRAINT fk_rails_0fe0039f60 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_80c65daf20; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_81b31eafac; +-- +-- Name: prometheus_alert_events fk_rails_106f901176; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_81b9cf594f; +ALTER TABLE ONLY public.prometheus_alert_events + ADD CONSTRAINT fk_rails_106f901176 FOREIGN KEY (prometheus_alert_id) REFERENCES public.prometheus_alerts(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_82c675952c; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_831e7f124f; +-- +-- Name: audit_events_streaming_headers fk_rails_109fcf96e2; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_837a193bf2; +ALTER TABLE ONLY public.audit_events_streaming_headers + ADD CONSTRAINT fk_rails_109fcf96e2 FOREIGN KEY (external_audit_event_destination_id) REFERENCES public.audit_events_external_audit_event_destinations(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_837cc295f1; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_83c5049b3e; +-- +-- Name: ci_sources_projects fk_rails_10a1eb379a_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_83edf231b8; +ALTER TABLE ONLY public.ci_sources_projects + ADD CONSTRAINT fk_rails_10a1eb379a_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_844abd2888; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_8464227c80; +-- +-- Name: ci_sources_projects fk_rails_10a1eb379a_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_8685d7c69c; +ALTER TABLE ONLY public.ci_sources_projects + ADD CONSTRAINT fk_rails_10a1eb379a_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_8688b40056; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_876145d1d5; +-- +-- Name: virtual_registries_packages_maven_cached_responses fk_rails_1167f21441; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_87d40fb9f9; +ALTER TABLE ONLY public.virtual_registries_packages_maven_cached_responses + ADD CONSTRAINT fk_rails_1167f21441 FOREIGN KEY (upstream_id) REFERENCES public.virtual_registries_packages_maven_upstreams(id) ON DELETE SET NULL; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_88b40d6740; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_89c49cf697; +-- +-- Name: zoom_meetings fk_rails_1190f0e0fa; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_89c79afe5c; +ALTER TABLE ONLY public.zoom_meetings + ADD CONSTRAINT fk_rails_1190f0e0fa FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_8a0fc3de4f; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_8a8eb06b9a; +-- +-- Name: gpg_signatures fk_rails_11ae8cb9a7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_8b1b6b03b4; +ALTER TABLE ONLY public.gpg_signatures + ADD CONSTRAINT fk_rails_11ae8cb9a7 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_8b9f9a19a4; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_8fb48e72ce; +-- +-- Name: pm_affected_packages fk_rails_1279c1b9a1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_907e12b7ba; +ALTER TABLE ONLY public.pm_affected_packages + ADD CONSTRAINT fk_rails_1279c1b9a1 FOREIGN KEY (pm_advisory_id) REFERENCES public.pm_advisories(id) ON DELETE CASCADE; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_918bb2ebbb; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_91c432a4bd; +-- +-- Name: description_versions fk_rails_12b144011c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_91d5e4e3df; +ALTER TABLE ONLY public.description_versions + ADD CONSTRAINT fk_rails_12b144011c FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_9201b952a0; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_927796f71d; +-- +-- Name: project_statistics fk_rails_12c471002f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_92c09e352b; +ALTER TABLE ONLY public.project_statistics + ADD CONSTRAINT fk_rails_12c471002f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_9490e0e0b7; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_9555c2ae92; +-- +-- Name: user_details fk_rails_12e0b3043d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_95a353f50b; +ALTER TABLE ONLY public.user_details + ADD CONSTRAINT fk_rails_12e0b3043d FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_971af9481e; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_994aa245b7; +-- +-- Name: bulk_imports fk_rails_130a09357d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_9955b1dc59; +ALTER TABLE ONLY public.bulk_imports + ADD CONSTRAINT fk_rails_130a09357d FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_9a2eb72a3b; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_9b8e89ae41; +-- +-- Name: diff_note_positions fk_rails_13c7212859; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_9d0e953ab3; +ALTER TABLE ONLY public.diff_note_positions + ADD CONSTRAINT fk_rails_13c7212859 FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_9ee83b068b; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_a016d4ed08; +-- +-- Name: analytics_cycle_analytics_aggregations fk_rails_13c8374c7a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a1a9dc36c1; +ALTER TABLE ONLY public.analytics_cycle_analytics_aggregations + ADD CONSTRAINT fk_rails_13c8374c7a FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a2d9f185a5; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a3feed3097; +-- +-- Name: service_desk_custom_email_verifications fk_rails_14dcaf4c92; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_a46b7b7f26; +ALTER TABLE ONLY public.service_desk_custom_email_verifications + ADD CONSTRAINT fk_rails_14dcaf4c92 FOREIGN KEY (triggerer_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_a4f5106804; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a6999c65c9; +-- +-- Name: namespaces_storage_limit_exclusions fk_rails_14e8f7b0e0; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_a6c68d16b2; +ALTER TABLE ONLY public.namespaces_storage_limit_exclusions + ADD CONSTRAINT fk_rails_14e8f7b0e0 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_a8276a450f; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_a849f1bbcc; +-- +-- Name: users_security_dashboard_projects fk_rails_150cd5682c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a88f20fc98; +ALTER TABLE ONLY public.users_security_dashboard_projects + ADD CONSTRAINT fk_rails_150cd5682c FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_a8fe03fe34; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a9424aa392; +-- +-- Name: import_source_user_placeholder_references fk_rails_158995b934; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a99cee1904; +ALTER TABLE ONLY public.import_source_user_placeholder_references + ADD CONSTRAINT fk_rails_158995b934 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_a9b1763c36; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_a9ba23c88e; +-- +-- Name: import_source_users fk_rails_167f82fd95; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_a9deff2159; +ALTER TABLE ONLY public.import_source_users + ADD CONSTRAINT fk_rails_167f82fd95 FOREIGN KEY (reassign_to_user_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_aa92d75d85; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_aabc184267; +-- +-- Name: ci_build_report_results fk_rails_16cb1ff064_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_ab22231a16; +ALTER TABLE ONLY public.ci_build_report_results + ADD CONSTRAINT fk_rails_16cb1ff064_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_abbdf80ab1; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_aca42d7cff; +-- +-- Name: catalog_resources fk_rails_16f09e5c44; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ad55e8b11c; +ALTER TABLE ONLY public.catalog_resources + ADD CONSTRAINT fk_rails_16f09e5c44 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_adc159c3fe; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_aed7f7b10c; +-- +-- Name: project_deploy_tokens fk_rails_170e03cbaf; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_aee84adb5b; +ALTER TABLE ONLY public.project_deploy_tokens + ADD CONSTRAINT fk_rails_170e03cbaf FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_af8368d587; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_b1dda405af; +-- +-- Name: security_orchestration_policy_rule_schedules fk_rails_17ade83f17; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_b24e8538c8; +ALTER TABLE ONLY public.security_orchestration_policy_rule_schedules + ADD CONSTRAINT fk_rails_17ade83f17 FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES public.security_orchestration_policy_configurations(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_b286c595e8; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_b377ac6784; +-- +-- Name: approval_policy_rules fk_rails_17c6dfe138; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_b3b64068e7; +ALTER TABLE ONLY public.approval_policy_rules + ADD CONSTRAINT fk_rails_17c6dfe138 FOREIGN KEY (security_policy_id) REFERENCES public.security_policies(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_b3c4c9a53f; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_b4b2bba753; +-- +-- Name: incident_management_escalation_rules fk_rails_17dbea07a6; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_b607012614; +ALTER TABLE ONLY public.incident_management_escalation_rules + ADD CONSTRAINT fk_rails_17dbea07a6 FOREIGN KEY (policy_id) REFERENCES public.incident_management_escalation_policies(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_b6cc38a848; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_b748a3e0a6; +-- +-- Name: audit_events_streaming_http_group_namespace_filters fk_rails_17f19c81df; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_b7f21460bb; +ALTER TABLE ONLY public.audit_events_streaming_http_group_namespace_filters + ADD CONSTRAINT fk_rails_17f19c81df FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_b83fe1306b; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_bb6defaa27; +-- +-- Name: cluster_providers_aws fk_rails_18983d9ea4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_bc189e47ab; +ALTER TABLE ONLY public.cluster_providers_aws + ADD CONSTRAINT fk_rails_18983d9ea4 FOREIGN KEY (cluster_id) REFERENCES public.clusters(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_bca83177ef; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_bcaa8dcd34; +-- +-- Name: grafana_integrations fk_rails_18d0e2b564; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_bcae2cf631; +ALTER TABLE ONLY public.grafana_integrations + ADD CONSTRAINT fk_rails_18d0e2b564 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_be0a028bcc; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_beaa329ca0; +-- +-- Name: bulk_import_failures fk_rails_1964240b8c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_bedd7e160b; +ALTER TABLE ONLY public.bulk_import_failures + ADD CONSTRAINT fk_rails_1964240b8c FOREIGN KEY (bulk_import_entity_id) REFERENCES public.bulk_import_entities(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_bee2b94a80; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_bf1809b19e; +-- +-- Name: group_wiki_repositories fk_rails_19755e374b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_c02f569fba; +ALTER TABLE ONLY public.group_wiki_repositories + ADD CONSTRAINT fk_rails_19755e374b FOREIGN KEY (shard_id) REFERENCES public.shards(id) ON DELETE RESTRICT; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c08e669dfa; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c09bb66559; +-- +-- Name: gpg_signatures fk_rails_19d4f1c6f9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_c119f5b92e; +ALTER TABLE ONLY public.gpg_signatures + ADD CONSTRAINT fk_rails_19d4f1c6f9 FOREIGN KEY (gpg_key_subkey_id) REFERENCES public.gpg_key_subkeys(id) ON DELETE SET NULL; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c17dae3605; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c1cdd90d0d; +-- +-- Name: incident_management_oncall_schedules fk_rails_19e83fdd65; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_c2b951bf20; +ALTER TABLE ONLY public.incident_management_oncall_schedules + ADD CONSTRAINT fk_rails_19e83fdd65 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_c3a2cf8b3b; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c42b2e7eae; +-- +-- Name: vulnerability_user_mentions fk_rails_1a41c485cd; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c435d904ce; +ALTER TABLE ONLY public.vulnerability_user_mentions + ADD CONSTRAINT fk_rails_1a41c485cd FOREIGN KEY (vulnerability_id) REFERENCES public.vulnerabilities(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c473921734; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c546bb0736; +-- +-- Name: packages_debian_file_metadata fk_rails_1ae85be112; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c59cde6209; +ALTER TABLE ONLY public.packages_debian_file_metadata + ADD CONSTRAINT fk_rails_1ae85be112 FOREIGN KEY (package_file_id) REFERENCES public.packages_package_files(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c66758baa7; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c6ea8a0e26; +-- +-- Name: catalog_verified_namespaces fk_rails_1b6bb852c0; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_c7ac8595d3; +ALTER TABLE ONLY public.catalog_verified_namespaces + ADD CONSTRAINT fk_rails_1b6bb852c0 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_c8bbf2b334; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c8c4219c0a; +-- +-- Name: issuable_slas fk_rails_1b8768cd63; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_c971e6c5ce; +ALTER TABLE ONLY public.issuable_slas + ADD CONSTRAINT fk_rails_1b8768cd63 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c9b14a3d9f; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_cb222425ed; +-- +-- Name: board_assignees fk_rails_1c0ff59e82; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_cbb61ea269; +ALTER TABLE ONLY public.board_assignees + ADD CONSTRAINT fk_rails_1c0ff59e82 FOREIGN KEY (assignee_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_cc0ba6343b; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ccb4f5c5a6; +-- +-- Name: epic_user_mentions fk_rails_1c65976a49; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_cd2b2939a4; +ALTER TABLE ONLY public.epic_user_mentions + ADD CONSTRAINT fk_rails_1c65976a49 FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_cda41e106e; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ce87cbaf2d; +-- +-- Name: approver_groups fk_rails_1cdcbd7723; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_cfa4237c83; +ALTER TABLE ONLY public.approver_groups + ADD CONSTRAINT fk_rails_1cdcbd7723 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_d01ea0126a; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d03e9cdfae; +-- +-- Name: project_ci_feature_usages fk_rails_1deedbf64b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_d0d285c264; +ALTER TABLE ONLY public.project_ci_feature_usages + ADD CONSTRAINT fk_rails_1deedbf64b FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d17b82ddd9; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d1c24d8199; +-- +-- Name: packages_tags fk_rails_1dfc868911; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_d1c6c67ec1; +ALTER TABLE ONLY public.packages_tags + ADD CONSTRAINT fk_rails_1dfc868911 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_d27b4c84e7; -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_d2fe918e83; +-- +-- Name: boards_epic_board_positions fk_rails_1ecfd9f2de; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_d35c969634; +ALTER TABLE ONLY public.boards_epic_board_positions + ADD CONSTRAINT fk_rails_1ecfd9f2de FOREIGN KEY (epic_id) REFERENCES public.epics(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_d3b6418940; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d493a5c171; +-- +-- Name: external_status_checks fk_rails_1f5a8aa809; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_d6047ee813; +ALTER TABLE ONLY public.external_status_checks + ADD CONSTRAINT fk_rails_1f5a8aa809 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_d69c2485f4; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d70379e22c; +-- +-- Name: dora_daily_metrics fk_rails_1fd07aff6f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_d87775b2e7; +ALTER TABLE ONLY public.dora_daily_metrics + ADD CONSTRAINT fk_rails_1fd07aff6f FOREIGN KEY (environment_id) REFERENCES public.environments(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_d8fa9793ad; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_d9384b768d; +-- +-- Name: boards_epic_lists fk_rails_1fe6b54909; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_db2753330c; +ALTER TABLE ONLY public.boards_epic_lists + ADD CONSTRAINT fk_rails_1fe6b54909 FOREIGN KEY (label_id) REFERENCES public.labels(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_db6477916f; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_dc571ba649; +-- +-- Name: approval_merge_request_rules_groups fk_rails_2020a7124a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_de0334da63; +ALTER TABLE ONLY public.approval_merge_request_rules_groups + ADD CONSTRAINT fk_rails_2020a7124a FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_df62a8c50e; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e1a4f994d8; +-- +-- Name: user_statuses fk_rails_2178592333; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_e38489ea98; +ALTER TABLE ONLY public.user_statuses + ADD CONSTRAINT fk_rails_2178592333 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_e3d1fd5b19; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e3d6234929; +-- +-- Name: ai_agent_versions fk_rails_2205f8ca20; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e54adf9acb; +ALTER TABLE ONLY public.ai_agent_versions + ADD CONSTRAINT fk_rails_2205f8ca20 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e6405afea0; -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e64588e276; +-- +-- Name: users_ops_dashboard_projects fk_rails_220a0562db; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_e716b8ac3f; +ALTER TABLE ONLY public.users_ops_dashboard_projects + ADD CONSTRAINT fk_rails_220a0562db FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_e73bc5ba6a; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_e8f3a327b2; +-- +-- Name: service_desk_settings fk_rails_223a296a85; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_ea0c2d3361; +ALTER TABLE ONLY public.service_desk_settings + ADD CONSTRAINT fk_rails_223a296a85 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ea1b583157; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_eadcc94c4e; +-- +-- Name: saml_group_links fk_rails_22e312c530; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_eb558957f0; +ALTER TABLE ONLY public.saml_group_links + ADD CONSTRAINT fk_rails_22e312c530 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_eb5a7f918a; -ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_ec25d494e6; +-- +-- Name: work_item_parent_links fk_rails_231dba8959; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ece25b5987; +ALTER TABLE ONLY public.work_item_parent_links + ADD CONSTRAINT fk_rails_231dba8959 FOREIGN KEY (work_item_parent_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_ed094a4f13; -ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ed6dbac8c0; +-- +-- Name: dast_profiles fk_rails_23cae5abe1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_ee4c549a2d; +ALTER TABLE ONLY public.dast_profiles + ADD CONSTRAINT fk_rails_23cae5abe1 FOREIGN KEY (dast_scanner_profile_id) REFERENCES public.dast_scanner_profiles(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_ef6a48bd29; -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_ef7be2ae94; +-- +-- Name: group_custom_attributes fk_rails_246e0db83a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_efa25b26bd; +ALTER TABLE ONLY public.group_custom_attributes + ADD CONSTRAINT fk_rails_246e0db83a FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f06b4c7a23; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f0cdd09a5e; +-- +-- Name: incident_management_oncall_rotations fk_rails_256e0bc604; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_f112fae8ac; +ALTER TABLE ONLY public.incident_management_oncall_rotations + ADD CONSTRAINT fk_rails_256e0bc604 FOREIGN KEY (oncall_schedule_id) REFERENCES public.incident_management_oncall_schedules(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_f1c3d14cdc; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f256d3f6a1; +-- +-- Name: ci_unit_test_failures fk_rails_259da3e79c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_f2848acfc7; +ALTER TABLE ONLY public.ci_unit_test_failures + ADD CONSTRAINT fk_rails_259da3e79c FOREIGN KEY (unit_test_id) REFERENCES public.ci_unit_tests(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f3d7d86e09; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f402f6a388; +-- +-- Name: ci_builds fk_rails_25dc49c011; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f415dc2abd; +ALTER TABLE ONLY public.ci_builds + ADD CONSTRAINT fk_rails_25dc49c011 FOREIGN KEY (partition_id, execution_config_id) REFERENCES public.p_ci_builds_execution_configs(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL NOT VALID; -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_f47327ec1f; -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f5f0e8eefd; +-- +-- Name: cluster_agents fk_rails_25e9fc2d5d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_f6b0d458a3; +ALTER TABLE ONLY public.cluster_agents + ADD CONSTRAINT fk_rails_25e9fc2d5d FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f705dc8541; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f76e8a5304; +-- +-- Name: boards_epic_user_preferences fk_rails_268c57d62d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f836021e1e; +ALTER TABLE ONLY public.boards_epic_user_preferences + ADD CONSTRAINT fk_rails_268c57d62d FOREIGN KEY (board_id) REFERENCES public.boards(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f86acdc2ff; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_f86f73056d; +-- +-- Name: group_wiki_repositories fk_rails_26f867598c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f878aab8e3; +ALTER TABLE ONLY public.group_wiki_repositories + ADD CONSTRAINT fk_rails_26f867598c FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f902c261ce; -ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_f91599d825; +-- +-- Name: lfs_file_locks fk_rails_27a1d98fa8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_fbccc855cf; +ALTER TABLE ONLY public.lfs_file_locks + ADD CONSTRAINT fk_rails_27a1d98fa8 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_fbf2d3310b; -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_fccbe45c32; +-- +-- Name: project_alerting_settings fk_rails_27a84b407d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_fee429223e; +ALTER TABLE ONLY public.project_alerting_settings + ADD CONSTRAINT fk_rails_27a84b407d FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_ff00c038cc; -ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_ff39be5400; +-- +-- Name: work_item_hierarchy_restrictions fk_rails_27bb3a10ba; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_ff8741d8d7; +ALTER TABLE ONLY public.work_item_hierarchy_restrictions + ADD CONSTRAINT fk_rails_27bb3a10ba FOREIGN KEY (parent_type_id) REFERENCES public.work_item_types(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_00_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_00_pkey; +-- +-- Name: user_credit_card_validations fk_rails_27ebc03cbf; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_00_search_vector_idx; +ALTER TABLE ONLY public.user_credit_card_validations + ADD CONSTRAINT fk_rails_27ebc03cbf FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_01_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_01_pkey; +-- +-- Name: dast_site_validations fk_rails_285c617324; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_01_search_vector_idx; +ALTER TABLE ONLY public.dast_site_validations + ADD CONSTRAINT fk_rails_285c617324 FOREIGN KEY (dast_site_token_id) REFERENCES public.dast_site_tokens(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_02_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_02_pkey; +-- +-- Name: vulnerability_findings_remediations fk_rails_28a8d0cf93; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_02_search_vector_idx; +ALTER TABLE ONLY public.vulnerability_findings_remediations + ADD CONSTRAINT fk_rails_28a8d0cf93 FOREIGN KEY (vulnerability_occurrence_id) REFERENCES public.vulnerability_occurrences(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_03_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_03_pkey; +-- +-- Name: design_management_repositories fk_rails_2938d8dd8d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_03_search_vector_idx; +ALTER TABLE ONLY public.design_management_repositories + ADD CONSTRAINT fk_rails_2938d8dd8d FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_04_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_04_pkey; +-- +-- Name: incident_management_issuable_escalation_statuses fk_rails_29abffe3b9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_04_search_vector_idx; +ALTER TABLE ONLY public.incident_management_issuable_escalation_statuses + ADD CONSTRAINT fk_rails_29abffe3b9 FOREIGN KEY (policy_id) REFERENCES public.incident_management_escalation_policies(id) ON DELETE SET NULL; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_05_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_05_pkey; +-- +-- Name: resource_state_events fk_rails_29af06892a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_05_search_vector_idx; +ALTER TABLE ONLY public.resource_state_events + ADD CONSTRAINT fk_rails_29af06892a FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_06_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_06_pkey; +-- +-- Name: reviews fk_rails_29e6f859c4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_06_search_vector_idx; +ALTER TABLE ONLY public.reviews + ADD CONSTRAINT fk_rails_29e6f859c4 FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_07_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_07_pkey; +-- +-- Name: draft_notes fk_rails_2a8dac9901; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_07_search_vector_idx; +ALTER TABLE ONLY public.draft_notes + ADD CONSTRAINT fk_rails_2a8dac9901 FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_08_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_08_pkey; +-- +-- Name: xray_reports fk_rails_2b13fbecf9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_08_search_vector_idx; +ALTER TABLE ONLY public.xray_reports + ADD CONSTRAINT fk_rails_2b13fbecf9 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_09_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_09_pkey; +-- +-- Name: dependency_proxy_image_ttl_group_policies fk_rails_2b1896d021; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_09_search_vector_idx; +ALTER TABLE ONLY public.dependency_proxy_image_ttl_group_policies + ADD CONSTRAINT fk_rails_2b1896d021 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_10_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_10_pkey; +-- +-- Name: group_group_links fk_rails_2b2353ca49; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_10_search_vector_idx; +ALTER TABLE ONLY public.group_group_links + ADD CONSTRAINT fk_rails_2b2353ca49 FOREIGN KEY (shared_with_group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_11_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_11_pkey; +-- +-- Name: packages_debian_group_component_files fk_rails_2b8992dd83; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_11_search_vector_idx; +ALTER TABLE ONLY public.packages_debian_group_component_files + ADD CONSTRAINT fk_rails_2b8992dd83 FOREIGN KEY (architecture_id) REFERENCES public.packages_debian_group_architectures(id) ON DELETE RESTRICT; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_12_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_12_pkey; +-- +-- Name: boards_epic_board_labels fk_rails_2bedeb8799; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_12_search_vector_idx; +ALTER TABLE ONLY public.boards_epic_board_labels + ADD CONSTRAINT fk_rails_2bedeb8799 FOREIGN KEY (label_id) REFERENCES public.labels(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_13_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_13_pkey; +-- +-- Name: error_tracking_error_events fk_rails_2c096c0076; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_13_search_vector_idx; +ALTER TABLE ONLY public.error_tracking_error_events + ADD CONSTRAINT fk_rails_2c096c0076 FOREIGN KEY (error_id) REFERENCES public.error_tracking_errors(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_14_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_14_pkey; +-- +-- Name: work_item_colors fk_rails_2c2032206e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_14_search_vector_idx; +ALTER TABLE ONLY public.work_item_colors + ADD CONSTRAINT fk_rails_2c2032206e FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_15_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_15_pkey; +-- +-- Name: onboarding_progresses fk_rails_2ccfd420cc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_15_search_vector_idx; +ALTER TABLE ONLY public.onboarding_progresses + ADD CONSTRAINT fk_rails_2ccfd420cc FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_16_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_16_pkey; +-- +-- Name: protected_branch_unprotect_access_levels fk_rails_2d2aba21ef; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_16_search_vector_idx; +ALTER TABLE ONLY public.protected_branch_unprotect_access_levels + ADD CONSTRAINT fk_rails_2d2aba21ef FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_17_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_17_pkey; +-- +-- Name: issuable_severities fk_rails_2fbb74ad6d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_17_search_vector_idx; +ALTER TABLE ONLY public.issuable_severities + ADD CONSTRAINT fk_rails_2fbb74ad6d FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_18_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_18_pkey; +-- +-- Name: saml_providers fk_rails_306d459be7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_18_search_vector_idx; +ALTER TABLE ONLY public.saml_providers + ADD CONSTRAINT fk_rails_306d459be7 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_19_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_19_pkey; +-- +-- Name: bulk_import_batch_trackers fk_rails_307efb9f32; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_19_search_vector_idx; +ALTER TABLE ONLY public.bulk_import_batch_trackers + ADD CONSTRAINT fk_rails_307efb9f32 FOREIGN KEY (tracker_id) REFERENCES public.bulk_import_trackers(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_20_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_20_pkey; +-- +-- Name: pm_package_version_licenses fk_rails_30ddb7f837; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_20_search_vector_idx; +ALTER TABLE ONLY public.pm_package_version_licenses + ADD CONSTRAINT fk_rails_30ddb7f837 FOREIGN KEY (pm_package_version_id) REFERENCES public.pm_package_versions(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_21_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_21_pkey; +-- +-- Name: resource_state_events fk_rails_3112bba7dc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_21_search_vector_idx; +ALTER TABLE ONLY public.resource_state_events + ADD CONSTRAINT fk_rails_3112bba7dc FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_22_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_22_pkey; +-- +-- Name: merge_request_diff_commits fk_rails_316aaceda3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_22_search_vector_idx; +ALTER TABLE ONLY public.merge_request_diff_commits + ADD CONSTRAINT fk_rails_316aaceda3 FOREIGN KEY (merge_request_diff_id) REFERENCES public.merge_request_diffs(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_23_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_23_pkey; +-- +-- Name: group_import_states fk_rails_31c3e0503a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_23_search_vector_idx; +ALTER TABLE ONLY public.group_import_states + ADD CONSTRAINT fk_rails_31c3e0503a FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_24_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_24_pkey; +-- +-- Name: zoom_meetings fk_rails_3263f29616; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_24_search_vector_idx; +ALTER TABLE ONLY public.zoom_meetings + ADD CONSTRAINT fk_rails_3263f29616 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_25_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_25_pkey; +-- +-- Name: container_repositories fk_rails_32f7bf5aad; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_25_search_vector_idx; +ALTER TABLE ONLY public.container_repositories + ADD CONSTRAINT fk_rails_32f7bf5aad FOREIGN KEY (project_id) REFERENCES public.projects(id); -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_26_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_26_pkey; +-- +-- Name: ai_agents fk_rails_3328b05449; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_26_search_vector_idx; +ALTER TABLE ONLY public.ai_agents + ADD CONSTRAINT fk_rails_3328b05449 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_27_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_27_pkey; +-- +-- Name: alert_management_alert_metric_images fk_rails_338e55b408; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_27_search_vector_idx; +ALTER TABLE ONLY public.alert_management_alert_metric_images + ADD CONSTRAINT fk_rails_338e55b408 FOREIGN KEY (alert_id) REFERENCES public.alert_management_alerts(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_28_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_28_pkey; +-- +-- Name: suggestions fk_rails_33b03a535c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_28_search_vector_idx; +ALTER TABLE ONLY public.suggestions + ADD CONSTRAINT fk_rails_33b03a535c FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_29_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_29_pkey; +-- +-- Name: packages_terraform_module_metadata fk_rails_33c045442a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_29_search_vector_idx; +ALTER TABLE ONLY public.packages_terraform_module_metadata + ADD CONSTRAINT fk_rails_33c045442a FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_30_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_30_pkey; +-- +-- Name: metrics_dashboard_annotations fk_rails_345ab51043; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_30_search_vector_idx; +ALTER TABLE ONLY public.metrics_dashboard_annotations + ADD CONSTRAINT fk_rails_345ab51043 FOREIGN KEY (cluster_id) REFERENCES public.clusters(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_31_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_31_pkey; +-- +-- Name: group_features fk_rails_356514082b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_31_search_vector_idx; +ALTER TABLE ONLY public.group_features + ADD CONSTRAINT fk_rails_356514082b FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_32_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_32_pkey; +-- +-- Name: wiki_page_slugs fk_rails_358b46be14; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_32_search_vector_idx; +ALTER TABLE ONLY public.wiki_page_slugs + ADD CONSTRAINT fk_rails_358b46be14 FOREIGN KEY (wiki_page_meta_id) REFERENCES public.wiki_page_meta(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_33_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_33_pkey; +-- +-- Name: board_labels fk_rails_362b0600a3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_33_search_vector_idx; +ALTER TABLE ONLY public.board_labels + ADD CONSTRAINT fk_rails_362b0600a3 FOREIGN KEY (label_id) REFERENCES public.labels(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_34_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_34_pkey; +-- +-- Name: virtual_registries_packages_maven_upstreams fk_rails_3649ef6e9a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_34_search_vector_idx; +ALTER TABLE ONLY public.virtual_registries_packages_maven_upstreams + ADD CONSTRAINT fk_rails_3649ef6e9a FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_35_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_35_pkey; +-- +-- Name: merge_request_blocks fk_rails_364d4bea8b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_35_search_vector_idx; +ALTER TABLE ONLY public.merge_request_blocks + ADD CONSTRAINT fk_rails_364d4bea8b FOREIGN KEY (blocked_merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_36_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_36_pkey; +-- +-- Name: merge_request_reviewers fk_rails_3704a66140; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_36_search_vector_idx; +ALTER TABLE ONLY public.merge_request_reviewers + ADD CONSTRAINT fk_rails_3704a66140 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_37_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_37_pkey; +-- +-- Name: group_merge_request_approval_settings fk_rails_37b6b4cdba; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_37_search_vector_idx; +ALTER TABLE ONLY public.group_merge_request_approval_settings + ADD CONSTRAINT fk_rails_37b6b4cdba FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_38_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_38_pkey; +-- +-- Name: packages_debian_project_distribution_keys fk_rails_3834a11264; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_38_search_vector_idx; +ALTER TABLE ONLY public.packages_debian_project_distribution_keys + ADD CONSTRAINT fk_rails_3834a11264 FOREIGN KEY (distribution_id) REFERENCES public.packages_debian_project_distributions(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_39_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_39_pkey; +-- +-- Name: issue_user_mentions fk_rails_3861d9fefa; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_39_search_vector_idx; +ALTER TABLE ONLY public.issue_user_mentions + ADD CONSTRAINT fk_rails_3861d9fefa FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_40_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_40_pkey; +-- +-- Name: namespace_settings fk_rails_3896d4fae5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_40_search_vector_idx; +ALTER TABLE ONLY public.namespace_settings + ADD CONSTRAINT fk_rails_3896d4fae5 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_41_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_41_pkey; +-- +-- Name: self_managed_prometheus_alert_events fk_rails_3936dadc62; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_41_search_vector_idx; +ALTER TABLE ONLY public.self_managed_prometheus_alert_events + ADD CONSTRAINT fk_rails_3936dadc62 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_42_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_42_pkey; +-- +-- Name: packages_cleanup_policies fk_rails_393ba98591; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_42_search_vector_idx; +ALTER TABLE ONLY public.packages_cleanup_policies + ADD CONSTRAINT fk_rails_393ba98591 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_43_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_43_pkey; +-- +-- Name: approval_project_rules_groups fk_rails_396841e79e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_43_search_vector_idx; +ALTER TABLE ONLY public.approval_project_rules_groups + ADD CONSTRAINT fk_rails_396841e79e FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_44_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_44_pkey; +-- +-- Name: self_managed_prometheus_alert_events fk_rails_39d83d1b65; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_44_search_vector_idx; +ALTER TABLE ONLY public.self_managed_prometheus_alert_events + ADD CONSTRAINT fk_rails_39d83d1b65 FOREIGN KEY (environment_id) REFERENCES public.environments(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_45_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_45_pkey; +-- +-- Name: chat_teams fk_rails_3b543909cb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_45_search_vector_idx; +ALTER TABLE ONLY public.chat_teams + ADD CONSTRAINT fk_rails_3b543909cb FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_46_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_46_pkey; +-- +-- Name: ci_build_needs fk_rails_3cf221d4ed_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_46_search_vector_idx; +ALTER TABLE ONLY public.ci_build_needs + ADD CONSTRAINT fk_rails_3cf221d4ed_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_47_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_47_pkey; +-- +-- Name: cluster_groups fk_rails_3d28377556; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_47_search_vector_idx; +ALTER TABLE ONLY public.cluster_groups + ADD CONSTRAINT fk_rails_3d28377556 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_48_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_48_pkey; +-- +-- Name: note_diff_files fk_rails_3d66047aeb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_48_search_vector_idx; +ALTER TABLE ONLY public.note_diff_files + ADD CONSTRAINT fk_rails_3d66047aeb FOREIGN KEY (diff_note_id) REFERENCES public.notes(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_49_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_49_pkey; +-- +-- Name: virtual_registries_packages_maven_registry_upstreams fk_rails_3dc6bd8333; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_49_search_vector_idx; +ALTER TABLE ONLY public.virtual_registries_packages_maven_registry_upstreams + ADD CONSTRAINT fk_rails_3dc6bd8333 FOREIGN KEY (upstream_id) REFERENCES public.virtual_registries_packages_maven_upstreams(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_50_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_50_pkey; +-- +-- Name: snippet_user_mentions fk_rails_3e00189191; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_50_search_vector_idx; +ALTER TABLE ONLY public.snippet_user_mentions + ADD CONSTRAINT fk_rails_3e00189191 FOREIGN KEY (snippet_id) REFERENCES public.snippets(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_51_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_51_pkey; +-- +-- Name: early_access_program_tracking_events fk_rails_3e8c32b3dd; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_51_search_vector_idx; +ALTER TABLE ONLY public.early_access_program_tracking_events + ADD CONSTRAINT fk_rails_3e8c32b3dd FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_52_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_52_pkey; +-- +-- Name: epic_user_mentions fk_rails_3eaf4d88cc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_52_search_vector_idx; +ALTER TABLE ONLY public.epic_user_mentions + ADD CONSTRAINT fk_rails_3eaf4d88cc FOREIGN KEY (epic_id) REFERENCES public.epics(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_53_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_53_pkey; +-- +-- Name: issuable_resource_links fk_rails_3f0ec6b1cf; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_53_search_vector_idx; +ALTER TABLE ONLY public.issuable_resource_links + ADD CONSTRAINT fk_rails_3f0ec6b1cf FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_54_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_54_pkey; +-- +-- Name: board_assignees fk_rails_3f6f926bd5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_54_search_vector_idx; +ALTER TABLE ONLY public.board_assignees + ADD CONSTRAINT fk_rails_3f6f926bd5 FOREIGN KEY (board_id) REFERENCES public.boards(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_55_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_55_pkey; +-- +-- Name: description_versions fk_rails_3ff658220b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_55_search_vector_idx; +ALTER TABLE ONLY public.description_versions + ADD CONSTRAINT fk_rails_3ff658220b FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_56_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_56_pkey; +-- +-- Name: clusters_kubernetes_namespaces fk_rails_40cc7ccbc3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_56_search_vector_idx; +ALTER TABLE ONLY public.clusters_kubernetes_namespaces + ADD CONSTRAINT fk_rails_40cc7ccbc3 FOREIGN KEY (cluster_project_id) REFERENCES public.cluster_projects(id) ON DELETE SET NULL; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_57_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_57_pkey; +-- +-- Name: lfs_object_states fk_rails_4188448cd5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_57_search_vector_idx; +ALTER TABLE ONLY public.lfs_object_states + ADD CONSTRAINT fk_rails_4188448cd5 FOREIGN KEY (lfs_object_id) REFERENCES public.lfs_objects(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_58_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_58_pkey; +-- +-- Name: geo_node_namespace_links fk_rails_41ff5fb854; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_58_search_vector_idx; +ALTER TABLE ONLY public.geo_node_namespace_links + ADD CONSTRAINT fk_rails_41ff5fb854 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_59_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_59_pkey; +-- +-- Name: epic_issues fk_rails_4209981af6; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_59_search_vector_idx; +ALTER TABLE ONLY public.epic_issues + ADD CONSTRAINT fk_rails_4209981af6 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_60_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_60_pkey; +-- +-- Name: ci_resources fk_rails_430336af2d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_60_search_vector_idx; +ALTER TABLE ONLY public.ci_resources + ADD CONSTRAINT fk_rails_430336af2d FOREIGN KEY (resource_group_id) REFERENCES public.ci_resource_groups(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_61_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_61_pkey; +-- +-- Name: batched_background_migration_jobs fk_rails_432153b86d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_61_search_vector_idx; +ALTER TABLE ONLY public.batched_background_migration_jobs + ADD CONSTRAINT fk_rails_432153b86d FOREIGN KEY (batched_background_migration_id) REFERENCES public.batched_background_migrations(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_62_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_62_pkey; +-- +-- Name: operations_strategies_user_lists fk_rails_43241e8d29; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_62_search_vector_idx; +ALTER TABLE ONLY public.operations_strategies_user_lists + ADD CONSTRAINT fk_rails_43241e8d29 FOREIGN KEY (strategy_id) REFERENCES public.operations_strategies(id) ON DELETE CASCADE; -ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_63_issue_id_idx; -ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_63_pkey; +-- +-- Name: activity_pub_releases_subscriptions fk_rails_4337598314; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_63_search_vector_idx; +ALTER TABLE ONLY public.activity_pub_releases_subscriptions + ADD CONSTRAINT fk_rails_4337598314 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_00_namespace_id_idx; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_00_pkey; +-- +-- Name: analytics_cycle_analytics_value_stream_settings fk_rails_4360d37256; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_01_namespace_id_idx; +ALTER TABLE ONLY public.analytics_cycle_analytics_value_stream_settings + ADD CONSTRAINT fk_rails_4360d37256 FOREIGN KEY (value_stream_id) REFERENCES public.analytics_cycle_analytics_group_value_streams(id) ON DELETE CASCADE; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_01_pkey; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_02_namespace_id_idx; +-- +-- Name: merge_request_assignment_events fk_rails_4378a2e8d7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_02_pkey; +ALTER TABLE ONLY public.merge_request_assignment_events + ADD CONSTRAINT fk_rails_4378a2e8d7 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_03_namespace_id_idx; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_03_pkey; +-- +-- Name: lfs_file_locks fk_rails_43df7a0412; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_04_namespace_id_idx; +ALTER TABLE ONLY public.lfs_file_locks + ADD CONSTRAINT fk_rails_43df7a0412 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_04_pkey; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_05_namespace_id_idx; +-- +-- Name: dast_site_profile_secret_variables fk_rails_43e2897950; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_05_pkey; +ALTER TABLE ONLY public.dast_site_profile_secret_variables + ADD CONSTRAINT fk_rails_43e2897950 FOREIGN KEY (dast_site_profile_id) REFERENCES public.dast_site_profiles(id) ON DELETE CASCADE; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_06_namespace_id_idx; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_06_pkey; +-- +-- Name: merge_request_assignees fk_rails_443443ce6f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_07_namespace_id_idx; +ALTER TABLE ONLY public.merge_request_assignees + ADD CONSTRAINT fk_rails_443443ce6f FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_07_pkey; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_08_namespace_id_idx; +-- +-- Name: packages_dependency_links fk_rails_4437bf4070; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_08_pkey; +ALTER TABLE ONLY public.packages_dependency_links + ADD CONSTRAINT fk_rails_4437bf4070 FOREIGN KEY (dependency_id) REFERENCES public.packages_dependencies(id) ON DELETE CASCADE; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_09_namespace_id_idx; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_09_pkey; +-- +-- Name: work_item_related_link_restrictions fk_rails_4513f0061c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_10_namespace_id_idx; +ALTER TABLE ONLY public.work_item_related_link_restrictions + ADD CONSTRAINT fk_rails_4513f0061c FOREIGN KEY (target_type_id) REFERENCES public.work_item_types(id) ON DELETE CASCADE; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_10_pkey; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_11_namespace_id_idx; +-- +-- Name: project_auto_devops fk_rails_45436b12b2; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_11_pkey; +ALTER TABLE ONLY public.project_auto_devops + ADD CONSTRAINT fk_rails_45436b12b2 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_12_namespace_id_idx; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_12_pkey; +-- +-- Name: dora_performance_scores fk_rails_455f9acc65; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_13_namespace_id_idx; +ALTER TABLE ONLY public.dora_performance_scores + ADD CONSTRAINT fk_rails_455f9acc65 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_13_pkey; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_14_namespace_id_idx; +-- +-- Name: merge_requests_closing_issues fk_rails_458eda8667; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_14_pkey; +ALTER TABLE ONLY public.merge_requests_closing_issues + ADD CONSTRAINT fk_rails_458eda8667 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_15_namespace_id_idx; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_15_pkey; +-- +-- Name: protected_environment_deploy_access_levels fk_rails_45cc02a931; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_16_namespace_id_idx; +ALTER TABLE ONLY public.protected_environment_deploy_access_levels + ADD CONSTRAINT fk_rails_45cc02a931 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_16_pkey; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_17_namespace_id_idx; +-- +-- Name: prometheus_alert_events fk_rails_4675865839; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_17_pkey; +ALTER TABLE ONLY public.prometheus_alert_events + ADD CONSTRAINT fk_rails_4675865839 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_18_namespace_id_idx; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_18_pkey; +-- +-- Name: smartcard_identities fk_rails_4689f889a9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_19_namespace_id_idx; +ALTER TABLE ONLY public.smartcard_identities + ADD CONSTRAINT fk_rails_4689f889a9 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_19_pkey; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_20_namespace_id_idx; +-- +-- Name: vulnerability_feedback fk_rails_472f69b043; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_20_pkey; +ALTER TABLE ONLY public.vulnerability_feedback + ADD CONSTRAINT fk_rails_472f69b043 FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_21_namespace_id_idx; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_21_pkey; +-- +-- Name: user_custom_attributes fk_rails_47b91868a8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_22_namespace_id_idx; +ALTER TABLE ONLY public.user_custom_attributes + ADD CONSTRAINT fk_rails_47b91868a8 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_22_pkey; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_23_namespace_id_idx; +-- +-- Name: upcoming_reconciliations fk_rails_497b4938ac; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_23_pkey; +ALTER TABLE ONLY public.upcoming_reconciliations + ADD CONSTRAINT fk_rails_497b4938ac FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_24_namespace_id_idx; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_24_pkey; +-- +-- Name: group_deletion_schedules fk_rails_4b8c694a6c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_25_namespace_id_idx; +ALTER TABLE ONLY public.group_deletion_schedules + ADD CONSTRAINT fk_rails_4b8c694a6c FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_25_pkey; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_26_namespace_id_idx; +-- +-- Name: snippet_repository_storage_moves fk_rails_4b950f5b94; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_26_pkey; +ALTER TABLE ONLY public.snippet_repository_storage_moves + ADD CONSTRAINT fk_rails_4b950f5b94 FOREIGN KEY (snippet_id) REFERENCES public.snippets(id) ON DELETE CASCADE; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_27_namespace_id_idx; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_27_pkey; +-- +-- Name: design_management_designs fk_rails_4bb1073360; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_28_namespace_id_idx; +ALTER TABLE ONLY public.design_management_designs + ADD CONSTRAINT fk_rails_4bb1073360 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_28_pkey; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_29_namespace_id_idx; +-- +-- Name: issue_metrics fk_rails_4bb543d85d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_29_pkey; +ALTER TABLE ONLY public.issue_metrics + ADD CONSTRAINT fk_rails_4bb543d85d FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_30_namespace_id_idx; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_30_pkey; +-- +-- Name: project_metrics_settings fk_rails_4c6037ee4f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_31_namespace_id_idx; +ALTER TABLE ONLY public.project_metrics_settings + ADD CONSTRAINT fk_rails_4c6037ee4f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_31_pkey; -ALTER INDEX p_ci_build_trace_metadata_pkey ATTACH PARTITION ci_build_trace_metadata_pkey; +-- +-- Name: prometheus_metrics fk_rails_4c8957a707; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX index_p_ci_build_trace_metadata_on_trace_artifact_id ATTACH PARTITION ci_build_trace_metadata_trace_artifact_id_idx; +ALTER TABLE ONLY public.prometheus_metrics + ADD CONSTRAINT fk_rails_4c8957a707 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX p_ci_builds_status_created_at_project_id_idx ATTACH PARTITION ci_builds_gitlab_monitor_metrics; -ALTER INDEX p_ci_builds_metadata_pkey ATTACH PARTITION ci_builds_metadata_pkey; +-- +-- Name: dependency_proxy_blob_states fk_rails_4cdbb92cbd; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_builds_pkey ATTACH PARTITION ci_builds_pkey; +ALTER TABLE ONLY public.dependency_proxy_blob_states + ADD CONSTRAINT fk_rails_4cdbb92cbd FOREIGN KEY (dependency_proxy_blob_id) REFERENCES public.dependency_proxy_blobs(id) ON DELETE CASCADE; -ALTER INDEX p_ci_job_artifacts_pkey ATTACH PARTITION ci_job_artifacts_pkey; -ALTER INDEX p_ci_pipeline_variables_pkey ATTACH PARTITION ci_pipeline_variables_pkey; +-- +-- Name: scim_identities fk_rails_4d2056ebd9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_pipelines_pkey ATTACH PARTITION ci_pipelines_pkey; +ALTER TABLE ONLY public.scim_identities + ADD CONSTRAINT fk_rails_4d2056ebd9 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX p_ci_stages_pkey ATTACH PARTITION ci_stages_pkey; -ALTER INDEX p_ci_job_artifacts_job_id_file_type_partition_id_idx ATTACH PARTITION idx_ci_job_artifacts_on_job_id_file_type_and_partition_id_uniq; +-- +-- Name: snippet_user_mentions fk_rails_4d3f96b2cb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_pipelines_ci_ref_id_id_idx ATTACH PARTITION idx_ci_pipelines_artifacts_locked; +ALTER TABLE ONLY public.snippet_user_mentions + ADD CONSTRAINT fk_rails_4d3f96b2cb FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; -ALTER INDEX index_p_ci_builds_on_execution_config_id ATTACH PARTITION index_0928d9f200; -ALTER INDEX p_ci_builds_metadata_build_id_idx ATTACH PARTITION index_ci_builds_metadata_on_build_id_and_has_exposed_artifacts; +-- +-- Name: protected_environment_approval_rules fk_rails_4e554f96f5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_builds_metadata_build_id_id_idx ATTACH PARTITION index_ci_builds_metadata_on_build_id_and_id_and_interruptible; +ALTER TABLE ONLY public.protected_environment_approval_rules + ADD CONSTRAINT fk_rails_4e554f96f5 FOREIGN KEY (protected_environment_id) REFERENCES public.protected_environments(id) ON DELETE CASCADE; -ALTER INDEX p_ci_builds_metadata_build_id_partition_id_idx ATTACH PARTITION index_ci_builds_metadata_on_build_id_partition_id_unique; -ALTER INDEX p_ci_builds_metadata_project_id_idx ATTACH PARTITION index_ci_builds_metadata_on_project_id; +-- +-- Name: aws_roles fk_rails_4ed56f4720; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_builds_auto_canceled_by_id_idx ATTACH PARTITION index_ci_builds_on_auto_canceled_by_id; +ALTER TABLE ONLY public.aws_roles + ADD CONSTRAINT fk_rails_4ed56f4720 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER INDEX p_ci_builds_commit_id_stage_idx_created_at_idx ATTACH PARTITION index_ci_builds_on_commit_id_and_stage_idx_and_created_at; -ALTER INDEX p_ci_builds_commit_id_status_type_idx ATTACH PARTITION index_ci_builds_on_commit_id_and_status_and_type; +-- +-- Name: packages_debian_publications fk_rails_4fc8ebd03e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_builds_commit_id_type_name_ref_idx ATTACH PARTITION index_ci_builds_on_commit_id_and_type_and_name_and_ref; +ALTER TABLE ONLY public.packages_debian_publications + ADD CONSTRAINT fk_rails_4fc8ebd03e FOREIGN KEY (distribution_id) REFERENCES public.packages_debian_project_distributions(id) ON DELETE CASCADE; -ALTER INDEX p_ci_builds_commit_id_type_ref_idx ATTACH PARTITION index_ci_builds_on_commit_id_and_type_and_ref; -ALTER INDEX p_ci_builds_commit_id_artifacts_expire_at_id_idx ATTACH PARTITION index_ci_builds_on_commit_id_artifacts_expired_at_and_id; +-- +-- Name: merge_request_diff_files fk_rails_501aa0a391; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_builds_project_id_id_idx ATTACH PARTITION index_ci_builds_on_project_id_and_id; +ALTER TABLE ONLY public.merge_request_diff_files + ADD CONSTRAINT fk_rails_501aa0a391 FOREIGN KEY (merge_request_diff_id) REFERENCES public.merge_request_diffs(id) ON DELETE CASCADE; -ALTER INDEX p_ci_builds_project_id_name_ref_idx ATTACH PARTITION index_ci_builds_on_project_id_and_name_and_ref; -ALTER INDEX p_ci_builds_resource_group_id_status_commit_id_idx ATTACH PARTITION index_ci_builds_on_resource_group_and_status_and_commit_id; +-- +-- Name: resource_iteration_events fk_rails_501fa15d69; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_builds_runner_id_id_idx ATTACH PARTITION index_ci_builds_on_runner_id_and_id_desc; +ALTER TABLE ONLY public.resource_iteration_events + ADD CONSTRAINT fk_rails_501fa15d69 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER INDEX p_ci_builds_stage_id_idx ATTACH PARTITION index_ci_builds_on_stage_id; -ALTER INDEX p_ci_builds_status_type_runner_id_idx ATTACH PARTITION index_ci_builds_on_status_and_type_and_runner_id; +-- +-- Name: status_page_settings fk_rails_506e5ba391; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_builds_updated_at_idx ATTACH PARTITION index_ci_builds_on_updated_at; +ALTER TABLE ONLY public.status_page_settings + ADD CONSTRAINT fk_rails_506e5ba391 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX p_ci_builds_upstream_pipeline_id_idx ATTACH PARTITION index_ci_builds_on_upstream_pipeline_id; -ALTER INDEX p_ci_builds_user_id_idx ATTACH PARTITION index_ci_builds_on_user_id; +-- +-- Name: ci_pipeline_metadata fk_rails_50c1e9ea10_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_builds_user_id_created_at_idx ATTACH PARTITION index_ci_builds_on_user_id_and_created_at_and_type_eq_ci_build; +ALTER TABLE ONLY public.ci_pipeline_metadata + ADD CONSTRAINT fk_rails_50c1e9ea10_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER INDEX p_ci_builds_project_id_status_idx ATTACH PARTITION index_ci_builds_project_id_and_status_for_live_jobs_partial2; -ALTER INDEX p_ci_builds_runner_id_idx ATTACH PARTITION index_ci_builds_runner_id_running; +-- +-- Name: ci_pipeline_metadata fk_rails_50c1e9ea10_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_job_artifacts_expire_at_idx ATTACH PARTITION index_ci_job_artifacts_expire_at_unlocked_non_trace; +ALTER TABLE ONLY public.ci_pipeline_metadata + ADD CONSTRAINT fk_rails_50c1e9ea10_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -ALTER INDEX p_ci_job_artifacts_project_id_id_idx ATTACH PARTITION index_ci_job_artifacts_for_terraform_reports; -ALTER INDEX p_ci_job_artifacts_id_idx ATTACH PARTITION index_ci_job_artifacts_id_for_terraform_reports; +-- +-- Name: project_repository_storage_moves fk_rails_5106dbd44a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_job_artifacts_expire_at_job_id_idx ATTACH PARTITION index_ci_job_artifacts_on_expire_at_and_job_id; +ALTER TABLE ONLY public.project_repository_storage_moves + ADD CONSTRAINT fk_rails_5106dbd44a FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER INDEX p_ci_job_artifacts_file_final_path_idx ATTACH PARTITION index_ci_job_artifacts_on_file_final_path; -ALTER INDEX p_ci_job_artifacts_file_store_idx ATTACH PARTITION index_ci_job_artifacts_on_file_store; +-- +-- Name: ml_candidate_metadata fk_rails_5117dddf22; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_job_artifacts_file_type_project_id_created_at_idx ATTACH PARTITION index_ci_job_artifacts_on_file_type_for_devops_adoption; +ALTER TABLE ONLY public.ml_candidate_metadata + ADD CONSTRAINT fk_rails_5117dddf22 FOREIGN KEY (candidate_id) REFERENCES public.ml_candidates(id) ON DELETE CASCADE; -ALTER INDEX p_ci_job_artifacts_project_id_created_at_id_idx ATTACH PARTITION index_ci_job_artifacts_on_id_project_id_and_created_at; -ALTER INDEX p_ci_job_artifacts_project_id_file_type_id_idx ATTACH PARTITION index_ci_job_artifacts_on_id_project_id_and_file_type; +-- +-- Name: zoekt_tasks fk_rails_51af186590; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_job_artifacts_partition_id_job_id_idx ATTACH PARTITION index_ci_job_artifacts_on_partition_id_job_id; +ALTER TABLE public.zoekt_tasks + ADD CONSTRAINT fk_rails_51af186590 FOREIGN KEY (zoekt_node_id) REFERENCES public.zoekt_nodes(id) ON DELETE CASCADE; -ALTER INDEX p_ci_job_artifacts_project_id_id_idx1 ATTACH PARTITION index_ci_job_artifacts_on_project_id_and_id; -ALTER INDEX p_ci_job_artifacts_project_id_idx1 ATTACH PARTITION index_ci_job_artifacts_on_project_id_for_security_reports; +-- +-- Name: ml_models fk_rails_51e87f7c50; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_pipelines_id_idx ATTACH PARTITION index_ci_pipelines_for_ondemand_dast_scans; +ALTER TABLE ONLY public.ml_models + ADD CONSTRAINT fk_rails_51e87f7c50 FOREIGN KEY (project_id) REFERENCES public.projects(id); -ALTER INDEX p_ci_pipelines_auto_canceled_by_id_idx ATTACH PARTITION index_ci_pipelines_on_auto_canceled_by_id; -ALTER INDEX p_ci_pipelines_ci_ref_id_id_source_status_idx ATTACH PARTITION index_ci_pipelines_on_ci_ref_id_and_more; +-- +-- Name: elastic_group_index_statuses fk_rails_52b9969b12; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_pipelines_external_pull_request_id_idx ATTACH PARTITION index_ci_pipelines_on_external_pull_request_id; +ALTER TABLE ONLY public.elastic_group_index_statuses + ADD CONSTRAINT fk_rails_52b9969b12 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX p_ci_pipelines_merge_request_id_idx ATTACH PARTITION index_ci_pipelines_on_merge_request_id; -ALTER INDEX p_ci_pipelines_pipeline_schedule_id_id_idx ATTACH PARTITION index_ci_pipelines_on_pipeline_schedule_id_and_id; +-- +-- Name: observability_metrics_issues_connections fk_rails_533fe605e3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_pipelines_project_id_id_idx ATTACH PARTITION index_ci_pipelines_on_project_id_and_id_desc; +ALTER TABLE ONLY public.observability_metrics_issues_connections + ADD CONSTRAINT fk_rails_533fe605e3 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER INDEX p_ci_pipelines_project_id_iid_partition_id_idx ATTACH PARTITION index_ci_pipelines_on_project_id_and_iid_and_partition_id; -ALTER INDEX p_ci_pipelines_project_id_ref_status_id_idx ATTACH PARTITION index_ci_pipelines_on_project_id_and_ref_and_status_and_id; +-- +-- Name: bulk_import_configurations fk_rails_536b96bff1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_pipelines_project_id_sha_idx ATTACH PARTITION index_ci_pipelines_on_project_id_and_sha; +ALTER TABLE ONLY public.bulk_import_configurations + ADD CONSTRAINT fk_rails_536b96bff1 FOREIGN KEY (bulk_import_id) REFERENCES public.bulk_imports(id) ON DELETE CASCADE; -ALTER INDEX p_ci_pipelines_project_id_source_idx ATTACH PARTITION index_ci_pipelines_on_project_id_and_source; -ALTER INDEX p_ci_pipelines_project_id_status_config_source_idx ATTACH PARTITION index_ci_pipelines_on_project_id_and_status_and_config_source; +-- +-- Name: workspace_variables fk_rails_539844891e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_pipelines_project_id_status_created_at_idx ATTACH PARTITION index_ci_pipelines_on_project_id_and_status_and_created_at; +ALTER TABLE ONLY public.workspace_variables + ADD CONSTRAINT fk_rails_539844891e FOREIGN KEY (workspace_id) REFERENCES public.workspaces(id) ON DELETE CASCADE; -ALTER INDEX p_ci_pipelines_project_id_status_updated_at_idx ATTACH PARTITION index_ci_pipelines_on_project_id_and_status_and_updated_at; -ALTER INDEX p_ci_pipelines_project_id_user_id_status_ref_idx ATTACH PARTITION index_ci_pipelines_on_project_id_and_user_id_and_status_and_ref; +-- +-- Name: x509_commit_signatures fk_rails_53fe41188f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_pipelines_project_id_ref_id_idx ATTACH PARTITION index_ci_pipelines_on_project_idandrefandiddesc; +ALTER TABLE ONLY public.x509_commit_signatures + ADD CONSTRAINT fk_rails_53fe41188f FOREIGN KEY (x509_certificate_id) REFERENCES public.x509_certificates(id) ON DELETE CASCADE; -ALTER INDEX p_ci_pipelines_status_id_idx ATTACH PARTITION index_ci_pipelines_on_status_and_id; -ALTER INDEX p_ci_pipelines_user_id_created_at_config_source_idx ATTACH PARTITION index_ci_pipelines_on_user_id_and_created_at_and_config_source; +-- +-- Name: analytics_cycle_analytics_group_value_streams fk_rails_540627381a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_pipelines_user_id_created_at_source_idx ATTACH PARTITION index_ci_pipelines_on_user_id_and_created_at_and_source; +ALTER TABLE ONLY public.analytics_cycle_analytics_group_value_streams + ADD CONSTRAINT fk_rails_540627381a FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX p_ci_pipelines_user_id_id_idx ATTACH PARTITION index_ci_pipelines_on_user_id_and_id_and_cancelable_status; -ALTER INDEX p_ci_pipelines_user_id_id_idx1 ATTACH PARTITION index_ci_pipelines_on_user_id_and_id_desc_and_user_not_verified; +-- +-- Name: geo_node_namespace_links fk_rails_546bf08d3e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_stages_pipeline_id_id_idx ATTACH PARTITION index_ci_stages_on_pipeline_id_and_id; +ALTER TABLE ONLY public.geo_node_namespace_links + ADD CONSTRAINT fk_rails_546bf08d3e FOREIGN KEY (geo_node_id) REFERENCES public.geo_nodes(id) ON DELETE CASCADE; -ALTER INDEX p_ci_stages_pipeline_id_position_idx ATTACH PARTITION index_ci_stages_on_pipeline_id_and_position; -ALTER INDEX p_ci_stages_pipeline_id_name_partition_id_idx ATTACH PARTITION index_ci_stages_on_pipeline_id_name_partition_id_unique; +-- +-- Name: abuse_events fk_rails_55101e588c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_stages_project_id_idx ATTACH PARTITION index_ci_stages_on_project_id; +ALTER TABLE ONLY public.abuse_events + ADD CONSTRAINT fk_rails_55101e588c FOREIGN KEY (abuse_report_id) REFERENCES public.abuse_reports(id); -ALTER INDEX p_ci_builds_user_id_name_idx ATTACH PARTITION index_partial_ci_builds_on_user_id_name_parser_features; -ALTER INDEX p_ci_pipeline_variables_pipeline_id_key_partition_id_idx ATTACH PARTITION index_pipeline_variables_on_pipeline_id_key_partition_id_unique; +-- +-- Name: virtual_registries_packages_maven_registries fk_rails_555e85e52c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_builds_user_id_name_created_at_idx ATTACH PARTITION index_secure_ci_builds_on_user_id_name_created_at; +ALTER TABLE ONLY public.virtual_registries_packages_maven_registries + ADD CONSTRAINT fk_rails_555e85e52c FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER INDEX p_ci_builds_name_id_idx ATTACH PARTITION index_security_ci_builds_on_name_and_id_parser_features; -ALTER INDEX p_ci_builds_scheduled_at_idx ATTACH PARTITION partial_index_ci_builds_on_scheduled_at_with_scheduled_jobs; +-- +-- Name: issuable_metric_images fk_rails_56417a5a7f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER INDEX p_ci_job_artifacts_expire_at_job_id_idx1 ATTACH PARTITION tmp_index_ci_job_artifacts_on_expire_at_where_locked_unknown; +ALTER TABLE ONLY public.issuable_metric_images + ADD CONSTRAINT fk_rails_56417a5a7f FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER INDEX p_ci_builds_token_encrypted_partition_id_idx ATTACH PARTITION unique_ci_builds_token_encrypted_and_partition_id; -CREATE TRIGGER assign_p_ci_build_tags_id_trigger BEFORE INSERT ON p_ci_build_tags FOR EACH ROW EXECUTE FUNCTION assign_p_ci_build_tags_id_value(); +-- +-- Name: group_deploy_keys fk_rails_5682fc07f8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER assign_p_ci_builds_execution_configs_id_trigger BEFORE INSERT ON p_ci_builds_execution_configs FOR EACH ROW EXECUTE FUNCTION assign_p_ci_builds_execution_configs_id_value(); +ALTER TABLE ONLY public.group_deploy_keys + ADD CONSTRAINT fk_rails_5682fc07f8 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE RESTRICT; -CREATE TRIGGER assign_p_ci_builds_id_trigger BEFORE INSERT ON p_ci_builds FOR EACH ROW EXECUTE FUNCTION assign_p_ci_builds_id_value(); -CREATE TRIGGER assign_p_ci_job_annotations_id_trigger BEFORE INSERT ON p_ci_job_annotations FOR EACH ROW EXECUTE FUNCTION assign_p_ci_job_annotations_id_value(); +-- +-- Name: issue_user_mentions fk_rails_57581fda73; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER assign_p_ci_job_artifacts_id_trigger BEFORE INSERT ON p_ci_job_artifacts FOR EACH ROW EXECUTE FUNCTION assign_p_ci_job_artifacts_id_value(); +ALTER TABLE ONLY public.issue_user_mentions + ADD CONSTRAINT fk_rails_57581fda73 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -CREATE TRIGGER assign_p_ci_pipeline_variables_id_trigger BEFORE INSERT ON p_ci_pipeline_variables FOR EACH ROW EXECUTE FUNCTION assign_p_ci_pipeline_variables_id_value(); -CREATE TRIGGER assign_p_ci_stages_id_trigger BEFORE INSERT ON p_ci_stages FOR EACH ROW EXECUTE FUNCTION assign_p_ci_stages_id_value(); +-- +-- Name: merge_request_assignees fk_rails_579d375628; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER assign_zoekt_tasks_id_trigger BEFORE INSERT ON zoekt_tasks FOR EACH ROW EXECUTE FUNCTION assign_zoekt_tasks_id_value(); +ALTER TABLE ONLY public.merge_request_assignees + ADD CONSTRAINT fk_rails_579d375628 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE TRIGGER chat_names_loose_fk_trigger AFTER DELETE ON chat_names REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); -CREATE TRIGGER ci_builds_loose_fk_trigger AFTER DELETE ON ci_builds REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); +-- +-- Name: incident_management_timeline_event_tag_links fk_rails_57baccd7f9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER ci_pipelines_loose_fk_trigger AFTER DELETE ON ci_pipelines REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); +ALTER TABLE ONLY public.incident_management_timeline_event_tag_links + ADD CONSTRAINT fk_rails_57baccd7f9 FOREIGN KEY (timeline_event_id) REFERENCES public.incident_management_timeline_events(id) ON DELETE CASCADE; -CREATE TRIGGER ci_runner_machines_loose_fk_trigger AFTER DELETE ON ci_runner_machines REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); -CREATE TRIGGER ci_runners_loose_fk_trigger AFTER DELETE ON ci_runners REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); +-- +-- Name: packages_debian_project_architectures fk_rails_5808663adf; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER clusters_loose_fk_trigger AFTER DELETE ON clusters REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); +ALTER TABLE ONLY public.packages_debian_project_architectures + ADD CONSTRAINT fk_rails_5808663adf FOREIGN KEY (distribution_id) REFERENCES public.packages_debian_project_distributions(id) ON DELETE CASCADE; -CREATE TRIGGER merge_requests_loose_fk_trigger AFTER DELETE ON merge_requests REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); -CREATE TRIGGER namespaces_loose_fk_trigger AFTER DELETE ON namespaces REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); +-- +-- Name: analytics_cycle_analytics_group_stages fk_rails_5a22f40223; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER nullify_merge_request_metrics_build_data_on_update BEFORE UPDATE ON merge_request_metrics FOR EACH ROW EXECUTE FUNCTION nullify_merge_request_metrics_build_data(); +ALTER TABLE ONLY public.analytics_cycle_analytics_group_stages + ADD CONSTRAINT fk_rails_5a22f40223 FOREIGN KEY (start_event_label_id) REFERENCES public.labels(id) ON DELETE CASCADE; -CREATE TRIGGER organizations_loose_fk_trigger AFTER DELETE ON organizations REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); -CREATE TRIGGER p_ci_builds_loose_fk_trigger AFTER DELETE ON p_ci_builds REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); +-- +-- Name: badges fk_rails_5a7c055bdc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER p_ci_pipelines_loose_fk_trigger AFTER DELETE ON p_ci_pipelines REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); +ALTER TABLE ONLY public.badges + ADD CONSTRAINT fk_rails_5a7c055bdc FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE TRIGGER plans_loose_fk_trigger AFTER DELETE ON plans REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); -CREATE TRIGGER prevent_delete_of_default_organization_before_destroy BEFORE DELETE ON organizations FOR EACH ROW EXECUTE FUNCTION prevent_delete_of_default_organization(); +-- +-- Name: resource_label_events fk_rails_5ac1d2fc24; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER projects_loose_fk_trigger AFTER DELETE ON projects REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); +ALTER TABLE ONLY public.resource_label_events + ADD CONSTRAINT fk_rails_5ac1d2fc24 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -CREATE TRIGGER push_rules_loose_fk_trigger AFTER DELETE ON push_rules REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); -CREATE TRIGGER table_sync_trigger_57c8465cd7 AFTER INSERT OR DELETE OR UPDATE ON merge_request_diff_commits FOR EACH ROW EXECUTE FUNCTION table_sync_function_0992e728d3(); +-- +-- Name: ci_secure_file_states fk_rails_5adba40c5f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER table_sync_trigger_cd362c20e2 AFTER INSERT OR DELETE OR UPDATE ON merge_request_diff_files FOR EACH ROW EXECUTE FUNCTION table_sync_function_3f39f64fc3(); +ALTER TABLE ONLY public.ci_secure_file_states + ADD CONSTRAINT fk_rails_5adba40c5f FOREIGN KEY (ci_secure_file_id) REFERENCES public.ci_secure_files(id) ON DELETE CASCADE; -CREATE TRIGGER tags_loose_fk_trigger AFTER DELETE ON tags REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); -CREATE TRIGGER trigger_01b3fc052119 BEFORE INSERT OR UPDATE ON approval_merge_request_rules FOR EACH ROW EXECUTE FUNCTION trigger_01b3fc052119(); +-- +-- Name: approval_merge_request_rules_groups fk_rails_5b2ecf6139; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_02450faab875 BEFORE INSERT OR UPDATE ON vulnerability_occurrence_identifiers FOR EACH ROW EXECUTE FUNCTION trigger_02450faab875(); +ALTER TABLE ONLY public.approval_merge_request_rules_groups + ADD CONSTRAINT fk_rails_5b2ecf6139 FOREIGN KEY (approval_merge_request_rule_id) REFERENCES public.approval_merge_request_rules(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_038fe84feff7 BEFORE INSERT OR UPDATE ON approvals FOR EACH ROW EXECUTE FUNCTION trigger_038fe84feff7(); -CREATE TRIGGER trigger_05ce163deddf BEFORE INSERT OR UPDATE ON status_check_responses FOR EACH ROW EXECUTE FUNCTION trigger_05ce163deddf(); +-- +-- Name: namespace_limits fk_rails_5b3f2bc334; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_0a1b0adcf686 BEFORE INSERT OR UPDATE ON packages_debian_project_components FOR EACH ROW EXECUTE FUNCTION trigger_0a1b0adcf686(); +ALTER TABLE ONLY public.namespace_limits + ADD CONSTRAINT fk_rails_5b3f2bc334 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_0da002390fdc BEFORE INSERT OR UPDATE ON operations_feature_flags_issues FOR EACH ROW EXECUTE FUNCTION trigger_0da002390fdc(); -CREATE TRIGGER trigger_0e13f214e504 BEFORE INSERT OR UPDATE ON merge_request_assignment_events FOR EACH ROW EXECUTE FUNCTION trigger_0e13f214e504(); +-- +-- Name: ml_model_version_metadata fk_rails_5b67cc9107; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_13d4aa8fe3dd BEFORE INSERT OR UPDATE ON draft_notes FOR EACH ROW EXECUTE FUNCTION trigger_13d4aa8fe3dd(); +ALTER TABLE ONLY public.ml_model_version_metadata + ADD CONSTRAINT fk_rails_5b67cc9107 FOREIGN KEY (model_version_id) REFERENCES public.ml_model_versions(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_158ac875f254 BEFORE INSERT OR UPDATE ON approval_group_rules_users FOR EACH ROW EXECUTE FUNCTION trigger_158ac875f254(); -CREATE TRIGGER trigger_174b23fa3dfb BEFORE INSERT OR UPDATE ON approval_project_rules_users FOR EACH ROW EXECUTE FUNCTION trigger_174b23fa3dfb(); +-- +-- Name: protected_environment_deploy_access_levels fk_rails_5b9f6970fe; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_18bc439a6741 BEFORE INSERT OR UPDATE ON packages_conan_metadata FOR EACH ROW EXECUTE FUNCTION trigger_18bc439a6741(); +ALTER TABLE ONLY public.protected_environment_deploy_access_levels + ADD CONSTRAINT fk_rails_5b9f6970fe FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_1ed40f4d5f4e BEFORE INSERT OR UPDATE ON packages_maven_metadata FOR EACH ROW EXECUTE FUNCTION trigger_1ed40f4d5f4e(); -CREATE TRIGGER trigger_206cbe2dc1a2 BEFORE INSERT OR UPDATE ON packages_package_files FOR EACH ROW EXECUTE FUNCTION trigger_206cbe2dc1a2(); +-- +-- Name: protected_branch_unprotect_access_levels fk_rails_5be1abfc25; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_207005e8e995 BEFORE INSERT OR UPDATE ON operations_strategies FOR EACH ROW EXECUTE FUNCTION trigger_207005e8e995(); +ALTER TABLE ONLY public.protected_branch_unprotect_access_levels + ADD CONSTRAINT fk_rails_5be1abfc25 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_219952df8fc4 BEFORE INSERT OR UPDATE ON merge_request_blocks FOR EACH ROW EXECUTE FUNCTION trigger_219952df8fc4(); -CREATE TRIGGER trigger_2514245c7fc5 BEFORE INSERT OR UPDATE ON dast_site_profile_secret_variables FOR EACH ROW EXECUTE FUNCTION trigger_2514245c7fc5(); +-- +-- Name: cluster_providers_gcp fk_rails_5c2c3bc814; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_25c44c30884f BEFORE INSERT OR UPDATE ON work_item_parent_links FOR EACH ROW EXECUTE FUNCTION trigger_25c44c30884f(); +ALTER TABLE ONLY public.cluster_providers_gcp + ADD CONSTRAINT fk_rails_5c2c3bc814 FOREIGN KEY (cluster_id) REFERENCES public.clusters(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_25d35f02ab55 BEFORE INSERT OR UPDATE ON ml_candidate_metadata FOR EACH ROW EXECUTE FUNCTION trigger_25d35f02ab55(); -CREATE TRIGGER trigger_25fe4f7da510 BEFORE INSERT OR UPDATE ON vulnerability_issue_links FOR EACH ROW EXECUTE FUNCTION trigger_25fe4f7da510(); +-- +-- Name: insights fk_rails_5c4391f60a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_2b8fdc9b4a4e BEFORE INSERT OR UPDATE ON ml_experiment_metadata FOR EACH ROW EXECUTE FUNCTION trigger_2b8fdc9b4a4e(); +ALTER TABLE ONLY public.insights + ADD CONSTRAINT fk_rails_5c4391f60a FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_3691f9f6a69f BEFORE INSERT OR UPDATE ON remote_development_agent_configs FOR EACH ROW EXECUTE FUNCTION trigger_3691f9f6a69f(); -CREATE TRIGGER trigger_3fe922f4db67 BEFORE INSERT OR UPDATE ON vulnerability_merge_request_links FOR EACH ROW EXECUTE FUNCTION trigger_3fe922f4db67(); +-- +-- Name: reviews fk_rails_5ca11d8c31; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_41eaf23bf547 BEFORE INSERT OR UPDATE ON release_links FOR EACH ROW EXECUTE FUNCTION trigger_41eaf23bf547(); +ALTER TABLE ONLY public.reviews + ADD CONSTRAINT fk_rails_5ca11d8c31 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_43484cb41aca BEFORE INSERT OR UPDATE ON wiki_repository_states FOR EACH ROW EXECUTE FUNCTION trigger_43484cb41aca(); -CREATE TRIGGER trigger_44558add1625 BEFORE INSERT OR UPDATE ON merge_request_assignees FOR EACH ROW EXECUTE FUNCTION trigger_44558add1625(); +-- +-- Name: ci_running_builds fk_rails_5ca491d360; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_46ebe375f632 BEFORE INSERT OR UPDATE ON epic_issues FOR EACH ROW EXECUTE FUNCTION trigger_46ebe375f632(); +ALTER TABLE ONLY public.ci_running_builds + ADD CONSTRAINT fk_rails_5ca491d360 FOREIGN KEY (runner_id) REFERENCES public.ci_runners(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_49862b4b3035 BEFORE INSERT OR UPDATE ON approval_group_rules_protected_branches FOR EACH ROW EXECUTE FUNCTION trigger_49862b4b3035(); -CREATE TRIGGER trigger_49e070da6320 BEFORE INSERT OR UPDATE ON packages_dependency_links FOR EACH ROW EXECUTE FUNCTION trigger_49e070da6320(); +-- +-- Name: epic_issues fk_rails_5d942936b4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_4ad9a52a6614 BEFORE INSERT OR UPDATE ON sbom_occurrences_vulnerabilities FOR EACH ROW EXECUTE FUNCTION trigger_4ad9a52a6614(); +ALTER TABLE ONLY public.epic_issues + ADD CONSTRAINT fk_rails_5d942936b4 FOREIGN KEY (epic_id) REFERENCES public.epics(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_4b43790d717f BEFORE INSERT OR UPDATE ON protected_environment_approval_rules FOR EACH ROW EXECUTE FUNCTION trigger_4b43790d717f(); -CREATE TRIGGER trigger_54707c384ad7 BEFORE INSERT OR UPDATE ON security_orchestration_policy_rule_schedules FOR EACH ROW EXECUTE FUNCTION trigger_54707c384ad7(); +-- +-- Name: packages_nuget_symbols fk_rails_5df972da14; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_56d49f4ed623 BEFORE INSERT OR UPDATE ON workspace_variables FOR EACH ROW EXECUTE FUNCTION trigger_56d49f4ed623(); +ALTER TABLE ONLY public.packages_nuget_symbols + ADD CONSTRAINT fk_rails_5df972da14 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE SET NULL; -CREATE TRIGGER trigger_57ad2742ac16 BEFORE INSERT OR UPDATE ON user_achievements FOR EACH ROW EXECUTE FUNCTION trigger_57ad2742ac16(); -CREATE TRIGGER trigger_5ca97b87ee30 BEFORE INSERT OR UPDATE ON merge_request_context_commits FOR EACH ROW EXECUTE FUNCTION trigger_5ca97b87ee30(); +-- +-- Name: resource_weight_events fk_rails_5eb5cb92a1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_5f6432d2dccc BEFORE INSERT OR UPDATE ON operations_strategies_user_lists FOR EACH ROW EXECUTE FUNCTION trigger_5f6432d2dccc(); +ALTER TABLE ONLY public.resource_weight_events + ADD CONSTRAINT fk_rails_5eb5cb92a1 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_664594a3d0a7 BEFORE INSERT OR UPDATE ON merge_request_user_mentions FOR EACH ROW EXECUTE FUNCTION trigger_664594a3d0a7(); -CREATE TRIGGER trigger_68435a54ee2b BEFORE INSERT OR UPDATE ON packages_debian_project_architectures FOR EACH ROW EXECUTE FUNCTION trigger_68435a54ee2b(); +-- +-- Name: observability_logs_issues_connections fk_rails_5f0f58ca3a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_6bf50b363152 BEFORE INSERT OR UPDATE ON compliance_framework_security_policies FOR EACH ROW EXECUTE FUNCTION trigger_6bf50b363152(); +ALTER TABLE ONLY public.observability_logs_issues_connections + ADD CONSTRAINT fk_rails_5f0f58ca3a FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_6c38ba395cc1 BEFORE INSERT OR UPDATE ON error_tracking_error_events FOR EACH ROW EXECUTE FUNCTION trigger_6c38ba395cc1(); -CREATE TRIGGER trigger_6cdea9559242 BEFORE INSERT OR UPDATE ON issue_links FOR EACH ROW EXECUTE FUNCTION trigger_6cdea9559242(); +-- +-- Name: approval_project_rules fk_rails_5fb4dd100b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_6d6c79ce74e1 BEFORE INSERT OR UPDATE ON protected_environment_deploy_access_levels FOR EACH ROW EXECUTE FUNCTION trigger_6d6c79ce74e1(); +ALTER TABLE ONLY public.approval_project_rules + ADD CONSTRAINT fk_rails_5fb4dd100b FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_70d3f0bba1de BEFORE INSERT OR UPDATE ON compliance_framework_security_policies FOR EACH ROW EXECUTE FUNCTION trigger_70d3f0bba1de(); -CREATE TRIGGER trigger_740afa9807b8 BEFORE INSERT OR UPDATE ON subscription_user_add_on_assignments FOR EACH ROW EXECUTE FUNCTION trigger_740afa9807b8(); +-- +-- Name: incident_management_oncall_participants fk_rails_5fe86ea341; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_77d9fbad5b12 BEFORE INSERT OR UPDATE ON packages_debian_project_distribution_keys FOR EACH ROW EXECUTE FUNCTION trigger_77d9fbad5b12(); +ALTER TABLE ONLY public.incident_management_oncall_participants + ADD CONSTRAINT fk_rails_5fe86ea341 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_7a8b08eed782 BEFORE INSERT OR UPDATE ON boards_epic_board_positions FOR EACH ROW EXECUTE FUNCTION trigger_7a8b08eed782(); -CREATE TRIGGER trigger_7de792ddbc05 BEFORE INSERT OR UPDATE ON dast_site_validations FOR EACH ROW EXECUTE FUNCTION trigger_7de792ddbc05(); +-- +-- Name: work_item_parent_links fk_rails_601d5bec3a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_84d67ad63e93 BEFORE INSERT OR UPDATE ON wiki_page_slugs FOR EACH ROW EXECUTE FUNCTION trigger_84d67ad63e93(); +ALTER TABLE ONLY public.work_item_parent_links + ADD CONSTRAINT fk_rails_601d5bec3a FOREIGN KEY (work_item_id) REFERENCES public.issues(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_8a38ce2327de BEFORE INSERT OR UPDATE ON boards_epic_user_preferences FOR EACH ROW EXECUTE FUNCTION trigger_8a38ce2327de(); -CREATE TRIGGER trigger_8ac78f164b2d BEFORE INSERT OR UPDATE ON design_management_repositories FOR EACH ROW EXECUTE FUNCTION trigger_8ac78f164b2d(); +-- +-- Name: system_access_microsoft_graph_access_tokens fk_rails_604908851f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_8ba31bddd655 BEFORE INSERT OR UPDATE ON vulnerability_occurrence_pipelines FOR EACH ROW EXECUTE FUNCTION trigger_8ba31bddd655(); +ALTER TABLE ONLY public.system_access_microsoft_graph_access_tokens + ADD CONSTRAINT fk_rails_604908851f FOREIGN KEY (system_access_microsoft_application_id) REFERENCES public.system_access_microsoft_applications(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_8d002f38bdef BEFORE INSERT OR UPDATE ON packages_debian_group_components FOR EACH ROW EXECUTE FUNCTION trigger_8d002f38bdef(); -CREATE TRIGGER trigger_8d17725116fe BEFORE INSERT OR UPDATE ON merge_request_reviewers FOR EACH ROW EXECUTE FUNCTION trigger_8d17725116fe(); +-- +-- Name: vulnerability_state_transitions fk_rails_60e4899648; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_8e66b994e8f0 BEFORE INSERT OR UPDATE ON audit_events_streaming_event_type_filters FOR EACH ROW EXECUTE FUNCTION trigger_8e66b994e8f0(); +ALTER TABLE ONLY public.vulnerability_state_transitions + ADD CONSTRAINT fk_rails_60e4899648 FOREIGN KEY (vulnerability_id) REFERENCES public.vulnerabilities(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_8fbb044c64ad BEFORE INSERT OR UPDATE ON design_management_designs FOR EACH ROW EXECUTE FUNCTION trigger_8fbb044c64ad(); -CREATE TRIGGER trigger_90fa5c6951f1 BEFORE INSERT OR UPDATE ON dast_profiles_tags FOR EACH ROW EXECUTE FUNCTION trigger_90fa5c6951f1(); +-- +-- Name: user_highest_roles fk_rails_60f6c325a6; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_9259aae92378 BEFORE INSERT OR UPDATE ON packages_build_infos FOR EACH ROW EXECUTE FUNCTION trigger_9259aae92378(); +ALTER TABLE ONLY public.user_highest_roles + ADD CONSTRAINT fk_rails_60f6c325a6 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_94514aeadc50 BEFORE INSERT OR UPDATE ON deployment_approvals FOR EACH ROW EXECUTE FUNCTION trigger_94514aeadc50(); -CREATE TRIGGER trigger_9699ea03bb37 BEFORE INSERT OR UPDATE ON related_epic_links FOR EACH ROW EXECUTE FUNCTION trigger_9699ea03bb37(); +-- +-- Name: dependency_proxy_group_settings fk_rails_616ddd680a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_96a76ee9f147 BEFORE INSERT OR UPDATE ON design_management_versions FOR EACH ROW EXECUTE FUNCTION trigger_96a76ee9f147(); +ALTER TABLE ONLY public.dependency_proxy_group_settings + ADD CONSTRAINT fk_rails_616ddd680a FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_9e137c16de79 BEFORE INSERT OR UPDATE ON vulnerability_findings_remediations FOR EACH ROW EXECUTE FUNCTION trigger_9e137c16de79(); -CREATE TRIGGER trigger_9f3745f8fe32 BEFORE INSERT OR UPDATE ON merge_requests_closing_issues FOR EACH ROW EXECUTE FUNCTION trigger_9f3745f8fe32(); +-- +-- Name: group_deploy_tokens fk_rails_61a572b41a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_a1bc7c70cbdf BEFORE INSERT OR UPDATE ON vulnerability_user_mentions FOR EACH ROW EXECUTE FUNCTION trigger_a1bc7c70cbdf(); +ALTER TABLE ONLY public.group_deploy_tokens + ADD CONSTRAINT fk_rails_61a572b41a FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_a253cb3cacdf BEFORE INSERT OR UPDATE ON dora_daily_metrics FOR EACH ROW EXECUTE FUNCTION trigger_a253cb3cacdf(); -CREATE TRIGGER trigger_a4e4fb2451d9 BEFORE INSERT OR UPDATE ON epic_user_mentions FOR EACH ROW EXECUTE FUNCTION trigger_a4e4fb2451d9(); +-- +-- Name: sbom_component_versions fk_rails_61a83aa892; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_a7e0fb195210 BEFORE INSERT OR UPDATE ON vulnerability_finding_evidences FOR EACH ROW EXECUTE FUNCTION trigger_a7e0fb195210(); +ALTER TABLE ONLY public.sbom_component_versions + ADD CONSTRAINT fk_rails_61a83aa892 FOREIGN KEY (component_id) REFERENCES public.sbom_components(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_af3f17817e4d BEFORE INSERT OR UPDATE ON protected_tag_create_access_levels FOR EACH ROW EXECUTE FUNCTION trigger_af3f17817e4d(); -CREATE TRIGGER trigger_b2612138515d BEFORE INSERT OR UPDATE ON project_relation_exports FOR EACH ROW EXECUTE FUNCTION trigger_b2612138515d(); +-- +-- Name: status_page_published_incidents fk_rails_61e5493940; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_b4520c29ea74 BEFORE INSERT OR UPDATE ON approval_merge_request_rule_sources FOR EACH ROW EXECUTE FUNCTION trigger_b4520c29ea74(); +ALTER TABLE ONLY public.status_page_published_incidents + ADD CONSTRAINT fk_rails_61e5493940 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_c17a166692a2 BEFORE INSERT OR UPDATE ON audit_events_streaming_headers FOR EACH ROW EXECUTE FUNCTION trigger_c17a166692a2(); -CREATE TRIGGER trigger_c59fe6f31e71 BEFORE INSERT OR UPDATE ON security_orchestration_policy_rule_schedules FOR EACH ROW EXECUTE FUNCTION trigger_c59fe6f31e71(); +-- +-- Name: group_ssh_certificates fk_rails_61f9eafcdf; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_c5eec113ea76 BEFORE INSERT OR UPDATE ON dast_pre_scan_verifications FOR EACH ROW EXECUTE FUNCTION trigger_c5eec113ea76(); +ALTER TABLE ONLY public.group_ssh_certificates + ADD CONSTRAINT fk_rails_61f9eafcdf FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_c8bc8646bce9 BEFORE INSERT OR UPDATE ON vulnerability_state_transitions FOR EACH ROW EXECUTE FUNCTION trigger_c8bc8646bce9(); -CREATE TRIGGER trigger_c9090feed334 BEFORE INSERT OR UPDATE ON boards_epic_lists FOR EACH ROW EXECUTE FUNCTION trigger_c9090feed334(); +-- +-- Name: container_repository_states fk_rails_63436c99ce; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_cac7c0698291 BEFORE INSERT OR UPDATE ON evidences FOR EACH ROW EXECUTE FUNCTION trigger_cac7c0698291(); +ALTER TABLE ONLY public.container_repository_states + ADD CONSTRAINT fk_rails_63436c99ce FOREIGN KEY (container_repository_id) REFERENCES public.container_repositories(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_catalog_resource_sync_event_on_project_update AFTER UPDATE ON projects FOR EACH ROW WHEN ((((old.name)::text IS DISTINCT FROM (new.name)::text) OR (old.description IS DISTINCT FROM new.description) OR (old.visibility_level IS DISTINCT FROM new.visibility_level))) EXECUTE FUNCTION insert_catalog_resource_sync_event(); -CREATE TRIGGER trigger_d4487a75bd44 BEFORE INSERT OR UPDATE ON terraform_state_versions FOR EACH ROW EXECUTE FUNCTION trigger_d4487a75bd44(); +-- +-- Name: deployment_clusters fk_rails_6359a164df; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_d5c895007948 BEFORE INSERT OR UPDATE ON protected_environment_approval_rules FOR EACH ROW EXECUTE FUNCTION trigger_d5c895007948(); +ALTER TABLE ONLY public.deployment_clusters + ADD CONSTRAINT fk_rails_6359a164df FOREIGN KEY (deployment_id) REFERENCES public.deployments(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_dadd660afe2c BEFORE INSERT OR UPDATE ON packages_debian_group_distribution_keys FOR EACH ROW EXECUTE FUNCTION trigger_dadd660afe2c(); -CREATE TRIGGER trigger_dbdd61a66a91 BEFORE INSERT OR UPDATE ON agent_activity_events FOR EACH ROW EXECUTE FUNCTION trigger_dbdd61a66a91(); +-- +-- Name: incident_management_pending_issue_escalations fk_rails_636678b3bd; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_dc13168b8025 BEFORE INSERT OR UPDATE ON vulnerability_flags FOR EACH ROW EXECUTE FUNCTION trigger_dc13168b8025(); +ALTER TABLE public.incident_management_pending_issue_escalations + ADD CONSTRAINT fk_rails_636678b3bd FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_delete_project_namespace_on_project_delete AFTER DELETE ON projects FOR EACH ROW WHEN ((old.project_namespace_id IS NOT NULL)) EXECUTE FUNCTION delete_associated_project_namespace(); -CREATE TRIGGER trigger_e0864d1cff37 BEFORE INSERT OR UPDATE ON packages_debian_group_architectures FOR EACH ROW EXECUTE FUNCTION trigger_e0864d1cff37(); +-- +-- Name: evidences fk_rails_6388b435a6; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_e1da4a738230 BEFORE INSERT OR UPDATE ON vulnerability_external_issue_links FOR EACH ROW EXECUTE FUNCTION trigger_e1da4a738230(); +ALTER TABLE ONLY public.evidences + ADD CONSTRAINT fk_rails_6388b435a6 FOREIGN KEY (release_id) REFERENCES public.releases(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_e49ab4d904a0 BEFORE INSERT OR UPDATE ON vulnerability_finding_links FOR EACH ROW EXECUTE FUNCTION trigger_e49ab4d904a0(); -CREATE TRIGGER trigger_ebab34f83f1d BEFORE INSERT OR UPDATE ON packages_debian_publications FOR EACH ROW EXECUTE FUNCTION trigger_ebab34f83f1d(); +-- +-- Name: jira_imports fk_rails_63cbe52ada; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_f6c61cdddf31 BEFORE INSERT OR UPDATE ON ml_model_metadata FOR EACH ROW EXECUTE FUNCTION trigger_f6c61cdddf31(); +ALTER TABLE ONLY public.jira_imports + ADD CONSTRAINT fk_rails_63cbe52ada FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_f6f59d8216b3 BEFORE INSERT OR UPDATE ON protected_environment_deploy_access_levels FOR EACH ROW EXECUTE FUNCTION trigger_f6f59d8216b3(); -CREATE TRIGGER trigger_fbd42ed69453 BEFORE INSERT OR UPDATE ON external_status_checks_protected_branches FOR EACH ROW EXECUTE FUNCTION trigger_fbd42ed69453(); +-- +-- Name: group_deploy_tokens fk_rails_6477b01f6b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_fbd8825b3057 BEFORE INSERT OR UPDATE ON boards_epic_board_labels FOR EACH ROW EXECUTE FUNCTION trigger_fbd8825b3057(); +ALTER TABLE ONLY public.group_deploy_tokens + ADD CONSTRAINT fk_rails_6477b01f6b FOREIGN KEY (deploy_token_id) REFERENCES public.deploy_tokens(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_ff16c1fd43ea BEFORE INSERT OR UPDATE ON geo_event_log FOR EACH ROW EXECUTE FUNCTION trigger_ff16c1fd43ea(); -CREATE TRIGGER trigger_fff8735b6b9a BEFORE INSERT OR UPDATE ON vulnerability_finding_signatures FOR EACH ROW EXECUTE FUNCTION trigger_fff8735b6b9a(); +-- +-- Name: reviews fk_rails_64798be025; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_has_external_issue_tracker_on_delete AFTER DELETE ON integrations FOR EACH ROW WHEN ((((old.category)::text = 'issue_tracker'::text) AND (old.active = true) AND (old.project_id IS NOT NULL))) EXECUTE FUNCTION set_has_external_issue_tracker(); +ALTER TABLE ONLY public.reviews + ADD CONSTRAINT fk_rails_64798be025 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_has_external_issue_tracker_on_insert AFTER INSERT ON integrations FOR EACH ROW WHEN ((((new.category)::text = 'issue_tracker'::text) AND (new.active = true) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION set_has_external_issue_tracker(); -CREATE TRIGGER trigger_has_external_issue_tracker_on_update AFTER UPDATE ON integrations FOR EACH ROW WHEN ((((new.category)::text = 'issue_tracker'::text) AND (old.active <> new.active) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION set_has_external_issue_tracker(); +-- +-- Name: operations_feature_flags fk_rails_648e241be7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_has_external_wiki_on_delete AFTER DELETE ON integrations FOR EACH ROW WHEN (((old.type_new = 'Integrations::ExternalWiki'::text) AND (old.project_id IS NOT NULL))) EXECUTE FUNCTION set_has_external_wiki(); +ALTER TABLE ONLY public.operations_feature_flags + ADD CONSTRAINT fk_rails_648e241be7 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_has_external_wiki_on_insert AFTER INSERT ON integrations FOR EACH ROW WHEN (((new.active = true) AND (new.type_new = 'Integrations::ExternalWiki'::text) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION set_has_external_wiki(); -CREATE TRIGGER trigger_has_external_wiki_on_type_new_updated AFTER UPDATE OF type_new ON integrations FOR EACH ROW WHEN (((new.type_new = 'Integrations::ExternalWiki'::text) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION set_has_external_wiki(); +-- +-- Name: board_group_recent_visits fk_rails_64bfc19bc5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_has_external_wiki_on_update AFTER UPDATE ON integrations FOR EACH ROW WHEN (((new.type_new = 'Integrations::ExternalWiki'::text) AND (old.active <> new.active) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION set_has_external_wiki(); +ALTER TABLE ONLY public.board_group_recent_visits + ADD CONSTRAINT fk_rails_64bfc19bc5 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_insert_or_update_vulnerability_reads_from_occurrences AFTER INSERT OR UPDATE ON vulnerability_occurrences FOR EACH ROW EXECUTE FUNCTION insert_or_update_vulnerability_reads(); -CREATE TRIGGER trigger_insert_vulnerability_reads_from_vulnerability AFTER UPDATE ON vulnerabilities FOR EACH ROW WHEN (((old.present_on_default_branch IS NOT TRUE) AND (new.present_on_default_branch IS TRUE))) EXECUTE FUNCTION insert_vulnerability_reads_from_vulnerability(); +-- +-- Name: approval_merge_request_rule_sources fk_rails_64e8ed3c7e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_namespaces_traversal_ids_on_update AFTER UPDATE ON namespaces FOR EACH ROW WHEN ((old.traversal_ids IS DISTINCT FROM new.traversal_ids)) EXECUTE FUNCTION insert_namespaces_sync_event(); +ALTER TABLE ONLY public.approval_merge_request_rule_sources + ADD CONSTRAINT fk_rails_64e8ed3c7e FOREIGN KEY (approval_project_rule_id) REFERENCES public.approval_project_rules(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_projects_parent_id_on_insert AFTER INSERT ON projects FOR EACH ROW EXECUTE FUNCTION insert_projects_sync_event(); -CREATE TRIGGER trigger_projects_parent_id_on_update AFTER UPDATE ON projects FOR EACH ROW WHEN ((old.namespace_id IS DISTINCT FROM new.namespace_id)) EXECUTE FUNCTION insert_projects_sync_event(); +-- +-- Name: approval_project_rules_protected_branches fk_rails_65203aa786; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_sync_issues_dates_with_work_item_dates_sources AFTER INSERT OR UPDATE OF start_date, due_date ON work_item_dates_sources FOR EACH ROW EXECUTE FUNCTION sync_issues_dates_with_work_item_dates_sources(); +ALTER TABLE ONLY public.approval_project_rules_protected_branches + ADD CONSTRAINT fk_rails_65203aa786 FOREIGN KEY (approval_project_rule_id) REFERENCES public.approval_project_rules(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_update_details_on_namespace_insert AFTER INSERT ON namespaces FOR EACH ROW WHEN (((new.type)::text <> 'Project'::text)) EXECUTE FUNCTION update_namespace_details_from_namespaces(); -CREATE TRIGGER trigger_update_details_on_namespace_update AFTER UPDATE ON namespaces FOR EACH ROW WHEN ((((new.type)::text <> 'Project'::text) AND (((old.description)::text IS DISTINCT FROM (new.description)::text) OR (old.description_html IS DISTINCT FROM new.description_html) OR (old.cached_markdown_version IS DISTINCT FROM new.cached_markdown_version)))) EXECUTE FUNCTION update_namespace_details_from_namespaces(); +-- +-- Name: design_management_versions fk_rails_6574200d99; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_update_details_on_project_insert AFTER INSERT ON projects FOR EACH ROW EXECUTE FUNCTION update_namespace_details_from_projects(); +ALTER TABLE ONLY public.design_management_versions + ADD CONSTRAINT fk_rails_6574200d99 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_update_details_on_project_update AFTER UPDATE ON projects FOR EACH ROW WHEN (((old.description IS DISTINCT FROM new.description) OR (old.description_html IS DISTINCT FROM new.description_html) OR (old.cached_markdown_version IS DISTINCT FROM new.cached_markdown_version))) EXECUTE FUNCTION update_namespace_details_from_projects(); -CREATE TRIGGER trigger_update_has_issues_on_vulnerability_issue_links_delete AFTER DELETE ON vulnerability_issue_links FOR EACH ROW EXECUTE FUNCTION unset_has_issues_on_vulnerability_reads(); +-- +-- Name: approval_merge_request_rules_approved_approvers fk_rails_6577725edb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_update_has_issues_on_vulnerability_issue_links_update AFTER INSERT ON vulnerability_issue_links FOR EACH ROW EXECUTE FUNCTION set_has_issues_on_vulnerability_reads(); +ALTER TABLE ONLY public.approval_merge_request_rules_approved_approvers + ADD CONSTRAINT fk_rails_6577725edb FOREIGN KEY (approval_merge_request_rule_id) REFERENCES public.approval_merge_request_rules(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_update_has_merge_request_on_vulnerability_mr_links_dele AFTER DELETE ON vulnerability_merge_request_links FOR EACH ROW EXECUTE FUNCTION unset_has_merge_request_on_vulnerability_reads(); -CREATE TRIGGER trigger_update_has_merge_request_on_vulnerability_mr_links_upda AFTER INSERT ON vulnerability_merge_request_links FOR EACH ROW EXECUTE FUNCTION set_has_merge_request_on_vulnerability_reads(); +-- +-- Name: project_relation_export_uploads fk_rails_660ada90c9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -CREATE TRIGGER trigger_update_location_on_vulnerability_occurrences_update AFTER UPDATE ON vulnerability_occurrences FOR EACH ROW WHEN (((new.report_type = ANY (ARRAY[2, 7])) AND (((old.location ->> 'image'::text) IS DISTINCT FROM (new.location ->> 'image'::text)) OR (((old.location -> 'kubernetes_resource'::text) ->> 'agent_id'::text) IS DISTINCT FROM ((new.location -> 'kubernetes_resource'::text) ->> 'agent_id'::text))))) EXECUTE FUNCTION update_location_from_vulnerability_occurrences(); +ALTER TABLE ONLY public.project_relation_export_uploads + ADD CONSTRAINT fk_rails_660ada90c9 FOREIGN KEY (project_relation_export_id) REFERENCES public.project_relation_exports(id) ON DELETE CASCADE; -CREATE TRIGGER trigger_update_vulnerability_reads_on_vulnerability_update AFTER UPDATE ON vulnerabilities FOR EACH ROW WHEN (((old.present_on_default_branch IS TRUE) AND ((old.severity IS DISTINCT FROM new.severity) OR (old.state IS DISTINCT FROM new.state) OR (old.resolved_on_default_branch IS DISTINCT FROM new.resolved_on_default_branch)))) EXECUTE FUNCTION update_vulnerability_reads_from_vulnerability(); -CREATE TRIGGER users_loose_fk_trigger AFTER DELETE ON users REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); +-- +-- Name: operations_feature_flags_clients fk_rails_6650ed902c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY deployments - ADD CONSTRAINT fk_009fd21147 FOREIGN KEY (environment_id) REFERENCES environments(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.operations_feature_flags_clients + ADD CONSTRAINT fk_rails_6650ed902c FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY epics - ADD CONSTRAINT fk_013c9f36ca FOREIGN KEY (due_date_sourcing_epic_id) REFERENCES epics(id) ON DELETE SET NULL; -ALTER TABLE ONLY environments - ADD CONSTRAINT fk_01a033a308 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE SET NULL; +-- +-- Name: namespace_admin_notes fk_rails_666166ea7b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY agent_user_access_project_authorizations - ADD CONSTRAINT fk_0250c0ad51 FOREIGN KEY (agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.namespace_admin_notes + ADD CONSTRAINT fk_rails_666166ea7b FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY cluster_agent_url_configurations - ADD CONSTRAINT fk_02c2a4f060 FOREIGN KEY (agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; -ALTER TABLE ONLY incident_management_escalation_rules - ADD CONSTRAINT fk_0314ee86eb FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: ci_runner_machines fk_rails_666b61f04f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY service_desk_settings - ADD CONSTRAINT fk_03afb71f06 FOREIGN KEY (file_template_project_id) REFERENCES projects(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.ci_runner_machines + ADD CONSTRAINT fk_rails_666b61f04f FOREIGN KEY (runner_id) REFERENCES public.ci_runners(id) ON DELETE CASCADE; -ALTER TABLE ONLY design_management_designs_versions - ADD CONSTRAINT fk_03c671965c FOREIGN KEY (design_id) REFERENCES design_management_designs(id) ON DELETE CASCADE; -ALTER TABLE ONLY external_status_checks_protected_branches - ADD CONSTRAINT fk_0480f2308c FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: approval_group_rules fk_rails_6727675176; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY sbom_occurrences_vulnerabilities - ADD CONSTRAINT fk_058f258503 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.approval_group_rules + ADD CONSTRAINT fk_rails_6727675176 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY analytics_dashboards_pointers - ADD CONSTRAINT fk_05d96922bd FOREIGN KEY (target_project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY issues - ADD CONSTRAINT fk_05f1e72feb FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: jira_imports fk_rails_675d38c03b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_requests - ADD CONSTRAINT fk_06067f5644 FOREIGN KEY (latest_merge_request_diff_id) REFERENCES merge_request_diffs(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.jira_imports + ADD CONSTRAINT fk_rails_675d38c03b FOREIGN KEY (label_id) REFERENCES public.labels(id) ON DELETE SET NULL; -ALTER TABLE ONLY sbom_occurrences_vulnerabilities - ADD CONSTRAINT fk_07b81e3a81 FOREIGN KEY (vulnerability_id) REFERENCES vulnerabilities(id) ON DELETE CASCADE; -ALTER TABLE ONLY ai_agent_version_attachments - ADD CONSTRAINT fk_07db0a0e5b FOREIGN KEY (ai_agent_version_id) REFERENCES ai_agent_versions(id) ON DELETE CASCADE; +-- +-- Name: vulnerability_findings_remediations fk_rails_681c85ae0f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY abuse_report_notes - ADD CONSTRAINT fk_0801b83126 FOREIGN KEY (updated_by_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.vulnerability_findings_remediations + ADD CONSTRAINT fk_rails_681c85ae0f FOREIGN KEY (vulnerability_remediation_id) REFERENCES public.vulnerability_remediations(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerability_issue_links - ADD CONSTRAINT fk_081e11030b FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY analytics_cycle_analytics_stage_event_hashes - ADD CONSTRAINT fk_0839874e4f FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; +-- +-- Name: resource_iteration_events fk_rails_6830c13ac1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY abuse_report_user_mentions - ADD CONSTRAINT fk_088018ecd8 FOREIGN KEY (abuse_report_id) REFERENCES abuse_reports(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.resource_iteration_events + ADD CONSTRAINT fk_rails_6830c13ac1 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_request_assignees - ADD CONSTRAINT fk_088f01d08d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY observability_traces_issues_connections - ADD CONSTRAINT fk_08c2664321 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: plan_limits fk_rails_69f8b6184f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_assignment_events - ADD CONSTRAINT fk_08f7602bfd FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.plan_limits + ADD CONSTRAINT fk_rails_69f8b6184f FOREIGN KEY (plan_id) REFERENCES public.plans(id) ON DELETE CASCADE; -ALTER TABLE ONLY remote_development_agent_configs - ADD CONSTRAINT fk_0a3c0ada56 FOREIGN KEY (cluster_agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; -ALTER TABLE ONLY dast_sites - ADD CONSTRAINT fk_0a57f2271b FOREIGN KEY (dast_site_validation_id) REFERENCES dast_site_validations(id) ON DELETE SET NULL; +-- +-- Name: ci_cost_settings fk_rails_6a70651f75; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_saved_replies - ADD CONSTRAINT fk_0ace76afbb FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE NOT VALID; +ALTER TABLE ONLY public.ci_cost_settings + ADD CONSTRAINT fk_rails_6a70651f75 FOREIGN KEY (runner_id) REFERENCES public.ci_runners(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_group_rules_protected_branches - ADD CONSTRAINT fk_0b85e6c388 FOREIGN KEY (protected_branch_id) REFERENCES protected_branches(id) ON DELETE CASCADE; -ALTER TABLE ONLY issue_customer_relations_contacts - ADD CONSTRAINT fk_0c0037f723 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +-- +-- Name: operations_feature_flags_issues fk_rails_6a8856ca4f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY remote_development_namespace_cluster_agent_mappings - ADD CONSTRAINT fk_0c483ecb9d FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.operations_feature_flags_issues + ADD CONSTRAINT fk_rails_6a8856ca4f FOREIGN KEY (feature_flag_id) REFERENCES public.operations_feature_flags(id) ON DELETE CASCADE; -ALTER TABLE ONLY zoekt_replicas - ADD CONSTRAINT fk_0c62cc0251 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY ssh_signatures - ADD CONSTRAINT fk_0c83baaa5f FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: import_source_users fk_rails_6aee6cd676; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY web_hooks - ADD CONSTRAINT fk_0c8ca6d9d1 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.import_source_users + ADD CONSTRAINT fk_rails_6aee6cd676 FOREIGN KEY (placeholder_user_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER TABLE ONLY lists - ADD CONSTRAINT fk_0d3f677137 FOREIGN KEY (board_id) REFERENCES boards(id) ON DELETE CASCADE; -ALTER TABLE ONLY subscription_user_add_on_assignments - ADD CONSTRAINT fk_0d89020c49 FOREIGN KEY (add_on_purchase_id) REFERENCES subscription_add_on_purchases(id) ON DELETE CASCADE; +-- +-- Name: ml_experiment_metadata fk_rails_6b39844d44; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY approval_project_rules_users - ADD CONSTRAINT fk_0dfcd9e339 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ml_experiment_metadata + ADD CONSTRAINT fk_rails_6b39844d44 FOREIGN KEY (experiment_id) REFERENCES public.ml_experiments(id) ON DELETE CASCADE; -ALTER TABLE ONLY security_policy_project_links - ADD CONSTRAINT fk_0eba4d5d71 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY deployment_approvals - ADD CONSTRAINT fk_0f58311058 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: error_tracking_errors fk_rails_6b41f837ba; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_pages_metadata - ADD CONSTRAINT fk_0fd5b22688 FOREIGN KEY (pages_deployment_id) REFERENCES pages_deployments(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.error_tracking_errors + ADD CONSTRAINT fk_rails_6b41f837ba FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY audit_events_streaming_event_type_filters - ADD CONSTRAINT fk_107946dffb FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY group_deletion_schedules - ADD CONSTRAINT fk_11e3ebfcdd FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: ml_model_version_metadata fk_rails_6b8fcb2af1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY protected_environment_deploy_access_levels - ADD CONSTRAINT fk_11ede44198 FOREIGN KEY (protected_environment_group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ml_model_version_metadata + ADD CONSTRAINT fk_rails_6b8fcb2af1 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY remote_development_namespace_cluster_agent_mappings - ADD CONSTRAINT fk_124d8167c5 FOREIGN KEY (creator_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY cluster_agent_url_configurations - ADD CONSTRAINT fk_12d4a33b65 FOREIGN KEY (created_by_user_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: prometheus_alerts fk_rails_6d9b283465; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY member_approvals - ADD CONSTRAINT fk_1383c72212 FOREIGN KEY (member_namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.prometheus_alerts + ADD CONSTRAINT fk_rails_6d9b283465 FOREIGN KEY (environment_id) REFERENCES public.environments(id) ON DELETE CASCADE; -ALTER TABLE ONLY audit_events_streaming_headers - ADD CONSTRAINT fk_1413743b7d FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_group_rules - ADD CONSTRAINT fk_1485c451e3 FOREIGN KEY (scan_result_policy_id) REFERENCES scan_result_policies(id) ON DELETE CASCADE; +-- +-- Name: term_agreements fk_rails_6ea6520e4a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ldap_group_links - ADD CONSTRAINT fk_14a86de4b3 FOREIGN KEY (member_role_id) REFERENCES member_roles(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.term_agreements + ADD CONSTRAINT fk_rails_6ea6520e4a FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY catalog_resource_versions - ADD CONSTRAINT fk_15376d917e FOREIGN KEY (release_id) REFERENCES releases(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_request_blocks - ADD CONSTRAINT fk_1551efdd17 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: project_compliance_framework_settings fk_rails_6f5294f16c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY protected_branch_push_access_levels - ADD CONSTRAINT fk_15d2a7a4ae FOREIGN KEY (deploy_key_id) REFERENCES keys(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.project_compliance_framework_settings + ADD CONSTRAINT fk_rails_6f5294f16c FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_achievements - ADD CONSTRAINT fk_15d6451a81 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY internal_ids - ADD CONSTRAINT fk_162941d509 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: users_security_dashboard_projects fk_rails_6f6cf8e66e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY incident_management_timeline_events - ADD CONSTRAINT fk_17a5fafbd4 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.users_security_dashboard_projects + ADD CONSTRAINT fk_rails_6f6cf8e66e FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY scan_result_policy_violations - ADD CONSTRAINT fk_17ce579abf FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY incident_management_timeline_events - ADD CONSTRAINT fk_1800597ef9 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: analytics_dashboards_pointers fk_rails_7027b7eaa9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY terraform_state_versions - ADD CONSTRAINT fk_180cde327a FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.analytics_dashboards_pointers + ADD CONSTRAINT fk_rails_7027b7eaa9 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_features - ADD CONSTRAINT fk_18513d9b92 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY abuse_report_events - ADD CONSTRAINT fk_18c774c06b FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: ci_builds_runner_session fk_rails_70707857d3_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE p_ci_pipelines - ADD CONSTRAINT fk_190998ef09 FOREIGN KEY (external_pull_request_id) REFERENCES external_pull_requests(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.ci_builds_runner_session + ADD CONSTRAINT fk_rails_70707857d3_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY analytics_devops_adoption_segments - ADD CONSTRAINT fk_190a24754d FOREIGN KEY (display_namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_statistics - ADD CONSTRAINT fk_198ad46fdc FOREIGN KEY (root_namespace_id) REFERENCES namespaces(id) ON DELETE SET NULL; +-- +-- Name: list_user_preferences fk_rails_70b2ef5ce2; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY approval_policy_rule_project_links - ADD CONSTRAINT fk_1c78796d52 FOREIGN KEY (approval_policy_rule_id) REFERENCES approval_policy_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.list_user_preferences + ADD CONSTRAINT fk_rails_70b2ef5ce2 FOREIGN KEY (list_id) REFERENCES public.lists(id) ON DELETE CASCADE; -ALTER TABLE ONLY issue_links - ADD CONSTRAINT fk_1cce06b868 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY agent_project_authorizations - ADD CONSTRAINT fk_1d30bb4987 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: issue_search_data fk_rails_7149dd9eee; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ai_agent_version_attachments - ADD CONSTRAINT fk_1d4253673b FOREIGN KEY (ai_vectorizable_file_id) REFERENCES ai_vectorizable_files(id) ON DELETE CASCADE; +ALTER TABLE public.issue_search_data + ADD CONSTRAINT fk_rails_7149dd9eee FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY design_management_versions - ADD CONSTRAINT fk_1dccb304f8 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY boards - ADD CONSTRAINT fk_1e9a074a35 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: project_custom_attributes fk_rails_719c3dccc5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY zoekt_enabled_namespaces - ADD CONSTRAINT fk_1effa65b25 FOREIGN KEY (root_namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.project_custom_attributes + ADD CONSTRAINT fk_rails_719c3dccc5 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY import_placeholder_memberships - ADD CONSTRAINT fk_1f4659deee FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY epics - ADD CONSTRAINT fk_1fbed67632 FOREIGN KEY (start_date_sourcing_milestone_id) REFERENCES milestones(id) ON DELETE SET NULL; +-- +-- Name: ci_pending_builds fk_rails_725a2644a3_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ghost_user_migrations - ADD CONSTRAINT fk_202e642a2f FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ci_pending_builds + ADD CONSTRAINT fk_rails_725a2644a3_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY coverage_fuzzing_corpuses - ADD CONSTRAINT fk_204d40056a FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY namespace_settings - ADD CONSTRAINT fk_20cf0eb2f9 FOREIGN KEY (default_compliance_framework_id) REFERENCES compliance_management_frameworks(id) ON DELETE SET NULL; +-- +-- Name: security_findings fk_rails_729b763a54; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE p_ci_build_trace_metadata - ADD CONSTRAINT fk_21d25cac1a_p FOREIGN KEY (partition_id, trace_artifact_id) REFERENCES p_ci_job_artifacts(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE public.security_findings + ADD CONSTRAINT fk_rails_729b763a54 FOREIGN KEY (scanner_id) REFERENCES public.vulnerability_scanners(id) ON DELETE CASCADE; -ALTER TABLE ONLY users_star_projects - ADD CONSTRAINT fk_22cd27ddfc FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY alert_management_alerts - ADD CONSTRAINT fk_2358b75436 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE SET NULL; +-- +-- Name: custom_emoji fk_rails_745925b412; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY design_management_designs - ADD CONSTRAINT fk_239cd63678 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.custom_emoji + ADD CONSTRAINT fk_rails_745925b412 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY audit_events_streaming_http_instance_namespace_filters - ADD CONSTRAINT fk_23f3ab7df0 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY import_failures - ADD CONSTRAINT fk_24b824da43 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: boards_epic_board_labels fk_rails_7471128a8e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_ci_cd_settings - ADD CONSTRAINT fk_24c15d2f2e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.boards_epic_board_labels + ADD CONSTRAINT fk_rails_7471128a8e FOREIGN KEY (epic_board_id) REFERENCES public.boards_epic_boards(id) ON DELETE CASCADE; -ALTER TABLE ONLY agent_activity_events - ADD CONSTRAINT fk_256c631779 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE SET NULL; -ALTER TABLE ONLY zoekt_repositories - ADD CONSTRAINT fk_25a92aeccd FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE SET NULL; +-- +-- Name: dast_site_profiles fk_rails_747dc64abc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ci_pipelines - ADD CONSTRAINT fk_262d4c2d19_p FOREIGN KEY (auto_canceled_by_partition_id, auto_canceled_by_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL; +ALTER TABLE ONLY public.dast_site_profiles + ADD CONSTRAINT fk_rails_747dc64abc FOREIGN KEY (dast_site_id) REFERENCES public.dast_sites(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_pipelines - ADD CONSTRAINT fk_262d4c2d19_p_tmp FOREIGN KEY (auto_canceled_by_partition_id, auto_canceled_by_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL NOT VALID; -ALTER TABLE ONLY user_namespace_callouts - ADD CONSTRAINT fk_27a69fd1bd FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: merge_request_context_commit_diff_files fk_rails_74a00a1787; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY work_item_dates_sources - ADD CONSTRAINT fk_283fb4ad36 FOREIGN KEY (start_date_sourcing_milestone_id) REFERENCES milestones(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.merge_request_context_commit_diff_files + ADD CONSTRAINT fk_rails_74a00a1787 FOREIGN KEY (merge_request_context_commit_id) REFERENCES public.merge_request_context_commits(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_group_links - ADD CONSTRAINT fk_28a1244b01 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE NOT VALID; -ALTER TABLE ONLY merge_requests_compliance_violations - ADD CONSTRAINT fk_290ec1ab02 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +-- +-- Name: audit_events_streaming_http_group_namespace_filters fk_rails_74a28d2432; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY coverage_fuzzing_corpuses - ADD CONSTRAINT fk_29f6f15f82 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.audit_events_streaming_http_group_namespace_filters + ADD CONSTRAINT fk_rails_74a28d2432 FOREIGN KEY (external_audit_event_destination_id) REFERENCES public.audit_events_external_audit_event_destinations(id) ON DELETE CASCADE; -ALTER TABLE ONLY resource_link_events - ADD CONSTRAINT fk_2a039c40f4 FOREIGN KEY (system_note_metadata_id) REFERENCES system_note_metadata(id) ON DELETE CASCADE; -ALTER TABLE ONLY ml_candidates - ADD CONSTRAINT fk_2a0421d824 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: group_crm_settings fk_rails_74fdf2f13d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY approval_group_rules - ADD CONSTRAINT fk_2a74c6e52d FOREIGN KEY (approval_policy_rule_id) REFERENCES approval_policy_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.group_crm_settings + ADD CONSTRAINT fk_rails_74fdf2f13d FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY agent_group_authorizations - ADD CONSTRAINT fk_2c9f941965 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY deployment_approvals - ADD CONSTRAINT fk_2d060dfc73 FOREIGN KEY (deployment_id) REFERENCES deployments(id) ON DELETE CASCADE; +-- +-- Name: pm_package_version_licenses fk_rails_7520ea026d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY notes - ADD CONSTRAINT fk_2e82291620 FOREIGN KEY (review_id) REFERENCES reviews(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.pm_package_version_licenses + ADD CONSTRAINT fk_rails_7520ea026d FOREIGN KEY (pm_license_id) REFERENCES public.pm_licenses(id) ON DELETE CASCADE; -ALTER TABLE ONLY lfs_objects_projects - ADD CONSTRAINT fk_2eb33f7a78 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE NOT VALID; -ALTER TABLE ONLY vulnerability_merge_request_links - ADD CONSTRAINT fk_2ef3954596 FOREIGN KEY (vulnerability_id) REFERENCES vulnerabilities(id) ON DELETE CASCADE; +-- +-- Name: incident_management_timeline_event_tag_links fk_rails_753b8b6ee3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY duo_workflows_workflows - ADD CONSTRAINT fk_2f6398d8ee FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.incident_management_timeline_event_tag_links + ADD CONSTRAINT fk_rails_753b8b6ee3 FOREIGN KEY (timeline_event_tag_id) REFERENCES public.incident_management_timeline_event_tags(id) ON DELETE CASCADE; -ALTER TABLE ONLY members - ADD CONSTRAINT fk_2f85abf8f1 FOREIGN KEY (member_namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY group_group_links - ADD CONSTRAINT fk_2fbc7071a3 FOREIGN KEY (member_role_id) REFERENCES member_roles(id) ON DELETE SET NULL; +-- +-- Name: release_links fk_rails_753be7ae29; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY zoekt_replicas - ADD CONSTRAINT fk_3035f4b498 FOREIGN KEY (zoekt_enabled_namespace_id) REFERENCES zoekt_enabled_namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.release_links + ADD CONSTRAINT fk_rails_753be7ae29 FOREIGN KEY (release_id) REFERENCES public.releases(id) ON DELETE CASCADE; -ALTER TABLE ONLY analytics_cycle_analytics_group_stages - ADD CONSTRAINT fk_3078345d6d FOREIGN KEY (stage_event_hash_id) REFERENCES analytics_cycle_analytics_stage_event_hashes(id) ON DELETE CASCADE; -ALTER TABLE ONLY oauth_device_grants - ADD CONSTRAINT fk_308d5b76fe FOREIGN KEY (application_id) REFERENCES oauth_applications(id) ON DELETE CASCADE; +-- +-- Name: milestone_releases fk_rails_754f27dbfa; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY lists - ADD CONSTRAINT fk_30f2a831f4 FOREIGN KEY (iteration_id) REFERENCES sprints(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.milestone_releases + ADD CONSTRAINT fk_rails_754f27dbfa FOREIGN KEY (release_id) REFERENCES public.releases(id) ON DELETE CASCADE; -ALTER TABLE ONLY approvals - ADD CONSTRAINT fk_310d714958 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY namespaces - ADD CONSTRAINT fk_319256d87a FOREIGN KEY (file_template_project_id) REFERENCES projects(id) ON DELETE SET NULL; +-- +-- Name: resource_label_events fk_rails_75efb0a653; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY design_management_repositories - ADD CONSTRAINT fk_335d4698e2 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.resource_label_events + ADD CONSTRAINT fk_rails_75efb0a653 FOREIGN KEY (epic_id) REFERENCES public.epics(id) ON DELETE CASCADE; -ALTER TABLE ONLY issue_tracker_data - ADD CONSTRAINT fk_33921c0ee1 FOREIGN KEY (integration_id) REFERENCES integrations(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_project_callouts - ADD CONSTRAINT fk_33b4814f6b FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: x509_certificates fk_rails_76479fb5b4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY namespaces - ADD CONSTRAINT fk_3448c97865 FOREIGN KEY (push_rule_id) REFERENCES push_rules(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.x509_certificates + ADD CONSTRAINT fk_rails_76479fb5b4 FOREIGN KEY (x509_issuer_id) REFERENCES public.x509_issuers(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_topics - ADD CONSTRAINT fk_34af9ab07a FOREIGN KEY (topic_id) REFERENCES topics(id) ON DELETE CASCADE; -ALTER TABLE ONLY saml_providers - ADD CONSTRAINT fk_351dde3a84 FOREIGN KEY (member_role_id) REFERENCES member_roles(id) ON DELETE SET NULL; +-- +-- Name: pages_domain_acme_orders fk_rails_76581b1c16; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY epics - ADD CONSTRAINT fk_3654b61b03 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.pages_domain_acme_orders + ADD CONSTRAINT fk_rails_76581b1c16 FOREIGN KEY (pages_domain_id) REFERENCES public.pages_domains(id) ON DELETE CASCADE; -ALTER TABLE ONLY sprints - ADD CONSTRAINT fk_365d1db505 FOREIGN KEY (iterations_cadence_id) REFERENCES iterations_cadences(id) ON DELETE CASCADE; -ALTER TABLE ONLY operations_feature_flags_issues - ADD CONSTRAINT fk_3685a990ae FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: packages_debian_publications fk_rails_7668c1d606; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY push_event_payloads - ADD CONSTRAINT fk_36c74129da FOREIGN KEY (event_id) REFERENCES events(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_debian_publications + ADD CONSTRAINT fk_rails_7668c1d606 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY protected_tag_create_access_levels - ADD CONSTRAINT fk_386a642e13 FOREIGN KEY (deploy_key_id) REFERENCES keys(id) ON DELETE CASCADE; -ALTER TABLE ONLY incident_management_timeline_events - ADD CONSTRAINT fk_38a74279df FOREIGN KEY (updated_by_user_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: boards_epic_user_preferences fk_rails_76c4e9732d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY import_export_uploads - ADD CONSTRAINT fk_38e11735aa FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.boards_epic_user_preferences + ADD CONSTRAINT fk_rails_76c4e9732d FOREIGN KEY (epic_id) REFERENCES public.epics(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_group_rules_users - ADD CONSTRAINT fk_3995d73930 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY bulk_import_exports - ADD CONSTRAINT fk_39c726d3b5 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: packages_debian_group_distribution_keys fk_rails_779438f163; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ml_model_versions - ADD CONSTRAINT fk_39f8aa0b8a FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.packages_debian_group_distribution_keys + ADD CONSTRAINT fk_rails_779438f163 FOREIGN KEY (distribution_id) REFERENCES public.packages_debian_group_distributions(id) ON DELETE CASCADE; -ALTER TABLE p_ci_builds - ADD CONSTRAINT fk_3a9eaa254d_p FOREIGN KEY (partition_id, stage_id) REFERENCES p_ci_stages(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY draft_notes - ADD CONSTRAINT fk_3ac2bcb746 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: terraform_states fk_rails_78f54ca485; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY agent_activity_events - ADD CONSTRAINT fk_3af186389b FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.terraform_states + ADD CONSTRAINT fk_rails_78f54ca485 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY protected_environment_approval_rules - ADD CONSTRAINT fk_3b3f2f0470 FOREIGN KEY (protected_environment_group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY issues - ADD CONSTRAINT fk_3b8c72ea56 FOREIGN KEY (sprint_id) REFERENCES sprints(id) ON DELETE SET NULL; +-- +-- Name: software_license_policies fk_rails_7a7a2a92de; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_reviewers - ADD CONSTRAINT fk_3b8e02a846 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.software_license_policies + ADD CONSTRAINT fk_rails_7a7a2a92de FOREIGN KEY (software_license_id) REFERENCES public.software_licenses(id) ON DELETE CASCADE; -ALTER TABLE ONLY epics - ADD CONSTRAINT fk_3c1fd1cccc FOREIGN KEY (due_date_sourcing_milestone_id) REFERENCES milestones(id) ON DELETE SET NULL; -ALTER TABLE ONLY release_links - ADD CONSTRAINT fk_3cb34866ac FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: project_repositories fk_rails_7a810d4121; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY bulk_import_export_uploads - ADD CONSTRAINT fk_3cbf0b9a2e FOREIGN KEY (batch_id) REFERENCES bulk_import_export_batches(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.project_repositories + ADD CONSTRAINT fk_rails_7a810d4121 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY compliance_framework_security_policies - ADD CONSTRAINT fk_3ce58167f1 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE p_ci_pipelines - ADD CONSTRAINT fk_3d34ab2e06 FOREIGN KEY (pipeline_schedule_id) REFERENCES ci_pipeline_schedules(id) ON DELETE SET NULL; +-- +-- Name: operations_scopes fk_rails_7a9358853b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY scan_result_policy_violations - ADD CONSTRAINT fk_3d58aa6aee FOREIGN KEY (approval_policy_rule_id) REFERENCES approval_policy_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.operations_scopes + ADD CONSTRAINT fk_rails_7a9358853b FOREIGN KEY (strategy_id) REFERENCES public.operations_strategies(id) ON DELETE CASCADE; -ALTER TABLE ONLY wiki_page_slugs - ADD CONSTRAINT fk_3d71295ac9 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY security_orchestration_policy_rule_schedules - ADD CONSTRAINT fk_3e78b9a150 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: milestone_releases fk_rails_7ae0756a2d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY compliance_checks - ADD CONSTRAINT fk_3fbfa4295c FOREIGN KEY (requirement_id) REFERENCES compliance_requirements(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.milestone_releases + ADD CONSTRAINT fk_rails_7ae0756a2d FOREIGN KEY (milestone_id) REFERENCES public.milestones(id) ON DELETE CASCADE; -ALTER TABLE ONLY abuse_reports - ADD CONSTRAINT fk_3fe6467b93 FOREIGN KEY (assignee_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY protected_environment_approval_rules - ADD CONSTRAINT fk_405568b491 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: scan_execution_policy_rules fk_rails_7be2571ecf; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY subscription_add_on_purchases - ADD CONSTRAINT fk_410004d68b FOREIGN KEY (subscription_add_on_id) REFERENCES subscription_add_ons(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.scan_execution_policy_rules + ADD CONSTRAINT fk_rails_7be2571ecf FOREIGN KEY (security_policy_id) REFERENCES public.security_policies(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_pipeline_schedule_variables - ADD CONSTRAINT fk_41c35fda51 FOREIGN KEY (pipeline_schedule_id) REFERENCES ci_pipeline_schedules(id) ON DELETE CASCADE; -ALTER TABLE ONLY namespace_bans - ADD CONSTRAINT fk_4275fbb1d7 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: resource_state_events fk_rails_7ddc5f7457; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY geo_event_log - ADD CONSTRAINT fk_42c3b54bed FOREIGN KEY (cache_invalidation_event_id) REFERENCES geo_cache_invalidation_events(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.resource_state_events + ADD CONSTRAINT fk_rails_7ddc5f7457 FOREIGN KEY (source_merge_request_id) REFERENCES public.merge_requests(id) ON DELETE SET NULL; -ALTER TABLE ONLY remote_mirrors - ADD CONSTRAINT fk_43a9aa4ca8 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY abuse_report_notes - ADD CONSTRAINT fk_44166fe70f FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: audit_events_group_external_streaming_destinations fk_rails_7dffb88f29; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY incident_management_timeline_events - ADD CONSTRAINT fk_4432fc4d78 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.audit_events_group_external_streaming_destinations + ADD CONSTRAINT fk_rails_7dffb88f29 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY todos - ADD CONSTRAINT fk_45054f9c45 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY security_policy_requirements - ADD CONSTRAINT fk_458f7f5ad5 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: personal_access_token_last_used_ips fk_rails_7e650a7967; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY releases - ADD CONSTRAINT fk_47fe2a0596 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.personal_access_token_last_used_ips + ADD CONSTRAINT fk_rails_7e650a7967 FOREIGN KEY (personal_access_token_id) REFERENCES public.personal_access_tokens(id) ON DELETE CASCADE; -ALTER TABLE ONLY workspace_variables - ADD CONSTRAINT fk_494e093520 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY cluster_agent_url_configurations - ADD CONSTRAINT fk_49b126e246 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: clusters_kubernetes_namespaces fk_rails_7e7688ecaf; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY user_namespace_callouts - ADD CONSTRAINT fk_4b1257f385 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.clusters_kubernetes_namespaces + ADD CONSTRAINT fk_rails_7e7688ecaf FOREIGN KEY (cluster_id) REFERENCES public.clusters(id) ON DELETE CASCADE; -ALTER TABLE ONLY sbom_occurrences - ADD CONSTRAINT fk_4b88e5b255 FOREIGN KEY (component_version_id) REFERENCES sbom_component_versions(id) ON DELETE CASCADE; -ALTER TABLE ONLY namespace_commit_emails - ADD CONSTRAINT fk_4d6ba63ba5 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: security_policies fk_rails_802ceea0c8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerabilities - ADD CONSTRAINT fk_4e64972902 FOREIGN KEY (finding_id) REFERENCES vulnerability_occurrences(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.security_policies + ADD CONSTRAINT fk_rails_802ceea0c8 FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES public.security_orchestration_policy_configurations(id) ON DELETE CASCADE; -ALTER TABLE ONLY ml_model_versions - ADD CONSTRAINT fk_4e8b59e7a8 FOREIGN KEY (model_id) REFERENCES ml_models(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_achievements - ADD CONSTRAINT fk_4efde02858 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: dependency_proxy_manifest_states fk_rails_806cf07a3c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY approval_group_rules_protected_branches - ADD CONSTRAINT fk_4f85f13b20 FOREIGN KEY (approval_group_rule_id) REFERENCES approval_group_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.dependency_proxy_manifest_states + ADD CONSTRAINT fk_rails_806cf07a3c FOREIGN KEY (dependency_proxy_manifest_id) REFERENCES public.dependency_proxy_manifests(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_compliance_standards_adherence - ADD CONSTRAINT fk_4fd1d9d9b0 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE SET NULL; -ALTER TABLE ONLY vulnerability_reads - ADD CONSTRAINT fk_5001652292 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: ci_job_artifact_states fk_rails_80a9cba3b2_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY approval_group_rules_groups - ADD CONSTRAINT fk_50edc8134e FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ci_job_artifact_states + ADD CONSTRAINT fk_rails_80a9cba3b2_p FOREIGN KEY (partition_id, job_artifact_id) REFERENCES public.p_ci_job_artifacts(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY approval_group_rules_protected_branches - ADD CONSTRAINT fk_514003db08 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY alert_management_alerts - ADD CONSTRAINT fk_51ab4b6089 FOREIGN KEY (prometheus_alert_id) REFERENCES prometheus_alerts(id) ON DELETE CASCADE; +-- +-- Name: approval_merge_request_rules_users fk_rails_80e6801803; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY deploy_tokens - ADD CONSTRAINT fk_51bf7bfb69 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.approval_merge_request_rules_users + ADD CONSTRAINT fk_rails_80e6801803 FOREIGN KEY (approval_merge_request_rule_id) REFERENCES public.approval_merge_request_rules(id) ON DELETE CASCADE; -ALTER TABLE ONLY path_locks - ADD CONSTRAINT fk_5265c98f24 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY agent_user_access_group_authorizations - ADD CONSTRAINT fk_53fd98ccbf FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: audit_events_instance_streaming_event_type_filters fk_rails_80e948655b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY group_crm_settings - ADD CONSTRAINT fk_54592e5f57 FOREIGN KEY (source_group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.audit_events_instance_streaming_event_type_filters + ADD CONSTRAINT fk_rails_80e948655b FOREIGN KEY (external_streaming_destination_id) REFERENCES public.audit_events_instance_external_streaming_destinations(id) ON DELETE CASCADE; -ALTER TABLE ONLY terraform_states - ADD CONSTRAINT fk_558901b030 FOREIGN KEY (locked_by_user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY status_check_responses - ADD CONSTRAINT fk_55bd2abc83 FOREIGN KEY (external_status_check_id) REFERENCES external_status_checks(id) ON DELETE CASCADE; +-- +-- Name: required_code_owners_sections fk_rails_817708cf2d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_metrics - ADD CONSTRAINT fk_56067dcb44 FOREIGN KEY (target_project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.required_code_owners_sections + ADD CONSTRAINT fk_rails_817708cf2d FOREIGN KEY (protected_branch_id) REFERENCES public.protected_branches(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerability_feedback - ADD CONSTRAINT fk_563ff1912e FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE SET NULL; -ALTER TABLE ONLY merge_request_diffs - ADD CONSTRAINT fk_56ac6fc9c0 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: p_ci_build_tags fk_rails_8284d35c66; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ml_candidates - ADD CONSTRAINT fk_56d6ed4d3d FOREIGN KEY (experiment_id) REFERENCES ml_experiments(id) ON DELETE CASCADE; +ALTER TABLE public.p_ci_build_tags + ADD CONSTRAINT fk_rails_8284d35c66 FOREIGN KEY (tag_id) REFERENCES public.tags(id) ON DELETE CASCADE; -ALTER TABLE ONLY abuse_report_notes - ADD CONSTRAINT fk_57fb3e3bf2 FOREIGN KEY (resolved_by_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_merge_request_rules - ADD CONSTRAINT fk_5822f009ea FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES security_orchestration_policy_configurations(id) ON DELETE CASCADE; +-- +-- Name: namespace_ldap_settings fk_rails_82cd0ad4bb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY deploy_keys_projects - ADD CONSTRAINT fk_58a901ca7e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.namespace_ldap_settings + ADD CONSTRAINT fk_rails_82cd0ad4bb FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_tags - ADD CONSTRAINT fk_5a230894f6 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY security_policy_project_links - ADD CONSTRAINT fk_5a5eba6f88 FOREIGN KEY (security_policy_id) REFERENCES security_policies(id) ON DELETE CASCADE; +-- +-- Name: group_wiki_repository_states fk_rails_832511c9f1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_export_jobs - ADD CONSTRAINT fk_5ab0242530 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.group_wiki_repository_states + ADD CONSTRAINT fk_rails_832511c9f1 FOREIGN KEY (group_wiki_repository_id) REFERENCES public.group_wiki_repositories(group_id) ON DELETE CASCADE; -ALTER TABLE ONLY dependency_list_exports - ADD CONSTRAINT fk_5b3d11e1ef FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY security_policy_requirements - ADD CONSTRAINT fk_5b4fae9635 FOREIGN KEY (compliance_requirement_id) REFERENCES compliance_requirements(id) ON DELETE CASCADE; +-- +-- Name: cluster_enabled_grants fk_rails_8336ce35af; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY user_broadcast_message_dismissals - ADD CONSTRAINT fk_5c0cfb74ce FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.cluster_enabled_grants + ADD CONSTRAINT fk_rails_8336ce35af FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY boards_epic_lists - ADD CONSTRAINT fk_5cbb450986 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY dast_scanner_profiles_builds - ADD CONSTRAINT fk_5d46286ad3 FOREIGN KEY (dast_scanner_profile_id) REFERENCES dast_scanner_profiles(id) ON DELETE CASCADE; +-- +-- Name: virtual_registries_packages_maven_registry_upstreams fk_rails_838d054752; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY protected_environment_deploy_access_levels - ADD CONSTRAINT fk_5d9b05a7e9 FOREIGN KEY (protected_environment_project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.virtual_registries_packages_maven_registry_upstreams + ADD CONSTRAINT fk_rails_838d054752 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY issue_assignees - ADD CONSTRAINT fk_5e0c8d9154 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY csv_issue_imports - ADD CONSTRAINT fk_5e1572387c FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: dast_site_profiles fk_rails_83e309d69e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_access_tokens - ADD CONSTRAINT fk_5f7e8450e1 FOREIGN KEY (personal_access_token_id) REFERENCES personal_access_tokens(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.dast_site_profiles + ADD CONSTRAINT fk_rails_83e309d69e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_achievements - ADD CONSTRAINT fk_60b12fcda3 FOREIGN KEY (awarded_by_user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY merge_requests - ADD CONSTRAINT fk_6149611a04 FOREIGN KEY (assignee_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: dependency_list_export_parts fk_rails_83f26c0e6f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY member_approvals - ADD CONSTRAINT fk_619f381144 FOREIGN KEY (member_role_id) REFERENCES member_roles(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.dependency_list_export_parts + ADD CONSTRAINT fk_rails_83f26c0e6f FOREIGN KEY (dependency_list_export_id) REFERENCES public.dependency_list_exports(id) ON DELETE CASCADE; -ALTER TABLE ONLY work_item_widget_definitions - ADD CONSTRAINT fk_61bfa96db5 FOREIGN KEY (work_item_type_id) REFERENCES work_item_types(id) ON DELETE CASCADE; -ALTER TABLE ONLY deployment_approvals - ADD CONSTRAINT fk_61cdbdc5b9 FOREIGN KEY (approval_rule_id) REFERENCES protected_environment_approval_rules(id) ON DELETE SET NULL; +-- +-- Name: security_trainings fk_rails_84c7951d72; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY dast_profile_schedules - ADD CONSTRAINT fk_61d52aa0e7 FOREIGN KEY (dast_profile_id) REFERENCES dast_profiles(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.security_trainings + ADD CONSTRAINT fk_rails_84c7951d72 FOREIGN KEY (provider_id) REFERENCES public.security_training_providers(id) ON DELETE CASCADE; -ALTER TABLE ONLY events - ADD CONSTRAINT fk_61fbf6ca48 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerability_reads - ADD CONSTRAINT fk_62736f638f FOREIGN KEY (vulnerability_id) REFERENCES vulnerabilities(id) ON DELETE CASCADE; +-- +-- Name: zentao_tracker_data fk_rails_84efda7be0; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY saml_group_links - ADD CONSTRAINT fk_6336b1d1d0 FOREIGN KEY (member_role_id) REFERENCES member_roles(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.zentao_tracker_data + ADD CONSTRAINT fk_rails_84efda7be0 FOREIGN KEY (integration_id) REFERENCES public.integrations(id) ON DELETE CASCADE; -ALTER TABLE ONLY deployment_approvals - ADD CONSTRAINT fk_63920ba071 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_requests - ADD CONSTRAINT fk_641731faff FOREIGN KEY (updated_by_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: audit_events_amazon_s3_configurations fk_rails_84f4b10a16; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY approval_group_rules - ADD CONSTRAINT fk_64450bea52 FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES security_orchestration_policy_configurations(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.audit_events_amazon_s3_configurations + ADD CONSTRAINT fk_rails_84f4b10a16 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_pipeline_chat_data - ADD CONSTRAINT fk_64ebfab6b3_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY ci_pipeline_chat_data - ADD CONSTRAINT fk_64ebfab6b3_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +-- +-- Name: boards_epic_user_preferences fk_rails_851fe1510a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY cluster_agent_tokens - ADD CONSTRAINT fk_64f741f626 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.boards_epic_user_preferences + ADD CONSTRAINT fk_rails_851fe1510a FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY import_placeholder_memberships - ADD CONSTRAINT fk_66286fb5e6 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE p_ci_builds - ADD CONSTRAINT fk_6661f4f0e8 FOREIGN KEY (resource_group_id) REFERENCES ci_resource_groups(id) ON DELETE SET NULL; +-- +-- Name: value_stream_dashboard_aggregations fk_rails_859b4f86f3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY remote_development_agent_configs - ADD CONSTRAINT fk_6a09894a0f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.value_stream_dashboard_aggregations + ADD CONSTRAINT fk_rails_859b4f86f3 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY dast_site_profile_secret_variables - ADD CONSTRAINT fk_6a254b170e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_requests - ADD CONSTRAINT fk_6a5165a692 FOREIGN KEY (milestone_id) REFERENCES milestones(id) ON DELETE SET NULL; +-- +-- Name: deployment_merge_requests fk_rails_86a6d8bf12; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ai_agent_versions - ADD CONSTRAINT fk_6c2f682587 FOREIGN KEY (agent_id) REFERENCES ai_agents(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.deployment_merge_requests + ADD CONSTRAINT fk_rails_86a6d8bf12 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY ml_models - ADD CONSTRAINT fk_6c95e61a6e FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY projects - ADD CONSTRAINT fk_6ca23af0a3 FOREIGN KEY (project_namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: analytics_language_trend_repository_languages fk_rails_86cc9aef5f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY dast_profile_schedules - ADD CONSTRAINT fk_6cca0d8800 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.analytics_language_trend_repository_languages + ADD CONSTRAINT fk_rails_86cc9aef5f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY compliance_framework_security_policies - ADD CONSTRAINT fk_6d3bd0c9f1 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY audit_events_streaming_instance_namespace_filters - ADD CONSTRAINT fk_6e0be28087 FOREIGN KEY (external_streaming_destination_id) REFERENCES audit_events_instance_external_streaming_destinations(id) ON DELETE CASCADE; +-- +-- Name: merge_request_diff_details fk_rails_86f4d24ecd; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY projects - ADD CONSTRAINT fk_6e5c14658a FOREIGN KEY (pool_repository_id) REFERENCES pool_repositories(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.merge_request_diff_details + ADD CONSTRAINT fk_rails_86f4d24ecd FOREIGN KEY (merge_request_diff_id) REFERENCES public.merge_request_diffs(id) ON DELETE CASCADE; -ALTER TABLE ONLY terraform_state_versions - ADD CONSTRAINT fk_6e81384d7f FOREIGN KEY (created_by_user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY protected_environment_approval_rules - ADD CONSTRAINT fk_6ee8249821 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: packages_package_file_build_infos fk_rails_871ca3ae21; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY deploy_tokens - ADD CONSTRAINT fk_7082f8a288 FOREIGN KEY (creator_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.packages_package_file_build_infos + ADD CONSTRAINT fk_rails_871ca3ae21 FOREIGN KEY (package_file_id) REFERENCES public.packages_package_files(id) ON DELETE CASCADE; -ALTER TABLE ONLY protected_branch_push_access_levels - ADD CONSTRAINT fk_7111b68cdb FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY import_source_users - ADD CONSTRAINT fk_719b74231d FOREIGN KEY (reassigned_by_user_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: boards_epic_boards fk_rails_874c573878; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY integrations - ADD CONSTRAINT fk_71cce407f9 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.boards_epic_boards + ADD CONSTRAINT fk_rails_874c573878 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY subscription_user_add_on_assignments - ADD CONSTRAINT fk_724c2df9a8 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerabilities - ADD CONSTRAINT fk_725465b774 FOREIGN KEY (dismissed_by_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: ci_runner_namespaces fk_rails_8767676b7a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_conan_metadata - ADD CONSTRAINT fk_7302a29cd9 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ci_runner_namespaces + ADD CONSTRAINT fk_rails_8767676b7a FOREIGN KEY (runner_id) REFERENCES public.ci_runners(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_merge_request_rules - ADD CONSTRAINT fk_73fec3d7e5 FOREIGN KEY (approval_policy_rule_id) REFERENCES approval_policy_rules(id) ON DELETE CASCADE; -ALTER TABLE ONLY index_statuses - ADD CONSTRAINT fk_74b2492545 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: service_desk_custom_email_credentials fk_rails_878b562d12; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY abuse_report_notes - ADD CONSTRAINT fk_74e1990397 FOREIGN KEY (abuse_report_id) REFERENCES abuse_reports(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.service_desk_custom_email_credentials + ADD CONSTRAINT fk_rails_878b562d12 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY software_license_policies - ADD CONSTRAINT fk_74f6d8328a FOREIGN KEY (custom_software_license_id) REFERENCES custom_software_licenses(id) ON DELETE CASCADE; -ALTER TABLE ONLY cluster_agent_tokens - ADD CONSTRAINT fk_75008f3553 FOREIGN KEY (created_by_user_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: software_license_policies fk_rails_87b2247ce5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY protected_tag_create_access_levels - ADD CONSTRAINT fk_7537413f9d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.software_license_policies + ADD CONSTRAINT fk_rails_87b2247ce5 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY environments - ADD CONSTRAINT fk_75c2098045 FOREIGN KEY (cluster_agent_id) REFERENCES cluster_agents(id) ON DELETE SET NULL; -ALTER TABLE ONLY vulnerabilities - ADD CONSTRAINT fk_76bc5f5455 FOREIGN KEY (resolved_by_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: achievements fk_rails_87e990f752; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY notes - ADD CONSTRAINT fk_76db6d50c6 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.achievements + ADD CONSTRAINT fk_rails_87e990f752 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY oauth_openid_requests - ADD CONSTRAINT fk_77114b3b09 FOREIGN KEY (access_grant_id) REFERENCES oauth_access_grants(id) ON DELETE CASCADE; -ALTER TABLE ONLY scan_result_policy_violations - ADD CONSTRAINT fk_77251168f1 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: ai_feature_settings fk_rails_8907fb7bbb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY approval_project_rules - ADD CONSTRAINT fk_773289d10b FOREIGN KEY (approval_policy_rule_id) REFERENCES approval_policy_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ai_feature_settings + ADD CONSTRAINT fk_rails_8907fb7bbb FOREIGN KEY (ai_self_hosted_model_id) REFERENCES public.ai_self_hosted_models(id) ON DELETE CASCADE; -ALTER TABLE ONLY agent_user_access_project_authorizations - ADD CONSTRAINT fk_78034b05d8 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY users - ADD CONSTRAINT fk_789cd90b35 FOREIGN KEY (accepted_term_id) REFERENCES application_setting_terms(id) ON DELETE CASCADE; +-- +-- Name: protected_environment_deploy_access_levels fk_rails_898a13b650; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY analytics_devops_adoption_snapshots - ADD CONSTRAINT fk_78c9eac821 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.protected_environment_deploy_access_levels + ADD CONSTRAINT fk_rails_898a13b650 FOREIGN KEY (protected_environment_id) REFERENCES public.protected_environments(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_maven_metadata - ADD CONSTRAINT fk_7a170ee0a3 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_relation_exports - ADD CONSTRAINT fk_7a4d3d5c0f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: ml_model_versions fk_rails_8a481bd22e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY lists - ADD CONSTRAINT fk_7a5553d60f FOREIGN KEY (label_id) REFERENCES labels(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ml_model_versions + ADD CONSTRAINT fk_rails_8a481bd22e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY protected_branches - ADD CONSTRAINT fk_7a9c6d93e7 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY scan_result_policies - ADD CONSTRAINT fk_7aa24439f1 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: snippet_repositories fk_rails_8afd7e2f71; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY catalog_resource_versions - ADD CONSTRAINT fk_7ad8849db4 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.snippet_repositories + ADD CONSTRAINT fk_rails_8afd7e2f71 FOREIGN KEY (snippet_id) REFERENCES public.snippets(id) ON DELETE CASCADE; -ALTER TABLE ONLY issue_customer_relations_contacts - ADD CONSTRAINT fk_7b92f835bb FOREIGN KEY (contact_id) REFERENCES customer_relations_contacts(id) ON DELETE CASCADE; -ALTER TABLE ONLY ssh_signatures - ADD CONSTRAINT fk_7d2f93996c FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: gpg_key_subkeys fk_rails_8b2c90b046; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY sent_notifications - ADD CONSTRAINT fk_7d7663e36a FOREIGN KEY (issue_email_participant_id) REFERENCES issue_email_participants(id) ON DELETE SET NULL NOT VALID; +ALTER TABLE ONLY public.gpg_key_subkeys + ADD CONSTRAINT fk_rails_8b2c90b046 FOREIGN KEY (gpg_key_id) REFERENCES public.gpg_keys(id) ON DELETE CASCADE; -ALTER TABLE ONLY labels - ADD CONSTRAINT fk_7de4989a69 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_requests - ADD CONSTRAINT fk_7e85395a64 FOREIGN KEY (sprint_id) REFERENCES sprints(id) ON DELETE SET NULL; +-- +-- Name: board_user_preferences fk_rails_8b3b23ce82; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_metrics - ADD CONSTRAINT fk_7f28d925f3 FOREIGN KEY (merged_by_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.board_user_preferences + ADD CONSTRAINT fk_rails_8b3b23ce82 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY namespaces - ADD CONSTRAINT fk_7f813d8c90 FOREIGN KEY (parent_id) REFERENCES namespaces(id) ON DELETE RESTRICT NOT VALID; -ALTER TABLE ONLY group_import_states - ADD CONSTRAINT fk_8053b3ebd6 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: allowed_email_domains fk_rails_8b5da859f9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_debian_project_components - ADD CONSTRAINT fk_8053c57c65 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.allowed_email_domains + ADD CONSTRAINT fk_rails_8b5da859f9 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY sprints - ADD CONSTRAINT fk_80aa8a1f95 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY related_epic_links - ADD CONSTRAINT fk_8257080565 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: cluster_projects fk_rails_8b8c5caf07; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY import_export_uploads - ADD CONSTRAINT fk_83319d9721 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.cluster_projects + ADD CONSTRAINT fk_rails_8b8c5caf07 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY push_rules - ADD CONSTRAINT fk_83b29894de FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_request_diffs - ADD CONSTRAINT fk_8483f3258f FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +-- +-- Name: project_pages_metadata fk_rails_8c28a61485; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY requirements - ADD CONSTRAINT fk_85044baef0 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.project_pages_metadata + ADD CONSTRAINT fk_rails_8c28a61485 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY catalog_resource_components - ADD CONSTRAINT fk_85bb1d1e79 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_build_pending_states - ADD CONSTRAINT fk_861cd17da3_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +-- +-- Name: work_item_progresses fk_rails_8c584bfb37; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY observability_logs_issues_connections - ADD CONSTRAINT fk_86c5fb94cc FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.work_item_progresses + ADD CONSTRAINT fk_rails_8c584bfb37 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_package_files - ADD CONSTRAINT fk_86f0f182f8 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; -ALTER TABLE p_ci_builds - ADD CONSTRAINT fk_87f4cefcda_p FOREIGN KEY (upstream_pipeline_partition_id, upstream_pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +-- +-- Name: packages_conan_metadata fk_rails_8c68cfec8b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ci_builds - ADD CONSTRAINT fk_87f4cefcda_p_tmp FOREIGN KEY (upstream_pipeline_partition_id, upstream_pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +ALTER TABLE ONLY public.packages_conan_metadata + ADD CONSTRAINT fk_rails_8c68cfec8b FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_group_rules_users - ADD CONSTRAINT fk_888a0df3b7 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerability_findings_remediations - ADD CONSTRAINT fk_88a2923914 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: vulnerability_feedback fk_rails_8c77e5891a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY bulk_import_entities - ADD CONSTRAINT fk_88c725229f FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.vulnerability_feedback + ADD CONSTRAINT fk_rails_8c77e5891a FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE SET NULL; -ALTER TABLE ONLY requirements_management_test_reports - ADD CONSTRAINT fk_88f30752fc FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY issues - ADD CONSTRAINT fk_899c8f3231 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: import_placeholder_memberships fk_rails_8cdeffd260; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ci_build_trace_chunks - ADD CONSTRAINT fk_89e29fa5ee_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY public.import_placeholder_memberships + ADD CONSTRAINT fk_rails_8cdeffd260 FOREIGN KEY (source_user_id) REFERENCES public.import_source_users(id) ON DELETE CASCADE; -ALTER TABLE ONLY catalog_resource_components - ADD CONSTRAINT fk_89fd1a3e33 FOREIGN KEY (version_id) REFERENCES catalog_resource_versions(id) ON DELETE CASCADE; -ALTER TABLE ONLY epic_issues - ADD CONSTRAINT fk_8a0fdc0d65 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: ci_pipeline_messages fk_rails_8d3b04e3e1_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY protected_branch_merge_access_levels - ADD CONSTRAINT fk_8a3072ccb3 FOREIGN KEY (protected_branch_id) REFERENCES protected_branches(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ci_pipeline_messages + ADD CONSTRAINT fk_rails_8d3b04e3e1_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY work_item_dates_sources - ADD CONSTRAINT fk_8a4948b668 FOREIGN KEY (start_date_sourcing_work_item_id) REFERENCES issues(id) ON DELETE SET NULL; -ALTER TABLE ONLY bulk_import_exports - ADD CONSTRAINT fk_8c6f33cebe FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: ci_pipeline_messages fk_rails_8d3b04e3e1_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY raw_usage_data - ADD CONSTRAINT fk_8e21125854 FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ci_pipeline_messages + ADD CONSTRAINT fk_rails_8d3b04e3e1_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -ALTER TABLE ONLY releases - ADD CONSTRAINT fk_8e4456f90f FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY protected_tags - ADD CONSTRAINT fk_8e4af87648 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: incident_management_pending_alert_escalations fk_rails_8d8de95da9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY observability_metrics_issues_connections - ADD CONSTRAINT fk_8e765678ba FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE public.incident_management_pending_alert_escalations + ADD CONSTRAINT fk_rails_8d8de95da9 FOREIGN KEY (alert_id) REFERENCES public.alert_management_alerts(id) ON DELETE CASCADE; -ALTER TABLE ONLY audit_events_streaming_group_namespace_filters - ADD CONSTRAINT fk_8ed182d7da FOREIGN KEY (external_streaming_destination_id) REFERENCES audit_events_group_external_streaming_destinations(id) ON DELETE CASCADE; -ALTER TABLE ONLY compliance_requirements - ADD CONSTRAINT fk_8f5fb77fc7 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: approval_merge_request_rules_approved_approvers fk_rails_8dc94cff4d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY todos - ADD CONSTRAINT fk_91d1f47b13 FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.approval_merge_request_rules_approved_approvers + ADD CONSTRAINT fk_rails_8dc94cff4d FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_debian_group_architectures - ADD CONSTRAINT fk_92714bcab1 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY workspaces_agent_configs - ADD CONSTRAINT fk_94660551c8 FOREIGN KEY (cluster_agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; +-- +-- Name: work_item_dates_sources fk_rails_8dcefa21a5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY dast_site_profiles_builds - ADD CONSTRAINT fk_94e80df60e FOREIGN KEY (dast_site_profile_id) REFERENCES dast_site_profiles(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.work_item_dates_sources + ADD CONSTRAINT fk_rails_8dcefa21a5 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerability_feedback - ADD CONSTRAINT fk_94f7c8a81e FOREIGN KEY (comment_author_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY milestones - ADD CONSTRAINT fk_95650a40d4 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: design_user_mentions fk_rails_8de8c6d632; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerabilities - ADD CONSTRAINT fk_959d40ad0a FOREIGN KEY (confirmed_by_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.design_user_mentions + ADD CONSTRAINT fk_rails_8de8c6d632 FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; -ALTER TABLE ONLY boards_epic_list_user_preferences - ADD CONSTRAINT fk_95eac55851 FOREIGN KEY (epic_list_id) REFERENCES boards_epic_lists(id) ON DELETE CASCADE; -ALTER TABLE ONLY issues - ADD CONSTRAINT fk_96b1dd429c FOREIGN KEY (milestone_id) REFERENCES milestones(id) ON DELETE SET NULL; +-- +-- Name: clusters_kubernetes_namespaces fk_rails_8df789f3ab; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY agent_user_access_group_authorizations - ADD CONSTRAINT fk_97ce8e8284 FOREIGN KEY (agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.clusters_kubernetes_namespaces + ADD CONSTRAINT fk_rails_8df789f3ab FOREIGN KEY (environment_id) REFERENCES public.environments(id) ON DELETE SET NULL; -ALTER TABLE ONLY vulnerability_occurrences - ADD CONSTRAINT fk_97ffe77653 FOREIGN KEY (vulnerability_id) REFERENCES vulnerabilities(id) ON DELETE SET NULL; -ALTER TABLE ONLY protected_branch_merge_access_levels - ADD CONSTRAINT fk_98f3d044fe FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: alert_management_alert_user_mentions fk_rails_8e48eca0fe; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY notes - ADD CONSTRAINT fk_99e097b079 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.alert_management_alert_user_mentions + ADD CONSTRAINT fk_rails_8e48eca0fe FOREIGN KEY (alert_management_alert_id) REFERENCES public.alert_management_alerts(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_group_rules_users - ADD CONSTRAINT fk_9a4b673183 FOREIGN KEY (approval_group_rule_id) REFERENCES approval_group_rules(id) ON DELETE CASCADE; -ALTER TABLE ONLY import_failures - ADD CONSTRAINT fk_9a9b9ba21c FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: project_daily_statistics fk_rails_8e549b272d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY deploy_tokens - ADD CONSTRAINT fk_9b0d2e92a6 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.project_daily_statistics + ADD CONSTRAINT fk_rails_8e549b272d FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY milestones - ADD CONSTRAINT fk_9bd0a0c791 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY work_item_parent_links - ADD CONSTRAINT fk_9be5ef5f80 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: project_secrets_managers fk_rails_8f88850d11; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY agent_activity_events - ADD CONSTRAINT fk_9c07afa098 FOREIGN KEY (agent_project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.project_secrets_managers + ADD CONSTRAINT fk_rails_8f88850d11 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY issues - ADD CONSTRAINT fk_9c4516d665 FOREIGN KEY (duplicated_to_id) REFERENCES issues(id) ON DELETE SET NULL; -ALTER TABLE ONLY epics - ADD CONSTRAINT fk_9d480c64b2 FOREIGN KEY (start_date_sourcing_epic_id) REFERENCES epics(id) ON DELETE SET NULL; +-- +-- Name: organization_details fk_rails_8facb04bef; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY user_group_callouts - ADD CONSTRAINT fk_9dc8b9d4b2 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.organization_details + ADD CONSTRAINT fk_rails_8facb04bef FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_unit_test_failures - ADD CONSTRAINT fk_9e0fc58930_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY protected_environments - ADD CONSTRAINT fk_9e112565b7 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: ci_pipelines_config fk_rails_906c9a2533_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY alert_management_alerts - ADD CONSTRAINT fk_9e49e5c2b7 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ci_pipelines_config + ADD CONSTRAINT fk_rails_906c9a2533_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY approval_policy_rule_project_links - ADD CONSTRAINT fk_9ed5cf0600 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY protected_branch_push_access_levels - ADD CONSTRAINT fk_9ffc86a3d9 FOREIGN KEY (protected_branch_id) REFERENCES protected_branches(id) ON DELETE CASCADE; +-- +-- Name: ci_pipelines_config fk_rails_906c9a2533_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY deployment_merge_requests - ADD CONSTRAINT fk_a064ff4453 FOREIGN KEY (environment_id) REFERENCES environments(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ci_pipelines_config + ADD CONSTRAINT fk_rails_906c9a2533_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -ALTER TABLE ONLY issues - ADD CONSTRAINT fk_a194299be1 FOREIGN KEY (moved_to_id) REFERENCES issues(id) ON DELETE SET NULL; -ALTER TABLE ONLY audit_events_streaming_group_namespace_filters - ADD CONSTRAINT fk_a1a4486a96 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: approval_project_rules_groups fk_rails_9071e863d1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ml_candidates - ADD CONSTRAINT fk_a1d5f1bc45 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.approval_project_rules_groups + ADD CONSTRAINT fk_rails_9071e863d1 FOREIGN KEY (approval_project_rule_id) REFERENCES public.approval_project_rules(id) ON DELETE CASCADE; -ALTER TABLE ONLY subscription_add_on_purchases - ADD CONSTRAINT fk_a1db288990 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE p_ci_builds - ADD CONSTRAINT fk_a2141b1522_p FOREIGN KEY (auto_canceled_by_partition_id, auto_canceled_by_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL; +-- +-- Name: vulnerability_occurrences fk_rails_90fed4faba; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ci_builds - ADD CONSTRAINT fk_a2141b1522_p_tmp FOREIGN KEY (auto_canceled_by_partition_id, auto_canceled_by_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL NOT VALID; +ALTER TABLE ONLY public.vulnerability_occurrences + ADD CONSTRAINT fk_rails_90fed4faba FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY protected_environment_approval_rules - ADD CONSTRAINT fk_a3cc825836 FOREIGN KEY (protected_environment_project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_request_assignment_events - ADD CONSTRAINT fk_a437da318b FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: project_error_tracking_settings fk_rails_910a2b8bd9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY bulk_import_entities - ADD CONSTRAINT fk_a44ff95be5 FOREIGN KEY (parent_id) REFERENCES bulk_import_entities(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.project_error_tracking_settings + ADD CONSTRAINT fk_rails_910a2b8bd9 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY namespace_import_users - ADD CONSTRAINT fk_a49233ca5d FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY abuse_report_user_mentions - ADD CONSTRAINT fk_a4bd02b7df FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; +-- +-- Name: list_user_preferences fk_rails_916d72cafd; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY security_orchestration_policy_configurations - ADD CONSTRAINT fk_a50430b375 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.list_user_preferences + ADD CONSTRAINT fk_rails_916d72cafd FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY operations_strategies - ADD CONSTRAINT fk_a542e10c31 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY lfs_objects_projects - ADD CONSTRAINT fk_a56e02279c FOREIGN KEY (lfs_object_id) REFERENCES lfs_objects(id) ON DELETE RESTRICT NOT VALID; +-- +-- Name: merge_request_cleanup_schedules fk_rails_92dd0e705c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_requests - ADD CONSTRAINT fk_a6963e8447 FOREIGN KEY (target_project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.merge_request_cleanup_schedules + ADD CONSTRAINT fk_rails_92dd0e705c FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_requests_closing_issues - ADD CONSTRAINT fk_a8703820ae FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY ssh_signatures - ADD CONSTRAINT fk_aa1efbe865 FOREIGN KEY (key_id) REFERENCES keys(id) ON DELETE SET NULL; +-- +-- Name: project_build_artifacts_size_refreshes fk_rails_936db5fc44; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY epics - ADD CONSTRAINT fk_aa5798e761 FOREIGN KEY (closed_by_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.project_build_artifacts_size_refreshes + ADD CONSTRAINT fk_rails_936db5fc44 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY dast_profiles - ADD CONSTRAINT fk_aa76ef30e9 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY alert_management_alerts - ADD CONSTRAINT fk_aad61aedca FOREIGN KEY (environment_id) REFERENCES environments(id) ON DELETE SET NULL; +-- +-- Name: board_labels fk_rails_9374a16edd; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY identities - ADD CONSTRAINT fk_aade90f0fc FOREIGN KEY (saml_provider_id) REFERENCES saml_providers(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.board_labels + ADD CONSTRAINT fk_rails_9374a16edd FOREIGN KEY (board_id) REFERENCES public.boards(id) ON DELETE CASCADE; -ALTER TABLE ONLY boards - ADD CONSTRAINT fk_ab0a250ff6 FOREIGN KEY (iteration_cadence_id) REFERENCES iterations_cadences(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerability_external_issue_links - ADD CONSTRAINT fk_abd093bb21 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: alert_management_alert_assignees fk_rails_93c0f6703b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY audit_events_streaming_http_instance_namespace_filters - ADD CONSTRAINT fk_abe44125bc FOREIGN KEY (audit_events_instance_external_audit_event_destination_id) REFERENCES audit_events_instance_external_audit_event_destinations(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.alert_management_alert_assignees + ADD CONSTRAINT fk_rails_93c0f6703b FOREIGN KEY (alert_id) REFERENCES public.alert_management_alerts(id) ON DELETE CASCADE; -ALTER TABLE ONLY audit_events_streaming_instance_namespace_filters - ADD CONSTRAINT fk_ac20a85a68 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_requests - ADD CONSTRAINT fk_ad525e1f87 FOREIGN KEY (merge_user_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: scim_identities fk_rails_9421a0bffb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ml_experiments - ADD CONSTRAINT fk_ad89c59858 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.scim_identities + ADD CONSTRAINT fk_rails_9421a0bffb FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_npm_metadata_caches - ADD CONSTRAINT fk_ada23b1d30 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE SET NULL; -ALTER TABLE ONLY merge_request_metrics - ADD CONSTRAINT fk_ae440388cc FOREIGN KEY (latest_closed_by_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: p_catalog_resource_component_usages fk_rails_9430673479; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_reads - ADD CONSTRAINT fk_aee839e611 FOREIGN KEY (casted_cluster_agent_id) REFERENCES cluster_agents(id) ON DELETE SET NULL; +ALTER TABLE public.p_catalog_resource_component_usages + ADD CONSTRAINT fk_rails_9430673479 FOREIGN KEY (catalog_resource_id) REFERENCES public.catalog_resources(id) ON DELETE CASCADE; -ALTER TABLE ONLY dast_profile_schedules - ADD CONSTRAINT fk_aef03d62e5 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY analytics_cycle_analytics_group_stages - ADD CONSTRAINT fk_analytics_cycle_analytics_group_stages_group_value_stream_id FOREIGN KEY (group_value_stream_id) REFERENCES analytics_cycle_analytics_group_value_streams(id) ON DELETE CASCADE; +-- +-- Name: packages_debian_project_distributions fk_rails_94b95e1f84; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY approval_merge_request_rules - ADD CONSTRAINT fk_approval_merge_request_rules_on_scan_result_policy_id FOREIGN KEY (scan_result_policy_id) REFERENCES scan_result_policies(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.packages_debian_project_distributions + ADD CONSTRAINT fk_rails_94b95e1f84 FOREIGN KEY (creator_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER TABLE ONLY fork_network_members - ADD CONSTRAINT fk_b01280dae4 FOREIGN KEY (forked_from_project_id) REFERENCES projects(id) ON DELETE SET NULL; -ALTER TABLE ONLY ml_candidate_metadata - ADD CONSTRAINT fk_b044692715 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: packages_rubygems_metadata fk_rails_95a3f5ce78; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY sbom_occurrences - ADD CONSTRAINT fk_b1b65d8d17 FOREIGN KEY (source_package_id) REFERENCES sbom_source_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_rubygems_metadata + ADD CONSTRAINT fk_rails_95a3f5ce78 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerabilities - ADD CONSTRAINT fk_b1de915a15 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY project_access_tokens - ADD CONSTRAINT fk_b27801bfbf FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: packages_pypi_metadata fk_rails_9698717cdd; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_reads - ADD CONSTRAINT fk_b28c28abf1 FOREIGN KEY (scanner_id) REFERENCES vulnerability_scanners(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_pypi_metadata + ADD CONSTRAINT fk_rails_9698717cdd FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY member_approvals - ADD CONSTRAINT fk_b2e4a4b68a FOREIGN KEY (member_id) REFERENCES members(id) ON DELETE CASCADE; -ALTER TABLE ONLY issues - ADD CONSTRAINT fk_b37be69be6 FOREIGN KEY (work_item_type_id) REFERENCES work_item_types(id); +-- +-- Name: boards_epic_board_recent_visits fk_rails_96c2c18642; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY duo_workflows_checkpoints - ADD CONSTRAINT fk_b3d9cea509 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.boards_epic_board_recent_visits + ADD CONSTRAINT fk_rails_96c2c18642 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY protected_tag_create_access_levels - ADD CONSTRAINT fk_b4eb82fe3c FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY status_check_responses - ADD CONSTRAINT fk_b53bf31a72 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: packages_dependency_links fk_rails_96ef1c00d3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_dependency_links - ADD CONSTRAINT fk_b5c56b6ede FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_dependency_links + ADD CONSTRAINT fk_rails_96ef1c00d3 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY compliance_framework_security_policies - ADD CONSTRAINT fk_b5df066d8f FOREIGN KEY (framework_id) REFERENCES compliance_management_frameworks(id) ON DELETE CASCADE; -ALTER TABLE ONLY catalog_resource_versions - ADD CONSTRAINT fk_b670eae96b FOREIGN KEY (catalog_resource_id) REFERENCES catalog_resources(id) ON DELETE CASCADE; +-- +-- Name: ml_experiments fk_rails_97194a054e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY bulk_import_entities - ADD CONSTRAINT fk_b69fa2b2df FOREIGN KEY (bulk_import_id) REFERENCES bulk_imports(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ml_experiments + ADD CONSTRAINT fk_rails_97194a054e FOREIGN KEY (model_id) REFERENCES public.ml_models(id) ON DELETE CASCADE; -ALTER TABLE ONLY security_policy_requirements - ADD CONSTRAINT fk_b6e48e3428 FOREIGN KEY (compliance_framework_security_policy_id) REFERENCES compliance_framework_security_policies(id) ON DELETE CASCADE; -ALTER TABLE ONLY compliance_management_frameworks - ADD CONSTRAINT fk_b74c45b71f FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: group_repository_storage_moves fk_rails_982bb5daf1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ml_experiment_metadata - ADD CONSTRAINT fk_b764e76c6c FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.group_repository_storage_moves + ADD CONSTRAINT fk_rails_982bb5daf1 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY external_status_checks_protected_branches - ADD CONSTRAINT fk_b7d788e813 FOREIGN KEY (protected_branch_id) REFERENCES protected_branches(id) ON DELETE CASCADE; -ALTER TABLE ONLY issue_assignees - ADD CONSTRAINT fk_b7d881734a FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +-- +-- Name: resource_label_events fk_rails_9851a00031; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY agent_project_authorizations - ADD CONSTRAINT fk_b7fe9b4777 FOREIGN KEY (agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.resource_label_events + ADD CONSTRAINT fk_rails_9851a00031 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY namespace_import_users - ADD CONSTRAINT fk_b82be3e1f3 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY namespace_commit_emails - ADD CONSTRAINT fk_b8d89d555e FOREIGN KEY (email_id) REFERENCES emails(id) ON DELETE CASCADE; +-- +-- Name: board_project_recent_visits fk_rails_98f8843922; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ci_trigger_requests - ADD CONSTRAINT fk_b8ec8b7245 FOREIGN KEY (trigger_id) REFERENCES ci_triggers(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.board_project_recent_visits + ADD CONSTRAINT fk_rails_98f8843922 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY customer_relations_contacts - ADD CONSTRAINT fk_b91ddd9345 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY uploads - ADD CONSTRAINT fk_b94f059d73 FOREIGN KEY (uploaded_by_user_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: clusters_kubernetes_namespaces fk_rails_98fe21e486; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY deployments - ADD CONSTRAINT fk_b9a3851b82 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.clusters_kubernetes_namespaces + ADD CONSTRAINT fk_rails_98fe21e486 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE SET NULL; -ALTER TABLE ONLY project_compliance_standards_adherence - ADD CONSTRAINT fk_baf6f6f878 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE p_ci_runner_machine_builds - ADD CONSTRAINT fk_bb490f12fe_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +-- +-- Name: error_tracking_client_keys fk_rails_99342d1d54; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY security_orchestration_policy_rule_schedules - ADD CONSTRAINT fk_bcbb90477f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.error_tracking_client_keys + ADD CONSTRAINT fk_rails_99342d1d54 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY namespace_bans - ADD CONSTRAINT fk_bcc024eef2 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY gitlab_subscriptions - ADD CONSTRAINT fk_bd0c4019c3 FOREIGN KEY (hosted_plan_id) REFERENCES plans(id) ON DELETE CASCADE; +-- +-- Name: pages_deployments fk_rails_993b88f59a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY catalog_resource_versions - ADD CONSTRAINT fk_bd1b87591a FOREIGN KEY (published_by_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.pages_deployments + ADD CONSTRAINT fk_rails_993b88f59a FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY resource_link_events - ADD CONSTRAINT fk_bd4ae15ce4 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY metrics_users_starred_dashboards - ADD CONSTRAINT fk_bd6ae32fac FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: dast_pre_scan_verification_steps fk_rails_9990fc2adf; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY workspaces - ADD CONSTRAINT fk_bdb0b31131 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.dast_pre_scan_verification_steps + ADD CONSTRAINT fk_rails_9990fc2adf FOREIGN KEY (dast_pre_scan_verification_id) REFERENCES public.dast_pre_scan_verifications(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_compliance_framework_settings - ADD CONSTRAINT fk_be413374a9 FOREIGN KEY (framework_id) REFERENCES compliance_management_frameworks(id) ON DELETE CASCADE; -ALTER TABLE ONLY snippets - ADD CONSTRAINT fk_be41fd4bb7 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: users_ops_dashboard_projects fk_rails_9b4ebf005b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ci_sources_pipelines - ADD CONSTRAINT fk_be5624bf37_p FOREIGN KEY (source_partition_id, source_job_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY public.users_ops_dashboard_projects + ADD CONSTRAINT fk_rails_9b4ebf005b FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_maven_metadata - ADD CONSTRAINT fk_be88aed360 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY remote_development_namespace_cluster_agent_mappings - ADD CONSTRAINT fk_be8e9c740f FOREIGN KEY (cluster_agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; +-- +-- Name: project_incident_management_settings fk_rails_9c2ea1b7dd; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY zoekt_indices - ADD CONSTRAINT fk_bf205d4773 FOREIGN KEY (zoekt_enabled_namespace_id) REFERENCES zoekt_enabled_namespaces(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.project_incident_management_settings + ADD CONSTRAINT fk_rails_9c2ea1b7dd FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_build_infos - ADD CONSTRAINT fk_c0bc6b19ff FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY design_management_versions - ADD CONSTRAINT fk_c1440b4896 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: packages_debian_project_components fk_rails_9d072b5073; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_packages - ADD CONSTRAINT fk_c188f0dba4 FOREIGN KEY (creator_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.packages_debian_project_components + ADD CONSTRAINT fk_rails_9d072b5073 FOREIGN KEY (distribution_id) REFERENCES public.packages_debian_project_distributions(id) ON DELETE CASCADE; -ALTER TABLE ONLY sbom_occurrences - ADD CONSTRAINT fk_c2a5562923 FOREIGN KEY (source_id) REFERENCES sbom_sources(id) ON DELETE CASCADE; -ALTER TABLE ONLY dependency_list_exports - ADD CONSTRAINT fk_c348f16f10 FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; +-- +-- Name: gpg_keys fk_rails_9d1f5d8719; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY issues - ADD CONSTRAINT fk_c34dd2b036 FOREIGN KEY (tmp_epic_id) REFERENCES epics(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.gpg_keys + ADD CONSTRAINT fk_rails_9d1f5d8719 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_group_callouts - ADD CONSTRAINT fk_c366e12ec3 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY timelogs - ADD CONSTRAINT fk_c49c83dd77 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: analytics_language_trend_repository_languages fk_rails_9d851d566c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY wiki_repository_states - ADD CONSTRAINT fk_c558ca51b8 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.analytics_language_trend_repository_languages + ADD CONSTRAINT fk_rails_9d851d566c FOREIGN KEY (programming_language_id) REFERENCES public.programming_languages(id) ON DELETE CASCADE; -ALTER TABLE ONLY issues - ADD CONSTRAINT fk_c63cbf6c25 FOREIGN KEY (closed_by_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY sbom_occurrences_vulnerabilities - ADD CONSTRAINT fk_c677cb859e FOREIGN KEY (sbom_occurrence_id) REFERENCES sbom_occurrences(id) ON DELETE CASCADE; +-- +-- Name: namespaces_sync_events fk_rails_9da32a0431; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY issues - ADD CONSTRAINT fk_c78fbacd64 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.namespaces_sync_events + ADD CONSTRAINT fk_rails_9da32a0431 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_broadcast_message_dismissals - ADD CONSTRAINT fk_c7cbf5566d FOREIGN KEY (broadcast_message_id) REFERENCES broadcast_messages(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_debian_group_distribution_keys - ADD CONSTRAINT fk_c802025a67 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: badges fk_rails_9df4a56538; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY agent_activity_events - ADD CONSTRAINT fk_c815368376 FOREIGN KEY (agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.badges + ADD CONSTRAINT fk_rails_9df4a56538 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY agent_activity_events - ADD CONSTRAINT fk_c8b006d40f FOREIGN KEY (agent_token_id) REFERENCES cluster_agent_tokens(id) ON DELETE SET NULL; -ALTER TABLE ONLY issue_links - ADD CONSTRAINT fk_c900194ff2 FOREIGN KEY (source_id) REFERENCES issues(id) ON DELETE CASCADE; +-- +-- Name: vulnerability_finding_signatures fk_rails_9e0baf9dcd; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY bulk_import_exports - ADD CONSTRAINT fk_c9250a4d3f FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.vulnerability_finding_signatures + ADD CONSTRAINT fk_rails_9e0baf9dcd FOREIGN KEY (finding_id) REFERENCES public.vulnerability_occurrences(id) ON DELETE CASCADE; -ALTER TABLE ONLY personal_access_tokens - ADD CONSTRAINT fk_c951fbf57e FOREIGN KEY (previous_personal_access_token_id) REFERENCES personal_access_tokens(id) ON DELETE SET NULL; -ALTER TABLE ONLY compliance_checks - ADD CONSTRAINT fk_c9683a794f FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: target_branch_rules fk_rails_9e9cf81c8e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY jira_tracker_data - ADD CONSTRAINT fk_c98abcd54c FOREIGN KEY (integration_id) REFERENCES integrations(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.target_branch_rules + ADD CONSTRAINT fk_rails_9e9cf81c8e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY evidences - ADD CONSTRAINT fk_ca4bbc114d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY subscription_add_on_purchases - ADD CONSTRAINT fk_caed789645 FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; +-- +-- Name: timelog_categories fk_rails_9f27b821a8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY duo_workflows_workflows - ADD CONSTRAINT fk_cb28eb3e34 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.timelog_categories + ADD CONSTRAINT fk_rails_9f27b821a8 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY boards_epic_board_labels - ADD CONSTRAINT fk_cb8ded70e2 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY slack_integrations - ADD CONSTRAINT fk_cbe270434e FOREIGN KEY (integration_id) REFERENCES integrations(id) ON DELETE CASCADE; +-- +-- Name: resource_milestone_events fk_rails_a006df5590; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY external_status_checks_protected_branches - ADD CONSTRAINT fk_cc0dcc36d1 FOREIGN KEY (external_status_check_id) REFERENCES external_status_checks(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.resource_milestone_events + ADD CONSTRAINT fk_rails_a006df5590 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY dast_profiles_pipelines - ADD CONSTRAINT fk_cc206a8c13 FOREIGN KEY (dast_profile_id) REFERENCES dast_profiles(id) ON DELETE CASCADE; -ALTER TABLE ONLY todos - ADD CONSTRAINT fk_ccf0373936 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: namespace_root_storage_statistics fk_rails_a0702c430b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_debian_project_architectures - ADD CONSTRAINT fk_cd96fce0a1 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.namespace_root_storage_statistics + ADD CONSTRAINT fk_rails_a0702c430b FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_dependencies - ADD CONSTRAINT fk_cea1124da7 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY compliance_framework_security_policies - ADD CONSTRAINT fk_cf3c0ac207 FOREIGN KEY (policy_configuration_id) REFERENCES security_orchestration_policy_configurations(id) ON DELETE CASCADE; +-- +-- Name: dingtalk_tracker_data fk_rails_a138e0d542; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY issue_assignment_events - ADD CONSTRAINT fk_cfd2073177 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.dingtalk_tracker_data + ADD CONSTRAINT fk_rails_a138e0d542 FOREIGN KEY (integration_id) REFERENCES public.integrations(id) ON DELETE CASCADE; -ALTER TABLE ONLY custom_emoji - ADD CONSTRAINT fk_custom_emoji_creator_id FOREIGN KEY (creator_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY bulk_import_entities - ADD CONSTRAINT fk_d06d023c30 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: elastic_reindexing_slices fk_rails_a17d86aeb9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY subscription_user_add_on_assignments - ADD CONSTRAINT fk_d1074a6e16 FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.elastic_reindexing_slices + ADD CONSTRAINT fk_rails_a17d86aeb9 FOREIGN KEY (elastic_reindexing_subtask_id) REFERENCES public.elastic_reindexing_subtasks(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_mirror_data - ADD CONSTRAINT fk_d1aad367d7 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY environments - ADD CONSTRAINT fk_d1c8c1da6a FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: project_aliases fk_rails_a1804f74a7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY dast_pre_scan_verifications - ADD CONSTRAINT fk_d23ad33d6e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.project_aliases + ADD CONSTRAINT fk_rails_a1804f74a7 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE p_ci_builds - ADD CONSTRAINT fk_d3130c9a7f_p FOREIGN KEY (partition_id, commit_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY ci_builds - ADD CONSTRAINT fk_d3130c9a7f_p_tmp FOREIGN KEY (partition_id, commit_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +-- +-- Name: vulnerability_user_mentions fk_rails_a18600f210; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY boards_epic_user_preferences - ADD CONSTRAINT fk_d32c3d693c FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.vulnerability_user_mentions + ADD CONSTRAINT fk_rails_a18600f210 FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerability_state_transitions - ADD CONSTRAINT fk_d3ede71c58 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_sources_pipelines - ADD CONSTRAINT fk_d4e29af7d7_p FOREIGN KEY (source_partition_id, source_pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +-- +-- Name: dependency_proxy_packages_settings fk_rails_a248d0c26f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ci_sources_pipelines - ADD CONSTRAINT fk_d4e29af7d7_p_tmp FOREIGN KEY (source_partition_id, source_pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +ALTER TABLE ONLY public.dependency_proxy_packages_settings + ADD CONSTRAINT fk_rails_a248d0c26f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY operations_strategies_user_lists - ADD CONSTRAINT fk_d4f7076369 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY incident_management_timeline_events - ADD CONSTRAINT fk_d606a2a890 FOREIGN KEY (promoted_from_note_id) REFERENCES notes(id) ON DELETE SET NULL; +-- +-- Name: todos fk_rails_a27c483435; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY lists - ADD CONSTRAINT fk_d6cf4279f7 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.todos + ADD CONSTRAINT fk_rails_a27c483435 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY agent_activity_events - ADD CONSTRAINT fk_d6f785c9fc FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY user_achievements - ADD CONSTRAINT fk_d7653ef780 FOREIGN KEY (revoked_by_user_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: protected_environments fk_rails_a354313d11; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY metrics_users_starred_dashboards - ADD CONSTRAINT fk_d76a2b9a8c FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.protected_environments + ADD CONSTRAINT fk_rails_a354313d11 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE p_ci_pipelines - ADD CONSTRAINT fk_d80e161c54 FOREIGN KEY (ci_ref_id) REFERENCES ci_refs(id) ON DELETE SET NULL; -ALTER TABLE ONLY upcoming_reconciliations - ADD CONSTRAINT fk_d81de6b493 FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; +-- +-- Name: jira_connect_subscriptions fk_rails_a3c10bcf7d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY system_note_metadata - ADD CONSTRAINT fk_d83a918cb1 FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.jira_connect_subscriptions + ADD CONSTRAINT fk_rails_a3c10bcf7d FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY sbom_occurrences - ADD CONSTRAINT fk_d857c6edc1 FOREIGN KEY (component_id) REFERENCES sbom_components(id) ON DELETE CASCADE; -ALTER TABLE ONLY dependency_list_exports - ADD CONSTRAINT fk_d871d74675 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: fork_network_members fk_rails_a40860a1ca; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY todos - ADD CONSTRAINT fk_d94154aa95 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.fork_network_members + ADD CONSTRAINT fk_rails_a40860a1ca FOREIGN KEY (fork_network_id) REFERENCES public.fork_networks(id) ON DELETE CASCADE; -ALTER TABLE ONLY label_links - ADD CONSTRAINT fk_d97dd08678 FOREIGN KEY (label_id) REFERENCES labels(id) ON DELETE CASCADE; -ALTER TABLE ONLY personal_access_tokens - ADD CONSTRAINT fk_da676c7ca5 FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; +-- +-- Name: customer_relations_organizations fk_rails_a48597902f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_group_links - ADD CONSTRAINT fk_daa8cee94c FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.customer_relations_organizations + ADD CONSTRAINT fk_rails_a48597902f FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_topics - ADD CONSTRAINT fk_db13576296 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY web_hooks - ADD CONSTRAINT fk_db1ea5699b FOREIGN KEY (integration_id) REFERENCES integrations(id) ON DELETE CASCADE; +-- +-- Name: ai_agent_version_attachments fk_rails_a4ed49efb5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY work_item_dates_sources - ADD CONSTRAINT fk_dbbe8917ee FOREIGN KEY (due_date_sourcing_work_item_id) REFERENCES issues(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.ai_agent_version_attachments + ADD CONSTRAINT fk_rails_a4ed49efb5 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY boards_epic_board_positions - ADD CONSTRAINT fk_dc62428d81 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY workspaces - ADD CONSTRAINT fk_dc7c316be1 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: operations_feature_flag_scopes fk_rails_a50a04d0a4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY software_license_policies - ADD CONSTRAINT fk_dca6a58d53 FOREIGN KEY (approval_policy_rule_id) REFERENCES approval_policy_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.operations_feature_flag_scopes + ADD CONSTRAINT fk_rails_a50a04d0a4 FOREIGN KEY (feature_flag_id) REFERENCES public.operations_feature_flags(id) ON DELETE CASCADE; -ALTER TABLE ONLY epics - ADD CONSTRAINT fk_dccd3f98fc FOREIGN KEY (assignee_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY protected_branches - ADD CONSTRAINT fk_de9216e774 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: packages_helm_file_metadata fk_rails_a559865345; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY issues - ADD CONSTRAINT fk_df75a7c8b8 FOREIGN KEY (promoted_to_epic_id) REFERENCES epics(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.packages_helm_file_metadata + ADD CONSTRAINT fk_rails_a559865345 FOREIGN KEY (package_file_id) REFERENCES public.packages_package_files(id) ON DELETE CASCADE; -ALTER TABLE ONLY dependency_list_exports - ADD CONSTRAINT fk_e133f6725e FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_project_rules - ADD CONSTRAINT fk_e1372c912e FOREIGN KEY (scan_result_policy_id) REFERENCES scan_result_policies(id) ON DELETE CASCADE; +-- +-- Name: cluster_projects fk_rails_a5a958bca1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ci_resources - ADD CONSTRAINT fk_e169a8e3d5_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL; +ALTER TABLE ONLY public.cluster_projects + ADD CONSTRAINT fk_rails_a5a958bca1 FOREIGN KEY (cluster_id) REFERENCES public.clusters(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_sources_pipelines - ADD CONSTRAINT fk_e1bad85861_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY ci_sources_pipelines - ADD CONSTRAINT fk_e1bad85861_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +-- +-- Name: commit_user_mentions fk_rails_a6760813e0; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE p_ci_builds_metadata - ADD CONSTRAINT fk_e20479742e_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY public.commit_user_mentions + ADD CONSTRAINT fk_rails_a6760813e0 FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; -ALTER TABLE ONLY gitlab_subscriptions - ADD CONSTRAINT fk_e2595d00a1 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_merge_request_rules - ADD CONSTRAINT fk_e33a9aaf67 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: vulnerability_identifiers fk_rails_a67a16c885; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY abuse_events - ADD CONSTRAINT fk_e5ce49c215 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.vulnerability_identifiers + ADD CONSTRAINT fk_rails_a67a16c885 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_preferences - ADD CONSTRAINT fk_e5e029c10b FOREIGN KEY (home_organization_id) REFERENCES organizations(id) ON DELETE SET NULL; -ALTER TABLE ONLY packages_debian_group_components - ADD CONSTRAINT fk_e63e8ee3b1 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: user_preferences fk_rails_a69bfcfd81; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_requests - ADD CONSTRAINT fk_e719a85f8a FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.user_preferences + ADD CONSTRAINT fk_rails_a69bfcfd81 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerability_state_transitions - ADD CONSTRAINT fk_e719dc63df FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY issue_links - ADD CONSTRAINT fk_e71bb44f1f FOREIGN KEY (target_id) REFERENCES issues(id) ON DELETE CASCADE; +-- +-- Name: sentry_issues fk_rails_a6a9612965; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY csv_issue_imports - ADD CONSTRAINT fk_e71c0ae362 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.sentry_issues + ADD CONSTRAINT fk_rails_a6a9612965 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY namespaces - ADD CONSTRAINT fk_e7a0b20a6b FOREIGN KEY (custom_project_templates_group_id) REFERENCES namespaces(id) ON DELETE SET NULL; -ALTER TABLE ONLY fork_networks - ADD CONSTRAINT fk_e7b436b2b5 FOREIGN KEY (root_project_id) REFERENCES projects(id) ON DELETE SET NULL; +-- +-- Name: project_states fk_rails_a6e5821877; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY error_tracking_error_events - ADD CONSTRAINT fk_e84882273e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.project_states + ADD CONSTRAINT fk_rails_a6e5821877 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY ml_candidates - ADD CONSTRAINT fk_e86e0bfa5a FOREIGN KEY (model_version_id) REFERENCES ml_model_versions(id) ON DELETE CASCADE; -ALTER TABLE ONLY integrations - ADD CONSTRAINT fk_e8fe908a34 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: user_permission_export_uploads fk_rails_a7130085e3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY pages_domains - ADD CONSTRAINT fk_ea2f6dfc6f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.user_permission_export_uploads + ADD CONSTRAINT fk_rails_a7130085e3 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_debian_project_distribution_keys - ADD CONSTRAINT fk_eb2224a3c0 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY dast_profiles_tags - ADD CONSTRAINT fk_eb7e19f8da FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: repository_languages fk_rails_a750ec87a8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY compliance_requirements - ADD CONSTRAINT fk_ebf5c3365b FOREIGN KEY (framework_id) REFERENCES compliance_management_frameworks(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.repository_languages + ADD CONSTRAINT fk_rails_a750ec87a8 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY catalog_resource_components - ADD CONSTRAINT fk_ec417536da FOREIGN KEY (catalog_resource_id) REFERENCES catalog_resources(id) ON DELETE CASCADE; -ALTER TABLE ONLY workspaces - ADD CONSTRAINT fk_ec70695b2c FOREIGN KEY (personal_access_token_id) REFERENCES personal_access_tokens(id) ON DELETE RESTRICT; +-- +-- Name: dependency_proxy_manifests fk_rails_a758021fb0; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_requests_compliance_violations - ADD CONSTRAINT fk_ec881c1c6f FOREIGN KEY (violating_user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.dependency_proxy_manifests + ADD CONSTRAINT fk_rails_a758021fb0 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY coverage_fuzzing_corpuses - ADD CONSTRAINT fk_ef5ebf339f FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_request_context_commits - ADD CONSTRAINT fk_ef6766ed57 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: resource_milestone_events fk_rails_a788026e85; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY approval_project_rules - ADD CONSTRAINT fk_efa5a1e3fb FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES security_orchestration_policy_configurations(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.resource_milestone_events + ADD CONSTRAINT fk_rails_a788026e85 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerabilities - ADD CONSTRAINT fk_efb96ab1e2 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY dora_daily_metrics - ADD CONSTRAINT fk_efc32a39fa FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: term_agreements fk_rails_a88721bcdf; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY approval_group_rules_groups - ADD CONSTRAINT fk_efff219a48 FOREIGN KEY (approval_group_rule_id) REFERENCES approval_group_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.term_agreements + ADD CONSTRAINT fk_rails_a88721bcdf FOREIGN KEY (term_id) REFERENCES public.application_setting_terms(id); -ALTER TABLE ONLY emails - ADD CONSTRAINT fk_emails_user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY epics - ADD CONSTRAINT fk_epics_issue_id_with_on_delete_cascade FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +-- +-- Name: saved_replies fk_rails_a8bf5bf111; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY epics - ADD CONSTRAINT fk_epics_on_parent_id_with_on_delete_nullify FOREIGN KEY (parent_id) REFERENCES epics(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.saved_replies + ADD CONSTRAINT fk_rails_a8bf5bf111 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY clusters - ADD CONSTRAINT fk_f05c5e5a42 FOREIGN KEY (management_project_id) REFERENCES projects(id) ON DELETE SET NULL; -ALTER TABLE ONLY vulnerability_external_issue_links - ADD CONSTRAINT fk_f07bb8233d FOREIGN KEY (vulnerability_id) REFERENCES vulnerabilities(id) ON DELETE CASCADE; +-- +-- Name: ci_pipeline_artifacts fk_rails_a9e811a466_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY epics - ADD CONSTRAINT fk_f081aa4489 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ci_pipeline_artifacts + ADD CONSTRAINT fk_rails_a9e811a466_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY abuse_reports - ADD CONSTRAINT fk_f10de8b524 FOREIGN KEY (resolved_by_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY timelogs - ADD CONSTRAINT fk_f12ef8db70 FOREIGN KEY (timelog_category_id) REFERENCES timelog_categories(id) ON DELETE SET NULL; +-- +-- Name: ci_pipeline_artifacts fk_rails_a9e811a466_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY boards - ADD CONSTRAINT fk_f15266b5f9 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ci_pipeline_artifacts + ADD CONSTRAINT fk_rails_a9e811a466_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -ALTER TABLE ONLY epic_user_mentions - ADD CONSTRAINT fk_f1ab52883e FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY observability_metrics_issues_connections - ADD CONSTRAINT fk_f218d84a14 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: merge_request_user_mentions fk_rails_aa1b2961b1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY workspaces_agent_configs - ADD CONSTRAINT fk_f25d0fbfae FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.merge_request_user_mentions + ADD CONSTRAINT fk_rails_aa1b2961b1 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER TABLE p_ci_pipeline_variables - ADD CONSTRAINT fk_f29c5f4380_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY ci_pipeline_variables - ADD CONSTRAINT fk_f29c5f4380_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +-- +-- Name: wiki_repository_states fk_rails_aa2f8a61ba; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY zoekt_indices - ADD CONSTRAINT fk_f34800a202 FOREIGN KEY (zoekt_node_id) REFERENCES zoekt_nodes(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.wiki_repository_states + ADD CONSTRAINT fk_rails_aa2f8a61ba FOREIGN KEY (project_wiki_repository_id) REFERENCES public.project_wiki_repositories(id) ON DELETE CASCADE; -ALTER TABLE ONLY status_check_responses - ADD CONSTRAINT fk_f3953d86c6 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY design_management_designs_versions - ADD CONSTRAINT fk_f4d25ba00c FOREIGN KEY (version_id) REFERENCES design_management_versions(id) ON DELETE CASCADE; +-- +-- Name: x509_commit_signatures fk_rails_ab07452314; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY scan_result_policy_violations - ADD CONSTRAINT fk_f53706dbdd FOREIGN KEY (scan_result_policy_id) REFERENCES scan_result_policies(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.x509_commit_signatures + ADD CONSTRAINT fk_rails_ab07452314 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerability_user_mentions - ADD CONSTRAINT fk_f5768ba1ec FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY analytics_devops_adoption_segments - ADD CONSTRAINT fk_f5aa768998 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: dast_profiles_tags fk_rails_ab9e643cd8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY boards_epic_list_user_preferences - ADD CONSTRAINT fk_f5f2fe5c1f FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.dast_profiles_tags + ADD CONSTRAINT fk_rails_ab9e643cd8 FOREIGN KEY (dast_profile_id) REFERENCES public.dast_profiles(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_project_callouts - ADD CONSTRAINT fk_f62dd11a33 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY ml_model_metadata - ADD CONSTRAINT fk_f68c7e109c FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: resource_iteration_events fk_rails_abf5d4affa; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY workspaces - ADD CONSTRAINT fk_f78aeddc77 FOREIGN KEY (cluster_agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.resource_iteration_events + ADD CONSTRAINT fk_rails_abf5d4affa FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY cluster_agents - ADD CONSTRAINT fk_f7d43dee13 FOREIGN KEY (created_by_user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY protected_tag_create_access_levels - ADD CONSTRAINT fk_f7dfda8c51 FOREIGN KEY (protected_tag_id) REFERENCES protected_tags(id) ON DELETE CASCADE; +-- +-- Name: container_registry_protection_rules fk_rails_ac331fcba9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY application_settings - ADD CONSTRAINT fk_f9867b3540 FOREIGN KEY (web_ide_oauth_application_id) REFERENCES oauth_applications(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.container_registry_protection_rules + ADD CONSTRAINT fk_rails_ac331fcba9 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE p_ci_stages - ADD CONSTRAINT fk_fb57e6cc56_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY ci_stages - ADD CONSTRAINT fk_fb57e6cc56_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +-- +-- Name: clusters fk_rails_ac3a663d79; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY agent_group_authorizations - ADD CONSTRAINT fk_fb70782616 FOREIGN KEY (agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.clusters + ADD CONSTRAINT fk_rails_ac3a663d79 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER TABLE ONLY system_note_metadata - ADD CONSTRAINT fk_fbd87415c9 FOREIGN KEY (description_version_id) REFERENCES description_versions(id) ON DELETE SET NULL; -ALTER TABLE ONLY work_item_dates_sources - ADD CONSTRAINT fk_fc7bc5e687 FOREIGN KEY (due_date_sourcing_milestone_id) REFERENCES milestones(id) ON DELETE SET NULL; +-- +-- Name: group_saved_replies fk_rails_acd8e1889b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_debian_publications - ADD CONSTRAINT fk_fd1ad5dd37 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.group_saved_replies + ADD CONSTRAINT fk_rails_acd8e1889b FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY abuse_report_events - ADD CONSTRAINT fk_fdd4d610e0 FOREIGN KEY (abuse_report_id) REFERENCES abuse_reports(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_merge_request_rule_sources - ADD CONSTRAINT fk_fea41830d0 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: packages_composer_metadata fk_rails_ad48c2e5bb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY import_placeholder_memberships - ADD CONSTRAINT fk_ffae4107ac FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_composer_metadata + ADD CONSTRAINT fk_rails_ad48c2e5bb FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_import_data - ADD CONSTRAINT fk_ffb9ee3a10 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY issues - ADD CONSTRAINT fk_ffed080f01 FOREIGN KEY (updated_by_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: user_phone_number_validations fk_rails_ad6686f3d8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY geo_event_log - ADD CONSTRAINT fk_geo_event_log_on_geo_event_id FOREIGN KEY (geo_event_id) REFERENCES geo_events(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.user_phone_number_validations + ADD CONSTRAINT fk_rails_ad6686f3d8 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY members - ADD CONSTRAINT fk_member_role_on_members FOREIGN KEY (member_role_id) REFERENCES member_roles(id) ON DELETE SET NULL; -ALTER TABLE ONLY ml_candidate_metrics - ADD CONSTRAINT fk_ml_candidate_metrics_on_candidate_id FOREIGN KEY (candidate_id) REFERENCES ml_candidates(id) ON DELETE CASCADE; +-- +-- Name: analytics_cycle_analytics_group_stages fk_rails_ae5da3409b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ml_candidate_params - ADD CONSTRAINT fk_ml_candidate_params_on_candidate_id FOREIGN KEY (candidate_id) REFERENCES ml_candidates(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.analytics_cycle_analytics_group_stages + ADD CONSTRAINT fk_rails_ae5da3409b FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY ml_candidates - ADD CONSTRAINT fk_ml_candidates_on_user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY ml_experiments - ADD CONSTRAINT fk_ml_experiments_on_user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: metrics_dashboard_annotations fk_rails_aeb11a7643; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY path_locks - ADD CONSTRAINT fk_path_locks_user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.metrics_dashboard_annotations + ADD CONSTRAINT fk_rails_aeb11a7643 FOREIGN KEY (environment_id) REFERENCES public.environments(id) ON DELETE CASCADE; -ALTER TABLE ONLY personal_access_tokens - ADD CONSTRAINT fk_personal_access_tokens_user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_settings - ADD CONSTRAINT fk_project_settings_push_rule_id FOREIGN KEY (push_rule_id) REFERENCES push_rules(id) ON DELETE SET NULL; +-- +-- Name: p_ci_build_trace_metadata fk_rails_aebc78111f_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY projects - ADD CONSTRAINT fk_projects_namespace_id FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE RESTRICT; +ALTER TABLE public.p_ci_build_trace_metadata + ADD CONSTRAINT fk_rails_aebc78111f_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY protected_branch_merge_access_levels - ADD CONSTRAINT fk_protected_branch_merge_access_levels_user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY protected_branch_push_access_levels - ADD CONSTRAINT fk_protected_branch_push_access_levels_user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: bulk_import_trackers fk_rails_aed566d3f3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY protected_tag_create_access_levels - ADD CONSTRAINT fk_protected_tag_create_access_levels_user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.bulk_import_trackers + ADD CONSTRAINT fk_rails_aed566d3f3 FOREIGN KEY (bulk_import_entity_id) REFERENCES public.bulk_import_entities(id) ON DELETE CASCADE; -ALTER TABLE ONLY scan_execution_policy_rules - ADD CONSTRAINT fk_rails_003cb62f9b FOREIGN KEY (security_policy_management_project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_merge_request_rules - ADD CONSTRAINT fk_rails_004ce82224 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +-- +-- Name: pool_repositories fk_rails_af3f8c5d62; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY namespace_statistics - ADD CONSTRAINT fk_rails_0062050394 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.pool_repositories + ADD CONSTRAINT fk_rails_af3f8c5d62 FOREIGN KEY (shard_id) REFERENCES public.shards(id) ON DELETE RESTRICT; -ALTER TABLE p_ci_build_sources - ADD CONSTRAINT fk_rails_023578ae70 FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY automation_rules - ADD CONSTRAINT fk_rails_025b519b8d FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: work_item_related_link_restrictions fk_rails_b013a0fa65; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY incident_management_oncall_participants - ADD CONSTRAINT fk_rails_032b12996a FOREIGN KEY (oncall_rotation_id) REFERENCES incident_management_oncall_rotations(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.work_item_related_link_restrictions + ADD CONSTRAINT fk_rails_b013a0fa65 FOREIGN KEY (source_type_id) REFERENCES public.work_item_types(id) ON DELETE CASCADE; -ALTER TABLE ONLY events - ADD CONSTRAINT fk_rails_0434b48643 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE incident_management_pending_issue_escalations - ADD CONSTRAINT fk_rails_0470889ee5 FOREIGN KEY (rule_id) REFERENCES incident_management_escalation_rules(id) ON DELETE CASCADE; +-- +-- Name: resource_label_events fk_rails_b126799f57; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ip_restrictions - ADD CONSTRAINT fk_rails_04a93778d5 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.resource_label_events + ADD CONSTRAINT fk_rails_b126799f57 FOREIGN KEY (label_id) REFERENCES public.labels(id) ON DELETE SET NULL; -ALTER TABLE ONLY terraform_state_versions - ADD CONSTRAINT fk_rails_04f176e239 FOREIGN KEY (terraform_state_id) REFERENCES terraform_states(id) ON DELETE CASCADE; -ALTER TABLE ONLY search_namespace_index_assignments - ADD CONSTRAINT fk_rails_06f9b905d3 FOREIGN KEY (namespace_id) REFERENCES namespaces(id); +-- +-- Name: webauthn_registrations fk_rails_b15c016782; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY issue_assignment_events - ADD CONSTRAINT fk_rails_07683f8e80 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.webauthn_registrations + ADD CONSTRAINT fk_rails_b15c016782 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY virtual_registries_packages_maven_cached_responses - ADD CONSTRAINT fk_rails_0816e694a3 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY security_policies - ADD CONSTRAINT fk_rails_08722e8ac7 FOREIGN KEY (security_policy_management_project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: packages_build_infos fk_rails_b18868292d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY work_item_hierarchy_restrictions - ADD CONSTRAINT fk_rails_08cd7fef58 FOREIGN KEY (child_type_id) REFERENCES work_item_types(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_build_infos + ADD CONSTRAINT fk_rails_b18868292d FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY trending_projects - ADD CONSTRAINT fk_rails_09feecd872 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY security_orchestration_policy_configurations - ADD CONSTRAINT fk_rails_0a22dcd52d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: authentication_events fk_rails_b204656a54; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_deploy_tokens - ADD CONSTRAINT fk_rails_0aca134388 FOREIGN KEY (deploy_token_id) REFERENCES deploy_tokens(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.authentication_events + ADD CONSTRAINT fk_rails_b204656a54 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER TABLE ONLY project_saved_replies - ADD CONSTRAINT fk_rails_0ace76afbb FOREIGN KEY (project_id) REFERENCES projects(id); -ALTER TABLE ONLY packages_debian_group_distributions - ADD CONSTRAINT fk_rails_0adf75c347 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE RESTRICT; +-- +-- Name: merge_trains fk_rails_b29261ce31; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_conan_file_metadata - ADD CONSTRAINT fk_rails_0afabd9328 FOREIGN KEY (package_file_id) REFERENCES packages_package_files(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.merge_trains + ADD CONSTRAINT fk_rails_b29261ce31 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY related_epic_links - ADD CONSTRAINT fk_rails_0b72027748 FOREIGN KEY (target_id) REFERENCES epics(id) ON DELETE CASCADE; -ALTER TABLE ONLY audit_events_external_audit_event_destinations - ADD CONSTRAINT fk_rails_0bc80a4edc FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: board_project_recent_visits fk_rails_b315dd0c80; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY operations_user_lists - ADD CONSTRAINT fk_rails_0c716e079b FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.board_project_recent_visits + ADD CONSTRAINT fk_rails_b315dd0c80 FOREIGN KEY (board_id) REFERENCES public.boards(id) ON DELETE CASCADE; -ALTER TABLE ONLY resource_link_events - ADD CONSTRAINT fk_rails_0cea73eba5 FOREIGN KEY (child_work_item_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE p_catalog_resource_component_usages - ADD CONSTRAINT fk_rails_0e15a4677f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: issues_prometheus_alert_events fk_rails_b32edb790f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY audit_events_google_cloud_logging_configurations - ADD CONSTRAINT fk_rails_0eb52fc617 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.issues_prometheus_alert_events + ADD CONSTRAINT fk_rails_b32edb790f FOREIGN KEY (prometheus_alert_event_id) REFERENCES public.prometheus_alert_events(id) ON DELETE CASCADE; -ALTER TABLE ONLY geo_node_statuses - ADD CONSTRAINT fk_rails_0ecc699c2a FOREIGN KEY (geo_node_id) REFERENCES geo_nodes(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_synced_attributes_metadata - ADD CONSTRAINT fk_rails_0f4aa0981f FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: merge_trains fk_rails_b374b5225d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_authorizations - ADD CONSTRAINT fk_rails_0f84bb11f3 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.merge_trains + ADD CONSTRAINT fk_rails_b374b5225d FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY boards_epic_lists - ADD CONSTRAINT fk_rails_0f9c7f646f FOREIGN KEY (epic_board_id) REFERENCES boards_epic_boards(id) ON DELETE CASCADE; -ALTER TABLE ONLY issue_email_participants - ADD CONSTRAINT fk_rails_0fdfd8b811 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +-- +-- Name: merge_request_predictions fk_rails_b3b78cbcd0; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_context_commits - ADD CONSTRAINT fk_rails_0fe0039f60 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.merge_request_predictions + ADD CONSTRAINT fk_rails_b3b78cbcd0 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY prometheus_alert_events - ADD CONSTRAINT fk_rails_106f901176 FOREIGN KEY (prometheus_alert_id) REFERENCES prometheus_alerts(id) ON DELETE CASCADE; -ALTER TABLE ONLY audit_events_streaming_headers - ADD CONSTRAINT fk_rails_109fcf96e2 FOREIGN KEY (external_audit_event_destination_id) REFERENCES audit_events_external_audit_event_destinations(id) ON DELETE CASCADE; +-- +-- Name: incident_management_escalation_rules fk_rails_b3c9c17bd4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ci_sources_projects - ADD CONSTRAINT fk_rails_10a1eb379a_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY public.incident_management_escalation_rules + ADD CONSTRAINT fk_rails_b3c9c17bd4 FOREIGN KEY (oncall_schedule_id) REFERENCES public.incident_management_oncall_schedules(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_sources_projects - ADD CONSTRAINT fk_rails_10a1eb379a_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -ALTER TABLE ONLY virtual_registries_packages_maven_cached_responses - ADD CONSTRAINT fk_rails_1167f21441 FOREIGN KEY (upstream_id) REFERENCES virtual_registries_packages_maven_upstreams(id) ON DELETE SET NULL; +-- +-- Name: duo_workflows_checkpoints fk_rails_b4c109b1a4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY zoom_meetings - ADD CONSTRAINT fk_rails_1190f0e0fa FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.duo_workflows_checkpoints + ADD CONSTRAINT fk_rails_b4c109b1a4 FOREIGN KEY (workflow_id) REFERENCES public.duo_workflows_workflows(id) ON DELETE CASCADE; -ALTER TABLE ONLY gpg_signatures - ADD CONSTRAINT fk_rails_11ae8cb9a7 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY pm_affected_packages - ADD CONSTRAINT fk_rails_1279c1b9a1 FOREIGN KEY (pm_advisory_id) REFERENCES pm_advisories(id) ON DELETE CASCADE; +-- +-- Name: packages_debian_project_component_files fk_rails_b543a9622b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY description_versions - ADD CONSTRAINT fk_rails_12b144011c FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_debian_project_component_files + ADD CONSTRAINT fk_rails_b543a9622b FOREIGN KEY (architecture_id) REFERENCES public.packages_debian_project_architectures(id) ON DELETE RESTRICT; -ALTER TABLE ONLY project_statistics - ADD CONSTRAINT fk_rails_12c471002f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_details - ADD CONSTRAINT fk_rails_12e0b3043d FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: namespace_aggregation_schedules fk_rails_b565c8d16c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY bulk_imports - ADD CONSTRAINT fk_rails_130a09357d FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.namespace_aggregation_schedules + ADD CONSTRAINT fk_rails_b565c8d16c FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY diff_note_positions - ADD CONSTRAINT fk_rails_13c7212859 FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; -ALTER TABLE ONLY analytics_cycle_analytics_aggregations - ADD CONSTRAINT fk_rails_13c8374c7a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: container_registry_data_repair_details fk_rails_b70d8111d9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY service_desk_custom_email_verifications - ADD CONSTRAINT fk_rails_14dcaf4c92 FOREIGN KEY (triggerer_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.container_registry_data_repair_details + ADD CONSTRAINT fk_rails_b70d8111d9 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY namespaces_storage_limit_exclusions - ADD CONSTRAINT fk_rails_14e8f7b0e0 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY users_security_dashboard_projects - ADD CONSTRAINT fk_rails_150cd5682c FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: batched_background_migration_job_transition_logs fk_rails_b7523a175b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY import_source_user_placeholder_references - ADD CONSTRAINT fk_rails_158995b934 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE public.batched_background_migration_job_transition_logs + ADD CONSTRAINT fk_rails_b7523a175b FOREIGN KEY (batched_background_migration_job_id) REFERENCES public.batched_background_migration_jobs(id) ON DELETE CASCADE; -ALTER TABLE ONLY import_source_users - ADD CONSTRAINT fk_rails_167f82fd95 FOREIGN KEY (reassign_to_user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY ci_build_report_results - ADD CONSTRAINT fk_rails_16cb1ff064_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +-- +-- Name: approval_project_rules_protected_branches fk_rails_b7567b031b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY catalog_resources - ADD CONSTRAINT fk_rails_16f09e5c44 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.approval_project_rules_protected_branches + ADD CONSTRAINT fk_rails_b7567b031b FOREIGN KEY (protected_branch_id) REFERENCES public.protected_branches(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_deploy_tokens - ADD CONSTRAINT fk_rails_170e03cbaf FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY security_orchestration_policy_rule_schedules - ADD CONSTRAINT fk_rails_17ade83f17 FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES security_orchestration_policy_configurations(id) ON DELETE CASCADE; +-- +-- Name: packages_composer_cache_files fk_rails_b82cea43a0; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY approval_policy_rules - ADD CONSTRAINT fk_rails_17c6dfe138 FOREIGN KEY (security_policy_id) REFERENCES security_policies(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_composer_cache_files + ADD CONSTRAINT fk_rails_b82cea43a0 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE SET NULL; -ALTER TABLE ONLY incident_management_escalation_rules - ADD CONSTRAINT fk_rails_17dbea07a6 FOREIGN KEY (policy_id) REFERENCES incident_management_escalation_policies(id) ON DELETE CASCADE; -ALTER TABLE ONLY audit_events_streaming_http_group_namespace_filters - ADD CONSTRAINT fk_rails_17f19c81df FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: abuse_trust_scores fk_rails_b903079eb4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY cluster_providers_aws - ADD CONSTRAINT fk_rails_18983d9ea4 FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.abuse_trust_scores + ADD CONSTRAINT fk_rails_b903079eb4 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY grafana_integrations - ADD CONSTRAINT fk_rails_18d0e2b564 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY bulk_import_failures - ADD CONSTRAINT fk_rails_1964240b8c FOREIGN KEY (bulk_import_entity_id) REFERENCES bulk_import_entities(id) ON DELETE CASCADE; +-- +-- Name: virtual_registries_packages_maven_registry_upstreams fk_rails_b991fff0be; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY group_wiki_repositories - ADD CONSTRAINT fk_rails_19755e374b FOREIGN KEY (shard_id) REFERENCES shards(id) ON DELETE RESTRICT; +ALTER TABLE ONLY public.virtual_registries_packages_maven_registry_upstreams + ADD CONSTRAINT fk_rails_b991fff0be FOREIGN KEY (registry_id) REFERENCES public.virtual_registries_packages_maven_registries(id) ON DELETE CASCADE; -ALTER TABLE ONLY gpg_signatures - ADD CONSTRAINT fk_rails_19d4f1c6f9 FOREIGN KEY (gpg_key_subkey_id) REFERENCES gpg_key_subkeys(id) ON DELETE SET NULL; -ALTER TABLE ONLY incident_management_oncall_schedules - ADD CONSTRAINT fk_rails_19e83fdd65 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: dora_configurations fk_rails_b9b8d90ddb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_user_mentions - ADD CONSTRAINT fk_rails_1a41c485cd FOREIGN KEY (vulnerability_id) REFERENCES vulnerabilities(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.dora_configurations + ADD CONSTRAINT fk_rails_b9b8d90ddb FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_debian_file_metadata - ADD CONSTRAINT fk_rails_1ae85be112 FOREIGN KEY (package_file_id) REFERENCES packages_package_files(id) ON DELETE CASCADE; -ALTER TABLE ONLY catalog_verified_namespaces - ADD CONSTRAINT fk_rails_1b6bb852c0 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: merge_trains fk_rails_b9d67af01d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY issuable_slas - ADD CONSTRAINT fk_rails_1b8768cd63 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.merge_trains + ADD CONSTRAINT fk_rails_b9d67af01d FOREIGN KEY (target_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY board_assignees - ADD CONSTRAINT fk_rails_1c0ff59e82 FOREIGN KEY (assignee_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY epic_user_mentions - ADD CONSTRAINT fk_rails_1c65976a49 FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; +-- +-- Name: approval_project_rules_users fk_rails_b9e9394efb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY approver_groups - ADD CONSTRAINT fk_rails_1cdcbd7723 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.approval_project_rules_users + ADD CONSTRAINT fk_rails_b9e9394efb FOREIGN KEY (approval_project_rule_id) REFERENCES public.approval_project_rules(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_ci_feature_usages - ADD CONSTRAINT fk_rails_1deedbf64b FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_tags - ADD CONSTRAINT fk_rails_1dfc868911 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; +-- +-- Name: lists fk_rails_baed5f39b7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY boards_epic_board_positions - ADD CONSTRAINT fk_rails_1ecfd9f2de FOREIGN KEY (epic_id) REFERENCES epics(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.lists + ADD CONSTRAINT fk_rails_baed5f39b7 FOREIGN KEY (milestone_id) REFERENCES public.milestones(id) ON DELETE CASCADE; -ALTER TABLE ONLY external_status_checks - ADD CONSTRAINT fk_rails_1f5a8aa809 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY dora_daily_metrics - ADD CONSTRAINT fk_rails_1fd07aff6f FOREIGN KEY (environment_id) REFERENCES environments(id) ON DELETE CASCADE; +-- +-- Name: security_findings fk_rails_bb63863cf1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY boards_epic_lists - ADD CONSTRAINT fk_rails_1fe6b54909 FOREIGN KEY (label_id) REFERENCES labels(id) ON DELETE CASCADE; +ALTER TABLE public.security_findings + ADD CONSTRAINT fk_rails_bb63863cf1 FOREIGN KEY (scan_id) REFERENCES public.security_scans(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_merge_request_rules_groups - ADD CONSTRAINT fk_rails_2020a7124a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_statuses - ADD CONSTRAINT fk_rails_2178592333 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: packages_debian_project_component_files fk_rails_bbe9ebfbd9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ai_agent_versions - ADD CONSTRAINT fk_rails_2205f8ca20 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_debian_project_component_files + ADD CONSTRAINT fk_rails_bbe9ebfbd9 FOREIGN KEY (component_id) REFERENCES public.packages_debian_project_components(id) ON DELETE RESTRICT; -ALTER TABLE ONLY users_ops_dashboard_projects - ADD CONSTRAINT fk_rails_220a0562db FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY service_desk_settings - ADD CONSTRAINT fk_rails_223a296a85 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: projects_sync_events fk_rails_bbf0eef59f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY saml_group_links - ADD CONSTRAINT fk_rails_22e312c530 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.projects_sync_events + ADD CONSTRAINT fk_rails_bbf0eef59f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY work_item_parent_links - ADD CONSTRAINT fk_rails_231dba8959 FOREIGN KEY (work_item_parent_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY dast_profiles - ADD CONSTRAINT fk_rails_23cae5abe1 FOREIGN KEY (dast_scanner_profile_id) REFERENCES dast_scanner_profiles(id) ON DELETE CASCADE; +-- +-- Name: p_ci_build_names fk_rails_bc221a297a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY group_custom_attributes - ADD CONSTRAINT fk_rails_246e0db83a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE public.p_ci_build_names + ADD CONSTRAINT fk_rails_bc221a297a FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY incident_management_oncall_rotations - ADD CONSTRAINT fk_rails_256e0bc604 FOREIGN KEY (oncall_schedule_id) REFERENCES incident_management_oncall_schedules(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_unit_test_failures - ADD CONSTRAINT fk_rails_259da3e79c FOREIGN KEY (unit_test_id) REFERENCES ci_unit_tests(id) ON DELETE CASCADE; +-- +-- Name: approval_merge_request_rules_users fk_rails_bc8972fa55; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ci_builds - ADD CONSTRAINT fk_rails_25dc49c011 FOREIGN KEY (partition_id, execution_config_id) REFERENCES p_ci_builds_execution_configs(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL NOT VALID; +ALTER TABLE ONLY public.approval_merge_request_rules_users + ADD CONSTRAINT fk_rails_bc8972fa55 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY cluster_agents - ADD CONSTRAINT fk_rails_25e9fc2d5d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY boards_epic_user_preferences - ADD CONSTRAINT fk_rails_268c57d62d FOREIGN KEY (board_id) REFERENCES boards(id) ON DELETE CASCADE; +-- +-- Name: observability_traces_issues_connections fk_rails_bcf18aa0d2; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY group_wiki_repositories - ADD CONSTRAINT fk_rails_26f867598c FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.observability_traces_issues_connections + ADD CONSTRAINT fk_rails_bcf18aa0d2 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY lfs_file_locks - ADD CONSTRAINT fk_rails_27a1d98fa8 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_alerting_settings - ADD CONSTRAINT fk_rails_27a84b407d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: elasticsearch_indexed_projects fk_rails_bd13bbdc3d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY work_item_hierarchy_restrictions - ADD CONSTRAINT fk_rails_27bb3a10ba FOREIGN KEY (parent_type_id) REFERENCES work_item_types(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.elasticsearch_indexed_projects + ADD CONSTRAINT fk_rails_bd13bbdc3d FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_credit_card_validations - ADD CONSTRAINT fk_rails_27ebc03cbf FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY dast_site_validations - ADD CONSTRAINT fk_rails_285c617324 FOREIGN KEY (dast_site_token_id) REFERENCES dast_site_tokens(id) ON DELETE CASCADE; +-- +-- Name: elasticsearch_indexed_namespaces fk_rails_bdcf044f37; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_findings_remediations - ADD CONSTRAINT fk_rails_28a8d0cf93 FOREIGN KEY (vulnerability_occurrence_id) REFERENCES vulnerability_occurrences(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.elasticsearch_indexed_namespaces + ADD CONSTRAINT fk_rails_bdcf044f37 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY design_management_repositories - ADD CONSTRAINT fk_rails_2938d8dd8d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY incident_management_issuable_escalation_statuses - ADD CONSTRAINT fk_rails_29abffe3b9 FOREIGN KEY (policy_id) REFERENCES incident_management_escalation_policies(id) ON DELETE SET NULL; +-- +-- Name: vulnerability_occurrence_identifiers fk_rails_be2e49e1d0; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY resource_state_events - ADD CONSTRAINT fk_rails_29af06892a FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.vulnerability_occurrence_identifiers + ADD CONSTRAINT fk_rails_be2e49e1d0 FOREIGN KEY (identifier_id) REFERENCES public.vulnerability_identifiers(id) ON DELETE CASCADE; -ALTER TABLE ONLY reviews - ADD CONSTRAINT fk_rails_29e6f859c4 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY draft_notes - ADD CONSTRAINT fk_rails_2a8dac9901 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: bulk_import_export_batches fk_rails_be479792f6; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY xray_reports - ADD CONSTRAINT fk_rails_2b13fbecf9 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.bulk_import_export_batches + ADD CONSTRAINT fk_rails_be479792f6 FOREIGN KEY (export_id) REFERENCES public.bulk_import_exports(id) ON DELETE CASCADE; -ALTER TABLE ONLY dependency_proxy_image_ttl_group_policies - ADD CONSTRAINT fk_rails_2b1896d021 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY group_group_links - ADD CONSTRAINT fk_rails_2b2353ca49 FOREIGN KEY (shared_with_group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: alert_management_http_integrations fk_rails_bec49f52cc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_debian_group_component_files - ADD CONSTRAINT fk_rails_2b8992dd83 FOREIGN KEY (architecture_id) REFERENCES packages_debian_group_architectures(id) ON DELETE RESTRICT; +ALTER TABLE ONLY public.alert_management_http_integrations + ADD CONSTRAINT fk_rails_bec49f52cc FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY boards_epic_board_labels - ADD CONSTRAINT fk_rails_2bedeb8799 FOREIGN KEY (label_id) REFERENCES labels(id) ON DELETE CASCADE; -ALTER TABLE ONLY error_tracking_error_events - ADD CONSTRAINT fk_rails_2c096c0076 FOREIGN KEY (error_id) REFERENCES error_tracking_errors(id) ON DELETE CASCADE; +-- +-- Name: namespace_ci_cd_settings fk_rails_bf04185d54; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY work_item_colors - ADD CONSTRAINT fk_rails_2c2032206e FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.namespace_ci_cd_settings + ADD CONSTRAINT fk_rails_bf04185d54 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY onboarding_progresses - ADD CONSTRAINT fk_rails_2ccfd420cc FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY protected_branch_unprotect_access_levels - ADD CONSTRAINT fk_rails_2d2aba21ef FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: vulnerability_occurrences fk_rails_bf5b788ca7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY issuable_severities - ADD CONSTRAINT fk_rails_2fbb74ad6d FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.vulnerability_occurrences + ADD CONSTRAINT fk_rails_bf5b788ca7 FOREIGN KEY (scanner_id) REFERENCES public.vulnerability_scanners(id) ON DELETE CASCADE; -ALTER TABLE ONLY saml_providers - ADD CONSTRAINT fk_rails_306d459be7 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY bulk_import_batch_trackers - ADD CONSTRAINT fk_rails_307efb9f32 FOREIGN KEY (tracker_id) REFERENCES bulk_import_trackers(id) ON DELETE CASCADE; +-- +-- Name: resource_weight_events fk_rails_bfc406b47c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY pm_package_version_licenses - ADD CONSTRAINT fk_rails_30ddb7f837 FOREIGN KEY (pm_package_version_id) REFERENCES pm_package_versions(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.resource_weight_events + ADD CONSTRAINT fk_rails_bfc406b47c FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER TABLE ONLY resource_state_events - ADD CONSTRAINT fk_rails_3112bba7dc FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_request_diff_commits - ADD CONSTRAINT fk_rails_316aaceda3 FOREIGN KEY (merge_request_diff_id) REFERENCES merge_request_diffs(id) ON DELETE CASCADE; +-- +-- Name: design_management_designs fk_rails_bfe283ec3c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY group_import_states - ADD CONSTRAINT fk_rails_31c3e0503a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.design_management_designs + ADD CONSTRAINT fk_rails_bfe283ec3c FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY zoom_meetings - ADD CONSTRAINT fk_rails_3263f29616 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY container_repositories - ADD CONSTRAINT fk_rails_32f7bf5aad FOREIGN KEY (project_id) REFERENCES projects(id); +-- +-- Name: atlassian_identities fk_rails_c02928bc18; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ai_agents - ADD CONSTRAINT fk_rails_3328b05449 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.atlassian_identities + ADD CONSTRAINT fk_rails_c02928bc18 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY alert_management_alert_metric_images - ADD CONSTRAINT fk_rails_338e55b408 FOREIGN KEY (alert_id) REFERENCES alert_management_alerts(id) ON DELETE CASCADE; -ALTER TABLE ONLY suggestions - ADD CONSTRAINT fk_rails_33b03a535c FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; +-- +-- Name: slack_integrations_scopes fk_rails_c0e018a6fe; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_terraform_module_metadata - ADD CONSTRAINT fk_rails_33c045442a FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.slack_integrations_scopes + ADD CONSTRAINT fk_rails_c0e018a6fe FOREIGN KEY (slack_api_scope_id) REFERENCES public.slack_api_scopes(id) ON DELETE CASCADE; -ALTER TABLE ONLY metrics_dashboard_annotations - ADD CONSTRAINT fk_rails_345ab51043 FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE; -ALTER TABLE ONLY group_features - ADD CONSTRAINT fk_rails_356514082b FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: packages_npm_metadata fk_rails_c0e5fce6f3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY wiki_page_slugs - ADD CONSTRAINT fk_rails_358b46be14 FOREIGN KEY (wiki_page_meta_id) REFERENCES wiki_page_meta(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_npm_metadata + ADD CONSTRAINT fk_rails_c0e5fce6f3 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY board_labels - ADD CONSTRAINT fk_rails_362b0600a3 FOREIGN KEY (label_id) REFERENCES labels(id) ON DELETE CASCADE; -ALTER TABLE ONLY virtual_registries_packages_maven_upstreams - ADD CONSTRAINT fk_rails_3649ef6e9a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: labels fk_rails_c1ac5161d8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_blocks - ADD CONSTRAINT fk_rails_364d4bea8b FOREIGN KEY (blocked_merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.labels + ADD CONSTRAINT fk_rails_c1ac5161d8 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_request_reviewers - ADD CONSTRAINT fk_rails_3704a66140 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY group_merge_request_approval_settings - ADD CONSTRAINT fk_rails_37b6b4cdba FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: project_feature_usages fk_rails_c22a50024b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_debian_project_distribution_keys - ADD CONSTRAINT fk_rails_3834a11264 FOREIGN KEY (distribution_id) REFERENCES packages_debian_project_distributions(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.project_feature_usages + ADD CONSTRAINT fk_rails_c22a50024b FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY issue_user_mentions - ADD CONSTRAINT fk_rails_3861d9fefa FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; -ALTER TABLE ONLY namespace_settings - ADD CONSTRAINT fk_rails_3896d4fae5 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: p_ci_builds_execution_configs fk_rails_c26408d02c_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY self_managed_prometheus_alert_events - ADD CONSTRAINT fk_rails_3936dadc62 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE public.p_ci_builds_execution_configs + ADD CONSTRAINT fk_rails_c26408d02c_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY packages_cleanup_policies - ADD CONSTRAINT fk_rails_393ba98591 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_project_rules_groups - ADD CONSTRAINT fk_rails_396841e79e FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: user_canonical_emails fk_rails_c2bd828b51; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY self_managed_prometheus_alert_events - ADD CONSTRAINT fk_rails_39d83d1b65 FOREIGN KEY (environment_id) REFERENCES environments(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.user_canonical_emails + ADD CONSTRAINT fk_rails_c2bd828b51 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY chat_teams - ADD CONSTRAINT fk_rails_3b543909cb FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_build_needs - ADD CONSTRAINT fk_rails_3cf221d4ed_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +-- +-- Name: project_repositories fk_rails_c3258dc63b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY cluster_groups - ADD CONSTRAINT fk_rails_3d28377556 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.project_repositories + ADD CONSTRAINT fk_rails_c3258dc63b FOREIGN KEY (shard_id) REFERENCES public.shards(id) ON DELETE RESTRICT; -ALTER TABLE ONLY note_diff_files - ADD CONSTRAINT fk_rails_3d66047aeb FOREIGN KEY (diff_note_id) REFERENCES notes(id) ON DELETE CASCADE; -ALTER TABLE ONLY virtual_registries_packages_maven_registry_upstreams - ADD CONSTRAINT fk_rails_3dc6bd8333 FOREIGN KEY (upstream_id) REFERENCES virtual_registries_packages_maven_upstreams(id) ON DELETE CASCADE; +-- +-- Name: packages_nuget_dependency_link_metadata fk_rails_c3313ee2e4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY snippet_user_mentions - ADD CONSTRAINT fk_rails_3e00189191 FOREIGN KEY (snippet_id) REFERENCES snippets(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_nuget_dependency_link_metadata + ADD CONSTRAINT fk_rails_c3313ee2e4 FOREIGN KEY (dependency_link_id) REFERENCES public.packages_dependency_links(id) ON DELETE CASCADE; -ALTER TABLE ONLY early_access_program_tracking_events - ADD CONSTRAINT fk_rails_3e8c32b3dd FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY epic_user_mentions - ADD CONSTRAINT fk_rails_3eaf4d88cc FOREIGN KEY (epic_id) REFERENCES epics(id) ON DELETE CASCADE; +-- +-- Name: group_deploy_keys_groups fk_rails_c3854f19f5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY issuable_resource_links - ADD CONSTRAINT fk_rails_3f0ec6b1cf FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.group_deploy_keys_groups + ADD CONSTRAINT fk_rails_c3854f19f5 FOREIGN KEY (group_deploy_key_id) REFERENCES public.group_deploy_keys(id) ON DELETE CASCADE; -ALTER TABLE ONLY board_assignees - ADD CONSTRAINT fk_rails_3f6f926bd5 FOREIGN KEY (board_id) REFERENCES boards(id) ON DELETE CASCADE; -ALTER TABLE ONLY description_versions - ADD CONSTRAINT fk_rails_3ff658220b FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +-- +-- Name: project_wiki_repositories fk_rails_c3dd796199; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY clusters_kubernetes_namespaces - ADD CONSTRAINT fk_rails_40cc7ccbc3 FOREIGN KEY (cluster_project_id) REFERENCES cluster_projects(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.project_wiki_repositories + ADD CONSTRAINT fk_rails_c3dd796199 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY lfs_object_states - ADD CONSTRAINT fk_rails_4188448cd5 FOREIGN KEY (lfs_object_id) REFERENCES lfs_objects(id) ON DELETE CASCADE; -ALTER TABLE ONLY geo_node_namespace_links - ADD CONSTRAINT fk_rails_41ff5fb854 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: merge_request_user_mentions fk_rails_c440b9ea31; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY epic_issues - ADD CONSTRAINT fk_rails_4209981af6 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.merge_request_user_mentions + ADD CONSTRAINT fk_rails_c440b9ea31 FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_resources - ADD CONSTRAINT fk_rails_430336af2d FOREIGN KEY (resource_group_id) REFERENCES ci_resource_groups(id) ON DELETE CASCADE; -ALTER TABLE ONLY batched_background_migration_jobs - ADD CONSTRAINT fk_rails_432153b86d FOREIGN KEY (batched_background_migration_id) REFERENCES batched_background_migrations(id) ON DELETE CASCADE; +-- +-- Name: user_achievements fk_rails_c44f5b3b25; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY operations_strategies_user_lists - ADD CONSTRAINT fk_rails_43241e8d29 FOREIGN KEY (strategy_id) REFERENCES operations_strategies(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.user_achievements + ADD CONSTRAINT fk_rails_c44f5b3b25 FOREIGN KEY (achievement_id) REFERENCES public.achievements(id) ON DELETE CASCADE; -ALTER TABLE ONLY activity_pub_releases_subscriptions - ADD CONSTRAINT fk_rails_4337598314 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY analytics_cycle_analytics_value_stream_settings - ADD CONSTRAINT fk_rails_4360d37256 FOREIGN KEY (value_stream_id) REFERENCES analytics_cycle_analytics_group_value_streams(id) ON DELETE CASCADE; +-- +-- Name: related_epic_links fk_rails_c464534def; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_assignment_events - ADD CONSTRAINT fk_rails_4378a2e8d7 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.related_epic_links + ADD CONSTRAINT fk_rails_c464534def FOREIGN KEY (source_id) REFERENCES public.epics(id) ON DELETE CASCADE; -ALTER TABLE ONLY lfs_file_locks - ADD CONSTRAINT fk_rails_43df7a0412 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY dast_site_profile_secret_variables - ADD CONSTRAINT fk_rails_43e2897950 FOREIGN KEY (dast_site_profile_id) REFERENCES dast_site_profiles(id) ON DELETE CASCADE; +-- +-- Name: boards_epic_board_recent_visits fk_rails_c4dcba4a3e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_assignees - ADD CONSTRAINT fk_rails_443443ce6f FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.boards_epic_board_recent_visits + ADD CONSTRAINT fk_rails_c4dcba4a3e FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_dependency_links - ADD CONSTRAINT fk_rails_4437bf4070 FOREIGN KEY (dependency_id) REFERENCES packages_dependencies(id) ON DELETE CASCADE; -ALTER TABLE ONLY work_item_related_link_restrictions - ADD CONSTRAINT fk_rails_4513f0061c FOREIGN KEY (target_type_id) REFERENCES work_item_types(id) ON DELETE CASCADE; +-- +-- Name: p_ci_job_artifacts fk_rails_c5137cb2c1_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_auto_devops - ADD CONSTRAINT fk_rails_45436b12b2 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE public.p_ci_job_artifacts + ADD CONSTRAINT fk_rails_c5137cb2c1_p FOREIGN KEY (partition_id, job_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY dora_performance_scores - ADD CONSTRAINT fk_rails_455f9acc65 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_requests_closing_issues - ADD CONSTRAINT fk_rails_458eda8667 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +-- +-- Name: organization_settings fk_rails_c56e4690c0; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY protected_environment_deploy_access_levels - ADD CONSTRAINT fk_rails_45cc02a931 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.organization_settings + ADD CONSTRAINT fk_rails_c56e4690c0 FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; -ALTER TABLE ONLY prometheus_alert_events - ADD CONSTRAINT fk_rails_4675865839 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY smartcard_identities - ADD CONSTRAINT fk_rails_4689f889a9 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: system_access_microsoft_applications fk_rails_c5b7765d04; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_feedback - ADD CONSTRAINT fk_rails_472f69b043 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.system_access_microsoft_applications + ADD CONSTRAINT fk_rails_c5b7765d04 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_custom_attributes - ADD CONSTRAINT fk_rails_47b91868a8 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY upcoming_reconciliations - ADD CONSTRAINT fk_rails_497b4938ac FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: custom_software_licenses fk_rails_c68163fae6; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY group_deletion_schedules - ADD CONSTRAINT fk_rails_4b8c694a6c FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.custom_software_licenses + ADD CONSTRAINT fk_rails_c68163fae6 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY snippet_repository_storage_moves - ADD CONSTRAINT fk_rails_4b950f5b94 FOREIGN KEY (snippet_id) REFERENCES snippets(id) ON DELETE CASCADE; -ALTER TABLE ONLY design_management_designs - ADD CONSTRAINT fk_rails_4bb1073360 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: project_settings fk_rails_c6df6e6328; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY issue_metrics - ADD CONSTRAINT fk_rails_4bb543d85d FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.project_settings + ADD CONSTRAINT fk_rails_c6df6e6328 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_metrics_settings - ADD CONSTRAINT fk_rails_4c6037ee4f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY prometheus_metrics - ADD CONSTRAINT fk_rails_4c8957a707 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: container_expiration_policies fk_rails_c7360f09ad; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY dependency_proxy_blob_states - ADD CONSTRAINT fk_rails_4cdbb92cbd FOREIGN KEY (dependency_proxy_blob_id) REFERENCES dependency_proxy_blobs(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.container_expiration_policies + ADD CONSTRAINT fk_rails_c7360f09ad FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY scim_identities - ADD CONSTRAINT fk_rails_4d2056ebd9 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY snippet_user_mentions - ADD CONSTRAINT fk_rails_4d3f96b2cb FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; +-- +-- Name: wiki_page_meta fk_rails_c7a0c59cf1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY protected_environment_approval_rules - ADD CONSTRAINT fk_rails_4e554f96f5 FOREIGN KEY (protected_environment_id) REFERENCES protected_environments(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.wiki_page_meta + ADD CONSTRAINT fk_rails_c7a0c59cf1 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY aws_roles - ADD CONSTRAINT fk_rails_4ed56f4720 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_debian_publications - ADD CONSTRAINT fk_rails_4fc8ebd03e FOREIGN KEY (distribution_id) REFERENCES packages_debian_project_distributions(id) ON DELETE CASCADE; +-- +-- Name: scim_oauth_access_tokens fk_rails_c84404fb6c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_diff_files - ADD CONSTRAINT fk_rails_501aa0a391 FOREIGN KEY (merge_request_diff_id) REFERENCES merge_request_diffs(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.scim_oauth_access_tokens + ADD CONSTRAINT fk_rails_c84404fb6c FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY resource_iteration_events - ADD CONSTRAINT fk_rails_501fa15d69 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY status_page_settings - ADD CONSTRAINT fk_rails_506e5ba391 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: vulnerability_occurrences fk_rails_c8661a61eb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ci_pipeline_metadata - ADD CONSTRAINT fk_rails_50c1e9ea10_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY public.vulnerability_occurrences + ADD CONSTRAINT fk_rails_c8661a61eb FOREIGN KEY (primary_identifier_id) REFERENCES public.vulnerability_identifiers(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_pipeline_metadata - ADD CONSTRAINT fk_rails_50c1e9ea10_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -ALTER TABLE ONLY project_repository_storage_moves - ADD CONSTRAINT fk_rails_5106dbd44a FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: project_export_jobs fk_rails_c88d8db2e1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ml_candidate_metadata - ADD CONSTRAINT fk_rails_5117dddf22 FOREIGN KEY (candidate_id) REFERENCES ml_candidates(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.project_export_jobs + ADD CONSTRAINT fk_rails_c88d8db2e1 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE zoekt_tasks - ADD CONSTRAINT fk_rails_51af186590 FOREIGN KEY (zoekt_node_id) REFERENCES zoekt_nodes(id) ON DELETE CASCADE; -ALTER TABLE ONLY ml_models - ADD CONSTRAINT fk_rails_51e87f7c50 FOREIGN KEY (project_id) REFERENCES projects(id); +-- +-- Name: resource_state_events fk_rails_c913c64977; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY elastic_group_index_statuses - ADD CONSTRAINT fk_rails_52b9969b12 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.resource_state_events + ADD CONSTRAINT fk_rails_c913c64977 FOREIGN KEY (epic_id) REFERENCES public.epics(id) ON DELETE CASCADE; -ALTER TABLE ONLY observability_metrics_issues_connections - ADD CONSTRAINT fk_rails_533fe605e3 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY bulk_import_configurations - ADD CONSTRAINT fk_rails_536b96bff1 FOREIGN KEY (bulk_import_id) REFERENCES bulk_imports(id) ON DELETE CASCADE; +-- +-- Name: resource_milestone_events fk_rails_c940fb9fc5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY workspace_variables - ADD CONSTRAINT fk_rails_539844891e FOREIGN KEY (workspace_id) REFERENCES workspaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.resource_milestone_events + ADD CONSTRAINT fk_rails_c940fb9fc5 FOREIGN KEY (milestone_id) REFERENCES public.milestones(id) ON DELETE CASCADE; -ALTER TABLE ONLY x509_commit_signatures - ADD CONSTRAINT fk_rails_53fe41188f FOREIGN KEY (x509_certificate_id) REFERENCES x509_certificates(id) ON DELETE CASCADE; -ALTER TABLE ONLY analytics_cycle_analytics_group_value_streams - ADD CONSTRAINT fk_rails_540627381a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: gpg_signatures fk_rails_c97176f5f7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY geo_node_namespace_links - ADD CONSTRAINT fk_rails_546bf08d3e FOREIGN KEY (geo_node_id) REFERENCES geo_nodes(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.gpg_signatures + ADD CONSTRAINT fk_rails_c97176f5f7 FOREIGN KEY (gpg_key_id) REFERENCES public.gpg_keys(id) ON DELETE SET NULL; -ALTER TABLE ONLY abuse_events - ADD CONSTRAINT fk_rails_55101e588c FOREIGN KEY (abuse_report_id) REFERENCES abuse_reports(id); -ALTER TABLE ONLY virtual_registries_packages_maven_registries - ADD CONSTRAINT fk_rails_555e85e52c FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: board_group_recent_visits fk_rails_ca04c38720; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY issuable_metric_images - ADD CONSTRAINT fk_rails_56417a5a7f FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.board_group_recent_visits + ADD CONSTRAINT fk_rails_ca04c38720 FOREIGN KEY (board_id) REFERENCES public.boards(id) ON DELETE CASCADE; -ALTER TABLE ONLY group_deploy_keys - ADD CONSTRAINT fk_rails_5682fc07f8 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE RESTRICT; -ALTER TABLE ONLY issue_user_mentions - ADD CONSTRAINT fk_rails_57581fda73 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +-- +-- Name: relation_import_trackers fk_rails_ca9bd1ef8a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_assignees - ADD CONSTRAINT fk_rails_579d375628 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.relation_import_trackers + ADD CONSTRAINT fk_rails_ca9bd1ef8a FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY incident_management_timeline_event_tag_links - ADD CONSTRAINT fk_rails_57baccd7f9 FOREIGN KEY (timeline_event_id) REFERENCES incident_management_timeline_events(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_debian_project_architectures - ADD CONSTRAINT fk_rails_5808663adf FOREIGN KEY (distribution_id) REFERENCES packages_debian_project_distributions(id) ON DELETE CASCADE; +-- +-- Name: boards_epic_board_positions fk_rails_cb4563dd6e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY analytics_cycle_analytics_group_stages - ADD CONSTRAINT fk_rails_5a22f40223 FOREIGN KEY (start_event_label_id) REFERENCES labels(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.boards_epic_board_positions + ADD CONSTRAINT fk_rails_cb4563dd6e FOREIGN KEY (epic_board_id) REFERENCES public.boards_epic_boards(id) ON DELETE CASCADE; -ALTER TABLE ONLY badges - ADD CONSTRAINT fk_rails_5a7c055bdc FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY resource_label_events - ADD CONSTRAINT fk_rails_5ac1d2fc24 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +-- +-- Name: vulnerability_finding_links fk_rails_cbdfde27ce; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ci_secure_file_states - ADD CONSTRAINT fk_rails_5adba40c5f FOREIGN KEY (ci_secure_file_id) REFERENCES ci_secure_files(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.vulnerability_finding_links + ADD CONSTRAINT fk_rails_cbdfde27ce FOREIGN KEY (vulnerability_occurrence_id) REFERENCES public.vulnerability_occurrences(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_merge_request_rules_groups - ADD CONSTRAINT fk_rails_5b2ecf6139 FOREIGN KEY (approval_merge_request_rule_id) REFERENCES approval_merge_request_rules(id) ON DELETE CASCADE; -ALTER TABLE ONLY namespace_limits - ADD CONSTRAINT fk_rails_5b3f2bc334 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: namespace_details fk_rails_cc11a451f8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ml_model_version_metadata - ADD CONSTRAINT fk_rails_5b67cc9107 FOREIGN KEY (model_version_id) REFERENCES ml_model_versions(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.namespace_details + ADD CONSTRAINT fk_rails_cc11a451f8 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY protected_environment_deploy_access_levels - ADD CONSTRAINT fk_rails_5b9f6970fe FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY protected_branch_unprotect_access_levels - ADD CONSTRAINT fk_rails_5be1abfc25 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: issues_self_managed_prometheus_alert_events fk_rails_cc5d88bbb0; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY cluster_providers_gcp - ADD CONSTRAINT fk_rails_5c2c3bc814 FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.issues_self_managed_prometheus_alert_events + ADD CONSTRAINT fk_rails_cc5d88bbb0 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY insights - ADD CONSTRAINT fk_rails_5c4391f60a FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY reviews - ADD CONSTRAINT fk_rails_5ca11d8c31 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +-- +-- Name: operations_strategies_user_lists fk_rails_ccb7e4bc0b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ci_running_builds - ADD CONSTRAINT fk_rails_5ca491d360 FOREIGN KEY (runner_id) REFERENCES ci_runners(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.operations_strategies_user_lists + ADD CONSTRAINT fk_rails_ccb7e4bc0b FOREIGN KEY (user_list_id) REFERENCES public.operations_user_lists(id) ON DELETE CASCADE; -ALTER TABLE ONLY epic_issues - ADD CONSTRAINT fk_rails_5d942936b4 FOREIGN KEY (epic_id) REFERENCES epics(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_nuget_symbols - ADD CONSTRAINT fk_rails_5df972da14 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE SET NULL; +-- +-- Name: resource_milestone_events fk_rails_cedf8cce4d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY resource_weight_events - ADD CONSTRAINT fk_rails_5eb5cb92a1 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.resource_milestone_events + ADD CONSTRAINT fk_rails_cedf8cce4d FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER TABLE ONLY observability_logs_issues_connections - ADD CONSTRAINT fk_rails_5f0f58ca3a FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_project_rules - ADD CONSTRAINT fk_rails_5fb4dd100b FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: resource_iteration_events fk_rails_cee126f66c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY incident_management_oncall_participants - ADD CONSTRAINT fk_rails_5fe86ea341 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.resource_iteration_events + ADD CONSTRAINT fk_rails_cee126f66c FOREIGN KEY (iteration_id) REFERENCES public.sprints(id) ON DELETE CASCADE; -ALTER TABLE ONLY work_item_parent_links - ADD CONSTRAINT fk_rails_601d5bec3a FOREIGN KEY (work_item_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY system_access_microsoft_graph_access_tokens - ADD CONSTRAINT fk_rails_604908851f FOREIGN KEY (system_access_microsoft_application_id) REFERENCES system_access_microsoft_applications(id) ON DELETE CASCADE; +-- +-- Name: member_roles fk_rails_cf0ee35814; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_state_transitions - ADD CONSTRAINT fk_rails_60e4899648 FOREIGN KEY (vulnerability_id) REFERENCES vulnerabilities(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.member_roles + ADD CONSTRAINT fk_rails_cf0ee35814 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_highest_roles - ADD CONSTRAINT fk_rails_60f6c325a6 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY dependency_proxy_group_settings - ADD CONSTRAINT fk_rails_616ddd680a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: pm_package_versions fk_rails_cf94c3e601; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY group_deploy_tokens - ADD CONSTRAINT fk_rails_61a572b41a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.pm_package_versions + ADD CONSTRAINT fk_rails_cf94c3e601 FOREIGN KEY (pm_package_id) REFERENCES public.pm_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY sbom_component_versions - ADD CONSTRAINT fk_rails_61a83aa892 FOREIGN KEY (component_id) REFERENCES sbom_components(id) ON DELETE CASCADE; -ALTER TABLE ONLY status_page_published_incidents - ADD CONSTRAINT fk_rails_61e5493940 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +-- +-- Name: upload_states fk_rails_d00f153613; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY group_ssh_certificates - ADD CONSTRAINT fk_rails_61f9eafcdf FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.upload_states + ADD CONSTRAINT fk_rails_d00f153613 FOREIGN KEY (upload_id) REFERENCES public.uploads(id) ON DELETE CASCADE; -ALTER TABLE ONLY container_repository_states - ADD CONSTRAINT fk_rails_63436c99ce FOREIGN KEY (container_repository_id) REFERENCES container_repositories(id) ON DELETE CASCADE; -ALTER TABLE ONLY deployment_clusters - ADD CONSTRAINT fk_rails_6359a164df FOREIGN KEY (deployment_id) REFERENCES deployments(id) ON DELETE CASCADE; +-- +-- Name: epic_metrics fk_rails_d071904753; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE incident_management_pending_issue_escalations - ADD CONSTRAINT fk_rails_636678b3bd FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.epic_metrics + ADD CONSTRAINT fk_rails_d071904753 FOREIGN KEY (epic_id) REFERENCES public.epics(id) ON DELETE CASCADE; -ALTER TABLE ONLY evidences - ADD CONSTRAINT fk_rails_6388b435a6 FOREIGN KEY (release_id) REFERENCES releases(id) ON DELETE CASCADE; -ALTER TABLE ONLY jira_imports - ADD CONSTRAINT fk_rails_63cbe52ada FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: import_source_user_placeholder_references fk_rails_d0b75c434e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY group_deploy_tokens - ADD CONSTRAINT fk_rails_6477b01f6b FOREIGN KEY (deploy_token_id) REFERENCES deploy_tokens(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.import_source_user_placeholder_references + ADD CONSTRAINT fk_rails_d0b75c434e FOREIGN KEY (source_user_id) REFERENCES public.import_source_users(id) ON DELETE CASCADE; -ALTER TABLE ONLY reviews - ADD CONSTRAINT fk_rails_64798be025 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY operations_feature_flags - ADD CONSTRAINT fk_rails_648e241be7 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: subscriptions fk_rails_d0c8bda804; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY board_group_recent_visits - ADD CONSTRAINT fk_rails_64bfc19bc5 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.subscriptions + ADD CONSTRAINT fk_rails_d0c8bda804 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_merge_request_rule_sources - ADD CONSTRAINT fk_rails_64e8ed3c7e FOREIGN KEY (approval_project_rule_id) REFERENCES approval_project_rules(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_project_rules_protected_branches - ADD CONSTRAINT fk_rails_65203aa786 FOREIGN KEY (approval_project_rule_id) REFERENCES approval_project_rules(id) ON DELETE CASCADE; +-- +-- Name: operations_strategies fk_rails_d183b6e6dd; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY design_management_versions - ADD CONSTRAINT fk_rails_6574200d99 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.operations_strategies + ADD CONSTRAINT fk_rails_d183b6e6dd FOREIGN KEY (feature_flag_id) REFERENCES public.operations_feature_flags(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_merge_request_rules_approved_approvers - ADD CONSTRAINT fk_rails_6577725edb FOREIGN KEY (approval_merge_request_rule_id) REFERENCES approval_merge_request_rules(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_relation_export_uploads - ADD CONSTRAINT fk_rails_660ada90c9 FOREIGN KEY (project_relation_export_id) REFERENCES project_relation_exports(id) ON DELETE CASCADE; +-- +-- Name: cluster_agent_tokens fk_rails_d1d26abc25; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY operations_feature_flags_clients - ADD CONSTRAINT fk_rails_6650ed902c FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.cluster_agent_tokens + ADD CONSTRAINT fk_rails_d1d26abc25 FOREIGN KEY (agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; -ALTER TABLE ONLY namespace_admin_notes - ADD CONSTRAINT fk_rails_666166ea7b FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_runner_machines - ADD CONSTRAINT fk_rails_666b61f04f FOREIGN KEY (runner_id) REFERENCES ci_runners(id) ON DELETE CASCADE; +-- +-- Name: requirements_management_test_reports fk_rails_d1e8b498bf; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY approval_group_rules - ADD CONSTRAINT fk_rails_6727675176 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.requirements_management_test_reports + ADD CONSTRAINT fk_rails_d1e8b498bf FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER TABLE ONLY jira_imports - ADD CONSTRAINT fk_rails_675d38c03b FOREIGN KEY (label_id) REFERENCES labels(id) ON DELETE SET NULL; -ALTER TABLE ONLY vulnerability_findings_remediations - ADD CONSTRAINT fk_rails_681c85ae0f FOREIGN KEY (vulnerability_remediation_id) REFERENCES vulnerability_remediations(id) ON DELETE CASCADE; +-- +-- Name: pool_repositories fk_rails_d2711daad4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY resource_iteration_events - ADD CONSTRAINT fk_rails_6830c13ac1 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.pool_repositories + ADD CONSTRAINT fk_rails_d2711daad4 FOREIGN KEY (source_project_id) REFERENCES public.projects(id) ON DELETE SET NULL; -ALTER TABLE ONLY plan_limits - ADD CONSTRAINT fk_rails_69f8b6184f FOREIGN KEY (plan_id) REFERENCES plans(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_cost_settings - ADD CONSTRAINT fk_rails_6a70651f75 FOREIGN KEY (runner_id) REFERENCES ci_runners(id) ON DELETE CASCADE; +-- +-- Name: design_management_repository_states fk_rails_d2a258cc5a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY operations_feature_flags_issues - ADD CONSTRAINT fk_rails_6a8856ca4f FOREIGN KEY (feature_flag_id) REFERENCES operations_feature_flags(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.design_management_repository_states + ADD CONSTRAINT fk_rails_d2a258cc5a FOREIGN KEY (design_management_repository_id) REFERENCES public.design_management_repositories(id) ON DELETE CASCADE; -ALTER TABLE ONLY import_source_users - ADD CONSTRAINT fk_rails_6aee6cd676 FOREIGN KEY (placeholder_user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY ml_experiment_metadata - ADD CONSTRAINT fk_rails_6b39844d44 FOREIGN KEY (experiment_id) REFERENCES ml_experiments(id) ON DELETE CASCADE; +-- +-- Name: web_hooks fk_rails_d35697648e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY error_tracking_errors - ADD CONSTRAINT fk_rails_6b41f837ba FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.web_hooks + ADD CONSTRAINT fk_rails_d35697648e FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY ml_model_version_metadata - ADD CONSTRAINT fk_rails_6b8fcb2af1 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY prometheus_alerts - ADD CONSTRAINT fk_rails_6d9b283465 FOREIGN KEY (environment_id) REFERENCES environments(id) ON DELETE CASCADE; +-- +-- Name: group_group_links fk_rails_d3a0488427; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY term_agreements - ADD CONSTRAINT fk_rails_6ea6520e4a FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.group_group_links + ADD CONSTRAINT fk_rails_d3a0488427 FOREIGN KEY (shared_group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_compliance_framework_settings - ADD CONSTRAINT fk_rails_6f5294f16c FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY users_security_dashboard_projects - ADD CONSTRAINT fk_rails_6f6cf8e66e FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: vulnerability_issue_links fk_rails_d459c19036; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY analytics_dashboards_pointers - ADD CONSTRAINT fk_rails_7027b7eaa9 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.vulnerability_issue_links + ADD CONSTRAINT fk_rails_d459c19036 FOREIGN KEY (vulnerability_id) REFERENCES public.vulnerabilities(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_builds_runner_session - ADD CONSTRAINT fk_rails_70707857d3_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY list_user_preferences - ADD CONSTRAINT fk_rails_70b2ef5ce2 FOREIGN KEY (list_id) REFERENCES lists(id) ON DELETE CASCADE; +-- +-- Name: alert_management_alert_assignees fk_rails_d47570ac62; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE issue_search_data - ADD CONSTRAINT fk_rails_7149dd9eee FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.alert_management_alert_assignees + ADD CONSTRAINT fk_rails_d47570ac62 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_custom_attributes - ADD CONSTRAINT fk_rails_719c3dccc5 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_pending_builds - ADD CONSTRAINT fk_rails_725a2644a3_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +-- +-- Name: packages_terraform_module_metadata fk_rails_d48f21a84b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE security_findings - ADD CONSTRAINT fk_rails_729b763a54 FOREIGN KEY (scanner_id) REFERENCES vulnerability_scanners(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_terraform_module_metadata + ADD CONSTRAINT fk_rails_d48f21a84b FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE SET NULL; -ALTER TABLE ONLY custom_emoji - ADD CONSTRAINT fk_rails_745925b412 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY boards_epic_board_labels - ADD CONSTRAINT fk_rails_7471128a8e FOREIGN KEY (epic_board_id) REFERENCES boards_epic_boards(id) ON DELETE CASCADE; +-- +-- Name: p_ci_job_annotations fk_rails_d4d0c0fa0f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY dast_site_profiles - ADD CONSTRAINT fk_rails_747dc64abc FOREIGN KEY (dast_site_id) REFERENCES dast_sites(id) ON DELETE CASCADE; +ALTER TABLE public.p_ci_job_annotations + ADD CONSTRAINT fk_rails_d4d0c0fa0f FOREIGN KEY (partition_id, job_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY merge_request_context_commit_diff_files - ADD CONSTRAINT fk_rails_74a00a1787 FOREIGN KEY (merge_request_context_commit_id) REFERENCES merge_request_context_commits(id) ON DELETE CASCADE; -ALTER TABLE ONLY audit_events_streaming_http_group_namespace_filters - ADD CONSTRAINT fk_rails_74a28d2432 FOREIGN KEY (external_audit_event_destination_id) REFERENCES audit_events_external_audit_event_destinations(id) ON DELETE CASCADE; +-- +-- Name: packages_rpm_repository_files fk_rails_d545cfaed2; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY group_crm_settings - ADD CONSTRAINT fk_rails_74fdf2f13d FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_rpm_repository_files + ADD CONSTRAINT fk_rails_d545cfaed2 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY pm_package_version_licenses - ADD CONSTRAINT fk_rails_7520ea026d FOREIGN KEY (pm_license_id) REFERENCES pm_licenses(id) ON DELETE CASCADE; -ALTER TABLE ONLY incident_management_timeline_event_tag_links - ADD CONSTRAINT fk_rails_753b8b6ee3 FOREIGN KEY (timeline_event_tag_id) REFERENCES incident_management_timeline_event_tags(id) ON DELETE CASCADE; +-- +-- Name: packages_rpm_metadata fk_rails_d79f02264b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY release_links - ADD CONSTRAINT fk_rails_753be7ae29 FOREIGN KEY (release_id) REFERENCES releases(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_rpm_metadata + ADD CONSTRAINT fk_rails_d79f02264b FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY milestone_releases - ADD CONSTRAINT fk_rails_754f27dbfa FOREIGN KEY (release_id) REFERENCES releases(id) ON DELETE CASCADE; -ALTER TABLE ONLY resource_label_events - ADD CONSTRAINT fk_rails_75efb0a653 FOREIGN KEY (epic_id) REFERENCES epics(id) ON DELETE CASCADE; +-- +-- Name: p_ci_build_tags fk_rails_d7bd025909; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY x509_certificates - ADD CONSTRAINT fk_rails_76479fb5b4 FOREIGN KEY (x509_issuer_id) REFERENCES x509_issuers(id) ON DELETE CASCADE; +ALTER TABLE public.p_ci_build_tags + ADD CONSTRAINT fk_rails_d7bd025909 FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY pages_domain_acme_orders - ADD CONSTRAINT fk_rails_76581b1c16 FOREIGN KEY (pages_domain_id) REFERENCES pages_domains(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_debian_publications - ADD CONSTRAINT fk_rails_7668c1d606 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; +-- +-- Name: note_metadata fk_rails_d853224d37; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY boards_epic_user_preferences - ADD CONSTRAINT fk_rails_76c4e9732d FOREIGN KEY (epic_id) REFERENCES epics(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.note_metadata + ADD CONSTRAINT fk_rails_d853224d37 FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_debian_group_distribution_keys - ADD CONSTRAINT fk_rails_779438f163 FOREIGN KEY (distribution_id) REFERENCES packages_debian_group_distributions(id) ON DELETE CASCADE; -ALTER TABLE ONLY terraform_states - ADD CONSTRAINT fk_rails_78f54ca485 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: ml_model_metadata fk_rails_d907835e01; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY software_license_policies - ADD CONSTRAINT fk_rails_7a7a2a92de FOREIGN KEY (software_license_id) REFERENCES software_licenses(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ml_model_metadata + ADD CONSTRAINT fk_rails_d907835e01 FOREIGN KEY (model_id) REFERENCES public.ml_models(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_repositories - ADD CONSTRAINT fk_rails_7a810d4121 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY operations_scopes - ADD CONSTRAINT fk_rails_7a9358853b FOREIGN KEY (strategy_id) REFERENCES operations_strategies(id) ON DELETE CASCADE; +-- +-- Name: merge_request_reviewers fk_rails_d9fec24b9d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY milestone_releases - ADD CONSTRAINT fk_rails_7ae0756a2d FOREIGN KEY (milestone_id) REFERENCES milestones(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.merge_request_reviewers + ADD CONSTRAINT fk_rails_d9fec24b9d FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY scan_execution_policy_rules - ADD CONSTRAINT fk_rails_7be2571ecf FOREIGN KEY (security_policy_id) REFERENCES security_policies(id) ON DELETE CASCADE; -ALTER TABLE ONLY resource_state_events - ADD CONSTRAINT fk_rails_7ddc5f7457 FOREIGN KEY (source_merge_request_id) REFERENCES merge_requests(id) ON DELETE SET NULL; +-- +-- Name: ci_running_builds fk_rails_da45cfa165_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY audit_events_group_external_streaming_destinations - ADD CONSTRAINT fk_rails_7dffb88f29 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ci_running_builds + ADD CONSTRAINT fk_rails_da45cfa165_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY personal_access_token_last_used_ips - ADD CONSTRAINT fk_rails_7e650a7967 FOREIGN KEY (personal_access_token_id) REFERENCES personal_access_tokens(id) ON DELETE CASCADE; -ALTER TABLE ONLY clusters_kubernetes_namespaces - ADD CONSTRAINT fk_rails_7e7688ecaf FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE; +-- +-- Name: resource_link_events fk_rails_da5dd8a56f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY security_policies - ADD CONSTRAINT fk_rails_802ceea0c8 FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES security_orchestration_policy_configurations(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.resource_link_events + ADD CONSTRAINT fk_rails_da5dd8a56f FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY dependency_proxy_manifest_states - ADD CONSTRAINT fk_rails_806cf07a3c FOREIGN KEY (dependency_proxy_manifest_id) REFERENCES dependency_proxy_manifests(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_job_artifact_states - ADD CONSTRAINT fk_rails_80a9cba3b2_p FOREIGN KEY (partition_id, job_artifact_id) REFERENCES p_ci_job_artifacts(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +-- +-- Name: jira_imports fk_rails_da617096ce; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY approval_merge_request_rules_users - ADD CONSTRAINT fk_rails_80e6801803 FOREIGN KEY (approval_merge_request_rule_id) REFERENCES approval_merge_request_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.jira_imports + ADD CONSTRAINT fk_rails_da617096ce FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER TABLE ONLY audit_events_instance_streaming_event_type_filters - ADD CONSTRAINT fk_rails_80e948655b FOREIGN KEY (external_streaming_destination_id) REFERENCES audit_events_instance_external_streaming_destinations(id) ON DELETE CASCADE; -ALTER TABLE ONLY required_code_owners_sections - ADD CONSTRAINT fk_rails_817708cf2d FOREIGN KEY (protected_branch_id) REFERENCES protected_branches(id) ON DELETE CASCADE; +-- +-- Name: dependency_proxy_blobs fk_rails_db58bbc5d7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE p_ci_build_tags - ADD CONSTRAINT fk_rails_8284d35c66 FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.dependency_proxy_blobs + ADD CONSTRAINT fk_rails_db58bbc5d7 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY namespace_ldap_settings - ADD CONSTRAINT fk_rails_82cd0ad4bb FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY group_wiki_repository_states - ADD CONSTRAINT fk_rails_832511c9f1 FOREIGN KEY (group_wiki_repository_id) REFERENCES group_wiki_repositories(group_id) ON DELETE CASCADE; +-- +-- Name: issues_prometheus_alert_events fk_rails_db5b756534; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY cluster_enabled_grants - ADD CONSTRAINT fk_rails_8336ce35af FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.issues_prometheus_alert_events + ADD CONSTRAINT fk_rails_db5b756534 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY virtual_registries_packages_maven_registry_upstreams - ADD CONSTRAINT fk_rails_838d054752 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY dast_site_profiles - ADD CONSTRAINT fk_rails_83e309d69e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: board_user_preferences fk_rails_dbebdaa8fe; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY dependency_list_export_parts - ADD CONSTRAINT fk_rails_83f26c0e6f FOREIGN KEY (dependency_list_export_id) REFERENCES dependency_list_exports(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.board_user_preferences + ADD CONSTRAINT fk_rails_dbebdaa8fe FOREIGN KEY (board_id) REFERENCES public.boards(id) ON DELETE CASCADE; -ALTER TABLE ONLY security_trainings - ADD CONSTRAINT fk_rails_84c7951d72 FOREIGN KEY (provider_id) REFERENCES security_training_providers(id) ON DELETE CASCADE; -ALTER TABLE ONLY zentao_tracker_data - ADD CONSTRAINT fk_rails_84efda7be0 FOREIGN KEY (integration_id) REFERENCES integrations(id) ON DELETE CASCADE; +-- +-- Name: vulnerability_occurrence_pipelines fk_rails_dc3ae04693; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY audit_events_amazon_s3_configurations - ADD CONSTRAINT fk_rails_84f4b10a16 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.vulnerability_occurrence_pipelines + ADD CONSTRAINT fk_rails_dc3ae04693 FOREIGN KEY (occurrence_id) REFERENCES public.vulnerability_occurrences(id) ON DELETE CASCADE; -ALTER TABLE ONLY boards_epic_user_preferences - ADD CONSTRAINT fk_rails_851fe1510a FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY value_stream_dashboard_aggregations - ADD CONSTRAINT fk_rails_859b4f86f3 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: instance_audit_events_streaming_headers fk_rails_dc933c1f3c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY deployment_merge_requests - ADD CONSTRAINT fk_rails_86a6d8bf12 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.instance_audit_events_streaming_headers + ADD CONSTRAINT fk_rails_dc933c1f3c FOREIGN KEY (instance_external_audit_event_destination_id) REFERENCES public.audit_events_instance_external_audit_event_destinations(id) ON DELETE CASCADE; -ALTER TABLE ONLY analytics_language_trend_repository_languages - ADD CONSTRAINT fk_rails_86cc9aef5f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_request_diff_details - ADD CONSTRAINT fk_rails_86f4d24ecd FOREIGN KEY (merge_request_diff_id) REFERENCES merge_request_diffs(id) ON DELETE CASCADE; +-- +-- Name: deployment_merge_requests fk_rails_dcbce9f4df; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_package_file_build_infos - ADD CONSTRAINT fk_rails_871ca3ae21 FOREIGN KEY (package_file_id) REFERENCES packages_package_files(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.deployment_merge_requests + ADD CONSTRAINT fk_rails_dcbce9f4df FOREIGN KEY (deployment_id) REFERENCES public.deployments(id) ON DELETE CASCADE; -ALTER TABLE ONLY boards_epic_boards - ADD CONSTRAINT fk_rails_874c573878 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_runner_namespaces - ADD CONSTRAINT fk_rails_8767676b7a FOREIGN KEY (runner_id) REFERENCES ci_runners(id) ON DELETE CASCADE; +-- +-- Name: packages_debian_group_component_files fk_rails_dd262386e9; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY service_desk_custom_email_credentials - ADD CONSTRAINT fk_rails_878b562d12 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_debian_group_component_files + ADD CONSTRAINT fk_rails_dd262386e9 FOREIGN KEY (component_id) REFERENCES public.packages_debian_group_components(id) ON DELETE RESTRICT; -ALTER TABLE ONLY software_license_policies - ADD CONSTRAINT fk_rails_87b2247ce5 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY achievements - ADD CONSTRAINT fk_rails_87e990f752 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: incident_management_timeline_event_tags fk_rails_dd5c91484e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ai_feature_settings - ADD CONSTRAINT fk_rails_8907fb7bbb FOREIGN KEY (ai_self_hosted_model_id) REFERENCES ai_self_hosted_models(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.incident_management_timeline_event_tags + ADD CONSTRAINT fk_rails_dd5c91484e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY protected_environment_deploy_access_levels - ADD CONSTRAINT fk_rails_898a13b650 FOREIGN KEY (protected_environment_id) REFERENCES protected_environments(id) ON DELETE CASCADE; -ALTER TABLE ONLY ml_model_versions - ADD CONSTRAINT fk_rails_8a481bd22e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: user_callouts fk_rails_ddfdd80f3d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY snippet_repositories - ADD CONSTRAINT fk_rails_8afd7e2f71 FOREIGN KEY (snippet_id) REFERENCES snippets(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.user_callouts + ADD CONSTRAINT fk_rails_ddfdd80f3d FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY gpg_key_subkeys - ADD CONSTRAINT fk_rails_8b2c90b046 FOREIGN KEY (gpg_key_id) REFERENCES gpg_keys(id) ON DELETE CASCADE; -ALTER TABLE ONLY board_user_preferences - ADD CONSTRAINT fk_rails_8b3b23ce82 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: scan_result_policies fk_rails_de9e5d2ce6; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY allowed_email_domains - ADD CONSTRAINT fk_rails_8b5da859f9 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.scan_result_policies + ADD CONSTRAINT fk_rails_de9e5d2ce6 FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES public.security_orchestration_policy_configurations(id) ON DELETE CASCADE; -ALTER TABLE ONLY cluster_projects - ADD CONSTRAINT fk_rails_8b8c5caf07 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_pages_metadata - ADD CONSTRAINT fk_rails_8c28a61485 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: vulnerability_feedback fk_rails_debd54e456; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY work_item_progresses - ADD CONSTRAINT fk_rails_8c584bfb37 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.vulnerability_feedback + ADD CONSTRAINT fk_rails_debd54e456 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_conan_metadata - ADD CONSTRAINT fk_rails_8c68cfec8b FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerability_feedback - ADD CONSTRAINT fk_rails_8c77e5891a FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE SET NULL; +-- +-- Name: service_desk_custom_email_verifications fk_rails_debe4c4acc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY import_placeholder_memberships - ADD CONSTRAINT fk_rails_8cdeffd260 FOREIGN KEY (source_user_id) REFERENCES import_source_users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.service_desk_custom_email_verifications + ADD CONSTRAINT fk_rails_debe4c4acc FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_pipeline_messages - ADD CONSTRAINT fk_rails_8d3b04e3e1_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY ci_pipeline_messages - ADD CONSTRAINT fk_rails_8d3b04e3e1_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +-- +-- Name: packages_debian_project_distributions fk_rails_df44271a30; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE incident_management_pending_alert_escalations - ADD CONSTRAINT fk_rails_8d8de95da9 FOREIGN KEY (alert_id) REFERENCES alert_management_alerts(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_debian_project_distributions + ADD CONSTRAINT fk_rails_df44271a30 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE RESTRICT; -ALTER TABLE ONLY approval_merge_request_rules_approved_approvers - ADD CONSTRAINT fk_rails_8dc94cff4d FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY work_item_dates_sources - ADD CONSTRAINT fk_rails_8dcefa21a5 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +-- +-- Name: incident_management_oncall_shifts fk_rails_df4feb286a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY design_user_mentions - ADD CONSTRAINT fk_rails_8de8c6d632 FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.incident_management_oncall_shifts + ADD CONSTRAINT fk_rails_df4feb286a FOREIGN KEY (rotation_id) REFERENCES public.incident_management_oncall_rotations(id) ON DELETE CASCADE; -ALTER TABLE ONLY clusters_kubernetes_namespaces - ADD CONSTRAINT fk_rails_8df789f3ab FOREIGN KEY (environment_id) REFERENCES environments(id) ON DELETE SET NULL; -ALTER TABLE ONLY alert_management_alert_user_mentions - ADD CONSTRAINT fk_rails_8e48eca0fe FOREIGN KEY (alert_management_alert_id) REFERENCES alert_management_alerts(id) ON DELETE CASCADE; +-- +-- Name: namespace_commit_emails fk_rails_dfa4c104f5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_daily_statistics - ADD CONSTRAINT fk_rails_8e549b272d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.namespace_commit_emails + ADD CONSTRAINT fk_rails_dfa4c104f5 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_secrets_managers - ADD CONSTRAINT fk_rails_8f88850d11 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY organization_details - ADD CONSTRAINT fk_rails_8facb04bef FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; +-- +-- Name: analytics_cycle_analytics_group_stages fk_rails_dfb37c880d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ci_pipelines_config - ADD CONSTRAINT fk_rails_906c9a2533_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY public.analytics_cycle_analytics_group_stages + ADD CONSTRAINT fk_rails_dfb37c880d FOREIGN KEY (end_event_label_id) REFERENCES public.labels(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_pipelines_config - ADD CONSTRAINT fk_rails_906c9a2533_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -ALTER TABLE ONLY approval_project_rules_groups - ADD CONSTRAINT fk_rails_9071e863d1 FOREIGN KEY (approval_project_rule_id) REFERENCES approval_project_rules(id) ON DELETE CASCADE; +-- +-- Name: bulk_import_export_uploads fk_rails_dfbfb45eca; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_occurrences - ADD CONSTRAINT fk_rails_90fed4faba FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.bulk_import_export_uploads + ADD CONSTRAINT fk_rails_dfbfb45eca FOREIGN KEY (export_id) REFERENCES public.bulk_import_exports(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_error_tracking_settings - ADD CONSTRAINT fk_rails_910a2b8bd9 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY list_user_preferences - ADD CONSTRAINT fk_rails_916d72cafd FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: vs_code_settings fk_rails_e02b1ed535; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_cleanup_schedules - ADD CONSTRAINT fk_rails_92dd0e705c FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.vs_code_settings + ADD CONSTRAINT fk_rails_e02b1ed535 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_build_artifacts_size_refreshes - ADD CONSTRAINT fk_rails_936db5fc44 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY board_labels - ADD CONSTRAINT fk_rails_9374a16edd FOREIGN KEY (board_id) REFERENCES boards(id) ON DELETE CASCADE; +-- +-- Name: audit_events_group_streaming_event_type_filters fk_rails_e07e457a27; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY alert_management_alert_assignees - ADD CONSTRAINT fk_rails_93c0f6703b FOREIGN KEY (alert_id) REFERENCES alert_management_alerts(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.audit_events_group_streaming_event_type_filters + ADD CONSTRAINT fk_rails_e07e457a27 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY scim_identities - ADD CONSTRAINT fk_rails_9421a0bffb FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE p_catalog_resource_component_usages - ADD CONSTRAINT fk_rails_9430673479 FOREIGN KEY (catalog_resource_id) REFERENCES catalog_resources(id) ON DELETE CASCADE; +-- +-- Name: label_priorities fk_rails_e161058b0f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_debian_project_distributions - ADD CONSTRAINT fk_rails_94b95e1f84 FOREIGN KEY (creator_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.label_priorities + ADD CONSTRAINT fk_rails_e161058b0f FOREIGN KEY (label_id) REFERENCES public.labels(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_rubygems_metadata - ADD CONSTRAINT fk_rails_95a3f5ce78 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_pypi_metadata - ADD CONSTRAINT fk_rails_9698717cdd FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; +-- +-- Name: packages_packages fk_rails_e1ac527425; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY boards_epic_board_recent_visits - ADD CONSTRAINT fk_rails_96c2c18642 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_packages + ADD CONSTRAINT fk_rails_e1ac527425 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_dependency_links - ADD CONSTRAINT fk_rails_96ef1c00d3 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY ml_experiments - ADD CONSTRAINT fk_rails_97194a054e FOREIGN KEY (model_id) REFERENCES ml_models(id) ON DELETE CASCADE; +-- +-- Name: p_catalog_resource_component_usages fk_rails_e1ba64b7ee; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY group_repository_storage_moves - ADD CONSTRAINT fk_rails_982bb5daf1 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE public.p_catalog_resource_component_usages + ADD CONSTRAINT fk_rails_e1ba64b7ee FOREIGN KEY (component_id) REFERENCES public.catalog_resource_components(id) ON DELETE CASCADE; -ALTER TABLE ONLY resource_label_events - ADD CONSTRAINT fk_rails_9851a00031 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY board_project_recent_visits - ADD CONSTRAINT fk_rails_98f8843922 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: cluster_platforms_kubernetes fk_rails_e1e2cf841a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY clusters_kubernetes_namespaces - ADD CONSTRAINT fk_rails_98fe21e486 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.cluster_platforms_kubernetes + ADD CONSTRAINT fk_rails_e1e2cf841a FOREIGN KEY (cluster_id) REFERENCES public.clusters(id) ON DELETE CASCADE; -ALTER TABLE ONLY error_tracking_client_keys - ADD CONSTRAINT fk_rails_99342d1d54 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY pages_deployments - ADD CONSTRAINT fk_rails_993b88f59a FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: issue_emails fk_rails_e2ee00a8f7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY dast_pre_scan_verification_steps - ADD CONSTRAINT fk_rails_9990fc2adf FOREIGN KEY (dast_pre_scan_verification_id) REFERENCES dast_pre_scan_verifications(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.issue_emails + ADD CONSTRAINT fk_rails_e2ee00a8f7 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY users_ops_dashboard_projects - ADD CONSTRAINT fk_rails_9b4ebf005b FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_incident_management_settings - ADD CONSTRAINT fk_rails_9c2ea1b7dd FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: vulnerability_finding_evidences fk_rails_e3205a0c65; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_debian_project_components - ADD CONSTRAINT fk_rails_9d072b5073 FOREIGN KEY (distribution_id) REFERENCES packages_debian_project_distributions(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.vulnerability_finding_evidences + ADD CONSTRAINT fk_rails_e3205a0c65 FOREIGN KEY (vulnerability_occurrence_id) REFERENCES public.vulnerability_occurrences(id) ON DELETE CASCADE; -ALTER TABLE ONLY gpg_keys - ADD CONSTRAINT fk_rails_9d1f5d8719 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY analytics_language_trend_repository_languages - ADD CONSTRAINT fk_rails_9d851d566c FOREIGN KEY (programming_language_id) REFERENCES programming_languages(id) ON DELETE CASCADE; +-- +-- Name: approval_policy_rules fk_rails_e344cb2d35; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY namespaces_sync_events - ADD CONSTRAINT fk_rails_9da32a0431 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.approval_policy_rules + ADD CONSTRAINT fk_rails_e344cb2d35 FOREIGN KEY (security_policy_management_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY badges - ADD CONSTRAINT fk_rails_9df4a56538 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerability_finding_signatures - ADD CONSTRAINT fk_rails_9e0baf9dcd FOREIGN KEY (finding_id) REFERENCES vulnerability_occurrences(id) ON DELETE CASCADE; +-- +-- Name: clusters_integration_prometheus fk_rails_e44472034c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY target_branch_rules - ADD CONSTRAINT fk_rails_9e9cf81c8e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.clusters_integration_prometheus + ADD CONSTRAINT fk_rails_e44472034c FOREIGN KEY (cluster_id) REFERENCES public.clusters(id) ON DELETE CASCADE; -ALTER TABLE ONLY timelog_categories - ADD CONSTRAINT fk_rails_9f27b821a8 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY resource_milestone_events - ADD CONSTRAINT fk_rails_a006df5590 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +-- +-- Name: vulnerability_occurrence_identifiers fk_rails_e4ef6d027c; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY namespace_root_storage_statistics - ADD CONSTRAINT fk_rails_a0702c430b FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.vulnerability_occurrence_identifiers + ADD CONSTRAINT fk_rails_e4ef6d027c FOREIGN KEY (occurrence_id) REFERENCES public.vulnerability_occurrences(id) ON DELETE CASCADE; -ALTER TABLE ONLY dingtalk_tracker_data - ADD CONSTRAINT fk_rails_a138e0d542 FOREIGN KEY (integration_id) REFERENCES integrations(id) ON DELETE CASCADE; -ALTER TABLE ONLY elastic_reindexing_slices - ADD CONSTRAINT fk_rails_a17d86aeb9 FOREIGN KEY (elastic_reindexing_subtask_id) REFERENCES elastic_reindexing_subtasks(id) ON DELETE CASCADE; +-- +-- Name: packages_protection_rules fk_rails_e52adb5267; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY project_aliases - ADD CONSTRAINT fk_rails_a1804f74a7 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_protection_rules + ADD CONSTRAINT fk_rails_e52adb5267 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerability_user_mentions - ADD CONSTRAINT fk_rails_a18600f210 FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; -ALTER TABLE ONLY dependency_proxy_packages_settings - ADD CONSTRAINT fk_rails_a248d0c26f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: vulnerability_flags fk_rails_e59393b48b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY todos - ADD CONSTRAINT fk_rails_a27c483435 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.vulnerability_flags + ADD CONSTRAINT fk_rails_e59393b48b FOREIGN KEY (vulnerability_occurrence_id) REFERENCES public.vulnerability_occurrences(id) ON DELETE CASCADE; -ALTER TABLE ONLY protected_environments - ADD CONSTRAINT fk_rails_a354313d11 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY jira_connect_subscriptions - ADD CONSTRAINT fk_rails_a3c10bcf7d FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: incident_management_escalation_policies fk_rails_e5b513daa7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY fork_network_members - ADD CONSTRAINT fk_rails_a40860a1ca FOREIGN KEY (fork_network_id) REFERENCES fork_networks(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.incident_management_escalation_policies + ADD CONSTRAINT fk_rails_e5b513daa7 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY customer_relations_organizations - ADD CONSTRAINT fk_rails_a48597902f FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY ai_agent_version_attachments - ADD CONSTRAINT fk_rails_a4ed49efb5 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: software_license_policies fk_rails_e5b77d620e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY operations_feature_flag_scopes - ADD CONSTRAINT fk_rails_a50a04d0a4 FOREIGN KEY (feature_flag_id) REFERENCES operations_feature_flags(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.software_license_policies + ADD CONSTRAINT fk_rails_e5b77d620e FOREIGN KEY (scan_result_policy_id) REFERENCES public.scan_result_policies(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_helm_file_metadata - ADD CONSTRAINT fk_rails_a559865345 FOREIGN KEY (package_file_id) REFERENCES packages_package_files(id) ON DELETE CASCADE; -ALTER TABLE ONLY cluster_projects - ADD CONSTRAINT fk_rails_a5a958bca1 FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE; +-- +-- Name: vulnerability_external_issue_links fk_rails_e5ba7f7b13; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY commit_user_mentions - ADD CONSTRAINT fk_rails_a6760813e0 FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.vulnerability_external_issue_links + ADD CONSTRAINT fk_rails_e5ba7f7b13 FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER TABLE ONLY vulnerability_identifiers - ADD CONSTRAINT fk_rails_a67a16c885 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_preferences - ADD CONSTRAINT fk_rails_a69bfcfd81 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: approval_merge_request_rule_sources fk_rails_e605a04f76; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY sentry_issues - ADD CONSTRAINT fk_rails_a6a9612965 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.approval_merge_request_rule_sources + ADD CONSTRAINT fk_rails_e605a04f76 FOREIGN KEY (approval_merge_request_rule_id) REFERENCES public.approval_merge_request_rules(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_states - ADD CONSTRAINT fk_rails_a6e5821877 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_permission_export_uploads - ADD CONSTRAINT fk_rails_a7130085e3 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: prometheus_alerts fk_rails_e6351447ec; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY repository_languages - ADD CONSTRAINT fk_rails_a750ec87a8 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.prometheus_alerts + ADD CONSTRAINT fk_rails_e6351447ec FOREIGN KEY (prometheus_metric_id) REFERENCES public.prometheus_metrics(id) ON DELETE CASCADE; -ALTER TABLE ONLY dependency_proxy_manifests - ADD CONSTRAINT fk_rails_a758021fb0 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY resource_milestone_events - ADD CONSTRAINT fk_rails_a788026e85 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +-- +-- Name: merge_request_metrics fk_rails_e6d7c24d1b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY term_agreements - ADD CONSTRAINT fk_rails_a88721bcdf FOREIGN KEY (term_id) REFERENCES application_setting_terms(id); +ALTER TABLE ONLY public.merge_request_metrics + ADD CONSTRAINT fk_rails_e6d7c24d1b FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY saved_replies - ADD CONSTRAINT fk_rails_a8bf5bf111 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_pipeline_artifacts - ADD CONSTRAINT fk_rails_a9e811a466_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +-- +-- Name: draft_notes fk_rails_e753681674; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY ci_pipeline_artifacts - ADD CONSTRAINT fk_rails_a9e811a466_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +ALTER TABLE ONLY public.draft_notes + ADD CONSTRAINT fk_rails_e753681674 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_request_user_mentions - ADD CONSTRAINT fk_rails_aa1b2961b1 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY wiki_repository_states - ADD CONSTRAINT fk_rails_aa2f8a61ba FOREIGN KEY (project_wiki_repository_id) REFERENCES project_wiki_repositories(id) ON DELETE CASCADE; +-- +-- Name: namespace_package_settings fk_rails_e773444769; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY x509_commit_signatures - ADD CONSTRAINT fk_rails_ab07452314 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.namespace_package_settings + ADD CONSTRAINT fk_rails_e773444769 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY dast_profiles_tags - ADD CONSTRAINT fk_rails_ab9e643cd8 FOREIGN KEY (dast_profile_id) REFERENCES dast_profiles(id) ON DELETE CASCADE; -ALTER TABLE ONLY resource_iteration_events - ADD CONSTRAINT fk_rails_abf5d4affa FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +-- +-- Name: boards_epic_board_recent_visits fk_rails_e77911cf03; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY container_registry_protection_rules - ADD CONSTRAINT fk_rails_ac331fcba9 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.boards_epic_board_recent_visits + ADD CONSTRAINT fk_rails_e77911cf03 FOREIGN KEY (epic_board_id) REFERENCES public.boards_epic_boards(id) ON DELETE CASCADE; -ALTER TABLE ONLY clusters - ADD CONSTRAINT fk_rails_ac3a663d79 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY group_saved_replies - ADD CONSTRAINT fk_rails_acd8e1889b FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: audit_events_streaming_instance_event_type_filters fk_rails_e7bb18c0e1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_composer_metadata - ADD CONSTRAINT fk_rails_ad48c2e5bb FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.audit_events_streaming_instance_event_type_filters + ADD CONSTRAINT fk_rails_e7bb18c0e1 FOREIGN KEY (instance_external_audit_event_destination_id) REFERENCES public.audit_events_instance_external_audit_event_destinations(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_phone_number_validations - ADD CONSTRAINT fk_rails_ad6686f3d8 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY analytics_cycle_analytics_group_stages - ADD CONSTRAINT fk_rails_ae5da3409b FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: group_deploy_keys_groups fk_rails_e87145115d; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY metrics_dashboard_annotations - ADD CONSTRAINT fk_rails_aeb11a7643 FOREIGN KEY (environment_id) REFERENCES environments(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.group_deploy_keys_groups + ADD CONSTRAINT fk_rails_e87145115d FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE p_ci_build_trace_metadata - ADD CONSTRAINT fk_rails_aebc78111f_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY bulk_import_trackers - ADD CONSTRAINT fk_rails_aed566d3f3 FOREIGN KEY (bulk_import_entity_id) REFERENCES bulk_import_entities(id) ON DELETE CASCADE; +-- +-- Name: audit_events_streaming_event_type_filters fk_rails_e8bd011129; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY pool_repositories - ADD CONSTRAINT fk_rails_af3f8c5d62 FOREIGN KEY (shard_id) REFERENCES shards(id) ON DELETE RESTRICT; +ALTER TABLE ONLY public.audit_events_streaming_event_type_filters + ADD CONSTRAINT fk_rails_e8bd011129 FOREIGN KEY (external_audit_event_destination_id) REFERENCES public.audit_events_external_audit_event_destinations(id) ON DELETE CASCADE; -ALTER TABLE ONLY work_item_related_link_restrictions - ADD CONSTRAINT fk_rails_b013a0fa65 FOREIGN KEY (source_type_id) REFERENCES work_item_types(id) ON DELETE CASCADE; -ALTER TABLE ONLY resource_label_events - ADD CONSTRAINT fk_rails_b126799f57 FOREIGN KEY (label_id) REFERENCES labels(id) ON DELETE SET NULL; +-- +-- Name: description_versions fk_rails_e8f4caf9c7; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY webauthn_registrations - ADD CONSTRAINT fk_rails_b15c016782 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.description_versions + ADD CONSTRAINT fk_rails_e8f4caf9c7 FOREIGN KEY (epic_id) REFERENCES public.epics(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_build_infos - ADD CONSTRAINT fk_rails_b18868292d FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY authentication_events - ADD CONSTRAINT fk_rails_b204656a54 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: vulnerability_issue_links fk_rails_e9180d534b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_trains - ADD CONSTRAINT fk_rails_b29261ce31 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.vulnerability_issue_links + ADD CONSTRAINT fk_rails_e9180d534b FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY board_project_recent_visits - ADD CONSTRAINT fk_rails_b315dd0c80 FOREIGN KEY (board_id) REFERENCES boards(id) ON DELETE CASCADE; -ALTER TABLE ONLY issues_prometheus_alert_events - ADD CONSTRAINT fk_rails_b32edb790f FOREIGN KEY (prometheus_alert_event_id) REFERENCES prometheus_alert_events(id) ON DELETE CASCADE; +-- +-- Name: merge_request_blocks fk_rails_e9387863bc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_trains - ADD CONSTRAINT fk_rails_b374b5225d FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.merge_request_blocks + ADD CONSTRAINT fk_rails_e9387863bc FOREIGN KEY (blocking_merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_request_predictions - ADD CONSTRAINT fk_rails_b3b78cbcd0 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY incident_management_escalation_rules - ADD CONSTRAINT fk_rails_b3c9c17bd4 FOREIGN KEY (oncall_schedule_id) REFERENCES incident_management_oncall_schedules(id) ON DELETE CASCADE; +-- +-- Name: protected_branch_unprotect_access_levels fk_rails_e9eb8dc025; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY duo_workflows_checkpoints - ADD CONSTRAINT fk_rails_b4c109b1a4 FOREIGN KEY (workflow_id) REFERENCES duo_workflows_workflows(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.protected_branch_unprotect_access_levels + ADD CONSTRAINT fk_rails_e9eb8dc025 FOREIGN KEY (protected_branch_id) REFERENCES public.protected_branches(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_debian_project_component_files - ADD CONSTRAINT fk_rails_b543a9622b FOREIGN KEY (architecture_id) REFERENCES packages_debian_project_architectures(id) ON DELETE RESTRICT; -ALTER TABLE ONLY namespace_aggregation_schedules - ADD CONSTRAINT fk_rails_b565c8d16c FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: ai_vectorizable_files fk_rails_ea2e440084; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY container_registry_data_repair_details - ADD CONSTRAINT fk_rails_b70d8111d9 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ai_vectorizable_files + ADD CONSTRAINT fk_rails_ea2e440084 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE batched_background_migration_job_transition_logs - ADD CONSTRAINT fk_rails_b7523a175b FOREIGN KEY (batched_background_migration_job_id) REFERENCES batched_background_migration_jobs(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_project_rules_protected_branches - ADD CONSTRAINT fk_rails_b7567b031b FOREIGN KEY (protected_branch_id) REFERENCES protected_branches(id) ON DELETE CASCADE; +-- +-- Name: alert_management_alert_user_mentions fk_rails_eb2de0cdef; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_composer_cache_files - ADD CONSTRAINT fk_rails_b82cea43a0 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.alert_management_alert_user_mentions + ADD CONSTRAINT fk_rails_eb2de0cdef FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; -ALTER TABLE ONLY abuse_trust_scores - ADD CONSTRAINT fk_rails_b903079eb4 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY virtual_registries_packages_maven_registry_upstreams - ADD CONSTRAINT fk_rails_b991fff0be FOREIGN KEY (registry_id) REFERENCES virtual_registries_packages_maven_registries(id) ON DELETE CASCADE; +-- +-- Name: snippet_statistics fk_rails_ebc283ccf1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY dora_configurations - ADD CONSTRAINT fk_rails_b9b8d90ddb FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.snippet_statistics + ADD CONSTRAINT fk_rails_ebc283ccf1 FOREIGN KEY (snippet_id) REFERENCES public.snippets(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_trains - ADD CONSTRAINT fk_rails_b9d67af01d FOREIGN KEY (target_project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_project_rules_users - ADD CONSTRAINT fk_rails_b9e9394efb FOREIGN KEY (approval_project_rule_id) REFERENCES approval_project_rules(id) ON DELETE CASCADE; +-- +-- Name: slack_integrations_scopes fk_rails_ece1eb6772; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY lists - ADD CONSTRAINT fk_rails_baed5f39b7 FOREIGN KEY (milestone_id) REFERENCES milestones(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.slack_integrations_scopes + ADD CONSTRAINT fk_rails_ece1eb6772 FOREIGN KEY (slack_integration_id) REFERENCES public.slack_integrations(id) ON DELETE CASCADE; -ALTER TABLE security_findings - ADD CONSTRAINT fk_rails_bb63863cf1 FOREIGN KEY (scan_id) REFERENCES security_scans(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_debian_project_component_files - ADD CONSTRAINT fk_rails_bbe9ebfbd9 FOREIGN KEY (component_id) REFERENCES packages_debian_project_components(id) ON DELETE RESTRICT; +-- +-- Name: iterations_cadences fk_rails_ece400c55a; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY projects_sync_events - ADD CONSTRAINT fk_rails_bbf0eef59f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.iterations_cadences + ADD CONSTRAINT fk_rails_ece400c55a FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE p_ci_build_names - ADD CONSTRAINT fk_rails_bc221a297a FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY approval_merge_request_rules_users - ADD CONSTRAINT fk_rails_bc8972fa55 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: dast_profiles fk_rails_ed1e66fbbf; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY observability_traces_issues_connections - ADD CONSTRAINT fk_rails_bcf18aa0d2 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.dast_profiles + ADD CONSTRAINT fk_rails_ed1e66fbbf FOREIGN KEY (dast_site_profile_id) REFERENCES public.dast_site_profiles(id) ON DELETE CASCADE; -ALTER TABLE ONLY elasticsearch_indexed_projects - ADD CONSTRAINT fk_rails_bd13bbdc3d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY elasticsearch_indexed_namespaces - ADD CONSTRAINT fk_rails_bdcf044f37 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: project_security_settings fk_rails_ed4abe1338; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_occurrence_identifiers - ADD CONSTRAINT fk_rails_be2e49e1d0 FOREIGN KEY (identifier_id) REFERENCES vulnerability_identifiers(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.project_security_settings + ADD CONSTRAINT fk_rails_ed4abe1338 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY bulk_import_export_batches - ADD CONSTRAINT fk_rails_be479792f6 FOREIGN KEY (export_id) REFERENCES bulk_import_exports(id) ON DELETE CASCADE; -ALTER TABLE ONLY alert_management_http_integrations - ADD CONSTRAINT fk_rails_bec49f52cc FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: packages_debian_group_distributions fk_rails_ede0bb937f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY namespace_ci_cd_settings - ADD CONSTRAINT fk_rails_bf04185d54 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_debian_group_distributions + ADD CONSTRAINT fk_rails_ede0bb937f FOREIGN KEY (creator_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER TABLE ONLY vulnerability_occurrences - ADD CONSTRAINT fk_rails_bf5b788ca7 FOREIGN KEY (scanner_id) REFERENCES vulnerability_scanners(id) ON DELETE CASCADE; -ALTER TABLE ONLY resource_weight_events - ADD CONSTRAINT fk_rails_bfc406b47c FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: ci_daily_build_group_report_results fk_rails_ee072d13b3_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY design_management_designs - ADD CONSTRAINT fk_rails_bfe283ec3c FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ci_daily_build_group_report_results + ADD CONSTRAINT fk_rails_ee072d13b3_p FOREIGN KEY (partition_id, last_pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY atlassian_identities - ADD CONSTRAINT fk_rails_c02928bc18 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY slack_integrations_scopes - ADD CONSTRAINT fk_rails_c0e018a6fe FOREIGN KEY (slack_api_scope_id) REFERENCES slack_api_scopes(id) ON DELETE CASCADE; +-- +-- Name: ci_daily_build_group_report_results fk_rails_ee072d13b3_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_npm_metadata - ADD CONSTRAINT fk_rails_c0e5fce6f3 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ci_daily_build_group_report_results + ADD CONSTRAINT fk_rails_ee072d13b3_p_tmp FOREIGN KEY (partition_id, last_pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -ALTER TABLE ONLY labels - ADD CONSTRAINT fk_rails_c1ac5161d8 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_feature_usages - ADD CONSTRAINT fk_rails_c22a50024b FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: import_source_users fk_rails_ee30e569be; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE p_ci_builds_execution_configs - ADD CONSTRAINT fk_rails_c26408d02c_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY public.import_source_users + ADD CONSTRAINT fk_rails_ee30e569be FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_canonical_emails - ADD CONSTRAINT fk_rails_c2bd828b51 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_repositories - ADD CONSTRAINT fk_rails_c3258dc63b FOREIGN KEY (shard_id) REFERENCES shards(id) ON DELETE RESTRICT; +-- +-- Name: audit_events_group_streaming_event_type_filters fk_rails_ee6950967f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_nuget_dependency_link_metadata - ADD CONSTRAINT fk_rails_c3313ee2e4 FOREIGN KEY (dependency_link_id) REFERENCES packages_dependency_links(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.audit_events_group_streaming_event_type_filters + ADD CONSTRAINT fk_rails_ee6950967f FOREIGN KEY (external_streaming_destination_id) REFERENCES public.audit_events_group_external_streaming_destinations(id) ON DELETE CASCADE; -ALTER TABLE ONLY group_deploy_keys_groups - ADD CONSTRAINT fk_rails_c3854f19f5 FOREIGN KEY (group_deploy_key_id) REFERENCES group_deploy_keys(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_wiki_repositories - ADD CONSTRAINT fk_rails_c3dd796199 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: packages_debian_group_architectures fk_rails_ef667d1b03; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_user_mentions - ADD CONSTRAINT fk_rails_c440b9ea31 FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_debian_group_architectures + ADD CONSTRAINT fk_rails_ef667d1b03 FOREIGN KEY (distribution_id) REFERENCES public.packages_debian_group_distributions(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_achievements - ADD CONSTRAINT fk_rails_c44f5b3b25 FOREIGN KEY (achievement_id) REFERENCES achievements(id) ON DELETE CASCADE; -ALTER TABLE ONLY related_epic_links - ADD CONSTRAINT fk_rails_c464534def FOREIGN KEY (source_id) REFERENCES epics(id) ON DELETE CASCADE; +-- +-- Name: dependency_list_export_parts fk_rails_ef73d6ad62; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY boards_epic_board_recent_visits - ADD CONSTRAINT fk_rails_c4dcba4a3e FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.dependency_list_export_parts + ADD CONSTRAINT fk_rails_ef73d6ad62 FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; -ALTER TABLE p_ci_job_artifacts - ADD CONSTRAINT fk_rails_c5137cb2c1_p FOREIGN KEY (partition_id, job_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY organization_settings - ADD CONSTRAINT fk_rails_c56e4690c0 FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; +-- +-- Name: project_relation_exports fk_rails_ef89b354fc; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY system_access_microsoft_applications - ADD CONSTRAINT fk_rails_c5b7765d04 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.project_relation_exports + ADD CONSTRAINT fk_rails_ef89b354fc FOREIGN KEY (project_export_job_id) REFERENCES public.project_export_jobs(id) ON DELETE CASCADE; -ALTER TABLE ONLY custom_software_licenses - ADD CONSTRAINT fk_rails_c68163fae6 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_settings - ADD CONSTRAINT fk_rails_c6df6e6328 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: label_priorities fk_rails_ef916d14fa; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY container_expiration_policies - ADD CONSTRAINT fk_rails_c7360f09ad FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.label_priorities + ADD CONSTRAINT fk_rails_ef916d14fa FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY wiki_page_meta - ADD CONSTRAINT fk_rails_c7a0c59cf1 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY scim_oauth_access_tokens - ADD CONSTRAINT fk_rails_c84404fb6c FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: fork_network_members fk_rails_efccadc4ec; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_occurrences - ADD CONSTRAINT fk_rails_c8661a61eb FOREIGN KEY (primary_identifier_id) REFERENCES vulnerability_identifiers(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.fork_network_members + ADD CONSTRAINT fk_rails_efccadc4ec FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_export_jobs - ADD CONSTRAINT fk_rails_c88d8db2e1 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY resource_state_events - ADD CONSTRAINT fk_rails_c913c64977 FOREIGN KEY (epic_id) REFERENCES epics(id) ON DELETE CASCADE; +-- +-- Name: security_orchestration_policy_rule_schedules fk_rails_efe1d9b133; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY resource_milestone_events - ADD CONSTRAINT fk_rails_c940fb9fc5 FOREIGN KEY (milestone_id) REFERENCES milestones(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.security_orchestration_policy_rule_schedules + ADD CONSTRAINT fk_rails_efe1d9b133 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY gpg_signatures - ADD CONSTRAINT fk_rails_c97176f5f7 FOREIGN KEY (gpg_key_id) REFERENCES gpg_keys(id) ON DELETE SET NULL; -ALTER TABLE ONLY board_group_recent_visits - ADD CONSTRAINT fk_rails_ca04c38720 FOREIGN KEY (board_id) REFERENCES boards(id) ON DELETE CASCADE; +-- +-- Name: dast_pre_scan_verifications fk_rails_f08d9312a8; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY relation_import_trackers - ADD CONSTRAINT fk_rails_ca9bd1ef8a FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.dast_pre_scan_verifications + ADD CONSTRAINT fk_rails_f08d9312a8 FOREIGN KEY (dast_profile_id) REFERENCES public.dast_profiles(id) ON DELETE CASCADE; -ALTER TABLE ONLY boards_epic_board_positions - ADD CONSTRAINT fk_rails_cb4563dd6e FOREIGN KEY (epic_board_id) REFERENCES boards_epic_boards(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerability_finding_links - ADD CONSTRAINT fk_rails_cbdfde27ce FOREIGN KEY (vulnerability_occurrence_id) REFERENCES vulnerability_occurrences(id) ON DELETE CASCADE; +-- +-- Name: analytics_dashboards_pointers fk_rails_f0e7c640c3; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY namespace_details - ADD CONSTRAINT fk_rails_cc11a451f8 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.analytics_dashboards_pointers + ADD CONSTRAINT fk_rails_f0e7c640c3 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY issues_self_managed_prometheus_alert_events - ADD CONSTRAINT fk_rails_cc5d88bbb0 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY operations_strategies_user_lists - ADD CONSTRAINT fk_rails_ccb7e4bc0b FOREIGN KEY (user_list_id) REFERENCES operations_user_lists(id) ON DELETE CASCADE; +-- +-- Name: prometheus_alerts fk_rails_f0e8db86aa; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY resource_milestone_events - ADD CONSTRAINT fk_rails_cedf8cce4d FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.prometheus_alerts + ADD CONSTRAINT fk_rails_f0e8db86aa FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY resource_iteration_events - ADD CONSTRAINT fk_rails_cee126f66c FOREIGN KEY (iteration_id) REFERENCES sprints(id) ON DELETE CASCADE; -ALTER TABLE ONLY member_roles - ADD CONSTRAINT fk_rails_cf0ee35814 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: import_export_uploads fk_rails_f129140f9e; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY pm_package_versions - ADD CONSTRAINT fk_rails_cf94c3e601 FOREIGN KEY (pm_package_id) REFERENCES pm_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.import_export_uploads + ADD CONSTRAINT fk_rails_f129140f9e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY upload_states - ADD CONSTRAINT fk_rails_d00f153613 FOREIGN KEY (upload_id) REFERENCES uploads(id) ON DELETE CASCADE; -ALTER TABLE ONLY epic_metrics - ADD CONSTRAINT fk_rails_d071904753 FOREIGN KEY (epic_id) REFERENCES epics(id) ON DELETE CASCADE; +-- +-- Name: jira_connect_subscriptions fk_rails_f1d617343f; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY import_source_user_placeholder_references - ADD CONSTRAINT fk_rails_d0b75c434e FOREIGN KEY (source_user_id) REFERENCES import_source_users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.jira_connect_subscriptions + ADD CONSTRAINT fk_rails_f1d617343f FOREIGN KEY (jira_connect_installation_id) REFERENCES public.jira_connect_installations(id) ON DELETE CASCADE; -ALTER TABLE ONLY subscriptions - ADD CONSTRAINT fk_rails_d0c8bda804 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY operations_strategies - ADD CONSTRAINT fk_rails_d183b6e6dd FOREIGN KEY (feature_flag_id) REFERENCES operations_feature_flags(id) ON DELETE CASCADE; +-- +-- Name: requirements fk_rails_f212e67e63; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY cluster_agent_tokens - ADD CONSTRAINT fk_rails_d1d26abc25 FOREIGN KEY (agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.requirements + ADD CONSTRAINT fk_rails_f212e67e63 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY requirements_management_test_reports - ADD CONSTRAINT fk_rails_d1e8b498bf FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY pool_repositories - ADD CONSTRAINT fk_rails_d2711daad4 FOREIGN KEY (source_project_id) REFERENCES projects(id) ON DELETE SET NULL; +-- +-- Name: snippet_repositories fk_rails_f21f899728; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY design_management_repository_states - ADD CONSTRAINT fk_rails_d2a258cc5a FOREIGN KEY (design_management_repository_id) REFERENCES design_management_repositories(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.snippet_repositories + ADD CONSTRAINT fk_rails_f21f899728 FOREIGN KEY (shard_id) REFERENCES public.shards(id) ON DELETE RESTRICT; -ALTER TABLE ONLY web_hooks - ADD CONSTRAINT fk_rails_d35697648e FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY group_group_links - ADD CONSTRAINT fk_rails_d3a0488427 FOREIGN KEY (shared_group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: elastic_reindexing_subtasks fk_rails_f2cc190164; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_issue_links - ADD CONSTRAINT fk_rails_d459c19036 FOREIGN KEY (vulnerability_id) REFERENCES vulnerabilities(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.elastic_reindexing_subtasks + ADD CONSTRAINT fk_rails_f2cc190164 FOREIGN KEY (elastic_reindexing_task_id) REFERENCES public.elastic_reindexing_tasks(id) ON DELETE CASCADE; -ALTER TABLE ONLY alert_management_alert_assignees - ADD CONSTRAINT fk_rails_d47570ac62 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_terraform_module_metadata - ADD CONSTRAINT fk_rails_d48f21a84b FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE SET NULL; +-- +-- Name: approval_project_rules_users fk_rails_f365da8250; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE p_ci_job_annotations - ADD CONSTRAINT fk_rails_d4d0c0fa0f FOREIGN KEY (partition_id, job_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY public.approval_project_rules_users + ADD CONSTRAINT fk_rails_f365da8250 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_rpm_repository_files - ADD CONSTRAINT fk_rails_d545cfaed2 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_rpm_metadata - ADD CONSTRAINT fk_rails_d79f02264b FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; +-- +-- Name: insights fk_rails_f36fda3932; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE p_ci_build_tags - ADD CONSTRAINT fk_rails_d7bd025909 FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY public.insights + ADD CONSTRAINT fk_rails_f36fda3932 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY note_metadata - ADD CONSTRAINT fk_rails_d853224d37 FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; -ALTER TABLE ONLY ml_model_metadata - ADD CONSTRAINT fk_rails_d907835e01 FOREIGN KEY (model_id) REFERENCES ml_models(id) ON DELETE CASCADE; +-- +-- Name: incident_management_pending_alert_escalations fk_rails_f3d17bc8af; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_reviewers - ADD CONSTRAINT fk_rails_d9fec24b9d FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE public.incident_management_pending_alert_escalations + ADD CONSTRAINT fk_rails_f3d17bc8af FOREIGN KEY (rule_id) REFERENCES public.incident_management_escalation_rules(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_running_builds - ADD CONSTRAINT fk_rails_da45cfa165_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY resource_link_events - ADD CONSTRAINT fk_rails_da5dd8a56f FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +-- +-- Name: board_group_recent_visits fk_rails_f410736518; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY jira_imports - ADD CONSTRAINT fk_rails_da617096ce FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.board_group_recent_visits + ADD CONSTRAINT fk_rails_f410736518 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY dependency_proxy_blobs - ADD CONSTRAINT fk_rails_db58bbc5d7 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY issues_prometheus_alert_events - ADD CONSTRAINT fk_rails_db5b756534 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +-- +-- Name: incident_management_issuable_escalation_statuses fk_rails_f4c811fd28; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY board_user_preferences - ADD CONSTRAINT fk_rails_dbebdaa8fe FOREIGN KEY (board_id) REFERENCES boards(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.incident_management_issuable_escalation_statuses + ADD CONSTRAINT fk_rails_f4c811fd28 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerability_occurrence_pipelines - ADD CONSTRAINT fk_rails_dc3ae04693 FOREIGN KEY (occurrence_id) REFERENCES vulnerability_occurrences(id) ON DELETE CASCADE; -ALTER TABLE ONLY instance_audit_events_streaming_headers - ADD CONSTRAINT fk_rails_dc933c1f3c FOREIGN KEY (instance_external_audit_event_destination_id) REFERENCES audit_events_instance_external_audit_event_destinations(id) ON DELETE CASCADE; +-- +-- Name: vulnerability_export_parts fk_rails_f50ca1aabf; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY deployment_merge_requests - ADD CONSTRAINT fk_rails_dcbce9f4df FOREIGN KEY (deployment_id) REFERENCES deployments(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.vulnerability_export_parts + ADD CONSTRAINT fk_rails_f50ca1aabf FOREIGN KEY (vulnerability_export_id) REFERENCES public.vulnerability_exports(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_debian_group_component_files - ADD CONSTRAINT fk_rails_dd262386e9 FOREIGN KEY (component_id) REFERENCES packages_debian_group_components(id) ON DELETE RESTRICT; -ALTER TABLE ONLY incident_management_timeline_event_tags - ADD CONSTRAINT fk_rails_dd5c91484e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: resource_state_events fk_rails_f5827a7ccd; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY user_callouts - ADD CONSTRAINT fk_rails_ddfdd80f3d FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.resource_state_events + ADD CONSTRAINT fk_rails_f5827a7ccd FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER TABLE ONLY scan_result_policies - ADD CONSTRAINT fk_rails_de9e5d2ce6 FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES security_orchestration_policy_configurations(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerability_feedback - ADD CONSTRAINT fk_rails_debd54e456 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: packages_debian_group_components fk_rails_f5f1ef54c6; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY service_desk_custom_email_verifications - ADD CONSTRAINT fk_rails_debe4c4acc FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_debian_group_components + ADD CONSTRAINT fk_rails_f5f1ef54c6 FOREIGN KEY (distribution_id) REFERENCES public.packages_debian_group_distributions(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_debian_project_distributions - ADD CONSTRAINT fk_rails_df44271a30 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE RESTRICT; -ALTER TABLE ONLY incident_management_oncall_shifts - ADD CONSTRAINT fk_rails_df4feb286a FOREIGN KEY (rotation_id) REFERENCES incident_management_oncall_rotations(id) ON DELETE CASCADE; +-- +-- Name: incident_management_oncall_shifts fk_rails_f6eef06841; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY namespace_commit_emails - ADD CONSTRAINT fk_rails_dfa4c104f5 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.incident_management_oncall_shifts + ADD CONSTRAINT fk_rails_f6eef06841 FOREIGN KEY (participant_id) REFERENCES public.incident_management_oncall_participants(id) ON DELETE CASCADE; -ALTER TABLE ONLY analytics_cycle_analytics_group_stages - ADD CONSTRAINT fk_rails_dfb37c880d FOREIGN KEY (end_event_label_id) REFERENCES labels(id) ON DELETE CASCADE; -ALTER TABLE ONLY bulk_import_export_uploads - ADD CONSTRAINT fk_rails_dfbfb45eca FOREIGN KEY (export_id) REFERENCES bulk_import_exports(id) ON DELETE CASCADE; +-- +-- Name: design_user_mentions fk_rails_f7075a53c1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vs_code_settings - ADD CONSTRAINT fk_rails_e02b1ed535 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.design_user_mentions + ADD CONSTRAINT fk_rails_f7075a53c1 FOREIGN KEY (design_id) REFERENCES public.design_management_designs(id) ON DELETE CASCADE; -ALTER TABLE ONLY audit_events_group_streaming_event_type_filters - ADD CONSTRAINT fk_rails_e07e457a27 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY label_priorities - ADD CONSTRAINT fk_rails_e161058b0f FOREIGN KEY (label_id) REFERENCES labels(id) ON DELETE CASCADE; +-- +-- Name: internal_ids fk_rails_f7d46b66c6; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_packages - ADD CONSTRAINT fk_rails_e1ac527425 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.internal_ids + ADD CONSTRAINT fk_rails_f7d46b66c6 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE p_catalog_resource_component_usages - ADD CONSTRAINT fk_rails_e1ba64b7ee FOREIGN KEY (component_id) REFERENCES catalog_resource_components(id) ON DELETE CASCADE; -ALTER TABLE ONLY cluster_platforms_kubernetes - ADD CONSTRAINT fk_rails_e1e2cf841a FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE; +-- +-- Name: issues_self_managed_prometheus_alert_events fk_rails_f7db2d72eb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY issue_emails - ADD CONSTRAINT fk_rails_e2ee00a8f7 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.issues_self_managed_prometheus_alert_events + ADD CONSTRAINT fk_rails_f7db2d72eb FOREIGN KEY (self_managed_prometheus_alert_event_id) REFERENCES public.self_managed_prometheus_alert_events(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerability_finding_evidences - ADD CONSTRAINT fk_rails_e3205a0c65 FOREIGN KEY (vulnerability_occurrence_id) REFERENCES vulnerability_occurrences(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_policy_rules - ADD CONSTRAINT fk_rails_e344cb2d35 FOREIGN KEY (security_policy_management_project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: merge_requests_closing_issues fk_rails_f8540692be; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY clusters_integration_prometheus - ADD CONSTRAINT fk_rails_e44472034c FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.merge_requests_closing_issues + ADD CONSTRAINT fk_rails_f8540692be FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerability_occurrence_identifiers - ADD CONSTRAINT fk_rails_e4ef6d027c FOREIGN KEY (occurrence_id) REFERENCES vulnerability_occurrences(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_protection_rules - ADD CONSTRAINT fk_rails_e52adb5267 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: banned_users fk_rails_fa5bb598e5; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_flags - ADD CONSTRAINT fk_rails_e59393b48b FOREIGN KEY (vulnerability_occurrence_id) REFERENCES vulnerability_occurrences(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.banned_users + ADD CONSTRAINT fk_rails_fa5bb598e5 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY incident_management_escalation_policies - ADD CONSTRAINT fk_rails_e5b513daa7 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY software_license_policies - ADD CONSTRAINT fk_rails_e5b77d620e FOREIGN KEY (scan_result_policy_id) REFERENCES scan_result_policies(id) ON DELETE CASCADE; +-- +-- Name: operations_feature_flags_issues fk_rails_fb4d2a7cb1; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_external_issue_links - ADD CONSTRAINT fk_rails_e5ba7f7b13 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.operations_feature_flags_issues + ADD CONSTRAINT fk_rails_fb4d2a7cb1 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY approval_merge_request_rule_sources - ADD CONSTRAINT fk_rails_e605a04f76 FOREIGN KEY (approval_merge_request_rule_id) REFERENCES approval_merge_request_rules(id) ON DELETE CASCADE; -ALTER TABLE ONLY prometheus_alerts - ADD CONSTRAINT fk_rails_e6351447ec FOREIGN KEY (prometheus_metric_id) REFERENCES prometheus_metrics(id) ON DELETE CASCADE; +-- +-- Name: board_project_recent_visits fk_rails_fb6fc419cb; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_metrics - ADD CONSTRAINT fk_rails_e6d7c24d1b FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.board_project_recent_visits + ADD CONSTRAINT fk_rails_fb6fc419cb FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY draft_notes - ADD CONSTRAINT fk_rails_e753681674 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY namespace_package_settings - ADD CONSTRAINT fk_rails_e773444769 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: ci_job_variables fk_rails_fbf3b34792_p; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY boards_epic_board_recent_visits - ADD CONSTRAINT fk_rails_e77911cf03 FOREIGN KEY (epic_board_id) REFERENCES boards_epic_boards(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.ci_job_variables + ADD CONSTRAINT fk_rails_fbf3b34792_p FOREIGN KEY (partition_id, job_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY audit_events_streaming_instance_event_type_filters - ADD CONSTRAINT fk_rails_e7bb18c0e1 FOREIGN KEY (instance_external_audit_event_destination_id) REFERENCES audit_events_instance_external_audit_event_destinations(id) ON DELETE CASCADE; -ALTER TABLE ONLY group_deploy_keys_groups - ADD CONSTRAINT fk_rails_e87145115d FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: packages_nuget_metadata fk_rails_fc0c19f5b4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY audit_events_streaming_event_type_filters - ADD CONSTRAINT fk_rails_e8bd011129 FOREIGN KEY (external_audit_event_destination_id) REFERENCES audit_events_external_audit_event_destinations(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.packages_nuget_metadata + ADD CONSTRAINT fk_rails_fc0c19f5b4 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY description_versions - ADD CONSTRAINT fk_rails_e8f4caf9c7 FOREIGN KEY (epic_id) REFERENCES epics(id) ON DELETE CASCADE; -ALTER TABLE ONLY vulnerability_issue_links - ADD CONSTRAINT fk_rails_e9180d534b FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +-- +-- Name: customer_relations_contacts fk_rails_fd3f2e7572; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY merge_request_blocks - ADD CONSTRAINT fk_rails_e9387863bc FOREIGN KEY (blocking_merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.customer_relations_contacts + ADD CONSTRAINT fk_rails_fd3f2e7572 FOREIGN KEY (organization_id) REFERENCES public.customer_relations_organizations(id) ON DELETE CASCADE; -ALTER TABLE ONLY protected_branch_unprotect_access_levels - ADD CONSTRAINT fk_rails_e9eb8dc025 FOREIGN KEY (protected_branch_id) REFERENCES protected_branches(id) ON DELETE CASCADE; -ALTER TABLE ONLY ai_vectorizable_files - ADD CONSTRAINT fk_rails_ea2e440084 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: external_approval_rules fk_rails_fd4f9ac573; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY alert_management_alert_user_mentions - ADD CONSTRAINT fk_rails_eb2de0cdef FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.external_approval_rules + ADD CONSTRAINT fk_rails_fd4f9ac573 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY snippet_statistics - ADD CONSTRAINT fk_rails_ebc283ccf1 FOREIGN KEY (snippet_id) REFERENCES snippets(id) ON DELETE CASCADE; -ALTER TABLE ONLY slack_integrations_scopes - ADD CONSTRAINT fk_rails_ece1eb6772 FOREIGN KEY (slack_integration_id) REFERENCES slack_integrations(id) ON DELETE CASCADE; +-- +-- Name: abuse_report_assignees fk_rails_fd5f22166b; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY iterations_cadences - ADD CONSTRAINT fk_rails_ece400c55a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.abuse_report_assignees + ADD CONSTRAINT fk_rails_fd5f22166b FOREIGN KEY (abuse_report_id) REFERENCES public.abuse_reports(id) ON DELETE CASCADE; -ALTER TABLE ONLY dast_profiles - ADD CONSTRAINT fk_rails_ed1e66fbbf FOREIGN KEY (dast_site_profile_id) REFERENCES dast_site_profiles(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_security_settings - ADD CONSTRAINT fk_rails_ed4abe1338 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: cluster_groups fk_rails_fdb8648a96; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_debian_group_distributions - ADD CONSTRAINT fk_rails_ede0bb937f FOREIGN KEY (creator_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY public.cluster_groups + ADD CONSTRAINT fk_rails_fdb8648a96 FOREIGN KEY (cluster_id) REFERENCES public.clusters(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_daily_build_group_report_results - ADD CONSTRAINT fk_rails_ee072d13b3_p FOREIGN KEY (partition_id, last_pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY ci_daily_build_group_report_results - ADD CONSTRAINT fk_rails_ee072d13b3_p_tmp FOREIGN KEY (partition_id, last_pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +-- +-- Name: resource_label_events fk_rails_fe91ece594; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY import_source_users - ADD CONSTRAINT fk_rails_ee30e569be FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.resource_label_events + ADD CONSTRAINT fk_rails_fe91ece594 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; -ALTER TABLE ONLY audit_events_group_streaming_event_type_filters - ADD CONSTRAINT fk_rails_ee6950967f FOREIGN KEY (external_streaming_destination_id) REFERENCES audit_events_group_external_streaming_destinations(id) ON DELETE CASCADE; -ALTER TABLE ONLY packages_debian_group_architectures - ADD CONSTRAINT fk_rails_ef667d1b03 FOREIGN KEY (distribution_id) REFERENCES packages_debian_group_distributions(id) ON DELETE CASCADE; +-- +-- Name: pages_deployment_states fk_rails_ff6ca551a4; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY dependency_list_export_parts - ADD CONSTRAINT fk_rails_ef73d6ad62 FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.pages_deployment_states + ADD CONSTRAINT fk_rails_ff6ca551a4 FOREIGN KEY (pages_deployment_id) REFERENCES public.pages_deployments(id) ON DELETE CASCADE; -ALTER TABLE ONLY project_relation_exports - ADD CONSTRAINT fk_rails_ef89b354fc FOREIGN KEY (project_export_job_id) REFERENCES project_export_jobs(id) ON DELETE CASCADE; -ALTER TABLE ONLY label_priorities - ADD CONSTRAINT fk_rails_ef916d14fa FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: search_namespace_index_assignments fk_search_index_id_and_type; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY fork_network_members - ADD CONSTRAINT fk_rails_efccadc4ec FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.search_namespace_index_assignments + ADD CONSTRAINT fk_search_index_id_and_type FOREIGN KEY (search_index_id, index_type) REFERENCES public.search_indices(id, type) ON DELETE CASCADE; -ALTER TABLE ONLY security_orchestration_policy_rule_schedules - ADD CONSTRAINT fk_rails_efe1d9b133 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY dast_pre_scan_verifications - ADD CONSTRAINT fk_rails_f08d9312a8 FOREIGN KEY (dast_profile_id) REFERENCES dast_profiles(id) ON DELETE CASCADE; +-- +-- Name: security_orchestration_policy_configurations fk_security_policy_configurations_management_project_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY analytics_dashboards_pointers - ADD CONSTRAINT fk_rails_f0e7c640c3 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.security_orchestration_policy_configurations + ADD CONSTRAINT fk_security_policy_configurations_management_project_id FOREIGN KEY (security_policy_management_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY prometheus_alerts - ADD CONSTRAINT fk_rails_f0e8db86aa FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY import_export_uploads - ADD CONSTRAINT fk_rails_f129140f9e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: integrations fk_services_inherit_from_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY jira_connect_subscriptions - ADD CONSTRAINT fk_rails_f1d617343f FOREIGN KEY (jira_connect_installation_id) REFERENCES jira_connect_installations(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.integrations + ADD CONSTRAINT fk_services_inherit_from_id FOREIGN KEY (inherit_from_id) REFERENCES public.integrations(id) ON DELETE CASCADE; -ALTER TABLE ONLY requirements - ADD CONSTRAINT fk_rails_f212e67e63 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY snippet_repositories - ADD CONSTRAINT fk_rails_f21f899728 FOREIGN KEY (shard_id) REFERENCES shards(id) ON DELETE RESTRICT; +-- +-- Name: merge_requests fk_source_project; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY elastic_reindexing_subtasks - ADD CONSTRAINT fk_rails_f2cc190164 FOREIGN KEY (elastic_reindexing_task_id) REFERENCES elastic_reindexing_tasks(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.merge_requests + ADD CONSTRAINT fk_source_project FOREIGN KEY (source_project_id) REFERENCES public.projects(id) ON DELETE SET NULL; -ALTER TABLE ONLY approval_project_rules_users - ADD CONSTRAINT fk_rails_f365da8250 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY insights - ADD CONSTRAINT fk_rails_f36fda3932 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: timelogs fk_timelogs_issues_issue_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE incident_management_pending_alert_escalations - ADD CONSTRAINT fk_rails_f3d17bc8af FOREIGN KEY (rule_id) REFERENCES incident_management_escalation_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.timelogs + ADD CONSTRAINT fk_timelogs_issues_issue_id FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY board_group_recent_visits - ADD CONSTRAINT fk_rails_f410736518 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY incident_management_issuable_escalation_statuses - ADD CONSTRAINT fk_rails_f4c811fd28 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +-- +-- Name: timelogs fk_timelogs_merge_requests_merge_request_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY vulnerability_export_parts - ADD CONSTRAINT fk_rails_f50ca1aabf FOREIGN KEY (vulnerability_export_id) REFERENCES vulnerability_exports(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.timelogs + ADD CONSTRAINT fk_timelogs_merge_requests_merge_request_id FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY resource_state_events - ADD CONSTRAINT fk_rails_f5827a7ccd FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY packages_debian_group_components - ADD CONSTRAINT fk_rails_f5f1ef54c6 FOREIGN KEY (distribution_id) REFERENCES packages_debian_group_distributions(id) ON DELETE CASCADE; +-- +-- Name: timelogs fk_timelogs_note_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY incident_management_oncall_shifts - ADD CONSTRAINT fk_rails_f6eef06841 FOREIGN KEY (participant_id) REFERENCES incident_management_oncall_participants(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.timelogs + ADD CONSTRAINT fk_timelogs_note_id FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE SET NULL; -ALTER TABLE ONLY design_user_mentions - ADD CONSTRAINT fk_rails_f7075a53c1 FOREIGN KEY (design_id) REFERENCES design_management_designs(id) ON DELETE CASCADE; -ALTER TABLE ONLY internal_ids - ADD CONSTRAINT fk_rails_f7d46b66c6 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: work_item_colors fk_work_item_colors_on_namespace_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY issues_self_managed_prometheus_alert_events - ADD CONSTRAINT fk_rails_f7db2d72eb FOREIGN KEY (self_managed_prometheus_alert_event_id) REFERENCES self_managed_prometheus_alert_events(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.work_item_colors + ADD CONSTRAINT fk_work_item_colors_on_namespace_id FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_requests_closing_issues - ADD CONSTRAINT fk_rails_f8540692be FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY banned_users - ADD CONSTRAINT fk_rails_fa5bb598e5 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +-- +-- Name: work_item_dates_sources fk_work_item_dates_sources_on_namespace_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY operations_feature_flags_issues - ADD CONSTRAINT fk_rails_fb4d2a7cb1 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.work_item_dates_sources + ADD CONSTRAINT fk_work_item_dates_sources_on_namespace_id FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY board_project_recent_visits - ADD CONSTRAINT fk_rails_fb6fc419cb FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY ci_job_variables - ADD CONSTRAINT fk_rails_fbf3b34792_p FOREIGN KEY (partition_id, job_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +-- +-- Name: zoekt_indices fk_zoekt_indices_on_zoekt_replica_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY packages_nuget_metadata - ADD CONSTRAINT fk_rails_fc0c19f5b4 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.zoekt_indices + ADD CONSTRAINT fk_zoekt_indices_on_zoekt_replica_id FOREIGN KEY (zoekt_replica_id) REFERENCES public.zoekt_replicas(id) ON DELETE SET NULL; -ALTER TABLE ONLY customer_relations_contacts - ADD CONSTRAINT fk_rails_fd3f2e7572 FOREIGN KEY (organization_id) REFERENCES customer_relations_organizations(id) ON DELETE CASCADE; -ALTER TABLE ONLY external_approval_rules - ADD CONSTRAINT fk_rails_fd4f9ac573 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: zoekt_repositories fk_zoekt_repositories_on_zoekt_index_id; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY abuse_report_assignees - ADD CONSTRAINT fk_rails_fd5f22166b FOREIGN KEY (abuse_report_id) REFERENCES abuse_reports(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.zoekt_repositories + ADD CONSTRAINT fk_zoekt_repositories_on_zoekt_index_id FOREIGN KEY (zoekt_index_id) REFERENCES public.zoekt_indices(id) ON DELETE RESTRICT; -ALTER TABLE ONLY cluster_groups - ADD CONSTRAINT fk_rails_fdb8648a96 FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE; -ALTER TABLE ONLY resource_label_events - ADD CONSTRAINT fk_rails_fe91ece594 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +-- +-- Name: issue_search_data issue_search_data_issue_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY pages_deployment_states - ADD CONSTRAINT fk_rails_ff6ca551a4 FOREIGN KEY (pages_deployment_id) REFERENCES pages_deployments(id) ON DELETE CASCADE; +ALTER TABLE public.issue_search_data + ADD CONSTRAINT issue_search_data_issue_id_fkey FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY search_namespace_index_assignments - ADD CONSTRAINT fk_search_index_id_and_type FOREIGN KEY (search_index_id, index_type) REFERENCES search_indices(id, type) ON DELETE CASCADE; -ALTER TABLE ONLY security_orchestration_policy_configurations - ADD CONSTRAINT fk_security_policy_configurations_management_project_id FOREIGN KEY (security_policy_management_project_id) REFERENCES projects(id) ON DELETE CASCADE; +-- +-- Name: issue_search_data issue_search_data_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY integrations - ADD CONSTRAINT fk_services_inherit_from_id FOREIGN KEY (inherit_from_id) REFERENCES integrations(id) ON DELETE CASCADE; +ALTER TABLE public.issue_search_data + ADD CONSTRAINT issue_search_data_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY merge_requests - ADD CONSTRAINT fk_source_project FOREIGN KEY (source_project_id) REFERENCES projects(id) ON DELETE SET NULL; -ALTER TABLE ONLY timelogs - ADD CONSTRAINT fk_timelogs_issues_issue_id FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +-- +-- Name: user_follow_users user_follow_users_followee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY timelogs - ADD CONSTRAINT fk_timelogs_merge_requests_merge_request_id FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.user_follow_users + ADD CONSTRAINT user_follow_users_followee_id_fkey FOREIGN KEY (followee_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY timelogs - ADD CONSTRAINT fk_timelogs_note_id FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE SET NULL; -ALTER TABLE ONLY work_item_colors - ADD CONSTRAINT fk_work_item_colors_on_namespace_id FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +-- +-- Name: user_follow_users user_follow_users_follower_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - +-- -ALTER TABLE ONLY work_item_dates_sources - ADD CONSTRAINT fk_work_item_dates_sources_on_namespace_id FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY public.user_follow_users + ADD CONSTRAINT user_follow_users_follower_id_fkey FOREIGN KEY (follower_id) REFERENCES public.users(id) ON DELETE CASCADE; -ALTER TABLE ONLY zoekt_indices - ADD CONSTRAINT fk_zoekt_indices_on_zoekt_replica_id FOREIGN KEY (zoekt_replica_id) REFERENCES zoekt_replicas(id) ON DELETE SET NULL; -ALTER TABLE ONLY zoekt_repositories - ADD CONSTRAINT fk_zoekt_repositories_on_zoekt_index_id FOREIGN KEY (zoekt_index_id) REFERENCES zoekt_indices(id) ON DELETE RESTRICT; +-- +-- PostgreSQL database dump complete +-- -ALTER TABLE issue_search_data - ADD CONSTRAINT issue_search_data_issue_id_fkey FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +SET search_path TO "$user", public; -ALTER TABLE issue_search_data - ADD CONSTRAINT issue_search_data_project_id_fkey FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_follow_users - ADD CONSTRAINT user_follow_users_followee_id_fkey FOREIGN KEY (followee_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY user_follow_users - ADD CONSTRAINT user_follow_users_follower_id_fkey FOREIGN KEY (follower_id) REFERENCES users(id) ON DELETE CASCADE; -- GitLab From 7b11427db502d9644610aec2ddb3fcaad94847ad Mon Sep 17 00:00:00 2001 From: Austin Dixon Date: Thu, 29 Aug 2024 14:10:34 -0500 Subject: [PATCH 34/72] fix schema with scripts/regenerate-schema --- db/structure.sql | 68465 ++++++++------------------------------------- 1 file changed, 11211 insertions(+), 57254 deletions(-) diff --git a/db/structure.sql b/db/structure.sql index 1d5d873e88d5f7..f5ebd1ef108c0c 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -1,75 +1,16 @@ -SET statement_timeout = 0; -SET lock_timeout = 0; -SET idle_in_transaction_session_timeout = 0; -SET client_encoding = 'UTF8'; -SET standard_conforming_strings = on; -SELECT pg_catalog.set_config('search_path', '', false); -SET check_function_bodies = false; -SET xmloption = content; -SET client_min_messages = warning; -SET row_security = off; - --- --- Name: gitlab_partitions_dynamic; Type: SCHEMA; Schema: -; Owner: - --- - CREATE SCHEMA gitlab_partitions_dynamic; - --- --- Name: SCHEMA gitlab_partitions_dynamic; Type: COMMENT; Schema: -; Owner: - --- - COMMENT ON SCHEMA gitlab_partitions_dynamic IS 'Schema to hold partitions managed dynamically from the application, e.g. for time space partitioning.'; - --- --- Name: gitlab_partitions_static; Type: SCHEMA; Schema: -; Owner: - --- - CREATE SCHEMA gitlab_partitions_static; - --- --- Name: SCHEMA gitlab_partitions_static; Type: COMMENT; Schema: -; Owner: - --- - COMMENT ON SCHEMA gitlab_partitions_static IS 'Schema to hold static partitions, e.g. for hash partitioning'; +CREATE EXTENSION IF NOT EXISTS btree_gist; --- --- Name: btree_gist; Type: EXTENSION; Schema: -; Owner: - --- - -CREATE EXTENSION IF NOT EXISTS btree_gist WITH SCHEMA public; - - --- --- Name: EXTENSION btree_gist; Type: COMMENT; Schema: -; Owner: - --- - -COMMENT ON EXTENSION btree_gist IS 'support for indexing common datatypes in GiST'; - - --- --- Name: pg_trgm; Type: EXTENSION; Schema: -; Owner: - --- - -CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public; - - --- --- Name: EXTENSION pg_trgm; Type: COMMENT; Schema: -; Owner: - --- - -COMMENT ON EXTENSION pg_trgm IS 'text similarity measurement and index searching based on trigrams'; +CREATE EXTENSION IF NOT EXISTS pg_trgm; - --- --- Name: assign_p_ci_build_tags_id_value(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.assign_p_ci_build_tags_id_value() RETURNS trigger +CREATE FUNCTION assign_p_ci_build_tags_id_value() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -82,12 +23,7 @@ RETURN NEW; END $$; - --- --- Name: assign_p_ci_builds_execution_configs_id_value(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.assign_p_ci_builds_execution_configs_id_value() RETURNS trigger +CREATE FUNCTION assign_p_ci_builds_execution_configs_id_value() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -100,12 +36,7 @@ RETURN NEW; END $$; - --- --- Name: assign_p_ci_builds_id_value(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.assign_p_ci_builds_id_value() RETURNS trigger +CREATE FUNCTION assign_p_ci_builds_id_value() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -118,12 +49,7 @@ RETURN NEW; END $$; - --- --- Name: assign_p_ci_job_annotations_id_value(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.assign_p_ci_job_annotations_id_value() RETURNS trigger +CREATE FUNCTION assign_p_ci_job_annotations_id_value() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -136,12 +62,7 @@ RETURN NEW; END $$; - --- --- Name: assign_p_ci_job_artifacts_id_value(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.assign_p_ci_job_artifacts_id_value() RETURNS trigger +CREATE FUNCTION assign_p_ci_job_artifacts_id_value() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -154,12 +75,7 @@ RETURN NEW; END $$; - --- --- Name: assign_p_ci_pipeline_variables_id_value(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.assign_p_ci_pipeline_variables_id_value() RETURNS trigger +CREATE FUNCTION assign_p_ci_pipeline_variables_id_value() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -172,12 +88,7 @@ RETURN NEW; END $$; - --- --- Name: assign_p_ci_stages_id_value(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.assign_p_ci_stages_id_value() RETURNS trigger +CREATE FUNCTION assign_p_ci_stages_id_value() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -190,12 +101,7 @@ RETURN NEW; END $$; - --- --- Name: assign_zoekt_tasks_id_value(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.assign_zoekt_tasks_id_value() RETURNS trigger +CREATE FUNCTION assign_zoekt_tasks_id_value() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -208,12 +114,7 @@ RETURN NEW; END $$; - --- --- Name: delete_associated_project_namespace(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.delete_associated_project_namespace() RETURNS trigger +CREATE FUNCTION delete_associated_project_namespace() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -225,16 +126,7 @@ RETURN NULL; END $$; - -SET default_tablespace = ''; - -SET default_table_access_method = heap; - --- --- Name: namespaces; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.namespaces ( +CREATE TABLE namespaces ( id integer NOT NULL, name character varying NOT NULL, path character varying NOT NULL, @@ -286,12 +178,7 @@ CREATE TABLE public.namespaces ( organization_id bigint DEFAULT 1 ); - --- --- Name: find_namespaces_by_id(bigint); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.find_namespaces_by_id(namespaces_id bigint) RETURNS public.namespaces +CREATE FUNCTION find_namespaces_by_id(namespaces_id bigint) RETURNS namespaces LANGUAGE plpgsql STABLE COST 1 PARALLEL SAFE AS $$ BEGIN @@ -299,12 +186,7 @@ BEGIN END; $$; - --- --- Name: projects; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.projects ( +CREATE TABLE projects ( id integer NOT NULL, name character varying, path character varying, @@ -390,12 +272,7 @@ CREATE TABLE public.projects ( organization_id bigint ); - --- --- Name: find_projects_by_id(bigint); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.find_projects_by_id(projects_id bigint) RETURNS public.projects +CREATE FUNCTION find_projects_by_id(projects_id bigint) RETURNS projects LANGUAGE plpgsql STABLE COST 1 PARALLEL SAFE AS $$ BEGIN @@ -403,12 +280,7 @@ BEGIN END; $$; - --- --- Name: users; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.users ( +CREATE TABLE users ( id integer NOT NULL, email character varying DEFAULT ''::character varying NOT NULL, encrypted_password character varying DEFAULT ''::character varying NOT NULL, @@ -494,12 +366,7 @@ CREATE TABLE public.users ( CONSTRAINT check_c737c04b87 CHECK ((notified_of_own_activity IS NOT NULL)) ); - --- --- Name: find_users_by_id(bigint); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.find_users_by_id(users_id bigint) RETURNS public.users +CREATE FUNCTION find_users_by_id(users_id bigint) RETURNS users LANGUAGE plpgsql STABLE COST 1 PARALLEL SAFE AS $$ BEGIN @@ -507,12 +374,7 @@ BEGIN END; $$; - --- --- Name: gitlab_schema_prevent_write(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.gitlab_schema_prevent_write() RETURNS trigger +CREATE FUNCTION gitlab_schema_prevent_write() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -525,12 +387,7 @@ BEGIN END $$; - --- --- Name: insert_catalog_resource_sync_event(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.insert_catalog_resource_sync_event() RETURNS trigger +CREATE FUNCTION insert_catalog_resource_sync_event() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -542,12 +399,7 @@ RETURN NULL; END $$; - --- --- Name: insert_into_loose_foreign_keys_deleted_records(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.insert_into_loose_foreign_keys_deleted_records() RETURNS trigger +CREATE FUNCTION insert_into_loose_foreign_keys_deleted_records() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -559,12 +411,7 @@ BEGIN END $$; - --- --- Name: insert_namespaces_sync_event(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.insert_namespaces_sync_event() RETURNS trigger +CREATE FUNCTION insert_namespaces_sync_event() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -575,12 +422,7 @@ RETURN NULL; END $$; - --- --- Name: insert_or_update_vulnerability_reads(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.insert_or_update_vulnerability_reads() RETURNS trigger +CREATE FUNCTION insert_or_update_vulnerability_reads() RETURNS trigger LANGUAGE plpgsql AS $$ DECLARE @@ -640,12 +482,7 @@ BEGIN END $$; - --- --- Name: insert_projects_sync_event(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.insert_projects_sync_event() RETURNS trigger +CREATE FUNCTION insert_projects_sync_event() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -656,12 +493,7 @@ RETURN NULL; END $$; - --- --- Name: insert_vulnerability_reads_from_vulnerability(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.insert_vulnerability_reads_from_vulnerability() RETURNS trigger +CREATE FUNCTION insert_vulnerability_reads_from_vulnerability() RETURNS trigger LANGUAGE plpgsql AS $$ DECLARE @@ -702,12 +534,7 @@ BEGIN END $$; - --- --- Name: next_traversal_ids_sibling(integer[]); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.next_traversal_ids_sibling(traversal_ids integer[]) RETURNS integer[] +CREATE FUNCTION next_traversal_ids_sibling(traversal_ids integer[]) RETURNS integer[] LANGUAGE plpgsql IMMUTABLE STRICT AS $$ BEGIN @@ -716,12 +543,7 @@ BEGIN END; $$; - --- --- Name: nullify_merge_request_metrics_build_data(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.nullify_merge_request_metrics_build_data() RETURNS trigger +CREATE FUNCTION nullify_merge_request_metrics_build_data() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -734,12 +556,7 @@ RETURN NEW; END $$; - --- --- Name: postgres_pg_stat_activity_autovacuum(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.postgres_pg_stat_activity_autovacuum() RETURNS TABLE(query text, query_start timestamp with time zone) +CREATE FUNCTION postgres_pg_stat_activity_autovacuum() RETURNS TABLE(query text, query_start timestamp with time zone) LANGUAGE sql SECURITY DEFINER SET search_path TO 'pg_catalog', 'pg_temp' AS $$ @@ -750,12 +567,7 @@ CREATE FUNCTION public.postgres_pg_stat_activity_autovacuum() RETURNS TABLE(quer AND backend_type = 'autovacuum worker' $$; - --- --- Name: prevent_delete_of_default_organization(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.prevent_delete_of_default_organization() RETURNS trigger +CREATE FUNCTION prevent_delete_of_default_organization() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -767,12 +579,7 @@ RETURN OLD; END $$; - --- --- Name: set_has_external_issue_tracker(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.set_has_external_issue_tracker() RETURNS trigger +CREATE FUNCTION set_has_external_issue_tracker() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -792,12 +599,7 @@ RETURN NULL; END $$; - --- --- Name: set_has_external_wiki(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.set_has_external_wiki() RETURNS trigger +CREATE FUNCTION set_has_external_wiki() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -808,12 +610,7 @@ RETURN NULL; END $$; - --- --- Name: set_has_issues_on_vulnerability_reads(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.set_has_issues_on_vulnerability_reads() RETURNS trigger +CREATE FUNCTION set_has_issues_on_vulnerability_reads() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -828,12 +625,7 @@ RETURN NULL; END $$; - --- --- Name: set_has_merge_request_on_vulnerability_reads(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.set_has_merge_request_on_vulnerability_reads() RETURNS trigger +CREATE FUNCTION set_has_merge_request_on_vulnerability_reads() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -848,12 +640,7 @@ RETURN NULL; END $$; - --- --- Name: sync_issues_dates_with_work_item_dates_sources(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.sync_issues_dates_with_work_item_dates_sources() RETURNS trigger +CREATE FUNCTION sync_issues_dates_with_work_item_dates_sources() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -870,12 +657,7 @@ RETURN NULL; END $$; - --- --- Name: table_sync_function_0992e728d3(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.table_sync_function_0992e728d3() RETURNS trigger +CREATE FUNCTION table_sync_function_0992e728d3() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -916,19 +698,9 @@ RETURN NULL; END $$; +COMMENT ON FUNCTION table_sync_function_0992e728d3() IS 'Partitioning migration: table sync for merge_request_diff_commits table'; --- --- Name: FUNCTION table_sync_function_0992e728d3(); Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON FUNCTION public.table_sync_function_0992e728d3() IS 'Partitioning migration: table sync for merge_request_diff_commits table'; - - --- --- Name: table_sync_function_3f39f64fc3(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.table_sync_function_3f39f64fc3() RETURNS trigger +CREATE FUNCTION table_sync_function_3f39f64fc3() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -987,19 +759,9 @@ RETURN NULL; END $$; +COMMENT ON FUNCTION table_sync_function_3f39f64fc3() IS 'Partitioning migration: table sync for merge_request_diff_files table'; --- --- Name: FUNCTION table_sync_function_3f39f64fc3(); Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON FUNCTION public.table_sync_function_3f39f64fc3() IS 'Partitioning migration: table sync for merge_request_diff_files table'; - - --- --- Name: trigger_01b3fc052119(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_01b3fc052119() RETURNS trigger +CREATE FUNCTION trigger_01b3fc052119() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1015,12 +777,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_02450faab875(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_02450faab875() RETURNS trigger +CREATE FUNCTION trigger_02450faab875() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1036,12 +793,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_038fe84feff7(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_038fe84feff7() RETURNS trigger +CREATE FUNCTION trigger_038fe84feff7() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1057,12 +809,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_05ce163deddf(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_05ce163deddf() RETURNS trigger +CREATE FUNCTION trigger_05ce163deddf() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1078,12 +825,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_0a1b0adcf686(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_0a1b0adcf686() RETURNS trigger +CREATE FUNCTION trigger_0a1b0adcf686() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1099,12 +841,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_0da002390fdc(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_0da002390fdc() RETURNS trigger +CREATE FUNCTION trigger_0da002390fdc() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1120,12 +857,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_0e13f214e504(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_0e13f214e504() RETURNS trigger +CREATE FUNCTION trigger_0e13f214e504() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1141,12 +873,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_13d4aa8fe3dd(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_13d4aa8fe3dd() RETURNS trigger +CREATE FUNCTION trigger_13d4aa8fe3dd() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1162,12 +889,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_158ac875f254(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_158ac875f254() RETURNS trigger +CREATE FUNCTION trigger_158ac875f254() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1183,12 +905,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_174b23fa3dfb(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_174b23fa3dfb() RETURNS trigger +CREATE FUNCTION trigger_174b23fa3dfb() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1204,12 +921,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_18bc439a6741(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_18bc439a6741() RETURNS trigger +CREATE FUNCTION trigger_18bc439a6741() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1225,12 +937,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_1ed40f4d5f4e(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_1ed40f4d5f4e() RETURNS trigger +CREATE FUNCTION trigger_1ed40f4d5f4e() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1246,12 +953,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_206cbe2dc1a2(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_206cbe2dc1a2() RETURNS trigger +CREATE FUNCTION trigger_206cbe2dc1a2() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1267,12 +969,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_207005e8e995(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_207005e8e995() RETURNS trigger +CREATE FUNCTION trigger_207005e8e995() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1288,12 +985,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_219952df8fc4(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_219952df8fc4() RETURNS trigger +CREATE FUNCTION trigger_219952df8fc4() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1309,12 +1001,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_2514245c7fc5(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_2514245c7fc5() RETURNS trigger +CREATE FUNCTION trigger_2514245c7fc5() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1330,12 +1017,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_25c44c30884f(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_25c44c30884f() RETURNS trigger +CREATE FUNCTION trigger_25c44c30884f() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1351,12 +1033,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_25d35f02ab55(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_25d35f02ab55() RETURNS trigger +CREATE FUNCTION trigger_25d35f02ab55() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1372,12 +1049,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_25fe4f7da510(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_25fe4f7da510() RETURNS trigger +CREATE FUNCTION trigger_25fe4f7da510() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1393,12 +1065,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_2b8fdc9b4a4e(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_2b8fdc9b4a4e() RETURNS trigger +CREATE FUNCTION trigger_2b8fdc9b4a4e() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1414,12 +1081,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_3691f9f6a69f(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_3691f9f6a69f() RETURNS trigger +CREATE FUNCTION trigger_3691f9f6a69f() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1435,12 +1097,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_3fe922f4db67(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_3fe922f4db67() RETURNS trigger +CREATE FUNCTION trigger_3fe922f4db67() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1456,12 +1113,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_41eaf23bf547(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_41eaf23bf547() RETURNS trigger +CREATE FUNCTION trigger_41eaf23bf547() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1477,12 +1129,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_43484cb41aca(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_43484cb41aca() RETURNS trigger +CREATE FUNCTION trigger_43484cb41aca() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1498,12 +1145,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_44558add1625(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_44558add1625() RETURNS trigger +CREATE FUNCTION trigger_44558add1625() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1519,12 +1161,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_46ebe375f632(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_46ebe375f632() RETURNS trigger +CREATE FUNCTION trigger_46ebe375f632() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1540,12 +1177,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_49862b4b3035(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_49862b4b3035() RETURNS trigger +CREATE FUNCTION trigger_49862b4b3035() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1561,12 +1193,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_49e070da6320(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_49e070da6320() RETURNS trigger +CREATE FUNCTION trigger_49e070da6320() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1582,12 +1209,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_4ad9a52a6614(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_4ad9a52a6614() RETURNS trigger +CREATE FUNCTION trigger_4ad9a52a6614() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1603,12 +1225,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_4b43790d717f(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_4b43790d717f() RETURNS trigger +CREATE FUNCTION trigger_4b43790d717f() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1624,12 +1241,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_54707c384ad7(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_54707c384ad7() RETURNS trigger +CREATE FUNCTION trigger_54707c384ad7() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1645,12 +1257,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_56d49f4ed623(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_56d49f4ed623() RETURNS trigger +CREATE FUNCTION trigger_56d49f4ed623() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1666,12 +1273,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_57ad2742ac16(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_57ad2742ac16() RETURNS trigger +CREATE FUNCTION trigger_57ad2742ac16() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1687,12 +1289,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_5ca97b87ee30(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_5ca97b87ee30() RETURNS trigger +CREATE FUNCTION trigger_5ca97b87ee30() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1708,12 +1305,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_5f6432d2dccc(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_5f6432d2dccc() RETURNS trigger +CREATE FUNCTION trigger_5f6432d2dccc() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1729,12 +1321,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_664594a3d0a7(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_664594a3d0a7() RETURNS trigger +CREATE FUNCTION trigger_664594a3d0a7() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1750,12 +1337,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_68435a54ee2b(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_68435a54ee2b() RETURNS trigger +CREATE FUNCTION trigger_68435a54ee2b() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1771,12 +1353,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_6bf50b363152(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_6bf50b363152() RETURNS trigger +CREATE FUNCTION trigger_6bf50b363152() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1792,12 +1369,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_6c38ba395cc1(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_6c38ba395cc1() RETURNS trigger +CREATE FUNCTION trigger_6c38ba395cc1() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1813,12 +1385,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_6cdea9559242(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_6cdea9559242() RETURNS trigger +CREATE FUNCTION trigger_6cdea9559242() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1834,12 +1401,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_6d6c79ce74e1(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_6d6c79ce74e1() RETURNS trigger +CREATE FUNCTION trigger_6d6c79ce74e1() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1855,12 +1417,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_70d3f0bba1de(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_70d3f0bba1de() RETURNS trigger +CREATE FUNCTION trigger_70d3f0bba1de() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1876,12 +1433,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_740afa9807b8(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_740afa9807b8() RETURNS trigger +CREATE FUNCTION trigger_740afa9807b8() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1897,12 +1449,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_77d9fbad5b12(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_77d9fbad5b12() RETURNS trigger +CREATE FUNCTION trigger_77d9fbad5b12() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1918,12 +1465,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_7a8b08eed782(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_7a8b08eed782() RETURNS trigger +CREATE FUNCTION trigger_7a8b08eed782() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1939,12 +1481,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_7de792ddbc05(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_7de792ddbc05() RETURNS trigger +CREATE FUNCTION trigger_7de792ddbc05() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1960,12 +1497,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_84d67ad63e93(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_84d67ad63e93() RETURNS trigger +CREATE FUNCTION trigger_84d67ad63e93() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -1981,12 +1513,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_8a38ce2327de(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_8a38ce2327de() RETURNS trigger +CREATE FUNCTION trigger_8a38ce2327de() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2002,12 +1529,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_8ac78f164b2d(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_8ac78f164b2d() RETURNS trigger +CREATE FUNCTION trigger_8ac78f164b2d() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2023,12 +1545,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_8ba31bddd655(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_8ba31bddd655() RETURNS trigger +CREATE FUNCTION trigger_8ba31bddd655() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2044,12 +1561,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_8d002f38bdef(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_8d002f38bdef() RETURNS trigger +CREATE FUNCTION trigger_8d002f38bdef() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2065,12 +1577,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_8d17725116fe(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_8d17725116fe() RETURNS trigger +CREATE FUNCTION trigger_8d17725116fe() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2086,12 +1593,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_8e66b994e8f0(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_8e66b994e8f0() RETURNS trigger +CREATE FUNCTION trigger_8e66b994e8f0() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2107,12 +1609,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_8fbb044c64ad(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_8fbb044c64ad() RETURNS trigger +CREATE FUNCTION trigger_8fbb044c64ad() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2128,12 +1625,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_90fa5c6951f1(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_90fa5c6951f1() RETURNS trigger +CREATE FUNCTION trigger_90fa5c6951f1() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2149,12 +1641,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_9259aae92378(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_9259aae92378() RETURNS trigger +CREATE FUNCTION trigger_9259aae92378() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2170,12 +1657,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_94514aeadc50(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_94514aeadc50() RETURNS trigger +CREATE FUNCTION trigger_94514aeadc50() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2191,12 +1673,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_9699ea03bb37(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_9699ea03bb37() RETURNS trigger +CREATE FUNCTION trigger_9699ea03bb37() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2212,12 +1689,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_96a76ee9f147(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_96a76ee9f147() RETURNS trigger +CREATE FUNCTION trigger_96a76ee9f147() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2233,12 +1705,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_98ad3a4c1d35(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_98ad3a4c1d35() RETURNS trigger +CREATE FUNCTION trigger_98ad3a4c1d35() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2254,12 +1721,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_9e137c16de79(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_9e137c16de79() RETURNS trigger +CREATE FUNCTION trigger_9e137c16de79() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2275,12 +1737,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_9f3745f8fe32(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_9f3745f8fe32() RETURNS trigger +CREATE FUNCTION trigger_9f3745f8fe32() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2296,12 +1753,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_a1bc7c70cbdf(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_a1bc7c70cbdf() RETURNS trigger +CREATE FUNCTION trigger_a1bc7c70cbdf() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2317,12 +1769,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_a253cb3cacdf(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_a253cb3cacdf() RETURNS trigger +CREATE FUNCTION trigger_a253cb3cacdf() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2338,12 +1785,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_a4e4fb2451d9(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_a4e4fb2451d9() RETURNS trigger +CREATE FUNCTION trigger_a4e4fb2451d9() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2359,12 +1801,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_a7e0fb195210(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_a7e0fb195210() RETURNS trigger +CREATE FUNCTION trigger_a7e0fb195210() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2380,12 +1817,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_af3f17817e4d(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_af3f17817e4d() RETURNS trigger +CREATE FUNCTION trigger_af3f17817e4d() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2401,12 +1833,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_b2612138515d(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_b2612138515d() RETURNS trigger +CREATE FUNCTION trigger_b2612138515d() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2422,12 +1849,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_b4520c29ea74(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_b4520c29ea74() RETURNS trigger +CREATE FUNCTION trigger_b4520c29ea74() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2443,12 +1865,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_c17a166692a2(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_c17a166692a2() RETURNS trigger +CREATE FUNCTION trigger_c17a166692a2() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2464,12 +1881,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_c59fe6f31e71(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_c59fe6f31e71() RETURNS trigger +CREATE FUNCTION trigger_c59fe6f31e71() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2485,12 +1897,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_c5eec113ea76(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_c5eec113ea76() RETURNS trigger +CREATE FUNCTION trigger_c5eec113ea76() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2506,12 +1913,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_c8bc8646bce9(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_c8bc8646bce9() RETURNS trigger +CREATE FUNCTION trigger_c8bc8646bce9() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2527,12 +1929,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_c9090feed334(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_c9090feed334() RETURNS trigger +CREATE FUNCTION trigger_c9090feed334() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2548,12 +1945,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_cac7c0698291(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_cac7c0698291() RETURNS trigger +CREATE FUNCTION trigger_cac7c0698291() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2569,12 +1961,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_d4487a75bd44(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_d4487a75bd44() RETURNS trigger +CREATE FUNCTION trigger_d4487a75bd44() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2590,12 +1977,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_d5c895007948(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_d5c895007948() RETURNS trigger +CREATE FUNCTION trigger_d5c895007948() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2611,12 +1993,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_dadd660afe2c(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_dadd660afe2c() RETURNS trigger +CREATE FUNCTION trigger_dadd660afe2c() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2632,12 +2009,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_dbdd61a66a91(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_dbdd61a66a91() RETURNS trigger +CREATE FUNCTION trigger_dbdd61a66a91() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2653,12 +2025,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_dc13168b8025(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_dc13168b8025() RETURNS trigger +CREATE FUNCTION trigger_dc13168b8025() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2674,12 +2041,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_e0864d1cff37(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_e0864d1cff37() RETURNS trigger +CREATE FUNCTION trigger_e0864d1cff37() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2695,12 +2057,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_e1da4a738230(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_e1da4a738230() RETURNS trigger +CREATE FUNCTION trigger_e1da4a738230() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2716,12 +2073,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_e49ab4d904a0(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_e49ab4d904a0() RETURNS trigger +CREATE FUNCTION trigger_e49ab4d904a0() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2737,12 +2089,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_ebab34f83f1d(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_ebab34f83f1d() RETURNS trigger +CREATE FUNCTION trigger_ebab34f83f1d() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2758,12 +2105,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_f6c61cdddf31(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_f6c61cdddf31() RETURNS trigger +CREATE FUNCTION trigger_f6c61cdddf31() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2779,12 +2121,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_f6f59d8216b3(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_f6f59d8216b3() RETURNS trigger +CREATE FUNCTION trigger_f6f59d8216b3() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2800,12 +2137,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_fbd42ed69453(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_fbd42ed69453() RETURNS trigger +CREATE FUNCTION trigger_fbd42ed69453() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2821,12 +2153,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_fbd8825b3057(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_fbd8825b3057() RETURNS trigger +CREATE FUNCTION trigger_fbd8825b3057() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2842,12 +2169,7 @@ RETURN NEW; END $$; - --- --- Name: trigger_ff16c1fd43ea(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_ff16c1fd43ea() RETURNS trigger +CREATE FUNCTION trigger_ff16c1fd43ea() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2856,12 +2178,7 @@ BEGIN END; $$; - --- --- Name: trigger_fff8735b6b9a(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.trigger_fff8735b6b9a() RETURNS trigger +CREATE FUNCTION trigger_fff8735b6b9a() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2877,12 +2194,7 @@ RETURN NEW; END $$; - --- --- Name: unset_has_issues_on_vulnerability_reads(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.unset_has_issues_on_vulnerability_reads() RETURNS trigger +CREATE FUNCTION unset_has_issues_on_vulnerability_reads() RETURNS trigger LANGUAGE plpgsql AS $$ DECLARE @@ -2912,12 +2224,7 @@ BEGIN END $$; - --- --- Name: unset_has_merge_request_on_vulnerability_reads(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.unset_has_merge_request_on_vulnerability_reads() RETURNS trigger +CREATE FUNCTION unset_has_merge_request_on_vulnerability_reads() RETURNS trigger LANGUAGE plpgsql AS $$ DECLARE @@ -2947,12 +2254,7 @@ BEGIN END $$; - --- --- Name: update_location_from_vulnerability_occurrences(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.update_location_from_vulnerability_occurrences() RETURNS trigger +CREATE FUNCTION update_location_from_vulnerability_occurrences() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -2969,12 +2271,7 @@ RETURN NULL; END $$; - --- --- Name: update_namespace_details_from_namespaces(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.update_namespace_details_from_namespaces() RETURNS trigger +CREATE FUNCTION update_namespace_details_from_namespaces() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -3008,12 +2305,7 @@ WHERE END $$; - --- --- Name: update_namespace_details_from_projects(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.update_namespace_details_from_projects() RETURNS trigger +CREATE FUNCTION update_namespace_details_from_projects() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -3047,12 +2339,7 @@ WHERE END $$; - --- --- Name: update_vulnerability_reads_from_vulnerability(); Type: FUNCTION; Schema: public; Owner: - --- - -CREATE FUNCTION public.update_vulnerability_reads_from_vulnerability() RETURNS trigger +CREATE FUNCTION update_vulnerability_reads_from_vulnerability() RETURNS trigger LANGUAGE plpgsql AS $$ BEGIN @@ -3068,12 +2355,7 @@ RETURN NULL; END $$; - --- --- Name: audit_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.audit_events ( +CREATE TABLE audit_events ( id bigint NOT NULL, author_id integer NOT NULL, entity_id integer NOT NULL, @@ -3093,12 +2375,7 @@ CREATE TABLE public.audit_events ( ) PARTITION BY RANGE (created_at); - --- --- Name: batched_background_migration_job_transition_logs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.batched_background_migration_job_transition_logs ( +CREATE TABLE batched_background_migration_job_transition_logs ( id bigint NOT NULL, batched_background_migration_job_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -3112,12 +2389,7 @@ CREATE TABLE public.batched_background_migration_job_transition_logs ( ) PARTITION BY RANGE (created_at); - --- --- Name: p_ci_build_names; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.p_ci_build_names ( +CREATE TABLE p_ci_build_names ( build_id bigint NOT NULL, partition_id bigint NOT NULL, project_id bigint NOT NULL, @@ -3127,12 +2399,7 @@ CREATE TABLE public.p_ci_build_names ( ) PARTITION BY LIST (partition_id); - --- --- Name: p_ci_build_sources; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.p_ci_build_sources ( +CREATE TABLE p_ci_build_sources ( build_id bigint NOT NULL, partition_id bigint NOT NULL, project_id bigint NOT NULL, @@ -3140,12 +2407,7 @@ CREATE TABLE public.p_ci_build_sources ( ) PARTITION BY LIST (partition_id); - --- --- Name: p_ci_build_tags; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.p_ci_build_tags ( +CREATE TABLE p_ci_build_tags ( id bigint NOT NULL, tag_id bigint NOT NULL, build_id bigint NOT NULL, @@ -3154,12 +2416,7 @@ CREATE TABLE public.p_ci_build_tags ( ) PARTITION BY LIST (partition_id); - --- --- Name: p_ci_builds; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.p_ci_builds ( +CREATE TABLE p_ci_builds ( status character varying, finished_at timestamp without time zone, created_at timestamp without time zone, @@ -3212,12 +2469,7 @@ CREATE TABLE public.p_ci_builds ( ) PARTITION BY LIST (partition_id); - --- --- Name: p_ci_builds_execution_configs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.p_ci_builds_execution_configs ( +CREATE TABLE p_ci_builds_execution_configs ( id bigint NOT NULL, partition_id bigint NOT NULL, project_id bigint NOT NULL, @@ -3226,12 +2478,7 @@ CREATE TABLE public.p_ci_builds_execution_configs ( ) PARTITION BY LIST (partition_id); - --- --- Name: p_ci_builds_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.p_ci_builds_metadata ( +CREATE TABLE p_ci_builds_metadata ( project_id integer NOT NULL, timeout integer, timeout_source integer DEFAULT 1 NOT NULL, @@ -3252,12 +2499,7 @@ CREATE TABLE public.p_ci_builds_metadata ( ) PARTITION BY LIST (partition_id); - --- --- Name: p_ci_job_annotations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.p_ci_job_annotations ( +CREATE TABLE p_ci_job_annotations ( id bigint NOT NULL, partition_id bigint NOT NULL, job_id bigint NOT NULL, @@ -3268,12 +2510,7 @@ CREATE TABLE public.p_ci_job_annotations ( ) PARTITION BY LIST (partition_id); - --- --- Name: p_ci_job_artifacts; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.p_ci_job_artifacts ( +CREATE TABLE p_ci_job_artifacts ( project_id integer NOT NULL, file_type integer NOT NULL, size bigint, @@ -3296,12 +2533,7 @@ CREATE TABLE public.p_ci_job_artifacts ( ) PARTITION BY LIST (partition_id); - --- --- Name: p_ci_pipeline_variables; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.p_ci_pipeline_variables ( +CREATE TABLE p_ci_pipeline_variables ( key character varying NOT NULL, value text, encrypted_value text, @@ -3315,24 +2547,14 @@ CREATE TABLE public.p_ci_pipeline_variables ( ) PARTITION BY LIST (partition_id); - --- --- Name: p_ci_runner_machine_builds; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.p_ci_runner_machine_builds ( +CREATE TABLE p_ci_runner_machine_builds ( partition_id bigint NOT NULL, build_id bigint NOT NULL, runner_machine_id bigint NOT NULL ) PARTITION BY LIST (partition_id); - --- --- Name: p_ci_stages; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.p_ci_stages ( +CREATE TABLE p_ci_stages ( project_id integer, created_at timestamp without time zone, updated_at timestamp without time zone, @@ -3347,25 +2569,15 @@ CREATE TABLE public.p_ci_stages ( ) PARTITION BY LIST (partition_id); - --- --- Name: shared_audit_event_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.shared_audit_event_id_seq +CREATE SEQUENCE shared_audit_event_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; - --- --- Name: group_audit_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.group_audit_events ( - id bigint DEFAULT nextval('public.shared_audit_event_id_seq'::regclass) NOT NULL, +CREATE TABLE group_audit_events ( + id bigint DEFAULT nextval('shared_audit_event_id_seq'::regclass) NOT NULL, created_at timestamp with time zone NOT NULL, group_id bigint NOT NULL, author_id bigint NOT NULL, @@ -3385,12 +2597,7 @@ CREATE TABLE public.group_audit_events ( ) PARTITION BY RANGE (created_at); - --- --- Name: groups_visits; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.groups_visits ( +CREATE TABLE groups_visits ( id bigint NOT NULL, entity_id bigint NOT NULL, user_id bigint NOT NULL, @@ -3398,12 +2605,7 @@ CREATE TABLE public.groups_visits ( ) PARTITION BY RANGE (visited_at); - --- --- Name: incident_management_pending_alert_escalations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.incident_management_pending_alert_escalations ( +CREATE TABLE incident_management_pending_alert_escalations ( id bigint NOT NULL, rule_id bigint NOT NULL, alert_id bigint NOT NULL, @@ -3413,12 +2615,7 @@ CREATE TABLE public.incident_management_pending_alert_escalations ( ) PARTITION BY RANGE (process_at); - --- --- Name: incident_management_pending_issue_escalations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.incident_management_pending_issue_escalations ( +CREATE TABLE incident_management_pending_issue_escalations ( id bigint NOT NULL, rule_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3428,13 +2625,8 @@ CREATE TABLE public.incident_management_pending_issue_escalations ( ) PARTITION BY RANGE (process_at); - --- --- Name: instance_audit_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.instance_audit_events ( - id bigint DEFAULT nextval('public.shared_audit_event_id_seq'::regclass) NOT NULL, +CREATE TABLE instance_audit_events ( + id bigint DEFAULT nextval('shared_audit_event_id_seq'::regclass) NOT NULL, created_at timestamp with time zone NOT NULL, author_id bigint NOT NULL, target_id bigint, @@ -3453,12 +2645,7 @@ CREATE TABLE public.instance_audit_events ( ) PARTITION BY RANGE (created_at); - --- --- Name: loose_foreign_keys_deleted_records; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.loose_foreign_keys_deleted_records ( +CREATE TABLE loose_foreign_keys_deleted_records ( id bigint NOT NULL, partition bigint DEFAULT 1 NOT NULL, primary_key_value bigint NOT NULL, @@ -3471,12 +2658,7 @@ CREATE TABLE public.loose_foreign_keys_deleted_records ( ) PARTITION BY LIST (partition); - --- --- Name: merge_request_diff_commits_b5377a7a34; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_request_diff_commits_b5377a7a34 ( +CREATE TABLE merge_request_diff_commits_b5377a7a34 ( authored_date timestamp without time zone, committed_date timestamp without time zone, sha bytea NOT NULL, @@ -3490,12 +2672,7 @@ CREATE TABLE public.merge_request_diff_commits_b5377a7a34 ( ) PARTITION BY RANGE (merge_request_diff_id); - --- --- Name: merge_request_diff_files_99208b8fac; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_request_diff_files_99208b8fac ( +CREATE TABLE merge_request_diff_files_99208b8fac ( new_file boolean NOT NULL, renamed_file boolean NOT NULL, deleted_file boolean NOT NULL, @@ -3515,12 +2692,7 @@ CREATE TABLE public.merge_request_diff_files_99208b8fac ( ) PARTITION BY RANGE (merge_request_diff_id); - --- --- Name: p_batched_git_ref_updates_deletions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.p_batched_git_ref_updates_deletions ( +CREATE TABLE p_batched_git_ref_updates_deletions ( id bigint NOT NULL, project_id bigint NOT NULL, partition_id bigint DEFAULT 1 NOT NULL, @@ -3532,12 +2704,7 @@ CREATE TABLE public.p_batched_git_ref_updates_deletions ( ) PARTITION BY LIST (partition_id); - --- --- Name: p_catalog_resource_component_usages; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.p_catalog_resource_component_usages ( +CREATE TABLE p_catalog_resource_component_usages ( id bigint NOT NULL, component_id bigint NOT NULL, catalog_resource_id bigint NOT NULL, @@ -3547,12 +2714,7 @@ CREATE TABLE public.p_catalog_resource_component_usages ( ) PARTITION BY RANGE (used_date); - --- --- Name: p_catalog_resource_sync_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.p_catalog_resource_sync_events ( +CREATE TABLE p_catalog_resource_sync_events ( id bigint NOT NULL, catalog_resource_id bigint NOT NULL, project_id bigint NOT NULL, @@ -3563,12 +2725,7 @@ CREATE TABLE public.p_catalog_resource_sync_events ( ) PARTITION BY LIST (partition_id); - --- --- Name: p_ci_finished_build_ch_sync_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.p_ci_finished_build_ch_sync_events ( +CREATE TABLE p_ci_finished_build_ch_sync_events ( build_id bigint NOT NULL, partition bigint DEFAULT 1 NOT NULL, build_finished_at timestamp without time zone NOT NULL, @@ -3576,12 +2733,7 @@ CREATE TABLE public.p_ci_finished_build_ch_sync_events ( ) PARTITION BY LIST (partition); - --- --- Name: p_ci_finished_pipeline_ch_sync_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.p_ci_finished_pipeline_ch_sync_events ( +CREATE TABLE p_ci_finished_pipeline_ch_sync_events ( pipeline_id bigint NOT NULL, project_namespace_id bigint NOT NULL, partition bigint DEFAULT 1 NOT NULL, @@ -3590,13 +2742,8 @@ CREATE TABLE public.p_ci_finished_pipeline_ch_sync_events ( ) PARTITION BY LIST (partition); - --- --- Name: project_audit_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_audit_events ( - id bigint DEFAULT nextval('public.shared_audit_event_id_seq'::regclass) NOT NULL, +CREATE TABLE project_audit_events ( + id bigint DEFAULT nextval('shared_audit_event_id_seq'::regclass) NOT NULL, created_at timestamp with time zone NOT NULL, project_id bigint NOT NULL, author_id bigint NOT NULL, @@ -3616,12 +2763,7 @@ CREATE TABLE public.project_audit_events ( ) PARTITION BY RANGE (created_at); - --- --- Name: projects_visits; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.projects_visits ( +CREATE TABLE projects_visits ( id bigint NOT NULL, entity_id bigint NOT NULL, user_id bigint NOT NULL, @@ -3629,12 +2771,7 @@ CREATE TABLE public.projects_visits ( ) PARTITION BY RANGE (visited_at); - --- --- Name: security_findings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.security_findings ( +CREATE TABLE security_findings ( id bigint NOT NULL, scan_id bigint NOT NULL, scanner_id bigint NOT NULL, @@ -3651,13 +2788,8 @@ CREATE TABLE public.security_findings ( ) PARTITION BY LIST (partition_number); - --- --- Name: user_audit_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_audit_events ( - id bigint DEFAULT nextval('public.shared_audit_event_id_seq'::regclass) NOT NULL, +CREATE TABLE user_audit_events ( + id bigint DEFAULT nextval('shared_audit_event_id_seq'::regclass) NOT NULL, created_at timestamp with time zone NOT NULL, user_id bigint NOT NULL, author_id bigint NOT NULL, @@ -3677,12 +2809,7 @@ CREATE TABLE public.user_audit_events ( ) PARTITION BY RANGE (created_at); - --- --- Name: value_stream_dashboard_counts; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.value_stream_dashboard_counts ( +CREATE TABLE value_stream_dashboard_counts ( id bigint NOT NULL, namespace_id bigint NOT NULL, count bigint NOT NULL, @@ -3691,12 +2818,7 @@ CREATE TABLE public.value_stream_dashboard_counts ( ) PARTITION BY RANGE (recorded_at); - --- --- Name: verification_codes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.verification_codes ( +CREATE TABLE verification_codes ( created_at timestamp with time zone DEFAULT now() NOT NULL, visitor_id_code text NOT NULL, code text NOT NULL, @@ -3707,19 +2829,9 @@ CREATE TABLE public.verification_codes ( ) PARTITION BY RANGE (created_at); +COMMENT ON TABLE verification_codes IS 'JiHu-specific table'; --- --- Name: TABLE verification_codes; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON TABLE public.verification_codes IS 'JiHu-specific table'; - - --- --- Name: web_hook_logs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.web_hook_logs ( +CREATE TABLE web_hook_logs ( id bigint NOT NULL, web_hook_id integer NOT NULL, trigger character varying, @@ -3737,12 +2849,7 @@ CREATE TABLE public.web_hook_logs ( ) PARTITION BY RANGE (created_at); - --- --- Name: zoekt_tasks; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.zoekt_tasks ( +CREATE TABLE zoekt_tasks ( id bigint NOT NULL, partition_id bigint DEFAULT 1 NOT NULL, zoekt_node_id bigint NOT NULL, @@ -3758,12 +2865,7 @@ CREATE TABLE public.zoekt_tasks ( ) PARTITION BY LIST (partition_id); - --- --- Name: analytics_cycle_analytics_issue_stage_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.analytics_cycle_analytics_issue_stage_events ( +CREATE TABLE analytics_cycle_analytics_issue_stage_events ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, group_id bigint NOT NULL, @@ -3779,11 +2881,6 @@ CREATE TABLE public.analytics_cycle_analytics_issue_stage_events ( ) PARTITION BY HASH (stage_event_hash_id); - --- --- Name: analytics_cycle_analytics_issue_stage_events_00; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3799,11 +2896,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_01; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3819,11 +2911,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_02; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3839,11 +2926,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_03; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3859,11 +2941,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_04; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3879,11 +2956,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_05; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3899,11 +2971,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_06; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3919,11 +2986,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_07; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3939,11 +3001,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_08; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3959,11 +3016,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_09; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3979,11 +3031,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_10; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -3999,11 +3046,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_11; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4019,11 +3061,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_12; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4039,11 +3076,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_13; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4059,11 +3091,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_14; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4079,11 +3106,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_15; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4099,11 +3121,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_16; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4119,11 +3136,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_17; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4139,11 +3151,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_18; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4159,11 +3166,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_19; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4179,11 +3181,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_20; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4199,11 +3196,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_21; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4219,11 +3211,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_22; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4239,11 +3226,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_23; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4259,11 +3241,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_24; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4279,11 +3256,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_25; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4299,11 +3271,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_26; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4319,11 +3286,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_27; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4339,11 +3301,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_28; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4359,11 +3316,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_29; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4379,11 +3331,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_30; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4399,11 +3346,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_issue_stage_events_31; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 ( stage_event_hash_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -4419,12 +3361,7 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_issue_stage_even duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.analytics_cycle_analytics_merge_request_stage_events ( +CREATE TABLE analytics_cycle_analytics_merge_request_stage_events ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, group_id bigint NOT NULL, @@ -4438,11 +3375,6 @@ CREATE TABLE public.analytics_cycle_analytics_merge_request_stage_events ( ) PARTITION BY HASH (stage_event_hash_id); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_00; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4456,11 +3388,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_01; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4474,11 +3401,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_02; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4492,11 +3414,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_03; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4510,11 +3427,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_04; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4528,11 +3440,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_05; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4546,11 +3453,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_06; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4564,11 +3466,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_07; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4582,11 +3479,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_08; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4600,11 +3492,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_09; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4618,11 +3505,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_10; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4636,11 +3518,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_11; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4654,11 +3531,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_12; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4672,11 +3544,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_13; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4690,11 +3557,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_14; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4708,11 +3570,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_15; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4726,11 +3583,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_16; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4744,11 +3596,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_17; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4762,11 +3609,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_18; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4780,11 +3622,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_19; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4798,11 +3635,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_20; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4816,11 +3648,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_21; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4834,11 +3661,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_22; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4852,11 +3674,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_23; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4870,11 +3687,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_24; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4888,11 +3700,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_25; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4906,11 +3713,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_26; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4924,11 +3726,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_27; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4942,11 +3739,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_28; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4960,11 +3752,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_29; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4978,11 +3765,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_30; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -4996,11 +3778,6 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_31; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 ( stage_event_hash_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -5014,12 +3791,7 @@ CREATE TABLE gitlab_partitions_static.analytics_cycle_analytics_merge_request_st duration_in_milliseconds bigint ); - --- --- Name: issue_search_data; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.issue_search_data ( +CREATE TABLE issue_search_data ( project_id bigint NOT NULL, issue_id bigint NOT NULL, created_at timestamp with time zone DEFAULT now() NOT NULL, @@ -5029,11 +3801,6 @@ CREATE TABLE public.issue_search_data ( ) PARTITION BY HASH (project_id); - --- --- Name: issue_search_data_00; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_00 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5043,11 +3810,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_00 ( namespace_id bigint ); - --- --- Name: issue_search_data_01; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_01 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5057,11 +3819,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_01 ( namespace_id bigint ); - --- --- Name: issue_search_data_02; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_02 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5071,11 +3828,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_02 ( namespace_id bigint ); - --- --- Name: issue_search_data_03; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_03 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5085,11 +3837,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_03 ( namespace_id bigint ); - --- --- Name: issue_search_data_04; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_04 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5099,11 +3846,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_04 ( namespace_id bigint ); - --- --- Name: issue_search_data_05; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_05 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5113,11 +3855,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_05 ( namespace_id bigint ); - --- --- Name: issue_search_data_06; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_06 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5127,11 +3864,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_06 ( namespace_id bigint ); - --- --- Name: issue_search_data_07; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_07 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5141,11 +3873,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_07 ( namespace_id bigint ); - --- --- Name: issue_search_data_08; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_08 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5155,11 +3882,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_08 ( namespace_id bigint ); - --- --- Name: issue_search_data_09; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_09 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5169,11 +3891,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_09 ( namespace_id bigint ); - --- --- Name: issue_search_data_10; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_10 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5183,11 +3900,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_10 ( namespace_id bigint ); - --- --- Name: issue_search_data_11; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_11 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5197,11 +3909,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_11 ( namespace_id bigint ); - --- --- Name: issue_search_data_12; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_12 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5211,11 +3918,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_12 ( namespace_id bigint ); - --- --- Name: issue_search_data_13; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_13 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5225,11 +3927,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_13 ( namespace_id bigint ); - --- --- Name: issue_search_data_14; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_14 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5239,11 +3936,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_14 ( namespace_id bigint ); - --- --- Name: issue_search_data_15; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_15 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5253,11 +3945,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_15 ( namespace_id bigint ); - --- --- Name: issue_search_data_16; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_16 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5267,11 +3954,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_16 ( namespace_id bigint ); - --- --- Name: issue_search_data_17; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_17 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5281,11 +3963,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_17 ( namespace_id bigint ); - --- --- Name: issue_search_data_18; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_18 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5295,11 +3972,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_18 ( namespace_id bigint ); - --- --- Name: issue_search_data_19; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_19 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5309,11 +3981,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_19 ( namespace_id bigint ); - --- --- Name: issue_search_data_20; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_20 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5323,11 +3990,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_20 ( namespace_id bigint ); - --- --- Name: issue_search_data_21; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_21 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5337,11 +3999,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_21 ( namespace_id bigint ); - --- --- Name: issue_search_data_22; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_22 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5351,11 +4008,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_22 ( namespace_id bigint ); - --- --- Name: issue_search_data_23; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_23 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5365,11 +4017,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_23 ( namespace_id bigint ); - --- --- Name: issue_search_data_24; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_24 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5379,11 +4026,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_24 ( namespace_id bigint ); - --- --- Name: issue_search_data_25; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_25 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5393,11 +4035,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_25 ( namespace_id bigint ); - --- --- Name: issue_search_data_26; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_26 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5407,11 +4044,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_26 ( namespace_id bigint ); - --- --- Name: issue_search_data_27; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_27 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5421,11 +4053,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_27 ( namespace_id bigint ); - --- --- Name: issue_search_data_28; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_28 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5435,11 +4062,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_28 ( namespace_id bigint ); - --- --- Name: issue_search_data_29; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_29 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5449,11 +4071,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_29 ( namespace_id bigint ); - --- --- Name: issue_search_data_30; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_30 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5463,11 +4080,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_30 ( namespace_id bigint ); - --- --- Name: issue_search_data_31; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_31 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5477,11 +4089,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_31 ( namespace_id bigint ); - --- --- Name: issue_search_data_32; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_32 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5491,11 +4098,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_32 ( namespace_id bigint ); - --- --- Name: issue_search_data_33; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_33 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5505,11 +4107,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_33 ( namespace_id bigint ); - --- --- Name: issue_search_data_34; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_34 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5519,11 +4116,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_34 ( namespace_id bigint ); - --- --- Name: issue_search_data_35; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_35 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5533,11 +4125,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_35 ( namespace_id bigint ); - --- --- Name: issue_search_data_36; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_36 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5547,11 +4134,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_36 ( namespace_id bigint ); - --- --- Name: issue_search_data_37; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_37 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5561,11 +4143,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_37 ( namespace_id bigint ); - --- --- Name: issue_search_data_38; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_38 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5575,11 +4152,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_38 ( namespace_id bigint ); - --- --- Name: issue_search_data_39; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_39 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5589,11 +4161,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_39 ( namespace_id bigint ); - --- --- Name: issue_search_data_40; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_40 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5603,11 +4170,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_40 ( namespace_id bigint ); - --- --- Name: issue_search_data_41; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_41 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5617,11 +4179,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_41 ( namespace_id bigint ); - --- --- Name: issue_search_data_42; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_42 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5631,11 +4188,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_42 ( namespace_id bigint ); - --- --- Name: issue_search_data_43; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_43 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5645,11 +4197,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_43 ( namespace_id bigint ); - --- --- Name: issue_search_data_44; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_44 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5659,11 +4206,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_44 ( namespace_id bigint ); - --- --- Name: issue_search_data_45; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_45 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5673,11 +4215,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_45 ( namespace_id bigint ); - --- --- Name: issue_search_data_46; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_46 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5687,11 +4224,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_46 ( namespace_id bigint ); - --- --- Name: issue_search_data_47; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_47 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5701,11 +4233,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_47 ( namespace_id bigint ); - --- --- Name: issue_search_data_48; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_48 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5715,11 +4242,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_48 ( namespace_id bigint ); - --- --- Name: issue_search_data_49; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_49 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5729,11 +4251,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_49 ( namespace_id bigint ); - --- --- Name: issue_search_data_50; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_50 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5743,11 +4260,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_50 ( namespace_id bigint ); - --- --- Name: issue_search_data_51; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_51 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5757,11 +4269,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_51 ( namespace_id bigint ); - --- --- Name: issue_search_data_52; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_52 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5771,11 +4278,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_52 ( namespace_id bigint ); - --- --- Name: issue_search_data_53; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_53 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5785,11 +4287,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_53 ( namespace_id bigint ); - --- --- Name: issue_search_data_54; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_54 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5799,11 +4296,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_54 ( namespace_id bigint ); - --- --- Name: issue_search_data_55; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_55 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5813,11 +4305,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_55 ( namespace_id bigint ); - --- --- Name: issue_search_data_56; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_56 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5827,11 +4314,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_56 ( namespace_id bigint ); - --- --- Name: issue_search_data_57; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_57 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5841,11 +4323,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_57 ( namespace_id bigint ); - --- --- Name: issue_search_data_58; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_58 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5855,11 +4332,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_58 ( namespace_id bigint ); - --- --- Name: issue_search_data_59; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_59 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5869,11 +4341,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_59 ( namespace_id bigint ); - --- --- Name: issue_search_data_60; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_60 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5883,11 +4350,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_60 ( namespace_id bigint ); - --- --- Name: issue_search_data_61; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_61 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5897,11 +4359,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_61 ( namespace_id bigint ); - --- --- Name: issue_search_data_62; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_62 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5911,11 +4368,6 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_62 ( namespace_id bigint ); - --- --- Name: issue_search_data_63; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.issue_search_data_63 ( project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -5925,12 +4377,7 @@ CREATE TABLE gitlab_partitions_static.issue_search_data_63 ( namespace_id bigint ); - --- --- Name: namespace_descendants; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.namespace_descendants ( +CREATE TABLE namespace_descendants ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, all_project_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -5940,11 +4387,6 @@ CREATE TABLE public.namespace_descendants ( ) PARTITION BY HASH (namespace_id); - --- --- Name: namespace_descendants_00; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_00 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -5954,11 +4396,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_00 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_01; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_01 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -5968,11 +4405,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_01 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_02; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_02 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -5982,11 +4414,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_02 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_03; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_03 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -5996,11 +4423,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_03 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_04; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_04 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6010,11 +4432,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_04 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_05; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_05 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6024,11 +4441,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_05 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_06; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_06 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6038,11 +4450,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_06 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_07; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_07 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6052,11 +4459,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_07 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_08; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_08 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6066,11 +4468,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_08 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_09; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_09 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6080,11 +4477,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_09 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_10; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_10 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6094,11 +4486,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_10 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_11; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_11 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6108,11 +4495,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_11 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_12; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_12 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6122,11 +4504,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_12 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_13; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_13 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6136,11 +4513,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_13 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_14; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_14 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6150,11 +4522,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_14 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_15; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_15 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6164,11 +4531,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_15 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_16; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_16 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6178,11 +4540,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_16 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_17; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_17 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6192,11 +4549,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_17 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_18; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_18 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6206,11 +4558,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_18 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_19; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_19 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6220,11 +4567,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_19 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_20; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_20 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6234,11 +4576,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_20 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_21; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_21 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6248,11 +4585,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_21 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_22; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_22 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6262,11 +4594,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_22 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_23; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_23 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6276,11 +4603,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_23 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_24; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_24 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6290,11 +4612,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_24 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_25; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_25 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6304,11 +4621,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_25 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_26; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_26 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6318,11 +4630,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_26 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_27; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_27 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6332,11 +4639,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_27 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_28; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_28 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6346,11 +4648,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_28 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_29; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_29 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6360,11 +4657,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_29 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_30; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_30 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6374,11 +4666,6 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_30 ( calculated_at timestamp with time zone ); - --- --- Name: namespace_descendants_31; Type: TABLE; Schema: gitlab_partitions_static; Owner: - --- - CREATE TABLE gitlab_partitions_static.namespace_descendants_31 ( namespace_id bigint NOT NULL, self_and_descendant_group_ids bigint[] DEFAULT ARRAY[]::bigint[] NOT NULL, @@ -6388,12 +4675,7 @@ CREATE TABLE gitlab_partitions_static.namespace_descendants_31 ( calculated_at timestamp with time zone ); - --- --- Name: abuse_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.abuse_events ( +CREATE TABLE abuse_events ( id bigint NOT NULL, user_id bigint, created_at timestamp with time zone NOT NULL, @@ -6404,31 +4686,16 @@ CREATE TABLE public.abuse_events ( metadata jsonb ); - --- --- Name: abuse_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.abuse_events_id_seq +CREATE SEQUENCE abuse_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE abuse_events_id_seq OWNED BY abuse_events.id; --- --- Name: abuse_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.abuse_events_id_seq OWNED BY public.abuse_events.id; - - --- --- Name: abuse_report_assignees; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.abuse_report_assignees ( +CREATE TABLE abuse_report_assignees ( id bigint NOT NULL, user_id bigint NOT NULL, abuse_report_id bigint NOT NULL, @@ -6436,31 +4703,16 @@ CREATE TABLE public.abuse_report_assignees ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: abuse_report_assignees_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.abuse_report_assignees_id_seq +CREATE SEQUENCE abuse_report_assignees_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE abuse_report_assignees_id_seq OWNED BY abuse_report_assignees.id; --- --- Name: abuse_report_assignees_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.abuse_report_assignees_id_seq OWNED BY public.abuse_report_assignees.id; - - --- --- Name: abuse_report_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.abuse_report_events ( +CREATE TABLE abuse_report_events ( id bigint NOT NULL, abuse_report_id bigint NOT NULL, user_id bigint, @@ -6471,31 +4723,16 @@ CREATE TABLE public.abuse_report_events ( CONSTRAINT check_bb4cd85618 CHECK ((char_length(comment) <= 1024)) ); - --- --- Name: abuse_report_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.abuse_report_events_id_seq +CREATE SEQUENCE abuse_report_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE abuse_report_events_id_seq OWNED BY abuse_report_events.id; --- --- Name: abuse_report_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.abuse_report_events_id_seq OWNED BY public.abuse_report_events.id; - - --- --- Name: abuse_report_notes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.abuse_report_notes ( +CREATE TABLE abuse_report_notes ( id bigint NOT NULL, abuse_report_id bigint NOT NULL, author_id bigint NOT NULL, @@ -6516,31 +4753,16 @@ CREATE TABLE public.abuse_report_notes ( CONSTRAINT check_21b51956e3 CHECK ((char_length(note_html) <= 20000)) ); - --- --- Name: abuse_report_notes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.abuse_report_notes_id_seq +CREATE SEQUENCE abuse_report_notes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE abuse_report_notes_id_seq OWNED BY abuse_report_notes.id; --- --- Name: abuse_report_notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.abuse_report_notes_id_seq OWNED BY public.abuse_report_notes.id; - - --- --- Name: abuse_report_user_mentions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.abuse_report_user_mentions ( +CREATE TABLE abuse_report_user_mentions ( id bigint NOT NULL, abuse_report_id bigint NOT NULL, note_id bigint NOT NULL, @@ -6549,31 +4771,16 @@ CREATE TABLE public.abuse_report_user_mentions ( mentioned_groups_ids bigint[] ); - --- --- Name: abuse_report_user_mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.abuse_report_user_mentions_id_seq +CREATE SEQUENCE abuse_report_user_mentions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE abuse_report_user_mentions_id_seq OWNED BY abuse_report_user_mentions.id; --- --- Name: abuse_report_user_mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.abuse_report_user_mentions_id_seq OWNED BY public.abuse_report_user_mentions.id; - - --- --- Name: abuse_reports; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.abuse_reports ( +CREATE TABLE abuse_reports ( id integer NOT NULL, reporter_id integer, user_id integer, @@ -6598,31 +4805,16 @@ CREATE TABLE public.abuse_reports ( CONSTRAINT check_f3c0947a2d CHECK ((char_length(mitigation_steps) <= 1000)) ); - --- --- Name: abuse_reports_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.abuse_reports_id_seq +CREATE SEQUENCE abuse_reports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE abuse_reports_id_seq OWNED BY abuse_reports.id; --- --- Name: abuse_reports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.abuse_reports_id_seq OWNED BY public.abuse_reports.id; - - --- --- Name: abuse_trust_scores; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.abuse_trust_scores ( +CREATE TABLE abuse_trust_scores ( id bigint NOT NULL, user_id bigint, score double precision NOT NULL, @@ -6633,31 +4825,16 @@ CREATE TABLE public.abuse_trust_scores ( CONSTRAINT check_77ca9551db CHECK ((char_length(correlation_id_value) <= 255)) ); - --- --- Name: abuse_trust_scores_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.abuse_trust_scores_id_seq +CREATE SEQUENCE abuse_trust_scores_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE abuse_trust_scores_id_seq OWNED BY abuse_trust_scores.id; --- --- Name: abuse_trust_scores_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.abuse_trust_scores_id_seq OWNED BY public.abuse_trust_scores.id; - - --- --- Name: achievements; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.achievements ( +CREATE TABLE achievements ( id bigint NOT NULL, namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -6670,31 +4847,16 @@ CREATE TABLE public.achievements ( CONSTRAINT check_e174e93a9e CHECK ((char_length(avatar) <= 255)) ); - --- --- Name: achievements_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.achievements_id_seq +CREATE SEQUENCE achievements_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE achievements_id_seq OWNED BY achievements.id; --- --- Name: achievements_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.achievements_id_seq OWNED BY public.achievements.id; - - --- --- Name: activity_pub_releases_subscriptions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.activity_pub_releases_subscriptions ( +CREATE TABLE activity_pub_releases_subscriptions ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -6709,31 +4871,16 @@ CREATE TABLE public.activity_pub_releases_subscriptions ( CONSTRAINT check_61b77ced49 CHECK ((char_length(shared_inbox_url) <= 1024)) ); - --- --- Name: activity_pub_releases_subscriptions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.activity_pub_releases_subscriptions_id_seq +CREATE SEQUENCE activity_pub_releases_subscriptions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE activity_pub_releases_subscriptions_id_seq OWNED BY activity_pub_releases_subscriptions.id; --- --- Name: activity_pub_releases_subscriptions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.activity_pub_releases_subscriptions_id_seq OWNED BY public.activity_pub_releases_subscriptions.id; - - --- --- Name: agent_activity_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.agent_activity_events ( +CREATE TABLE agent_activity_events ( id bigint NOT NULL, agent_id bigint NOT NULL, user_id bigint, @@ -6749,155 +4896,80 @@ CREATE TABLE public.agent_activity_events ( CONSTRAINT check_068205e735 CHECK ((char_length(detail) <= 255)) ); - --- --- Name: agent_activity_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.agent_activity_events_id_seq +CREATE SEQUENCE agent_activity_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE agent_activity_events_id_seq OWNED BY agent_activity_events.id; --- --- Name: agent_activity_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.agent_activity_events_id_seq OWNED BY public.agent_activity_events.id; - - --- --- Name: agent_group_authorizations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.agent_group_authorizations ( +CREATE TABLE agent_group_authorizations ( id bigint NOT NULL, group_id bigint NOT NULL, agent_id bigint NOT NULL, config jsonb NOT NULL ); - --- --- Name: agent_group_authorizations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.agent_group_authorizations_id_seq +CREATE SEQUENCE agent_group_authorizations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE agent_group_authorizations_id_seq OWNED BY agent_group_authorizations.id; --- --- Name: agent_group_authorizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.agent_group_authorizations_id_seq OWNED BY public.agent_group_authorizations.id; - - --- --- Name: agent_project_authorizations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.agent_project_authorizations ( +CREATE TABLE agent_project_authorizations ( id bigint NOT NULL, project_id bigint NOT NULL, agent_id bigint NOT NULL, config jsonb NOT NULL ); - --- --- Name: agent_project_authorizations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.agent_project_authorizations_id_seq +CREATE SEQUENCE agent_project_authorizations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE agent_project_authorizations_id_seq OWNED BY agent_project_authorizations.id; --- --- Name: agent_project_authorizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.agent_project_authorizations_id_seq OWNED BY public.agent_project_authorizations.id; - - --- --- Name: agent_user_access_group_authorizations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.agent_user_access_group_authorizations ( +CREATE TABLE agent_user_access_group_authorizations ( id bigint NOT NULL, group_id bigint NOT NULL, agent_id bigint NOT NULL, config jsonb NOT NULL ); - --- --- Name: agent_user_access_group_authorizations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.agent_user_access_group_authorizations_id_seq +CREATE SEQUENCE agent_user_access_group_authorizations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE agent_user_access_group_authorizations_id_seq OWNED BY agent_user_access_group_authorizations.id; --- --- Name: agent_user_access_group_authorizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.agent_user_access_group_authorizations_id_seq OWNED BY public.agent_user_access_group_authorizations.id; - - --- --- Name: agent_user_access_project_authorizations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.agent_user_access_project_authorizations ( +CREATE TABLE agent_user_access_project_authorizations ( id bigint NOT NULL, project_id bigint NOT NULL, agent_id bigint NOT NULL, config jsonb NOT NULL ); - --- --- Name: agent_user_access_project_authorizations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.agent_user_access_project_authorizations_id_seq +CREATE SEQUENCE agent_user_access_project_authorizations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE agent_user_access_project_authorizations_id_seq OWNED BY agent_user_access_project_authorizations.id; --- --- Name: agent_user_access_project_authorizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.agent_user_access_project_authorizations_id_seq OWNED BY public.agent_user_access_project_authorizations.id; - - --- --- Name: ai_agent_version_attachments; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ai_agent_version_attachments ( +CREATE TABLE ai_agent_version_attachments ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6906,31 +4978,16 @@ CREATE TABLE public.ai_agent_version_attachments ( ai_vectorizable_file_id bigint NOT NULL ); - --- --- Name: ai_agent_version_attachments_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ai_agent_version_attachments_id_seq +CREATE SEQUENCE ai_agent_version_attachments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ai_agent_version_attachments_id_seq OWNED BY ai_agent_version_attachments.id; --- --- Name: ai_agent_version_attachments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ai_agent_version_attachments_id_seq OWNED BY public.ai_agent_version_attachments.id; - - --- --- Name: ai_agent_versions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ai_agent_versions ( +CREATE TABLE ai_agent_versions ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6942,31 +4999,16 @@ CREATE TABLE public.ai_agent_versions ( CONSTRAINT check_d7a4fc9834 CHECK ((char_length(prompt) <= 5000)) ); - --- --- Name: ai_agent_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ai_agent_versions_id_seq +CREATE SEQUENCE ai_agent_versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ai_agent_versions_id_seq OWNED BY ai_agent_versions.id; --- --- Name: ai_agent_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ai_agent_versions_id_seq OWNED BY public.ai_agent_versions.id; - - --- --- Name: ai_agents; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ai_agents ( +CREATE TABLE ai_agents ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -6975,31 +5017,16 @@ CREATE TABLE public.ai_agents ( CONSTRAINT check_67934c8e85 CHECK ((char_length(name) <= 255)) ); - --- --- Name: ai_agents_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ai_agents_id_seq +CREATE SEQUENCE ai_agents_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ai_agents_id_seq OWNED BY ai_agents.id; --- --- Name: ai_agents_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ai_agents_id_seq OWNED BY public.ai_agents.id; - - --- --- Name: ai_feature_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ai_feature_settings ( +CREATE TABLE ai_feature_settings ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -7008,31 +5035,16 @@ CREATE TABLE public.ai_feature_settings ( provider smallint NOT NULL ); - --- --- Name: ai_feature_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ai_feature_settings_id_seq +CREATE SEQUENCE ai_feature_settings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ai_feature_settings_id_seq OWNED BY ai_feature_settings.id; --- --- Name: ai_feature_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ai_feature_settings_id_seq OWNED BY public.ai_feature_settings.id; - - --- --- Name: ai_self_hosted_models; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ai_self_hosted_models ( +CREATE TABLE ai_self_hosted_models ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -7045,43 +5057,23 @@ CREATE TABLE public.ai_self_hosted_models ( CONSTRAINT check_cccb37e0de CHECK ((char_length(name) <= 255)) ); - --- --- Name: ai_self_hosted_models_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ai_self_hosted_models_id_seq +CREATE SEQUENCE ai_self_hosted_models_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ai_self_hosted_models_id_seq OWNED BY ai_self_hosted_models.id; --- --- Name: ai_self_hosted_models_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ai_self_hosted_models_id_seq OWNED BY public.ai_self_hosted_models.id; - - --- --- Name: ai_testing_terms_acceptances; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ai_testing_terms_acceptances ( +CREATE TABLE ai_testing_terms_acceptances ( created_at timestamp with time zone NOT NULL, user_id bigint NOT NULL, user_email text NOT NULL, CONSTRAINT check_5efe98894e CHECK ((char_length(user_email) <= 255)) ); - --- --- Name: ai_vectorizable_files; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ai_vectorizable_files ( +CREATE TABLE ai_vectorizable_files ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -7092,61 +5084,31 @@ CREATE TABLE public.ai_vectorizable_files ( CONSTRAINT check_fc6abf5b01 CHECK ((char_length(name) <= 255)) ); - --- --- Name: ai_vectorizable_files_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ai_vectorizable_files_id_seq +CREATE SEQUENCE ai_vectorizable_files_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ai_vectorizable_files_id_seq OWNED BY ai_vectorizable_files.id; --- --- Name: ai_vectorizable_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ai_vectorizable_files_id_seq OWNED BY public.ai_vectorizable_files.id; - - --- --- Name: alert_management_alert_assignees; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.alert_management_alert_assignees ( +CREATE TABLE alert_management_alert_assignees ( id bigint NOT NULL, user_id bigint NOT NULL, alert_id bigint NOT NULL ); - --- --- Name: alert_management_alert_assignees_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.alert_management_alert_assignees_id_seq +CREATE SEQUENCE alert_management_alert_assignees_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE alert_management_alert_assignees_id_seq OWNED BY alert_management_alert_assignees.id; --- --- Name: alert_management_alert_assignees_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.alert_management_alert_assignees_id_seq OWNED BY public.alert_management_alert_assignees.id; - - --- --- Name: alert_management_alert_metric_images; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.alert_management_alert_metric_images ( +CREATE TABLE alert_management_alert_metric_images ( id bigint NOT NULL, alert_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -7160,31 +5122,16 @@ CREATE TABLE public.alert_management_alert_metric_images ( CONSTRAINT check_70fafae519 CHECK ((char_length(file) <= 255)) ); - --- --- Name: alert_management_alert_metric_images_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.alert_management_alert_metric_images_id_seq +CREATE SEQUENCE alert_management_alert_metric_images_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE alert_management_alert_metric_images_id_seq OWNED BY alert_management_alert_metric_images.id; --- --- Name: alert_management_alert_metric_images_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.alert_management_alert_metric_images_id_seq OWNED BY public.alert_management_alert_metric_images.id; - - --- --- Name: alert_management_alert_user_mentions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.alert_management_alert_user_mentions ( +CREATE TABLE alert_management_alert_user_mentions ( id bigint NOT NULL, alert_management_alert_id bigint NOT NULL, note_id bigint, @@ -7193,31 +5140,16 @@ CREATE TABLE public.alert_management_alert_user_mentions ( mentioned_groups_ids integer[] ); - --- --- Name: alert_management_alert_user_mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.alert_management_alert_user_mentions_id_seq +CREATE SEQUENCE alert_management_alert_user_mentions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE alert_management_alert_user_mentions_id_seq OWNED BY alert_management_alert_user_mentions.id; --- --- Name: alert_management_alert_user_mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.alert_management_alert_user_mentions_id_seq OWNED BY public.alert_management_alert_user_mentions.id; - - --- --- Name: alert_management_alerts; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.alert_management_alerts ( +CREATE TABLE alert_management_alerts ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -7245,31 +5177,16 @@ CREATE TABLE public.alert_management_alerts ( CONSTRAINT check_d1d1c2d14c CHECK ((char_length(title) <= 200)) ); - --- --- Name: alert_management_alerts_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.alert_management_alerts_id_seq +CREATE SEQUENCE alert_management_alerts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE alert_management_alerts_id_seq OWNED BY alert_management_alerts.id; --- --- Name: alert_management_alerts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.alert_management_alerts_id_seq OWNED BY public.alert_management_alerts.id; - - --- --- Name: alert_management_http_integrations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.alert_management_http_integrations ( +CREATE TABLE alert_management_http_integrations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -7288,31 +5205,16 @@ CREATE TABLE public.alert_management_http_integrations ( CONSTRAINT check_f68577c4af CHECK ((char_length(encrypted_token) <= 255)) ); - --- --- Name: alert_management_http_integrations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.alert_management_http_integrations_id_seq +CREATE SEQUENCE alert_management_http_integrations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE alert_management_http_integrations_id_seq OWNED BY alert_management_http_integrations.id; --- --- Name: alert_management_http_integrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.alert_management_http_integrations_id_seq OWNED BY public.alert_management_http_integrations.id; - - --- --- Name: allowed_email_domains; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.allowed_email_domains ( +CREATE TABLE allowed_email_domains ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -7320,31 +5222,16 @@ CREATE TABLE public.allowed_email_domains ( domain character varying(255) NOT NULL ); - --- --- Name: allowed_email_domains_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.allowed_email_domains_id_seq +CREATE SEQUENCE allowed_email_domains_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE allowed_email_domains_id_seq OWNED BY allowed_email_domains.id; --- --- Name: allowed_email_domains_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.allowed_email_domains_id_seq OWNED BY public.allowed_email_domains.id; - - --- --- Name: analytics_cycle_analytics_aggregations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.analytics_cycle_analytics_aggregations ( +CREATE TABLE analytics_cycle_analytics_aggregations ( group_id bigint NOT NULL, incremental_runtimes_in_seconds integer[] DEFAULT '{}'::integer[] NOT NULL, incremental_processed_records integer[] DEFAULT '{}'::integer[] NOT NULL, @@ -7376,12 +5263,7 @@ CREATE TABLE public.analytics_cycle_analytics_aggregations ( CONSTRAINT full_runtimes_in_seconds_size CHECK ((cardinality(full_runtimes_in_seconds) <= 10)) ); - --- --- Name: analytics_cycle_analytics_group_stages; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.analytics_cycle_analytics_group_stages ( +CREATE TABLE analytics_cycle_analytics_group_stages ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -7399,31 +5281,16 @@ CREATE TABLE public.analytics_cycle_analytics_group_stages ( CONSTRAINT check_e6bd4271b5 CHECK ((stage_event_hash_id IS NOT NULL)) ); - --- --- Name: analytics_cycle_analytics_group_stages_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.analytics_cycle_analytics_group_stages_id_seq +CREATE SEQUENCE analytics_cycle_analytics_group_stages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE analytics_cycle_analytics_group_stages_id_seq OWNED BY analytics_cycle_analytics_group_stages.id; --- --- Name: analytics_cycle_analytics_group_stages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.analytics_cycle_analytics_group_stages_id_seq OWNED BY public.analytics_cycle_analytics_group_stages.id; - - --- --- Name: analytics_cycle_analytics_group_value_streams; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.analytics_cycle_analytics_group_value_streams ( +CREATE TABLE analytics_cycle_analytics_group_value_streams ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -7432,72 +5299,37 @@ CREATE TABLE public.analytics_cycle_analytics_group_value_streams ( CONSTRAINT check_bc1ed5f1f7 CHECK ((char_length(name) <= 100)) ); - --- --- Name: analytics_cycle_analytics_group_value_streams_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.analytics_cycle_analytics_group_value_streams_id_seq +CREATE SEQUENCE analytics_cycle_analytics_group_value_streams_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE analytics_cycle_analytics_group_value_streams_id_seq OWNED BY analytics_cycle_analytics_group_value_streams.id; --- --- Name: analytics_cycle_analytics_group_value_streams_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.analytics_cycle_analytics_group_value_streams_id_seq OWNED BY public.analytics_cycle_analytics_group_value_streams.id; - - --- --- Name: analytics_cycle_analytics_stage_event_hashes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.analytics_cycle_analytics_stage_event_hashes ( +CREATE TABLE analytics_cycle_analytics_stage_event_hashes ( id bigint NOT NULL, hash_sha256 bytea, organization_id bigint NOT NULL ); - --- --- Name: analytics_cycle_analytics_stage_event_hashes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.analytics_cycle_analytics_stage_event_hashes_id_seq +CREATE SEQUENCE analytics_cycle_analytics_stage_event_hashes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE analytics_cycle_analytics_stage_event_hashes_id_seq OWNED BY analytics_cycle_analytics_stage_event_hashes.id; --- --- Name: analytics_cycle_analytics_stage_event_hashes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.analytics_cycle_analytics_stage_event_hashes_id_seq OWNED BY public.analytics_cycle_analytics_stage_event_hashes.id; - - --- --- Name: analytics_cycle_analytics_value_stream_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.analytics_cycle_analytics_value_stream_settings ( +CREATE TABLE analytics_cycle_analytics_value_stream_settings ( value_stream_id bigint NOT NULL, project_ids_filter bigint[] DEFAULT '{}'::bigint[], CONSTRAINT project_ids_filter_array_check CHECK (((cardinality(project_ids_filter) <= 100) AND (array_position(project_ids_filter, NULL::bigint) IS NULL))) ); - --- --- Name: analytics_dashboards_pointers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.analytics_dashboards_pointers ( +CREATE TABLE analytics_dashboards_pointers ( id bigint NOT NULL, namespace_id bigint, project_id bigint, @@ -7505,31 +5337,16 @@ CREATE TABLE public.analytics_dashboards_pointers ( CONSTRAINT chk_analytics_dashboards_pointers_project_or_namespace CHECK (((project_id IS NULL) <> (namespace_id IS NULL))) ); - --- --- Name: analytics_dashboards_pointers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.analytics_dashboards_pointers_id_seq +CREATE SEQUENCE analytics_dashboards_pointers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE analytics_dashboards_pointers_id_seq OWNED BY analytics_dashboards_pointers.id; --- --- Name: analytics_dashboards_pointers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.analytics_dashboards_pointers_id_seq OWNED BY public.analytics_dashboards_pointers.id; - - --- --- Name: analytics_devops_adoption_segments; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.analytics_devops_adoption_segments ( +CREATE TABLE analytics_devops_adoption_segments ( id bigint NOT NULL, last_recorded_at timestamp with time zone, created_at timestamp with time zone NOT NULL, @@ -7538,31 +5355,16 @@ CREATE TABLE public.analytics_devops_adoption_segments ( display_namespace_id integer ); - --- --- Name: analytics_devops_adoption_segments_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.analytics_devops_adoption_segments_id_seq +CREATE SEQUENCE analytics_devops_adoption_segments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE analytics_devops_adoption_segments_id_seq OWNED BY analytics_devops_adoption_segments.id; --- --- Name: analytics_devops_adoption_segments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.analytics_devops_adoption_segments_id_seq OWNED BY public.analytics_devops_adoption_segments.id; - - --- --- Name: analytics_devops_adoption_snapshots; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.analytics_devops_adoption_snapshots ( +CREATE TABLE analytics_devops_adoption_snapshots ( id bigint NOT NULL, recorded_at timestamp with time zone NOT NULL, issue_opened boolean NOT NULL, @@ -7583,31 +5385,16 @@ CREATE TABLE public.analytics_devops_adoption_snapshots ( CONSTRAINT check_3f472de131 CHECK ((namespace_id IS NOT NULL)) ); - --- --- Name: analytics_devops_adoption_snapshots_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.analytics_devops_adoption_snapshots_id_seq +CREATE SEQUENCE analytics_devops_adoption_snapshots_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE analytics_devops_adoption_snapshots_id_seq OWNED BY analytics_devops_adoption_snapshots.id; --- --- Name: analytics_devops_adoption_snapshots_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.analytics_devops_adoption_snapshots_id_seq OWNED BY public.analytics_devops_adoption_snapshots.id; - - --- --- Name: analytics_language_trend_repository_languages; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.analytics_language_trend_repository_languages ( +CREATE TABLE analytics_language_trend_repository_languages ( file_count integer DEFAULT 0 NOT NULL, programming_language_id bigint NOT NULL, project_id bigint NOT NULL, @@ -7617,43 +5404,23 @@ CREATE TABLE public.analytics_language_trend_repository_languages ( snapshot_date date NOT NULL ); - --- --- Name: analytics_usage_trends_measurements; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.analytics_usage_trends_measurements ( +CREATE TABLE analytics_usage_trends_measurements ( id bigint NOT NULL, count bigint NOT NULL, recorded_at timestamp with time zone NOT NULL, identifier smallint NOT NULL ); - --- --- Name: analytics_usage_trends_measurements_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.analytics_usage_trends_measurements_id_seq +CREATE SEQUENCE analytics_usage_trends_measurements_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE analytics_usage_trends_measurements_id_seq OWNED BY analytics_usage_trends_measurements.id; --- --- Name: analytics_usage_trends_measurements_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.analytics_usage_trends_measurements_id_seq OWNED BY public.analytics_usage_trends_measurements.id; - - --- --- Name: appearances; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.appearances ( +CREATE TABLE appearances ( id integer NOT NULL, title character varying NOT NULL, description text NOT NULL, @@ -7690,62 +5457,32 @@ CREATE TABLE public.appearances ( CONSTRAINT check_5e5b7ac344 CHECK ((char_length(pwa_icon) <= 1024)) ); - --- --- Name: appearances_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.appearances_id_seq +CREATE SEQUENCE appearances_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE appearances_id_seq OWNED BY appearances.id; --- --- Name: appearances_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.appearances_id_seq OWNED BY public.appearances.id; - - --- --- Name: application_setting_terms; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.application_setting_terms ( +CREATE TABLE application_setting_terms ( id integer NOT NULL, cached_markdown_version integer, terms text NOT NULL, terms_html text ); - --- --- Name: application_setting_terms_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.application_setting_terms_id_seq +CREATE SEQUENCE application_setting_terms_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE application_setting_terms_id_seq OWNED BY application_setting_terms.id; --- --- Name: application_setting_terms_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.application_setting_terms_id_seq OWNED BY public.application_setting_terms.id; - - --- --- Name: application_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.application_settings ( +CREATE TABLE application_settings ( id integer NOT NULL, default_projects_limit integer, signup_enabled boolean, @@ -8354,178 +6091,58 @@ CREATE TABLE public.application_settings ( CONSTRAINT check_ef6176834f CHECK ((char_length(encrypted_cloud_license_auth_token_iv) <= 255)) ); +COMMENT ON COLUMN application_settings.content_validation_endpoint_url IS 'JiHu-specific column'; --- --- Name: COLUMN application_settings.content_validation_endpoint_url; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.application_settings.content_validation_endpoint_url IS 'JiHu-specific column'; - - --- --- Name: COLUMN application_settings.encrypted_content_validation_api_key; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.application_settings.encrypted_content_validation_api_key IS 'JiHu-specific column'; - - --- --- Name: COLUMN application_settings.encrypted_content_validation_api_key_iv; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.application_settings.encrypted_content_validation_api_key_iv IS 'JiHu-specific column'; - - --- --- Name: COLUMN application_settings.content_validation_endpoint_enabled; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.application_settings.content_validation_endpoint_enabled IS 'JiHu-specific column'; - - --- --- Name: COLUMN application_settings.dingtalk_integration_enabled; Type: COMMENT; Schema: public; Owner: - --- +COMMENT ON COLUMN application_settings.encrypted_content_validation_api_key IS 'JiHu-specific column'; -COMMENT ON COLUMN public.application_settings.dingtalk_integration_enabled IS 'JiHu-specific column'; +COMMENT ON COLUMN application_settings.encrypted_content_validation_api_key_iv IS 'JiHu-specific column'; +COMMENT ON COLUMN application_settings.content_validation_endpoint_enabled IS 'JiHu-specific column'; --- --- Name: COLUMN application_settings.encrypted_dingtalk_corpid; Type: COMMENT; Schema: public; Owner: - --- +COMMENT ON COLUMN application_settings.dingtalk_integration_enabled IS 'JiHu-specific column'; -COMMENT ON COLUMN public.application_settings.encrypted_dingtalk_corpid IS 'JiHu-specific column'; +COMMENT ON COLUMN application_settings.encrypted_dingtalk_corpid IS 'JiHu-specific column'; +COMMENT ON COLUMN application_settings.encrypted_dingtalk_corpid_iv IS 'JiHu-specific column'; --- --- Name: COLUMN application_settings.encrypted_dingtalk_corpid_iv; Type: COMMENT; Schema: public; Owner: - --- +COMMENT ON COLUMN application_settings.encrypted_dingtalk_app_key IS 'JiHu-specific column'; -COMMENT ON COLUMN public.application_settings.encrypted_dingtalk_corpid_iv IS 'JiHu-specific column'; +COMMENT ON COLUMN application_settings.encrypted_dingtalk_app_key_iv IS 'JiHu-specific column'; +COMMENT ON COLUMN application_settings.encrypted_dingtalk_app_secret IS 'JiHu-specific column'; --- --- Name: COLUMN application_settings.encrypted_dingtalk_app_key; Type: COMMENT; Schema: public; Owner: - --- +COMMENT ON COLUMN application_settings.encrypted_dingtalk_app_secret_iv IS 'JiHu-specific column'; -COMMENT ON COLUMN public.application_settings.encrypted_dingtalk_app_key IS 'JiHu-specific column'; +COMMENT ON COLUMN application_settings.phone_verification_code_enabled IS 'JiHu-specific column'; +COMMENT ON COLUMN application_settings.feishu_integration_enabled IS 'JiHu-specific column'; --- --- Name: COLUMN application_settings.encrypted_dingtalk_app_key_iv; Type: COMMENT; Schema: public; Owner: - --- +COMMENT ON COLUMN application_settings.encrypted_feishu_app_key IS 'JiHu-specific column'; -COMMENT ON COLUMN public.application_settings.encrypted_dingtalk_app_key_iv IS 'JiHu-specific column'; +COMMENT ON COLUMN application_settings.encrypted_feishu_app_key_iv IS 'JiHu-specific column'; +COMMENT ON COLUMN application_settings.encrypted_feishu_app_secret IS 'JiHu-specific column'; --- --- Name: COLUMN application_settings.encrypted_dingtalk_app_secret; Type: COMMENT; Schema: public; Owner: - --- +COMMENT ON COLUMN application_settings.encrypted_feishu_app_secret_iv IS 'JiHu-specific column'; -COMMENT ON COLUMN public.application_settings.encrypted_dingtalk_app_secret IS 'JiHu-specific column'; +COMMENT ON COLUMN application_settings.password_expiration_enabled IS 'JiHu-specific column'; +COMMENT ON COLUMN application_settings.password_expires_in_days IS 'JiHu-specific column'; --- --- Name: COLUMN application_settings.encrypted_dingtalk_app_secret_iv; Type: COMMENT; Schema: public; Owner: - --- +COMMENT ON COLUMN application_settings.password_expires_notice_before_days IS 'JiHu-specific column'; -COMMENT ON COLUMN public.application_settings.encrypted_dingtalk_app_secret_iv IS 'JiHu-specific column'; +COMMENT ON COLUMN application_settings.disable_download_button IS 'JiHu-specific column'; - --- --- Name: COLUMN application_settings.phone_verification_code_enabled; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.application_settings.phone_verification_code_enabled IS 'JiHu-specific column'; - - --- --- Name: COLUMN application_settings.feishu_integration_enabled; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.application_settings.feishu_integration_enabled IS 'JiHu-specific column'; - - --- --- Name: COLUMN application_settings.encrypted_feishu_app_key; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.application_settings.encrypted_feishu_app_key IS 'JiHu-specific column'; - - --- --- Name: COLUMN application_settings.encrypted_feishu_app_key_iv; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.application_settings.encrypted_feishu_app_key_iv IS 'JiHu-specific column'; - - --- --- Name: COLUMN application_settings.encrypted_feishu_app_secret; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.application_settings.encrypted_feishu_app_secret IS 'JiHu-specific column'; - - --- --- Name: COLUMN application_settings.encrypted_feishu_app_secret_iv; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.application_settings.encrypted_feishu_app_secret_iv IS 'JiHu-specific column'; - - --- --- Name: COLUMN application_settings.password_expiration_enabled; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.application_settings.password_expiration_enabled IS 'JiHu-specific column'; - - --- --- Name: COLUMN application_settings.password_expires_in_days; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.application_settings.password_expires_in_days IS 'JiHu-specific column'; - - --- --- Name: COLUMN application_settings.password_expires_notice_before_days; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.application_settings.password_expires_notice_before_days IS 'JiHu-specific column'; - - --- --- Name: COLUMN application_settings.disable_download_button; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.application_settings.disable_download_button IS 'JiHu-specific column'; - - --- --- Name: application_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.application_settings_id_seq +CREATE SEQUENCE application_settings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE application_settings_id_seq OWNED BY application_settings.id; --- --- Name: application_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.application_settings_id_seq OWNED BY public.application_settings.id; - - --- --- Name: approval_group_rules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.approval_group_rules ( +CREATE TABLE approval_group_rules ( id bigint NOT NULL, group_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -8541,154 +6158,79 @@ CREATE TABLE public.approval_group_rules ( CONSTRAINT check_25d42add43 CHECK ((char_length(name) <= 255)) ); - --- --- Name: approval_group_rules_groups; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.approval_group_rules_groups ( +CREATE TABLE approval_group_rules_groups ( id bigint NOT NULL, approval_group_rule_id bigint NOT NULL, group_id bigint NOT NULL ); - --- --- Name: approval_group_rules_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.approval_group_rules_groups_id_seq +CREATE SEQUENCE approval_group_rules_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE approval_group_rules_groups_id_seq OWNED BY approval_group_rules_groups.id; --- --- Name: approval_group_rules_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.approval_group_rules_groups_id_seq OWNED BY public.approval_group_rules_groups.id; - - --- --- Name: approval_group_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.approval_group_rules_id_seq +CREATE SEQUENCE approval_group_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE approval_group_rules_id_seq OWNED BY approval_group_rules.id; --- --- Name: approval_group_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.approval_group_rules_id_seq OWNED BY public.approval_group_rules.id; - - --- --- Name: approval_group_rules_protected_branches; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.approval_group_rules_protected_branches ( +CREATE TABLE approval_group_rules_protected_branches ( id bigint NOT NULL, approval_group_rule_id bigint NOT NULL, protected_branch_id bigint NOT NULL, group_id bigint ); - --- --- Name: approval_group_rules_protected_branches_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.approval_group_rules_protected_branches_id_seq +CREATE SEQUENCE approval_group_rules_protected_branches_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE approval_group_rules_protected_branches_id_seq OWNED BY approval_group_rules_protected_branches.id; --- --- Name: approval_group_rules_protected_branches_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.approval_group_rules_protected_branches_id_seq OWNED BY public.approval_group_rules_protected_branches.id; - - --- --- Name: approval_group_rules_users; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.approval_group_rules_users ( +CREATE TABLE approval_group_rules_users ( id bigint NOT NULL, approval_group_rule_id bigint NOT NULL, user_id bigint NOT NULL, group_id bigint ); - --- --- Name: approval_group_rules_users_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.approval_group_rules_users_id_seq +CREATE SEQUENCE approval_group_rules_users_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE approval_group_rules_users_id_seq OWNED BY approval_group_rules_users.id; --- --- Name: approval_group_rules_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.approval_group_rules_users_id_seq OWNED BY public.approval_group_rules_users.id; - - --- --- Name: approval_merge_request_rule_sources; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.approval_merge_request_rule_sources ( +CREATE TABLE approval_merge_request_rule_sources ( id bigint NOT NULL, approval_merge_request_rule_id bigint NOT NULL, approval_project_rule_id bigint NOT NULL, project_id bigint ); - --- --- Name: approval_merge_request_rule_sources_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.approval_merge_request_rule_sources_id_seq +CREATE SEQUENCE approval_merge_request_rule_sources_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE approval_merge_request_rule_sources_id_seq OWNED BY approval_merge_request_rule_sources.id; --- --- Name: approval_merge_request_rule_sources_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.approval_merge_request_rule_sources_id_seq OWNED BY public.approval_merge_request_rule_sources.id; - - --- --- Name: approval_merge_request_rules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.approval_merge_request_rules ( +CREATE TABLE approval_merge_request_rules ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -8712,151 +6254,76 @@ CREATE TABLE public.approval_merge_request_rules ( CONSTRAINT check_6fca5928b2 CHECK ((char_length(section) <= 255)) ); - --- --- Name: approval_merge_request_rules_approved_approvers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.approval_merge_request_rules_approved_approvers ( +CREATE TABLE approval_merge_request_rules_approved_approvers ( id bigint NOT NULL, approval_merge_request_rule_id bigint NOT NULL, user_id integer NOT NULL ); - --- --- Name: approval_merge_request_rules_approved_approvers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.approval_merge_request_rules_approved_approvers_id_seq +CREATE SEQUENCE approval_merge_request_rules_approved_approvers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE approval_merge_request_rules_approved_approvers_id_seq OWNED BY approval_merge_request_rules_approved_approvers.id; --- --- Name: approval_merge_request_rules_approved_approvers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.approval_merge_request_rules_approved_approvers_id_seq OWNED BY public.approval_merge_request_rules_approved_approvers.id; - - --- --- Name: approval_merge_request_rules_groups; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.approval_merge_request_rules_groups ( +CREATE TABLE approval_merge_request_rules_groups ( id bigint NOT NULL, approval_merge_request_rule_id bigint NOT NULL, group_id integer NOT NULL ); - --- --- Name: approval_merge_request_rules_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.approval_merge_request_rules_groups_id_seq +CREATE SEQUENCE approval_merge_request_rules_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE approval_merge_request_rules_groups_id_seq OWNED BY approval_merge_request_rules_groups.id; --- --- Name: approval_merge_request_rules_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.approval_merge_request_rules_groups_id_seq OWNED BY public.approval_merge_request_rules_groups.id; - - --- --- Name: approval_merge_request_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.approval_merge_request_rules_id_seq +CREATE SEQUENCE approval_merge_request_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE approval_merge_request_rules_id_seq OWNED BY approval_merge_request_rules.id; --- --- Name: approval_merge_request_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.approval_merge_request_rules_id_seq OWNED BY public.approval_merge_request_rules.id; - - --- --- Name: approval_merge_request_rules_users; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.approval_merge_request_rules_users ( +CREATE TABLE approval_merge_request_rules_users ( id bigint NOT NULL, approval_merge_request_rule_id bigint NOT NULL, user_id integer NOT NULL ); - --- --- Name: approval_merge_request_rules_users_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.approval_merge_request_rules_users_id_seq +CREATE SEQUENCE approval_merge_request_rules_users_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE approval_merge_request_rules_users_id_seq OWNED BY approval_merge_request_rules_users.id; --- --- Name: approval_merge_request_rules_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.approval_merge_request_rules_users_id_seq OWNED BY public.approval_merge_request_rules_users.id; - - --- --- Name: approval_policy_rule_project_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.approval_policy_rule_project_links ( +CREATE TABLE approval_policy_rule_project_links ( id bigint NOT NULL, project_id bigint NOT NULL, approval_policy_rule_id bigint NOT NULL ); - --- --- Name: approval_policy_rule_project_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.approval_policy_rule_project_links_id_seq +CREATE SEQUENCE approval_policy_rule_project_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE approval_policy_rule_project_links_id_seq OWNED BY approval_policy_rule_project_links.id; --- --- Name: approval_policy_rule_project_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.approval_policy_rule_project_links_id_seq OWNED BY public.approval_policy_rule_project_links.id; - - --- --- Name: approval_policy_rules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.approval_policy_rules ( +CREATE TABLE approval_policy_rules ( id bigint NOT NULL, security_policy_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -8867,31 +6334,16 @@ CREATE TABLE public.approval_policy_rules ( security_policy_management_project_id bigint NOT NULL ); - --- --- Name: approval_policy_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.approval_policy_rules_id_seq +CREATE SEQUENCE approval_policy_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE approval_policy_rules_id_seq OWNED BY approval_policy_rules.id; --- --- Name: approval_policy_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.approval_policy_rules_id_seq OWNED BY public.approval_policy_rules.id; - - --- --- Name: approval_project_rules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.approval_project_rules ( +CREATE TABLE approval_project_rules ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -8911,102 +6363,52 @@ CREATE TABLE public.approval_project_rules ( approval_policy_rule_id bigint ); - --- --- Name: approval_project_rules_groups; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.approval_project_rules_groups ( +CREATE TABLE approval_project_rules_groups ( id bigint NOT NULL, approval_project_rule_id bigint NOT NULL, group_id integer NOT NULL ); - --- --- Name: approval_project_rules_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.approval_project_rules_groups_id_seq +CREATE SEQUENCE approval_project_rules_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE approval_project_rules_groups_id_seq OWNED BY approval_project_rules_groups.id; --- --- Name: approval_project_rules_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.approval_project_rules_groups_id_seq OWNED BY public.approval_project_rules_groups.id; - - --- --- Name: approval_project_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.approval_project_rules_id_seq +CREATE SEQUENCE approval_project_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE approval_project_rules_id_seq OWNED BY approval_project_rules.id; --- --- Name: approval_project_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.approval_project_rules_id_seq OWNED BY public.approval_project_rules.id; - - --- --- Name: approval_project_rules_protected_branches; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.approval_project_rules_protected_branches ( +CREATE TABLE approval_project_rules_protected_branches ( approval_project_rule_id bigint NOT NULL, protected_branch_id bigint NOT NULL ); - --- --- Name: approval_project_rules_users; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.approval_project_rules_users ( +CREATE TABLE approval_project_rules_users ( id bigint NOT NULL, approval_project_rule_id bigint NOT NULL, user_id integer NOT NULL, project_id bigint ); - --- --- Name: approval_project_rules_users_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.approval_project_rules_users_id_seq +CREATE SEQUENCE approval_project_rules_users_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE approval_project_rules_users_id_seq OWNED BY approval_project_rules_users.id; --- --- Name: approval_project_rules_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.approval_project_rules_users_id_seq OWNED BY public.approval_project_rules_users.id; - - --- --- Name: approvals; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.approvals ( +CREATE TABLE approvals ( id integer NOT NULL, merge_request_id integer NOT NULL, user_id integer NOT NULL, @@ -9016,31 +6418,16 @@ CREATE TABLE public.approvals ( project_id bigint ); - --- --- Name: approvals_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.approvals_id_seq +CREATE SEQUENCE approvals_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE approvals_id_seq OWNED BY approvals.id; --- --- Name: approvals_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.approvals_id_seq OWNED BY public.approvals.id; - - --- --- Name: approver_groups; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.approver_groups ( +CREATE TABLE approver_groups ( id integer NOT NULL, target_id integer NOT NULL, target_type character varying NOT NULL, @@ -9049,31 +6436,16 @@ CREATE TABLE public.approver_groups ( updated_at timestamp without time zone ); - --- --- Name: approver_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.approver_groups_id_seq +CREATE SEQUENCE approver_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE approver_groups_id_seq OWNED BY approver_groups.id; --- --- Name: approver_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.approver_groups_id_seq OWNED BY public.approver_groups.id; - - --- --- Name: approvers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.approvers ( +CREATE TABLE approvers ( id integer NOT NULL, target_id integer NOT NULL, target_type character varying, @@ -9082,43 +6454,23 @@ CREATE TABLE public.approvers ( updated_at timestamp without time zone ); - --- --- Name: approvers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.approvers_id_seq +CREATE SEQUENCE approvers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE approvers_id_seq OWNED BY approvers.id; --- --- Name: approvers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.approvers_id_seq OWNED BY public.approvers.id; - - --- --- Name: ar_internal_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ar_internal_metadata ( +CREATE TABLE ar_internal_metadata ( key character varying NOT NULL, value character varying, created_at timestamp(6) without time zone NOT NULL, updated_at timestamp(6) without time zone NOT NULL ); - --- --- Name: atlassian_identities; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.atlassian_identities ( +CREATE TABLE atlassian_identities ( user_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9135,31 +6487,16 @@ CREATE TABLE public.atlassian_identities ( CONSTRAINT check_32f5779763 CHECK ((char_length(extern_uid) <= 255)) ); - --- --- Name: atlassian_identities_user_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.atlassian_identities_user_id_seq +CREATE SEQUENCE atlassian_identities_user_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE atlassian_identities_user_id_seq OWNED BY atlassian_identities.user_id; --- --- Name: atlassian_identities_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.atlassian_identities_user_id_seq OWNED BY public.atlassian_identities.user_id; - - --- --- Name: audit_events_amazon_s3_configurations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.audit_events_amazon_s3_configurations ( +CREATE TABLE audit_events_amazon_s3_configurations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9176,31 +6513,16 @@ CREATE TABLE public.audit_events_amazon_s3_configurations ( CONSTRAINT check_ec46f06e01 CHECK ((char_length(access_key_xid) <= 128)) ); - --- --- Name: audit_events_amazon_s3_configurations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.audit_events_amazon_s3_configurations_id_seq +CREATE SEQUENCE audit_events_amazon_s3_configurations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE audit_events_amazon_s3_configurations_id_seq OWNED BY audit_events_amazon_s3_configurations.id; --- --- Name: audit_events_amazon_s3_configurations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.audit_events_amazon_s3_configurations_id_seq OWNED BY public.audit_events_amazon_s3_configurations.id; - - --- --- Name: audit_events_external_audit_event_destinations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.audit_events_external_audit_event_destinations ( +CREATE TABLE audit_events_external_audit_event_destinations ( id bigint NOT NULL, namespace_id bigint NOT NULL, destination_url text NOT NULL, @@ -9213,31 +6535,16 @@ CREATE TABLE public.audit_events_external_audit_event_destinations ( CONSTRAINT check_c52ff8e90e CHECK ((char_length(name) <= 72)) ); - --- --- Name: audit_events_external_audit_event_destinations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.audit_events_external_audit_event_destinations_id_seq +CREATE SEQUENCE audit_events_external_audit_event_destinations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE audit_events_external_audit_event_destinations_id_seq OWNED BY audit_events_external_audit_event_destinations.id; --- --- Name: audit_events_external_audit_event_destinations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.audit_events_external_audit_event_destinations_id_seq OWNED BY public.audit_events_external_audit_event_destinations.id; - - --- --- Name: audit_events_google_cloud_logging_configurations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.audit_events_google_cloud_logging_configurations ( +CREATE TABLE audit_events_google_cloud_logging_configurations ( id bigint NOT NULL, namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -9254,31 +6561,16 @@ CREATE TABLE public.audit_events_google_cloud_logging_configurations ( CONSTRAINT check_cdf6883cd6 CHECK ((char_length(name) <= 72)) ); - --- --- Name: audit_events_google_cloud_logging_configurations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.audit_events_google_cloud_logging_configurations_id_seq +CREATE SEQUENCE audit_events_google_cloud_logging_configurations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE audit_events_google_cloud_logging_configurations_id_seq OWNED BY audit_events_google_cloud_logging_configurations.id; --- --- Name: audit_events_google_cloud_logging_configurations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.audit_events_google_cloud_logging_configurations_id_seq OWNED BY public.audit_events_google_cloud_logging_configurations.id; - - --- --- Name: audit_events_group_external_streaming_destinations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.audit_events_group_external_streaming_destinations ( +CREATE TABLE audit_events_group_external_streaming_destinations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9291,31 +6583,16 @@ CREATE TABLE public.audit_events_group_external_streaming_destinations ( CONSTRAINT check_97d157fbd0 CHECK ((char_length(name) <= 72)) ); - --- --- Name: audit_events_group_external_streaming_destinations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.audit_events_group_external_streaming_destinations_id_seq +CREATE SEQUENCE audit_events_group_external_streaming_destinations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE audit_events_group_external_streaming_destinations_id_seq OWNED BY audit_events_group_external_streaming_destinations.id; --- --- Name: audit_events_group_external_streaming_destinations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.audit_events_group_external_streaming_destinations_id_seq OWNED BY public.audit_events_group_external_streaming_destinations.id; - - --- --- Name: audit_events_group_streaming_event_type_filters; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.audit_events_group_streaming_event_type_filters ( +CREATE TABLE audit_events_group_streaming_event_type_filters ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9325,50 +6602,25 @@ CREATE TABLE public.audit_events_group_streaming_event_type_filters ( CONSTRAINT check_389708af23 CHECK ((char_length(audit_event_type) <= 255)) ); - --- --- Name: audit_events_group_streaming_event_type_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.audit_events_group_streaming_event_type_filters_id_seq +CREATE SEQUENCE audit_events_group_streaming_event_type_filters_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE audit_events_group_streaming_event_type_filters_id_seq OWNED BY audit_events_group_streaming_event_type_filters.id; --- --- Name: audit_events_group_streaming_event_type_filters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.audit_events_group_streaming_event_type_filters_id_seq OWNED BY public.audit_events_group_streaming_event_type_filters.id; - - --- --- Name: audit_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.audit_events_id_seq +CREATE SEQUENCE audit_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE audit_events_id_seq OWNED BY audit_events.id; --- --- Name: audit_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.audit_events_id_seq OWNED BY public.audit_events.id; - - --- --- Name: audit_events_instance_amazon_s3_configurations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.audit_events_instance_amazon_s3_configurations ( +CREATE TABLE audit_events_instance_amazon_s3_configurations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9384,31 +6636,16 @@ CREATE TABLE public.audit_events_instance_amazon_s3_configurations ( CONSTRAINT check_d6d6bd8e8b CHECK ((char_length(access_key_xid) <= 128)) ); - --- --- Name: audit_events_instance_amazon_s3_configurations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.audit_events_instance_amazon_s3_configurations_id_seq +CREATE SEQUENCE audit_events_instance_amazon_s3_configurations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE audit_events_instance_amazon_s3_configurations_id_seq OWNED BY audit_events_instance_amazon_s3_configurations.id; --- --- Name: audit_events_instance_amazon_s3_configurations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.audit_events_instance_amazon_s3_configurations_id_seq OWNED BY public.audit_events_instance_amazon_s3_configurations.id; - - --- --- Name: audit_events_instance_external_audit_event_destinations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.audit_events_instance_external_audit_event_destinations ( +CREATE TABLE audit_events_instance_external_audit_event_destinations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9420,31 +6657,16 @@ CREATE TABLE public.audit_events_instance_external_audit_event_destinations ( CONSTRAINT check_4dc67167ce CHECK ((char_length(destination_url) <= 255)) ); - --- --- Name: audit_events_instance_external_audit_event_destinations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.audit_events_instance_external_audit_event_destinations_id_seq +CREATE SEQUENCE audit_events_instance_external_audit_event_destinations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE audit_events_instance_external_audit_event_destinations_id_seq OWNED BY audit_events_instance_external_audit_event_destinations.id; --- --- Name: audit_events_instance_external_audit_event_destinations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.audit_events_instance_external_audit_event_destinations_id_seq OWNED BY public.audit_events_instance_external_audit_event_destinations.id; - - --- --- Name: audit_events_instance_external_streaming_destinations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.audit_events_instance_external_streaming_destinations ( +CREATE TABLE audit_events_instance_external_streaming_destinations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9456,31 +6678,16 @@ CREATE TABLE public.audit_events_instance_external_streaming_destinations ( CONSTRAINT check_219decfb51 CHECK ((char_length(name) <= 72)) ); - --- --- Name: audit_events_instance_external_streaming_destinations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.audit_events_instance_external_streaming_destinations_id_seq +CREATE SEQUENCE audit_events_instance_external_streaming_destinations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE audit_events_instance_external_streaming_destinations_id_seq OWNED BY audit_events_instance_external_streaming_destinations.id; --- --- Name: audit_events_instance_external_streaming_destinations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.audit_events_instance_external_streaming_destinations_id_seq OWNED BY public.audit_events_instance_external_streaming_destinations.id; - - --- --- Name: audit_events_instance_google_cloud_logging_configurations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.audit_events_instance_google_cloud_logging_configurations ( +CREATE TABLE audit_events_instance_google_cloud_logging_configurations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9496,31 +6703,16 @@ CREATE TABLE public.audit_events_instance_google_cloud_logging_configurations ( CONSTRAINT check_ac42ad3ca2 CHECK ((char_length(name) <= 72)) ); - --- --- Name: audit_events_instance_google_cloud_logging_configuration_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.audit_events_instance_google_cloud_logging_configuration_id_seq +CREATE SEQUENCE audit_events_instance_google_cloud_logging_configuration_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE audit_events_instance_google_cloud_logging_configuration_id_seq OWNED BY audit_events_instance_google_cloud_logging_configurations.id; --- --- Name: audit_events_instance_google_cloud_logging_configuration_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.audit_events_instance_google_cloud_logging_configuration_id_seq OWNED BY public.audit_events_instance_google_cloud_logging_configurations.id; - - --- --- Name: audit_events_instance_streaming_event_type_filters; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.audit_events_instance_streaming_event_type_filters ( +CREATE TABLE audit_events_instance_streaming_event_type_filters ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9529,31 +6721,16 @@ CREATE TABLE public.audit_events_instance_streaming_event_type_filters ( CONSTRAINT check_4a5e8e01b5 CHECK ((char_length(audit_event_type) <= 255)) ); - --- --- Name: audit_events_instance_streaming_event_type_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.audit_events_instance_streaming_event_type_filters_id_seq +CREATE SEQUENCE audit_events_instance_streaming_event_type_filters_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE audit_events_instance_streaming_event_type_filters_id_seq OWNED BY audit_events_instance_streaming_event_type_filters.id; --- --- Name: audit_events_instance_streaming_event_type_filters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.audit_events_instance_streaming_event_type_filters_id_seq OWNED BY public.audit_events_instance_streaming_event_type_filters.id; - - --- --- Name: audit_events_streaming_event_type_filters; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.audit_events_streaming_event_type_filters ( +CREATE TABLE audit_events_streaming_event_type_filters ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9563,31 +6740,16 @@ CREATE TABLE public.audit_events_streaming_event_type_filters ( CONSTRAINT check_d20c8e5a51 CHECK ((char_length(audit_event_type) <= 255)) ); - --- --- Name: audit_events_streaming_event_type_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.audit_events_streaming_event_type_filters_id_seq +CREATE SEQUENCE audit_events_streaming_event_type_filters_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE audit_events_streaming_event_type_filters_id_seq OWNED BY audit_events_streaming_event_type_filters.id; --- --- Name: audit_events_streaming_event_type_filters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.audit_events_streaming_event_type_filters_id_seq OWNED BY public.audit_events_streaming_event_type_filters.id; - - --- --- Name: audit_events_streaming_group_namespace_filters; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.audit_events_streaming_group_namespace_filters ( +CREATE TABLE audit_events_streaming_group_namespace_filters ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9595,31 +6757,16 @@ CREATE TABLE public.audit_events_streaming_group_namespace_filters ( namespace_id bigint NOT NULL ); - --- --- Name: audit_events_streaming_group_namespace_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.audit_events_streaming_group_namespace_filters_id_seq +CREATE SEQUENCE audit_events_streaming_group_namespace_filters_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE audit_events_streaming_group_namespace_filters_id_seq OWNED BY audit_events_streaming_group_namespace_filters.id; --- --- Name: audit_events_streaming_group_namespace_filters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.audit_events_streaming_group_namespace_filters_id_seq OWNED BY public.audit_events_streaming_group_namespace_filters.id; - - --- --- Name: audit_events_streaming_headers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.audit_events_streaming_headers ( +CREATE TABLE audit_events_streaming_headers ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9632,31 +6779,16 @@ CREATE TABLE public.audit_events_streaming_headers ( CONSTRAINT check_ac213cca22 CHECK ((char_length(value) <= 255)) ); - --- --- Name: audit_events_streaming_headers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.audit_events_streaming_headers_id_seq +CREATE SEQUENCE audit_events_streaming_headers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE audit_events_streaming_headers_id_seq OWNED BY audit_events_streaming_headers.id; --- --- Name: audit_events_streaming_headers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.audit_events_streaming_headers_id_seq OWNED BY public.audit_events_streaming_headers.id; - - --- --- Name: audit_events_streaming_http_group_namespace_filters; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.audit_events_streaming_http_group_namespace_filters ( +CREATE TABLE audit_events_streaming_http_group_namespace_filters ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9664,31 +6796,16 @@ CREATE TABLE public.audit_events_streaming_http_group_namespace_filters ( namespace_id bigint NOT NULL ); - --- --- Name: audit_events_streaming_http_group_namespace_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.audit_events_streaming_http_group_namespace_filters_id_seq +CREATE SEQUENCE audit_events_streaming_http_group_namespace_filters_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE audit_events_streaming_http_group_namespace_filters_id_seq OWNED BY audit_events_streaming_http_group_namespace_filters.id; --- --- Name: audit_events_streaming_http_group_namespace_filters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.audit_events_streaming_http_group_namespace_filters_id_seq OWNED BY public.audit_events_streaming_http_group_namespace_filters.id; - - --- --- Name: audit_events_streaming_http_instance_namespace_filters; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.audit_events_streaming_http_instance_namespace_filters ( +CREATE TABLE audit_events_streaming_http_instance_namespace_filters ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9696,31 +6813,16 @@ CREATE TABLE public.audit_events_streaming_http_instance_namespace_filters ( namespace_id bigint NOT NULL ); - --- --- Name: audit_events_streaming_http_instance_namespace_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.audit_events_streaming_http_instance_namespace_filters_id_seq +CREATE SEQUENCE audit_events_streaming_http_instance_namespace_filters_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE audit_events_streaming_http_instance_namespace_filters_id_seq OWNED BY audit_events_streaming_http_instance_namespace_filters.id; --- --- Name: audit_events_streaming_http_instance_namespace_filters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.audit_events_streaming_http_instance_namespace_filters_id_seq OWNED BY public.audit_events_streaming_http_instance_namespace_filters.id; - - --- --- Name: audit_events_streaming_instance_event_type_filters; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.audit_events_streaming_instance_event_type_filters ( +CREATE TABLE audit_events_streaming_instance_event_type_filters ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9729,31 +6831,16 @@ CREATE TABLE public.audit_events_streaming_instance_event_type_filters ( CONSTRAINT check_249c9370cc CHECK ((char_length(audit_event_type) <= 255)) ); - --- --- Name: audit_events_streaming_instance_event_type_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.audit_events_streaming_instance_event_type_filters_id_seq +CREATE SEQUENCE audit_events_streaming_instance_event_type_filters_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE audit_events_streaming_instance_event_type_filters_id_seq OWNED BY audit_events_streaming_instance_event_type_filters.id; --- --- Name: audit_events_streaming_instance_event_type_filters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.audit_events_streaming_instance_event_type_filters_id_seq OWNED BY public.audit_events_streaming_instance_event_type_filters.id; - - --- --- Name: audit_events_streaming_instance_namespace_filters; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.audit_events_streaming_instance_namespace_filters ( +CREATE TABLE audit_events_streaming_instance_namespace_filters ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9761,31 +6848,16 @@ CREATE TABLE public.audit_events_streaming_instance_namespace_filters ( namespace_id bigint NOT NULL ); - --- --- Name: audit_events_streaming_instance_namespace_filters_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.audit_events_streaming_instance_namespace_filters_id_seq +CREATE SEQUENCE audit_events_streaming_instance_namespace_filters_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE audit_events_streaming_instance_namespace_filters_id_seq OWNED BY audit_events_streaming_instance_namespace_filters.id; --- --- Name: audit_events_streaming_instance_namespace_filters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.audit_events_streaming_instance_namespace_filters_id_seq OWNED BY public.audit_events_streaming_instance_namespace_filters.id; - - --- --- Name: authentication_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.authentication_events ( +CREATE TABLE authentication_events ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, user_id bigint, @@ -9797,31 +6869,16 @@ CREATE TABLE public.authentication_events ( CONSTRAINT check_c64f424630 CHECK ((char_length(provider) <= 64)) ); - --- --- Name: authentication_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.authentication_events_id_seq +CREATE SEQUENCE authentication_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE authentication_events_id_seq OWNED BY authentication_events.id; --- --- Name: authentication_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.authentication_events_id_seq OWNED BY public.authentication_events.id; - - --- --- Name: automation_rules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.automation_rules ( +CREATE TABLE automation_rules ( id bigint NOT NULL, namespace_id bigint NOT NULL, issues_events boolean DEFAULT false NOT NULL, @@ -9835,31 +6892,16 @@ CREATE TABLE public.automation_rules ( CONSTRAINT check_ed5a4fcbd5 CHECK ((char_length(rule) <= 2048)) ); - --- --- Name: automation_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.automation_rules_id_seq +CREATE SEQUENCE automation_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE automation_rules_id_seq OWNED BY automation_rules.id; --- --- Name: automation_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.automation_rules_id_seq OWNED BY public.automation_rules.id; - - --- --- Name: award_emoji; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.award_emoji ( +CREATE TABLE award_emoji ( id integer NOT NULL, name character varying, user_id integer, @@ -9869,31 +6911,16 @@ CREATE TABLE public.award_emoji ( awardable_id bigint ); - --- --- Name: award_emoji_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.award_emoji_id_seq +CREATE SEQUENCE award_emoji_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE award_emoji_id_seq OWNED BY award_emoji.id; --- --- Name: award_emoji_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.award_emoji_id_seq OWNED BY public.award_emoji.id; - - --- --- Name: aws_roles; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.aws_roles ( +CREATE TABLE aws_roles ( user_id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9903,12 +6930,7 @@ CREATE TABLE public.aws_roles ( CONSTRAINT check_57adedab55 CHECK ((char_length(region) <= 255)) ); - --- --- Name: background_migration_jobs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.background_migration_jobs ( +CREATE TABLE background_migration_jobs ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -9918,31 +6940,16 @@ CREATE TABLE public.background_migration_jobs ( CONSTRAINT check_b0de0a5852 CHECK ((char_length(class_name) <= 200)) ); - --- --- Name: background_migration_jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.background_migration_jobs_id_seq +CREATE SEQUENCE background_migration_jobs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE background_migration_jobs_id_seq OWNED BY background_migration_jobs.id; --- --- Name: background_migration_jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.background_migration_jobs_id_seq OWNED BY public.background_migration_jobs.id; - - --- --- Name: badges; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.badges ( +CREATE TABLE badges ( id integer NOT NULL, link_url character varying NOT NULL, image_url character varying NOT NULL, @@ -9954,61 +6961,31 @@ CREATE TABLE public.badges ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: badges_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.badges_id_seq +CREATE SEQUENCE badges_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE badges_id_seq OWNED BY badges.id; --- --- Name: badges_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.badges_id_seq OWNED BY public.badges.id; - - --- --- Name: banned_users; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.banned_users ( +CREATE TABLE banned_users ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, user_id bigint NOT NULL ); - --- --- Name: batched_background_migration_job_transition_logs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.batched_background_migration_job_transition_logs_id_seq +CREATE SEQUENCE batched_background_migration_job_transition_logs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE batched_background_migration_job_transition_logs_id_seq OWNED BY batched_background_migration_job_transition_logs.id; --- --- Name: batched_background_migration_job_transition_logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.batched_background_migration_job_transition_logs_id_seq OWNED BY public.batched_background_migration_job_transition_logs.id; - - --- --- Name: batched_background_migration_jobs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.batched_background_migration_jobs ( +CREATE TABLE batched_background_migration_jobs ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -10025,31 +7002,16 @@ CREATE TABLE public.batched_background_migration_jobs ( pause_ms integer DEFAULT 100 NOT NULL ); - --- --- Name: batched_background_migration_jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.batched_background_migration_jobs_id_seq +CREATE SEQUENCE batched_background_migration_jobs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE batched_background_migration_jobs_id_seq OWNED BY batched_background_migration_jobs.id; --- --- Name: batched_background_migration_jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.batched_background_migration_jobs_id_seq OWNED BY public.batched_background_migration_jobs.id; - - --- --- Name: batched_background_migrations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.batched_background_migrations ( +CREATE TABLE batched_background_migrations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -10084,68 +7046,33 @@ CREATE TABLE public.batched_background_migrations ( CONSTRAINT check_positive_sub_batch_size CHECK ((sub_batch_size > 0)) ); +COMMENT ON COLUMN batched_background_migrations.on_hold_until IS 'execution of this migration is on hold until this time'; --- --- Name: COLUMN batched_background_migrations.on_hold_until; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.batched_background_migrations.on_hold_until IS 'execution of this migration is on hold until this time'; - - --- --- Name: batched_background_migrations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.batched_background_migrations_id_seq +CREATE SEQUENCE batched_background_migrations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE batched_background_migrations_id_seq OWNED BY batched_background_migrations.id; --- --- Name: batched_background_migrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.batched_background_migrations_id_seq OWNED BY public.batched_background_migrations.id; - - --- --- Name: board_assignees; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.board_assignees ( +CREATE TABLE board_assignees ( id integer NOT NULL, board_id integer NOT NULL, assignee_id integer NOT NULL ); - --- --- Name: board_assignees_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.board_assignees_id_seq +CREATE SEQUENCE board_assignees_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE board_assignees_id_seq OWNED BY board_assignees.id; --- --- Name: board_assignees_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.board_assignees_id_seq OWNED BY public.board_assignees.id; - - --- --- Name: board_group_recent_visits; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.board_group_recent_visits ( +CREATE TABLE board_group_recent_visits ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -10157,61 +7084,31 @@ CREATE TABLE public.board_group_recent_visits ( CONSTRAINT check_fa7711a898 CHECK ((board_id IS NOT NULL)) ); - --- --- Name: board_group_recent_visits_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.board_group_recent_visits_id_seq +CREATE SEQUENCE board_group_recent_visits_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE board_group_recent_visits_id_seq OWNED BY board_group_recent_visits.id; --- --- Name: board_group_recent_visits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.board_group_recent_visits_id_seq OWNED BY public.board_group_recent_visits.id; - - --- --- Name: board_labels; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.board_labels ( +CREATE TABLE board_labels ( id integer NOT NULL, board_id integer NOT NULL, label_id integer NOT NULL ); - --- --- Name: board_labels_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.board_labels_id_seq +CREATE SEQUENCE board_labels_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE board_labels_id_seq OWNED BY board_labels.id; --- --- Name: board_labels_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.board_labels_id_seq OWNED BY public.board_labels.id; - - --- --- Name: board_project_recent_visits; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.board_project_recent_visits ( +CREATE TABLE board_project_recent_visits ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -10223,31 +7120,16 @@ CREATE TABLE public.board_project_recent_visits ( CONSTRAINT check_df7762a99a CHECK ((user_id IS NOT NULL)) ); - --- --- Name: board_project_recent_visits_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.board_project_recent_visits_id_seq +CREATE SEQUENCE board_project_recent_visits_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE board_project_recent_visits_id_seq OWNED BY board_project_recent_visits.id; --- --- Name: board_project_recent_visits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.board_project_recent_visits_id_seq OWNED BY public.board_project_recent_visits.id; - - --- --- Name: board_user_preferences; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.board_user_preferences ( +CREATE TABLE board_user_preferences ( id bigint NOT NULL, user_id bigint NOT NULL, board_id bigint NOT NULL, @@ -10256,31 +7138,16 @@ CREATE TABLE public.board_user_preferences ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: board_user_preferences_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.board_user_preferences_id_seq +CREATE SEQUENCE board_user_preferences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE board_user_preferences_id_seq OWNED BY board_user_preferences.id; --- --- Name: board_user_preferences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.board_user_preferences_id_seq OWNED BY public.board_user_preferences.id; - - --- --- Name: boards; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.boards ( +CREATE TABLE boards ( id integer NOT NULL, project_id integer, created_at timestamp without time zone NOT NULL, @@ -10295,43 +7162,23 @@ CREATE TABLE public.boards ( iteration_cadence_id bigint ); - --- --- Name: boards_epic_board_labels; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.boards_epic_board_labels ( +CREATE TABLE boards_epic_board_labels ( id bigint NOT NULL, epic_board_id bigint NOT NULL, label_id bigint NOT NULL, group_id bigint ); - --- --- Name: boards_epic_board_labels_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.boards_epic_board_labels_id_seq +CREATE SEQUENCE boards_epic_board_labels_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE boards_epic_board_labels_id_seq OWNED BY boards_epic_board_labels.id; --- --- Name: boards_epic_board_labels_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.boards_epic_board_labels_id_seq OWNED BY public.boards_epic_board_labels.id; - - --- --- Name: boards_epic_board_positions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.boards_epic_board_positions ( +CREATE TABLE boards_epic_board_positions ( id bigint NOT NULL, epic_board_id bigint NOT NULL, epic_id bigint NOT NULL, @@ -10341,31 +7188,16 @@ CREATE TABLE public.boards_epic_board_positions ( group_id bigint ); - --- --- Name: boards_epic_board_positions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.boards_epic_board_positions_id_seq +CREATE SEQUENCE boards_epic_board_positions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE boards_epic_board_positions_id_seq OWNED BY boards_epic_board_positions.id; --- --- Name: boards_epic_board_positions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.boards_epic_board_positions_id_seq OWNED BY public.boards_epic_board_positions.id; - - --- --- Name: boards_epic_board_recent_visits; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.boards_epic_board_recent_visits ( +CREATE TABLE boards_epic_board_recent_visits ( id bigint NOT NULL, user_id bigint NOT NULL, epic_board_id bigint NOT NULL, @@ -10374,31 +7206,16 @@ CREATE TABLE public.boards_epic_board_recent_visits ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: boards_epic_board_recent_visits_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.boards_epic_board_recent_visits_id_seq +CREATE SEQUENCE boards_epic_board_recent_visits_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE boards_epic_board_recent_visits_id_seq OWNED BY boards_epic_board_recent_visits.id; --- --- Name: boards_epic_board_recent_visits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.boards_epic_board_recent_visits_id_seq OWNED BY public.boards_epic_board_recent_visits.id; - - --- --- Name: boards_epic_boards; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.boards_epic_boards ( +CREATE TABLE boards_epic_boards ( id bigint NOT NULL, hide_backlog_list boolean DEFAULT false NOT NULL, hide_closed_list boolean DEFAULT false NOT NULL, @@ -10410,31 +7227,16 @@ CREATE TABLE public.boards_epic_boards ( CONSTRAINT check_bcbbffe601 CHECK ((char_length(name) <= 255)) ); - --- --- Name: boards_epic_boards_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.boards_epic_boards_id_seq +CREATE SEQUENCE boards_epic_boards_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE boards_epic_boards_id_seq OWNED BY boards_epic_boards.id; --- --- Name: boards_epic_boards_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.boards_epic_boards_id_seq OWNED BY public.boards_epic_boards.id; - - --- --- Name: boards_epic_list_user_preferences; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.boards_epic_list_user_preferences ( +CREATE TABLE boards_epic_list_user_preferences ( id bigint NOT NULL, user_id bigint NOT NULL, epic_list_id bigint NOT NULL, @@ -10443,31 +7245,16 @@ CREATE TABLE public.boards_epic_list_user_preferences ( collapsed boolean DEFAULT false NOT NULL ); - --- --- Name: boards_epic_list_user_preferences_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.boards_epic_list_user_preferences_id_seq +CREATE SEQUENCE boards_epic_list_user_preferences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE boards_epic_list_user_preferences_id_seq OWNED BY boards_epic_list_user_preferences.id; --- --- Name: boards_epic_list_user_preferences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.boards_epic_list_user_preferences_id_seq OWNED BY public.boards_epic_list_user_preferences.id; - - --- --- Name: boards_epic_lists; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.boards_epic_lists ( +CREATE TABLE boards_epic_lists ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -10479,31 +7266,16 @@ CREATE TABLE public.boards_epic_lists ( CONSTRAINT boards_epic_lists_position_constraint CHECK (((list_type <> 1) OR (("position" IS NOT NULL) AND ("position" >= 0)))) ); - --- --- Name: boards_epic_lists_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.boards_epic_lists_id_seq +CREATE SEQUENCE boards_epic_lists_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE boards_epic_lists_id_seq OWNED BY boards_epic_lists.id; --- --- Name: boards_epic_lists_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.boards_epic_lists_id_seq OWNED BY public.boards_epic_lists.id; - - --- --- Name: boards_epic_user_preferences; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.boards_epic_user_preferences ( +CREATE TABLE boards_epic_user_preferences ( id bigint NOT NULL, board_id bigint NOT NULL, user_id bigint NOT NULL, @@ -10512,50 +7284,25 @@ CREATE TABLE public.boards_epic_user_preferences ( group_id bigint ); - --- --- Name: boards_epic_user_preferences_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.boards_epic_user_preferences_id_seq +CREATE SEQUENCE boards_epic_user_preferences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE boards_epic_user_preferences_id_seq OWNED BY boards_epic_user_preferences.id; --- --- Name: boards_epic_user_preferences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.boards_epic_user_preferences_id_seq OWNED BY public.boards_epic_user_preferences.id; - - --- --- Name: boards_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.boards_id_seq +CREATE SEQUENCE boards_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE boards_id_seq OWNED BY boards.id; --- --- Name: boards_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.boards_id_seq OWNED BY public.boards.id; - - --- --- Name: broadcast_messages; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.broadcast_messages ( +CREATE TABLE broadcast_messages ( id integer NOT NULL, message text NOT NULL, starts_at timestamp without time zone NOT NULL, @@ -10574,31 +7321,16 @@ CREATE TABLE public.broadcast_messages ( show_in_cli boolean DEFAULT true NOT NULL ); - --- --- Name: broadcast_messages_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.broadcast_messages_id_seq +CREATE SEQUENCE broadcast_messages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE broadcast_messages_id_seq OWNED BY broadcast_messages.id; --- --- Name: broadcast_messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.broadcast_messages_id_seq OWNED BY public.broadcast_messages.id; - - --- --- Name: bulk_import_batch_trackers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.bulk_import_batch_trackers ( +CREATE TABLE bulk_import_batch_trackers ( id bigint NOT NULL, tracker_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -10611,31 +7343,16 @@ CREATE TABLE public.bulk_import_batch_trackers ( CONSTRAINT check_3d6963a51f CHECK ((char_length(error) <= 255)) ); - --- --- Name: bulk_import_batch_trackers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.bulk_import_batch_trackers_id_seq +CREATE SEQUENCE bulk_import_batch_trackers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE bulk_import_batch_trackers_id_seq OWNED BY bulk_import_batch_trackers.id; --- --- Name: bulk_import_batch_trackers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.bulk_import_batch_trackers_id_seq OWNED BY public.bulk_import_batch_trackers.id; - - --- --- Name: bulk_import_configurations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.bulk_import_configurations ( +CREATE TABLE bulk_import_configurations ( id bigint NOT NULL, bulk_import_id integer NOT NULL, encrypted_url text, @@ -10646,31 +7363,16 @@ CREATE TABLE public.bulk_import_configurations ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: bulk_import_configurations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.bulk_import_configurations_id_seq +CREATE SEQUENCE bulk_import_configurations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE bulk_import_configurations_id_seq OWNED BY bulk_import_configurations.id; --- --- Name: bulk_import_configurations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.bulk_import_configurations_id_seq OWNED BY public.bulk_import_configurations.id; - - --- --- Name: bulk_import_entities; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.bulk_import_entities ( +CREATE TABLE bulk_import_entities ( id bigint NOT NULL, bulk_import_id bigint NOT NULL, parent_id bigint, @@ -10693,31 +7395,16 @@ CREATE TABLE public.bulk_import_entities ( CONSTRAINT check_b834fff4d9 CHECK ((char_length(destination_namespace) <= 255)) ); - --- --- Name: bulk_import_entities_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.bulk_import_entities_id_seq +CREATE SEQUENCE bulk_import_entities_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE bulk_import_entities_id_seq OWNED BY bulk_import_entities.id; --- --- Name: bulk_import_entities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.bulk_import_entities_id_seq OWNED BY public.bulk_import_entities.id; - - --- --- Name: bulk_import_export_batches; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.bulk_import_export_batches ( +CREATE TABLE bulk_import_export_batches ( id bigint NOT NULL, export_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -10729,31 +7416,16 @@ CREATE TABLE public.bulk_import_export_batches ( CONSTRAINT check_046dc60dfe CHECK ((char_length(error) <= 255)) ); - --- --- Name: bulk_import_export_batches_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.bulk_import_export_batches_id_seq +CREATE SEQUENCE bulk_import_export_batches_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE bulk_import_export_batches_id_seq OWNED BY bulk_import_export_batches.id; --- --- Name: bulk_import_export_batches_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.bulk_import_export_batches_id_seq OWNED BY public.bulk_import_export_batches.id; - - --- --- Name: bulk_import_export_uploads; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.bulk_import_export_uploads ( +CREATE TABLE bulk_import_export_uploads ( id bigint NOT NULL, export_id bigint NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -10762,31 +7434,16 @@ CREATE TABLE public.bulk_import_export_uploads ( CONSTRAINT check_5add76239d CHECK ((char_length(export_file) <= 255)) ); - --- --- Name: bulk_import_export_uploads_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.bulk_import_export_uploads_id_seq +CREATE SEQUENCE bulk_import_export_uploads_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE bulk_import_export_uploads_id_seq OWNED BY bulk_import_export_uploads.id; --- --- Name: bulk_import_export_uploads_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.bulk_import_export_uploads_id_seq OWNED BY public.bulk_import_export_uploads.id; - - --- --- Name: bulk_import_exports; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.bulk_import_exports ( +CREATE TABLE bulk_import_exports ( id bigint NOT NULL, group_id bigint, project_id bigint, @@ -10805,31 +7462,16 @@ CREATE TABLE public.bulk_import_exports ( CONSTRAINT check_9ee6d14d33 CHECK ((char_length(jid) <= 255)) ); - --- --- Name: bulk_import_exports_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.bulk_import_exports_id_seq +CREATE SEQUENCE bulk_import_exports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE bulk_import_exports_id_seq OWNED BY bulk_import_exports.id; --- --- Name: bulk_import_exports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.bulk_import_exports_id_seq OWNED BY public.bulk_import_exports.id; - - --- --- Name: bulk_import_failures; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.bulk_import_failures ( +CREATE TABLE bulk_import_failures ( id bigint NOT NULL, bulk_import_entity_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -10851,31 +7493,16 @@ CREATE TABLE public.bulk_import_failures ( CONSTRAINT check_f99665a440 CHECK ((char_length(subrelation) <= 255)) ); - --- --- Name: bulk_import_failures_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.bulk_import_failures_id_seq +CREATE SEQUENCE bulk_import_failures_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE bulk_import_failures_id_seq OWNED BY bulk_import_failures.id; --- --- Name: bulk_import_failures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.bulk_import_failures_id_seq OWNED BY public.bulk_import_failures.id; - - --- --- Name: bulk_import_trackers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.bulk_import_trackers ( +CREATE TABLE bulk_import_trackers ( id bigint NOT NULL, bulk_import_entity_id bigint NOT NULL, relation text NOT NULL, @@ -10896,31 +7523,16 @@ CREATE TABLE public.bulk_import_trackers ( CONSTRAINT check_next_page_requirement CHECK (((has_next_page IS FALSE) OR (next_page IS NOT NULL))) ); - --- --- Name: bulk_import_trackers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.bulk_import_trackers_id_seq +CREATE SEQUENCE bulk_import_trackers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE bulk_import_trackers_id_seq OWNED BY bulk_import_trackers.id; --- --- Name: bulk_import_trackers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.bulk_import_trackers_id_seq OWNED BY public.bulk_import_trackers.id; - - --- --- Name: bulk_imports; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.bulk_imports ( +CREATE TABLE bulk_imports ( id bigint NOT NULL, user_id integer NOT NULL, source_type smallint NOT NULL, @@ -10933,31 +7545,16 @@ CREATE TABLE public.bulk_imports ( CONSTRAINT check_ea4e58775a CHECK ((char_length(source_version) <= 63)) ); - --- --- Name: bulk_imports_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.bulk_imports_id_seq +CREATE SEQUENCE bulk_imports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE bulk_imports_id_seq OWNED BY bulk_imports.id; --- --- Name: bulk_imports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.bulk_imports_id_seq OWNED BY public.bulk_imports.id; - - --- --- Name: catalog_resource_components; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.catalog_resource_components ( +CREATE TABLE catalog_resource_components ( id bigint NOT NULL, catalog_resource_id bigint NOT NULL, version_id bigint NOT NULL, @@ -10971,31 +7568,16 @@ CREATE TABLE public.catalog_resource_components ( CONSTRAINT check_ddca729980 CHECK ((char_length(name) <= 255)) ); - --- --- Name: catalog_resource_components_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.catalog_resource_components_id_seq +CREATE SEQUENCE catalog_resource_components_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE catalog_resource_components_id_seq OWNED BY catalog_resource_components.id; --- --- Name: catalog_resource_components_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.catalog_resource_components_id_seq OWNED BY public.catalog_resource_components.id; - - --- --- Name: catalog_resource_versions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.catalog_resource_versions ( +CREATE TABLE catalog_resource_versions ( id bigint NOT NULL, release_id bigint NOT NULL, catalog_resource_id bigint NOT NULL, @@ -11014,31 +7596,16 @@ CREATE TABLE public.catalog_resource_versions ( CONSTRAINT check_701bdce47b CHECK ((char_length(semver_prerelease) <= 255)) ); - --- --- Name: catalog_resource_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.catalog_resource_versions_id_seq +CREATE SEQUENCE catalog_resource_versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE catalog_resource_versions_id_seq OWNED BY catalog_resource_versions.id; --- --- Name: catalog_resource_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.catalog_resource_versions_id_seq OWNED BY public.catalog_resource_versions.id; - - --- --- Name: catalog_resources; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.catalog_resources ( +CREATE TABLE catalog_resources ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -11053,62 +7620,32 @@ CREATE TABLE public.catalog_resources ( last_30_day_usage_count_updated_at timestamp with time zone DEFAULT now() NOT NULL ); - --- --- Name: catalog_resources_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.catalog_resources_id_seq +CREATE SEQUENCE catalog_resources_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE catalog_resources_id_seq OWNED BY catalog_resources.id; --- --- Name: catalog_resources_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.catalog_resources_id_seq OWNED BY public.catalog_resources.id; - - --- --- Name: catalog_verified_namespaces; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.catalog_verified_namespaces ( +CREATE TABLE catalog_verified_namespaces ( id bigint NOT NULL, namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, verification_level smallint DEFAULT 0 NOT NULL ); - --- --- Name: catalog_verified_namespaces_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.catalog_verified_namespaces_id_seq +CREATE SEQUENCE catalog_verified_namespaces_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE catalog_verified_namespaces_id_seq OWNED BY catalog_verified_namespaces.id; --- --- Name: catalog_verified_namespaces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.catalog_verified_namespaces_id_seq OWNED BY public.catalog_verified_namespaces.id; - - --- --- Name: chat_names; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.chat_names ( +CREATE TABLE chat_names ( id integer NOT NULL, user_id integer NOT NULL, team_id character varying NOT NULL, @@ -11122,31 +7659,16 @@ CREATE TABLE public.chat_names ( encrypted_token_iv bytea ); - --- --- Name: chat_names_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.chat_names_id_seq +CREATE SEQUENCE chat_names_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE chat_names_id_seq OWNED BY chat_names.id; --- --- Name: chat_names_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.chat_names_id_seq OWNED BY public.chat_names.id; - - --- --- Name: chat_teams; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.chat_teams ( +CREATE TABLE chat_teams ( id integer NOT NULL, namespace_id integer NOT NULL, team_id character varying, @@ -11155,31 +7677,16 @@ CREATE TABLE public.chat_teams ( updated_at timestamp without time zone NOT NULL ); - --- --- Name: chat_teams_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.chat_teams_id_seq +CREATE SEQUENCE chat_teams_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE chat_teams_id_seq OWNED BY chat_teams.id; --- --- Name: chat_teams_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.chat_teams_id_seq OWNED BY public.chat_teams.id; - - --- --- Name: ci_build_needs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_build_needs ( +CREATE TABLE ci_build_needs ( name text NOT NULL, artifacts boolean DEFAULT true NOT NULL, optional boolean DEFAULT false NOT NULL, @@ -11188,31 +7695,16 @@ CREATE TABLE public.ci_build_needs ( id bigint NOT NULL ); - --- --- Name: ci_build_needs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_build_needs_id_seq +CREATE SEQUENCE ci_build_needs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_build_needs_id_seq OWNED BY ci_build_needs.id; --- --- Name: ci_build_needs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_build_needs_id_seq OWNED BY public.ci_build_needs.id; - - --- --- Name: ci_build_pending_states; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_build_pending_states ( +CREATE TABLE ci_build_pending_states ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -11224,43 +7716,23 @@ CREATE TABLE public.ci_build_pending_states ( partition_id bigint NOT NULL ); - --- --- Name: ci_build_pending_states_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_build_pending_states_id_seq +CREATE SEQUENCE ci_build_pending_states_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_build_pending_states_id_seq OWNED BY ci_build_pending_states.id; --- --- Name: ci_build_pending_states_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_build_pending_states_id_seq OWNED BY public.ci_build_pending_states.id; - - --- --- Name: ci_build_report_results; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_build_report_results ( +CREATE TABLE ci_build_report_results ( build_id bigint NOT NULL, project_id bigint NOT NULL, data jsonb DEFAULT '{}'::jsonb NOT NULL, partition_id bigint NOT NULL ); - --- --- Name: ci_build_trace_chunks; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_build_trace_chunks ( +CREATE TABLE ci_build_trace_chunks ( id bigint NOT NULL, chunk_index integer NOT NULL, data_store integer NOT NULL, @@ -11271,31 +7743,16 @@ CREATE TABLE public.ci_build_trace_chunks ( partition_id bigint NOT NULL ); - --- --- Name: ci_build_trace_chunks_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_build_trace_chunks_id_seq +CREATE SEQUENCE ci_build_trace_chunks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_build_trace_chunks_id_seq OWNED BY ci_build_trace_chunks.id; --- --- Name: ci_build_trace_chunks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_build_trace_chunks_id_seq OWNED BY public.ci_build_trace_chunks.id; - - --- --- Name: p_ci_build_trace_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.p_ci_build_trace_metadata ( +CREATE TABLE p_ci_build_trace_metadata ( build_id bigint NOT NULL, partition_id bigint NOT NULL, trace_artifact_id bigint, @@ -11307,12 +7764,7 @@ CREATE TABLE public.p_ci_build_trace_metadata ( ) PARTITION BY LIST (partition_id); - --- --- Name: ci_build_trace_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_build_trace_metadata ( +CREATE TABLE ci_build_trace_metadata ( build_id bigint NOT NULL, partition_id bigint NOT NULL, trace_artifact_id bigint, @@ -11323,12 +7775,7 @@ CREATE TABLE public.ci_build_trace_metadata ( remote_checksum bytea ); - --- --- Name: ci_builds; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_builds ( +CREATE TABLE ci_builds ( status character varying, finished_at timestamp without time zone, created_at timestamp without time zone, @@ -11380,50 +7827,25 @@ CREATE TABLE public.ci_builds ( CONSTRAINT check_9aa9432137 CHECK ((project_id IS NOT NULL)) ); - --- --- Name: ci_builds_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_builds_id_seq +CREATE SEQUENCE ci_builds_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_builds_id_seq OWNED BY p_ci_builds.id; --- --- Name: ci_builds_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_builds_id_seq OWNED BY public.p_ci_builds.id; - - --- --- Name: ci_builds_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_builds_metadata_id_seq +CREATE SEQUENCE ci_builds_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_builds_metadata_id_seq OWNED BY p_ci_builds_metadata.id; --- --- Name: ci_builds_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_builds_metadata_id_seq OWNED BY public.p_ci_builds_metadata.id; - - --- --- Name: ci_builds_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_builds_metadata ( +CREATE TABLE ci_builds_metadata ( project_id integer NOT NULL, timeout integer, timeout_source integer DEFAULT 1 NOT NULL, @@ -11435,7 +7857,7 @@ CREATE TABLE public.ci_builds_metadata ( expanded_environment_name character varying(255), secrets jsonb DEFAULT '{}'::jsonb NOT NULL, build_id bigint NOT NULL, - id bigint DEFAULT nextval('public.ci_builds_metadata_id_seq'::regclass) NOT NULL, + id bigint DEFAULT nextval('ci_builds_metadata_id_seq'::regclass) NOT NULL, runtime_runner_features jsonb DEFAULT '{}'::jsonb NOT NULL, id_tokens jsonb DEFAULT '{}'::jsonb NOT NULL, partition_id bigint NOT NULL, @@ -11443,12 +7865,7 @@ CREATE TABLE public.ci_builds_metadata ( exit_code smallint ); - --- --- Name: ci_builds_runner_session; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_builds_runner_session ( +CREATE TABLE ci_builds_runner_session ( id bigint NOT NULL, url character varying NOT NULL, certificate character varying, @@ -11457,31 +7874,16 @@ CREATE TABLE public.ci_builds_runner_session ( partition_id bigint NOT NULL ); - --- --- Name: ci_builds_runner_session_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_builds_runner_session_id_seq +CREATE SEQUENCE ci_builds_runner_session_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_builds_runner_session_id_seq OWNED BY ci_builds_runner_session.id; --- --- Name: ci_builds_runner_session_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_builds_runner_session_id_seq OWNED BY public.ci_builds_runner_session.id; - - --- --- Name: ci_cost_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_cost_settings ( +CREATE TABLE ci_cost_settings ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, runner_id bigint NOT NULL, @@ -11490,12 +7892,7 @@ CREATE TABLE public.ci_cost_settings ( os_plan_factor double precision DEFAULT 0.5 NOT NULL ); - --- --- Name: ci_daily_build_group_report_results; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_daily_build_group_report_results ( +CREATE TABLE ci_daily_build_group_report_results ( id bigint NOT NULL, date date NOT NULL, project_id bigint NOT NULL, @@ -11508,31 +7905,16 @@ CREATE TABLE public.ci_daily_build_group_report_results ( partition_id bigint NOT NULL ); - --- --- Name: ci_daily_build_group_report_results_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_daily_build_group_report_results_id_seq +CREATE SEQUENCE ci_daily_build_group_report_results_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_daily_build_group_report_results_id_seq OWNED BY ci_daily_build_group_report_results.id; --- --- Name: ci_daily_build_group_report_results_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_daily_build_group_report_results_id_seq OWNED BY public.ci_daily_build_group_report_results.id; - - --- --- Name: ci_deleted_objects; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_deleted_objects ( +CREATE TABLE ci_deleted_objects ( id bigint NOT NULL, file_store smallint DEFAULT 1 NOT NULL, pick_up_at timestamp with time zone DEFAULT now() NOT NULL, @@ -11541,31 +7923,16 @@ CREATE TABLE public.ci_deleted_objects ( CONSTRAINT check_5e151d6912 CHECK ((char_length(store_dir) <= 1024)) ); - --- --- Name: ci_deleted_objects_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_deleted_objects_id_seq +CREATE SEQUENCE ci_deleted_objects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_deleted_objects_id_seq OWNED BY ci_deleted_objects.id; --- --- Name: ci_deleted_objects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_deleted_objects_id_seq OWNED BY public.ci_deleted_objects.id; - - --- --- Name: ci_freeze_periods; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_freeze_periods ( +CREATE TABLE ci_freeze_periods ( id bigint NOT NULL, project_id bigint NOT NULL, freeze_start character varying(998) NOT NULL, @@ -11575,31 +7942,16 @@ CREATE TABLE public.ci_freeze_periods ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: ci_freeze_periods_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_freeze_periods_id_seq +CREATE SEQUENCE ci_freeze_periods_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_freeze_periods_id_seq OWNED BY ci_freeze_periods.id; --- --- Name: ci_freeze_periods_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_freeze_periods_id_seq OWNED BY public.ci_freeze_periods.id; - - --- --- Name: ci_group_variables; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_group_variables ( +CREATE TABLE ci_group_variables ( id integer NOT NULL, key character varying NOT NULL, value text, @@ -11620,31 +7972,16 @@ CREATE TABLE public.ci_group_variables ( CONSTRAINT check_e2e50ff879 CHECK ((char_length(description) <= 255)) ); - --- --- Name: ci_group_variables_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_group_variables_id_seq +CREATE SEQUENCE ci_group_variables_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_group_variables_id_seq OWNED BY ci_group_variables.id; --- --- Name: ci_group_variables_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_group_variables_id_seq OWNED BY public.ci_group_variables.id; - - --- --- Name: ci_instance_variables; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_instance_variables ( +CREATE TABLE ci_instance_variables ( id bigint NOT NULL, variable_type smallint DEFAULT 1 NOT NULL, masked boolean DEFAULT false, @@ -11660,31 +7997,16 @@ CREATE TABLE public.ci_instance_variables ( CONSTRAINT check_a0a9762afa CHECK ((char_length(description) <= 255)) ); - --- --- Name: ci_instance_variables_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_instance_variables_id_seq +CREATE SEQUENCE ci_instance_variables_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_instance_variables_id_seq OWNED BY ci_instance_variables.id; --- --- Name: ci_instance_variables_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_instance_variables_id_seq OWNED BY public.ci_instance_variables.id; - - --- --- Name: ci_job_artifact_states; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_job_artifact_states ( +CREATE TABLE ci_job_artifact_states ( verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, verified_at timestamp with time zone, @@ -11697,12 +8019,7 @@ CREATE TABLE public.ci_job_artifact_states ( CONSTRAINT check_df832b66ea CHECK ((char_length(verification_failure) <= 255)) ); - --- --- Name: ci_job_artifacts; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_job_artifacts ( +CREATE TABLE ci_job_artifacts ( project_id integer NOT NULL, file_type integer NOT NULL, size bigint, @@ -11724,31 +8041,16 @@ CREATE TABLE public.ci_job_artifacts ( CONSTRAINT check_9f04410cf4 CHECK ((char_length(file_final_path) <= 1024)) ); - --- --- Name: ci_job_artifacts_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_job_artifacts_id_seq +CREATE SEQUENCE ci_job_artifacts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_job_artifacts_id_seq OWNED BY p_ci_job_artifacts.id; --- --- Name: ci_job_artifacts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_job_artifacts_id_seq OWNED BY public.p_ci_job_artifacts.id; - - --- --- Name: ci_job_token_group_scope_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_job_token_group_scope_links ( +CREATE TABLE ci_job_token_group_scope_links ( id bigint NOT NULL, source_project_id bigint NOT NULL, target_group_id bigint NOT NULL, @@ -11756,31 +8058,16 @@ CREATE TABLE public.ci_job_token_group_scope_links ( created_at timestamp with time zone NOT NULL ); - --- --- Name: ci_job_token_group_scope_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_job_token_group_scope_links_id_seq +CREATE SEQUENCE ci_job_token_group_scope_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_job_token_group_scope_links_id_seq OWNED BY ci_job_token_group_scope_links.id; --- --- Name: ci_job_token_group_scope_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_job_token_group_scope_links_id_seq OWNED BY public.ci_job_token_group_scope_links.id; - - --- --- Name: ci_job_token_project_scope_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_job_token_project_scope_links ( +CREATE TABLE ci_job_token_project_scope_links ( id bigint NOT NULL, source_project_id bigint NOT NULL, target_project_id bigint NOT NULL, @@ -11789,31 +8076,16 @@ CREATE TABLE public.ci_job_token_project_scope_links ( direction smallint DEFAULT 0 NOT NULL ); - --- --- Name: ci_job_token_project_scope_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_job_token_project_scope_links_id_seq +CREATE SEQUENCE ci_job_token_project_scope_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_job_token_project_scope_links_id_seq OWNED BY ci_job_token_project_scope_links.id; --- --- Name: ci_job_token_project_scope_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_job_token_project_scope_links_id_seq OWNED BY public.ci_job_token_project_scope_links.id; - - --- --- Name: ci_job_variables; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_job_variables ( +CREATE TABLE ci_job_variables ( id bigint NOT NULL, key character varying NOT NULL, encrypted_value text, @@ -11826,31 +8098,16 @@ CREATE TABLE public.ci_job_variables ( project_id bigint ); - --- --- Name: ci_job_variables_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_job_variables_id_seq +CREATE SEQUENCE ci_job_variables_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_job_variables_id_seq OWNED BY ci_job_variables.id; --- --- Name: ci_job_variables_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_job_variables_id_seq OWNED BY public.ci_job_variables.id; - - --- --- Name: ci_minutes_additional_packs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_minutes_additional_packs ( +CREATE TABLE ci_minutes_additional_packs ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -11861,61 +8118,31 @@ CREATE TABLE public.ci_minutes_additional_packs ( CONSTRAINT check_d7ef254af0 CHECK ((char_length(purchase_xid) <= 50)) ); - --- --- Name: ci_minutes_additional_packs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_minutes_additional_packs_id_seq +CREATE SEQUENCE ci_minutes_additional_packs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_minutes_additional_packs_id_seq OWNED BY ci_minutes_additional_packs.id; --- --- Name: ci_minutes_additional_packs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_minutes_additional_packs_id_seq OWNED BY public.ci_minutes_additional_packs.id; - - --- --- Name: ci_namespace_mirrors; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_namespace_mirrors ( +CREATE TABLE ci_namespace_mirrors ( id bigint NOT NULL, namespace_id integer NOT NULL, traversal_ids integer[] DEFAULT '{}'::integer[] NOT NULL ); - --- --- Name: ci_namespace_mirrors_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_namespace_mirrors_id_seq +CREATE SEQUENCE ci_namespace_mirrors_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_namespace_mirrors_id_seq OWNED BY ci_namespace_mirrors.id; --- --- Name: ci_namespace_mirrors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_namespace_mirrors_id_seq OWNED BY public.ci_namespace_mirrors.id; - - --- --- Name: ci_namespace_monthly_usages; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_namespace_monthly_usages ( +CREATE TABLE ci_namespace_monthly_usages ( id bigint NOT NULL, namespace_id bigint NOT NULL, date date NOT NULL, @@ -11926,43 +8153,23 @@ CREATE TABLE public.ci_namespace_monthly_usages ( CONSTRAINT ci_namespace_monthly_usages_year_month_constraint CHECK ((date = date_trunc('month'::text, (date)::timestamp with time zone))) ); - --- --- Name: ci_namespace_monthly_usages_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_namespace_monthly_usages_id_seq +CREATE SEQUENCE ci_namespace_monthly_usages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_namespace_monthly_usages_id_seq OWNED BY ci_namespace_monthly_usages.id; --- --- Name: ci_namespace_monthly_usages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_namespace_monthly_usages_id_seq OWNED BY public.ci_namespace_monthly_usages.id; - - --- --- Name: ci_partitions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_partitions ( +CREATE TABLE ci_partitions ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, status smallint DEFAULT 0 NOT NULL ); - --- --- Name: ci_pending_builds; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_pending_builds ( +CREATE TABLE ci_pending_builds ( id bigint NOT NULL, build_id bigint NOT NULL, project_id bigint NOT NULL, @@ -11977,31 +8184,16 @@ CREATE TABLE public.ci_pending_builds ( plan_id integer ); - --- --- Name: ci_pending_builds_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_pending_builds_id_seq +CREATE SEQUENCE ci_pending_builds_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_pending_builds_id_seq OWNED BY ci_pending_builds.id; --- --- Name: ci_pending_builds_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_pending_builds_id_seq OWNED BY public.ci_pending_builds.id; - - --- --- Name: ci_pipeline_artifacts; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_pipeline_artifacts ( +CREATE TABLE ci_pipeline_artifacts ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -12027,31 +8219,16 @@ CREATE TABLE public.ci_pipeline_artifacts ( CONSTRAINT ci_pipeline_artifacts_verification_failure_text_limit CHECK ((char_length(verification_failure) <= 255)) ); - --- --- Name: ci_pipeline_artifacts_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_pipeline_artifacts_id_seq +CREATE SEQUENCE ci_pipeline_artifacts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_pipeline_artifacts_id_seq OWNED BY ci_pipeline_artifacts.id; --- --- Name: ci_pipeline_artifacts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_pipeline_artifacts_id_seq OWNED BY public.ci_pipeline_artifacts.id; - - --- --- Name: ci_pipeline_chat_data; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_pipeline_chat_data ( +CREATE TABLE ci_pipeline_chat_data ( id bigint NOT NULL, chat_name_id integer NOT NULL, response_url text NOT NULL, @@ -12059,31 +8236,16 @@ CREATE TABLE public.ci_pipeline_chat_data ( partition_id bigint NOT NULL ); - --- --- Name: ci_pipeline_chat_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_pipeline_chat_data_id_seq +CREATE SEQUENCE ci_pipeline_chat_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_pipeline_chat_data_id_seq OWNED BY ci_pipeline_chat_data.id; --- --- Name: ci_pipeline_chat_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_pipeline_chat_data_id_seq OWNED BY public.ci_pipeline_chat_data.id; - - --- --- Name: ci_pipeline_messages; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_pipeline_messages ( +CREATE TABLE ci_pipeline_messages ( id bigint NOT NULL, severity smallint DEFAULT 0 NOT NULL, content text NOT NULL, @@ -12092,31 +8254,16 @@ CREATE TABLE public.ci_pipeline_messages ( CONSTRAINT check_58ca2981b2 CHECK ((char_length(content) <= 10000)) ); - --- --- Name: ci_pipeline_messages_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_pipeline_messages_id_seq +CREATE SEQUENCE ci_pipeline_messages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_pipeline_messages_id_seq OWNED BY ci_pipeline_messages.id; --- --- Name: ci_pipeline_messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_pipeline_messages_id_seq OWNED BY public.ci_pipeline_messages.id; - - --- --- Name: ci_pipeline_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_pipeline_metadata ( +CREATE TABLE ci_pipeline_metadata ( project_id bigint NOT NULL, pipeline_id bigint NOT NULL, name text, @@ -12126,12 +8273,7 @@ CREATE TABLE public.ci_pipeline_metadata ( CONSTRAINT check_9d3665463c CHECK ((char_length(name) <= 255)) ); - --- --- Name: ci_pipeline_schedule_variables; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_pipeline_schedule_variables ( +CREATE TABLE ci_pipeline_schedule_variables ( id integer NOT NULL, key character varying NOT NULL, value text, @@ -12145,31 +8287,16 @@ CREATE TABLE public.ci_pipeline_schedule_variables ( raw boolean DEFAULT false NOT NULL ); - --- --- Name: ci_pipeline_schedule_variables_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_pipeline_schedule_variables_id_seq +CREATE SEQUENCE ci_pipeline_schedule_variables_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_pipeline_schedule_variables_id_seq OWNED BY ci_pipeline_schedule_variables.id; --- --- Name: ci_pipeline_schedule_variables_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_pipeline_schedule_variables_id_seq OWNED BY public.ci_pipeline_schedule_variables.id; - - --- --- Name: ci_pipeline_schedules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_pipeline_schedules ( +CREATE TABLE ci_pipeline_schedules ( id integer NOT NULL, description character varying, ref character varying, @@ -12183,31 +8310,16 @@ CREATE TABLE public.ci_pipeline_schedules ( updated_at timestamp without time zone ); - --- --- Name: ci_pipeline_schedules_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_pipeline_schedules_id_seq +CREATE SEQUENCE ci_pipeline_schedules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_pipeline_schedules_id_seq OWNED BY ci_pipeline_schedules.id; --- --- Name: ci_pipeline_schedules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_pipeline_schedules_id_seq OWNED BY public.ci_pipeline_schedules.id; - - --- --- Name: ci_pipeline_variables; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_pipeline_variables ( +CREATE TABLE ci_pipeline_variables ( key character varying NOT NULL, value text, encrypted_value text, @@ -12220,31 +8332,62 @@ CREATE TABLE public.ci_pipeline_variables ( pipeline_id bigint NOT NULL ); - --- --- Name: ci_pipeline_variables_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_pipeline_variables_id_seq +CREATE SEQUENCE ci_pipeline_variables_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_pipeline_variables_id_seq OWNED BY p_ci_pipeline_variables.id; --- --- Name: ci_pipeline_variables_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_pipeline_variables_id_seq OWNED BY public.p_ci_pipeline_variables.id; +CREATE TABLE p_ci_pipelines ( + ref character varying, + sha character varying, + before_sha character varying, + created_at timestamp without time zone, + updated_at timestamp without time zone, + tag boolean DEFAULT false, + yaml_errors text, + committed_at timestamp without time zone, + project_id integer, + status character varying, + started_at timestamp without time zone, + finished_at timestamp without time zone, + duration integer, + user_id integer, + lock_version integer DEFAULT 0, + pipeline_schedule_id integer, + source integer, + config_source integer, + protected boolean, + failure_reason integer, + iid integer, + merge_request_id integer, + source_sha bytea, + target_sha bytea, + external_pull_request_id bigint, + ci_ref_id bigint, + locked smallint DEFAULT 1 NOT NULL, + partition_id bigint NOT NULL, + id bigint NOT NULL, + auto_canceled_by_id bigint, + auto_canceled_by_partition_id bigint, + CONSTRAINT check_2ba2a044b9 CHECK ((project_id IS NOT NULL)), + CONSTRAINT check_d7e99a025e CHECK ((lock_version IS NOT NULL)) +) +PARTITION BY LIST (partition_id); +CREATE SEQUENCE ci_pipelines_id_seq + START WITH 1 + INCREMENT BY 1 + NO MINVALUE + NO MAXVALUE + CACHE 1; --- --- Name: p_ci_pipelines; Type: TABLE; Schema: public; Owner: - --- +ALTER SEQUENCE ci_pipelines_id_seq OWNED BY p_ci_pipelines.id; -CREATE TABLE public.p_ci_pipelines ( +CREATE TABLE ci_pipelines ( ref character varying, sha character varying, before_sha character varying, @@ -12273,121 +8416,35 @@ CREATE TABLE public.p_ci_pipelines ( ci_ref_id bigint, locked smallint DEFAULT 1 NOT NULL, partition_id bigint NOT NULL, - id bigint NOT NULL, - auto_canceled_by_id bigint, - auto_canceled_by_partition_id bigint, - CONSTRAINT check_2ba2a044b9 CHECK ((project_id IS NOT NULL)), - CONSTRAINT check_d7e99a025e CHECK ((lock_version IS NOT NULL)) -) -PARTITION BY LIST (partition_id); - - --- --- Name: ci_pipelines_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_pipelines_id_seq - START WITH 1 - INCREMENT BY 1 - NO MINVALUE - NO MAXVALUE - CACHE 1; - - --- --- Name: ci_pipelines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_pipelines_id_seq OWNED BY public.p_ci_pipelines.id; - - --- --- Name: ci_pipelines; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_pipelines ( - ref character varying, - sha character varying, - before_sha character varying, - created_at timestamp without time zone, - updated_at timestamp without time zone, - tag boolean DEFAULT false, - yaml_errors text, - committed_at timestamp without time zone, - project_id integer, - status character varying, - started_at timestamp without time zone, - finished_at timestamp without time zone, - duration integer, - user_id integer, - lock_version integer DEFAULT 0, - pipeline_schedule_id integer, - source integer, - config_source integer, - protected boolean, - failure_reason integer, - iid integer, - merge_request_id integer, - source_sha bytea, - target_sha bytea, - external_pull_request_id bigint, - ci_ref_id bigint, - locked smallint DEFAULT 1 NOT NULL, - partition_id bigint NOT NULL, - id bigint DEFAULT nextval('public.ci_pipelines_id_seq'::regclass) NOT NULL, + id bigint DEFAULT nextval('ci_pipelines_id_seq'::regclass) NOT NULL, auto_canceled_by_id bigint, auto_canceled_by_partition_id bigint, CONSTRAINT check_2ba2a044b9 CHECK ((project_id IS NOT NULL)), CONSTRAINT check_d7e99a025e CHECK ((lock_version IS NOT NULL)) ); - --- --- Name: ci_pipelines_config; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_pipelines_config ( +CREATE TABLE ci_pipelines_config ( pipeline_id bigint NOT NULL, content text NOT NULL, partition_id bigint NOT NULL ); - --- --- Name: ci_project_mirrors; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_project_mirrors ( +CREATE TABLE ci_project_mirrors ( id bigint NOT NULL, project_id integer NOT NULL, namespace_id integer NOT NULL ); - --- --- Name: ci_project_mirrors_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_project_mirrors_id_seq +CREATE SEQUENCE ci_project_mirrors_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_project_mirrors_id_seq OWNED BY ci_project_mirrors.id; --- --- Name: ci_project_mirrors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_project_mirrors_id_seq OWNED BY public.ci_project_mirrors.id; - - --- --- Name: ci_project_monthly_usages; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_project_monthly_usages ( +CREATE TABLE ci_project_monthly_usages ( id bigint NOT NULL, project_id bigint NOT NULL, date date NOT NULL, @@ -12397,31 +8454,16 @@ CREATE TABLE public.ci_project_monthly_usages ( CONSTRAINT ci_project_monthly_usages_year_month_constraint CHECK ((date = date_trunc('month'::text, (date)::timestamp with time zone))) ); - --- --- Name: ci_project_monthly_usages_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_project_monthly_usages_id_seq +CREATE SEQUENCE ci_project_monthly_usages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_project_monthly_usages_id_seq OWNED BY ci_project_monthly_usages.id; --- --- Name: ci_project_monthly_usages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_project_monthly_usages_id_seq OWNED BY public.ci_project_monthly_usages.id; - - --- --- Name: ci_refs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_refs ( +CREATE TABLE ci_refs ( id bigint NOT NULL, project_id bigint NOT NULL, lock_version integer DEFAULT 0 NOT NULL, @@ -12429,31 +8471,16 @@ CREATE TABLE public.ci_refs ( ref_path text NOT NULL ); - --- --- Name: ci_refs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_refs_id_seq +CREATE SEQUENCE ci_refs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_refs_id_seq OWNED BY ci_refs.id; --- --- Name: ci_refs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_refs_id_seq OWNED BY public.ci_refs.id; - - --- --- Name: ci_resource_groups; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_resource_groups ( +CREATE TABLE ci_resource_groups ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -12462,31 +8489,16 @@ CREATE TABLE public.ci_resource_groups ( process_mode smallint DEFAULT 0 NOT NULL ); - --- --- Name: ci_resource_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_resource_groups_id_seq +CREATE SEQUENCE ci_resource_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_resource_groups_id_seq OWNED BY ci_resource_groups.id; --- --- Name: ci_resource_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_resource_groups_id_seq OWNED BY public.ci_resource_groups.id; - - --- --- Name: ci_resources; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_resources ( +CREATE TABLE ci_resources ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -12495,31 +8507,16 @@ CREATE TABLE public.ci_resources ( partition_id bigint ); - --- --- Name: ci_resources_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_resources_id_seq +CREATE SEQUENCE ci_resources_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_resources_id_seq OWNED BY ci_resources.id; --- --- Name: ci_resources_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_resources_id_seq OWNED BY public.ci_resources.id; - - --- --- Name: ci_runner_machines; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_runner_machines ( +CREATE TABLE ci_runner_machines ( id bigint NOT NULL, runner_id bigint NOT NULL, executor_type smallint, @@ -12543,62 +8540,32 @@ CREATE TABLE public.ci_runner_machines ( CONSTRAINT check_f214590856 CHECK ((char_length(ip_address) <= 1024)) ); - --- --- Name: ci_runner_machines_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_runner_machines_id_seq +CREATE SEQUENCE ci_runner_machines_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_runner_machines_id_seq OWNED BY ci_runner_machines.id; --- --- Name: ci_runner_machines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_runner_machines_id_seq OWNED BY public.ci_runner_machines.id; - - --- --- Name: ci_runner_namespaces; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_runner_namespaces ( +CREATE TABLE ci_runner_namespaces ( id integer NOT NULL, runner_id integer, namespace_id integer, CONSTRAINT check_5f3dce48df CHECK ((namespace_id IS NOT NULL)) ); - --- --- Name: ci_runner_namespaces_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_runner_namespaces_id_seq +CREATE SEQUENCE ci_runner_namespaces_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_runner_namespaces_id_seq OWNED BY ci_runner_namespaces.id; --- --- Name: ci_runner_namespaces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_runner_namespaces_id_seq OWNED BY public.ci_runner_namespaces.id; - - --- --- Name: ci_runner_projects; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_runner_projects ( +CREATE TABLE ci_runner_projects ( id integer NOT NULL, runner_id integer NOT NULL, created_at timestamp without time zone, @@ -12607,42 +8574,22 @@ CREATE TABLE public.ci_runner_projects ( CONSTRAINT check_db297016c6 CHECK ((project_id IS NOT NULL)) ); - --- --- Name: ci_runner_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_runner_projects_id_seq +CREATE SEQUENCE ci_runner_projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_runner_projects_id_seq OWNED BY ci_runner_projects.id; --- --- Name: ci_runner_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_runner_projects_id_seq OWNED BY public.ci_runner_projects.id; - - --- --- Name: ci_runner_versions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_runner_versions ( +CREATE TABLE ci_runner_versions ( version text NOT NULL, status smallint, CONSTRAINT check_b5a3714594 CHECK ((char_length(version) <= 2048)) ); - --- --- Name: ci_runners; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_runners ( +CREATE TABLE ci_runners ( id integer NOT NULL, token character varying, created_at timestamp without time zone, @@ -12669,31 +8616,16 @@ CREATE TABLE public.ci_runners ( CONSTRAINT check_ce275cee06 CHECK ((char_length(maintainer_note) <= 1024)) ); - --- --- Name: ci_runners_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_runners_id_seq +CREATE SEQUENCE ci_runners_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_runners_id_seq OWNED BY ci_runners.id; --- --- Name: ci_runners_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_runners_id_seq OWNED BY public.ci_runners.id; - - --- --- Name: ci_running_builds; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_running_builds ( +CREATE TABLE ci_running_builds ( id bigint NOT NULL, build_id bigint NOT NULL, project_id bigint NOT NULL, @@ -12704,31 +8636,16 @@ CREATE TABLE public.ci_running_builds ( runner_owner_namespace_xid bigint ); - --- --- Name: ci_running_builds_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_running_builds_id_seq +CREATE SEQUENCE ci_running_builds_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_running_builds_id_seq OWNED BY ci_running_builds.id; --- --- Name: ci_running_builds_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_running_builds_id_seq OWNED BY public.ci_running_builds.id; - - --- --- Name: ci_secure_file_states; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_secure_file_states ( +CREATE TABLE ci_secure_file_states ( verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, verified_at timestamp with time zone, @@ -12740,31 +8657,16 @@ CREATE TABLE public.ci_secure_file_states ( CONSTRAINT check_a79e5a9261 CHECK ((char_length(verification_failure) <= 255)) ); - --- --- Name: ci_secure_file_states_ci_secure_file_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_secure_file_states_ci_secure_file_id_seq +CREATE SEQUENCE ci_secure_file_states_ci_secure_file_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_secure_file_states_ci_secure_file_id_seq OWNED BY ci_secure_file_states.ci_secure_file_id; --- --- Name: ci_secure_file_states_ci_secure_file_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_secure_file_states_ci_secure_file_id_seq OWNED BY public.ci_secure_file_states.ci_secure_file_id; - - --- --- Name: ci_secure_files; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_secure_files ( +CREATE TABLE ci_secure_files ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -12781,31 +8683,16 @@ CREATE TABLE public.ci_secure_files ( CONSTRAINT check_7279b4e293 CHECK ((char_length(key_data) <= 128)) ); - --- --- Name: ci_secure_files_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_secure_files_id_seq +CREATE SEQUENCE ci_secure_files_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_secure_files_id_seq OWNED BY ci_secure_files.id; --- --- Name: ci_secure_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_secure_files_id_seq OWNED BY public.ci_secure_files.id; - - --- --- Name: ci_sources_pipelines; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_sources_pipelines ( +CREATE TABLE ci_sources_pipelines ( id integer NOT NULL, project_id integer, source_project_id integer, @@ -12816,62 +8703,32 @@ CREATE TABLE public.ci_sources_pipelines ( source_pipeline_id bigint ); - --- --- Name: ci_sources_pipelines_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_sources_pipelines_id_seq +CREATE SEQUENCE ci_sources_pipelines_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_sources_pipelines_id_seq OWNED BY ci_sources_pipelines.id; --- --- Name: ci_sources_pipelines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_sources_pipelines_id_seq OWNED BY public.ci_sources_pipelines.id; - - --- --- Name: ci_sources_projects; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_sources_projects ( +CREATE TABLE ci_sources_projects ( id bigint NOT NULL, pipeline_id bigint NOT NULL, source_project_id bigint NOT NULL, partition_id bigint NOT NULL ); - --- --- Name: ci_sources_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_sources_projects_id_seq +CREATE SEQUENCE ci_sources_projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_sources_projects_id_seq OWNED BY ci_sources_projects.id; --- --- Name: ci_sources_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_sources_projects_id_seq OWNED BY public.ci_sources_projects.id; - - --- --- Name: ci_stages; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_stages ( +CREATE TABLE ci_stages ( project_id integer, created_at timestamp without time zone, updated_at timestamp without time zone, @@ -12885,62 +8742,32 @@ CREATE TABLE public.ci_stages ( CONSTRAINT check_81b431e49b CHECK ((lock_version IS NOT NULL)) ); - --- --- Name: ci_stages_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_stages_id_seq +CREATE SEQUENCE ci_stages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_stages_id_seq OWNED BY p_ci_stages.id; --- --- Name: ci_stages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_stages_id_seq OWNED BY public.p_ci_stages.id; - - --- --- Name: ci_subscriptions_projects; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_subscriptions_projects ( +CREATE TABLE ci_subscriptions_projects ( id bigint NOT NULL, downstream_project_id bigint NOT NULL, upstream_project_id bigint NOT NULL, author_id bigint ); - --- --- Name: ci_subscriptions_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_subscriptions_projects_id_seq +CREATE SEQUENCE ci_subscriptions_projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_subscriptions_projects_id_seq OWNED BY ci_subscriptions_projects.id; --- --- Name: ci_subscriptions_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_subscriptions_projects_id_seq OWNED BY public.ci_subscriptions_projects.id; - - --- --- Name: ci_trigger_requests; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_trigger_requests ( +CREATE TABLE ci_trigger_requests ( id integer NOT NULL, trigger_id integer NOT NULL, variables text, @@ -12949,31 +8776,16 @@ CREATE TABLE public.ci_trigger_requests ( commit_id integer ); - --- --- Name: ci_trigger_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_trigger_requests_id_seq +CREATE SEQUENCE ci_trigger_requests_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_trigger_requests_id_seq OWNED BY ci_trigger_requests.id; --- --- Name: ci_trigger_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_trigger_requests_id_seq OWNED BY public.ci_trigger_requests.id; - - --- --- Name: ci_triggers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_triggers ( +CREATE TABLE ci_triggers ( id integer NOT NULL, token character varying, created_at timestamp without time zone, @@ -12985,31 +8797,16 @@ CREATE TABLE public.ci_triggers ( encrypted_token_iv bytea ); - --- --- Name: ci_triggers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_triggers_id_seq +CREATE SEQUENCE ci_triggers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_triggers_id_seq OWNED BY ci_triggers.id; --- --- Name: ci_triggers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_triggers_id_seq OWNED BY public.ci_triggers.id; - - --- --- Name: ci_unit_test_failures; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_unit_test_failures ( +CREATE TABLE ci_unit_test_failures ( id bigint NOT NULL, failed_at timestamp with time zone NOT NULL, unit_test_id bigint NOT NULL, @@ -13017,31 +8814,16 @@ CREATE TABLE public.ci_unit_test_failures ( partition_id bigint NOT NULL ); - --- --- Name: ci_unit_test_failures_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_unit_test_failures_id_seq +CREATE SEQUENCE ci_unit_test_failures_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_unit_test_failures_id_seq OWNED BY ci_unit_test_failures.id; --- --- Name: ci_unit_test_failures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_unit_test_failures_id_seq OWNED BY public.ci_unit_test_failures.id; - - --- --- Name: ci_unit_tests; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_unit_tests ( +CREATE TABLE ci_unit_tests ( id bigint NOT NULL, project_id bigint NOT NULL, key_hash text NOT NULL, @@ -13052,31 +8834,16 @@ CREATE TABLE public.ci_unit_tests ( CONSTRAINT check_c2d57b3c49 CHECK ((char_length(suite_name) <= 255)) ); - --- --- Name: ci_unit_tests_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_unit_tests_id_seq +CREATE SEQUENCE ci_unit_tests_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_unit_tests_id_seq OWNED BY ci_unit_tests.id; --- --- Name: ci_unit_tests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_unit_tests_id_seq OWNED BY public.ci_unit_tests.id; - - --- --- Name: ci_variables; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ci_variables ( +CREATE TABLE ci_variables ( id integer NOT NULL, key character varying NOT NULL, value text, @@ -13094,62 +8861,32 @@ CREATE TABLE public.ci_variables ( CONSTRAINT check_7e46c006aa CHECK ((char_length(description) <= 255)) ); - --- --- Name: ci_variables_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ci_variables_id_seq +CREATE SEQUENCE ci_variables_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ci_variables_id_seq OWNED BY ci_variables.id; --- --- Name: ci_variables_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ci_variables_id_seq OWNED BY public.ci_variables.id; - - --- --- Name: cloud_connector_access; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.cloud_connector_access ( +CREATE TABLE cloud_connector_access ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, data jsonb NOT NULL ); - --- --- Name: cloud_connector_access_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.cloud_connector_access_id_seq +CREATE SEQUENCE cloud_connector_access_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE cloud_connector_access_id_seq OWNED BY cloud_connector_access.id; --- --- Name: cloud_connector_access_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.cloud_connector_access_id_seq OWNED BY public.cloud_connector_access.id; - - --- --- Name: cluster_agent_tokens; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.cluster_agent_tokens ( +CREATE TABLE cluster_agent_tokens ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13167,31 +8904,16 @@ CREATE TABLE public.cluster_agent_tokens ( CONSTRAINT check_c60daed227 CHECK ((char_length(token_encrypted) <= 255)) ); - --- --- Name: cluster_agent_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.cluster_agent_tokens_id_seq +CREATE SEQUENCE cluster_agent_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE cluster_agent_tokens_id_seq OWNED BY cluster_agent_tokens.id; --- --- Name: cluster_agent_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.cluster_agent_tokens_id_seq OWNED BY public.cluster_agent_tokens.id; - - --- --- Name: cluster_agent_url_configurations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.cluster_agent_url_configurations ( +CREATE TABLE cluster_agent_url_configurations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13214,31 +8936,16 @@ CREATE TABLE public.cluster_agent_url_configurations ( CONSTRAINT check_ed21ced327 CHECK ((char_length(url) <= 2048)) ); - --- --- Name: cluster_agent_url_configurations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.cluster_agent_url_configurations_id_seq +CREATE SEQUENCE cluster_agent_url_configurations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE cluster_agent_url_configurations_id_seq OWNED BY cluster_agent_url_configurations.id; --- --- Name: cluster_agent_url_configurations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.cluster_agent_url_configurations_id_seq OWNED BY public.cluster_agent_url_configurations.id; - - --- --- Name: cluster_agents; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.cluster_agents ( +CREATE TABLE cluster_agents ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13251,91 +8958,46 @@ CREATE TABLE public.cluster_agents ( CONSTRAINT check_3498369510 CHECK ((char_length(name) <= 255)) ); - --- --- Name: cluster_agents_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.cluster_agents_id_seq +CREATE SEQUENCE cluster_agents_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE cluster_agents_id_seq OWNED BY cluster_agents.id; --- --- Name: cluster_agents_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.cluster_agents_id_seq OWNED BY public.cluster_agents.id; - - --- --- Name: cluster_enabled_grants; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.cluster_enabled_grants ( +CREATE TABLE cluster_enabled_grants ( id bigint NOT NULL, namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL ); - --- --- Name: cluster_enabled_grants_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.cluster_enabled_grants_id_seq +CREATE SEQUENCE cluster_enabled_grants_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE cluster_enabled_grants_id_seq OWNED BY cluster_enabled_grants.id; --- --- Name: cluster_enabled_grants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.cluster_enabled_grants_id_seq OWNED BY public.cluster_enabled_grants.id; - - --- --- Name: cluster_groups; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.cluster_groups ( +CREATE TABLE cluster_groups ( id integer NOT NULL, cluster_id integer NOT NULL, group_id integer NOT NULL ); - --- --- Name: cluster_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.cluster_groups_id_seq +CREATE SEQUENCE cluster_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE cluster_groups_id_seq OWNED BY cluster_groups.id; --- --- Name: cluster_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.cluster_groups_id_seq OWNED BY public.cluster_groups.id; - - --- --- Name: cluster_platforms_kubernetes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.cluster_platforms_kubernetes ( +CREATE TABLE cluster_platforms_kubernetes ( id integer NOT NULL, cluster_id integer NOT NULL, created_at timestamp without time zone NOT NULL, @@ -13351,31 +9013,16 @@ CREATE TABLE public.cluster_platforms_kubernetes ( authorization_type smallint ); - --- --- Name: cluster_platforms_kubernetes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.cluster_platforms_kubernetes_id_seq +CREATE SEQUENCE cluster_platforms_kubernetes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE cluster_platforms_kubernetes_id_seq OWNED BY cluster_platforms_kubernetes.id; --- --- Name: cluster_platforms_kubernetes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.cluster_platforms_kubernetes_id_seq OWNED BY public.cluster_platforms_kubernetes.id; - - --- --- Name: cluster_projects; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.cluster_projects ( +CREATE TABLE cluster_projects ( id integer NOT NULL, project_id integer NOT NULL, cluster_id integer NOT NULL, @@ -13383,31 +9030,16 @@ CREATE TABLE public.cluster_projects ( updated_at timestamp without time zone NOT NULL ); - --- --- Name: cluster_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.cluster_projects_id_seq +CREATE SEQUENCE cluster_projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE cluster_projects_id_seq OWNED BY cluster_projects.id; --- --- Name: cluster_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.cluster_projects_id_seq OWNED BY public.cluster_projects.id; - - --- --- Name: cluster_providers_aws; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.cluster_providers_aws ( +CREATE TABLE cluster_providers_aws ( id bigint NOT NULL, cluster_id bigint NOT NULL, num_nodes integer NOT NULL, @@ -13430,31 +9062,16 @@ CREATE TABLE public.cluster_providers_aws ( CONSTRAINT check_f1f42cd85e CHECK ((char_length(kubernetes_version) <= 30)) ); - --- --- Name: cluster_providers_aws_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.cluster_providers_aws_id_seq +CREATE SEQUENCE cluster_providers_aws_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE cluster_providers_aws_id_seq OWNED BY cluster_providers_aws.id; --- --- Name: cluster_providers_aws_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.cluster_providers_aws_id_seq OWNED BY public.cluster_providers_aws.id; - - --- --- Name: cluster_providers_gcp; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.cluster_providers_gcp ( +CREATE TABLE cluster_providers_gcp ( id integer NOT NULL, cluster_id integer NOT NULL, status integer, @@ -13473,31 +9090,16 @@ CREATE TABLE public.cluster_providers_gcp ( cloud_run boolean DEFAULT false NOT NULL ); - --- --- Name: cluster_providers_gcp_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.cluster_providers_gcp_id_seq +CREATE SEQUENCE cluster_providers_gcp_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE cluster_providers_gcp_id_seq OWNED BY cluster_providers_gcp.id; --- --- Name: cluster_providers_gcp_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.cluster_providers_gcp_id_seq OWNED BY public.cluster_providers_gcp.id; - - --- --- Name: clusters; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.clusters ( +CREATE TABLE clusters ( id integer NOT NULL, user_id integer, provider_type integer, @@ -13517,31 +9119,16 @@ CREATE TABLE public.clusters ( helm_major_version integer DEFAULT 3 NOT NULL ); - --- --- Name: clusters_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.clusters_id_seq +CREATE SEQUENCE clusters_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE clusters_id_seq OWNED BY clusters.id; --- --- Name: clusters_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.clusters_id_seq OWNED BY public.clusters.id; - - --- --- Name: clusters_integration_prometheus; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.clusters_integration_prometheus ( +CREATE TABLE clusters_integration_prometheus ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, cluster_id bigint NOT NULL, @@ -13551,12 +9138,7 @@ CREATE TABLE public.clusters_integration_prometheus ( health_status smallint DEFAULT 0 NOT NULL ); - --- --- Name: clusters_kubernetes_namespaces; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.clusters_kubernetes_namespaces ( +CREATE TABLE clusters_kubernetes_namespaces ( id bigint NOT NULL, cluster_id integer NOT NULL, project_id integer, @@ -13570,31 +9152,16 @@ CREATE TABLE public.clusters_kubernetes_namespaces ( environment_id bigint ); - --- --- Name: clusters_kubernetes_namespaces_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.clusters_kubernetes_namespaces_id_seq +CREATE SEQUENCE clusters_kubernetes_namespaces_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE clusters_kubernetes_namespaces_id_seq OWNED BY clusters_kubernetes_namespaces.id; --- --- Name: clusters_kubernetes_namespaces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.clusters_kubernetes_namespaces_id_seq OWNED BY public.clusters_kubernetes_namespaces.id; - - --- --- Name: commit_user_mentions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.commit_user_mentions ( +CREATE TABLE commit_user_mentions ( id bigint NOT NULL, mentioned_users_ids integer[], mentioned_projects_ids integer[], @@ -13603,31 +9170,16 @@ CREATE TABLE public.commit_user_mentions ( note_id bigint NOT NULL ); - --- --- Name: commit_user_mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.commit_user_mentions_id_seq +CREATE SEQUENCE commit_user_mentions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE commit_user_mentions_id_seq OWNED BY commit_user_mentions.id; --- --- Name: commit_user_mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.commit_user_mentions_id_seq OWNED BY public.commit_user_mentions.id; - - --- --- Name: compliance_checks; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.compliance_checks ( +CREATE TABLE compliance_checks ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13636,31 +9188,16 @@ CREATE TABLE public.compliance_checks ( check_name smallint NOT NULL ); - --- --- Name: compliance_checks_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.compliance_checks_id_seq +CREATE SEQUENCE compliance_checks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE compliance_checks_id_seq OWNED BY compliance_checks.id; --- --- Name: compliance_checks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.compliance_checks_id_seq OWNED BY public.compliance_checks.id; - - --- --- Name: compliance_framework_security_policies; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.compliance_framework_security_policies ( +CREATE TABLE compliance_framework_security_policies ( id bigint NOT NULL, framework_id bigint NOT NULL, policy_configuration_id bigint NOT NULL, @@ -13671,31 +9208,16 @@ CREATE TABLE public.compliance_framework_security_policies ( namespace_id bigint ); - --- --- Name: compliance_framework_security_policies_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.compliance_framework_security_policies_id_seq +CREATE SEQUENCE compliance_framework_security_policies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE compliance_framework_security_policies_id_seq OWNED BY compliance_framework_security_policies.id; --- --- Name: compliance_framework_security_policies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.compliance_framework_security_policies_id_seq OWNED BY public.compliance_framework_security_policies.id; - - --- --- Name: compliance_management_frameworks; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.compliance_management_frameworks ( +CREATE TABLE compliance_management_frameworks ( id bigint NOT NULL, name text NOT NULL, description text NOT NULL, @@ -13710,31 +9232,16 @@ CREATE TABLE public.compliance_management_frameworks ( CONSTRAINT check_e7a9972435 CHECK ((char_length(pipeline_configuration_full_path) <= 255)) ); - --- --- Name: compliance_management_frameworks_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.compliance_management_frameworks_id_seq +CREATE SEQUENCE compliance_management_frameworks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE compliance_management_frameworks_id_seq OWNED BY compliance_management_frameworks.id; --- --- Name: compliance_management_frameworks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.compliance_management_frameworks_id_seq OWNED BY public.compliance_management_frameworks.id; - - --- --- Name: compliance_requirements; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.compliance_requirements ( +CREATE TABLE compliance_requirements ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13746,31 +9253,16 @@ CREATE TABLE public.compliance_requirements ( CONSTRAINT check_f1fb6fdd81 CHECK ((char_length(name) <= 255)) ); - --- --- Name: compliance_requirements_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.compliance_requirements_id_seq +CREATE SEQUENCE compliance_requirements_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE compliance_requirements_id_seq OWNED BY compliance_requirements.id; --- --- Name: compliance_requirements_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.compliance_requirements_id_seq OWNED BY public.compliance_requirements.id; - - --- --- Name: container_expiration_policies; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.container_expiration_policies ( +CREATE TABLE container_expiration_policies ( project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13784,12 +9276,7 @@ CREATE TABLE public.container_expiration_policies ( CONSTRAINT container_expiration_policies_name_regex_keep CHECK ((char_length(name_regex_keep) <= 255)) ); - --- --- Name: container_registry_data_repair_details; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.container_registry_data_repair_details ( +CREATE TABLE container_registry_data_repair_details ( missing_count integer DEFAULT 0, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -13797,12 +9284,7 @@ CREATE TABLE public.container_registry_data_repair_details ( status smallint DEFAULT 0 NOT NULL ); - --- --- Name: container_registry_protection_rules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.container_registry_protection_rules ( +CREATE TABLE container_registry_protection_rules ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -13815,31 +9297,16 @@ CREATE TABLE public.container_registry_protection_rules ( CONSTRAINT check_d53a270af5 CHECK ((char_length(repository_path_pattern) <= 255)) ); - --- --- Name: container_registry_protection_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.container_registry_protection_rules_id_seq +CREATE SEQUENCE container_registry_protection_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE container_registry_protection_rules_id_seq OWNED BY container_registry_protection_rules.id; --- --- Name: container_registry_protection_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.container_registry_protection_rules_id_seq OWNED BY public.container_registry_protection_rules.id; - - --- --- Name: container_repositories; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.container_repositories ( +CREATE TABLE container_repositories ( id integer NOT NULL, project_id integer NOT NULL, name character varying NOT NULL, @@ -13854,31 +9321,16 @@ CREATE TABLE public.container_repositories ( status_updated_at timestamp with time zone ); - --- --- Name: container_repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.container_repositories_id_seq +CREATE SEQUENCE container_repositories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE container_repositories_id_seq OWNED BY container_repositories.id; --- --- Name: container_repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.container_repositories_id_seq OWNED BY public.container_repositories.id; - - --- --- Name: container_repository_states; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.container_repository_states ( +CREATE TABLE container_repository_states ( verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, verified_at timestamp with time zone, @@ -13890,12 +9342,7 @@ CREATE TABLE public.container_repository_states ( CONSTRAINT check_c96417dbc5 CHECK ((char_length(verification_failure) <= 255)) ); - --- --- Name: content_blocked_states; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.content_blocked_states ( +CREATE TABLE content_blocked_states ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -13907,38 +9354,18 @@ CREATE TABLE public.content_blocked_states ( CONSTRAINT check_1870100678 CHECK ((char_length(path) <= 2048)) ); +COMMENT ON TABLE content_blocked_states IS 'JiHu-specific table'; --- --- Name: TABLE content_blocked_states; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON TABLE public.content_blocked_states IS 'JiHu-specific table'; - - --- --- Name: content_blocked_states_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.content_blocked_states_id_seq +CREATE SEQUENCE content_blocked_states_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE content_blocked_states_id_seq OWNED BY content_blocked_states.id; --- --- Name: content_blocked_states_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.content_blocked_states_id_seq OWNED BY public.content_blocked_states.id; - - --- --- Name: conversational_development_index_metrics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.conversational_development_index_metrics ( +CREATE TABLE conversational_development_index_metrics ( id integer NOT NULL, leader_issues double precision NOT NULL, instance_issues double precision NOT NULL, @@ -13974,31 +9401,16 @@ CREATE TABLE public.conversational_development_index_metrics ( percentage_service_desk_issues double precision DEFAULT 0.0 NOT NULL ); - --- --- Name: conversational_development_index_metrics_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.conversational_development_index_metrics_id_seq +CREATE SEQUENCE conversational_development_index_metrics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE conversational_development_index_metrics_id_seq OWNED BY conversational_development_index_metrics.id; --- --- Name: conversational_development_index_metrics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.conversational_development_index_metrics_id_seq OWNED BY public.conversational_development_index_metrics.id; - - --- --- Name: country_access_logs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.country_access_logs ( +CREATE TABLE country_access_logs ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14010,31 +9422,16 @@ CREATE TABLE public.country_access_logs ( country_code smallint NOT NULL ); - --- --- Name: country_access_logs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.country_access_logs_id_seq +CREATE SEQUENCE country_access_logs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE country_access_logs_id_seq OWNED BY country_access_logs.id; --- --- Name: country_access_logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.country_access_logs_id_seq OWNED BY public.country_access_logs.id; - - --- --- Name: coverage_fuzzing_corpuses; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.coverage_fuzzing_corpuses ( +CREATE TABLE coverage_fuzzing_corpuses ( id bigint NOT NULL, project_id bigint NOT NULL, user_id bigint, @@ -14044,31 +9441,16 @@ CREATE TABLE public.coverage_fuzzing_corpuses ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: coverage_fuzzing_corpuses_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.coverage_fuzzing_corpuses_id_seq +CREATE SEQUENCE coverage_fuzzing_corpuses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE coverage_fuzzing_corpuses_id_seq OWNED BY coverage_fuzzing_corpuses.id; --- --- Name: coverage_fuzzing_corpuses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.coverage_fuzzing_corpuses_id_seq OWNED BY public.coverage_fuzzing_corpuses.id; - - --- --- Name: csv_issue_imports; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.csv_issue_imports ( +CREATE TABLE csv_issue_imports ( id bigint NOT NULL, project_id bigint NOT NULL, user_id bigint NOT NULL, @@ -14076,31 +9458,16 @@ CREATE TABLE public.csv_issue_imports ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: csv_issue_imports_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.csv_issue_imports_id_seq +CREATE SEQUENCE csv_issue_imports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE csv_issue_imports_id_seq OWNED BY csv_issue_imports.id; --- --- Name: csv_issue_imports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.csv_issue_imports_id_seq OWNED BY public.csv_issue_imports.id; - - --- --- Name: custom_emoji; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.custom_emoji ( +CREATE TABLE custom_emoji ( id bigint NOT NULL, namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -14113,62 +9480,32 @@ CREATE TABLE public.custom_emoji ( CONSTRAINT check_dd5d60f1fb CHECK ((char_length(file) <= 255)) ); - --- --- Name: custom_emoji_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.custom_emoji_id_seq +CREATE SEQUENCE custom_emoji_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE custom_emoji_id_seq OWNED BY custom_emoji.id; --- --- Name: custom_emoji_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.custom_emoji_id_seq OWNED BY public.custom_emoji.id; - - --- --- Name: custom_software_licenses; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.custom_software_licenses ( +CREATE TABLE custom_software_licenses ( id bigint NOT NULL, project_id bigint NOT NULL, name text NOT NULL, CONSTRAINT check_4e365784ce CHECK ((char_length(name) <= 255)) ); - --- --- Name: custom_software_licenses_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.custom_software_licenses_id_seq +CREATE SEQUENCE custom_software_licenses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE custom_software_licenses_id_seq OWNED BY custom_software_licenses.id; --- --- Name: custom_software_licenses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.custom_software_licenses_id_seq OWNED BY public.custom_software_licenses.id; - - --- --- Name: customer_relations_contacts; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.customer_relations_contacts ( +CREATE TABLE customer_relations_contacts ( id bigint NOT NULL, group_id bigint NOT NULL, organization_id bigint, @@ -14187,31 +9524,16 @@ CREATE TABLE public.customer_relations_contacts ( CONSTRAINT check_fc0adabf60 CHECK ((char_length(email) <= 255)) ); - --- --- Name: customer_relations_contacts_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.customer_relations_contacts_id_seq +CREATE SEQUENCE customer_relations_contacts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE customer_relations_contacts_id_seq OWNED BY customer_relations_contacts.id; --- --- Name: customer_relations_contacts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.customer_relations_contacts_id_seq OWNED BY public.customer_relations_contacts.id; - - --- --- Name: customer_relations_organizations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.customer_relations_organizations ( +CREATE TABLE customer_relations_organizations ( id bigint NOT NULL, group_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -14224,31 +9546,16 @@ CREATE TABLE public.customer_relations_organizations ( CONSTRAINT check_e476b6058e CHECK ((char_length(description) <= 1024)) ); - --- --- Name: customer_relations_organizations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.customer_relations_organizations_id_seq +CREATE SEQUENCE customer_relations_organizations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE customer_relations_organizations_id_seq OWNED BY customer_relations_organizations.id; --- --- Name: customer_relations_organizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.customer_relations_organizations_id_seq OWNED BY public.customer_relations_organizations.id; - - --- --- Name: dast_pre_scan_verification_steps; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dast_pre_scan_verification_steps ( +CREATE TABLE dast_pre_scan_verification_steps ( id bigint NOT NULL, dast_pre_scan_verification_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -14259,31 +9566,16 @@ CREATE TABLE public.dast_pre_scan_verification_steps ( CONSTRAINT check_cd216b95e4 CHECK ((char_length(name) <= 255)) ); - --- --- Name: dast_pre_scan_verification_steps_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dast_pre_scan_verification_steps_id_seq +CREATE SEQUENCE dast_pre_scan_verification_steps_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dast_pre_scan_verification_steps_id_seq OWNED BY dast_pre_scan_verification_steps.id; --- --- Name: dast_pre_scan_verification_steps_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dast_pre_scan_verification_steps_id_seq OWNED BY public.dast_pre_scan_verification_steps.id; - - --- --- Name: dast_pre_scan_verifications; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dast_pre_scan_verifications ( +CREATE TABLE dast_pre_scan_verifications ( id bigint NOT NULL, dast_profile_id bigint NOT NULL, ci_pipeline_id bigint, @@ -14293,31 +9585,16 @@ CREATE TABLE public.dast_pre_scan_verifications ( project_id bigint ); - --- --- Name: dast_pre_scan_verifications_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dast_pre_scan_verifications_id_seq +CREATE SEQUENCE dast_pre_scan_verifications_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dast_pre_scan_verifications_id_seq OWNED BY dast_pre_scan_verifications.id; --- --- Name: dast_pre_scan_verifications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dast_pre_scan_verifications_id_seq OWNED BY public.dast_pre_scan_verifications.id; - - --- --- Name: dast_profile_schedules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dast_profile_schedules ( +CREATE TABLE dast_profile_schedules ( id bigint NOT NULL, project_id bigint NOT NULL, dast_profile_id bigint NOT NULL, @@ -14334,38 +9611,18 @@ CREATE TABLE public.dast_profile_schedules ( CONSTRAINT check_be4d1c3af1 CHECK ((char_length(timezone) <= 255)) ); +COMMENT ON TABLE dast_profile_schedules IS '{"owner":"group::dynamic analysis","description":"Scheduling for scans using DAST Profiles"}'; --- --- Name: TABLE dast_profile_schedules; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON TABLE public.dast_profile_schedules IS '{"owner":"group::dynamic analysis","description":"Scheduling for scans using DAST Profiles"}'; - - --- --- Name: dast_profile_schedules_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dast_profile_schedules_id_seq +CREATE SEQUENCE dast_profile_schedules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dast_profile_schedules_id_seq OWNED BY dast_profile_schedules.id; --- --- Name: dast_profile_schedules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dast_profile_schedules_id_seq OWNED BY public.dast_profile_schedules.id; - - --- --- Name: dast_profiles; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dast_profiles ( +CREATE TABLE dast_profiles ( id bigint NOT NULL, project_id bigint NOT NULL, dast_site_profile_id bigint NOT NULL, @@ -14380,86 +9637,41 @@ CREATE TABLE public.dast_profiles ( CONSTRAINT check_c34e505c24 CHECK ((char_length(description) <= 255)) ); +COMMENT ON TABLE dast_profiles IS '{"owner":"group::dynamic analysis","description":"Profile used to run a DAST on-demand scan"}'; --- --- Name: TABLE dast_profiles; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON TABLE public.dast_profiles IS '{"owner":"group::dynamic analysis","description":"Profile used to run a DAST on-demand scan"}'; - - --- --- Name: dast_profiles_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dast_profiles_id_seq +CREATE SEQUENCE dast_profiles_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dast_profiles_id_seq OWNED BY dast_profiles.id; --- --- Name: dast_profiles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dast_profiles_id_seq OWNED BY public.dast_profiles.id; - - --- --- Name: dast_profiles_pipelines; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dast_profiles_pipelines ( +CREATE TABLE dast_profiles_pipelines ( dast_profile_id bigint NOT NULL, ci_pipeline_id bigint NOT NULL ); +COMMENT ON TABLE dast_profiles_pipelines IS '{"owner":"group::dynamic analysis","description":"Join table between DAST Profiles and CI Pipelines"}'; --- --- Name: TABLE dast_profiles_pipelines; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON TABLE public.dast_profiles_pipelines IS '{"owner":"group::dynamic analysis","description":"Join table between DAST Profiles and CI Pipelines"}'; - - --- --- Name: dast_profiles_tags; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dast_profiles_tags ( +CREATE TABLE dast_profiles_tags ( id bigint NOT NULL, dast_profile_id bigint NOT NULL, tag_id bigint NOT NULL, project_id bigint ); - --- --- Name: dast_profiles_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dast_profiles_tags_id_seq +CREATE SEQUENCE dast_profiles_tags_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dast_profiles_tags_id_seq OWNED BY dast_profiles_tags.id; --- --- Name: dast_profiles_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dast_profiles_tags_id_seq OWNED BY public.dast_profiles_tags.id; - - --- --- Name: dast_scanner_profiles; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dast_scanner_profiles ( +CREATE TABLE dast_scanner_profiles ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14473,48 +9685,23 @@ CREATE TABLE public.dast_scanner_profiles ( CONSTRAINT check_568568fabf CHECK ((char_length(name) <= 255)) ); - --- --- Name: dast_scanner_profiles_builds; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dast_scanner_profiles_builds ( +CREATE TABLE dast_scanner_profiles_builds ( dast_scanner_profile_id bigint NOT NULL, ci_build_id bigint NOT NULL ); +COMMENT ON TABLE dast_scanner_profiles_builds IS '{"owner":"group::dynamic analysis","description":"Join table between DAST Scanner Profiles and CI Builds"}'; --- --- Name: TABLE dast_scanner_profiles_builds; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON TABLE public.dast_scanner_profiles_builds IS '{"owner":"group::dynamic analysis","description":"Join table between DAST Scanner Profiles and CI Builds"}'; - - --- --- Name: dast_scanner_profiles_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dast_scanner_profiles_id_seq +CREATE SEQUENCE dast_scanner_profiles_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dast_scanner_profiles_id_seq OWNED BY dast_scanner_profiles.id; --- --- Name: dast_scanner_profiles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dast_scanner_profiles_id_seq OWNED BY public.dast_scanner_profiles.id; - - --- --- Name: dast_site_profile_secret_variables; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dast_site_profile_secret_variables ( +CREATE TABLE dast_site_profile_secret_variables ( id bigint NOT NULL, dast_site_profile_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -14529,38 +9716,18 @@ CREATE TABLE public.dast_site_profile_secret_variables ( CONSTRAINT check_b49080abbf CHECK ((length(encrypted_value_iv) <= 17)) ); +COMMENT ON TABLE dast_site_profile_secret_variables IS '{"owner":"group::dynamic analysis","description":"Secret variables used in DAST on-demand scans"}'; --- --- Name: TABLE dast_site_profile_secret_variables; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON TABLE public.dast_site_profile_secret_variables IS '{"owner":"group::dynamic analysis","description":"Secret variables used in DAST on-demand scans"}'; - - --- --- Name: dast_site_profile_secret_variables_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dast_site_profile_secret_variables_id_seq +CREATE SEQUENCE dast_site_profile_secret_variables_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dast_site_profile_secret_variables_id_seq OWNED BY dast_site_profile_secret_variables.id; --- --- Name: dast_site_profile_secret_variables_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dast_site_profile_secret_variables_id_seq OWNED BY public.dast_site_profile_secret_variables.id; - - --- --- Name: dast_site_profiles; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dast_site_profiles ( +CREATE TABLE dast_site_profiles ( id bigint NOT NULL, project_id bigint NOT NULL, dast_site_id bigint NOT NULL, @@ -14586,48 +9753,23 @@ CREATE TABLE public.dast_site_profiles ( CONSTRAINT check_f22f18002a CHECK ((char_length(auth_username) <= 255)) ); - --- --- Name: dast_site_profiles_builds; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dast_site_profiles_builds ( +CREATE TABLE dast_site_profiles_builds ( dast_site_profile_id bigint NOT NULL, ci_build_id bigint NOT NULL ); +COMMENT ON TABLE dast_site_profiles_builds IS '{"owner":"group::dynamic analysis","description":"Join table between DAST Site Profiles and CI Builds"}'; --- --- Name: TABLE dast_site_profiles_builds; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON TABLE public.dast_site_profiles_builds IS '{"owner":"group::dynamic analysis","description":"Join table between DAST Site Profiles and CI Builds"}'; - - --- --- Name: dast_site_profiles_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dast_site_profiles_id_seq +CREATE SEQUENCE dast_site_profiles_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dast_site_profiles_id_seq OWNED BY dast_site_profiles.id; --- --- Name: dast_site_profiles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dast_site_profiles_id_seq OWNED BY public.dast_site_profiles.id; - - --- --- Name: dast_site_tokens; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dast_site_tokens ( +CREATE TABLE dast_site_tokens ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -14639,31 +9781,16 @@ CREATE TABLE public.dast_site_tokens ( CONSTRAINT check_69ab8622a6 CHECK ((char_length(url) <= 255)) ); - --- --- Name: dast_site_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dast_site_tokens_id_seq +CREATE SEQUENCE dast_site_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dast_site_tokens_id_seq OWNED BY dast_site_tokens.id; --- --- Name: dast_site_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dast_site_tokens_id_seq OWNED BY public.dast_site_tokens.id; - - --- --- Name: dast_site_validations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dast_site_validations ( +CREATE TABLE dast_site_validations ( id bigint NOT NULL, dast_site_token_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -14682,31 +9809,16 @@ CREATE TABLE public.dast_site_validations ( CONSTRAINT check_cd3b538210 CHECK ((char_length(url_base) <= 255)) ); - --- --- Name: dast_site_validations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dast_site_validations_id_seq +CREATE SEQUENCE dast_site_validations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dast_site_validations_id_seq OWNED BY dast_site_validations.id; --- --- Name: dast_site_validations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dast_site_validations_id_seq OWNED BY public.dast_site_validations.id; - - --- --- Name: dast_sites; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dast_sites ( +CREATE TABLE dast_sites ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -14716,31 +9828,16 @@ CREATE TABLE public.dast_sites ( CONSTRAINT check_46df8b449c CHECK ((char_length(url) <= 255)) ); - --- --- Name: dast_sites_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dast_sites_id_seq +CREATE SEQUENCE dast_sites_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dast_sites_id_seq OWNED BY dast_sites.id; --- --- Name: dast_sites_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dast_sites_id_seq OWNED BY public.dast_sites.id; - - --- --- Name: dependency_list_export_parts; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dependency_list_export_parts ( +CREATE TABLE dependency_list_export_parts ( id bigint NOT NULL, dependency_list_export_id bigint NOT NULL, start_id bigint NOT NULL, @@ -14753,31 +9850,16 @@ CREATE TABLE public.dependency_list_export_parts ( CONSTRAINT check_f799431fc1 CHECK ((char_length(file) <= 255)) ); - --- --- Name: dependency_list_export_parts_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dependency_list_export_parts_id_seq +CREATE SEQUENCE dependency_list_export_parts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dependency_list_export_parts_id_seq OWNED BY dependency_list_export_parts.id; --- --- Name: dependency_list_export_parts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dependency_list_export_parts_id_seq OWNED BY public.dependency_list_export_parts.id; - - --- --- Name: dependency_list_exports; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dependency_list_exports ( +CREATE TABLE dependency_list_exports ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14793,31 +9875,16 @@ CREATE TABLE public.dependency_list_exports ( CONSTRAINT check_fff6fc9b2f CHECK ((char_length(file) <= 255)) ); - --- --- Name: dependency_list_exports_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dependency_list_exports_id_seq +CREATE SEQUENCE dependency_list_exports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dependency_list_exports_id_seq OWNED BY dependency_list_exports.id; --- --- Name: dependency_list_exports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dependency_list_exports_id_seq OWNED BY public.dependency_list_exports.id; - - --- --- Name: dependency_proxy_blob_states; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dependency_proxy_blob_states ( +CREATE TABLE dependency_proxy_blob_states ( verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, verified_at timestamp with time zone, @@ -14829,19 +9896,9 @@ CREATE TABLE public.dependency_proxy_blob_states ( CONSTRAINT check_8e4f76fffe CHECK ((char_length(verification_failure) <= 255)) ); +COMMENT ON TABLE dependency_proxy_blob_states IS '{"owner":"group::geo","description":"Geo-specific table to store the verification state of DependencyProxy::Blob objects"}'; --- --- Name: TABLE dependency_proxy_blob_states; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON TABLE public.dependency_proxy_blob_states IS '{"owner":"group::geo","description":"Geo-specific table to store the verification state of DependencyProxy::Blob objects"}'; - - --- --- Name: dependency_proxy_blobs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dependency_proxy_blobs ( +CREATE TABLE dependency_proxy_blobs ( id integer NOT NULL, group_id integer NOT NULL, created_at timestamp with time zone NOT NULL, @@ -14854,31 +9911,16 @@ CREATE TABLE public.dependency_proxy_blobs ( read_at timestamp with time zone DEFAULT now() NOT NULL ); - --- --- Name: dependency_proxy_blobs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dependency_proxy_blobs_id_seq +CREATE SEQUENCE dependency_proxy_blobs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dependency_proxy_blobs_id_seq OWNED BY dependency_proxy_blobs.id; --- --- Name: dependency_proxy_blobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dependency_proxy_blobs_id_seq OWNED BY public.dependency_proxy_blobs.id; - - --- --- Name: dependency_proxy_group_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dependency_proxy_group_settings ( +CREATE TABLE dependency_proxy_group_settings ( id integer NOT NULL, group_id integer NOT NULL, created_at timestamp with time zone NOT NULL, @@ -14886,31 +9928,16 @@ CREATE TABLE public.dependency_proxy_group_settings ( enabled boolean DEFAULT true NOT NULL ); - --- --- Name: dependency_proxy_group_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dependency_proxy_group_settings_id_seq +CREATE SEQUENCE dependency_proxy_group_settings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dependency_proxy_group_settings_id_seq OWNED BY dependency_proxy_group_settings.id; --- --- Name: dependency_proxy_group_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dependency_proxy_group_settings_id_seq OWNED BY public.dependency_proxy_group_settings.id; - - --- --- Name: dependency_proxy_image_ttl_group_policies; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dependency_proxy_image_ttl_group_policies ( +CREATE TABLE dependency_proxy_image_ttl_group_policies ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, group_id bigint NOT NULL, @@ -14918,12 +9945,7 @@ CREATE TABLE public.dependency_proxy_image_ttl_group_policies ( enabled boolean DEFAULT false NOT NULL ); - --- --- Name: dependency_proxy_manifest_states; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dependency_proxy_manifest_states ( +CREATE TABLE dependency_proxy_manifest_states ( verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, verified_at timestamp with time zone, @@ -14935,12 +9957,7 @@ CREATE TABLE public.dependency_proxy_manifest_states ( CONSTRAINT check_fdd5d9791b CHECK ((char_length(verification_failure) <= 255)) ); - --- --- Name: dependency_proxy_manifests; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dependency_proxy_manifests ( +CREATE TABLE dependency_proxy_manifests ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -14959,31 +9976,16 @@ CREATE TABLE public.dependency_proxy_manifests ( CONSTRAINT check_f5d9996bf1 CHECK ((char_length(digest) <= 255)) ); - --- --- Name: dependency_proxy_manifests_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dependency_proxy_manifests_id_seq +CREATE SEQUENCE dependency_proxy_manifests_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dependency_proxy_manifests_id_seq OWNED BY dependency_proxy_manifests.id; --- --- Name: dependency_proxy_manifests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dependency_proxy_manifests_id_seq OWNED BY public.dependency_proxy_manifests.id; - - --- --- Name: dependency_proxy_packages_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dependency_proxy_packages_settings ( +CREATE TABLE dependency_proxy_packages_settings ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, project_id bigint NOT NULL, @@ -15012,12 +10014,7 @@ CREATE TABLE public.dependency_proxy_packages_settings ( CONSTRAINT check_fd5def68ba CHECK ((octet_length(encrypted_maven_external_registry_username_iv) <= 1020)) ); - --- --- Name: deploy_keys_projects; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.deploy_keys_projects ( +CREATE TABLE deploy_keys_projects ( id integer NOT NULL, deploy_key_id integer NOT NULL, project_id integer NOT NULL, @@ -15026,31 +10023,16 @@ CREATE TABLE public.deploy_keys_projects ( can_push boolean DEFAULT false NOT NULL ); - --- --- Name: deploy_keys_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.deploy_keys_projects_id_seq +CREATE SEQUENCE deploy_keys_projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE deploy_keys_projects_id_seq OWNED BY deploy_keys_projects.id; --- --- Name: deploy_keys_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.deploy_keys_projects_id_seq OWNED BY public.deploy_keys_projects.id; - - --- --- Name: deploy_tokens; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.deploy_tokens ( +CREATE TABLE deploy_tokens ( id integer NOT NULL, revoked boolean DEFAULT false, read_repository boolean DEFAULT false NOT NULL, @@ -15070,31 +10052,16 @@ CREATE TABLE public.deploy_tokens ( group_id bigint ); - --- --- Name: deploy_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.deploy_tokens_id_seq +CREATE SEQUENCE deploy_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE deploy_tokens_id_seq OWNED BY deploy_tokens.id; --- --- Name: deploy_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.deploy_tokens_id_seq OWNED BY public.deploy_tokens.id; - - --- --- Name: deployment_approvals; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.deployment_approvals ( +CREATE TABLE deployment_approvals ( id bigint NOT NULL, deployment_id bigint NOT NULL, user_id bigint NOT NULL, @@ -15108,53 +10075,28 @@ CREATE TABLE public.deployment_approvals ( CONSTRAINT check_e2eb6a17d8 CHECK ((char_length(comment) <= 255)) ); - --- --- Name: deployment_approvals_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.deployment_approvals_id_seq +CREATE SEQUENCE deployment_approvals_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE deployment_approvals_id_seq OWNED BY deployment_approvals.id; --- --- Name: deployment_approvals_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.deployment_approvals_id_seq OWNED BY public.deployment_approvals.id; - - --- --- Name: deployment_clusters; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.deployment_clusters ( +CREATE TABLE deployment_clusters ( deployment_id integer NOT NULL, cluster_id integer NOT NULL, kubernetes_namespace character varying(255) ); - --- --- Name: deployment_merge_requests; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.deployment_merge_requests ( +CREATE TABLE deployment_merge_requests ( deployment_id integer NOT NULL, merge_request_id integer NOT NULL, environment_id integer ); - --- --- Name: deployments; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.deployments ( +CREATE TABLE deployments ( id integer NOT NULL, iid integer NOT NULL, project_id integer NOT NULL, @@ -15173,31 +10115,16 @@ CREATE TABLE public.deployments ( archived boolean DEFAULT false NOT NULL ); - --- --- Name: deployments_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.deployments_id_seq +CREATE SEQUENCE deployments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE deployments_id_seq OWNED BY deployments.id; --- --- Name: deployments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.deployments_id_seq OWNED BY public.deployments.id; - - --- --- Name: description_versions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.description_versions ( +CREATE TABLE description_versions ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -15208,31 +10135,16 @@ CREATE TABLE public.description_versions ( deleted_at timestamp with time zone ); - --- --- Name: description_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.description_versions_id_seq +CREATE SEQUENCE description_versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE description_versions_id_seq OWNED BY description_versions.id; --- --- Name: description_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.description_versions_id_seq OWNED BY public.description_versions.id; - - --- --- Name: design_management_designs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.design_management_designs ( +CREATE TABLE design_management_designs ( id bigint NOT NULL, project_id integer NOT NULL, issue_id integer, @@ -15249,31 +10161,16 @@ CREATE TABLE public.design_management_designs ( CONSTRAINT check_cfb92df01a CHECK ((iid IS NOT NULL)) ); - --- --- Name: design_management_designs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.design_management_designs_id_seq +CREATE SEQUENCE design_management_designs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE design_management_designs_id_seq OWNED BY design_management_designs.id; --- --- Name: design_management_designs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.design_management_designs_id_seq OWNED BY public.design_management_designs.id; - - --- --- Name: design_management_designs_versions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.design_management_designs_versions ( +CREATE TABLE design_management_designs_versions ( id bigint NOT NULL, design_id bigint NOT NULL, version_id bigint NOT NULL, @@ -15281,31 +10178,16 @@ CREATE TABLE public.design_management_designs_versions ( image_v432x230 character varying(255) ); - --- --- Name: design_management_designs_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.design_management_designs_versions_id_seq +CREATE SEQUENCE design_management_designs_versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE design_management_designs_versions_id_seq OWNED BY design_management_designs_versions.id; --- --- Name: design_management_designs_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.design_management_designs_versions_id_seq OWNED BY public.design_management_designs_versions.id; - - --- --- Name: design_management_repositories; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.design_management_repositories ( +CREATE TABLE design_management_repositories ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -15313,31 +10195,16 @@ CREATE TABLE public.design_management_repositories ( namespace_id bigint ); - --- --- Name: design_management_repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.design_management_repositories_id_seq +CREATE SEQUENCE design_management_repositories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE design_management_repositories_id_seq OWNED BY design_management_repositories.id; --- --- Name: design_management_repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.design_management_repositories_id_seq OWNED BY public.design_management_repositories.id; - - --- --- Name: design_management_repository_states; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.design_management_repository_states ( +CREATE TABLE design_management_repository_states ( verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, verified_at timestamp with time zone, @@ -15349,12 +10216,7 @@ CREATE TABLE public.design_management_repository_states ( CONSTRAINT check_bf1387c28b CHECK ((char_length(verification_failure) <= 255)) ); - --- --- Name: design_management_versions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.design_management_versions ( +CREATE TABLE design_management_versions ( id bigint NOT NULL, sha bytea NOT NULL, issue_id bigint, @@ -15363,31 +10225,16 @@ CREATE TABLE public.design_management_versions ( namespace_id bigint ); - --- --- Name: design_management_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.design_management_versions_id_seq +CREATE SEQUENCE design_management_versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE design_management_versions_id_seq OWNED BY design_management_versions.id; --- --- Name: design_management_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.design_management_versions_id_seq OWNED BY public.design_management_versions.id; - - --- --- Name: design_user_mentions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.design_user_mentions ( +CREATE TABLE design_user_mentions ( id bigint NOT NULL, design_id integer NOT NULL, mentioned_users_ids integer[], @@ -15396,31 +10243,16 @@ CREATE TABLE public.design_user_mentions ( note_id bigint NOT NULL ); - --- --- Name: design_user_mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.design_user_mentions_id_seq +CREATE SEQUENCE design_user_mentions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE design_user_mentions_id_seq OWNED BY design_user_mentions.id; --- --- Name: design_user_mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.design_user_mentions_id_seq OWNED BY public.design_user_mentions.id; - - --- --- Name: detached_partitions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.detached_partitions ( +CREATE TABLE detached_partitions ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -15429,31 +10261,16 @@ CREATE TABLE public.detached_partitions ( CONSTRAINT check_aecee24ba3 CHECK ((char_length(table_name) <= 63)) ); - --- --- Name: detached_partitions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.detached_partitions_id_seq +CREATE SEQUENCE detached_partitions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE detached_partitions_id_seq OWNED BY detached_partitions.id; --- --- Name: detached_partitions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.detached_partitions_id_seq OWNED BY public.detached_partitions.id; - - --- --- Name: diff_note_positions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.diff_note_positions ( +CREATE TABLE diff_note_positions ( id bigint NOT NULL, note_id bigint NOT NULL, old_line integer, @@ -15468,31 +10285,16 @@ CREATE TABLE public.diff_note_positions ( new_path text NOT NULL ); - --- --- Name: diff_note_positions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.diff_note_positions_id_seq +CREATE SEQUENCE diff_note_positions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE diff_note_positions_id_seq OWNED BY diff_note_positions.id; --- --- Name: diff_note_positions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.diff_note_positions_id_seq OWNED BY public.diff_note_positions.id; - - --- --- Name: dingtalk_tracker_data; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dingtalk_tracker_data ( +CREATE TABLE dingtalk_tracker_data ( id bigint NOT NULL, integration_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -15501,82 +10303,37 @@ CREATE TABLE public.dingtalk_tracker_data ( CONSTRAINT check_d3fe332e6a CHECK ((char_length(corpid) <= 255)) ); +COMMENT ON TABLE dingtalk_tracker_data IS 'JiHu-specific table'; --- --- Name: TABLE dingtalk_tracker_data; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON TABLE public.dingtalk_tracker_data IS 'JiHu-specific table'; +COMMENT ON COLUMN dingtalk_tracker_data.integration_id IS 'JiHu-specific column'; +COMMENT ON COLUMN dingtalk_tracker_data.corpid IS 'JiHu-specific column'; --- --- Name: COLUMN dingtalk_tracker_data.integration_id; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.dingtalk_tracker_data.integration_id IS 'JiHu-specific column'; - - --- --- Name: COLUMN dingtalk_tracker_data.corpid; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.dingtalk_tracker_data.corpid IS 'JiHu-specific column'; - - --- --- Name: dingtalk_tracker_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dingtalk_tracker_data_id_seq +CREATE SEQUENCE dingtalk_tracker_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dingtalk_tracker_data_id_seq OWNED BY dingtalk_tracker_data.id; --- --- Name: dingtalk_tracker_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dingtalk_tracker_data_id_seq OWNED BY public.dingtalk_tracker_data.id; - - --- --- Name: dora_configurations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dora_configurations ( +CREATE TABLE dora_configurations ( id bigint NOT NULL, project_id bigint NOT NULL, branches_for_lead_time_for_changes text[] DEFAULT '{}'::text[] NOT NULL ); - --- --- Name: dora_configurations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dora_configurations_id_seq +CREATE SEQUENCE dora_configurations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dora_configurations_id_seq OWNED BY dora_configurations.id; --- --- Name: dora_configurations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dora_configurations_id_seq OWNED BY public.dora_configurations.id; - - --- --- Name: dora_daily_metrics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dora_daily_metrics ( +CREATE TABLE dora_daily_metrics ( id bigint NOT NULL, environment_id bigint NOT NULL, date date NOT NULL, @@ -15589,31 +10346,16 @@ CREATE TABLE public.dora_daily_metrics ( CONSTRAINT dora_daily_metrics_lead_time_for_changes_in_seconds_positive CHECK ((lead_time_for_changes_in_seconds >= 0)) ); - --- --- Name: dora_daily_metrics_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dora_daily_metrics_id_seq +CREATE SEQUENCE dora_daily_metrics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dora_daily_metrics_id_seq OWNED BY dora_daily_metrics.id; --- --- Name: dora_daily_metrics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dora_daily_metrics_id_seq OWNED BY public.dora_daily_metrics.id; - - --- --- Name: dora_performance_scores; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.dora_performance_scores ( +CREATE TABLE dora_performance_scores ( id bigint NOT NULL, project_id bigint NOT NULL, date date NOT NULL, @@ -15623,31 +10365,16 @@ CREATE TABLE public.dora_performance_scores ( change_failure_rate smallint ); - --- --- Name: dora_performance_scores_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.dora_performance_scores_id_seq +CREATE SEQUENCE dora_performance_scores_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE dora_performance_scores_id_seq OWNED BY dora_performance_scores.id; --- --- Name: dora_performance_scores_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.dora_performance_scores_id_seq OWNED BY public.dora_performance_scores.id; - - --- --- Name: draft_notes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.draft_notes ( +CREATE TABLE draft_notes ( id bigint NOT NULL, merge_request_id integer NOT NULL, author_id integer NOT NULL, @@ -15665,31 +10392,16 @@ CREATE TABLE public.draft_notes ( CONSTRAINT check_c497a94a0e CHECK ((char_length(line_code) <= 255)) ); - --- --- Name: draft_notes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.draft_notes_id_seq +CREATE SEQUENCE draft_notes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE draft_notes_id_seq OWNED BY draft_notes.id; --- --- Name: draft_notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.draft_notes_id_seq OWNED BY public.draft_notes.id; - - --- --- Name: duo_workflows_checkpoints; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.duo_workflows_checkpoints ( +CREATE TABLE duo_workflows_checkpoints ( id bigint NOT NULL, workflow_id bigint NOT NULL, project_id bigint NOT NULL, @@ -15703,31 +10415,16 @@ CREATE TABLE public.duo_workflows_checkpoints ( CONSTRAINT check_5d3139b983 CHECK ((char_length(thread_ts) <= 255)) ); - --- --- Name: duo_workflows_checkpoints_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.duo_workflows_checkpoints_id_seq +CREATE SEQUENCE duo_workflows_checkpoints_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE duo_workflows_checkpoints_id_seq OWNED BY duo_workflows_checkpoints.id; --- --- Name: duo_workflows_checkpoints_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.duo_workflows_checkpoints_id_seq OWNED BY public.duo_workflows_checkpoints.id; - - --- --- Name: duo_workflows_workflows; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.duo_workflows_workflows ( +CREATE TABLE duo_workflows_workflows ( id bigint NOT NULL, user_id bigint NOT NULL, project_id bigint NOT NULL, @@ -15736,31 +10433,16 @@ CREATE TABLE public.duo_workflows_workflows ( status smallint DEFAULT 0 NOT NULL ); - --- --- Name: duo_workflows_workflows_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.duo_workflows_workflows_id_seq +CREATE SEQUENCE duo_workflows_workflows_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE duo_workflows_workflows_id_seq OWNED BY duo_workflows_workflows.id; --- --- Name: duo_workflows_workflows_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.duo_workflows_workflows_id_seq OWNED BY public.duo_workflows_workflows.id; - - --- --- Name: early_access_program_tracking_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.early_access_program_tracking_events ( +CREATE TABLE early_access_program_tracking_events ( id bigint NOT NULL, user_id bigint NOT NULL, event_name text NOT NULL, @@ -15773,31 +10455,16 @@ CREATE TABLE public.early_access_program_tracking_events ( CONSTRAINT check_e631e07806 CHECK ((char_length(category) <= 255)) ); - --- --- Name: early_access_program_tracking_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.early_access_program_tracking_events_id_seq +CREATE SEQUENCE early_access_program_tracking_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE early_access_program_tracking_events_id_seq OWNED BY early_access_program_tracking_events.id; --- --- Name: early_access_program_tracking_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.early_access_program_tracking_events_id_seq OWNED BY public.early_access_program_tracking_events.id; - - --- --- Name: elastic_group_index_statuses; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.elastic_group_index_statuses ( +CREATE TABLE elastic_group_index_statuses ( namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -15805,12 +10472,7 @@ CREATE TABLE public.elastic_group_index_statuses ( last_wiki_commit bytea ); - --- --- Name: elastic_index_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.elastic_index_settings ( +CREATE TABLE elastic_index_settings ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -15820,31 +10482,16 @@ CREATE TABLE public.elastic_index_settings ( CONSTRAINT check_c30005c325 CHECK ((char_length(alias_name) <= 255)) ); - --- --- Name: elastic_index_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.elastic_index_settings_id_seq +CREATE SEQUENCE elastic_index_settings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE elastic_index_settings_id_seq OWNED BY elastic_index_settings.id; --- --- Name: elastic_index_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.elastic_index_settings_id_seq OWNED BY public.elastic_index_settings.id; - - --- --- Name: elastic_reindexing_slices; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.elastic_reindexing_slices ( +CREATE TABLE elastic_reindexing_slices ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -15856,31 +10503,16 @@ CREATE TABLE public.elastic_reindexing_slices ( CONSTRAINT check_ca30e1396e CHECK ((char_length(elastic_task) <= 255)) ); - --- --- Name: elastic_reindexing_slices_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.elastic_reindexing_slices_id_seq +CREATE SEQUENCE elastic_reindexing_slices_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE elastic_reindexing_slices_id_seq OWNED BY elastic_reindexing_slices.id; --- --- Name: elastic_reindexing_slices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.elastic_reindexing_slices_id_seq OWNED BY public.elastic_reindexing_slices.id; - - --- --- Name: elastic_reindexing_subtasks; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.elastic_reindexing_subtasks ( +CREATE TABLE elastic_reindexing_subtasks ( id bigint NOT NULL, elastic_reindexing_task_id bigint NOT NULL, alias_name text NOT NULL, @@ -15897,31 +10529,16 @@ CREATE TABLE public.elastic_reindexing_subtasks ( CONSTRAINT check_f456494bd8 CHECK ((char_length(index_name_to) <= 255)) ); - --- --- Name: elastic_reindexing_subtasks_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.elastic_reindexing_subtasks_id_seq +CREATE SEQUENCE elastic_reindexing_subtasks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE elastic_reindexing_subtasks_id_seq OWNED BY elastic_reindexing_subtasks.id; --- --- Name: elastic_reindexing_subtasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.elastic_reindexing_subtasks_id_seq OWNED BY public.elastic_reindexing_subtasks.id; - - --- --- Name: elastic_reindexing_tasks; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.elastic_reindexing_tasks ( +CREATE TABLE elastic_reindexing_tasks ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -15936,53 +10553,28 @@ CREATE TABLE public.elastic_reindexing_tasks ( CONSTRAINT check_7f64acda8e CHECK ((char_length(error_message) <= 255)) ); - --- --- Name: elastic_reindexing_tasks_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.elastic_reindexing_tasks_id_seq +CREATE SEQUENCE elastic_reindexing_tasks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE elastic_reindexing_tasks_id_seq OWNED BY elastic_reindexing_tasks.id; --- --- Name: elastic_reindexing_tasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.elastic_reindexing_tasks_id_seq OWNED BY public.elastic_reindexing_tasks.id; - - --- --- Name: elasticsearch_indexed_namespaces; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.elasticsearch_indexed_namespaces ( +CREATE TABLE elasticsearch_indexed_namespaces ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, namespace_id integer NOT NULL ); - --- --- Name: elasticsearch_indexed_projects; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.elasticsearch_indexed_projects ( +CREATE TABLE elasticsearch_indexed_projects ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, project_id integer NOT NULL ); - --- --- Name: emails; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.emails ( +CREATE TABLE emails ( id integer NOT NULL, user_id integer NOT NULL, email character varying NOT NULL, @@ -15995,31 +10587,16 @@ CREATE TABLE public.emails ( CONSTRAINT check_319f6999dc CHECK ((char_length(detumbled_email) <= 255)) ); - --- --- Name: emails_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.emails_id_seq +CREATE SEQUENCE emails_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE emails_id_seq OWNED BY emails.id; --- --- Name: emails_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.emails_id_seq OWNED BY public.emails.id; - - --- --- Name: environments; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.environments ( +CREATE TABLE environments ( id integer NOT NULL, project_id integer NOT NULL, name character varying NOT NULL, @@ -16040,31 +10617,16 @@ CREATE TABLE public.environments ( CONSTRAINT check_b5373a1804 CHECK ((char_length(kubernetes_namespace) <= 63)) ); - --- --- Name: environments_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.environments_id_seq +CREATE SEQUENCE environments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE environments_id_seq OWNED BY environments.id; --- --- Name: environments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.environments_id_seq OWNED BY public.environments.id; - - --- --- Name: epic_issues; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.epic_issues ( +CREATE TABLE epic_issues ( id integer NOT NULL, epic_id integer NOT NULL, issue_id integer NOT NULL, @@ -16072,62 +10634,32 @@ CREATE TABLE public.epic_issues ( namespace_id bigint ); - --- --- Name: epic_issues_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.epic_issues_id_seq +CREATE SEQUENCE epic_issues_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE epic_issues_id_seq OWNED BY epic_issues.id; --- --- Name: epic_issues_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.epic_issues_id_seq OWNED BY public.epic_issues.id; - - --- --- Name: epic_metrics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.epic_metrics ( +CREATE TABLE epic_metrics ( id integer NOT NULL, epic_id integer NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); - --- --- Name: epic_metrics_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.epic_metrics_id_seq +CREATE SEQUENCE epic_metrics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE epic_metrics_id_seq OWNED BY epic_metrics.id; --- --- Name: epic_metrics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.epic_metrics_id_seq OWNED BY public.epic_metrics.id; - - --- --- Name: epic_user_mentions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.epic_user_mentions ( +CREATE TABLE epic_user_mentions ( id bigint NOT NULL, epic_id integer NOT NULL, mentioned_users_ids integer[], @@ -16137,31 +10669,16 @@ CREATE TABLE public.epic_user_mentions ( group_id bigint ); - --- --- Name: epic_user_mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.epic_user_mentions_id_seq +CREATE SEQUENCE epic_user_mentions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE epic_user_mentions_id_seq OWNED BY epic_user_mentions.id; --- --- Name: epic_user_mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.epic_user_mentions_id_seq OWNED BY public.epic_user_mentions.id; - - --- --- Name: epics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.epics ( +CREATE TABLE epics ( id integer NOT NULL, group_id integer NOT NULL, author_id integer NOT NULL, @@ -16208,31 +10725,16 @@ CREATE TABLE public.epics ( CONSTRAINT check_fcfb4a93ff CHECK ((lock_version IS NOT NULL)) ); - --- --- Name: epics_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.epics_id_seq +CREATE SEQUENCE epics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE epics_id_seq OWNED BY epics.id; --- --- Name: epics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.epics_id_seq OWNED BY public.epics.id; - - --- --- Name: error_tracking_client_keys; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.error_tracking_client_keys ( +CREATE TABLE error_tracking_client_keys ( id bigint NOT NULL, project_id bigint NOT NULL, active boolean DEFAULT true NOT NULL, @@ -16242,31 +10744,16 @@ CREATE TABLE public.error_tracking_client_keys ( CONSTRAINT check_840b719790 CHECK ((char_length(public_key) <= 255)) ); - --- --- Name: error_tracking_client_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.error_tracking_client_keys_id_seq +CREATE SEQUENCE error_tracking_client_keys_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE error_tracking_client_keys_id_seq OWNED BY error_tracking_client_keys.id; --- --- Name: error_tracking_client_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.error_tracking_client_keys_id_seq OWNED BY public.error_tracking_client_keys.id; - - --- --- Name: error_tracking_error_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.error_tracking_error_events ( +CREATE TABLE error_tracking_error_events ( id bigint NOT NULL, error_id bigint NOT NULL, description text NOT NULL, @@ -16282,31 +10769,16 @@ CREATE TABLE public.error_tracking_error_events ( CONSTRAINT check_f4b52474ad CHECK ((char_length(environment) <= 255)) ); - --- --- Name: error_tracking_error_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.error_tracking_error_events_id_seq +CREATE SEQUENCE error_tracking_error_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE error_tracking_error_events_id_seq OWNED BY error_tracking_error_events.id; --- --- Name: error_tracking_error_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.error_tracking_error_events_id_seq OWNED BY public.error_tracking_error_events.id; - - --- --- Name: error_tracking_errors; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.error_tracking_errors ( +CREATE TABLE error_tracking_errors ( id bigint NOT NULL, project_id bigint NOT NULL, name text NOT NULL, @@ -16325,31 +10797,16 @@ CREATE TABLE public.error_tracking_errors ( CONSTRAINT check_fe99886883 CHECK ((char_length(platform) <= 255)) ); - --- --- Name: error_tracking_errors_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.error_tracking_errors_id_seq +CREATE SEQUENCE error_tracking_errors_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE error_tracking_errors_id_seq OWNED BY error_tracking_errors.id; --- --- Name: error_tracking_errors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.error_tracking_errors_id_seq OWNED BY public.error_tracking_errors.id; - - --- --- Name: events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.events ( +CREATE TABLE events ( project_id integer, author_id integer NOT NULL, created_at timestamp with time zone NOT NULL, @@ -16364,31 +10821,16 @@ CREATE TABLE public.events ( CONSTRAINT check_97e06e05ad CHECK ((octet_length(fingerprint) <= 128)) ); - --- --- Name: events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.events_id_seq +CREATE SEQUENCE events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE events_id_seq OWNED BY events.id; --- --- Name: events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.events_id_seq OWNED BY public.events.id; - - --- --- Name: evidences; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.evidences ( +CREATE TABLE evidences ( id bigint NOT NULL, release_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -16398,31 +10840,16 @@ CREATE TABLE public.evidences ( project_id bigint ); - --- --- Name: evidences_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.evidences_id_seq +CREATE SEQUENCE evidences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE evidences_id_seq OWNED BY evidences.id; --- --- Name: evidences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.evidences_id_seq OWNED BY public.evidences.id; - - --- --- Name: external_approval_rules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.external_approval_rules ( +CREATE TABLE external_approval_rules ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -16433,31 +10860,16 @@ CREATE TABLE public.external_approval_rules ( CONSTRAINT check_b634ca168d CHECK ((char_length(external_url) <= 255)) ); - --- --- Name: external_approval_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.external_approval_rules_id_seq +CREATE SEQUENCE external_approval_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE external_approval_rules_id_seq OWNED BY external_approval_rules.id; --- --- Name: external_approval_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.external_approval_rules_id_seq OWNED BY public.external_approval_rules.id; - - --- --- Name: external_pull_requests; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.external_pull_requests ( +CREATE TABLE external_pull_requests ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -16472,31 +10884,16 @@ CREATE TABLE public.external_pull_requests ( target_sha bytea NOT NULL ); - --- --- Name: external_pull_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.external_pull_requests_id_seq +CREATE SEQUENCE external_pull_requests_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE external_pull_requests_id_seq OWNED BY external_pull_requests.id; --- --- Name: external_pull_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.external_pull_requests_id_seq OWNED BY public.external_pull_requests.id; - - --- --- Name: external_status_checks; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.external_status_checks ( +CREATE TABLE external_status_checks ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -16509,62 +10906,32 @@ CREATE TABLE public.external_status_checks ( CONSTRAINT check_ae0dec3f61 CHECK ((char_length(external_url) <= 255)) ); - --- --- Name: external_status_checks_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.external_status_checks_id_seq +CREATE SEQUENCE external_status_checks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE external_status_checks_id_seq OWNED BY external_status_checks.id; --- --- Name: external_status_checks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.external_status_checks_id_seq OWNED BY public.external_status_checks.id; - - --- --- Name: external_status_checks_protected_branches; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.external_status_checks_protected_branches ( +CREATE TABLE external_status_checks_protected_branches ( id bigint NOT NULL, external_status_check_id bigint NOT NULL, protected_branch_id bigint NOT NULL, project_id bigint ); - --- --- Name: external_status_checks_protected_branches_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.external_status_checks_protected_branches_id_seq +CREATE SEQUENCE external_status_checks_protected_branches_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE external_status_checks_protected_branches_id_seq OWNED BY external_status_checks_protected_branches.id; --- --- Name: external_status_checks_protected_branches_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.external_status_checks_protected_branches_id_seq OWNED BY public.external_status_checks_protected_branches.id; - - --- --- Name: feature_gates; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.feature_gates ( +CREATE TABLE feature_gates ( id integer NOT NULL, feature_key character varying NOT NULL, key character varying NOT NULL, @@ -16573,152 +10940,77 @@ CREATE TABLE public.feature_gates ( updated_at timestamp without time zone NOT NULL ); - --- --- Name: feature_gates_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.feature_gates_id_seq +CREATE SEQUENCE feature_gates_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE feature_gates_id_seq OWNED BY feature_gates.id; --- --- Name: feature_gates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.feature_gates_id_seq OWNED BY public.feature_gates.id; - - --- --- Name: features; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.features ( +CREATE TABLE features ( id integer NOT NULL, key character varying NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL ); - --- --- Name: features_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.features_id_seq +CREATE SEQUENCE features_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE features_id_seq OWNED BY features.id; --- --- Name: features_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.features_id_seq OWNED BY public.features.id; - - --- --- Name: fork_network_members; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.fork_network_members ( +CREATE TABLE fork_network_members ( id integer NOT NULL, fork_network_id integer NOT NULL, project_id integer NOT NULL, forked_from_project_id integer ); - --- --- Name: fork_network_members_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.fork_network_members_id_seq +CREATE SEQUENCE fork_network_members_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE fork_network_members_id_seq OWNED BY fork_network_members.id; --- --- Name: fork_network_members_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.fork_network_members_id_seq OWNED BY public.fork_network_members.id; - - --- --- Name: fork_networks; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.fork_networks ( +CREATE TABLE fork_networks ( id integer NOT NULL, root_project_id integer, deleted_root_project_name character varying ); - --- --- Name: fork_networks_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.fork_networks_id_seq +CREATE SEQUENCE fork_networks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE fork_networks_id_seq OWNED BY fork_networks.id; --- --- Name: fork_networks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.fork_networks_id_seq OWNED BY public.fork_networks.id; - - --- --- Name: geo_cache_invalidation_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.geo_cache_invalidation_events ( +CREATE TABLE geo_cache_invalidation_events ( id bigint NOT NULL, key character varying NOT NULL ); - --- --- Name: geo_cache_invalidation_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.geo_cache_invalidation_events_id_seq +CREATE SEQUENCE geo_cache_invalidation_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE geo_cache_invalidation_events_id_seq OWNED BY geo_cache_invalidation_events.id; --- --- Name: geo_cache_invalidation_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.geo_cache_invalidation_events_id_seq OWNED BY public.geo_cache_invalidation_events.id; - - --- --- Name: geo_event_log; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.geo_event_log ( +CREATE TABLE geo_event_log ( id bigint NOT NULL, created_at timestamp without time zone NOT NULL, repositories_changed_event_id bigint, @@ -16727,31 +11019,16 @@ CREATE TABLE public.geo_event_log ( geo_event_id bigint ); - --- --- Name: geo_event_log_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.geo_event_log_id_seq +CREATE SEQUENCE geo_event_log_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE geo_event_log_id_seq OWNED BY geo_event_log.id; --- --- Name: geo_event_log_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.geo_event_log_id_seq OWNED BY public.geo_event_log.id; - - --- --- Name: geo_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.geo_events ( +CREATE TABLE geo_events ( id bigint NOT NULL, replicable_name character varying(255) NOT NULL, event_name character varying(255) NOT NULL, @@ -16759,31 +11036,16 @@ CREATE TABLE public.geo_events ( created_at timestamp with time zone NOT NULL ); - --- --- Name: geo_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.geo_events_id_seq +CREATE SEQUENCE geo_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE geo_events_id_seq OWNED BY geo_events.id; --- --- Name: geo_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.geo_events_id_seq OWNED BY public.geo_events.id; - - --- --- Name: geo_node_namespace_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.geo_node_namespace_links ( +CREATE TABLE geo_node_namespace_links ( id integer NOT NULL, geo_node_id integer NOT NULL, namespace_id integer NOT NULL, @@ -16791,31 +11053,16 @@ CREATE TABLE public.geo_node_namespace_links ( updated_at timestamp without time zone NOT NULL ); - --- --- Name: geo_node_namespace_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.geo_node_namespace_links_id_seq +CREATE SEQUENCE geo_node_namespace_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE geo_node_namespace_links_id_seq OWNED BY geo_node_namespace_links.id; --- --- Name: geo_node_namespace_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.geo_node_namespace_links_id_seq OWNED BY public.geo_node_namespace_links.id; - - --- --- Name: geo_node_statuses; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.geo_node_statuses ( +CREATE TABLE geo_node_statuses ( id integer NOT NULL, geo_node_id integer NOT NULL, db_replication_lag_seconds integer, @@ -16837,31 +11084,16 @@ CREATE TABLE public.geo_node_statuses ( status jsonb DEFAULT '{}'::jsonb NOT NULL ); - --- --- Name: geo_node_statuses_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.geo_node_statuses_id_seq +CREATE SEQUENCE geo_node_statuses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE geo_node_statuses_id_seq OWNED BY geo_node_statuses.id; --- --- Name: geo_node_statuses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.geo_node_statuses_id_seq OWNED BY public.geo_node_statuses.id; - - --- --- Name: geo_nodes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.geo_nodes ( +CREATE TABLE geo_nodes ( id integer NOT NULL, "primary" boolean DEFAULT false NOT NULL, oauth_application_id integer, @@ -16885,31 +11117,16 @@ CREATE TABLE public.geo_nodes ( sync_object_storage boolean DEFAULT false NOT NULL ); - --- --- Name: geo_nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.geo_nodes_id_seq +CREATE SEQUENCE geo_nodes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE geo_nodes_id_seq OWNED BY geo_nodes.id; --- --- Name: geo_nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.geo_nodes_id_seq OWNED BY public.geo_nodes.id; - - --- --- Name: ghost_user_migrations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ghost_user_migrations ( +CREATE TABLE ghost_user_migrations ( id bigint NOT NULL, user_id bigint NOT NULL, initiator_user_id bigint, @@ -16919,31 +11136,16 @@ CREATE TABLE public.ghost_user_migrations ( consume_after timestamp with time zone DEFAULT now() NOT NULL ); - --- --- Name: ghost_user_migrations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ghost_user_migrations_id_seq +CREATE SEQUENCE ghost_user_migrations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ghost_user_migrations_id_seq OWNED BY ghost_user_migrations.id; --- --- Name: ghost_user_migrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ghost_user_migrations_id_seq OWNED BY public.ghost_user_migrations.id; - - --- --- Name: gitlab_subscription_histories; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.gitlab_subscription_histories ( +CREATE TABLE gitlab_subscription_histories ( id bigint NOT NULL, gitlab_subscription_created_at timestamp with time zone, gitlab_subscription_updated_at timestamp with time zone, @@ -16965,31 +11167,16 @@ CREATE TABLE public.gitlab_subscription_histories ( CONSTRAINT check_6d5f27a106 CHECK ((namespace_id IS NOT NULL)) ); - --- --- Name: gitlab_subscription_histories_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.gitlab_subscription_histories_id_seq +CREATE SEQUENCE gitlab_subscription_histories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE gitlab_subscription_histories_id_seq OWNED BY gitlab_subscription_histories.id; --- --- Name: gitlab_subscription_histories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.gitlab_subscription_histories_id_seq OWNED BY public.gitlab_subscription_histories.id; - - --- --- Name: gitlab_subscriptions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.gitlab_subscriptions ( +CREATE TABLE gitlab_subscriptions ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17011,62 +11198,32 @@ CREATE TABLE public.gitlab_subscriptions ( CONSTRAINT check_77fea3f0e7 CHECK ((namespace_id IS NOT NULL)) ); - --- --- Name: gitlab_subscriptions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.gitlab_subscriptions_id_seq +CREATE SEQUENCE gitlab_subscriptions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE gitlab_subscriptions_id_seq OWNED BY gitlab_subscriptions.id; --- --- Name: gitlab_subscriptions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.gitlab_subscriptions_id_seq OWNED BY public.gitlab_subscriptions.id; - - --- --- Name: gpg_key_subkeys; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.gpg_key_subkeys ( +CREATE TABLE gpg_key_subkeys ( id integer NOT NULL, gpg_key_id integer NOT NULL, keyid bytea, fingerprint bytea ); - --- --- Name: gpg_key_subkeys_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.gpg_key_subkeys_id_seq +CREATE SEQUENCE gpg_key_subkeys_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE gpg_key_subkeys_id_seq OWNED BY gpg_key_subkeys.id; --- --- Name: gpg_key_subkeys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.gpg_key_subkeys_id_seq OWNED BY public.gpg_key_subkeys.id; - - --- --- Name: gpg_keys; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.gpg_keys ( +CREATE TABLE gpg_keys ( id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17078,31 +11235,16 @@ CREATE TABLE public.gpg_keys ( externally_verified_at timestamp with time zone ); - --- --- Name: gpg_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.gpg_keys_id_seq +CREATE SEQUENCE gpg_keys_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE gpg_keys_id_seq OWNED BY gpg_keys.id; --- --- Name: gpg_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.gpg_keys_id_seq OWNED BY public.gpg_keys.id; - - --- --- Name: gpg_signatures; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.gpg_signatures ( +CREATE TABLE gpg_signatures ( id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17116,31 +11258,16 @@ CREATE TABLE public.gpg_signatures ( gpg_key_subkey_id integer ); - --- --- Name: gpg_signatures_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.gpg_signatures_id_seq +CREATE SEQUENCE gpg_signatures_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE gpg_signatures_id_seq OWNED BY gpg_signatures.id; --- --- Name: gpg_signatures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.gpg_signatures_id_seq OWNED BY public.gpg_signatures.id; - - --- --- Name: grafana_integrations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.grafana_integrations ( +CREATE TABLE grafana_integrations ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -17151,31 +11278,16 @@ CREATE TABLE public.grafana_integrations ( enabled boolean DEFAULT false NOT NULL ); - --- --- Name: grafana_integrations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.grafana_integrations_id_seq +CREATE SEQUENCE grafana_integrations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE grafana_integrations_id_seq OWNED BY grafana_integrations.id; --- --- Name: grafana_integrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.grafana_integrations_id_seq OWNED BY public.grafana_integrations.id; - - --- --- Name: group_crm_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.group_crm_settings ( +CREATE TABLE group_crm_settings ( group_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17183,31 +11295,16 @@ CREATE TABLE public.group_crm_settings ( source_group_id bigint ); - --- --- Name: group_crm_settings_group_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.group_crm_settings_group_id_seq +CREATE SEQUENCE group_crm_settings_group_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE group_crm_settings_group_id_seq OWNED BY group_crm_settings.group_id; --- --- Name: group_crm_settings_group_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.group_crm_settings_group_id_seq OWNED BY public.group_crm_settings.group_id; - - --- --- Name: group_custom_attributes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.group_custom_attributes ( +CREATE TABLE group_custom_attributes ( id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17216,42 +11313,22 @@ CREATE TABLE public.group_custom_attributes ( value character varying NOT NULL ); - --- --- Name: group_custom_attributes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.group_custom_attributes_id_seq +CREATE SEQUENCE group_custom_attributes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE group_custom_attributes_id_seq OWNED BY group_custom_attributes.id; --- --- Name: group_custom_attributes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.group_custom_attributes_id_seq OWNED BY public.group_custom_attributes.id; - - --- --- Name: group_deletion_schedules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.group_deletion_schedules ( +CREATE TABLE group_deletion_schedules ( group_id bigint NOT NULL, user_id bigint NOT NULL, marked_for_deletion_on date NOT NULL ); - --- --- Name: group_deploy_keys; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.group_deploy_keys ( +CREATE TABLE group_deploy_keys ( id bigint NOT NULL, user_id bigint, created_at timestamp with time zone NOT NULL, @@ -17267,12 +11344,7 @@ CREATE TABLE public.group_deploy_keys ( CONSTRAINT check_f58fa0a0f7 CHECK ((char_length(key) <= 4096)) ); - --- --- Name: group_deploy_keys_groups; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.group_deploy_keys_groups ( +CREATE TABLE group_deploy_keys_groups ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17281,50 +11353,25 @@ CREATE TABLE public.group_deploy_keys_groups ( can_push boolean DEFAULT false NOT NULL ); - --- --- Name: group_deploy_keys_groups_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.group_deploy_keys_groups_id_seq +CREATE SEQUENCE group_deploy_keys_groups_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE group_deploy_keys_groups_id_seq OWNED BY group_deploy_keys_groups.id; --- --- Name: group_deploy_keys_groups_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.group_deploy_keys_groups_id_seq OWNED BY public.group_deploy_keys_groups.id; - - --- --- Name: group_deploy_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.group_deploy_keys_id_seq +CREATE SEQUENCE group_deploy_keys_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE group_deploy_keys_id_seq OWNED BY group_deploy_keys.id; --- --- Name: group_deploy_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.group_deploy_keys_id_seq OWNED BY public.group_deploy_keys.id; - - --- --- Name: group_deploy_tokens; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.group_deploy_tokens ( +CREATE TABLE group_deploy_tokens ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17332,43 +11379,23 @@ CREATE TABLE public.group_deploy_tokens ( deploy_token_id bigint NOT NULL ); - --- --- Name: group_deploy_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.group_deploy_tokens_id_seq +CREATE SEQUENCE group_deploy_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE group_deploy_tokens_id_seq OWNED BY group_deploy_tokens.id; --- --- Name: group_deploy_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.group_deploy_tokens_id_seq OWNED BY public.group_deploy_tokens.id; - - --- --- Name: group_features; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.group_features ( +CREATE TABLE group_features ( group_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, wiki_access_level smallint DEFAULT 20 NOT NULL ); - --- --- Name: group_group_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.group_group_links ( +CREATE TABLE group_group_links ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17379,31 +11406,16 @@ CREATE TABLE public.group_group_links ( member_role_id bigint ); - --- --- Name: group_group_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.group_group_links_id_seq +CREATE SEQUENCE group_group_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE group_group_links_id_seq OWNED BY group_group_links.id; --- --- Name: group_group_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.group_group_links_id_seq OWNED BY public.group_group_links.id; - - --- --- Name: group_import_states; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.group_import_states ( +CREATE TABLE group_import_states ( group_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17415,31 +11427,16 @@ CREATE TABLE public.group_import_states ( CONSTRAINT check_96558fff96 CHECK ((char_length(jid) <= 100)) ); - --- --- Name: group_import_states_group_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.group_import_states_group_id_seq +CREATE SEQUENCE group_import_states_group_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE group_import_states_group_id_seq OWNED BY group_import_states.group_id; --- --- Name: group_import_states_group_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.group_import_states_group_id_seq OWNED BY public.group_import_states.group_id; - - --- --- Name: group_merge_request_approval_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.group_merge_request_approval_settings ( +CREATE TABLE group_merge_request_approval_settings ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, group_id bigint NOT NULL, @@ -17452,12 +11449,7 @@ CREATE TABLE public.group_merge_request_approval_settings ( require_reauthentication_to_approve boolean DEFAULT false NOT NULL ); - --- --- Name: group_repository_storage_moves; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.group_repository_storage_moves ( +CREATE TABLE group_repository_storage_moves ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17471,31 +11463,16 @@ CREATE TABLE public.group_repository_storage_moves ( CONSTRAINT group_repository_storage_moves_source_storage_name CHECK ((char_length(source_storage_name) <= 255)) ); - --- --- Name: group_repository_storage_moves_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.group_repository_storage_moves_id_seq +CREATE SEQUENCE group_repository_storage_moves_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE group_repository_storage_moves_id_seq OWNED BY group_repository_storage_moves.id; --- --- Name: group_repository_storage_moves_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.group_repository_storage_moves_id_seq OWNED BY public.group_repository_storage_moves.id; - - --- --- Name: group_saved_replies; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.group_saved_replies ( +CREATE TABLE group_saved_replies ( id bigint NOT NULL, group_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -17506,31 +11483,16 @@ CREATE TABLE public.group_saved_replies ( CONSTRAINT check_4a96378d43 CHECK ((char_length(content) <= 10000)) ); - --- --- Name: group_saved_replies_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.group_saved_replies_id_seq +CREATE SEQUENCE group_saved_replies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE group_saved_replies_id_seq OWNED BY group_saved_replies.id; --- --- Name: group_saved_replies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.group_saved_replies_id_seq OWNED BY public.group_saved_replies.id; - - --- --- Name: group_ssh_certificates; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.group_ssh_certificates ( +CREATE TABLE group_ssh_certificates ( id bigint NOT NULL, namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -17541,43 +11503,23 @@ CREATE TABLE public.group_ssh_certificates ( CONSTRAINT check_6c1d920167 CHECK ((char_length(key) <= 524288)) ); - --- --- Name: group_ssh_certificates_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.group_ssh_certificates_id_seq +CREATE SEQUENCE group_ssh_certificates_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE group_ssh_certificates_id_seq OWNED BY group_ssh_certificates.id; --- --- Name: group_ssh_certificates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.group_ssh_certificates_id_seq OWNED BY public.group_ssh_certificates.id; - - --- --- Name: group_wiki_repositories; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.group_wiki_repositories ( +CREATE TABLE group_wiki_repositories ( shard_id bigint NOT NULL, group_id bigint NOT NULL, disk_path text NOT NULL, CONSTRAINT check_07f1c81806 CHECK ((char_length(disk_path) <= 80)) ); - --- --- Name: group_wiki_repository_states; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.group_wiki_repository_states ( +CREATE TABLE group_wiki_repository_states ( id bigint NOT NULL, verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, @@ -17590,50 +11532,25 @@ CREATE TABLE public.group_wiki_repository_states ( CONSTRAINT check_14d288436d CHECK ((char_length(verification_failure) <= 255)) ); - --- --- Name: group_wiki_repository_states_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.group_wiki_repository_states_id_seq +CREATE SEQUENCE group_wiki_repository_states_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE group_wiki_repository_states_id_seq OWNED BY group_wiki_repository_states.id; --- --- Name: group_wiki_repository_states_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.group_wiki_repository_states_id_seq OWNED BY public.group_wiki_repository_states.id; - - --- --- Name: groups_visits_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.groups_visits_id_seq +CREATE SEQUENCE groups_visits_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE groups_visits_id_seq OWNED BY groups_visits.id; --- --- Name: groups_visits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.groups_visits_id_seq OWNED BY public.groups_visits.id; - - --- --- Name: historical_data; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.historical_data ( +CREATE TABLE historical_data ( id integer NOT NULL, date date, active_user_count integer, @@ -17643,31 +11560,16 @@ CREATE TABLE public.historical_data ( CONSTRAINT check_640e8cf66c CHECK ((recorded_at IS NOT NULL)) ); - --- --- Name: historical_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.historical_data_id_seq +CREATE SEQUENCE historical_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE historical_data_id_seq OWNED BY historical_data.id; --- --- Name: historical_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.historical_data_id_seq OWNED BY public.historical_data.id; - - --- --- Name: identities; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.identities ( +CREATE TABLE identities ( id integer NOT NULL, extern_uid character varying, provider character varying, @@ -17679,31 +11581,16 @@ CREATE TABLE public.identities ( trusted_extern_uid boolean DEFAULT true ); - --- --- Name: identities_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.identities_id_seq +CREATE SEQUENCE identities_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE identities_id_seq OWNED BY identities.id; --- --- Name: identities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.identities_id_seq OWNED BY public.identities.id; - - --- --- Name: import_export_uploads; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.import_export_uploads ( +CREATE TABLE import_export_uploads ( id integer NOT NULL, updated_at timestamp with time zone NOT NULL, project_id integer, @@ -17715,31 +11602,16 @@ CREATE TABLE public.import_export_uploads ( CONSTRAINT check_58f0d37481 CHECK ((char_length(remote_import_url) <= 2048)) ); - --- --- Name: import_export_uploads_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.import_export_uploads_id_seq +CREATE SEQUENCE import_export_uploads_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE import_export_uploads_id_seq OWNED BY import_export_uploads.id; --- --- Name: import_export_uploads_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.import_export_uploads_id_seq OWNED BY public.import_export_uploads.id; - - --- --- Name: import_failures; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.import_failures ( +CREATE TABLE import_failures ( id bigint NOT NULL, relation_index integer, project_id bigint, @@ -17755,31 +11627,16 @@ CREATE TABLE public.import_failures ( user_id bigint ); - --- --- Name: import_failures_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.import_failures_id_seq +CREATE SEQUENCE import_failures_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE import_failures_id_seq OWNED BY import_failures.id; --- --- Name: import_failures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.import_failures_id_seq OWNED BY public.import_failures.id; - - --- --- Name: import_placeholder_memberships; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.import_placeholder_memberships ( +CREATE TABLE import_placeholder_memberships ( id bigint NOT NULL, source_user_id bigint NOT NULL, namespace_id bigint NOT NULL, @@ -17790,31 +11647,16 @@ CREATE TABLE public.import_placeholder_memberships ( access_level smallint NOT NULL ); - --- --- Name: import_placeholder_memberships_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.import_placeholder_memberships_id_seq +CREATE SEQUENCE import_placeholder_memberships_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE import_placeholder_memberships_id_seq OWNED BY import_placeholder_memberships.id; --- --- Name: import_placeholder_memberships_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.import_placeholder_memberships_id_seq OWNED BY public.import_placeholder_memberships.id; - - --- --- Name: import_source_user_placeholder_references; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.import_source_user_placeholder_references ( +CREATE TABLE import_source_user_placeholder_references ( id bigint NOT NULL, source_user_id bigint NOT NULL, namespace_id bigint NOT NULL, @@ -17828,31 +11670,16 @@ CREATE TABLE public.import_source_user_placeholder_references ( CONSTRAINT check_d17bd9dd4d CHECK ((char_length(model) <= 150)) ); - --- --- Name: import_source_user_placeholder_references_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.import_source_user_placeholder_references_id_seq +CREATE SEQUENCE import_source_user_placeholder_references_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE import_source_user_placeholder_references_id_seq OWNED BY import_source_user_placeholder_references.id; --- --- Name: import_source_user_placeholder_references_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.import_source_user_placeholder_references_id_seq OWNED BY public.import_source_user_placeholder_references.id; - - --- --- Name: import_source_users; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.import_source_users ( +CREATE TABLE import_source_users ( id bigint NOT NULL, placeholder_user_id bigint, reassign_to_user_id bigint, @@ -17875,31 +11702,16 @@ CREATE TABLE public.import_source_users ( CONSTRAINT check_e2039840c5 CHECK ((char_length(source_hostname) <= 255)) ); - --- --- Name: import_source_users_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.import_source_users_id_seq +CREATE SEQUENCE import_source_users_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE import_source_users_id_seq OWNED BY import_source_users.id; --- --- Name: import_source_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.import_source_users_id_seq OWNED BY public.import_source_users.id; - - --- --- Name: incident_management_escalation_policies; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.incident_management_escalation_policies ( +CREATE TABLE incident_management_escalation_policies ( id bigint NOT NULL, project_id bigint NOT NULL, name text NOT NULL, @@ -17908,31 +11720,16 @@ CREATE TABLE public.incident_management_escalation_policies ( CONSTRAINT check_9a26365850 CHECK ((char_length(name) <= 72)) ); - --- --- Name: incident_management_escalation_policies_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.incident_management_escalation_policies_id_seq +CREATE SEQUENCE incident_management_escalation_policies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE incident_management_escalation_policies_id_seq OWNED BY incident_management_escalation_policies.id; --- --- Name: incident_management_escalation_policies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.incident_management_escalation_policies_id_seq OWNED BY public.incident_management_escalation_policies.id; - - --- --- Name: incident_management_escalation_rules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.incident_management_escalation_rules ( +CREATE TABLE incident_management_escalation_rules ( id bigint NOT NULL, policy_id bigint NOT NULL, oncall_schedule_id bigint, @@ -17943,31 +11740,16 @@ CREATE TABLE public.incident_management_escalation_rules ( CONSTRAINT escalation_rules_one_of_oncall_schedule_or_user CHECK ((num_nonnulls(oncall_schedule_id, user_id) = 1)) ); - --- --- Name: incident_management_escalation_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.incident_management_escalation_rules_id_seq +CREATE SEQUENCE incident_management_escalation_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE incident_management_escalation_rules_id_seq OWNED BY incident_management_escalation_rules.id; --- --- Name: incident_management_escalation_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.incident_management_escalation_rules_id_seq OWNED BY public.incident_management_escalation_rules.id; - - --- --- Name: incident_management_issuable_escalation_statuses; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.incident_management_issuable_escalation_statuses ( +CREATE TABLE incident_management_issuable_escalation_statuses ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -17978,31 +11760,16 @@ CREATE TABLE public.incident_management_issuable_escalation_statuses ( status smallint DEFAULT 0 NOT NULL ); - --- --- Name: incident_management_issuable_escalation_statuses_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.incident_management_issuable_escalation_statuses_id_seq +CREATE SEQUENCE incident_management_issuable_escalation_statuses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE incident_management_issuable_escalation_statuses_id_seq OWNED BY incident_management_issuable_escalation_statuses.id; --- --- Name: incident_management_issuable_escalation_statuses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.incident_management_issuable_escalation_statuses_id_seq OWNED BY public.incident_management_issuable_escalation_statuses.id; - - --- --- Name: incident_management_oncall_participants; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.incident_management_oncall_participants ( +CREATE TABLE incident_management_oncall_participants ( id bigint NOT NULL, oncall_rotation_id bigint NOT NULL, user_id bigint NOT NULL, @@ -18011,31 +11778,16 @@ CREATE TABLE public.incident_management_oncall_participants ( is_removed boolean DEFAULT false NOT NULL ); - --- --- Name: incident_management_oncall_participants_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.incident_management_oncall_participants_id_seq +CREATE SEQUENCE incident_management_oncall_participants_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE incident_management_oncall_participants_id_seq OWNED BY incident_management_oncall_participants.id; --- --- Name: incident_management_oncall_participants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.incident_management_oncall_participants_id_seq OWNED BY public.incident_management_oncall_participants.id; - - --- --- Name: incident_management_oncall_rotations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.incident_management_oncall_rotations ( +CREATE TABLE incident_management_oncall_rotations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -18050,31 +11802,16 @@ CREATE TABLE public.incident_management_oncall_rotations ( CONSTRAINT check_5209fb5d02 CHECK ((char_length(name) <= 200)) ); - --- --- Name: incident_management_oncall_rotations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.incident_management_oncall_rotations_id_seq +CREATE SEQUENCE incident_management_oncall_rotations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE incident_management_oncall_rotations_id_seq OWNED BY incident_management_oncall_rotations.id; --- --- Name: incident_management_oncall_rotations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.incident_management_oncall_rotations_id_seq OWNED BY public.incident_management_oncall_rotations.id; - - --- --- Name: incident_management_oncall_schedules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.incident_management_oncall_schedules ( +CREATE TABLE incident_management_oncall_schedules ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -18088,31 +11825,16 @@ CREATE TABLE public.incident_management_oncall_schedules ( CONSTRAINT check_e6ef43a664 CHECK ((char_length(name) <= 200)) ); - --- --- Name: incident_management_oncall_schedules_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.incident_management_oncall_schedules_id_seq +CREATE SEQUENCE incident_management_oncall_schedules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE incident_management_oncall_schedules_id_seq OWNED BY incident_management_oncall_schedules.id; --- --- Name: incident_management_oncall_schedules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.incident_management_oncall_schedules_id_seq OWNED BY public.incident_management_oncall_schedules.id; - - --- --- Name: incident_management_oncall_shifts; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.incident_management_oncall_shifts ( +CREATE TABLE incident_management_oncall_shifts ( id bigint NOT NULL, rotation_id bigint NOT NULL, participant_id bigint NOT NULL, @@ -18120,100 +11842,50 @@ CREATE TABLE public.incident_management_oncall_shifts ( ends_at timestamp with time zone NOT NULL ); - --- --- Name: incident_management_oncall_shifts_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.incident_management_oncall_shifts_id_seq +CREATE SEQUENCE incident_management_oncall_shifts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE incident_management_oncall_shifts_id_seq OWNED BY incident_management_oncall_shifts.id; --- --- Name: incident_management_oncall_shifts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.incident_management_oncall_shifts_id_seq OWNED BY public.incident_management_oncall_shifts.id; - - --- --- Name: incident_management_pending_alert_escalations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.incident_management_pending_alert_escalations_id_seq +CREATE SEQUENCE incident_management_pending_alert_escalations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE incident_management_pending_alert_escalations_id_seq OWNED BY incident_management_pending_alert_escalations.id; --- --- Name: incident_management_pending_alert_escalations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.incident_management_pending_alert_escalations_id_seq OWNED BY public.incident_management_pending_alert_escalations.id; - - --- --- Name: incident_management_pending_issue_escalations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.incident_management_pending_issue_escalations_id_seq +CREATE SEQUENCE incident_management_pending_issue_escalations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE incident_management_pending_issue_escalations_id_seq OWNED BY incident_management_pending_issue_escalations.id; --- --- Name: incident_management_pending_issue_escalations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.incident_management_pending_issue_escalations_id_seq OWNED BY public.incident_management_pending_issue_escalations.id; - - --- --- Name: incident_management_timeline_event_tag_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.incident_management_timeline_event_tag_links ( +CREATE TABLE incident_management_timeline_event_tag_links ( id bigint NOT NULL, timeline_event_id bigint NOT NULL, timeline_event_tag_id bigint NOT NULL, created_at timestamp with time zone NOT NULL ); - --- --- Name: incident_management_timeline_event_tag_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.incident_management_timeline_event_tag_links_id_seq +CREATE SEQUENCE incident_management_timeline_event_tag_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE incident_management_timeline_event_tag_links_id_seq OWNED BY incident_management_timeline_event_tag_links.id; --- --- Name: incident_management_timeline_event_tag_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.incident_management_timeline_event_tag_links_id_seq OWNED BY public.incident_management_timeline_event_tag_links.id; - - --- --- Name: incident_management_timeline_event_tags; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.incident_management_timeline_event_tags ( +CREATE TABLE incident_management_timeline_event_tags ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -18222,31 +11894,16 @@ CREATE TABLE public.incident_management_timeline_event_tags ( CONSTRAINT check_8717184e2c CHECK ((char_length(name) <= 255)) ); - --- --- Name: incident_management_timeline_event_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.incident_management_timeline_event_tags_id_seq +CREATE SEQUENCE incident_management_timeline_event_tags_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE incident_management_timeline_event_tags_id_seq OWNED BY incident_management_timeline_event_tags.id; --- --- Name: incident_management_timeline_event_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.incident_management_timeline_event_tags_id_seq OWNED BY public.incident_management_timeline_event_tags.id; - - --- --- Name: incident_management_timeline_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.incident_management_timeline_events ( +CREATE TABLE incident_management_timeline_events ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -18266,31 +11923,16 @@ CREATE TABLE public.incident_management_timeline_events ( CONSTRAINT check_94a235d6a4 CHECK ((char_length(note_html) <= 10000)) ); - --- --- Name: incident_management_timeline_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.incident_management_timeline_events_id_seq +CREATE SEQUENCE incident_management_timeline_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE incident_management_timeline_events_id_seq OWNED BY incident_management_timeline_events.id; --- --- Name: incident_management_timeline_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.incident_management_timeline_events_id_seq OWNED BY public.incident_management_timeline_events.id; - - --- --- Name: index_statuses; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.index_statuses ( +CREATE TABLE index_statuses ( id integer NOT NULL, project_id integer NOT NULL, indexed_at timestamp without time zone, @@ -18302,61 +11944,31 @@ CREATE TABLE public.index_statuses ( wiki_indexed_at timestamp with time zone ); - --- --- Name: index_statuses_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.index_statuses_id_seq +CREATE SEQUENCE index_statuses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE index_statuses_id_seq OWNED BY index_statuses.id; --- --- Name: index_statuses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.index_statuses_id_seq OWNED BY public.index_statuses.id; - - --- --- Name: insights; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.insights ( +CREATE TABLE insights ( id integer NOT NULL, namespace_id integer NOT NULL, project_id integer NOT NULL ); - --- --- Name: insights_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.insights_id_seq +CREATE SEQUENCE insights_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE insights_id_seq OWNED BY insights.id; --- --- Name: insights_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.insights_id_seq OWNED BY public.insights.id; - - --- --- Name: instance_audit_events_streaming_headers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.instance_audit_events_streaming_headers ( +CREATE TABLE instance_audit_events_streaming_headers ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -18368,31 +11980,16 @@ CREATE TABLE public.instance_audit_events_streaming_headers ( CONSTRAINT check_e92010d531 CHECK ((char_length(key) <= 255)) ); - --- --- Name: instance_audit_events_streaming_headers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.instance_audit_events_streaming_headers_id_seq +CREATE SEQUENCE instance_audit_events_streaming_headers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE instance_audit_events_streaming_headers_id_seq OWNED BY instance_audit_events_streaming_headers.id; --- --- Name: instance_audit_events_streaming_headers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.instance_audit_events_streaming_headers_id_seq OWNED BY public.instance_audit_events_streaming_headers.id; - - --- --- Name: integrations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.integrations ( +CREATE TABLE integrations ( id integer NOT NULL, project_id integer, created_at timestamp without time zone, @@ -18428,31 +12025,16 @@ CREATE TABLE public.integrations ( CONSTRAINT check_a948a0aa7e CHECK ((char_length(type_new) <= 255)) ); - --- --- Name: integrations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.integrations_id_seq +CREATE SEQUENCE integrations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE integrations_id_seq OWNED BY integrations.id; --- --- Name: integrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.integrations_id_seq OWNED BY public.integrations.id; - - --- --- Name: internal_ids; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.internal_ids ( +CREATE TABLE internal_ids ( id bigint NOT NULL, project_id integer, usage integer NOT NULL, @@ -18460,61 +12042,31 @@ CREATE TABLE public.internal_ids ( namespace_id integer ); - --- --- Name: internal_ids_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.internal_ids_id_seq +CREATE SEQUENCE internal_ids_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE internal_ids_id_seq OWNED BY internal_ids.id; --- --- Name: internal_ids_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.internal_ids_id_seq OWNED BY public.internal_ids.id; - - --- --- Name: ip_restrictions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ip_restrictions ( +CREATE TABLE ip_restrictions ( id bigint NOT NULL, group_id integer NOT NULL, range character varying NOT NULL ); - --- --- Name: ip_restrictions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ip_restrictions_id_seq +CREATE SEQUENCE ip_restrictions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ip_restrictions_id_seq OWNED BY ip_restrictions.id; --- --- Name: ip_restrictions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ip_restrictions_id_seq OWNED BY public.ip_restrictions.id; - - --- --- Name: issuable_metric_images; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.issuable_metric_images ( +CREATE TABLE issuable_metric_images ( id bigint NOT NULL, issue_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -18528,31 +12080,16 @@ CREATE TABLE public.issuable_metric_images ( CONSTRAINT check_7ed527062f CHECK ((char_length(file) <= 255)) ); - --- --- Name: issuable_metric_images_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.issuable_metric_images_id_seq +CREATE SEQUENCE issuable_metric_images_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE issuable_metric_images_id_seq OWNED BY issuable_metric_images.id; --- --- Name: issuable_metric_images_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.issuable_metric_images_id_seq OWNED BY public.issuable_metric_images.id; - - --- --- Name: issuable_resource_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.issuable_resource_links ( +CREATE TABLE issuable_resource_links ( id bigint NOT NULL, issue_id bigint NOT NULL, link_text text, @@ -18565,61 +12102,31 @@ CREATE TABLE public.issuable_resource_links ( CONSTRAINT check_b137147e0b CHECK ((char_length(link_text) <= 255)) ); - --- --- Name: issuable_resource_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.issuable_resource_links_id_seq +CREATE SEQUENCE issuable_resource_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE issuable_resource_links_id_seq OWNED BY issuable_resource_links.id; --- --- Name: issuable_resource_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.issuable_resource_links_id_seq OWNED BY public.issuable_resource_links.id; - - --- --- Name: issuable_severities; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.issuable_severities ( +CREATE TABLE issuable_severities ( id bigint NOT NULL, issue_id bigint NOT NULL, severity smallint DEFAULT 0 NOT NULL ); - --- --- Name: issuable_severities_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.issuable_severities_id_seq +CREATE SEQUENCE issuable_severities_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE issuable_severities_id_seq OWNED BY issuable_severities.id; --- --- Name: issuable_severities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.issuable_severities_id_seq OWNED BY public.issuable_severities.id; - - --- --- Name: issuable_slas; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.issuable_slas ( +CREATE TABLE issuable_slas ( id bigint NOT NULL, issue_id bigint NOT NULL, due_at timestamp with time zone NOT NULL, @@ -18627,41 +12134,21 @@ CREATE TABLE public.issuable_slas ( issuable_closed boolean DEFAULT false NOT NULL ); - --- --- Name: issuable_slas_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.issuable_slas_id_seq +CREATE SEQUENCE issuable_slas_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE issuable_slas_id_seq OWNED BY issuable_slas.id; --- --- Name: issuable_slas_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.issuable_slas_id_seq OWNED BY public.issuable_slas.id; - - --- --- Name: issue_assignees; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.issue_assignees ( +CREATE TABLE issue_assignees ( user_id integer NOT NULL, issue_id integer NOT NULL ); - --- --- Name: issue_assignment_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.issue_assignment_events ( +CREATE TABLE issue_assignment_events ( id bigint NOT NULL, user_id bigint, issue_id bigint NOT NULL, @@ -18669,31 +12156,16 @@ CREATE TABLE public.issue_assignment_events ( action smallint DEFAULT 1 NOT NULL ); - --- --- Name: issue_assignment_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.issue_assignment_events_id_seq +CREATE SEQUENCE issue_assignment_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE issue_assignment_events_id_seq OWNED BY issue_assignment_events.id; --- --- Name: issue_assignment_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.issue_assignment_events_id_seq OWNED BY public.issue_assignment_events.id; - - --- --- Name: issue_customer_relations_contacts; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.issue_customer_relations_contacts ( +CREATE TABLE issue_customer_relations_contacts ( id bigint NOT NULL, issue_id bigint NOT NULL, contact_id bigint NOT NULL, @@ -18701,31 +12173,16 @@ CREATE TABLE public.issue_customer_relations_contacts ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: issue_customer_relations_contacts_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.issue_customer_relations_contacts_id_seq +CREATE SEQUENCE issue_customer_relations_contacts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE issue_customer_relations_contacts_id_seq OWNED BY issue_customer_relations_contacts.id; --- --- Name: issue_customer_relations_contacts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.issue_customer_relations_contacts_id_seq OWNED BY public.issue_customer_relations_contacts.id; - - --- --- Name: issue_email_participants; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.issue_email_participants ( +CREATE TABLE issue_email_participants ( id bigint NOT NULL, issue_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -18734,62 +12191,32 @@ CREATE TABLE public.issue_email_participants ( CONSTRAINT check_2c321d408d CHECK ((char_length(email) <= 255)) ); - --- --- Name: issue_email_participants_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.issue_email_participants_id_seq +CREATE SEQUENCE issue_email_participants_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE issue_email_participants_id_seq OWNED BY issue_email_participants.id; --- --- Name: issue_email_participants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.issue_email_participants_id_seq OWNED BY public.issue_email_participants.id; - - --- --- Name: issue_emails; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.issue_emails ( +CREATE TABLE issue_emails ( id bigint NOT NULL, issue_id bigint NOT NULL, email_message_id text NOT NULL, CONSTRAINT check_5abf3e6aea CHECK ((char_length(email_message_id) <= 1000)) ); - --- --- Name: issue_emails_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.issue_emails_id_seq +CREATE SEQUENCE issue_emails_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE issue_emails_id_seq OWNED BY issue_emails.id; --- --- Name: issue_emails_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.issue_emails_id_seq OWNED BY public.issue_emails.id; - - --- --- Name: issue_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.issue_links ( +CREATE TABLE issue_links ( id integer NOT NULL, source_id integer NOT NULL, target_id integer NOT NULL, @@ -18799,31 +12226,16 @@ CREATE TABLE public.issue_links ( namespace_id bigint ); - --- --- Name: issue_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.issue_links_id_seq +CREATE SEQUENCE issue_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE issue_links_id_seq OWNED BY issue_links.id; --- --- Name: issue_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.issue_links_id_seq OWNED BY public.issue_links.id; - - --- --- Name: issue_metrics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.issue_metrics ( +CREATE TABLE issue_metrics ( id integer NOT NULL, issue_id integer NOT NULL, first_mentioned_in_commit_at timestamp without time zone, @@ -18833,31 +12245,16 @@ CREATE TABLE public.issue_metrics ( updated_at timestamp without time zone NOT NULL ); - --- --- Name: issue_metrics_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.issue_metrics_id_seq +CREATE SEQUENCE issue_metrics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE issue_metrics_id_seq OWNED BY issue_metrics.id; --- --- Name: issue_metrics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.issue_metrics_id_seq OWNED BY public.issue_metrics.id; - - --- --- Name: issue_tracker_data; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.issue_tracker_data ( +CREATE TABLE issue_tracker_data ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -18871,31 +12268,16 @@ CREATE TABLE public.issue_tracker_data ( CONSTRAINT check_7ca00cd891 CHECK ((integration_id IS NOT NULL)) ); - --- --- Name: issue_tracker_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.issue_tracker_data_id_seq +CREATE SEQUENCE issue_tracker_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE issue_tracker_data_id_seq OWNED BY issue_tracker_data.id; --- --- Name: issue_tracker_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.issue_tracker_data_id_seq OWNED BY public.issue_tracker_data.id; - - --- --- Name: issue_user_mentions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.issue_user_mentions ( +CREATE TABLE issue_user_mentions ( id bigint NOT NULL, issue_id integer NOT NULL, mentioned_users_ids integer[], @@ -18904,31 +12286,16 @@ CREATE TABLE public.issue_user_mentions ( note_id bigint ); - --- --- Name: issue_user_mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.issue_user_mentions_id_seq +CREATE SEQUENCE issue_user_mentions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE issue_user_mentions_id_seq OWNED BY issue_user_mentions.id; --- --- Name: issue_user_mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.issue_user_mentions_id_seq OWNED BY public.issue_user_mentions.id; - - --- --- Name: issues; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.issues ( +CREATE TABLE issues ( id integer NOT NULL, title character varying, author_id integer, @@ -18973,55 +12340,30 @@ CREATE TABLE public.issues ( CONSTRAINT check_fba63f706d CHECK ((lock_version IS NOT NULL)) ); - --- --- Name: issues_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.issues_id_seq +CREATE SEQUENCE issues_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE issues_id_seq OWNED BY issues.id; --- --- Name: issues_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.issues_id_seq OWNED BY public.issues.id; - - --- --- Name: issues_prometheus_alert_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.issues_prometheus_alert_events ( +CREATE TABLE issues_prometheus_alert_events ( issue_id bigint NOT NULL, prometheus_alert_event_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL ); - --- --- Name: issues_self_managed_prometheus_alert_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.issues_self_managed_prometheus_alert_events ( +CREATE TABLE issues_self_managed_prometheus_alert_events ( issue_id bigint NOT NULL, self_managed_prometheus_alert_event_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL ); - --- --- Name: iterations_cadences; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.iterations_cadences ( +CREATE TABLE iterations_cadences ( id bigint NOT NULL, group_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -19039,31 +12381,16 @@ CREATE TABLE public.iterations_cadences ( CONSTRAINT check_fedff82d3b CHECK ((char_length(title) <= 255)) ); - --- --- Name: iterations_cadences_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.iterations_cadences_id_seq +CREATE SEQUENCE iterations_cadences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE iterations_cadences_id_seq OWNED BY iterations_cadences.id; --- --- Name: iterations_cadences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.iterations_cadences_id_seq OWNED BY public.iterations_cadences.id; - - --- --- Name: jira_connect_installations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.jira_connect_installations ( +CREATE TABLE jira_connect_installations ( id bigint NOT NULL, client_key character varying, encrypted_shared_secret character varying, @@ -19073,31 +12400,16 @@ CREATE TABLE public.jira_connect_installations ( CONSTRAINT check_4c6abed669 CHECK ((char_length(instance_url) <= 255)) ); - --- --- Name: jira_connect_installations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.jira_connect_installations_id_seq +CREATE SEQUENCE jira_connect_installations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE jira_connect_installations_id_seq OWNED BY jira_connect_installations.id; --- --- Name: jira_connect_installations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.jira_connect_installations_id_seq OWNED BY public.jira_connect_installations.id; - - --- --- Name: jira_connect_subscriptions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.jira_connect_subscriptions ( +CREATE TABLE jira_connect_subscriptions ( id bigint NOT NULL, jira_connect_installation_id bigint NOT NULL, namespace_id integer NOT NULL, @@ -19105,31 +12417,16 @@ CREATE TABLE public.jira_connect_subscriptions ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: jira_connect_subscriptions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.jira_connect_subscriptions_id_seq +CREATE SEQUENCE jira_connect_subscriptions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE jira_connect_subscriptions_id_seq OWNED BY jira_connect_subscriptions.id; --- --- Name: jira_connect_subscriptions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.jira_connect_subscriptions_id_seq OWNED BY public.jira_connect_subscriptions.id; - - --- --- Name: jira_imports; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.jira_imports ( +CREATE TABLE jira_imports ( id bigint NOT NULL, project_id bigint NOT NULL, user_id bigint, @@ -19150,31 +12447,16 @@ CREATE TABLE public.jira_imports ( CONSTRAINT check_9ed451c5b1 CHECK ((char_length(error_message) <= 1000)) ); - --- --- Name: jira_imports_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.jira_imports_id_seq +CREATE SEQUENCE jira_imports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE jira_imports_id_seq OWNED BY jira_imports.id; --- --- Name: jira_imports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.jira_imports_id_seq OWNED BY public.jira_imports.id; - - --- --- Name: jira_tracker_data; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.jira_tracker_data ( +CREATE TABLE jira_tracker_data ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -19205,31 +12487,16 @@ CREATE TABLE public.jira_tracker_data ( CONSTRAINT check_9863a0a5fd CHECK ((char_length(jira_issue_regex) <= 255)) ); - --- --- Name: jira_tracker_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.jira_tracker_data_id_seq +CREATE SEQUENCE jira_tracker_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE jira_tracker_data_id_seq OWNED BY jira_tracker_data.id; --- --- Name: jira_tracker_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.jira_tracker_data_id_seq OWNED BY public.jira_tracker_data.id; - - --- --- Name: keys; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.keys ( +CREATE TABLE keys ( id integer NOT NULL, user_id integer, created_at timestamp without time zone, @@ -19247,31 +12514,16 @@ CREATE TABLE public.keys ( usage_type smallint DEFAULT 0 NOT NULL ); - --- --- Name: keys_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.keys_id_seq +CREATE SEQUENCE keys_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE keys_id_seq OWNED BY keys.id; --- --- Name: keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.keys_id_seq OWNED BY public.keys.id; - - --- --- Name: label_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.label_links ( +CREATE TABLE label_links ( id integer NOT NULL, label_id integer, target_id integer, @@ -19280,31 +12532,16 @@ CREATE TABLE public.label_links ( updated_at timestamp without time zone ); - --- --- Name: label_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.label_links_id_seq +CREATE SEQUENCE label_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE label_links_id_seq OWNED BY label_links.id; --- --- Name: label_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.label_links_id_seq OWNED BY public.label_links.id; - - --- --- Name: label_priorities; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.label_priorities ( +CREATE TABLE label_priorities ( id integer NOT NULL, project_id integer NOT NULL, label_id integer NOT NULL, @@ -19313,31 +12550,16 @@ CREATE TABLE public.label_priorities ( updated_at timestamp without time zone NOT NULL ); - --- --- Name: label_priorities_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.label_priorities_id_seq +CREATE SEQUENCE label_priorities_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE label_priorities_id_seq OWNED BY label_priorities.id; --- --- Name: label_priorities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.label_priorities_id_seq OWNED BY public.label_priorities.id; - - --- --- Name: labels; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.labels ( +CREATE TABLE labels ( id integer NOT NULL, title character varying, color character varying, @@ -19353,31 +12575,16 @@ CREATE TABLE public.labels ( lock_on_merge boolean DEFAULT false NOT NULL ); - --- --- Name: labels_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.labels_id_seq +CREATE SEQUENCE labels_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE labels_id_seq OWNED BY labels.id; --- --- Name: labels_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.labels_id_seq OWNED BY public.labels.id; - - --- --- Name: ldap_group_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ldap_group_links ( +CREATE TABLE ldap_group_links ( id integer NOT NULL, cn character varying, group_access integer NOT NULL, @@ -19389,31 +12596,16 @@ CREATE TABLE public.ldap_group_links ( member_role_id bigint ); - --- --- Name: ldap_group_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ldap_group_links_id_seq +CREATE SEQUENCE ldap_group_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ldap_group_links_id_seq OWNED BY ldap_group_links.id; --- --- Name: ldap_group_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ldap_group_links_id_seq OWNED BY public.ldap_group_links.id; - - --- --- Name: lfs_file_locks; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.lfs_file_locks ( +CREATE TABLE lfs_file_locks ( id integer NOT NULL, project_id integer NOT NULL, user_id integer NOT NULL, @@ -19421,31 +12613,16 @@ CREATE TABLE public.lfs_file_locks ( path character varying(511) ); - --- --- Name: lfs_file_locks_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.lfs_file_locks_id_seq +CREATE SEQUENCE lfs_file_locks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE lfs_file_locks_id_seq OWNED BY lfs_file_locks.id; --- --- Name: lfs_file_locks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.lfs_file_locks_id_seq OWNED BY public.lfs_file_locks.id; - - --- --- Name: lfs_object_states; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.lfs_object_states ( +CREATE TABLE lfs_object_states ( verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, verified_at timestamp with time zone, @@ -19457,31 +12634,16 @@ CREATE TABLE public.lfs_object_states ( CONSTRAINT check_efe45a8ab3 CHECK ((char_length(verification_failure) <= 255)) ); - --- --- Name: lfs_object_states_lfs_object_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.lfs_object_states_lfs_object_id_seq +CREATE SEQUENCE lfs_object_states_lfs_object_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE lfs_object_states_lfs_object_id_seq OWNED BY lfs_object_states.lfs_object_id; --- --- Name: lfs_object_states_lfs_object_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.lfs_object_states_lfs_object_id_seq OWNED BY public.lfs_object_states.lfs_object_id; - - --- --- Name: lfs_objects; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.lfs_objects ( +CREATE TABLE lfs_objects ( id integer NOT NULL, oid character varying NOT NULL, size bigint NOT NULL, @@ -19492,31 +12654,16 @@ CREATE TABLE public.lfs_objects ( CONSTRAINT check_eecfc5717d CHECK ((file_store IS NOT NULL)) ); - --- --- Name: lfs_objects_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.lfs_objects_id_seq +CREATE SEQUENCE lfs_objects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE lfs_objects_id_seq OWNED BY lfs_objects.id; --- --- Name: lfs_objects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.lfs_objects_id_seq OWNED BY public.lfs_objects.id; - - --- --- Name: lfs_objects_projects; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.lfs_objects_projects ( +CREATE TABLE lfs_objects_projects ( id integer NOT NULL, lfs_object_id integer NOT NULL, project_id integer NOT NULL, @@ -19525,31 +12672,16 @@ CREATE TABLE public.lfs_objects_projects ( repository_type smallint ); - --- --- Name: lfs_objects_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.lfs_objects_projects_id_seq +CREATE SEQUENCE lfs_objects_projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE lfs_objects_projects_id_seq OWNED BY lfs_objects_projects.id; --- --- Name: lfs_objects_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.lfs_objects_projects_id_seq OWNED BY public.lfs_objects_projects.id; - - --- --- Name: licenses; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.licenses ( +CREATE TABLE licenses ( id integer NOT NULL, data text NOT NULL, created_at timestamp without time zone, @@ -19558,31 +12690,16 @@ CREATE TABLE public.licenses ( last_synced_at timestamp with time zone ); - --- --- Name: licenses_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.licenses_id_seq +CREATE SEQUENCE licenses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE licenses_id_seq OWNED BY licenses.id; --- --- Name: licenses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.licenses_id_seq OWNED BY public.licenses.id; - - --- --- Name: list_user_preferences; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.list_user_preferences ( +CREATE TABLE list_user_preferences ( id bigint NOT NULL, user_id bigint NOT NULL, list_id bigint NOT NULL, @@ -19591,31 +12708,16 @@ CREATE TABLE public.list_user_preferences ( collapsed boolean ); - --- --- Name: list_user_preferences_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.list_user_preferences_id_seq +CREATE SEQUENCE list_user_preferences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE list_user_preferences_id_seq OWNED BY list_user_preferences.id; --- --- Name: list_user_preferences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.list_user_preferences_id_seq OWNED BY public.list_user_preferences.id; - - --- --- Name: lists; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.lists ( +CREATE TABLE lists ( id integer NOT NULL, board_id integer NOT NULL, label_id integer, @@ -19631,50 +12733,25 @@ CREATE TABLE public.lists ( iteration_id bigint ); - --- --- Name: lists_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.lists_id_seq +CREATE SEQUENCE lists_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE lists_id_seq OWNED BY lists.id; --- --- Name: lists_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.lists_id_seq OWNED BY public.lists.id; - - --- --- Name: loose_foreign_keys_deleted_records_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.loose_foreign_keys_deleted_records_id_seq +CREATE SEQUENCE loose_foreign_keys_deleted_records_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE loose_foreign_keys_deleted_records_id_seq OWNED BY loose_foreign_keys_deleted_records.id; --- --- Name: loose_foreign_keys_deleted_records_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.loose_foreign_keys_deleted_records_id_seq OWNED BY public.loose_foreign_keys_deleted_records.id; - - --- --- Name: member_approvals; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.member_approvals ( +CREATE TABLE member_approvals ( id bigint NOT NULL, reviewed_at timestamp with time zone, created_at timestamp with time zone NOT NULL, @@ -19691,31 +12768,16 @@ CREATE TABLE public.member_approvals ( metadata jsonb DEFAULT '{}'::jsonb NOT NULL ); - --- --- Name: member_approvals_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.member_approvals_id_seq +CREATE SEQUENCE member_approvals_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE member_approvals_id_seq OWNED BY member_approvals.id; --- --- Name: member_approvals_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.member_approvals_id_seq OWNED BY public.member_approvals.id; - - --- --- Name: member_roles; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.member_roles ( +CREATE TABLE member_roles ( id bigint NOT NULL, namespace_id bigint, created_at timestamp with time zone NOT NULL, @@ -19729,31 +12791,16 @@ CREATE TABLE public.member_roles ( CONSTRAINT check_9907916995 CHECK ((char_length(name) <= 255)) ); - --- --- Name: member_roles_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.member_roles_id_seq +CREATE SEQUENCE member_roles_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE member_roles_id_seq OWNED BY member_roles.id; --- --- Name: member_roles_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.member_roles_id_seq OWNED BY public.member_roles.id; - - --- --- Name: members; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.members ( +CREATE TABLE members ( id integer NOT NULL, access_level integer NOT NULL, source_id integer NOT NULL, @@ -19781,31 +12828,16 @@ CREATE TABLE public.members ( CONSTRAINT check_508774aac0 CHECK ((member_namespace_id IS NOT NULL)) ); - --- --- Name: members_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.members_id_seq +CREATE SEQUENCE members_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE members_id_seq OWNED BY members.id; --- --- Name: members_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.members_id_seq OWNED BY public.members.id; - - --- --- Name: merge_request_assignees; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_request_assignees ( +CREATE TABLE merge_request_assignees ( id bigint NOT NULL, user_id integer NOT NULL, merge_request_id integer NOT NULL, @@ -19813,31 +12845,16 @@ CREATE TABLE public.merge_request_assignees ( project_id bigint ); - --- --- Name: merge_request_assignees_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.merge_request_assignees_id_seq +CREATE SEQUENCE merge_request_assignees_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE merge_request_assignees_id_seq OWNED BY merge_request_assignees.id; --- --- Name: merge_request_assignees_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.merge_request_assignees_id_seq OWNED BY public.merge_request_assignees.id; - - --- --- Name: merge_request_assignment_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_request_assignment_events ( +CREATE TABLE merge_request_assignment_events ( id bigint NOT NULL, user_id bigint, merge_request_id bigint NOT NULL, @@ -19846,31 +12863,16 @@ CREATE TABLE public.merge_request_assignment_events ( project_id bigint ); - --- --- Name: merge_request_assignment_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.merge_request_assignment_events_id_seq +CREATE SEQUENCE merge_request_assignment_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE merge_request_assignment_events_id_seq OWNED BY merge_request_assignment_events.id; --- --- Name: merge_request_assignment_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.merge_request_assignment_events_id_seq OWNED BY public.merge_request_assignment_events.id; - - --- --- Name: merge_request_blocks; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_request_blocks ( +CREATE TABLE merge_request_blocks ( id bigint NOT NULL, blocking_merge_request_id integer NOT NULL, blocked_merge_request_id integer NOT NULL, @@ -19879,31 +12881,16 @@ CREATE TABLE public.merge_request_blocks ( project_id bigint ); - --- --- Name: merge_request_blocks_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.merge_request_blocks_id_seq +CREATE SEQUENCE merge_request_blocks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE merge_request_blocks_id_seq OWNED BY merge_request_blocks.id; --- --- Name: merge_request_blocks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.merge_request_blocks_id_seq OWNED BY public.merge_request_blocks.id; - - --- --- Name: merge_request_cleanup_schedules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_request_cleanup_schedules ( +CREATE TABLE merge_request_cleanup_schedules ( merge_request_id bigint NOT NULL, scheduled_at timestamp with time zone NOT NULL, completed_at timestamp with time zone, @@ -19913,31 +12900,16 @@ CREATE TABLE public.merge_request_cleanup_schedules ( failed_count integer DEFAULT 0 NOT NULL ); - --- --- Name: merge_request_cleanup_schedules_merge_request_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.merge_request_cleanup_schedules_merge_request_id_seq +CREATE SEQUENCE merge_request_cleanup_schedules_merge_request_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE merge_request_cleanup_schedules_merge_request_id_seq OWNED BY merge_request_cleanup_schedules.merge_request_id; --- --- Name: merge_request_cleanup_schedules_merge_request_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.merge_request_cleanup_schedules_merge_request_id_seq OWNED BY public.merge_request_cleanup_schedules.merge_request_id; - - --- --- Name: merge_request_context_commit_diff_files; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_request_context_commit_diff_files ( +CREATE TABLE merge_request_context_commit_diff_files ( sha bytea NOT NULL, relative_order integer NOT NULL, new_file boolean NOT NULL, @@ -19955,12 +12927,7 @@ CREATE TABLE public.merge_request_context_commit_diff_files ( encoded_file_path boolean DEFAULT false NOT NULL ); - --- --- Name: merge_request_context_commits; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_request_context_commits ( +CREATE TABLE merge_request_context_commits ( id bigint NOT NULL, authored_date timestamp with time zone, committed_date timestamp with time zone, @@ -19977,31 +12944,16 @@ CREATE TABLE public.merge_request_context_commits ( CONSTRAINT check_1dc6b5f2ac CHECK ((merge_request_id IS NOT NULL)) ); - --- --- Name: merge_request_context_commits_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.merge_request_context_commits_id_seq +CREATE SEQUENCE merge_request_context_commits_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE merge_request_context_commits_id_seq OWNED BY merge_request_context_commits.id; --- --- Name: merge_request_context_commits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.merge_request_context_commits_id_seq OWNED BY public.merge_request_context_commits.id; - - --- --- Name: merge_request_diff_commit_users; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_request_diff_commit_users ( +CREATE TABLE merge_request_diff_commit_users ( id bigint NOT NULL, name text, email text, @@ -20010,31 +12962,16 @@ CREATE TABLE public.merge_request_diff_commit_users ( CONSTRAINT merge_request_diff_commit_users_name_or_email_existence CHECK (((COALESCE(name, ''::text) <> ''::text) OR (COALESCE(email, ''::text) <> ''::text))) ); - --- --- Name: merge_request_diff_commit_users_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.merge_request_diff_commit_users_id_seq +CREATE SEQUENCE merge_request_diff_commit_users_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE merge_request_diff_commit_users_id_seq OWNED BY merge_request_diff_commit_users.id; --- --- Name: merge_request_diff_commit_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.merge_request_diff_commit_users_id_seq OWNED BY public.merge_request_diff_commit_users.id; - - --- --- Name: merge_request_diff_commits; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_request_diff_commits ( +CREATE TABLE merge_request_diff_commits ( authored_date timestamp without time zone, committed_date timestamp without time zone, merge_request_diff_id integer NOT NULL, @@ -20046,12 +12983,7 @@ CREATE TABLE public.merge_request_diff_commits ( committer_id bigint ); - --- --- Name: merge_request_diff_details; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_request_diff_details ( +CREATE TABLE merge_request_diff_details ( merge_request_diff_id bigint NOT NULL, verification_retry_at timestamp with time zone, verified_at timestamp with time zone, @@ -20063,31 +12995,16 @@ CREATE TABLE public.merge_request_diff_details ( CONSTRAINT check_81429e3622 CHECK ((char_length(verification_failure) <= 255)) ); - --- --- Name: merge_request_diff_details_merge_request_diff_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.merge_request_diff_details_merge_request_diff_id_seq +CREATE SEQUENCE merge_request_diff_details_merge_request_diff_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE merge_request_diff_details_merge_request_diff_id_seq OWNED BY merge_request_diff_details.merge_request_diff_id; --- --- Name: merge_request_diff_details_merge_request_diff_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.merge_request_diff_details_merge_request_diff_id_seq OWNED BY public.merge_request_diff_details.merge_request_diff_id; - - --- --- Name: merge_request_diff_files; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_request_diff_files ( +CREATE TABLE merge_request_diff_files ( merge_request_diff_id integer NOT NULL, relative_order integer NOT NULL, new_file boolean NOT NULL, @@ -20106,12 +13023,7 @@ CREATE TABLE public.merge_request_diff_files ( encoded_file_path boolean DEFAULT false NOT NULL ); - --- --- Name: merge_request_diffs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_request_diffs ( +CREATE TABLE merge_request_diffs ( id integer NOT NULL, state character varying, merge_request_id integer NOT NULL, @@ -20134,31 +13046,16 @@ CREATE TABLE public.merge_request_diffs ( CONSTRAINT check_93ee616ac9 CHECK ((external_diff_store IS NOT NULL)) ); - --- --- Name: merge_request_diffs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.merge_request_diffs_id_seq +CREATE SEQUENCE merge_request_diffs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE merge_request_diffs_id_seq OWNED BY merge_request_diffs.id; --- --- Name: merge_request_diffs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.merge_request_diffs_id_seq OWNED BY public.merge_request_diffs.id; - - --- --- Name: merge_request_metrics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_request_metrics ( +CREATE TABLE merge_request_metrics ( merge_request_id integer NOT NULL, latest_build_started_at timestamp without time zone, latest_build_finished_at timestamp without time zone, @@ -20187,31 +13084,16 @@ CREATE TABLE public.merge_request_metrics ( CONSTRAINT check_e03d0900bf CHECK ((target_project_id IS NOT NULL)) ); - --- --- Name: merge_request_metrics_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.merge_request_metrics_id_seq +CREATE SEQUENCE merge_request_metrics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE merge_request_metrics_id_seq OWNED BY merge_request_metrics.id; --- --- Name: merge_request_metrics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.merge_request_metrics_id_seq OWNED BY public.merge_request_metrics.id; - - --- --- Name: merge_request_predictions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_request_predictions ( +CREATE TABLE merge_request_predictions ( merge_request_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20219,31 +13101,16 @@ CREATE TABLE public.merge_request_predictions ( accepted_reviewers jsonb DEFAULT '{}'::jsonb NOT NULL ); - --- --- Name: merge_request_predictions_merge_request_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.merge_request_predictions_merge_request_id_seq +CREATE SEQUENCE merge_request_predictions_merge_request_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE merge_request_predictions_merge_request_id_seq OWNED BY merge_request_predictions.merge_request_id; --- --- Name: merge_request_predictions_merge_request_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.merge_request_predictions_merge_request_id_seq OWNED BY public.merge_request_predictions.merge_request_id; - - --- --- Name: merge_request_requested_changes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_request_requested_changes ( +CREATE TABLE merge_request_requested_changes ( id bigint NOT NULL, project_id bigint NOT NULL, user_id bigint NOT NULL, @@ -20252,31 +13119,16 @@ CREATE TABLE public.merge_request_requested_changes ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: merge_request_requested_changes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.merge_request_requested_changes_id_seq +CREATE SEQUENCE merge_request_requested_changes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE merge_request_requested_changes_id_seq OWNED BY merge_request_requested_changes.id; --- --- Name: merge_request_requested_changes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.merge_request_requested_changes_id_seq OWNED BY public.merge_request_requested_changes.id; - - --- --- Name: merge_request_reviewers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_request_reviewers ( +CREATE TABLE merge_request_reviewers ( id bigint NOT NULL, user_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -20285,31 +13137,16 @@ CREATE TABLE public.merge_request_reviewers ( project_id bigint ); - --- --- Name: merge_request_reviewers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.merge_request_reviewers_id_seq +CREATE SEQUENCE merge_request_reviewers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE merge_request_reviewers_id_seq OWNED BY merge_request_reviewers.id; --- --- Name: merge_request_reviewers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.merge_request_reviewers_id_seq OWNED BY public.merge_request_reviewers.id; - - --- --- Name: merge_request_user_mentions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_request_user_mentions ( +CREATE TABLE merge_request_user_mentions ( id bigint NOT NULL, merge_request_id integer NOT NULL, mentioned_users_ids integer[], @@ -20319,31 +13156,16 @@ CREATE TABLE public.merge_request_user_mentions ( project_id bigint ); - --- --- Name: merge_request_user_mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.merge_request_user_mentions_id_seq +CREATE SEQUENCE merge_request_user_mentions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE merge_request_user_mentions_id_seq OWNED BY merge_request_user_mentions.id; --- --- Name: merge_request_user_mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.merge_request_user_mentions_id_seq OWNED BY public.merge_request_user_mentions.id; - - --- --- Name: merge_requests; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_requests ( +CREATE TABLE merge_requests ( id integer NOT NULL, target_branch character varying NOT NULL, source_branch character varying NOT NULL, @@ -20394,12 +13216,7 @@ CREATE TABLE public.merge_requests ( CONSTRAINT check_970d272570 CHECK ((lock_version IS NOT NULL)) ); - --- --- Name: merge_requests_closing_issues; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_requests_closing_issues ( +CREATE TABLE merge_requests_closing_issues ( id integer NOT NULL, merge_request_id integer NOT NULL, issue_id integer NOT NULL, @@ -20409,31 +13226,16 @@ CREATE TABLE public.merge_requests_closing_issues ( project_id bigint ); - --- --- Name: merge_requests_closing_issues_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.merge_requests_closing_issues_id_seq +CREATE SEQUENCE merge_requests_closing_issues_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE merge_requests_closing_issues_id_seq OWNED BY merge_requests_closing_issues.id; --- --- Name: merge_requests_closing_issues_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.merge_requests_closing_issues_id_seq OWNED BY public.merge_requests_closing_issues.id; - - --- --- Name: merge_requests_compliance_violations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_requests_compliance_violations ( +CREATE TABLE merge_requests_compliance_violations ( id bigint NOT NULL, violating_user_id bigint NOT NULL, merge_request_id bigint NOT NULL, @@ -20445,50 +13247,25 @@ CREATE TABLE public.merge_requests_compliance_violations ( target_branch text ); - --- --- Name: merge_requests_compliance_violations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.merge_requests_compliance_violations_id_seq +CREATE SEQUENCE merge_requests_compliance_violations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE merge_requests_compliance_violations_id_seq OWNED BY merge_requests_compliance_violations.id; --- --- Name: merge_requests_compliance_violations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.merge_requests_compliance_violations_id_seq OWNED BY public.merge_requests_compliance_violations.id; - - --- --- Name: merge_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.merge_requests_id_seq +CREATE SEQUENCE merge_requests_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE merge_requests_id_seq OWNED BY merge_requests.id; --- --- Name: merge_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.merge_requests_id_seq OWNED BY public.merge_requests.id; - - --- --- Name: merge_trains; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.merge_trains ( +CREATE TABLE merge_trains ( id bigint NOT NULL, merge_request_id integer NOT NULL, user_id integer NOT NULL, @@ -20502,31 +13279,16 @@ CREATE TABLE public.merge_trains ( pipeline_id bigint ); - --- --- Name: merge_trains_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.merge_trains_id_seq +CREATE SEQUENCE merge_trains_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE merge_trains_id_seq OWNED BY merge_trains.id; --- --- Name: merge_trains_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.merge_trains_id_seq OWNED BY public.merge_trains.id; - - --- --- Name: metrics_dashboard_annotations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.metrics_dashboard_annotations ( +CREATE TABLE metrics_dashboard_annotations ( id bigint NOT NULL, starting_at timestamp with time zone NOT NULL, ending_at timestamp with time zone, @@ -20537,31 +13299,16 @@ CREATE TABLE public.metrics_dashboard_annotations ( description text NOT NULL ); - --- --- Name: metrics_dashboard_annotations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.metrics_dashboard_annotations_id_seq +CREATE SEQUENCE metrics_dashboard_annotations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE metrics_dashboard_annotations_id_seq OWNED BY metrics_dashboard_annotations.id; --- --- Name: metrics_dashboard_annotations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.metrics_dashboard_annotations_id_seq OWNED BY public.metrics_dashboard_annotations.id; - - --- --- Name: metrics_users_starred_dashboards; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.metrics_users_starred_dashboards ( +CREATE TABLE metrics_users_starred_dashboards ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20571,41 +13318,21 @@ CREATE TABLE public.metrics_users_starred_dashboards ( CONSTRAINT check_79a84a0f57 CHECK ((char_length(dashboard_path) <= 255)) ); - --- --- Name: metrics_users_starred_dashboards_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.metrics_users_starred_dashboards_id_seq +CREATE SEQUENCE metrics_users_starred_dashboards_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE metrics_users_starred_dashboards_id_seq OWNED BY metrics_users_starred_dashboards.id; --- --- Name: metrics_users_starred_dashboards_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.metrics_users_starred_dashboards_id_seq OWNED BY public.metrics_users_starred_dashboards.id; - - --- --- Name: milestone_releases; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.milestone_releases ( +CREATE TABLE milestone_releases ( milestone_id bigint NOT NULL, release_id bigint NOT NULL ); - --- --- Name: milestones; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.milestones ( +CREATE TABLE milestones ( id integer NOT NULL, title character varying NOT NULL, project_id integer, @@ -20623,31 +13350,16 @@ CREATE TABLE public.milestones ( lock_version integer DEFAULT 0 NOT NULL ); - --- --- Name: milestones_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.milestones_id_seq +CREATE SEQUENCE milestones_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE milestones_id_seq OWNED BY milestones.id; --- --- Name: milestones_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.milestones_id_seq OWNED BY public.milestones.id; - - --- --- Name: ml_candidate_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ml_candidate_metadata ( +CREATE TABLE ml_candidate_metadata ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20659,31 +13371,16 @@ CREATE TABLE public.ml_candidate_metadata ( CONSTRAINT check_9453f4a8e9 CHECK ((char_length(value) <= 5000)) ); - --- --- Name: ml_candidate_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ml_candidate_metadata_id_seq +CREATE SEQUENCE ml_candidate_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ml_candidate_metadata_id_seq OWNED BY ml_candidate_metadata.id; --- --- Name: ml_candidate_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ml_candidate_metadata_id_seq OWNED BY public.ml_candidate_metadata.id; - - --- --- Name: ml_candidate_metrics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ml_candidate_metrics ( +CREATE TABLE ml_candidate_metrics ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20697,31 +13394,16 @@ CREATE TABLE public.ml_candidate_metrics ( CONSTRAINT check_d7dfd3de26 CHECK ((candidate_id IS NOT NULL)) ); - --- --- Name: ml_candidate_metrics_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ml_candidate_metrics_id_seq +CREATE SEQUENCE ml_candidate_metrics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ml_candidate_metrics_id_seq OWNED BY ml_candidate_metrics.id; --- --- Name: ml_candidate_metrics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ml_candidate_metrics_id_seq OWNED BY public.ml_candidate_metrics.id; - - --- --- Name: ml_candidate_params; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ml_candidate_params ( +CREATE TABLE ml_candidate_params ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20733,31 +13415,16 @@ CREATE TABLE public.ml_candidate_params ( CONSTRAINT check_7a0505ca91 CHECK ((candidate_id IS NOT NULL)) ); - --- --- Name: ml_candidate_params_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ml_candidate_params_id_seq +CREATE SEQUENCE ml_candidate_params_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ml_candidate_params_id_seq OWNED BY ml_candidate_params.id; --- --- Name: ml_candidate_params_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ml_candidate_params_id_seq OWNED BY public.ml_candidate_params.id; - - --- --- Name: ml_candidates; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ml_candidates ( +CREATE TABLE ml_candidates ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20778,31 +13445,16 @@ CREATE TABLE public.ml_candidates ( CONSTRAINT check_cd160587d4 CHECK ((eid IS NOT NULL)) ); - --- --- Name: ml_candidates_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ml_candidates_id_seq +CREATE SEQUENCE ml_candidates_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ml_candidates_id_seq OWNED BY ml_candidates.id; --- --- Name: ml_candidates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ml_candidates_id_seq OWNED BY public.ml_candidates.id; - - --- --- Name: ml_experiment_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ml_experiment_metadata ( +CREATE TABLE ml_experiment_metadata ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20814,31 +13466,16 @@ CREATE TABLE public.ml_experiment_metadata ( CONSTRAINT check_a91c633d68 CHECK ((char_length(value) <= 5000)) ); - --- --- Name: ml_experiment_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ml_experiment_metadata_id_seq +CREATE SEQUENCE ml_experiment_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ml_experiment_metadata_id_seq OWNED BY ml_experiment_metadata.id; --- --- Name: ml_experiment_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ml_experiment_metadata_id_seq OWNED BY public.ml_experiment_metadata.id; - - --- --- Name: ml_experiments; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ml_experiments ( +CREATE TABLE ml_experiments ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20851,31 +13488,16 @@ CREATE TABLE public.ml_experiments ( CONSTRAINT check_ee07a0be2c CHECK ((char_length(name) <= 255)) ); - --- --- Name: ml_experiments_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ml_experiments_id_seq +CREATE SEQUENCE ml_experiments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ml_experiments_id_seq OWNED BY ml_experiments.id; --- --- Name: ml_experiments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ml_experiments_id_seq OWNED BY public.ml_experiments.id; - - --- --- Name: ml_model_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ml_model_metadata ( +CREATE TABLE ml_model_metadata ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20887,31 +13509,16 @@ CREATE TABLE public.ml_model_metadata ( CONSTRAINT check_36240c80a7 CHECK ((char_length(name) <= 255)) ); - --- --- Name: ml_model_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ml_model_metadata_id_seq +CREATE SEQUENCE ml_model_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ml_model_metadata_id_seq OWNED BY ml_model_metadata.id; --- --- Name: ml_model_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ml_model_metadata_id_seq OWNED BY public.ml_model_metadata.id; - - --- --- Name: ml_model_version_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ml_model_version_metadata ( +CREATE TABLE ml_model_version_metadata ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20923,31 +13530,16 @@ CREATE TABLE public.ml_model_version_metadata ( CONSTRAINT check_21c444e039 CHECK ((char_length(value) <= 5000)) ); - --- --- Name: ml_model_version_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ml_model_version_metadata_id_seq +CREATE SEQUENCE ml_model_version_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ml_model_version_metadata_id_seq OWNED BY ml_model_version_metadata.id; --- --- Name: ml_model_version_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ml_model_version_metadata_id_seq OWNED BY public.ml_model_version_metadata.id; - - --- --- Name: ml_model_versions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ml_model_versions ( +CREATE TABLE ml_model_versions ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -20968,31 +13560,16 @@ CREATE TABLE public.ml_model_versions ( CONSTRAINT check_caff7d000b CHECK ((char_length(description) <= 500)) ); - --- --- Name: ml_model_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ml_model_versions_id_seq +CREATE SEQUENCE ml_model_versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ml_model_versions_id_seq OWNED BY ml_model_versions.id; --- --- Name: ml_model_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ml_model_versions_id_seq OWNED BY public.ml_model_versions.id; - - --- --- Name: ml_models; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ml_models ( +CREATE TABLE ml_models ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -21007,31 +13584,16 @@ CREATE TABLE public.ml_models ( CONSTRAINT check_d0c47d63b5 CHECK ((char_length(description) <= 5000)) ); - --- --- Name: ml_models_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ml_models_id_seq +CREATE SEQUENCE ml_models_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ml_models_id_seq OWNED BY ml_models.id; --- --- Name: ml_models_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ml_models_id_seq OWNED BY public.ml_models.id; - - --- --- Name: namespace_admin_notes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.namespace_admin_notes ( +CREATE TABLE namespace_admin_notes ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -21040,40 +13602,20 @@ CREATE TABLE public.namespace_admin_notes ( CONSTRAINT check_e9d2e71b5d CHECK ((char_length(note) <= 1000)) ); - --- --- Name: namespace_admin_notes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.namespace_admin_notes_id_seq +CREATE SEQUENCE namespace_admin_notes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE namespace_admin_notes_id_seq OWNED BY namespace_admin_notes.id; --- --- Name: namespace_admin_notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.namespace_admin_notes_id_seq OWNED BY public.namespace_admin_notes.id; - - --- --- Name: namespace_aggregation_schedules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.namespace_aggregation_schedules ( +CREATE TABLE namespace_aggregation_schedules ( namespace_id integer NOT NULL ); - --- --- Name: namespace_bans; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.namespace_bans ( +CREATE TABLE namespace_bans ( id bigint NOT NULL, namespace_id bigint NOT NULL, user_id bigint NOT NULL, @@ -21081,41 +13623,21 @@ CREATE TABLE public.namespace_bans ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: namespace_bans_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.namespace_bans_id_seq +CREATE SEQUENCE namespace_bans_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE namespace_bans_id_seq OWNED BY namespace_bans.id; --- --- Name: namespace_bans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.namespace_bans_id_seq OWNED BY public.namespace_bans.id; - - --- --- Name: namespace_ci_cd_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.namespace_ci_cd_settings ( +CREATE TABLE namespace_ci_cd_settings ( namespace_id bigint NOT NULL, allow_stale_runner_pruning boolean DEFAULT false NOT NULL ); - --- --- Name: namespace_commit_emails; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.namespace_commit_emails ( +CREATE TABLE namespace_commit_emails ( id bigint NOT NULL, user_id bigint NOT NULL, namespace_id bigint NOT NULL, @@ -21124,31 +13646,16 @@ CREATE TABLE public.namespace_commit_emails ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: namespace_commit_emails_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.namespace_commit_emails_id_seq +CREATE SEQUENCE namespace_commit_emails_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE namespace_commit_emails_id_seq OWNED BY namespace_commit_emails.id; --- --- Name: namespace_commit_emails_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.namespace_commit_emails_id_seq OWNED BY public.namespace_commit_emails.id; - - --- --- Name: namespace_details; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.namespace_details ( +CREATE TABLE namespace_details ( namespace_id bigint NOT NULL, created_at timestamp with time zone, updated_at timestamp with time zone, @@ -21159,42 +13666,22 @@ CREATE TABLE public.namespace_details ( pending_delete boolean DEFAULT false NOT NULL ); - --- --- Name: namespace_import_users; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.namespace_import_users ( +CREATE TABLE namespace_import_users ( id bigint NOT NULL, user_id bigint NOT NULL, namespace_id bigint NOT NULL ); - --- --- Name: namespace_import_users_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.namespace_import_users_id_seq +CREATE SEQUENCE namespace_import_users_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE namespace_import_users_id_seq OWNED BY namespace_import_users.id; --- --- Name: namespace_import_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.namespace_import_users_id_seq OWNED BY public.namespace_import_users.id; - - --- --- Name: namespace_ldap_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.namespace_ldap_settings ( +CREATE TABLE namespace_ldap_settings ( namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -21206,12 +13693,7 @@ CREATE TABLE public.namespace_ldap_settings ( CONSTRAINT check_51a03d26b6 CHECK ((char_length(sync_error) <= 255)) ); - --- --- Name: namespace_limits; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.namespace_limits ( +CREATE TABLE namespace_limits ( additional_purchased_storage_size bigint DEFAULT 0 NOT NULL, additional_purchased_storage_ends_on date, namespace_id integer NOT NULL, @@ -21223,12 +13705,7 @@ CREATE TABLE public.namespace_limits ( max_number_of_vulnerabilities_per_project integer ); - --- --- Name: namespace_package_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.namespace_package_settings ( +CREATE TABLE namespace_package_settings ( namespace_id bigint NOT NULL, maven_duplicates_allowed boolean DEFAULT true NOT NULL, maven_duplicate_exception_regex text DEFAULT ''::text NOT NULL, @@ -21251,12 +13728,7 @@ CREATE TABLE public.namespace_package_settings ( CONSTRAINT check_f10503f1ad CHECK ((char_length(terraform_module_duplicate_exception_regex) <= 255)) ); - --- --- Name: namespace_root_storage_statistics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.namespace_root_storage_statistics ( +CREATE TABLE namespace_root_storage_statistics ( namespace_id integer NOT NULL, updated_at timestamp with time zone NOT NULL, repository_size bigint DEFAULT 0 NOT NULL, @@ -21277,12 +13749,7 @@ CREATE TABLE public.namespace_root_storage_statistics ( private_forks_storage_size bigint DEFAULT 0 NOT NULL ); - --- --- Name: namespace_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.namespace_settings ( +CREATE TABLE namespace_settings ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, namespace_id integer NOT NULL, @@ -21339,12 +13806,7 @@ CREATE TABLE public.namespace_settings ( CONSTRAINT namespace_settings_unique_project_download_limit_allowlist_size CHECK ((cardinality(unique_project_download_limit_allowlist) <= 100)) ); - --- --- Name: namespace_statistics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.namespace_statistics ( +CREATE TABLE namespace_statistics ( id integer NOT NULL, namespace_id integer NOT NULL, shared_runners_seconds integer DEFAULT 0 NOT NULL, @@ -21354,50 +13816,25 @@ CREATE TABLE public.namespace_statistics ( dependency_proxy_size bigint DEFAULT 0 NOT NULL ); - --- --- Name: namespace_statistics_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.namespace_statistics_id_seq +CREATE SEQUENCE namespace_statistics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE namespace_statistics_id_seq OWNED BY namespace_statistics.id; --- --- Name: namespace_statistics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.namespace_statistics_id_seq OWNED BY public.namespace_statistics.id; - - --- --- Name: namespaces_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.namespaces_id_seq +CREATE SEQUENCE namespaces_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE namespaces_id_seq OWNED BY namespaces.id; --- --- Name: namespaces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.namespaces_id_seq OWNED BY public.namespaces.id; - - --- --- Name: namespaces_storage_limit_exclusions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.namespaces_storage_limit_exclusions ( +CREATE TABLE namespaces_storage_limit_exclusions ( id bigint NOT NULL, namespace_id bigint NOT NULL, reason text NOT NULL, @@ -21406,60 +13843,30 @@ CREATE TABLE public.namespaces_storage_limit_exclusions ( CONSTRAINT check_81640b2ee2 CHECK ((char_length(reason) <= 255)) ); - --- --- Name: namespaces_storage_limit_exclusions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.namespaces_storage_limit_exclusions_id_seq +CREATE SEQUENCE namespaces_storage_limit_exclusions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE namespaces_storage_limit_exclusions_id_seq OWNED BY namespaces_storage_limit_exclusions.id; --- --- Name: namespaces_storage_limit_exclusions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.namespaces_storage_limit_exclusions_id_seq OWNED BY public.namespaces_storage_limit_exclusions.id; - - --- --- Name: namespaces_sync_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.namespaces_sync_events ( +CREATE TABLE namespaces_sync_events ( id bigint NOT NULL, namespace_id bigint NOT NULL ); - --- --- Name: namespaces_sync_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.namespaces_sync_events_id_seq +CREATE SEQUENCE namespaces_sync_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE namespaces_sync_events_id_seq OWNED BY namespaces_sync_events.id; --- --- Name: namespaces_sync_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.namespaces_sync_events_id_seq OWNED BY public.namespaces_sync_events.id; - - --- --- Name: note_diff_files; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.note_diff_files ( +CREATE TABLE note_diff_files ( id integer NOT NULL, diff text NOT NULL, new_file boolean NOT NULL, @@ -21472,31 +13879,16 @@ CREATE TABLE public.note_diff_files ( diff_note_id bigint NOT NULL ); - --- --- Name: note_diff_files_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.note_diff_files_id_seq +CREATE SEQUENCE note_diff_files_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE note_diff_files_id_seq OWNED BY note_diff_files.id; --- --- Name: note_diff_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.note_diff_files_id_seq OWNED BY public.note_diff_files.id; - - --- --- Name: note_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.note_metadata ( +CREATE TABLE note_metadata ( note_id bigint NOT NULL, email_participant text, created_at timestamp with time zone, @@ -21504,31 +13896,16 @@ CREATE TABLE public.note_metadata ( CONSTRAINT check_40aa5ff1c6 CHECK ((char_length(email_participant) <= 255)) ); - --- --- Name: note_metadata_note_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.note_metadata_note_id_seq +CREATE SEQUENCE note_metadata_note_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE note_metadata_note_id_seq OWNED BY note_metadata.note_id; --- --- Name: note_metadata_note_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.note_metadata_note_id_seq OWNED BY public.note_metadata.note_id; - - --- --- Name: notes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.notes ( +CREATE TABLE notes ( note text, noteable_type character varying, author_id integer, @@ -21562,31 +13939,16 @@ CREATE TABLE public.notes ( CONSTRAINT check_1244cbd7d0 CHECK ((noteable_type IS NOT NULL)) ); - --- --- Name: notes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.notes_id_seq +CREATE SEQUENCE notes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE notes_id_seq OWNED BY notes.id; --- --- Name: notes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.notes_id_seq OWNED BY public.notes.id; - - --- --- Name: notification_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.notification_settings ( +CREATE TABLE notification_settings ( id integer NOT NULL, user_id integer NOT NULL, source_id integer, @@ -21618,31 +13980,16 @@ CREATE TABLE public.notification_settings ( approver boolean DEFAULT false NOT NULL ); - --- --- Name: notification_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.notification_settings_id_seq +CREATE SEQUENCE notification_settings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE notification_settings_id_seq OWNED BY notification_settings.id; --- --- Name: notification_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.notification_settings_id_seq OWNED BY public.notification_settings.id; - - --- --- Name: oauth_access_grants; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.oauth_access_grants ( +CREATE TABLE oauth_access_grants ( id integer NOT NULL, resource_owner_id integer NOT NULL, application_id integer NOT NULL, @@ -21658,31 +14005,16 @@ CREATE TABLE public.oauth_access_grants ( CONSTRAINT oauth_access_grants_code_challenge_method CHECK ((char_length(code_challenge_method) <= 5)) ); - --- --- Name: oauth_access_grants_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.oauth_access_grants_id_seq +CREATE SEQUENCE oauth_access_grants_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE oauth_access_grants_id_seq OWNED BY oauth_access_grants.id; --- --- Name: oauth_access_grants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.oauth_access_grants_id_seq OWNED BY public.oauth_access_grants.id; - - --- --- Name: oauth_access_tokens; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.oauth_access_tokens ( +CREATE TABLE oauth_access_tokens ( id integer NOT NULL, resource_owner_id integer, application_id integer, @@ -21695,31 +14027,16 @@ CREATE TABLE public.oauth_access_tokens ( CONSTRAINT check_70f294ef54 CHECK ((expires_in IS NOT NULL)) ); - --- --- Name: oauth_access_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.oauth_access_tokens_id_seq +CREATE SEQUENCE oauth_access_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE oauth_access_tokens_id_seq OWNED BY oauth_access_tokens.id; --- --- Name: oauth_access_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.oauth_access_tokens_id_seq OWNED BY public.oauth_access_tokens.id; - - --- --- Name: oauth_applications; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.oauth_applications ( +CREATE TABLE oauth_applications ( id integer NOT NULL, name character varying NOT NULL, uid character varying NOT NULL, @@ -21735,31 +14052,16 @@ CREATE TABLE public.oauth_applications ( expire_access_tokens boolean DEFAULT false NOT NULL ); - --- --- Name: oauth_applications_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.oauth_applications_id_seq +CREATE SEQUENCE oauth_applications_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE oauth_applications_id_seq OWNED BY oauth_applications.id; --- --- Name: oauth_applications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.oauth_applications_id_seq OWNED BY public.oauth_applications.id; - - --- --- Name: oauth_device_grants; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.oauth_device_grants ( +CREATE TABLE oauth_device_grants ( id bigint NOT NULL, resource_owner_id bigint, application_id bigint NOT NULL, @@ -21774,61 +14076,31 @@ CREATE TABLE public.oauth_device_grants ( CONSTRAINT check_b36370c6df CHECK ((char_length(user_code) <= 255)) ); - --- --- Name: oauth_device_grants_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.oauth_device_grants_id_seq +CREATE SEQUENCE oauth_device_grants_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE oauth_device_grants_id_seq OWNED BY oauth_device_grants.id; --- --- Name: oauth_device_grants_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.oauth_device_grants_id_seq OWNED BY public.oauth_device_grants.id; - - --- --- Name: oauth_openid_requests; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.oauth_openid_requests ( +CREATE TABLE oauth_openid_requests ( id integer NOT NULL, access_grant_id integer NOT NULL, nonce character varying NOT NULL ); - --- --- Name: oauth_openid_requests_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.oauth_openid_requests_id_seq +CREATE SEQUENCE oauth_openid_requests_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE oauth_openid_requests_id_seq OWNED BY oauth_openid_requests.id; --- --- Name: oauth_openid_requests_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.oauth_openid_requests_id_seq OWNED BY public.oauth_openid_requests.id; - - --- --- Name: observability_logs_issues_connections; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.observability_logs_issues_connections ( +CREATE TABLE observability_logs_issues_connections ( id bigint NOT NULL, issue_id bigint NOT NULL, project_id bigint NOT NULL, @@ -21844,31 +14116,16 @@ CREATE TABLE public.observability_logs_issues_connections ( CONSTRAINT check_d86a20d56b CHECK ((char_length(service_name) <= 500)) ); - --- --- Name: observability_logs_issues_connections_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.observability_logs_issues_connections_id_seq +CREATE SEQUENCE observability_logs_issues_connections_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE observability_logs_issues_connections_id_seq OWNED BY observability_logs_issues_connections.id; --- --- Name: observability_logs_issues_connections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.observability_logs_issues_connections_id_seq OWNED BY public.observability_logs_issues_connections.id; - - --- --- Name: observability_metrics_issues_connections; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.observability_metrics_issues_connections ( +CREATE TABLE observability_metrics_issues_connections ( id bigint NOT NULL, issue_id bigint NOT NULL, namespace_id bigint NOT NULL, @@ -21880,31 +14137,16 @@ CREATE TABLE public.observability_metrics_issues_connections ( CONSTRAINT check_3c743c1262 CHECK ((char_length(metric_name) <= 500)) ); - --- --- Name: observability_metrics_issues_connections_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.observability_metrics_issues_connections_id_seq +CREATE SEQUENCE observability_metrics_issues_connections_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE observability_metrics_issues_connections_id_seq OWNED BY observability_metrics_issues_connections.id; --- --- Name: observability_metrics_issues_connections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.observability_metrics_issues_connections_id_seq OWNED BY public.observability_metrics_issues_connections.id; - - --- --- Name: observability_traces_issues_connections; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.observability_traces_issues_connections ( +CREATE TABLE observability_traces_issues_connections ( id bigint NOT NULL, issue_id bigint NOT NULL, project_id bigint NOT NULL, @@ -21914,31 +14156,16 @@ CREATE TABLE public.observability_traces_issues_connections ( CONSTRAINT check_5b51f9ea15 CHECK ((char_length(trace_identifier) <= 128)) ); - --- --- Name: observability_traces_issues_connections_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.observability_traces_issues_connections_id_seq +CREATE SEQUENCE observability_traces_issues_connections_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE observability_traces_issues_connections_id_seq OWNED BY observability_traces_issues_connections.id; --- --- Name: observability_traces_issues_connections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.observability_traces_issues_connections_id_seq OWNED BY public.observability_traces_issues_connections.id; - - --- --- Name: onboarding_progresses; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.onboarding_progresses ( +CREATE TABLE onboarding_progresses ( id bigint NOT NULL, namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -21958,31 +14185,16 @@ CREATE TABLE public.onboarding_progresses ( ended_at timestamp with time zone ); - --- --- Name: onboarding_progresses_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.onboarding_progresses_id_seq +CREATE SEQUENCE onboarding_progresses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE onboarding_progresses_id_seq OWNED BY onboarding_progresses.id; --- --- Name: onboarding_progresses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.onboarding_progresses_id_seq OWNED BY public.onboarding_progresses.id; - - --- --- Name: operations_feature_flag_scopes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.operations_feature_flag_scopes ( +CREATE TABLE operations_feature_flag_scopes ( id bigint NOT NULL, feature_flag_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -21992,31 +14204,16 @@ CREATE TABLE public.operations_feature_flag_scopes ( strategies jsonb DEFAULT '[{"name": "default", "parameters": {}}]'::jsonb NOT NULL ); - --- --- Name: operations_feature_flag_scopes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.operations_feature_flag_scopes_id_seq +CREATE SEQUENCE operations_feature_flag_scopes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE operations_feature_flag_scopes_id_seq OWNED BY operations_feature_flag_scopes.id; --- --- Name: operations_feature_flag_scopes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.operations_feature_flag_scopes_id_seq OWNED BY public.operations_feature_flag_scopes.id; - - --- --- Name: operations_feature_flags; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.operations_feature_flags ( +CREATE TABLE operations_feature_flags ( id bigint NOT NULL, project_id integer NOT NULL, active boolean NOT NULL, @@ -22028,123 +14225,63 @@ CREATE TABLE public.operations_feature_flags ( version smallint DEFAULT 1 NOT NULL ); - --- --- Name: operations_feature_flags_clients; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.operations_feature_flags_clients ( +CREATE TABLE operations_feature_flags_clients ( id bigint NOT NULL, project_id integer NOT NULL, token_encrypted character varying, last_feature_flag_updated_at timestamp with time zone ); - --- --- Name: operations_feature_flags_clients_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.operations_feature_flags_clients_id_seq +CREATE SEQUENCE operations_feature_flags_clients_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE operations_feature_flags_clients_id_seq OWNED BY operations_feature_flags_clients.id; --- --- Name: operations_feature_flags_clients_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.operations_feature_flags_clients_id_seq OWNED BY public.operations_feature_flags_clients.id; - - --- --- Name: operations_feature_flags_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.operations_feature_flags_id_seq +CREATE SEQUENCE operations_feature_flags_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE operations_feature_flags_id_seq OWNED BY operations_feature_flags.id; --- --- Name: operations_feature_flags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.operations_feature_flags_id_seq OWNED BY public.operations_feature_flags.id; - - --- --- Name: operations_feature_flags_issues; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.operations_feature_flags_issues ( +CREATE TABLE operations_feature_flags_issues ( id bigint NOT NULL, feature_flag_id bigint NOT NULL, issue_id bigint NOT NULL, project_id bigint ); - --- --- Name: operations_feature_flags_issues_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.operations_feature_flags_issues_id_seq +CREATE SEQUENCE operations_feature_flags_issues_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE operations_feature_flags_issues_id_seq OWNED BY operations_feature_flags_issues.id; --- --- Name: operations_feature_flags_issues_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.operations_feature_flags_issues_id_seq OWNED BY public.operations_feature_flags_issues.id; - - --- --- Name: operations_scopes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.operations_scopes ( +CREATE TABLE operations_scopes ( id bigint NOT NULL, strategy_id bigint NOT NULL, environment_scope character varying(255) NOT NULL ); - --- --- Name: operations_scopes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.operations_scopes_id_seq +CREATE SEQUENCE operations_scopes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE operations_scopes_id_seq OWNED BY operations_scopes.id; --- --- Name: operations_scopes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.operations_scopes_id_seq OWNED BY public.operations_scopes.id; - - --- --- Name: operations_strategies; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.operations_strategies ( +CREATE TABLE operations_strategies ( id bigint NOT NULL, feature_flag_id bigint NOT NULL, name character varying(255) NOT NULL, @@ -22152,62 +14289,32 @@ CREATE TABLE public.operations_strategies ( project_id bigint ); - --- --- Name: operations_strategies_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.operations_strategies_id_seq +CREATE SEQUENCE operations_strategies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE operations_strategies_id_seq OWNED BY operations_strategies.id; --- --- Name: operations_strategies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.operations_strategies_id_seq OWNED BY public.operations_strategies.id; - - --- --- Name: operations_strategies_user_lists; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.operations_strategies_user_lists ( +CREATE TABLE operations_strategies_user_lists ( id bigint NOT NULL, strategy_id bigint NOT NULL, user_list_id bigint NOT NULL, project_id bigint ); - --- --- Name: operations_strategies_user_lists_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.operations_strategies_user_lists_id_seq +CREATE SEQUENCE operations_strategies_user_lists_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE operations_strategies_user_lists_id_seq OWNED BY operations_strategies_user_lists.id; --- --- Name: operations_strategies_user_lists_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.operations_strategies_user_lists_id_seq OWNED BY public.operations_strategies_user_lists.id; - - --- --- Name: operations_user_lists; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.operations_user_lists ( +CREATE TABLE operations_user_lists ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -22217,31 +14324,16 @@ CREATE TABLE public.operations_user_lists ( user_xids text DEFAULT ''::text NOT NULL ); - --- --- Name: operations_user_lists_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.operations_user_lists_id_seq +CREATE SEQUENCE operations_user_lists_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE operations_user_lists_id_seq OWNED BY operations_user_lists.id; --- --- Name: operations_user_lists_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.operations_user_lists_id_seq OWNED BY public.operations_user_lists.id; - - --- --- Name: organization_details; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.organization_details ( +CREATE TABLE organization_details ( organization_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -22253,24 +14345,14 @@ CREATE TABLE public.organization_details ( CONSTRAINT check_9fbd483b51 CHECK ((char_length(avatar) <= 255)) ); - --- --- Name: organization_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.organization_settings ( +CREATE TABLE organization_settings ( organization_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, settings jsonb DEFAULT '{}'::jsonb NOT NULL ); - --- --- Name: organization_users; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.organization_users ( +CREATE TABLE organization_users ( id bigint NOT NULL, organization_id bigint NOT NULL, user_id bigint NOT NULL, @@ -22279,31 +14361,16 @@ CREATE TABLE public.organization_users ( access_level smallint DEFAULT 10 NOT NULL ); - --- --- Name: organization_users_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.organization_users_id_seq +CREATE SEQUENCE organization_users_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE organization_users_id_seq OWNED BY organization_users.id; --- --- Name: organization_users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.organization_users_id_seq OWNED BY public.organization_users.id; - - --- --- Name: organizations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.organizations ( +CREATE TABLE organizations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -22314,176 +14381,86 @@ CREATE TABLE public.organizations ( CONSTRAINT check_d130d769e0 CHECK ((char_length(name) <= 255)) ); - --- --- Name: organizations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.organizations_id_seq +CREATE SEQUENCE organizations_id_seq START WITH 1000 INCREMENT BY 1 MINVALUE 1000 NO MAXVALUE CACHE 1; +ALTER SEQUENCE organizations_id_seq OWNED BY organizations.id; --- --- Name: organizations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.organizations_id_seq OWNED BY public.organizations.id; - - --- --- Name: p_batched_git_ref_updates_deletions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.p_batched_git_ref_updates_deletions_id_seq +CREATE SEQUENCE p_batched_git_ref_updates_deletions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE p_batched_git_ref_updates_deletions_id_seq OWNED BY p_batched_git_ref_updates_deletions.id; --- --- Name: p_batched_git_ref_updates_deletions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.p_batched_git_ref_updates_deletions_id_seq OWNED BY public.p_batched_git_ref_updates_deletions.id; - - --- --- Name: p_catalog_resource_component_usages_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.p_catalog_resource_component_usages_id_seq +CREATE SEQUENCE p_catalog_resource_component_usages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE p_catalog_resource_component_usages_id_seq OWNED BY p_catalog_resource_component_usages.id; --- --- Name: p_catalog_resource_component_usages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.p_catalog_resource_component_usages_id_seq OWNED BY public.p_catalog_resource_component_usages.id; - - --- --- Name: p_catalog_resource_sync_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.p_catalog_resource_sync_events_id_seq +CREATE SEQUENCE p_catalog_resource_sync_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE p_catalog_resource_sync_events_id_seq OWNED BY p_catalog_resource_sync_events.id; --- --- Name: p_catalog_resource_sync_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.p_catalog_resource_sync_events_id_seq OWNED BY public.p_catalog_resource_sync_events.id; - - --- --- Name: p_ci_build_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.p_ci_build_tags_id_seq +CREATE SEQUENCE p_ci_build_tags_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE p_ci_build_tags_id_seq OWNED BY p_ci_build_tags.id; --- --- Name: p_ci_build_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.p_ci_build_tags_id_seq OWNED BY public.p_ci_build_tags.id; - - --- --- Name: p_ci_builds_execution_configs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.p_ci_builds_execution_configs_id_seq +CREATE SEQUENCE p_ci_builds_execution_configs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE p_ci_builds_execution_configs_id_seq OWNED BY p_ci_builds_execution_configs.id; --- --- Name: p_ci_builds_execution_configs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.p_ci_builds_execution_configs_id_seq OWNED BY public.p_ci_builds_execution_configs.id; - - --- --- Name: p_ci_job_annotations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.p_ci_job_annotations_id_seq +CREATE SEQUENCE p_ci_job_annotations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE p_ci_job_annotations_id_seq OWNED BY p_ci_job_annotations.id; --- --- Name: p_ci_job_annotations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.p_ci_job_annotations_id_seq OWNED BY public.p_ci_job_annotations.id; - - --- --- Name: packages_build_infos; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_build_infos ( +CREATE TABLE packages_build_infos ( id bigint NOT NULL, package_id integer NOT NULL, pipeline_id bigint, project_id bigint ); - --- --- Name: packages_build_infos_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_build_infos_id_seq +CREATE SEQUENCE packages_build_infos_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_build_infos_id_seq OWNED BY packages_build_infos.id; --- --- Name: packages_build_infos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_build_infos_id_seq OWNED BY public.packages_build_infos.id; - - --- --- Name: packages_cleanup_policies; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_cleanup_policies ( +CREATE TABLE packages_cleanup_policies ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, project_id bigint NOT NULL, @@ -22492,12 +14469,7 @@ CREATE TABLE public.packages_cleanup_policies ( CONSTRAINT check_e53f35ab7b CHECK ((char_length(keep_n_duplicated_package_files) <= 255)) ); - --- --- Name: packages_composer_cache_files; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_composer_cache_files ( +CREATE TABLE packages_composer_cache_files ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -22509,43 +14481,23 @@ CREATE TABLE public.packages_composer_cache_files ( CONSTRAINT check_84f5ba81f5 CHECK ((char_length(file) <= 255)) ); - --- --- Name: packages_composer_cache_files_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_composer_cache_files_id_seq +CREATE SEQUENCE packages_composer_cache_files_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_composer_cache_files_id_seq OWNED BY packages_composer_cache_files.id; --- --- Name: packages_composer_cache_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_composer_cache_files_id_seq OWNED BY public.packages_composer_cache_files.id; - - --- --- Name: packages_composer_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_composer_metadata ( +CREATE TABLE packages_composer_metadata ( package_id bigint NOT NULL, target_sha bytea NOT NULL, composer_json jsonb DEFAULT '{}'::jsonb NOT NULL, version_cache_sha bytea ); - --- --- Name: packages_conan_file_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_conan_file_metadata ( +CREATE TABLE packages_conan_file_metadata ( id bigint NOT NULL, package_file_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -22556,31 +14508,16 @@ CREATE TABLE public.packages_conan_file_metadata ( conan_file_type smallint NOT NULL ); - --- --- Name: packages_conan_file_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_conan_file_metadata_id_seq +CREATE SEQUENCE packages_conan_file_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_conan_file_metadata_id_seq OWNED BY packages_conan_file_metadata.id; --- --- Name: packages_conan_file_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_conan_file_metadata_id_seq OWNED BY public.packages_conan_file_metadata.id; - - --- --- Name: packages_conan_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_conan_metadata ( +CREATE TABLE packages_conan_metadata ( id bigint NOT NULL, package_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -22604,31 +14541,16 @@ CREATE TABLE public.packages_conan_metadata ( CONSTRAINT check_e7f03884b8 CHECK ((char_length(compiler) <= 32)) ); - --- --- Name: packages_conan_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_conan_metadata_id_seq +CREATE SEQUENCE packages_conan_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_conan_metadata_id_seq OWNED BY packages_conan_metadata.id; --- --- Name: packages_conan_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_conan_metadata_id_seq OWNED BY public.packages_conan_metadata.id; - - --- --- Name: packages_debian_file_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_debian_file_metadata ( +CREATE TABLE packages_debian_file_metadata ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, package_file_id bigint NOT NULL, @@ -22640,12 +14562,7 @@ CREATE TABLE public.packages_debian_file_metadata ( CONSTRAINT check_e6e1fffcca CHECK ((char_length(architecture) <= 255)) ); - --- --- Name: packages_debian_group_architectures; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_debian_group_architectures ( +CREATE TABLE packages_debian_group_architectures ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -22655,31 +14572,16 @@ CREATE TABLE public.packages_debian_group_architectures ( CONSTRAINT check_ddb220164a CHECK ((char_length(name) <= 255)) ); - --- --- Name: packages_debian_group_architectures_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_debian_group_architectures_id_seq +CREATE SEQUENCE packages_debian_group_architectures_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_debian_group_architectures_id_seq OWNED BY packages_debian_group_architectures.id; --- --- Name: packages_debian_group_architectures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_debian_group_architectures_id_seq OWNED BY public.packages_debian_group_architectures.id; - - --- --- Name: packages_debian_group_component_files; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_debian_group_component_files ( +CREATE TABLE packages_debian_group_component_files ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -22694,31 +14596,16 @@ CREATE TABLE public.packages_debian_group_component_files ( CONSTRAINT check_839e1685bc CHECK ((char_length(file) <= 255)) ); - --- --- Name: packages_debian_group_component_files_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_debian_group_component_files_id_seq +CREATE SEQUENCE packages_debian_group_component_files_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_debian_group_component_files_id_seq OWNED BY packages_debian_group_component_files.id; --- --- Name: packages_debian_group_component_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_debian_group_component_files_id_seq OWNED BY public.packages_debian_group_component_files.id; - - --- --- Name: packages_debian_group_components; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_debian_group_components ( +CREATE TABLE packages_debian_group_components ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -22728,31 +14615,16 @@ CREATE TABLE public.packages_debian_group_components ( CONSTRAINT check_a9bc7d85be CHECK ((char_length(name) <= 255)) ); - --- --- Name: packages_debian_group_components_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_debian_group_components_id_seq +CREATE SEQUENCE packages_debian_group_components_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_debian_group_components_id_seq OWNED BY packages_debian_group_components.id; --- --- Name: packages_debian_group_components_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_debian_group_components_id_seq OWNED BY public.packages_debian_group_components.id; - - --- --- Name: packages_debian_group_distribution_keys; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_debian_group_distribution_keys ( +CREATE TABLE packages_debian_group_distribution_keys ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -22768,31 +14640,16 @@ CREATE TABLE public.packages_debian_group_distribution_keys ( CONSTRAINT check_f708183491 CHECK ((char_length(public_key) <= 524288)) ); - --- --- Name: packages_debian_group_distribution_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_debian_group_distribution_keys_id_seq +CREATE SEQUENCE packages_debian_group_distribution_keys_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_debian_group_distribution_keys_id_seq OWNED BY packages_debian_group_distribution_keys.id; --- --- Name: packages_debian_group_distribution_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_debian_group_distribution_keys_id_seq OWNED BY public.packages_debian_group_distribution_keys.id; - - --- --- Name: packages_debian_group_distributions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_debian_group_distributions ( +CREATE TABLE packages_debian_group_distributions ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -22823,31 +14680,16 @@ CREATE TABLE public.packages_debian_group_distributions ( CONSTRAINT check_e7c928a24b CHECK ((char_length(suite) <= 255)) ); - --- --- Name: packages_debian_group_distributions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_debian_group_distributions_id_seq +CREATE SEQUENCE packages_debian_group_distributions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_debian_group_distributions_id_seq OWNED BY packages_debian_group_distributions.id; --- --- Name: packages_debian_group_distributions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_debian_group_distributions_id_seq OWNED BY public.packages_debian_group_distributions.id; - - --- --- Name: packages_debian_project_architectures; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_debian_project_architectures ( +CREATE TABLE packages_debian_project_architectures ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -22857,31 +14699,16 @@ CREATE TABLE public.packages_debian_project_architectures ( CONSTRAINT check_9c2e1c99d8 CHECK ((char_length(name) <= 255)) ); - --- --- Name: packages_debian_project_architectures_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_debian_project_architectures_id_seq +CREATE SEQUENCE packages_debian_project_architectures_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_debian_project_architectures_id_seq OWNED BY packages_debian_project_architectures.id; --- --- Name: packages_debian_project_architectures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_debian_project_architectures_id_seq OWNED BY public.packages_debian_project_architectures.id; - - --- --- Name: packages_debian_project_component_files; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_debian_project_component_files ( +CREATE TABLE packages_debian_project_component_files ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -22896,31 +14723,16 @@ CREATE TABLE public.packages_debian_project_component_files ( CONSTRAINT check_e5af03fa2d CHECK ((char_length(file) <= 255)) ); - --- --- Name: packages_debian_project_component_files_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_debian_project_component_files_id_seq +CREATE SEQUENCE packages_debian_project_component_files_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_debian_project_component_files_id_seq OWNED BY packages_debian_project_component_files.id; --- --- Name: packages_debian_project_component_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_debian_project_component_files_id_seq OWNED BY public.packages_debian_project_component_files.id; - - --- --- Name: packages_debian_project_components; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_debian_project_components ( +CREATE TABLE packages_debian_project_components ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -22930,31 +14742,16 @@ CREATE TABLE public.packages_debian_project_components ( CONSTRAINT check_517559f298 CHECK ((char_length(name) <= 255)) ); - --- --- Name: packages_debian_project_components_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_debian_project_components_id_seq +CREATE SEQUENCE packages_debian_project_components_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_debian_project_components_id_seq OWNED BY packages_debian_project_components.id; --- --- Name: packages_debian_project_components_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_debian_project_components_id_seq OWNED BY public.packages_debian_project_components.id; - - --- --- Name: packages_debian_project_distribution_keys; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_debian_project_distribution_keys ( +CREATE TABLE packages_debian_project_distribution_keys ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -22970,31 +14767,16 @@ CREATE TABLE public.packages_debian_project_distribution_keys ( CONSTRAINT check_d188f6547f CHECK ((char_length(public_key) <= 524288)) ); - --- --- Name: packages_debian_project_distribution_keys_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_debian_project_distribution_keys_id_seq +CREATE SEQUENCE packages_debian_project_distribution_keys_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_debian_project_distribution_keys_id_seq OWNED BY packages_debian_project_distribution_keys.id; --- --- Name: packages_debian_project_distribution_keys_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_debian_project_distribution_keys_id_seq OWNED BY public.packages_debian_project_distribution_keys.id; - - --- --- Name: packages_debian_project_distributions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_debian_project_distributions ( +CREATE TABLE packages_debian_project_distributions ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -23025,93 +14807,48 @@ CREATE TABLE public.packages_debian_project_distributions ( CONSTRAINT check_cb4ac9599e CHECK ((char_length(file) <= 255)) ); - --- --- Name: packages_debian_project_distributions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_debian_project_distributions_id_seq +CREATE SEQUENCE packages_debian_project_distributions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_debian_project_distributions_id_seq OWNED BY packages_debian_project_distributions.id; --- --- Name: packages_debian_project_distributions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_debian_project_distributions_id_seq OWNED BY public.packages_debian_project_distributions.id; - - --- --- Name: packages_debian_publications; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_debian_publications ( +CREATE TABLE packages_debian_publications ( id bigint NOT NULL, package_id bigint NOT NULL, distribution_id bigint NOT NULL, project_id bigint ); - --- --- Name: packages_debian_publications_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_debian_publications_id_seq +CREATE SEQUENCE packages_debian_publications_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_debian_publications_id_seq OWNED BY packages_debian_publications.id; --- --- Name: packages_debian_publications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_debian_publications_id_seq OWNED BY public.packages_debian_publications.id; - - --- --- Name: packages_dependencies; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_dependencies ( +CREATE TABLE packages_dependencies ( id bigint NOT NULL, name character varying(255) NOT NULL, version_pattern character varying(255) NOT NULL, project_id bigint ); - --- --- Name: packages_dependencies_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_dependencies_id_seq +CREATE SEQUENCE packages_dependencies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_dependencies_id_seq OWNED BY packages_dependencies.id; --- --- Name: packages_dependencies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_dependencies_id_seq OWNED BY public.packages_dependencies.id; - - --- --- Name: packages_dependency_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_dependency_links ( +CREATE TABLE packages_dependency_links ( id bigint NOT NULL, package_id bigint NOT NULL, dependency_id bigint NOT NULL, @@ -23119,31 +14856,16 @@ CREATE TABLE public.packages_dependency_links ( project_id bigint ); - --- --- Name: packages_dependency_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_dependency_links_id_seq +CREATE SEQUENCE packages_dependency_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_dependency_links_id_seq OWNED BY packages_dependency_links.id; --- --- Name: packages_dependency_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_dependency_links_id_seq OWNED BY public.packages_dependency_links.id; - - --- --- Name: packages_helm_file_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_helm_file_metadata ( +CREATE TABLE packages_helm_file_metadata ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, package_file_id bigint NOT NULL, @@ -23152,12 +14874,7 @@ CREATE TABLE public.packages_helm_file_metadata ( CONSTRAINT check_06e8d100af CHECK ((char_length(channel) <= 255)) ); - --- --- Name: packages_maven_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_maven_metadata ( +CREATE TABLE packages_maven_metadata ( id bigint NOT NULL, package_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -23169,42 +14886,22 @@ CREATE TABLE public.packages_maven_metadata ( project_id bigint ); - --- --- Name: packages_maven_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_maven_metadata_id_seq +CREATE SEQUENCE packages_maven_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_maven_metadata_id_seq OWNED BY packages_maven_metadata.id; --- --- Name: packages_maven_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_maven_metadata_id_seq OWNED BY public.packages_maven_metadata.id; - - --- --- Name: packages_npm_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_npm_metadata ( +CREATE TABLE packages_npm_metadata ( package_id bigint NOT NULL, package_json jsonb DEFAULT '{}'::jsonb NOT NULL, CONSTRAINT chk_rails_e5cbc301ae CHECK ((char_length((package_json)::text) < 20000)) ); - --- --- Name: packages_npm_metadata_caches; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_npm_metadata_caches ( +CREATE TABLE packages_npm_metadata_caches ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -23220,42 +14917,22 @@ CREATE TABLE public.packages_npm_metadata_caches ( CONSTRAINT check_f97c15aa60 CHECK ((char_length(object_storage_key) <= 255)) ); - --- --- Name: packages_npm_metadata_caches_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_npm_metadata_caches_id_seq +CREATE SEQUENCE packages_npm_metadata_caches_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_npm_metadata_caches_id_seq OWNED BY packages_npm_metadata_caches.id; --- --- Name: packages_npm_metadata_caches_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_npm_metadata_caches_id_seq OWNED BY public.packages_npm_metadata_caches.id; - - --- --- Name: packages_nuget_dependency_link_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_nuget_dependency_link_metadata ( +CREATE TABLE packages_nuget_dependency_link_metadata ( dependency_link_id bigint NOT NULL, target_framework text NOT NULL, CONSTRAINT packages_nuget_dependency_link_metadata_target_framework_constr CHECK ((char_length(target_framework) <= 255)) ); - --- --- Name: packages_nuget_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_nuget_metadata ( +CREATE TABLE packages_nuget_metadata ( package_id bigint NOT NULL, license_url text, project_url text, @@ -23271,12 +14948,7 @@ CREATE TABLE public.packages_nuget_metadata ( CONSTRAINT packages_nuget_metadata_project_url_constraint CHECK ((char_length(project_url) <= 255)) ); - --- --- Name: packages_nuget_symbols; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_nuget_symbols ( +CREATE TABLE packages_nuget_symbols ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -23295,61 +14967,31 @@ CREATE TABLE public.packages_nuget_symbols ( CONSTRAINT check_8dc7152679 CHECK ((char_length(signature) <= 255)) ); - --- --- Name: packages_nuget_symbols_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_nuget_symbols_id_seq +CREATE SEQUENCE packages_nuget_symbols_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_nuget_symbols_id_seq OWNED BY packages_nuget_symbols.id; --- --- Name: packages_nuget_symbols_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_nuget_symbols_id_seq OWNED BY public.packages_nuget_symbols.id; - - --- --- Name: packages_package_file_build_infos; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_package_file_build_infos ( +CREATE TABLE packages_package_file_build_infos ( id bigint NOT NULL, package_file_id bigint NOT NULL, pipeline_id bigint ); - --- --- Name: packages_package_file_build_infos_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_package_file_build_infos_id_seq +CREATE SEQUENCE packages_package_file_build_infos_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_package_file_build_infos_id_seq OWNED BY packages_package_file_build_infos.id; --- --- Name: packages_package_file_build_infos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_package_file_build_infos_id_seq OWNED BY public.packages_package_file_build_infos.id; - - --- --- Name: packages_package_files; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_package_files ( +CREATE TABLE packages_package_files ( id bigint NOT NULL, package_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -23375,31 +15017,16 @@ CREATE TABLE public.packages_package_files ( CONSTRAINT check_4c5e6bb0b3 CHECK ((file_store IS NOT NULL)) ); - --- --- Name: packages_package_files_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_package_files_id_seq +CREATE SEQUENCE packages_package_files_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_package_files_id_seq OWNED BY packages_package_files.id; --- --- Name: packages_package_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_package_files_id_seq OWNED BY public.packages_package_files.id; - - --- --- Name: packages_packages; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_packages ( +CREATE TABLE packages_packages ( id bigint NOT NULL, project_id integer NOT NULL, created_at timestamp with time zone NOT NULL, @@ -23413,31 +15040,16 @@ CREATE TABLE public.packages_packages ( status_message text ); - --- --- Name: packages_packages_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_packages_id_seq +CREATE SEQUENCE packages_packages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_packages_id_seq OWNED BY packages_packages.id; --- --- Name: packages_packages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_packages_id_seq OWNED BY public.packages_packages.id; - - --- --- Name: packages_protection_rules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_protection_rules ( +CREATE TABLE packages_protection_rules ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -23449,31 +15061,16 @@ CREATE TABLE public.packages_protection_rules ( CONSTRAINT check_d2d75d206d CHECK ((char_length(package_name_pattern) <= 255)) ); - --- --- Name: packages_protection_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_protection_rules_id_seq +CREATE SEQUENCE packages_protection_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_protection_rules_id_seq OWNED BY packages_protection_rules.id; --- --- Name: packages_protection_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_protection_rules_id_seq OWNED BY public.packages_protection_rules.id; - - --- --- Name: packages_pypi_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_pypi_metadata ( +CREATE TABLE packages_pypi_metadata ( package_id bigint NOT NULL, required_python text DEFAULT ''::text, metadata_version text, @@ -23492,12 +15089,7 @@ CREATE TABLE public.packages_pypi_metadata ( CONSTRAINT check_b1f32be96c CHECK ((char_length(description_content_type) <= 128)) ); - --- --- Name: packages_rpm_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_rpm_metadata ( +CREATE TABLE packages_rpm_metadata ( package_id bigint NOT NULL, release text DEFAULT '1'::text NOT NULL, summary text DEFAULT ''::text NOT NULL, @@ -23514,12 +15106,7 @@ CREATE TABLE public.packages_rpm_metadata ( CONSTRAINT check_c3e2fc2e89 CHECK ((char_length(release) <= 128)) ); - --- --- Name: packages_rpm_repository_files; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_rpm_repository_files ( +CREATE TABLE packages_rpm_repository_files ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -23536,31 +15123,16 @@ CREATE TABLE public.packages_rpm_repository_files ( CONSTRAINT check_b6b721b275 CHECK ((char_length(file_name) <= 255)) ); - --- --- Name: packages_rpm_repository_files_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_rpm_repository_files_id_seq +CREATE SEQUENCE packages_rpm_repository_files_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_rpm_repository_files_id_seq OWNED BY packages_rpm_repository_files.id; --- --- Name: packages_rpm_repository_files_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_rpm_repository_files_id_seq OWNED BY public.packages_rpm_repository_files.id; - - --- --- Name: packages_rubygems_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_rubygems_metadata ( +CREATE TABLE packages_rubygems_metadata ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, package_id bigint NOT NULL, @@ -23612,12 +15184,7 @@ CREATE TABLE public.packages_rubygems_metadata ( CONSTRAINT check_f76bad1a9a CHECK ((char_length(require_paths) <= 255)) ); - --- --- Name: packages_tags; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_tags ( +CREATE TABLE packages_tags ( id bigint NOT NULL, package_id integer NOT NULL, name character varying(255) NOT NULL, @@ -23627,31 +15194,16 @@ CREATE TABLE public.packages_tags ( CONSTRAINT check_91b8472153 CHECK ((project_id IS NOT NULL)) ); - --- --- Name: packages_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.packages_tags_id_seq +CREATE SEQUENCE packages_tags_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE packages_tags_id_seq OWNED BY packages_tags.id; --- --- Name: packages_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.packages_tags_id_seq OWNED BY public.packages_tags.id; - - --- --- Name: packages_terraform_module_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.packages_terraform_module_metadata ( +CREATE TABLE packages_terraform_module_metadata ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, package_id bigint NOT NULL, @@ -23660,12 +15212,7 @@ CREATE TABLE public.packages_terraform_module_metadata ( CONSTRAINT chk_rails_49f7b485ae CHECK ((char_length((fields)::text) <= 10485760)) ); - --- --- Name: pages_deployment_states; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.pages_deployment_states ( +CREATE TABLE pages_deployment_states ( pages_deployment_id bigint NOT NULL, verification_state smallint DEFAULT 0 NOT NULL, verification_started_at timestamp with time zone, @@ -23677,31 +15224,16 @@ CREATE TABLE public.pages_deployment_states ( CONSTRAINT check_15217e8c3a CHECK ((char_length(verification_failure) <= 255)) ); - --- --- Name: pages_deployment_states_pages_deployment_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.pages_deployment_states_pages_deployment_id_seq +CREATE SEQUENCE pages_deployment_states_pages_deployment_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE pages_deployment_states_pages_deployment_id_seq OWNED BY pages_deployment_states.pages_deployment_id; --- --- Name: pages_deployment_states_pages_deployment_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.pages_deployment_states_pages_deployment_id_seq OWNED BY public.pages_deployment_states.pages_deployment_id; - - --- --- Name: pages_deployments; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.pages_deployments ( +CREATE TABLE pages_deployments ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -23725,31 +15257,16 @@ CREATE TABLE public.pages_deployments ( CONSTRAINT check_f0fe8032dd CHECK ((char_length(file) <= 255)) ); - --- --- Name: pages_deployments_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.pages_deployments_id_seq +CREATE SEQUENCE pages_deployments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE pages_deployments_id_seq OWNED BY pages_deployments.id; --- --- Name: pages_deployments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.pages_deployments_id_seq OWNED BY public.pages_deployments.id; - - --- --- Name: pages_domain_acme_orders; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.pages_domain_acme_orders ( +CREATE TABLE pages_domain_acme_orders ( id bigint NOT NULL, pages_domain_id integer NOT NULL, expires_at timestamp with time zone NOT NULL, @@ -23762,31 +15279,16 @@ CREATE TABLE public.pages_domain_acme_orders ( encrypted_private_key_iv text NOT NULL ); - --- --- Name: pages_domain_acme_orders_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.pages_domain_acme_orders_id_seq +CREATE SEQUENCE pages_domain_acme_orders_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE pages_domain_acme_orders_id_seq OWNED BY pages_domain_acme_orders.id; --- --- Name: pages_domain_acme_orders_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.pages_domain_acme_orders_id_seq OWNED BY public.pages_domain_acme_orders.id; - - --- --- Name: pages_domains; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.pages_domains ( +CREATE TABLE pages_domains ( id integer NOT NULL, project_id integer, certificate text, @@ -23808,31 +15310,16 @@ CREATE TABLE public.pages_domains ( auto_ssl_failed boolean DEFAULT false NOT NULL ); - --- --- Name: pages_domains_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.pages_domains_id_seq +CREATE SEQUENCE pages_domains_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE pages_domains_id_seq OWNED BY pages_domains.id; --- --- Name: pages_domains_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.pages_domains_id_seq OWNED BY public.pages_domains.id; - - --- --- Name: path_locks; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.path_locks ( +CREATE TABLE path_locks ( id integer NOT NULL, path character varying NOT NULL, project_id integer, @@ -23842,31 +15329,16 @@ CREATE TABLE public.path_locks ( CONSTRAINT check_e1de2eb0f1 CHECK ((project_id IS NOT NULL)) ); - --- --- Name: path_locks_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.path_locks_id_seq +CREATE SEQUENCE path_locks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE path_locks_id_seq OWNED BY path_locks.id; --- --- Name: path_locks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.path_locks_id_seq OWNED BY public.path_locks.id; - - --- --- Name: personal_access_token_last_used_ips; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.personal_access_token_last_used_ips ( +CREATE TABLE personal_access_token_last_used_ips ( id bigint NOT NULL, personal_access_token_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -23874,31 +15346,16 @@ CREATE TABLE public.personal_access_token_last_used_ips ( ip_address inet ); - --- --- Name: personal_access_token_last_used_ips_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.personal_access_token_last_used_ips_id_seq +CREATE SEQUENCE personal_access_token_last_used_ips_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE personal_access_token_last_used_ips_id_seq OWNED BY personal_access_token_last_used_ips.id; --- --- Name: personal_access_token_last_used_ips_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.personal_access_token_last_used_ips_id_seq OWNED BY public.personal_access_token_last_used_ips.id; - - --- --- Name: personal_access_tokens; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.personal_access_tokens ( +CREATE TABLE personal_access_tokens ( id integer NOT NULL, user_id integer NOT NULL, name character varying NOT NULL, @@ -23919,31 +15376,16 @@ CREATE TABLE public.personal_access_tokens ( CONSTRAINT check_aa95773861 CHECK ((char_length(advanced_scopes) <= 4096)) ); - --- --- Name: personal_access_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.personal_access_tokens_id_seq +CREATE SEQUENCE personal_access_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE personal_access_tokens_id_seq OWNED BY personal_access_tokens.id; --- --- Name: personal_access_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.personal_access_tokens_id_seq OWNED BY public.personal_access_tokens.id; - - --- --- Name: plan_limits; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.plan_limits ( +CREATE TABLE plan_limits ( id bigint NOT NULL, plan_id bigint NOT NULL, ci_pipeline_size integer DEFAULT 0 NOT NULL, @@ -24044,31 +15486,16 @@ CREATE TABLE public.plan_limits ( import_placeholder_user_limit_tier_4 integer DEFAULT 0 NOT NULL ); - --- --- Name: plan_limits_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.plan_limits_id_seq +CREATE SEQUENCE plan_limits_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE plan_limits_id_seq OWNED BY plan_limits.id; --- --- Name: plan_limits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.plan_limits_id_seq OWNED BY public.plan_limits.id; - - --- --- Name: plans; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.plans ( +CREATE TABLE plans ( id integer NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, @@ -24076,31 +15503,16 @@ CREATE TABLE public.plans ( title character varying ); - --- --- Name: plans_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.plans_id_seq +CREATE SEQUENCE plans_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE plans_id_seq OWNED BY plans.id; --- --- Name: plans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.plans_id_seq OWNED BY public.plans.id; - - --- --- Name: pm_advisories; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.pm_advisories ( +CREATE TABLE pm_advisories ( id bigint NOT NULL, advisory_xid text NOT NULL, published_date date NOT NULL, @@ -24121,31 +15533,16 @@ CREATE TABLE public.pm_advisories ( CONSTRAINT chk_rails_e73af9de76 CHECK ((cardinality(urls) <= 20)) ); - --- --- Name: pm_advisories_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.pm_advisories_id_seq +CREATE SEQUENCE pm_advisories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE pm_advisories_id_seq OWNED BY pm_advisories.id; --- --- Name: pm_advisories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.pm_advisories_id_seq OWNED BY public.pm_advisories.id; - - --- --- Name: pm_affected_packages; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.pm_affected_packages ( +CREATE TABLE pm_affected_packages ( id bigint NOT NULL, pm_advisory_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -24165,31 +15562,16 @@ CREATE TABLE public.pm_affected_packages ( CONSTRAINT chk_rails_a0f80d74e0 CHECK ((cardinality(fixed_versions) <= 10)) ); - --- --- Name: pm_affected_packages_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.pm_affected_packages_id_seq +CREATE SEQUENCE pm_affected_packages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE pm_affected_packages_id_seq OWNED BY pm_affected_packages.id; --- --- Name: pm_affected_packages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.pm_affected_packages_id_seq OWNED BY public.pm_affected_packages.id; - - --- --- Name: pm_checkpoints; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.pm_checkpoints ( +CREATE TABLE pm_checkpoints ( sequence integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -24200,31 +15582,16 @@ CREATE TABLE public.pm_checkpoints ( id bigint NOT NULL ); - --- --- Name: pm_checkpoints_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.pm_checkpoints_id_seq +CREATE SEQUENCE pm_checkpoints_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE pm_checkpoints_id_seq OWNED BY pm_checkpoints.id; --- --- Name: pm_checkpoints_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.pm_checkpoints_id_seq OWNED BY public.pm_checkpoints.id; - - --- --- Name: pm_epss; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.pm_epss ( +CREATE TABLE pm_epss ( id bigint NOT NULL, score double precision NOT NULL, created_at timestamp with time zone NOT NULL, @@ -24233,31 +15600,16 @@ CREATE TABLE public.pm_epss ( CONSTRAINT check_33a7364ae2 CHECK ((char_length(cve) <= 24)) ); - --- --- Name: pm_epss_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.pm_epss_id_seq +CREATE SEQUENCE pm_epss_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE pm_epss_id_seq OWNED BY pm_epss.id; --- --- Name: pm_epss_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.pm_epss_id_seq OWNED BY public.pm_epss.id; - - --- --- Name: pm_licenses; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.pm_licenses ( +CREATE TABLE pm_licenses ( id bigint NOT NULL, spdx_identifier text NOT NULL, created_at timestamp with time zone DEFAULT now() NOT NULL, @@ -24265,31 +15617,16 @@ CREATE TABLE public.pm_licenses ( CONSTRAINT check_c1eb81d1ba CHECK ((char_length(spdx_identifier) <= 50)) ); - --- --- Name: pm_licenses_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.pm_licenses_id_seq +CREATE SEQUENCE pm_licenses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE pm_licenses_id_seq OWNED BY pm_licenses.id; --- --- Name: pm_licenses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.pm_licenses_id_seq OWNED BY public.pm_licenses.id; - - --- --- Name: pm_package_version_licenses; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.pm_package_version_licenses ( +CREATE TABLE pm_package_version_licenses ( pm_package_version_id bigint NOT NULL, pm_license_id bigint NOT NULL, created_at timestamp with time zone DEFAULT now() NOT NULL, @@ -24297,31 +15634,16 @@ CREATE TABLE public.pm_package_version_licenses ( id bigint NOT NULL ); - --- --- Name: pm_package_version_licenses_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.pm_package_version_licenses_id_seq +CREATE SEQUENCE pm_package_version_licenses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE pm_package_version_licenses_id_seq OWNED BY pm_package_version_licenses.id; --- --- Name: pm_package_version_licenses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.pm_package_version_licenses_id_seq OWNED BY public.pm_package_version_licenses.id; - - --- --- Name: pm_package_versions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.pm_package_versions ( +CREATE TABLE pm_package_versions ( id bigint NOT NULL, pm_package_id bigint NOT NULL, version text NOT NULL, @@ -24330,31 +15652,16 @@ CREATE TABLE public.pm_package_versions ( CONSTRAINT check_2d8a88cfcc CHECK ((char_length(version) <= 255)) ); - --- --- Name: pm_package_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.pm_package_versions_id_seq +CREATE SEQUENCE pm_package_versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE pm_package_versions_id_seq OWNED BY pm_package_versions.id; --- --- Name: pm_package_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.pm_package_versions_id_seq OWNED BY public.pm_package_versions.id; - - --- --- Name: pm_packages; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.pm_packages ( +CREATE TABLE pm_packages ( id bigint NOT NULL, purl_type smallint NOT NULL, name text NOT NULL, @@ -24364,31 +15671,16 @@ CREATE TABLE public.pm_packages ( CONSTRAINT check_3a3aedb8ba CHECK ((char_length(name) <= 255)) ); - --- --- Name: pm_packages_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.pm_packages_id_seq +CREATE SEQUENCE pm_packages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE pm_packages_id_seq OWNED BY pm_packages.id; --- --- Name: pm_packages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.pm_packages_id_seq OWNED BY public.pm_packages.id; - - --- --- Name: pool_repositories; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.pool_repositories ( +CREATE TABLE pool_repositories ( id bigint NOT NULL, shard_id integer NOT NULL, disk_path character varying, @@ -24396,31 +15688,16 @@ CREATE TABLE public.pool_repositories ( source_project_id integer ); - --- --- Name: pool_repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.pool_repositories_id_seq +CREATE SEQUENCE pool_repositories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE pool_repositories_id_seq OWNED BY pool_repositories.id; --- --- Name: pool_repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.pool_repositories_id_seq OWNED BY public.pool_repositories.id; - - --- --- Name: postgres_async_foreign_key_validations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.postgres_async_foreign_key_validations ( +CREATE TABLE postgres_async_foreign_key_validations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -24434,31 +15711,16 @@ CREATE TABLE public.postgres_async_foreign_key_validations ( CONSTRAINT check_cd435d6301 CHECK ((char_length(table_name) <= 63)) ); - --- --- Name: postgres_async_foreign_key_validations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.postgres_async_foreign_key_validations_id_seq +CREATE SEQUENCE postgres_async_foreign_key_validations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE postgres_async_foreign_key_validations_id_seq OWNED BY postgres_async_foreign_key_validations.id; --- --- Name: postgres_async_foreign_key_validations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.postgres_async_foreign_key_validations_id_seq OWNED BY public.postgres_async_foreign_key_validations.id; - - --- --- Name: postgres_async_indexes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.postgres_async_indexes ( +CREATE TABLE postgres_async_indexes ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -24473,31 +15735,16 @@ CREATE TABLE public.postgres_async_indexes ( CONSTRAINT check_schema_and_name_length CHECK ((char_length(table_name) <= 127)) ); - --- --- Name: postgres_async_indexes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.postgres_async_indexes_id_seq +CREATE SEQUENCE postgres_async_indexes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE postgres_async_indexes_id_seq OWNED BY postgres_async_indexes.id; --- --- Name: postgres_async_indexes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.postgres_async_indexes_id_seq OWNED BY public.postgres_async_indexes.id; - - --- --- Name: postgres_autovacuum_activity; Type: VIEW; Schema: public; Owner: - --- - -CREATE VIEW public.postgres_autovacuum_activity AS +CREATE VIEW postgres_autovacuum_activity AS WITH processes AS ( SELECT postgres_pg_stat_activity_autovacuum.query, postgres_pg_stat_activity_autovacuum.query_start, @@ -24506,7 +15753,7 @@ CREATE VIEW public.postgres_autovacuum_activity AS WHEN (postgres_pg_stat_activity_autovacuum.query ~~* '%wraparound)'::text) THEN true ELSE false END AS wraparound_prevention - FROM public.postgres_pg_stat_activity_autovacuum() postgres_pg_stat_activity_autovacuum(query, query_start) + FROM postgres_pg_stat_activity_autovacuum() postgres_pg_stat_activity_autovacuum(query, query_start) WHERE (postgres_pg_stat_activity_autovacuum.query ~* '^autovacuum: VACUUM \w+\.\w+'::text) ) SELECT ((processes.matches[1] || '.'::text) || processes.matches[2]) AS table_identifier, @@ -24516,19 +15763,9 @@ CREATE VIEW public.postgres_autovacuum_activity AS processes.wraparound_prevention FROM processes; +COMMENT ON VIEW postgres_autovacuum_activity IS 'Contains information about PostgreSQL backends currently performing autovacuum operations on the tables indicated here.'; --- --- Name: VIEW postgres_autovacuum_activity; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON VIEW public.postgres_autovacuum_activity IS 'Contains information about PostgreSQL backends currently performing autovacuum operations on the tables indicated here.'; - - --- --- Name: postgres_constraints; Type: VIEW; Schema: public; Owner: - --- - -CREATE VIEW public.postgres_constraints AS +CREATE VIEW postgres_constraints AS SELECT pg_constraint.oid, pg_constraint.conname AS name, pg_constraint.contype AS constraint_type, @@ -24543,12 +15780,7 @@ CREATE VIEW public.postgres_constraints AS JOIN pg_class ON ((pg_constraint.conrelid = pg_class.oid))) JOIN pg_namespace ON ((pg_class.relnamespace = pg_namespace.oid))); - --- --- Name: postgres_foreign_keys; Type: VIEW; Schema: public; Owner: - --- - -CREATE VIEW public.postgres_foreign_keys AS +CREATE VIEW postgres_foreign_keys AS SELECT pg_constraint.oid, pg_constraint.conname AS name, (((constrained_namespace.nspname)::text || '.'::text) || (constrained_table.relname)::text) AS constrained_table_identifier, @@ -24581,12 +15813,7 @@ CREATE VIEW public.postgres_foreign_keys AS LIMIT 1) partitioned_parent_oids(parent_oid) ON (true)) WHERE (pg_constraint.contype = 'f'::"char"); - --- --- Name: postgres_index_bloat_estimates; Type: VIEW; Schema: public; Owner: - --- - -CREATE VIEW public.postgres_index_bloat_estimates AS +CREATE VIEW postgres_index_bloat_estimates AS SELECT (((relation_stats.nspname)::text || '.'::text) || (relation_stats.idxname)::text) AS identifier, ( CASE @@ -24698,12 +15925,7 @@ END AS attrelname WHERE ((relation_stats.nspname = ANY (ARRAY["current_schema"(), 'gitlab_partitions_dynamic'::name, 'gitlab_partitions_static'::name])) AND (NOT relation_stats.is_na)) ORDER BY relation_stats.nspname, relation_stats.tblname, relation_stats.idxname; - --- --- Name: postgres_indexes; Type: VIEW; Schema: public; Owner: - --- - -CREATE VIEW public.postgres_indexes AS +CREATE VIEW postgres_indexes AS SELECT (((pg_namespace.nspname)::text || '.'::text) || (i.relname)::text) AS identifier, pg_index.indexrelid, pg_namespace.nspname AS schema, @@ -24725,12 +15947,7 @@ CREATE VIEW public.postgres_indexes AS JOIN pg_am a ON ((i.relam = a.oid))) WHERE ((pg_namespace.nspname <> 'pg_catalog'::name) AND (pg_namespace.nspname = ANY (ARRAY["current_schema"(), 'gitlab_partitions_dynamic'::name, 'gitlab_partitions_static'::name]))); - --- --- Name: postgres_partitioned_tables; Type: VIEW; Schema: public; Owner: - --- - -CREATE VIEW public.postgres_partitioned_tables AS +CREATE VIEW postgres_partitioned_tables AS SELECT (((pg_namespace.nspname)::text || '.'::text) || (pg_class.relname)::text) AS identifier, pg_class.oid, pg_namespace.nspname AS schema, @@ -24758,12 +15975,7 @@ CREATE VIEW public.postgres_partitioned_tables AS ELSE NULL::text END; - --- --- Name: postgres_partitions; Type: VIEW; Schema: public; Owner: - --- - -CREATE VIEW public.postgres_partitions AS +CREATE VIEW postgres_partitions AS SELECT (((pg_namespace.nspname)::text || '.'::text) || (pg_class.relname)::text) AS identifier, pg_class.oid, pg_namespace.nspname AS schema, @@ -24777,12 +15989,7 @@ CREATE VIEW public.postgres_partitions AS JOIN pg_namespace parent_namespace ON ((parent_class.relnamespace = parent_namespace.oid))) WHERE (pg_class.relispartition AND (pg_namespace.nspname = ANY (ARRAY["current_schema"(), 'gitlab_partitions_dynamic'::name, 'gitlab_partitions_static'::name]))); - --- --- Name: postgres_reindex_actions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.postgres_reindex_actions ( +CREATE TABLE postgres_reindex_actions ( id bigint NOT NULL, action_start timestamp with time zone NOT NULL, action_end timestamp with time zone, @@ -24794,31 +16001,16 @@ CREATE TABLE public.postgres_reindex_actions ( CONSTRAINT check_f12527622c CHECK ((char_length(index_identifier) <= 255)) ); - --- --- Name: postgres_reindex_actions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.postgres_reindex_actions_id_seq +CREATE SEQUENCE postgres_reindex_actions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE postgres_reindex_actions_id_seq OWNED BY postgres_reindex_actions.id; --- --- Name: postgres_reindex_actions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.postgres_reindex_actions_id_seq OWNED BY public.postgres_reindex_actions.id; - - --- --- Name: postgres_reindex_queued_actions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.postgres_reindex_queued_actions ( +CREATE TABLE postgres_reindex_queued_actions ( id bigint NOT NULL, index_identifier text NOT NULL, state smallint DEFAULT 0 NOT NULL, @@ -24827,31 +16019,16 @@ CREATE TABLE public.postgres_reindex_queued_actions ( CONSTRAINT check_e4b01395c0 CHECK ((char_length(index_identifier) <= 255)) ); - --- --- Name: postgres_reindex_queued_actions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.postgres_reindex_queued_actions_id_seq +CREATE SEQUENCE postgres_reindex_queued_actions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE postgres_reindex_queued_actions_id_seq OWNED BY postgres_reindex_queued_actions.id; --- --- Name: postgres_reindex_queued_actions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.postgres_reindex_queued_actions_id_seq OWNED BY public.postgres_reindex_queued_actions.id; - - --- --- Name: postgres_sequences; Type: VIEW; Schema: public; Owner: - --- - -CREATE VIEW public.postgres_sequences AS +CREATE VIEW postgres_sequences AS SELECT seq_pg_class.relname AS seq_name, dep_pg_class.relname AS table_name, pg_attribute.attname AS col_name @@ -24861,64 +16038,34 @@ CREATE VIEW public.postgres_sequences AS JOIN pg_attribute ON (((dep_pg_class.oid = pg_attribute.attrelid) AND (pg_depend.refobjsubid = pg_attribute.attnum)))) WHERE ((pg_depend.classid = ('pg_class'::regclass)::oid) AND (pg_depend.refclassid = ('pg_class'::regclass)::oid) AND (seq_pg_class.relkind = 'S'::"char")); - --- --- Name: programming_languages; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.programming_languages ( +CREATE TABLE programming_languages ( id integer NOT NULL, name character varying NOT NULL, color character varying NOT NULL, created_at timestamp with time zone NOT NULL ); - --- --- Name: programming_languages_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.programming_languages_id_seq +CREATE SEQUENCE programming_languages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE programming_languages_id_seq OWNED BY programming_languages.id; --- --- Name: programming_languages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.programming_languages_id_seq OWNED BY public.programming_languages.id; - - --- --- Name: project_access_tokens; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_access_tokens ( +CREATE TABLE project_access_tokens ( personal_access_token_id bigint NOT NULL, project_id bigint NOT NULL ); - --- --- Name: project_alerting_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_alerting_settings ( +CREATE TABLE project_alerting_settings ( project_id integer NOT NULL, encrypted_token character varying NOT NULL, encrypted_token_iv character varying NOT NULL ); - --- --- Name: project_aliases; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_aliases ( +CREATE TABLE project_aliases ( id bigint NOT NULL, project_id integer NOT NULL, name character varying NOT NULL, @@ -24926,43 +16073,23 @@ CREATE TABLE public.project_aliases ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: project_aliases_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_aliases_id_seq +CREATE SEQUENCE project_aliases_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_aliases_id_seq OWNED BY project_aliases.id; --- --- Name: project_aliases_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_aliases_id_seq OWNED BY public.project_aliases.id; - - --- --- Name: project_authorizations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_authorizations ( +CREATE TABLE project_authorizations ( user_id integer NOT NULL, project_id integer NOT NULL, access_level integer NOT NULL, is_unique boolean ); - --- --- Name: project_auto_devops; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_auto_devops ( +CREATE TABLE project_auto_devops ( id integer NOT NULL, project_id integer NOT NULL, created_at timestamp with time zone NOT NULL, @@ -24971,31 +16098,16 @@ CREATE TABLE public.project_auto_devops ( deploy_strategy integer DEFAULT 0 NOT NULL ); - --- --- Name: project_auto_devops_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_auto_devops_id_seq +CREATE SEQUENCE project_auto_devops_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_auto_devops_id_seq OWNED BY project_auto_devops.id; --- --- Name: project_auto_devops_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_auto_devops_id_seq OWNED BY public.project_auto_devops.id; - - --- --- Name: project_build_artifacts_size_refreshes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_build_artifacts_size_refreshes ( +CREATE TABLE project_build_artifacts_size_refreshes ( id bigint NOT NULL, project_id bigint NOT NULL, last_job_artifact_id bigint, @@ -25006,31 +16118,16 @@ CREATE TABLE public.project_build_artifacts_size_refreshes ( last_job_artifact_id_on_refresh_start bigint DEFAULT 0 ); - --- --- Name: project_build_artifacts_size_refreshes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_build_artifacts_size_refreshes_id_seq +CREATE SEQUENCE project_build_artifacts_size_refreshes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_build_artifacts_size_refreshes_id_seq OWNED BY project_build_artifacts_size_refreshes.id; --- --- Name: project_build_artifacts_size_refreshes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_build_artifacts_size_refreshes_id_seq OWNED BY public.project_build_artifacts_size_refreshes.id; - - --- --- Name: project_ci_cd_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_ci_cd_settings ( +CREATE TABLE project_ci_cd_settings ( id integer NOT NULL, project_id integer NOT NULL, group_runners_enabled boolean DEFAULT true NOT NULL, @@ -25054,112 +16151,57 @@ CREATE TABLE public.project_ci_cd_settings ( id_token_sub_claim_components character varying[] DEFAULT '{project_path,ref_type,ref}'::character varying[] NOT NULL ); - --- --- Name: project_ci_cd_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_ci_cd_settings_id_seq +CREATE SEQUENCE project_ci_cd_settings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_ci_cd_settings_id_seq OWNED BY project_ci_cd_settings.id; --- --- Name: project_ci_cd_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_ci_cd_settings_id_seq OWNED BY public.project_ci_cd_settings.id; - - --- --- Name: project_ci_feature_usages; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_ci_feature_usages ( +CREATE TABLE project_ci_feature_usages ( id bigint NOT NULL, project_id bigint NOT NULL, feature smallint NOT NULL, default_branch boolean DEFAULT false NOT NULL ); - --- --- Name: project_ci_feature_usages_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_ci_feature_usages_id_seq +CREATE SEQUENCE project_ci_feature_usages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_ci_feature_usages_id_seq OWNED BY project_ci_feature_usages.id; --- --- Name: project_ci_feature_usages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_ci_feature_usages_id_seq OWNED BY public.project_ci_feature_usages.id; - - --- --- Name: project_compliance_framework_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_compliance_framework_settings ( +CREATE TABLE project_compliance_framework_settings ( project_id bigint NOT NULL, framework_id bigint, id bigint NOT NULL, CONSTRAINT check_d348de9e2d CHECK ((framework_id IS NOT NULL)) ); - --- --- Name: project_compliance_framework_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_compliance_framework_settings_id_seq +CREATE SEQUENCE project_compliance_framework_settings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_compliance_framework_settings_id_seq OWNED BY project_compliance_framework_settings.id; --- --- Name: project_compliance_framework_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_compliance_framework_settings_id_seq OWNED BY public.project_compliance_framework_settings.id; - - --- --- Name: project_compliance_framework_settings_project_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_compliance_framework_settings_project_id_seq +CREATE SEQUENCE project_compliance_framework_settings_project_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_compliance_framework_settings_project_id_seq OWNED BY project_compliance_framework_settings.project_id; --- --- Name: project_compliance_framework_settings_project_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_compliance_framework_settings_project_id_seq OWNED BY public.project_compliance_framework_settings.project_id; - - --- --- Name: project_compliance_standards_adherence; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_compliance_standards_adherence ( +CREATE TABLE project_compliance_standards_adherence ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -25170,31 +16212,16 @@ CREATE TABLE public.project_compliance_standards_adherence ( standard smallint NOT NULL ); - --- --- Name: project_compliance_standards_adherence_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_compliance_standards_adherence_id_seq +CREATE SEQUENCE project_compliance_standards_adherence_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_compliance_standards_adherence_id_seq OWNED BY project_compliance_standards_adherence.id; --- --- Name: project_compliance_standards_adherence_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_compliance_standards_adherence_id_seq OWNED BY public.project_compliance_standards_adherence.id; - - --- --- Name: project_custom_attributes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_custom_attributes ( +CREATE TABLE project_custom_attributes ( id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -25203,62 +16230,32 @@ CREATE TABLE public.project_custom_attributes ( value character varying NOT NULL ); - --- --- Name: project_custom_attributes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_custom_attributes_id_seq +CREATE SEQUENCE project_custom_attributes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_custom_attributes_id_seq OWNED BY project_custom_attributes.id; --- --- Name: project_custom_attributes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_custom_attributes_id_seq OWNED BY public.project_custom_attributes.id; - - --- --- Name: project_daily_statistics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_daily_statistics ( +CREATE TABLE project_daily_statistics ( id bigint NOT NULL, project_id integer NOT NULL, fetch_count integer NOT NULL, date date ); - --- --- Name: project_daily_statistics_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_daily_statistics_id_seq +CREATE SEQUENCE project_daily_statistics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_daily_statistics_id_seq OWNED BY project_daily_statistics.id; --- --- Name: project_daily_statistics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_daily_statistics_id_seq OWNED BY public.project_daily_statistics.id; - - --- --- Name: project_data_transfers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_data_transfers ( +CREATE TABLE project_data_transfers ( id bigint NOT NULL, project_id bigint NOT NULL, namespace_id bigint NOT NULL, @@ -25271,62 +16268,32 @@ CREATE TABLE public.project_data_transfers ( CONSTRAINT project_data_transfers_project_year_month_constraint CHECK ((date = date_trunc('month'::text, (date)::timestamp with time zone))) ); - --- --- Name: project_data_transfers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_data_transfers_id_seq +CREATE SEQUENCE project_data_transfers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_data_transfers_id_seq OWNED BY project_data_transfers.id; --- --- Name: project_data_transfers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_data_transfers_id_seq OWNED BY public.project_data_transfers.id; - - --- --- Name: project_deploy_tokens; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_deploy_tokens ( +CREATE TABLE project_deploy_tokens ( id integer NOT NULL, project_id integer NOT NULL, deploy_token_id integer NOT NULL, created_at timestamp with time zone NOT NULL ); - --- --- Name: project_deploy_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_deploy_tokens_id_seq +CREATE SEQUENCE project_deploy_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_deploy_tokens_id_seq OWNED BY project_deploy_tokens.id; --- --- Name: project_deploy_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_deploy_tokens_id_seq OWNED BY public.project_deploy_tokens.id; - - --- --- Name: project_error_tracking_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_error_tracking_settings ( +CREATE TABLE project_error_tracking_settings ( project_id integer NOT NULL, enabled boolean DEFAULT false NOT NULL, api_url character varying, @@ -25338,12 +16305,7 @@ CREATE TABLE public.project_error_tracking_settings ( sentry_project_id bigint ); - --- --- Name: project_export_jobs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_export_jobs ( +CREATE TABLE project_export_jobs ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -25354,42 +16316,22 @@ CREATE TABLE public.project_export_jobs ( exported_by_admin boolean DEFAULT false ); - --- --- Name: project_export_jobs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_export_jobs_id_seq +CREATE SEQUENCE project_export_jobs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_export_jobs_id_seq OWNED BY project_export_jobs.id; --- --- Name: project_export_jobs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_export_jobs_id_seq OWNED BY public.project_export_jobs.id; - - --- --- Name: project_feature_usages; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_feature_usages ( +CREATE TABLE project_feature_usages ( project_id integer NOT NULL, jira_dvcs_cloud_last_sync_at timestamp without time zone, jira_dvcs_server_last_sync_at timestamp without time zone ); - --- --- Name: project_features; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_features ( +CREATE TABLE project_features ( id integer NOT NULL, project_id integer NOT NULL, merge_requests_access_level integer, @@ -25418,31 +16360,16 @@ CREATE TABLE public.project_features ( model_registry_access_level integer DEFAULT 20 NOT NULL ); - --- --- Name: project_features_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_features_id_seq +CREATE SEQUENCE project_features_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_features_id_seq OWNED BY project_features.id; --- --- Name: project_features_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_features_id_seq OWNED BY public.project_features.id; - - --- --- Name: project_group_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_group_links ( +CREATE TABLE project_group_links ( id integer NOT NULL, project_id integer NOT NULL, group_id integer NOT NULL, @@ -25452,31 +16379,16 @@ CREATE TABLE public.project_group_links ( expires_at date ); - --- --- Name: project_group_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_group_links_id_seq +CREATE SEQUENCE project_group_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_group_links_id_seq OWNED BY project_group_links.id; --- --- Name: project_group_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_group_links_id_seq OWNED BY public.project_group_links.id; - - --- --- Name: project_import_data; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_import_data ( +CREATE TABLE project_import_data ( id integer NOT NULL, project_id integer, data text, @@ -25485,31 +16397,16 @@ CREATE TABLE public.project_import_data ( encrypted_credentials_salt character varying ); - --- --- Name: project_import_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_import_data_id_seq +CREATE SEQUENCE project_import_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_import_data_id_seq OWNED BY project_import_data.id; --- --- Name: project_import_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_import_data_id_seq OWNED BY public.project_import_data.id; - - --- --- Name: project_incident_management_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_incident_management_settings ( +CREATE TABLE project_incident_management_settings ( project_id integer NOT NULL, create_issue boolean DEFAULT false NOT NULL, send_email boolean DEFAULT false NOT NULL, @@ -25524,42 +16421,22 @@ CREATE TABLE public.project_incident_management_settings ( CONSTRAINT pagerduty_token_length_constraint CHECK ((octet_length(encrypted_pagerduty_token) <= 255)) ); - --- --- Name: project_incident_management_settings_project_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_incident_management_settings_project_id_seq +CREATE SEQUENCE project_incident_management_settings_project_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_incident_management_settings_project_id_seq OWNED BY project_incident_management_settings.project_id; --- --- Name: project_incident_management_settings_project_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_incident_management_settings_project_id_seq OWNED BY public.project_incident_management_settings.project_id; - - --- --- Name: project_metrics_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_metrics_settings ( +CREATE TABLE project_metrics_settings ( project_id integer NOT NULL, external_dashboard_url character varying, dashboard_timezone smallint DEFAULT 0 NOT NULL ); - --- --- Name: project_mirror_data; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_mirror_data ( +CREATE TABLE project_mirror_data ( id integer NOT NULL, project_id integer NOT NULL, retry_count integer DEFAULT 0 NOT NULL, @@ -25575,43 +16452,23 @@ CREATE TABLE public.project_mirror_data ( checksums jsonb DEFAULT '{}'::jsonb NOT NULL ); - --- --- Name: project_mirror_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_mirror_data_id_seq +CREATE SEQUENCE project_mirror_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_mirror_data_id_seq OWNED BY project_mirror_data.id; --- --- Name: project_mirror_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_mirror_data_id_seq OWNED BY public.project_mirror_data.id; - - --- --- Name: project_pages_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_pages_metadata ( +CREATE TABLE project_pages_metadata ( project_id bigint NOT NULL, deployed boolean DEFAULT false NOT NULL, pages_deployment_id bigint, onboarding_complete boolean DEFAULT false NOT NULL ); - --- --- Name: project_relation_export_uploads; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_relation_export_uploads ( +CREATE TABLE project_relation_export_uploads ( id bigint NOT NULL, project_relation_export_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -25620,31 +16477,16 @@ CREATE TABLE public.project_relation_export_uploads ( CONSTRAINT check_d8ee243e9e CHECK ((char_length(export_file) <= 255)) ); - --- --- Name: project_relation_export_uploads_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_relation_export_uploads_id_seq +CREATE SEQUENCE project_relation_export_uploads_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_relation_export_uploads_id_seq OWNED BY project_relation_export_uploads.id; --- --- Name: project_relation_export_uploads_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_relation_export_uploads_id_seq OWNED BY public.project_relation_export_uploads.id; - - --- --- Name: project_relation_exports; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_relation_exports ( +CREATE TABLE project_relation_exports ( id bigint NOT NULL, project_export_job_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -25659,31 +16501,16 @@ CREATE TABLE public.project_relation_exports ( CONSTRAINT check_dbd1cf73d0 CHECK ((char_length(export_error) <= 300)) ); - --- --- Name: project_relation_exports_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_relation_exports_id_seq +CREATE SEQUENCE project_relation_exports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_relation_exports_id_seq OWNED BY project_relation_exports.id; --- --- Name: project_relation_exports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_relation_exports_id_seq OWNED BY public.project_relation_exports.id; - - --- --- Name: project_repositories; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_repositories ( +CREATE TABLE project_repositories ( id bigint NOT NULL, shard_id integer NOT NULL, disk_path character varying NOT NULL, @@ -25691,31 +16518,16 @@ CREATE TABLE public.project_repositories ( object_format smallint DEFAULT 0 NOT NULL ); - --- --- Name: project_repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_repositories_id_seq +CREATE SEQUENCE project_repositories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_repositories_id_seq OWNED BY project_repositories.id; --- --- Name: project_repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_repositories_id_seq OWNED BY public.project_repositories.id; - - --- --- Name: project_repository_storage_moves; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_repository_storage_moves ( +CREATE TABLE project_repository_storage_moves ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -25729,31 +16541,16 @@ CREATE TABLE public.project_repository_storage_moves ( CONSTRAINT project_repository_storage_moves_source_storage_name CHECK ((char_length(source_storage_name) <= 255)) ); - --- --- Name: project_repository_storage_moves_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_repository_storage_moves_id_seq +CREATE SEQUENCE project_repository_storage_moves_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_repository_storage_moves_id_seq OWNED BY project_repository_storage_moves.id; --- --- Name: project_repository_storage_moves_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_repository_storage_moves_id_seq OWNED BY public.project_repository_storage_moves.id; - - --- --- Name: project_saved_replies; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_saved_replies ( +CREATE TABLE project_saved_replies ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -25764,31 +16561,16 @@ CREATE TABLE public.project_saved_replies ( CONSTRAINT check_a3993908da CHECK ((char_length(name) <= 255)) ); - --- --- Name: project_saved_replies_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_saved_replies_id_seq +CREATE SEQUENCE project_saved_replies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_saved_replies_id_seq OWNED BY project_saved_replies.id; --- --- Name: project_saved_replies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_saved_replies_id_seq OWNED BY public.project_saved_replies.id; - - --- --- Name: project_secrets_managers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_secrets_managers ( +CREATE TABLE project_secrets_managers ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -25796,31 +16578,16 @@ CREATE TABLE public.project_secrets_managers ( status smallint DEFAULT 0 NOT NULL ); - --- --- Name: project_secrets_managers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_secrets_managers_id_seq +CREATE SEQUENCE project_secrets_managers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_secrets_managers_id_seq OWNED BY project_secrets_managers.id; --- --- Name: project_secrets_managers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_secrets_managers_id_seq OWNED BY public.project_secrets_managers.id; - - --- --- Name: project_security_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_security_settings ( +CREATE TABLE project_security_settings ( project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -25833,31 +16600,16 @@ CREATE TABLE public.project_security_settings ( pre_receive_secret_detection_enabled boolean DEFAULT false NOT NULL ); - --- --- Name: project_security_settings_project_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_security_settings_project_id_seq +CREATE SEQUENCE project_security_settings_project_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_security_settings_project_id_seq OWNED BY project_security_settings.project_id; --- --- Name: project_security_settings_project_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_security_settings_project_id_seq OWNED BY public.project_security_settings.project_id; - - --- --- Name: project_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_settings ( +CREATE TABLE project_settings ( project_id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -25912,12 +16664,7 @@ CREATE TABLE public.project_settings ( CONSTRAINT check_f9df7bcee2 CHECK ((char_length(cube_api_base_url) <= 512)) ); - --- --- Name: project_states; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_states ( +CREATE TABLE project_states ( id bigint NOT NULL, verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, @@ -25930,31 +16677,16 @@ CREATE TABLE public.project_states ( CONSTRAINT check_0d5a9e7bde CHECK ((char_length(verification_failure) <= 255)) ); - --- --- Name: project_states_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_states_id_seq +CREATE SEQUENCE project_states_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_states_id_seq OWNED BY project_states.id; --- --- Name: project_states_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_states_id_seq OWNED BY public.project_states.id; - - --- --- Name: project_statistics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_statistics ( +CREATE TABLE project_statistics ( id integer NOT NULL, project_id integer NOT NULL, namespace_id integer NOT NULL, @@ -25977,31 +16709,16 @@ CREATE TABLE public.project_statistics ( vulnerability_count integer DEFAULT 0 NOT NULL ); - --- --- Name: project_statistics_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_statistics_id_seq +CREATE SEQUENCE project_statistics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_statistics_id_seq OWNED BY project_statistics.id; --- --- Name: project_statistics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_statistics_id_seq OWNED BY public.project_statistics.id; - - --- --- Name: project_topics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_topics ( +CREATE TABLE project_topics ( id bigint NOT NULL, project_id bigint NOT NULL, topic_id bigint NOT NULL, @@ -26009,129 +16726,64 @@ CREATE TABLE public.project_topics ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: project_topics_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_topics_id_seq +CREATE SEQUENCE project_topics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_topics_id_seq OWNED BY project_topics.id; --- --- Name: project_topics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_topics_id_seq OWNED BY public.project_topics.id; - - --- --- Name: project_wiki_repositories; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.project_wiki_repositories ( +CREATE TABLE project_wiki_repositories ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL ); - --- --- Name: project_wiki_repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.project_wiki_repositories_id_seq +CREATE SEQUENCE project_wiki_repositories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE project_wiki_repositories_id_seq OWNED BY project_wiki_repositories.id; --- --- Name: project_wiki_repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.project_wiki_repositories_id_seq OWNED BY public.project_wiki_repositories.id; - - --- --- Name: projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.projects_id_seq +CREATE SEQUENCE projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE projects_id_seq OWNED BY projects.id; --- --- Name: projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.projects_id_seq OWNED BY public.projects.id; - - --- --- Name: projects_sync_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.projects_sync_events ( +CREATE TABLE projects_sync_events ( id bigint NOT NULL, project_id bigint NOT NULL ); - --- --- Name: projects_sync_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.projects_sync_events_id_seq +CREATE SEQUENCE projects_sync_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE projects_sync_events_id_seq OWNED BY projects_sync_events.id; --- --- Name: projects_sync_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.projects_sync_events_id_seq OWNED BY public.projects_sync_events.id; - - --- --- Name: projects_visits_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.projects_visits_id_seq +CREATE SEQUENCE projects_visits_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE projects_visits_id_seq OWNED BY projects_visits.id; --- --- Name: projects_visits_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.projects_visits_id_seq OWNED BY public.projects_visits.id; - - --- --- Name: prometheus_alert_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.prometheus_alert_events ( +CREATE TABLE prometheus_alert_events ( id bigint NOT NULL, project_id integer NOT NULL, prometheus_alert_id integer NOT NULL, @@ -26141,31 +16793,16 @@ CREATE TABLE public.prometheus_alert_events ( payload_key character varying ); - --- --- Name: prometheus_alert_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.prometheus_alert_events_id_seq +CREATE SEQUENCE prometheus_alert_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE prometheus_alert_events_id_seq OWNED BY prometheus_alert_events.id; --- --- Name: prometheus_alert_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.prometheus_alert_events_id_seq OWNED BY public.prometheus_alert_events.id; - - --- --- Name: prometheus_alerts; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.prometheus_alerts ( +CREATE TABLE prometheus_alerts ( id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -26178,31 +16815,16 @@ CREATE TABLE public.prometheus_alerts ( CONSTRAINT check_cb76d7e629 CHECK ((char_length(runbook_url) <= 255)) ); - --- --- Name: prometheus_alerts_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.prometheus_alerts_id_seq +CREATE SEQUENCE prometheus_alerts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE prometheus_alerts_id_seq OWNED BY prometheus_alerts.id; --- --- Name: prometheus_alerts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.prometheus_alerts_id_seq OWNED BY public.prometheus_alerts.id; - - --- --- Name: prometheus_metrics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.prometheus_metrics ( +CREATE TABLE prometheus_metrics ( id integer NOT NULL, project_id integer, title character varying NOT NULL, @@ -26219,31 +16841,16 @@ CREATE TABLE public.prometheus_metrics ( CONSTRAINT check_0ad9f01463 CHECK ((char_length(dashboard_path) <= 2048)) ); - --- --- Name: prometheus_metrics_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.prometheus_metrics_id_seq +CREATE SEQUENCE prometheus_metrics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE prometheus_metrics_id_seq OWNED BY prometheus_metrics.id; --- --- Name: prometheus_metrics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.prometheus_metrics_id_seq OWNED BY public.prometheus_metrics.id; - - --- --- Name: protected_branch_merge_access_levels; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.protected_branch_merge_access_levels ( +CREATE TABLE protected_branch_merge_access_levels ( id integer NOT NULL, protected_branch_id integer NOT NULL, access_level integer DEFAULT 40, @@ -26253,31 +16860,16 @@ CREATE TABLE public.protected_branch_merge_access_levels ( group_id integer ); - --- --- Name: protected_branch_merge_access_levels_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.protected_branch_merge_access_levels_id_seq +CREATE SEQUENCE protected_branch_merge_access_levels_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE protected_branch_merge_access_levels_id_seq OWNED BY protected_branch_merge_access_levels.id; --- --- Name: protected_branch_merge_access_levels_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.protected_branch_merge_access_levels_id_seq OWNED BY public.protected_branch_merge_access_levels.id; - - --- --- Name: protected_branch_push_access_levels; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.protected_branch_push_access_levels ( +CREATE TABLE protected_branch_push_access_levels ( id integer NOT NULL, protected_branch_id integer NOT NULL, access_level integer DEFAULT 40, @@ -26288,31 +16880,16 @@ CREATE TABLE public.protected_branch_push_access_levels ( deploy_key_id integer ); - --- --- Name: protected_branch_push_access_levels_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.protected_branch_push_access_levels_id_seq +CREATE SEQUENCE protected_branch_push_access_levels_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE protected_branch_push_access_levels_id_seq OWNED BY protected_branch_push_access_levels.id; --- --- Name: protected_branch_push_access_levels_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.protected_branch_push_access_levels_id_seq OWNED BY public.protected_branch_push_access_levels.id; - - --- --- Name: protected_branch_unprotect_access_levels; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.protected_branch_unprotect_access_levels ( +CREATE TABLE protected_branch_unprotect_access_levels ( id integer NOT NULL, protected_branch_id integer NOT NULL, access_level integer DEFAULT 40, @@ -26320,31 +16897,16 @@ CREATE TABLE public.protected_branch_unprotect_access_levels ( group_id integer ); - --- --- Name: protected_branch_unprotect_access_levels_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.protected_branch_unprotect_access_levels_id_seq +CREATE SEQUENCE protected_branch_unprotect_access_levels_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE protected_branch_unprotect_access_levels_id_seq OWNED BY protected_branch_unprotect_access_levels.id; --- --- Name: protected_branch_unprotect_access_levels_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.protected_branch_unprotect_access_levels_id_seq OWNED BY public.protected_branch_unprotect_access_levels.id; - - --- --- Name: protected_branches; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.protected_branches ( +CREATE TABLE protected_branches ( id integer NOT NULL, project_id integer, name character varying NOT NULL, @@ -26356,31 +16918,16 @@ CREATE TABLE public.protected_branches ( CONSTRAINT protected_branches_project_id_namespace_id_any_not_null CHECK (((project_id IS NULL) <> (namespace_id IS NULL))) ); - --- --- Name: protected_branches_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.protected_branches_id_seq +CREATE SEQUENCE protected_branches_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE protected_branches_id_seq OWNED BY protected_branches.id; --- --- Name: protected_branches_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.protected_branches_id_seq OWNED BY public.protected_branches.id; - - --- --- Name: protected_environment_approval_rules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.protected_environment_approval_rules ( +CREATE TABLE protected_environment_approval_rules ( id bigint NOT NULL, protected_environment_id bigint NOT NULL, user_id bigint, @@ -26396,31 +16943,16 @@ CREATE TABLE public.protected_environment_approval_rules ( CONSTRAINT chk_rails_cfa90ae3b5 CHECK ((required_approvals > 0)) ); - --- --- Name: protected_environment_approval_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.protected_environment_approval_rules_id_seq +CREATE SEQUENCE protected_environment_approval_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE protected_environment_approval_rules_id_seq OWNED BY protected_environment_approval_rules.id; --- --- Name: protected_environment_approval_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.protected_environment_approval_rules_id_seq OWNED BY public.protected_environment_approval_rules.id; - - --- --- Name: protected_environment_deploy_access_levels; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.protected_environment_deploy_access_levels ( +CREATE TABLE protected_environment_deploy_access_levels ( id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -26434,31 +16966,16 @@ CREATE TABLE public.protected_environment_deploy_access_levels ( CONSTRAINT check_deploy_access_levels_user_group_access_level_any_not_null CHECK ((num_nonnulls(user_id, group_id, access_level) = 1)) ); - --- --- Name: protected_environment_deploy_access_levels_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.protected_environment_deploy_access_levels_id_seq +CREATE SEQUENCE protected_environment_deploy_access_levels_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE protected_environment_deploy_access_levels_id_seq OWNED BY protected_environment_deploy_access_levels.id; --- --- Name: protected_environment_deploy_access_levels_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.protected_environment_deploy_access_levels_id_seq OWNED BY public.protected_environment_deploy_access_levels.id; - - --- --- Name: protected_environments; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.protected_environments ( +CREATE TABLE protected_environments ( id integer NOT NULL, project_id integer, created_at timestamp with time zone NOT NULL, @@ -26470,31 +16987,16 @@ CREATE TABLE public.protected_environments ( CONSTRAINT protected_environments_required_approval_count_positive CHECK ((required_approval_count >= 0)) ); - --- --- Name: protected_environments_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.protected_environments_id_seq +CREATE SEQUENCE protected_environments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE protected_environments_id_seq OWNED BY protected_environments.id; --- --- Name: protected_environments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.protected_environments_id_seq OWNED BY public.protected_environments.id; - - --- --- Name: protected_tag_create_access_levels; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.protected_tag_create_access_levels ( +CREATE TABLE protected_tag_create_access_levels ( id integer NOT NULL, protected_tag_id integer NOT NULL, access_level integer DEFAULT 40, @@ -26506,31 +17008,16 @@ CREATE TABLE public.protected_tag_create_access_levels ( project_id bigint ); - --- --- Name: protected_tag_create_access_levels_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.protected_tag_create_access_levels_id_seq +CREATE SEQUENCE protected_tag_create_access_levels_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE protected_tag_create_access_levels_id_seq OWNED BY protected_tag_create_access_levels.id; --- --- Name: protected_tag_create_access_levels_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.protected_tag_create_access_levels_id_seq OWNED BY public.protected_tag_create_access_levels.id; - - --- --- Name: protected_tags; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.protected_tags ( +CREATE TABLE protected_tags ( id integer NOT NULL, project_id integer NOT NULL, name character varying NOT NULL, @@ -26538,31 +17025,16 @@ CREATE TABLE public.protected_tags ( updated_at timestamp without time zone NOT NULL ); - --- --- Name: protected_tags_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.protected_tags_id_seq +CREATE SEQUENCE protected_tags_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE protected_tags_id_seq OWNED BY protected_tags.id; --- --- Name: protected_tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.protected_tags_id_seq OWNED BY public.protected_tags.id; - - --- --- Name: push_event_payloads; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.push_event_payloads ( +CREATE TABLE push_event_payloads ( commit_count bigint NOT NULL, action smallint NOT NULL, ref_type smallint NOT NULL, @@ -26574,12 +17046,7 @@ CREATE TABLE public.push_event_payloads ( event_id bigint NOT NULL ); - --- --- Name: push_rules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.push_rules ( +CREATE TABLE push_rules ( id integer NOT NULL, force_push_regex character varying, delete_branch_regex character varying, @@ -26611,31 +17078,16 @@ CREATE TABLE public.push_rules ( CONSTRAINT force_push_regex_size_constraint CHECK ((char_length((force_push_regex)::text) <= 511)) ); - --- --- Name: push_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.push_rules_id_seq +CREATE SEQUENCE push_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE push_rules_id_seq OWNED BY push_rules.id; --- --- Name: push_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.push_rules_id_seq OWNED BY public.push_rules.id; - - --- --- Name: raw_usage_data; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.raw_usage_data ( +CREATE TABLE raw_usage_data ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -26646,31 +17098,16 @@ CREATE TABLE public.raw_usage_data ( organization_id bigint DEFAULT 1 NOT NULL ); - --- --- Name: raw_usage_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.raw_usage_data_id_seq +CREATE SEQUENCE raw_usage_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE raw_usage_data_id_seq OWNED BY raw_usage_data.id; --- --- Name: raw_usage_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.raw_usage_data_id_seq OWNED BY public.raw_usage_data.id; - - --- --- Name: redirect_routes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.redirect_routes ( +CREATE TABLE redirect_routes ( id integer NOT NULL, source_id integer NOT NULL, source_type character varying NOT NULL, @@ -26679,31 +17116,16 @@ CREATE TABLE public.redirect_routes ( updated_at timestamp without time zone NOT NULL ); - --- --- Name: redirect_routes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.redirect_routes_id_seq +CREATE SEQUENCE redirect_routes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE redirect_routes_id_seq OWNED BY redirect_routes.id; --- --- Name: redirect_routes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.redirect_routes_id_seq OWNED BY public.redirect_routes.id; - - --- --- Name: related_epic_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.related_epic_links ( +CREATE TABLE related_epic_links ( id bigint NOT NULL, source_id bigint NOT NULL, target_id bigint NOT NULL, @@ -26713,31 +17135,16 @@ CREATE TABLE public.related_epic_links ( group_id bigint ); - --- --- Name: related_epic_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.related_epic_links_id_seq +CREATE SEQUENCE related_epic_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE related_epic_links_id_seq OWNED BY related_epic_links.id; --- --- Name: related_epic_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.related_epic_links_id_seq OWNED BY public.related_epic_links.id; - - --- --- Name: relation_import_trackers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.relation_import_trackers ( +CREATE TABLE relation_import_trackers ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -26746,31 +17153,16 @@ CREATE TABLE public.relation_import_trackers ( status smallint DEFAULT 0 NOT NULL ); - --- --- Name: relation_import_trackers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.relation_import_trackers_id_seq +CREATE SEQUENCE relation_import_trackers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE relation_import_trackers_id_seq OWNED BY relation_import_trackers.id; --- --- Name: relation_import_trackers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.relation_import_trackers_id_seq OWNED BY public.relation_import_trackers.id; - - --- --- Name: release_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.release_links ( +CREATE TABLE release_links ( id bigint NOT NULL, release_id integer NOT NULL, url character varying NOT NULL, @@ -26782,31 +17174,16 @@ CREATE TABLE public.release_links ( project_id bigint ); - --- --- Name: release_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.release_links_id_seq +CREATE SEQUENCE release_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE release_links_id_seq OWNED BY release_links.id; --- --- Name: release_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.release_links_id_seq OWNED BY public.release_links.id; - - --- --- Name: releases; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.releases ( +CREATE TABLE releases ( id integer NOT NULL, tag character varying, description text, @@ -26823,31 +17200,16 @@ CREATE TABLE public.releases ( CONSTRAINT check_6bb9ce4925 CHECK ((project_id IS NOT NULL)) ); - --- --- Name: releases_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.releases_id_seq +CREATE SEQUENCE releases_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE releases_id_seq OWNED BY releases.id; --- --- Name: releases_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.releases_id_seq OWNED BY public.releases.id; - - --- --- Name: remote_development_agent_configs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.remote_development_agent_configs ( +CREATE TABLE remote_development_agent_configs ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -26868,31 +17230,16 @@ CREATE TABLE public.remote_development_agent_configs ( CONSTRAINT check_9f5cd54d1c CHECK ((char_length(dns_zone) <= 256)) ); - --- --- Name: remote_development_agent_configs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.remote_development_agent_configs_id_seq +CREATE SEQUENCE remote_development_agent_configs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE remote_development_agent_configs_id_seq OWNED BY remote_development_agent_configs.id; --- --- Name: remote_development_agent_configs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.remote_development_agent_configs_id_seq OWNED BY public.remote_development_agent_configs.id; - - --- --- Name: remote_development_namespace_cluster_agent_mappings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.remote_development_namespace_cluster_agent_mappings ( +CREATE TABLE remote_development_namespace_cluster_agent_mappings ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -26901,31 +17248,16 @@ CREATE TABLE public.remote_development_namespace_cluster_agent_mappings ( creator_id bigint ); - --- --- Name: remote_development_namespace_cluster_agent_mappings_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.remote_development_namespace_cluster_agent_mappings_id_seq +CREATE SEQUENCE remote_development_namespace_cluster_agent_mappings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE remote_development_namespace_cluster_agent_mappings_id_seq OWNED BY remote_development_namespace_cluster_agent_mappings.id; --- --- Name: remote_development_namespace_cluster_agent_mappings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.remote_development_namespace_cluster_agent_mappings_id_seq OWNED BY public.remote_development_namespace_cluster_agent_mappings.id; - - --- --- Name: remote_mirrors; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.remote_mirrors ( +CREATE TABLE remote_mirrors ( id integer NOT NULL, project_id integer, url character varying, @@ -26949,73 +17281,38 @@ CREATE TABLE public.remote_mirrors ( CONSTRAINT check_aa6b497785 CHECK ((char_length(mirror_branch_regex) <= 255)) ); - --- --- Name: remote_mirrors_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.remote_mirrors_id_seq +CREATE SEQUENCE remote_mirrors_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE remote_mirrors_id_seq OWNED BY remote_mirrors.id; --- --- Name: remote_mirrors_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.remote_mirrors_id_seq OWNED BY public.remote_mirrors.id; - - --- --- Name: repository_languages; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.repository_languages ( +CREATE TABLE repository_languages ( project_id integer NOT NULL, programming_language_id integer NOT NULL, share double precision NOT NULL ); - --- --- Name: required_code_owners_sections; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.required_code_owners_sections ( +CREATE TABLE required_code_owners_sections ( id bigint NOT NULL, protected_branch_id bigint NOT NULL, name text NOT NULL, CONSTRAINT check_e58d53741e CHECK ((char_length(name) <= 1024)) ); - --- --- Name: required_code_owners_sections_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.required_code_owners_sections_id_seq +CREATE SEQUENCE required_code_owners_sections_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE required_code_owners_sections_id_seq OWNED BY required_code_owners_sections.id; --- --- Name: required_code_owners_sections_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.required_code_owners_sections_id_seq OWNED BY public.required_code_owners_sections.id; - - --- --- Name: requirements; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.requirements ( +CREATE TABLE requirements ( id bigint NOT NULL, project_id integer NOT NULL, iid integer NOT NULL, @@ -27023,31 +17320,16 @@ CREATE TABLE public.requirements ( CONSTRAINT check_requirement_issue_not_null CHECK ((issue_id IS NOT NULL)) ); - --- --- Name: requirements_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.requirements_id_seq +CREATE SEQUENCE requirements_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE requirements_id_seq OWNED BY requirements.id; --- --- Name: requirements_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.requirements_id_seq OWNED BY public.requirements.id; - - --- --- Name: requirements_management_test_reports; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.requirements_management_test_reports ( +CREATE TABLE requirements_management_test_reports ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, author_id bigint, @@ -27057,31 +17339,16 @@ CREATE TABLE public.requirements_management_test_reports ( uses_legacy_iid boolean DEFAULT true NOT NULL ); - --- --- Name: requirements_management_test_reports_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.requirements_management_test_reports_id_seq +CREATE SEQUENCE requirements_management_test_reports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE requirements_management_test_reports_id_seq OWNED BY requirements_management_test_reports.id; --- --- Name: requirements_management_test_reports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.requirements_management_test_reports_id_seq OWNED BY public.requirements_management_test_reports.id; - - --- --- Name: resource_iteration_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.resource_iteration_events ( +CREATE TABLE resource_iteration_events ( id bigint NOT NULL, user_id bigint NOT NULL, issue_id bigint, @@ -27091,31 +17358,16 @@ CREATE TABLE public.resource_iteration_events ( action smallint NOT NULL ); - --- --- Name: resource_iteration_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.resource_iteration_events_id_seq +CREATE SEQUENCE resource_iteration_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE resource_iteration_events_id_seq OWNED BY resource_iteration_events.id; --- --- Name: resource_iteration_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.resource_iteration_events_id_seq OWNED BY public.resource_iteration_events.id; - - --- --- Name: resource_label_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.resource_label_events ( +CREATE TABLE resource_label_events ( id bigint NOT NULL, action integer NOT NULL, issue_id integer, @@ -27130,31 +17382,16 @@ CREATE TABLE public.resource_label_events ( imported_from smallint DEFAULT 0 NOT NULL ); - --- --- Name: resource_label_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.resource_label_events_id_seq +CREATE SEQUENCE resource_label_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE resource_label_events_id_seq OWNED BY resource_label_events.id; --- --- Name: resource_label_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.resource_label_events_id_seq OWNED BY public.resource_label_events.id; - - --- --- Name: resource_link_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.resource_link_events ( +CREATE TABLE resource_link_events ( id bigint NOT NULL, action smallint NOT NULL, user_id bigint NOT NULL, @@ -27164,31 +17401,16 @@ CREATE TABLE public.resource_link_events ( system_note_metadata_id bigint ); - --- --- Name: resource_link_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.resource_link_events_id_seq +CREATE SEQUENCE resource_link_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE resource_link_events_id_seq OWNED BY resource_link_events.id; --- --- Name: resource_link_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.resource_link_events_id_seq OWNED BY public.resource_link_events.id; - - --- --- Name: resource_milestone_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.resource_milestone_events ( +CREATE TABLE resource_milestone_events ( id bigint NOT NULL, user_id bigint, issue_id bigint, @@ -27200,31 +17422,16 @@ CREATE TABLE public.resource_milestone_events ( imported_from smallint DEFAULT 0 NOT NULL ); - --- --- Name: resource_milestone_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.resource_milestone_events_id_seq +CREATE SEQUENCE resource_milestone_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE resource_milestone_events_id_seq OWNED BY resource_milestone_events.id; --- --- Name: resource_milestone_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.resource_milestone_events_id_seq OWNED BY public.resource_milestone_events.id; - - --- --- Name: resource_state_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.resource_state_events ( +CREATE TABLE resource_state_events ( id bigint NOT NULL, user_id bigint, issue_id bigint, @@ -27241,31 +17448,16 @@ CREATE TABLE public.resource_state_events ( CONSTRAINT state_events_must_belong_to_issue_or_merge_request_or_epic CHECK ((((issue_id <> NULL::bigint) AND (merge_request_id IS NULL) AND (epic_id IS NULL)) OR ((issue_id IS NULL) AND (merge_request_id <> NULL::bigint) AND (epic_id IS NULL)) OR ((issue_id IS NULL) AND (merge_request_id IS NULL) AND (epic_id <> NULL::integer)))) ); - --- --- Name: resource_state_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.resource_state_events_id_seq +CREATE SEQUENCE resource_state_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE resource_state_events_id_seq OWNED BY resource_state_events.id; --- --- Name: resource_state_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.resource_state_events_id_seq OWNED BY public.resource_state_events.id; - - --- --- Name: resource_weight_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.resource_weight_events ( +CREATE TABLE resource_weight_events ( id bigint NOT NULL, user_id bigint, issue_id bigint NOT NULL, @@ -27274,31 +17466,16 @@ CREATE TABLE public.resource_weight_events ( previous_weight integer ); - --- --- Name: resource_weight_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.resource_weight_events_id_seq +CREATE SEQUENCE resource_weight_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE resource_weight_events_id_seq OWNED BY resource_weight_events.id; --- --- Name: resource_weight_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.resource_weight_events_id_seq OWNED BY public.resource_weight_events.id; - - --- --- Name: reviews; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.reviews ( +CREATE TABLE reviews ( id bigint NOT NULL, author_id integer, merge_request_id integer NOT NULL, @@ -27306,31 +17483,16 @@ CREATE TABLE public.reviews ( created_at timestamp with time zone NOT NULL ); - --- --- Name: reviews_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.reviews_id_seq +CREATE SEQUENCE reviews_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE reviews_id_seq OWNED BY reviews.id; --- --- Name: reviews_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.reviews_id_seq OWNED BY public.reviews.id; - - --- --- Name: routes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.routes ( +CREATE TABLE routes ( id integer NOT NULL, source_id integer NOT NULL, source_type character varying NOT NULL, @@ -27342,31 +17504,16 @@ CREATE TABLE public.routes ( CONSTRAINT check_af84c6c93f CHECK ((namespace_id IS NOT NULL)) ); - --- --- Name: routes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.routes_id_seq +CREATE SEQUENCE routes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE routes_id_seq OWNED BY routes.id; --- --- Name: routes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.routes_id_seq OWNED BY public.routes.id; - - --- --- Name: saml_group_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.saml_group_links ( +CREATE TABLE saml_group_links ( id bigint NOT NULL, access_level smallint NOT NULL, group_id bigint NOT NULL, @@ -27377,31 +17524,16 @@ CREATE TABLE public.saml_group_links ( CONSTRAINT check_1b3fc49d1e CHECK ((char_length(saml_group_name) <= 255)) ); - --- --- Name: saml_group_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.saml_group_links_id_seq +CREATE SEQUENCE saml_group_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE saml_group_links_id_seq OWNED BY saml_group_links.id; --- --- Name: saml_group_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.saml_group_links_id_seq OWNED BY public.saml_group_links.id; - - --- --- Name: saml_providers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.saml_providers ( +CREATE TABLE saml_providers ( id integer NOT NULL, group_id integer NOT NULL, enabled boolean NOT NULL, @@ -27416,31 +17548,16 @@ CREATE TABLE public.saml_providers ( disable_password_authentication_for_enterprise_users boolean DEFAULT false ); - --- --- Name: saml_providers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.saml_providers_id_seq +CREATE SEQUENCE saml_providers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE saml_providers_id_seq OWNED BY saml_providers.id; --- --- Name: saml_providers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.saml_providers_id_seq OWNED BY public.saml_providers.id; - - --- --- Name: saved_replies; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.saved_replies ( +CREATE TABLE saved_replies ( id bigint NOT NULL, user_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -27451,31 +17568,16 @@ CREATE TABLE public.saved_replies ( CONSTRAINT check_2eb3366d7f CHECK ((char_length(name) <= 255)) ); - --- --- Name: saved_replies_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.saved_replies_id_seq +CREATE SEQUENCE saved_replies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE saved_replies_id_seq OWNED BY saved_replies.id; --- --- Name: saved_replies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.saved_replies_id_seq OWNED BY public.saved_replies.id; - - --- --- Name: sbom_component_versions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.sbom_component_versions ( +CREATE TABLE sbom_component_versions ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -27486,31 +17588,16 @@ CREATE TABLE public.sbom_component_versions ( CONSTRAINT check_e71cad08d3 CHECK ((char_length(version) <= 255)) ); - --- --- Name: sbom_component_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.sbom_component_versions_id_seq +CREATE SEQUENCE sbom_component_versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE sbom_component_versions_id_seq OWNED BY sbom_component_versions.id; --- --- Name: sbom_component_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.sbom_component_versions_id_seq OWNED BY public.sbom_component_versions.id; - - --- --- Name: sbom_components; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.sbom_components ( +CREATE TABLE sbom_components ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -27521,31 +17608,16 @@ CREATE TABLE public.sbom_components ( CONSTRAINT check_91a8f6ad53 CHECK ((char_length(name) <= 255)) ); - --- --- Name: sbom_components_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.sbom_components_id_seq +CREATE SEQUENCE sbom_components_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE sbom_components_id_seq OWNED BY sbom_components.id; --- --- Name: sbom_components_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.sbom_components_id_seq OWNED BY public.sbom_components.id; - - --- --- Name: sbom_occurrences; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.sbom_occurrences ( +CREATE TABLE sbom_occurrences ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -27571,31 +17643,16 @@ CREATE TABLE public.sbom_occurrences ( CONSTRAINT check_e6b8437cfe CHECK ((char_length(input_file_path) <= 1024)) ); - --- --- Name: sbom_occurrences_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.sbom_occurrences_id_seq +CREATE SEQUENCE sbom_occurrences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE sbom_occurrences_id_seq OWNED BY sbom_occurrences.id; --- --- Name: sbom_occurrences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.sbom_occurrences_id_seq OWNED BY public.sbom_occurrences.id; - - --- --- Name: sbom_occurrences_vulnerabilities; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.sbom_occurrences_vulnerabilities ( +CREATE TABLE sbom_occurrences_vulnerabilities ( id bigint NOT NULL, sbom_occurrence_id bigint NOT NULL, vulnerability_id bigint NOT NULL, @@ -27604,31 +17661,16 @@ CREATE TABLE public.sbom_occurrences_vulnerabilities ( project_id bigint ); - --- --- Name: sbom_occurrences_vulnerabilities_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.sbom_occurrences_vulnerabilities_id_seq +CREATE SEQUENCE sbom_occurrences_vulnerabilities_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE sbom_occurrences_vulnerabilities_id_seq OWNED BY sbom_occurrences_vulnerabilities.id; --- --- Name: sbom_occurrences_vulnerabilities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.sbom_occurrences_vulnerabilities_id_seq OWNED BY public.sbom_occurrences_vulnerabilities.id; - - --- --- Name: sbom_source_packages; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.sbom_source_packages ( +CREATE TABLE sbom_source_packages ( id bigint NOT NULL, name text NOT NULL, purl_type smallint NOT NULL, @@ -27638,31 +17680,16 @@ CREATE TABLE public.sbom_source_packages ( CONSTRAINT check_8fba79abed CHECK ((char_length(name) <= 255)) ); - --- --- Name: sbom_source_packages_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.sbom_source_packages_id_seq +CREATE SEQUENCE sbom_source_packages_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE sbom_source_packages_id_seq OWNED BY sbom_source_packages.id; --- --- Name: sbom_source_packages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.sbom_source_packages_id_seq OWNED BY public.sbom_source_packages.id; - - --- --- Name: sbom_sources; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.sbom_sources ( +CREATE TABLE sbom_sources ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -27671,31 +17698,16 @@ CREATE TABLE public.sbom_sources ( organization_id bigint DEFAULT 1 NOT NULL ); - --- --- Name: sbom_sources_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.sbom_sources_id_seq +CREATE SEQUENCE sbom_sources_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE sbom_sources_id_seq OWNED BY sbom_sources.id; --- --- Name: sbom_sources_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.sbom_sources_id_seq OWNED BY public.sbom_sources.id; - - --- --- Name: scan_execution_policy_rules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.scan_execution_policy_rules ( +CREATE TABLE scan_execution_policy_rules ( id bigint NOT NULL, security_policy_id bigint NOT NULL, security_policy_management_project_id bigint NOT NULL, @@ -27706,31 +17718,16 @@ CREATE TABLE public.scan_execution_policy_rules ( content jsonb DEFAULT '{}'::jsonb NOT NULL ); - --- --- Name: scan_execution_policy_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.scan_execution_policy_rules_id_seq +CREATE SEQUENCE scan_execution_policy_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE scan_execution_policy_rules_id_seq OWNED BY scan_execution_policy_rules.id; --- --- Name: scan_execution_policy_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.scan_execution_policy_rules_id_seq OWNED BY public.scan_execution_policy_rules.id; - - --- --- Name: scan_result_policies; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.scan_result_policies ( +CREATE TABLE scan_result_policies ( id bigint NOT NULL, security_orchestration_policy_configuration_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -27753,31 +17750,16 @@ CREATE TABLE public.scan_result_policies ( CONSTRAINT check_scan_result_policies_rule_idx_positive CHECK (((rule_idx IS NULL) OR (rule_idx >= 0))) ); - --- --- Name: scan_result_policies_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.scan_result_policies_id_seq +CREATE SEQUENCE scan_result_policies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE scan_result_policies_id_seq OWNED BY scan_result_policies.id; --- --- Name: scan_result_policies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.scan_result_policies_id_seq OWNED BY public.scan_result_policies.id; - - --- --- Name: scan_result_policy_violations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.scan_result_policy_violations ( +CREATE TABLE scan_result_policy_violations ( id bigint NOT NULL, scan_result_policy_id bigint, merge_request_id bigint NOT NULL, @@ -27790,41 +17772,21 @@ CREATE TABLE public.scan_result_policy_violations ( CONSTRAINT chk_policy_violations_rule_id_or_policy_id_not_null CHECK (((approval_policy_rule_id IS NOT NULL) OR (scan_result_policy_id IS NOT NULL))) ); - --- --- Name: scan_result_policy_violations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.scan_result_policy_violations_id_seq +CREATE SEQUENCE scan_result_policy_violations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE scan_result_policy_violations_id_seq OWNED BY scan_result_policy_violations.id; --- --- Name: scan_result_policy_violations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.scan_result_policy_violations_id_seq OWNED BY public.scan_result_policy_violations.id; - - --- --- Name: schema_migrations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.schema_migrations ( +CREATE TABLE schema_migrations ( version character varying NOT NULL, finished_at timestamp with time zone DEFAULT now() ); - --- --- Name: scim_identities; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.scim_identities ( +CREATE TABLE scim_identities ( id bigint NOT NULL, group_id bigint, user_id bigint NOT NULL, @@ -27834,31 +17796,16 @@ CREATE TABLE public.scim_identities ( extern_uid character varying(255) NOT NULL ); - --- --- Name: scim_identities_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.scim_identities_id_seq +CREATE SEQUENCE scim_identities_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE scim_identities_id_seq OWNED BY scim_identities.id; --- --- Name: scim_identities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.scim_identities_id_seq OWNED BY public.scim_identities.id; - - --- --- Name: scim_oauth_access_tokens; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.scim_oauth_access_tokens ( +CREATE TABLE scim_oauth_access_tokens ( id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -27866,31 +17813,16 @@ CREATE TABLE public.scim_oauth_access_tokens ( token_encrypted character varying NOT NULL ); - --- --- Name: scim_oauth_access_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.scim_oauth_access_tokens_id_seq +CREATE SEQUENCE scim_oauth_access_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE scim_oauth_access_tokens_id_seq OWNED BY scim_oauth_access_tokens.id; --- --- Name: scim_oauth_access_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.scim_oauth_access_tokens_id_seq OWNED BY public.scim_oauth_access_tokens.id; - - --- --- Name: search_indices; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.search_indices ( +CREATE TABLE search_indices ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -27903,31 +17835,16 @@ CREATE TABLE public.search_indices ( CONSTRAINT check_ab47e7ff85 CHECK ((char_length(path) <= 255)) ); - --- --- Name: search_indices_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.search_indices_id_seq +CREATE SEQUENCE search_indices_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE search_indices_id_seq OWNED BY search_indices.id; --- --- Name: search_indices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.search_indices_id_seq OWNED BY public.search_indices.id; - - --- --- Name: search_namespace_index_assignments; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.search_namespace_index_assignments ( +CREATE TABLE search_namespace_index_assignments ( id bigint NOT NULL, namespace_id bigint, search_index_id bigint NOT NULL, @@ -27939,50 +17856,25 @@ CREATE TABLE public.search_namespace_index_assignments ( CONSTRAINT check_64cf4e670a CHECK ((char_length(index_type) <= 255)) ); - --- --- Name: search_namespace_index_assignments_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.search_namespace_index_assignments_id_seq +CREATE SEQUENCE search_namespace_index_assignments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE search_namespace_index_assignments_id_seq OWNED BY search_namespace_index_assignments.id; --- --- Name: search_namespace_index_assignments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.search_namespace_index_assignments_id_seq OWNED BY public.search_namespace_index_assignments.id; - - --- --- Name: security_findings_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.security_findings_id_seq +CREATE SEQUENCE security_findings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE security_findings_id_seq OWNED BY security_findings.id; --- --- Name: security_findings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.security_findings_id_seq OWNED BY public.security_findings.id; - - --- --- Name: security_orchestration_policy_configurations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.security_orchestration_policy_configurations ( +CREATE TABLE security_orchestration_policy_configurations ( id bigint NOT NULL, project_id bigint, security_policy_management_project_id bigint NOT NULL, @@ -27993,38 +17885,18 @@ CREATE TABLE public.security_orchestration_policy_configurations ( CONSTRAINT cop_configs_project_or_namespace_existence CHECK (((project_id IS NULL) <> (namespace_id IS NULL))) ); +COMMENT ON TABLE security_orchestration_policy_configurations IS '{"owner":"group::container security","description":"Configuration used to store relationship between project and security policy repository"}'; --- --- Name: TABLE security_orchestration_policy_configurations; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON TABLE public.security_orchestration_policy_configurations IS '{"owner":"group::container security","description":"Configuration used to store relationship between project and security policy repository"}'; - - --- --- Name: security_orchestration_policy_configurations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.security_orchestration_policy_configurations_id_seq +CREATE SEQUENCE security_orchestration_policy_configurations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE security_orchestration_policy_configurations_id_seq OWNED BY security_orchestration_policy_configurations.id; --- --- Name: security_orchestration_policy_configurations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.security_orchestration_policy_configurations_id_seq OWNED BY public.security_orchestration_policy_configurations.id; - - --- --- Name: security_orchestration_policy_rule_schedules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.security_orchestration_policy_rule_schedules ( +CREATE TABLE security_orchestration_policy_rule_schedules ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -28040,38 +17912,18 @@ CREATE TABLE public.security_orchestration_policy_rule_schedules ( CONSTRAINT check_915825a76e CHECK ((char_length(cron) <= 255)) ); +COMMENT ON TABLE security_orchestration_policy_rule_schedules IS '{"owner":"group::container security","description":"Schedules used to store relationship between project and security policy repository"}'; --- --- Name: TABLE security_orchestration_policy_rule_schedules; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON TABLE public.security_orchestration_policy_rule_schedules IS '{"owner":"group::container security","description":"Schedules used to store relationship between project and security policy repository"}'; - - --- --- Name: security_orchestration_policy_rule_schedules_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.security_orchestration_policy_rule_schedules_id_seq +CREATE SEQUENCE security_orchestration_policy_rule_schedules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE security_orchestration_policy_rule_schedules_id_seq OWNED BY security_orchestration_policy_rule_schedules.id; --- --- Name: security_orchestration_policy_rule_schedules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.security_orchestration_policy_rule_schedules_id_seq OWNED BY public.security_orchestration_policy_rule_schedules.id; - - --- --- Name: security_policies; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.security_policies ( +CREATE TABLE security_policies ( id bigint NOT NULL, security_orchestration_policy_configuration_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -28093,92 +17945,47 @@ CREATE TABLE public.security_policies ( CONSTRAINT check_99c8e08928 CHECK ((char_length(description) <= 255)) ); - --- --- Name: security_policies_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.security_policies_id_seq +CREATE SEQUENCE security_policies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE security_policies_id_seq OWNED BY security_policies.id; --- --- Name: security_policies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.security_policies_id_seq OWNED BY public.security_policies.id; - - --- --- Name: security_policy_project_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.security_policy_project_links ( +CREATE TABLE security_policy_project_links ( id bigint NOT NULL, project_id bigint NOT NULL, security_policy_id bigint NOT NULL ); - --- --- Name: security_policy_project_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.security_policy_project_links_id_seq +CREATE SEQUENCE security_policy_project_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE security_policy_project_links_id_seq OWNED BY security_policy_project_links.id; --- --- Name: security_policy_project_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.security_policy_project_links_id_seq OWNED BY public.security_policy_project_links.id; - - --- --- Name: security_policy_requirements; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.security_policy_requirements ( +CREATE TABLE security_policy_requirements ( id bigint NOT NULL, compliance_framework_security_policy_id bigint NOT NULL, compliance_requirement_id bigint NOT NULL, namespace_id bigint NOT NULL ); - --- --- Name: security_policy_requirements_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.security_policy_requirements_id_seq +CREATE SEQUENCE security_policy_requirements_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE security_policy_requirements_id_seq OWNED BY security_policy_requirements.id; --- --- Name: security_policy_requirements_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.security_policy_requirements_id_seq OWNED BY public.security_policy_requirements.id; - - --- --- Name: security_scans; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.security_scans ( +CREATE TABLE security_scans ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -28192,31 +17999,16 @@ CREATE TABLE public.security_scans ( findings_partition_number integer DEFAULT 1 NOT NULL ); - --- --- Name: security_scans_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.security_scans_id_seq +CREATE SEQUENCE security_scans_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE security_scans_id_seq OWNED BY security_scans.id; --- --- Name: security_scans_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.security_scans_id_seq OWNED BY public.security_scans.id; - - --- --- Name: security_training_providers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.security_training_providers ( +CREATE TABLE security_training_providers ( id bigint NOT NULL, name text NOT NULL, description text, @@ -28230,31 +18022,16 @@ CREATE TABLE public.security_training_providers ( CONSTRAINT check_dae433eed6 CHECK ((char_length(name) <= 256)) ); - --- --- Name: security_training_providers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.security_training_providers_id_seq +CREATE SEQUENCE security_training_providers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE security_training_providers_id_seq OWNED BY security_training_providers.id; --- --- Name: security_training_providers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.security_training_providers_id_seq OWNED BY public.security_training_providers.id; - - --- --- Name: security_trainings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.security_trainings ( +CREATE TABLE security_trainings ( id bigint NOT NULL, project_id bigint NOT NULL, provider_id bigint NOT NULL, @@ -28263,31 +18040,16 @@ CREATE TABLE public.security_trainings ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: security_trainings_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.security_trainings_id_seq +CREATE SEQUENCE security_trainings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE security_trainings_id_seq OWNED BY security_trainings.id; --- --- Name: security_trainings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.security_trainings_id_seq OWNED BY public.security_trainings.id; - - --- --- Name: self_managed_prometheus_alert_events; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.self_managed_prometheus_alert_events ( +CREATE TABLE self_managed_prometheus_alert_events ( id bigint NOT NULL, project_id bigint NOT NULL, environment_id bigint, @@ -28299,31 +18061,16 @@ CREATE TABLE public.self_managed_prometheus_alert_events ( payload_key character varying(255) NOT NULL ); - --- --- Name: self_managed_prometheus_alert_events_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.self_managed_prometheus_alert_events_id_seq +CREATE SEQUENCE self_managed_prometheus_alert_events_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE self_managed_prometheus_alert_events_id_seq OWNED BY self_managed_prometheus_alert_events.id; --- --- Name: self_managed_prometheus_alert_events_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.self_managed_prometheus_alert_events_id_seq OWNED BY public.self_managed_prometheus_alert_events.id; - - --- --- Name: sent_notifications; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.sent_notifications ( +CREATE TABLE sent_notifications ( project_id integer, noteable_id integer, noteable_type character varying, @@ -28335,61 +18082,31 @@ CREATE TABLE public.sent_notifications ( issue_email_participant_id bigint ); - --- --- Name: sent_notifications_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.sent_notifications_id_seq +CREATE SEQUENCE sent_notifications_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE sent_notifications_id_seq OWNED BY sent_notifications.id; --- --- Name: sent_notifications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.sent_notifications_id_seq OWNED BY public.sent_notifications.id; - - --- --- Name: sentry_issues; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.sentry_issues ( +CREATE TABLE sentry_issues ( id bigint NOT NULL, issue_id bigint NOT NULL, sentry_issue_identifier bigint NOT NULL ); - --- --- Name: sentry_issues_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.sentry_issues_id_seq +CREATE SEQUENCE sentry_issues_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE sentry_issues_id_seq OWNED BY sentry_issues.id; --- --- Name: sentry_issues_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.sentry_issues_id_seq OWNED BY public.sentry_issues.id; - - --- --- Name: service_access_tokens; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.service_access_tokens ( +CREATE TABLE service_access_tokens ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -28398,31 +18115,16 @@ CREATE TABLE public.service_access_tokens ( expires_at timestamp with time zone NOT NULL ); - --- --- Name: service_access_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.service_access_tokens_id_seq +CREATE SEQUENCE service_access_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE service_access_tokens_id_seq OWNED BY service_access_tokens.id; --- --- Name: service_access_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.service_access_tokens_id_seq OWNED BY public.service_access_tokens.id; - - --- --- Name: service_desk_custom_email_credentials; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.service_desk_custom_email_credentials ( +CREATE TABLE service_desk_custom_email_credentials ( project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -28436,12 +18138,7 @@ CREATE TABLE public.service_desk_custom_email_credentials ( CONSTRAINT check_6dd11e956a CHECK ((char_length(smtp_address) <= 255)) ); - --- --- Name: service_desk_custom_email_verifications; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.service_desk_custom_email_verifications ( +CREATE TABLE service_desk_custom_email_verifications ( project_id bigint NOT NULL, triggerer_id bigint, created_at timestamp with time zone NOT NULL, @@ -28453,12 +18150,7 @@ CREATE TABLE public.service_desk_custom_email_verifications ( encrypted_token_iv bytea ); - --- --- Name: service_desk_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.service_desk_settings ( +CREATE TABLE service_desk_settings ( project_id bigint NOT NULL, issue_template_key character varying(255), outgoing_name character varying(255), @@ -28473,71 +18165,36 @@ CREATE TABLE public.service_desk_settings ( CONSTRAINT check_57a79552e1 CHECK ((char_length(custom_email) <= 255)) ); - --- --- Name: shards; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.shards ( +CREATE TABLE shards ( id integer NOT NULL, name character varying NOT NULL ); - --- --- Name: shards_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.shards_id_seq +CREATE SEQUENCE shards_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE shards_id_seq OWNED BY shards.id; --- --- Name: shards_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.shards_id_seq OWNED BY public.shards.id; - - --- --- Name: slack_api_scopes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.slack_api_scopes ( +CREATE TABLE slack_api_scopes ( id bigint NOT NULL, name text NOT NULL, CONSTRAINT check_738678187a CHECK ((char_length(name) <= 100)) ); - --- --- Name: slack_api_scopes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.slack_api_scopes_id_seq +CREATE SEQUENCE slack_api_scopes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE slack_api_scopes_id_seq OWNED BY slack_api_scopes.id; --- --- Name: slack_api_scopes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.slack_api_scopes_id_seq OWNED BY public.slack_api_scopes.id; - - --- --- Name: slack_integrations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.slack_integrations ( +CREATE TABLE slack_integrations ( id integer NOT NULL, team_id character varying NOT NULL, team_name character varying NOT NULL, @@ -28553,92 +18210,47 @@ CREATE TABLE public.slack_integrations ( CONSTRAINT check_c9ca9ae80d CHECK ((integration_id IS NOT NULL)) ); - --- --- Name: slack_integrations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.slack_integrations_id_seq +CREATE SEQUENCE slack_integrations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE slack_integrations_id_seq OWNED BY slack_integrations.id; --- --- Name: slack_integrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.slack_integrations_id_seq OWNED BY public.slack_integrations.id; - - --- --- Name: slack_integrations_scopes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.slack_integrations_scopes ( +CREATE TABLE slack_integrations_scopes ( id bigint NOT NULL, slack_api_scope_id bigint NOT NULL, slack_integration_id bigint NOT NULL ); - --- --- Name: slack_integrations_scopes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.slack_integrations_scopes_id_seq +CREATE SEQUENCE slack_integrations_scopes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE slack_integrations_scopes_id_seq OWNED BY slack_integrations_scopes.id; --- --- Name: slack_integrations_scopes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.slack_integrations_scopes_id_seq OWNED BY public.slack_integrations_scopes.id; - - --- --- Name: smartcard_identities; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.smartcard_identities ( +CREATE TABLE smartcard_identities ( id bigint NOT NULL, user_id integer NOT NULL, subject character varying NOT NULL, issuer character varying NOT NULL ); - --- --- Name: smartcard_identities_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.smartcard_identities_id_seq +CREATE SEQUENCE smartcard_identities_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE smartcard_identities_id_seq OWNED BY smartcard_identities.id; --- --- Name: smartcard_identities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.smartcard_identities_id_seq OWNED BY public.smartcard_identities.id; - - --- --- Name: snippet_repositories; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.snippet_repositories ( +CREATE TABLE snippet_repositories ( snippet_id bigint NOT NULL, shard_id bigint NOT NULL, disk_path character varying(80) NOT NULL, @@ -28652,12 +18264,7 @@ CREATE TABLE public.snippet_repositories ( CONSTRAINT snippet_repositories_verification_failure_text_limit CHECK ((char_length(verification_failure) <= 255)) ); - --- --- Name: snippet_repository_storage_moves; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.snippet_repository_storage_moves ( +CREATE TABLE snippet_repository_storage_moves ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -28671,43 +18278,23 @@ CREATE TABLE public.snippet_repository_storage_moves ( CONSTRAINT snippet_repository_storage_moves_source_storage_name CHECK ((char_length(source_storage_name) <= 255)) ); - --- --- Name: snippet_repository_storage_moves_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.snippet_repository_storage_moves_id_seq +CREATE SEQUENCE snippet_repository_storage_moves_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE snippet_repository_storage_moves_id_seq OWNED BY snippet_repository_storage_moves.id; --- --- Name: snippet_repository_storage_moves_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.snippet_repository_storage_moves_id_seq OWNED BY public.snippet_repository_storage_moves.id; - - --- --- Name: snippet_statistics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.snippet_statistics ( +CREATE TABLE snippet_statistics ( snippet_id bigint NOT NULL, repository_size bigint DEFAULT 0 NOT NULL, file_count bigint DEFAULT 0 NOT NULL, commit_count bigint DEFAULT 0 NOT NULL ); - --- --- Name: snippet_user_mentions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.snippet_user_mentions ( +CREATE TABLE snippet_user_mentions ( id bigint NOT NULL, snippet_id integer NOT NULL, mentioned_users_ids integer[], @@ -28716,31 +18303,16 @@ CREATE TABLE public.snippet_user_mentions ( note_id bigint ); - --- --- Name: snippet_user_mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.snippet_user_mentions_id_seq +CREATE SEQUENCE snippet_user_mentions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE snippet_user_mentions_id_seq OWNED BY snippet_user_mentions.id; --- --- Name: snippet_user_mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.snippet_user_mentions_id_seq OWNED BY public.snippet_user_mentions.id; - - --- --- Name: snippets; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.snippets ( +CREATE TABLE snippets ( id integer NOT NULL, title character varying, content text, @@ -28764,31 +18336,16 @@ CREATE TABLE public.snippets ( organization_id bigint ); - --- --- Name: snippets_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.snippets_id_seq +CREATE SEQUENCE snippets_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE snippets_id_seq OWNED BY snippets.id; --- --- Name: snippets_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.snippets_id_seq OWNED BY public.snippets.id; - - --- --- Name: software_license_policies; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.software_license_policies ( +CREATE TABLE software_license_policies ( id integer NOT NULL, project_id integer NOT NULL, software_license_id integer, @@ -28801,61 +18358,31 @@ CREATE TABLE public.software_license_policies ( CONSTRAINT check_9ba23ae4c3 CHECK ((num_nonnulls(custom_software_license_id, software_license_id) = 1)) ); - --- --- Name: software_license_policies_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.software_license_policies_id_seq +CREATE SEQUENCE software_license_policies_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE software_license_policies_id_seq OWNED BY software_license_policies.id; --- --- Name: software_license_policies_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.software_license_policies_id_seq OWNED BY public.software_license_policies.id; - - --- --- Name: software_licenses; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.software_licenses ( +CREATE TABLE software_licenses ( id integer NOT NULL, name character varying NOT NULL, spdx_identifier character varying(255) ); - --- --- Name: software_licenses_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.software_licenses_id_seq +CREATE SEQUENCE software_licenses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE software_licenses_id_seq OWNED BY software_licenses.id; --- --- Name: software_licenses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.software_licenses_id_seq OWNED BY public.software_licenses.id; - - --- --- Name: spam_logs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.spam_logs ( +CREATE TABLE spam_logs ( id integer NOT NULL, user_id integer, source_ip character varying, @@ -28870,31 +18397,16 @@ CREATE TABLE public.spam_logs ( recaptcha_verified boolean DEFAULT false NOT NULL ); - --- --- Name: spam_logs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.spam_logs_id_seq +CREATE SEQUENCE spam_logs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE spam_logs_id_seq OWNED BY spam_logs.id; --- --- Name: spam_logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.spam_logs_id_seq OWNED BY public.spam_logs.id; - - --- --- Name: sprints; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.sprints ( +CREATE TABLE sprints ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -28913,31 +18425,16 @@ CREATE TABLE public.sprints ( CONSTRAINT sprints_title CHECK ((char_length(title) <= 255)) ); - --- --- Name: sprints_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.sprints_id_seq +CREATE SEQUENCE sprints_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE sprints_id_seq OWNED BY sprints.id; --- --- Name: sprints_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.sprints_id_seq OWNED BY public.sprints.id; - - --- --- Name: ssh_signatures; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.ssh_signatures ( +CREATE TABLE ssh_signatures ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -28949,31 +18446,16 @@ CREATE TABLE public.ssh_signatures ( key_fingerprint_sha256 bytea ); - --- --- Name: ssh_signatures_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.ssh_signatures_id_seq +CREATE SEQUENCE ssh_signatures_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE ssh_signatures_id_seq OWNED BY ssh_signatures.id; --- --- Name: ssh_signatures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.ssh_signatures_id_seq OWNED BY public.ssh_signatures.id; - - --- --- Name: status_check_responses; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.status_check_responses ( +CREATE TABLE status_check_responses ( id bigint NOT NULL, merge_request_id bigint NOT NULL, external_approval_rule_id bigint, @@ -28985,62 +18467,32 @@ CREATE TABLE public.status_check_responses ( project_id bigint ); - --- --- Name: status_check_responses_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.status_check_responses_id_seq +CREATE SEQUENCE status_check_responses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE status_check_responses_id_seq OWNED BY status_check_responses.id; --- --- Name: status_check_responses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.status_check_responses_id_seq OWNED BY public.status_check_responses.id; - - --- --- Name: status_page_published_incidents; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.status_page_published_incidents ( +CREATE TABLE status_page_published_incidents ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, issue_id bigint NOT NULL ); - --- --- Name: status_page_published_incidents_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.status_page_published_incidents_id_seq +CREATE SEQUENCE status_page_published_incidents_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE status_page_published_incidents_id_seq OWNED BY status_page_published_incidents.id; --- --- Name: status_page_published_incidents_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.status_page_published_incidents_id_seq OWNED BY public.status_page_published_incidents.id; - - --- --- Name: status_page_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.status_page_settings ( +CREATE TABLE status_page_settings ( project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -29054,31 +18506,16 @@ CREATE TABLE public.status_page_settings ( CONSTRAINT check_75a79cd992 CHECK ((char_length(status_page_url) <= 1024)) ); - --- --- Name: status_page_settings_project_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.status_page_settings_project_id_seq +CREATE SEQUENCE status_page_settings_project_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE status_page_settings_project_id_seq OWNED BY status_page_settings.project_id; --- --- Name: status_page_settings_project_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.status_page_settings_project_id_seq OWNED BY public.status_page_settings.project_id; - - --- --- Name: subscription_add_on_purchases; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.subscription_add_on_purchases ( +CREATE TABLE subscription_add_on_purchases ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -29094,31 +18531,16 @@ CREATE TABLE public.subscription_add_on_purchases ( CONSTRAINT check_3313c4d200 CHECK ((char_length(purchase_xid) <= 255)) ); - --- --- Name: subscription_add_on_purchases_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.subscription_add_on_purchases_id_seq +CREATE SEQUENCE subscription_add_on_purchases_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE subscription_add_on_purchases_id_seq OWNED BY subscription_add_on_purchases.id; --- --- Name: subscription_add_on_purchases_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.subscription_add_on_purchases_id_seq OWNED BY public.subscription_add_on_purchases.id; - - --- --- Name: subscription_add_ons; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.subscription_add_ons ( +CREATE TABLE subscription_add_ons ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -29127,31 +18549,16 @@ CREATE TABLE public.subscription_add_ons ( CONSTRAINT check_4c39d15ada CHECK ((char_length(description) <= 512)) ); - --- --- Name: subscription_add_ons_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.subscription_add_ons_id_seq +CREATE SEQUENCE subscription_add_ons_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE subscription_add_ons_id_seq OWNED BY subscription_add_ons.id; --- --- Name: subscription_add_ons_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.subscription_add_ons_id_seq OWNED BY public.subscription_add_ons.id; - - --- --- Name: subscription_user_add_on_assignments; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.subscription_user_add_on_assignments ( +CREATE TABLE subscription_user_add_on_assignments ( id bigint NOT NULL, add_on_purchase_id bigint NOT NULL, user_id bigint NOT NULL, @@ -29160,31 +18567,16 @@ CREATE TABLE public.subscription_user_add_on_assignments ( organization_id bigint ); - --- --- Name: subscription_user_add_on_assignments_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.subscription_user_add_on_assignments_id_seq +CREATE SEQUENCE subscription_user_add_on_assignments_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE subscription_user_add_on_assignments_id_seq OWNED BY subscription_user_add_on_assignments.id; --- --- Name: subscription_user_add_on_assignments_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.subscription_user_add_on_assignments_id_seq OWNED BY public.subscription_user_add_on_assignments.id; - - --- --- Name: subscriptions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.subscriptions ( +CREATE TABLE subscriptions ( id integer NOT NULL, user_id integer, subscribable_id integer, @@ -29195,31 +18587,16 @@ CREATE TABLE public.subscriptions ( project_id integer ); - --- --- Name: subscriptions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.subscriptions_id_seq +CREATE SEQUENCE subscriptions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE subscriptions_id_seq OWNED BY subscriptions.id; --- --- Name: subscriptions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.subscriptions_id_seq OWNED BY public.subscriptions.id; - - --- --- Name: suggestions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.suggestions ( +CREATE TABLE suggestions ( id bigint NOT NULL, relative_order smallint NOT NULL, applied boolean DEFAULT false NOT NULL, @@ -29232,31 +18609,16 @@ CREATE TABLE public.suggestions ( note_id bigint NOT NULL ); - --- --- Name: suggestions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.suggestions_id_seq +CREATE SEQUENCE suggestions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE suggestions_id_seq OWNED BY suggestions.id; --- --- Name: suggestions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.suggestions_id_seq OWNED BY public.suggestions.id; - - --- --- Name: system_access_microsoft_applications; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.system_access_microsoft_applications ( +CREATE TABLE system_access_microsoft_applications ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -29274,31 +18636,16 @@ CREATE TABLE public.system_access_microsoft_applications ( CONSTRAINT check_ee72fb5459 CHECK ((char_length(client_xid) <= 255)) ); - --- --- Name: system_access_microsoft_applications_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.system_access_microsoft_applications_id_seq +CREATE SEQUENCE system_access_microsoft_applications_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE system_access_microsoft_applications_id_seq OWNED BY system_access_microsoft_applications.id; --- --- Name: system_access_microsoft_applications_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.system_access_microsoft_applications_id_seq OWNED BY public.system_access_microsoft_applications.id; - - --- --- Name: system_access_microsoft_graph_access_tokens; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.system_access_microsoft_graph_access_tokens ( +CREATE TABLE system_access_microsoft_graph_access_tokens ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -29308,31 +18655,16 @@ CREATE TABLE public.system_access_microsoft_graph_access_tokens ( encrypted_token_iv bytea NOT NULL ); - --- --- Name: system_access_microsoft_graph_access_tokens_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.system_access_microsoft_graph_access_tokens_id_seq +CREATE SEQUENCE system_access_microsoft_graph_access_tokens_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE system_access_microsoft_graph_access_tokens_id_seq OWNED BY system_access_microsoft_graph_access_tokens.id; --- --- Name: system_access_microsoft_graph_access_tokens_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.system_access_microsoft_graph_access_tokens_id_seq OWNED BY public.system_access_microsoft_graph_access_tokens.id; - - --- --- Name: system_note_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.system_note_metadata ( +CREATE TABLE system_note_metadata ( commit_count integer, action character varying, created_at timestamp without time zone NOT NULL, @@ -29342,31 +18674,16 @@ CREATE TABLE public.system_note_metadata ( id bigint NOT NULL ); - --- --- Name: system_note_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.system_note_metadata_id_seq +CREATE SEQUENCE system_note_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE system_note_metadata_id_seq OWNED BY system_note_metadata.id; --- --- Name: system_note_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.system_note_metadata_id_seq OWNED BY public.system_note_metadata.id; - - --- --- Name: taggings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.taggings ( +CREATE TABLE taggings ( tag_id integer, taggable_type character varying, tagger_id integer, @@ -29377,61 +18694,31 @@ CREATE TABLE public.taggings ( taggable_id bigint ); - --- --- Name: taggings_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.taggings_id_seq +CREATE SEQUENCE taggings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE taggings_id_seq OWNED BY taggings.id; --- --- Name: taggings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.taggings_id_seq OWNED BY public.taggings.id; - - --- --- Name: tags; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.tags ( +CREATE TABLE tags ( id integer NOT NULL, name character varying, taggings_count integer DEFAULT 0 ); - --- --- Name: tags_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.tags_id_seq +CREATE SEQUENCE tags_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE tags_id_seq OWNED BY tags.id; --- --- Name: tags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.tags_id_seq OWNED BY public.tags.id; - - --- --- Name: target_branch_rules; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.target_branch_rules ( +CREATE TABLE target_branch_rules ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -29441,31 +18728,16 @@ CREATE TABLE public.target_branch_rules ( CONSTRAINT check_3a0b12cf8c CHECK ((char_length(name) <= 255)) ); - --- --- Name: target_branch_rules_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.target_branch_rules_id_seq +CREATE SEQUENCE target_branch_rules_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE target_branch_rules_id_seq OWNED BY target_branch_rules.id; --- --- Name: target_branch_rules_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.target_branch_rules_id_seq OWNED BY public.target_branch_rules.id; - - --- --- Name: term_agreements; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.term_agreements ( +CREATE TABLE term_agreements ( id integer NOT NULL, term_id integer NOT NULL, user_id integer NOT NULL, @@ -29474,31 +18746,16 @@ CREATE TABLE public.term_agreements ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: term_agreements_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.term_agreements_id_seq +CREATE SEQUENCE term_agreements_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE term_agreements_id_seq OWNED BY term_agreements.id; --- --- Name: term_agreements_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.term_agreements_id_seq OWNED BY public.term_agreements.id; - - --- --- Name: terraform_state_versions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.terraform_state_versions ( +CREATE TABLE terraform_state_versions ( id bigint NOT NULL, terraform_state_id bigint NOT NULL, created_by_user_id bigint, @@ -29520,31 +18777,16 @@ CREATE TABLE public.terraform_state_versions ( CONSTRAINT tf_state_versions_verification_failure_text_limit CHECK ((char_length(verification_failure) <= 255)) ); - --- --- Name: terraform_state_versions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.terraform_state_versions_id_seq +CREATE SEQUENCE terraform_state_versions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE terraform_state_versions_id_seq OWNED BY terraform_state_versions.id; --- --- Name: terraform_state_versions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.terraform_state_versions_id_seq OWNED BY public.terraform_state_versions.id; - - --- --- Name: terraform_states; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.terraform_states ( +CREATE TABLE terraform_states ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -29561,31 +18803,16 @@ CREATE TABLE public.terraform_states ( activerecord_lock_version integer DEFAULT 0 NOT NULL ); - --- --- Name: terraform_states_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.terraform_states_id_seq +CREATE SEQUENCE terraform_states_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE terraform_states_id_seq OWNED BY terraform_states.id; --- --- Name: terraform_states_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.terraform_states_id_seq OWNED BY public.terraform_states.id; - - --- --- Name: timelog_categories; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.timelog_categories ( +CREATE TABLE timelog_categories ( id bigint NOT NULL, namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -29600,31 +18827,16 @@ CREATE TABLE public.timelog_categories ( CONSTRAINT check_c4b8aec13a CHECK ((char_length(description) <= 1024)) ); - --- --- Name: timelog_categories_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.timelog_categories_id_seq +CREATE SEQUENCE timelog_categories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE timelog_categories_id_seq OWNED BY timelog_categories.id; --- --- Name: timelog_categories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.timelog_categories_id_seq OWNED BY public.timelog_categories.id; - - --- --- Name: timelogs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.timelogs ( +CREATE TABLE timelogs ( id integer NOT NULL, time_spent integer NOT NULL, user_id integer, @@ -29640,31 +18852,16 @@ CREATE TABLE public.timelogs ( CONSTRAINT check_271d321699 CHECK ((char_length(summary) <= 255)) ); - --- --- Name: timelogs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.timelogs_id_seq +CREATE SEQUENCE timelogs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE timelogs_id_seq OWNED BY timelogs.id; --- --- Name: timelogs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.timelogs_id_seq OWNED BY public.timelogs.id; - - --- --- Name: todos; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.todos ( +CREATE TABLE todos ( id integer NOT NULL, user_id integer NOT NULL, project_id integer, @@ -29681,62 +18878,32 @@ CREATE TABLE public.todos ( note_id bigint ); - --- --- Name: todos_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.todos_id_seq +CREATE SEQUENCE todos_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE todos_id_seq OWNED BY todos.id; --- --- Name: todos_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.todos_id_seq OWNED BY public.todos.id; - - --- --- Name: token_with_ivs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.token_with_ivs ( +CREATE TABLE token_with_ivs ( id bigint NOT NULL, hashed_token bytea NOT NULL, hashed_plaintext_token bytea NOT NULL, iv bytea NOT NULL ); - --- --- Name: token_with_ivs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.token_with_ivs_id_seq +CREATE SEQUENCE token_with_ivs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE token_with_ivs_id_seq OWNED BY token_with_ivs.id; --- --- Name: token_with_ivs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.token_with_ivs_id_seq OWNED BY public.token_with_ivs.id; - - --- --- Name: topics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.topics ( +CREATE TABLE topics ( id bigint NOT NULL, name text NOT NULL, created_at timestamp with time zone NOT NULL, @@ -29754,60 +18921,30 @@ CREATE TABLE public.topics ( CONSTRAINT check_7a90d4c757 CHECK ((char_length(name) <= 255)) ); - --- --- Name: topics_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.topics_id_seq +CREATE SEQUENCE topics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE topics_id_seq OWNED BY topics.id; --- --- Name: topics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.topics_id_seq OWNED BY public.topics.id; - - --- --- Name: trending_projects; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.trending_projects ( +CREATE TABLE trending_projects ( id integer NOT NULL, project_id integer NOT NULL ); - --- --- Name: trending_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.trending_projects_id_seq +CREATE SEQUENCE trending_projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE trending_projects_id_seq OWNED BY trending_projects.id; --- --- Name: trending_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.trending_projects_id_seq OWNED BY public.trending_projects.id; - - --- --- Name: upcoming_reconciliations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.upcoming_reconciliations ( +CREATE TABLE upcoming_reconciliations ( id bigint NOT NULL, namespace_id bigint, next_reconciliation_date date NOT NULL, @@ -29817,31 +18954,16 @@ CREATE TABLE public.upcoming_reconciliations ( organization_id bigint DEFAULT 1 NOT NULL ); - --- --- Name: upcoming_reconciliations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.upcoming_reconciliations_id_seq +CREATE SEQUENCE upcoming_reconciliations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE upcoming_reconciliations_id_seq OWNED BY upcoming_reconciliations.id; --- --- Name: upcoming_reconciliations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.upcoming_reconciliations_id_seq OWNED BY public.upcoming_reconciliations.id; - - --- --- Name: upload_states; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.upload_states ( +CREATE TABLE upload_states ( verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, verified_at timestamp with time zone, @@ -29853,31 +18975,16 @@ CREATE TABLE public.upload_states ( CONSTRAINT check_7396dc8591 CHECK ((char_length(verification_failure) <= 255)) ); - --- --- Name: upload_states_upload_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.upload_states_upload_id_seq +CREATE SEQUENCE upload_states_upload_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE upload_states_upload_id_seq OWNED BY upload_states.upload_id; --- --- Name: upload_states_upload_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.upload_states_upload_id_seq OWNED BY public.upload_states.upload_id; - - --- --- Name: uploads; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.uploads ( +CREATE TABLE uploads ( id integer NOT NULL, size bigint NOT NULL, path character varying(511) NOT NULL, @@ -29894,31 +19001,16 @@ CREATE TABLE public.uploads ( CONSTRAINT check_5e9547379c CHECK ((store IS NOT NULL)) ); - --- --- Name: uploads_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.uploads_id_seq +CREATE SEQUENCE uploads_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE uploads_id_seq OWNED BY uploads.id; --- --- Name: uploads_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.uploads_id_seq OWNED BY public.uploads.id; - - --- --- Name: user_achievements; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_achievements ( +CREATE TABLE user_achievements ( id bigint NOT NULL, achievement_id bigint NOT NULL, user_id bigint NOT NULL, @@ -29932,31 +19024,16 @@ CREATE TABLE public.user_achievements ( show_on_profile boolean DEFAULT true NOT NULL ); - --- --- Name: user_achievements_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.user_achievements_id_seq +CREATE SEQUENCE user_achievements_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE user_achievements_id_seq OWNED BY user_achievements.id; --- --- Name: user_achievements_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.user_achievements_id_seq OWNED BY public.user_achievements.id; - - --- --- Name: user_agent_details; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_agent_details ( +CREATE TABLE user_agent_details ( id integer NOT NULL, user_agent character varying NOT NULL, ip_address character varying NOT NULL, @@ -29967,31 +19044,16 @@ CREATE TABLE public.user_agent_details ( updated_at timestamp without time zone NOT NULL ); - --- --- Name: user_agent_details_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.user_agent_details_id_seq +CREATE SEQUENCE user_agent_details_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE user_agent_details_id_seq OWNED BY user_agent_details.id; --- --- Name: user_agent_details_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.user_agent_details_id_seq OWNED BY public.user_agent_details.id; - - --- --- Name: user_broadcast_message_dismissals; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_broadcast_message_dismissals ( +CREATE TABLE user_broadcast_message_dismissals ( id bigint NOT NULL, user_id bigint NOT NULL, broadcast_message_id bigint NOT NULL, @@ -30000,62 +19062,32 @@ CREATE TABLE public.user_broadcast_message_dismissals ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: user_broadcast_message_dismissals_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.user_broadcast_message_dismissals_id_seq +CREATE SEQUENCE user_broadcast_message_dismissals_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE user_broadcast_message_dismissals_id_seq OWNED BY user_broadcast_message_dismissals.id; --- --- Name: user_broadcast_message_dismissals_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.user_broadcast_message_dismissals_id_seq OWNED BY public.user_broadcast_message_dismissals.id; - - --- --- Name: user_callouts; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_callouts ( +CREATE TABLE user_callouts ( id integer NOT NULL, feature_name integer NOT NULL, user_id integer NOT NULL, dismissed_at timestamp with time zone ); - --- --- Name: user_callouts_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.user_callouts_id_seq +CREATE SEQUENCE user_callouts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE user_callouts_id_seq OWNED BY user_callouts.id; --- --- Name: user_callouts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.user_callouts_id_seq OWNED BY public.user_callouts.id; - - --- --- Name: user_canonical_emails; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_canonical_emails ( +CREATE TABLE user_canonical_emails ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -30063,31 +19095,16 @@ CREATE TABLE public.user_canonical_emails ( canonical_email character varying NOT NULL ); - --- --- Name: user_canonical_emails_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.user_canonical_emails_id_seq +CREATE SEQUENCE user_canonical_emails_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE user_canonical_emails_id_seq OWNED BY user_canonical_emails.id; --- --- Name: user_canonical_emails_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.user_canonical_emails_id_seq OWNED BY public.user_canonical_emails.id; - - --- --- Name: user_credit_card_validations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_credit_card_validations ( +CREATE TABLE user_credit_card_validations ( user_id bigint NOT NULL, credit_card_validated_at timestamp with time zone NOT NULL, last_digits_hash text, @@ -30108,12 +19125,7 @@ CREATE TABLE public.user_credit_card_validations ( CONSTRAINT check_f5c35b1a6e CHECK ((char_length(last_digits_hash) <= 44)) ); - --- --- Name: user_custom_attributes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_custom_attributes ( +CREATE TABLE user_custom_attributes ( id integer NOT NULL, created_at timestamp without time zone NOT NULL, updated_at timestamp without time zone NOT NULL, @@ -30122,31 +19134,16 @@ CREATE TABLE public.user_custom_attributes ( value character varying NOT NULL ); - --- --- Name: user_custom_attributes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.user_custom_attributes_id_seq +CREATE SEQUENCE user_custom_attributes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE user_custom_attributes_id_seq OWNED BY user_custom_attributes.id; --- --- Name: user_custom_attributes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.user_custom_attributes_id_seq OWNED BY public.user_custom_attributes.id; - - --- --- Name: user_details; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_details ( +CREATE TABLE user_details ( user_id bigint NOT NULL, job_title character varying(200) DEFAULT ''::character varying NOT NULL, bio character varying(255) DEFAULT ''::character varying NOT NULL, @@ -30187,55 +19184,25 @@ CREATE TABLE public.user_details ( CONSTRAINT check_f932ed37db CHECK ((char_length(pronunciation) <= 255)) ); +COMMENT ON COLUMN user_details.phone IS 'JiHu-specific column'; --- --- Name: COLUMN user_details.phone; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.user_details.phone IS 'JiHu-specific column'; - - --- --- Name: COLUMN user_details.password_last_changed_at; Type: COMMENT; Schema: public; Owner: - --- +COMMENT ON COLUMN user_details.password_last_changed_at IS 'JiHu-specific column'; -COMMENT ON COLUMN public.user_details.password_last_changed_at IS 'JiHu-specific column'; - - --- --- Name: user_details_user_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.user_details_user_id_seq +CREATE SEQUENCE user_details_user_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE user_details_user_id_seq OWNED BY user_details.user_id; --- --- Name: user_details_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.user_details_user_id_seq OWNED BY public.user_details.user_id; - - --- --- Name: user_follow_users; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_follow_users ( +CREATE TABLE user_follow_users ( follower_id integer NOT NULL, followee_id integer NOT NULL ); - --- --- Name: user_group_callouts; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_group_callouts ( +CREATE TABLE user_group_callouts ( id bigint NOT NULL, user_id bigint NOT NULL, group_id bigint NOT NULL, @@ -30243,42 +19210,22 @@ CREATE TABLE public.user_group_callouts ( dismissed_at timestamp with time zone ); - --- --- Name: user_group_callouts_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.user_group_callouts_id_seq +CREATE SEQUENCE user_group_callouts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE user_group_callouts_id_seq OWNED BY user_group_callouts.id; --- --- Name: user_group_callouts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.user_group_callouts_id_seq OWNED BY public.user_group_callouts.id; - - --- --- Name: user_highest_roles; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_highest_roles ( +CREATE TABLE user_highest_roles ( user_id bigint NOT NULL, updated_at timestamp with time zone NOT NULL, highest_access_level integer ); - --- --- Name: user_namespace_callouts; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_namespace_callouts ( +CREATE TABLE user_namespace_callouts ( id bigint NOT NULL, user_id bigint NOT NULL, namespace_id bigint NOT NULL, @@ -30286,31 +19233,16 @@ CREATE TABLE public.user_namespace_callouts ( feature_name smallint NOT NULL ); - --- --- Name: user_namespace_callouts_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.user_namespace_callouts_id_seq +CREATE SEQUENCE user_namespace_callouts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE user_namespace_callouts_id_seq OWNED BY user_namespace_callouts.id; --- --- Name: user_namespace_callouts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.user_namespace_callouts_id_seq OWNED BY public.user_namespace_callouts.id; - - --- --- Name: user_permission_export_uploads; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_permission_export_uploads ( +CREATE TABLE user_permission_export_uploads ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -30321,31 +19253,16 @@ CREATE TABLE public.user_permission_export_uploads ( CONSTRAINT check_1956806648 CHECK ((char_length(file) <= 255)) ); - --- --- Name: user_permission_export_uploads_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.user_permission_export_uploads_id_seq +CREATE SEQUENCE user_permission_export_uploads_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE user_permission_export_uploads_id_seq OWNED BY user_permission_export_uploads.id; --- --- Name: user_permission_export_uploads_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.user_permission_export_uploads_id_seq OWNED BY public.user_permission_export_uploads.id; - - --- --- Name: user_phone_number_validations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_phone_number_validations ( +CREATE TABLE user_phone_number_validations ( user_id bigint NOT NULL, validated_at timestamp with time zone, created_at timestamp with time zone NOT NULL, @@ -30363,12 +19280,7 @@ CREATE TABLE public.user_phone_number_validations ( CONSTRAINT check_d7af4d3eb5 CHECK ((char_length(telesign_reference_xid) <= 255)) ); - --- --- Name: user_preferences; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_preferences ( +CREATE TABLE user_preferences ( id integer NOT NULL, user_id integer NOT NULL, issue_notes_filter smallint DEFAULT 0 NOT NULL, @@ -30421,31 +19333,16 @@ CREATE TABLE public.user_preferences ( CONSTRAINT check_d3248b1b9c CHECK ((tab_width IS NOT NULL)) ); - --- --- Name: user_preferences_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.user_preferences_id_seq +CREATE SEQUENCE user_preferences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE user_preferences_id_seq OWNED BY user_preferences.id; --- --- Name: user_preferences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.user_preferences_id_seq OWNED BY public.user_preferences.id; - - --- --- Name: user_project_callouts; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_project_callouts ( +CREATE TABLE user_project_callouts ( id bigint NOT NULL, user_id bigint NOT NULL, project_id bigint NOT NULL, @@ -30453,31 +19350,16 @@ CREATE TABLE public.user_project_callouts ( dismissed_at timestamp with time zone ); - --- --- Name: user_project_callouts_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.user_project_callouts_id_seq +CREATE SEQUENCE user_project_callouts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE user_project_callouts_id_seq OWNED BY user_project_callouts.id; --- --- Name: user_project_callouts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.user_project_callouts_id_seq OWNED BY public.user_project_callouts.id; - - --- --- Name: user_statuses; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_statuses ( +CREATE TABLE user_statuses ( user_id integer NOT NULL, cached_markdown_version integer, emoji character varying DEFAULT 'speech_balloon'::character varying NOT NULL, @@ -30487,31 +19369,16 @@ CREATE TABLE public.user_statuses ( clear_status_at timestamp with time zone ); - --- --- Name: user_statuses_user_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.user_statuses_user_id_seq +CREATE SEQUENCE user_statuses_user_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE user_statuses_user_id_seq OWNED BY user_statuses.user_id; --- --- Name: user_statuses_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.user_statuses_user_id_seq OWNED BY public.user_statuses.user_id; - - --- --- Name: user_synced_attributes_metadata; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.user_synced_attributes_metadata ( +CREATE TABLE user_synced_attributes_metadata ( id integer NOT NULL, name_synced boolean DEFAULT false, email_synced boolean DEFAULT false, @@ -30520,50 +19387,25 @@ CREATE TABLE public.user_synced_attributes_metadata ( provider character varying ); - --- --- Name: user_synced_attributes_metadata_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.user_synced_attributes_metadata_id_seq +CREATE SEQUENCE user_synced_attributes_metadata_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE user_synced_attributes_metadata_id_seq OWNED BY user_synced_attributes_metadata.id; --- --- Name: user_synced_attributes_metadata_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.user_synced_attributes_metadata_id_seq OWNED BY public.user_synced_attributes_metadata.id; - - --- --- Name: users_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.users_id_seq +CREATE SEQUENCE users_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE users_id_seq OWNED BY users.id; --- --- Name: users_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.users_id_seq OWNED BY public.users.id; - - --- --- Name: users_ops_dashboard_projects; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.users_ops_dashboard_projects ( +CREATE TABLE users_ops_dashboard_projects ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -30571,41 +19413,21 @@ CREATE TABLE public.users_ops_dashboard_projects ( project_id integer NOT NULL ); - --- --- Name: users_ops_dashboard_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.users_ops_dashboard_projects_id_seq +CREATE SEQUENCE users_ops_dashboard_projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE users_ops_dashboard_projects_id_seq OWNED BY users_ops_dashboard_projects.id; --- --- Name: users_ops_dashboard_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.users_ops_dashboard_projects_id_seq OWNED BY public.users_ops_dashboard_projects.id; - - --- --- Name: users_security_dashboard_projects; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.users_security_dashboard_projects ( +CREATE TABLE users_security_dashboard_projects ( user_id bigint NOT NULL, project_id bigint NOT NULL ); - --- --- Name: users_star_projects; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.users_star_projects ( +CREATE TABLE users_star_projects ( id integer NOT NULL, project_id integer NOT NULL, user_id integer NOT NULL, @@ -30613,31 +19435,16 @@ CREATE TABLE public.users_star_projects ( updated_at timestamp without time zone ); - --- --- Name: users_star_projects_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.users_star_projects_id_seq +CREATE SEQUENCE users_star_projects_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE users_star_projects_id_seq OWNED BY users_star_projects.id; --- --- Name: users_star_projects_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.users_star_projects_id_seq OWNED BY public.users_star_projects.id; - - --- --- Name: users_statistics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.users_statistics ( +CREATE TABLE users_statistics ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -30653,61 +19460,31 @@ CREATE TABLE public.users_statistics ( with_highest_role_guest_with_custom_role integer DEFAULT 0 NOT NULL ); - --- --- Name: users_statistics_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.users_statistics_id_seq +CREATE SEQUENCE users_statistics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE users_statistics_id_seq OWNED BY users_statistics.id; --- --- Name: users_statistics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.users_statistics_id_seq OWNED BY public.users_statistics.id; - - --- --- Name: value_stream_dashboard_aggregations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.value_stream_dashboard_aggregations ( +CREATE TABLE value_stream_dashboard_aggregations ( namespace_id bigint NOT NULL, last_run_at timestamp with time zone, enabled boolean DEFAULT true NOT NULL ); - --- --- Name: value_stream_dashboard_counts_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.value_stream_dashboard_counts_id_seq +CREATE SEQUENCE value_stream_dashboard_counts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE value_stream_dashboard_counts_id_seq OWNED BY value_stream_dashboard_counts.id; --- --- Name: value_stream_dashboard_counts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.value_stream_dashboard_counts_id_seq OWNED BY public.value_stream_dashboard_counts.id; - - --- --- Name: virtual_registries_packages_maven_cached_responses; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.virtual_registries_packages_maven_cached_responses ( +CREATE TABLE virtual_registries_packages_maven_cached_responses ( id bigint NOT NULL, group_id bigint NOT NULL, upstream_id bigint, @@ -30731,31 +19508,16 @@ CREATE TABLE public.virtual_registries_packages_maven_cached_responses ( CONSTRAINT check_d35a8e931f CHECK ((char_length(relative_path) <= 255)) ); - --- --- Name: virtual_registries_packages_maven_cached_responses_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.virtual_registries_packages_maven_cached_responses_id_seq +CREATE SEQUENCE virtual_registries_packages_maven_cached_responses_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE virtual_registries_packages_maven_cached_responses_id_seq OWNED BY virtual_registries_packages_maven_cached_responses.id; --- --- Name: virtual_registries_packages_maven_cached_responses_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.virtual_registries_packages_maven_cached_responses_id_seq OWNED BY public.virtual_registries_packages_maven_cached_responses.id; - - --- --- Name: virtual_registries_packages_maven_registries; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.virtual_registries_packages_maven_registries ( +CREATE TABLE virtual_registries_packages_maven_registries ( id bigint NOT NULL, group_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -30764,31 +19526,16 @@ CREATE TABLE public.virtual_registries_packages_maven_registries ( CONSTRAINT check_b3fbe8eb62 CHECK ((cache_validity_hours >= 0)) ); - --- --- Name: virtual_registries_packages_maven_registries_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.virtual_registries_packages_maven_registries_id_seq +CREATE SEQUENCE virtual_registries_packages_maven_registries_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE virtual_registries_packages_maven_registries_id_seq OWNED BY virtual_registries_packages_maven_registries.id; --- --- Name: virtual_registries_packages_maven_registries_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.virtual_registries_packages_maven_registries_id_seq OWNED BY public.virtual_registries_packages_maven_registries.id; - - --- --- Name: virtual_registries_packages_maven_registry_upstreams; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.virtual_registries_packages_maven_registry_upstreams ( +CREATE TABLE virtual_registries_packages_maven_registry_upstreams ( id bigint NOT NULL, group_id bigint NOT NULL, registry_id bigint NOT NULL, @@ -30797,31 +19544,16 @@ CREATE TABLE public.virtual_registries_packages_maven_registry_upstreams ( updated_at timestamp with time zone NOT NULL ); - --- --- Name: virtual_registries_packages_maven_registry_upstreams_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.virtual_registries_packages_maven_registry_upstreams_id_seq +CREATE SEQUENCE virtual_registries_packages_maven_registry_upstreams_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE virtual_registries_packages_maven_registry_upstreams_id_seq OWNED BY virtual_registries_packages_maven_registry_upstreams.id; --- --- Name: virtual_registries_packages_maven_registry_upstreams_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.virtual_registries_packages_maven_registry_upstreams_id_seq OWNED BY public.virtual_registries_packages_maven_registry_upstreams.id; - - --- --- Name: virtual_registries_packages_maven_upstreams; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.virtual_registries_packages_maven_upstreams ( +CREATE TABLE virtual_registries_packages_maven_upstreams ( id bigint NOT NULL, group_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -30834,31 +19566,16 @@ CREATE TABLE public.virtual_registries_packages_maven_upstreams ( CONSTRAINT check_b9e3bfa31a CHECK ((octet_length(encrypted_credentials) <= 1020)) ); - --- --- Name: virtual_registries_packages_maven_upstreams_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.virtual_registries_packages_maven_upstreams_id_seq +CREATE SEQUENCE virtual_registries_packages_maven_upstreams_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE virtual_registries_packages_maven_upstreams_id_seq OWNED BY virtual_registries_packages_maven_upstreams.id; --- --- Name: virtual_registries_packages_maven_upstreams_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.virtual_registries_packages_maven_upstreams_id_seq OWNED BY public.virtual_registries_packages_maven_upstreams.id; - - --- --- Name: vs_code_settings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vs_code_settings ( +CREATE TABLE vs_code_settings ( id bigint NOT NULL, user_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -30873,31 +19590,16 @@ CREATE TABLE public.vs_code_settings ( CONSTRAINT check_994c503fc4 CHECK ((char_length(setting_type) <= 256)) ); - --- --- Name: vs_code_settings_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vs_code_settings_id_seq +CREATE SEQUENCE vs_code_settings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vs_code_settings_id_seq OWNED BY vs_code_settings.id; --- --- Name: vs_code_settings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vs_code_settings_id_seq OWNED BY public.vs_code_settings.id; - - --- --- Name: vulnerabilities; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerabilities ( +CREATE TABLE vulnerabilities ( id bigint NOT NULL, project_id bigint NOT NULL, author_id bigint NOT NULL, @@ -30928,31 +19630,16 @@ CREATE TABLE public.vulnerabilities ( CONSTRAINT check_4d8a873f1f CHECK ((finding_id IS NOT NULL)) ); - --- --- Name: vulnerabilities_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerabilities_id_seq +CREATE SEQUENCE vulnerabilities_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerabilities_id_seq OWNED BY vulnerabilities.id; --- --- Name: vulnerabilities_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerabilities_id_seq OWNED BY public.vulnerabilities.id; - - --- --- Name: vulnerability_export_parts; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_export_parts ( +CREATE TABLE vulnerability_export_parts ( id bigint NOT NULL, vulnerability_export_id bigint NOT NULL, start_id bigint NOT NULL, @@ -30965,31 +19652,16 @@ CREATE TABLE public.vulnerability_export_parts ( CONSTRAINT check_baded21d39 CHECK ((char_length(file) <= 255)) ); - --- --- Name: vulnerability_export_parts_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_export_parts_id_seq +CREATE SEQUENCE vulnerability_export_parts_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_export_parts_id_seq OWNED BY vulnerability_export_parts.id; --- --- Name: vulnerability_export_parts_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_export_parts_id_seq OWNED BY public.vulnerability_export_parts.id; - - --- --- Name: vulnerability_exports; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_exports ( +CREATE TABLE vulnerability_exports ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -31005,31 +19677,16 @@ CREATE TABLE public.vulnerability_exports ( organization_id bigint DEFAULT 1 NOT NULL ); - --- --- Name: vulnerability_exports_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_exports_id_seq +CREATE SEQUENCE vulnerability_exports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_exports_id_seq OWNED BY vulnerability_exports.id; --- --- Name: vulnerability_exports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_exports_id_seq OWNED BY public.vulnerability_exports.id; - - --- --- Name: vulnerability_external_issue_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_external_issue_links ( +CREATE TABLE vulnerability_external_issue_links ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -31044,31 +19701,16 @@ CREATE TABLE public.vulnerability_external_issue_links ( CONSTRAINT check_68cffd19b0 CHECK ((char_length(external_project_key) <= 255)) ); - --- --- Name: vulnerability_external_issue_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_external_issue_links_id_seq +CREATE SEQUENCE vulnerability_external_issue_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_external_issue_links_id_seq OWNED BY vulnerability_external_issue_links.id; --- --- Name: vulnerability_external_issue_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_external_issue_links_id_seq OWNED BY public.vulnerability_external_issue_links.id; - - --- --- Name: vulnerability_feedback; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_feedback ( +CREATE TABLE vulnerability_feedback ( id integer NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -31088,31 +19730,16 @@ CREATE TABLE public.vulnerability_feedback ( pipeline_id bigint ); - --- --- Name: vulnerability_feedback_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_feedback_id_seq +CREATE SEQUENCE vulnerability_feedback_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_feedback_id_seq OWNED BY vulnerability_feedback.id; --- --- Name: vulnerability_feedback_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_feedback_id_seq OWNED BY public.vulnerability_feedback.id; - - --- --- Name: vulnerability_finding_evidences; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_finding_evidences ( +CREATE TABLE vulnerability_finding_evidences ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -31121,31 +19748,16 @@ CREATE TABLE public.vulnerability_finding_evidences ( project_id bigint ); - --- --- Name: vulnerability_finding_evidences_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_finding_evidences_id_seq +CREATE SEQUENCE vulnerability_finding_evidences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_finding_evidences_id_seq OWNED BY vulnerability_finding_evidences.id; --- --- Name: vulnerability_finding_evidences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_finding_evidences_id_seq OWNED BY public.vulnerability_finding_evidences.id; - - --- --- Name: vulnerability_finding_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_finding_links ( +CREATE TABLE vulnerability_finding_links ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -31157,31 +19769,16 @@ CREATE TABLE public.vulnerability_finding_links ( CONSTRAINT check_b7fe886df6 CHECK ((char_length(url) <= 2048)) ); - --- --- Name: vulnerability_finding_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_finding_links_id_seq +CREATE SEQUENCE vulnerability_finding_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_finding_links_id_seq OWNED BY vulnerability_finding_links.id; --- --- Name: vulnerability_finding_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_finding_links_id_seq OWNED BY public.vulnerability_finding_links.id; - - --- --- Name: vulnerability_finding_signatures; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_finding_signatures ( +CREATE TABLE vulnerability_finding_signatures ( id bigint NOT NULL, finding_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -31191,31 +19788,16 @@ CREATE TABLE public.vulnerability_finding_signatures ( project_id bigint ); - --- --- Name: vulnerability_finding_signatures_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_finding_signatures_id_seq +CREATE SEQUENCE vulnerability_finding_signatures_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_finding_signatures_id_seq OWNED BY vulnerability_finding_signatures.id; --- --- Name: vulnerability_finding_signatures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_finding_signatures_id_seq OWNED BY public.vulnerability_finding_signatures.id; - - --- --- Name: vulnerability_findings_remediations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_findings_remediations ( +CREATE TABLE vulnerability_findings_remediations ( id bigint NOT NULL, vulnerability_occurrence_id bigint, vulnerability_remediation_id bigint, @@ -31224,31 +19806,16 @@ CREATE TABLE public.vulnerability_findings_remediations ( project_id bigint ); - --- --- Name: vulnerability_findings_remediations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_findings_remediations_id_seq +CREATE SEQUENCE vulnerability_findings_remediations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_findings_remediations_id_seq OWNED BY vulnerability_findings_remediations.id; --- --- Name: vulnerability_findings_remediations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_findings_remediations_id_seq OWNED BY public.vulnerability_findings_remediations.id; - - --- --- Name: vulnerability_flags; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_flags ( +CREATE TABLE vulnerability_flags ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -31261,31 +19828,16 @@ CREATE TABLE public.vulnerability_flags ( CONSTRAINT check_49c1d00032 CHECK ((char_length(origin) <= 255)) ); - --- --- Name: vulnerability_flags_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_flags_id_seq +CREATE SEQUENCE vulnerability_flags_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_flags_id_seq OWNED BY vulnerability_flags.id; --- --- Name: vulnerability_flags_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_flags_id_seq OWNED BY public.vulnerability_flags.id; - - --- --- Name: vulnerability_historical_statistics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_historical_statistics ( +CREATE TABLE vulnerability_historical_statistics ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -31301,31 +19853,16 @@ CREATE TABLE public.vulnerability_historical_statistics ( letter_grade smallint NOT NULL ); - --- --- Name: vulnerability_historical_statistics_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_historical_statistics_id_seq +CREATE SEQUENCE vulnerability_historical_statistics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_historical_statistics_id_seq OWNED BY vulnerability_historical_statistics.id; --- --- Name: vulnerability_historical_statistics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_historical_statistics_id_seq OWNED BY public.vulnerability_historical_statistics.id; - - --- --- Name: vulnerability_identifiers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_identifiers ( +CREATE TABLE vulnerability_identifiers ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -31337,31 +19874,16 @@ CREATE TABLE public.vulnerability_identifiers ( url text ); - --- --- Name: vulnerability_identifiers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_identifiers_id_seq +CREATE SEQUENCE vulnerability_identifiers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_identifiers_id_seq OWNED BY vulnerability_identifiers.id; --- --- Name: vulnerability_identifiers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_identifiers_id_seq OWNED BY public.vulnerability_identifiers.id; - - --- --- Name: vulnerability_issue_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_issue_links ( +CREATE TABLE vulnerability_issue_links ( id bigint NOT NULL, vulnerability_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -31371,31 +19893,16 @@ CREATE TABLE public.vulnerability_issue_links ( project_id bigint ); - --- --- Name: vulnerability_issue_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_issue_links_id_seq +CREATE SEQUENCE vulnerability_issue_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_issue_links_id_seq OWNED BY vulnerability_issue_links.id; --- --- Name: vulnerability_issue_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_issue_links_id_seq OWNED BY public.vulnerability_issue_links.id; - - --- --- Name: vulnerability_merge_request_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_merge_request_links ( +CREATE TABLE vulnerability_merge_request_links ( id bigint NOT NULL, vulnerability_id bigint NOT NULL, merge_request_id integer NOT NULL, @@ -31404,31 +19911,16 @@ CREATE TABLE public.vulnerability_merge_request_links ( project_id bigint ); - --- --- Name: vulnerability_merge_request_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_merge_request_links_id_seq +CREATE SEQUENCE vulnerability_merge_request_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_merge_request_links_id_seq OWNED BY vulnerability_merge_request_links.id; --- --- Name: vulnerability_merge_request_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_merge_request_links_id_seq OWNED BY public.vulnerability_merge_request_links.id; - - --- --- Name: vulnerability_namespace_historical_statistics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_namespace_historical_statistics ( +CREATE TABLE vulnerability_namespace_historical_statistics ( id bigint NOT NULL, namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -31445,31 +19937,16 @@ CREATE TABLE public.vulnerability_namespace_historical_statistics ( letter_grade smallint NOT NULL ); - --- --- Name: vulnerability_namespace_historical_statistics_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_namespace_historical_statistics_id_seq +CREATE SEQUENCE vulnerability_namespace_historical_statistics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_namespace_historical_statistics_id_seq OWNED BY vulnerability_namespace_historical_statistics.id; --- --- Name: vulnerability_namespace_historical_statistics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_namespace_historical_statistics_id_seq OWNED BY public.vulnerability_namespace_historical_statistics.id; - - --- --- Name: vulnerability_occurrence_identifiers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_occurrence_identifiers ( +CREATE TABLE vulnerability_occurrence_identifiers ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -31478,31 +19955,16 @@ CREATE TABLE public.vulnerability_occurrence_identifiers ( project_id bigint ); - --- --- Name: vulnerability_occurrence_identifiers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_occurrence_identifiers_id_seq +CREATE SEQUENCE vulnerability_occurrence_identifiers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_occurrence_identifiers_id_seq OWNED BY vulnerability_occurrence_identifiers.id; --- --- Name: vulnerability_occurrence_identifiers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_occurrence_identifiers_id_seq OWNED BY public.vulnerability_occurrence_identifiers.id; - - --- --- Name: vulnerability_occurrence_pipelines; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_occurrence_pipelines ( +CREATE TABLE vulnerability_occurrence_pipelines ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -31511,31 +19973,16 @@ CREATE TABLE public.vulnerability_occurrence_pipelines ( project_id bigint ); - --- --- Name: vulnerability_occurrence_pipelines_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_occurrence_pipelines_id_seq +CREATE SEQUENCE vulnerability_occurrence_pipelines_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_occurrence_pipelines_id_seq OWNED BY vulnerability_occurrence_pipelines.id; --- --- Name: vulnerability_occurrence_pipelines_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_occurrence_pipelines_id_seq OWNED BY public.vulnerability_occurrence_pipelines.id; - - --- --- Name: vulnerability_occurrences; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_occurrences ( +CREATE TABLE vulnerability_occurrences ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -31565,31 +20012,16 @@ CREATE TABLE public.vulnerability_occurrences ( CONSTRAINT check_f602da68dd CHECK ((char_length(cve) <= 48400)) ); - --- --- Name: vulnerability_occurrences_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_occurrences_id_seq +CREATE SEQUENCE vulnerability_occurrences_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_occurrences_id_seq OWNED BY vulnerability_occurrences.id; --- --- Name: vulnerability_occurrences_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_occurrences_id_seq OWNED BY public.vulnerability_occurrences.id; - - --- --- Name: vulnerability_reads; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_reads ( +CREATE TABLE vulnerability_reads ( id bigint NOT NULL, vulnerability_id bigint NOT NULL, project_id bigint NOT NULL, @@ -31618,31 +20050,16 @@ CREATE TABLE public.vulnerability_reads ( CONSTRAINT check_f5ba7c2496 CHECK ((traversal_ids IS NOT NULL)) ); - --- --- Name: vulnerability_reads_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_reads_id_seq +CREATE SEQUENCE vulnerability_reads_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_reads_id_seq OWNED BY vulnerability_reads.id; --- --- Name: vulnerability_reads_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_reads_id_seq OWNED BY public.vulnerability_reads.id; - - --- --- Name: vulnerability_remediations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_remediations ( +CREATE TABLE vulnerability_remediations ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -31655,38 +20072,18 @@ CREATE TABLE public.vulnerability_remediations ( CONSTRAINT check_fe3325e3ba CHECK ((char_length(file) <= 255)) ); +COMMENT ON COLUMN vulnerability_remediations.checksum IS 'Stores the SHA256 checksum of the attached diff file'; --- --- Name: COLUMN vulnerability_remediations.checksum; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON COLUMN public.vulnerability_remediations.checksum IS 'Stores the SHA256 checksum of the attached diff file'; - - --- --- Name: vulnerability_remediations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_remediations_id_seq +CREATE SEQUENCE vulnerability_remediations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_remediations_id_seq OWNED BY vulnerability_remediations.id; --- --- Name: vulnerability_remediations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_remediations_id_seq OWNED BY public.vulnerability_remediations.id; - - --- --- Name: vulnerability_scanners; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_scanners ( +CREATE TABLE vulnerability_scanners ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -31696,31 +20093,16 @@ CREATE TABLE public.vulnerability_scanners ( vendor text DEFAULT 'GitLab'::text NOT NULL ); - --- --- Name: vulnerability_scanners_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_scanners_id_seq +CREATE SEQUENCE vulnerability_scanners_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_scanners_id_seq OWNED BY vulnerability_scanners.id; --- --- Name: vulnerability_scanners_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_scanners_id_seq OWNED BY public.vulnerability_scanners.id; - - --- --- Name: vulnerability_state_transitions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_state_transitions ( +CREATE TABLE vulnerability_state_transitions ( id bigint NOT NULL, vulnerability_id bigint NOT NULL, to_state smallint NOT NULL, @@ -31735,31 +20117,16 @@ CREATE TABLE public.vulnerability_state_transitions ( CONSTRAINT check_fe2eb6a0f3 CHECK ((char_length(comment) <= 50000)) ); - --- --- Name: vulnerability_state_transitions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_state_transitions_id_seq +CREATE SEQUENCE vulnerability_state_transitions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_state_transitions_id_seq OWNED BY vulnerability_state_transitions.id; --- --- Name: vulnerability_state_transitions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_state_transitions_id_seq OWNED BY public.vulnerability_state_transitions.id; - - --- --- Name: vulnerability_statistics; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_statistics ( +CREATE TABLE vulnerability_statistics ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -31775,31 +20142,16 @@ CREATE TABLE public.vulnerability_statistics ( latest_pipeline_id bigint ); - --- --- Name: vulnerability_statistics_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_statistics_id_seq +CREATE SEQUENCE vulnerability_statistics_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_statistics_id_seq OWNED BY vulnerability_statistics.id; --- --- Name: vulnerability_statistics_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_statistics_id_seq OWNED BY public.vulnerability_statistics.id; - - --- --- Name: vulnerability_user_mentions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.vulnerability_user_mentions ( +CREATE TABLE vulnerability_user_mentions ( id bigint NOT NULL, vulnerability_id bigint NOT NULL, mentioned_users_ids integer[], @@ -31809,50 +20161,25 @@ CREATE TABLE public.vulnerability_user_mentions ( project_id bigint ); - --- --- Name: vulnerability_user_mentions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.vulnerability_user_mentions_id_seq +CREATE SEQUENCE vulnerability_user_mentions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE vulnerability_user_mentions_id_seq OWNED BY vulnerability_user_mentions.id; --- --- Name: vulnerability_user_mentions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.vulnerability_user_mentions_id_seq OWNED BY public.vulnerability_user_mentions.id; - - --- --- Name: web_hook_logs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.web_hook_logs_id_seq +CREATE SEQUENCE web_hook_logs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE web_hook_logs_id_seq OWNED BY web_hook_logs.id; --- --- Name: web_hook_logs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.web_hook_logs_id_seq OWNED BY public.web_hook_logs.id; - - --- --- Name: web_hooks; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.web_hooks ( +CREATE TABLE web_hooks ( id integer NOT NULL, project_id integer, created_at timestamp without time zone, @@ -31900,31 +20227,16 @@ CREATE TABLE public.web_hooks ( CONSTRAINT check_69ef76ee0c CHECK ((char_length(custom_webhook_template) <= 4096)) ); - --- --- Name: web_hooks_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.web_hooks_id_seq +CREATE SEQUENCE web_hooks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE web_hooks_id_seq OWNED BY web_hooks.id; --- --- Name: web_hooks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.web_hooks_id_seq OWNED BY public.web_hooks.id; - - --- --- Name: webauthn_registrations; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.webauthn_registrations ( +CREATE TABLE webauthn_registrations ( id bigint NOT NULL, user_id bigint NOT NULL, counter bigint DEFAULT 0 NOT NULL, @@ -31937,31 +20249,16 @@ CREATE TABLE public.webauthn_registrations ( CONSTRAINT check_f5ab2b551a CHECK ((char_length(credential_xid) <= 1364)) ); - --- --- Name: webauthn_registrations_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.webauthn_registrations_id_seq +CREATE SEQUENCE webauthn_registrations_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE webauthn_registrations_id_seq OWNED BY webauthn_registrations.id; --- --- Name: webauthn_registrations_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.webauthn_registrations_id_seq OWNED BY public.webauthn_registrations.id; - - --- --- Name: wiki_page_meta; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.wiki_page_meta ( +CREATE TABLE wiki_page_meta ( id integer NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -31969,31 +20266,16 @@ CREATE TABLE public.wiki_page_meta ( title character varying(255) NOT NULL ); - --- --- Name: wiki_page_meta_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.wiki_page_meta_id_seq +CREATE SEQUENCE wiki_page_meta_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE wiki_page_meta_id_seq OWNED BY wiki_page_meta.id; --- --- Name: wiki_page_meta_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.wiki_page_meta_id_seq OWNED BY public.wiki_page_meta.id; - - --- --- Name: wiki_page_slugs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.wiki_page_slugs ( +CREATE TABLE wiki_page_slugs ( id integer NOT NULL, canonical boolean DEFAULT false NOT NULL, wiki_page_meta_id bigint NOT NULL, @@ -32003,31 +20285,16 @@ CREATE TABLE public.wiki_page_slugs ( project_id bigint ); - --- --- Name: wiki_page_slugs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.wiki_page_slugs_id_seq +CREATE SEQUENCE wiki_page_slugs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE wiki_page_slugs_id_seq OWNED BY wiki_page_slugs.id; --- --- Name: wiki_page_slugs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.wiki_page_slugs_id_seq OWNED BY public.wiki_page_slugs.id; - - --- --- Name: wiki_repository_states; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.wiki_repository_states ( +CREATE TABLE wiki_repository_states ( id bigint NOT NULL, verification_started_at timestamp with time zone, verification_retry_at timestamp with time zone, @@ -32041,31 +20308,16 @@ CREATE TABLE public.wiki_repository_states ( CONSTRAINT check_2933ff60dc CHECK ((char_length(verification_failure) <= 255)) ); - --- --- Name: wiki_repository_states_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.wiki_repository_states_id_seq +CREATE SEQUENCE wiki_repository_states_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE wiki_repository_states_id_seq OWNED BY wiki_repository_states.id; --- --- Name: wiki_repository_states_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.wiki_repository_states_id_seq OWNED BY public.wiki_repository_states.id; - - --- --- Name: work_item_colors; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.work_item_colors ( +CREATE TABLE work_item_colors ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, issue_id bigint NOT NULL, @@ -32074,12 +20326,7 @@ CREATE TABLE public.work_item_colors ( CONSTRAINT check_485e19ad7b CHECK ((char_length(color) <= 7)) ); - --- --- Name: work_item_dates_sources; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.work_item_dates_sources ( +CREATE TABLE work_item_dates_sources ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, issue_id bigint NOT NULL, @@ -32096,12 +20343,7 @@ CREATE TABLE public.work_item_dates_sources ( due_date_fixed date ); - --- --- Name: work_item_hierarchy_restrictions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.work_item_hierarchy_restrictions ( +CREATE TABLE work_item_hierarchy_restrictions ( id bigint NOT NULL, parent_type_id bigint NOT NULL, child_type_id bigint NOT NULL, @@ -32109,31 +20351,16 @@ CREATE TABLE public.work_item_hierarchy_restrictions ( cross_hierarchy_enabled boolean DEFAULT false NOT NULL ); - --- --- Name: work_item_hierarchy_restrictions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.work_item_hierarchy_restrictions_id_seq +CREATE SEQUENCE work_item_hierarchy_restrictions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE work_item_hierarchy_restrictions_id_seq OWNED BY work_item_hierarchy_restrictions.id; --- --- Name: work_item_hierarchy_restrictions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.work_item_hierarchy_restrictions_id_seq OWNED BY public.work_item_hierarchy_restrictions.id; - - --- --- Name: work_item_parent_links; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.work_item_parent_links ( +CREATE TABLE work_item_parent_links ( id bigint NOT NULL, work_item_id bigint NOT NULL, work_item_parent_id bigint NOT NULL, @@ -32143,31 +20370,16 @@ CREATE TABLE public.work_item_parent_links ( namespace_id bigint ); - --- --- Name: work_item_parent_links_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.work_item_parent_links_id_seq +CREATE SEQUENCE work_item_parent_links_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE work_item_parent_links_id_seq OWNED BY work_item_parent_links.id; --- --- Name: work_item_parent_links_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.work_item_parent_links_id_seq OWNED BY public.work_item_parent_links.id; - - --- --- Name: work_item_progresses; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.work_item_progresses ( +CREATE TABLE work_item_progresses ( created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, issue_id bigint NOT NULL, @@ -32180,43 +20392,23 @@ CREATE TABLE public.work_item_progresses ( last_reminder_sent_at timestamp with time zone ); - --- --- Name: work_item_related_link_restrictions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.work_item_related_link_restrictions ( +CREATE TABLE work_item_related_link_restrictions ( id bigint NOT NULL, source_type_id bigint NOT NULL, target_type_id bigint NOT NULL, link_type smallint DEFAULT 0 NOT NULL ); - --- --- Name: work_item_related_link_restrictions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.work_item_related_link_restrictions_id_seq +CREATE SEQUENCE work_item_related_link_restrictions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE work_item_related_link_restrictions_id_seq OWNED BY work_item_related_link_restrictions.id; --- --- Name: work_item_related_link_restrictions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.work_item_related_link_restrictions_id_seq OWNED BY public.work_item_related_link_restrictions.id; - - --- --- Name: work_item_types; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.work_item_types ( +CREATE TABLE work_item_types ( id bigint NOT NULL, base_type smallint DEFAULT 0 NOT NULL, cached_markdown_version integer, @@ -32230,31 +20422,16 @@ CREATE TABLE public.work_item_types ( CONSTRAINT check_fecb3a98d1 CHECK ((char_length(icon_name) <= 255)) ); - --- --- Name: work_item_types_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.work_item_types_id_seq +CREATE SEQUENCE work_item_types_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE work_item_types_id_seq OWNED BY work_item_types.id; --- --- Name: work_item_types_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.work_item_types_id_seq OWNED BY public.work_item_types.id; - - --- --- Name: work_item_widget_definitions; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.work_item_widget_definitions ( +CREATE TABLE work_item_widget_definitions ( id bigint NOT NULL, work_item_type_id bigint NOT NULL, widget_type smallint NOT NULL, @@ -32264,31 +20441,16 @@ CREATE TABLE public.work_item_widget_definitions ( CONSTRAINT check_050f2e2328 CHECK ((char_length(name) <= 255)) ); - --- --- Name: work_item_widget_definitions_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.work_item_widget_definitions_id_seq +CREATE SEQUENCE work_item_widget_definitions_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE work_item_widget_definitions_id_seq OWNED BY work_item_widget_definitions.id; --- --- Name: work_item_widget_definitions_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.work_item_widget_definitions_id_seq OWNED BY public.work_item_widget_definitions.id; - - --- --- Name: workspace_variables; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.workspace_variables ( +CREATE TABLE workspace_variables ( id bigint NOT NULL, workspace_id bigint NOT NULL, variable_type smallint NOT NULL, @@ -32301,31 +20463,16 @@ CREATE TABLE public.workspace_variables ( CONSTRAINT check_5545042100 CHECK ((char_length(key) <= 255)) ); - --- --- Name: workspace_variables_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.workspace_variables_id_seq +CREATE SEQUENCE workspace_variables_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE workspace_variables_id_seq OWNED BY workspace_variables.id; --- --- Name: workspace_variables_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.workspace_variables_id_seq OWNED BY public.workspace_variables.id; - - --- --- Name: workspaces; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.workspaces ( +CREATE TABLE workspaces ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -32368,12 +20515,7 @@ CREATE TABLE public.workspaces ( CONSTRAINT check_ffa8cad434 CHECK ((char_length(url_prefix) <= 256)) ); - --- --- Name: workspaces_agent_configs; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.workspaces_agent_configs ( +CREATE TABLE workspaces_agent_configs ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -32396,50 +20538,25 @@ CREATE TABLE public.workspaces_agent_configs ( CONSTRAINT check_ee2464835c CHECK ((char_length(gitlab_workspaces_proxy_namespace) <= 63)) ); - --- --- Name: workspaces_agent_configs_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.workspaces_agent_configs_id_seq +CREATE SEQUENCE workspaces_agent_configs_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE workspaces_agent_configs_id_seq OWNED BY workspaces_agent_configs.id; --- --- Name: workspaces_agent_configs_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.workspaces_agent_configs_id_seq OWNED BY public.workspaces_agent_configs.id; - - --- --- Name: workspaces_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.workspaces_id_seq +CREATE SEQUENCE workspaces_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE workspaces_id_seq OWNED BY workspaces.id; --- --- Name: workspaces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.workspaces_id_seq OWNED BY public.workspaces.id; - - --- --- Name: x509_certificates; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.x509_certificates ( +CREATE TABLE x509_certificates ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -32452,31 +20569,16 @@ CREATE TABLE public.x509_certificates ( emails character varying[] DEFAULT '{}'::character varying[] NOT NULL ); - --- --- Name: x509_certificates_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.x509_certificates_id_seq +CREATE SEQUENCE x509_certificates_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE x509_certificates_id_seq OWNED BY x509_certificates.id; --- --- Name: x509_certificates_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.x509_certificates_id_seq OWNED BY public.x509_certificates.id; - - --- --- Name: x509_commit_signatures; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.x509_commit_signatures ( +CREATE TABLE x509_commit_signatures ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -32486,31 +20588,16 @@ CREATE TABLE public.x509_commit_signatures ( verification_status smallint DEFAULT 0 NOT NULL ); - --- --- Name: x509_commit_signatures_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.x509_commit_signatures_id_seq +CREATE SEQUENCE x509_commit_signatures_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE x509_commit_signatures_id_seq OWNED BY x509_commit_signatures.id; --- --- Name: x509_commit_signatures_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.x509_commit_signatures_id_seq OWNED BY public.x509_commit_signatures.id; - - --- --- Name: x509_issuers; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.x509_issuers ( +CREATE TABLE x509_issuers ( id bigint NOT NULL, created_at timestamp with time zone NOT NULL, updated_at timestamp with time zone NOT NULL, @@ -32519,31 +20606,16 @@ CREATE TABLE public.x509_issuers ( crl_url character varying(255) ); - --- --- Name: x509_issuers_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.x509_issuers_id_seq +CREATE SEQUENCE x509_issuers_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE x509_issuers_id_seq OWNED BY x509_issuers.id; --- --- Name: x509_issuers_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.x509_issuers_id_seq OWNED BY public.x509_issuers.id; - - --- --- Name: xray_reports; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.xray_reports ( +CREATE TABLE xray_reports ( id bigint NOT NULL, project_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -32554,31 +20626,16 @@ CREATE TABLE public.xray_reports ( CONSTRAINT check_6da5a3b473 CHECK ((char_length(lang) <= 255)) ); - --- --- Name: xray_reports_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.xray_reports_id_seq +CREATE SEQUENCE xray_reports_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE xray_reports_id_seq OWNED BY xray_reports.id; --- --- Name: xray_reports_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.xray_reports_id_seq OWNED BY public.xray_reports.id; - - --- --- Name: zentao_tracker_data; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.zentao_tracker_data ( +CREATE TABLE zentao_tracker_data ( id bigint NOT NULL, integration_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -32593,31 +20650,16 @@ CREATE TABLE public.zentao_tracker_data ( encrypted_api_token_iv bytea ); - --- --- Name: zentao_tracker_data_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.zentao_tracker_data_id_seq +CREATE SEQUENCE zentao_tracker_data_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE zentao_tracker_data_id_seq OWNED BY zentao_tracker_data.id; --- --- Name: zentao_tracker_data_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.zentao_tracker_data_id_seq OWNED BY public.zentao_tracker_data.id; - - --- --- Name: zoekt_enabled_namespaces; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.zoekt_enabled_namespaces ( +CREATE TABLE zoekt_enabled_namespaces ( id bigint NOT NULL, root_namespace_id bigint NOT NULL, created_at timestamp with time zone NOT NULL, @@ -32625,31 +20667,16 @@ CREATE TABLE public.zoekt_enabled_namespaces ( search boolean DEFAULT true NOT NULL ); - --- --- Name: zoekt_enabled_namespaces_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.zoekt_enabled_namespaces_id_seq +CREATE SEQUENCE zoekt_enabled_namespaces_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE zoekt_enabled_namespaces_id_seq OWNED BY zoekt_enabled_namespaces.id; --- --- Name: zoekt_enabled_namespaces_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.zoekt_enabled_namespaces_id_seq OWNED BY public.zoekt_enabled_namespaces.id; - - --- --- Name: zoekt_indices; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.zoekt_indices ( +CREATE TABLE zoekt_indices ( id bigint NOT NULL, zoekt_enabled_namespace_id bigint, zoekt_node_id bigint NOT NULL, @@ -32661,31 +20688,16 @@ CREATE TABLE public.zoekt_indices ( reserved_storage_bytes bigint DEFAULT '10737418240'::bigint ); - --- --- Name: zoekt_indices_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.zoekt_indices_id_seq +CREATE SEQUENCE zoekt_indices_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE zoekt_indices_id_seq OWNED BY zoekt_indices.id; --- --- Name: zoekt_indices_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.zoekt_indices_id_seq OWNED BY public.zoekt_indices.id; - - --- --- Name: zoekt_nodes; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.zoekt_nodes ( +CREATE TABLE zoekt_nodes ( id bigint NOT NULL, uuid uuid NOT NULL, used_bytes bigint DEFAULT 0 NOT NULL, @@ -32701,31 +20713,16 @@ CREATE TABLE public.zoekt_nodes ( CONSTRAINT check_38c354a3c2 CHECK ((char_length(index_base_url) <= 1024)) ); - --- --- Name: zoekt_nodes_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.zoekt_nodes_id_seq +CREATE SEQUENCE zoekt_nodes_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE zoekt_nodes_id_seq OWNED BY zoekt_nodes.id; --- --- Name: zoekt_nodes_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.zoekt_nodes_id_seq OWNED BY public.zoekt_nodes.id; - - --- --- Name: zoekt_replicas; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.zoekt_replicas ( +CREATE TABLE zoekt_replicas ( id bigint NOT NULL, zoekt_enabled_namespace_id bigint NOT NULL, namespace_id bigint NOT NULL, @@ -32734,31 +20731,16 @@ CREATE TABLE public.zoekt_replicas ( state smallint DEFAULT 0 NOT NULL ); - --- --- Name: zoekt_replicas_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.zoekt_replicas_id_seq +CREATE SEQUENCE zoekt_replicas_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE zoekt_replicas_id_seq OWNED BY zoekt_replicas.id; --- --- Name: zoekt_replicas_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.zoekt_replicas_id_seq OWNED BY public.zoekt_replicas.id; - - --- --- Name: zoekt_repositories; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.zoekt_repositories ( +CREATE TABLE zoekt_repositories ( id bigint NOT NULL, zoekt_index_id bigint NOT NULL, project_id bigint, @@ -32772,31 +20754,16 @@ CREATE TABLE public.zoekt_repositories ( CONSTRAINT c_zoekt_repositories_on_project_id_and_project_identifier CHECK (((project_id IS NULL) OR (project_identifier = project_id))) ); - --- --- Name: zoekt_repositories_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.zoekt_repositories_id_seq +CREATE SEQUENCE zoekt_repositories_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE zoekt_repositories_id_seq OWNED BY zoekt_repositories.id; --- --- Name: zoekt_repositories_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.zoekt_repositories_id_seq OWNED BY public.zoekt_repositories.id; - - --- --- Name: zoekt_shards; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.zoekt_shards ( +CREATE TABLE zoekt_shards ( id bigint NOT NULL, index_base_url text NOT NULL, search_base_url text NOT NULL, @@ -32811,50 +20778,25 @@ CREATE TABLE public.zoekt_shards ( CONSTRAINT check_c65bb85a32 CHECK ((char_length(index_base_url) <= 1024)) ); - --- --- Name: zoekt_shards_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.zoekt_shards_id_seq +CREATE SEQUENCE zoekt_shards_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE zoekt_shards_id_seq OWNED BY zoekt_shards.id; --- --- Name: zoekt_shards_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.zoekt_shards_id_seq OWNED BY public.zoekt_shards.id; - - --- --- Name: zoekt_tasks_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.zoekt_tasks_id_seq +CREATE SEQUENCE zoekt_tasks_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE zoekt_tasks_id_seq OWNED BY zoekt_tasks.id; --- --- Name: zoekt_tasks_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- - -ALTER SEQUENCE public.zoekt_tasks_id_seq OWNED BY public.zoekt_tasks.id; - - --- --- Name: zoom_meetings; Type: TABLE; Schema: public; Owner: - --- - -CREATE TABLE public.zoom_meetings ( +CREATE TABLE zoom_meetings ( id bigint NOT NULL, project_id bigint NOT NULL, issue_id bigint NOT NULL, @@ -32864,49709 +20806,15724 @@ CREATE TABLE public.zoom_meetings ( url character varying(255) ); - --- --- Name: zoom_meetings_id_seq; Type: SEQUENCE; Schema: public; Owner: - --- - -CREATE SEQUENCE public.zoom_meetings_id_seq +CREATE SEQUENCE zoom_meetings_id_seq START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; +ALTER SEQUENCE zoom_meetings_id_seq OWNED BY zoom_meetings.id; --- --- Name: zoom_meetings_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 FOR VALUES WITH (modulus 32, remainder 0); -ALTER SEQUENCE public.zoom_meetings_id_seq OWNED BY public.zoom_meetings.id; +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 FOR VALUES WITH (modulus 32, remainder 1); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 FOR VALUES WITH (modulus 32, remainder 2); --- --- Name: analytics_cycle_analytics_issue_stage_events_00; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 FOR VALUES WITH (modulus 32, remainder 3); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 FOR VALUES WITH (modulus 32, remainder 0); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 FOR VALUES WITH (modulus 32, remainder 4); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 FOR VALUES WITH (modulus 32, remainder 5); --- --- Name: analytics_cycle_analytics_issue_stage_events_01; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 FOR VALUES WITH (modulus 32, remainder 6); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 FOR VALUES WITH (modulus 32, remainder 1); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 FOR VALUES WITH (modulus 32, remainder 7); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 FOR VALUES WITH (modulus 32, remainder 8); --- --- Name: analytics_cycle_analytics_issue_stage_events_02; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 FOR VALUES WITH (modulus 32, remainder 9); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 FOR VALUES WITH (modulus 32, remainder 2); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 FOR VALUES WITH (modulus 32, remainder 10); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 FOR VALUES WITH (modulus 32, remainder 11); --- --- Name: analytics_cycle_analytics_issue_stage_events_03; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 FOR VALUES WITH (modulus 32, remainder 12); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 FOR VALUES WITH (modulus 32, remainder 3); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 FOR VALUES WITH (modulus 32, remainder 13); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 FOR VALUES WITH (modulus 32, remainder 14); --- --- Name: analytics_cycle_analytics_issue_stage_events_04; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 FOR VALUES WITH (modulus 32, remainder 15); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 FOR VALUES WITH (modulus 32, remainder 4); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 FOR VALUES WITH (modulus 32, remainder 16); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 FOR VALUES WITH (modulus 32, remainder 17); --- --- Name: analytics_cycle_analytics_issue_stage_events_05; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 FOR VALUES WITH (modulus 32, remainder 18); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 FOR VALUES WITH (modulus 32, remainder 5); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 FOR VALUES WITH (modulus 32, remainder 19); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 FOR VALUES WITH (modulus 32, remainder 20); --- --- Name: analytics_cycle_analytics_issue_stage_events_06; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 FOR VALUES WITH (modulus 32, remainder 21); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 FOR VALUES WITH (modulus 32, remainder 6); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 FOR VALUES WITH (modulus 32, remainder 22); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 FOR VALUES WITH (modulus 32, remainder 23); --- --- Name: analytics_cycle_analytics_issue_stage_events_07; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 FOR VALUES WITH (modulus 32, remainder 24); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 FOR VALUES WITH (modulus 32, remainder 7); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 FOR VALUES WITH (modulus 32, remainder 25); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 FOR VALUES WITH (modulus 32, remainder 26); --- --- Name: analytics_cycle_analytics_issue_stage_events_08; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 FOR VALUES WITH (modulus 32, remainder 27); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 FOR VALUES WITH (modulus 32, remainder 8); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 FOR VALUES WITH (modulus 32, remainder 28); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 FOR VALUES WITH (modulus 32, remainder 29); --- --- Name: analytics_cycle_analytics_issue_stage_events_09; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 FOR VALUES WITH (modulus 32, remainder 30); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 FOR VALUES WITH (modulus 32, remainder 9); +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 FOR VALUES WITH (modulus 32, remainder 31); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 FOR VALUES WITH (modulus 32, remainder 0); --- --- Name: analytics_cycle_analytics_issue_stage_events_10; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 FOR VALUES WITH (modulus 32, remainder 1); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 FOR VALUES WITH (modulus 32, remainder 10); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 FOR VALUES WITH (modulus 32, remainder 2); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 FOR VALUES WITH (modulus 32, remainder 3); --- --- Name: analytics_cycle_analytics_issue_stage_events_11; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 FOR VALUES WITH (modulus 32, remainder 4); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 FOR VALUES WITH (modulus 32, remainder 11); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 FOR VALUES WITH (modulus 32, remainder 5); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 FOR VALUES WITH (modulus 32, remainder 6); --- --- Name: analytics_cycle_analytics_issue_stage_events_12; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 FOR VALUES WITH (modulus 32, remainder 7); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 FOR VALUES WITH (modulus 32, remainder 12); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 FOR VALUES WITH (modulus 32, remainder 8); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 FOR VALUES WITH (modulus 32, remainder 9); --- --- Name: analytics_cycle_analytics_issue_stage_events_13; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 FOR VALUES WITH (modulus 32, remainder 10); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 FOR VALUES WITH (modulus 32, remainder 13); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 FOR VALUES WITH (modulus 32, remainder 11); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 FOR VALUES WITH (modulus 32, remainder 12); --- --- Name: analytics_cycle_analytics_issue_stage_events_14; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 FOR VALUES WITH (modulus 32, remainder 13); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 FOR VALUES WITH (modulus 32, remainder 14); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 FOR VALUES WITH (modulus 32, remainder 14); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 FOR VALUES WITH (modulus 32, remainder 15); --- --- Name: analytics_cycle_analytics_issue_stage_events_15; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 FOR VALUES WITH (modulus 32, remainder 16); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 FOR VALUES WITH (modulus 32, remainder 15); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 FOR VALUES WITH (modulus 32, remainder 17); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 FOR VALUES WITH (modulus 32, remainder 18); --- --- Name: analytics_cycle_analytics_issue_stage_events_16; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 FOR VALUES WITH (modulus 32, remainder 19); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 FOR VALUES WITH (modulus 32, remainder 16); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 FOR VALUES WITH (modulus 32, remainder 20); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 FOR VALUES WITH (modulus 32, remainder 21); --- --- Name: analytics_cycle_analytics_issue_stage_events_17; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 FOR VALUES WITH (modulus 32, remainder 22); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 FOR VALUES WITH (modulus 32, remainder 17); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 FOR VALUES WITH (modulus 32, remainder 23); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 FOR VALUES WITH (modulus 32, remainder 24); --- --- Name: analytics_cycle_analytics_issue_stage_events_18; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 FOR VALUES WITH (modulus 32, remainder 25); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 FOR VALUES WITH (modulus 32, remainder 18); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 FOR VALUES WITH (modulus 32, remainder 26); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 FOR VALUES WITH (modulus 32, remainder 27); --- --- Name: analytics_cycle_analytics_issue_stage_events_19; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 FOR VALUES WITH (modulus 32, remainder 28); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 FOR VALUES WITH (modulus 32, remainder 19); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 FOR VALUES WITH (modulus 32, remainder 29); +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 FOR VALUES WITH (modulus 32, remainder 30); --- --- Name: analytics_cycle_analytics_issue_stage_events_20; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 FOR VALUES WITH (modulus 32, remainder 31); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 FOR VALUES WITH (modulus 32, remainder 20); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_00 FOR VALUES WITH (modulus 64, remainder 0); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_01 FOR VALUES WITH (modulus 64, remainder 1); --- --- Name: analytics_cycle_analytics_issue_stage_events_21; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_02 FOR VALUES WITH (modulus 64, remainder 2); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 FOR VALUES WITH (modulus 32, remainder 21); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_03 FOR VALUES WITH (modulus 64, remainder 3); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_04 FOR VALUES WITH (modulus 64, remainder 4); --- --- Name: analytics_cycle_analytics_issue_stage_events_22; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_05 FOR VALUES WITH (modulus 64, remainder 5); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 FOR VALUES WITH (modulus 32, remainder 22); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_06 FOR VALUES WITH (modulus 64, remainder 6); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_07 FOR VALUES WITH (modulus 64, remainder 7); --- --- Name: analytics_cycle_analytics_issue_stage_events_23; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_08 FOR VALUES WITH (modulus 64, remainder 8); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 FOR VALUES WITH (modulus 32, remainder 23); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_09 FOR VALUES WITH (modulus 64, remainder 9); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_10 FOR VALUES WITH (modulus 64, remainder 10); --- --- Name: analytics_cycle_analytics_issue_stage_events_24; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_11 FOR VALUES WITH (modulus 64, remainder 11); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 FOR VALUES WITH (modulus 32, remainder 24); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_12 FOR VALUES WITH (modulus 64, remainder 12); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_13 FOR VALUES WITH (modulus 64, remainder 13); --- --- Name: analytics_cycle_analytics_issue_stage_events_25; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_14 FOR VALUES WITH (modulus 64, remainder 14); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 FOR VALUES WITH (modulus 32, remainder 25); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_15 FOR VALUES WITH (modulus 64, remainder 15); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_16 FOR VALUES WITH (modulus 64, remainder 16); --- --- Name: analytics_cycle_analytics_issue_stage_events_26; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_17 FOR VALUES WITH (modulus 64, remainder 17); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 FOR VALUES WITH (modulus 32, remainder 26); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_18 FOR VALUES WITH (modulus 64, remainder 18); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_19 FOR VALUES WITH (modulus 64, remainder 19); --- --- Name: analytics_cycle_analytics_issue_stage_events_27; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_20 FOR VALUES WITH (modulus 64, remainder 20); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 FOR VALUES WITH (modulus 32, remainder 27); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_21 FOR VALUES WITH (modulus 64, remainder 21); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_22 FOR VALUES WITH (modulus 64, remainder 22); --- --- Name: analytics_cycle_analytics_issue_stage_events_28; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_23 FOR VALUES WITH (modulus 64, remainder 23); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 FOR VALUES WITH (modulus 32, remainder 28); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_24 FOR VALUES WITH (modulus 64, remainder 24); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_25 FOR VALUES WITH (modulus 64, remainder 25); --- --- Name: analytics_cycle_analytics_issue_stage_events_29; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_26 FOR VALUES WITH (modulus 64, remainder 26); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 FOR VALUES WITH (modulus 32, remainder 29); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_27 FOR VALUES WITH (modulus 64, remainder 27); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_28 FOR VALUES WITH (modulus 64, remainder 28); --- --- Name: analytics_cycle_analytics_issue_stage_events_30; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_29 FOR VALUES WITH (modulus 64, remainder 29); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 FOR VALUES WITH (modulus 32, remainder 30); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_30 FOR VALUES WITH (modulus 64, remainder 30); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_31 FOR VALUES WITH (modulus 64, remainder 31); --- --- Name: analytics_cycle_analytics_issue_stage_events_31; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_32 FOR VALUES WITH (modulus 64, remainder 32); -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 FOR VALUES WITH (modulus 32, remainder 31); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_33 FOR VALUES WITH (modulus 64, remainder 33); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_34 FOR VALUES WITH (modulus 64, remainder 34); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_00; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_35 FOR VALUES WITH (modulus 64, remainder 35); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 FOR VALUES WITH (modulus 32, remainder 0); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_36 FOR VALUES WITH (modulus 64, remainder 36); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_37 FOR VALUES WITH (modulus 64, remainder 37); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_01; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_38 FOR VALUES WITH (modulus 64, remainder 38); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 FOR VALUES WITH (modulus 32, remainder 1); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_39 FOR VALUES WITH (modulus 64, remainder 39); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_40 FOR VALUES WITH (modulus 64, remainder 40); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_02; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_41 FOR VALUES WITH (modulus 64, remainder 41); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 FOR VALUES WITH (modulus 32, remainder 2); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_42 FOR VALUES WITH (modulus 64, remainder 42); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_43 FOR VALUES WITH (modulus 64, remainder 43); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_03; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_44 FOR VALUES WITH (modulus 64, remainder 44); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 FOR VALUES WITH (modulus 32, remainder 3); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_45 FOR VALUES WITH (modulus 64, remainder 45); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_46 FOR VALUES WITH (modulus 64, remainder 46); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_04; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_47 FOR VALUES WITH (modulus 64, remainder 47); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 FOR VALUES WITH (modulus 32, remainder 4); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_48 FOR VALUES WITH (modulus 64, remainder 48); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_49 FOR VALUES WITH (modulus 64, remainder 49); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_05; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_50 FOR VALUES WITH (modulus 64, remainder 50); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 FOR VALUES WITH (modulus 32, remainder 5); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_51 FOR VALUES WITH (modulus 64, remainder 51); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_52 FOR VALUES WITH (modulus 64, remainder 52); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_06; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_53 FOR VALUES WITH (modulus 64, remainder 53); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 FOR VALUES WITH (modulus 32, remainder 6); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_54 FOR VALUES WITH (modulus 64, remainder 54); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_55 FOR VALUES WITH (modulus 64, remainder 55); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_07; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_56 FOR VALUES WITH (modulus 64, remainder 56); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 FOR VALUES WITH (modulus 32, remainder 7); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_57 FOR VALUES WITH (modulus 64, remainder 57); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_58 FOR VALUES WITH (modulus 64, remainder 58); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_08; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_59 FOR VALUES WITH (modulus 64, remainder 59); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 FOR VALUES WITH (modulus 32, remainder 8); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_60 FOR VALUES WITH (modulus 64, remainder 60); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_61 FOR VALUES WITH (modulus 64, remainder 61); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_09; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_62 FOR VALUES WITH (modulus 64, remainder 62); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 FOR VALUES WITH (modulus 32, remainder 9); +ALTER TABLE ONLY issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_63 FOR VALUES WITH (modulus 64, remainder 63); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_00 FOR VALUES WITH (modulus 32, remainder 0); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_10; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_01 FOR VALUES WITH (modulus 32, remainder 1); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 FOR VALUES WITH (modulus 32, remainder 10); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_02 FOR VALUES WITH (modulus 32, remainder 2); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_03 FOR VALUES WITH (modulus 32, remainder 3); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_11; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_04 FOR VALUES WITH (modulus 32, remainder 4); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 FOR VALUES WITH (modulus 32, remainder 11); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_05 FOR VALUES WITH (modulus 32, remainder 5); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_06 FOR VALUES WITH (modulus 32, remainder 6); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_12; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_07 FOR VALUES WITH (modulus 32, remainder 7); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 FOR VALUES WITH (modulus 32, remainder 12); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_08 FOR VALUES WITH (modulus 32, remainder 8); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_09 FOR VALUES WITH (modulus 32, remainder 9); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_13; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_10 FOR VALUES WITH (modulus 32, remainder 10); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 FOR VALUES WITH (modulus 32, remainder 13); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_11 FOR VALUES WITH (modulus 32, remainder 11); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_12 FOR VALUES WITH (modulus 32, remainder 12); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_14; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_13 FOR VALUES WITH (modulus 32, remainder 13); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 FOR VALUES WITH (modulus 32, remainder 14); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_14 FOR VALUES WITH (modulus 32, remainder 14); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_15 FOR VALUES WITH (modulus 32, remainder 15); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_15; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_16 FOR VALUES WITH (modulus 32, remainder 16); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 FOR VALUES WITH (modulus 32, remainder 15); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_17 FOR VALUES WITH (modulus 32, remainder 17); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_18 FOR VALUES WITH (modulus 32, remainder 18); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_16; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_19 FOR VALUES WITH (modulus 32, remainder 19); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 FOR VALUES WITH (modulus 32, remainder 16); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_20 FOR VALUES WITH (modulus 32, remainder 20); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_21 FOR VALUES WITH (modulus 32, remainder 21); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_17; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_22 FOR VALUES WITH (modulus 32, remainder 22); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 FOR VALUES WITH (modulus 32, remainder 17); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_23 FOR VALUES WITH (modulus 32, remainder 23); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_24 FOR VALUES WITH (modulus 32, remainder 24); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_18; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_25 FOR VALUES WITH (modulus 32, remainder 25); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 FOR VALUES WITH (modulus 32, remainder 18); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_26 FOR VALUES WITH (modulus 32, remainder 26); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_27 FOR VALUES WITH (modulus 32, remainder 27); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_19; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_28 FOR VALUES WITH (modulus 32, remainder 28); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 FOR VALUES WITH (modulus 32, remainder 19); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_29 FOR VALUES WITH (modulus 32, remainder 29); +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_30 FOR VALUES WITH (modulus 32, remainder 30); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_20; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_31 FOR VALUES WITH (modulus 32, remainder 31); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 FOR VALUES WITH (modulus 32, remainder 20); +ALTER TABLE ONLY p_ci_build_trace_metadata ATTACH PARTITION ci_build_trace_metadata FOR VALUES IN ('100', '101', '102'); +ALTER TABLE ONLY p_ci_builds ATTACH PARTITION ci_builds FOR VALUES IN ('100'); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_21; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY p_ci_builds_metadata ATTACH PARTITION ci_builds_metadata FOR VALUES IN ('100'); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 FOR VALUES WITH (modulus 32, remainder 21); +ALTER TABLE ONLY p_ci_job_artifacts ATTACH PARTITION ci_job_artifacts FOR VALUES IN ('100', '101'); +ALTER TABLE ONLY p_ci_pipeline_variables ATTACH PARTITION ci_pipeline_variables FOR VALUES IN ('100', '101'); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_22; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY p_ci_pipelines ATTACH PARTITION ci_pipelines FOR VALUES IN ('100', '101', '102'); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 FOR VALUES WITH (modulus 32, remainder 22); +ALTER TABLE ONLY p_ci_stages ATTACH PARTITION ci_stages FOR VALUES IN ('100', '101'); +ALTER TABLE ONLY abuse_events ALTER COLUMN id SET DEFAULT nextval('abuse_events_id_seq'::regclass); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_23; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY abuse_report_assignees ALTER COLUMN id SET DEFAULT nextval('abuse_report_assignees_id_seq'::regclass); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 FOR VALUES WITH (modulus 32, remainder 23); +ALTER TABLE ONLY abuse_report_events ALTER COLUMN id SET DEFAULT nextval('abuse_report_events_id_seq'::regclass); +ALTER TABLE ONLY abuse_report_notes ALTER COLUMN id SET DEFAULT nextval('abuse_report_notes_id_seq'::regclass); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_24; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY abuse_report_user_mentions ALTER COLUMN id SET DEFAULT nextval('abuse_report_user_mentions_id_seq'::regclass); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 FOR VALUES WITH (modulus 32, remainder 24); +ALTER TABLE ONLY abuse_reports ALTER COLUMN id SET DEFAULT nextval('abuse_reports_id_seq'::regclass); +ALTER TABLE ONLY abuse_trust_scores ALTER COLUMN id SET DEFAULT nextval('abuse_trust_scores_id_seq'::regclass); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_25; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY achievements ALTER COLUMN id SET DEFAULT nextval('achievements_id_seq'::regclass); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 FOR VALUES WITH (modulus 32, remainder 25); +ALTER TABLE ONLY activity_pub_releases_subscriptions ALTER COLUMN id SET DEFAULT nextval('activity_pub_releases_subscriptions_id_seq'::regclass); +ALTER TABLE ONLY agent_activity_events ALTER COLUMN id SET DEFAULT nextval('agent_activity_events_id_seq'::regclass); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_26; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY agent_group_authorizations ALTER COLUMN id SET DEFAULT nextval('agent_group_authorizations_id_seq'::regclass); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 FOR VALUES WITH (modulus 32, remainder 26); +ALTER TABLE ONLY agent_project_authorizations ALTER COLUMN id SET DEFAULT nextval('agent_project_authorizations_id_seq'::regclass); +ALTER TABLE ONLY agent_user_access_group_authorizations ALTER COLUMN id SET DEFAULT nextval('agent_user_access_group_authorizations_id_seq'::regclass); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_27; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY agent_user_access_project_authorizations ALTER COLUMN id SET DEFAULT nextval('agent_user_access_project_authorizations_id_seq'::regclass); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 FOR VALUES WITH (modulus 32, remainder 27); +ALTER TABLE ONLY ai_agent_version_attachments ALTER COLUMN id SET DEFAULT nextval('ai_agent_version_attachments_id_seq'::regclass); +ALTER TABLE ONLY ai_agent_versions ALTER COLUMN id SET DEFAULT nextval('ai_agent_versions_id_seq'::regclass); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_28; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ai_agents ALTER COLUMN id SET DEFAULT nextval('ai_agents_id_seq'::regclass); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 FOR VALUES WITH (modulus 32, remainder 28); +ALTER TABLE ONLY ai_feature_settings ALTER COLUMN id SET DEFAULT nextval('ai_feature_settings_id_seq'::regclass); +ALTER TABLE ONLY ai_self_hosted_models ALTER COLUMN id SET DEFAULT nextval('ai_self_hosted_models_id_seq'::regclass); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_29; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ai_vectorizable_files ALTER COLUMN id SET DEFAULT nextval('ai_vectorizable_files_id_seq'::regclass); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 FOR VALUES WITH (modulus 32, remainder 29); +ALTER TABLE ONLY alert_management_alert_assignees ALTER COLUMN id SET DEFAULT nextval('alert_management_alert_assignees_id_seq'::regclass); +ALTER TABLE ONLY alert_management_alert_metric_images ALTER COLUMN id SET DEFAULT nextval('alert_management_alert_metric_images_id_seq'::regclass); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_30; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY alert_management_alert_user_mentions ALTER COLUMN id SET DEFAULT nextval('alert_management_alert_user_mentions_id_seq'::regclass); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 FOR VALUES WITH (modulus 32, remainder 30); +ALTER TABLE ONLY alert_management_alerts ALTER COLUMN id SET DEFAULT nextval('alert_management_alerts_id_seq'::regclass); +ALTER TABLE ONLY alert_management_http_integrations ALTER COLUMN id SET DEFAULT nextval('alert_management_http_integrations_id_seq'::regclass); --- --- Name: analytics_cycle_analytics_merge_request_stage_events_31; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY allowed_email_domains ALTER COLUMN id SET DEFAULT nextval('allowed_email_domains_id_seq'::regclass); -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 FOR VALUES WITH (modulus 32, remainder 31); +ALTER TABLE ONLY analytics_cycle_analytics_group_stages ALTER COLUMN id SET DEFAULT nextval('analytics_cycle_analytics_group_stages_id_seq'::regclass); +ALTER TABLE ONLY analytics_cycle_analytics_group_value_streams ALTER COLUMN id SET DEFAULT nextval('analytics_cycle_analytics_group_value_streams_id_seq'::regclass); --- --- Name: issue_search_data_00; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_stage_event_hashes ALTER COLUMN id SET DEFAULT nextval('analytics_cycle_analytics_stage_event_hashes_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_00 FOR VALUES WITH (modulus 64, remainder 0); +ALTER TABLE ONLY analytics_dashboards_pointers ALTER COLUMN id SET DEFAULT nextval('analytics_dashboards_pointers_id_seq'::regclass); +ALTER TABLE ONLY analytics_devops_adoption_segments ALTER COLUMN id SET DEFAULT nextval('analytics_devops_adoption_segments_id_seq'::regclass); --- --- Name: issue_search_data_01; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_devops_adoption_snapshots ALTER COLUMN id SET DEFAULT nextval('analytics_devops_adoption_snapshots_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_01 FOR VALUES WITH (modulus 64, remainder 1); +ALTER TABLE ONLY analytics_usage_trends_measurements ALTER COLUMN id SET DEFAULT nextval('analytics_usage_trends_measurements_id_seq'::regclass); +ALTER TABLE ONLY appearances ALTER COLUMN id SET DEFAULT nextval('appearances_id_seq'::regclass); --- --- Name: issue_search_data_02; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY application_setting_terms ALTER COLUMN id SET DEFAULT nextval('application_setting_terms_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_02 FOR VALUES WITH (modulus 64, remainder 2); +ALTER TABLE ONLY application_settings ALTER COLUMN id SET DEFAULT nextval('application_settings_id_seq'::regclass); +ALTER TABLE ONLY approval_group_rules ALTER COLUMN id SET DEFAULT nextval('approval_group_rules_id_seq'::regclass); --- --- Name: issue_search_data_03; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY approval_group_rules_groups ALTER COLUMN id SET DEFAULT nextval('approval_group_rules_groups_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_03 FOR VALUES WITH (modulus 64, remainder 3); +ALTER TABLE ONLY approval_group_rules_protected_branches ALTER COLUMN id SET DEFAULT nextval('approval_group_rules_protected_branches_id_seq'::regclass); +ALTER TABLE ONLY approval_group_rules_users ALTER COLUMN id SET DEFAULT nextval('approval_group_rules_users_id_seq'::regclass); --- --- Name: issue_search_data_04; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY approval_merge_request_rule_sources ALTER COLUMN id SET DEFAULT nextval('approval_merge_request_rule_sources_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_04 FOR VALUES WITH (modulus 64, remainder 4); +ALTER TABLE ONLY approval_merge_request_rules ALTER COLUMN id SET DEFAULT nextval('approval_merge_request_rules_id_seq'::regclass); +ALTER TABLE ONLY approval_merge_request_rules_approved_approvers ALTER COLUMN id SET DEFAULT nextval('approval_merge_request_rules_approved_approvers_id_seq'::regclass); --- --- Name: issue_search_data_05; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY approval_merge_request_rules_groups ALTER COLUMN id SET DEFAULT nextval('approval_merge_request_rules_groups_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_05 FOR VALUES WITH (modulus 64, remainder 5); +ALTER TABLE ONLY approval_merge_request_rules_users ALTER COLUMN id SET DEFAULT nextval('approval_merge_request_rules_users_id_seq'::regclass); +ALTER TABLE ONLY approval_policy_rule_project_links ALTER COLUMN id SET DEFAULT nextval('approval_policy_rule_project_links_id_seq'::regclass); --- --- Name: issue_search_data_06; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY approval_policy_rules ALTER COLUMN id SET DEFAULT nextval('approval_policy_rules_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_06 FOR VALUES WITH (modulus 64, remainder 6); +ALTER TABLE ONLY approval_project_rules ALTER COLUMN id SET DEFAULT nextval('approval_project_rules_id_seq'::regclass); +ALTER TABLE ONLY approval_project_rules_groups ALTER COLUMN id SET DEFAULT nextval('approval_project_rules_groups_id_seq'::regclass); --- --- Name: issue_search_data_07; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY approval_project_rules_users ALTER COLUMN id SET DEFAULT nextval('approval_project_rules_users_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_07 FOR VALUES WITH (modulus 64, remainder 7); +ALTER TABLE ONLY approvals ALTER COLUMN id SET DEFAULT nextval('approvals_id_seq'::regclass); +ALTER TABLE ONLY approver_groups ALTER COLUMN id SET DEFAULT nextval('approver_groups_id_seq'::regclass); --- --- Name: issue_search_data_08; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY approvers ALTER COLUMN id SET DEFAULT nextval('approvers_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_08 FOR VALUES WITH (modulus 64, remainder 8); +ALTER TABLE ONLY atlassian_identities ALTER COLUMN user_id SET DEFAULT nextval('atlassian_identities_user_id_seq'::regclass); +ALTER TABLE ONLY audit_events ALTER COLUMN id SET DEFAULT nextval('audit_events_id_seq'::regclass); --- --- Name: issue_search_data_09; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY audit_events_amazon_s3_configurations ALTER COLUMN id SET DEFAULT nextval('audit_events_amazon_s3_configurations_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_09 FOR VALUES WITH (modulus 64, remainder 9); +ALTER TABLE ONLY audit_events_external_audit_event_destinations ALTER COLUMN id SET DEFAULT nextval('audit_events_external_audit_event_destinations_id_seq'::regclass); +ALTER TABLE ONLY audit_events_google_cloud_logging_configurations ALTER COLUMN id SET DEFAULT nextval('audit_events_google_cloud_logging_configurations_id_seq'::regclass); --- --- Name: issue_search_data_10; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY audit_events_group_external_streaming_destinations ALTER COLUMN id SET DEFAULT nextval('audit_events_group_external_streaming_destinations_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_10 FOR VALUES WITH (modulus 64, remainder 10); +ALTER TABLE ONLY audit_events_group_streaming_event_type_filters ALTER COLUMN id SET DEFAULT nextval('audit_events_group_streaming_event_type_filters_id_seq'::regclass); +ALTER TABLE ONLY audit_events_instance_amazon_s3_configurations ALTER COLUMN id SET DEFAULT nextval('audit_events_instance_amazon_s3_configurations_id_seq'::regclass); --- --- Name: issue_search_data_11; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY audit_events_instance_external_audit_event_destinations ALTER COLUMN id SET DEFAULT nextval('audit_events_instance_external_audit_event_destinations_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_11 FOR VALUES WITH (modulus 64, remainder 11); +ALTER TABLE ONLY audit_events_instance_external_streaming_destinations ALTER COLUMN id SET DEFAULT nextval('audit_events_instance_external_streaming_destinations_id_seq'::regclass); +ALTER TABLE ONLY audit_events_instance_google_cloud_logging_configurations ALTER COLUMN id SET DEFAULT nextval('audit_events_instance_google_cloud_logging_configuration_id_seq'::regclass); --- --- Name: issue_search_data_12; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY audit_events_instance_streaming_event_type_filters ALTER COLUMN id SET DEFAULT nextval('audit_events_instance_streaming_event_type_filters_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_12 FOR VALUES WITH (modulus 64, remainder 12); +ALTER TABLE ONLY audit_events_streaming_event_type_filters ALTER COLUMN id SET DEFAULT nextval('audit_events_streaming_event_type_filters_id_seq'::regclass); +ALTER TABLE ONLY audit_events_streaming_group_namespace_filters ALTER COLUMN id SET DEFAULT nextval('audit_events_streaming_group_namespace_filters_id_seq'::regclass); --- --- Name: issue_search_data_13; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY audit_events_streaming_headers ALTER COLUMN id SET DEFAULT nextval('audit_events_streaming_headers_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_13 FOR VALUES WITH (modulus 64, remainder 13); +ALTER TABLE ONLY audit_events_streaming_http_group_namespace_filters ALTER COLUMN id SET DEFAULT nextval('audit_events_streaming_http_group_namespace_filters_id_seq'::regclass); +ALTER TABLE ONLY audit_events_streaming_http_instance_namespace_filters ALTER COLUMN id SET DEFAULT nextval('audit_events_streaming_http_instance_namespace_filters_id_seq'::regclass); --- --- Name: issue_search_data_14; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY audit_events_streaming_instance_event_type_filters ALTER COLUMN id SET DEFAULT nextval('audit_events_streaming_instance_event_type_filters_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_14 FOR VALUES WITH (modulus 64, remainder 14); +ALTER TABLE ONLY audit_events_streaming_instance_namespace_filters ALTER COLUMN id SET DEFAULT nextval('audit_events_streaming_instance_namespace_filters_id_seq'::regclass); +ALTER TABLE ONLY authentication_events ALTER COLUMN id SET DEFAULT nextval('authentication_events_id_seq'::regclass); --- --- Name: issue_search_data_15; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY automation_rules ALTER COLUMN id SET DEFAULT nextval('automation_rules_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_15 FOR VALUES WITH (modulus 64, remainder 15); +ALTER TABLE ONLY award_emoji ALTER COLUMN id SET DEFAULT nextval('award_emoji_id_seq'::regclass); +ALTER TABLE ONLY background_migration_jobs ALTER COLUMN id SET DEFAULT nextval('background_migration_jobs_id_seq'::regclass); --- --- Name: issue_search_data_16; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY badges ALTER COLUMN id SET DEFAULT nextval('badges_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_16 FOR VALUES WITH (modulus 64, remainder 16); +ALTER TABLE ONLY batched_background_migration_job_transition_logs ALTER COLUMN id SET DEFAULT nextval('batched_background_migration_job_transition_logs_id_seq'::regclass); +ALTER TABLE ONLY batched_background_migration_jobs ALTER COLUMN id SET DEFAULT nextval('batched_background_migration_jobs_id_seq'::regclass); --- --- Name: issue_search_data_17; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY batched_background_migrations ALTER COLUMN id SET DEFAULT nextval('batched_background_migrations_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_17 FOR VALUES WITH (modulus 64, remainder 17); +ALTER TABLE ONLY board_assignees ALTER COLUMN id SET DEFAULT nextval('board_assignees_id_seq'::regclass); +ALTER TABLE ONLY board_group_recent_visits ALTER COLUMN id SET DEFAULT nextval('board_group_recent_visits_id_seq'::regclass); --- --- Name: issue_search_data_18; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY board_labels ALTER COLUMN id SET DEFAULT nextval('board_labels_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_18 FOR VALUES WITH (modulus 64, remainder 18); +ALTER TABLE ONLY board_project_recent_visits ALTER COLUMN id SET DEFAULT nextval('board_project_recent_visits_id_seq'::regclass); +ALTER TABLE ONLY board_user_preferences ALTER COLUMN id SET DEFAULT nextval('board_user_preferences_id_seq'::regclass); --- --- Name: issue_search_data_19; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY boards ALTER COLUMN id SET DEFAULT nextval('boards_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_19 FOR VALUES WITH (modulus 64, remainder 19); +ALTER TABLE ONLY boards_epic_board_labels ALTER COLUMN id SET DEFAULT nextval('boards_epic_board_labels_id_seq'::regclass); +ALTER TABLE ONLY boards_epic_board_positions ALTER COLUMN id SET DEFAULT nextval('boards_epic_board_positions_id_seq'::regclass); --- --- Name: issue_search_data_20; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY boards_epic_board_recent_visits ALTER COLUMN id SET DEFAULT nextval('boards_epic_board_recent_visits_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_20 FOR VALUES WITH (modulus 64, remainder 20); +ALTER TABLE ONLY boards_epic_boards ALTER COLUMN id SET DEFAULT nextval('boards_epic_boards_id_seq'::regclass); +ALTER TABLE ONLY boards_epic_list_user_preferences ALTER COLUMN id SET DEFAULT nextval('boards_epic_list_user_preferences_id_seq'::regclass); --- --- Name: issue_search_data_21; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY boards_epic_lists ALTER COLUMN id SET DEFAULT nextval('boards_epic_lists_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_21 FOR VALUES WITH (modulus 64, remainder 21); +ALTER TABLE ONLY boards_epic_user_preferences ALTER COLUMN id SET DEFAULT nextval('boards_epic_user_preferences_id_seq'::regclass); +ALTER TABLE ONLY broadcast_messages ALTER COLUMN id SET DEFAULT nextval('broadcast_messages_id_seq'::regclass); --- --- Name: issue_search_data_22; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY bulk_import_batch_trackers ALTER COLUMN id SET DEFAULT nextval('bulk_import_batch_trackers_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_22 FOR VALUES WITH (modulus 64, remainder 22); +ALTER TABLE ONLY bulk_import_configurations ALTER COLUMN id SET DEFAULT nextval('bulk_import_configurations_id_seq'::regclass); +ALTER TABLE ONLY bulk_import_entities ALTER COLUMN id SET DEFAULT nextval('bulk_import_entities_id_seq'::regclass); --- --- Name: issue_search_data_23; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY bulk_import_export_batches ALTER COLUMN id SET DEFAULT nextval('bulk_import_export_batches_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_23 FOR VALUES WITH (modulus 64, remainder 23); +ALTER TABLE ONLY bulk_import_export_uploads ALTER COLUMN id SET DEFAULT nextval('bulk_import_export_uploads_id_seq'::regclass); +ALTER TABLE ONLY bulk_import_exports ALTER COLUMN id SET DEFAULT nextval('bulk_import_exports_id_seq'::regclass); --- --- Name: issue_search_data_24; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY bulk_import_failures ALTER COLUMN id SET DEFAULT nextval('bulk_import_failures_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_24 FOR VALUES WITH (modulus 64, remainder 24); +ALTER TABLE ONLY bulk_import_trackers ALTER COLUMN id SET DEFAULT nextval('bulk_import_trackers_id_seq'::regclass); +ALTER TABLE ONLY bulk_imports ALTER COLUMN id SET DEFAULT nextval('bulk_imports_id_seq'::regclass); --- --- Name: issue_search_data_25; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY catalog_resource_components ALTER COLUMN id SET DEFAULT nextval('catalog_resource_components_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_25 FOR VALUES WITH (modulus 64, remainder 25); +ALTER TABLE ONLY catalog_resource_versions ALTER COLUMN id SET DEFAULT nextval('catalog_resource_versions_id_seq'::regclass); +ALTER TABLE ONLY catalog_resources ALTER COLUMN id SET DEFAULT nextval('catalog_resources_id_seq'::regclass); --- --- Name: issue_search_data_26; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY catalog_verified_namespaces ALTER COLUMN id SET DEFAULT nextval('catalog_verified_namespaces_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_26 FOR VALUES WITH (modulus 64, remainder 26); +ALTER TABLE ONLY chat_names ALTER COLUMN id SET DEFAULT nextval('chat_names_id_seq'::regclass); +ALTER TABLE ONLY chat_teams ALTER COLUMN id SET DEFAULT nextval('chat_teams_id_seq'::regclass); --- --- Name: issue_search_data_27; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_build_needs ALTER COLUMN id SET DEFAULT nextval('ci_build_needs_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_27 FOR VALUES WITH (modulus 64, remainder 27); +ALTER TABLE ONLY ci_build_pending_states ALTER COLUMN id SET DEFAULT nextval('ci_build_pending_states_id_seq'::regclass); +ALTER TABLE ONLY ci_build_trace_chunks ALTER COLUMN id SET DEFAULT nextval('ci_build_trace_chunks_id_seq'::regclass); --- --- Name: issue_search_data_28; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_builds_runner_session ALTER COLUMN id SET DEFAULT nextval('ci_builds_runner_session_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_28 FOR VALUES WITH (modulus 64, remainder 28); +ALTER TABLE ONLY ci_daily_build_group_report_results ALTER COLUMN id SET DEFAULT nextval('ci_daily_build_group_report_results_id_seq'::regclass); +ALTER TABLE ONLY ci_deleted_objects ALTER COLUMN id SET DEFAULT nextval('ci_deleted_objects_id_seq'::regclass); --- --- Name: issue_search_data_29; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_freeze_periods ALTER COLUMN id SET DEFAULT nextval('ci_freeze_periods_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_29 FOR VALUES WITH (modulus 64, remainder 29); +ALTER TABLE ONLY ci_group_variables ALTER COLUMN id SET DEFAULT nextval('ci_group_variables_id_seq'::regclass); +ALTER TABLE ONLY ci_instance_variables ALTER COLUMN id SET DEFAULT nextval('ci_instance_variables_id_seq'::regclass); --- --- Name: issue_search_data_30; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_job_token_group_scope_links ALTER COLUMN id SET DEFAULT nextval('ci_job_token_group_scope_links_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_30 FOR VALUES WITH (modulus 64, remainder 30); +ALTER TABLE ONLY ci_job_token_project_scope_links ALTER COLUMN id SET DEFAULT nextval('ci_job_token_project_scope_links_id_seq'::regclass); +ALTER TABLE ONLY ci_job_variables ALTER COLUMN id SET DEFAULT nextval('ci_job_variables_id_seq'::regclass); --- --- Name: issue_search_data_31; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_minutes_additional_packs ALTER COLUMN id SET DEFAULT nextval('ci_minutes_additional_packs_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_31 FOR VALUES WITH (modulus 64, remainder 31); +ALTER TABLE ONLY ci_namespace_mirrors ALTER COLUMN id SET DEFAULT nextval('ci_namespace_mirrors_id_seq'::regclass); +ALTER TABLE ONLY ci_namespace_monthly_usages ALTER COLUMN id SET DEFAULT nextval('ci_namespace_monthly_usages_id_seq'::regclass); --- --- Name: issue_search_data_32; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_pending_builds ALTER COLUMN id SET DEFAULT nextval('ci_pending_builds_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_32 FOR VALUES WITH (modulus 64, remainder 32); +ALTER TABLE ONLY ci_pipeline_artifacts ALTER COLUMN id SET DEFAULT nextval('ci_pipeline_artifacts_id_seq'::regclass); +ALTER TABLE ONLY ci_pipeline_chat_data ALTER COLUMN id SET DEFAULT nextval('ci_pipeline_chat_data_id_seq'::regclass); --- --- Name: issue_search_data_33; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_pipeline_messages ALTER COLUMN id SET DEFAULT nextval('ci_pipeline_messages_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_33 FOR VALUES WITH (modulus 64, remainder 33); +ALTER TABLE ONLY ci_pipeline_schedule_variables ALTER COLUMN id SET DEFAULT nextval('ci_pipeline_schedule_variables_id_seq'::regclass); +ALTER TABLE ONLY ci_pipeline_schedules ALTER COLUMN id SET DEFAULT nextval('ci_pipeline_schedules_id_seq'::regclass); --- --- Name: issue_search_data_34; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_project_mirrors ALTER COLUMN id SET DEFAULT nextval('ci_project_mirrors_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_34 FOR VALUES WITH (modulus 64, remainder 34); +ALTER TABLE ONLY ci_project_monthly_usages ALTER COLUMN id SET DEFAULT nextval('ci_project_monthly_usages_id_seq'::regclass); +ALTER TABLE ONLY ci_refs ALTER COLUMN id SET DEFAULT nextval('ci_refs_id_seq'::regclass); --- --- Name: issue_search_data_35; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_resource_groups ALTER COLUMN id SET DEFAULT nextval('ci_resource_groups_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_35 FOR VALUES WITH (modulus 64, remainder 35); +ALTER TABLE ONLY ci_resources ALTER COLUMN id SET DEFAULT nextval('ci_resources_id_seq'::regclass); +ALTER TABLE ONLY ci_runner_machines ALTER COLUMN id SET DEFAULT nextval('ci_runner_machines_id_seq'::regclass); --- --- Name: issue_search_data_36; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_runner_namespaces ALTER COLUMN id SET DEFAULT nextval('ci_runner_namespaces_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_36 FOR VALUES WITH (modulus 64, remainder 36); +ALTER TABLE ONLY ci_runner_projects ALTER COLUMN id SET DEFAULT nextval('ci_runner_projects_id_seq'::regclass); +ALTER TABLE ONLY ci_runners ALTER COLUMN id SET DEFAULT nextval('ci_runners_id_seq'::regclass); --- --- Name: issue_search_data_37; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_running_builds ALTER COLUMN id SET DEFAULT nextval('ci_running_builds_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_37 FOR VALUES WITH (modulus 64, remainder 37); +ALTER TABLE ONLY ci_secure_file_states ALTER COLUMN ci_secure_file_id SET DEFAULT nextval('ci_secure_file_states_ci_secure_file_id_seq'::regclass); +ALTER TABLE ONLY ci_secure_files ALTER COLUMN id SET DEFAULT nextval('ci_secure_files_id_seq'::regclass); --- --- Name: issue_search_data_38; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_sources_pipelines ALTER COLUMN id SET DEFAULT nextval('ci_sources_pipelines_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_38 FOR VALUES WITH (modulus 64, remainder 38); +ALTER TABLE ONLY ci_sources_projects ALTER COLUMN id SET DEFAULT nextval('ci_sources_projects_id_seq'::regclass); +ALTER TABLE ONLY ci_subscriptions_projects ALTER COLUMN id SET DEFAULT nextval('ci_subscriptions_projects_id_seq'::regclass); --- --- Name: issue_search_data_39; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_trigger_requests ALTER COLUMN id SET DEFAULT nextval('ci_trigger_requests_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_39 FOR VALUES WITH (modulus 64, remainder 39); +ALTER TABLE ONLY ci_triggers ALTER COLUMN id SET DEFAULT nextval('ci_triggers_id_seq'::regclass); +ALTER TABLE ONLY ci_unit_test_failures ALTER COLUMN id SET DEFAULT nextval('ci_unit_test_failures_id_seq'::regclass); --- --- Name: issue_search_data_40; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_unit_tests ALTER COLUMN id SET DEFAULT nextval('ci_unit_tests_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_40 FOR VALUES WITH (modulus 64, remainder 40); +ALTER TABLE ONLY ci_variables ALTER COLUMN id SET DEFAULT nextval('ci_variables_id_seq'::regclass); +ALTER TABLE ONLY cloud_connector_access ALTER COLUMN id SET DEFAULT nextval('cloud_connector_access_id_seq'::regclass); --- --- Name: issue_search_data_41; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY cluster_agent_tokens ALTER COLUMN id SET DEFAULT nextval('cluster_agent_tokens_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_41 FOR VALUES WITH (modulus 64, remainder 41); +ALTER TABLE ONLY cluster_agent_url_configurations ALTER COLUMN id SET DEFAULT nextval('cluster_agent_url_configurations_id_seq'::regclass); +ALTER TABLE ONLY cluster_agents ALTER COLUMN id SET DEFAULT nextval('cluster_agents_id_seq'::regclass); --- --- Name: issue_search_data_42; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY cluster_enabled_grants ALTER COLUMN id SET DEFAULT nextval('cluster_enabled_grants_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_42 FOR VALUES WITH (modulus 64, remainder 42); +ALTER TABLE ONLY cluster_groups ALTER COLUMN id SET DEFAULT nextval('cluster_groups_id_seq'::regclass); +ALTER TABLE ONLY cluster_platforms_kubernetes ALTER COLUMN id SET DEFAULT nextval('cluster_platforms_kubernetes_id_seq'::regclass); --- --- Name: issue_search_data_43; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY cluster_projects ALTER COLUMN id SET DEFAULT nextval('cluster_projects_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_43 FOR VALUES WITH (modulus 64, remainder 43); +ALTER TABLE ONLY cluster_providers_aws ALTER COLUMN id SET DEFAULT nextval('cluster_providers_aws_id_seq'::regclass); +ALTER TABLE ONLY cluster_providers_gcp ALTER COLUMN id SET DEFAULT nextval('cluster_providers_gcp_id_seq'::regclass); --- --- Name: issue_search_data_44; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY clusters ALTER COLUMN id SET DEFAULT nextval('clusters_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_44 FOR VALUES WITH (modulus 64, remainder 44); +ALTER TABLE ONLY clusters_kubernetes_namespaces ALTER COLUMN id SET DEFAULT nextval('clusters_kubernetes_namespaces_id_seq'::regclass); +ALTER TABLE ONLY commit_user_mentions ALTER COLUMN id SET DEFAULT nextval('commit_user_mentions_id_seq'::regclass); --- --- Name: issue_search_data_45; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY compliance_checks ALTER COLUMN id SET DEFAULT nextval('compliance_checks_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_45 FOR VALUES WITH (modulus 64, remainder 45); +ALTER TABLE ONLY compliance_framework_security_policies ALTER COLUMN id SET DEFAULT nextval('compliance_framework_security_policies_id_seq'::regclass); +ALTER TABLE ONLY compliance_management_frameworks ALTER COLUMN id SET DEFAULT nextval('compliance_management_frameworks_id_seq'::regclass); --- --- Name: issue_search_data_46; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY compliance_requirements ALTER COLUMN id SET DEFAULT nextval('compliance_requirements_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_46 FOR VALUES WITH (modulus 64, remainder 46); +ALTER TABLE ONLY container_registry_protection_rules ALTER COLUMN id SET DEFAULT nextval('container_registry_protection_rules_id_seq'::regclass); +ALTER TABLE ONLY container_repositories ALTER COLUMN id SET DEFAULT nextval('container_repositories_id_seq'::regclass); --- --- Name: issue_search_data_47; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY content_blocked_states ALTER COLUMN id SET DEFAULT nextval('content_blocked_states_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_47 FOR VALUES WITH (modulus 64, remainder 47); +ALTER TABLE ONLY conversational_development_index_metrics ALTER COLUMN id SET DEFAULT nextval('conversational_development_index_metrics_id_seq'::regclass); +ALTER TABLE ONLY country_access_logs ALTER COLUMN id SET DEFAULT nextval('country_access_logs_id_seq'::regclass); --- --- Name: issue_search_data_48; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY coverage_fuzzing_corpuses ALTER COLUMN id SET DEFAULT nextval('coverage_fuzzing_corpuses_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_48 FOR VALUES WITH (modulus 64, remainder 48); +ALTER TABLE ONLY csv_issue_imports ALTER COLUMN id SET DEFAULT nextval('csv_issue_imports_id_seq'::regclass); +ALTER TABLE ONLY custom_emoji ALTER COLUMN id SET DEFAULT nextval('custom_emoji_id_seq'::regclass); --- --- Name: issue_search_data_49; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY custom_software_licenses ALTER COLUMN id SET DEFAULT nextval('custom_software_licenses_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_49 FOR VALUES WITH (modulus 64, remainder 49); +ALTER TABLE ONLY customer_relations_contacts ALTER COLUMN id SET DEFAULT nextval('customer_relations_contacts_id_seq'::regclass); +ALTER TABLE ONLY customer_relations_organizations ALTER COLUMN id SET DEFAULT nextval('customer_relations_organizations_id_seq'::regclass); --- --- Name: issue_search_data_50; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY dast_pre_scan_verification_steps ALTER COLUMN id SET DEFAULT nextval('dast_pre_scan_verification_steps_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_50 FOR VALUES WITH (modulus 64, remainder 50); +ALTER TABLE ONLY dast_pre_scan_verifications ALTER COLUMN id SET DEFAULT nextval('dast_pre_scan_verifications_id_seq'::regclass); +ALTER TABLE ONLY dast_profile_schedules ALTER COLUMN id SET DEFAULT nextval('dast_profile_schedules_id_seq'::regclass); --- --- Name: issue_search_data_51; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY dast_profiles ALTER COLUMN id SET DEFAULT nextval('dast_profiles_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_51 FOR VALUES WITH (modulus 64, remainder 51); +ALTER TABLE ONLY dast_profiles_tags ALTER COLUMN id SET DEFAULT nextval('dast_profiles_tags_id_seq'::regclass); +ALTER TABLE ONLY dast_scanner_profiles ALTER COLUMN id SET DEFAULT nextval('dast_scanner_profiles_id_seq'::regclass); --- --- Name: issue_search_data_52; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY dast_site_profile_secret_variables ALTER COLUMN id SET DEFAULT nextval('dast_site_profile_secret_variables_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_52 FOR VALUES WITH (modulus 64, remainder 52); +ALTER TABLE ONLY dast_site_profiles ALTER COLUMN id SET DEFAULT nextval('dast_site_profiles_id_seq'::regclass); +ALTER TABLE ONLY dast_site_tokens ALTER COLUMN id SET DEFAULT nextval('dast_site_tokens_id_seq'::regclass); --- --- Name: issue_search_data_53; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY dast_site_validations ALTER COLUMN id SET DEFAULT nextval('dast_site_validations_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_53 FOR VALUES WITH (modulus 64, remainder 53); +ALTER TABLE ONLY dast_sites ALTER COLUMN id SET DEFAULT nextval('dast_sites_id_seq'::regclass); +ALTER TABLE ONLY dependency_list_export_parts ALTER COLUMN id SET DEFAULT nextval('dependency_list_export_parts_id_seq'::regclass); --- --- Name: issue_search_data_54; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY dependency_list_exports ALTER COLUMN id SET DEFAULT nextval('dependency_list_exports_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_54 FOR VALUES WITH (modulus 64, remainder 54); +ALTER TABLE ONLY dependency_proxy_blobs ALTER COLUMN id SET DEFAULT nextval('dependency_proxy_blobs_id_seq'::regclass); +ALTER TABLE ONLY dependency_proxy_group_settings ALTER COLUMN id SET DEFAULT nextval('dependency_proxy_group_settings_id_seq'::regclass); --- --- Name: issue_search_data_55; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY dependency_proxy_manifests ALTER COLUMN id SET DEFAULT nextval('dependency_proxy_manifests_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_55 FOR VALUES WITH (modulus 64, remainder 55); +ALTER TABLE ONLY deploy_keys_projects ALTER COLUMN id SET DEFAULT nextval('deploy_keys_projects_id_seq'::regclass); +ALTER TABLE ONLY deploy_tokens ALTER COLUMN id SET DEFAULT nextval('deploy_tokens_id_seq'::regclass); --- --- Name: issue_search_data_56; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY deployment_approvals ALTER COLUMN id SET DEFAULT nextval('deployment_approvals_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_56 FOR VALUES WITH (modulus 64, remainder 56); +ALTER TABLE ONLY deployments ALTER COLUMN id SET DEFAULT nextval('deployments_id_seq'::regclass); +ALTER TABLE ONLY description_versions ALTER COLUMN id SET DEFAULT nextval('description_versions_id_seq'::regclass); --- --- Name: issue_search_data_57; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY design_management_designs ALTER COLUMN id SET DEFAULT nextval('design_management_designs_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_57 FOR VALUES WITH (modulus 64, remainder 57); +ALTER TABLE ONLY design_management_designs_versions ALTER COLUMN id SET DEFAULT nextval('design_management_designs_versions_id_seq'::regclass); +ALTER TABLE ONLY design_management_repositories ALTER COLUMN id SET DEFAULT nextval('design_management_repositories_id_seq'::regclass); --- --- Name: issue_search_data_58; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY design_management_versions ALTER COLUMN id SET DEFAULT nextval('design_management_versions_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_58 FOR VALUES WITH (modulus 64, remainder 58); +ALTER TABLE ONLY design_user_mentions ALTER COLUMN id SET DEFAULT nextval('design_user_mentions_id_seq'::regclass); +ALTER TABLE ONLY detached_partitions ALTER COLUMN id SET DEFAULT nextval('detached_partitions_id_seq'::regclass); --- --- Name: issue_search_data_59; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY diff_note_positions ALTER COLUMN id SET DEFAULT nextval('diff_note_positions_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_59 FOR VALUES WITH (modulus 64, remainder 59); +ALTER TABLE ONLY dingtalk_tracker_data ALTER COLUMN id SET DEFAULT nextval('dingtalk_tracker_data_id_seq'::regclass); +ALTER TABLE ONLY dora_configurations ALTER COLUMN id SET DEFAULT nextval('dora_configurations_id_seq'::regclass); --- --- Name: issue_search_data_60; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY dora_daily_metrics ALTER COLUMN id SET DEFAULT nextval('dora_daily_metrics_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_60 FOR VALUES WITH (modulus 64, remainder 60); +ALTER TABLE ONLY dora_performance_scores ALTER COLUMN id SET DEFAULT nextval('dora_performance_scores_id_seq'::regclass); +ALTER TABLE ONLY draft_notes ALTER COLUMN id SET DEFAULT nextval('draft_notes_id_seq'::regclass); --- --- Name: issue_search_data_61; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY duo_workflows_checkpoints ALTER COLUMN id SET DEFAULT nextval('duo_workflows_checkpoints_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_61 FOR VALUES WITH (modulus 64, remainder 61); +ALTER TABLE ONLY duo_workflows_workflows ALTER COLUMN id SET DEFAULT nextval('duo_workflows_workflows_id_seq'::regclass); +ALTER TABLE ONLY early_access_program_tracking_events ALTER COLUMN id SET DEFAULT nextval('early_access_program_tracking_events_id_seq'::regclass); --- --- Name: issue_search_data_62; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY elastic_index_settings ALTER COLUMN id SET DEFAULT nextval('elastic_index_settings_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_62 FOR VALUES WITH (modulus 64, remainder 62); +ALTER TABLE ONLY elastic_reindexing_slices ALTER COLUMN id SET DEFAULT nextval('elastic_reindexing_slices_id_seq'::regclass); +ALTER TABLE ONLY elastic_reindexing_subtasks ALTER COLUMN id SET DEFAULT nextval('elastic_reindexing_subtasks_id_seq'::regclass); --- --- Name: issue_search_data_63; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY elastic_reindexing_tasks ALTER COLUMN id SET DEFAULT nextval('elastic_reindexing_tasks_id_seq'::regclass); -ALTER TABLE ONLY public.issue_search_data ATTACH PARTITION gitlab_partitions_static.issue_search_data_63 FOR VALUES WITH (modulus 64, remainder 63); +ALTER TABLE ONLY emails ALTER COLUMN id SET DEFAULT nextval('emails_id_seq'::regclass); +ALTER TABLE ONLY environments ALTER COLUMN id SET DEFAULT nextval('environments_id_seq'::regclass); --- --- Name: namespace_descendants_00; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY epic_issues ALTER COLUMN id SET DEFAULT nextval('epic_issues_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_00 FOR VALUES WITH (modulus 32, remainder 0); +ALTER TABLE ONLY epic_metrics ALTER COLUMN id SET DEFAULT nextval('epic_metrics_id_seq'::regclass); +ALTER TABLE ONLY epic_user_mentions ALTER COLUMN id SET DEFAULT nextval('epic_user_mentions_id_seq'::regclass); --- --- Name: namespace_descendants_01; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY epics ALTER COLUMN id SET DEFAULT nextval('epics_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_01 FOR VALUES WITH (modulus 32, remainder 1); +ALTER TABLE ONLY error_tracking_client_keys ALTER COLUMN id SET DEFAULT nextval('error_tracking_client_keys_id_seq'::regclass); +ALTER TABLE ONLY error_tracking_error_events ALTER COLUMN id SET DEFAULT nextval('error_tracking_error_events_id_seq'::regclass); --- --- Name: namespace_descendants_02; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY error_tracking_errors ALTER COLUMN id SET DEFAULT nextval('error_tracking_errors_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_02 FOR VALUES WITH (modulus 32, remainder 2); +ALTER TABLE ONLY events ALTER COLUMN id SET DEFAULT nextval('events_id_seq'::regclass); +ALTER TABLE ONLY evidences ALTER COLUMN id SET DEFAULT nextval('evidences_id_seq'::regclass); --- --- Name: namespace_descendants_03; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY external_approval_rules ALTER COLUMN id SET DEFAULT nextval('external_approval_rules_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_03 FOR VALUES WITH (modulus 32, remainder 3); +ALTER TABLE ONLY external_pull_requests ALTER COLUMN id SET DEFAULT nextval('external_pull_requests_id_seq'::regclass); +ALTER TABLE ONLY external_status_checks ALTER COLUMN id SET DEFAULT nextval('external_status_checks_id_seq'::regclass); --- --- Name: namespace_descendants_04; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY external_status_checks_protected_branches ALTER COLUMN id SET DEFAULT nextval('external_status_checks_protected_branches_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_04 FOR VALUES WITH (modulus 32, remainder 4); +ALTER TABLE ONLY feature_gates ALTER COLUMN id SET DEFAULT nextval('feature_gates_id_seq'::regclass); +ALTER TABLE ONLY features ALTER COLUMN id SET DEFAULT nextval('features_id_seq'::regclass); --- --- Name: namespace_descendants_05; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY fork_network_members ALTER COLUMN id SET DEFAULT nextval('fork_network_members_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_05 FOR VALUES WITH (modulus 32, remainder 5); +ALTER TABLE ONLY fork_networks ALTER COLUMN id SET DEFAULT nextval('fork_networks_id_seq'::regclass); +ALTER TABLE ONLY geo_cache_invalidation_events ALTER COLUMN id SET DEFAULT nextval('geo_cache_invalidation_events_id_seq'::regclass); --- --- Name: namespace_descendants_06; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY geo_event_log ALTER COLUMN id SET DEFAULT nextval('geo_event_log_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_06 FOR VALUES WITH (modulus 32, remainder 6); +ALTER TABLE ONLY geo_events ALTER COLUMN id SET DEFAULT nextval('geo_events_id_seq'::regclass); +ALTER TABLE ONLY geo_node_namespace_links ALTER COLUMN id SET DEFAULT nextval('geo_node_namespace_links_id_seq'::regclass); --- --- Name: namespace_descendants_07; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY geo_node_statuses ALTER COLUMN id SET DEFAULT nextval('geo_node_statuses_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_07 FOR VALUES WITH (modulus 32, remainder 7); +ALTER TABLE ONLY geo_nodes ALTER COLUMN id SET DEFAULT nextval('geo_nodes_id_seq'::regclass); +ALTER TABLE ONLY ghost_user_migrations ALTER COLUMN id SET DEFAULT nextval('ghost_user_migrations_id_seq'::regclass); --- --- Name: namespace_descendants_08; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY gitlab_subscription_histories ALTER COLUMN id SET DEFAULT nextval('gitlab_subscription_histories_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_08 FOR VALUES WITH (modulus 32, remainder 8); +ALTER TABLE ONLY gitlab_subscriptions ALTER COLUMN id SET DEFAULT nextval('gitlab_subscriptions_id_seq'::regclass); +ALTER TABLE ONLY gpg_key_subkeys ALTER COLUMN id SET DEFAULT nextval('gpg_key_subkeys_id_seq'::regclass); --- --- Name: namespace_descendants_09; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY gpg_keys ALTER COLUMN id SET DEFAULT nextval('gpg_keys_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_09 FOR VALUES WITH (modulus 32, remainder 9); +ALTER TABLE ONLY gpg_signatures ALTER COLUMN id SET DEFAULT nextval('gpg_signatures_id_seq'::regclass); +ALTER TABLE ONLY grafana_integrations ALTER COLUMN id SET DEFAULT nextval('grafana_integrations_id_seq'::regclass); --- --- Name: namespace_descendants_10; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY group_crm_settings ALTER COLUMN group_id SET DEFAULT nextval('group_crm_settings_group_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_10 FOR VALUES WITH (modulus 32, remainder 10); +ALTER TABLE ONLY group_custom_attributes ALTER COLUMN id SET DEFAULT nextval('group_custom_attributes_id_seq'::regclass); +ALTER TABLE ONLY group_deploy_keys ALTER COLUMN id SET DEFAULT nextval('group_deploy_keys_id_seq'::regclass); --- --- Name: namespace_descendants_11; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY group_deploy_keys_groups ALTER COLUMN id SET DEFAULT nextval('group_deploy_keys_groups_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_11 FOR VALUES WITH (modulus 32, remainder 11); +ALTER TABLE ONLY group_deploy_tokens ALTER COLUMN id SET DEFAULT nextval('group_deploy_tokens_id_seq'::regclass); +ALTER TABLE ONLY group_group_links ALTER COLUMN id SET DEFAULT nextval('group_group_links_id_seq'::regclass); --- --- Name: namespace_descendants_12; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY group_import_states ALTER COLUMN group_id SET DEFAULT nextval('group_import_states_group_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_12 FOR VALUES WITH (modulus 32, remainder 12); +ALTER TABLE ONLY group_repository_storage_moves ALTER COLUMN id SET DEFAULT nextval('group_repository_storage_moves_id_seq'::regclass); +ALTER TABLE ONLY group_saved_replies ALTER COLUMN id SET DEFAULT nextval('group_saved_replies_id_seq'::regclass); --- --- Name: namespace_descendants_13; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY group_ssh_certificates ALTER COLUMN id SET DEFAULT nextval('group_ssh_certificates_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_13 FOR VALUES WITH (modulus 32, remainder 13); +ALTER TABLE ONLY group_wiki_repository_states ALTER COLUMN id SET DEFAULT nextval('group_wiki_repository_states_id_seq'::regclass); +ALTER TABLE ONLY groups_visits ALTER COLUMN id SET DEFAULT nextval('groups_visits_id_seq'::regclass); --- --- Name: namespace_descendants_14; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY historical_data ALTER COLUMN id SET DEFAULT nextval('historical_data_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_14 FOR VALUES WITH (modulus 32, remainder 14); +ALTER TABLE ONLY identities ALTER COLUMN id SET DEFAULT nextval('identities_id_seq'::regclass); +ALTER TABLE ONLY import_export_uploads ALTER COLUMN id SET DEFAULT nextval('import_export_uploads_id_seq'::regclass); --- --- Name: namespace_descendants_15; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY import_failures ALTER COLUMN id SET DEFAULT nextval('import_failures_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_15 FOR VALUES WITH (modulus 32, remainder 15); +ALTER TABLE ONLY import_placeholder_memberships ALTER COLUMN id SET DEFAULT nextval('import_placeholder_memberships_id_seq'::regclass); +ALTER TABLE ONLY import_source_user_placeholder_references ALTER COLUMN id SET DEFAULT nextval('import_source_user_placeholder_references_id_seq'::regclass); --- --- Name: namespace_descendants_16; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY import_source_users ALTER COLUMN id SET DEFAULT nextval('import_source_users_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_16 FOR VALUES WITH (modulus 32, remainder 16); +ALTER TABLE ONLY incident_management_escalation_policies ALTER COLUMN id SET DEFAULT nextval('incident_management_escalation_policies_id_seq'::regclass); +ALTER TABLE ONLY incident_management_escalation_rules ALTER COLUMN id SET DEFAULT nextval('incident_management_escalation_rules_id_seq'::regclass); --- --- Name: namespace_descendants_17; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY incident_management_issuable_escalation_statuses ALTER COLUMN id SET DEFAULT nextval('incident_management_issuable_escalation_statuses_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_17 FOR VALUES WITH (modulus 32, remainder 17); +ALTER TABLE ONLY incident_management_oncall_participants ALTER COLUMN id SET DEFAULT nextval('incident_management_oncall_participants_id_seq'::regclass); +ALTER TABLE ONLY incident_management_oncall_rotations ALTER COLUMN id SET DEFAULT nextval('incident_management_oncall_rotations_id_seq'::regclass); --- --- Name: namespace_descendants_18; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY incident_management_oncall_schedules ALTER COLUMN id SET DEFAULT nextval('incident_management_oncall_schedules_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_18 FOR VALUES WITH (modulus 32, remainder 18); +ALTER TABLE ONLY incident_management_oncall_shifts ALTER COLUMN id SET DEFAULT nextval('incident_management_oncall_shifts_id_seq'::regclass); +ALTER TABLE ONLY incident_management_pending_alert_escalations ALTER COLUMN id SET DEFAULT nextval('incident_management_pending_alert_escalations_id_seq'::regclass); --- --- Name: namespace_descendants_19; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY incident_management_pending_issue_escalations ALTER COLUMN id SET DEFAULT nextval('incident_management_pending_issue_escalations_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_19 FOR VALUES WITH (modulus 32, remainder 19); +ALTER TABLE ONLY incident_management_timeline_event_tag_links ALTER COLUMN id SET DEFAULT nextval('incident_management_timeline_event_tag_links_id_seq'::regclass); +ALTER TABLE ONLY incident_management_timeline_event_tags ALTER COLUMN id SET DEFAULT nextval('incident_management_timeline_event_tags_id_seq'::regclass); --- --- Name: namespace_descendants_20; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY incident_management_timeline_events ALTER COLUMN id SET DEFAULT nextval('incident_management_timeline_events_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_20 FOR VALUES WITH (modulus 32, remainder 20); +ALTER TABLE ONLY index_statuses ALTER COLUMN id SET DEFAULT nextval('index_statuses_id_seq'::regclass); +ALTER TABLE ONLY insights ALTER COLUMN id SET DEFAULT nextval('insights_id_seq'::regclass); --- --- Name: namespace_descendants_21; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY instance_audit_events_streaming_headers ALTER COLUMN id SET DEFAULT nextval('instance_audit_events_streaming_headers_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_21 FOR VALUES WITH (modulus 32, remainder 21); +ALTER TABLE ONLY integrations ALTER COLUMN id SET DEFAULT nextval('integrations_id_seq'::regclass); +ALTER TABLE ONLY internal_ids ALTER COLUMN id SET DEFAULT nextval('internal_ids_id_seq'::regclass); --- --- Name: namespace_descendants_22; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ip_restrictions ALTER COLUMN id SET DEFAULT nextval('ip_restrictions_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_22 FOR VALUES WITH (modulus 32, remainder 22); +ALTER TABLE ONLY issuable_metric_images ALTER COLUMN id SET DEFAULT nextval('issuable_metric_images_id_seq'::regclass); +ALTER TABLE ONLY issuable_resource_links ALTER COLUMN id SET DEFAULT nextval('issuable_resource_links_id_seq'::regclass); --- --- Name: namespace_descendants_23; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issuable_severities ALTER COLUMN id SET DEFAULT nextval('issuable_severities_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_23 FOR VALUES WITH (modulus 32, remainder 23); +ALTER TABLE ONLY issuable_slas ALTER COLUMN id SET DEFAULT nextval('issuable_slas_id_seq'::regclass); +ALTER TABLE ONLY issue_assignment_events ALTER COLUMN id SET DEFAULT nextval('issue_assignment_events_id_seq'::regclass); --- --- Name: namespace_descendants_24; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_customer_relations_contacts ALTER COLUMN id SET DEFAULT nextval('issue_customer_relations_contacts_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_24 FOR VALUES WITH (modulus 32, remainder 24); +ALTER TABLE ONLY issue_email_participants ALTER COLUMN id SET DEFAULT nextval('issue_email_participants_id_seq'::regclass); +ALTER TABLE ONLY issue_emails ALTER COLUMN id SET DEFAULT nextval('issue_emails_id_seq'::regclass); --- --- Name: namespace_descendants_25; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_links ALTER COLUMN id SET DEFAULT nextval('issue_links_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_25 FOR VALUES WITH (modulus 32, remainder 25); +ALTER TABLE ONLY issue_metrics ALTER COLUMN id SET DEFAULT nextval('issue_metrics_id_seq'::regclass); +ALTER TABLE ONLY issue_tracker_data ALTER COLUMN id SET DEFAULT nextval('issue_tracker_data_id_seq'::regclass); --- --- Name: namespace_descendants_26; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_user_mentions ALTER COLUMN id SET DEFAULT nextval('issue_user_mentions_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_26 FOR VALUES WITH (modulus 32, remainder 26); +ALTER TABLE ONLY issues ALTER COLUMN id SET DEFAULT nextval('issues_id_seq'::regclass); +ALTER TABLE ONLY iterations_cadences ALTER COLUMN id SET DEFAULT nextval('iterations_cadences_id_seq'::regclass); --- --- Name: namespace_descendants_27; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY jira_connect_installations ALTER COLUMN id SET DEFAULT nextval('jira_connect_installations_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_27 FOR VALUES WITH (modulus 32, remainder 27); +ALTER TABLE ONLY jira_connect_subscriptions ALTER COLUMN id SET DEFAULT nextval('jira_connect_subscriptions_id_seq'::regclass); +ALTER TABLE ONLY jira_imports ALTER COLUMN id SET DEFAULT nextval('jira_imports_id_seq'::regclass); --- --- Name: namespace_descendants_28; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY jira_tracker_data ALTER COLUMN id SET DEFAULT nextval('jira_tracker_data_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_28 FOR VALUES WITH (modulus 32, remainder 28); +ALTER TABLE ONLY keys ALTER COLUMN id SET DEFAULT nextval('keys_id_seq'::regclass); +ALTER TABLE ONLY label_links ALTER COLUMN id SET DEFAULT nextval('label_links_id_seq'::regclass); --- --- Name: namespace_descendants_29; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY label_priorities ALTER COLUMN id SET DEFAULT nextval('label_priorities_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_29 FOR VALUES WITH (modulus 32, remainder 29); +ALTER TABLE ONLY labels ALTER COLUMN id SET DEFAULT nextval('labels_id_seq'::regclass); +ALTER TABLE ONLY ldap_group_links ALTER COLUMN id SET DEFAULT nextval('ldap_group_links_id_seq'::regclass); --- --- Name: namespace_descendants_30; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY lfs_file_locks ALTER COLUMN id SET DEFAULT nextval('lfs_file_locks_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_30 FOR VALUES WITH (modulus 32, remainder 30); +ALTER TABLE ONLY lfs_object_states ALTER COLUMN lfs_object_id SET DEFAULT nextval('lfs_object_states_lfs_object_id_seq'::regclass); +ALTER TABLE ONLY lfs_objects ALTER COLUMN id SET DEFAULT nextval('lfs_objects_id_seq'::regclass); --- --- Name: namespace_descendants_31; Type: TABLE ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY lfs_objects_projects ALTER COLUMN id SET DEFAULT nextval('lfs_objects_projects_id_seq'::regclass); -ALTER TABLE ONLY public.namespace_descendants ATTACH PARTITION gitlab_partitions_static.namespace_descendants_31 FOR VALUES WITH (modulus 32, remainder 31); +ALTER TABLE ONLY licenses ALTER COLUMN id SET DEFAULT nextval('licenses_id_seq'::regclass); +ALTER TABLE ONLY list_user_preferences ALTER COLUMN id SET DEFAULT nextval('list_user_preferences_id_seq'::regclass); --- --- Name: ci_build_trace_metadata; Type: TABLE ATTACH; Schema: public; Owner: - --- +ALTER TABLE ONLY lists ALTER COLUMN id SET DEFAULT nextval('lists_id_seq'::regclass); -ALTER TABLE ONLY public.p_ci_build_trace_metadata ATTACH PARTITION public.ci_build_trace_metadata FOR VALUES IN ('100', '101', '102'); +ALTER TABLE ONLY loose_foreign_keys_deleted_records ALTER COLUMN id SET DEFAULT nextval('loose_foreign_keys_deleted_records_id_seq'::regclass); +ALTER TABLE ONLY member_approvals ALTER COLUMN id SET DEFAULT nextval('member_approvals_id_seq'::regclass); --- --- Name: ci_builds; Type: TABLE ATTACH; Schema: public; Owner: - --- +ALTER TABLE ONLY member_roles ALTER COLUMN id SET DEFAULT nextval('member_roles_id_seq'::regclass); -ALTER TABLE ONLY public.p_ci_builds ATTACH PARTITION public.ci_builds FOR VALUES IN ('100'); +ALTER TABLE ONLY members ALTER COLUMN id SET DEFAULT nextval('members_id_seq'::regclass); +ALTER TABLE ONLY merge_request_assignees ALTER COLUMN id SET DEFAULT nextval('merge_request_assignees_id_seq'::regclass); --- --- Name: ci_builds_metadata; Type: TABLE ATTACH; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_request_assignment_events ALTER COLUMN id SET DEFAULT nextval('merge_request_assignment_events_id_seq'::regclass); -ALTER TABLE ONLY public.p_ci_builds_metadata ATTACH PARTITION public.ci_builds_metadata FOR VALUES IN ('100'); +ALTER TABLE ONLY merge_request_blocks ALTER COLUMN id SET DEFAULT nextval('merge_request_blocks_id_seq'::regclass); +ALTER TABLE ONLY merge_request_cleanup_schedules ALTER COLUMN merge_request_id SET DEFAULT nextval('merge_request_cleanup_schedules_merge_request_id_seq'::regclass); --- --- Name: ci_job_artifacts; Type: TABLE ATTACH; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_request_context_commits ALTER COLUMN id SET DEFAULT nextval('merge_request_context_commits_id_seq'::regclass); -ALTER TABLE ONLY public.p_ci_job_artifacts ATTACH PARTITION public.ci_job_artifacts FOR VALUES IN ('100', '101'); +ALTER TABLE ONLY merge_request_diff_commit_users ALTER COLUMN id SET DEFAULT nextval('merge_request_diff_commit_users_id_seq'::regclass); +ALTER TABLE ONLY merge_request_diff_details ALTER COLUMN merge_request_diff_id SET DEFAULT nextval('merge_request_diff_details_merge_request_diff_id_seq'::regclass); --- --- Name: ci_pipeline_variables; Type: TABLE ATTACH; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_request_diffs ALTER COLUMN id SET DEFAULT nextval('merge_request_diffs_id_seq'::regclass); -ALTER TABLE ONLY public.p_ci_pipeline_variables ATTACH PARTITION public.ci_pipeline_variables FOR VALUES IN ('100', '101'); +ALTER TABLE ONLY merge_request_metrics ALTER COLUMN id SET DEFAULT nextval('merge_request_metrics_id_seq'::regclass); +ALTER TABLE ONLY merge_request_predictions ALTER COLUMN merge_request_id SET DEFAULT nextval('merge_request_predictions_merge_request_id_seq'::regclass); --- --- Name: ci_pipelines; Type: TABLE ATTACH; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_request_requested_changes ALTER COLUMN id SET DEFAULT nextval('merge_request_requested_changes_id_seq'::regclass); -ALTER TABLE ONLY public.p_ci_pipelines ATTACH PARTITION public.ci_pipelines FOR VALUES IN ('100', '101', '102'); +ALTER TABLE ONLY merge_request_reviewers ALTER COLUMN id SET DEFAULT nextval('merge_request_reviewers_id_seq'::regclass); +ALTER TABLE ONLY merge_request_user_mentions ALTER COLUMN id SET DEFAULT nextval('merge_request_user_mentions_id_seq'::regclass); --- --- Name: ci_stages; Type: TABLE ATTACH; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_requests ALTER COLUMN id SET DEFAULT nextval('merge_requests_id_seq'::regclass); -ALTER TABLE ONLY public.p_ci_stages ATTACH PARTITION public.ci_stages FOR VALUES IN ('100', '101'); +ALTER TABLE ONLY merge_requests_closing_issues ALTER COLUMN id SET DEFAULT nextval('merge_requests_closing_issues_id_seq'::regclass); +ALTER TABLE ONLY merge_requests_compliance_violations ALTER COLUMN id SET DEFAULT nextval('merge_requests_compliance_violations_id_seq'::regclass); --- --- Name: abuse_events id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_trains ALTER COLUMN id SET DEFAULT nextval('merge_trains_id_seq'::regclass); -ALTER TABLE ONLY public.abuse_events ALTER COLUMN id SET DEFAULT nextval('public.abuse_events_id_seq'::regclass); +ALTER TABLE ONLY metrics_dashboard_annotations ALTER COLUMN id SET DEFAULT nextval('metrics_dashboard_annotations_id_seq'::regclass); +ALTER TABLE ONLY metrics_users_starred_dashboards ALTER COLUMN id SET DEFAULT nextval('metrics_users_starred_dashboards_id_seq'::regclass); --- --- Name: abuse_report_assignees id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY milestones ALTER COLUMN id SET DEFAULT nextval('milestones_id_seq'::regclass); -ALTER TABLE ONLY public.abuse_report_assignees ALTER COLUMN id SET DEFAULT nextval('public.abuse_report_assignees_id_seq'::regclass); +ALTER TABLE ONLY ml_candidate_metadata ALTER COLUMN id SET DEFAULT nextval('ml_candidate_metadata_id_seq'::regclass); +ALTER TABLE ONLY ml_candidate_metrics ALTER COLUMN id SET DEFAULT nextval('ml_candidate_metrics_id_seq'::regclass); --- --- Name: abuse_report_events id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY ml_candidate_params ALTER COLUMN id SET DEFAULT nextval('ml_candidate_params_id_seq'::regclass); -ALTER TABLE ONLY public.abuse_report_events ALTER COLUMN id SET DEFAULT nextval('public.abuse_report_events_id_seq'::regclass); +ALTER TABLE ONLY ml_candidates ALTER COLUMN id SET DEFAULT nextval('ml_candidates_id_seq'::regclass); +ALTER TABLE ONLY ml_experiment_metadata ALTER COLUMN id SET DEFAULT nextval('ml_experiment_metadata_id_seq'::regclass); --- --- Name: abuse_report_notes id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY ml_experiments ALTER COLUMN id SET DEFAULT nextval('ml_experiments_id_seq'::regclass); -ALTER TABLE ONLY public.abuse_report_notes ALTER COLUMN id SET DEFAULT nextval('public.abuse_report_notes_id_seq'::regclass); +ALTER TABLE ONLY ml_model_metadata ALTER COLUMN id SET DEFAULT nextval('ml_model_metadata_id_seq'::regclass); +ALTER TABLE ONLY ml_model_version_metadata ALTER COLUMN id SET DEFAULT nextval('ml_model_version_metadata_id_seq'::regclass); --- --- Name: abuse_report_user_mentions id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY ml_model_versions ALTER COLUMN id SET DEFAULT nextval('ml_model_versions_id_seq'::regclass); -ALTER TABLE ONLY public.abuse_report_user_mentions ALTER COLUMN id SET DEFAULT nextval('public.abuse_report_user_mentions_id_seq'::regclass); +ALTER TABLE ONLY ml_models ALTER COLUMN id SET DEFAULT nextval('ml_models_id_seq'::regclass); +ALTER TABLE ONLY namespace_admin_notes ALTER COLUMN id SET DEFAULT nextval('namespace_admin_notes_id_seq'::regclass); --- --- Name: abuse_reports id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY namespace_bans ALTER COLUMN id SET DEFAULT nextval('namespace_bans_id_seq'::regclass); -ALTER TABLE ONLY public.abuse_reports ALTER COLUMN id SET DEFAULT nextval('public.abuse_reports_id_seq'::regclass); +ALTER TABLE ONLY namespace_commit_emails ALTER COLUMN id SET DEFAULT nextval('namespace_commit_emails_id_seq'::regclass); +ALTER TABLE ONLY namespace_import_users ALTER COLUMN id SET DEFAULT nextval('namespace_import_users_id_seq'::regclass); --- --- Name: abuse_trust_scores id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY namespace_statistics ALTER COLUMN id SET DEFAULT nextval('namespace_statistics_id_seq'::regclass); -ALTER TABLE ONLY public.abuse_trust_scores ALTER COLUMN id SET DEFAULT nextval('public.abuse_trust_scores_id_seq'::regclass); +ALTER TABLE ONLY namespaces ALTER COLUMN id SET DEFAULT nextval('namespaces_id_seq'::regclass); +ALTER TABLE ONLY namespaces_storage_limit_exclusions ALTER COLUMN id SET DEFAULT nextval('namespaces_storage_limit_exclusions_id_seq'::regclass); --- --- Name: achievements id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY namespaces_sync_events ALTER COLUMN id SET DEFAULT nextval('namespaces_sync_events_id_seq'::regclass); -ALTER TABLE ONLY public.achievements ALTER COLUMN id SET DEFAULT nextval('public.achievements_id_seq'::regclass); +ALTER TABLE ONLY note_diff_files ALTER COLUMN id SET DEFAULT nextval('note_diff_files_id_seq'::regclass); +ALTER TABLE ONLY note_metadata ALTER COLUMN note_id SET DEFAULT nextval('note_metadata_note_id_seq'::regclass); --- --- Name: activity_pub_releases_subscriptions id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY notes ALTER COLUMN id SET DEFAULT nextval('notes_id_seq'::regclass); -ALTER TABLE ONLY public.activity_pub_releases_subscriptions ALTER COLUMN id SET DEFAULT nextval('public.activity_pub_releases_subscriptions_id_seq'::regclass); +ALTER TABLE ONLY notification_settings ALTER COLUMN id SET DEFAULT nextval('notification_settings_id_seq'::regclass); +ALTER TABLE ONLY oauth_access_grants ALTER COLUMN id SET DEFAULT nextval('oauth_access_grants_id_seq'::regclass); --- --- Name: agent_activity_events id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY oauth_access_tokens ALTER COLUMN id SET DEFAULT nextval('oauth_access_tokens_id_seq'::regclass); -ALTER TABLE ONLY public.agent_activity_events ALTER COLUMN id SET DEFAULT nextval('public.agent_activity_events_id_seq'::regclass); +ALTER TABLE ONLY oauth_applications ALTER COLUMN id SET DEFAULT nextval('oauth_applications_id_seq'::regclass); +ALTER TABLE ONLY oauth_device_grants ALTER COLUMN id SET DEFAULT nextval('oauth_device_grants_id_seq'::regclass); --- --- Name: agent_group_authorizations id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY oauth_openid_requests ALTER COLUMN id SET DEFAULT nextval('oauth_openid_requests_id_seq'::regclass); -ALTER TABLE ONLY public.agent_group_authorizations ALTER COLUMN id SET DEFAULT nextval('public.agent_group_authorizations_id_seq'::regclass); +ALTER TABLE ONLY observability_logs_issues_connections ALTER COLUMN id SET DEFAULT nextval('observability_logs_issues_connections_id_seq'::regclass); +ALTER TABLE ONLY observability_metrics_issues_connections ALTER COLUMN id SET DEFAULT nextval('observability_metrics_issues_connections_id_seq'::regclass); --- --- Name: agent_project_authorizations id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY observability_traces_issues_connections ALTER COLUMN id SET DEFAULT nextval('observability_traces_issues_connections_id_seq'::regclass); -ALTER TABLE ONLY public.agent_project_authorizations ALTER COLUMN id SET DEFAULT nextval('public.agent_project_authorizations_id_seq'::regclass); +ALTER TABLE ONLY onboarding_progresses ALTER COLUMN id SET DEFAULT nextval('onboarding_progresses_id_seq'::regclass); +ALTER TABLE ONLY operations_feature_flag_scopes ALTER COLUMN id SET DEFAULT nextval('operations_feature_flag_scopes_id_seq'::regclass); --- --- Name: agent_user_access_group_authorizations id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY operations_feature_flags ALTER COLUMN id SET DEFAULT nextval('operations_feature_flags_id_seq'::regclass); -ALTER TABLE ONLY public.agent_user_access_group_authorizations ALTER COLUMN id SET DEFAULT nextval('public.agent_user_access_group_authorizations_id_seq'::regclass); +ALTER TABLE ONLY operations_feature_flags_clients ALTER COLUMN id SET DEFAULT nextval('operations_feature_flags_clients_id_seq'::regclass); +ALTER TABLE ONLY operations_feature_flags_issues ALTER COLUMN id SET DEFAULT nextval('operations_feature_flags_issues_id_seq'::regclass); --- --- Name: agent_user_access_project_authorizations id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY operations_scopes ALTER COLUMN id SET DEFAULT nextval('operations_scopes_id_seq'::regclass); -ALTER TABLE ONLY public.agent_user_access_project_authorizations ALTER COLUMN id SET DEFAULT nextval('public.agent_user_access_project_authorizations_id_seq'::regclass); +ALTER TABLE ONLY operations_strategies ALTER COLUMN id SET DEFAULT nextval('operations_strategies_id_seq'::regclass); +ALTER TABLE ONLY operations_strategies_user_lists ALTER COLUMN id SET DEFAULT nextval('operations_strategies_user_lists_id_seq'::regclass); --- --- Name: ai_agent_version_attachments id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY operations_user_lists ALTER COLUMN id SET DEFAULT nextval('operations_user_lists_id_seq'::regclass); -ALTER TABLE ONLY public.ai_agent_version_attachments ALTER COLUMN id SET DEFAULT nextval('public.ai_agent_version_attachments_id_seq'::regclass); +ALTER TABLE ONLY organization_users ALTER COLUMN id SET DEFAULT nextval('organization_users_id_seq'::regclass); +ALTER TABLE ONLY organizations ALTER COLUMN id SET DEFAULT nextval('organizations_id_seq'::regclass); --- --- Name: ai_agent_versions id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY p_batched_git_ref_updates_deletions ALTER COLUMN id SET DEFAULT nextval('p_batched_git_ref_updates_deletions_id_seq'::regclass); -ALTER TABLE ONLY public.ai_agent_versions ALTER COLUMN id SET DEFAULT nextval('public.ai_agent_versions_id_seq'::regclass); +ALTER TABLE ONLY p_catalog_resource_component_usages ALTER COLUMN id SET DEFAULT nextval('p_catalog_resource_component_usages_id_seq'::regclass); +ALTER TABLE ONLY p_catalog_resource_sync_events ALTER COLUMN id SET DEFAULT nextval('p_catalog_resource_sync_events_id_seq'::regclass); --- --- Name: ai_agents id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY p_ci_builds_metadata ALTER COLUMN id SET DEFAULT nextval('ci_builds_metadata_id_seq'::regclass); -ALTER TABLE ONLY public.ai_agents ALTER COLUMN id SET DEFAULT nextval('public.ai_agents_id_seq'::regclass); +ALTER TABLE ONLY p_ci_pipelines ALTER COLUMN id SET DEFAULT nextval('ci_pipelines_id_seq'::regclass); +ALTER TABLE ONLY packages_build_infos ALTER COLUMN id SET DEFAULT nextval('packages_build_infos_id_seq'::regclass); --- --- Name: ai_feature_settings id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_composer_cache_files ALTER COLUMN id SET DEFAULT nextval('packages_composer_cache_files_id_seq'::regclass); -ALTER TABLE ONLY public.ai_feature_settings ALTER COLUMN id SET DEFAULT nextval('public.ai_feature_settings_id_seq'::regclass); +ALTER TABLE ONLY packages_conan_file_metadata ALTER COLUMN id SET DEFAULT nextval('packages_conan_file_metadata_id_seq'::regclass); +ALTER TABLE ONLY packages_conan_metadata ALTER COLUMN id SET DEFAULT nextval('packages_conan_metadata_id_seq'::regclass); --- --- Name: ai_self_hosted_models id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_debian_group_architectures ALTER COLUMN id SET DEFAULT nextval('packages_debian_group_architectures_id_seq'::regclass); -ALTER TABLE ONLY public.ai_self_hosted_models ALTER COLUMN id SET DEFAULT nextval('public.ai_self_hosted_models_id_seq'::regclass); +ALTER TABLE ONLY packages_debian_group_component_files ALTER COLUMN id SET DEFAULT nextval('packages_debian_group_component_files_id_seq'::regclass); +ALTER TABLE ONLY packages_debian_group_components ALTER COLUMN id SET DEFAULT nextval('packages_debian_group_components_id_seq'::regclass); --- --- Name: ai_vectorizable_files id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_debian_group_distribution_keys ALTER COLUMN id SET DEFAULT nextval('packages_debian_group_distribution_keys_id_seq'::regclass); -ALTER TABLE ONLY public.ai_vectorizable_files ALTER COLUMN id SET DEFAULT nextval('public.ai_vectorizable_files_id_seq'::regclass); +ALTER TABLE ONLY packages_debian_group_distributions ALTER COLUMN id SET DEFAULT nextval('packages_debian_group_distributions_id_seq'::regclass); +ALTER TABLE ONLY packages_debian_project_architectures ALTER COLUMN id SET DEFAULT nextval('packages_debian_project_architectures_id_seq'::regclass); --- --- Name: alert_management_alert_assignees id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_debian_project_component_files ALTER COLUMN id SET DEFAULT nextval('packages_debian_project_component_files_id_seq'::regclass); -ALTER TABLE ONLY public.alert_management_alert_assignees ALTER COLUMN id SET DEFAULT nextval('public.alert_management_alert_assignees_id_seq'::regclass); +ALTER TABLE ONLY packages_debian_project_components ALTER COLUMN id SET DEFAULT nextval('packages_debian_project_components_id_seq'::regclass); +ALTER TABLE ONLY packages_debian_project_distribution_keys ALTER COLUMN id SET DEFAULT nextval('packages_debian_project_distribution_keys_id_seq'::regclass); --- --- Name: alert_management_alert_metric_images id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_debian_project_distributions ALTER COLUMN id SET DEFAULT nextval('packages_debian_project_distributions_id_seq'::regclass); -ALTER TABLE ONLY public.alert_management_alert_metric_images ALTER COLUMN id SET DEFAULT nextval('public.alert_management_alert_metric_images_id_seq'::regclass); +ALTER TABLE ONLY packages_debian_publications ALTER COLUMN id SET DEFAULT nextval('packages_debian_publications_id_seq'::regclass); +ALTER TABLE ONLY packages_dependencies ALTER COLUMN id SET DEFAULT nextval('packages_dependencies_id_seq'::regclass); --- --- Name: alert_management_alert_user_mentions id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_dependency_links ALTER COLUMN id SET DEFAULT nextval('packages_dependency_links_id_seq'::regclass); -ALTER TABLE ONLY public.alert_management_alert_user_mentions ALTER COLUMN id SET DEFAULT nextval('public.alert_management_alert_user_mentions_id_seq'::regclass); +ALTER TABLE ONLY packages_maven_metadata ALTER COLUMN id SET DEFAULT nextval('packages_maven_metadata_id_seq'::regclass); +ALTER TABLE ONLY packages_npm_metadata_caches ALTER COLUMN id SET DEFAULT nextval('packages_npm_metadata_caches_id_seq'::regclass); --- --- Name: alert_management_alerts id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_nuget_symbols ALTER COLUMN id SET DEFAULT nextval('packages_nuget_symbols_id_seq'::regclass); -ALTER TABLE ONLY public.alert_management_alerts ALTER COLUMN id SET DEFAULT nextval('public.alert_management_alerts_id_seq'::regclass); +ALTER TABLE ONLY packages_package_file_build_infos ALTER COLUMN id SET DEFAULT nextval('packages_package_file_build_infos_id_seq'::regclass); +ALTER TABLE ONLY packages_package_files ALTER COLUMN id SET DEFAULT nextval('packages_package_files_id_seq'::regclass); --- --- Name: alert_management_http_integrations id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_packages ALTER COLUMN id SET DEFAULT nextval('packages_packages_id_seq'::regclass); -ALTER TABLE ONLY public.alert_management_http_integrations ALTER COLUMN id SET DEFAULT nextval('public.alert_management_http_integrations_id_seq'::regclass); +ALTER TABLE ONLY packages_protection_rules ALTER COLUMN id SET DEFAULT nextval('packages_protection_rules_id_seq'::regclass); +ALTER TABLE ONLY packages_rpm_repository_files ALTER COLUMN id SET DEFAULT nextval('packages_rpm_repository_files_id_seq'::regclass); --- --- Name: allowed_email_domains id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_tags ALTER COLUMN id SET DEFAULT nextval('packages_tags_id_seq'::regclass); -ALTER TABLE ONLY public.allowed_email_domains ALTER COLUMN id SET DEFAULT nextval('public.allowed_email_domains_id_seq'::regclass); +ALTER TABLE ONLY pages_deployment_states ALTER COLUMN pages_deployment_id SET DEFAULT nextval('pages_deployment_states_pages_deployment_id_seq'::regclass); +ALTER TABLE ONLY pages_deployments ALTER COLUMN id SET DEFAULT nextval('pages_deployments_id_seq'::regclass); --- --- Name: analytics_cycle_analytics_group_stages id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY pages_domain_acme_orders ALTER COLUMN id SET DEFAULT nextval('pages_domain_acme_orders_id_seq'::regclass); -ALTER TABLE ONLY public.analytics_cycle_analytics_group_stages ALTER COLUMN id SET DEFAULT nextval('public.analytics_cycle_analytics_group_stages_id_seq'::regclass); +ALTER TABLE ONLY pages_domains ALTER COLUMN id SET DEFAULT nextval('pages_domains_id_seq'::regclass); +ALTER TABLE ONLY path_locks ALTER COLUMN id SET DEFAULT nextval('path_locks_id_seq'::regclass); --- --- Name: analytics_cycle_analytics_group_value_streams id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY personal_access_token_last_used_ips ALTER COLUMN id SET DEFAULT nextval('personal_access_token_last_used_ips_id_seq'::regclass); -ALTER TABLE ONLY public.analytics_cycle_analytics_group_value_streams ALTER COLUMN id SET DEFAULT nextval('public.analytics_cycle_analytics_group_value_streams_id_seq'::regclass); +ALTER TABLE ONLY personal_access_tokens ALTER COLUMN id SET DEFAULT nextval('personal_access_tokens_id_seq'::regclass); +ALTER TABLE ONLY plan_limits ALTER COLUMN id SET DEFAULT nextval('plan_limits_id_seq'::regclass); --- --- Name: analytics_cycle_analytics_stage_event_hashes id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY plans ALTER COLUMN id SET DEFAULT nextval('plans_id_seq'::regclass); -ALTER TABLE ONLY public.analytics_cycle_analytics_stage_event_hashes ALTER COLUMN id SET DEFAULT nextval('public.analytics_cycle_analytics_stage_event_hashes_id_seq'::regclass); +ALTER TABLE ONLY pm_advisories ALTER COLUMN id SET DEFAULT nextval('pm_advisories_id_seq'::regclass); +ALTER TABLE ONLY pm_affected_packages ALTER COLUMN id SET DEFAULT nextval('pm_affected_packages_id_seq'::regclass); --- --- Name: analytics_dashboards_pointers id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY pm_checkpoints ALTER COLUMN id SET DEFAULT nextval('pm_checkpoints_id_seq'::regclass); -ALTER TABLE ONLY public.analytics_dashboards_pointers ALTER COLUMN id SET DEFAULT nextval('public.analytics_dashboards_pointers_id_seq'::regclass); +ALTER TABLE ONLY pm_epss ALTER COLUMN id SET DEFAULT nextval('pm_epss_id_seq'::regclass); +ALTER TABLE ONLY pm_licenses ALTER COLUMN id SET DEFAULT nextval('pm_licenses_id_seq'::regclass); --- --- Name: analytics_devops_adoption_segments id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY pm_package_version_licenses ALTER COLUMN id SET DEFAULT nextval('pm_package_version_licenses_id_seq'::regclass); -ALTER TABLE ONLY public.analytics_devops_adoption_segments ALTER COLUMN id SET DEFAULT nextval('public.analytics_devops_adoption_segments_id_seq'::regclass); +ALTER TABLE ONLY pm_package_versions ALTER COLUMN id SET DEFAULT nextval('pm_package_versions_id_seq'::regclass); +ALTER TABLE ONLY pm_packages ALTER COLUMN id SET DEFAULT nextval('pm_packages_id_seq'::regclass); --- --- Name: analytics_devops_adoption_snapshots id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY pool_repositories ALTER COLUMN id SET DEFAULT nextval('pool_repositories_id_seq'::regclass); -ALTER TABLE ONLY public.analytics_devops_adoption_snapshots ALTER COLUMN id SET DEFAULT nextval('public.analytics_devops_adoption_snapshots_id_seq'::regclass); +ALTER TABLE ONLY postgres_async_foreign_key_validations ALTER COLUMN id SET DEFAULT nextval('postgres_async_foreign_key_validations_id_seq'::regclass); +ALTER TABLE ONLY postgres_async_indexes ALTER COLUMN id SET DEFAULT nextval('postgres_async_indexes_id_seq'::regclass); --- --- Name: analytics_usage_trends_measurements id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY postgres_reindex_actions ALTER COLUMN id SET DEFAULT nextval('postgres_reindex_actions_id_seq'::regclass); -ALTER TABLE ONLY public.analytics_usage_trends_measurements ALTER COLUMN id SET DEFAULT nextval('public.analytics_usage_trends_measurements_id_seq'::regclass); +ALTER TABLE ONLY postgres_reindex_queued_actions ALTER COLUMN id SET DEFAULT nextval('postgres_reindex_queued_actions_id_seq'::regclass); +ALTER TABLE ONLY programming_languages ALTER COLUMN id SET DEFAULT nextval('programming_languages_id_seq'::regclass); --- --- Name: appearances id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_aliases ALTER COLUMN id SET DEFAULT nextval('project_aliases_id_seq'::regclass); -ALTER TABLE ONLY public.appearances ALTER COLUMN id SET DEFAULT nextval('public.appearances_id_seq'::regclass); +ALTER TABLE ONLY project_auto_devops ALTER COLUMN id SET DEFAULT nextval('project_auto_devops_id_seq'::regclass); +ALTER TABLE ONLY project_build_artifacts_size_refreshes ALTER COLUMN id SET DEFAULT nextval('project_build_artifacts_size_refreshes_id_seq'::regclass); --- --- Name: application_setting_terms id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_ci_cd_settings ALTER COLUMN id SET DEFAULT nextval('project_ci_cd_settings_id_seq'::regclass); -ALTER TABLE ONLY public.application_setting_terms ALTER COLUMN id SET DEFAULT nextval('public.application_setting_terms_id_seq'::regclass); +ALTER TABLE ONLY project_ci_feature_usages ALTER COLUMN id SET DEFAULT nextval('project_ci_feature_usages_id_seq'::regclass); +ALTER TABLE ONLY project_compliance_framework_settings ALTER COLUMN project_id SET DEFAULT nextval('project_compliance_framework_settings_project_id_seq'::regclass); --- --- Name: application_settings id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_compliance_framework_settings ALTER COLUMN id SET DEFAULT nextval('project_compliance_framework_settings_id_seq'::regclass); -ALTER TABLE ONLY public.application_settings ALTER COLUMN id SET DEFAULT nextval('public.application_settings_id_seq'::regclass); +ALTER TABLE ONLY project_compliance_standards_adherence ALTER COLUMN id SET DEFAULT nextval('project_compliance_standards_adherence_id_seq'::regclass); +ALTER TABLE ONLY project_custom_attributes ALTER COLUMN id SET DEFAULT nextval('project_custom_attributes_id_seq'::regclass); --- --- Name: approval_group_rules id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_daily_statistics ALTER COLUMN id SET DEFAULT nextval('project_daily_statistics_id_seq'::regclass); -ALTER TABLE ONLY public.approval_group_rules ALTER COLUMN id SET DEFAULT nextval('public.approval_group_rules_id_seq'::regclass); +ALTER TABLE ONLY project_data_transfers ALTER COLUMN id SET DEFAULT nextval('project_data_transfers_id_seq'::regclass); +ALTER TABLE ONLY project_deploy_tokens ALTER COLUMN id SET DEFAULT nextval('project_deploy_tokens_id_seq'::regclass); --- --- Name: approval_group_rules_groups id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_export_jobs ALTER COLUMN id SET DEFAULT nextval('project_export_jobs_id_seq'::regclass); -ALTER TABLE ONLY public.approval_group_rules_groups ALTER COLUMN id SET DEFAULT nextval('public.approval_group_rules_groups_id_seq'::regclass); +ALTER TABLE ONLY project_features ALTER COLUMN id SET DEFAULT nextval('project_features_id_seq'::regclass); +ALTER TABLE ONLY project_group_links ALTER COLUMN id SET DEFAULT nextval('project_group_links_id_seq'::regclass); --- --- Name: approval_group_rules_protected_branches id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_import_data ALTER COLUMN id SET DEFAULT nextval('project_import_data_id_seq'::regclass); -ALTER TABLE ONLY public.approval_group_rules_protected_branches ALTER COLUMN id SET DEFAULT nextval('public.approval_group_rules_protected_branches_id_seq'::regclass); +ALTER TABLE ONLY project_incident_management_settings ALTER COLUMN project_id SET DEFAULT nextval('project_incident_management_settings_project_id_seq'::regclass); +ALTER TABLE ONLY project_mirror_data ALTER COLUMN id SET DEFAULT nextval('project_mirror_data_id_seq'::regclass); --- --- Name: approval_group_rules_users id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_relation_export_uploads ALTER COLUMN id SET DEFAULT nextval('project_relation_export_uploads_id_seq'::regclass); -ALTER TABLE ONLY public.approval_group_rules_users ALTER COLUMN id SET DEFAULT nextval('public.approval_group_rules_users_id_seq'::regclass); +ALTER TABLE ONLY project_relation_exports ALTER COLUMN id SET DEFAULT nextval('project_relation_exports_id_seq'::regclass); +ALTER TABLE ONLY project_repositories ALTER COLUMN id SET DEFAULT nextval('project_repositories_id_seq'::regclass); --- --- Name: approval_merge_request_rule_sources id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_repository_storage_moves ALTER COLUMN id SET DEFAULT nextval('project_repository_storage_moves_id_seq'::regclass); -ALTER TABLE ONLY public.approval_merge_request_rule_sources ALTER COLUMN id SET DEFAULT nextval('public.approval_merge_request_rule_sources_id_seq'::regclass); +ALTER TABLE ONLY project_saved_replies ALTER COLUMN id SET DEFAULT nextval('project_saved_replies_id_seq'::regclass); +ALTER TABLE ONLY project_secrets_managers ALTER COLUMN id SET DEFAULT nextval('project_secrets_managers_id_seq'::regclass); --- --- Name: approval_merge_request_rules id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_security_settings ALTER COLUMN project_id SET DEFAULT nextval('project_security_settings_project_id_seq'::regclass); -ALTER TABLE ONLY public.approval_merge_request_rules ALTER COLUMN id SET DEFAULT nextval('public.approval_merge_request_rules_id_seq'::regclass); +ALTER TABLE ONLY project_states ALTER COLUMN id SET DEFAULT nextval('project_states_id_seq'::regclass); +ALTER TABLE ONLY project_statistics ALTER COLUMN id SET DEFAULT nextval('project_statistics_id_seq'::regclass); --- --- Name: approval_merge_request_rules_approved_approvers id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_topics ALTER COLUMN id SET DEFAULT nextval('project_topics_id_seq'::regclass); -ALTER TABLE ONLY public.approval_merge_request_rules_approved_approvers ALTER COLUMN id SET DEFAULT nextval('public.approval_merge_request_rules_approved_approvers_id_seq'::regclass); +ALTER TABLE ONLY project_wiki_repositories ALTER COLUMN id SET DEFAULT nextval('project_wiki_repositories_id_seq'::regclass); +ALTER TABLE ONLY projects ALTER COLUMN id SET DEFAULT nextval('projects_id_seq'::regclass); --- --- Name: approval_merge_request_rules_groups id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY projects_sync_events ALTER COLUMN id SET DEFAULT nextval('projects_sync_events_id_seq'::regclass); -ALTER TABLE ONLY public.approval_merge_request_rules_groups ALTER COLUMN id SET DEFAULT nextval('public.approval_merge_request_rules_groups_id_seq'::regclass); +ALTER TABLE ONLY projects_visits ALTER COLUMN id SET DEFAULT nextval('projects_visits_id_seq'::regclass); +ALTER TABLE ONLY prometheus_alert_events ALTER COLUMN id SET DEFAULT nextval('prometheus_alert_events_id_seq'::regclass); --- --- Name: approval_merge_request_rules_users id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY prometheus_alerts ALTER COLUMN id SET DEFAULT nextval('prometheus_alerts_id_seq'::regclass); -ALTER TABLE ONLY public.approval_merge_request_rules_users ALTER COLUMN id SET DEFAULT nextval('public.approval_merge_request_rules_users_id_seq'::regclass); +ALTER TABLE ONLY prometheus_metrics ALTER COLUMN id SET DEFAULT nextval('prometheus_metrics_id_seq'::regclass); +ALTER TABLE ONLY protected_branch_merge_access_levels ALTER COLUMN id SET DEFAULT nextval('protected_branch_merge_access_levels_id_seq'::regclass); --- --- Name: approval_policy_rule_project_links id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY protected_branch_push_access_levels ALTER COLUMN id SET DEFAULT nextval('protected_branch_push_access_levels_id_seq'::regclass); -ALTER TABLE ONLY public.approval_policy_rule_project_links ALTER COLUMN id SET DEFAULT nextval('public.approval_policy_rule_project_links_id_seq'::regclass); +ALTER TABLE ONLY protected_branch_unprotect_access_levels ALTER COLUMN id SET DEFAULT nextval('protected_branch_unprotect_access_levels_id_seq'::regclass); +ALTER TABLE ONLY protected_branches ALTER COLUMN id SET DEFAULT nextval('protected_branches_id_seq'::regclass); --- --- Name: approval_policy_rules id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY protected_environment_approval_rules ALTER COLUMN id SET DEFAULT nextval('protected_environment_approval_rules_id_seq'::regclass); -ALTER TABLE ONLY public.approval_policy_rules ALTER COLUMN id SET DEFAULT nextval('public.approval_policy_rules_id_seq'::regclass); +ALTER TABLE ONLY protected_environment_deploy_access_levels ALTER COLUMN id SET DEFAULT nextval('protected_environment_deploy_access_levels_id_seq'::regclass); +ALTER TABLE ONLY protected_environments ALTER COLUMN id SET DEFAULT nextval('protected_environments_id_seq'::regclass); --- --- Name: approval_project_rules id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY protected_tag_create_access_levels ALTER COLUMN id SET DEFAULT nextval('protected_tag_create_access_levels_id_seq'::regclass); -ALTER TABLE ONLY public.approval_project_rules ALTER COLUMN id SET DEFAULT nextval('public.approval_project_rules_id_seq'::regclass); +ALTER TABLE ONLY protected_tags ALTER COLUMN id SET DEFAULT nextval('protected_tags_id_seq'::regclass); +ALTER TABLE ONLY push_rules ALTER COLUMN id SET DEFAULT nextval('push_rules_id_seq'::regclass); --- --- Name: approval_project_rules_groups id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY raw_usage_data ALTER COLUMN id SET DEFAULT nextval('raw_usage_data_id_seq'::regclass); -ALTER TABLE ONLY public.approval_project_rules_groups ALTER COLUMN id SET DEFAULT nextval('public.approval_project_rules_groups_id_seq'::regclass); +ALTER TABLE ONLY redirect_routes ALTER COLUMN id SET DEFAULT nextval('redirect_routes_id_seq'::regclass); +ALTER TABLE ONLY related_epic_links ALTER COLUMN id SET DEFAULT nextval('related_epic_links_id_seq'::regclass); --- --- Name: approval_project_rules_users id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY relation_import_trackers ALTER COLUMN id SET DEFAULT nextval('relation_import_trackers_id_seq'::regclass); -ALTER TABLE ONLY public.approval_project_rules_users ALTER COLUMN id SET DEFAULT nextval('public.approval_project_rules_users_id_seq'::regclass); +ALTER TABLE ONLY release_links ALTER COLUMN id SET DEFAULT nextval('release_links_id_seq'::regclass); +ALTER TABLE ONLY releases ALTER COLUMN id SET DEFAULT nextval('releases_id_seq'::regclass); --- --- Name: approvals id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY remote_development_agent_configs ALTER COLUMN id SET DEFAULT nextval('remote_development_agent_configs_id_seq'::regclass); -ALTER TABLE ONLY public.approvals ALTER COLUMN id SET DEFAULT nextval('public.approvals_id_seq'::regclass); +ALTER TABLE ONLY remote_development_namespace_cluster_agent_mappings ALTER COLUMN id SET DEFAULT nextval('remote_development_namespace_cluster_agent_mappings_id_seq'::regclass); +ALTER TABLE ONLY remote_mirrors ALTER COLUMN id SET DEFAULT nextval('remote_mirrors_id_seq'::regclass); --- --- Name: approver_groups id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY required_code_owners_sections ALTER COLUMN id SET DEFAULT nextval('required_code_owners_sections_id_seq'::regclass); -ALTER TABLE ONLY public.approver_groups ALTER COLUMN id SET DEFAULT nextval('public.approver_groups_id_seq'::regclass); +ALTER TABLE ONLY requirements ALTER COLUMN id SET DEFAULT nextval('requirements_id_seq'::regclass); +ALTER TABLE ONLY requirements_management_test_reports ALTER COLUMN id SET DEFAULT nextval('requirements_management_test_reports_id_seq'::regclass); --- --- Name: approvers id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY resource_iteration_events ALTER COLUMN id SET DEFAULT nextval('resource_iteration_events_id_seq'::regclass); -ALTER TABLE ONLY public.approvers ALTER COLUMN id SET DEFAULT nextval('public.approvers_id_seq'::regclass); +ALTER TABLE ONLY resource_label_events ALTER COLUMN id SET DEFAULT nextval('resource_label_events_id_seq'::regclass); +ALTER TABLE ONLY resource_link_events ALTER COLUMN id SET DEFAULT nextval('resource_link_events_id_seq'::regclass); --- --- Name: atlassian_identities user_id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY resource_milestone_events ALTER COLUMN id SET DEFAULT nextval('resource_milestone_events_id_seq'::regclass); -ALTER TABLE ONLY public.atlassian_identities ALTER COLUMN user_id SET DEFAULT nextval('public.atlassian_identities_user_id_seq'::regclass); +ALTER TABLE ONLY resource_state_events ALTER COLUMN id SET DEFAULT nextval('resource_state_events_id_seq'::regclass); +ALTER TABLE ONLY resource_weight_events ALTER COLUMN id SET DEFAULT nextval('resource_weight_events_id_seq'::regclass); --- --- Name: audit_events id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY reviews ALTER COLUMN id SET DEFAULT nextval('reviews_id_seq'::regclass); -ALTER TABLE ONLY public.audit_events ALTER COLUMN id SET DEFAULT nextval('public.audit_events_id_seq'::regclass); +ALTER TABLE ONLY routes ALTER COLUMN id SET DEFAULT nextval('routes_id_seq'::regclass); +ALTER TABLE ONLY saml_group_links ALTER COLUMN id SET DEFAULT nextval('saml_group_links_id_seq'::regclass); --- --- Name: audit_events_amazon_s3_configurations id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY saml_providers ALTER COLUMN id SET DEFAULT nextval('saml_providers_id_seq'::regclass); -ALTER TABLE ONLY public.audit_events_amazon_s3_configurations ALTER COLUMN id SET DEFAULT nextval('public.audit_events_amazon_s3_configurations_id_seq'::regclass); +ALTER TABLE ONLY saved_replies ALTER COLUMN id SET DEFAULT nextval('saved_replies_id_seq'::regclass); +ALTER TABLE ONLY sbom_component_versions ALTER COLUMN id SET DEFAULT nextval('sbom_component_versions_id_seq'::regclass); --- --- Name: audit_events_external_audit_event_destinations id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY sbom_components ALTER COLUMN id SET DEFAULT nextval('sbom_components_id_seq'::regclass); -ALTER TABLE ONLY public.audit_events_external_audit_event_destinations ALTER COLUMN id SET DEFAULT nextval('public.audit_events_external_audit_event_destinations_id_seq'::regclass); +ALTER TABLE ONLY sbom_occurrences ALTER COLUMN id SET DEFAULT nextval('sbom_occurrences_id_seq'::regclass); +ALTER TABLE ONLY sbom_occurrences_vulnerabilities ALTER COLUMN id SET DEFAULT nextval('sbom_occurrences_vulnerabilities_id_seq'::regclass); --- --- Name: audit_events_google_cloud_logging_configurations id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY sbom_source_packages ALTER COLUMN id SET DEFAULT nextval('sbom_source_packages_id_seq'::regclass); -ALTER TABLE ONLY public.audit_events_google_cloud_logging_configurations ALTER COLUMN id SET DEFAULT nextval('public.audit_events_google_cloud_logging_configurations_id_seq'::regclass); +ALTER TABLE ONLY sbom_sources ALTER COLUMN id SET DEFAULT nextval('sbom_sources_id_seq'::regclass); +ALTER TABLE ONLY scan_execution_policy_rules ALTER COLUMN id SET DEFAULT nextval('scan_execution_policy_rules_id_seq'::regclass); --- --- Name: audit_events_group_external_streaming_destinations id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY scan_result_policies ALTER COLUMN id SET DEFAULT nextval('scan_result_policies_id_seq'::regclass); -ALTER TABLE ONLY public.audit_events_group_external_streaming_destinations ALTER COLUMN id SET DEFAULT nextval('public.audit_events_group_external_streaming_destinations_id_seq'::regclass); +ALTER TABLE ONLY scan_result_policy_violations ALTER COLUMN id SET DEFAULT nextval('scan_result_policy_violations_id_seq'::regclass); +ALTER TABLE ONLY scim_identities ALTER COLUMN id SET DEFAULT nextval('scim_identities_id_seq'::regclass); --- --- Name: audit_events_group_streaming_event_type_filters id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY scim_oauth_access_tokens ALTER COLUMN id SET DEFAULT nextval('scim_oauth_access_tokens_id_seq'::regclass); -ALTER TABLE ONLY public.audit_events_group_streaming_event_type_filters ALTER COLUMN id SET DEFAULT nextval('public.audit_events_group_streaming_event_type_filters_id_seq'::regclass); +ALTER TABLE ONLY search_indices ALTER COLUMN id SET DEFAULT nextval('search_indices_id_seq'::regclass); +ALTER TABLE ONLY search_namespace_index_assignments ALTER COLUMN id SET DEFAULT nextval('search_namespace_index_assignments_id_seq'::regclass); --- --- Name: audit_events_instance_amazon_s3_configurations id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY security_findings ALTER COLUMN id SET DEFAULT nextval('security_findings_id_seq'::regclass); -ALTER TABLE ONLY public.audit_events_instance_amazon_s3_configurations ALTER COLUMN id SET DEFAULT nextval('public.audit_events_instance_amazon_s3_configurations_id_seq'::regclass); +ALTER TABLE ONLY security_orchestration_policy_configurations ALTER COLUMN id SET DEFAULT nextval('security_orchestration_policy_configurations_id_seq'::regclass); +ALTER TABLE ONLY security_orchestration_policy_rule_schedules ALTER COLUMN id SET DEFAULT nextval('security_orchestration_policy_rule_schedules_id_seq'::regclass); --- --- Name: audit_events_instance_external_audit_event_destinations id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY security_policies ALTER COLUMN id SET DEFAULT nextval('security_policies_id_seq'::regclass); -ALTER TABLE ONLY public.audit_events_instance_external_audit_event_destinations ALTER COLUMN id SET DEFAULT nextval('public.audit_events_instance_external_audit_event_destinations_id_seq'::regclass); +ALTER TABLE ONLY security_policy_project_links ALTER COLUMN id SET DEFAULT nextval('security_policy_project_links_id_seq'::regclass); +ALTER TABLE ONLY security_policy_requirements ALTER COLUMN id SET DEFAULT nextval('security_policy_requirements_id_seq'::regclass); --- --- Name: audit_events_instance_external_streaming_destinations id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY security_scans ALTER COLUMN id SET DEFAULT nextval('security_scans_id_seq'::regclass); -ALTER TABLE ONLY public.audit_events_instance_external_streaming_destinations ALTER COLUMN id SET DEFAULT nextval('public.audit_events_instance_external_streaming_destinations_id_seq'::regclass); +ALTER TABLE ONLY security_training_providers ALTER COLUMN id SET DEFAULT nextval('security_training_providers_id_seq'::regclass); +ALTER TABLE ONLY security_trainings ALTER COLUMN id SET DEFAULT nextval('security_trainings_id_seq'::regclass); --- --- Name: audit_events_instance_google_cloud_logging_configurations id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY self_managed_prometheus_alert_events ALTER COLUMN id SET DEFAULT nextval('self_managed_prometheus_alert_events_id_seq'::regclass); -ALTER TABLE ONLY public.audit_events_instance_google_cloud_logging_configurations ALTER COLUMN id SET DEFAULT nextval('public.audit_events_instance_google_cloud_logging_configuration_id_seq'::regclass); +ALTER TABLE ONLY sent_notifications ALTER COLUMN id SET DEFAULT nextval('sent_notifications_id_seq'::regclass); +ALTER TABLE ONLY sentry_issues ALTER COLUMN id SET DEFAULT nextval('sentry_issues_id_seq'::regclass); --- --- Name: audit_events_instance_streaming_event_type_filters id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY service_access_tokens ALTER COLUMN id SET DEFAULT nextval('service_access_tokens_id_seq'::regclass); -ALTER TABLE ONLY public.audit_events_instance_streaming_event_type_filters ALTER COLUMN id SET DEFAULT nextval('public.audit_events_instance_streaming_event_type_filters_id_seq'::regclass); +ALTER TABLE ONLY shards ALTER COLUMN id SET DEFAULT nextval('shards_id_seq'::regclass); +ALTER TABLE ONLY slack_api_scopes ALTER COLUMN id SET DEFAULT nextval('slack_api_scopes_id_seq'::regclass); --- --- Name: audit_events_streaming_event_type_filters id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY slack_integrations ALTER COLUMN id SET DEFAULT nextval('slack_integrations_id_seq'::regclass); -ALTER TABLE ONLY public.audit_events_streaming_event_type_filters ALTER COLUMN id SET DEFAULT nextval('public.audit_events_streaming_event_type_filters_id_seq'::regclass); +ALTER TABLE ONLY slack_integrations_scopes ALTER COLUMN id SET DEFAULT nextval('slack_integrations_scopes_id_seq'::regclass); +ALTER TABLE ONLY smartcard_identities ALTER COLUMN id SET DEFAULT nextval('smartcard_identities_id_seq'::regclass); --- --- Name: audit_events_streaming_group_namespace_filters id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY snippet_repository_storage_moves ALTER COLUMN id SET DEFAULT nextval('snippet_repository_storage_moves_id_seq'::regclass); -ALTER TABLE ONLY public.audit_events_streaming_group_namespace_filters ALTER COLUMN id SET DEFAULT nextval('public.audit_events_streaming_group_namespace_filters_id_seq'::regclass); +ALTER TABLE ONLY snippet_user_mentions ALTER COLUMN id SET DEFAULT nextval('snippet_user_mentions_id_seq'::regclass); +ALTER TABLE ONLY snippets ALTER COLUMN id SET DEFAULT nextval('snippets_id_seq'::regclass); --- --- Name: audit_events_streaming_headers id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY software_license_policies ALTER COLUMN id SET DEFAULT nextval('software_license_policies_id_seq'::regclass); -ALTER TABLE ONLY public.audit_events_streaming_headers ALTER COLUMN id SET DEFAULT nextval('public.audit_events_streaming_headers_id_seq'::regclass); +ALTER TABLE ONLY software_licenses ALTER COLUMN id SET DEFAULT nextval('software_licenses_id_seq'::regclass); +ALTER TABLE ONLY spam_logs ALTER COLUMN id SET DEFAULT nextval('spam_logs_id_seq'::regclass); --- --- Name: audit_events_streaming_http_group_namespace_filters id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY sprints ALTER COLUMN id SET DEFAULT nextval('sprints_id_seq'::regclass); -ALTER TABLE ONLY public.audit_events_streaming_http_group_namespace_filters ALTER COLUMN id SET DEFAULT nextval('public.audit_events_streaming_http_group_namespace_filters_id_seq'::regclass); +ALTER TABLE ONLY ssh_signatures ALTER COLUMN id SET DEFAULT nextval('ssh_signatures_id_seq'::regclass); +ALTER TABLE ONLY status_check_responses ALTER COLUMN id SET DEFAULT nextval('status_check_responses_id_seq'::regclass); --- --- Name: audit_events_streaming_http_instance_namespace_filters id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY status_page_published_incidents ALTER COLUMN id SET DEFAULT nextval('status_page_published_incidents_id_seq'::regclass); -ALTER TABLE ONLY public.audit_events_streaming_http_instance_namespace_filters ALTER COLUMN id SET DEFAULT nextval('public.audit_events_streaming_http_instance_namespace_filters_id_seq'::regclass); +ALTER TABLE ONLY status_page_settings ALTER COLUMN project_id SET DEFAULT nextval('status_page_settings_project_id_seq'::regclass); +ALTER TABLE ONLY subscription_add_on_purchases ALTER COLUMN id SET DEFAULT nextval('subscription_add_on_purchases_id_seq'::regclass); --- --- Name: audit_events_streaming_instance_event_type_filters id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY subscription_add_ons ALTER COLUMN id SET DEFAULT nextval('subscription_add_ons_id_seq'::regclass); -ALTER TABLE ONLY public.audit_events_streaming_instance_event_type_filters ALTER COLUMN id SET DEFAULT nextval('public.audit_events_streaming_instance_event_type_filters_id_seq'::regclass); +ALTER TABLE ONLY subscription_user_add_on_assignments ALTER COLUMN id SET DEFAULT nextval('subscription_user_add_on_assignments_id_seq'::regclass); +ALTER TABLE ONLY subscriptions ALTER COLUMN id SET DEFAULT nextval('subscriptions_id_seq'::regclass); --- --- Name: audit_events_streaming_instance_namespace_filters id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY suggestions ALTER COLUMN id SET DEFAULT nextval('suggestions_id_seq'::regclass); -ALTER TABLE ONLY public.audit_events_streaming_instance_namespace_filters ALTER COLUMN id SET DEFAULT nextval('public.audit_events_streaming_instance_namespace_filters_id_seq'::regclass); +ALTER TABLE ONLY system_access_microsoft_applications ALTER COLUMN id SET DEFAULT nextval('system_access_microsoft_applications_id_seq'::regclass); +ALTER TABLE ONLY system_access_microsoft_graph_access_tokens ALTER COLUMN id SET DEFAULT nextval('system_access_microsoft_graph_access_tokens_id_seq'::regclass); --- --- Name: authentication_events id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY system_note_metadata ALTER COLUMN id SET DEFAULT nextval('system_note_metadata_id_seq'::regclass); -ALTER TABLE ONLY public.authentication_events ALTER COLUMN id SET DEFAULT nextval('public.authentication_events_id_seq'::regclass); +ALTER TABLE ONLY taggings ALTER COLUMN id SET DEFAULT nextval('taggings_id_seq'::regclass); +ALTER TABLE ONLY tags ALTER COLUMN id SET DEFAULT nextval('tags_id_seq'::regclass); --- --- Name: automation_rules id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY target_branch_rules ALTER COLUMN id SET DEFAULT nextval('target_branch_rules_id_seq'::regclass); -ALTER TABLE ONLY public.automation_rules ALTER COLUMN id SET DEFAULT nextval('public.automation_rules_id_seq'::regclass); +ALTER TABLE ONLY term_agreements ALTER COLUMN id SET DEFAULT nextval('term_agreements_id_seq'::regclass); +ALTER TABLE ONLY terraform_state_versions ALTER COLUMN id SET DEFAULT nextval('terraform_state_versions_id_seq'::regclass); --- --- Name: award_emoji id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY terraform_states ALTER COLUMN id SET DEFAULT nextval('terraform_states_id_seq'::regclass); -ALTER TABLE ONLY public.award_emoji ALTER COLUMN id SET DEFAULT nextval('public.award_emoji_id_seq'::regclass); +ALTER TABLE ONLY timelog_categories ALTER COLUMN id SET DEFAULT nextval('timelog_categories_id_seq'::regclass); +ALTER TABLE ONLY timelogs ALTER COLUMN id SET DEFAULT nextval('timelogs_id_seq'::regclass); --- --- Name: background_migration_jobs id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY todos ALTER COLUMN id SET DEFAULT nextval('todos_id_seq'::regclass); -ALTER TABLE ONLY public.background_migration_jobs ALTER COLUMN id SET DEFAULT nextval('public.background_migration_jobs_id_seq'::regclass); +ALTER TABLE ONLY token_with_ivs ALTER COLUMN id SET DEFAULT nextval('token_with_ivs_id_seq'::regclass); +ALTER TABLE ONLY topics ALTER COLUMN id SET DEFAULT nextval('topics_id_seq'::regclass); --- --- Name: badges id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY trending_projects ALTER COLUMN id SET DEFAULT nextval('trending_projects_id_seq'::regclass); -ALTER TABLE ONLY public.badges ALTER COLUMN id SET DEFAULT nextval('public.badges_id_seq'::regclass); +ALTER TABLE ONLY upcoming_reconciliations ALTER COLUMN id SET DEFAULT nextval('upcoming_reconciliations_id_seq'::regclass); +ALTER TABLE ONLY upload_states ALTER COLUMN upload_id SET DEFAULT nextval('upload_states_upload_id_seq'::regclass); --- --- Name: batched_background_migration_job_transition_logs id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY uploads ALTER COLUMN id SET DEFAULT nextval('uploads_id_seq'::regclass); -ALTER TABLE ONLY public.batched_background_migration_job_transition_logs ALTER COLUMN id SET DEFAULT nextval('public.batched_background_migration_job_transition_logs_id_seq'::regclass); +ALTER TABLE ONLY user_achievements ALTER COLUMN id SET DEFAULT nextval('user_achievements_id_seq'::regclass); +ALTER TABLE ONLY user_agent_details ALTER COLUMN id SET DEFAULT nextval('user_agent_details_id_seq'::regclass); --- --- Name: batched_background_migration_jobs id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY user_broadcast_message_dismissals ALTER COLUMN id SET DEFAULT nextval('user_broadcast_message_dismissals_id_seq'::regclass); -ALTER TABLE ONLY public.batched_background_migration_jobs ALTER COLUMN id SET DEFAULT nextval('public.batched_background_migration_jobs_id_seq'::regclass); +ALTER TABLE ONLY user_callouts ALTER COLUMN id SET DEFAULT nextval('user_callouts_id_seq'::regclass); +ALTER TABLE ONLY user_canonical_emails ALTER COLUMN id SET DEFAULT nextval('user_canonical_emails_id_seq'::regclass); --- --- Name: batched_background_migrations id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY user_custom_attributes ALTER COLUMN id SET DEFAULT nextval('user_custom_attributes_id_seq'::regclass); -ALTER TABLE ONLY public.batched_background_migrations ALTER COLUMN id SET DEFAULT nextval('public.batched_background_migrations_id_seq'::regclass); +ALTER TABLE ONLY user_details ALTER COLUMN user_id SET DEFAULT nextval('user_details_user_id_seq'::regclass); +ALTER TABLE ONLY user_group_callouts ALTER COLUMN id SET DEFAULT nextval('user_group_callouts_id_seq'::regclass); --- --- Name: board_assignees id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY user_namespace_callouts ALTER COLUMN id SET DEFAULT nextval('user_namespace_callouts_id_seq'::regclass); -ALTER TABLE ONLY public.board_assignees ALTER COLUMN id SET DEFAULT nextval('public.board_assignees_id_seq'::regclass); +ALTER TABLE ONLY user_permission_export_uploads ALTER COLUMN id SET DEFAULT nextval('user_permission_export_uploads_id_seq'::regclass); +ALTER TABLE ONLY user_preferences ALTER COLUMN id SET DEFAULT nextval('user_preferences_id_seq'::regclass); --- --- Name: board_group_recent_visits id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY user_project_callouts ALTER COLUMN id SET DEFAULT nextval('user_project_callouts_id_seq'::regclass); -ALTER TABLE ONLY public.board_group_recent_visits ALTER COLUMN id SET DEFAULT nextval('public.board_group_recent_visits_id_seq'::regclass); +ALTER TABLE ONLY user_statuses ALTER COLUMN user_id SET DEFAULT nextval('user_statuses_user_id_seq'::regclass); +ALTER TABLE ONLY user_synced_attributes_metadata ALTER COLUMN id SET DEFAULT nextval('user_synced_attributes_metadata_id_seq'::regclass); --- --- Name: board_labels id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY users ALTER COLUMN id SET DEFAULT nextval('users_id_seq'::regclass); -ALTER TABLE ONLY public.board_labels ALTER COLUMN id SET DEFAULT nextval('public.board_labels_id_seq'::regclass); +ALTER TABLE ONLY users_ops_dashboard_projects ALTER COLUMN id SET DEFAULT nextval('users_ops_dashboard_projects_id_seq'::regclass); +ALTER TABLE ONLY users_star_projects ALTER COLUMN id SET DEFAULT nextval('users_star_projects_id_seq'::regclass); --- --- Name: board_project_recent_visits id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY users_statistics ALTER COLUMN id SET DEFAULT nextval('users_statistics_id_seq'::regclass); -ALTER TABLE ONLY public.board_project_recent_visits ALTER COLUMN id SET DEFAULT nextval('public.board_project_recent_visits_id_seq'::regclass); +ALTER TABLE ONLY value_stream_dashboard_counts ALTER COLUMN id SET DEFAULT nextval('value_stream_dashboard_counts_id_seq'::regclass); +ALTER TABLE ONLY virtual_registries_packages_maven_cached_responses ALTER COLUMN id SET DEFAULT nextval('virtual_registries_packages_maven_cached_responses_id_seq'::regclass); --- --- Name: board_user_preferences id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY virtual_registries_packages_maven_registries ALTER COLUMN id SET DEFAULT nextval('virtual_registries_packages_maven_registries_id_seq'::regclass); -ALTER TABLE ONLY public.board_user_preferences ALTER COLUMN id SET DEFAULT nextval('public.board_user_preferences_id_seq'::regclass); +ALTER TABLE ONLY virtual_registries_packages_maven_registry_upstreams ALTER COLUMN id SET DEFAULT nextval('virtual_registries_packages_maven_registry_upstreams_id_seq'::regclass); +ALTER TABLE ONLY virtual_registries_packages_maven_upstreams ALTER COLUMN id SET DEFAULT nextval('virtual_registries_packages_maven_upstreams_id_seq'::regclass); --- --- Name: boards id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY vs_code_settings ALTER COLUMN id SET DEFAULT nextval('vs_code_settings_id_seq'::regclass); -ALTER TABLE ONLY public.boards ALTER COLUMN id SET DEFAULT nextval('public.boards_id_seq'::regclass); +ALTER TABLE ONLY vulnerabilities ALTER COLUMN id SET DEFAULT nextval('vulnerabilities_id_seq'::regclass); +ALTER TABLE ONLY vulnerability_export_parts ALTER COLUMN id SET DEFAULT nextval('vulnerability_export_parts_id_seq'::regclass); --- --- Name: boards_epic_board_labels id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_exports ALTER COLUMN id SET DEFAULT nextval('vulnerability_exports_id_seq'::regclass); -ALTER TABLE ONLY public.boards_epic_board_labels ALTER COLUMN id SET DEFAULT nextval('public.boards_epic_board_labels_id_seq'::regclass); +ALTER TABLE ONLY vulnerability_external_issue_links ALTER COLUMN id SET DEFAULT nextval('vulnerability_external_issue_links_id_seq'::regclass); +ALTER TABLE ONLY vulnerability_feedback ALTER COLUMN id SET DEFAULT nextval('vulnerability_feedback_id_seq'::regclass); --- --- Name: boards_epic_board_positions id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_finding_evidences ALTER COLUMN id SET DEFAULT nextval('vulnerability_finding_evidences_id_seq'::regclass); -ALTER TABLE ONLY public.boards_epic_board_positions ALTER COLUMN id SET DEFAULT nextval('public.boards_epic_board_positions_id_seq'::regclass); +ALTER TABLE ONLY vulnerability_finding_links ALTER COLUMN id SET DEFAULT nextval('vulnerability_finding_links_id_seq'::regclass); +ALTER TABLE ONLY vulnerability_finding_signatures ALTER COLUMN id SET DEFAULT nextval('vulnerability_finding_signatures_id_seq'::regclass); --- --- Name: boards_epic_board_recent_visits id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_findings_remediations ALTER COLUMN id SET DEFAULT nextval('vulnerability_findings_remediations_id_seq'::regclass); -ALTER TABLE ONLY public.boards_epic_board_recent_visits ALTER COLUMN id SET DEFAULT nextval('public.boards_epic_board_recent_visits_id_seq'::regclass); +ALTER TABLE ONLY vulnerability_flags ALTER COLUMN id SET DEFAULT nextval('vulnerability_flags_id_seq'::regclass); +ALTER TABLE ONLY vulnerability_historical_statistics ALTER COLUMN id SET DEFAULT nextval('vulnerability_historical_statistics_id_seq'::regclass); --- --- Name: boards_epic_boards id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_identifiers ALTER COLUMN id SET DEFAULT nextval('vulnerability_identifiers_id_seq'::regclass); -ALTER TABLE ONLY public.boards_epic_boards ALTER COLUMN id SET DEFAULT nextval('public.boards_epic_boards_id_seq'::regclass); +ALTER TABLE ONLY vulnerability_issue_links ALTER COLUMN id SET DEFAULT nextval('vulnerability_issue_links_id_seq'::regclass); +ALTER TABLE ONLY vulnerability_merge_request_links ALTER COLUMN id SET DEFAULT nextval('vulnerability_merge_request_links_id_seq'::regclass); --- --- Name: boards_epic_list_user_preferences id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_namespace_historical_statistics ALTER COLUMN id SET DEFAULT nextval('vulnerability_namespace_historical_statistics_id_seq'::regclass); -ALTER TABLE ONLY public.boards_epic_list_user_preferences ALTER COLUMN id SET DEFAULT nextval('public.boards_epic_list_user_preferences_id_seq'::regclass); +ALTER TABLE ONLY vulnerability_occurrence_identifiers ALTER COLUMN id SET DEFAULT nextval('vulnerability_occurrence_identifiers_id_seq'::regclass); +ALTER TABLE ONLY vulnerability_occurrence_pipelines ALTER COLUMN id SET DEFAULT nextval('vulnerability_occurrence_pipelines_id_seq'::regclass); --- --- Name: boards_epic_lists id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_occurrences ALTER COLUMN id SET DEFAULT nextval('vulnerability_occurrences_id_seq'::regclass); -ALTER TABLE ONLY public.boards_epic_lists ALTER COLUMN id SET DEFAULT nextval('public.boards_epic_lists_id_seq'::regclass); +ALTER TABLE ONLY vulnerability_reads ALTER COLUMN id SET DEFAULT nextval('vulnerability_reads_id_seq'::regclass); +ALTER TABLE ONLY vulnerability_remediations ALTER COLUMN id SET DEFAULT nextval('vulnerability_remediations_id_seq'::regclass); --- --- Name: boards_epic_user_preferences id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_scanners ALTER COLUMN id SET DEFAULT nextval('vulnerability_scanners_id_seq'::regclass); -ALTER TABLE ONLY public.boards_epic_user_preferences ALTER COLUMN id SET DEFAULT nextval('public.boards_epic_user_preferences_id_seq'::regclass); +ALTER TABLE ONLY vulnerability_state_transitions ALTER COLUMN id SET DEFAULT nextval('vulnerability_state_transitions_id_seq'::regclass); +ALTER TABLE ONLY vulnerability_statistics ALTER COLUMN id SET DEFAULT nextval('vulnerability_statistics_id_seq'::regclass); --- --- Name: broadcast_messages id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_user_mentions ALTER COLUMN id SET DEFAULT nextval('vulnerability_user_mentions_id_seq'::regclass); -ALTER TABLE ONLY public.broadcast_messages ALTER COLUMN id SET DEFAULT nextval('public.broadcast_messages_id_seq'::regclass); +ALTER TABLE ONLY web_hook_logs ALTER COLUMN id SET DEFAULT nextval('web_hook_logs_id_seq'::regclass); +ALTER TABLE ONLY web_hooks ALTER COLUMN id SET DEFAULT nextval('web_hooks_id_seq'::regclass); --- --- Name: bulk_import_batch_trackers id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY webauthn_registrations ALTER COLUMN id SET DEFAULT nextval('webauthn_registrations_id_seq'::regclass); -ALTER TABLE ONLY public.bulk_import_batch_trackers ALTER COLUMN id SET DEFAULT nextval('public.bulk_import_batch_trackers_id_seq'::regclass); +ALTER TABLE ONLY wiki_page_meta ALTER COLUMN id SET DEFAULT nextval('wiki_page_meta_id_seq'::regclass); +ALTER TABLE ONLY wiki_page_slugs ALTER COLUMN id SET DEFAULT nextval('wiki_page_slugs_id_seq'::regclass); --- --- Name: bulk_import_configurations id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY wiki_repository_states ALTER COLUMN id SET DEFAULT nextval('wiki_repository_states_id_seq'::regclass); -ALTER TABLE ONLY public.bulk_import_configurations ALTER COLUMN id SET DEFAULT nextval('public.bulk_import_configurations_id_seq'::regclass); +ALTER TABLE ONLY work_item_hierarchy_restrictions ALTER COLUMN id SET DEFAULT nextval('work_item_hierarchy_restrictions_id_seq'::regclass); +ALTER TABLE ONLY work_item_parent_links ALTER COLUMN id SET DEFAULT nextval('work_item_parent_links_id_seq'::regclass); --- --- Name: bulk_import_entities id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY work_item_related_link_restrictions ALTER COLUMN id SET DEFAULT nextval('work_item_related_link_restrictions_id_seq'::regclass); -ALTER TABLE ONLY public.bulk_import_entities ALTER COLUMN id SET DEFAULT nextval('public.bulk_import_entities_id_seq'::regclass); +ALTER TABLE ONLY work_item_types ALTER COLUMN id SET DEFAULT nextval('work_item_types_id_seq'::regclass); +ALTER TABLE ONLY work_item_widget_definitions ALTER COLUMN id SET DEFAULT nextval('work_item_widget_definitions_id_seq'::regclass); --- --- Name: bulk_import_export_batches id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY workspace_variables ALTER COLUMN id SET DEFAULT nextval('workspace_variables_id_seq'::regclass); -ALTER TABLE ONLY public.bulk_import_export_batches ALTER COLUMN id SET DEFAULT nextval('public.bulk_import_export_batches_id_seq'::regclass); +ALTER TABLE ONLY workspaces ALTER COLUMN id SET DEFAULT nextval('workspaces_id_seq'::regclass); +ALTER TABLE ONLY workspaces_agent_configs ALTER COLUMN id SET DEFAULT nextval('workspaces_agent_configs_id_seq'::regclass); --- --- Name: bulk_import_export_uploads id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY x509_certificates ALTER COLUMN id SET DEFAULT nextval('x509_certificates_id_seq'::regclass); -ALTER TABLE ONLY public.bulk_import_export_uploads ALTER COLUMN id SET DEFAULT nextval('public.bulk_import_export_uploads_id_seq'::regclass); +ALTER TABLE ONLY x509_commit_signatures ALTER COLUMN id SET DEFAULT nextval('x509_commit_signatures_id_seq'::regclass); +ALTER TABLE ONLY x509_issuers ALTER COLUMN id SET DEFAULT nextval('x509_issuers_id_seq'::regclass); --- --- Name: bulk_import_exports id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY xray_reports ALTER COLUMN id SET DEFAULT nextval('xray_reports_id_seq'::regclass); -ALTER TABLE ONLY public.bulk_import_exports ALTER COLUMN id SET DEFAULT nextval('public.bulk_import_exports_id_seq'::regclass); +ALTER TABLE ONLY zentao_tracker_data ALTER COLUMN id SET DEFAULT nextval('zentao_tracker_data_id_seq'::regclass); +ALTER TABLE ONLY zoekt_enabled_namespaces ALTER COLUMN id SET DEFAULT nextval('zoekt_enabled_namespaces_id_seq'::regclass); --- --- Name: bulk_import_failures id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY zoekt_indices ALTER COLUMN id SET DEFAULT nextval('zoekt_indices_id_seq'::regclass); -ALTER TABLE ONLY public.bulk_import_failures ALTER COLUMN id SET DEFAULT nextval('public.bulk_import_failures_id_seq'::regclass); +ALTER TABLE ONLY zoekt_nodes ALTER COLUMN id SET DEFAULT nextval('zoekt_nodes_id_seq'::regclass); +ALTER TABLE ONLY zoekt_replicas ALTER COLUMN id SET DEFAULT nextval('zoekt_replicas_id_seq'::regclass); --- --- Name: bulk_import_trackers id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY zoekt_repositories ALTER COLUMN id SET DEFAULT nextval('zoekt_repositories_id_seq'::regclass); -ALTER TABLE ONLY public.bulk_import_trackers ALTER COLUMN id SET DEFAULT nextval('public.bulk_import_trackers_id_seq'::regclass); +ALTER TABLE ONLY zoekt_shards ALTER COLUMN id SET DEFAULT nextval('zoekt_shards_id_seq'::regclass); +ALTER TABLE ONLY zoom_meetings ALTER COLUMN id SET DEFAULT nextval('zoom_meetings_id_seq'::regclass); --- --- Name: bulk_imports id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_issue_stage_events + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY public.bulk_imports ALTER COLUMN id SET DEFAULT nextval('public.bulk_imports_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_00_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_01_pkey PRIMARY KEY (stage_event_hash_id, issue_id); --- --- Name: catalog_resource_components id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_02_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY public.catalog_resource_components ALTER COLUMN id SET DEFAULT nextval('public.catalog_resource_components_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_03_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_04_pkey PRIMARY KEY (stage_event_hash_id, issue_id); --- --- Name: catalog_resource_versions id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_05_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY public.catalog_resource_versions ALTER COLUMN id SET DEFAULT nextval('public.catalog_resource_versions_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_06_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_07_pkey PRIMARY KEY (stage_event_hash_id, issue_id); --- --- Name: catalog_resources id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_08_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY public.catalog_resources ALTER COLUMN id SET DEFAULT nextval('public.catalog_resources_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_09_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_10_pkey PRIMARY KEY (stage_event_hash_id, issue_id); --- --- Name: catalog_verified_namespaces id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_11_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY public.catalog_verified_namespaces ALTER COLUMN id SET DEFAULT nextval('public.catalog_verified_namespaces_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_12_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_13_pkey PRIMARY KEY (stage_event_hash_id, issue_id); --- --- Name: chat_names id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_14_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY public.chat_names ALTER COLUMN id SET DEFAULT nextval('public.chat_names_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_15_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_16_pkey PRIMARY KEY (stage_event_hash_id, issue_id); --- --- Name: chat_teams id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_17_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY public.chat_teams ALTER COLUMN id SET DEFAULT nextval('public.chat_teams_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_18_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_19_pkey PRIMARY KEY (stage_event_hash_id, issue_id); --- --- Name: ci_build_needs id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_20_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY public.ci_build_needs ALTER COLUMN id SET DEFAULT nextval('public.ci_build_needs_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_21_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_22_pkey PRIMARY KEY (stage_event_hash_id, issue_id); --- --- Name: ci_build_pending_states id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_23_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY public.ci_build_pending_states ALTER COLUMN id SET DEFAULT nextval('public.ci_build_pending_states_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_24_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_25_pkey PRIMARY KEY (stage_event_hash_id, issue_id); --- --- Name: ci_build_trace_chunks id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_26_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY public.ci_build_trace_chunks ALTER COLUMN id SET DEFAULT nextval('public.ci_build_trace_chunks_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_27_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_28_pkey PRIMARY KEY (stage_event_hash_id, issue_id); --- --- Name: ci_builds_runner_session id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_29_pkey PRIMARY KEY (stage_event_hash_id, issue_id); -ALTER TABLE ONLY public.ci_builds_runner_session ALTER COLUMN id SET DEFAULT nextval('public.ci_builds_runner_session_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_30_pkey PRIMARY KEY (stage_event_hash_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 + ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_31_pkey PRIMARY KEY (stage_event_hash_id, issue_id); --- --- Name: ci_daily_build_group_report_results id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_merge_request_stage_events + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY public.ci_daily_build_group_report_results ALTER COLUMN id SET DEFAULT nextval('public.ci_daily_build_group_report_results_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_00_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_01_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); --- --- Name: ci_deleted_objects id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_02_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY public.ci_deleted_objects ALTER COLUMN id SET DEFAULT nextval('public.ci_deleted_objects_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_03_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_04_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); --- --- Name: ci_freeze_periods id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_05_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY public.ci_freeze_periods ALTER COLUMN id SET DEFAULT nextval('public.ci_freeze_periods_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_06_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_07_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); --- --- Name: ci_group_variables id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_08_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY public.ci_group_variables ALTER COLUMN id SET DEFAULT nextval('public.ci_group_variables_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_09_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_10_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); --- --- Name: ci_instance_variables id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_11_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY public.ci_instance_variables ALTER COLUMN id SET DEFAULT nextval('public.ci_instance_variables_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_12_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_13_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); --- --- Name: ci_job_token_group_scope_links id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_14_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY public.ci_job_token_group_scope_links ALTER COLUMN id SET DEFAULT nextval('public.ci_job_token_group_scope_links_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_15_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_16_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); --- --- Name: ci_job_token_project_scope_links id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_17_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY public.ci_job_token_project_scope_links ALTER COLUMN id SET DEFAULT nextval('public.ci_job_token_project_scope_links_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_18_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_19_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); --- --- Name: ci_job_variables id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_20_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY public.ci_job_variables ALTER COLUMN id SET DEFAULT nextval('public.ci_job_variables_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_21_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_22_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); --- --- Name: ci_minutes_additional_packs id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_23_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY public.ci_minutes_additional_packs ALTER COLUMN id SET DEFAULT nextval('public.ci_minutes_additional_packs_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_24_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_25_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); --- --- Name: ci_namespace_mirrors id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_26_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY public.ci_namespace_mirrors ALTER COLUMN id SET DEFAULT nextval('public.ci_namespace_mirrors_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_27_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_28_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); --- --- Name: ci_namespace_monthly_usages id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_29_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); -ALTER TABLE ONLY public.ci_namespace_monthly_usages ALTER COLUMN id SET DEFAULT nextval('public.ci_namespace_monthly_usages_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_30_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); +ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 + ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_31_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); --- --- Name: ci_pending_builds id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY issue_search_data + ADD CONSTRAINT issue_search_data_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_pending_builds ALTER COLUMN id SET DEFAULT nextval('public.ci_pending_builds_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_00 + ADD CONSTRAINT issue_search_data_00_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_01 + ADD CONSTRAINT issue_search_data_01_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_pipeline_artifacts id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_02 + ADD CONSTRAINT issue_search_data_02_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_pipeline_artifacts ALTER COLUMN id SET DEFAULT nextval('public.ci_pipeline_artifacts_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_03 + ADD CONSTRAINT issue_search_data_03_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_04 + ADD CONSTRAINT issue_search_data_04_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_pipeline_chat_data id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_05 + ADD CONSTRAINT issue_search_data_05_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_pipeline_chat_data ALTER COLUMN id SET DEFAULT nextval('public.ci_pipeline_chat_data_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_06 + ADD CONSTRAINT issue_search_data_06_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_07 + ADD CONSTRAINT issue_search_data_07_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_pipeline_messages id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_08 + ADD CONSTRAINT issue_search_data_08_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_pipeline_messages ALTER COLUMN id SET DEFAULT nextval('public.ci_pipeline_messages_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_09 + ADD CONSTRAINT issue_search_data_09_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_10 + ADD CONSTRAINT issue_search_data_10_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_pipeline_schedule_variables id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_11 + ADD CONSTRAINT issue_search_data_11_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_pipeline_schedule_variables ALTER COLUMN id SET DEFAULT nextval('public.ci_pipeline_schedule_variables_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_12 + ADD CONSTRAINT issue_search_data_12_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_13 + ADD CONSTRAINT issue_search_data_13_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_pipeline_schedules id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_14 + ADD CONSTRAINT issue_search_data_14_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_pipeline_schedules ALTER COLUMN id SET DEFAULT nextval('public.ci_pipeline_schedules_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_15 + ADD CONSTRAINT issue_search_data_15_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_16 + ADD CONSTRAINT issue_search_data_16_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_project_mirrors id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_17 + ADD CONSTRAINT issue_search_data_17_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_project_mirrors ALTER COLUMN id SET DEFAULT nextval('public.ci_project_mirrors_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_18 + ADD CONSTRAINT issue_search_data_18_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_19 + ADD CONSTRAINT issue_search_data_19_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_project_monthly_usages id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_20 + ADD CONSTRAINT issue_search_data_20_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_project_monthly_usages ALTER COLUMN id SET DEFAULT nextval('public.ci_project_monthly_usages_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_21 + ADD CONSTRAINT issue_search_data_21_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_22 + ADD CONSTRAINT issue_search_data_22_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_refs id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_23 + ADD CONSTRAINT issue_search_data_23_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_refs ALTER COLUMN id SET DEFAULT nextval('public.ci_refs_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_24 + ADD CONSTRAINT issue_search_data_24_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_25 + ADD CONSTRAINT issue_search_data_25_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_resource_groups id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_26 + ADD CONSTRAINT issue_search_data_26_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_resource_groups ALTER COLUMN id SET DEFAULT nextval('public.ci_resource_groups_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_27 + ADD CONSTRAINT issue_search_data_27_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_28 + ADD CONSTRAINT issue_search_data_28_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_resources id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_29 + ADD CONSTRAINT issue_search_data_29_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_resources ALTER COLUMN id SET DEFAULT nextval('public.ci_resources_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_30 + ADD CONSTRAINT issue_search_data_30_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_31 + ADD CONSTRAINT issue_search_data_31_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_runner_machines id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_32 + ADD CONSTRAINT issue_search_data_32_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_runner_machines ALTER COLUMN id SET DEFAULT nextval('public.ci_runner_machines_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_33 + ADD CONSTRAINT issue_search_data_33_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_34 + ADD CONSTRAINT issue_search_data_34_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_runner_namespaces id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_35 + ADD CONSTRAINT issue_search_data_35_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_runner_namespaces ALTER COLUMN id SET DEFAULT nextval('public.ci_runner_namespaces_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_36 + ADD CONSTRAINT issue_search_data_36_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_37 + ADD CONSTRAINT issue_search_data_37_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_runner_projects id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_38 + ADD CONSTRAINT issue_search_data_38_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_runner_projects ALTER COLUMN id SET DEFAULT nextval('public.ci_runner_projects_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_39 + ADD CONSTRAINT issue_search_data_39_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_40 + ADD CONSTRAINT issue_search_data_40_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_runners id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_41 + ADD CONSTRAINT issue_search_data_41_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_runners ALTER COLUMN id SET DEFAULT nextval('public.ci_runners_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_42 + ADD CONSTRAINT issue_search_data_42_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_43 + ADD CONSTRAINT issue_search_data_43_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_running_builds id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_44 + ADD CONSTRAINT issue_search_data_44_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_running_builds ALTER COLUMN id SET DEFAULT nextval('public.ci_running_builds_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_45 + ADD CONSTRAINT issue_search_data_45_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_46 + ADD CONSTRAINT issue_search_data_46_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_secure_file_states ci_secure_file_id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_47 + ADD CONSTRAINT issue_search_data_47_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_secure_file_states ALTER COLUMN ci_secure_file_id SET DEFAULT nextval('public.ci_secure_file_states_ci_secure_file_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_48 + ADD CONSTRAINT issue_search_data_48_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_49 + ADD CONSTRAINT issue_search_data_49_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_secure_files id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_50 + ADD CONSTRAINT issue_search_data_50_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_secure_files ALTER COLUMN id SET DEFAULT nextval('public.ci_secure_files_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_51 + ADD CONSTRAINT issue_search_data_51_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_52 + ADD CONSTRAINT issue_search_data_52_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_sources_pipelines id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_53 + ADD CONSTRAINT issue_search_data_53_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_sources_pipelines ALTER COLUMN id SET DEFAULT nextval('public.ci_sources_pipelines_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_54 + ADD CONSTRAINT issue_search_data_54_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_55 + ADD CONSTRAINT issue_search_data_55_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_sources_projects id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_56 + ADD CONSTRAINT issue_search_data_56_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_sources_projects ALTER COLUMN id SET DEFAULT nextval('public.ci_sources_projects_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_57 + ADD CONSTRAINT issue_search_data_57_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_58 + ADD CONSTRAINT issue_search_data_58_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_subscriptions_projects id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_59 + ADD CONSTRAINT issue_search_data_59_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_subscriptions_projects ALTER COLUMN id SET DEFAULT nextval('public.ci_subscriptions_projects_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_60 + ADD CONSTRAINT issue_search_data_60_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_61 + ADD CONSTRAINT issue_search_data_61_pkey PRIMARY KEY (project_id, issue_id); --- --- Name: ci_trigger_requests id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_62 + ADD CONSTRAINT issue_search_data_62_pkey PRIMARY KEY (project_id, issue_id); -ALTER TABLE ONLY public.ci_trigger_requests ALTER COLUMN id SET DEFAULT nextval('public.ci_trigger_requests_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_63 + ADD CONSTRAINT issue_search_data_63_pkey PRIMARY KEY (project_id, issue_id); +ALTER TABLE ONLY namespace_descendants + ADD CONSTRAINT namespace_descendants_pkey PRIMARY KEY (namespace_id); --- --- Name: ci_triggers id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_00 + ADD CONSTRAINT namespace_descendants_00_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY public.ci_triggers ALTER COLUMN id SET DEFAULT nextval('public.ci_triggers_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_01 + ADD CONSTRAINT namespace_descendants_01_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_02 + ADD CONSTRAINT namespace_descendants_02_pkey PRIMARY KEY (namespace_id); --- --- Name: ci_unit_test_failures id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_03 + ADD CONSTRAINT namespace_descendants_03_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY public.ci_unit_test_failures ALTER COLUMN id SET DEFAULT nextval('public.ci_unit_test_failures_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_04 + ADD CONSTRAINT namespace_descendants_04_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_05 + ADD CONSTRAINT namespace_descendants_05_pkey PRIMARY KEY (namespace_id); --- --- Name: ci_unit_tests id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_06 + ADD CONSTRAINT namespace_descendants_06_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY public.ci_unit_tests ALTER COLUMN id SET DEFAULT nextval('public.ci_unit_tests_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_07 + ADD CONSTRAINT namespace_descendants_07_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_08 + ADD CONSTRAINT namespace_descendants_08_pkey PRIMARY KEY (namespace_id); --- --- Name: ci_variables id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_09 + ADD CONSTRAINT namespace_descendants_09_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY public.ci_variables ALTER COLUMN id SET DEFAULT nextval('public.ci_variables_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_10 + ADD CONSTRAINT namespace_descendants_10_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_11 + ADD CONSTRAINT namespace_descendants_11_pkey PRIMARY KEY (namespace_id); --- --- Name: cloud_connector_access id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_12 + ADD CONSTRAINT namespace_descendants_12_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY public.cloud_connector_access ALTER COLUMN id SET DEFAULT nextval('public.cloud_connector_access_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_13 + ADD CONSTRAINT namespace_descendants_13_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_14 + ADD CONSTRAINT namespace_descendants_14_pkey PRIMARY KEY (namespace_id); --- --- Name: cluster_agent_tokens id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_15 + ADD CONSTRAINT namespace_descendants_15_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY public.cluster_agent_tokens ALTER COLUMN id SET DEFAULT nextval('public.cluster_agent_tokens_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_16 + ADD CONSTRAINT namespace_descendants_16_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_17 + ADD CONSTRAINT namespace_descendants_17_pkey PRIMARY KEY (namespace_id); --- --- Name: cluster_agent_url_configurations id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_18 + ADD CONSTRAINT namespace_descendants_18_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY public.cluster_agent_url_configurations ALTER COLUMN id SET DEFAULT nextval('public.cluster_agent_url_configurations_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_19 + ADD CONSTRAINT namespace_descendants_19_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_20 + ADD CONSTRAINT namespace_descendants_20_pkey PRIMARY KEY (namespace_id); --- --- Name: cluster_agents id; Type: DEFAULT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_21 + ADD CONSTRAINT namespace_descendants_21_pkey PRIMARY KEY (namespace_id); -ALTER TABLE ONLY public.cluster_agents ALTER COLUMN id SET DEFAULT nextval('public.cluster_agents_id_seq'::regclass); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_22 + ADD CONSTRAINT namespace_descendants_22_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_23 + ADD CONSTRAINT namespace_descendants_23_pkey PRIMARY KEY (namespace_id); --- --- Name: cluster_enabled_grants id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.cluster_enabled_grants ALTER COLUMN id SET DEFAULT nextval('public.cluster_enabled_grants_id_seq'::regclass); - - --- --- Name: cluster_groups id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.cluster_groups ALTER COLUMN id SET DEFAULT nextval('public.cluster_groups_id_seq'::regclass); - - --- --- Name: cluster_platforms_kubernetes id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.cluster_platforms_kubernetes ALTER COLUMN id SET DEFAULT nextval('public.cluster_platforms_kubernetes_id_seq'::regclass); - - --- --- Name: cluster_projects id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.cluster_projects ALTER COLUMN id SET DEFAULT nextval('public.cluster_projects_id_seq'::regclass); - - --- --- Name: cluster_providers_aws id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.cluster_providers_aws ALTER COLUMN id SET DEFAULT nextval('public.cluster_providers_aws_id_seq'::regclass); - - --- --- Name: cluster_providers_gcp id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.cluster_providers_gcp ALTER COLUMN id SET DEFAULT nextval('public.cluster_providers_gcp_id_seq'::regclass); - - --- --- Name: clusters id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.clusters ALTER COLUMN id SET DEFAULT nextval('public.clusters_id_seq'::regclass); - - --- --- Name: clusters_kubernetes_namespaces id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.clusters_kubernetes_namespaces ALTER COLUMN id SET DEFAULT nextval('public.clusters_kubernetes_namespaces_id_seq'::regclass); - - --- --- Name: commit_user_mentions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.commit_user_mentions ALTER COLUMN id SET DEFAULT nextval('public.commit_user_mentions_id_seq'::regclass); - - --- --- Name: compliance_checks id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.compliance_checks ALTER COLUMN id SET DEFAULT nextval('public.compliance_checks_id_seq'::regclass); - - --- --- Name: compliance_framework_security_policies id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.compliance_framework_security_policies ALTER COLUMN id SET DEFAULT nextval('public.compliance_framework_security_policies_id_seq'::regclass); - - --- --- Name: compliance_management_frameworks id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.compliance_management_frameworks ALTER COLUMN id SET DEFAULT nextval('public.compliance_management_frameworks_id_seq'::regclass); - - --- --- Name: compliance_requirements id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.compliance_requirements ALTER COLUMN id SET DEFAULT nextval('public.compliance_requirements_id_seq'::regclass); - - --- --- Name: container_registry_protection_rules id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.container_registry_protection_rules ALTER COLUMN id SET DEFAULT nextval('public.container_registry_protection_rules_id_seq'::regclass); - - --- --- Name: container_repositories id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.container_repositories ALTER COLUMN id SET DEFAULT nextval('public.container_repositories_id_seq'::regclass); - - --- --- Name: content_blocked_states id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.content_blocked_states ALTER COLUMN id SET DEFAULT nextval('public.content_blocked_states_id_seq'::regclass); - - --- --- Name: conversational_development_index_metrics id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.conversational_development_index_metrics ALTER COLUMN id SET DEFAULT nextval('public.conversational_development_index_metrics_id_seq'::regclass); - - --- --- Name: country_access_logs id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.country_access_logs ALTER COLUMN id SET DEFAULT nextval('public.country_access_logs_id_seq'::regclass); - - --- --- Name: coverage_fuzzing_corpuses id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.coverage_fuzzing_corpuses ALTER COLUMN id SET DEFAULT nextval('public.coverage_fuzzing_corpuses_id_seq'::regclass); - - --- --- Name: csv_issue_imports id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.csv_issue_imports ALTER COLUMN id SET DEFAULT nextval('public.csv_issue_imports_id_seq'::regclass); - - --- --- Name: custom_emoji id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.custom_emoji ALTER COLUMN id SET DEFAULT nextval('public.custom_emoji_id_seq'::regclass); - - --- --- Name: custom_software_licenses id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.custom_software_licenses ALTER COLUMN id SET DEFAULT nextval('public.custom_software_licenses_id_seq'::regclass); - - --- --- Name: customer_relations_contacts id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.customer_relations_contacts ALTER COLUMN id SET DEFAULT nextval('public.customer_relations_contacts_id_seq'::regclass); - - --- --- Name: customer_relations_organizations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.customer_relations_organizations ALTER COLUMN id SET DEFAULT nextval('public.customer_relations_organizations_id_seq'::regclass); - - --- --- Name: dast_pre_scan_verification_steps id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_pre_scan_verification_steps ALTER COLUMN id SET DEFAULT nextval('public.dast_pre_scan_verification_steps_id_seq'::regclass); - - --- --- Name: dast_pre_scan_verifications id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_pre_scan_verifications ALTER COLUMN id SET DEFAULT nextval('public.dast_pre_scan_verifications_id_seq'::regclass); - - --- --- Name: dast_profile_schedules id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_profile_schedules ALTER COLUMN id SET DEFAULT nextval('public.dast_profile_schedules_id_seq'::regclass); - - --- --- Name: dast_profiles id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_profiles ALTER COLUMN id SET DEFAULT nextval('public.dast_profiles_id_seq'::regclass); - - --- --- Name: dast_profiles_tags id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_profiles_tags ALTER COLUMN id SET DEFAULT nextval('public.dast_profiles_tags_id_seq'::regclass); - - --- --- Name: dast_scanner_profiles id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_scanner_profiles ALTER COLUMN id SET DEFAULT nextval('public.dast_scanner_profiles_id_seq'::regclass); - - --- --- Name: dast_site_profile_secret_variables id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_site_profile_secret_variables ALTER COLUMN id SET DEFAULT nextval('public.dast_site_profile_secret_variables_id_seq'::regclass); - - --- --- Name: dast_site_profiles id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_site_profiles ALTER COLUMN id SET DEFAULT nextval('public.dast_site_profiles_id_seq'::regclass); - - --- --- Name: dast_site_tokens id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_site_tokens ALTER COLUMN id SET DEFAULT nextval('public.dast_site_tokens_id_seq'::regclass); - - --- --- Name: dast_site_validations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_site_validations ALTER COLUMN id SET DEFAULT nextval('public.dast_site_validations_id_seq'::regclass); - - --- --- Name: dast_sites id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_sites ALTER COLUMN id SET DEFAULT nextval('public.dast_sites_id_seq'::regclass); - - --- --- Name: dependency_list_export_parts id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dependency_list_export_parts ALTER COLUMN id SET DEFAULT nextval('public.dependency_list_export_parts_id_seq'::regclass); - - --- --- Name: dependency_list_exports id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dependency_list_exports ALTER COLUMN id SET DEFAULT nextval('public.dependency_list_exports_id_seq'::regclass); - - --- --- Name: dependency_proxy_blobs id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dependency_proxy_blobs ALTER COLUMN id SET DEFAULT nextval('public.dependency_proxy_blobs_id_seq'::regclass); - - --- --- Name: dependency_proxy_group_settings id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dependency_proxy_group_settings ALTER COLUMN id SET DEFAULT nextval('public.dependency_proxy_group_settings_id_seq'::regclass); - - --- --- Name: dependency_proxy_manifests id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dependency_proxy_manifests ALTER COLUMN id SET DEFAULT nextval('public.dependency_proxy_manifests_id_seq'::regclass); - - --- --- Name: deploy_keys_projects id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.deploy_keys_projects ALTER COLUMN id SET DEFAULT nextval('public.deploy_keys_projects_id_seq'::regclass); - - --- --- Name: deploy_tokens id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.deploy_tokens ALTER COLUMN id SET DEFAULT nextval('public.deploy_tokens_id_seq'::regclass); - - --- --- Name: deployment_approvals id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.deployment_approvals ALTER COLUMN id SET DEFAULT nextval('public.deployment_approvals_id_seq'::regclass); - - --- --- Name: deployments id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.deployments ALTER COLUMN id SET DEFAULT nextval('public.deployments_id_seq'::regclass); - - --- --- Name: description_versions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.description_versions ALTER COLUMN id SET DEFAULT nextval('public.description_versions_id_seq'::regclass); - - --- --- Name: design_management_designs id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.design_management_designs ALTER COLUMN id SET DEFAULT nextval('public.design_management_designs_id_seq'::regclass); - - --- --- Name: design_management_designs_versions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.design_management_designs_versions ALTER COLUMN id SET DEFAULT nextval('public.design_management_designs_versions_id_seq'::regclass); - - --- --- Name: design_management_repositories id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.design_management_repositories ALTER COLUMN id SET DEFAULT nextval('public.design_management_repositories_id_seq'::regclass); - - --- --- Name: design_management_versions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.design_management_versions ALTER COLUMN id SET DEFAULT nextval('public.design_management_versions_id_seq'::regclass); - - --- --- Name: design_user_mentions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.design_user_mentions ALTER COLUMN id SET DEFAULT nextval('public.design_user_mentions_id_seq'::regclass); - - --- --- Name: detached_partitions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.detached_partitions ALTER COLUMN id SET DEFAULT nextval('public.detached_partitions_id_seq'::regclass); - - --- --- Name: diff_note_positions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.diff_note_positions ALTER COLUMN id SET DEFAULT nextval('public.diff_note_positions_id_seq'::regclass); - - --- --- Name: dingtalk_tracker_data id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dingtalk_tracker_data ALTER COLUMN id SET DEFAULT nextval('public.dingtalk_tracker_data_id_seq'::regclass); - - --- --- Name: dora_configurations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dora_configurations ALTER COLUMN id SET DEFAULT nextval('public.dora_configurations_id_seq'::regclass); - - --- --- Name: dora_daily_metrics id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dora_daily_metrics ALTER COLUMN id SET DEFAULT nextval('public.dora_daily_metrics_id_seq'::regclass); - - --- --- Name: dora_performance_scores id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dora_performance_scores ALTER COLUMN id SET DEFAULT nextval('public.dora_performance_scores_id_seq'::regclass); - - --- --- Name: draft_notes id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.draft_notes ALTER COLUMN id SET DEFAULT nextval('public.draft_notes_id_seq'::regclass); - - --- --- Name: duo_workflows_checkpoints id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.duo_workflows_checkpoints ALTER COLUMN id SET DEFAULT nextval('public.duo_workflows_checkpoints_id_seq'::regclass); - - --- --- Name: duo_workflows_workflows id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.duo_workflows_workflows ALTER COLUMN id SET DEFAULT nextval('public.duo_workflows_workflows_id_seq'::regclass); - - --- --- Name: early_access_program_tracking_events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.early_access_program_tracking_events ALTER COLUMN id SET DEFAULT nextval('public.early_access_program_tracking_events_id_seq'::regclass); - - --- --- Name: elastic_index_settings id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.elastic_index_settings ALTER COLUMN id SET DEFAULT nextval('public.elastic_index_settings_id_seq'::regclass); - - --- --- Name: elastic_reindexing_slices id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.elastic_reindexing_slices ALTER COLUMN id SET DEFAULT nextval('public.elastic_reindexing_slices_id_seq'::regclass); - - --- --- Name: elastic_reindexing_subtasks id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.elastic_reindexing_subtasks ALTER COLUMN id SET DEFAULT nextval('public.elastic_reindexing_subtasks_id_seq'::regclass); - - --- --- Name: elastic_reindexing_tasks id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.elastic_reindexing_tasks ALTER COLUMN id SET DEFAULT nextval('public.elastic_reindexing_tasks_id_seq'::regclass); - - --- --- Name: emails id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.emails ALTER COLUMN id SET DEFAULT nextval('public.emails_id_seq'::regclass); - - --- --- Name: environments id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.environments ALTER COLUMN id SET DEFAULT nextval('public.environments_id_seq'::regclass); - - --- --- Name: epic_issues id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.epic_issues ALTER COLUMN id SET DEFAULT nextval('public.epic_issues_id_seq'::regclass); - - --- --- Name: epic_metrics id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.epic_metrics ALTER COLUMN id SET DEFAULT nextval('public.epic_metrics_id_seq'::regclass); - - --- --- Name: epic_user_mentions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.epic_user_mentions ALTER COLUMN id SET DEFAULT nextval('public.epic_user_mentions_id_seq'::regclass); - - --- --- Name: epics id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.epics ALTER COLUMN id SET DEFAULT nextval('public.epics_id_seq'::regclass); - - --- --- Name: error_tracking_client_keys id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.error_tracking_client_keys ALTER COLUMN id SET DEFAULT nextval('public.error_tracking_client_keys_id_seq'::regclass); - - --- --- Name: error_tracking_error_events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.error_tracking_error_events ALTER COLUMN id SET DEFAULT nextval('public.error_tracking_error_events_id_seq'::regclass); - - --- --- Name: error_tracking_errors id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.error_tracking_errors ALTER COLUMN id SET DEFAULT nextval('public.error_tracking_errors_id_seq'::regclass); - - --- --- Name: events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.events ALTER COLUMN id SET DEFAULT nextval('public.events_id_seq'::regclass); - - --- --- Name: evidences id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.evidences ALTER COLUMN id SET DEFAULT nextval('public.evidences_id_seq'::regclass); - - --- --- Name: external_approval_rules id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.external_approval_rules ALTER COLUMN id SET DEFAULT nextval('public.external_approval_rules_id_seq'::regclass); - - --- --- Name: external_pull_requests id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.external_pull_requests ALTER COLUMN id SET DEFAULT nextval('public.external_pull_requests_id_seq'::regclass); - - --- --- Name: external_status_checks id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.external_status_checks ALTER COLUMN id SET DEFAULT nextval('public.external_status_checks_id_seq'::regclass); - - --- --- Name: external_status_checks_protected_branches id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.external_status_checks_protected_branches ALTER COLUMN id SET DEFAULT nextval('public.external_status_checks_protected_branches_id_seq'::regclass); - - --- --- Name: feature_gates id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.feature_gates ALTER COLUMN id SET DEFAULT nextval('public.feature_gates_id_seq'::regclass); - - --- --- Name: features id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.features ALTER COLUMN id SET DEFAULT nextval('public.features_id_seq'::regclass); - - --- --- Name: fork_network_members id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.fork_network_members ALTER COLUMN id SET DEFAULT nextval('public.fork_network_members_id_seq'::regclass); - - --- --- Name: fork_networks id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.fork_networks ALTER COLUMN id SET DEFAULT nextval('public.fork_networks_id_seq'::regclass); - - --- --- Name: geo_cache_invalidation_events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.geo_cache_invalidation_events ALTER COLUMN id SET DEFAULT nextval('public.geo_cache_invalidation_events_id_seq'::regclass); - - --- --- Name: geo_event_log id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.geo_event_log ALTER COLUMN id SET DEFAULT nextval('public.geo_event_log_id_seq'::regclass); - - --- --- Name: geo_events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.geo_events ALTER COLUMN id SET DEFAULT nextval('public.geo_events_id_seq'::regclass); - - --- --- Name: geo_node_namespace_links id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.geo_node_namespace_links ALTER COLUMN id SET DEFAULT nextval('public.geo_node_namespace_links_id_seq'::regclass); - - --- --- Name: geo_node_statuses id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.geo_node_statuses ALTER COLUMN id SET DEFAULT nextval('public.geo_node_statuses_id_seq'::regclass); - - --- --- Name: geo_nodes id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.geo_nodes ALTER COLUMN id SET DEFAULT nextval('public.geo_nodes_id_seq'::regclass); - - --- --- Name: ghost_user_migrations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ghost_user_migrations ALTER COLUMN id SET DEFAULT nextval('public.ghost_user_migrations_id_seq'::regclass); - - --- --- Name: gitlab_subscription_histories id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.gitlab_subscription_histories ALTER COLUMN id SET DEFAULT nextval('public.gitlab_subscription_histories_id_seq'::regclass); - - --- --- Name: gitlab_subscriptions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.gitlab_subscriptions ALTER COLUMN id SET DEFAULT nextval('public.gitlab_subscriptions_id_seq'::regclass); - - --- --- Name: gpg_key_subkeys id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.gpg_key_subkeys ALTER COLUMN id SET DEFAULT nextval('public.gpg_key_subkeys_id_seq'::regclass); - - --- --- Name: gpg_keys id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.gpg_keys ALTER COLUMN id SET DEFAULT nextval('public.gpg_keys_id_seq'::regclass); - - --- --- Name: gpg_signatures id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.gpg_signatures ALTER COLUMN id SET DEFAULT nextval('public.gpg_signatures_id_seq'::regclass); - - --- --- Name: grafana_integrations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.grafana_integrations ALTER COLUMN id SET DEFAULT nextval('public.grafana_integrations_id_seq'::regclass); - - --- --- Name: group_crm_settings group_id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_crm_settings ALTER COLUMN group_id SET DEFAULT nextval('public.group_crm_settings_group_id_seq'::regclass); - - --- --- Name: group_custom_attributes id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_custom_attributes ALTER COLUMN id SET DEFAULT nextval('public.group_custom_attributes_id_seq'::regclass); - - --- --- Name: group_deploy_keys id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_deploy_keys ALTER COLUMN id SET DEFAULT nextval('public.group_deploy_keys_id_seq'::regclass); - - --- --- Name: group_deploy_keys_groups id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_deploy_keys_groups ALTER COLUMN id SET DEFAULT nextval('public.group_deploy_keys_groups_id_seq'::regclass); - - --- --- Name: group_deploy_tokens id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_deploy_tokens ALTER COLUMN id SET DEFAULT nextval('public.group_deploy_tokens_id_seq'::regclass); - - --- --- Name: group_group_links id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_group_links ALTER COLUMN id SET DEFAULT nextval('public.group_group_links_id_seq'::regclass); - - --- --- Name: group_import_states group_id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_import_states ALTER COLUMN group_id SET DEFAULT nextval('public.group_import_states_group_id_seq'::regclass); - - --- --- Name: group_repository_storage_moves id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_repository_storage_moves ALTER COLUMN id SET DEFAULT nextval('public.group_repository_storage_moves_id_seq'::regclass); - - --- --- Name: group_saved_replies id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_saved_replies ALTER COLUMN id SET DEFAULT nextval('public.group_saved_replies_id_seq'::regclass); - - --- --- Name: group_ssh_certificates id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_ssh_certificates ALTER COLUMN id SET DEFAULT nextval('public.group_ssh_certificates_id_seq'::regclass); - - --- --- Name: group_wiki_repository_states id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_wiki_repository_states ALTER COLUMN id SET DEFAULT nextval('public.group_wiki_repository_states_id_seq'::regclass); - - --- --- Name: groups_visits id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.groups_visits ALTER COLUMN id SET DEFAULT nextval('public.groups_visits_id_seq'::regclass); - - --- --- Name: historical_data id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.historical_data ALTER COLUMN id SET DEFAULT nextval('public.historical_data_id_seq'::regclass); - - --- --- Name: identities id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.identities ALTER COLUMN id SET DEFAULT nextval('public.identities_id_seq'::regclass); - - --- --- Name: import_export_uploads id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.import_export_uploads ALTER COLUMN id SET DEFAULT nextval('public.import_export_uploads_id_seq'::regclass); - - --- --- Name: import_failures id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.import_failures ALTER COLUMN id SET DEFAULT nextval('public.import_failures_id_seq'::regclass); - - --- --- Name: import_placeholder_memberships id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.import_placeholder_memberships ALTER COLUMN id SET DEFAULT nextval('public.import_placeholder_memberships_id_seq'::regclass); - - --- --- Name: import_source_user_placeholder_references id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.import_source_user_placeholder_references ALTER COLUMN id SET DEFAULT nextval('public.import_source_user_placeholder_references_id_seq'::regclass); - - --- --- Name: import_source_users id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.import_source_users ALTER COLUMN id SET DEFAULT nextval('public.import_source_users_id_seq'::regclass); - - --- --- Name: incident_management_escalation_policies id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_escalation_policies ALTER COLUMN id SET DEFAULT nextval('public.incident_management_escalation_policies_id_seq'::regclass); - - --- --- Name: incident_management_escalation_rules id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_escalation_rules ALTER COLUMN id SET DEFAULT nextval('public.incident_management_escalation_rules_id_seq'::regclass); - - --- --- Name: incident_management_issuable_escalation_statuses id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_issuable_escalation_statuses ALTER COLUMN id SET DEFAULT nextval('public.incident_management_issuable_escalation_statuses_id_seq'::regclass); - - --- --- Name: incident_management_oncall_participants id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_oncall_participants ALTER COLUMN id SET DEFAULT nextval('public.incident_management_oncall_participants_id_seq'::regclass); - - --- --- Name: incident_management_oncall_rotations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_oncall_rotations ALTER COLUMN id SET DEFAULT nextval('public.incident_management_oncall_rotations_id_seq'::regclass); - - --- --- Name: incident_management_oncall_schedules id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_oncall_schedules ALTER COLUMN id SET DEFAULT nextval('public.incident_management_oncall_schedules_id_seq'::regclass); - - --- --- Name: incident_management_oncall_shifts id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_oncall_shifts ALTER COLUMN id SET DEFAULT nextval('public.incident_management_oncall_shifts_id_seq'::regclass); - - --- --- Name: incident_management_pending_alert_escalations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_pending_alert_escalations ALTER COLUMN id SET DEFAULT nextval('public.incident_management_pending_alert_escalations_id_seq'::regclass); - - --- --- Name: incident_management_pending_issue_escalations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_pending_issue_escalations ALTER COLUMN id SET DEFAULT nextval('public.incident_management_pending_issue_escalations_id_seq'::regclass); - - --- --- Name: incident_management_timeline_event_tag_links id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_timeline_event_tag_links ALTER COLUMN id SET DEFAULT nextval('public.incident_management_timeline_event_tag_links_id_seq'::regclass); - - --- --- Name: incident_management_timeline_event_tags id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_timeline_event_tags ALTER COLUMN id SET DEFAULT nextval('public.incident_management_timeline_event_tags_id_seq'::regclass); - - --- --- Name: incident_management_timeline_events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_timeline_events ALTER COLUMN id SET DEFAULT nextval('public.incident_management_timeline_events_id_seq'::regclass); - - --- --- Name: index_statuses id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.index_statuses ALTER COLUMN id SET DEFAULT nextval('public.index_statuses_id_seq'::regclass); - - --- --- Name: insights id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.insights ALTER COLUMN id SET DEFAULT nextval('public.insights_id_seq'::regclass); - - --- --- Name: instance_audit_events_streaming_headers id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.instance_audit_events_streaming_headers ALTER COLUMN id SET DEFAULT nextval('public.instance_audit_events_streaming_headers_id_seq'::regclass); - - --- --- Name: integrations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.integrations ALTER COLUMN id SET DEFAULT nextval('public.integrations_id_seq'::regclass); - - --- --- Name: internal_ids id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.internal_ids ALTER COLUMN id SET DEFAULT nextval('public.internal_ids_id_seq'::regclass); - - --- --- Name: ip_restrictions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ip_restrictions ALTER COLUMN id SET DEFAULT nextval('public.ip_restrictions_id_seq'::regclass); - - --- --- Name: issuable_metric_images id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issuable_metric_images ALTER COLUMN id SET DEFAULT nextval('public.issuable_metric_images_id_seq'::regclass); - - --- --- Name: issuable_resource_links id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issuable_resource_links ALTER COLUMN id SET DEFAULT nextval('public.issuable_resource_links_id_seq'::regclass); - - --- --- Name: issuable_severities id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issuable_severities ALTER COLUMN id SET DEFAULT nextval('public.issuable_severities_id_seq'::regclass); - - --- --- Name: issuable_slas id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issuable_slas ALTER COLUMN id SET DEFAULT nextval('public.issuable_slas_id_seq'::regclass); - - --- --- Name: issue_assignment_events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issue_assignment_events ALTER COLUMN id SET DEFAULT nextval('public.issue_assignment_events_id_seq'::regclass); - - --- --- Name: issue_customer_relations_contacts id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issue_customer_relations_contacts ALTER COLUMN id SET DEFAULT nextval('public.issue_customer_relations_contacts_id_seq'::regclass); - - --- --- Name: issue_email_participants id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issue_email_participants ALTER COLUMN id SET DEFAULT nextval('public.issue_email_participants_id_seq'::regclass); - - --- --- Name: issue_emails id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issue_emails ALTER COLUMN id SET DEFAULT nextval('public.issue_emails_id_seq'::regclass); - - --- --- Name: issue_links id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issue_links ALTER COLUMN id SET DEFAULT nextval('public.issue_links_id_seq'::regclass); - - --- --- Name: issue_metrics id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issue_metrics ALTER COLUMN id SET DEFAULT nextval('public.issue_metrics_id_seq'::regclass); - - --- --- Name: issue_tracker_data id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issue_tracker_data ALTER COLUMN id SET DEFAULT nextval('public.issue_tracker_data_id_seq'::regclass); - - --- --- Name: issue_user_mentions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issue_user_mentions ALTER COLUMN id SET DEFAULT nextval('public.issue_user_mentions_id_seq'::regclass); - - --- --- Name: issues id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issues ALTER COLUMN id SET DEFAULT nextval('public.issues_id_seq'::regclass); - - --- --- Name: iterations_cadences id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.iterations_cadences ALTER COLUMN id SET DEFAULT nextval('public.iterations_cadences_id_seq'::regclass); - - --- --- Name: jira_connect_installations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.jira_connect_installations ALTER COLUMN id SET DEFAULT nextval('public.jira_connect_installations_id_seq'::regclass); - - --- --- Name: jira_connect_subscriptions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.jira_connect_subscriptions ALTER COLUMN id SET DEFAULT nextval('public.jira_connect_subscriptions_id_seq'::regclass); - - --- --- Name: jira_imports id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.jira_imports ALTER COLUMN id SET DEFAULT nextval('public.jira_imports_id_seq'::regclass); - - --- --- Name: jira_tracker_data id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.jira_tracker_data ALTER COLUMN id SET DEFAULT nextval('public.jira_tracker_data_id_seq'::regclass); - - --- --- Name: keys id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.keys ALTER COLUMN id SET DEFAULT nextval('public.keys_id_seq'::regclass); - - --- --- Name: label_links id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.label_links ALTER COLUMN id SET DEFAULT nextval('public.label_links_id_seq'::regclass); - - --- --- Name: label_priorities id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.label_priorities ALTER COLUMN id SET DEFAULT nextval('public.label_priorities_id_seq'::regclass); - - --- --- Name: labels id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.labels ALTER COLUMN id SET DEFAULT nextval('public.labels_id_seq'::regclass); - - --- --- Name: ldap_group_links id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ldap_group_links ALTER COLUMN id SET DEFAULT nextval('public.ldap_group_links_id_seq'::regclass); - - --- --- Name: lfs_file_locks id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.lfs_file_locks ALTER COLUMN id SET DEFAULT nextval('public.lfs_file_locks_id_seq'::regclass); - - --- --- Name: lfs_object_states lfs_object_id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.lfs_object_states ALTER COLUMN lfs_object_id SET DEFAULT nextval('public.lfs_object_states_lfs_object_id_seq'::regclass); - - --- --- Name: lfs_objects id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.lfs_objects ALTER COLUMN id SET DEFAULT nextval('public.lfs_objects_id_seq'::regclass); - - --- --- Name: lfs_objects_projects id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.lfs_objects_projects ALTER COLUMN id SET DEFAULT nextval('public.lfs_objects_projects_id_seq'::regclass); - - --- --- Name: licenses id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.licenses ALTER COLUMN id SET DEFAULT nextval('public.licenses_id_seq'::regclass); - - --- --- Name: list_user_preferences id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.list_user_preferences ALTER COLUMN id SET DEFAULT nextval('public.list_user_preferences_id_seq'::regclass); - - --- --- Name: lists id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.lists ALTER COLUMN id SET DEFAULT nextval('public.lists_id_seq'::regclass); - - --- --- Name: loose_foreign_keys_deleted_records id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.loose_foreign_keys_deleted_records ALTER COLUMN id SET DEFAULT nextval('public.loose_foreign_keys_deleted_records_id_seq'::regclass); - - --- --- Name: member_approvals id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.member_approvals ALTER COLUMN id SET DEFAULT nextval('public.member_approvals_id_seq'::regclass); - - --- --- Name: member_roles id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.member_roles ALTER COLUMN id SET DEFAULT nextval('public.member_roles_id_seq'::regclass); - - --- --- Name: members id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.members ALTER COLUMN id SET DEFAULT nextval('public.members_id_seq'::regclass); - - --- --- Name: merge_request_assignees id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_assignees ALTER COLUMN id SET DEFAULT nextval('public.merge_request_assignees_id_seq'::regclass); - - --- --- Name: merge_request_assignment_events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_assignment_events ALTER COLUMN id SET DEFAULT nextval('public.merge_request_assignment_events_id_seq'::regclass); - - --- --- Name: merge_request_blocks id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_blocks ALTER COLUMN id SET DEFAULT nextval('public.merge_request_blocks_id_seq'::regclass); - - --- --- Name: merge_request_cleanup_schedules merge_request_id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_cleanup_schedules ALTER COLUMN merge_request_id SET DEFAULT nextval('public.merge_request_cleanup_schedules_merge_request_id_seq'::regclass); - - --- --- Name: merge_request_context_commits id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_context_commits ALTER COLUMN id SET DEFAULT nextval('public.merge_request_context_commits_id_seq'::regclass); - - --- --- Name: merge_request_diff_commit_users id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_diff_commit_users ALTER COLUMN id SET DEFAULT nextval('public.merge_request_diff_commit_users_id_seq'::regclass); - - --- --- Name: merge_request_diff_details merge_request_diff_id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_diff_details ALTER COLUMN merge_request_diff_id SET DEFAULT nextval('public.merge_request_diff_details_merge_request_diff_id_seq'::regclass); - - --- --- Name: merge_request_diffs id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_diffs ALTER COLUMN id SET DEFAULT nextval('public.merge_request_diffs_id_seq'::regclass); - - --- --- Name: merge_request_metrics id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_metrics ALTER COLUMN id SET DEFAULT nextval('public.merge_request_metrics_id_seq'::regclass); - - --- --- Name: merge_request_predictions merge_request_id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_predictions ALTER COLUMN merge_request_id SET DEFAULT nextval('public.merge_request_predictions_merge_request_id_seq'::regclass); - - --- --- Name: merge_request_requested_changes id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_requested_changes ALTER COLUMN id SET DEFAULT nextval('public.merge_request_requested_changes_id_seq'::regclass); - - --- --- Name: merge_request_reviewers id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_reviewers ALTER COLUMN id SET DEFAULT nextval('public.merge_request_reviewers_id_seq'::regclass); - - --- --- Name: merge_request_user_mentions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_user_mentions ALTER COLUMN id SET DEFAULT nextval('public.merge_request_user_mentions_id_seq'::regclass); - - --- --- Name: merge_requests id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_requests ALTER COLUMN id SET DEFAULT nextval('public.merge_requests_id_seq'::regclass); - - --- --- Name: merge_requests_closing_issues id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_requests_closing_issues ALTER COLUMN id SET DEFAULT nextval('public.merge_requests_closing_issues_id_seq'::regclass); - - --- --- Name: merge_requests_compliance_violations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_requests_compliance_violations ALTER COLUMN id SET DEFAULT nextval('public.merge_requests_compliance_violations_id_seq'::regclass); - - --- --- Name: merge_trains id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_trains ALTER COLUMN id SET DEFAULT nextval('public.merge_trains_id_seq'::regclass); - - --- --- Name: metrics_dashboard_annotations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.metrics_dashboard_annotations ALTER COLUMN id SET DEFAULT nextval('public.metrics_dashboard_annotations_id_seq'::regclass); - - --- --- Name: metrics_users_starred_dashboards id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.metrics_users_starred_dashboards ALTER COLUMN id SET DEFAULT nextval('public.metrics_users_starred_dashboards_id_seq'::regclass); - - --- --- Name: milestones id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.milestones ALTER COLUMN id SET DEFAULT nextval('public.milestones_id_seq'::regclass); - - --- --- Name: ml_candidate_metadata id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_candidate_metadata ALTER COLUMN id SET DEFAULT nextval('public.ml_candidate_metadata_id_seq'::regclass); - - --- --- Name: ml_candidate_metrics id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_candidate_metrics ALTER COLUMN id SET DEFAULT nextval('public.ml_candidate_metrics_id_seq'::regclass); - - --- --- Name: ml_candidate_params id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_candidate_params ALTER COLUMN id SET DEFAULT nextval('public.ml_candidate_params_id_seq'::regclass); - - --- --- Name: ml_candidates id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_candidates ALTER COLUMN id SET DEFAULT nextval('public.ml_candidates_id_seq'::regclass); - - --- --- Name: ml_experiment_metadata id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_experiment_metadata ALTER COLUMN id SET DEFAULT nextval('public.ml_experiment_metadata_id_seq'::regclass); - - --- --- Name: ml_experiments id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_experiments ALTER COLUMN id SET DEFAULT nextval('public.ml_experiments_id_seq'::regclass); - - --- --- Name: ml_model_metadata id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_model_metadata ALTER COLUMN id SET DEFAULT nextval('public.ml_model_metadata_id_seq'::regclass); - - --- --- Name: ml_model_version_metadata id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_model_version_metadata ALTER COLUMN id SET DEFAULT nextval('public.ml_model_version_metadata_id_seq'::regclass); - - --- --- Name: ml_model_versions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_model_versions ALTER COLUMN id SET DEFAULT nextval('public.ml_model_versions_id_seq'::regclass); - - --- --- Name: ml_models id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_models ALTER COLUMN id SET DEFAULT nextval('public.ml_models_id_seq'::regclass); - - --- --- Name: namespace_admin_notes id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_admin_notes ALTER COLUMN id SET DEFAULT nextval('public.namespace_admin_notes_id_seq'::regclass); - - --- --- Name: namespace_bans id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_bans ALTER COLUMN id SET DEFAULT nextval('public.namespace_bans_id_seq'::regclass); - - --- --- Name: namespace_commit_emails id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_commit_emails ALTER COLUMN id SET DEFAULT nextval('public.namespace_commit_emails_id_seq'::regclass); - - --- --- Name: namespace_import_users id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_import_users ALTER COLUMN id SET DEFAULT nextval('public.namespace_import_users_id_seq'::regclass); - - --- --- Name: namespace_statistics id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_statistics ALTER COLUMN id SET DEFAULT nextval('public.namespace_statistics_id_seq'::regclass); - - --- --- Name: namespaces id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespaces ALTER COLUMN id SET DEFAULT nextval('public.namespaces_id_seq'::regclass); - - --- --- Name: namespaces_storage_limit_exclusions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespaces_storage_limit_exclusions ALTER COLUMN id SET DEFAULT nextval('public.namespaces_storage_limit_exclusions_id_seq'::regclass); - - --- --- Name: namespaces_sync_events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespaces_sync_events ALTER COLUMN id SET DEFAULT nextval('public.namespaces_sync_events_id_seq'::regclass); - - --- --- Name: note_diff_files id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.note_diff_files ALTER COLUMN id SET DEFAULT nextval('public.note_diff_files_id_seq'::regclass); - - --- --- Name: note_metadata note_id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.note_metadata ALTER COLUMN note_id SET DEFAULT nextval('public.note_metadata_note_id_seq'::regclass); - - --- --- Name: notes id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.notes ALTER COLUMN id SET DEFAULT nextval('public.notes_id_seq'::regclass); - - --- --- Name: notification_settings id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.notification_settings ALTER COLUMN id SET DEFAULT nextval('public.notification_settings_id_seq'::regclass); - - --- --- Name: oauth_access_grants id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.oauth_access_grants ALTER COLUMN id SET DEFAULT nextval('public.oauth_access_grants_id_seq'::regclass); - - --- --- Name: oauth_access_tokens id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.oauth_access_tokens ALTER COLUMN id SET DEFAULT nextval('public.oauth_access_tokens_id_seq'::regclass); - - --- --- Name: oauth_applications id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.oauth_applications ALTER COLUMN id SET DEFAULT nextval('public.oauth_applications_id_seq'::regclass); - - --- --- Name: oauth_device_grants id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.oauth_device_grants ALTER COLUMN id SET DEFAULT nextval('public.oauth_device_grants_id_seq'::regclass); - - --- --- Name: oauth_openid_requests id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.oauth_openid_requests ALTER COLUMN id SET DEFAULT nextval('public.oauth_openid_requests_id_seq'::regclass); - - --- --- Name: observability_logs_issues_connections id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.observability_logs_issues_connections ALTER COLUMN id SET DEFAULT nextval('public.observability_logs_issues_connections_id_seq'::regclass); - - --- --- Name: observability_metrics_issues_connections id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.observability_metrics_issues_connections ALTER COLUMN id SET DEFAULT nextval('public.observability_metrics_issues_connections_id_seq'::regclass); - - --- --- Name: observability_traces_issues_connections id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.observability_traces_issues_connections ALTER COLUMN id SET DEFAULT nextval('public.observability_traces_issues_connections_id_seq'::regclass); - - --- --- Name: onboarding_progresses id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.onboarding_progresses ALTER COLUMN id SET DEFAULT nextval('public.onboarding_progresses_id_seq'::regclass); - - --- --- Name: operations_feature_flag_scopes id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.operations_feature_flag_scopes ALTER COLUMN id SET DEFAULT nextval('public.operations_feature_flag_scopes_id_seq'::regclass); - - --- --- Name: operations_feature_flags id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.operations_feature_flags ALTER COLUMN id SET DEFAULT nextval('public.operations_feature_flags_id_seq'::regclass); - - --- --- Name: operations_feature_flags_clients id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.operations_feature_flags_clients ALTER COLUMN id SET DEFAULT nextval('public.operations_feature_flags_clients_id_seq'::regclass); - - --- --- Name: operations_feature_flags_issues id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.operations_feature_flags_issues ALTER COLUMN id SET DEFAULT nextval('public.operations_feature_flags_issues_id_seq'::regclass); - - --- --- Name: operations_scopes id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.operations_scopes ALTER COLUMN id SET DEFAULT nextval('public.operations_scopes_id_seq'::regclass); - - --- --- Name: operations_strategies id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.operations_strategies ALTER COLUMN id SET DEFAULT nextval('public.operations_strategies_id_seq'::regclass); - - --- --- Name: operations_strategies_user_lists id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.operations_strategies_user_lists ALTER COLUMN id SET DEFAULT nextval('public.operations_strategies_user_lists_id_seq'::regclass); - - --- --- Name: operations_user_lists id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.operations_user_lists ALTER COLUMN id SET DEFAULT nextval('public.operations_user_lists_id_seq'::regclass); - - --- --- Name: organization_users id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.organization_users ALTER COLUMN id SET DEFAULT nextval('public.organization_users_id_seq'::regclass); - - --- --- Name: organizations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.organizations ALTER COLUMN id SET DEFAULT nextval('public.organizations_id_seq'::regclass); - - --- --- Name: p_batched_git_ref_updates_deletions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_batched_git_ref_updates_deletions ALTER COLUMN id SET DEFAULT nextval('public.p_batched_git_ref_updates_deletions_id_seq'::regclass); - - --- --- Name: p_catalog_resource_component_usages id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_catalog_resource_component_usages ALTER COLUMN id SET DEFAULT nextval('public.p_catalog_resource_component_usages_id_seq'::regclass); - - --- --- Name: p_catalog_resource_sync_events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_catalog_resource_sync_events ALTER COLUMN id SET DEFAULT nextval('public.p_catalog_resource_sync_events_id_seq'::regclass); - - --- --- Name: p_ci_builds_metadata id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_ci_builds_metadata ALTER COLUMN id SET DEFAULT nextval('public.ci_builds_metadata_id_seq'::regclass); - - --- --- Name: p_ci_pipelines id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_ci_pipelines ALTER COLUMN id SET DEFAULT nextval('public.ci_pipelines_id_seq'::regclass); - - --- --- Name: packages_build_infos id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_build_infos ALTER COLUMN id SET DEFAULT nextval('public.packages_build_infos_id_seq'::regclass); - - --- --- Name: packages_composer_cache_files id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_composer_cache_files ALTER COLUMN id SET DEFAULT nextval('public.packages_composer_cache_files_id_seq'::regclass); - - --- --- Name: packages_conan_file_metadata id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_conan_file_metadata ALTER COLUMN id SET DEFAULT nextval('public.packages_conan_file_metadata_id_seq'::regclass); - - --- --- Name: packages_conan_metadata id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_conan_metadata ALTER COLUMN id SET DEFAULT nextval('public.packages_conan_metadata_id_seq'::regclass); - - --- --- Name: packages_debian_group_architectures id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_group_architectures ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_group_architectures_id_seq'::regclass); - - --- --- Name: packages_debian_group_component_files id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_group_component_files ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_group_component_files_id_seq'::regclass); - - --- --- Name: packages_debian_group_components id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_group_components ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_group_components_id_seq'::regclass); - - --- --- Name: packages_debian_group_distribution_keys id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_group_distribution_keys ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_group_distribution_keys_id_seq'::regclass); - - --- --- Name: packages_debian_group_distributions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_group_distributions ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_group_distributions_id_seq'::regclass); - - --- --- Name: packages_debian_project_architectures id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_project_architectures ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_project_architectures_id_seq'::regclass); - - --- --- Name: packages_debian_project_component_files id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_project_component_files ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_project_component_files_id_seq'::regclass); - - --- --- Name: packages_debian_project_components id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_project_components ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_project_components_id_seq'::regclass); - - --- --- Name: packages_debian_project_distribution_keys id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_project_distribution_keys ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_project_distribution_keys_id_seq'::regclass); - - --- --- Name: packages_debian_project_distributions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_project_distributions ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_project_distributions_id_seq'::regclass); - - --- --- Name: packages_debian_publications id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_publications ALTER COLUMN id SET DEFAULT nextval('public.packages_debian_publications_id_seq'::regclass); - - --- --- Name: packages_dependencies id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_dependencies ALTER COLUMN id SET DEFAULT nextval('public.packages_dependencies_id_seq'::regclass); - - --- --- Name: packages_dependency_links id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_dependency_links ALTER COLUMN id SET DEFAULT nextval('public.packages_dependency_links_id_seq'::regclass); - - --- --- Name: packages_maven_metadata id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_maven_metadata ALTER COLUMN id SET DEFAULT nextval('public.packages_maven_metadata_id_seq'::regclass); - - --- --- Name: packages_npm_metadata_caches id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_npm_metadata_caches ALTER COLUMN id SET DEFAULT nextval('public.packages_npm_metadata_caches_id_seq'::regclass); - - --- --- Name: packages_nuget_symbols id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_nuget_symbols ALTER COLUMN id SET DEFAULT nextval('public.packages_nuget_symbols_id_seq'::regclass); - - --- --- Name: packages_package_file_build_infos id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_package_file_build_infos ALTER COLUMN id SET DEFAULT nextval('public.packages_package_file_build_infos_id_seq'::regclass); - - --- --- Name: packages_package_files id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_package_files ALTER COLUMN id SET DEFAULT nextval('public.packages_package_files_id_seq'::regclass); - - --- --- Name: packages_packages id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_packages ALTER COLUMN id SET DEFAULT nextval('public.packages_packages_id_seq'::regclass); - - --- --- Name: packages_protection_rules id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_protection_rules ALTER COLUMN id SET DEFAULT nextval('public.packages_protection_rules_id_seq'::regclass); - - --- --- Name: packages_rpm_repository_files id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_rpm_repository_files ALTER COLUMN id SET DEFAULT nextval('public.packages_rpm_repository_files_id_seq'::regclass); - - --- --- Name: packages_tags id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_tags ALTER COLUMN id SET DEFAULT nextval('public.packages_tags_id_seq'::regclass); - - --- --- Name: pages_deployment_states pages_deployment_id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pages_deployment_states ALTER COLUMN pages_deployment_id SET DEFAULT nextval('public.pages_deployment_states_pages_deployment_id_seq'::regclass); - - --- --- Name: pages_deployments id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pages_deployments ALTER COLUMN id SET DEFAULT nextval('public.pages_deployments_id_seq'::regclass); - - --- --- Name: pages_domain_acme_orders id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pages_domain_acme_orders ALTER COLUMN id SET DEFAULT nextval('public.pages_domain_acme_orders_id_seq'::regclass); - - --- --- Name: pages_domains id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pages_domains ALTER COLUMN id SET DEFAULT nextval('public.pages_domains_id_seq'::regclass); - - --- --- Name: path_locks id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.path_locks ALTER COLUMN id SET DEFAULT nextval('public.path_locks_id_seq'::regclass); - - --- --- Name: personal_access_token_last_used_ips id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.personal_access_token_last_used_ips ALTER COLUMN id SET DEFAULT nextval('public.personal_access_token_last_used_ips_id_seq'::regclass); - - --- --- Name: personal_access_tokens id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.personal_access_tokens ALTER COLUMN id SET DEFAULT nextval('public.personal_access_tokens_id_seq'::regclass); - - --- --- Name: plan_limits id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.plan_limits ALTER COLUMN id SET DEFAULT nextval('public.plan_limits_id_seq'::regclass); - - --- --- Name: plans id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.plans ALTER COLUMN id SET DEFAULT nextval('public.plans_id_seq'::regclass); - - --- --- Name: pm_advisories id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pm_advisories ALTER COLUMN id SET DEFAULT nextval('public.pm_advisories_id_seq'::regclass); - - --- --- Name: pm_affected_packages id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pm_affected_packages ALTER COLUMN id SET DEFAULT nextval('public.pm_affected_packages_id_seq'::regclass); - - --- --- Name: pm_checkpoints id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pm_checkpoints ALTER COLUMN id SET DEFAULT nextval('public.pm_checkpoints_id_seq'::regclass); - - --- --- Name: pm_epss id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pm_epss ALTER COLUMN id SET DEFAULT nextval('public.pm_epss_id_seq'::regclass); - - --- --- Name: pm_licenses id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pm_licenses ALTER COLUMN id SET DEFAULT nextval('public.pm_licenses_id_seq'::regclass); - - --- --- Name: pm_package_version_licenses id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pm_package_version_licenses ALTER COLUMN id SET DEFAULT nextval('public.pm_package_version_licenses_id_seq'::regclass); - - --- --- Name: pm_package_versions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pm_package_versions ALTER COLUMN id SET DEFAULT nextval('public.pm_package_versions_id_seq'::regclass); - - --- --- Name: pm_packages id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pm_packages ALTER COLUMN id SET DEFAULT nextval('public.pm_packages_id_seq'::regclass); - - --- --- Name: pool_repositories id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pool_repositories ALTER COLUMN id SET DEFAULT nextval('public.pool_repositories_id_seq'::regclass); - - --- --- Name: postgres_async_foreign_key_validations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.postgres_async_foreign_key_validations ALTER COLUMN id SET DEFAULT nextval('public.postgres_async_foreign_key_validations_id_seq'::regclass); - - --- --- Name: postgres_async_indexes id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.postgres_async_indexes ALTER COLUMN id SET DEFAULT nextval('public.postgres_async_indexes_id_seq'::regclass); - - --- --- Name: postgres_reindex_actions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.postgres_reindex_actions ALTER COLUMN id SET DEFAULT nextval('public.postgres_reindex_actions_id_seq'::regclass); - - --- --- Name: postgres_reindex_queued_actions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.postgres_reindex_queued_actions ALTER COLUMN id SET DEFAULT nextval('public.postgres_reindex_queued_actions_id_seq'::regclass); - - --- --- Name: programming_languages id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.programming_languages ALTER COLUMN id SET DEFAULT nextval('public.programming_languages_id_seq'::regclass); - - --- --- Name: project_aliases id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_aliases ALTER COLUMN id SET DEFAULT nextval('public.project_aliases_id_seq'::regclass); - - --- --- Name: project_auto_devops id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_auto_devops ALTER COLUMN id SET DEFAULT nextval('public.project_auto_devops_id_seq'::regclass); - - --- --- Name: project_build_artifacts_size_refreshes id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_build_artifacts_size_refreshes ALTER COLUMN id SET DEFAULT nextval('public.project_build_artifacts_size_refreshes_id_seq'::regclass); - - --- --- Name: project_ci_cd_settings id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_ci_cd_settings ALTER COLUMN id SET DEFAULT nextval('public.project_ci_cd_settings_id_seq'::regclass); - - --- --- Name: project_ci_feature_usages id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_ci_feature_usages ALTER COLUMN id SET DEFAULT nextval('public.project_ci_feature_usages_id_seq'::regclass); - - --- --- Name: project_compliance_framework_settings project_id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_compliance_framework_settings ALTER COLUMN project_id SET DEFAULT nextval('public.project_compliance_framework_settings_project_id_seq'::regclass); - - --- --- Name: project_compliance_framework_settings id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_compliance_framework_settings ALTER COLUMN id SET DEFAULT nextval('public.project_compliance_framework_settings_id_seq'::regclass); - - --- --- Name: project_compliance_standards_adherence id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_compliance_standards_adherence ALTER COLUMN id SET DEFAULT nextval('public.project_compliance_standards_adherence_id_seq'::regclass); - - --- --- Name: project_custom_attributes id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_custom_attributes ALTER COLUMN id SET DEFAULT nextval('public.project_custom_attributes_id_seq'::regclass); - - --- --- Name: project_daily_statistics id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_daily_statistics ALTER COLUMN id SET DEFAULT nextval('public.project_daily_statistics_id_seq'::regclass); - - --- --- Name: project_data_transfers id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_data_transfers ALTER COLUMN id SET DEFAULT nextval('public.project_data_transfers_id_seq'::regclass); - - --- --- Name: project_deploy_tokens id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_deploy_tokens ALTER COLUMN id SET DEFAULT nextval('public.project_deploy_tokens_id_seq'::regclass); - - --- --- Name: project_export_jobs id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_export_jobs ALTER COLUMN id SET DEFAULT nextval('public.project_export_jobs_id_seq'::regclass); - - --- --- Name: project_features id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_features ALTER COLUMN id SET DEFAULT nextval('public.project_features_id_seq'::regclass); - - --- --- Name: project_group_links id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_group_links ALTER COLUMN id SET DEFAULT nextval('public.project_group_links_id_seq'::regclass); - - --- --- Name: project_import_data id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_import_data ALTER COLUMN id SET DEFAULT nextval('public.project_import_data_id_seq'::regclass); - - --- --- Name: project_incident_management_settings project_id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_incident_management_settings ALTER COLUMN project_id SET DEFAULT nextval('public.project_incident_management_settings_project_id_seq'::regclass); - - --- --- Name: project_mirror_data id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_mirror_data ALTER COLUMN id SET DEFAULT nextval('public.project_mirror_data_id_seq'::regclass); - - --- --- Name: project_relation_export_uploads id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_relation_export_uploads ALTER COLUMN id SET DEFAULT nextval('public.project_relation_export_uploads_id_seq'::regclass); - - --- --- Name: project_relation_exports id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_relation_exports ALTER COLUMN id SET DEFAULT nextval('public.project_relation_exports_id_seq'::regclass); - - --- --- Name: project_repositories id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_repositories ALTER COLUMN id SET DEFAULT nextval('public.project_repositories_id_seq'::regclass); - - --- --- Name: project_repository_storage_moves id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_repository_storage_moves ALTER COLUMN id SET DEFAULT nextval('public.project_repository_storage_moves_id_seq'::regclass); - - --- --- Name: project_saved_replies id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_saved_replies ALTER COLUMN id SET DEFAULT nextval('public.project_saved_replies_id_seq'::regclass); - - --- --- Name: project_secrets_managers id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_secrets_managers ALTER COLUMN id SET DEFAULT nextval('public.project_secrets_managers_id_seq'::regclass); - - --- --- Name: project_security_settings project_id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_security_settings ALTER COLUMN project_id SET DEFAULT nextval('public.project_security_settings_project_id_seq'::regclass); - - --- --- Name: project_states id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_states ALTER COLUMN id SET DEFAULT nextval('public.project_states_id_seq'::regclass); - - --- --- Name: project_statistics id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_statistics ALTER COLUMN id SET DEFAULT nextval('public.project_statistics_id_seq'::regclass); - - --- --- Name: project_topics id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_topics ALTER COLUMN id SET DEFAULT nextval('public.project_topics_id_seq'::regclass); - - --- --- Name: project_wiki_repositories id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_wiki_repositories ALTER COLUMN id SET DEFAULT nextval('public.project_wiki_repositories_id_seq'::regclass); - - --- --- Name: projects id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.projects ALTER COLUMN id SET DEFAULT nextval('public.projects_id_seq'::regclass); - - --- --- Name: projects_sync_events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.projects_sync_events ALTER COLUMN id SET DEFAULT nextval('public.projects_sync_events_id_seq'::regclass); - - --- --- Name: projects_visits id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.projects_visits ALTER COLUMN id SET DEFAULT nextval('public.projects_visits_id_seq'::regclass); - - --- --- Name: prometheus_alert_events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.prometheus_alert_events ALTER COLUMN id SET DEFAULT nextval('public.prometheus_alert_events_id_seq'::regclass); - - --- --- Name: prometheus_alerts id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.prometheus_alerts ALTER COLUMN id SET DEFAULT nextval('public.prometheus_alerts_id_seq'::regclass); - - --- --- Name: prometheus_metrics id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.prometheus_metrics ALTER COLUMN id SET DEFAULT nextval('public.prometheus_metrics_id_seq'::regclass); - - --- --- Name: protected_branch_merge_access_levels id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.protected_branch_merge_access_levels ALTER COLUMN id SET DEFAULT nextval('public.protected_branch_merge_access_levels_id_seq'::regclass); - - --- --- Name: protected_branch_push_access_levels id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.protected_branch_push_access_levels ALTER COLUMN id SET DEFAULT nextval('public.protected_branch_push_access_levels_id_seq'::regclass); - - --- --- Name: protected_branch_unprotect_access_levels id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.protected_branch_unprotect_access_levels ALTER COLUMN id SET DEFAULT nextval('public.protected_branch_unprotect_access_levels_id_seq'::regclass); - - --- --- Name: protected_branches id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.protected_branches ALTER COLUMN id SET DEFAULT nextval('public.protected_branches_id_seq'::regclass); - - --- --- Name: protected_environment_approval_rules id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.protected_environment_approval_rules ALTER COLUMN id SET DEFAULT nextval('public.protected_environment_approval_rules_id_seq'::regclass); - - --- --- Name: protected_environment_deploy_access_levels id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.protected_environment_deploy_access_levels ALTER COLUMN id SET DEFAULT nextval('public.protected_environment_deploy_access_levels_id_seq'::regclass); - - --- --- Name: protected_environments id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.protected_environments ALTER COLUMN id SET DEFAULT nextval('public.protected_environments_id_seq'::regclass); - - --- --- Name: protected_tag_create_access_levels id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.protected_tag_create_access_levels ALTER COLUMN id SET DEFAULT nextval('public.protected_tag_create_access_levels_id_seq'::regclass); - - --- --- Name: protected_tags id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.protected_tags ALTER COLUMN id SET DEFAULT nextval('public.protected_tags_id_seq'::regclass); - - --- --- Name: push_rules id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.push_rules ALTER COLUMN id SET DEFAULT nextval('public.push_rules_id_seq'::regclass); - - --- --- Name: raw_usage_data id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.raw_usage_data ALTER COLUMN id SET DEFAULT nextval('public.raw_usage_data_id_seq'::regclass); - - --- --- Name: redirect_routes id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.redirect_routes ALTER COLUMN id SET DEFAULT nextval('public.redirect_routes_id_seq'::regclass); - - --- --- Name: related_epic_links id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.related_epic_links ALTER COLUMN id SET DEFAULT nextval('public.related_epic_links_id_seq'::regclass); - - --- --- Name: relation_import_trackers id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.relation_import_trackers ALTER COLUMN id SET DEFAULT nextval('public.relation_import_trackers_id_seq'::regclass); - - --- --- Name: release_links id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.release_links ALTER COLUMN id SET DEFAULT nextval('public.release_links_id_seq'::regclass); - - --- --- Name: releases id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.releases ALTER COLUMN id SET DEFAULT nextval('public.releases_id_seq'::regclass); - - --- --- Name: remote_development_agent_configs id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.remote_development_agent_configs ALTER COLUMN id SET DEFAULT nextval('public.remote_development_agent_configs_id_seq'::regclass); - - --- --- Name: remote_development_namespace_cluster_agent_mappings id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.remote_development_namespace_cluster_agent_mappings ALTER COLUMN id SET DEFAULT nextval('public.remote_development_namespace_cluster_agent_mappings_id_seq'::regclass); - - --- --- Name: remote_mirrors id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.remote_mirrors ALTER COLUMN id SET DEFAULT nextval('public.remote_mirrors_id_seq'::regclass); - - --- --- Name: required_code_owners_sections id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.required_code_owners_sections ALTER COLUMN id SET DEFAULT nextval('public.required_code_owners_sections_id_seq'::regclass); - - --- --- Name: requirements id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.requirements ALTER COLUMN id SET DEFAULT nextval('public.requirements_id_seq'::regclass); - - --- --- Name: requirements_management_test_reports id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.requirements_management_test_reports ALTER COLUMN id SET DEFAULT nextval('public.requirements_management_test_reports_id_seq'::regclass); - - --- --- Name: resource_iteration_events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.resource_iteration_events ALTER COLUMN id SET DEFAULT nextval('public.resource_iteration_events_id_seq'::regclass); - - --- --- Name: resource_label_events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.resource_label_events ALTER COLUMN id SET DEFAULT nextval('public.resource_label_events_id_seq'::regclass); - - --- --- Name: resource_link_events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.resource_link_events ALTER COLUMN id SET DEFAULT nextval('public.resource_link_events_id_seq'::regclass); - - --- --- Name: resource_milestone_events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.resource_milestone_events ALTER COLUMN id SET DEFAULT nextval('public.resource_milestone_events_id_seq'::regclass); - - --- --- Name: resource_state_events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.resource_state_events ALTER COLUMN id SET DEFAULT nextval('public.resource_state_events_id_seq'::regclass); - - --- --- Name: resource_weight_events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.resource_weight_events ALTER COLUMN id SET DEFAULT nextval('public.resource_weight_events_id_seq'::regclass); - - --- --- Name: reviews id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.reviews ALTER COLUMN id SET DEFAULT nextval('public.reviews_id_seq'::regclass); - - --- --- Name: routes id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.routes ALTER COLUMN id SET DEFAULT nextval('public.routes_id_seq'::regclass); - - --- --- Name: saml_group_links id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.saml_group_links ALTER COLUMN id SET DEFAULT nextval('public.saml_group_links_id_seq'::regclass); - - --- --- Name: saml_providers id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.saml_providers ALTER COLUMN id SET DEFAULT nextval('public.saml_providers_id_seq'::regclass); - - --- --- Name: saved_replies id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.saved_replies ALTER COLUMN id SET DEFAULT nextval('public.saved_replies_id_seq'::regclass); - - --- --- Name: sbom_component_versions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sbom_component_versions ALTER COLUMN id SET DEFAULT nextval('public.sbom_component_versions_id_seq'::regclass); - - --- --- Name: sbom_components id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sbom_components ALTER COLUMN id SET DEFAULT nextval('public.sbom_components_id_seq'::regclass); - - --- --- Name: sbom_occurrences id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sbom_occurrences ALTER COLUMN id SET DEFAULT nextval('public.sbom_occurrences_id_seq'::regclass); - - --- --- Name: sbom_occurrences_vulnerabilities id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sbom_occurrences_vulnerabilities ALTER COLUMN id SET DEFAULT nextval('public.sbom_occurrences_vulnerabilities_id_seq'::regclass); - - --- --- Name: sbom_source_packages id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sbom_source_packages ALTER COLUMN id SET DEFAULT nextval('public.sbom_source_packages_id_seq'::regclass); - - --- --- Name: sbom_sources id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sbom_sources ALTER COLUMN id SET DEFAULT nextval('public.sbom_sources_id_seq'::regclass); - - --- --- Name: scan_execution_policy_rules id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.scan_execution_policy_rules ALTER COLUMN id SET DEFAULT nextval('public.scan_execution_policy_rules_id_seq'::regclass); - - --- --- Name: scan_result_policies id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.scan_result_policies ALTER COLUMN id SET DEFAULT nextval('public.scan_result_policies_id_seq'::regclass); - - --- --- Name: scan_result_policy_violations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.scan_result_policy_violations ALTER COLUMN id SET DEFAULT nextval('public.scan_result_policy_violations_id_seq'::regclass); - - --- --- Name: scim_identities id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.scim_identities ALTER COLUMN id SET DEFAULT nextval('public.scim_identities_id_seq'::regclass); - - --- --- Name: scim_oauth_access_tokens id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.scim_oauth_access_tokens ALTER COLUMN id SET DEFAULT nextval('public.scim_oauth_access_tokens_id_seq'::regclass); - - --- --- Name: search_indices id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.search_indices ALTER COLUMN id SET DEFAULT nextval('public.search_indices_id_seq'::regclass); - - --- --- Name: search_namespace_index_assignments id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.search_namespace_index_assignments ALTER COLUMN id SET DEFAULT nextval('public.search_namespace_index_assignments_id_seq'::regclass); - - --- --- Name: security_findings id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.security_findings ALTER COLUMN id SET DEFAULT nextval('public.security_findings_id_seq'::regclass); - - --- --- Name: security_orchestration_policy_configurations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.security_orchestration_policy_configurations ALTER COLUMN id SET DEFAULT nextval('public.security_orchestration_policy_configurations_id_seq'::regclass); - - --- --- Name: security_orchestration_policy_rule_schedules id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.security_orchestration_policy_rule_schedules ALTER COLUMN id SET DEFAULT nextval('public.security_orchestration_policy_rule_schedules_id_seq'::regclass); - - --- --- Name: security_policies id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.security_policies ALTER COLUMN id SET DEFAULT nextval('public.security_policies_id_seq'::regclass); - - --- --- Name: security_policy_project_links id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.security_policy_project_links ALTER COLUMN id SET DEFAULT nextval('public.security_policy_project_links_id_seq'::regclass); - - --- --- Name: security_policy_requirements id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.security_policy_requirements ALTER COLUMN id SET DEFAULT nextval('public.security_policy_requirements_id_seq'::regclass); - - --- --- Name: security_scans id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.security_scans ALTER COLUMN id SET DEFAULT nextval('public.security_scans_id_seq'::regclass); - - --- --- Name: security_training_providers id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.security_training_providers ALTER COLUMN id SET DEFAULT nextval('public.security_training_providers_id_seq'::regclass); - - --- --- Name: security_trainings id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.security_trainings ALTER COLUMN id SET DEFAULT nextval('public.security_trainings_id_seq'::regclass); - - --- --- Name: self_managed_prometheus_alert_events id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.self_managed_prometheus_alert_events ALTER COLUMN id SET DEFAULT nextval('public.self_managed_prometheus_alert_events_id_seq'::regclass); - - --- --- Name: sent_notifications id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sent_notifications ALTER COLUMN id SET DEFAULT nextval('public.sent_notifications_id_seq'::regclass); - - --- --- Name: sentry_issues id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sentry_issues ALTER COLUMN id SET DEFAULT nextval('public.sentry_issues_id_seq'::regclass); - - --- --- Name: service_access_tokens id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.service_access_tokens ALTER COLUMN id SET DEFAULT nextval('public.service_access_tokens_id_seq'::regclass); - - --- --- Name: shards id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.shards ALTER COLUMN id SET DEFAULT nextval('public.shards_id_seq'::regclass); - - --- --- Name: slack_api_scopes id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.slack_api_scopes ALTER COLUMN id SET DEFAULT nextval('public.slack_api_scopes_id_seq'::regclass); - - --- --- Name: slack_integrations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.slack_integrations ALTER COLUMN id SET DEFAULT nextval('public.slack_integrations_id_seq'::regclass); - - --- --- Name: slack_integrations_scopes id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.slack_integrations_scopes ALTER COLUMN id SET DEFAULT nextval('public.slack_integrations_scopes_id_seq'::regclass); - - --- --- Name: smartcard_identities id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.smartcard_identities ALTER COLUMN id SET DEFAULT nextval('public.smartcard_identities_id_seq'::regclass); - - --- --- Name: snippet_repository_storage_moves id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.snippet_repository_storage_moves ALTER COLUMN id SET DEFAULT nextval('public.snippet_repository_storage_moves_id_seq'::regclass); - - --- --- Name: snippet_user_mentions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.snippet_user_mentions ALTER COLUMN id SET DEFAULT nextval('public.snippet_user_mentions_id_seq'::regclass); - - --- --- Name: snippets id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.snippets ALTER COLUMN id SET DEFAULT nextval('public.snippets_id_seq'::regclass); - - --- --- Name: software_license_policies id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.software_license_policies ALTER COLUMN id SET DEFAULT nextval('public.software_license_policies_id_seq'::regclass); - - --- --- Name: software_licenses id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.software_licenses ALTER COLUMN id SET DEFAULT nextval('public.software_licenses_id_seq'::regclass); - - --- --- Name: spam_logs id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.spam_logs ALTER COLUMN id SET DEFAULT nextval('public.spam_logs_id_seq'::regclass); - - --- --- Name: sprints id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sprints ALTER COLUMN id SET DEFAULT nextval('public.sprints_id_seq'::regclass); - - --- --- Name: ssh_signatures id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ssh_signatures ALTER COLUMN id SET DEFAULT nextval('public.ssh_signatures_id_seq'::regclass); - - --- --- Name: status_check_responses id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.status_check_responses ALTER COLUMN id SET DEFAULT nextval('public.status_check_responses_id_seq'::regclass); - - --- --- Name: status_page_published_incidents id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.status_page_published_incidents ALTER COLUMN id SET DEFAULT nextval('public.status_page_published_incidents_id_seq'::regclass); - - --- --- Name: status_page_settings project_id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.status_page_settings ALTER COLUMN project_id SET DEFAULT nextval('public.status_page_settings_project_id_seq'::regclass); - - --- --- Name: subscription_add_on_purchases id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.subscription_add_on_purchases ALTER COLUMN id SET DEFAULT nextval('public.subscription_add_on_purchases_id_seq'::regclass); - - --- --- Name: subscription_add_ons id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.subscription_add_ons ALTER COLUMN id SET DEFAULT nextval('public.subscription_add_ons_id_seq'::regclass); - - --- --- Name: subscription_user_add_on_assignments id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.subscription_user_add_on_assignments ALTER COLUMN id SET DEFAULT nextval('public.subscription_user_add_on_assignments_id_seq'::regclass); - - --- --- Name: subscriptions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.subscriptions ALTER COLUMN id SET DEFAULT nextval('public.subscriptions_id_seq'::regclass); - - --- --- Name: suggestions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.suggestions ALTER COLUMN id SET DEFAULT nextval('public.suggestions_id_seq'::regclass); - - --- --- Name: system_access_microsoft_applications id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.system_access_microsoft_applications ALTER COLUMN id SET DEFAULT nextval('public.system_access_microsoft_applications_id_seq'::regclass); - - --- --- Name: system_access_microsoft_graph_access_tokens id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.system_access_microsoft_graph_access_tokens ALTER COLUMN id SET DEFAULT nextval('public.system_access_microsoft_graph_access_tokens_id_seq'::regclass); - - --- --- Name: system_note_metadata id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.system_note_metadata ALTER COLUMN id SET DEFAULT nextval('public.system_note_metadata_id_seq'::regclass); - - --- --- Name: taggings id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.taggings ALTER COLUMN id SET DEFAULT nextval('public.taggings_id_seq'::regclass); - - --- --- Name: tags id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.tags ALTER COLUMN id SET DEFAULT nextval('public.tags_id_seq'::regclass); - - --- --- Name: target_branch_rules id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.target_branch_rules ALTER COLUMN id SET DEFAULT nextval('public.target_branch_rules_id_seq'::regclass); - - --- --- Name: term_agreements id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.term_agreements ALTER COLUMN id SET DEFAULT nextval('public.term_agreements_id_seq'::regclass); - - --- --- Name: terraform_state_versions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.terraform_state_versions ALTER COLUMN id SET DEFAULT nextval('public.terraform_state_versions_id_seq'::regclass); - - --- --- Name: terraform_states id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.terraform_states ALTER COLUMN id SET DEFAULT nextval('public.terraform_states_id_seq'::regclass); - - --- --- Name: timelog_categories id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.timelog_categories ALTER COLUMN id SET DEFAULT nextval('public.timelog_categories_id_seq'::regclass); - - --- --- Name: timelogs id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.timelogs ALTER COLUMN id SET DEFAULT nextval('public.timelogs_id_seq'::regclass); - - --- --- Name: todos id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.todos ALTER COLUMN id SET DEFAULT nextval('public.todos_id_seq'::regclass); - - --- --- Name: token_with_ivs id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.token_with_ivs ALTER COLUMN id SET DEFAULT nextval('public.token_with_ivs_id_seq'::regclass); - - --- --- Name: topics id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.topics ALTER COLUMN id SET DEFAULT nextval('public.topics_id_seq'::regclass); - - --- --- Name: trending_projects id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.trending_projects ALTER COLUMN id SET DEFAULT nextval('public.trending_projects_id_seq'::regclass); - - --- --- Name: upcoming_reconciliations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.upcoming_reconciliations ALTER COLUMN id SET DEFAULT nextval('public.upcoming_reconciliations_id_seq'::regclass); - - --- --- Name: upload_states upload_id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.upload_states ALTER COLUMN upload_id SET DEFAULT nextval('public.upload_states_upload_id_seq'::regclass); - - --- --- Name: uploads id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.uploads ALTER COLUMN id SET DEFAULT nextval('public.uploads_id_seq'::regclass); - - --- --- Name: user_achievements id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_achievements ALTER COLUMN id SET DEFAULT nextval('public.user_achievements_id_seq'::regclass); - - --- --- Name: user_agent_details id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_agent_details ALTER COLUMN id SET DEFAULT nextval('public.user_agent_details_id_seq'::regclass); - - --- --- Name: user_broadcast_message_dismissals id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_broadcast_message_dismissals ALTER COLUMN id SET DEFAULT nextval('public.user_broadcast_message_dismissals_id_seq'::regclass); - - --- --- Name: user_callouts id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_callouts ALTER COLUMN id SET DEFAULT nextval('public.user_callouts_id_seq'::regclass); - - --- --- Name: user_canonical_emails id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_canonical_emails ALTER COLUMN id SET DEFAULT nextval('public.user_canonical_emails_id_seq'::regclass); - - --- --- Name: user_custom_attributes id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_custom_attributes ALTER COLUMN id SET DEFAULT nextval('public.user_custom_attributes_id_seq'::regclass); - - --- --- Name: user_details user_id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_details ALTER COLUMN user_id SET DEFAULT nextval('public.user_details_user_id_seq'::regclass); - - --- --- Name: user_group_callouts id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_group_callouts ALTER COLUMN id SET DEFAULT nextval('public.user_group_callouts_id_seq'::regclass); - - --- --- Name: user_namespace_callouts id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_namespace_callouts ALTER COLUMN id SET DEFAULT nextval('public.user_namespace_callouts_id_seq'::regclass); - - --- --- Name: user_permission_export_uploads id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_permission_export_uploads ALTER COLUMN id SET DEFAULT nextval('public.user_permission_export_uploads_id_seq'::regclass); - - --- --- Name: user_preferences id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_preferences ALTER COLUMN id SET DEFAULT nextval('public.user_preferences_id_seq'::regclass); - - --- --- Name: user_project_callouts id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_project_callouts ALTER COLUMN id SET DEFAULT nextval('public.user_project_callouts_id_seq'::regclass); - - --- --- Name: user_statuses user_id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_statuses ALTER COLUMN user_id SET DEFAULT nextval('public.user_statuses_user_id_seq'::regclass); - - --- --- Name: user_synced_attributes_metadata id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_synced_attributes_metadata ALTER COLUMN id SET DEFAULT nextval('public.user_synced_attributes_metadata_id_seq'::regclass); - - --- --- Name: users id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.users ALTER COLUMN id SET DEFAULT nextval('public.users_id_seq'::regclass); - - --- --- Name: users_ops_dashboard_projects id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.users_ops_dashboard_projects ALTER COLUMN id SET DEFAULT nextval('public.users_ops_dashboard_projects_id_seq'::regclass); - - --- --- Name: users_star_projects id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.users_star_projects ALTER COLUMN id SET DEFAULT nextval('public.users_star_projects_id_seq'::regclass); - - --- --- Name: users_statistics id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.users_statistics ALTER COLUMN id SET DEFAULT nextval('public.users_statistics_id_seq'::regclass); - - --- --- Name: value_stream_dashboard_counts id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.value_stream_dashboard_counts ALTER COLUMN id SET DEFAULT nextval('public.value_stream_dashboard_counts_id_seq'::regclass); - - --- --- Name: virtual_registries_packages_maven_cached_responses id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.virtual_registries_packages_maven_cached_responses ALTER COLUMN id SET DEFAULT nextval('public.virtual_registries_packages_maven_cached_responses_id_seq'::regclass); - - --- --- Name: virtual_registries_packages_maven_registries id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.virtual_registries_packages_maven_registries ALTER COLUMN id SET DEFAULT nextval('public.virtual_registries_packages_maven_registries_id_seq'::regclass); - - --- --- Name: virtual_registries_packages_maven_registry_upstreams id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.virtual_registries_packages_maven_registry_upstreams ALTER COLUMN id SET DEFAULT nextval('public.virtual_registries_packages_maven_registry_upstreams_id_seq'::regclass); - - --- --- Name: virtual_registries_packages_maven_upstreams id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.virtual_registries_packages_maven_upstreams ALTER COLUMN id SET DEFAULT nextval('public.virtual_registries_packages_maven_upstreams_id_seq'::regclass); - - --- --- Name: vs_code_settings id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vs_code_settings ALTER COLUMN id SET DEFAULT nextval('public.vs_code_settings_id_seq'::regclass); - - --- --- Name: vulnerabilities id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerabilities ALTER COLUMN id SET DEFAULT nextval('public.vulnerabilities_id_seq'::regclass); - - --- --- Name: vulnerability_export_parts id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_export_parts ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_export_parts_id_seq'::regclass); - - --- --- Name: vulnerability_exports id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_exports ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_exports_id_seq'::regclass); - - --- --- Name: vulnerability_external_issue_links id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_external_issue_links ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_external_issue_links_id_seq'::regclass); - - --- --- Name: vulnerability_feedback id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_feedback ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_feedback_id_seq'::regclass); - - --- --- Name: vulnerability_finding_evidences id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_finding_evidences ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_finding_evidences_id_seq'::regclass); - - --- --- Name: vulnerability_finding_links id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_finding_links ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_finding_links_id_seq'::regclass); - - --- --- Name: vulnerability_finding_signatures id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_finding_signatures ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_finding_signatures_id_seq'::regclass); - - --- --- Name: vulnerability_findings_remediations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_findings_remediations ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_findings_remediations_id_seq'::regclass); - - --- --- Name: vulnerability_flags id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_flags ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_flags_id_seq'::regclass); - - --- --- Name: vulnerability_historical_statistics id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_historical_statistics ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_historical_statistics_id_seq'::regclass); - - --- --- Name: vulnerability_identifiers id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_identifiers ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_identifiers_id_seq'::regclass); - - --- --- Name: vulnerability_issue_links id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_issue_links ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_issue_links_id_seq'::regclass); - - --- --- Name: vulnerability_merge_request_links id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_merge_request_links ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_merge_request_links_id_seq'::regclass); - - --- --- Name: vulnerability_namespace_historical_statistics id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_namespace_historical_statistics ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_namespace_historical_statistics_id_seq'::regclass); - - --- --- Name: vulnerability_occurrence_identifiers id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_occurrence_identifiers ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_occurrence_identifiers_id_seq'::regclass); - - --- --- Name: vulnerability_occurrence_pipelines id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_occurrence_pipelines ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_occurrence_pipelines_id_seq'::regclass); - - --- --- Name: vulnerability_occurrences id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_occurrences ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_occurrences_id_seq'::regclass); - - --- --- Name: vulnerability_reads id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_reads ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_reads_id_seq'::regclass); - - --- --- Name: vulnerability_remediations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_remediations ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_remediations_id_seq'::regclass); - - --- --- Name: vulnerability_scanners id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_scanners ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_scanners_id_seq'::regclass); - - --- --- Name: vulnerability_state_transitions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_state_transitions ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_state_transitions_id_seq'::regclass); - - --- --- Name: vulnerability_statistics id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_statistics ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_statistics_id_seq'::regclass); - - --- --- Name: vulnerability_user_mentions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_user_mentions ALTER COLUMN id SET DEFAULT nextval('public.vulnerability_user_mentions_id_seq'::regclass); - - --- --- Name: web_hook_logs id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.web_hook_logs ALTER COLUMN id SET DEFAULT nextval('public.web_hook_logs_id_seq'::regclass); - - --- --- Name: web_hooks id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.web_hooks ALTER COLUMN id SET DEFAULT nextval('public.web_hooks_id_seq'::regclass); - - --- --- Name: webauthn_registrations id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.webauthn_registrations ALTER COLUMN id SET DEFAULT nextval('public.webauthn_registrations_id_seq'::regclass); - - --- --- Name: wiki_page_meta id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.wiki_page_meta ALTER COLUMN id SET DEFAULT nextval('public.wiki_page_meta_id_seq'::regclass); - - --- --- Name: wiki_page_slugs id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.wiki_page_slugs ALTER COLUMN id SET DEFAULT nextval('public.wiki_page_slugs_id_seq'::regclass); - - --- --- Name: wiki_repository_states id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.wiki_repository_states ALTER COLUMN id SET DEFAULT nextval('public.wiki_repository_states_id_seq'::regclass); - - --- --- Name: work_item_hierarchy_restrictions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.work_item_hierarchy_restrictions ALTER COLUMN id SET DEFAULT nextval('public.work_item_hierarchy_restrictions_id_seq'::regclass); - - --- --- Name: work_item_parent_links id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.work_item_parent_links ALTER COLUMN id SET DEFAULT nextval('public.work_item_parent_links_id_seq'::regclass); - - --- --- Name: work_item_related_link_restrictions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.work_item_related_link_restrictions ALTER COLUMN id SET DEFAULT nextval('public.work_item_related_link_restrictions_id_seq'::regclass); - - --- --- Name: work_item_types id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.work_item_types ALTER COLUMN id SET DEFAULT nextval('public.work_item_types_id_seq'::regclass); - - --- --- Name: work_item_widget_definitions id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.work_item_widget_definitions ALTER COLUMN id SET DEFAULT nextval('public.work_item_widget_definitions_id_seq'::regclass); - - --- --- Name: workspace_variables id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.workspace_variables ALTER COLUMN id SET DEFAULT nextval('public.workspace_variables_id_seq'::regclass); - - --- --- Name: workspaces id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.workspaces ALTER COLUMN id SET DEFAULT nextval('public.workspaces_id_seq'::regclass); - - --- --- Name: workspaces_agent_configs id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.workspaces_agent_configs ALTER COLUMN id SET DEFAULT nextval('public.workspaces_agent_configs_id_seq'::regclass); - - --- --- Name: x509_certificates id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.x509_certificates ALTER COLUMN id SET DEFAULT nextval('public.x509_certificates_id_seq'::regclass); - - --- --- Name: x509_commit_signatures id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.x509_commit_signatures ALTER COLUMN id SET DEFAULT nextval('public.x509_commit_signatures_id_seq'::regclass); - - --- --- Name: x509_issuers id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.x509_issuers ALTER COLUMN id SET DEFAULT nextval('public.x509_issuers_id_seq'::regclass); - - --- --- Name: xray_reports id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.xray_reports ALTER COLUMN id SET DEFAULT nextval('public.xray_reports_id_seq'::regclass); - - --- --- Name: zentao_tracker_data id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.zentao_tracker_data ALTER COLUMN id SET DEFAULT nextval('public.zentao_tracker_data_id_seq'::regclass); - - --- --- Name: zoekt_enabled_namespaces id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.zoekt_enabled_namespaces ALTER COLUMN id SET DEFAULT nextval('public.zoekt_enabled_namespaces_id_seq'::regclass); - - --- --- Name: zoekt_indices id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.zoekt_indices ALTER COLUMN id SET DEFAULT nextval('public.zoekt_indices_id_seq'::regclass); - - --- --- Name: zoekt_nodes id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.zoekt_nodes ALTER COLUMN id SET DEFAULT nextval('public.zoekt_nodes_id_seq'::regclass); - - --- --- Name: zoekt_replicas id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.zoekt_replicas ALTER COLUMN id SET DEFAULT nextval('public.zoekt_replicas_id_seq'::regclass); - - --- --- Name: zoekt_repositories id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.zoekt_repositories ALTER COLUMN id SET DEFAULT nextval('public.zoekt_repositories_id_seq'::regclass); - - --- --- Name: zoekt_shards id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.zoekt_shards ALTER COLUMN id SET DEFAULT nextval('public.zoekt_shards_id_seq'::regclass); - - --- --- Name: zoom_meetings id; Type: DEFAULT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.zoom_meetings ALTER COLUMN id SET DEFAULT nextval('public.zoom_meetings_id_seq'::regclass); - - --- --- Name: analytics_cycle_analytics_issue_stage_events analytics_cycle_analytics_issue_stage_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.analytics_cycle_analytics_issue_stage_events - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_00 analytics_cycle_analytics_issue_stage_events_00_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_00_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_01 analytics_cycle_analytics_issue_stage_events_01_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_01_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_02 analytics_cycle_analytics_issue_stage_events_02_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_02_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_03 analytics_cycle_analytics_issue_stage_events_03_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_03_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_04 analytics_cycle_analytics_issue_stage_events_04_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_04_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_05 analytics_cycle_analytics_issue_stage_events_05_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_05_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_06 analytics_cycle_analytics_issue_stage_events_06_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_06_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_07 analytics_cycle_analytics_issue_stage_events_07_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_07_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_08 analytics_cycle_analytics_issue_stage_events_08_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_08_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_09 analytics_cycle_analytics_issue_stage_events_09_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_09_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_10 analytics_cycle_analytics_issue_stage_events_10_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_10_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_11 analytics_cycle_analytics_issue_stage_events_11_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_11_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_12 analytics_cycle_analytics_issue_stage_events_12_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_12_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_13 analytics_cycle_analytics_issue_stage_events_13_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_13_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_14 analytics_cycle_analytics_issue_stage_events_14_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_14_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_15 analytics_cycle_analytics_issue_stage_events_15_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_15_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_16 analytics_cycle_analytics_issue_stage_events_16_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_16_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_17 analytics_cycle_analytics_issue_stage_events_17_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_17_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_18 analytics_cycle_analytics_issue_stage_events_18_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_18_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_19 analytics_cycle_analytics_issue_stage_events_19_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_19_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_20 analytics_cycle_analytics_issue_stage_events_20_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_20_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_21 analytics_cycle_analytics_issue_stage_events_21_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_21_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_22 analytics_cycle_analytics_issue_stage_events_22_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_22_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_23 analytics_cycle_analytics_issue_stage_events_23_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_23_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_24 analytics_cycle_analytics_issue_stage_events_24_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_24_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_25 analytics_cycle_analytics_issue_stage_events_25_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_25_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_26 analytics_cycle_analytics_issue_stage_events_26_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_26_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_27 analytics_cycle_analytics_issue_stage_events_27_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_27_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_28 analytics_cycle_analytics_issue_stage_events_28_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_28_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_29 analytics_cycle_analytics_issue_stage_events_29_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_29_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_30 analytics_cycle_analytics_issue_stage_events_30_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_30_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_31 analytics_cycle_analytics_issue_stage_events_31_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 - ADD CONSTRAINT analytics_cycle_analytics_issue_stage_events_31_pkey PRIMARY KEY (stage_event_hash_id, issue_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events analytics_cycle_analytics_merge_request_stage_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.analytics_cycle_analytics_merge_request_stage_events - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_00 analytics_cycle_analytics_merge_request_stage_events_00_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_00_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_01 analytics_cycle_analytics_merge_request_stage_events_01_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_01_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_02 analytics_cycle_analytics_merge_request_stage_events_02_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_02_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_03 analytics_cycle_analytics_merge_request_stage_events_03_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_03_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_04 analytics_cycle_analytics_merge_request_stage_events_04_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_04_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_05 analytics_cycle_analytics_merge_request_stage_events_05_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_05_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_06 analytics_cycle_analytics_merge_request_stage_events_06_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_06_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_07 analytics_cycle_analytics_merge_request_stage_events_07_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_07_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_08 analytics_cycle_analytics_merge_request_stage_events_08_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_08_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_09 analytics_cycle_analytics_merge_request_stage_events_09_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_09_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_10 analytics_cycle_analytics_merge_request_stage_events_10_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_10_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_11 analytics_cycle_analytics_merge_request_stage_events_11_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_11_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_12 analytics_cycle_analytics_merge_request_stage_events_12_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_12_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_13 analytics_cycle_analytics_merge_request_stage_events_13_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_13_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_14 analytics_cycle_analytics_merge_request_stage_events_14_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_14_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_15 analytics_cycle_analytics_merge_request_stage_events_15_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_15_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_16 analytics_cycle_analytics_merge_request_stage_events_16_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_16_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_17 analytics_cycle_analytics_merge_request_stage_events_17_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_17_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_18 analytics_cycle_analytics_merge_request_stage_events_18_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_18_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_19 analytics_cycle_analytics_merge_request_stage_events_19_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_19_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_20 analytics_cycle_analytics_merge_request_stage_events_20_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_20_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_21 analytics_cycle_analytics_merge_request_stage_events_21_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_21_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_22 analytics_cycle_analytics_merge_request_stage_events_22_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_22_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_23 analytics_cycle_analytics_merge_request_stage_events_23_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_23_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_24 analytics_cycle_analytics_merge_request_stage_events_24_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_24_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_25 analytics_cycle_analytics_merge_request_stage_events_25_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_25_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_26 analytics_cycle_analytics_merge_request_stage_events_26_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_26_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_27 analytics_cycle_analytics_merge_request_stage_events_27_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_27_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_28 analytics_cycle_analytics_merge_request_stage_events_28_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_28_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_29 analytics_cycle_analytics_merge_request_stage_events_29_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_29_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_30 analytics_cycle_analytics_merge_request_stage_events_30_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_30_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_31 analytics_cycle_analytics_merge_request_stage_events_31_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 - ADD CONSTRAINT analytics_cycle_analytics_merge_request_stage_events_31_pkey PRIMARY KEY (stage_event_hash_id, merge_request_id); - - --- --- Name: issue_search_data issue_search_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issue_search_data - ADD CONSTRAINT issue_search_data_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_00 issue_search_data_00_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_00 - ADD CONSTRAINT issue_search_data_00_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_01 issue_search_data_01_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_01 - ADD CONSTRAINT issue_search_data_01_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_02 issue_search_data_02_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_02 - ADD CONSTRAINT issue_search_data_02_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_03 issue_search_data_03_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_03 - ADD CONSTRAINT issue_search_data_03_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_04 issue_search_data_04_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_04 - ADD CONSTRAINT issue_search_data_04_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_05 issue_search_data_05_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_05 - ADD CONSTRAINT issue_search_data_05_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_06 issue_search_data_06_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_06 - ADD CONSTRAINT issue_search_data_06_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_07 issue_search_data_07_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_07 - ADD CONSTRAINT issue_search_data_07_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_08 issue_search_data_08_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_08 - ADD CONSTRAINT issue_search_data_08_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_09 issue_search_data_09_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_09 - ADD CONSTRAINT issue_search_data_09_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_10 issue_search_data_10_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_10 - ADD CONSTRAINT issue_search_data_10_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_11 issue_search_data_11_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_11 - ADD CONSTRAINT issue_search_data_11_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_12 issue_search_data_12_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_12 - ADD CONSTRAINT issue_search_data_12_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_13 issue_search_data_13_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_13 - ADD CONSTRAINT issue_search_data_13_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_14 issue_search_data_14_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_14 - ADD CONSTRAINT issue_search_data_14_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_15 issue_search_data_15_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_15 - ADD CONSTRAINT issue_search_data_15_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_16 issue_search_data_16_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_16 - ADD CONSTRAINT issue_search_data_16_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_17 issue_search_data_17_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_17 - ADD CONSTRAINT issue_search_data_17_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_18 issue_search_data_18_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_18 - ADD CONSTRAINT issue_search_data_18_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_19 issue_search_data_19_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_19 - ADD CONSTRAINT issue_search_data_19_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_20 issue_search_data_20_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_20 - ADD CONSTRAINT issue_search_data_20_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_21 issue_search_data_21_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_21 - ADD CONSTRAINT issue_search_data_21_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_22 issue_search_data_22_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_22 - ADD CONSTRAINT issue_search_data_22_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_23 issue_search_data_23_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_23 - ADD CONSTRAINT issue_search_data_23_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_24 issue_search_data_24_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_24 - ADD CONSTRAINT issue_search_data_24_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_25 issue_search_data_25_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_25 - ADD CONSTRAINT issue_search_data_25_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_26 issue_search_data_26_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_26 - ADD CONSTRAINT issue_search_data_26_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_27 issue_search_data_27_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_27 - ADD CONSTRAINT issue_search_data_27_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_28 issue_search_data_28_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_28 - ADD CONSTRAINT issue_search_data_28_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_29 issue_search_data_29_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_29 - ADD CONSTRAINT issue_search_data_29_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_30 issue_search_data_30_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_30 - ADD CONSTRAINT issue_search_data_30_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_31 issue_search_data_31_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_31 - ADD CONSTRAINT issue_search_data_31_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_32 issue_search_data_32_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_32 - ADD CONSTRAINT issue_search_data_32_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_33 issue_search_data_33_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_33 - ADD CONSTRAINT issue_search_data_33_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_34 issue_search_data_34_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_34 - ADD CONSTRAINT issue_search_data_34_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_35 issue_search_data_35_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_35 - ADD CONSTRAINT issue_search_data_35_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_36 issue_search_data_36_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_36 - ADD CONSTRAINT issue_search_data_36_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_37 issue_search_data_37_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_37 - ADD CONSTRAINT issue_search_data_37_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_38 issue_search_data_38_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_38 - ADD CONSTRAINT issue_search_data_38_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_39 issue_search_data_39_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_39 - ADD CONSTRAINT issue_search_data_39_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_40 issue_search_data_40_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_40 - ADD CONSTRAINT issue_search_data_40_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_41 issue_search_data_41_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_41 - ADD CONSTRAINT issue_search_data_41_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_42 issue_search_data_42_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_42 - ADD CONSTRAINT issue_search_data_42_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_43 issue_search_data_43_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_43 - ADD CONSTRAINT issue_search_data_43_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_44 issue_search_data_44_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_44 - ADD CONSTRAINT issue_search_data_44_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_45 issue_search_data_45_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_45 - ADD CONSTRAINT issue_search_data_45_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_46 issue_search_data_46_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_46 - ADD CONSTRAINT issue_search_data_46_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_47 issue_search_data_47_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_47 - ADD CONSTRAINT issue_search_data_47_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_48 issue_search_data_48_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_48 - ADD CONSTRAINT issue_search_data_48_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_49 issue_search_data_49_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_49 - ADD CONSTRAINT issue_search_data_49_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_50 issue_search_data_50_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_50 - ADD CONSTRAINT issue_search_data_50_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_51 issue_search_data_51_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_51 - ADD CONSTRAINT issue_search_data_51_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_52 issue_search_data_52_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_52 - ADD CONSTRAINT issue_search_data_52_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_53 issue_search_data_53_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_53 - ADD CONSTRAINT issue_search_data_53_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_54 issue_search_data_54_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_54 - ADD CONSTRAINT issue_search_data_54_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_55 issue_search_data_55_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_55 - ADD CONSTRAINT issue_search_data_55_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_56 issue_search_data_56_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_56 - ADD CONSTRAINT issue_search_data_56_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_57 issue_search_data_57_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_57 - ADD CONSTRAINT issue_search_data_57_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_58 issue_search_data_58_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_58 - ADD CONSTRAINT issue_search_data_58_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_59 issue_search_data_59_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_59 - ADD CONSTRAINT issue_search_data_59_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_60 issue_search_data_60_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_60 - ADD CONSTRAINT issue_search_data_60_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_61 issue_search_data_61_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_61 - ADD CONSTRAINT issue_search_data_61_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_62 issue_search_data_62_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_62 - ADD CONSTRAINT issue_search_data_62_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: issue_search_data_63 issue_search_data_63_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.issue_search_data_63 - ADD CONSTRAINT issue_search_data_63_pkey PRIMARY KEY (project_id, issue_id); - - --- --- Name: namespace_descendants namespace_descendants_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_descendants - ADD CONSTRAINT namespace_descendants_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_00 namespace_descendants_00_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_00 - ADD CONSTRAINT namespace_descendants_00_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_01 namespace_descendants_01_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_01 - ADD CONSTRAINT namespace_descendants_01_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_02 namespace_descendants_02_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_02 - ADD CONSTRAINT namespace_descendants_02_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_03 namespace_descendants_03_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_03 - ADD CONSTRAINT namespace_descendants_03_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_04 namespace_descendants_04_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_04 - ADD CONSTRAINT namespace_descendants_04_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_05 namespace_descendants_05_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_05 - ADD CONSTRAINT namespace_descendants_05_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_06 namespace_descendants_06_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_06 - ADD CONSTRAINT namespace_descendants_06_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_07 namespace_descendants_07_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_07 - ADD CONSTRAINT namespace_descendants_07_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_08 namespace_descendants_08_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_08 - ADD CONSTRAINT namespace_descendants_08_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_09 namespace_descendants_09_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_09 - ADD CONSTRAINT namespace_descendants_09_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_10 namespace_descendants_10_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_10 - ADD CONSTRAINT namespace_descendants_10_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_11 namespace_descendants_11_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_11 - ADD CONSTRAINT namespace_descendants_11_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_12 namespace_descendants_12_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_12 - ADD CONSTRAINT namespace_descendants_12_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_13 namespace_descendants_13_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_13 - ADD CONSTRAINT namespace_descendants_13_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_14 namespace_descendants_14_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_14 - ADD CONSTRAINT namespace_descendants_14_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_15 namespace_descendants_15_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_15 - ADD CONSTRAINT namespace_descendants_15_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_16 namespace_descendants_16_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_16 - ADD CONSTRAINT namespace_descendants_16_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_17 namespace_descendants_17_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_17 - ADD CONSTRAINT namespace_descendants_17_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_18 namespace_descendants_18_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_18 - ADD CONSTRAINT namespace_descendants_18_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_19 namespace_descendants_19_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_19 - ADD CONSTRAINT namespace_descendants_19_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_20 namespace_descendants_20_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_20 - ADD CONSTRAINT namespace_descendants_20_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_21 namespace_descendants_21_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_21 - ADD CONSTRAINT namespace_descendants_21_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_22 namespace_descendants_22_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_22 - ADD CONSTRAINT namespace_descendants_22_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_23 namespace_descendants_23_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_23 - ADD CONSTRAINT namespace_descendants_23_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_24 namespace_descendants_24_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_24 - ADD CONSTRAINT namespace_descendants_24_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_25 namespace_descendants_25_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_25 - ADD CONSTRAINT namespace_descendants_25_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_26 namespace_descendants_26_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_26 - ADD CONSTRAINT namespace_descendants_26_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_27 namespace_descendants_27_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_27 - ADD CONSTRAINT namespace_descendants_27_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_28 namespace_descendants_28_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_28 - ADD CONSTRAINT namespace_descendants_28_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_29 namespace_descendants_29_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_29 - ADD CONSTRAINT namespace_descendants_29_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_30 namespace_descendants_30_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_30 - ADD CONSTRAINT namespace_descendants_30_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_descendants_31 namespace_descendants_31_pkey; Type: CONSTRAINT; Schema: gitlab_partitions_static; Owner: - --- - -ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_31 - ADD CONSTRAINT namespace_descendants_31_pkey PRIMARY KEY (namespace_id); - - --- --- Name: abuse_events abuse_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.abuse_events - ADD CONSTRAINT abuse_events_pkey PRIMARY KEY (id); - - --- --- Name: abuse_report_assignees abuse_report_assignees_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.abuse_report_assignees - ADD CONSTRAINT abuse_report_assignees_pkey PRIMARY KEY (id); - - --- --- Name: abuse_report_events abuse_report_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.abuse_report_events - ADD CONSTRAINT abuse_report_events_pkey PRIMARY KEY (id); - - --- --- Name: abuse_report_notes abuse_report_notes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.abuse_report_notes - ADD CONSTRAINT abuse_report_notes_pkey PRIMARY KEY (id); - - --- --- Name: abuse_report_user_mentions abuse_report_user_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.abuse_report_user_mentions - ADD CONSTRAINT abuse_report_user_mentions_pkey PRIMARY KEY (id); - - --- --- Name: abuse_reports abuse_reports_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.abuse_reports - ADD CONSTRAINT abuse_reports_pkey PRIMARY KEY (id); - - --- --- Name: abuse_trust_scores abuse_trust_scores_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.abuse_trust_scores - ADD CONSTRAINT abuse_trust_scores_pkey PRIMARY KEY (id); - - --- --- Name: achievements achievements_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.achievements - ADD CONSTRAINT achievements_pkey PRIMARY KEY (id); - - --- --- Name: activity_pub_releases_subscriptions activity_pub_releases_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.activity_pub_releases_subscriptions - ADD CONSTRAINT activity_pub_releases_subscriptions_pkey PRIMARY KEY (id); - - --- --- Name: agent_activity_events agent_activity_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.agent_activity_events - ADD CONSTRAINT agent_activity_events_pkey PRIMARY KEY (id); - - --- --- Name: agent_group_authorizations agent_group_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.agent_group_authorizations - ADD CONSTRAINT agent_group_authorizations_pkey PRIMARY KEY (id); - - --- --- Name: agent_project_authorizations agent_project_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.agent_project_authorizations - ADD CONSTRAINT agent_project_authorizations_pkey PRIMARY KEY (id); - - --- --- Name: agent_user_access_group_authorizations agent_user_access_group_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.agent_user_access_group_authorizations - ADD CONSTRAINT agent_user_access_group_authorizations_pkey PRIMARY KEY (id); - - --- --- Name: agent_user_access_project_authorizations agent_user_access_project_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.agent_user_access_project_authorizations - ADD CONSTRAINT agent_user_access_project_authorizations_pkey PRIMARY KEY (id); - - --- --- Name: ai_agent_version_attachments ai_agent_version_attachments_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ai_agent_version_attachments - ADD CONSTRAINT ai_agent_version_attachments_pkey PRIMARY KEY (id); - - --- --- Name: ai_agent_versions ai_agent_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ai_agent_versions - ADD CONSTRAINT ai_agent_versions_pkey PRIMARY KEY (id); - - --- --- Name: ai_agents ai_agents_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ai_agents - ADD CONSTRAINT ai_agents_pkey PRIMARY KEY (id); - - --- --- Name: ai_feature_settings ai_feature_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ai_feature_settings - ADD CONSTRAINT ai_feature_settings_pkey PRIMARY KEY (id); - - --- --- Name: ai_self_hosted_models ai_self_hosted_models_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ai_self_hosted_models - ADD CONSTRAINT ai_self_hosted_models_pkey PRIMARY KEY (id); - - --- --- Name: ai_testing_terms_acceptances ai_testing_terms_acceptances_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ai_testing_terms_acceptances - ADD CONSTRAINT ai_testing_terms_acceptances_pkey PRIMARY KEY (user_id); - - --- --- Name: ai_vectorizable_files ai_vectorizable_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ai_vectorizable_files - ADD CONSTRAINT ai_vectorizable_files_pkey PRIMARY KEY (id); - - --- --- Name: alert_management_alert_assignees alert_management_alert_assignees_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.alert_management_alert_assignees - ADD CONSTRAINT alert_management_alert_assignees_pkey PRIMARY KEY (id); - - --- --- Name: alert_management_alert_metric_images alert_management_alert_metric_images_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.alert_management_alert_metric_images - ADD CONSTRAINT alert_management_alert_metric_images_pkey PRIMARY KEY (id); - - --- --- Name: alert_management_alert_user_mentions alert_management_alert_user_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.alert_management_alert_user_mentions - ADD CONSTRAINT alert_management_alert_user_mentions_pkey PRIMARY KEY (id); - - --- --- Name: alert_management_alerts alert_management_alerts_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.alert_management_alerts - ADD CONSTRAINT alert_management_alerts_pkey PRIMARY KEY (id); - - --- --- Name: alert_management_http_integrations alert_management_http_integrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.alert_management_http_integrations - ADD CONSTRAINT alert_management_http_integrations_pkey PRIMARY KEY (id); - - --- --- Name: allowed_email_domains allowed_email_domains_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.allowed_email_domains - ADD CONSTRAINT allowed_email_domains_pkey PRIMARY KEY (id); - - --- --- Name: analytics_cycle_analytics_aggregations analytics_cycle_analytics_aggregations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.analytics_cycle_analytics_aggregations - ADD CONSTRAINT analytics_cycle_analytics_aggregations_pkey PRIMARY KEY (group_id); - - --- --- Name: analytics_cycle_analytics_group_stages analytics_cycle_analytics_group_stages_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.analytics_cycle_analytics_group_stages - ADD CONSTRAINT analytics_cycle_analytics_group_stages_pkey PRIMARY KEY (id); - - --- --- Name: analytics_cycle_analytics_group_value_streams analytics_cycle_analytics_group_value_streams_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.analytics_cycle_analytics_group_value_streams - ADD CONSTRAINT analytics_cycle_analytics_group_value_streams_pkey PRIMARY KEY (id); - - --- --- Name: analytics_cycle_analytics_stage_event_hashes analytics_cycle_analytics_stage_event_hashes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.analytics_cycle_analytics_stage_event_hashes - ADD CONSTRAINT analytics_cycle_analytics_stage_event_hashes_pkey PRIMARY KEY (id); - - --- --- Name: analytics_cycle_analytics_value_stream_settings analytics_cycle_analytics_value_stream_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.analytics_cycle_analytics_value_stream_settings - ADD CONSTRAINT analytics_cycle_analytics_value_stream_settings_pkey PRIMARY KEY (value_stream_id); - - --- --- Name: analytics_dashboards_pointers analytics_dashboards_pointers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.analytics_dashboards_pointers - ADD CONSTRAINT analytics_dashboards_pointers_pkey PRIMARY KEY (id); - - --- --- Name: analytics_devops_adoption_segments analytics_devops_adoption_segments_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.analytics_devops_adoption_segments - ADD CONSTRAINT analytics_devops_adoption_segments_pkey PRIMARY KEY (id); - - --- --- Name: analytics_devops_adoption_snapshots analytics_devops_adoption_snapshots_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.analytics_devops_adoption_snapshots - ADD CONSTRAINT analytics_devops_adoption_snapshots_pkey PRIMARY KEY (id); - - --- --- Name: analytics_language_trend_repository_languages analytics_language_trend_repository_languages_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.analytics_language_trend_repository_languages - ADD CONSTRAINT analytics_language_trend_repository_languages_pkey PRIMARY KEY (programming_language_id, project_id, snapshot_date); - - --- --- Name: analytics_usage_trends_measurements analytics_usage_trends_measurements_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.analytics_usage_trends_measurements - ADD CONSTRAINT analytics_usage_trends_measurements_pkey PRIMARY KEY (id); - - --- --- Name: appearances appearances_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.appearances - ADD CONSTRAINT appearances_pkey PRIMARY KEY (id); - - --- --- Name: application_setting_terms application_setting_terms_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.application_setting_terms - ADD CONSTRAINT application_setting_terms_pkey PRIMARY KEY (id); - - --- --- Name: application_settings application_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.application_settings - ADD CONSTRAINT application_settings_pkey PRIMARY KEY (id); - - --- --- Name: approval_group_rules_groups approval_group_rules_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.approval_group_rules_groups - ADD CONSTRAINT approval_group_rules_groups_pkey PRIMARY KEY (id); - - --- --- Name: approval_group_rules approval_group_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.approval_group_rules - ADD CONSTRAINT approval_group_rules_pkey PRIMARY KEY (id); - - --- --- Name: approval_group_rules_protected_branches approval_group_rules_protected_branches_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.approval_group_rules_protected_branches - ADD CONSTRAINT approval_group_rules_protected_branches_pkey PRIMARY KEY (id); - - --- --- Name: approval_group_rules_users approval_group_rules_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.approval_group_rules_users - ADD CONSTRAINT approval_group_rules_users_pkey PRIMARY KEY (id); - - --- --- Name: approval_merge_request_rule_sources approval_merge_request_rule_sources_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.approval_merge_request_rule_sources - ADD CONSTRAINT approval_merge_request_rule_sources_pkey PRIMARY KEY (id); - - --- --- Name: approval_merge_request_rules_approved_approvers approval_merge_request_rules_approved_approvers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.approval_merge_request_rules_approved_approvers - ADD CONSTRAINT approval_merge_request_rules_approved_approvers_pkey PRIMARY KEY (id); - - --- --- Name: approval_merge_request_rules_groups approval_merge_request_rules_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.approval_merge_request_rules_groups - ADD CONSTRAINT approval_merge_request_rules_groups_pkey PRIMARY KEY (id); - - --- --- Name: approval_merge_request_rules approval_merge_request_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.approval_merge_request_rules - ADD CONSTRAINT approval_merge_request_rules_pkey PRIMARY KEY (id); - - --- --- Name: approval_merge_request_rules_users approval_merge_request_rules_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.approval_merge_request_rules_users - ADD CONSTRAINT approval_merge_request_rules_users_pkey PRIMARY KEY (id); - - --- --- Name: approval_policy_rule_project_links approval_policy_rule_project_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.approval_policy_rule_project_links - ADD CONSTRAINT approval_policy_rule_project_links_pkey PRIMARY KEY (id); - - --- --- Name: approval_policy_rules approval_policy_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.approval_policy_rules - ADD CONSTRAINT approval_policy_rules_pkey PRIMARY KEY (id); - - --- --- Name: approval_project_rules_groups approval_project_rules_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.approval_project_rules_groups - ADD CONSTRAINT approval_project_rules_groups_pkey PRIMARY KEY (id); - - --- --- Name: approval_project_rules approval_project_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.approval_project_rules - ADD CONSTRAINT approval_project_rules_pkey PRIMARY KEY (id); - - --- --- Name: approval_project_rules_protected_branches approval_project_rules_protected_branches_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.approval_project_rules_protected_branches - ADD CONSTRAINT approval_project_rules_protected_branches_pkey PRIMARY KEY (approval_project_rule_id, protected_branch_id); - - --- --- Name: approval_project_rules_users approval_project_rules_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.approval_project_rules_users - ADD CONSTRAINT approval_project_rules_users_pkey PRIMARY KEY (id); - - --- --- Name: approvals approvals_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.approvals - ADD CONSTRAINT approvals_pkey PRIMARY KEY (id); - - --- --- Name: approver_groups approver_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.approver_groups - ADD CONSTRAINT approver_groups_pkey PRIMARY KEY (id); - - --- --- Name: approvers approvers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.approvers - ADD CONSTRAINT approvers_pkey PRIMARY KEY (id); - - --- --- Name: ar_internal_metadata ar_internal_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ar_internal_metadata - ADD CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key); - - --- --- Name: atlassian_identities atlassian_identities_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.atlassian_identities - ADD CONSTRAINT atlassian_identities_pkey PRIMARY KEY (user_id); - - --- --- Name: audit_events_amazon_s3_configurations audit_events_amazon_s3_configurations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.audit_events_amazon_s3_configurations - ADD CONSTRAINT audit_events_amazon_s3_configurations_pkey PRIMARY KEY (id); - - --- --- Name: audit_events_external_audit_event_destinations audit_events_external_audit_event_destinations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.audit_events_external_audit_event_destinations - ADD CONSTRAINT audit_events_external_audit_event_destinations_pkey PRIMARY KEY (id); - - --- --- Name: audit_events_google_cloud_logging_configurations audit_events_google_cloud_logging_configurations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.audit_events_google_cloud_logging_configurations - ADD CONSTRAINT audit_events_google_cloud_logging_configurations_pkey PRIMARY KEY (id); - - --- --- Name: audit_events_group_external_streaming_destinations audit_events_group_external_streaming_destinations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.audit_events_group_external_streaming_destinations - ADD CONSTRAINT audit_events_group_external_streaming_destinations_pkey PRIMARY KEY (id); - - --- --- Name: audit_events_group_streaming_event_type_filters audit_events_group_streaming_event_type_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.audit_events_group_streaming_event_type_filters - ADD CONSTRAINT audit_events_group_streaming_event_type_filters_pkey PRIMARY KEY (id); - - --- --- Name: audit_events_instance_amazon_s3_configurations audit_events_instance_amazon_s3_configurations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.audit_events_instance_amazon_s3_configurations - ADD CONSTRAINT audit_events_instance_amazon_s3_configurations_pkey PRIMARY KEY (id); - - --- --- Name: audit_events_instance_external_audit_event_destinations audit_events_instance_external_audit_event_destinations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.audit_events_instance_external_audit_event_destinations - ADD CONSTRAINT audit_events_instance_external_audit_event_destinations_pkey PRIMARY KEY (id); - - --- --- Name: audit_events_instance_external_streaming_destinations audit_events_instance_external_streaming_destinations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.audit_events_instance_external_streaming_destinations - ADD CONSTRAINT audit_events_instance_external_streaming_destinations_pkey PRIMARY KEY (id); - - --- --- Name: audit_events_instance_google_cloud_logging_configurations audit_events_instance_google_cloud_logging_configurations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.audit_events_instance_google_cloud_logging_configurations - ADD CONSTRAINT audit_events_instance_google_cloud_logging_configurations_pkey PRIMARY KEY (id); - - --- --- Name: audit_events_instance_streaming_event_type_filters audit_events_instance_streaming_event_type_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.audit_events_instance_streaming_event_type_filters - ADD CONSTRAINT audit_events_instance_streaming_event_type_filters_pkey PRIMARY KEY (id); - - --- --- Name: audit_events audit_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.audit_events - ADD CONSTRAINT audit_events_pkey PRIMARY KEY (id, created_at); - - --- --- Name: audit_events_streaming_event_type_filters audit_events_streaming_event_type_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.audit_events_streaming_event_type_filters - ADD CONSTRAINT audit_events_streaming_event_type_filters_pkey PRIMARY KEY (id); - - --- --- Name: audit_events_streaming_group_namespace_filters audit_events_streaming_group_namespace_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.audit_events_streaming_group_namespace_filters - ADD CONSTRAINT audit_events_streaming_group_namespace_filters_pkey PRIMARY KEY (id); - - --- --- Name: audit_events_streaming_headers audit_events_streaming_headers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.audit_events_streaming_headers - ADD CONSTRAINT audit_events_streaming_headers_pkey PRIMARY KEY (id); - - --- --- Name: audit_events_streaming_http_group_namespace_filters audit_events_streaming_http_group_namespace_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.audit_events_streaming_http_group_namespace_filters - ADD CONSTRAINT audit_events_streaming_http_group_namespace_filters_pkey PRIMARY KEY (id); - - --- --- Name: audit_events_streaming_http_instance_namespace_filters audit_events_streaming_http_instance_namespace_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.audit_events_streaming_http_instance_namespace_filters - ADD CONSTRAINT audit_events_streaming_http_instance_namespace_filters_pkey PRIMARY KEY (id); - - --- --- Name: audit_events_streaming_instance_event_type_filters audit_events_streaming_instance_event_type_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.audit_events_streaming_instance_event_type_filters - ADD CONSTRAINT audit_events_streaming_instance_event_type_filters_pkey PRIMARY KEY (id); - - --- --- Name: audit_events_streaming_instance_namespace_filters audit_events_streaming_instance_namespace_filters_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.audit_events_streaming_instance_namespace_filters - ADD CONSTRAINT audit_events_streaming_instance_namespace_filters_pkey PRIMARY KEY (id); - - --- --- Name: authentication_events authentication_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.authentication_events - ADD CONSTRAINT authentication_events_pkey PRIMARY KEY (id); - - --- --- Name: automation_rules automation_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.automation_rules - ADD CONSTRAINT automation_rules_pkey PRIMARY KEY (id); - - --- --- Name: award_emoji award_emoji_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.award_emoji - ADD CONSTRAINT award_emoji_pkey PRIMARY KEY (id); - - --- --- Name: aws_roles aws_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.aws_roles - ADD CONSTRAINT aws_roles_pkey PRIMARY KEY (user_id); - - --- --- Name: background_migration_jobs background_migration_jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.background_migration_jobs - ADD CONSTRAINT background_migration_jobs_pkey PRIMARY KEY (id); - - --- --- Name: badges badges_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.badges - ADD CONSTRAINT badges_pkey PRIMARY KEY (id); - - --- --- Name: banned_users banned_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.banned_users - ADD CONSTRAINT banned_users_pkey PRIMARY KEY (user_id); - - --- --- Name: batched_background_migration_job_transition_logs batched_background_migration_job_transition_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.batched_background_migration_job_transition_logs - ADD CONSTRAINT batched_background_migration_job_transition_logs_pkey PRIMARY KEY (id, created_at); - - --- --- Name: batched_background_migration_jobs batched_background_migration_jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.batched_background_migration_jobs - ADD CONSTRAINT batched_background_migration_jobs_pkey PRIMARY KEY (id); - - --- --- Name: batched_background_migrations batched_background_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.batched_background_migrations - ADD CONSTRAINT batched_background_migrations_pkey PRIMARY KEY (id); - - --- --- Name: board_assignees board_assignees_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.board_assignees - ADD CONSTRAINT board_assignees_pkey PRIMARY KEY (id); - - --- --- Name: board_group_recent_visits board_group_recent_visits_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.board_group_recent_visits - ADD CONSTRAINT board_group_recent_visits_pkey PRIMARY KEY (id); - - --- --- Name: board_labels board_labels_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.board_labels - ADD CONSTRAINT board_labels_pkey PRIMARY KEY (id); - - --- --- Name: board_project_recent_visits board_project_recent_visits_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.board_project_recent_visits - ADD CONSTRAINT board_project_recent_visits_pkey PRIMARY KEY (id); - - --- --- Name: board_user_preferences board_user_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.board_user_preferences - ADD CONSTRAINT board_user_preferences_pkey PRIMARY KEY (id); - - --- --- Name: boards_epic_board_labels boards_epic_board_labels_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.boards_epic_board_labels - ADD CONSTRAINT boards_epic_board_labels_pkey PRIMARY KEY (id); - - --- --- Name: boards_epic_board_positions boards_epic_board_positions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.boards_epic_board_positions - ADD CONSTRAINT boards_epic_board_positions_pkey PRIMARY KEY (id); - - --- --- Name: boards_epic_board_recent_visits boards_epic_board_recent_visits_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.boards_epic_board_recent_visits - ADD CONSTRAINT boards_epic_board_recent_visits_pkey PRIMARY KEY (id); - - --- --- Name: boards_epic_boards boards_epic_boards_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.boards_epic_boards - ADD CONSTRAINT boards_epic_boards_pkey PRIMARY KEY (id); - - --- --- Name: boards_epic_list_user_preferences boards_epic_list_user_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.boards_epic_list_user_preferences - ADD CONSTRAINT boards_epic_list_user_preferences_pkey PRIMARY KEY (id); - - --- --- Name: boards_epic_lists boards_epic_lists_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.boards_epic_lists - ADD CONSTRAINT boards_epic_lists_pkey PRIMARY KEY (id); - - --- --- Name: boards_epic_user_preferences boards_epic_user_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.boards_epic_user_preferences - ADD CONSTRAINT boards_epic_user_preferences_pkey PRIMARY KEY (id); - - --- --- Name: boards boards_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.boards - ADD CONSTRAINT boards_pkey PRIMARY KEY (id); - - --- --- Name: broadcast_messages broadcast_messages_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.broadcast_messages - ADD CONSTRAINT broadcast_messages_pkey PRIMARY KEY (id); - - --- --- Name: bulk_import_batch_trackers bulk_import_batch_trackers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.bulk_import_batch_trackers - ADD CONSTRAINT bulk_import_batch_trackers_pkey PRIMARY KEY (id); - - --- --- Name: bulk_import_configurations bulk_import_configurations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.bulk_import_configurations - ADD CONSTRAINT bulk_import_configurations_pkey PRIMARY KEY (id); - - --- --- Name: bulk_import_entities bulk_import_entities_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.bulk_import_entities - ADD CONSTRAINT bulk_import_entities_pkey PRIMARY KEY (id); - - --- --- Name: bulk_import_export_batches bulk_import_export_batches_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.bulk_import_export_batches - ADD CONSTRAINT bulk_import_export_batches_pkey PRIMARY KEY (id); - - --- --- Name: bulk_import_export_uploads bulk_import_export_uploads_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.bulk_import_export_uploads - ADD CONSTRAINT bulk_import_export_uploads_pkey PRIMARY KEY (id); - - --- --- Name: bulk_import_exports bulk_import_exports_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.bulk_import_exports - ADD CONSTRAINT bulk_import_exports_pkey PRIMARY KEY (id); - - --- --- Name: bulk_import_failures bulk_import_failures_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.bulk_import_failures - ADD CONSTRAINT bulk_import_failures_pkey PRIMARY KEY (id); - - --- --- Name: bulk_import_trackers bulk_import_trackers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.bulk_import_trackers - ADD CONSTRAINT bulk_import_trackers_pkey PRIMARY KEY (id); - - --- --- Name: bulk_imports bulk_imports_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.bulk_imports - ADD CONSTRAINT bulk_imports_pkey PRIMARY KEY (id); - - --- --- Name: catalog_resource_components catalog_resource_components_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.catalog_resource_components - ADD CONSTRAINT catalog_resource_components_pkey PRIMARY KEY (id); - - --- --- Name: catalog_resource_versions catalog_resource_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.catalog_resource_versions - ADD CONSTRAINT catalog_resource_versions_pkey PRIMARY KEY (id); - - --- --- Name: catalog_resources catalog_resources_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.catalog_resources - ADD CONSTRAINT catalog_resources_pkey PRIMARY KEY (id); - - --- --- Name: catalog_verified_namespaces catalog_verified_namespaces_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.catalog_verified_namespaces - ADD CONSTRAINT catalog_verified_namespaces_pkey PRIMARY KEY (id); - - --- --- Name: chat_names chat_names_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.chat_names - ADD CONSTRAINT chat_names_pkey PRIMARY KEY (id); - - --- --- Name: chat_teams chat_teams_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.chat_teams - ADD CONSTRAINT chat_teams_pkey PRIMARY KEY (id); - - --- --- Name: workspaces check_2a89035b04; Type: CHECK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE public.workspaces - ADD CONSTRAINT check_2a89035b04 CHECK ((personal_access_token_id IS NOT NULL)) NOT VALID; - - --- --- Name: vulnerability_scanners check_37608c9db5; Type: CHECK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE public.vulnerability_scanners - ADD CONSTRAINT check_37608c9db5 CHECK ((char_length(vendor) <= 255)) NOT VALID; - - --- --- Name: ci_runners check_46c685e76f; Type: CHECK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE public.ci_runners - ADD CONSTRAINT check_46c685e76f CHECK ((char_length((description)::text) <= 1024)) NOT VALID; - - --- --- Name: ci_job_variables check_567d1ccb72; Type: CHECK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE public.ci_job_variables - ADD CONSTRAINT check_567d1ccb72 CHECK ((project_id IS NOT NULL)) NOT VALID; - - --- --- Name: ci_runners check_91230910ec; Type: CHECK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE public.ci_runners - ADD CONSTRAINT check_91230910ec CHECK ((char_length((name)::text) <= 256)) NOT VALID; - - --- --- Name: sprints check_ccd8a1eae0; Type: CHECK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE public.sprints - ADD CONSTRAINT check_ccd8a1eae0 CHECK ((start_date IS NOT NULL)) NOT VALID; - - --- --- Name: group_import_states check_cda75c7c3f; Type: CHECK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE public.group_import_states - ADD CONSTRAINT check_cda75c7c3f CHECK ((user_id IS NOT NULL)) NOT VALID; - - --- --- Name: packages_packages check_d6301aedeb; Type: CHECK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE public.packages_packages - ADD CONSTRAINT check_d6301aedeb CHECK ((char_length(status_message) <= 255)) NOT VALID; - - --- --- Name: sprints check_df3816aed7; Type: CHECK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE public.sprints - ADD CONSTRAINT check_df3816aed7 CHECK ((due_date IS NOT NULL)) NOT VALID; - - --- --- Name: web_hook_logs check_df72cb58f5; Type: CHECK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE public.web_hook_logs - ADD CONSTRAINT check_df72cb58f5 CHECK ((char_length(url_hash) <= 44)) NOT VALID; - - --- --- Name: projects check_fa75869cb1; Type: CHECK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE public.projects - ADD CONSTRAINT check_fa75869cb1 CHECK ((project_namespace_id IS NOT NULL)) NOT VALID; - - --- --- Name: ci_build_needs ci_build_needs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_build_needs - ADD CONSTRAINT ci_build_needs_pkey PRIMARY KEY (id); - - --- --- Name: ci_build_pending_states ci_build_pending_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_build_pending_states - ADD CONSTRAINT ci_build_pending_states_pkey PRIMARY KEY (id); - - --- --- Name: ci_build_report_results ci_build_report_results_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_build_report_results - ADD CONSTRAINT ci_build_report_results_pkey PRIMARY KEY (build_id); - - --- --- Name: ci_build_trace_chunks ci_build_trace_chunks_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_build_trace_chunks - ADD CONSTRAINT ci_build_trace_chunks_pkey PRIMARY KEY (id); - - --- --- Name: p_ci_build_trace_metadata p_ci_build_trace_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_ci_build_trace_metadata - ADD CONSTRAINT p_ci_build_trace_metadata_pkey PRIMARY KEY (build_id, partition_id); - - --- --- Name: ci_build_trace_metadata ci_build_trace_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_build_trace_metadata - ADD CONSTRAINT ci_build_trace_metadata_pkey PRIMARY KEY (build_id, partition_id); - - --- --- Name: p_ci_builds_metadata p_ci_builds_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_ci_builds_metadata - ADD CONSTRAINT p_ci_builds_metadata_pkey PRIMARY KEY (id, partition_id); - - --- --- Name: ci_builds_metadata ci_builds_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_builds_metadata - ADD CONSTRAINT ci_builds_metadata_pkey PRIMARY KEY (id, partition_id); - - --- --- Name: p_ci_builds p_ci_builds_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_ci_builds - ADD CONSTRAINT p_ci_builds_pkey PRIMARY KEY (id, partition_id); - - --- --- Name: ci_builds ci_builds_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_builds - ADD CONSTRAINT ci_builds_pkey PRIMARY KEY (id, partition_id); - - --- --- Name: ci_builds_runner_session ci_builds_runner_session_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_builds_runner_session - ADD CONSTRAINT ci_builds_runner_session_pkey PRIMARY KEY (id); - - --- --- Name: ci_cost_settings ci_cost_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_cost_settings - ADD CONSTRAINT ci_cost_settings_pkey PRIMARY KEY (runner_id); - - --- --- Name: ci_daily_build_group_report_results ci_daily_build_group_report_results_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_daily_build_group_report_results - ADD CONSTRAINT ci_daily_build_group_report_results_pkey PRIMARY KEY (id); - - --- --- Name: ci_deleted_objects ci_deleted_objects_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_deleted_objects - ADD CONSTRAINT ci_deleted_objects_pkey PRIMARY KEY (id); - - --- --- Name: ci_freeze_periods ci_freeze_periods_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_freeze_periods - ADD CONSTRAINT ci_freeze_periods_pkey PRIMARY KEY (id); - - --- --- Name: ci_group_variables ci_group_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_group_variables - ADD CONSTRAINT ci_group_variables_pkey PRIMARY KEY (id); - - --- --- Name: ci_instance_variables ci_instance_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_instance_variables - ADD CONSTRAINT ci_instance_variables_pkey PRIMARY KEY (id); - - --- --- Name: ci_job_artifact_states ci_job_artifact_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_job_artifact_states - ADD CONSTRAINT ci_job_artifact_states_pkey PRIMARY KEY (job_artifact_id); - - --- --- Name: p_ci_job_artifacts p_ci_job_artifacts_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_ci_job_artifacts - ADD CONSTRAINT p_ci_job_artifacts_pkey PRIMARY KEY (id, partition_id); - - --- --- Name: ci_job_artifacts ci_job_artifacts_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_job_artifacts - ADD CONSTRAINT ci_job_artifacts_pkey PRIMARY KEY (id, partition_id); - - --- --- Name: ci_job_token_group_scope_links ci_job_token_group_scope_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_job_token_group_scope_links - ADD CONSTRAINT ci_job_token_group_scope_links_pkey PRIMARY KEY (id); - - --- --- Name: ci_job_token_project_scope_links ci_job_token_project_scope_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_job_token_project_scope_links - ADD CONSTRAINT ci_job_token_project_scope_links_pkey PRIMARY KEY (id); - - --- --- Name: ci_job_variables ci_job_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_job_variables - ADD CONSTRAINT ci_job_variables_pkey PRIMARY KEY (id); - - --- --- Name: ci_minutes_additional_packs ci_minutes_additional_packs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_minutes_additional_packs - ADD CONSTRAINT ci_minutes_additional_packs_pkey PRIMARY KEY (id); - - --- --- Name: ci_namespace_mirrors ci_namespace_mirrors_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_namespace_mirrors - ADD CONSTRAINT ci_namespace_mirrors_pkey PRIMARY KEY (id); - - --- --- Name: ci_namespace_monthly_usages ci_namespace_monthly_usages_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_namespace_monthly_usages - ADD CONSTRAINT ci_namespace_monthly_usages_pkey PRIMARY KEY (id); - - --- --- Name: ci_partitions ci_partitions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_partitions - ADD CONSTRAINT ci_partitions_pkey PRIMARY KEY (id); - - --- --- Name: ci_pending_builds ci_pending_builds_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_pending_builds - ADD CONSTRAINT ci_pending_builds_pkey PRIMARY KEY (id); - - --- --- Name: ci_pipeline_artifacts ci_pipeline_artifacts_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_pipeline_artifacts - ADD CONSTRAINT ci_pipeline_artifacts_pkey PRIMARY KEY (id); - - --- --- Name: ci_pipeline_chat_data ci_pipeline_chat_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_pipeline_chat_data - ADD CONSTRAINT ci_pipeline_chat_data_pkey PRIMARY KEY (id); - - --- --- Name: ci_pipeline_messages ci_pipeline_messages_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_pipeline_messages - ADD CONSTRAINT ci_pipeline_messages_pkey PRIMARY KEY (id); - - --- --- Name: ci_pipeline_metadata ci_pipeline_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_pipeline_metadata - ADD CONSTRAINT ci_pipeline_metadata_pkey PRIMARY KEY (pipeline_id); - - --- --- Name: ci_pipeline_schedule_variables ci_pipeline_schedule_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_pipeline_schedule_variables - ADD CONSTRAINT ci_pipeline_schedule_variables_pkey PRIMARY KEY (id); - - --- --- Name: ci_pipeline_schedules ci_pipeline_schedules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_pipeline_schedules - ADD CONSTRAINT ci_pipeline_schedules_pkey PRIMARY KEY (id); - - --- --- Name: p_ci_pipeline_variables p_ci_pipeline_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_ci_pipeline_variables - ADD CONSTRAINT p_ci_pipeline_variables_pkey PRIMARY KEY (id, partition_id); - - --- --- Name: ci_pipeline_variables ci_pipeline_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_pipeline_variables - ADD CONSTRAINT ci_pipeline_variables_pkey PRIMARY KEY (id, partition_id); - - --- --- Name: ci_pipelines_config ci_pipelines_config_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_pipelines_config - ADD CONSTRAINT ci_pipelines_config_pkey PRIMARY KEY (pipeline_id); - - --- --- Name: p_ci_pipelines p_ci_pipelines_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_ci_pipelines - ADD CONSTRAINT p_ci_pipelines_pkey PRIMARY KEY (id, partition_id); - - --- --- Name: ci_pipelines ci_pipelines_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_pipelines - ADD CONSTRAINT ci_pipelines_pkey PRIMARY KEY (id, partition_id); - - --- --- Name: ci_project_mirrors ci_project_mirrors_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_project_mirrors - ADD CONSTRAINT ci_project_mirrors_pkey PRIMARY KEY (id); - - --- --- Name: ci_project_monthly_usages ci_project_monthly_usages_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_project_monthly_usages - ADD CONSTRAINT ci_project_monthly_usages_pkey PRIMARY KEY (id); - - --- --- Name: ci_refs ci_refs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_refs - ADD CONSTRAINT ci_refs_pkey PRIMARY KEY (id); - - --- --- Name: ci_resource_groups ci_resource_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_resource_groups - ADD CONSTRAINT ci_resource_groups_pkey PRIMARY KEY (id); - - --- --- Name: ci_resources ci_resources_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_resources - ADD CONSTRAINT ci_resources_pkey PRIMARY KEY (id); - - --- --- Name: ci_runner_machines ci_runner_machines_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_runner_machines - ADD CONSTRAINT ci_runner_machines_pkey PRIMARY KEY (id); - - --- --- Name: ci_runner_namespaces ci_runner_namespaces_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_runner_namespaces - ADD CONSTRAINT ci_runner_namespaces_pkey PRIMARY KEY (id); - - --- --- Name: ci_runner_projects ci_runner_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_runner_projects - ADD CONSTRAINT ci_runner_projects_pkey PRIMARY KEY (id); - - --- --- Name: ci_runner_versions ci_runner_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_runner_versions - ADD CONSTRAINT ci_runner_versions_pkey PRIMARY KEY (version); - - --- --- Name: ci_runners ci_runners_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_runners - ADD CONSTRAINT ci_runners_pkey PRIMARY KEY (id); - - --- --- Name: ci_running_builds ci_running_builds_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_running_builds - ADD CONSTRAINT ci_running_builds_pkey PRIMARY KEY (id); - - --- --- Name: ci_secure_file_states ci_secure_file_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_secure_file_states - ADD CONSTRAINT ci_secure_file_states_pkey PRIMARY KEY (ci_secure_file_id); - - --- --- Name: ci_secure_files ci_secure_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_secure_files - ADD CONSTRAINT ci_secure_files_pkey PRIMARY KEY (id); - - --- --- Name: ci_sources_pipelines ci_sources_pipelines_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_sources_pipelines - ADD CONSTRAINT ci_sources_pipelines_pkey PRIMARY KEY (id); - - --- --- Name: ci_sources_projects ci_sources_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_sources_projects - ADD CONSTRAINT ci_sources_projects_pkey PRIMARY KEY (id); - - --- --- Name: p_ci_stages p_ci_stages_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_ci_stages - ADD CONSTRAINT p_ci_stages_pkey PRIMARY KEY (id, partition_id); - - --- --- Name: ci_stages ci_stages_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_stages - ADD CONSTRAINT ci_stages_pkey PRIMARY KEY (id, partition_id); - - --- --- Name: ci_subscriptions_projects ci_subscriptions_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_subscriptions_projects - ADD CONSTRAINT ci_subscriptions_projects_pkey PRIMARY KEY (id); - - --- --- Name: ci_trigger_requests ci_trigger_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_trigger_requests - ADD CONSTRAINT ci_trigger_requests_pkey PRIMARY KEY (id); - - --- --- Name: ci_triggers ci_triggers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_triggers - ADD CONSTRAINT ci_triggers_pkey PRIMARY KEY (id); - - --- --- Name: ci_unit_test_failures ci_unit_test_failures_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_unit_test_failures - ADD CONSTRAINT ci_unit_test_failures_pkey PRIMARY KEY (id); - - --- --- Name: ci_unit_tests ci_unit_tests_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_unit_tests - ADD CONSTRAINT ci_unit_tests_pkey PRIMARY KEY (id); - - --- --- Name: ci_variables ci_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ci_variables - ADD CONSTRAINT ci_variables_pkey PRIMARY KEY (id); - - --- --- Name: cloud_connector_access cloud_connector_access_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.cloud_connector_access - ADD CONSTRAINT cloud_connector_access_pkey PRIMARY KEY (id); - - --- --- Name: cluster_agent_tokens cluster_agent_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.cluster_agent_tokens - ADD CONSTRAINT cluster_agent_tokens_pkey PRIMARY KEY (id); - - --- --- Name: cluster_agent_url_configurations cluster_agent_url_configurations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.cluster_agent_url_configurations - ADD CONSTRAINT cluster_agent_url_configurations_pkey PRIMARY KEY (id); - - --- --- Name: cluster_agents cluster_agents_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.cluster_agents - ADD CONSTRAINT cluster_agents_pkey PRIMARY KEY (id); - - --- --- Name: cluster_enabled_grants cluster_enabled_grants_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.cluster_enabled_grants - ADD CONSTRAINT cluster_enabled_grants_pkey PRIMARY KEY (id); - - --- --- Name: cluster_groups cluster_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.cluster_groups - ADD CONSTRAINT cluster_groups_pkey PRIMARY KEY (id); - - --- --- Name: cluster_platforms_kubernetes cluster_platforms_kubernetes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.cluster_platforms_kubernetes - ADD CONSTRAINT cluster_platforms_kubernetes_pkey PRIMARY KEY (id); - - --- --- Name: cluster_projects cluster_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.cluster_projects - ADD CONSTRAINT cluster_projects_pkey PRIMARY KEY (id); - - --- --- Name: cluster_providers_aws cluster_providers_aws_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.cluster_providers_aws - ADD CONSTRAINT cluster_providers_aws_pkey PRIMARY KEY (id); - - --- --- Name: cluster_providers_gcp cluster_providers_gcp_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.cluster_providers_gcp - ADD CONSTRAINT cluster_providers_gcp_pkey PRIMARY KEY (id); - - --- --- Name: clusters_integration_prometheus clusters_integration_prometheus_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.clusters_integration_prometheus - ADD CONSTRAINT clusters_integration_prometheus_pkey PRIMARY KEY (cluster_id); - - --- --- Name: clusters_kubernetes_namespaces clusters_kubernetes_namespaces_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.clusters_kubernetes_namespaces - ADD CONSTRAINT clusters_kubernetes_namespaces_pkey PRIMARY KEY (id); - - --- --- Name: clusters clusters_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.clusters - ADD CONSTRAINT clusters_pkey PRIMARY KEY (id); - - --- --- Name: commit_user_mentions commit_user_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.commit_user_mentions - ADD CONSTRAINT commit_user_mentions_pkey PRIMARY KEY (id); - - --- --- Name: compliance_checks compliance_checks_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.compliance_checks - ADD CONSTRAINT compliance_checks_pkey PRIMARY KEY (id); - - --- --- Name: compliance_framework_security_policies compliance_framework_security_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.compliance_framework_security_policies - ADD CONSTRAINT compliance_framework_security_policies_pkey PRIMARY KEY (id); - - --- --- Name: compliance_management_frameworks compliance_management_frameworks_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.compliance_management_frameworks - ADD CONSTRAINT compliance_management_frameworks_pkey PRIMARY KEY (id); - - --- --- Name: compliance_requirements compliance_requirements_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.compliance_requirements - ADD CONSTRAINT compliance_requirements_pkey PRIMARY KEY (id); - - --- --- Name: container_expiration_policies container_expiration_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.container_expiration_policies - ADD CONSTRAINT container_expiration_policies_pkey PRIMARY KEY (project_id); - - --- --- Name: container_registry_data_repair_details container_registry_data_repair_details_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.container_registry_data_repair_details - ADD CONSTRAINT container_registry_data_repair_details_pkey PRIMARY KEY (project_id); - - --- --- Name: container_registry_protection_rules container_registry_protection_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.container_registry_protection_rules - ADD CONSTRAINT container_registry_protection_rules_pkey PRIMARY KEY (id); - - --- --- Name: container_repositories container_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.container_repositories - ADD CONSTRAINT container_repositories_pkey PRIMARY KEY (id); - - --- --- Name: container_repository_states container_repository_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.container_repository_states - ADD CONSTRAINT container_repository_states_pkey PRIMARY KEY (container_repository_id); - - --- --- Name: content_blocked_states content_blocked_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.content_blocked_states - ADD CONSTRAINT content_blocked_states_pkey PRIMARY KEY (id); - - --- --- Name: conversational_development_index_metrics conversational_development_index_metrics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.conversational_development_index_metrics - ADD CONSTRAINT conversational_development_index_metrics_pkey PRIMARY KEY (id); - - --- --- Name: country_access_logs country_access_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.country_access_logs - ADD CONSTRAINT country_access_logs_pkey PRIMARY KEY (id); - - --- --- Name: coverage_fuzzing_corpuses coverage_fuzzing_corpuses_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.coverage_fuzzing_corpuses - ADD CONSTRAINT coverage_fuzzing_corpuses_pkey PRIMARY KEY (id); - - --- --- Name: csv_issue_imports csv_issue_imports_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.csv_issue_imports - ADD CONSTRAINT csv_issue_imports_pkey PRIMARY KEY (id); - - --- --- Name: custom_emoji custom_emoji_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.custom_emoji - ADD CONSTRAINT custom_emoji_pkey PRIMARY KEY (id); - - --- --- Name: custom_software_licenses custom_software_licenses_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.custom_software_licenses - ADD CONSTRAINT custom_software_licenses_pkey PRIMARY KEY (id); - - --- --- Name: customer_relations_contacts customer_relations_contacts_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.customer_relations_contacts - ADD CONSTRAINT customer_relations_contacts_pkey PRIMARY KEY (id); - - --- --- Name: customer_relations_organizations customer_relations_organizations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.customer_relations_organizations - ADD CONSTRAINT customer_relations_organizations_pkey PRIMARY KEY (id); - - --- --- Name: dast_pre_scan_verification_steps dast_pre_scan_verification_steps_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_pre_scan_verification_steps - ADD CONSTRAINT dast_pre_scan_verification_steps_pkey PRIMARY KEY (id); - - --- --- Name: dast_pre_scan_verifications dast_pre_scan_verifications_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_pre_scan_verifications - ADD CONSTRAINT dast_pre_scan_verifications_pkey PRIMARY KEY (id); - - --- --- Name: dast_profile_schedules dast_profile_schedules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_profile_schedules - ADD CONSTRAINT dast_profile_schedules_pkey PRIMARY KEY (id); - - --- --- Name: dast_profiles_pipelines dast_profiles_pipelines_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_profiles_pipelines - ADD CONSTRAINT dast_profiles_pipelines_pkey PRIMARY KEY (dast_profile_id, ci_pipeline_id); - - --- --- Name: dast_profiles dast_profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_profiles - ADD CONSTRAINT dast_profiles_pkey PRIMARY KEY (id); - - --- --- Name: dast_profiles_tags dast_profiles_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_profiles_tags - ADD CONSTRAINT dast_profiles_tags_pkey PRIMARY KEY (id); - - --- --- Name: dast_scanner_profiles_builds dast_scanner_profiles_builds_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_scanner_profiles_builds - ADD CONSTRAINT dast_scanner_profiles_builds_pkey PRIMARY KEY (dast_scanner_profile_id, ci_build_id); - - --- --- Name: dast_scanner_profiles dast_scanner_profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_scanner_profiles - ADD CONSTRAINT dast_scanner_profiles_pkey PRIMARY KEY (id); - - --- --- Name: dast_site_profile_secret_variables dast_site_profile_secret_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_site_profile_secret_variables - ADD CONSTRAINT dast_site_profile_secret_variables_pkey PRIMARY KEY (id); - - --- --- Name: dast_site_profiles_builds dast_site_profiles_builds_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_site_profiles_builds - ADD CONSTRAINT dast_site_profiles_builds_pkey PRIMARY KEY (dast_site_profile_id, ci_build_id); - - --- --- Name: dast_site_profiles dast_site_profiles_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_site_profiles - ADD CONSTRAINT dast_site_profiles_pkey PRIMARY KEY (id); - - --- --- Name: dast_site_tokens dast_site_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_site_tokens - ADD CONSTRAINT dast_site_tokens_pkey PRIMARY KEY (id); - - --- --- Name: dast_site_validations dast_site_validations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_site_validations - ADD CONSTRAINT dast_site_validations_pkey PRIMARY KEY (id); - - --- --- Name: dast_sites dast_sites_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dast_sites - ADD CONSTRAINT dast_sites_pkey PRIMARY KEY (id); - - --- --- Name: namespace_settings default_branch_protection_defaults_size_constraint; Type: CHECK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE public.namespace_settings - ADD CONSTRAINT default_branch_protection_defaults_size_constraint CHECK ((octet_length((default_branch_protection_defaults)::text) <= 1024)) NOT VALID; - - --- --- Name: application_settings default_branch_protection_defaults_size_constraint; Type: CHECK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE public.application_settings - ADD CONSTRAINT default_branch_protection_defaults_size_constraint CHECK ((octet_length((default_branch_protection_defaults)::text) <= 1024)) NOT VALID; - - --- --- Name: dependency_list_export_parts dependency_list_export_parts_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dependency_list_export_parts - ADD CONSTRAINT dependency_list_export_parts_pkey PRIMARY KEY (id); - - --- --- Name: dependency_list_exports dependency_list_exports_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dependency_list_exports - ADD CONSTRAINT dependency_list_exports_pkey PRIMARY KEY (id); - - --- --- Name: dependency_proxy_blob_states dependency_proxy_blob_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dependency_proxy_blob_states - ADD CONSTRAINT dependency_proxy_blob_states_pkey PRIMARY KEY (dependency_proxy_blob_id); - - --- --- Name: dependency_proxy_blobs dependency_proxy_blobs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dependency_proxy_blobs - ADD CONSTRAINT dependency_proxy_blobs_pkey PRIMARY KEY (id); - - --- --- Name: dependency_proxy_group_settings dependency_proxy_group_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dependency_proxy_group_settings - ADD CONSTRAINT dependency_proxy_group_settings_pkey PRIMARY KEY (id); - - --- --- Name: dependency_proxy_image_ttl_group_policies dependency_proxy_image_ttl_group_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dependency_proxy_image_ttl_group_policies - ADD CONSTRAINT dependency_proxy_image_ttl_group_policies_pkey PRIMARY KEY (group_id); - - --- --- Name: dependency_proxy_manifest_states dependency_proxy_manifest_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dependency_proxy_manifest_states - ADD CONSTRAINT dependency_proxy_manifest_states_pkey PRIMARY KEY (dependency_proxy_manifest_id); - - --- --- Name: dependency_proxy_manifests dependency_proxy_manifests_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dependency_proxy_manifests - ADD CONSTRAINT dependency_proxy_manifests_pkey PRIMARY KEY (id); - - --- --- Name: dependency_proxy_packages_settings dependency_proxy_packages_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dependency_proxy_packages_settings - ADD CONSTRAINT dependency_proxy_packages_settings_pkey PRIMARY KEY (project_id); - - --- --- Name: deploy_keys_projects deploy_keys_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.deploy_keys_projects - ADD CONSTRAINT deploy_keys_projects_pkey PRIMARY KEY (id); - - --- --- Name: deploy_tokens deploy_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.deploy_tokens - ADD CONSTRAINT deploy_tokens_pkey PRIMARY KEY (id); - - --- --- Name: deployment_approvals deployment_approvals_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.deployment_approvals - ADD CONSTRAINT deployment_approvals_pkey PRIMARY KEY (id); - - --- --- Name: deployment_clusters deployment_clusters_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.deployment_clusters - ADD CONSTRAINT deployment_clusters_pkey PRIMARY KEY (deployment_id); - - --- --- Name: deployment_merge_requests deployment_merge_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.deployment_merge_requests - ADD CONSTRAINT deployment_merge_requests_pkey PRIMARY KEY (deployment_id, merge_request_id); - - --- --- Name: deployments deployments_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.deployments - ADD CONSTRAINT deployments_pkey PRIMARY KEY (id); - - --- --- Name: description_versions description_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.description_versions - ADD CONSTRAINT description_versions_pkey PRIMARY KEY (id); - - --- --- Name: design_management_designs design_management_designs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.design_management_designs - ADD CONSTRAINT design_management_designs_pkey PRIMARY KEY (id); - - --- --- Name: design_management_designs_versions design_management_designs_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.design_management_designs_versions - ADD CONSTRAINT design_management_designs_versions_pkey PRIMARY KEY (id); - - --- --- Name: design_management_repositories design_management_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.design_management_repositories - ADD CONSTRAINT design_management_repositories_pkey PRIMARY KEY (id); - - --- --- Name: design_management_repository_states design_management_repository_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.design_management_repository_states - ADD CONSTRAINT design_management_repository_states_pkey PRIMARY KEY (design_management_repository_id); - - --- --- Name: design_management_versions design_management_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.design_management_versions - ADD CONSTRAINT design_management_versions_pkey PRIMARY KEY (id); - - --- --- Name: design_user_mentions design_user_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.design_user_mentions - ADD CONSTRAINT design_user_mentions_pkey PRIMARY KEY (id); - - --- --- Name: detached_partitions detached_partitions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.detached_partitions - ADD CONSTRAINT detached_partitions_pkey PRIMARY KEY (id); - - --- --- Name: diff_note_positions diff_note_positions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.diff_note_positions - ADD CONSTRAINT diff_note_positions_pkey PRIMARY KEY (id); - - --- --- Name: dingtalk_tracker_data dingtalk_tracker_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dingtalk_tracker_data - ADD CONSTRAINT dingtalk_tracker_data_pkey PRIMARY KEY (id); - - --- --- Name: dora_configurations dora_configurations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dora_configurations - ADD CONSTRAINT dora_configurations_pkey PRIMARY KEY (id); - - --- --- Name: dora_daily_metrics dora_daily_metrics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dora_daily_metrics - ADD CONSTRAINT dora_daily_metrics_pkey PRIMARY KEY (id); - - --- --- Name: dora_performance_scores dora_performance_scores_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.dora_performance_scores - ADD CONSTRAINT dora_performance_scores_pkey PRIMARY KEY (id); - - --- --- Name: draft_notes draft_notes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.draft_notes - ADD CONSTRAINT draft_notes_pkey PRIMARY KEY (id); - - --- --- Name: duo_workflows_checkpoints duo_workflows_checkpoints_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.duo_workflows_checkpoints - ADD CONSTRAINT duo_workflows_checkpoints_pkey PRIMARY KEY (id); - - --- --- Name: duo_workflows_workflows duo_workflows_workflows_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.duo_workflows_workflows - ADD CONSTRAINT duo_workflows_workflows_pkey PRIMARY KEY (id); - - --- --- Name: early_access_program_tracking_events early_access_program_tracking_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.early_access_program_tracking_events - ADD CONSTRAINT early_access_program_tracking_events_pkey PRIMARY KEY (id); - - --- --- Name: elastic_group_index_statuses elastic_group_index_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.elastic_group_index_statuses - ADD CONSTRAINT elastic_group_index_statuses_pkey PRIMARY KEY (namespace_id); - - --- --- Name: elastic_index_settings elastic_index_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.elastic_index_settings - ADD CONSTRAINT elastic_index_settings_pkey PRIMARY KEY (id); - - --- --- Name: elastic_reindexing_slices elastic_reindexing_slices_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.elastic_reindexing_slices - ADD CONSTRAINT elastic_reindexing_slices_pkey PRIMARY KEY (id); - - --- --- Name: elastic_reindexing_subtasks elastic_reindexing_subtasks_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.elastic_reindexing_subtasks - ADD CONSTRAINT elastic_reindexing_subtasks_pkey PRIMARY KEY (id); - - --- --- Name: elastic_reindexing_tasks elastic_reindexing_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.elastic_reindexing_tasks - ADD CONSTRAINT elastic_reindexing_tasks_pkey PRIMARY KEY (id); - - --- --- Name: elasticsearch_indexed_namespaces elasticsearch_indexed_namespaces_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.elasticsearch_indexed_namespaces - ADD CONSTRAINT elasticsearch_indexed_namespaces_pkey PRIMARY KEY (namespace_id); - - --- --- Name: elasticsearch_indexed_projects elasticsearch_indexed_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.elasticsearch_indexed_projects - ADD CONSTRAINT elasticsearch_indexed_projects_pkey PRIMARY KEY (project_id); - - --- --- Name: emails emails_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.emails - ADD CONSTRAINT emails_pkey PRIMARY KEY (id); - - --- --- Name: environments environments_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.environments - ADD CONSTRAINT environments_pkey PRIMARY KEY (id); - - --- --- Name: epic_issues epic_issues_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.epic_issues - ADD CONSTRAINT epic_issues_pkey PRIMARY KEY (id); - - --- --- Name: epic_metrics epic_metrics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.epic_metrics - ADD CONSTRAINT epic_metrics_pkey PRIMARY KEY (id); - - --- --- Name: epic_user_mentions epic_user_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.epic_user_mentions - ADD CONSTRAINT epic_user_mentions_pkey PRIMARY KEY (id); - - --- --- Name: epics epics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.epics - ADD CONSTRAINT epics_pkey PRIMARY KEY (id); - - --- --- Name: error_tracking_client_keys error_tracking_client_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.error_tracking_client_keys - ADD CONSTRAINT error_tracking_client_keys_pkey PRIMARY KEY (id); - - --- --- Name: error_tracking_error_events error_tracking_error_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.error_tracking_error_events - ADD CONSTRAINT error_tracking_error_events_pkey PRIMARY KEY (id); - - --- --- Name: error_tracking_errors error_tracking_errors_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.error_tracking_errors - ADD CONSTRAINT error_tracking_errors_pkey PRIMARY KEY (id); - - --- --- Name: events events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.events - ADD CONSTRAINT events_pkey PRIMARY KEY (id); - - --- --- Name: evidences evidences_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.evidences - ADD CONSTRAINT evidences_pkey PRIMARY KEY (id); - - --- --- Name: external_approval_rules external_approval_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.external_approval_rules - ADD CONSTRAINT external_approval_rules_pkey PRIMARY KEY (id); - - --- --- Name: external_pull_requests external_pull_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.external_pull_requests - ADD CONSTRAINT external_pull_requests_pkey PRIMARY KEY (id); - - --- --- Name: external_status_checks external_status_checks_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.external_status_checks - ADD CONSTRAINT external_status_checks_pkey PRIMARY KEY (id); - - --- --- Name: external_status_checks_protected_branches external_status_checks_protected_branches_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.external_status_checks_protected_branches - ADD CONSTRAINT external_status_checks_protected_branches_pkey PRIMARY KEY (id); - - --- --- Name: feature_gates feature_gates_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.feature_gates - ADD CONSTRAINT feature_gates_pkey PRIMARY KEY (id); - - --- --- Name: features features_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.features - ADD CONSTRAINT features_pkey PRIMARY KEY (id); - - --- --- Name: fork_network_members fork_network_members_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.fork_network_members - ADD CONSTRAINT fork_network_members_pkey PRIMARY KEY (id); - - --- --- Name: fork_networks fork_networks_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.fork_networks - ADD CONSTRAINT fork_networks_pkey PRIMARY KEY (id); - - --- --- Name: geo_cache_invalidation_events geo_cache_invalidation_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.geo_cache_invalidation_events - ADD CONSTRAINT geo_cache_invalidation_events_pkey PRIMARY KEY (id); - - --- --- Name: geo_event_log geo_event_log_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.geo_event_log - ADD CONSTRAINT geo_event_log_pkey PRIMARY KEY (id); - - --- --- Name: geo_events geo_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.geo_events - ADD CONSTRAINT geo_events_pkey PRIMARY KEY (id); - - --- --- Name: geo_node_namespace_links geo_node_namespace_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.geo_node_namespace_links - ADD CONSTRAINT geo_node_namespace_links_pkey PRIMARY KEY (id); - - --- --- Name: geo_node_statuses geo_node_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.geo_node_statuses - ADD CONSTRAINT geo_node_statuses_pkey PRIMARY KEY (id); - - --- --- Name: geo_nodes geo_nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.geo_nodes - ADD CONSTRAINT geo_nodes_pkey PRIMARY KEY (id); - - --- --- Name: ghost_user_migrations ghost_user_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ghost_user_migrations - ADD CONSTRAINT ghost_user_migrations_pkey PRIMARY KEY (id); - - --- --- Name: gitlab_subscription_histories gitlab_subscription_histories_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.gitlab_subscription_histories - ADD CONSTRAINT gitlab_subscription_histories_pkey PRIMARY KEY (id); - - --- --- Name: gitlab_subscriptions gitlab_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.gitlab_subscriptions - ADD CONSTRAINT gitlab_subscriptions_pkey PRIMARY KEY (id); - - --- --- Name: gpg_key_subkeys gpg_key_subkeys_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.gpg_key_subkeys - ADD CONSTRAINT gpg_key_subkeys_pkey PRIMARY KEY (id); - - --- --- Name: gpg_keys gpg_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.gpg_keys - ADD CONSTRAINT gpg_keys_pkey PRIMARY KEY (id); - - --- --- Name: gpg_signatures gpg_signatures_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.gpg_signatures - ADD CONSTRAINT gpg_signatures_pkey PRIMARY KEY (id); - - --- --- Name: grafana_integrations grafana_integrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.grafana_integrations - ADD CONSTRAINT grafana_integrations_pkey PRIMARY KEY (id); - - --- --- Name: group_audit_events group_audit_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_audit_events - ADD CONSTRAINT group_audit_events_pkey PRIMARY KEY (id, created_at); - - --- --- Name: group_crm_settings group_crm_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_crm_settings - ADD CONSTRAINT group_crm_settings_pkey PRIMARY KEY (group_id); - - --- --- Name: group_custom_attributes group_custom_attributes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_custom_attributes - ADD CONSTRAINT group_custom_attributes_pkey PRIMARY KEY (id); - - --- --- Name: group_deletion_schedules group_deletion_schedules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_deletion_schedules - ADD CONSTRAINT group_deletion_schedules_pkey PRIMARY KEY (group_id); - - --- --- Name: group_deploy_keys_groups group_deploy_keys_groups_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_deploy_keys_groups - ADD CONSTRAINT group_deploy_keys_groups_pkey PRIMARY KEY (id); - - --- --- Name: group_deploy_keys group_deploy_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_deploy_keys - ADD CONSTRAINT group_deploy_keys_pkey PRIMARY KEY (id); - - --- --- Name: group_deploy_tokens group_deploy_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_deploy_tokens - ADD CONSTRAINT group_deploy_tokens_pkey PRIMARY KEY (id); - - --- --- Name: group_features group_features_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_features - ADD CONSTRAINT group_features_pkey PRIMARY KEY (group_id); - - --- --- Name: group_group_links group_group_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_group_links - ADD CONSTRAINT group_group_links_pkey PRIMARY KEY (id); - - --- --- Name: group_import_states group_import_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_import_states - ADD CONSTRAINT group_import_states_pkey PRIMARY KEY (group_id); - - --- --- Name: group_merge_request_approval_settings group_merge_request_approval_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_merge_request_approval_settings - ADD CONSTRAINT group_merge_request_approval_settings_pkey PRIMARY KEY (group_id); - - --- --- Name: group_repository_storage_moves group_repository_storage_moves_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_repository_storage_moves - ADD CONSTRAINT group_repository_storage_moves_pkey PRIMARY KEY (id); - - --- --- Name: group_saved_replies group_saved_replies_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_saved_replies - ADD CONSTRAINT group_saved_replies_pkey PRIMARY KEY (id); - - --- --- Name: group_ssh_certificates group_ssh_certificates_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_ssh_certificates - ADD CONSTRAINT group_ssh_certificates_pkey PRIMARY KEY (id); - - --- --- Name: group_wiki_repositories group_wiki_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_wiki_repositories - ADD CONSTRAINT group_wiki_repositories_pkey PRIMARY KEY (group_id); - - --- --- Name: group_wiki_repository_states group_wiki_repository_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.group_wiki_repository_states - ADD CONSTRAINT group_wiki_repository_states_pkey PRIMARY KEY (id); - - --- --- Name: groups_visits groups_visits_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.groups_visits - ADD CONSTRAINT groups_visits_pkey PRIMARY KEY (id, visited_at); - - --- --- Name: historical_data historical_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.historical_data - ADD CONSTRAINT historical_data_pkey PRIMARY KEY (id); - - --- --- Name: identities identities_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.identities - ADD CONSTRAINT identities_pkey PRIMARY KEY (id); - - --- --- Name: import_export_uploads import_export_uploads_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.import_export_uploads - ADD CONSTRAINT import_export_uploads_pkey PRIMARY KEY (id); - - --- --- Name: import_failures import_failures_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.import_failures - ADD CONSTRAINT import_failures_pkey PRIMARY KEY (id); - - --- --- Name: import_placeholder_memberships import_placeholder_memberships_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.import_placeholder_memberships - ADD CONSTRAINT import_placeholder_memberships_pkey PRIMARY KEY (id); - - --- --- Name: import_source_user_placeholder_references import_source_user_placeholder_references_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.import_source_user_placeholder_references - ADD CONSTRAINT import_source_user_placeholder_references_pkey PRIMARY KEY (id); - - --- --- Name: import_source_users import_source_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.import_source_users - ADD CONSTRAINT import_source_users_pkey PRIMARY KEY (id); - - --- --- Name: incident_management_oncall_shifts inc_mgmnt_no_overlapping_oncall_shifts; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_oncall_shifts - ADD CONSTRAINT inc_mgmnt_no_overlapping_oncall_shifts EXCLUDE USING gist (rotation_id WITH =, tstzrange(starts_at, ends_at, '[)'::text) WITH &&); - - --- --- Name: incident_management_escalation_policies incident_management_escalation_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_escalation_policies - ADD CONSTRAINT incident_management_escalation_policies_pkey PRIMARY KEY (id); - - --- --- Name: incident_management_escalation_rules incident_management_escalation_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_escalation_rules - ADD CONSTRAINT incident_management_escalation_rules_pkey PRIMARY KEY (id); - - --- --- Name: incident_management_issuable_escalation_statuses incident_management_issuable_escalation_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_issuable_escalation_statuses - ADD CONSTRAINT incident_management_issuable_escalation_statuses_pkey PRIMARY KEY (id); - - --- --- Name: incident_management_oncall_participants incident_management_oncall_participants_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_oncall_participants - ADD CONSTRAINT incident_management_oncall_participants_pkey PRIMARY KEY (id); - - --- --- Name: incident_management_oncall_rotations incident_management_oncall_rotations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_oncall_rotations - ADD CONSTRAINT incident_management_oncall_rotations_pkey PRIMARY KEY (id); - - --- --- Name: incident_management_oncall_schedules incident_management_oncall_schedules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_oncall_schedules - ADD CONSTRAINT incident_management_oncall_schedules_pkey PRIMARY KEY (id); - - --- --- Name: incident_management_oncall_shifts incident_management_oncall_shifts_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_oncall_shifts - ADD CONSTRAINT incident_management_oncall_shifts_pkey PRIMARY KEY (id); - - --- --- Name: incident_management_pending_alert_escalations incident_management_pending_alert_escalations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_pending_alert_escalations - ADD CONSTRAINT incident_management_pending_alert_escalations_pkey PRIMARY KEY (id, process_at); - - --- --- Name: incident_management_pending_issue_escalations incident_management_pending_issue_escalations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_pending_issue_escalations - ADD CONSTRAINT incident_management_pending_issue_escalations_pkey PRIMARY KEY (id, process_at); - - --- --- Name: incident_management_timeline_event_tag_links incident_management_timeline_event_tag_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_timeline_event_tag_links - ADD CONSTRAINT incident_management_timeline_event_tag_links_pkey PRIMARY KEY (id); - - --- --- Name: incident_management_timeline_event_tags incident_management_timeline_event_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_timeline_event_tags - ADD CONSTRAINT incident_management_timeline_event_tags_pkey PRIMARY KEY (id); - - --- --- Name: incident_management_timeline_events incident_management_timeline_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.incident_management_timeline_events - ADD CONSTRAINT incident_management_timeline_events_pkey PRIMARY KEY (id); - - --- --- Name: index_statuses index_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.index_statuses - ADD CONSTRAINT index_statuses_pkey PRIMARY KEY (id); - - --- --- Name: insights insights_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.insights - ADD CONSTRAINT insights_pkey PRIMARY KEY (id); - - --- --- Name: instance_audit_events instance_audit_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.instance_audit_events - ADD CONSTRAINT instance_audit_events_pkey PRIMARY KEY (id, created_at); - - --- --- Name: instance_audit_events_streaming_headers instance_audit_events_streaming_headers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.instance_audit_events_streaming_headers - ADD CONSTRAINT instance_audit_events_streaming_headers_pkey PRIMARY KEY (id); - - --- --- Name: integrations integrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.integrations - ADD CONSTRAINT integrations_pkey PRIMARY KEY (id); - - --- --- Name: internal_ids internal_ids_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.internal_ids - ADD CONSTRAINT internal_ids_pkey PRIMARY KEY (id); - - --- --- Name: ip_restrictions ip_restrictions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ip_restrictions - ADD CONSTRAINT ip_restrictions_pkey PRIMARY KEY (id); - - --- --- Name: issuable_metric_images issuable_metric_images_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issuable_metric_images - ADD CONSTRAINT issuable_metric_images_pkey PRIMARY KEY (id); - - --- --- Name: issuable_resource_links issuable_resource_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issuable_resource_links - ADD CONSTRAINT issuable_resource_links_pkey PRIMARY KEY (id); - - --- --- Name: issuable_severities issuable_severities_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issuable_severities - ADD CONSTRAINT issuable_severities_pkey PRIMARY KEY (id); - - --- --- Name: issuable_slas issuable_slas_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issuable_slas - ADD CONSTRAINT issuable_slas_pkey PRIMARY KEY (id); - - --- --- Name: issue_assignees issue_assignees_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issue_assignees - ADD CONSTRAINT issue_assignees_pkey PRIMARY KEY (issue_id, user_id); - - --- --- Name: issue_assignment_events issue_assignment_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issue_assignment_events - ADD CONSTRAINT issue_assignment_events_pkey PRIMARY KEY (id); - - --- --- Name: issue_customer_relations_contacts issue_customer_relations_contacts_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issue_customer_relations_contacts - ADD CONSTRAINT issue_customer_relations_contacts_pkey PRIMARY KEY (id); - - --- --- Name: issue_email_participants issue_email_participants_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issue_email_participants - ADD CONSTRAINT issue_email_participants_pkey PRIMARY KEY (id); - - --- --- Name: issue_emails issue_emails_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issue_emails - ADD CONSTRAINT issue_emails_pkey PRIMARY KEY (id); - - --- --- Name: issue_links issue_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issue_links - ADD CONSTRAINT issue_links_pkey PRIMARY KEY (id); - - --- --- Name: issue_metrics issue_metrics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issue_metrics - ADD CONSTRAINT issue_metrics_pkey PRIMARY KEY (id); - - --- --- Name: issue_tracker_data issue_tracker_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issue_tracker_data - ADD CONSTRAINT issue_tracker_data_pkey PRIMARY KEY (id); - - --- --- Name: issue_user_mentions issue_user_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issue_user_mentions - ADD CONSTRAINT issue_user_mentions_pkey PRIMARY KEY (id); - - --- --- Name: issues issues_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issues - ADD CONSTRAINT issues_pkey PRIMARY KEY (id); - - --- --- Name: issues_prometheus_alert_events issues_prometheus_alert_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issues_prometheus_alert_events - ADD CONSTRAINT issues_prometheus_alert_events_pkey PRIMARY KEY (issue_id, prometheus_alert_event_id); - - --- --- Name: issues_self_managed_prometheus_alert_events issues_self_managed_prometheus_alert_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.issues_self_managed_prometheus_alert_events - ADD CONSTRAINT issues_self_managed_prometheus_alert_events_pkey PRIMARY KEY (issue_id, self_managed_prometheus_alert_event_id); - - --- --- Name: sprints iteration_start_and_due_date_iterations_cadence_id_constraint; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sprints - ADD CONSTRAINT iteration_start_and_due_date_iterations_cadence_id_constraint EXCLUDE USING gist (iterations_cadence_id WITH =, daterange(start_date, due_date, '[]'::text) WITH &&) WHERE ((group_id IS NOT NULL)) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: iterations_cadences iterations_cadences_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.iterations_cadences - ADD CONSTRAINT iterations_cadences_pkey PRIMARY KEY (id); - - --- --- Name: jira_connect_installations jira_connect_installations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.jira_connect_installations - ADD CONSTRAINT jira_connect_installations_pkey PRIMARY KEY (id); - - --- --- Name: jira_connect_subscriptions jira_connect_subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.jira_connect_subscriptions - ADD CONSTRAINT jira_connect_subscriptions_pkey PRIMARY KEY (id); - - --- --- Name: jira_imports jira_imports_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.jira_imports - ADD CONSTRAINT jira_imports_pkey PRIMARY KEY (id); - - --- --- Name: jira_tracker_data jira_tracker_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.jira_tracker_data - ADD CONSTRAINT jira_tracker_data_pkey PRIMARY KEY (id); - - --- --- Name: keys keys_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.keys - ADD CONSTRAINT keys_pkey PRIMARY KEY (id); - - --- --- Name: label_links label_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.label_links - ADD CONSTRAINT label_links_pkey PRIMARY KEY (id); - - --- --- Name: label_priorities label_priorities_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.label_priorities - ADD CONSTRAINT label_priorities_pkey PRIMARY KEY (id); - - --- --- Name: labels labels_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.labels - ADD CONSTRAINT labels_pkey PRIMARY KEY (id); - - --- --- Name: ldap_group_links ldap_group_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ldap_group_links - ADD CONSTRAINT ldap_group_links_pkey PRIMARY KEY (id); - - --- --- Name: lfs_file_locks lfs_file_locks_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.lfs_file_locks - ADD CONSTRAINT lfs_file_locks_pkey PRIMARY KEY (id); - - --- --- Name: lfs_object_states lfs_object_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.lfs_object_states - ADD CONSTRAINT lfs_object_states_pkey PRIMARY KEY (lfs_object_id); - - --- --- Name: lfs_objects lfs_objects_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.lfs_objects - ADD CONSTRAINT lfs_objects_pkey PRIMARY KEY (id); - - --- --- Name: lfs_objects_projects lfs_objects_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.lfs_objects_projects - ADD CONSTRAINT lfs_objects_projects_pkey PRIMARY KEY (id); - - --- --- Name: licenses licenses_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.licenses - ADD CONSTRAINT licenses_pkey PRIMARY KEY (id); - - --- --- Name: list_user_preferences list_user_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.list_user_preferences - ADD CONSTRAINT list_user_preferences_pkey PRIMARY KEY (id); - - --- --- Name: lists lists_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.lists - ADD CONSTRAINT lists_pkey PRIMARY KEY (id); - - --- --- Name: loose_foreign_keys_deleted_records loose_foreign_keys_deleted_records_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.loose_foreign_keys_deleted_records - ADD CONSTRAINT loose_foreign_keys_deleted_records_pkey PRIMARY KEY (partition, id); - - --- --- Name: member_approvals member_approvals_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.member_approvals - ADD CONSTRAINT member_approvals_pkey PRIMARY KEY (id); - - --- --- Name: member_roles member_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.member_roles - ADD CONSTRAINT member_roles_pkey PRIMARY KEY (id); - - --- --- Name: members members_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.members - ADD CONSTRAINT members_pkey PRIMARY KEY (id); - - --- --- Name: merge_request_assignees merge_request_assignees_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_assignees - ADD CONSTRAINT merge_request_assignees_pkey PRIMARY KEY (id); - - --- --- Name: merge_request_assignment_events merge_request_assignment_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_assignment_events - ADD CONSTRAINT merge_request_assignment_events_pkey PRIMARY KEY (id); - - --- --- Name: merge_request_blocks merge_request_blocks_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_blocks - ADD CONSTRAINT merge_request_blocks_pkey PRIMARY KEY (id); - - --- --- Name: merge_request_cleanup_schedules merge_request_cleanup_schedules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_cleanup_schedules - ADD CONSTRAINT merge_request_cleanup_schedules_pkey PRIMARY KEY (merge_request_id); - - --- --- Name: merge_request_context_commit_diff_files merge_request_context_commit_diff_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_context_commit_diff_files - ADD CONSTRAINT merge_request_context_commit_diff_files_pkey PRIMARY KEY (merge_request_context_commit_id, relative_order); - - --- --- Name: merge_request_context_commits merge_request_context_commits_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_context_commits - ADD CONSTRAINT merge_request_context_commits_pkey PRIMARY KEY (id); - - --- --- Name: merge_request_diff_commit_users merge_request_diff_commit_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_diff_commit_users - ADD CONSTRAINT merge_request_diff_commit_users_pkey PRIMARY KEY (id); - - --- --- Name: merge_request_diff_commits_b5377a7a34 merge_request_diff_commits_b5377a7a34_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_diff_commits_b5377a7a34 - ADD CONSTRAINT merge_request_diff_commits_b5377a7a34_pkey PRIMARY KEY (merge_request_diff_id, relative_order); - - --- --- Name: merge_request_diff_commits merge_request_diff_commits_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_diff_commits - ADD CONSTRAINT merge_request_diff_commits_pkey PRIMARY KEY (merge_request_diff_id, relative_order); - - --- --- Name: merge_request_diff_details merge_request_diff_details_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_diff_details - ADD CONSTRAINT merge_request_diff_details_pkey PRIMARY KEY (merge_request_diff_id); - - --- --- Name: merge_request_diff_files_99208b8fac merge_request_diff_files_99208b8fac_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_diff_files_99208b8fac - ADD CONSTRAINT merge_request_diff_files_99208b8fac_pkey PRIMARY KEY (merge_request_diff_id, relative_order); - - --- --- Name: merge_request_diff_files merge_request_diff_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_diff_files - ADD CONSTRAINT merge_request_diff_files_pkey PRIMARY KEY (merge_request_diff_id, relative_order); - - --- --- Name: merge_request_diffs merge_request_diffs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_diffs - ADD CONSTRAINT merge_request_diffs_pkey PRIMARY KEY (id); - - --- --- Name: merge_request_metrics merge_request_metrics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_metrics - ADD CONSTRAINT merge_request_metrics_pkey PRIMARY KEY (id); - - --- --- Name: merge_request_predictions merge_request_predictions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_predictions - ADD CONSTRAINT merge_request_predictions_pkey PRIMARY KEY (merge_request_id); - - --- --- Name: merge_request_requested_changes merge_request_requested_changes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_requested_changes - ADD CONSTRAINT merge_request_requested_changes_pkey PRIMARY KEY (id); - - --- --- Name: merge_request_reviewers merge_request_reviewers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_reviewers - ADD CONSTRAINT merge_request_reviewers_pkey PRIMARY KEY (id); - - --- --- Name: merge_request_user_mentions merge_request_user_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_request_user_mentions - ADD CONSTRAINT merge_request_user_mentions_pkey PRIMARY KEY (id); - - --- --- Name: merge_requests_closing_issues merge_requests_closing_issues_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_requests_closing_issues - ADD CONSTRAINT merge_requests_closing_issues_pkey PRIMARY KEY (id); - - --- --- Name: merge_requests_compliance_violations merge_requests_compliance_violations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_requests_compliance_violations - ADD CONSTRAINT merge_requests_compliance_violations_pkey PRIMARY KEY (id); - - --- --- Name: merge_requests merge_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_requests - ADD CONSTRAINT merge_requests_pkey PRIMARY KEY (id); - - --- --- Name: merge_trains merge_trains_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.merge_trains - ADD CONSTRAINT merge_trains_pkey PRIMARY KEY (id); - - --- --- Name: metrics_dashboard_annotations metrics_dashboard_annotations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.metrics_dashboard_annotations - ADD CONSTRAINT metrics_dashboard_annotations_pkey PRIMARY KEY (id); - - --- --- Name: metrics_users_starred_dashboards metrics_users_starred_dashboards_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.metrics_users_starred_dashboards - ADD CONSTRAINT metrics_users_starred_dashboards_pkey PRIMARY KEY (id); - - --- --- Name: milestone_releases milestone_releases_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.milestone_releases - ADD CONSTRAINT milestone_releases_pkey PRIMARY KEY (milestone_id, release_id); - - --- --- Name: milestones milestones_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.milestones - ADD CONSTRAINT milestones_pkey PRIMARY KEY (id); - - --- --- Name: ml_candidate_metadata ml_candidate_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_candidate_metadata - ADD CONSTRAINT ml_candidate_metadata_pkey PRIMARY KEY (id); - - --- --- Name: ml_candidate_metrics ml_candidate_metrics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_candidate_metrics - ADD CONSTRAINT ml_candidate_metrics_pkey PRIMARY KEY (id); - - --- --- Name: ml_candidate_params ml_candidate_params_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_candidate_params - ADD CONSTRAINT ml_candidate_params_pkey PRIMARY KEY (id); - - --- --- Name: ml_candidates ml_candidates_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_candidates - ADD CONSTRAINT ml_candidates_pkey PRIMARY KEY (id); - - --- --- Name: ml_experiment_metadata ml_experiment_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_experiment_metadata - ADD CONSTRAINT ml_experiment_metadata_pkey PRIMARY KEY (id); - - --- --- Name: ml_experiments ml_experiments_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_experiments - ADD CONSTRAINT ml_experiments_pkey PRIMARY KEY (id); - - --- --- Name: ml_model_metadata ml_model_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_model_metadata - ADD CONSTRAINT ml_model_metadata_pkey PRIMARY KEY (id); - - --- --- Name: ml_model_version_metadata ml_model_version_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_model_version_metadata - ADD CONSTRAINT ml_model_version_metadata_pkey PRIMARY KEY (id); - - --- --- Name: ml_model_versions ml_model_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_model_versions - ADD CONSTRAINT ml_model_versions_pkey PRIMARY KEY (id); - - --- --- Name: ml_models ml_models_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ml_models - ADD CONSTRAINT ml_models_pkey PRIMARY KEY (id); - - --- --- Name: namespace_admin_notes namespace_admin_notes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_admin_notes - ADD CONSTRAINT namespace_admin_notes_pkey PRIMARY KEY (id); - - --- --- Name: namespace_aggregation_schedules namespace_aggregation_schedules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_aggregation_schedules - ADD CONSTRAINT namespace_aggregation_schedules_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_bans namespace_bans_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_bans - ADD CONSTRAINT namespace_bans_pkey PRIMARY KEY (id); - - --- --- Name: namespace_ci_cd_settings namespace_ci_cd_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_ci_cd_settings - ADD CONSTRAINT namespace_ci_cd_settings_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_commit_emails namespace_commit_emails_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_commit_emails - ADD CONSTRAINT namespace_commit_emails_pkey PRIMARY KEY (id); - - --- --- Name: namespace_details namespace_details_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_details - ADD CONSTRAINT namespace_details_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_import_users namespace_import_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_import_users - ADD CONSTRAINT namespace_import_users_pkey PRIMARY KEY (id); - - --- --- Name: namespace_ldap_settings namespace_ldap_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_ldap_settings - ADD CONSTRAINT namespace_ldap_settings_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_limits namespace_limits_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_limits - ADD CONSTRAINT namespace_limits_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_package_settings namespace_package_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_package_settings - ADD CONSTRAINT namespace_package_settings_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_root_storage_statistics namespace_root_storage_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_root_storage_statistics - ADD CONSTRAINT namespace_root_storage_statistics_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_settings namespace_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_settings - ADD CONSTRAINT namespace_settings_pkey PRIMARY KEY (namespace_id); - - --- --- Name: namespace_statistics namespace_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespace_statistics - ADD CONSTRAINT namespace_statistics_pkey PRIMARY KEY (id); - - --- --- Name: namespaces namespaces_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespaces - ADD CONSTRAINT namespaces_pkey PRIMARY KEY (id); - - --- --- Name: namespaces_storage_limit_exclusions namespaces_storage_limit_exclusions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespaces_storage_limit_exclusions - ADD CONSTRAINT namespaces_storage_limit_exclusions_pkey PRIMARY KEY (id); - - --- --- Name: namespaces_sync_events namespaces_sync_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.namespaces_sync_events - ADD CONSTRAINT namespaces_sync_events_pkey PRIMARY KEY (id); - - --- --- Name: note_diff_files note_diff_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.note_diff_files - ADD CONSTRAINT note_diff_files_pkey PRIMARY KEY (id); - - --- --- Name: note_metadata note_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.note_metadata - ADD CONSTRAINT note_metadata_pkey PRIMARY KEY (note_id); - - --- --- Name: notes notes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.notes - ADD CONSTRAINT notes_pkey PRIMARY KEY (id); - - --- --- Name: notification_settings notification_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.notification_settings - ADD CONSTRAINT notification_settings_pkey PRIMARY KEY (id); - - --- --- Name: oauth_access_grants oauth_access_grants_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.oauth_access_grants - ADD CONSTRAINT oauth_access_grants_pkey PRIMARY KEY (id); - - --- --- Name: oauth_access_tokens oauth_access_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.oauth_access_tokens - ADD CONSTRAINT oauth_access_tokens_pkey PRIMARY KEY (id); - - --- --- Name: oauth_applications oauth_applications_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.oauth_applications - ADD CONSTRAINT oauth_applications_pkey PRIMARY KEY (id); - - --- --- Name: oauth_device_grants oauth_device_grants_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.oauth_device_grants - ADD CONSTRAINT oauth_device_grants_pkey PRIMARY KEY (id); - - --- --- Name: oauth_openid_requests oauth_openid_requests_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.oauth_openid_requests - ADD CONSTRAINT oauth_openid_requests_pkey PRIMARY KEY (id); - - --- --- Name: observability_logs_issues_connections observability_logs_issues_connections_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.observability_logs_issues_connections - ADD CONSTRAINT observability_logs_issues_connections_pkey PRIMARY KEY (id); - - --- --- Name: observability_metrics_issues_connections observability_metrics_issues_connections_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.observability_metrics_issues_connections - ADD CONSTRAINT observability_metrics_issues_connections_pkey PRIMARY KEY (id); - - --- --- Name: observability_traces_issues_connections observability_traces_issues_connections_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.observability_traces_issues_connections - ADD CONSTRAINT observability_traces_issues_connections_pkey PRIMARY KEY (id); - - --- --- Name: onboarding_progresses onboarding_progresses_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.onboarding_progresses - ADD CONSTRAINT onboarding_progresses_pkey PRIMARY KEY (id); - - --- --- Name: operations_feature_flag_scopes operations_feature_flag_scopes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.operations_feature_flag_scopes - ADD CONSTRAINT operations_feature_flag_scopes_pkey PRIMARY KEY (id); - - --- --- Name: operations_feature_flags_clients operations_feature_flags_clients_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.operations_feature_flags_clients - ADD CONSTRAINT operations_feature_flags_clients_pkey PRIMARY KEY (id); - - --- --- Name: operations_feature_flags_issues operations_feature_flags_issues_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.operations_feature_flags_issues - ADD CONSTRAINT operations_feature_flags_issues_pkey PRIMARY KEY (id); - - --- --- Name: operations_feature_flags operations_feature_flags_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.operations_feature_flags - ADD CONSTRAINT operations_feature_flags_pkey PRIMARY KEY (id); - - --- --- Name: operations_scopes operations_scopes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.operations_scopes - ADD CONSTRAINT operations_scopes_pkey PRIMARY KEY (id); - - --- --- Name: operations_strategies operations_strategies_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.operations_strategies - ADD CONSTRAINT operations_strategies_pkey PRIMARY KEY (id); - - --- --- Name: operations_strategies_user_lists operations_strategies_user_lists_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.operations_strategies_user_lists - ADD CONSTRAINT operations_strategies_user_lists_pkey PRIMARY KEY (id); - - --- --- Name: operations_user_lists operations_user_lists_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.operations_user_lists - ADD CONSTRAINT operations_user_lists_pkey PRIMARY KEY (id); - - --- --- Name: organization_details organization_details_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.organization_details - ADD CONSTRAINT organization_details_pkey PRIMARY KEY (organization_id); - - --- --- Name: organization_settings organization_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.organization_settings - ADD CONSTRAINT organization_settings_pkey PRIMARY KEY (organization_id); - - --- --- Name: organization_users organization_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.organization_users - ADD CONSTRAINT organization_users_pkey PRIMARY KEY (id); - - --- --- Name: organizations organizations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.organizations - ADD CONSTRAINT organizations_pkey PRIMARY KEY (id); - - --- --- Name: p_batched_git_ref_updates_deletions p_batched_git_ref_updates_deletions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_batched_git_ref_updates_deletions - ADD CONSTRAINT p_batched_git_ref_updates_deletions_pkey PRIMARY KEY (id, partition_id); - - --- --- Name: p_catalog_resource_component_usages p_catalog_resource_component_usages_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_catalog_resource_component_usages - ADD CONSTRAINT p_catalog_resource_component_usages_pkey PRIMARY KEY (id, used_date); - - --- --- Name: p_catalog_resource_sync_events p_catalog_resource_sync_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_catalog_resource_sync_events - ADD CONSTRAINT p_catalog_resource_sync_events_pkey PRIMARY KEY (id, partition_id); - - --- --- Name: p_ci_build_names p_ci_build_names_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_ci_build_names - ADD CONSTRAINT p_ci_build_names_pkey PRIMARY KEY (build_id, partition_id); - - --- --- Name: p_ci_build_sources p_ci_build_sources_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_ci_build_sources - ADD CONSTRAINT p_ci_build_sources_pkey PRIMARY KEY (build_id, partition_id); - - --- --- Name: p_ci_build_tags p_ci_build_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_ci_build_tags - ADD CONSTRAINT p_ci_build_tags_pkey PRIMARY KEY (id, partition_id); - - --- --- Name: p_ci_builds_execution_configs p_ci_builds_execution_configs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_ci_builds_execution_configs - ADD CONSTRAINT p_ci_builds_execution_configs_pkey PRIMARY KEY (id, partition_id); - - --- --- Name: p_ci_finished_build_ch_sync_events p_ci_finished_build_ch_sync_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_ci_finished_build_ch_sync_events - ADD CONSTRAINT p_ci_finished_build_ch_sync_events_pkey PRIMARY KEY (build_id, partition); - - --- --- Name: p_ci_finished_pipeline_ch_sync_events p_ci_finished_pipeline_ch_sync_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_ci_finished_pipeline_ch_sync_events - ADD CONSTRAINT p_ci_finished_pipeline_ch_sync_events_pkey PRIMARY KEY (pipeline_id, partition); - - --- --- Name: p_ci_job_annotations p_ci_job_annotations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_ci_job_annotations - ADD CONSTRAINT p_ci_job_annotations_pkey PRIMARY KEY (id, partition_id); - - --- --- Name: p_ci_runner_machine_builds p_ci_runner_machine_builds_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.p_ci_runner_machine_builds - ADD CONSTRAINT p_ci_runner_machine_builds_pkey PRIMARY KEY (build_id, partition_id); - - --- --- Name: packages_build_infos packages_build_infos_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_build_infos - ADD CONSTRAINT packages_build_infos_pkey PRIMARY KEY (id); - - --- --- Name: packages_cleanup_policies packages_cleanup_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_cleanup_policies - ADD CONSTRAINT packages_cleanup_policies_pkey PRIMARY KEY (project_id); - - --- --- Name: packages_composer_cache_files packages_composer_cache_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_composer_cache_files - ADD CONSTRAINT packages_composer_cache_files_pkey PRIMARY KEY (id); - - --- --- Name: packages_composer_metadata packages_composer_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_composer_metadata - ADD CONSTRAINT packages_composer_metadata_pkey PRIMARY KEY (package_id); - - --- --- Name: packages_conan_file_metadata packages_conan_file_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_conan_file_metadata - ADD CONSTRAINT packages_conan_file_metadata_pkey PRIMARY KEY (id); - - --- --- Name: packages_conan_metadata packages_conan_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_conan_metadata - ADD CONSTRAINT packages_conan_metadata_pkey PRIMARY KEY (id); - - --- --- Name: packages_debian_file_metadata packages_debian_file_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_file_metadata - ADD CONSTRAINT packages_debian_file_metadata_pkey PRIMARY KEY (package_file_id); - - --- --- Name: packages_debian_group_architectures packages_debian_group_architectures_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_group_architectures - ADD CONSTRAINT packages_debian_group_architectures_pkey PRIMARY KEY (id); - - --- --- Name: packages_debian_group_component_files packages_debian_group_component_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_group_component_files - ADD CONSTRAINT packages_debian_group_component_files_pkey PRIMARY KEY (id); - - --- --- Name: packages_debian_group_components packages_debian_group_components_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_group_components - ADD CONSTRAINT packages_debian_group_components_pkey PRIMARY KEY (id); - - --- --- Name: packages_debian_group_distribution_keys packages_debian_group_distribution_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_group_distribution_keys - ADD CONSTRAINT packages_debian_group_distribution_keys_pkey PRIMARY KEY (id); - - --- --- Name: packages_debian_group_distributions packages_debian_group_distributions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_group_distributions - ADD CONSTRAINT packages_debian_group_distributions_pkey PRIMARY KEY (id); - - --- --- Name: packages_debian_project_architectures packages_debian_project_architectures_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_project_architectures - ADD CONSTRAINT packages_debian_project_architectures_pkey PRIMARY KEY (id); - - --- --- Name: packages_debian_project_component_files packages_debian_project_component_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_project_component_files - ADD CONSTRAINT packages_debian_project_component_files_pkey PRIMARY KEY (id); - - --- --- Name: packages_debian_project_components packages_debian_project_components_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_project_components - ADD CONSTRAINT packages_debian_project_components_pkey PRIMARY KEY (id); - - --- --- Name: packages_debian_project_distribution_keys packages_debian_project_distribution_keys_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_project_distribution_keys - ADD CONSTRAINT packages_debian_project_distribution_keys_pkey PRIMARY KEY (id); - - --- --- Name: packages_debian_project_distributions packages_debian_project_distributions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_project_distributions - ADD CONSTRAINT packages_debian_project_distributions_pkey PRIMARY KEY (id); - - --- --- Name: packages_debian_publications packages_debian_publications_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_debian_publications - ADD CONSTRAINT packages_debian_publications_pkey PRIMARY KEY (id); - - --- --- Name: packages_dependencies packages_dependencies_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_dependencies - ADD CONSTRAINT packages_dependencies_pkey PRIMARY KEY (id); - - --- --- Name: packages_dependency_links packages_dependency_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_dependency_links - ADD CONSTRAINT packages_dependency_links_pkey PRIMARY KEY (id); - - --- --- Name: packages_helm_file_metadata packages_helm_file_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_helm_file_metadata - ADD CONSTRAINT packages_helm_file_metadata_pkey PRIMARY KEY (package_file_id); - - --- --- Name: packages_maven_metadata packages_maven_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_maven_metadata - ADD CONSTRAINT packages_maven_metadata_pkey PRIMARY KEY (id); - - --- --- Name: packages_npm_metadata_caches packages_npm_metadata_caches_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_npm_metadata_caches - ADD CONSTRAINT packages_npm_metadata_caches_pkey PRIMARY KEY (id); - - --- --- Name: packages_npm_metadata packages_npm_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_npm_metadata - ADD CONSTRAINT packages_npm_metadata_pkey PRIMARY KEY (package_id); - - --- --- Name: packages_nuget_dependency_link_metadata packages_nuget_dependency_link_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_nuget_dependency_link_metadata - ADD CONSTRAINT packages_nuget_dependency_link_metadata_pkey PRIMARY KEY (dependency_link_id); - - --- --- Name: packages_nuget_metadata packages_nuget_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_nuget_metadata - ADD CONSTRAINT packages_nuget_metadata_pkey PRIMARY KEY (package_id); - - --- --- Name: packages_nuget_symbols packages_nuget_symbols_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_nuget_symbols - ADD CONSTRAINT packages_nuget_symbols_pkey PRIMARY KEY (id); - - --- --- Name: packages_package_file_build_infos packages_package_file_build_infos_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_package_file_build_infos - ADD CONSTRAINT packages_package_file_build_infos_pkey PRIMARY KEY (id); - - --- --- Name: packages_package_files packages_package_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_package_files - ADD CONSTRAINT packages_package_files_pkey PRIMARY KEY (id); - - --- --- Name: packages_packages packages_packages_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_packages - ADD CONSTRAINT packages_packages_pkey PRIMARY KEY (id); - - --- --- Name: packages_protection_rules packages_protection_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_protection_rules - ADD CONSTRAINT packages_protection_rules_pkey PRIMARY KEY (id); - - --- --- Name: packages_pypi_metadata packages_pypi_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_pypi_metadata - ADD CONSTRAINT packages_pypi_metadata_pkey PRIMARY KEY (package_id); - - --- --- Name: packages_rpm_metadata packages_rpm_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_rpm_metadata - ADD CONSTRAINT packages_rpm_metadata_pkey PRIMARY KEY (package_id); - - --- --- Name: packages_rpm_repository_files packages_rpm_repository_files_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_rpm_repository_files - ADD CONSTRAINT packages_rpm_repository_files_pkey PRIMARY KEY (id); - - --- --- Name: packages_rubygems_metadata packages_rubygems_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_rubygems_metadata - ADD CONSTRAINT packages_rubygems_metadata_pkey PRIMARY KEY (package_id); - - --- --- Name: packages_tags packages_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_tags - ADD CONSTRAINT packages_tags_pkey PRIMARY KEY (id); - - --- --- Name: packages_terraform_module_metadata packages_terraform_module_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.packages_terraform_module_metadata - ADD CONSTRAINT packages_terraform_module_metadata_pkey PRIMARY KEY (package_id); - - --- --- Name: pages_deployment_states pages_deployment_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pages_deployment_states - ADD CONSTRAINT pages_deployment_states_pkey PRIMARY KEY (pages_deployment_id); - - --- --- Name: pages_deployments pages_deployments_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pages_deployments - ADD CONSTRAINT pages_deployments_pkey PRIMARY KEY (id); - - --- --- Name: pages_domain_acme_orders pages_domain_acme_orders_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pages_domain_acme_orders - ADD CONSTRAINT pages_domain_acme_orders_pkey PRIMARY KEY (id); - - --- --- Name: pages_domains pages_domains_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pages_domains - ADD CONSTRAINT pages_domains_pkey PRIMARY KEY (id); - - --- --- Name: path_locks path_locks_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.path_locks - ADD CONSTRAINT path_locks_pkey PRIMARY KEY (id); - - --- --- Name: personal_access_token_last_used_ips personal_access_token_last_used_ips_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.personal_access_token_last_used_ips - ADD CONSTRAINT personal_access_token_last_used_ips_pkey PRIMARY KEY (id); - - --- --- Name: personal_access_tokens personal_access_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.personal_access_tokens - ADD CONSTRAINT personal_access_tokens_pkey PRIMARY KEY (id); - - --- --- Name: plan_limits plan_limits_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.plan_limits - ADD CONSTRAINT plan_limits_pkey PRIMARY KEY (id); - - --- --- Name: plans plans_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.plans - ADD CONSTRAINT plans_pkey PRIMARY KEY (id); - - --- --- Name: pm_advisories pm_advisories_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pm_advisories - ADD CONSTRAINT pm_advisories_pkey PRIMARY KEY (id); - - --- --- Name: pm_affected_packages pm_affected_packages_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pm_affected_packages - ADD CONSTRAINT pm_affected_packages_pkey PRIMARY KEY (id); - - --- --- Name: pm_checkpoints pm_checkpoints_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pm_checkpoints - ADD CONSTRAINT pm_checkpoints_pkey PRIMARY KEY (id); - - --- --- Name: pm_epss pm_epss_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pm_epss - ADD CONSTRAINT pm_epss_pkey PRIMARY KEY (id); - - --- --- Name: pm_licenses pm_licenses_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pm_licenses - ADD CONSTRAINT pm_licenses_pkey PRIMARY KEY (id); - - --- --- Name: pm_package_version_licenses pm_package_version_licenses_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pm_package_version_licenses - ADD CONSTRAINT pm_package_version_licenses_pkey PRIMARY KEY (id); - - --- --- Name: pm_package_versions pm_package_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pm_package_versions - ADD CONSTRAINT pm_package_versions_pkey PRIMARY KEY (id); - - --- --- Name: pm_packages pm_packages_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pm_packages - ADD CONSTRAINT pm_packages_pkey PRIMARY KEY (id); - - --- --- Name: pool_repositories pool_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.pool_repositories - ADD CONSTRAINT pool_repositories_pkey PRIMARY KEY (id); - - --- --- Name: postgres_async_foreign_key_validations postgres_async_foreign_key_validations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.postgres_async_foreign_key_validations - ADD CONSTRAINT postgres_async_foreign_key_validations_pkey PRIMARY KEY (id); - - --- --- Name: postgres_async_indexes postgres_async_indexes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.postgres_async_indexes - ADD CONSTRAINT postgres_async_indexes_pkey PRIMARY KEY (id); - - --- --- Name: postgres_reindex_actions postgres_reindex_actions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.postgres_reindex_actions - ADD CONSTRAINT postgres_reindex_actions_pkey PRIMARY KEY (id); - - --- --- Name: postgres_reindex_queued_actions postgres_reindex_queued_actions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.postgres_reindex_queued_actions - ADD CONSTRAINT postgres_reindex_queued_actions_pkey PRIMARY KEY (id); - - --- --- Name: programming_languages programming_languages_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.programming_languages - ADD CONSTRAINT programming_languages_pkey PRIMARY KEY (id); - - --- --- Name: project_access_tokens project_access_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_access_tokens - ADD CONSTRAINT project_access_tokens_pkey PRIMARY KEY (personal_access_token_id, project_id); - - --- --- Name: project_alerting_settings project_alerting_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_alerting_settings - ADD CONSTRAINT project_alerting_settings_pkey PRIMARY KEY (project_id); - - --- --- Name: project_aliases project_aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_aliases - ADD CONSTRAINT project_aliases_pkey PRIMARY KEY (id); - - --- --- Name: project_audit_events project_audit_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_audit_events - ADD CONSTRAINT project_audit_events_pkey PRIMARY KEY (id, created_at); - - --- --- Name: project_authorizations project_authorizations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_authorizations - ADD CONSTRAINT project_authorizations_pkey PRIMARY KEY (user_id, project_id, access_level); - - --- --- Name: project_auto_devops project_auto_devops_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_auto_devops - ADD CONSTRAINT project_auto_devops_pkey PRIMARY KEY (id); - - --- --- Name: project_build_artifacts_size_refreshes project_build_artifacts_size_refreshes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_build_artifacts_size_refreshes - ADD CONSTRAINT project_build_artifacts_size_refreshes_pkey PRIMARY KEY (id); - - --- --- Name: project_ci_cd_settings project_ci_cd_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_ci_cd_settings - ADD CONSTRAINT project_ci_cd_settings_pkey PRIMARY KEY (id); - - --- --- Name: project_ci_feature_usages project_ci_feature_usages_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_ci_feature_usages - ADD CONSTRAINT project_ci_feature_usages_pkey PRIMARY KEY (id); - - --- --- Name: project_compliance_framework_settings project_compliance_framework_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_compliance_framework_settings - ADD CONSTRAINT project_compliance_framework_settings_pkey PRIMARY KEY (id); - - --- --- Name: project_compliance_standards_adherence project_compliance_standards_adherence_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_compliance_standards_adherence - ADD CONSTRAINT project_compliance_standards_adherence_pkey PRIMARY KEY (id); - - --- --- Name: project_custom_attributes project_custom_attributes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_custom_attributes - ADD CONSTRAINT project_custom_attributes_pkey PRIMARY KEY (id); - - --- --- Name: project_daily_statistics project_daily_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_daily_statistics - ADD CONSTRAINT project_daily_statistics_pkey PRIMARY KEY (id); - - --- --- Name: project_data_transfers project_data_transfers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_data_transfers - ADD CONSTRAINT project_data_transfers_pkey PRIMARY KEY (id); - - --- --- Name: project_deploy_tokens project_deploy_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_deploy_tokens - ADD CONSTRAINT project_deploy_tokens_pkey PRIMARY KEY (id); - - --- --- Name: project_error_tracking_settings project_error_tracking_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_error_tracking_settings - ADD CONSTRAINT project_error_tracking_settings_pkey PRIMARY KEY (project_id); - - --- --- Name: project_export_jobs project_export_jobs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_export_jobs - ADD CONSTRAINT project_export_jobs_pkey PRIMARY KEY (id); - - --- --- Name: project_feature_usages project_feature_usages_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_feature_usages - ADD CONSTRAINT project_feature_usages_pkey PRIMARY KEY (project_id); - - --- --- Name: project_features project_features_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_features - ADD CONSTRAINT project_features_pkey PRIMARY KEY (id); - - --- --- Name: project_group_links project_group_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_group_links - ADD CONSTRAINT project_group_links_pkey PRIMARY KEY (id); - - --- --- Name: project_import_data project_import_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_import_data - ADD CONSTRAINT project_import_data_pkey PRIMARY KEY (id); - - --- --- Name: project_incident_management_settings project_incident_management_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_incident_management_settings - ADD CONSTRAINT project_incident_management_settings_pkey PRIMARY KEY (project_id); - - --- --- Name: project_metrics_settings project_metrics_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_metrics_settings - ADD CONSTRAINT project_metrics_settings_pkey PRIMARY KEY (project_id); - - --- --- Name: project_mirror_data project_mirror_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_mirror_data - ADD CONSTRAINT project_mirror_data_pkey PRIMARY KEY (id); - - --- --- Name: project_pages_metadata project_pages_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_pages_metadata - ADD CONSTRAINT project_pages_metadata_pkey PRIMARY KEY (project_id); - - --- --- Name: project_relation_export_uploads project_relation_export_uploads_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_relation_export_uploads - ADD CONSTRAINT project_relation_export_uploads_pkey PRIMARY KEY (id); - - --- --- Name: project_relation_exports project_relation_exports_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_relation_exports - ADD CONSTRAINT project_relation_exports_pkey PRIMARY KEY (id); - - --- --- Name: project_repositories project_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_repositories - ADD CONSTRAINT project_repositories_pkey PRIMARY KEY (id); - - --- --- Name: project_repository_storage_moves project_repository_storage_moves_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_repository_storage_moves - ADD CONSTRAINT project_repository_storage_moves_pkey PRIMARY KEY (id); - - --- --- Name: project_saved_replies project_saved_replies_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_saved_replies - ADD CONSTRAINT project_saved_replies_pkey PRIMARY KEY (id); - - --- --- Name: project_secrets_managers project_secrets_managers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_secrets_managers - ADD CONSTRAINT project_secrets_managers_pkey PRIMARY KEY (id); - - --- --- Name: project_security_settings project_security_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_security_settings - ADD CONSTRAINT project_security_settings_pkey PRIMARY KEY (project_id); - - --- --- Name: project_settings project_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_settings - ADD CONSTRAINT project_settings_pkey PRIMARY KEY (project_id); - - --- --- Name: project_states project_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_states - ADD CONSTRAINT project_states_pkey PRIMARY KEY (id); - - --- --- Name: project_statistics project_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_statistics - ADD CONSTRAINT project_statistics_pkey PRIMARY KEY (id); - - --- --- Name: project_topics project_topics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_topics - ADD CONSTRAINT project_topics_pkey PRIMARY KEY (id); - - --- --- Name: project_wiki_repositories project_wiki_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.project_wiki_repositories - ADD CONSTRAINT project_wiki_repositories_pkey PRIMARY KEY (id); - - --- --- Name: projects projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.projects - ADD CONSTRAINT projects_pkey PRIMARY KEY (id); - - --- --- Name: projects projects_star_count_positive; Type: CHECK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE public.projects - ADD CONSTRAINT projects_star_count_positive CHECK ((star_count >= 0)) NOT VALID; - - --- --- Name: projects_sync_events projects_sync_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.projects_sync_events - ADD CONSTRAINT projects_sync_events_pkey PRIMARY KEY (id); - - --- --- Name: projects_visits projects_visits_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.projects_visits - ADD CONSTRAINT projects_visits_pkey PRIMARY KEY (id, visited_at); - - --- --- Name: prometheus_alert_events prometheus_alert_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.prometheus_alert_events - ADD CONSTRAINT prometheus_alert_events_pkey PRIMARY KEY (id); - - --- --- Name: prometheus_alerts prometheus_alerts_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.prometheus_alerts - ADD CONSTRAINT prometheus_alerts_pkey PRIMARY KEY (id); - - --- --- Name: prometheus_metrics prometheus_metrics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.prometheus_metrics - ADD CONSTRAINT prometheus_metrics_pkey PRIMARY KEY (id); - - --- --- Name: protected_branch_merge_access_levels protected_branch_merge_access_levels_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.protected_branch_merge_access_levels - ADD CONSTRAINT protected_branch_merge_access_levels_pkey PRIMARY KEY (id); - - --- --- Name: protected_branch_push_access_levels protected_branch_push_access_levels_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.protected_branch_push_access_levels - ADD CONSTRAINT protected_branch_push_access_levels_pkey PRIMARY KEY (id); - - --- --- Name: protected_branch_unprotect_access_levels protected_branch_unprotect_access_levels_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.protected_branch_unprotect_access_levels - ADD CONSTRAINT protected_branch_unprotect_access_levels_pkey PRIMARY KEY (id); - - --- --- Name: protected_branches protected_branches_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.protected_branches - ADD CONSTRAINT protected_branches_pkey PRIMARY KEY (id); - - --- --- Name: protected_environment_approval_rules protected_environment_approval_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.protected_environment_approval_rules - ADD CONSTRAINT protected_environment_approval_rules_pkey PRIMARY KEY (id); - - --- --- Name: protected_environment_deploy_access_levels protected_environment_deploy_access_levels_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.protected_environment_deploy_access_levels - ADD CONSTRAINT protected_environment_deploy_access_levels_pkey PRIMARY KEY (id); - - --- --- Name: protected_environments protected_environments_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.protected_environments - ADD CONSTRAINT protected_environments_pkey PRIMARY KEY (id); - - --- --- Name: protected_tag_create_access_levels protected_tag_create_access_levels_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.protected_tag_create_access_levels - ADD CONSTRAINT protected_tag_create_access_levels_pkey PRIMARY KEY (id); - - --- --- Name: protected_tags protected_tags_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.protected_tags - ADD CONSTRAINT protected_tags_pkey PRIMARY KEY (id); - - --- --- Name: push_event_payloads push_event_payloads_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.push_event_payloads - ADD CONSTRAINT push_event_payloads_pkey PRIMARY KEY (event_id); - - --- --- Name: push_rules push_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.push_rules - ADD CONSTRAINT push_rules_pkey PRIMARY KEY (id); - - --- --- Name: raw_usage_data raw_usage_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.raw_usage_data - ADD CONSTRAINT raw_usage_data_pkey PRIMARY KEY (id); - - --- --- Name: redirect_routes redirect_routes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.redirect_routes - ADD CONSTRAINT redirect_routes_pkey PRIMARY KEY (id); - - --- --- Name: related_epic_links related_epic_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.related_epic_links - ADD CONSTRAINT related_epic_links_pkey PRIMARY KEY (id); - - --- --- Name: relation_import_trackers relation_import_trackers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.relation_import_trackers - ADD CONSTRAINT relation_import_trackers_pkey PRIMARY KEY (id); - - --- --- Name: release_links release_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.release_links - ADD CONSTRAINT release_links_pkey PRIMARY KEY (id); - - --- --- Name: releases releases_not_null_tag; Type: CHECK CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE public.releases - ADD CONSTRAINT releases_not_null_tag CHECK ((tag IS NOT NULL)) NOT VALID; - - --- --- Name: releases releases_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.releases - ADD CONSTRAINT releases_pkey PRIMARY KEY (id); - - --- --- Name: remote_development_agent_configs remote_development_agent_configs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.remote_development_agent_configs - ADD CONSTRAINT remote_development_agent_configs_pkey PRIMARY KEY (id); - - --- --- Name: remote_development_namespace_cluster_agent_mappings remote_development_namespace_cluster_agent_mappings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.remote_development_namespace_cluster_agent_mappings - ADD CONSTRAINT remote_development_namespace_cluster_agent_mappings_pkey PRIMARY KEY (id); - - --- --- Name: remote_mirrors remote_mirrors_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.remote_mirrors - ADD CONSTRAINT remote_mirrors_pkey PRIMARY KEY (id); - - --- --- Name: repository_languages repository_languages_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.repository_languages - ADD CONSTRAINT repository_languages_pkey PRIMARY KEY (project_id, programming_language_id); - - --- --- Name: required_code_owners_sections required_code_owners_sections_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.required_code_owners_sections - ADD CONSTRAINT required_code_owners_sections_pkey PRIMARY KEY (id); - - --- --- Name: requirements_management_test_reports requirements_management_test_reports_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.requirements_management_test_reports - ADD CONSTRAINT requirements_management_test_reports_pkey PRIMARY KEY (id); - - --- --- Name: requirements requirements_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.requirements - ADD CONSTRAINT requirements_pkey PRIMARY KEY (id); - - --- --- Name: resource_iteration_events resource_iteration_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.resource_iteration_events - ADD CONSTRAINT resource_iteration_events_pkey PRIMARY KEY (id); - - --- --- Name: resource_label_events resource_label_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.resource_label_events - ADD CONSTRAINT resource_label_events_pkey PRIMARY KEY (id); - - --- --- Name: resource_link_events resource_link_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.resource_link_events - ADD CONSTRAINT resource_link_events_pkey PRIMARY KEY (id); - - --- --- Name: resource_milestone_events resource_milestone_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.resource_milestone_events - ADD CONSTRAINT resource_milestone_events_pkey PRIMARY KEY (id); - - --- --- Name: resource_state_events resource_state_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.resource_state_events - ADD CONSTRAINT resource_state_events_pkey PRIMARY KEY (id); - - --- --- Name: resource_weight_events resource_weight_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.resource_weight_events - ADD CONSTRAINT resource_weight_events_pkey PRIMARY KEY (id); - - --- --- Name: reviews reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.reviews - ADD CONSTRAINT reviews_pkey PRIMARY KEY (id); - - --- --- Name: routes routes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.routes - ADD CONSTRAINT routes_pkey PRIMARY KEY (id); - - --- --- Name: saml_group_links saml_group_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.saml_group_links - ADD CONSTRAINT saml_group_links_pkey PRIMARY KEY (id); - - --- --- Name: saml_providers saml_providers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.saml_providers - ADD CONSTRAINT saml_providers_pkey PRIMARY KEY (id); - - --- --- Name: saved_replies saved_replies_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.saved_replies - ADD CONSTRAINT saved_replies_pkey PRIMARY KEY (id); - - --- --- Name: sbom_component_versions sbom_component_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sbom_component_versions - ADD CONSTRAINT sbom_component_versions_pkey PRIMARY KEY (id); - - --- --- Name: sbom_components sbom_components_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sbom_components - ADD CONSTRAINT sbom_components_pkey PRIMARY KEY (id); - - --- --- Name: sbom_occurrences sbom_occurrences_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sbom_occurrences - ADD CONSTRAINT sbom_occurrences_pkey PRIMARY KEY (id); - - --- --- Name: sbom_occurrences_vulnerabilities sbom_occurrences_vulnerabilities_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sbom_occurrences_vulnerabilities - ADD CONSTRAINT sbom_occurrences_vulnerabilities_pkey PRIMARY KEY (id); - - --- --- Name: sbom_source_packages sbom_source_packages_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sbom_source_packages - ADD CONSTRAINT sbom_source_packages_pkey PRIMARY KEY (id); - - --- --- Name: sbom_sources sbom_sources_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sbom_sources - ADD CONSTRAINT sbom_sources_pkey PRIMARY KEY (id); - - --- --- Name: scan_execution_policy_rules scan_execution_policy_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.scan_execution_policy_rules - ADD CONSTRAINT scan_execution_policy_rules_pkey PRIMARY KEY (id); - - --- --- Name: scan_result_policies scan_result_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.scan_result_policies - ADD CONSTRAINT scan_result_policies_pkey PRIMARY KEY (id); - - --- --- Name: scan_result_policy_violations scan_result_policy_violations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.scan_result_policy_violations - ADD CONSTRAINT scan_result_policy_violations_pkey PRIMARY KEY (id); - - --- --- Name: schema_migrations schema_migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.schema_migrations - ADD CONSTRAINT schema_migrations_pkey PRIMARY KEY (version); - - --- --- Name: scim_identities scim_identities_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.scim_identities - ADD CONSTRAINT scim_identities_pkey PRIMARY KEY (id); - - --- --- Name: scim_oauth_access_tokens scim_oauth_access_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.scim_oauth_access_tokens - ADD CONSTRAINT scim_oauth_access_tokens_pkey PRIMARY KEY (id); - - --- --- Name: search_indices search_indices_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.search_indices - ADD CONSTRAINT search_indices_pkey PRIMARY KEY (id); - - --- --- Name: search_namespace_index_assignments search_namespace_index_assignments_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.search_namespace_index_assignments - ADD CONSTRAINT search_namespace_index_assignments_pkey PRIMARY KEY (id); - - --- --- Name: security_findings security_findings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.security_findings - ADD CONSTRAINT security_findings_pkey PRIMARY KEY (id, partition_number); - - --- --- Name: security_orchestration_policy_configurations security_orchestration_policy_configurations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.security_orchestration_policy_configurations - ADD CONSTRAINT security_orchestration_policy_configurations_pkey PRIMARY KEY (id); - - --- --- Name: security_orchestration_policy_rule_schedules security_orchestration_policy_rule_schedules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.security_orchestration_policy_rule_schedules - ADD CONSTRAINT security_orchestration_policy_rule_schedules_pkey PRIMARY KEY (id); - - --- --- Name: security_policies security_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.security_policies - ADD CONSTRAINT security_policies_pkey PRIMARY KEY (id); - - --- --- Name: security_policy_project_links security_policy_project_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.security_policy_project_links - ADD CONSTRAINT security_policy_project_links_pkey PRIMARY KEY (id); - - --- --- Name: security_policy_requirements security_policy_requirements_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.security_policy_requirements - ADD CONSTRAINT security_policy_requirements_pkey PRIMARY KEY (id); - - --- --- Name: security_scans security_scans_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.security_scans - ADD CONSTRAINT security_scans_pkey PRIMARY KEY (id); - - --- --- Name: security_training_providers security_training_providers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.security_training_providers - ADD CONSTRAINT security_training_providers_pkey PRIMARY KEY (id); - - --- --- Name: security_trainings security_trainings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.security_trainings - ADD CONSTRAINT security_trainings_pkey PRIMARY KEY (id); - - --- --- Name: self_managed_prometheus_alert_events self_managed_prometheus_alert_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.self_managed_prometheus_alert_events - ADD CONSTRAINT self_managed_prometheus_alert_events_pkey PRIMARY KEY (id); - - --- --- Name: sent_notifications sent_notifications_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sent_notifications - ADD CONSTRAINT sent_notifications_pkey PRIMARY KEY (id); - - --- --- Name: sentry_issues sentry_issues_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sentry_issues - ADD CONSTRAINT sentry_issues_pkey PRIMARY KEY (id); - - --- --- Name: sprints sequence_is_unique_per_iterations_cadence_id; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sprints - ADD CONSTRAINT sequence_is_unique_per_iterations_cadence_id UNIQUE (iterations_cadence_id, sequence) DEFERRABLE INITIALLY DEFERRED; - - --- --- Name: service_access_tokens service_access_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.service_access_tokens - ADD CONSTRAINT service_access_tokens_pkey PRIMARY KEY (id); - - --- --- Name: service_desk_custom_email_credentials service_desk_custom_email_credentials_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.service_desk_custom_email_credentials - ADD CONSTRAINT service_desk_custom_email_credentials_pkey PRIMARY KEY (project_id); - - --- --- Name: service_desk_custom_email_verifications service_desk_custom_email_verifications_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.service_desk_custom_email_verifications - ADD CONSTRAINT service_desk_custom_email_verifications_pkey PRIMARY KEY (project_id); - - --- --- Name: service_desk_settings service_desk_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.service_desk_settings - ADD CONSTRAINT service_desk_settings_pkey PRIMARY KEY (project_id); - - --- --- Name: shards shards_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.shards - ADD CONSTRAINT shards_pkey PRIMARY KEY (id); - - --- --- Name: slack_api_scopes slack_api_scopes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.slack_api_scopes - ADD CONSTRAINT slack_api_scopes_pkey PRIMARY KEY (id); - - --- --- Name: slack_integrations slack_integrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.slack_integrations - ADD CONSTRAINT slack_integrations_pkey PRIMARY KEY (id); - - --- --- Name: slack_integrations_scopes slack_integrations_scopes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.slack_integrations_scopes - ADD CONSTRAINT slack_integrations_scopes_pkey PRIMARY KEY (id); - - --- --- Name: smartcard_identities smartcard_identities_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.smartcard_identities - ADD CONSTRAINT smartcard_identities_pkey PRIMARY KEY (id); - - --- --- Name: snippet_repositories snippet_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.snippet_repositories - ADD CONSTRAINT snippet_repositories_pkey PRIMARY KEY (snippet_id); - - --- --- Name: snippet_repository_storage_moves snippet_repository_storage_moves_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.snippet_repository_storage_moves - ADD CONSTRAINT snippet_repository_storage_moves_pkey PRIMARY KEY (id); - - --- --- Name: snippet_statistics snippet_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.snippet_statistics - ADD CONSTRAINT snippet_statistics_pkey PRIMARY KEY (snippet_id); - - --- --- Name: snippet_user_mentions snippet_user_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.snippet_user_mentions - ADD CONSTRAINT snippet_user_mentions_pkey PRIMARY KEY (id); - - --- --- Name: snippets snippets_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.snippets - ADD CONSTRAINT snippets_pkey PRIMARY KEY (id); - - --- --- Name: software_license_policies software_license_policies_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.software_license_policies - ADD CONSTRAINT software_license_policies_pkey PRIMARY KEY (id); - - --- --- Name: software_licenses software_licenses_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.software_licenses - ADD CONSTRAINT software_licenses_pkey PRIMARY KEY (id); - - --- --- Name: spam_logs spam_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.spam_logs - ADD CONSTRAINT spam_logs_pkey PRIMARY KEY (id); - - --- --- Name: sprints sprints_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.sprints - ADD CONSTRAINT sprints_pkey PRIMARY KEY (id); - - --- --- Name: ssh_signatures ssh_signatures_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.ssh_signatures - ADD CONSTRAINT ssh_signatures_pkey PRIMARY KEY (id); - - --- --- Name: status_check_responses status_check_responses_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.status_check_responses - ADD CONSTRAINT status_check_responses_pkey PRIMARY KEY (id); - - --- --- Name: status_page_published_incidents status_page_published_incidents_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.status_page_published_incidents - ADD CONSTRAINT status_page_published_incidents_pkey PRIMARY KEY (id); - - --- --- Name: status_page_settings status_page_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.status_page_settings - ADD CONSTRAINT status_page_settings_pkey PRIMARY KEY (project_id); - - --- --- Name: subscription_add_on_purchases subscription_add_on_purchases_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.subscription_add_on_purchases - ADD CONSTRAINT subscription_add_on_purchases_pkey PRIMARY KEY (id); - - --- --- Name: subscription_add_ons subscription_add_ons_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.subscription_add_ons - ADD CONSTRAINT subscription_add_ons_pkey PRIMARY KEY (id); - - --- --- Name: subscription_user_add_on_assignments subscription_user_add_on_assignments_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.subscription_user_add_on_assignments - ADD CONSTRAINT subscription_user_add_on_assignments_pkey PRIMARY KEY (id); - - --- --- Name: subscriptions subscriptions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.subscriptions - ADD CONSTRAINT subscriptions_pkey PRIMARY KEY (id); - - --- --- Name: suggestions suggestions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.suggestions - ADD CONSTRAINT suggestions_pkey PRIMARY KEY (id); - - --- --- Name: system_access_microsoft_applications system_access_microsoft_applications_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.system_access_microsoft_applications - ADD CONSTRAINT system_access_microsoft_applications_pkey PRIMARY KEY (id); - - --- --- Name: system_access_microsoft_graph_access_tokens system_access_microsoft_graph_access_tokens_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.system_access_microsoft_graph_access_tokens - ADD CONSTRAINT system_access_microsoft_graph_access_tokens_pkey PRIMARY KEY (id); - - --- --- Name: system_note_metadata system_note_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.system_note_metadata - ADD CONSTRAINT system_note_metadata_pkey PRIMARY KEY (id); - - --- --- Name: taggings taggings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.taggings - ADD CONSTRAINT taggings_pkey PRIMARY KEY (id); - - --- --- Name: tags tags_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.tags - ADD CONSTRAINT tags_pkey PRIMARY KEY (id); - - --- --- Name: target_branch_rules target_branch_rules_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.target_branch_rules - ADD CONSTRAINT target_branch_rules_pkey PRIMARY KEY (id); - - --- --- Name: term_agreements term_agreements_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.term_agreements - ADD CONSTRAINT term_agreements_pkey PRIMARY KEY (id); - - --- --- Name: terraform_state_versions terraform_state_versions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.terraform_state_versions - ADD CONSTRAINT terraform_state_versions_pkey PRIMARY KEY (id); - - --- --- Name: terraform_states terraform_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.terraform_states - ADD CONSTRAINT terraform_states_pkey PRIMARY KEY (id); - - --- --- Name: timelog_categories timelog_categories_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.timelog_categories - ADD CONSTRAINT timelog_categories_pkey PRIMARY KEY (id); - - --- --- Name: timelogs timelogs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.timelogs - ADD CONSTRAINT timelogs_pkey PRIMARY KEY (id); - - --- --- Name: todos todos_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.todos - ADD CONSTRAINT todos_pkey PRIMARY KEY (id); - - --- --- Name: token_with_ivs token_with_ivs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.token_with_ivs - ADD CONSTRAINT token_with_ivs_pkey PRIMARY KEY (id); - - --- --- Name: topics topics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.topics - ADD CONSTRAINT topics_pkey PRIMARY KEY (id); - - --- --- Name: trending_projects trending_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.trending_projects - ADD CONSTRAINT trending_projects_pkey PRIMARY KEY (id); - - --- --- Name: upcoming_reconciliations upcoming_reconciliations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.upcoming_reconciliations - ADD CONSTRAINT upcoming_reconciliations_pkey PRIMARY KEY (id); - - --- --- Name: upload_states upload_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.upload_states - ADD CONSTRAINT upload_states_pkey PRIMARY KEY (upload_id); - - --- --- Name: uploads uploads_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.uploads - ADD CONSTRAINT uploads_pkey PRIMARY KEY (id); - - --- --- Name: user_achievements user_achievements_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_achievements - ADD CONSTRAINT user_achievements_pkey PRIMARY KEY (id); - - --- --- Name: user_agent_details user_agent_details_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_agent_details - ADD CONSTRAINT user_agent_details_pkey PRIMARY KEY (id); - - --- --- Name: user_audit_events user_audit_events_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_audit_events - ADD CONSTRAINT user_audit_events_pkey PRIMARY KEY (id, created_at); - - --- --- Name: user_broadcast_message_dismissals user_broadcast_message_dismissals_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_broadcast_message_dismissals - ADD CONSTRAINT user_broadcast_message_dismissals_pkey PRIMARY KEY (id); - - --- --- Name: user_callouts user_callouts_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_callouts - ADD CONSTRAINT user_callouts_pkey PRIMARY KEY (id); - - --- --- Name: user_canonical_emails user_canonical_emails_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_canonical_emails - ADD CONSTRAINT user_canonical_emails_pkey PRIMARY KEY (id); - - --- --- Name: user_credit_card_validations user_credit_card_validations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_credit_card_validations - ADD CONSTRAINT user_credit_card_validations_pkey PRIMARY KEY (user_id); - - --- --- Name: user_custom_attributes user_custom_attributes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_custom_attributes - ADD CONSTRAINT user_custom_attributes_pkey PRIMARY KEY (id); - - --- --- Name: user_details user_details_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_details - ADD CONSTRAINT user_details_pkey PRIMARY KEY (user_id); - - --- --- Name: user_follow_users user_follow_users_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_follow_users - ADD CONSTRAINT user_follow_users_pkey PRIMARY KEY (follower_id, followee_id); - - --- --- Name: user_group_callouts user_group_callouts_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_group_callouts - ADD CONSTRAINT user_group_callouts_pkey PRIMARY KEY (id); - - --- --- Name: user_highest_roles user_highest_roles_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_highest_roles - ADD CONSTRAINT user_highest_roles_pkey PRIMARY KEY (user_id); - - --- --- Name: user_namespace_callouts user_namespace_callouts_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_namespace_callouts - ADD CONSTRAINT user_namespace_callouts_pkey PRIMARY KEY (id); - - --- --- Name: user_permission_export_uploads user_permission_export_uploads_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_permission_export_uploads - ADD CONSTRAINT user_permission_export_uploads_pkey PRIMARY KEY (id); - - --- --- Name: user_phone_number_validations user_phone_number_validations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_phone_number_validations - ADD CONSTRAINT user_phone_number_validations_pkey PRIMARY KEY (user_id); - - --- --- Name: user_preferences user_preferences_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_preferences - ADD CONSTRAINT user_preferences_pkey PRIMARY KEY (id); - - --- --- Name: user_project_callouts user_project_callouts_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_project_callouts - ADD CONSTRAINT user_project_callouts_pkey PRIMARY KEY (id); - - --- --- Name: user_statuses user_statuses_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_statuses - ADD CONSTRAINT user_statuses_pkey PRIMARY KEY (user_id); - - --- --- Name: user_synced_attributes_metadata user_synced_attributes_metadata_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.user_synced_attributes_metadata - ADD CONSTRAINT user_synced_attributes_metadata_pkey PRIMARY KEY (id); - - --- --- Name: users_ops_dashboard_projects users_ops_dashboard_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.users_ops_dashboard_projects - ADD CONSTRAINT users_ops_dashboard_projects_pkey PRIMARY KEY (id); - - --- --- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.users - ADD CONSTRAINT users_pkey PRIMARY KEY (id); - - --- --- Name: users_security_dashboard_projects users_security_dashboard_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.users_security_dashboard_projects - ADD CONSTRAINT users_security_dashboard_projects_pkey PRIMARY KEY (project_id, user_id); - - --- --- Name: users_star_projects users_star_projects_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.users_star_projects - ADD CONSTRAINT users_star_projects_pkey PRIMARY KEY (id); - - --- --- Name: users_statistics users_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.users_statistics - ADD CONSTRAINT users_statistics_pkey PRIMARY KEY (id); - - --- --- Name: value_stream_dashboard_aggregations value_stream_dashboard_aggregations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.value_stream_dashboard_aggregations - ADD CONSTRAINT value_stream_dashboard_aggregations_pkey PRIMARY KEY (namespace_id); - - --- --- Name: value_stream_dashboard_counts value_stream_dashboard_counts_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.value_stream_dashboard_counts - ADD CONSTRAINT value_stream_dashboard_counts_pkey PRIMARY KEY (namespace_id, metric, recorded_at, count, id); - - --- --- Name: verification_codes verification_codes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.verification_codes - ADD CONSTRAINT verification_codes_pkey PRIMARY KEY (created_at, visitor_id_code, code, phone); - - --- --- Name: virtual_registries_packages_maven_cached_responses virtual_registries_packages_maven_cached_responses_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.virtual_registries_packages_maven_cached_responses - ADD CONSTRAINT virtual_registries_packages_maven_cached_responses_pkey PRIMARY KEY (id); - - --- --- Name: virtual_registries_packages_maven_registries virtual_registries_packages_maven_registries_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.virtual_registries_packages_maven_registries - ADD CONSTRAINT virtual_registries_packages_maven_registries_pkey PRIMARY KEY (id); - - --- --- Name: virtual_registries_packages_maven_registry_upstreams virtual_registries_packages_maven_registry_upstreams_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.virtual_registries_packages_maven_registry_upstreams - ADD CONSTRAINT virtual_registries_packages_maven_registry_upstreams_pkey PRIMARY KEY (id); - - --- --- Name: virtual_registries_packages_maven_upstreams virtual_registries_packages_maven_upstreams_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.virtual_registries_packages_maven_upstreams - ADD CONSTRAINT virtual_registries_packages_maven_upstreams_pkey PRIMARY KEY (id); - - --- --- Name: vs_code_settings vs_code_settings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vs_code_settings - ADD CONSTRAINT vs_code_settings_pkey PRIMARY KEY (id); - - --- --- Name: vulnerabilities vulnerabilities_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerabilities - ADD CONSTRAINT vulnerabilities_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_export_parts vulnerability_export_parts_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_export_parts - ADD CONSTRAINT vulnerability_export_parts_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_exports vulnerability_exports_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_exports - ADD CONSTRAINT vulnerability_exports_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_external_issue_links vulnerability_external_issue_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_external_issue_links - ADD CONSTRAINT vulnerability_external_issue_links_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_feedback vulnerability_feedback_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_feedback - ADD CONSTRAINT vulnerability_feedback_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_finding_evidences vulnerability_finding_evidences_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_finding_evidences - ADD CONSTRAINT vulnerability_finding_evidences_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_finding_links vulnerability_finding_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_finding_links - ADD CONSTRAINT vulnerability_finding_links_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_finding_signatures vulnerability_finding_signatures_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_finding_signatures - ADD CONSTRAINT vulnerability_finding_signatures_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_findings_remediations vulnerability_findings_remediations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_findings_remediations - ADD CONSTRAINT vulnerability_findings_remediations_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_flags vulnerability_flags_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_flags - ADD CONSTRAINT vulnerability_flags_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_historical_statistics vulnerability_historical_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_historical_statistics - ADD CONSTRAINT vulnerability_historical_statistics_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_identifiers vulnerability_identifiers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_identifiers - ADD CONSTRAINT vulnerability_identifiers_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_issue_links vulnerability_issue_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_issue_links - ADD CONSTRAINT vulnerability_issue_links_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_merge_request_links vulnerability_merge_request_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_merge_request_links - ADD CONSTRAINT vulnerability_merge_request_links_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_namespace_historical_statistics vulnerability_namespace_historical_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_namespace_historical_statistics - ADD CONSTRAINT vulnerability_namespace_historical_statistics_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_occurrence_identifiers vulnerability_occurrence_identifiers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_occurrence_identifiers - ADD CONSTRAINT vulnerability_occurrence_identifiers_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_occurrence_pipelines vulnerability_occurrence_pipelines_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_occurrence_pipelines - ADD CONSTRAINT vulnerability_occurrence_pipelines_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_occurrences vulnerability_occurrences_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_occurrences - ADD CONSTRAINT vulnerability_occurrences_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_reads vulnerability_reads_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_reads - ADD CONSTRAINT vulnerability_reads_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_remediations vulnerability_remediations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_remediations - ADD CONSTRAINT vulnerability_remediations_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_scanners vulnerability_scanners_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_scanners - ADD CONSTRAINT vulnerability_scanners_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_state_transitions vulnerability_state_transitions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_state_transitions - ADD CONSTRAINT vulnerability_state_transitions_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_statistics vulnerability_statistics_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_statistics - ADD CONSTRAINT vulnerability_statistics_pkey PRIMARY KEY (id); - - --- --- Name: vulnerability_user_mentions vulnerability_user_mentions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.vulnerability_user_mentions - ADD CONSTRAINT vulnerability_user_mentions_pkey PRIMARY KEY (id); - - --- --- Name: web_hook_logs web_hook_logs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.web_hook_logs - ADD CONSTRAINT web_hook_logs_pkey PRIMARY KEY (id, created_at); - - --- --- Name: web_hooks web_hooks_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.web_hooks - ADD CONSTRAINT web_hooks_pkey PRIMARY KEY (id); - - --- --- Name: webauthn_registrations webauthn_registrations_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.webauthn_registrations - ADD CONSTRAINT webauthn_registrations_pkey PRIMARY KEY (id); - - --- --- Name: wiki_page_meta wiki_page_meta_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.wiki_page_meta - ADD CONSTRAINT wiki_page_meta_pkey PRIMARY KEY (id); - - --- --- Name: wiki_page_slugs wiki_page_slugs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.wiki_page_slugs - ADD CONSTRAINT wiki_page_slugs_pkey PRIMARY KEY (id); - - --- --- Name: wiki_repository_states wiki_repository_states_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.wiki_repository_states - ADD CONSTRAINT wiki_repository_states_pkey PRIMARY KEY (id); - - --- --- Name: work_item_colors work_item_colors_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.work_item_colors - ADD CONSTRAINT work_item_colors_pkey PRIMARY KEY (issue_id); - - --- --- Name: work_item_dates_sources work_item_dates_sources_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.work_item_dates_sources - ADD CONSTRAINT work_item_dates_sources_pkey PRIMARY KEY (issue_id); - - --- --- Name: work_item_hierarchy_restrictions work_item_hierarchy_restrictions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.work_item_hierarchy_restrictions - ADD CONSTRAINT work_item_hierarchy_restrictions_pkey PRIMARY KEY (id); - - --- --- Name: work_item_parent_links work_item_parent_links_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.work_item_parent_links - ADD CONSTRAINT work_item_parent_links_pkey PRIMARY KEY (id); - - --- --- Name: work_item_progresses work_item_progresses_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.work_item_progresses - ADD CONSTRAINT work_item_progresses_pkey PRIMARY KEY (issue_id); - - --- --- Name: work_item_related_link_restrictions work_item_related_link_restrictions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.work_item_related_link_restrictions - ADD CONSTRAINT work_item_related_link_restrictions_pkey PRIMARY KEY (id); - - --- --- Name: work_item_types work_item_types_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.work_item_types - ADD CONSTRAINT work_item_types_pkey PRIMARY KEY (id); - - --- --- Name: work_item_widget_definitions work_item_widget_definitions_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.work_item_widget_definitions - ADD CONSTRAINT work_item_widget_definitions_pkey PRIMARY KEY (id); - - --- --- Name: workspace_variables workspace_variables_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.workspace_variables - ADD CONSTRAINT workspace_variables_pkey PRIMARY KEY (id); - - --- --- Name: workspaces_agent_configs workspaces_agent_configs_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.workspaces_agent_configs - ADD CONSTRAINT workspaces_agent_configs_pkey PRIMARY KEY (id); - - --- --- Name: workspaces workspaces_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.workspaces - ADD CONSTRAINT workspaces_pkey PRIMARY KEY (id); - - --- --- Name: x509_certificates x509_certificates_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.x509_certificates - ADD CONSTRAINT x509_certificates_pkey PRIMARY KEY (id); - - --- --- Name: x509_commit_signatures x509_commit_signatures_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.x509_commit_signatures - ADD CONSTRAINT x509_commit_signatures_pkey PRIMARY KEY (id); - - --- --- Name: x509_issuers x509_issuers_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.x509_issuers - ADD CONSTRAINT x509_issuers_pkey PRIMARY KEY (id); - - --- --- Name: xray_reports xray_reports_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.xray_reports - ADD CONSTRAINT xray_reports_pkey PRIMARY KEY (id); - - --- --- Name: zentao_tracker_data zentao_tracker_data_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.zentao_tracker_data - ADD CONSTRAINT zentao_tracker_data_pkey PRIMARY KEY (id); - - --- --- Name: zoekt_enabled_namespaces zoekt_enabled_namespaces_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.zoekt_enabled_namespaces - ADD CONSTRAINT zoekt_enabled_namespaces_pkey PRIMARY KEY (id); - - --- --- Name: zoekt_indices zoekt_indices_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.zoekt_indices - ADD CONSTRAINT zoekt_indices_pkey PRIMARY KEY (id); - - --- --- Name: zoekt_nodes zoekt_nodes_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.zoekt_nodes - ADD CONSTRAINT zoekt_nodes_pkey PRIMARY KEY (id); - - --- --- Name: zoekt_replicas zoekt_replicas_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.zoekt_replicas - ADD CONSTRAINT zoekt_replicas_pkey PRIMARY KEY (id); - - --- --- Name: zoekt_repositories zoekt_repositories_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.zoekt_repositories - ADD CONSTRAINT zoekt_repositories_pkey PRIMARY KEY (id); - - --- --- Name: zoekt_shards zoekt_shards_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.zoekt_shards - ADD CONSTRAINT zoekt_shards_pkey PRIMARY KEY (id); - - --- --- Name: zoekt_tasks zoekt_tasks_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.zoekt_tasks - ADD CONSTRAINT zoekt_tasks_pkey PRIMARY KEY (id, partition_id); - - --- --- Name: zoom_meetings zoom_meetings_pkey; Type: CONSTRAINT; Schema: public; Owner: - --- - -ALTER TABLE ONLY public.zoom_meetings - ADD CONSTRAINT zoom_meetings_pkey PRIMARY KEY (id); - - --- --- Name: index_issue_stage_events_project_duration; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_stage_events_project_duration ON ONLY public.analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_000925dbd7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_000925dbd7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_merge_request_stage_events_project_duration; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_stage_events_project_duration ON ONLY public.analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_006f943df6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_006f943df6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_issue_stage_events_for_consistency_check; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_stage_events_for_consistency_check ON ONLY public.analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_009e6c1133; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_009e6c1133 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_02749b504c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_02749b504c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_merge_request_stage_events_group_duration; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_stage_events_group_duration ON ONLY public.analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_0287f5ba09; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_0287f5ba09 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_03aa30a758; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_03aa30a758 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_issue_stage_events_group_duration; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_stage_events_group_duration ON ONLY public.analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_055179c3ea; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_055179c3ea ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_061fe00461; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_061fe00461 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_070cef72c3; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_070cef72c3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_issue_search_data_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_search_data_on_namespace_id ON ONLY public.issue_search_data USING btree (namespace_id); - - --- --- Name: index_08b7071d9b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_08b7071d9b ON gitlab_partitions_static.issue_search_data_41 USING btree (namespace_id); - - --- --- Name: index_08e3cfc564; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_08e3cfc564 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_merge_request_stage_events_group_in_progress_duration; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_stage_events_group_in_progress_duration ON ONLY public.analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_09af45dd6f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_09af45dd6f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_09fe0c1886; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_09fe0c1886 ON gitlab_partitions_static.issue_search_data_01 USING btree (namespace_id); - - --- --- Name: index_0c153e2eae; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_0c153e2eae ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_issue_stage_events_group_in_progress_duration; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_stage_events_group_in_progress_duration ON ONLY public.analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_0ca85f3d71; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_0ca85f3d71 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_issue_stage_events_project_in_progress_duration; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_stage_events_project_in_progress_duration ON ONLY public.analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_0d837a5dda; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_0d837a5dda ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_0e98daa03c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_0e98daa03c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_0f28a65451; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_0f28a65451 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_10588dbff0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_10588dbff0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_106d7d97e8; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_106d7d97e8 ON gitlab_partitions_static.issue_search_data_27 USING btree (namespace_id); - - --- --- Name: index_1076a9a98a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_1076a9a98a ON gitlab_partitions_static.issue_search_data_10 USING btree (namespace_id); - - --- --- Name: index_107e123e17; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_107e123e17 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_1230a7a402; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_1230a7a402 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_142c4e7ea4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_142c4e7ea4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_merge_request_stage_events_project_in_progress_duration; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_stage_events_project_in_progress_duration ON ONLY public.analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_14e4fa1d7d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_14e4fa1d7d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_14f3645821; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_14f3645821 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_16627b455e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_16627b455e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_17fa2812c5; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_17fa2812c5 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_19aa18ccc9; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_19aa18ccc9 ON gitlab_partitions_static.issue_search_data_45 USING btree (namespace_id); - - --- --- Name: index_19f4ed8614; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_19f4ed8614 ON gitlab_partitions_static.issue_search_data_33 USING btree (namespace_id); - - --- --- Name: index_1a0388713a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_1a0388713a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_1a349ed064; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_1a349ed064 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_1af932a3c7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_1af932a3c7 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_1b0ea30bdb; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_1b0ea30bdb ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_1b47bbbb6a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_1b47bbbb6a ON gitlab_partitions_static.issue_search_data_52 USING btree (namespace_id); - - --- --- Name: index_1f6c3faabe; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_1f6c3faabe ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_1f8af04ed1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_1f8af04ed1 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_201c5ddbe9; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_201c5ddbe9 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_20353089e0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_20353089e0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_mr_stage_events_for_consistency_check; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_mr_stage_events_for_consistency_check ON ONLY public.analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_203dd694bc; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_203dd694bc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_206349925b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_206349925b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_208e7ef042; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_208e7ef042 ON gitlab_partitions_static.issue_search_data_48 USING btree (namespace_id); - - --- --- Name: index_2098118748; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_2098118748 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_20c6491c6e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_20c6491c6e ON gitlab_partitions_static.issue_search_data_29 USING btree (namespace_id); - - --- --- Name: index_21db459e34; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_21db459e34 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_21e262390a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_21e262390a ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_2208bd7d7f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_2208bd7d7f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_223592b4a1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_223592b4a1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_22acc9ab11; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_22acc9ab11 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_22ed8f01dd; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_22ed8f01dd ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_234d38a657; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_234d38a657 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_23783dc748; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_23783dc748 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_241e9a574c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_241e9a574c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_24ac321751; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_24ac321751 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_25e2aaee9b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_25e2aaee9b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_2653e7eeb8; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_2653e7eeb8 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_2745f5a388; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_2745f5a388 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_27759556bc; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_27759556bc ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_27d7ad78d8; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_27d7ad78d8 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_281840d2d1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_281840d2d1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_2945cf4c6d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_2945cf4c6d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_296f64df5c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_296f64df5c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_2ad4b4fdbc; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_2ad4b4fdbc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_2b7c0a294e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_2b7c0a294e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_2bac9d64a0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_2bac9d64a0 ON gitlab_partitions_static.issue_search_data_38 USING btree (namespace_id); - - --- --- Name: index_2c6422f668; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_2c6422f668 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_2dfcdbe81e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_2dfcdbe81e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_2e1054b181; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_2e1054b181 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_2e6991d05b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_2e6991d05b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_2f80c360c3; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_2f80c360c3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_2fc271c673; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_2fc271c673 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_2fcfd0dc70; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_2fcfd0dc70 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_3005c75335; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_3005c75335 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_3206c1e6af; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_3206c1e6af ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_3249505125; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_3249505125 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_331eb67441; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_331eb67441 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_34a8b08081; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_34a8b08081 ON gitlab_partitions_static.issue_search_data_40 USING btree (namespace_id); - - --- --- Name: index_3640194b77; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_3640194b77 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_372160a706; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_372160a706 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_389dd3c9fc; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_389dd3c9fc ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_38a538234e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_38a538234e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_39625b8a41; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_39625b8a41 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_399dc06649; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_399dc06649 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_3a10b315c0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_3a10b315c0 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_3a7d21a6ee; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_3a7d21a6ee ON gitlab_partitions_static.issue_search_data_19 USING btree (namespace_id); - - --- --- Name: index_3a8848c00b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_3a8848c00b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_3b09ab5902; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_3b09ab5902 ON gitlab_partitions_static.issue_search_data_12 USING btree (namespace_id); - - --- --- Name: index_3bc2eedca5; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_3bc2eedca5 ON gitlab_partitions_static.issue_search_data_59 USING btree (namespace_id); - - --- --- Name: index_3c2a3a6ac9; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_3c2a3a6ac9 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_3dbde77b8b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_3dbde77b8b ON gitlab_partitions_static.issue_search_data_58 USING btree (namespace_id); - - --- --- Name: index_3e6be332b7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_3e6be332b7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_4137a6fac3; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_4137a6fac3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_41a1c3a4c6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_41a1c3a4c6 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_435802dd01; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_435802dd01 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_436fa9ad5f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_436fa9ad5f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_453a659cb6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_453a659cb6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_46b989b294; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_46b989b294 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_4717e7049b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_4717e7049b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_47638677a3; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_47638677a3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_4810ac88f5; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_4810ac88f5 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_482a09e0ee; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_482a09e0ee ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_491b4b749e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_491b4b749e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_4a243772d7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_4a243772d7 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_4b1793a4c4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_4b1793a4c4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_4b22560035; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_4b22560035 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_4c2645eef2; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_4c2645eef2 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_4c9d14f978; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_4c9d14f978 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_4d04210a95; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_4d04210a95 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_4d4f2f7de6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_4d4f2f7de6 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_4db5aa5872; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_4db5aa5872 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_4dead6f314; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_4dead6f314 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_4e6ce1c371; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_4e6ce1c371 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_4ea50d3a5b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_4ea50d3a5b ON gitlab_partitions_static.issue_search_data_24 USING btree (namespace_id); - - --- --- Name: index_4f2eb7a06b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_4f2eb7a06b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_4f6fc34e57; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_4f6fc34e57 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_50272372ba; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_50272372ba ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_5034eae5ff; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5034eae5ff ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_50c09f6e04; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_50c09f6e04 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_5111e3e7e7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5111e3e7e7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_52ea79bf8e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_52ea79bf8e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_541cc045fc; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_541cc045fc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_5445e466ee; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5445e466ee ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_551676e972; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_551676e972 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_56281bfb73; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_56281bfb73 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_5660b1b38e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5660b1b38e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_584c1e6fb0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_584c1e6fb0 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_5913107510; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5913107510 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_5968e77935; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5968e77935 ON gitlab_partitions_static.issue_search_data_46 USING btree (namespace_id); - - --- --- Name: index_59a8209ab6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_59a8209ab6 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_59ce40fcc4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_59ce40fcc4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_59cfd5bc9a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_59cfd5bc9a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_5a5f39d824; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5a5f39d824 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_5b613b5fcf; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5b613b5fcf ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_5b944f308d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5b944f308d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_5bc2f32084; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5bc2f32084 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_5bfa62771b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5bfa62771b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_5c4053b63d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5c4053b63d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_5db09170d4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5db09170d4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_5e46aea379; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5e46aea379 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_5e78c2eac1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5e78c2eac1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_5ee060202f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5ee060202f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_5f24f6ead2; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5f24f6ead2 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_5f96b344e2; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5f96b344e2 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_5fb1867c41; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5fb1867c41 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_5fe1d00845; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_5fe1d00845 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_60e3480f23; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_60e3480f23 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_6137e27484; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_6137e27484 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_620fe77c99; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_620fe77c99 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_625ed9e965; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_625ed9e965 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_64e3a1dfa1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_64e3a1dfa1 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_64eb4cf8bd; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_64eb4cf8bd ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_6578d04baa; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_6578d04baa ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_6580ecb2db; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_6580ecb2db ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_66a736da09; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_66a736da09 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_680d7ab4a6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_680d7ab4a6 ON gitlab_partitions_static.issue_search_data_06 USING btree (namespace_id); - - --- --- Name: index_682eba05f6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_682eba05f6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_69bdcf213e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_69bdcf213e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_6a39f6d5ac; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_6a39f6d5ac ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_6add8e74cf; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_6add8e74cf ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_6b1ce61c8f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_6b1ce61c8f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_6b431c9952; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_6b431c9952 ON gitlab_partitions_static.issue_search_data_23 USING btree (namespace_id); - - --- --- Name: index_6bf2b9282c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_6bf2b9282c ON gitlab_partitions_static.issue_search_data_22 USING btree (namespace_id); - - --- --- Name: index_6cfb391b86; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_6cfb391b86 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_6e560c1a4d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_6e560c1a4d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_6e64aa1646; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_6e64aa1646 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_6e6c2e6a1d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_6e6c2e6a1d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_6ea423bbd1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_6ea423bbd1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_6ec4c4afd4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_6ec4c4afd4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_6f4e0abe54; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_6f4e0abe54 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_6fa47e1334; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_6fa47e1334 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_708d792ae9; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_708d792ae9 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_70c657954b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_70c657954b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_713f462d76; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_713f462d76 ON gitlab_partitions_static.issue_search_data_57 USING btree (namespace_id); - - --- --- Name: index_71c0e45eca; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_71c0e45eca ON gitlab_partitions_static.issue_search_data_39 USING btree (namespace_id); - - --- --- Name: index_71c2b26944; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_71c2b26944 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_72027c157f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_72027c157f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_739845f617; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_739845f617 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_74addd1240; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_74addd1240 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_75dc81d1d7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_75dc81d1d7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_765b0cd8db; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_765b0cd8db ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_77096a1dc6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_77096a1dc6 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_77c6293242; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_77c6293242 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_77f67bf238; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_77f67bf238 ON gitlab_partitions_static.issue_search_data_02 USING btree (namespace_id); - - --- --- Name: index_7822759674; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_7822759674 ON gitlab_partitions_static.issue_search_data_56 USING btree (namespace_id); - - --- --- Name: index_7a0b7ffadf; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_7a0b7ffadf ON gitlab_partitions_static.issue_search_data_07 USING btree (namespace_id); - - --- --- Name: index_7b7c85eceb; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_7b7c85eceb ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_7da2307d2e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_7da2307d2e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_7ead2300ca; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_7ead2300ca ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_7ecb5b68b4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_7ecb5b68b4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_7f543eed8d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_7f543eed8d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_7f8a80dd47; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_7f8a80dd47 ON gitlab_partitions_static.issue_search_data_49 USING btree (namespace_id); - - --- --- Name: index_80305b1eed; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_80305b1eed ON gitlab_partitions_static.issue_search_data_42 USING btree (namespace_id); - - --- --- Name: index_807671c4be; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_807671c4be ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_807fa83fc0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_807fa83fc0 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_80a81ac235; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_80a81ac235 ON gitlab_partitions_static.issue_search_data_53 USING btree (namespace_id); - - --- --- Name: index_80c65daf20; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_80c65daf20 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_81b31eafac; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_81b31eafac ON gitlab_partitions_static.issue_search_data_63 USING btree (namespace_id); - - --- --- Name: index_81b9cf594f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_81b9cf594f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_82c675952c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_82c675952c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_831e7f124f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_831e7f124f ON gitlab_partitions_static.issue_search_data_43 USING btree (namespace_id); - - --- --- Name: index_837a193bf2; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_837a193bf2 ON gitlab_partitions_static.issue_search_data_55 USING btree (namespace_id); - - --- --- Name: index_837cc295f1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_837cc295f1 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_83c5049b3e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_83c5049b3e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_83edf231b8; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_83edf231b8 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_844abd2888; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_844abd2888 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_8464227c80; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_8464227c80 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_8685d7c69c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_8685d7c69c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_8688b40056; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_8688b40056 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_876145d1d5; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_876145d1d5 ON gitlab_partitions_static.issue_search_data_51 USING btree (namespace_id); - - --- --- Name: index_87d40fb9f9; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_87d40fb9f9 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_88b40d6740; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_88b40d6740 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_89c49cf697; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_89c49cf697 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_89c79afe5c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_89c79afe5c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_8a0fc3de4f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_8a0fc3de4f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_8a8eb06b9a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_8a8eb06b9a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_8b1b6b03b4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_8b1b6b03b4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_8b9f9a19a4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_8b9f9a19a4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_8fb48e72ce; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_8fb48e72ce ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_907e12b7ba; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_907e12b7ba ON gitlab_partitions_static.issue_search_data_54 USING btree (namespace_id); - - --- --- Name: index_918bb2ebbb; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_918bb2ebbb ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_91c432a4bd; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_91c432a4bd ON gitlab_partitions_static.issue_search_data_16 USING btree (namespace_id); - - --- --- Name: index_91d5e4e3df; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_91d5e4e3df ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_9201b952a0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_9201b952a0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_927796f71d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_927796f71d ON gitlab_partitions_static.issue_search_data_50 USING btree (namespace_id); - - --- --- Name: index_92c09e352b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_92c09e352b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_9490e0e0b7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_9490e0e0b7 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_9555c2ae92; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_9555c2ae92 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_95a353f50b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_95a353f50b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_971af9481e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_971af9481e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_994aa245b7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_994aa245b7 ON gitlab_partitions_static.issue_search_data_61 USING btree (namespace_id); - - --- --- Name: index_9955b1dc59; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_9955b1dc59 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_9a2eb72a3b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_9a2eb72a3b ON gitlab_partitions_static.issue_search_data_21 USING btree (namespace_id); - - --- --- Name: index_9b8e89ae41; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_9b8e89ae41 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_9d0e953ab3; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_9d0e953ab3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_9ee83b068b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_9ee83b068b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_a016d4ed08; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_a016d4ed08 ON gitlab_partitions_static.issue_search_data_36 USING btree (namespace_id); - - --- --- Name: index_a1a9dc36c1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_a1a9dc36c1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_a2d9f185a5; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_a2d9f185a5 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_a3feed3097; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_a3feed3097 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_a46b7b7f26; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_a46b7b7f26 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_a4f5106804; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_a4f5106804 ON gitlab_partitions_static.issue_search_data_11 USING btree (namespace_id); - - --- --- Name: index_a6999c65c9; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_a6999c65c9 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_a6c68d16b2; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_a6c68d16b2 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_a8276a450f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_a8276a450f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_a849f1bbcc; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_a849f1bbcc ON gitlab_partitions_static.issue_search_data_62 USING btree (namespace_id); - - --- --- Name: index_a88f20fc98; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_a88f20fc98 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_a8fe03fe34; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_a8fe03fe34 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_a9424aa392; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_a9424aa392 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_a99cee1904; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_a99cee1904 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_a9b1763c36; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_a9b1763c36 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_a9ba23c88e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_a9ba23c88e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_a9deff2159; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_a9deff2159 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_aa92d75d85; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_aa92d75d85 ON gitlab_partitions_static.issue_search_data_04 USING btree (namespace_id); - - --- --- Name: index_aabc184267; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_aabc184267 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_ab22231a16; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_ab22231a16 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_abbdf80ab1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_abbdf80ab1 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_aca42d7cff; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_aca42d7cff ON gitlab_partitions_static.issue_search_data_44 USING btree (namespace_id); - - --- --- Name: index_ad55e8b11c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_ad55e8b11c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_adc159c3fe; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_adc159c3fe ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_aed7f7b10c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_aed7f7b10c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_aee84adb5b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_aee84adb5b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_af8368d587; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_af8368d587 ON gitlab_partitions_static.issue_search_data_31 USING btree (namespace_id); - - --- --- Name: index_b1dda405af; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_b1dda405af ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_b24e8538c8; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_b24e8538c8 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_b286c595e8; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_b286c595e8 ON gitlab_partitions_static.issue_search_data_05 USING btree (namespace_id); - - --- --- Name: index_b377ac6784; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_b377ac6784 ON gitlab_partitions_static.issue_search_data_20 USING btree (namespace_id); - - --- --- Name: index_b3b64068e7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_b3b64068e7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_b3c4c9a53f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_b3c4c9a53f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_b4b2bba753; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_b4b2bba753 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_b607012614; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_b607012614 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_b6cc38a848; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_b6cc38a848 ON gitlab_partitions_static.issue_search_data_08 USING btree (namespace_id); - - --- --- Name: index_b748a3e0a6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_b748a3e0a6 ON gitlab_partitions_static.issue_search_data_15 USING btree (namespace_id); - - --- --- Name: index_b7f21460bb; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_b7f21460bb ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_b83fe1306b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_b83fe1306b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_bb6defaa27; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_bb6defaa27 ON gitlab_partitions_static.issue_search_data_34 USING btree (namespace_id); - - --- --- Name: index_bc189e47ab; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_bc189e47ab ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_bca83177ef; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_bca83177ef ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_bcaa8dcd34; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_bcaa8dcd34 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_bcae2cf631; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_bcae2cf631 ON gitlab_partitions_static.issue_search_data_00 USING btree (namespace_id); - - --- --- Name: index_be0a028bcc; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_be0a028bcc ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_beaa329ca0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_beaa329ca0 ON gitlab_partitions_static.issue_search_data_47 USING btree (namespace_id); - - --- --- Name: index_bedd7e160b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_bedd7e160b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_bee2b94a80; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_bee2b94a80 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_bf1809b19e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_bf1809b19e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_c02f569fba; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c02f569fba ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_c08e669dfa; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c08e669dfa ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_c09bb66559; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c09bb66559 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_c119f5b92e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c119f5b92e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_c17dae3605; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c17dae3605 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_c1cdd90d0d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c1cdd90d0d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_c2b951bf20; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c2b951bf20 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_c3a2cf8b3b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c3a2cf8b3b ON gitlab_partitions_static.issue_search_data_32 USING btree (namespace_id); - - --- --- Name: index_c42b2e7eae; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c42b2e7eae ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_c435d904ce; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c435d904ce ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_c473921734; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c473921734 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_c546bb0736; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c546bb0736 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_c59cde6209; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c59cde6209 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_c66758baa7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c66758baa7 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_c6ea8a0e26; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c6ea8a0e26 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_c7ac8595d3; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c7ac8595d3 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_c8bbf2b334; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c8bbf2b334 ON gitlab_partitions_static.issue_search_data_26 USING btree (namespace_id); - - --- --- Name: index_c8c4219c0a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c8c4219c0a ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_c971e6c5ce; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c971e6c5ce ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_c9b14a3d9f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_c9b14a3d9f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_cb222425ed; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_cb222425ed ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_cbb61ea269; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_cbb61ea269 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_cc0ba6343b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_cc0ba6343b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_ccb4f5c5a6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_ccb4f5c5a6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_cd2b2939a4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_cd2b2939a4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_cda41e106e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_cda41e106e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_ce87cbaf2d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_ce87cbaf2d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_cfa4237c83; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_cfa4237c83 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_d01ea0126a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_d01ea0126a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_d03e9cdfae; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_d03e9cdfae ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_d0d285c264; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_d0d285c264 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_d17b82ddd9; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_d17b82ddd9 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_d1c24d8199; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_d1c24d8199 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_d1c6c67ec1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_d1c6c67ec1 ON gitlab_partitions_static.issue_search_data_60 USING btree (namespace_id); - - --- --- Name: index_d27b4c84e7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_d27b4c84e7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_d2fe918e83; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_d2fe918e83 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_d35c969634; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_d35c969634 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_d3b6418940; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_d3b6418940 ON gitlab_partitions_static.issue_search_data_17 USING btree (namespace_id); - - --- --- Name: index_d493a5c171; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_d493a5c171 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_d6047ee813; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_d6047ee813 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_d69c2485f4; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_d69c2485f4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_d70379e22c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_d70379e22c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_d87775b2e7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_d87775b2e7 ON gitlab_partitions_static.issue_search_data_35 USING btree (namespace_id); - - --- --- Name: index_d8fa9793ad; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_d8fa9793ad ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_d9384b768d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_d9384b768d ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_db2753330c; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_db2753330c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_db6477916f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_db6477916f ON gitlab_partitions_static.issue_search_data_28 USING btree (namespace_id); - - --- --- Name: index_dc571ba649; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_dc571ba649 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_de0334da63; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_de0334da63 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_df62a8c50e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_df62a8c50e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_e1a4f994d8; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_e1a4f994d8 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_e38489ea98; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_e38489ea98 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_e3d1fd5b19; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_e3d1fd5b19 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_e3d6234929; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_e3d6234929 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_e54adf9acb; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_e54adf9acb ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_e6405afea0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_e6405afea0 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_e64588e276; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_e64588e276 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_e716b8ac3f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_e716b8ac3f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_e73bc5ba6a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_e73bc5ba6a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_e8f3a327b2; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_e8f3a327b2 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_ea0c2d3361; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_ea0c2d3361 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_ea1b583157; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_ea1b583157 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_eadcc94c4e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_eadcc94c4e ON gitlab_partitions_static.issue_search_data_03 USING btree (namespace_id); - - --- --- Name: index_eb558957f0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_eb558957f0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_eb5a7f918a; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_eb5a7f918a ON gitlab_partitions_static.issue_search_data_09 USING btree (namespace_id); - - --- --- Name: index_ec25d494e6; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_ec25d494e6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_ece25b5987; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_ece25b5987 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_ed094a4f13; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_ed094a4f13 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_ed6dbac8c0; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_ed6dbac8c0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); - - --- --- Name: index_ee4c549a2d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_ee4c549a2d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_ef6a48bd29; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_ef6a48bd29 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_ef7be2ae94; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_ef7be2ae94 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_efa25b26bd; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_efa25b26bd ON gitlab_partitions_static.issue_search_data_25 USING btree (namespace_id); - - --- --- Name: index_f06b4c7a23; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f06b4c7a23 ON gitlab_partitions_static.issue_search_data_30 USING btree (namespace_id); - - --- --- Name: index_f0cdd09a5e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f0cdd09a5e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_f112fae8ac; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f112fae8ac ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_f1c3d14cdc; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f1c3d14cdc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_f256d3f6a1; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f256d3f6a1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_f2848acfc7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f2848acfc7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_f3d7d86e09; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f3d7d86e09 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_f402f6a388; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f402f6a388 ON gitlab_partitions_static.issue_search_data_14 USING btree (namespace_id); - - --- --- Name: index_f415dc2abd; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f415dc2abd ON gitlab_partitions_static.issue_search_data_18 USING btree (namespace_id); - - --- --- Name: index_f47327ec1f; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f47327ec1f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_f5f0e8eefd; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f5f0e8eefd ON gitlab_partitions_static.issue_search_data_37 USING btree (namespace_id); - - --- --- Name: index_f6b0d458a3; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f6b0d458a3 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_f705dc8541; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f705dc8541 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_f76e8a5304; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f76e8a5304 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_f836021e1e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f836021e1e ON gitlab_partitions_static.issue_search_data_13 USING btree (namespace_id); - - --- --- Name: index_f86acdc2ff; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f86acdc2ff ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_f86f73056d; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f86f73056d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_f878aab8e3; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f878aab8e3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_f902c261ce; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f902c261ce ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_f91599d825; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_f91599d825 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); - - --- --- Name: index_fbccc855cf; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_fbccc855cf ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_fbf2d3310b; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_fbf2d3310b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_fccbe45c32; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_fccbe45c32 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_fee429223e; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_fee429223e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_ff00c038cc; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_ff00c038cc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_ff39be5400; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_ff39be5400 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); - - --- --- Name: index_ff8741d8d7; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX index_ff8741d8d7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); - - --- --- Name: index_issue_search_data_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_search_data_on_issue_id ON ONLY public.issue_search_data USING btree (issue_id); - - --- --- Name: issue_search_data_00_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_00_issue_id_idx ON gitlab_partitions_static.issue_search_data_00 USING btree (issue_id); - - --- --- Name: index_issue_search_data_on_search_vector; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_search_data_on_search_vector ON ONLY public.issue_search_data USING gin (search_vector); - - --- --- Name: issue_search_data_00_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_00_search_vector_idx ON gitlab_partitions_static.issue_search_data_00 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_01_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_01_issue_id_idx ON gitlab_partitions_static.issue_search_data_01 USING btree (issue_id); - - --- --- Name: issue_search_data_01_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_01_search_vector_idx ON gitlab_partitions_static.issue_search_data_01 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_02_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_02_issue_id_idx ON gitlab_partitions_static.issue_search_data_02 USING btree (issue_id); - - --- --- Name: issue_search_data_02_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_02_search_vector_idx ON gitlab_partitions_static.issue_search_data_02 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_03_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_03_issue_id_idx ON gitlab_partitions_static.issue_search_data_03 USING btree (issue_id); - - --- --- Name: issue_search_data_03_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_03_search_vector_idx ON gitlab_partitions_static.issue_search_data_03 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_04_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_04_issue_id_idx ON gitlab_partitions_static.issue_search_data_04 USING btree (issue_id); - - --- --- Name: issue_search_data_04_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_04_search_vector_idx ON gitlab_partitions_static.issue_search_data_04 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_05_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_05_issue_id_idx ON gitlab_partitions_static.issue_search_data_05 USING btree (issue_id); - - --- --- Name: issue_search_data_05_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_05_search_vector_idx ON gitlab_partitions_static.issue_search_data_05 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_06_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_06_issue_id_idx ON gitlab_partitions_static.issue_search_data_06 USING btree (issue_id); - - --- --- Name: issue_search_data_06_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_06_search_vector_idx ON gitlab_partitions_static.issue_search_data_06 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_07_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_07_issue_id_idx ON gitlab_partitions_static.issue_search_data_07 USING btree (issue_id); - - --- --- Name: issue_search_data_07_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_07_search_vector_idx ON gitlab_partitions_static.issue_search_data_07 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_08_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_08_issue_id_idx ON gitlab_partitions_static.issue_search_data_08 USING btree (issue_id); - - --- --- Name: issue_search_data_08_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_08_search_vector_idx ON gitlab_partitions_static.issue_search_data_08 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_09_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_09_issue_id_idx ON gitlab_partitions_static.issue_search_data_09 USING btree (issue_id); - - --- --- Name: issue_search_data_09_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_09_search_vector_idx ON gitlab_partitions_static.issue_search_data_09 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_10_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_10_issue_id_idx ON gitlab_partitions_static.issue_search_data_10 USING btree (issue_id); - - --- --- Name: issue_search_data_10_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_10_search_vector_idx ON gitlab_partitions_static.issue_search_data_10 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_11_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_11_issue_id_idx ON gitlab_partitions_static.issue_search_data_11 USING btree (issue_id); - - --- --- Name: issue_search_data_11_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_11_search_vector_idx ON gitlab_partitions_static.issue_search_data_11 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_12_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_12_issue_id_idx ON gitlab_partitions_static.issue_search_data_12 USING btree (issue_id); - - --- --- Name: issue_search_data_12_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_12_search_vector_idx ON gitlab_partitions_static.issue_search_data_12 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_13_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_13_issue_id_idx ON gitlab_partitions_static.issue_search_data_13 USING btree (issue_id); - - --- --- Name: issue_search_data_13_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_13_search_vector_idx ON gitlab_partitions_static.issue_search_data_13 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_14_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_14_issue_id_idx ON gitlab_partitions_static.issue_search_data_14 USING btree (issue_id); - - --- --- Name: issue_search_data_14_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_14_search_vector_idx ON gitlab_partitions_static.issue_search_data_14 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_15_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_15_issue_id_idx ON gitlab_partitions_static.issue_search_data_15 USING btree (issue_id); - - --- --- Name: issue_search_data_15_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_15_search_vector_idx ON gitlab_partitions_static.issue_search_data_15 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_16_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_16_issue_id_idx ON gitlab_partitions_static.issue_search_data_16 USING btree (issue_id); - - --- --- Name: issue_search_data_16_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_16_search_vector_idx ON gitlab_partitions_static.issue_search_data_16 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_17_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_17_issue_id_idx ON gitlab_partitions_static.issue_search_data_17 USING btree (issue_id); - - --- --- Name: issue_search_data_17_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_17_search_vector_idx ON gitlab_partitions_static.issue_search_data_17 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_18_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_18_issue_id_idx ON gitlab_partitions_static.issue_search_data_18 USING btree (issue_id); - - --- --- Name: issue_search_data_18_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_18_search_vector_idx ON gitlab_partitions_static.issue_search_data_18 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_19_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_19_issue_id_idx ON gitlab_partitions_static.issue_search_data_19 USING btree (issue_id); - - --- --- Name: issue_search_data_19_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_19_search_vector_idx ON gitlab_partitions_static.issue_search_data_19 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_20_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_20_issue_id_idx ON gitlab_partitions_static.issue_search_data_20 USING btree (issue_id); - - --- --- Name: issue_search_data_20_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_20_search_vector_idx ON gitlab_partitions_static.issue_search_data_20 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_21_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_21_issue_id_idx ON gitlab_partitions_static.issue_search_data_21 USING btree (issue_id); - - --- --- Name: issue_search_data_21_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_21_search_vector_idx ON gitlab_partitions_static.issue_search_data_21 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_22_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_22_issue_id_idx ON gitlab_partitions_static.issue_search_data_22 USING btree (issue_id); - - --- --- Name: issue_search_data_22_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_22_search_vector_idx ON gitlab_partitions_static.issue_search_data_22 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_23_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_23_issue_id_idx ON gitlab_partitions_static.issue_search_data_23 USING btree (issue_id); - - --- --- Name: issue_search_data_23_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_23_search_vector_idx ON gitlab_partitions_static.issue_search_data_23 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_24_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_24_issue_id_idx ON gitlab_partitions_static.issue_search_data_24 USING btree (issue_id); - - --- --- Name: issue_search_data_24_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_24_search_vector_idx ON gitlab_partitions_static.issue_search_data_24 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_25_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_25_issue_id_idx ON gitlab_partitions_static.issue_search_data_25 USING btree (issue_id); - - --- --- Name: issue_search_data_25_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_25_search_vector_idx ON gitlab_partitions_static.issue_search_data_25 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_26_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_26_issue_id_idx ON gitlab_partitions_static.issue_search_data_26 USING btree (issue_id); - - --- --- Name: issue_search_data_26_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_26_search_vector_idx ON gitlab_partitions_static.issue_search_data_26 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_27_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_27_issue_id_idx ON gitlab_partitions_static.issue_search_data_27 USING btree (issue_id); - - --- --- Name: issue_search_data_27_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_27_search_vector_idx ON gitlab_partitions_static.issue_search_data_27 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_28_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_28_issue_id_idx ON gitlab_partitions_static.issue_search_data_28 USING btree (issue_id); - - --- --- Name: issue_search_data_28_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_28_search_vector_idx ON gitlab_partitions_static.issue_search_data_28 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_29_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_29_issue_id_idx ON gitlab_partitions_static.issue_search_data_29 USING btree (issue_id); - - --- --- Name: issue_search_data_29_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_29_search_vector_idx ON gitlab_partitions_static.issue_search_data_29 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_30_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_30_issue_id_idx ON gitlab_partitions_static.issue_search_data_30 USING btree (issue_id); - - --- --- Name: issue_search_data_30_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_30_search_vector_idx ON gitlab_partitions_static.issue_search_data_30 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_31_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_31_issue_id_idx ON gitlab_partitions_static.issue_search_data_31 USING btree (issue_id); - - --- --- Name: issue_search_data_31_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_31_search_vector_idx ON gitlab_partitions_static.issue_search_data_31 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_32_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_32_issue_id_idx ON gitlab_partitions_static.issue_search_data_32 USING btree (issue_id); - - --- --- Name: issue_search_data_32_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_32_search_vector_idx ON gitlab_partitions_static.issue_search_data_32 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_33_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_33_issue_id_idx ON gitlab_partitions_static.issue_search_data_33 USING btree (issue_id); - - --- --- Name: issue_search_data_33_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_33_search_vector_idx ON gitlab_partitions_static.issue_search_data_33 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_34_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_34_issue_id_idx ON gitlab_partitions_static.issue_search_data_34 USING btree (issue_id); - - --- --- Name: issue_search_data_34_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_34_search_vector_idx ON gitlab_partitions_static.issue_search_data_34 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_35_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_35_issue_id_idx ON gitlab_partitions_static.issue_search_data_35 USING btree (issue_id); - - --- --- Name: issue_search_data_35_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_35_search_vector_idx ON gitlab_partitions_static.issue_search_data_35 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_36_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_36_issue_id_idx ON gitlab_partitions_static.issue_search_data_36 USING btree (issue_id); - - --- --- Name: issue_search_data_36_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_36_search_vector_idx ON gitlab_partitions_static.issue_search_data_36 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_37_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_37_issue_id_idx ON gitlab_partitions_static.issue_search_data_37 USING btree (issue_id); - - --- --- Name: issue_search_data_37_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_37_search_vector_idx ON gitlab_partitions_static.issue_search_data_37 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_38_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_38_issue_id_idx ON gitlab_partitions_static.issue_search_data_38 USING btree (issue_id); - - --- --- Name: issue_search_data_38_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_38_search_vector_idx ON gitlab_partitions_static.issue_search_data_38 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_39_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_39_issue_id_idx ON gitlab_partitions_static.issue_search_data_39 USING btree (issue_id); - - --- --- Name: issue_search_data_39_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_39_search_vector_idx ON gitlab_partitions_static.issue_search_data_39 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_40_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_40_issue_id_idx ON gitlab_partitions_static.issue_search_data_40 USING btree (issue_id); - - --- --- Name: issue_search_data_40_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_40_search_vector_idx ON gitlab_partitions_static.issue_search_data_40 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_41_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_41_issue_id_idx ON gitlab_partitions_static.issue_search_data_41 USING btree (issue_id); - - --- --- Name: issue_search_data_41_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_41_search_vector_idx ON gitlab_partitions_static.issue_search_data_41 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_42_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_42_issue_id_idx ON gitlab_partitions_static.issue_search_data_42 USING btree (issue_id); - - --- --- Name: issue_search_data_42_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_42_search_vector_idx ON gitlab_partitions_static.issue_search_data_42 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_43_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_43_issue_id_idx ON gitlab_partitions_static.issue_search_data_43 USING btree (issue_id); - - --- --- Name: issue_search_data_43_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_43_search_vector_idx ON gitlab_partitions_static.issue_search_data_43 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_44_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_44_issue_id_idx ON gitlab_partitions_static.issue_search_data_44 USING btree (issue_id); - - --- --- Name: issue_search_data_44_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_44_search_vector_idx ON gitlab_partitions_static.issue_search_data_44 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_45_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_45_issue_id_idx ON gitlab_partitions_static.issue_search_data_45 USING btree (issue_id); - - --- --- Name: issue_search_data_45_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_45_search_vector_idx ON gitlab_partitions_static.issue_search_data_45 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_46_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_46_issue_id_idx ON gitlab_partitions_static.issue_search_data_46 USING btree (issue_id); - - --- --- Name: issue_search_data_46_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_46_search_vector_idx ON gitlab_partitions_static.issue_search_data_46 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_47_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_47_issue_id_idx ON gitlab_partitions_static.issue_search_data_47 USING btree (issue_id); - - --- --- Name: issue_search_data_47_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_47_search_vector_idx ON gitlab_partitions_static.issue_search_data_47 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_48_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_48_issue_id_idx ON gitlab_partitions_static.issue_search_data_48 USING btree (issue_id); - - --- --- Name: issue_search_data_48_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_48_search_vector_idx ON gitlab_partitions_static.issue_search_data_48 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_49_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_49_issue_id_idx ON gitlab_partitions_static.issue_search_data_49 USING btree (issue_id); - - --- --- Name: issue_search_data_49_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_49_search_vector_idx ON gitlab_partitions_static.issue_search_data_49 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_50_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_50_issue_id_idx ON gitlab_partitions_static.issue_search_data_50 USING btree (issue_id); - - --- --- Name: issue_search_data_50_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_50_search_vector_idx ON gitlab_partitions_static.issue_search_data_50 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_51_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_51_issue_id_idx ON gitlab_partitions_static.issue_search_data_51 USING btree (issue_id); - - --- --- Name: issue_search_data_51_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_51_search_vector_idx ON gitlab_partitions_static.issue_search_data_51 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_52_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_52_issue_id_idx ON gitlab_partitions_static.issue_search_data_52 USING btree (issue_id); - - --- --- Name: issue_search_data_52_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_52_search_vector_idx ON gitlab_partitions_static.issue_search_data_52 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_53_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_53_issue_id_idx ON gitlab_partitions_static.issue_search_data_53 USING btree (issue_id); - - --- --- Name: issue_search_data_53_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_53_search_vector_idx ON gitlab_partitions_static.issue_search_data_53 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_54_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_54_issue_id_idx ON gitlab_partitions_static.issue_search_data_54 USING btree (issue_id); - - --- --- Name: issue_search_data_54_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_54_search_vector_idx ON gitlab_partitions_static.issue_search_data_54 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_55_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_55_issue_id_idx ON gitlab_partitions_static.issue_search_data_55 USING btree (issue_id); - - --- --- Name: issue_search_data_55_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_55_search_vector_idx ON gitlab_partitions_static.issue_search_data_55 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_56_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_56_issue_id_idx ON gitlab_partitions_static.issue_search_data_56 USING btree (issue_id); - - --- --- Name: issue_search_data_56_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_56_search_vector_idx ON gitlab_partitions_static.issue_search_data_56 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_57_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_57_issue_id_idx ON gitlab_partitions_static.issue_search_data_57 USING btree (issue_id); - - --- --- Name: issue_search_data_57_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_57_search_vector_idx ON gitlab_partitions_static.issue_search_data_57 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_58_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_58_issue_id_idx ON gitlab_partitions_static.issue_search_data_58 USING btree (issue_id); - - --- --- Name: issue_search_data_58_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_58_search_vector_idx ON gitlab_partitions_static.issue_search_data_58 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_59_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_59_issue_id_idx ON gitlab_partitions_static.issue_search_data_59 USING btree (issue_id); - - --- --- Name: issue_search_data_59_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_59_search_vector_idx ON gitlab_partitions_static.issue_search_data_59 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_60_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_60_issue_id_idx ON gitlab_partitions_static.issue_search_data_60 USING btree (issue_id); - - --- --- Name: issue_search_data_60_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_60_search_vector_idx ON gitlab_partitions_static.issue_search_data_60 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_61_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_61_issue_id_idx ON gitlab_partitions_static.issue_search_data_61 USING btree (issue_id); - - --- --- Name: issue_search_data_61_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_61_search_vector_idx ON gitlab_partitions_static.issue_search_data_61 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_62_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_62_issue_id_idx ON gitlab_partitions_static.issue_search_data_62 USING btree (issue_id); - - --- --- Name: issue_search_data_62_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_62_search_vector_idx ON gitlab_partitions_static.issue_search_data_62 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: issue_search_data_63_issue_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_63_issue_id_idx ON gitlab_partitions_static.issue_search_data_63 USING btree (issue_id); - - --- --- Name: issue_search_data_63_search_vector_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX issue_search_data_63_search_vector_idx ON gitlab_partitions_static.issue_search_data_63 USING gin (search_vector) WITH (fastupdate='false'); - - --- --- Name: index_on_namespace_descendants_outdated; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_namespace_descendants_outdated ON ONLY public.namespace_descendants USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_00_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_00_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_00 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_01_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_01_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_01 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_02_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_02_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_02 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_03_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_03_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_03 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_04_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_04_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_04 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_05_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_05_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_05 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_06_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_06_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_06 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_07_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_07_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_07 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_08_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_08_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_08 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_09_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_09_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_09 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_10_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_10_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_10 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_11_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_11_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_11 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_12_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_12_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_12 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_13_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_13_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_13 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_14_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_14_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_14 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_15_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_15_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_15 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_16_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_16_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_16 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_17_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_17_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_17 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_18_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_18_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_18 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_19_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_19_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_19 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_20_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_20_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_20 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_21_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_21_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_21 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_22_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_22_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_22 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_23_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_23_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_23 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_24_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_24_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_24 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_25_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_25_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_25 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_26_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_26_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_26 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_27_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_27_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_27 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_28_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_28_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_28 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_29_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_29_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_29 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_30_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_30_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_30 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: namespace_descendants_31_namespace_id_idx; Type: INDEX; Schema: gitlab_partitions_static; Owner: - --- - -CREATE INDEX namespace_descendants_31_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_31 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); - - --- --- Name: analytics_index_audit_events_part_on_created_at_and_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX analytics_index_audit_events_part_on_created_at_and_author_id ON ONLY public.audit_events USING btree (created_at, author_id); - - --- --- Name: analytics_index_events_on_created_at_and_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX analytics_index_events_on_created_at_and_author_id ON public.events USING btree (created_at, author_id); - - --- --- Name: analytics_repository_languages_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX analytics_repository_languages_on_project_id ON public.analytics_language_trend_repository_languages USING btree (project_id); - - --- --- Name: any_approver_project_rule_type_unique_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX any_approver_project_rule_type_unique_index ON public.approval_project_rules USING btree (project_id) WHERE (rule_type = 3); - - --- --- Name: approval_mr_rule_index_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX approval_mr_rule_index_merge_request_id ON public.approval_merge_request_rules USING btree (merge_request_id); - - --- --- Name: bulk_import_export_uploads_batch_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX bulk_import_export_uploads_batch_id ON public.bulk_import_export_uploads USING btree (batch_id); - - --- --- Name: bulk_import_trackers_uniq_relation_by_entity; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX bulk_import_trackers_uniq_relation_by_entity ON public.bulk_import_trackers USING btree (bulk_import_entity_id, relation); - - --- --- Name: ca_aggregations_last_consistency_check_updated_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX ca_aggregations_last_consistency_check_updated_at ON public.analytics_cycle_analytics_aggregations USING btree (last_consistency_check_updated_at NULLS FIRST) WHERE (enabled IS TRUE); - - --- --- Name: ca_aggregations_last_full_run_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX ca_aggregations_last_full_run_at ON public.analytics_cycle_analytics_aggregations USING btree (last_full_run_at NULLS FIRST) WHERE (enabled IS TRUE); - - --- --- Name: ca_aggregations_last_incremental_run_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX ca_aggregations_last_incremental_run_at ON public.analytics_cycle_analytics_aggregations USING btree (last_incremental_run_at NULLS FIRST) WHERE (enabled IS TRUE); - - --- --- Name: index_p_ci_build_trace_metadata_on_trace_artifact_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_p_ci_build_trace_metadata_on_trace_artifact_id ON ONLY public.p_ci_build_trace_metadata USING btree (trace_artifact_id); - - --- --- Name: ci_build_trace_metadata_trace_artifact_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX ci_build_trace_metadata_trace_artifact_id_idx ON public.ci_build_trace_metadata USING btree (trace_artifact_id); - - --- --- Name: p_ci_builds_status_created_at_project_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_status_created_at_project_id_idx ON ONLY public.p_ci_builds USING btree (status, created_at, project_id) WHERE ((type)::text = 'Ci::Build'::text); - - --- --- Name: ci_builds_gitlab_monitor_metrics; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX ci_builds_gitlab_monitor_metrics ON public.ci_builds USING btree (status, created_at, project_id) WHERE ((type)::text = 'Ci::Build'::text); - - --- --- Name: ci_job_token_scope_links_source_and_target_project_direction; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX ci_job_token_scope_links_source_and_target_project_direction ON public.ci_job_token_project_scope_links USING btree (source_project_id, target_project_id, direction); - - --- --- Name: ci_pipeline_artifacts_on_expire_at_for_removal; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX ci_pipeline_artifacts_on_expire_at_for_removal ON public.ci_pipeline_artifacts USING btree (expire_at) WHERE ((locked = 0) AND (expire_at IS NOT NULL)); - - --- --- Name: code_owner_approval_required; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX code_owner_approval_required ON public.protected_branches USING btree (project_id, code_owner_approval_required) WHERE (code_owner_approval_required = true); - - --- --- Name: commit_user_mentions_on_commit_id_and_note_id_unique_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX commit_user_mentions_on_commit_id_and_note_id_unique_index ON public.commit_user_mentions USING btree (commit_id, note_id); - - --- --- Name: composer_cache_files_index_on_deleted_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX composer_cache_files_index_on_deleted_at ON public.packages_composer_cache_files USING btree (delete_at, id); - - --- --- Name: custom_email_unique_constraint; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX custom_email_unique_constraint ON public.service_desk_settings USING btree (custom_email); - - --- --- Name: dast_scanner_profiles_builds_on_ci_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX dast_scanner_profiles_builds_on_ci_build_id ON public.dast_scanner_profiles_builds USING btree (ci_build_id); - - --- --- Name: dast_site_profiles_builds_on_ci_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX dast_site_profiles_builds_on_ci_build_id ON public.dast_site_profiles_builds USING btree (ci_build_id); - - --- --- Name: design_management_designs_versions_uniqueness; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX design_management_designs_versions_uniqueness ON public.design_management_designs_versions USING btree (design_id, version_id); - - --- --- Name: design_user_mentions_on_design_id_and_note_id_unique_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX design_user_mentions_on_design_id_and_note_id_unique_index ON public.design_user_mentions USING btree (design_id, note_id); - - --- --- Name: epic_user_mentions_on_epic_id_and_note_id_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX epic_user_mentions_on_epic_id_and_note_id_index ON public.epic_user_mentions USING btree (epic_id, note_id); - - --- --- Name: epic_user_mentions_on_epic_id_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX epic_user_mentions_on_epic_id_index ON public.epic_user_mentions USING btree (epic_id) WHERE (note_id IS NULL); - - --- --- Name: finding_evidences_on_unique_vulnerability_occurrence_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX finding_evidences_on_unique_vulnerability_occurrence_id ON public.vulnerability_finding_evidences USING btree (vulnerability_occurrence_id); - - --- --- Name: finding_link_name_url_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX finding_link_name_url_idx ON public.vulnerability_finding_links USING btree (vulnerability_occurrence_id, name, url); - - --- --- Name: finding_link_url_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX finding_link_url_idx ON public.vulnerability_finding_links USING btree (vulnerability_occurrence_id, url) WHERE (name IS NULL); - - --- --- Name: i_affected_packages_unique_for_upsert; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX i_affected_packages_unique_for_upsert ON public.pm_affected_packages USING btree (pm_advisory_id, purl_type, package_name, distro_version); - - --- --- Name: i_batched_background_migration_job_transition_logs_on_job_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX i_batched_background_migration_job_transition_logs_on_job_id ON ONLY public.batched_background_migration_job_transition_logs USING btree (batched_background_migration_job_id); - - --- --- Name: i_bulk_import_export_batches_id_batch_number; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX i_bulk_import_export_batches_id_batch_number ON public.bulk_import_export_batches USING btree (export_id, batch_number); - - --- --- Name: i_bulk_import_trackers_id_batch_number; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX i_bulk_import_trackers_id_batch_number ON public.bulk_import_batch_trackers USING btree (tracker_id, batch_number); - - --- --- Name: i_ci_job_token_group_scope_links_on_source_and_target_project; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX i_ci_job_token_group_scope_links_on_source_and_target_project ON public.ci_job_token_group_scope_links USING btree (source_project_id, target_group_id); - - --- --- Name: i_compliance_frameworks_on_id_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX i_compliance_frameworks_on_id_and_created_at ON public.compliance_management_frameworks USING btree (id, created_at, pipeline_configuration_full_path); - - --- --- Name: i_compliance_standards_adherence_on_namespace_id_and_proj_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX i_compliance_standards_adherence_on_namespace_id_and_proj_id ON public.project_compliance_standards_adherence USING btree (namespace_id, project_id DESC, id DESC); - - --- --- Name: i_compliance_violations_for_export; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX i_compliance_violations_for_export ON public.merge_requests_compliance_violations USING btree (target_project_id, id); - - --- --- Name: i_compliance_violations_on_project_id_merged_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX i_compliance_violations_on_project_id_merged_at_and_id ON public.merge_requests_compliance_violations USING btree (target_project_id, merged_at, id); - - --- --- Name: i_compliance_violations_on_project_id_reason_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX i_compliance_violations_on_project_id_reason_and_id ON public.merge_requests_compliance_violations USING btree (target_project_id, reason, id); - - --- --- Name: i_compliance_violations_on_project_id_severity_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX i_compliance_violations_on_project_id_severity_and_id ON public.merge_requests_compliance_violations USING btree (target_project_id, severity_level DESC, id DESC); - - --- --- Name: i_compliance_violations_on_project_id_title_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX i_compliance_violations_on_project_id_title_and_id ON public.merge_requests_compliance_violations USING btree (target_project_id, title, id); - - --- --- Name: i_container_protection_unique_project_repository_path_pattern; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX i_container_protection_unique_project_repository_path_pattern ON public.container_registry_protection_rules USING btree (project_id, repository_path_pattern); - - --- --- Name: i_custom_email_verifications_on_triggered_at_and_state_started; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX i_custom_email_verifications_on_triggered_at_and_state_started ON public.service_desk_custom_email_verifications USING btree (triggered_at) WHERE (state = 0); - - --- --- Name: i_dast_pre_scan_verification_steps_on_pre_scan_verification_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX i_dast_pre_scan_verification_steps_on_pre_scan_verification_id ON public.dast_pre_scan_verification_steps USING btree (dast_pre_scan_verification_id); - - --- --- Name: i_dast_profiles_tags_on_scanner_profiles_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX i_dast_profiles_tags_on_scanner_profiles_id ON public.dast_profiles_tags USING btree (dast_profile_id); - - --- --- Name: i_namespace_cluster_agent_mappings_on_cluster_agent_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX i_namespace_cluster_agent_mappings_on_cluster_agent_id ON public.remote_development_namespace_cluster_agent_mappings USING btree (cluster_agent_id); - - --- --- Name: i_namespace_cluster_agent_mappings_on_creator_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX i_namespace_cluster_agent_mappings_on_creator_id ON public.remote_development_namespace_cluster_agent_mappings USING btree (creator_id); - - --- --- Name: i_packages_unique_project_id_package_type_package_name_pattern; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX i_packages_unique_project_id_package_type_package_name_pattern ON public.packages_protection_rules USING btree (project_id, package_type, package_name_pattern); - - --- --- Name: i_pkgs_deb_file_meta_on_updated_at_package_file_id_when_unknown; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX i_pkgs_deb_file_meta_on_updated_at_package_file_id_when_unknown ON public.packages_debian_file_metadata USING btree (updated_at, package_file_id) WHERE (file_type = 1); - - --- --- Name: i_pm_licenses_on_spdx_identifier; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX i_pm_licenses_on_spdx_identifier ON public.pm_licenses USING btree (spdx_identifier); - - --- --- Name: i_pm_package_version_licenses_join_ids; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX i_pm_package_version_licenses_join_ids ON public.pm_package_version_licenses USING btree (pm_package_version_id, pm_license_id); - - --- --- Name: i_pm_package_versions_on_package_id_and_version; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX i_pm_package_versions_on_package_id_and_version ON public.pm_package_versions USING btree (pm_package_id, version); - - --- --- Name: i_pm_packages_purl_type_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX i_pm_packages_purl_type_and_name ON public.pm_packages USING btree (purl_type, name); - - --- --- Name: i_sbom_occurrences_vulnerabilities_on_occ_id_and_vuln_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX i_sbom_occurrences_vulnerabilities_on_occ_id_and_vuln_id ON public.sbom_occurrences_vulnerabilities USING btree (sbom_occurrence_id, vulnerability_id); - - --- --- Name: i_software_license_policies_on_custom_software_license_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX i_software_license_policies_on_custom_software_license_id ON public.software_license_policies USING btree (custom_software_license_id); - - --- --- Name: i_vuln_occurrences_on_proj_report_loc_dep_pkg_ver_file_img; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX i_vuln_occurrences_on_proj_report_loc_dep_pkg_ver_file_img ON public.vulnerability_occurrences USING btree (project_id, report_type, ((((location -> 'dependency'::text) -> 'package'::text) ->> 'name'::text)), (((location -> 'dependency'::text) ->> 'version'::text)), COALESCE((location ->> 'file'::text), (location ->> 'image'::text))) WHERE (report_type = ANY (ARRAY[2, 1])); - - --- --- Name: idx_abuse_reports_user_id_status_and_category; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_abuse_reports_user_id_status_and_category ON public.abuse_reports USING btree (user_id, status, category); - - --- --- Name: idx_addon_purchases_on_last_refreshed_at_desc_nulls_last; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_addon_purchases_on_last_refreshed_at_desc_nulls_last ON public.subscription_add_on_purchases USING btree (last_assigned_users_refreshed_at DESC NULLS LAST); - - --- --- Name: idx_alert_management_alerts_on_created_at_project_id_with_issue; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_alert_management_alerts_on_created_at_project_id_with_issue ON public.alert_management_alerts USING btree (created_at, project_id) WHERE (issue_id IS NOT NULL); - - --- --- Name: idx_analytics_devops_adoption_segments_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_analytics_devops_adoption_segments_on_namespace_id ON public.analytics_devops_adoption_segments USING btree (namespace_id); - - --- --- Name: idx_analytics_devops_adoption_snapshots_finalized; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_analytics_devops_adoption_snapshots_finalized ON public.analytics_devops_adoption_snapshots USING btree (namespace_id, end_time) WHERE (recorded_at >= end_time); - - --- --- Name: idx_approval_merge_request_rules_on_scan_result_policy_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_approval_merge_request_rules_on_scan_result_policy_id ON public.approval_merge_request_rules USING btree (scan_result_policy_id); - - --- --- Name: idx_approval_mr_rules_on_config_id_and_id_and_updated_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_approval_mr_rules_on_config_id_and_id_and_updated_at ON public.approval_merge_request_rules USING btree (security_orchestration_policy_configuration_id, id, updated_at); - - --- --- Name: idx_approval_project_rules_on_configuration_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_approval_project_rules_on_configuration_id_and_id ON public.approval_project_rules USING btree (security_orchestration_policy_configuration_id, id); - - --- --- Name: idx_approval_project_rules_on_scan_result_policy_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_approval_project_rules_on_scan_result_policy_id ON public.approval_project_rules USING btree (scan_result_policy_id); - - --- --- Name: idx_audit_events_group_external_destinations_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_audit_events_group_external_destinations_on_group_id ON public.audit_events_group_external_streaming_destinations USING btree (group_id); - - --- --- Name: idx_audit_events_namespace_event_type_filters_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_audit_events_namespace_event_type_filters_on_group_id ON public.audit_events_group_streaming_event_type_filters USING btree (namespace_id); - - --- --- Name: idx_audit_events_part_on_entity_id_desc_author_id_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_audit_events_part_on_entity_id_desc_author_id_created_at ON ONLY public.audit_events USING btree (entity_id, entity_type, id DESC, author_id, created_at); - - --- --- Name: idx_award_emoji_on_user_emoji_name_awardable_type_awardable_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_award_emoji_on_user_emoji_name_awardable_type_awardable_id ON public.award_emoji USING btree (user_id, name, awardable_type, awardable_id); - - --- --- Name: idx_build_artifacts_size_refreshes_state_updated_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_build_artifacts_size_refreshes_state_updated_at ON public.project_build_artifacts_size_refreshes USING btree (state, updated_at); - - --- --- Name: p_ci_job_artifacts_job_id_file_type_partition_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX p_ci_job_artifacts_job_id_file_type_partition_id_idx ON ONLY public.p_ci_job_artifacts USING btree (job_id, file_type, partition_id); - - --- --- Name: idx_ci_job_artifacts_on_job_id_file_type_and_partition_id_uniq; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_ci_job_artifacts_on_job_id_file_type_and_partition_id_uniq ON public.ci_job_artifacts USING btree (job_id, file_type, partition_id); - - --- --- Name: p_ci_pipelines_ci_ref_id_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_ci_ref_id_id_idx ON ONLY public.p_ci_pipelines USING btree (ci_ref_id, id) WHERE (locked = 1); - - --- --- Name: idx_ci_pipelines_artifacts_locked; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_ci_pipelines_artifacts_locked ON public.ci_pipelines USING btree (ci_ref_id, id) WHERE (locked = 1); - - --- --- Name: idx_ci_running_builds_on_runner_type_and_owner_xid_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_ci_running_builds_on_runner_type_and_owner_xid_and_id ON public.ci_running_builds USING btree (runner_type, runner_owner_namespace_xid, runner_id); - - --- --- Name: idx_compliance_security_policies_on_policy_configuration_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_compliance_security_policies_on_policy_configuration_id ON public.compliance_framework_security_policies USING btree (policy_configuration_id); - - --- --- Name: idx_component_usages_on_catalog_resource_used_by_proj_used_date; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_component_usages_on_catalog_resource_used_by_proj_used_date ON ONLY public.p_catalog_resource_component_usages USING btree (catalog_resource_id, used_by_project_id, used_date); - - --- --- Name: idx_component_usages_on_component_used_by_project_and_used_date; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_component_usages_on_component_used_by_project_and_used_date ON ONLY public.p_catalog_resource_component_usages USING btree (component_id, used_by_project_id, used_date); - - --- --- Name: idx_container_exp_policies_on_project_id_next_run_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_container_exp_policies_on_project_id_next_run_at ON public.container_expiration_policies USING btree (project_id, next_run_at) WHERE (enabled = true); - - --- --- Name: idx_container_exp_policies_on_project_id_next_run_at_enabled; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_container_exp_policies_on_project_id_next_run_at_enabled ON public.container_expiration_policies USING btree (project_id, next_run_at, enabled); - - --- --- Name: idx_container_repos_on_exp_cleanup_status_project_id_start_date; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_container_repos_on_exp_cleanup_status_project_id_start_date ON public.container_repositories USING btree (expiration_policy_cleanup_status, project_id, expiration_policy_started_at); - - --- --- Name: idx_deletions_on_project_id_and_id_where_pending; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_deletions_on_project_id_and_id_where_pending ON ONLY public.p_batched_git_ref_updates_deletions USING btree (project_id, id) WHERE (status = 1); - - --- --- Name: idx_dep_proxy_pkgs_settings_enabled_maven_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_dep_proxy_pkgs_settings_enabled_maven_on_project_id ON public.dependency_proxy_packages_settings USING btree (project_id) WHERE ((enabled = true) AND (maven_external_registry_url IS NOT NULL)); - - --- --- Name: idx_deployment_clusters_on_cluster_id_and_kubernetes_namespace; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_deployment_clusters_on_cluster_id_and_kubernetes_namespace ON public.deployment_clusters USING btree (cluster_id, kubernetes_namespace); - - --- --- Name: idx_devops_adoption_segments_namespace_end_time; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_devops_adoption_segments_namespace_end_time ON public.analytics_devops_adoption_snapshots USING btree (namespace_id, end_time); - - --- --- Name: idx_devops_adoption_segments_namespace_recorded_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_devops_adoption_segments_namespace_recorded_at ON public.analytics_devops_adoption_snapshots USING btree (namespace_id, recorded_at); - - --- --- Name: idx_devops_adoption_segments_namespaces_pair; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_devops_adoption_segments_namespaces_pair ON public.analytics_devops_adoption_segments USING btree (display_namespace_id, namespace_id); - - --- --- Name: idx_elastic_reindexing_slices_on_elastic_reindexing_subtask_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_elastic_reindexing_slices_on_elastic_reindexing_subtask_id ON public.elastic_reindexing_slices USING btree (elastic_reindexing_subtask_id); - - --- --- Name: idx_enabled_pkgs_cleanup_policies_on_next_run_at_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_enabled_pkgs_cleanup_policies_on_next_run_at_project_id ON public.packages_cleanup_policies USING btree (next_run_at, project_id) WHERE (keep_n_duplicated_package_files <> 'all'::text); - - --- --- Name: idx_environment_merge_requests_unique_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_environment_merge_requests_unique_index ON public.deployment_merge_requests USING btree (environment_id, merge_request_id); - - --- --- Name: idx_external_audit_event_destination_id_key_uniq; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_external_audit_event_destination_id_key_uniq ON public.audit_events_streaming_headers USING btree (key, external_audit_event_destination_id); - - --- --- Name: idx_external_status_checks_on_id_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_external_status_checks_on_id_and_project_id ON public.external_status_checks USING btree (id, project_id); - - --- --- Name: idx_gpg_keys_on_user_externally_verified; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_gpg_keys_on_user_externally_verified ON public.gpg_keys USING btree (user_id) WHERE (externally_verified = true); - - --- --- Name: idx_group_audit_events_on_author_id_created_at_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_group_audit_events_on_author_id_created_at_id ON ONLY public.group_audit_events USING btree (author_id, created_at, id); - - --- --- Name: idx_group_audit_events_on_group_id_author_created_at_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_group_audit_events_on_group_id_author_created_at_id ON ONLY public.group_audit_events USING btree (group_id, author_id, created_at, id DESC); - - --- --- Name: idx_group_audit_events_on_project_created_at_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_group_audit_events_on_project_created_at_id ON ONLY public.group_audit_events USING btree (group_id, created_at, id); - - --- --- Name: idx_headers_instance_external_audit_event_destination_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_headers_instance_external_audit_event_destination_id ON public.instance_audit_events_streaming_headers USING btree (instance_external_audit_event_destination_id); - - --- --- Name: idx_installable_conan_pkgs_on_project_id_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_installable_conan_pkgs_on_project_id_id ON public.packages_packages USING btree (project_id, id) WHERE ((package_type = 3) AND (status = ANY (ARRAY[0, 1]))); - - --- --- Name: idx_installable_helm_pkgs_on_project_id_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_installable_helm_pkgs_on_project_id_id ON public.packages_packages USING btree (project_id, id); - - --- --- Name: idx_installable_npm_pkgs_on_project_id_name_version_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_installable_npm_pkgs_on_project_id_name_version_id ON public.packages_packages USING btree (project_id, name, version, id) WHERE ((package_type = 2) AND (status = 0)); - - --- --- Name: idx_instance_audit_events_on_author_id_created_at_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_instance_audit_events_on_author_id_created_at_id ON ONLY public.instance_audit_events USING btree (author_id, created_at, id); - - --- --- Name: idx_instance_external_audit_event_destination_id_key_uniq; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_instance_external_audit_event_destination_id_key_uniq ON public.instance_audit_events_streaming_headers USING btree (instance_external_audit_event_destination_id, key); - - --- --- Name: idx_issues_on_health_status_not_null; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_issues_on_health_status_not_null ON public.issues USING btree (health_status) WHERE (health_status IS NOT NULL); - - --- --- Name: idx_issues_on_project_id_and_created_at_and_id_and_state_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_issues_on_project_id_and_created_at_and_id_and_state_id ON public.issues USING btree (project_id, created_at, id, state_id); - - --- --- Name: idx_issues_on_project_id_and_due_date_and_id_and_state_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_issues_on_project_id_and_due_date_and_id_and_state_id ON public.issues USING btree (project_id, due_date, id, state_id) WHERE (due_date IS NOT NULL); - - --- --- Name: idx_issues_on_project_id_and_rel_position_and_id_and_state_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_issues_on_project_id_and_rel_position_and_id_and_state_id ON public.issues USING btree (project_id, relative_position, id, state_id); - - --- --- Name: idx_issues_on_project_id_and_updated_at_and_id_and_state_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_issues_on_project_id_and_updated_at_and_id_and_state_id ON public.issues USING btree (project_id, updated_at, id, state_id); - - --- --- Name: idx_issues_on_project_work_item_type_closed_at_where_closed; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_issues_on_project_work_item_type_closed_at_where_closed ON public.issues USING btree (project_id, work_item_type_id, closed_at) WHERE (state_id = 2); - - --- --- Name: idx_issues_on_state_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_issues_on_state_id ON public.issues USING btree (state_id); - - --- --- Name: idx_jira_connect_subscriptions_on_installation_id_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_jira_connect_subscriptions_on_installation_id_namespace_id ON public.jira_connect_subscriptions USING btree (jira_connect_installation_id, namespace_id); - - --- --- Name: idx_keys_expires_at_and_before_expiry_notification_undelivered; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_keys_expires_at_and_before_expiry_notification_undelivered ON public.keys USING btree (date(timezone('UTC'::text, expires_at)), before_expiry_notification_delivered_at) WHERE (before_expiry_notification_delivered_at IS NULL); - - --- --- Name: idx_members_created_at_user_id_invite_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_members_created_at_user_id_invite_token ON public.members USING btree (created_at) WHERE ((invite_token IS NOT NULL) AND (user_id IS NULL)); - - --- --- Name: idx_members_on_user_and_source_and_source_type_and_member_role; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_members_on_user_and_source_and_source_type_and_member_role ON public.members USING btree (user_id, source_id, source_type, member_role_id); - - --- --- Name: idx_merge_request_metrics_on_merged_by_project_and_mr; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_merge_request_metrics_on_merged_by_project_and_mr ON public.merge_request_metrics USING btree (merged_by_id, target_project_id, merge_request_id); - - --- --- Name: idx_merge_requests_on_id_and_merge_jid; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_merge_requests_on_id_and_merge_jid ON public.merge_requests USING btree (id, merge_jid) WHERE ((merge_jid IS NOT NULL) AND (state_id = 4)); - - --- --- Name: idx_merge_requests_on_merged_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_merge_requests_on_merged_state ON public.merge_requests USING btree (id) WHERE (state_id = 3); - - --- --- Name: idx_merge_requests_on_source_project_and_branch_state_opened; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_merge_requests_on_source_project_and_branch_state_opened ON public.merge_requests USING btree (source_project_id, source_branch) WHERE (state_id = 1); - - --- --- Name: idx_merge_requests_on_unmerged_state_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_merge_requests_on_unmerged_state_id ON public.merge_requests USING btree (id) WHERE (state_id <> 3); - - --- --- Name: idx_metrics_users_starred_dashboard_on_user_project_dashboard; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_metrics_users_starred_dashboard_on_user_project_dashboard ON public.metrics_users_starred_dashboards USING btree (user_id, project_id, dashboard_path); - - --- --- Name: idx_mr_cc_diff_files_on_mr_cc_id_and_sha; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_mr_cc_diff_files_on_mr_cc_id_and_sha ON public.merge_request_context_commit_diff_files USING btree (merge_request_context_commit_id, sha); - - --- --- Name: idx_mrs_on_target_id_and_created_at_and_state_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_mrs_on_target_id_and_created_at_and_state_id ON public.merge_requests USING btree (target_project_id, state_id, created_at, id); - - --- --- Name: idx_namespace_settings_on_default_compliance_framework_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_namespace_settings_on_default_compliance_framework_id ON public.namespace_settings USING btree (default_compliance_framework_id); - - --- --- Name: idx_namespace_settings_on_last_dormant_member_review_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_namespace_settings_on_last_dormant_member_review_at ON public.namespace_settings USING btree (last_dormant_member_review_at) WHERE (remove_dormant_members IS TRUE); - - --- --- Name: idx_o11y_log_issue_conn_on_issue_id_logs_search_metadata; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_o11y_log_issue_conn_on_issue_id_logs_search_metadata ON public.observability_logs_issues_connections USING btree (issue_id, service_name, severity_number, log_timestamp, log_fingerprint, trace_identifier); - - --- --- Name: idx_o11y_metric_issue_conn_on_issue_id_metric_type_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_o11y_metric_issue_conn_on_issue_id_metric_type_name ON public.observability_metrics_issues_connections USING btree (issue_id, metric_type, metric_name); - - --- --- Name: idx_o11y_trace_issue_conn_on_issue_id_trace_identifier; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_o11y_trace_issue_conn_on_issue_id_trace_identifier ON public.observability_traces_issues_connections USING btree (issue_id, trace_identifier); - - --- --- Name: idx_on_approval_group_rules_any_approver_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_on_approval_group_rules_any_approver_type ON public.approval_group_rules USING btree (group_id, rule_type) WHERE (rule_type = 4); - - --- --- Name: idx_on_approval_group_rules_group_id_type_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_on_approval_group_rules_group_id_type_name ON public.approval_group_rules USING btree (group_id, rule_type, name); - - --- --- Name: idx_on_approval_group_rules_groups_rule_group; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_on_approval_group_rules_groups_rule_group ON public.approval_group_rules_groups USING btree (approval_group_rule_id, group_id); - - --- --- Name: idx_on_approval_group_rules_protected_branch; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_on_approval_group_rules_protected_branch ON public.approval_group_rules_protected_branches USING btree (approval_group_rule_id, protected_branch_id); - - --- --- Name: idx_on_approval_group_rules_security_orch_policy; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_on_approval_group_rules_security_orch_policy ON public.approval_group_rules USING btree (security_orchestration_policy_configuration_id); - - --- --- Name: idx_on_approval_group_rules_users_rule_user; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_on_approval_group_rules_users_rule_user ON public.approval_group_rules_users USING btree (approval_group_rule_id, user_id); - - --- --- Name: idx_on_compliance_management_frameworks_namespace_id_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_on_compliance_management_frameworks_namespace_id_name ON public.compliance_management_frameworks USING btree (namespace_id, name); - - --- --- Name: idx_on_external_approval_rules_project_id_external_url; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_on_external_approval_rules_project_id_external_url ON public.external_approval_rules USING btree (project_id, external_url); - - --- --- Name: idx_on_external_approval_rules_project_id_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_on_external_approval_rules_project_id_name ON public.external_approval_rules USING btree (project_id, name); - - --- --- Name: idx_on_external_status_checks_project_id_external_url; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_on_external_status_checks_project_id_external_url ON public.external_status_checks USING btree (project_id, external_url); - - --- --- Name: idx_on_external_status_checks_project_id_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_on_external_status_checks_project_id_name ON public.external_status_checks USING btree (project_id, name); - - --- --- Name: idx_on_protected_branch; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_on_protected_branch ON public.approval_group_rules_protected_branches USING btree (protected_branch_id); - - --- --- Name: idx_open_issues_on_project_and_confidential_and_author_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_open_issues_on_project_and_confidential_and_author_and_id ON public.issues USING btree (project_id, confidential, author_id, id) WHERE (state_id = 1); - - --- --- Name: idx_p_ci_finished_pipeline_ch_sync_evts_on_project_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_p_ci_finished_pipeline_ch_sync_evts_on_project_namespace_id ON ONLY public.p_ci_finished_pipeline_ch_sync_events USING btree (project_namespace_id); - - --- --- Name: idx_packages_debian_group_component_files_on_architecture_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_packages_debian_group_component_files_on_architecture_id ON public.packages_debian_group_component_files USING btree (architecture_id); - - --- --- Name: idx_packages_debian_project_component_files_on_architecture_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_packages_debian_project_component_files_on_architecture_id ON public.packages_debian_project_component_files USING btree (architecture_id); - - --- --- Name: idx_packages_dependencies_on_name_version_pattern_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_packages_dependencies_on_name_version_pattern_project_id ON public.packages_dependencies USING btree (name, version_pattern, project_id); - - --- --- Name: idx_packages_nuget_metadata_on_pkg_id_and_normalized_version; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_packages_nuget_metadata_on_pkg_id_and_normalized_version ON public.packages_nuget_metadata USING btree (package_id, normalized_version); - - --- --- Name: idx_packages_on_project_id_name_id_version_when_installable_npm; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_packages_on_project_id_name_id_version_when_installable_npm ON public.packages_packages USING btree (project_id, name, id, version) WHERE ((package_type = 2) AND (status = ANY (ARRAY[0, 1]))); - - --- --- Name: idx_packages_on_project_id_name_version_unique_when_generic; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_packages_on_project_id_name_version_unique_when_generic ON public.packages_packages USING btree (project_id, name, version) WHERE ((package_type = 7) AND (status <> 4)); - - --- --- Name: idx_packages_on_project_id_name_version_unique_when_golang; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_packages_on_project_id_name_version_unique_when_golang ON public.packages_packages USING btree (project_id, name, version) WHERE ((package_type = 8) AND (status <> 4)); - - --- --- Name: idx_packages_on_project_id_name_version_unique_when_helm; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_packages_on_project_id_name_version_unique_when_helm ON public.packages_packages USING btree (project_id, name, version) WHERE ((package_type = 11) AND (status <> 4)); - - --- --- Name: idx_packages_on_project_id_name_version_unique_when_npm; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_packages_on_project_id_name_version_unique_when_npm ON public.packages_packages USING btree (project_id, name, version) WHERE ((package_type = 2) AND (status <> 4)); - - --- --- Name: idx_packages_packages_on_npm_scope_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_packages_packages_on_npm_scope_and_project_id ON public.packages_packages USING btree (split_part((name)::text, '/'::text, 1), project_id) WHERE ((package_type = 2) AND ("position"((name)::text, '/'::text) > 0) AND (status = ANY (ARRAY[0, 3])) AND (version IS NOT NULL)); - - --- --- Name: idx_packages_packages_on_project_id_name_version_package_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_packages_packages_on_project_id_name_version_package_type ON public.packages_packages USING btree (project_id, name, version, package_type); - - --- --- Name: idx_pat_last_used_ips_on_pat_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_pat_last_used_ips_on_pat_id ON public.personal_access_token_last_used_ips USING btree (personal_access_token_id); - - --- --- Name: idx_personal_access_tokens_on_previous_personal_access_token_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_personal_access_tokens_on_previous_personal_access_token_id ON public.personal_access_tokens USING btree (previous_personal_access_token_id); - - --- --- Name: idx_pkgs_conan_file_metadata_on_pkg_file_id_when_recipe_file; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_pkgs_conan_file_metadata_on_pkg_file_id_when_recipe_file ON public.packages_conan_file_metadata USING btree (package_file_id) WHERE (conan_file_type = 1); - - --- --- Name: idx_pkgs_debian_group_distribution_keys_on_distribution_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_pkgs_debian_group_distribution_keys_on_distribution_id ON public.packages_debian_group_distribution_keys USING btree (distribution_id); - - --- --- Name: idx_pkgs_debian_project_distribution_keys_on_distribution_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_pkgs_debian_project_distribution_keys_on_distribution_id ON public.packages_debian_project_distribution_keys USING btree (distribution_id); - - --- --- Name: idx_pkgs_dep_links_on_pkg_id_dependency_id_dependency_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_pkgs_dep_links_on_pkg_id_dependency_id_dependency_type ON public.packages_dependency_links USING btree (package_id, dependency_id, dependency_type); - - --- --- Name: idx_pkgs_installable_package_files_on_package_id_id_file_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_pkgs_installable_package_files_on_package_id_id_file_name ON public.packages_package_files USING btree (package_id, id, file_name) WHERE (status = 0); - - --- --- Name: idx_pkgs_npm_metadata_caches_on_id_and_project_id_and_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_pkgs_npm_metadata_caches_on_id_and_project_id_and_status ON public.packages_npm_metadata_caches USING btree (id) WHERE ((project_id IS NULL) AND (status = 0)); - - --- --- Name: idx_pkgs_nuget_symbols_on_lowercase_signature_and_file_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_pkgs_nuget_symbols_on_lowercase_signature_and_file_name ON public.packages_nuget_symbols USING btree (lower(signature), lower(file)); - - --- --- Name: idx_pkgs_on_project_id_name_version_on_installable_terraform; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_pkgs_on_project_id_name_version_on_installable_terraform ON public.packages_packages USING btree (project_id, name, version, id) WHERE ((package_type = 12) AND (status = ANY (ARRAY[0, 1]))); - - --- --- Name: idx_pkgs_project_id_lower_name_when_nuget_installable_version; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_pkgs_project_id_lower_name_when_nuget_installable_version ON public.packages_packages USING btree (project_id, lower((name)::text)) WHERE ((package_type = 4) AND (version IS NOT NULL) AND (status = ANY (ARRAY[0, 1]))); - - --- --- Name: idx_proj_feat_usg_on_jira_dvcs_cloud_last_sync_at_and_proj_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_proj_feat_usg_on_jira_dvcs_cloud_last_sync_at_and_proj_id ON public.project_feature_usages USING btree (jira_dvcs_cloud_last_sync_at, project_id) WHERE (jira_dvcs_cloud_last_sync_at IS NOT NULL); - - --- --- Name: idx_proj_feat_usg_on_jira_dvcs_server_last_sync_at_and_proj_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_proj_feat_usg_on_jira_dvcs_server_last_sync_at_and_proj_id ON public.project_feature_usages USING btree (jira_dvcs_server_last_sync_at, project_id) WHERE (jira_dvcs_server_last_sync_at IS NOT NULL); - - --- --- Name: idx_project_audit_events_on_author_id_created_at_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_project_audit_events_on_author_id_created_at_id ON ONLY public.project_audit_events USING btree (author_id, created_at, id); - - --- --- Name: idx_project_audit_events_on_project_created_at_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_project_audit_events_on_project_created_at_id ON ONLY public.project_audit_events USING btree (project_id, created_at, id); - - --- --- Name: idx_project_audit_events_on_project_id_author_created_at_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_project_audit_events_on_project_id_author_created_at_id ON ONLY public.project_audit_events USING btree (project_id, author_id, created_at, id DESC); - - --- --- Name: idx_project_id_payload_key_self_managed_prometheus_alert_events; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_project_id_payload_key_self_managed_prometheus_alert_events ON public.self_managed_prometheus_alert_events USING btree (project_id, payload_key); - - --- --- Name: idx_project_repository_check_partial; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_project_repository_check_partial ON public.projects USING btree (repository_storage, created_at) WHERE (last_repository_check_at IS NULL); - - --- --- Name: idx_projects_api_created_at_id_for_archived; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_projects_api_created_at_id_for_archived ON public.projects USING btree (created_at, id) WHERE ((archived = true) AND (pending_delete = false) AND (hidden = false)); - - --- --- Name: idx_projects_api_created_at_id_for_archived_vis20; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_projects_api_created_at_id_for_archived_vis20 ON public.projects USING btree (created_at, id) WHERE ((archived = true) AND (visibility_level = 20) AND (pending_delete = false) AND (hidden = false)); - - --- --- Name: idx_projects_api_created_at_id_for_vis10; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_projects_api_created_at_id_for_vis10 ON public.projects USING btree (created_at, id) WHERE ((visibility_level = 10) AND (pending_delete = false) AND (hidden = false)); - - --- --- Name: idx_projects_id_created_at_disable_overriding_approvers_false; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_projects_id_created_at_disable_overriding_approvers_false ON public.projects USING btree (id, created_at) WHERE ((disable_overriding_approvers_per_merge_request = false) OR (disable_overriding_approvers_per_merge_request IS NULL)); - - --- --- Name: idx_projects_id_created_at_disable_overriding_approvers_true; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_projects_id_created_at_disable_overriding_approvers_true ON public.projects USING btree (id, created_at) WHERE (disable_overriding_approvers_per_merge_request = true); - - --- --- Name: idx_projects_on_repository_storage_last_repository_updated_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_projects_on_repository_storage_last_repository_updated_at ON public.projects USING btree (id, repository_storage, last_repository_updated_at); - - --- --- Name: idx_reminder_frequency_on_work_item_progresses; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_reminder_frequency_on_work_item_progresses ON public.work_item_progresses USING btree (reminder_frequency); - - --- --- Name: idx_sbom_components_on_name_gin; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_sbom_components_on_name_gin ON public.sbom_components USING gin (name public.gin_trgm_ops); - - --- --- Name: idx_sbom_components_on_name_purl_type_component_type_and_org_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_sbom_components_on_name_purl_type_component_type_and_org_id ON public.sbom_components USING btree (name, purl_type, component_type, organization_id); - - --- --- Name: idx_sbom_occurr_on_project_component_version_input_file_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_sbom_occurr_on_project_component_version_input_file_path ON public.sbom_occurrences USING btree (project_id, component_version_id, input_file_path); - - --- --- Name: idx_sbom_occurrences_on_project_id_and_source_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_sbom_occurrences_on_project_id_and_source_id ON public.sbom_occurrences USING btree (project_id, source_id); - - --- --- Name: idx_sbom_source_packages_on_name_and_purl_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_sbom_source_packages_on_name_and_purl_type ON public.sbom_source_packages USING btree (name, purl_type); - - --- --- Name: idx_scan_result_policies_on_configuration_id_id_updated_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_scan_result_policies_on_configuration_id_id_updated_at ON public.scan_result_policies USING btree (security_orchestration_policy_configuration_id, id, updated_at); - - --- --- Name: idx_scan_result_policy_violations_on_policy_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_scan_result_policy_violations_on_policy_id_and_id ON public.scan_result_policy_violations USING btree (scan_result_policy_id, id); - - --- --- Name: idx_security_scans_on_build_and_scan_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_security_scans_on_build_and_scan_type ON public.security_scans USING btree (build_id, scan_type); - - --- --- Name: idx_security_scans_on_scan_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_security_scans_on_scan_type ON public.security_scans USING btree (scan_type); - - --- --- Name: idx_software_license_policies_unique_on_custom_license_project; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_software_license_policies_unique_on_custom_license_project ON public.software_license_policies USING btree (project_id, custom_software_license_id, scan_result_policy_id); - - --- --- Name: idx_software_license_policies_unique_on_project_and_scan_policy; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_software_license_policies_unique_on_project_and_scan_policy ON public.software_license_policies USING btree (project_id, software_license_id, scan_result_policy_id); - - --- --- Name: idx_status_check_responses_on_id_and_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_status_check_responses_on_id_and_status ON public.status_check_responses USING btree (id, status); - - --- --- Name: idx_streaming_group_namespace_filters_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_streaming_group_namespace_filters_on_namespace_id ON public.audit_events_streaming_group_namespace_filters USING btree (namespace_id); - - --- --- Name: idx_streaming_headers_on_external_audit_event_destination_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_streaming_headers_on_external_audit_event_destination_id ON public.audit_events_streaming_headers USING btree (external_audit_event_destination_id); - - --- --- Name: idx_streaming_instance_namespace_filters_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_streaming_instance_namespace_filters_on_namespace_id ON public.audit_events_streaming_instance_namespace_filters USING btree (namespace_id); - - --- --- Name: idx_test_reports_on_issue_id_created_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_test_reports_on_issue_id_created_at_and_id ON public.requirements_management_test_reports USING btree (issue_id, created_at, id); - - --- --- Name: idx_uniq_analytics_dashboards_pointers_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_uniq_analytics_dashboards_pointers_on_project_id ON public.analytics_dashboards_pointers USING btree (project_id); - - --- --- Name: idx_user_add_on_assignments_on_add_on_purchase_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_user_add_on_assignments_on_add_on_purchase_id_and_id ON public.subscription_user_add_on_assignments USING btree (add_on_purchase_id, id); - - --- --- Name: idx_user_audit_events_on_author_id_created_at_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_user_audit_events_on_author_id_created_at_id ON ONLY public.user_audit_events USING btree (author_id, created_at, id); - - --- --- Name: idx_user_audit_events_on_project_created_at_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_user_audit_events_on_project_created_at_id ON ONLY public.user_audit_events USING btree (user_id, created_at, id); - - --- --- Name: idx_user_audit_events_on_user_id_author_created_at_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_user_audit_events_on_user_id_author_created_at_id ON ONLY public.user_audit_events USING btree (user_id, author_id, created_at, id DESC); - - --- --- Name: idx_user_credit_card_validations_on_holder_name_hash; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_user_credit_card_validations_on_holder_name_hash ON public.user_credit_card_validations USING btree (holder_name_hash); - - --- --- Name: idx_user_credit_card_validations_on_similar_to_meta_data; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_user_credit_card_validations_on_similar_to_meta_data ON public.user_credit_card_validations USING btree (expiration_date_hash, last_digits_hash, network_hash, credit_card_validated_at); - - --- --- Name: idx_user_details_on_provisioned_by_group_id_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_user_details_on_provisioned_by_group_id_user_id ON public.user_details USING btree (provisioned_by_group_id, user_id); - - --- --- Name: idx_vreg_pkgs_maven_cached_responses_on_relative_path_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_vreg_pkgs_maven_cached_responses_on_relative_path_trigram ON public.virtual_registries_packages_maven_cached_responses USING gin (relative_path public.gin_trgm_ops); - - --- --- Name: idx_vregs_pkgs_mvn_cached_resp_on_uniq_upstrm_id_and_rel_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_vregs_pkgs_mvn_cached_resp_on_uniq_upstrm_id_and_rel_path ON public.virtual_registries_packages_maven_cached_responses USING btree (upstream_id, relative_path); - - --- --- Name: idx_vuln_reads_for_filtering; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_vuln_reads_for_filtering ON public.vulnerability_reads USING btree (project_id, state, dismissal_reason, severity DESC, vulnerability_id DESC NULLS LAST); - - --- --- Name: idx_vuln_signatures_uniqueness_signature_sha; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_vuln_signatures_uniqueness_signature_sha ON public.vulnerability_finding_signatures USING btree (finding_id, algorithm_type, signature_sha); - - --- --- Name: idx_vulnerabilities_on_project_id_and_id_active_cis_dft_branch; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_vulnerabilities_on_project_id_and_id_active_cis_dft_branch ON public.vulnerabilities USING btree (project_id, id) WHERE ((report_type = 7) AND (state = ANY (ARRAY[1, 4])) AND (present_on_default_branch IS TRUE)); - - --- --- Name: idx_vulnerabilities_partial_devops_adoption_and_default_branch; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_vulnerabilities_partial_devops_adoption_and_default_branch ON public.vulnerabilities USING btree (project_id, created_at, present_on_default_branch) WHERE (state <> 1); - - --- --- Name: idx_vulnerability_ext_issue_links_on_vulne_id_and_ext_issue; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_vulnerability_ext_issue_links_on_vulne_id_and_ext_issue ON public.vulnerability_external_issue_links USING btree (vulnerability_id, external_type, external_project_key, external_issue_key); - - --- --- Name: idx_vulnerability_ext_issue_links_on_vulne_id_and_link_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_vulnerability_ext_issue_links_on_vulne_id_and_link_type ON public.vulnerability_external_issue_links USING btree (vulnerability_id, link_type) WHERE (link_type = 1); - - --- --- Name: idx_vulnerability_issue_links_on_vulnerability_id_and_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_vulnerability_issue_links_on_vulnerability_id_and_issue_id ON public.vulnerability_issue_links USING btree (vulnerability_id, issue_id); - - --- --- Name: idx_vulnerability_issue_links_on_vulnerability_id_and_link_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX idx_vulnerability_issue_links_on_vulnerability_id_and_link_type ON public.vulnerability_issue_links USING btree (vulnerability_id, link_type) WHERE (link_type = 2); - - --- --- Name: idx_vulnerability_reads_for_traversal_ids_queries_srt_severity; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_vulnerability_reads_for_traversal_ids_queries_srt_severity ON public.vulnerability_reads USING btree (state, report_type, severity, traversal_ids, vulnerability_id) WHERE (archived = false); - - --- --- Name: idx_vulnerability_reads_project_id_scanner_id_vulnerability_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX idx_vulnerability_reads_project_id_scanner_id_vulnerability_id ON public.vulnerability_reads USING btree (project_id, scanner_id, vulnerability_id); - - --- --- Name: index_p_ci_builds_on_execution_config_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_p_ci_builds_on_execution_config_id ON ONLY public.p_ci_builds USING btree (execution_config_id) WHERE (execution_config_id IS NOT NULL); - - --- --- Name: index_0928d9f200; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_0928d9f200 ON public.ci_builds USING btree (execution_config_id) WHERE (execution_config_id IS NOT NULL); - - --- --- Name: index_abuse_events_on_abuse_report_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_events_on_abuse_report_id ON public.abuse_events USING btree (abuse_report_id); - - --- --- Name: index_abuse_events_on_category_and_source; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_events_on_category_and_source ON public.abuse_events USING btree (category, source); - - --- --- Name: index_abuse_events_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_events_on_user_id ON public.abuse_events USING btree (user_id); - - --- --- Name: index_abuse_report_assignees_on_abuse_report_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_report_assignees_on_abuse_report_id ON public.abuse_report_assignees USING btree (abuse_report_id); - - --- --- Name: index_abuse_report_assignees_on_user_id_and_abuse_report_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_abuse_report_assignees_on_user_id_and_abuse_report_id ON public.abuse_report_assignees USING btree (user_id, abuse_report_id); - - --- --- Name: index_abuse_report_events_on_abuse_report_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_report_events_on_abuse_report_id ON public.abuse_report_events USING btree (abuse_report_id); - - --- --- Name: index_abuse_report_events_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_report_events_on_user_id ON public.abuse_report_events USING btree (user_id); - - --- --- Name: index_abuse_report_notes_on_abuse_report_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_report_notes_on_abuse_report_id ON public.abuse_report_notes USING btree (abuse_report_id); - - --- --- Name: index_abuse_report_notes_on_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_report_notes_on_author_id ON public.abuse_report_notes USING btree (author_id); - - --- --- Name: index_abuse_report_notes_on_resolved_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_report_notes_on_resolved_by_id ON public.abuse_report_notes USING btree (resolved_by_id); - - --- --- Name: index_abuse_report_notes_on_updated_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_report_notes_on_updated_by_id ON public.abuse_report_notes USING btree (updated_by_id); - - --- --- Name: index_abuse_report_user_mentions_on_abuse_report_id_and_note_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_abuse_report_user_mentions_on_abuse_report_id_and_note_id ON public.abuse_report_user_mentions USING btree (abuse_report_id, note_id); - - --- --- Name: index_abuse_report_user_mentions_on_note_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_report_user_mentions_on_note_id ON public.abuse_report_user_mentions USING btree (note_id); - - --- --- Name: index_abuse_reports_on_assignee_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_reports_on_assignee_id ON public.abuse_reports USING btree (assignee_id); - - --- --- Name: index_abuse_reports_on_resolved_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_reports_on_resolved_by_id ON public.abuse_reports USING btree (resolved_by_id); - - --- --- Name: index_abuse_reports_on_status_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_reports_on_status_and_created_at ON public.abuse_reports USING btree (status, created_at); - - --- --- Name: index_abuse_reports_on_status_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_reports_on_status_and_id ON public.abuse_reports USING btree (status, id); - - --- --- Name: index_abuse_reports_on_status_and_updated_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_reports_on_status_and_updated_at ON public.abuse_reports USING btree (status, updated_at); - - --- --- Name: index_abuse_reports_on_status_category_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_reports_on_status_category_and_id ON public.abuse_reports USING btree (status, category, id); - - --- --- Name: index_abuse_reports_on_status_reporter_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_reports_on_status_reporter_id_and_id ON public.abuse_reports USING btree (status, reporter_id, id); - - --- --- Name: index_abuse_trust_scores_on_user_id_and_source_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_abuse_trust_scores_on_user_id_and_source_and_created_at ON public.abuse_trust_scores USING btree (user_id, source, created_at); - - --- --- Name: index_achievements_on_namespace_id_LOWER_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX "index_achievements_on_namespace_id_LOWER_name" ON public.achievements USING btree (namespace_id, lower(name)); - - --- --- Name: index_activity_pub_releases_sub_on_project_id_inbox_url; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_activity_pub_releases_sub_on_project_id_inbox_url ON public.activity_pub_releases_subscriptions USING btree (project_id, lower(subscriber_inbox_url)); - - --- --- Name: index_activity_pub_releases_sub_on_project_id_sub_url; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_activity_pub_releases_sub_on_project_id_sub_url ON public.activity_pub_releases_subscriptions USING btree (project_id, lower(subscriber_url)); - - --- --- Name: index_add_on_purchases_on_organization_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_add_on_purchases_on_organization_id ON public.subscription_add_on_purchases USING btree (organization_id); - - --- --- Name: index_agent_activity_events_on_agent_id_and_recorded_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_agent_activity_events_on_agent_id_and_recorded_at_and_id ON public.agent_activity_events USING btree (agent_id, recorded_at, id); - - --- --- Name: index_agent_activity_events_on_agent_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_agent_activity_events_on_agent_project_id ON public.agent_activity_events USING btree (agent_project_id); - - --- --- Name: index_agent_activity_events_on_agent_token_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_agent_activity_events_on_agent_token_id ON public.agent_activity_events USING btree (agent_token_id) WHERE (agent_token_id IS NOT NULL); - - --- --- Name: index_agent_activity_events_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_agent_activity_events_on_merge_request_id ON public.agent_activity_events USING btree (merge_request_id) WHERE (merge_request_id IS NOT NULL); - - --- --- Name: index_agent_activity_events_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_agent_activity_events_on_project_id ON public.agent_activity_events USING btree (project_id) WHERE (project_id IS NOT NULL); - - --- --- Name: index_agent_activity_events_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_agent_activity_events_on_user_id ON public.agent_activity_events USING btree (user_id) WHERE (user_id IS NOT NULL); - - --- --- Name: index_agent_group_authorizations_on_agent_id_and_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_agent_group_authorizations_on_agent_id_and_group_id ON public.agent_group_authorizations USING btree (agent_id, group_id); - - --- --- Name: index_agent_group_authorizations_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_agent_group_authorizations_on_group_id ON public.agent_group_authorizations USING btree (group_id); - - --- --- Name: index_agent_project_authorizations_on_agent_id_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_agent_project_authorizations_on_agent_id_and_project_id ON public.agent_project_authorizations USING btree (agent_id, project_id); - - --- --- Name: index_agent_project_authorizations_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_agent_project_authorizations_on_project_id ON public.agent_project_authorizations USING btree (project_id); - - --- --- Name: index_agent_user_access_on_agent_id_and_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_agent_user_access_on_agent_id_and_group_id ON public.agent_user_access_group_authorizations USING btree (agent_id, group_id); - - --- --- Name: index_agent_user_access_on_agent_id_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_agent_user_access_on_agent_id_and_project_id ON public.agent_user_access_project_authorizations USING btree (agent_id, project_id); - - --- --- Name: index_agent_user_access_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_agent_user_access_on_group_id ON public.agent_user_access_group_authorizations USING btree (group_id); - - --- --- Name: index_agent_user_access_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_agent_user_access_on_project_id ON public.agent_user_access_project_authorizations USING btree (project_id); - - --- --- Name: index_ai_agent_version_attachments_on_ai_agent_version_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ai_agent_version_attachments_on_ai_agent_version_id ON public.ai_agent_version_attachments USING btree (ai_agent_version_id); - - --- --- Name: index_ai_agent_version_attachments_on_ai_vectorizable_file_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ai_agent_version_attachments_on_ai_vectorizable_file_id ON public.ai_agent_version_attachments USING btree (ai_vectorizable_file_id); - - --- --- Name: index_ai_agent_version_attachments_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ai_agent_version_attachments_on_project_id ON public.ai_agent_version_attachments USING btree (project_id); - - --- --- Name: index_ai_agent_versions_on_agent_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ai_agent_versions_on_agent_id ON public.ai_agent_versions USING btree (agent_id); - - --- --- Name: index_ai_agent_versions_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ai_agent_versions_on_project_id ON public.ai_agent_versions USING btree (project_id); - - --- --- Name: index_ai_agents_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ai_agents_on_project_id_and_name ON public.ai_agents USING btree (project_id, name); - - --- --- Name: index_ai_feature_settings_on_ai_self_hosted_model_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ai_feature_settings_on_ai_self_hosted_model_id ON public.ai_feature_settings USING btree (ai_self_hosted_model_id); - - --- --- Name: index_ai_feature_settings_on_feature; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ai_feature_settings_on_feature ON public.ai_feature_settings USING btree (feature); - - --- --- Name: index_ai_self_hosted_models_on_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ai_self_hosted_models_on_name ON public.ai_self_hosted_models USING btree (name); - - --- --- Name: index_ai_vectorizable_files_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ai_vectorizable_files_on_project_id ON public.ai_vectorizable_files USING btree (project_id); - - --- --- Name: index_alert_assignees_on_alert_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_alert_assignees_on_alert_id ON public.alert_management_alert_assignees USING btree (alert_id); - - --- --- Name: index_alert_assignees_on_user_id_and_alert_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_alert_assignees_on_user_id_and_alert_id ON public.alert_management_alert_assignees USING btree (user_id, alert_id); - - --- --- Name: index_alert_management_alert_metric_images_on_alert_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_alert_management_alert_metric_images_on_alert_id ON public.alert_management_alert_metric_images USING btree (alert_id); - - --- --- Name: index_alert_management_alerts_on_domain; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_alert_management_alerts_on_domain ON public.alert_management_alerts USING btree (domain); - - --- --- Name: index_alert_management_alerts_on_environment_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_alert_management_alerts_on_environment_id ON public.alert_management_alerts USING btree (environment_id) WHERE (environment_id IS NOT NULL); - - --- --- Name: index_alert_management_alerts_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_alert_management_alerts_on_issue_id ON public.alert_management_alerts USING btree (issue_id); - - --- --- Name: index_alert_management_alerts_on_project_id_and_iid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_alert_management_alerts_on_project_id_and_iid ON public.alert_management_alerts USING btree (project_id, iid); - - --- --- Name: index_alert_management_alerts_on_prometheus_alert_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_alert_management_alerts_on_prometheus_alert_id ON public.alert_management_alerts USING btree (prometheus_alert_id) WHERE (prometheus_alert_id IS NOT NULL); - - --- --- Name: index_alert_user_mentions_on_alert_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_alert_user_mentions_on_alert_id ON public.alert_management_alert_user_mentions USING btree (alert_management_alert_id) WHERE (note_id IS NULL); - - --- --- Name: index_alert_user_mentions_on_alert_id_and_note_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_alert_user_mentions_on_alert_id_and_note_id ON public.alert_management_alert_user_mentions USING btree (alert_management_alert_id, note_id); - - --- --- Name: index_alert_user_mentions_on_note_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_alert_user_mentions_on_note_id ON public.alert_management_alert_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); - - --- --- Name: index_allowed_email_domains_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_allowed_email_domains_on_group_id ON public.allowed_email_domains USING btree (group_id); - - --- --- Name: index_analytics_ca_group_stages_on_end_event_label_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_analytics_ca_group_stages_on_end_event_label_id ON public.analytics_cycle_analytics_group_stages USING btree (end_event_label_id); - - --- --- Name: index_analytics_ca_group_stages_on_relative_position; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_analytics_ca_group_stages_on_relative_position ON public.analytics_cycle_analytics_group_stages USING btree (relative_position); - - --- --- Name: index_analytics_ca_group_stages_on_start_event_label_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_analytics_ca_group_stages_on_start_event_label_id ON public.analytics_cycle_analytics_group_stages USING btree (start_event_label_id); - - --- --- Name: index_analytics_ca_group_stages_on_value_stream_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_analytics_ca_group_stages_on_value_stream_id ON public.analytics_cycle_analytics_group_stages USING btree (group_value_stream_id); - - --- --- Name: index_analytics_ca_group_value_streams_on_group_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_analytics_ca_group_value_streams_on_group_id_and_name ON public.analytics_cycle_analytics_group_value_streams USING btree (group_id, name); - - --- --- Name: index_analytics_cycle_analytics_group_stages_custom_only; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_analytics_cycle_analytics_group_stages_custom_only ON public.analytics_cycle_analytics_group_stages USING btree (id) WHERE (custom = true); - - --- --- Name: index_analytics_dashboards_pointers_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_analytics_dashboards_pointers_on_namespace_id ON public.analytics_dashboards_pointers USING btree (namespace_id); - - --- --- Name: index_analytics_dashboards_pointers_on_target_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_analytics_dashboards_pointers_on_target_project_id ON public.analytics_dashboards_pointers USING btree (target_project_id); - - --- --- Name: index_application_settings_on_custom_project_templates_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_application_settings_on_custom_project_templates_group_id ON public.application_settings USING btree (custom_project_templates_group_id); - - --- --- Name: index_application_settings_on_file_template_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_application_settings_on_file_template_project_id ON public.application_settings USING btree (file_template_project_id); - - --- --- Name: index_application_settings_on_push_rule_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_application_settings_on_push_rule_id ON public.application_settings USING btree (push_rule_id); - - --- --- Name: index_application_settings_on_usage_stats_set_by_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_application_settings_on_usage_stats_set_by_user_id ON public.application_settings USING btree (usage_stats_set_by_user_id); - - --- --- Name: index_application_settings_web_ide_oauth_application_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_application_settings_web_ide_oauth_application_id ON public.application_settings USING btree (web_ide_oauth_application_id); - - --- --- Name: index_approval_group_rules_groups_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_group_rules_groups_on_group_id ON public.approval_group_rules_groups USING btree (group_id); - - --- --- Name: index_approval_group_rules_on_approval_policy_rule_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_group_rules_on_approval_policy_rule_id ON public.approval_group_rules USING btree (approval_policy_rule_id); - - --- --- Name: index_approval_group_rules_on_scan_result_policy_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_group_rules_on_scan_result_policy_id ON public.approval_group_rules USING btree (scan_result_policy_id); - - --- --- Name: index_approval_group_rules_protected_branches_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_group_rules_protected_branches_on_group_id ON public.approval_group_rules_protected_branches USING btree (group_id); - - --- --- Name: index_approval_group_rules_users_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_group_rules_users_on_group_id ON public.approval_group_rules_users USING btree (group_id); - - --- --- Name: index_approval_group_rules_users_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_group_rules_users_on_user_id ON public.approval_group_rules_users USING btree (user_id); - - --- --- Name: index_approval_merge_request_rule_sources_1; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_approval_merge_request_rule_sources_1 ON public.approval_merge_request_rule_sources USING btree (approval_merge_request_rule_id); - - --- --- Name: index_approval_merge_request_rule_sources_2; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_merge_request_rule_sources_2 ON public.approval_merge_request_rule_sources USING btree (approval_project_rule_id); - - --- --- Name: index_approval_merge_request_rule_sources_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_merge_request_rule_sources_on_project_id ON public.approval_merge_request_rule_sources USING btree (project_id); - - --- --- Name: index_approval_merge_request_rules_approved_approvers_1; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_approval_merge_request_rules_approved_approvers_1 ON public.approval_merge_request_rules_approved_approvers USING btree (approval_merge_request_rule_id, user_id); - - --- --- Name: index_approval_merge_request_rules_approved_approvers_2; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_merge_request_rules_approved_approvers_2 ON public.approval_merge_request_rules_approved_approvers USING btree (user_id); - - --- --- Name: index_approval_merge_request_rules_groups_1; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_approval_merge_request_rules_groups_1 ON public.approval_merge_request_rules_groups USING btree (approval_merge_request_rule_id, group_id); - - --- --- Name: index_approval_merge_request_rules_groups_2; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_merge_request_rules_groups_2 ON public.approval_merge_request_rules_groups USING btree (group_id); - - --- --- Name: index_approval_merge_request_rules_on_approval_policy_rule_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_merge_request_rules_on_approval_policy_rule_id ON public.approval_merge_request_rules USING btree (approval_policy_rule_id); - - --- --- Name: index_approval_merge_request_rules_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_merge_request_rules_on_project_id ON public.approval_merge_request_rules USING btree (project_id); - - --- --- Name: index_approval_merge_request_rules_users_1; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_approval_merge_request_rules_users_1 ON public.approval_merge_request_rules_users USING btree (approval_merge_request_rule_id, user_id); - - --- --- Name: index_approval_merge_request_rules_users_2; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_merge_request_rules_users_2 ON public.approval_merge_request_rules_users USING btree (user_id); - - --- --- Name: index_approval_policy_rule_on_project_and_rule; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_approval_policy_rule_on_project_and_rule ON public.approval_policy_rule_project_links USING btree (approval_policy_rule_id, project_id); - - --- --- Name: index_approval_policy_rule_project_links_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_policy_rule_project_links_on_project_id ON public.approval_policy_rule_project_links USING btree (project_id); - - --- --- Name: index_approval_policy_rules_on_policy_management_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_policy_rules_on_policy_management_project_id ON public.approval_policy_rules USING btree (security_policy_management_project_id); - - --- --- Name: index_approval_policy_rules_on_unique_policy_rule_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_approval_policy_rules_on_unique_policy_rule_index ON public.approval_policy_rules USING btree (security_policy_id, rule_index); - - --- --- Name: index_approval_project_rules_groups_1; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_approval_project_rules_groups_1 ON public.approval_project_rules_groups USING btree (approval_project_rule_id, group_id); - - --- --- Name: index_approval_project_rules_groups_2; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_project_rules_groups_2 ON public.approval_project_rules_groups USING btree (group_id); - - --- --- Name: index_approval_project_rules_on_approval_policy_rule_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_project_rules_on_approval_policy_rule_id ON public.approval_project_rules USING btree (approval_policy_rule_id); - - --- --- Name: index_approval_project_rules_on_id_with_regular_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_project_rules_on_id_with_regular_type ON public.approval_project_rules USING btree (id) WHERE (rule_type = 0); - - --- --- Name: index_approval_project_rules_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_project_rules_on_project_id ON public.approval_project_rules USING btree (project_id); - - --- --- Name: index_approval_project_rules_on_rule_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_project_rules_on_rule_type ON public.approval_project_rules USING btree (rule_type); - - --- --- Name: index_approval_project_rules_protected_branches_pb_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_project_rules_protected_branches_pb_id ON public.approval_project_rules_protected_branches USING btree (protected_branch_id); - - --- --- Name: index_approval_project_rules_report_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_project_rules_report_type ON public.approval_project_rules USING btree (report_type); - - --- --- Name: index_approval_project_rules_users_1; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_approval_project_rules_users_1 ON public.approval_project_rules_users USING btree (approval_project_rule_id, user_id); - - --- --- Name: index_approval_project_rules_users_2; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_project_rules_users_2 ON public.approval_project_rules_users USING btree (user_id); - - --- --- Name: index_approval_project_rules_users_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_project_rules_users_on_project_id ON public.approval_project_rules_users USING btree (project_id); - - --- --- Name: index_approval_rule_name_for_code_owners_rule_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_approval_rule_name_for_code_owners_rule_type ON public.approval_merge_request_rules USING btree (merge_request_id, name) WHERE ((rule_type = 2) AND (section IS NULL)); - - --- --- Name: index_approval_rule_name_for_sectional_code_owners_rule_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_approval_rule_name_for_sectional_code_owners_rule_type ON public.approval_merge_request_rules USING btree (merge_request_id, name, section) WHERE (rule_type = 2); - - --- --- Name: index_approval_rule_on_protected_environment_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_rule_on_protected_environment_id ON public.protected_environment_approval_rules USING btree (protected_environment_id); - - --- --- Name: index_approval_rules_code_owners_rule_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approval_rules_code_owners_rule_type ON public.approval_merge_request_rules USING btree (merge_request_id) WHERE (rule_type = 2); - - --- --- Name: index_approvals_on_merge_request_id_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approvals_on_merge_request_id_and_created_at ON public.approvals USING btree (merge_request_id, created_at); - - --- --- Name: index_approvals_on_user_id_and_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_approvals_on_user_id_and_merge_request_id ON public.approvals USING btree (user_id, merge_request_id); - - --- --- Name: index_approver_groups_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approver_groups_on_group_id ON public.approver_groups USING btree (group_id); - - --- --- Name: index_approver_groups_on_target_id_and_target_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approver_groups_on_target_id_and_target_type ON public.approver_groups USING btree (target_id, target_type); - - --- --- Name: index_approvers_on_target_id_and_target_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approvers_on_target_id_and_target_type ON public.approvers USING btree (target_id, target_type); - - --- --- Name: index_approvers_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_approvers_on_user_id ON public.approvers USING btree (user_id); - - --- --- Name: index_atlassian_identities_on_extern_uid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_atlassian_identities_on_extern_uid ON public.atlassian_identities USING btree (extern_uid); - - --- --- Name: index_audit_events_external_audit_on_verification_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_audit_events_external_audit_on_verification_token ON public.audit_events_external_audit_event_destinations USING btree (verification_token); - - --- --- Name: index_audit_events_instance_namespace_filters_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_audit_events_instance_namespace_filters_on_namespace_id ON public.audit_events_streaming_http_instance_namespace_filters USING btree (namespace_id); - - --- --- Name: index_audit_events_on_entity_id_and_entity_type_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_audit_events_on_entity_id_and_entity_type_and_created_at ON ONLY public.audit_events USING btree (entity_id, entity_type, created_at, id); - - --- --- Name: index_audit_events_streaming_event_type_filters_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_audit_events_streaming_event_type_filters_on_group_id ON public.audit_events_streaming_event_type_filters USING btree (group_id); - - --- --- Name: index_audit_events_streaming_headers_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_audit_events_streaming_headers_on_group_id ON public.audit_events_streaming_headers USING btree (group_id); - - --- --- Name: index_authentication_events_on_provider; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_authentication_events_on_provider ON public.authentication_events USING btree (provider); - - --- --- Name: index_authentication_events_on_user_and_ip_address_and_result; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_authentication_events_on_user_and_ip_address_and_result ON public.authentication_events USING btree (user_id, ip_address, result); - - --- --- Name: index_automation_rules_namespace_id_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_automation_rules_namespace_id_name ON public.automation_rules USING btree (namespace_id, lower(name)); - - --- --- Name: index_automation_rules_namespace_id_permanently_disabled; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_automation_rules_namespace_id_permanently_disabled ON public.automation_rules USING btree (namespace_id, permanently_disabled); - - --- --- Name: index_award_emoji_on_awardable_type_and_awardable_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_award_emoji_on_awardable_type_and_awardable_id ON public.award_emoji USING btree (awardable_type, awardable_id); - - --- --- Name: index_aws_roles_on_role_external_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_aws_roles_on_role_external_id ON public.aws_roles USING btree (role_external_id); - - --- --- Name: index_aws_roles_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_aws_roles_on_user_id ON public.aws_roles USING btree (user_id); - - --- --- Name: index_background_migration_jobs_for_partitioning_migrations; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_background_migration_jobs_for_partitioning_migrations ON public.background_migration_jobs USING btree (((arguments ->> 2))) WHERE (class_name = 'Gitlab::Database::PartitioningMigrationHelpers::BackfillPartitionedTable'::text); - - --- --- Name: index_background_migration_jobs_on_class_name_and_arguments; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_background_migration_jobs_on_class_name_and_arguments ON public.background_migration_jobs USING btree (class_name, arguments); - - --- --- Name: index_background_migration_jobs_on_class_name_and_status_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_background_migration_jobs_on_class_name_and_status_and_id ON public.background_migration_jobs USING btree (class_name, status, id); - - --- --- Name: index_badges_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_badges_on_group_id ON public.badges USING btree (group_id); - - --- --- Name: index_badges_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_badges_on_project_id ON public.badges USING btree (project_id); - - --- --- Name: index_batch_trackers_on_tracker_id_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_batch_trackers_on_tracker_id_status ON public.bulk_import_batch_trackers USING btree (tracker_id, status); - - --- --- Name: index_batched_background_migrations_on_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_batched_background_migrations_on_status ON public.batched_background_migrations USING btree (status); - - --- --- Name: index_batched_background_migrations_on_unique_configuration; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_batched_background_migrations_on_unique_configuration ON public.batched_background_migrations USING btree (job_class_name, table_name, column_name, job_arguments); - - --- --- Name: index_batched_jobs_by_batched_migration_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_batched_jobs_by_batched_migration_id_and_id ON public.batched_background_migration_jobs USING btree (batched_background_migration_id, id); - - --- --- Name: index_batched_jobs_on_batched_migration_id_and_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_batched_jobs_on_batched_migration_id_and_status ON public.batched_background_migration_jobs USING btree (batched_background_migration_id, status); - - --- --- Name: index_batched_migrations_on_gl_schema_and_unique_configuration; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_batched_migrations_on_gl_schema_and_unique_configuration ON public.batched_background_migrations USING btree (gitlab_schema, job_class_name, table_name, column_name, job_arguments); - - --- --- Name: index_board_assignees_on_assignee_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_board_assignees_on_assignee_id ON public.board_assignees USING btree (assignee_id); - - --- --- Name: index_board_assignees_on_board_id_and_assignee_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_board_assignees_on_board_id_and_assignee_id ON public.board_assignees USING btree (board_id, assignee_id); - - --- --- Name: index_board_group_recent_visits_on_board_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_board_group_recent_visits_on_board_id ON public.board_group_recent_visits USING btree (board_id); - - --- --- Name: index_board_group_recent_visits_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_board_group_recent_visits_on_group_id ON public.board_group_recent_visits USING btree (group_id); - - --- --- Name: index_board_group_recent_visits_on_user_group_and_board; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_board_group_recent_visits_on_user_group_and_board ON public.board_group_recent_visits USING btree (user_id, group_id, board_id); - - --- --- Name: index_board_labels_on_board_id_and_label_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_board_labels_on_board_id_and_label_id ON public.board_labels USING btree (board_id, label_id); - - --- --- Name: index_board_labels_on_label_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_board_labels_on_label_id ON public.board_labels USING btree (label_id); - - --- --- Name: index_board_project_recent_visits_on_board_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_board_project_recent_visits_on_board_id ON public.board_project_recent_visits USING btree (board_id); - - --- --- Name: index_board_project_recent_visits_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_board_project_recent_visits_on_project_id ON public.board_project_recent_visits USING btree (project_id); - - --- --- Name: index_board_project_recent_visits_on_user_project_and_board; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_board_project_recent_visits_on_user_project_and_board ON public.board_project_recent_visits USING btree (user_id, project_id, board_id); - - --- --- Name: index_board_user_preferences_on_board_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_board_user_preferences_on_board_id ON public.board_user_preferences USING btree (board_id); - - --- --- Name: index_board_user_preferences_on_user_id_and_board_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_board_user_preferences_on_user_id_and_board_id ON public.board_user_preferences USING btree (user_id, board_id); - - --- --- Name: index_boards_epic_board_labels_on_epic_board_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_epic_board_labels_on_epic_board_id ON public.boards_epic_board_labels USING btree (epic_board_id); - - --- --- Name: index_boards_epic_board_labels_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_epic_board_labels_on_group_id ON public.boards_epic_board_labels USING btree (group_id); - - --- --- Name: index_boards_epic_board_labels_on_label_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_epic_board_labels_on_label_id ON public.boards_epic_board_labels USING btree (label_id); - - --- --- Name: index_boards_epic_board_positions_on_epic_board_id_and_epic_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_boards_epic_board_positions_on_epic_board_id_and_epic_id ON public.boards_epic_board_positions USING btree (epic_board_id, epic_id); - - --- --- Name: index_boards_epic_board_positions_on_epic_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_epic_board_positions_on_epic_id ON public.boards_epic_board_positions USING btree (epic_id); - - --- --- Name: index_boards_epic_board_positions_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_epic_board_positions_on_group_id ON public.boards_epic_board_positions USING btree (group_id); - - --- --- Name: index_boards_epic_board_positions_on_scoped_relative_position; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_epic_board_positions_on_scoped_relative_position ON public.boards_epic_board_positions USING btree (epic_board_id, epic_id, relative_position); - - --- --- Name: index_boards_epic_board_recent_visits_on_epic_board_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_epic_board_recent_visits_on_epic_board_id ON public.boards_epic_board_recent_visits USING btree (epic_board_id); - - --- --- Name: index_boards_epic_board_recent_visits_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_epic_board_recent_visits_on_group_id ON public.boards_epic_board_recent_visits USING btree (group_id); - - --- --- Name: index_boards_epic_boards_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_epic_boards_on_group_id ON public.boards_epic_boards USING btree (group_id); - - --- --- Name: index_boards_epic_list_user_preferences_on_epic_list_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_epic_list_user_preferences_on_epic_list_id ON public.boards_epic_list_user_preferences USING btree (epic_list_id); - - --- --- Name: index_boards_epic_lists_on_epic_board_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_epic_lists_on_epic_board_id ON public.boards_epic_lists USING btree (epic_board_id); - - --- --- Name: index_boards_epic_lists_on_epic_board_id_and_label_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_boards_epic_lists_on_epic_board_id_and_label_id ON public.boards_epic_lists USING btree (epic_board_id, label_id) WHERE (list_type = 1); - - --- --- Name: index_boards_epic_lists_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_epic_lists_on_group_id ON public.boards_epic_lists USING btree (group_id); - - --- --- Name: index_boards_epic_lists_on_label_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_epic_lists_on_label_id ON public.boards_epic_lists USING btree (label_id); - - --- --- Name: index_boards_epic_user_preferences_on_board_user_epic_unique; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_boards_epic_user_preferences_on_board_user_epic_unique ON public.boards_epic_user_preferences USING btree (board_id, user_id, epic_id); - - --- --- Name: index_boards_epic_user_preferences_on_epic_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_epic_user_preferences_on_epic_id ON public.boards_epic_user_preferences USING btree (epic_id); - - --- --- Name: index_boards_epic_user_preferences_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_epic_user_preferences_on_group_id ON public.boards_epic_user_preferences USING btree (group_id); - - --- --- Name: index_boards_epic_user_preferences_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_epic_user_preferences_on_user_id ON public.boards_epic_user_preferences USING btree (user_id); - - --- --- Name: index_boards_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_on_group_id ON public.boards USING btree (group_id); - - --- --- Name: index_boards_on_iteration_cadence_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_on_iteration_cadence_id ON public.boards USING btree (iteration_cadence_id); - - --- --- Name: index_boards_on_iteration_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_on_iteration_id ON public.boards USING btree (iteration_id); - - --- --- Name: index_boards_on_milestone_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_on_milestone_id ON public.boards USING btree (milestone_id); - - --- --- Name: index_boards_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_boards_on_project_id ON public.boards USING btree (project_id); - - --- --- Name: index_broadcast_dismissals_on_user_id_and_broadcast_message_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_broadcast_dismissals_on_user_id_and_broadcast_message_id ON public.user_broadcast_message_dismissals USING btree (user_id, broadcast_message_id); - - --- --- Name: index_broadcast_message_on_ends_at_and_broadcast_type_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_broadcast_message_on_ends_at_and_broadcast_type_and_id ON public.broadcast_messages USING btree (ends_at, broadcast_type, id); - - --- --- Name: index_bulk_import_batch_trackers_on_tracker_id_and_updated_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_bulk_import_batch_trackers_on_tracker_id_and_updated_at ON public.bulk_import_batch_trackers USING btree (tracker_id, updated_at); - - --- --- Name: index_bulk_import_configurations_on_bulk_import_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_bulk_import_configurations_on_bulk_import_id ON public.bulk_import_configurations USING btree (bulk_import_id); - - --- --- Name: index_bulk_import_entities_for_stale_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_bulk_import_entities_for_stale_status ON public.bulk_import_entities USING btree (updated_at, id) WHERE (status = ANY (ARRAY[0, 1])); - - --- --- Name: index_bulk_import_entities_on_bulk_import_id_and_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_bulk_import_entities_on_bulk_import_id_and_status ON public.bulk_import_entities USING btree (bulk_import_id, status); - - --- --- Name: index_bulk_import_entities_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_bulk_import_entities_on_namespace_id ON public.bulk_import_entities USING btree (namespace_id); - - --- --- Name: index_bulk_import_entities_on_parent_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_bulk_import_entities_on_parent_id ON public.bulk_import_entities USING btree (parent_id); - - --- --- Name: index_bulk_import_entities_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_bulk_import_entities_on_project_id ON public.bulk_import_entities USING btree (project_id); - - --- --- Name: index_bulk_import_export_uploads_on_export_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_bulk_import_export_uploads_on_export_id ON public.bulk_import_export_uploads USING btree (export_id); - - --- --- Name: index_bulk_import_exports_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_bulk_import_exports_on_group_id ON public.bulk_import_exports USING btree (group_id); - - --- --- Name: index_bulk_import_exports_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_bulk_import_exports_on_project_id ON public.bulk_import_exports USING btree (project_id); - - --- --- Name: index_bulk_import_exports_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_bulk_import_exports_on_user_id ON public.bulk_import_exports USING btree (user_id); - - --- --- Name: index_bulk_import_failures_on_bulk_import_entity_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_bulk_import_failures_on_bulk_import_entity_id ON public.bulk_import_failures USING btree (bulk_import_entity_id); - - --- --- Name: index_bulk_import_failures_on_correlation_id_value; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_bulk_import_failures_on_correlation_id_value ON public.bulk_import_failures USING btree (correlation_id_value); - - --- --- Name: index_bulk_imports_on_updated_at_and_id_for_stale_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_bulk_imports_on_updated_at_and_id_for_stale_status ON public.bulk_imports USING btree (updated_at, id) WHERE (status = ANY (ARRAY[0, 1])); - - --- --- Name: index_bulk_imports_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_bulk_imports_on_user_id ON public.bulk_imports USING btree (user_id); - - --- --- Name: index_catalog_resource_components_on_catalog_resource_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_catalog_resource_components_on_catalog_resource_id ON public.catalog_resource_components USING btree (catalog_resource_id); - - --- --- Name: index_catalog_resource_components_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_catalog_resource_components_on_project_id ON public.catalog_resource_components USING btree (project_id); - - --- --- Name: index_catalog_resource_components_on_version_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_catalog_resource_components_on_version_id ON public.catalog_resource_components USING btree (version_id); - - --- --- Name: index_catalog_resource_versions_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_catalog_resource_versions_on_project_id ON public.catalog_resource_versions USING btree (project_id); - - --- --- Name: index_catalog_resource_versions_on_published_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_catalog_resource_versions_on_published_by_id ON public.catalog_resource_versions USING btree (published_by_id); - - --- --- Name: index_catalog_resource_versions_on_release_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_catalog_resource_versions_on_release_id ON public.catalog_resource_versions USING btree (release_id); - - --- --- Name: index_catalog_resource_versions_on_resource_id_and_released_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_catalog_resource_versions_on_resource_id_and_released_at ON public.catalog_resource_versions USING btree (catalog_resource_id, released_at); - - --- --- Name: index_catalog_resources_on_last_30_day_usage_count; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_catalog_resources_on_last_30_day_usage_count ON public.catalog_resources USING btree (last_30_day_usage_count) WHERE (state = 1); - - --- --- Name: index_catalog_resources_on_last_30_day_usage_count_updated_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_catalog_resources_on_last_30_day_usage_count_updated_at ON public.catalog_resources USING btree (last_30_day_usage_count_updated_at); - - --- --- Name: index_catalog_resources_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_catalog_resources_on_project_id ON public.catalog_resources USING btree (project_id); - - --- --- Name: index_catalog_resources_on_search_vector; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_catalog_resources_on_search_vector ON public.catalog_resources USING gin (search_vector); - - --- --- Name: index_catalog_resources_on_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_catalog_resources_on_state ON public.catalog_resources USING btree (state); - - --- --- Name: index_catalog_verified_namespaces_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_catalog_verified_namespaces_on_namespace_id ON public.catalog_verified_namespaces USING btree (namespace_id); - - --- --- Name: index_chat_names_on_team_id_and_chat_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_chat_names_on_team_id_and_chat_id ON public.chat_names USING btree (team_id, chat_id); - - --- --- Name: index_chat_names_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_chat_names_on_user_id ON public.chat_names USING btree (user_id); - - --- --- Name: index_chat_teams_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_chat_teams_on_namespace_id ON public.chat_teams USING btree (namespace_id); - - --- --- Name: index_ci_build_needs_on_build_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_build_needs_on_build_id_and_name ON public.ci_build_needs USING btree (build_id, name); - - --- --- Name: index_ci_build_needs_on_partition_id_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_build_needs_on_partition_id_build_id ON public.ci_build_needs USING btree (partition_id, build_id); - - --- --- Name: index_ci_build_pending_states_on_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_build_pending_states_on_build_id ON public.ci_build_pending_states USING btree (build_id); - - --- --- Name: index_ci_build_report_results_on_partition_id_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_build_report_results_on_partition_id_build_id ON public.ci_build_report_results USING btree (partition_id, build_id); - - --- --- Name: index_ci_build_report_results_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_build_report_results_on_project_id ON public.ci_build_report_results USING btree (project_id); - - --- --- Name: index_ci_build_trace_chunks_on_build_id_and_chunk_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_build_trace_chunks_on_build_id_and_chunk_index ON public.ci_build_trace_chunks USING btree (build_id, chunk_index); - - --- --- Name: index_ci_build_trace_chunks_on_partition_id_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_build_trace_chunks_on_partition_id_build_id ON public.ci_build_trace_chunks USING btree (partition_id, build_id); - - --- --- Name: p_ci_builds_metadata_build_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_metadata_build_id_idx ON ONLY public.p_ci_builds_metadata USING btree (build_id) WHERE (has_exposed_artifacts IS TRUE); - - --- --- Name: index_ci_builds_metadata_on_build_id_and_has_exposed_artifacts; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_metadata_on_build_id_and_has_exposed_artifacts ON public.ci_builds_metadata USING btree (build_id) WHERE (has_exposed_artifacts IS TRUE); - - --- --- Name: p_ci_builds_metadata_build_id_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_metadata_build_id_id_idx ON ONLY public.p_ci_builds_metadata USING btree (build_id) INCLUDE (id) WHERE (interruptible = true); - - --- --- Name: index_ci_builds_metadata_on_build_id_and_id_and_interruptible; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_metadata_on_build_id_and_id_and_interruptible ON public.ci_builds_metadata USING btree (build_id) INCLUDE (id) WHERE (interruptible = true); - - --- --- Name: p_ci_builds_metadata_build_id_partition_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX p_ci_builds_metadata_build_id_partition_id_idx ON ONLY public.p_ci_builds_metadata USING btree (build_id, partition_id); - - --- --- Name: index_ci_builds_metadata_on_build_id_partition_id_unique; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_builds_metadata_on_build_id_partition_id_unique ON public.ci_builds_metadata USING btree (build_id, partition_id); - - --- --- Name: p_ci_builds_metadata_project_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_metadata_project_id_idx ON ONLY public.p_ci_builds_metadata USING btree (project_id); - - --- --- Name: index_ci_builds_metadata_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_metadata_on_project_id ON public.ci_builds_metadata USING btree (project_id); - - --- --- Name: p_ci_builds_auto_canceled_by_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_auto_canceled_by_id_idx ON ONLY public.p_ci_builds USING btree (auto_canceled_by_id) WHERE (auto_canceled_by_id IS NOT NULL); - - --- --- Name: index_ci_builds_on_auto_canceled_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_on_auto_canceled_by_id ON public.ci_builds USING btree (auto_canceled_by_id) WHERE (auto_canceled_by_id IS NOT NULL); - - --- --- Name: p_ci_builds_commit_id_stage_idx_created_at_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_commit_id_stage_idx_created_at_idx ON ONLY public.p_ci_builds USING btree (commit_id, stage_idx, created_at); - - --- --- Name: index_ci_builds_on_commit_id_and_stage_idx_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_on_commit_id_and_stage_idx_and_created_at ON public.ci_builds USING btree (commit_id, stage_idx, created_at); - - --- --- Name: p_ci_builds_commit_id_status_type_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_commit_id_status_type_idx ON ONLY public.p_ci_builds USING btree (commit_id, status, type); - - --- --- Name: index_ci_builds_on_commit_id_and_status_and_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_on_commit_id_and_status_and_type ON public.ci_builds USING btree (commit_id, status, type); - - --- --- Name: p_ci_builds_commit_id_type_name_ref_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_commit_id_type_name_ref_idx ON ONLY public.p_ci_builds USING btree (commit_id, type, name, ref); - - --- --- Name: index_ci_builds_on_commit_id_and_type_and_name_and_ref; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_on_commit_id_and_type_and_name_and_ref ON public.ci_builds USING btree (commit_id, type, name, ref); - - --- --- Name: p_ci_builds_commit_id_type_ref_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_commit_id_type_ref_idx ON ONLY public.p_ci_builds USING btree (commit_id, type, ref); - - --- --- Name: index_ci_builds_on_commit_id_and_type_and_ref; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_on_commit_id_and_type_and_ref ON public.ci_builds USING btree (commit_id, type, ref); - - --- --- Name: p_ci_builds_commit_id_artifacts_expire_at_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_commit_id_artifacts_expire_at_id_idx ON ONLY public.p_ci_builds USING btree (commit_id, artifacts_expire_at, id) WHERE (((type)::text = 'Ci::Build'::text) AND ((retried = false) OR (retried IS NULL)) AND ((name)::text = ANY (ARRAY[('sast'::character varying)::text, ('secret_detection'::character varying)::text, ('dependency_scanning'::character varying)::text, ('container_scanning'::character varying)::text, ('dast'::character varying)::text]))); - - --- --- Name: index_ci_builds_on_commit_id_artifacts_expired_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_on_commit_id_artifacts_expired_at_and_id ON public.ci_builds USING btree (commit_id, artifacts_expire_at, id) WHERE (((type)::text = 'Ci::Build'::text) AND ((retried = false) OR (retried IS NULL)) AND ((name)::text = ANY (ARRAY[('sast'::character varying)::text, ('secret_detection'::character varying)::text, ('dependency_scanning'::character varying)::text, ('container_scanning'::character varying)::text, ('dast'::character varying)::text]))); - - --- --- Name: p_ci_builds_project_id_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_project_id_id_idx ON ONLY public.p_ci_builds USING btree (project_id, id); - - --- --- Name: index_ci_builds_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_on_project_id_and_id ON public.ci_builds USING btree (project_id, id); - - --- --- Name: p_ci_builds_project_id_name_ref_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_project_id_name_ref_idx ON ONLY public.p_ci_builds USING btree (project_id, name, ref) WHERE (((type)::text = 'Ci::Build'::text) AND ((status)::text = 'success'::text) AND ((retried = false) OR (retried IS NULL))); - - --- --- Name: index_ci_builds_on_project_id_and_name_and_ref; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_on_project_id_and_name_and_ref ON public.ci_builds USING btree (project_id, name, ref) WHERE (((type)::text = 'Ci::Build'::text) AND ((status)::text = 'success'::text) AND ((retried = false) OR (retried IS NULL))); - - --- --- Name: p_ci_builds_resource_group_id_status_commit_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_resource_group_id_status_commit_id_idx ON ONLY public.p_ci_builds USING btree (resource_group_id, status, commit_id) WHERE (resource_group_id IS NOT NULL); - - --- --- Name: index_ci_builds_on_resource_group_and_status_and_commit_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_on_resource_group_and_status_and_commit_id ON public.ci_builds USING btree (resource_group_id, status, commit_id) WHERE (resource_group_id IS NOT NULL); - - --- --- Name: p_ci_builds_runner_id_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_runner_id_id_idx ON ONLY public.p_ci_builds USING btree (runner_id, id DESC); - - --- --- Name: index_ci_builds_on_runner_id_and_id_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_on_runner_id_and_id_desc ON public.ci_builds USING btree (runner_id, id DESC); - - --- --- Name: p_ci_builds_stage_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_stage_id_idx ON ONLY public.p_ci_builds USING btree (stage_id); - - --- --- Name: index_ci_builds_on_stage_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_on_stage_id ON public.ci_builds USING btree (stage_id); - - --- --- Name: p_ci_builds_status_type_runner_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_status_type_runner_id_idx ON ONLY public.p_ci_builds USING btree (status, type, runner_id); - - --- --- Name: index_ci_builds_on_status_and_type_and_runner_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_on_status_and_type_and_runner_id ON public.ci_builds USING btree (status, type, runner_id); - - --- --- Name: p_ci_builds_updated_at_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_updated_at_idx ON ONLY public.p_ci_builds USING btree (updated_at); - - --- --- Name: index_ci_builds_on_updated_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_on_updated_at ON public.ci_builds USING btree (updated_at); - - --- --- Name: p_ci_builds_upstream_pipeline_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_upstream_pipeline_id_idx ON ONLY public.p_ci_builds USING btree (upstream_pipeline_id) WHERE (upstream_pipeline_id IS NOT NULL); - - --- --- Name: index_ci_builds_on_upstream_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_on_upstream_pipeline_id ON public.ci_builds USING btree (upstream_pipeline_id) WHERE (upstream_pipeline_id IS NOT NULL); - - --- --- Name: p_ci_builds_user_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_user_id_idx ON ONLY public.p_ci_builds USING btree (user_id); - - --- --- Name: index_ci_builds_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_on_user_id ON public.ci_builds USING btree (user_id); - - --- --- Name: p_ci_builds_user_id_created_at_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_user_id_created_at_idx ON ONLY public.p_ci_builds USING btree (user_id, created_at) WHERE ((type)::text = 'Ci::Build'::text); - - --- --- Name: index_ci_builds_on_user_id_and_created_at_and_type_eq_ci_build; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_on_user_id_and_created_at_and_type_eq_ci_build ON public.ci_builds USING btree (user_id, created_at) WHERE ((type)::text = 'Ci::Build'::text); - - --- --- Name: p_ci_builds_project_id_status_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_project_id_status_idx ON ONLY public.p_ci_builds USING btree (project_id, status) WHERE (((type)::text = 'Ci::Build'::text) AND ((status)::text = ANY (ARRAY[('running'::character varying)::text, ('pending'::character varying)::text, ('created'::character varying)::text]))); - - --- --- Name: index_ci_builds_project_id_and_status_for_live_jobs_partial2; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_project_id_and_status_for_live_jobs_partial2 ON public.ci_builds USING btree (project_id, status) WHERE (((type)::text = 'Ci::Build'::text) AND ((status)::text = ANY (ARRAY[('running'::character varying)::text, ('pending'::character varying)::text, ('created'::character varying)::text]))); - - --- --- Name: p_ci_builds_runner_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_runner_id_idx ON ONLY public.p_ci_builds USING btree (runner_id) WHERE (((status)::text = 'running'::text) AND ((type)::text = 'Ci::Build'::text)); - - --- --- Name: index_ci_builds_runner_id_running; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_builds_runner_id_running ON public.ci_builds USING btree (runner_id) WHERE (((status)::text = 'running'::text) AND ((type)::text = 'Ci::Build'::text)); - - --- --- Name: index_ci_builds_runner_session_on_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_builds_runner_session_on_build_id ON public.ci_builds_runner_session USING btree (build_id); - - --- --- Name: index_ci_builds_runner_session_on_partition_id_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_builds_runner_session_on_partition_id_build_id ON public.ci_builds_runner_session USING btree (partition_id, build_id); - - --- --- Name: index_ci_daily_build_group_report_results_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_daily_build_group_report_results_on_group_id ON public.ci_daily_build_group_report_results USING btree (group_id); - - --- --- Name: index_ci_daily_build_group_report_results_on_last_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_daily_build_group_report_results_on_last_pipeline_id ON public.ci_daily_build_group_report_results USING btree (last_pipeline_id); - - --- --- Name: index_ci_daily_build_group_report_results_on_project_and_date; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_daily_build_group_report_results_on_project_and_date ON public.ci_daily_build_group_report_results USING btree (project_id, date DESC) WHERE ((default_branch = true) AND ((data -> 'coverage'::text) IS NOT NULL)); - - --- --- Name: index_ci_deleted_objects_on_pick_up_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_deleted_objects_on_pick_up_at ON public.ci_deleted_objects USING btree (pick_up_at); - - --- --- Name: index_ci_finished_build_ch_sync_events_for_partitioned_query; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_finished_build_ch_sync_events_for_partitioned_query ON ONLY public.p_ci_finished_build_ch_sync_events USING btree (((build_id % (100)::bigint)), build_id) WHERE (processed = false); - - --- --- Name: index_ci_finished_pipeline_ch_sync_events_for_partitioned_query; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_finished_pipeline_ch_sync_events_for_partitioned_query ON ONLY public.p_ci_finished_pipeline_ch_sync_events USING btree (((pipeline_id % (100)::bigint)), pipeline_id) WHERE (processed = false); - - --- --- Name: index_ci_freeze_periods_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_freeze_periods_on_project_id ON public.ci_freeze_periods USING btree (project_id); - - --- --- Name: index_ci_group_variables_on_group_id_and_key_and_environment; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_group_variables_on_group_id_and_key_and_environment ON public.ci_group_variables USING btree (group_id, key, environment_scope); - - --- --- Name: index_ci_instance_variables_on_key; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_instance_variables_on_key ON public.ci_instance_variables USING btree (key); - - --- --- Name: index_ci_job_artifact_states_on_job_artifact_id_partition_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_artifact_states_on_job_artifact_id_partition_id ON public.ci_job_artifact_states USING btree (job_artifact_id, partition_id); - - --- --- Name: p_ci_job_artifacts_expire_at_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_job_artifacts_expire_at_idx ON ONLY public.p_ci_job_artifacts USING btree (expire_at) WHERE ((locked = 0) AND (file_type <> 3) AND (expire_at IS NOT NULL)); - - --- --- Name: index_ci_job_artifacts_expire_at_unlocked_non_trace; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_artifacts_expire_at_unlocked_non_trace ON public.ci_job_artifacts USING btree (expire_at) WHERE ((locked = 0) AND (file_type <> 3) AND (expire_at IS NOT NULL)); - - --- --- Name: p_ci_job_artifacts_project_id_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_job_artifacts_project_id_id_idx ON ONLY public.p_ci_job_artifacts USING btree (project_id, id) WHERE (file_type = 18); - - --- --- Name: index_ci_job_artifacts_for_terraform_reports; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_artifacts_for_terraform_reports ON public.ci_job_artifacts USING btree (project_id, id) WHERE (file_type = 18); - - --- --- Name: p_ci_job_artifacts_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_job_artifacts_id_idx ON ONLY public.p_ci_job_artifacts USING btree (id) WHERE (file_type = 18); - - --- --- Name: index_ci_job_artifacts_id_for_terraform_reports; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_artifacts_id_for_terraform_reports ON public.ci_job_artifacts USING btree (id) WHERE (file_type = 18); - - --- --- Name: p_ci_job_artifacts_expire_at_job_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_job_artifacts_expire_at_job_id_idx ON ONLY public.p_ci_job_artifacts USING btree (expire_at, job_id); - - --- --- Name: index_ci_job_artifacts_on_expire_at_and_job_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_artifacts_on_expire_at_and_job_id ON public.ci_job_artifacts USING btree (expire_at, job_id); - - --- --- Name: p_ci_job_artifacts_file_final_path_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_job_artifacts_file_final_path_idx ON ONLY public.p_ci_job_artifacts USING btree (file_final_path) WHERE (file_final_path IS NOT NULL); - - --- --- Name: index_ci_job_artifacts_on_file_final_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_artifacts_on_file_final_path ON public.ci_job_artifacts USING btree (file_final_path) WHERE (file_final_path IS NOT NULL); - - --- --- Name: p_ci_job_artifacts_file_store_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_job_artifacts_file_store_idx ON ONLY public.p_ci_job_artifacts USING btree (file_store); - - --- --- Name: index_ci_job_artifacts_on_file_store; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_artifacts_on_file_store ON public.ci_job_artifacts USING btree (file_store); - - --- --- Name: p_ci_job_artifacts_file_type_project_id_created_at_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_job_artifacts_file_type_project_id_created_at_idx ON ONLY public.p_ci_job_artifacts USING btree (file_type, project_id, created_at) WHERE (file_type = ANY (ARRAY[5, 6, 8, 23])); - - --- --- Name: index_ci_job_artifacts_on_file_type_for_devops_adoption; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_artifacts_on_file_type_for_devops_adoption ON public.ci_job_artifacts USING btree (file_type, project_id, created_at) WHERE (file_type = ANY (ARRAY[5, 6, 8, 23])); - - --- --- Name: p_ci_job_artifacts_project_id_created_at_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_job_artifacts_project_id_created_at_id_idx ON ONLY public.p_ci_job_artifacts USING btree (project_id, created_at, id); - - --- --- Name: index_ci_job_artifacts_on_id_project_id_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_artifacts_on_id_project_id_and_created_at ON public.ci_job_artifacts USING btree (project_id, created_at, id); - - --- --- Name: p_ci_job_artifacts_project_id_file_type_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_job_artifacts_project_id_file_type_id_idx ON ONLY public.p_ci_job_artifacts USING btree (project_id, file_type, id); - - --- --- Name: index_ci_job_artifacts_on_id_project_id_and_file_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_artifacts_on_id_project_id_and_file_type ON public.ci_job_artifacts USING btree (project_id, file_type, id); - - --- --- Name: p_ci_job_artifacts_partition_id_job_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_job_artifacts_partition_id_job_id_idx ON ONLY public.p_ci_job_artifacts USING btree (partition_id, job_id); - - --- --- Name: index_ci_job_artifacts_on_partition_id_job_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_artifacts_on_partition_id_job_id ON public.ci_job_artifacts USING btree (partition_id, job_id); - - --- --- Name: p_ci_job_artifacts_project_id_id_idx1; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_job_artifacts_project_id_id_idx1 ON ONLY public.p_ci_job_artifacts USING btree (project_id, id); - - --- --- Name: index_ci_job_artifacts_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_artifacts_on_project_id_and_id ON public.ci_job_artifacts USING btree (project_id, id); - - --- --- Name: p_ci_job_artifacts_project_id_idx1; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_job_artifacts_project_id_idx1 ON ONLY public.p_ci_job_artifacts USING btree (project_id) WHERE (file_type = ANY (ARRAY[5, 6, 7, 8])); - - --- --- Name: index_ci_job_artifacts_on_project_id_for_security_reports; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_artifacts_on_project_id_for_security_reports ON public.ci_job_artifacts USING btree (project_id) WHERE (file_type = ANY (ARRAY[5, 6, 7, 8])); - - --- --- Name: index_ci_job_token_group_scope_links_on_added_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_token_group_scope_links_on_added_by_id ON public.ci_job_token_group_scope_links USING btree (added_by_id); - - --- --- Name: index_ci_job_token_group_scope_links_on_target_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_token_group_scope_links_on_target_group_id ON public.ci_job_token_group_scope_links USING btree (target_group_id); - - --- --- Name: index_ci_job_token_project_scope_links_on_added_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_token_project_scope_links_on_added_by_id ON public.ci_job_token_project_scope_links USING btree (added_by_id); - - --- --- Name: index_ci_job_token_project_scope_links_on_target_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_token_project_scope_links_on_target_project_id ON public.ci_job_token_project_scope_links USING btree (target_project_id); - - --- --- Name: index_ci_job_variables_on_job_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_variables_on_job_id ON public.ci_job_variables USING btree (job_id); - - --- --- Name: index_ci_job_variables_on_key_and_job_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_job_variables_on_key_and_job_id ON public.ci_job_variables USING btree (key, job_id); - - --- --- Name: index_ci_job_variables_on_partition_id_job_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_variables_on_partition_id_job_id ON public.ci_job_variables USING btree (partition_id, job_id); - - --- --- Name: index_ci_job_variables_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_job_variables_on_project_id ON public.ci_job_variables USING btree (project_id); - - --- --- Name: index_ci_minutes_additional_packs_on_namespace_id_purchase_xid; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_minutes_additional_packs_on_namespace_id_purchase_xid ON public.ci_minutes_additional_packs USING btree (namespace_id, purchase_xid); - - --- --- Name: index_ci_namespace_mirrors_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_namespace_mirrors_on_namespace_id ON public.ci_namespace_mirrors USING btree (namespace_id); - - --- --- Name: index_ci_namespace_mirrors_on_traversal_ids_unnest; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_namespace_mirrors_on_traversal_ids_unnest ON public.ci_namespace_mirrors USING btree ((traversal_ids[1]), (traversal_ids[2]), (traversal_ids[3]), (traversal_ids[4])) INCLUDE (traversal_ids, namespace_id); - - --- --- Name: index_ci_namespace_monthly_usages_on_namespace_id_and_date; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_namespace_monthly_usages_on_namespace_id_and_date ON public.ci_namespace_monthly_usages USING btree (namespace_id, date); - - --- --- Name: index_ci_partitions_on_current_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_partitions_on_current_status ON public.ci_partitions USING btree (status) WHERE (status = 2); - - --- --- Name: index_ci_pending_builds_id_on_protected_partial; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pending_builds_id_on_protected_partial ON public.ci_pending_builds USING btree (id) WHERE (protected = true); - - --- --- Name: index_ci_pending_builds_on_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_pending_builds_on_build_id ON public.ci_pending_builds USING btree (build_id); - - --- --- Name: index_ci_pending_builds_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pending_builds_on_namespace_id ON public.ci_pending_builds USING btree (namespace_id); - - --- --- Name: index_ci_pending_builds_on_partition_id_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_pending_builds_on_partition_id_build_id ON public.ci_pending_builds USING btree (partition_id, build_id); - - --- --- Name: index_ci_pending_builds_on_plan_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pending_builds_on_plan_id ON public.ci_pending_builds USING btree (plan_id); - - --- --- Name: index_ci_pending_builds_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pending_builds_on_project_id ON public.ci_pending_builds USING btree (project_id); - - --- --- Name: index_ci_pending_builds_on_tag_ids; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pending_builds_on_tag_ids ON public.ci_pending_builds USING btree (tag_ids) WHERE (cardinality(tag_ids) > 0); - - --- --- Name: index_ci_pipeline_artifacts_failed_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipeline_artifacts_failed_verification ON public.ci_pipeline_artifacts USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); - - --- --- Name: index_ci_pipeline_artifacts_needs_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipeline_artifacts_needs_verification ON public.ci_pipeline_artifacts USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); - - --- --- Name: index_ci_pipeline_artifacts_on_expire_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipeline_artifacts_on_expire_at ON public.ci_pipeline_artifacts USING btree (expire_at); - - --- --- Name: index_ci_pipeline_artifacts_on_pipeline_id_and_file_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_pipeline_artifacts_on_pipeline_id_and_file_type ON public.ci_pipeline_artifacts USING btree (pipeline_id, file_type); - - --- --- Name: index_ci_pipeline_artifacts_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipeline_artifacts_on_project_id ON public.ci_pipeline_artifacts USING btree (project_id); - - --- --- Name: index_ci_pipeline_artifacts_pending_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipeline_artifacts_pending_verification ON public.ci_pipeline_artifacts USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); - - --- --- Name: index_ci_pipeline_artifacts_verification_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipeline_artifacts_verification_state ON public.ci_pipeline_artifacts USING btree (verification_state); - - --- --- Name: index_ci_pipeline_chat_data_on_chat_name_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipeline_chat_data_on_chat_name_id ON public.ci_pipeline_chat_data USING btree (chat_name_id); - - --- --- Name: index_ci_pipeline_chat_data_on_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_pipeline_chat_data_on_pipeline_id ON public.ci_pipeline_chat_data USING btree (pipeline_id); - - --- --- Name: index_ci_pipeline_messages_on_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipeline_messages_on_pipeline_id ON public.ci_pipeline_messages USING btree (pipeline_id); - - --- --- Name: index_ci_pipeline_metadata_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipeline_metadata_on_project_id ON public.ci_pipeline_metadata USING btree (project_id); - - --- --- Name: index_ci_pipeline_schedule_variables_on_schedule_id_and_key; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_pipeline_schedule_variables_on_schedule_id_and_key ON public.ci_pipeline_schedule_variables USING btree (pipeline_schedule_id, key); - - --- --- Name: index_ci_pipeline_schedules_on_id_and_next_run_at_and_active; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipeline_schedules_on_id_and_next_run_at_and_active ON public.ci_pipeline_schedules USING btree (id, next_run_at) WHERE (active = true); - - --- --- Name: index_ci_pipeline_schedules_on_next_run_at_and_active; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipeline_schedules_on_next_run_at_and_active ON public.ci_pipeline_schedules USING btree (next_run_at, active); - - --- --- Name: index_ci_pipeline_schedules_on_owner_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipeline_schedules_on_owner_id ON public.ci_pipeline_schedules USING btree (owner_id); - - --- --- Name: index_ci_pipeline_schedules_on_owner_id_and_id_and_active; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipeline_schedules_on_owner_id_and_id_and_active ON public.ci_pipeline_schedules USING btree (owner_id, id) WHERE (active = true); - - --- --- Name: index_ci_pipeline_schedules_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipeline_schedules_on_project_id ON public.ci_pipeline_schedules USING btree (project_id); - - --- --- Name: p_ci_pipelines_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_id_idx ON ONLY public.p_ci_pipelines USING btree (id) WHERE (source = 13); - - --- --- Name: index_ci_pipelines_for_ondemand_dast_scans; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_for_ondemand_dast_scans ON public.ci_pipelines USING btree (id) WHERE (source = 13); - - --- --- Name: p_ci_pipelines_auto_canceled_by_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_auto_canceled_by_id_idx ON ONLY public.p_ci_pipelines USING btree (auto_canceled_by_id); - - --- --- Name: index_ci_pipelines_on_auto_canceled_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_auto_canceled_by_id ON public.ci_pipelines USING btree (auto_canceled_by_id); - - --- --- Name: p_ci_pipelines_ci_ref_id_id_source_status_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_ci_ref_id_id_source_status_idx ON ONLY public.p_ci_pipelines USING btree (ci_ref_id, id DESC, source, status) WHERE (ci_ref_id IS NOT NULL); - - --- --- Name: index_ci_pipelines_on_ci_ref_id_and_more; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_ci_ref_id_and_more ON public.ci_pipelines USING btree (ci_ref_id, id DESC, source, status) WHERE (ci_ref_id IS NOT NULL); - - --- --- Name: p_ci_pipelines_external_pull_request_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_external_pull_request_id_idx ON ONLY public.p_ci_pipelines USING btree (external_pull_request_id) WHERE (external_pull_request_id IS NOT NULL); - - --- --- Name: index_ci_pipelines_on_external_pull_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_external_pull_request_id ON public.ci_pipelines USING btree (external_pull_request_id) WHERE (external_pull_request_id IS NOT NULL); - - --- --- Name: p_ci_pipelines_merge_request_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_merge_request_id_idx ON ONLY public.p_ci_pipelines USING btree (merge_request_id) WHERE (merge_request_id IS NOT NULL); - - --- --- Name: index_ci_pipelines_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_merge_request_id ON public.ci_pipelines USING btree (merge_request_id) WHERE (merge_request_id IS NOT NULL); - - --- --- Name: p_ci_pipelines_pipeline_schedule_id_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_pipeline_schedule_id_id_idx ON ONLY public.p_ci_pipelines USING btree (pipeline_schedule_id, id); - - --- --- Name: index_ci_pipelines_on_pipeline_schedule_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_pipeline_schedule_id_and_id ON public.ci_pipelines USING btree (pipeline_schedule_id, id); - - --- --- Name: p_ci_pipelines_project_id_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_project_id_id_idx ON ONLY public.p_ci_pipelines USING btree (project_id, id DESC); - - --- --- Name: index_ci_pipelines_on_project_id_and_id_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_project_id_and_id_desc ON public.ci_pipelines USING btree (project_id, id DESC); - - --- --- Name: p_ci_pipelines_project_id_iid_partition_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX p_ci_pipelines_project_id_iid_partition_id_idx ON ONLY public.p_ci_pipelines USING btree (project_id, iid, partition_id) WHERE (iid IS NOT NULL); - - --- --- Name: index_ci_pipelines_on_project_id_and_iid_and_partition_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_pipelines_on_project_id_and_iid_and_partition_id ON public.ci_pipelines USING btree (project_id, iid, partition_id) WHERE (iid IS NOT NULL); - - --- --- Name: p_ci_pipelines_project_id_ref_status_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_project_id_ref_status_id_idx ON ONLY public.p_ci_pipelines USING btree (project_id, ref, status, id); - - --- --- Name: index_ci_pipelines_on_project_id_and_ref_and_status_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_project_id_and_ref_and_status_and_id ON public.ci_pipelines USING btree (project_id, ref, status, id); - - --- --- Name: p_ci_pipelines_project_id_sha_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_project_id_sha_idx ON ONLY public.p_ci_pipelines USING btree (project_id, sha); - - --- --- Name: index_ci_pipelines_on_project_id_and_sha; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_project_id_and_sha ON public.ci_pipelines USING btree (project_id, sha); - - --- --- Name: p_ci_pipelines_project_id_source_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_project_id_source_idx ON ONLY public.p_ci_pipelines USING btree (project_id, source); - - --- --- Name: index_ci_pipelines_on_project_id_and_source; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_project_id_and_source ON public.ci_pipelines USING btree (project_id, source); - - --- --- Name: p_ci_pipelines_project_id_status_config_source_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_project_id_status_config_source_idx ON ONLY public.p_ci_pipelines USING btree (project_id, status, config_source); - - --- --- Name: index_ci_pipelines_on_project_id_and_status_and_config_source; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_project_id_and_status_and_config_source ON public.ci_pipelines USING btree (project_id, status, config_source); - - --- --- Name: p_ci_pipelines_project_id_status_created_at_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_project_id_status_created_at_idx ON ONLY public.p_ci_pipelines USING btree (project_id, status, created_at); - - --- --- Name: index_ci_pipelines_on_project_id_and_status_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_project_id_and_status_and_created_at ON public.ci_pipelines USING btree (project_id, status, created_at); - - --- --- Name: p_ci_pipelines_project_id_status_updated_at_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_project_id_status_updated_at_idx ON ONLY public.p_ci_pipelines USING btree (project_id, status, updated_at); - - --- --- Name: index_ci_pipelines_on_project_id_and_status_and_updated_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_project_id_and_status_and_updated_at ON public.ci_pipelines USING btree (project_id, status, updated_at); - - --- --- Name: p_ci_pipelines_project_id_user_id_status_ref_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_project_id_user_id_status_ref_idx ON ONLY public.p_ci_pipelines USING btree (project_id, user_id, status, ref) WHERE (source <> 12); - - --- --- Name: index_ci_pipelines_on_project_id_and_user_id_and_status_and_ref; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_project_id_and_user_id_and_status_and_ref ON public.ci_pipelines USING btree (project_id, user_id, status, ref) WHERE (source <> 12); - - --- --- Name: p_ci_pipelines_project_id_ref_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_project_id_ref_id_idx ON ONLY public.p_ci_pipelines USING btree (project_id, ref, id DESC); - - --- --- Name: index_ci_pipelines_on_project_idandrefandiddesc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_project_idandrefandiddesc ON public.ci_pipelines USING btree (project_id, ref, id DESC); - - --- --- Name: p_ci_pipelines_status_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_status_id_idx ON ONLY public.p_ci_pipelines USING btree (status, id); - - --- --- Name: index_ci_pipelines_on_status_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_status_and_id ON public.ci_pipelines USING btree (status, id); - - --- --- Name: p_ci_pipelines_user_id_created_at_config_source_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_user_id_created_at_config_source_idx ON ONLY public.p_ci_pipelines USING btree (user_id, created_at, config_source); - - --- --- Name: index_ci_pipelines_on_user_id_and_created_at_and_config_source; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_user_id_and_created_at_and_config_source ON public.ci_pipelines USING btree (user_id, created_at, config_source); - - --- --- Name: p_ci_pipelines_user_id_created_at_source_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_user_id_created_at_source_idx ON ONLY public.p_ci_pipelines USING btree (user_id, created_at, source); - - --- --- Name: index_ci_pipelines_on_user_id_and_created_at_and_source; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_user_id_and_created_at_and_source ON public.ci_pipelines USING btree (user_id, created_at, source); - - --- --- Name: p_ci_pipelines_user_id_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_user_id_id_idx ON ONLY public.p_ci_pipelines USING btree (user_id, id) WHERE ((status)::text = ANY (ARRAY[('running'::character varying)::text, ('waiting_for_resource'::character varying)::text, ('preparing'::character varying)::text, ('pending'::character varying)::text, ('created'::character varying)::text, ('scheduled'::character varying)::text])); - - --- --- Name: index_ci_pipelines_on_user_id_and_id_and_cancelable_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_user_id_and_id_and_cancelable_status ON public.ci_pipelines USING btree (user_id, id) WHERE ((status)::text = ANY (ARRAY[('running'::character varying)::text, ('waiting_for_resource'::character varying)::text, ('preparing'::character varying)::text, ('pending'::character varying)::text, ('created'::character varying)::text, ('scheduled'::character varying)::text])); - - --- --- Name: p_ci_pipelines_user_id_id_idx1; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_pipelines_user_id_id_idx1 ON ONLY public.p_ci_pipelines USING btree (user_id, id DESC) WHERE (failure_reason = 3); - - --- --- Name: index_ci_pipelines_on_user_id_and_id_desc_and_user_not_verified; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_pipelines_on_user_id_and_id_desc_and_user_not_verified ON public.ci_pipelines USING btree (user_id, id DESC) WHERE (failure_reason = 3); - - --- --- Name: index_ci_project_mirrors_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_project_mirrors_on_namespace_id ON public.ci_project_mirrors USING btree (namespace_id); - - --- --- Name: index_ci_project_mirrors_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_project_mirrors_on_project_id ON public.ci_project_mirrors USING btree (project_id); - - --- --- Name: index_ci_project_monthly_usages_on_project_id_and_date; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_project_monthly_usages_on_project_id_and_date ON public.ci_project_monthly_usages USING btree (project_id, date); - - --- --- Name: index_ci_refs_on_project_id_and_ref_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_refs_on_project_id_and_ref_path ON public.ci_refs USING btree (project_id, ref_path); - - --- --- Name: index_ci_resource_groups_on_project_id_and_key; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_resource_groups_on_project_id_and_key ON public.ci_resource_groups USING btree (project_id, key); - - --- --- Name: index_ci_resources_on_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_resources_on_build_id ON public.ci_resources USING btree (build_id); - - --- --- Name: index_ci_resources_on_partition_id_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_resources_on_partition_id_build_id ON public.ci_resources USING btree (partition_id, build_id); - - --- --- Name: index_ci_resources_on_resource_group_id_and_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_resources_on_resource_group_id_and_build_id ON public.ci_resources USING btree (resource_group_id, build_id); - - --- --- Name: index_ci_runner_machines_on_contacted_at_desc_and_id_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runner_machines_on_contacted_at_desc_and_id_desc ON public.ci_runner_machines USING btree (contacted_at DESC, id DESC); - - --- --- Name: index_ci_runner_machines_on_created_at_and_id_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runner_machines_on_created_at_and_id_desc ON public.ci_runner_machines USING btree (created_at, id DESC); - - --- --- Name: index_ci_runner_machines_on_major_version_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runner_machines_on_major_version_trigram ON public.ci_runner_machines USING btree ("substring"(version, '^\d+\.'::text), version, runner_id); - - --- --- Name: index_ci_runner_machines_on_minor_version_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runner_machines_on_minor_version_trigram ON public.ci_runner_machines USING btree ("substring"(version, '^\d+\.\d+\.'::text), version, runner_id); - - --- --- Name: index_ci_runner_machines_on_patch_version_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runner_machines_on_patch_version_trigram ON public.ci_runner_machines USING btree ("substring"(version, '^\d+\.\d+\.\d+'::text), version, runner_id); - - --- --- Name: index_ci_runner_machines_on_runner_id_and_system_xid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_runner_machines_on_runner_id_and_system_xid ON public.ci_runner_machines USING btree (runner_id, system_xid); - - --- --- Name: index_ci_runner_machines_on_version; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runner_machines_on_version ON public.ci_runner_machines USING btree (version); - - --- --- Name: index_ci_runner_namespaces_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runner_namespaces_on_namespace_id ON public.ci_runner_namespaces USING btree (namespace_id); - - --- --- Name: index_ci_runner_namespaces_on_runner_id_and_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_runner_namespaces_on_runner_id_and_namespace_id ON public.ci_runner_namespaces USING btree (runner_id, namespace_id); - - --- --- Name: index_ci_runner_projects_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runner_projects_on_project_id ON public.ci_runner_projects USING btree (project_id); - - --- --- Name: index_ci_runner_versions_on_unique_status_and_version; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_runner_versions_on_unique_status_and_version ON public.ci_runner_versions USING btree (status, version); - - --- --- Name: index_ci_runners_on_active; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runners_on_active ON public.ci_runners USING btree (active, id); - - --- --- Name: index_ci_runners_on_contacted_at_and_id_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runners_on_contacted_at_and_id_desc ON public.ci_runners USING btree (contacted_at, id DESC); - - --- --- Name: index_ci_runners_on_contacted_at_and_id_where_inactive; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runners_on_contacted_at_and_id_where_inactive ON public.ci_runners USING btree (contacted_at DESC, id DESC) WHERE (active = false); - - --- --- Name: index_ci_runners_on_contacted_at_desc_and_id_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runners_on_contacted_at_desc_and_id_desc ON public.ci_runners USING btree (contacted_at DESC, id DESC); - - --- --- Name: index_ci_runners_on_created_at_and_id_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runners_on_created_at_and_id_desc ON public.ci_runners USING btree (created_at, id DESC); - - --- --- Name: index_ci_runners_on_created_at_and_id_where_inactive; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runners_on_created_at_and_id_where_inactive ON public.ci_runners USING btree (created_at DESC, id DESC) WHERE (active = false); - - --- --- Name: index_ci_runners_on_created_at_desc_and_id_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runners_on_created_at_desc_and_id_desc ON public.ci_runners USING btree (created_at DESC, id DESC); - - --- --- Name: index_ci_runners_on_creator_id_where_creator_id_not_null; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runners_on_creator_id_where_creator_id_not_null ON public.ci_runners USING btree (creator_id) WHERE (creator_id IS NOT NULL); - - --- --- Name: index_ci_runners_on_description_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runners_on_description_trigram ON public.ci_runners USING gin (description public.gin_trgm_ops); - - --- --- Name: index_ci_runners_on_locked; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runners_on_locked ON public.ci_runners USING btree (locked); - - --- --- Name: index_ci_runners_on_runner_type_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runners_on_runner_type_and_id ON public.ci_runners USING btree (runner_type, id); - - --- --- Name: index_ci_runners_on_token_expires_at_and_id_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runners_on_token_expires_at_and_id_desc ON public.ci_runners USING btree (token_expires_at, id DESC); - - --- --- Name: index_ci_runners_on_token_expires_at_desc_and_id_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_runners_on_token_expires_at_desc_and_id_desc ON public.ci_runners USING btree (token_expires_at DESC, id DESC); - - --- --- Name: index_ci_running_builds_on_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_running_builds_on_build_id ON public.ci_running_builds USING btree (build_id); - - --- --- Name: index_ci_running_builds_on_partition_id_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_running_builds_on_partition_id_build_id ON public.ci_running_builds USING btree (partition_id, build_id); - - --- --- Name: index_ci_running_builds_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_running_builds_on_project_id ON public.ci_running_builds USING btree (project_id); - - --- --- Name: index_ci_running_builds_on_runner_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_running_builds_on_runner_id ON public.ci_running_builds USING btree (runner_id); - - --- --- Name: index_ci_secure_file_states_failed_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_secure_file_states_failed_verification ON public.ci_secure_file_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); - - --- --- Name: index_ci_secure_file_states_needs_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_secure_file_states_needs_verification ON public.ci_secure_file_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); - - --- --- Name: index_ci_secure_file_states_on_ci_secure_file_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_secure_file_states_on_ci_secure_file_id ON public.ci_secure_file_states USING btree (ci_secure_file_id); - - --- --- Name: index_ci_secure_file_states_on_verification_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_secure_file_states_on_verification_state ON public.ci_secure_file_states USING btree (verification_state); - - --- --- Name: index_ci_secure_file_states_pending_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_secure_file_states_pending_verification ON public.ci_secure_file_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); - - --- --- Name: index_ci_secure_files_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_secure_files_on_project_id ON public.ci_secure_files USING btree (project_id); - - --- --- Name: index_ci_sources_pipelines_on_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_sources_pipelines_on_pipeline_id ON public.ci_sources_pipelines USING btree (pipeline_id); - - --- --- Name: index_ci_sources_pipelines_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_sources_pipelines_on_project_id ON public.ci_sources_pipelines USING btree (project_id); - - --- --- Name: index_ci_sources_pipelines_on_source_job_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_sources_pipelines_on_source_job_id ON public.ci_sources_pipelines USING btree (source_job_id); - - --- --- Name: index_ci_sources_pipelines_on_source_partition_id_source_job_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_sources_pipelines_on_source_partition_id_source_job_id ON public.ci_sources_pipelines USING btree (source_partition_id, source_job_id); - - --- --- Name: index_ci_sources_pipelines_on_source_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_sources_pipelines_on_source_pipeline_id ON public.ci_sources_pipelines USING btree (source_pipeline_id); - - --- --- Name: index_ci_sources_pipelines_on_source_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_sources_pipelines_on_source_project_id ON public.ci_sources_pipelines USING btree (source_project_id); - - --- --- Name: index_ci_sources_projects_on_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_sources_projects_on_pipeline_id ON public.ci_sources_projects USING btree (pipeline_id); - - --- --- Name: index_ci_sources_projects_on_source_project_id_and_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_sources_projects_on_source_project_id_and_pipeline_id ON public.ci_sources_projects USING btree (source_project_id, pipeline_id); - - --- --- Name: p_ci_stages_pipeline_id_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_stages_pipeline_id_id_idx ON ONLY public.p_ci_stages USING btree (pipeline_id, id) WHERE (status = ANY (ARRAY[0, 1, 2, 8, 9, 10])); - - --- --- Name: index_ci_stages_on_pipeline_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_stages_on_pipeline_id_and_id ON public.ci_stages USING btree (pipeline_id, id) WHERE (status = ANY (ARRAY[0, 1, 2, 8, 9, 10])); - - --- --- Name: p_ci_stages_pipeline_id_position_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_stages_pipeline_id_position_idx ON ONLY public.p_ci_stages USING btree (pipeline_id, "position"); - - --- --- Name: index_ci_stages_on_pipeline_id_and_position; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_stages_on_pipeline_id_and_position ON public.ci_stages USING btree (pipeline_id, "position"); - - --- --- Name: p_ci_stages_pipeline_id_name_partition_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX p_ci_stages_pipeline_id_name_partition_id_idx ON ONLY public.p_ci_stages USING btree (pipeline_id, name, partition_id); - - --- --- Name: index_ci_stages_on_pipeline_id_name_partition_id_unique; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_stages_on_pipeline_id_name_partition_id_unique ON public.ci_stages USING btree (pipeline_id, name, partition_id); - - --- --- Name: p_ci_stages_project_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_stages_project_id_idx ON ONLY public.p_ci_stages USING btree (project_id); - - --- --- Name: index_ci_stages_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_stages_on_project_id ON public.ci_stages USING btree (project_id); - - --- --- Name: index_ci_subscriptions_projects_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_subscriptions_projects_author_id ON public.ci_subscriptions_projects USING btree (author_id); - - --- --- Name: index_ci_subscriptions_projects_on_upstream_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_subscriptions_projects_on_upstream_project_id ON public.ci_subscriptions_projects USING btree (upstream_project_id); - - --- --- Name: index_ci_subscriptions_projects_unique_subscription; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_subscriptions_projects_unique_subscription ON public.ci_subscriptions_projects USING btree (downstream_project_id, upstream_project_id); - - --- --- Name: index_ci_trigger_requests_on_commit_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_trigger_requests_on_commit_id ON public.ci_trigger_requests USING btree (commit_id); - - --- --- Name: index_ci_trigger_requests_on_trigger_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_trigger_requests_on_trigger_id_and_id ON public.ci_trigger_requests USING btree (trigger_id, id DESC); - - --- --- Name: index_ci_triggers_on_owner_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_triggers_on_owner_id ON public.ci_triggers USING btree (owner_id); - - --- --- Name: index_ci_triggers_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_triggers_on_project_id ON public.ci_triggers USING btree (project_id); - - --- --- Name: index_ci_triggers_on_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_triggers_on_token ON public.ci_triggers USING btree (token); - - --- --- Name: index_ci_unit_test_failures_on_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_unit_test_failures_on_build_id ON public.ci_unit_test_failures USING btree (build_id); - - --- --- Name: index_ci_unit_test_failures_on_partition_id_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_unit_test_failures_on_partition_id_build_id ON public.ci_unit_test_failures USING btree (partition_id, build_id); - - --- --- Name: index_ci_unit_tests_on_project_id_and_key_hash; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_unit_tests_on_project_id_and_key_hash ON public.ci_unit_tests USING btree (project_id, key_hash); - - --- --- Name: index_ci_variables_on_key; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ci_variables_on_key ON public.ci_variables USING btree (key); - - --- --- Name: index_ci_variables_on_project_id_and_key_and_environment_scope; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ci_variables_on_project_id_and_key_and_environment_scope ON public.ci_variables USING btree (project_id, key, environment_scope); - - --- --- Name: index_cicd_settings_on_namespace_id_where_stale_pruning_enabled; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_cicd_settings_on_namespace_id_where_stale_pruning_enabled ON public.namespace_ci_cd_settings USING btree (namespace_id) WHERE (allow_stale_runner_pruning = true); - - --- --- Name: index_cis_vulnerability_reads_on_cluster_agent_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_cis_vulnerability_reads_on_cluster_agent_id ON public.vulnerability_reads USING btree (casted_cluster_agent_id) WHERE (report_type = 7); - - --- --- Name: index_cluster_agent_tokens_on_agent_id_status_last_used_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_cluster_agent_tokens_on_agent_id_status_last_used_at ON public.cluster_agent_tokens USING btree (agent_id, status, last_used_at DESC NULLS LAST); - - --- --- Name: index_cluster_agent_tokens_on_created_by_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_cluster_agent_tokens_on_created_by_user_id ON public.cluster_agent_tokens USING btree (created_by_user_id); - - --- --- Name: index_cluster_agent_tokens_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_cluster_agent_tokens_on_project_id ON public.cluster_agent_tokens USING btree (project_id); - - --- --- Name: index_cluster_agent_tokens_on_token_encrypted; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_cluster_agent_tokens_on_token_encrypted ON public.cluster_agent_tokens USING btree (token_encrypted); - - --- --- Name: index_cluster_agent_url_configurations_on_agent_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_cluster_agent_url_configurations_on_agent_id ON public.cluster_agent_url_configurations USING btree (agent_id); - - --- --- Name: index_cluster_agent_url_configurations_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_cluster_agent_url_configurations_on_project_id ON public.cluster_agent_url_configurations USING btree (project_id); - - --- --- Name: index_cluster_agent_url_configurations_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_cluster_agent_url_configurations_on_user_id ON public.cluster_agent_url_configurations USING btree (created_by_user_id) WHERE (created_by_user_id IS NOT NULL); - - --- --- Name: index_cluster_agents_on_created_by_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_cluster_agents_on_created_by_user_id ON public.cluster_agents USING btree (created_by_user_id); - - --- --- Name: index_cluster_agents_on_project_id_and_has_vulnerabilities; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_cluster_agents_on_project_id_and_has_vulnerabilities ON public.cluster_agents USING btree (project_id, has_vulnerabilities); - - --- --- Name: index_cluster_agents_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_cluster_agents_on_project_id_and_name ON public.cluster_agents USING btree (project_id, name); - - --- --- Name: index_cluster_enabled_grants_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_cluster_enabled_grants_on_namespace_id ON public.cluster_enabled_grants USING btree (namespace_id); - - --- --- Name: index_cluster_groups_on_cluster_id_and_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_cluster_groups_on_cluster_id_and_group_id ON public.cluster_groups USING btree (cluster_id, group_id); - - --- --- Name: index_cluster_groups_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_cluster_groups_on_group_id ON public.cluster_groups USING btree (group_id); - - --- --- Name: index_cluster_platforms_kubernetes_on_cluster_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_cluster_platforms_kubernetes_on_cluster_id ON public.cluster_platforms_kubernetes USING btree (cluster_id); - - --- --- Name: index_cluster_projects_on_cluster_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_cluster_projects_on_cluster_id ON public.cluster_projects USING btree (cluster_id); - - --- --- Name: index_cluster_projects_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_cluster_projects_on_project_id ON public.cluster_projects USING btree (project_id); - - --- --- Name: index_cluster_providers_aws_on_cluster_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_cluster_providers_aws_on_cluster_id ON public.cluster_providers_aws USING btree (cluster_id); - - --- --- Name: index_cluster_providers_aws_on_cluster_id_and_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_cluster_providers_aws_on_cluster_id_and_status ON public.cluster_providers_aws USING btree (cluster_id, status); - - --- --- Name: index_cluster_providers_gcp_on_cloud_run; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_cluster_providers_gcp_on_cloud_run ON public.cluster_providers_gcp USING btree (cloud_run); - - --- --- Name: index_cluster_providers_gcp_on_cluster_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_cluster_providers_gcp_on_cluster_id ON public.cluster_providers_gcp USING btree (cluster_id); - - --- --- Name: index_clusters_integration_prometheus_enabled; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_clusters_integration_prometheus_enabled ON public.clusters_integration_prometheus USING btree (enabled, created_at, cluster_id); - - --- --- Name: index_clusters_kubernetes_namespaces_on_cluster_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_clusters_kubernetes_namespaces_on_cluster_project_id ON public.clusters_kubernetes_namespaces USING btree (cluster_project_id); - - --- --- Name: index_clusters_kubernetes_namespaces_on_environment_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_clusters_kubernetes_namespaces_on_environment_id ON public.clusters_kubernetes_namespaces USING btree (environment_id); - - --- --- Name: index_clusters_kubernetes_namespaces_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_clusters_kubernetes_namespaces_on_project_id ON public.clusters_kubernetes_namespaces USING btree (project_id); - - --- --- Name: index_clusters_on_enabled_and_provider_type_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_clusters_on_enabled_and_provider_type_and_id ON public.clusters USING btree (enabled, provider_type, id); - - --- --- Name: index_clusters_on_enabled_cluster_type_id_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_clusters_on_enabled_cluster_type_id_and_created_at ON public.clusters USING btree (enabled, cluster_type, id, created_at); - - --- --- Name: index_clusters_on_management_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_clusters_on_management_project_id ON public.clusters USING btree (management_project_id) WHERE (management_project_id IS NOT NULL); - - --- --- Name: index_clusters_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_clusters_on_user_id ON public.clusters USING btree (user_id); - - --- --- Name: index_commit_user_mentions_on_note_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_commit_user_mentions_on_note_id ON public.commit_user_mentions USING btree (note_id); - - --- --- Name: index_compliance_checks_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_compliance_checks_on_namespace_id ON public.compliance_checks USING btree (namespace_id); - - --- --- Name: index_compliance_framework_security_policies_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_compliance_framework_security_policies_on_namespace_id ON public.compliance_framework_security_policies USING btree (namespace_id); - - --- --- Name: index_compliance_framework_security_policies_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_compliance_framework_security_policies_on_project_id ON public.compliance_framework_security_policies USING btree (project_id); - - --- --- Name: index_compliance_frameworks_id_where_frameworks_not_null; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_compliance_frameworks_id_where_frameworks_not_null ON public.compliance_management_frameworks USING btree (id) WHERE (pipeline_configuration_full_path IS NOT NULL); - - --- --- Name: index_compliance_management_frameworks_on_name_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_compliance_management_frameworks_on_name_trigram ON public.compliance_management_frameworks USING gin (name public.gin_trgm_ops); - - --- --- Name: index_compliance_requirements_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_compliance_requirements_on_namespace_id ON public.compliance_requirements USING btree (namespace_id); - - --- --- Name: index_composer_cache_files_where_namespace_id_is_null; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_composer_cache_files_where_namespace_id_is_null ON public.packages_composer_cache_files USING btree (id) WHERE (namespace_id IS NULL); - - --- --- Name: index_container_expiration_policies_on_next_run_at_and_enabled; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_container_expiration_policies_on_next_run_at_and_enabled ON public.container_expiration_policies USING btree (next_run_at, enabled); - - --- --- Name: index_container_registry_data_repair_details_on_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_container_registry_data_repair_details_on_status ON public.container_registry_data_repair_details USING btree (status); - - --- --- Name: index_container_repositories_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_container_repositories_on_project_id_and_id ON public.container_repositories USING btree (project_id, id); - - --- --- Name: index_container_repositories_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_container_repositories_on_project_id_and_name ON public.container_repositories USING btree (project_id, name); - - --- --- Name: index_container_repositories_on_status_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_container_repositories_on_status_and_id ON public.container_repositories USING btree (status, id) WHERE (status IS NOT NULL); - - --- --- Name: index_container_repository_on_name_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_container_repository_on_name_trigram ON public.container_repositories USING gin (name public.gin_trgm_ops); - - --- --- Name: index_container_repository_states_failed_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_container_repository_states_failed_verification ON public.container_repository_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); - - --- --- Name: index_container_repository_states_needs_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_container_repository_states_needs_verification ON public.container_repository_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); - - --- --- Name: index_container_repository_states_on_verification_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_container_repository_states_on_verification_state ON public.container_repository_states USING btree (verification_state); - - --- --- Name: index_container_repository_states_pending_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_container_repository_states_pending_verification ON public.container_repository_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); - - --- --- Name: index_content_blocked_states_on_container_id_commit_sha_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_content_blocked_states_on_container_id_commit_sha_path ON public.content_blocked_states USING btree (container_identifier, commit_sha, path); - - --- --- Name: index_country_access_logs_on_user_id_and_country_code; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_country_access_logs_on_user_id_and_country_code ON public.country_access_logs USING btree (user_id, country_code); - - --- --- Name: index_coverage_fuzzing_corpuses_on_package_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_coverage_fuzzing_corpuses_on_package_id ON public.coverage_fuzzing_corpuses USING btree (package_id); - - --- --- Name: index_coverage_fuzzing_corpuses_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_coverage_fuzzing_corpuses_on_project_id ON public.coverage_fuzzing_corpuses USING btree (project_id); - - --- --- Name: index_coverage_fuzzing_corpuses_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_coverage_fuzzing_corpuses_on_user_id ON public.coverage_fuzzing_corpuses USING btree (user_id); - - --- --- Name: index_created_at_on_codeowner_approval_merge_request_rules; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_created_at_on_codeowner_approval_merge_request_rules ON public.approval_merge_request_rules USING btree (created_at) WHERE ((rule_type = 2) AND (section <> 'codeowners'::text)); - - --- --- Name: index_csv_issue_imports_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_csv_issue_imports_on_project_id ON public.csv_issue_imports USING btree (project_id); - - --- --- Name: index_csv_issue_imports_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_csv_issue_imports_on_user_id ON public.csv_issue_imports USING btree (user_id); - - --- --- Name: index_custom_emoji_on_creator_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_custom_emoji_on_creator_id ON public.custom_emoji USING btree (creator_id); - - --- --- Name: index_custom_emoji_on_namespace_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_custom_emoji_on_namespace_id_and_name ON public.custom_emoji USING btree (namespace_id, name); - - --- --- Name: index_custom_software_licenses_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_custom_software_licenses_on_project_id_and_name ON public.custom_software_licenses USING btree (project_id, name); - - --- --- Name: index_customer_relations_contacts_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_customer_relations_contacts_on_group_id ON public.customer_relations_contacts USING btree (group_id); - - --- --- Name: index_customer_relations_contacts_on_organization_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_customer_relations_contacts_on_organization_id ON public.customer_relations_contacts USING btree (organization_id); - - --- --- Name: index_customer_relations_contacts_on_unique_email_per_group; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_customer_relations_contacts_on_unique_email_per_group ON public.customer_relations_contacts USING btree (group_id, lower(email), id); - - --- --- Name: index_cycle_analytics_stage_event_hashes_on_org_id_sha_256; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_cycle_analytics_stage_event_hashes_on_org_id_sha_256 ON public.analytics_cycle_analytics_stage_event_hashes USING btree (organization_id, hash_sha256); - - --- --- Name: index_daily_build_group_report_results_unique_columns; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_daily_build_group_report_results_unique_columns ON public.ci_daily_build_group_report_results USING btree (project_id, ref_path, date, group_name); - - --- --- Name: index_dast_pre_scan_verifications_on_ci_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_dast_pre_scan_verifications_on_ci_pipeline_id ON public.dast_pre_scan_verifications USING btree (ci_pipeline_id); - - --- --- Name: index_dast_pre_scan_verifications_on_dast_profile_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dast_pre_scan_verifications_on_dast_profile_id ON public.dast_pre_scan_verifications USING btree (dast_profile_id); - - --- --- Name: index_dast_pre_scan_verifications_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dast_pre_scan_verifications_on_project_id ON public.dast_pre_scan_verifications USING btree (project_id); - - --- --- Name: index_dast_profile_schedules_active_next_run_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dast_profile_schedules_active_next_run_at ON public.dast_profile_schedules USING btree (active, next_run_at); - - --- --- Name: index_dast_profile_schedules_on_dast_profile_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_dast_profile_schedules_on_dast_profile_id ON public.dast_profile_schedules USING btree (dast_profile_id); - - --- --- Name: index_dast_profile_schedules_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dast_profile_schedules_on_project_id ON public.dast_profile_schedules USING btree (project_id); - - --- --- Name: index_dast_profile_schedules_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dast_profile_schedules_on_user_id ON public.dast_profile_schedules USING btree (user_id); - - --- --- Name: index_dast_profiles_on_dast_scanner_profile_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dast_profiles_on_dast_scanner_profile_id ON public.dast_profiles USING btree (dast_scanner_profile_id); - - --- --- Name: index_dast_profiles_on_dast_site_profile_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dast_profiles_on_dast_site_profile_id ON public.dast_profiles USING btree (dast_site_profile_id); - - --- --- Name: index_dast_profiles_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_dast_profiles_on_project_id_and_name ON public.dast_profiles USING btree (project_id, name); - - --- --- Name: index_dast_profiles_pipelines_on_ci_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_dast_profiles_pipelines_on_ci_pipeline_id ON public.dast_profiles_pipelines USING btree (ci_pipeline_id); - - --- --- Name: index_dast_profiles_tags_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dast_profiles_tags_on_project_id ON public.dast_profiles_tags USING btree (project_id); - - --- --- Name: index_dast_profiles_tags_on_tag_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dast_profiles_tags_on_tag_id ON public.dast_profiles_tags USING btree (tag_id); - - --- --- Name: index_dast_scanner_profiles_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_dast_scanner_profiles_on_project_id_and_name ON public.dast_scanner_profiles USING btree (project_id, name); - - --- --- Name: index_dast_site_profile_secret_variables_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dast_site_profile_secret_variables_on_project_id ON public.dast_site_profile_secret_variables USING btree (project_id); - - --- --- Name: index_dast_site_profiles_on_dast_site_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dast_site_profiles_on_dast_site_id ON public.dast_site_profiles USING btree (dast_site_id); - - --- --- Name: index_dast_site_profiles_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_dast_site_profiles_on_project_id_and_name ON public.dast_site_profiles USING btree (project_id, name); - - --- --- Name: index_dast_site_token_on_project_id_and_url; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_dast_site_token_on_project_id_and_url ON public.dast_site_tokens USING btree (project_id, url); - - --- --- Name: index_dast_site_token_on_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_dast_site_token_on_token ON public.dast_site_tokens USING btree (token); - - --- --- Name: index_dast_site_tokens_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dast_site_tokens_on_project_id ON public.dast_site_tokens USING btree (project_id); - - --- --- Name: index_dast_site_validations_on_dast_site_token_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dast_site_validations_on_dast_site_token_id ON public.dast_site_validations USING btree (dast_site_token_id); - - --- --- Name: index_dast_site_validations_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dast_site_validations_on_project_id ON public.dast_site_validations USING btree (project_id); - - --- --- Name: index_dast_site_validations_on_url_base_and_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dast_site_validations_on_url_base_and_state ON public.dast_site_validations USING btree (url_base, state); - - --- --- Name: index_dast_sites_on_dast_site_validation_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dast_sites_on_dast_site_validation_id ON public.dast_sites USING btree (dast_site_validation_id); - - --- --- Name: index_dast_sites_on_project_id_and_url; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_dast_sites_on_project_id_and_url ON public.dast_sites USING btree (project_id, url); - - --- --- Name: index_dep_prox_manifests_on_group_id_file_name_and_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_dep_prox_manifests_on_group_id_file_name_and_status ON public.dependency_proxy_manifests USING btree (group_id, file_name, status); - - --- --- Name: index_dependency_list_export_parts_on_dependency_list_export_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dependency_list_export_parts_on_dependency_list_export_id ON public.dependency_list_export_parts USING btree (dependency_list_export_id); - - --- --- Name: index_dependency_list_export_parts_on_organization_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dependency_list_export_parts_on_organization_id ON public.dependency_list_export_parts USING btree (organization_id); - - --- --- Name: index_dependency_list_exports_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dependency_list_exports_on_group_id ON public.dependency_list_exports USING btree (group_id); - - --- --- Name: index_dependency_list_exports_on_organization_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dependency_list_exports_on_organization_id ON public.dependency_list_exports USING btree (organization_id); - - --- --- Name: index_dependency_list_exports_on_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dependency_list_exports_on_pipeline_id ON public.dependency_list_exports USING btree (pipeline_id); - - --- --- Name: index_dependency_list_exports_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dependency_list_exports_on_project_id ON public.dependency_list_exports USING btree (project_id); - - --- --- Name: index_dependency_list_exports_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dependency_list_exports_on_user_id ON public.dependency_list_exports USING btree (user_id); - - --- --- Name: index_dependency_proxy_blob_states_failed_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dependency_proxy_blob_states_failed_verification ON public.dependency_proxy_blob_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); - - --- --- Name: index_dependency_proxy_blob_states_needs_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dependency_proxy_blob_states_needs_verification ON public.dependency_proxy_blob_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); - - --- --- Name: index_dependency_proxy_blob_states_on_dependency_proxy_blob_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dependency_proxy_blob_states_on_dependency_proxy_blob_id ON public.dependency_proxy_blob_states USING btree (dependency_proxy_blob_id); - - --- --- Name: index_dependency_proxy_blob_states_on_verification_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dependency_proxy_blob_states_on_verification_state ON public.dependency_proxy_blob_states USING btree (verification_state); - - --- --- Name: index_dependency_proxy_blob_states_pending_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dependency_proxy_blob_states_pending_verification ON public.dependency_proxy_blob_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); - - --- --- Name: index_dependency_proxy_blobs_on_group_id_and_file_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dependency_proxy_blobs_on_group_id_and_file_name ON public.dependency_proxy_blobs USING btree (group_id, file_name); - - --- --- Name: index_dependency_proxy_blobs_on_group_id_status_read_at_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dependency_proxy_blobs_on_group_id_status_read_at_id ON public.dependency_proxy_blobs USING btree (group_id, status, read_at, id); - - --- --- Name: index_dependency_proxy_blobs_on_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dependency_proxy_blobs_on_status ON public.dependency_proxy_blobs USING btree (status); - - --- --- Name: index_dependency_proxy_group_settings_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dependency_proxy_group_settings_on_group_id ON public.dependency_proxy_group_settings USING btree (group_id); - - --- --- Name: index_dependency_proxy_manifests_on_group_id_status_read_at_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dependency_proxy_manifests_on_group_id_status_read_at_id ON public.dependency_proxy_manifests USING btree (group_id, status, read_at, id); - - --- --- Name: index_dependency_proxy_manifests_on_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dependency_proxy_manifests_on_status ON public.dependency_proxy_manifests USING btree (status); - - --- --- Name: index_deploy_key_id_on_protected_branch_push_access_levels; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deploy_key_id_on_protected_branch_push_access_levels ON public.protected_branch_push_access_levels USING btree (deploy_key_id); - - --- --- Name: index_deploy_keys_projects_on_deploy_key_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deploy_keys_projects_on_deploy_key_id ON public.deploy_keys_projects USING btree (deploy_key_id); - - --- --- Name: index_deploy_keys_projects_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deploy_keys_projects_on_project_id ON public.deploy_keys_projects USING btree (project_id); - - --- --- Name: index_deploy_tokens_on_creator_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deploy_tokens_on_creator_id ON public.deploy_tokens USING btree (creator_id); - - --- --- Name: index_deploy_tokens_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deploy_tokens_on_group_id ON public.deploy_tokens USING btree (group_id); - - --- --- Name: index_deploy_tokens_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deploy_tokens_on_project_id ON public.deploy_tokens USING btree (project_id); - - --- --- Name: index_deploy_tokens_on_token_encrypted; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_deploy_tokens_on_token_encrypted ON public.deploy_tokens USING btree (token_encrypted); - - --- --- Name: index_deployment_approvals_on_approval_rule_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployment_approvals_on_approval_rule_id ON public.deployment_approvals USING btree (approval_rule_id); - - --- --- Name: index_deployment_approvals_on_created_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployment_approvals_on_created_at_and_id ON public.deployment_approvals USING btree (created_at, id); - - --- --- Name: index_deployment_approvals_on_deployment_user_approval_rule; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_deployment_approvals_on_deployment_user_approval_rule ON public.deployment_approvals USING btree (deployment_id, user_id, approval_rule_id); - - --- --- Name: index_deployment_approvals_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployment_approvals_on_project_id ON public.deployment_approvals USING btree (project_id); - - --- --- Name: index_deployment_approvals_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployment_approvals_on_user_id ON public.deployment_approvals USING btree (user_id); - - --- --- Name: index_deployment_clusters_on_cluster_id_and_deployment_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_deployment_clusters_on_cluster_id_and_deployment_id ON public.deployment_clusters USING btree (cluster_id, deployment_id); - - --- --- Name: index_deployment_merge_requests_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployment_merge_requests_on_merge_request_id ON public.deployment_merge_requests USING btree (merge_request_id); - - --- --- Name: index_deployments_for_visible_scope; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployments_for_visible_scope ON public.deployments USING btree (environment_id, finished_at DESC) WHERE (status = ANY (ARRAY[1, 2, 3, 4, 6])); - - --- --- Name: index_deployments_on_archived_project_id_iid; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployments_on_archived_project_id_iid ON public.deployments USING btree (archived, project_id, iid); - - --- --- Name: index_deployments_on_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployments_on_created_at ON public.deployments USING btree (created_at); - - --- --- Name: index_deployments_on_deployable_type_and_deployable_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployments_on_deployable_type_and_deployable_id ON public.deployments USING btree (deployable_type, deployable_id); - - --- --- Name: index_deployments_on_environment_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployments_on_environment_id_and_id ON public.deployments USING btree (environment_id, id); - - --- --- Name: index_deployments_on_environment_id_and_ref; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployments_on_environment_id_and_ref ON public.deployments USING btree (environment_id, ref); - - --- --- Name: index_deployments_on_environment_id_status_and_finished_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployments_on_environment_id_status_and_finished_at ON public.deployments USING btree (environment_id, status, finished_at); - - --- --- Name: index_deployments_on_environment_id_status_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployments_on_environment_id_status_and_id ON public.deployments USING btree (environment_id, status, id); - - --- --- Name: index_deployments_on_environment_status_sha; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployments_on_environment_status_sha ON public.deployments USING btree (environment_id, status, sha); - - --- --- Name: index_deployments_on_id_and_status_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployments_on_id_and_status_and_created_at ON public.deployments USING btree (id, status, created_at); - - --- --- Name: index_deployments_on_project_and_environment_and_updated_at_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployments_on_project_and_environment_and_updated_at_id ON public.deployments USING btree (project_id, environment_id, updated_at, id); - - --- --- Name: index_deployments_on_project_and_finished; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployments_on_project_and_finished ON public.deployments USING btree (project_id, finished_at) WHERE (status = 2); - - --- --- Name: index_deployments_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployments_on_project_id_and_id ON public.deployments USING btree (project_id, id DESC); - - --- --- Name: index_deployments_on_project_id_and_iid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_deployments_on_project_id_and_iid ON public.deployments USING btree (project_id, iid); - - --- --- Name: index_deployments_on_project_id_and_status_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployments_on_project_id_and_status_and_created_at ON public.deployments USING btree (project_id, status, created_at); - - --- --- Name: index_deployments_on_project_id_and_updated_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployments_on_project_id_and_updated_at_and_id ON public.deployments USING btree (project_id, updated_at DESC, id DESC); - - --- --- Name: index_deployments_on_user_id_and_status_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_deployments_on_user_id_and_status_and_created_at ON public.deployments USING btree (user_id, status, created_at); - - --- --- Name: index_description_versions_on_epic_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_description_versions_on_epic_id ON public.description_versions USING btree (epic_id) WHERE (epic_id IS NOT NULL); - - --- --- Name: index_description_versions_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_description_versions_on_issue_id ON public.description_versions USING btree (issue_id) WHERE (issue_id IS NOT NULL); - - --- --- Name: index_description_versions_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_description_versions_on_merge_request_id ON public.description_versions USING btree (merge_request_id) WHERE (merge_request_id IS NOT NULL); - - --- --- Name: index_design_management_designs_issue_id_relative_position_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_design_management_designs_issue_id_relative_position_id ON public.design_management_designs USING btree (issue_id, relative_position, id); - - --- --- Name: index_design_management_designs_on_iid_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_design_management_designs_on_iid_and_project_id ON public.design_management_designs USING btree (project_id, iid); - - --- --- Name: index_design_management_designs_on_issue_id_and_filename; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_design_management_designs_on_issue_id_and_filename ON public.design_management_designs USING btree (issue_id, filename); - - --- --- Name: index_design_management_designs_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_design_management_designs_on_namespace_id ON public.design_management_designs USING btree (namespace_id); - - --- --- Name: index_design_management_designs_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_design_management_designs_on_project_id ON public.design_management_designs USING btree (project_id); - - --- --- Name: index_design_management_designs_versions_on_design_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_design_management_designs_versions_on_design_id ON public.design_management_designs_versions USING btree (design_id); - - --- --- Name: index_design_management_designs_versions_on_event; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_design_management_designs_versions_on_event ON public.design_management_designs_versions USING btree (event); - - --- --- Name: index_design_management_designs_versions_on_version_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_design_management_designs_versions_on_version_id ON public.design_management_designs_versions USING btree (version_id); - - --- --- Name: index_design_management_repositories_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_design_management_repositories_on_namespace_id ON public.design_management_repositories USING btree (namespace_id); - - --- --- Name: index_design_management_repositories_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_design_management_repositories_on_project_id ON public.design_management_repositories USING btree (project_id); - - --- --- Name: index_design_management_repository_states_failed_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_design_management_repository_states_failed_verification ON public.design_management_repository_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); - - --- --- Name: index_design_management_repository_states_needs_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_design_management_repository_states_needs_verification ON public.design_management_repository_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); - - --- --- Name: index_design_management_repository_states_on_verification_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_design_management_repository_states_on_verification_state ON public.design_management_repository_states USING btree (verification_state); - - --- --- Name: index_design_management_repository_states_pending_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_design_management_repository_states_pending_verification ON public.design_management_repository_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); - - --- --- Name: index_design_management_versions_on_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_design_management_versions_on_author_id ON public.design_management_versions USING btree (author_id) WHERE (author_id IS NOT NULL); - - --- --- Name: index_design_management_versions_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_design_management_versions_on_issue_id ON public.design_management_versions USING btree (issue_id); - - --- --- Name: index_design_management_versions_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_design_management_versions_on_namespace_id ON public.design_management_versions USING btree (namespace_id); - - --- --- Name: index_design_management_versions_on_sha_and_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_design_management_versions_on_sha_and_issue_id ON public.design_management_versions USING btree (sha, issue_id); - - --- --- Name: index_design_user_mentions_on_note_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_design_user_mentions_on_note_id ON public.design_user_mentions USING btree (note_id); - - --- --- Name: index_diff_note_positions_on_note_id_and_diff_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_diff_note_positions_on_note_id_and_diff_type ON public.diff_note_positions USING btree (note_id, diff_type); - - --- --- Name: index_dingtalk_tracker_data_on_integration_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dingtalk_tracker_data_on_integration_id ON public.dingtalk_tracker_data USING btree (integration_id); - - --- --- Name: index_dora_configurations_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_dora_configurations_on_project_id ON public.dora_configurations USING btree (project_id); - - --- --- Name: index_dora_daily_metrics_on_environment_id_and_date; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_dora_daily_metrics_on_environment_id_and_date ON public.dora_daily_metrics USING btree (environment_id, date); - - --- --- Name: index_dora_daily_metrics_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_dora_daily_metrics_on_project_id ON public.dora_daily_metrics USING btree (project_id); - - --- --- Name: index_dora_performance_scores_on_project_id_and_date; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_dora_performance_scores_on_project_id_and_date ON public.dora_performance_scores USING btree (project_id, date); - - --- --- Name: index_draft_notes_on_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_draft_notes_on_author_id ON public.draft_notes USING btree (author_id); - - --- --- Name: index_draft_notes_on_discussion_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_draft_notes_on_discussion_id ON public.draft_notes USING btree (discussion_id); - - --- --- Name: index_draft_notes_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_draft_notes_on_merge_request_id ON public.draft_notes USING btree (merge_request_id); - - --- --- Name: index_draft_notes_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_draft_notes_on_project_id ON public.draft_notes USING btree (project_id); - - --- --- Name: index_duo_workflows_checkpoints_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_duo_workflows_checkpoints_on_project_id ON public.duo_workflows_checkpoints USING btree (project_id); - - --- --- Name: index_duo_workflows_workflow_checkpoints_unique_thread; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_duo_workflows_workflow_checkpoints_unique_thread ON public.duo_workflows_checkpoints USING btree (workflow_id, thread_ts); - - --- --- Name: index_duo_workflows_workflows_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_duo_workflows_workflows_on_project_id ON public.duo_workflows_workflows USING btree (project_id); - - --- --- Name: index_duo_workflows_workflows_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_duo_workflows_workflows_on_user_id ON public.duo_workflows_workflows USING btree (user_id); - - --- --- Name: index_early_access_program_tracking_events_on_category; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_early_access_program_tracking_events_on_category ON public.early_access_program_tracking_events USING btree (category); - - --- --- Name: index_early_access_program_tracking_events_on_event_label; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_early_access_program_tracking_events_on_event_label ON public.early_access_program_tracking_events USING btree (event_label); - - --- --- Name: index_early_access_program_tracking_events_on_event_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_early_access_program_tracking_events_on_event_name ON public.early_access_program_tracking_events USING btree (event_name); - - --- --- Name: index_early_access_program_tracking_events_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_early_access_program_tracking_events_on_user_id ON public.early_access_program_tracking_events USING btree (user_id); - - --- --- Name: index_elastic_index_settings_on_alias_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_elastic_index_settings_on_alias_name ON public.elastic_index_settings USING btree (alias_name); - - --- --- Name: index_elastic_reindexing_subtasks_on_elastic_reindexing_task_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_elastic_reindexing_subtasks_on_elastic_reindexing_task_id ON public.elastic_reindexing_subtasks USING btree (elastic_reindexing_task_id); - - --- --- Name: index_elastic_reindexing_tasks_on_in_progress; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_elastic_reindexing_tasks_on_in_progress ON public.elastic_reindexing_tasks USING btree (in_progress) WHERE in_progress; - - --- --- Name: index_elastic_reindexing_tasks_on_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_elastic_reindexing_tasks_on_state ON public.elastic_reindexing_tasks USING btree (state); - - --- --- Name: index_elasticsearch_indexed_namespaces_on_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_elasticsearch_indexed_namespaces_on_created_at ON public.elasticsearch_indexed_namespaces USING btree (created_at); - - --- --- Name: index_emails_on_confirmation_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_emails_on_confirmation_token ON public.emails USING btree (confirmation_token); - - --- --- Name: index_emails_on_created_at_where_confirmed_at_is_null; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_emails_on_created_at_where_confirmed_at_is_null ON public.emails USING btree (created_at) WHERE (confirmed_at IS NULL); - - --- --- Name: index_emails_on_detumbled_email; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_emails_on_detumbled_email ON public.emails USING btree (detumbled_email); - - --- --- Name: index_emails_on_email; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_emails_on_email ON public.emails USING btree (email); - - --- --- Name: index_emails_on_email_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_emails_on_email_trigram ON public.emails USING gin (email public.gin_trgm_ops); - - --- --- Name: index_emails_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_emails_on_user_id ON public.emails USING btree (user_id); - - --- --- Name: index_enabled_clusters_on_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_enabled_clusters_on_id ON public.clusters USING btree (id) WHERE (enabled = true); - - --- --- Name: index_environments_cluster_agent_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_environments_cluster_agent_id ON public.environments USING btree (cluster_agent_id) WHERE (cluster_agent_id IS NOT NULL); - - --- --- Name: index_environments_name_without_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_environments_name_without_type ON public.environments USING btree (project_id, lower(ltrim(ltrim((name)::text, (environment_type)::text), '/'::text)) varchar_pattern_ops, state); - - --- --- Name: index_environments_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_environments_on_merge_request_id ON public.environments USING btree (merge_request_id); - - --- --- Name: index_environments_on_name_varchar_pattern_ops; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_environments_on_name_varchar_pattern_ops ON public.environments USING btree (name varchar_pattern_ops); - - --- --- Name: index_environments_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_environments_on_project_id_and_id ON public.environments USING btree (project_id, id); - - --- --- Name: index_environments_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_environments_on_project_id_and_name ON public.environments USING btree (project_id, name); - - --- --- Name: index_environments_on_project_id_and_slug; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_environments_on_project_id_and_slug ON public.environments USING btree (project_id, slug); - - --- --- Name: index_environments_on_project_id_and_tier; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_environments_on_project_id_and_tier ON public.environments USING btree (project_id, tier) WHERE (tier IS NOT NULL); - - --- --- Name: index_environments_on_project_id_state_environment_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_environments_on_project_id_state_environment_type ON public.environments USING btree (project_id, state, environment_type); - - --- --- Name: index_environments_on_project_name_varchar_pattern_ops_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_environments_on_project_name_varchar_pattern_ops_state ON public.environments USING btree (project_id, lower((name)::text) varchar_pattern_ops, state); - - --- --- Name: index_environments_on_state_and_auto_delete_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_environments_on_state_and_auto_delete_at ON public.environments USING btree (auto_delete_at) WHERE ((auto_delete_at IS NOT NULL) AND ((state)::text = 'stopped'::text)); - - --- --- Name: index_environments_on_state_and_auto_stop_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_environments_on_state_and_auto_stop_at ON public.environments USING btree (state, auto_stop_at) WHERE ((auto_stop_at IS NOT NULL) AND ((state)::text = 'available'::text)); - - --- --- Name: index_environments_on_updated_at_for_stopping_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_environments_on_updated_at_for_stopping_state ON public.environments USING btree (updated_at) WHERE ((state)::text = 'stopping'::text); - - --- --- Name: index_epic_board_list_preferences_on_user_and_list; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_epic_board_list_preferences_on_user_and_list ON public.boards_epic_list_user_preferences USING btree (user_id, epic_list_id); - - --- --- Name: index_epic_board_recent_visits_on_user_group_and_board; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_epic_board_recent_visits_on_user_group_and_board ON public.boards_epic_board_recent_visits USING btree (user_id, group_id, epic_board_id); - - --- --- Name: index_epic_issues_on_epic_id_and_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_epic_issues_on_epic_id_and_issue_id ON public.epic_issues USING btree (epic_id, issue_id); - - --- --- Name: index_epic_issues_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_epic_issues_on_issue_id ON public.epic_issues USING btree (issue_id); - - --- --- Name: index_epic_issues_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_epic_issues_on_namespace_id ON public.epic_issues USING btree (namespace_id); - - --- --- Name: index_epic_metrics; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_epic_metrics ON public.epic_metrics USING btree (epic_id); - - --- --- Name: index_epic_user_mentions_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_epic_user_mentions_on_group_id ON public.epic_user_mentions USING btree (group_id); - - --- --- Name: index_epic_user_mentions_on_note_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_epic_user_mentions_on_note_id ON public.epic_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); - - --- --- Name: index_epics_on_assignee_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_epics_on_assignee_id ON public.epics USING btree (assignee_id); - - --- --- Name: index_epics_on_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_epics_on_author_id ON public.epics USING btree (author_id); - - --- --- Name: index_epics_on_closed_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_epics_on_closed_by_id ON public.epics USING btree (closed_by_id); - - --- --- Name: index_epics_on_confidential; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_epics_on_confidential ON public.epics USING btree (confidential); - - --- --- Name: index_epics_on_due_date_sourcing_epic_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_epics_on_due_date_sourcing_epic_id ON public.epics USING btree (due_date_sourcing_epic_id) WHERE (due_date_sourcing_epic_id IS NOT NULL); - - --- --- Name: index_epics_on_due_date_sourcing_milestone_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_epics_on_due_date_sourcing_milestone_id ON public.epics USING btree (due_date_sourcing_milestone_id); - - --- --- Name: index_epics_on_end_date; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_epics_on_end_date ON public.epics USING btree (end_date); - - --- --- Name: index_epics_on_group_id_and_external_key; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_epics_on_group_id_and_external_key ON public.epics USING btree (group_id, external_key) WHERE (external_key IS NOT NULL); - - --- --- Name: index_epics_on_group_id_and_iid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_epics_on_group_id_and_iid ON public.epics USING btree (group_id, iid); - - --- --- Name: index_epics_on_group_id_and_iid_varchar_pattern; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_epics_on_group_id_and_iid_varchar_pattern ON public.epics USING btree (group_id, ((iid)::character varying) varchar_pattern_ops); - - --- --- Name: index_epics_on_iid; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_epics_on_iid ON public.epics USING btree (iid); - - --- --- Name: index_epics_on_last_edited_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_epics_on_last_edited_by_id ON public.epics USING btree (last_edited_by_id); - - --- --- Name: index_epics_on_parent_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_epics_on_parent_id ON public.epics USING btree (parent_id); - - --- --- Name: index_epics_on_start_date; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_epics_on_start_date ON public.epics USING btree (start_date); - - --- --- Name: index_epics_on_start_date_sourcing_epic_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_epics_on_start_date_sourcing_epic_id ON public.epics USING btree (start_date_sourcing_epic_id) WHERE (start_date_sourcing_epic_id IS NOT NULL); - - --- --- Name: index_epics_on_start_date_sourcing_milestone_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_epics_on_start_date_sourcing_milestone_id ON public.epics USING btree (start_date_sourcing_milestone_id); - - --- --- Name: index_error_tracking_client_for_enabled_check; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_error_tracking_client_for_enabled_check ON public.error_tracking_client_keys USING btree (project_id, public_key) WHERE (active = true); - - --- --- Name: index_error_tracking_client_keys_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_error_tracking_client_keys_on_project_id ON public.error_tracking_client_keys USING btree (project_id); - - --- --- Name: index_error_tracking_error_events_on_error_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_error_tracking_error_events_on_error_id ON public.error_tracking_error_events USING btree (error_id); - - --- --- Name: index_error_tracking_error_events_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_error_tracking_error_events_on_project_id ON public.error_tracking_error_events USING btree (project_id); - - --- --- Name: index_error_tracking_errors_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_error_tracking_errors_on_project_id ON public.error_tracking_errors USING btree (project_id); - - --- --- Name: index_esc_protected_branches_on_external_status_check_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_esc_protected_branches_on_external_status_check_id ON public.external_status_checks_protected_branches USING btree (external_status_check_id); - - --- --- Name: index_esc_protected_branches_on_protected_branch_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_esc_protected_branches_on_protected_branch_id ON public.external_status_checks_protected_branches USING btree (protected_branch_id); - - --- --- Name: index_escalation_rules_on_all_attributes; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_escalation_rules_on_all_attributes ON public.incident_management_escalation_rules USING btree (policy_id, oncall_schedule_id, status, elapsed_time_seconds, user_id); - - --- --- Name: index_escalation_rules_on_user; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_escalation_rules_on_user ON public.incident_management_escalation_rules USING btree (user_id); - - --- --- Name: index_et_errors_on_project_id_and_status_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_et_errors_on_project_id_and_status_and_id ON public.error_tracking_errors USING btree (project_id, status, id); - - --- --- Name: index_et_errors_on_project_id_and_status_events_count_id_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_et_errors_on_project_id_and_status_events_count_id_desc ON public.error_tracking_errors USING btree (project_id, status, events_count DESC, id DESC); - - --- --- Name: index_et_errors_on_project_id_and_status_first_seen_at_id_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_et_errors_on_project_id_and_status_first_seen_at_id_desc ON public.error_tracking_errors USING btree (project_id, status, first_seen_at DESC, id DESC); - - --- --- Name: index_et_errors_on_project_id_and_status_last_seen_at_id_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_et_errors_on_project_id_and_status_last_seen_at_id_desc ON public.error_tracking_errors USING btree (project_id, status, last_seen_at DESC, id DESC); - - --- --- Name: index_events_author_id_group_id_action_target_type_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_events_author_id_group_id_action_target_type_created_at ON public.events USING btree (author_id, group_id, action, target_type, created_at); - - --- --- Name: index_events_author_id_project_id_action_target_type_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_events_author_id_project_id_action_target_type_created_at ON public.events USING btree (author_id, project_id, action, target_type, created_at); - - --- --- Name: index_events_for_followed_users; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_events_for_followed_users ON public.events USING btree (author_id, target_type, action, id); - - --- --- Name: index_events_for_group_activity; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_events_for_group_activity ON public.events USING btree (group_id, target_type, action, id) WHERE (group_id IS NOT NULL); - - --- --- Name: index_events_for_project_activity; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_events_for_project_activity ON public.events USING btree (project_id, target_type, action, id); - - --- --- Name: index_events_on_author_id_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_events_on_author_id_and_created_at ON public.events USING btree (author_id, created_at); - - --- --- Name: index_events_on_author_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_events_on_author_id_and_id ON public.events USING btree (author_id, id); - - --- --- Name: index_events_on_created_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_events_on_created_at_and_id ON public.events USING btree (created_at, id) WHERE (created_at > '2021-08-27 00:00:00+00'::timestamp with time zone); - - --- --- Name: index_events_on_group_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_events_on_group_id_and_id ON public.events USING btree (group_id, id) WHERE (group_id IS NOT NULL); - - --- --- Name: index_events_on_group_id_partial; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_events_on_group_id_partial ON public.events USING btree (group_id) WHERE (group_id IS NOT NULL); - - --- --- Name: index_events_on_project_id_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_events_on_project_id_and_created_at ON public.events USING btree (project_id, created_at); - - --- --- Name: index_events_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_events_on_project_id_and_id ON public.events USING btree (project_id, id); - - --- --- Name: index_events_on_target_type_and_target_id_and_fingerprint; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_events_on_target_type_and_target_id_and_fingerprint ON public.events USING btree (target_type, target_id, fingerprint); - - --- --- Name: index_evidences_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_evidences_on_project_id ON public.evidences USING btree (project_id); - - --- --- Name: index_evidences_on_release_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_evidences_on_release_id ON public.evidences USING btree (release_id); - - --- --- Name: index_expired_and_not_notified_personal_access_tokens; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_expired_and_not_notified_personal_access_tokens ON public.personal_access_tokens USING btree (id, expires_at) WHERE ((impersonation = false) AND (revoked = false) AND (expire_notification_delivered = false)); - - --- --- Name: index_external_audit_event_destinations_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_external_audit_event_destinations_on_namespace_id ON public.audit_events_external_audit_event_destinations USING btree (namespace_id, destination_url); - - --- --- Name: index_external_pull_requests_on_project_and_branches; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_external_pull_requests_on_project_and_branches ON public.external_pull_requests USING btree (project_id, source_branch, target_branch); - - --- --- Name: index_external_status_checks_protected_branches_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_external_status_checks_protected_branches_on_project_id ON public.external_status_checks_protected_branches USING btree (project_id); - - --- --- Name: index_feature_flag_scopes_on_flag_id_and_environment_scope; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_feature_flag_scopes_on_flag_id_and_environment_scope ON public.operations_feature_flag_scopes USING btree (feature_flag_id, environment_scope); - - --- --- Name: index_feature_flags_clients_on_project_id_and_token_encrypted; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_feature_flags_clients_on_project_id_and_token_encrypted ON public.operations_feature_flags_clients USING btree (project_id, token_encrypted); - - --- --- Name: index_feature_gates_on_feature_key_and_key_and_value; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_feature_gates_on_feature_key_and_key_and_value ON public.feature_gates USING btree (feature_key, key, value); - - --- --- Name: index_features_on_key; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_features_on_key ON public.features USING btree (key); - - --- --- Name: index_for_owasp_top_10_group_level_reports; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_for_owasp_top_10_group_level_reports ON public.vulnerability_reads USING btree (owasp_top_10, state, report_type, severity, traversal_ids, vulnerability_id, resolved_on_default_branch) WHERE (archived = false); - - --- --- Name: index_for_protected_environment_group_id_of_protected_environme; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_for_protected_environment_group_id_of_protected_environme ON public.protected_environment_deploy_access_levels USING btree (protected_environment_group_id); - - --- --- Name: index_for_protected_environment_project_id_of_protected_environ; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_for_protected_environment_project_id_of_protected_environ ON public.protected_environment_deploy_access_levels USING btree (protected_environment_project_id); - - --- --- Name: index_for_security_scans_scan_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_for_security_scans_scan_type ON public.security_scans USING btree (scan_type, project_id, pipeline_id) WHERE (status = 1); - - --- --- Name: index_for_status_per_branch_per_project; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_for_status_per_branch_per_project ON public.merge_trains USING btree (target_project_id, target_branch, status); - - --- --- Name: index_fork_network_members_on_fork_network_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_fork_network_members_on_fork_network_id ON public.fork_network_members USING btree (fork_network_id); - - --- --- Name: index_fork_network_members_on_forked_from_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_fork_network_members_on_forked_from_project_id ON public.fork_network_members USING btree (forked_from_project_id); - - --- --- Name: index_fork_network_members_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_fork_network_members_on_project_id ON public.fork_network_members USING btree (project_id); - - --- --- Name: index_fork_networks_on_root_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_fork_networks_on_root_project_id ON public.fork_networks USING btree (root_project_id); - - --- --- Name: index_geo_event_log_on_cache_invalidation_event_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_geo_event_log_on_cache_invalidation_event_id ON public.geo_event_log USING btree (cache_invalidation_event_id) WHERE (cache_invalidation_event_id IS NOT NULL); - - --- --- Name: index_geo_event_log_on_geo_event_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_geo_event_log_on_geo_event_id ON public.geo_event_log USING btree (geo_event_id) WHERE (geo_event_id IS NOT NULL); - - --- --- Name: index_geo_event_log_on_repositories_changed_event_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_geo_event_log_on_repositories_changed_event_id ON public.geo_event_log USING btree (repositories_changed_event_id) WHERE (repositories_changed_event_id IS NOT NULL); - - --- --- Name: index_geo_node_namespace_links_on_geo_node_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_geo_node_namespace_links_on_geo_node_id ON public.geo_node_namespace_links USING btree (geo_node_id); - - --- --- Name: index_geo_node_namespace_links_on_geo_node_id_and_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_geo_node_namespace_links_on_geo_node_id_and_namespace_id ON public.geo_node_namespace_links USING btree (geo_node_id, namespace_id); - - --- --- Name: index_geo_node_namespace_links_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_geo_node_namespace_links_on_namespace_id ON public.geo_node_namespace_links USING btree (namespace_id); - - --- --- Name: index_geo_node_statuses_on_geo_node_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_geo_node_statuses_on_geo_node_id ON public.geo_node_statuses USING btree (geo_node_id); - - --- --- Name: index_geo_nodes_on_access_key; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_geo_nodes_on_access_key ON public.geo_nodes USING btree (access_key); - - --- --- Name: index_geo_nodes_on_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_geo_nodes_on_name ON public.geo_nodes USING btree (name); - - --- --- Name: index_geo_nodes_on_primary; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_geo_nodes_on_primary ON public.geo_nodes USING btree ("primary"); - - --- --- Name: index_ghost_user_migrations_on_consume_after_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ghost_user_migrations_on_consume_after_id ON public.ghost_user_migrations USING btree (consume_after, id); - - --- --- Name: index_ghost_user_migrations_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ghost_user_migrations_on_user_id ON public.ghost_user_migrations USING btree (user_id); - - --- --- Name: index_gin_ci_namespace_mirrors_on_traversal_ids; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_gin_ci_namespace_mirrors_on_traversal_ids ON public.ci_namespace_mirrors USING gin (traversal_ids); - - --- --- Name: index_gin_ci_pending_builds_on_namespace_traversal_ids; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_gin_ci_pending_builds_on_namespace_traversal_ids ON public.ci_pending_builds USING gin (namespace_traversal_ids); - - --- --- Name: index_gitlab_subscription_histories_on_gitlab_subscription_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_gitlab_subscription_histories_on_gitlab_subscription_id ON public.gitlab_subscription_histories USING btree (gitlab_subscription_id); - - --- --- Name: index_gitlab_subscription_histories_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_gitlab_subscription_histories_on_namespace_id ON public.gitlab_subscription_histories USING btree (namespace_id); - - --- --- Name: index_gitlab_subscriptions_on_end_date_and_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_gitlab_subscriptions_on_end_date_and_namespace_id ON public.gitlab_subscriptions USING btree (end_date, namespace_id); - - --- --- Name: index_gitlab_subscriptions_on_hosted_plan_id_and_trial; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_gitlab_subscriptions_on_hosted_plan_id_and_trial ON public.gitlab_subscriptions USING btree (hosted_plan_id, trial); - - --- --- Name: index_gitlab_subscriptions_on_max_seats_used_changed_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_gitlab_subscriptions_on_max_seats_used_changed_at ON public.gitlab_subscriptions USING btree (max_seats_used_changed_at, namespace_id); - - --- --- Name: index_gitlab_subscriptions_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_gitlab_subscriptions_on_namespace_id ON public.gitlab_subscriptions USING btree (namespace_id); - - --- --- Name: index_gitlab_subscriptions_on_trial_and_trial_starts_on; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_gitlab_subscriptions_on_trial_and_trial_starts_on ON public.gitlab_subscriptions USING btree (trial, trial_starts_on); - - --- --- Name: index_gpg_key_subkeys_on_fingerprint; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_gpg_key_subkeys_on_fingerprint ON public.gpg_key_subkeys USING btree (fingerprint); - - --- --- Name: index_gpg_key_subkeys_on_gpg_key_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_gpg_key_subkeys_on_gpg_key_id ON public.gpg_key_subkeys USING btree (gpg_key_id); - - --- --- Name: index_gpg_key_subkeys_on_keyid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_gpg_key_subkeys_on_keyid ON public.gpg_key_subkeys USING btree (keyid); - - --- --- Name: index_gpg_keys_on_fingerprint; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_gpg_keys_on_fingerprint ON public.gpg_keys USING btree (fingerprint); - - --- --- Name: index_gpg_keys_on_primary_keyid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_gpg_keys_on_primary_keyid ON public.gpg_keys USING btree (primary_keyid); - - --- --- Name: index_gpg_keys_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_gpg_keys_on_user_id ON public.gpg_keys USING btree (user_id); - - --- --- Name: index_gpg_signatures_on_commit_sha; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_gpg_signatures_on_commit_sha ON public.gpg_signatures USING btree (commit_sha); - - --- --- Name: index_gpg_signatures_on_gpg_key_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_gpg_signatures_on_gpg_key_id_and_id ON public.gpg_signatures USING btree (gpg_key_id, id); - - --- --- Name: index_gpg_signatures_on_gpg_key_primary_keyid; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_gpg_signatures_on_gpg_key_primary_keyid ON public.gpg_signatures USING btree (gpg_key_primary_keyid); - - --- --- Name: index_gpg_signatures_on_gpg_key_subkey_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_gpg_signatures_on_gpg_key_subkey_id ON public.gpg_signatures USING btree (gpg_key_subkey_id); - - --- --- Name: index_gpg_signatures_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_gpg_signatures_on_project_id ON public.gpg_signatures USING btree (project_id); - - --- --- Name: index_grafana_integrations_on_enabled; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_grafana_integrations_on_enabled ON public.grafana_integrations USING btree (enabled) WHERE (enabled IS TRUE); - - --- --- Name: index_grafana_integrations_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_grafana_integrations_on_project_id ON public.grafana_integrations USING btree (project_id); - - --- --- Name: index_group_crm_settings_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_crm_settings_on_group_id ON public.group_crm_settings USING btree (group_id); - - --- --- Name: index_group_crm_settings_on_source_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_crm_settings_on_source_group_id ON public.group_crm_settings USING btree (source_group_id); - - --- --- Name: index_group_custom_attributes_on_group_id_and_key; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_group_custom_attributes_on_group_id_and_key ON public.group_custom_attributes USING btree (group_id, key); - - --- --- Name: index_group_custom_attributes_on_key_and_value; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_custom_attributes_on_key_and_value ON public.group_custom_attributes USING btree (key, value); - - --- --- Name: index_group_deletion_schedules_on_marked_for_deletion_on; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_deletion_schedules_on_marked_for_deletion_on ON public.group_deletion_schedules USING btree (marked_for_deletion_on); - - --- --- Name: index_group_deletion_schedules_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_deletion_schedules_on_user_id ON public.group_deletion_schedules USING btree (user_id); - - --- --- Name: index_group_deploy_keys_group_on_group_deploy_key_and_group_ids; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_group_deploy_keys_group_on_group_deploy_key_and_group_ids ON public.group_deploy_keys_groups USING btree (group_id, group_deploy_key_id); - - --- --- Name: index_group_deploy_keys_groups_on_group_deploy_key_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_deploy_keys_groups_on_group_deploy_key_id ON public.group_deploy_keys_groups USING btree (group_deploy_key_id); - - --- --- Name: index_group_deploy_keys_on_fingerprint; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_deploy_keys_on_fingerprint ON public.group_deploy_keys USING btree (fingerprint); - - --- --- Name: index_group_deploy_keys_on_fingerprint_sha256_unique; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_group_deploy_keys_on_fingerprint_sha256_unique ON public.group_deploy_keys USING btree (fingerprint_sha256); - - --- --- Name: index_group_deploy_keys_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_deploy_keys_on_user_id ON public.group_deploy_keys USING btree (user_id); - - --- --- Name: index_group_deploy_tokens_on_deploy_token_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_deploy_tokens_on_deploy_token_id ON public.group_deploy_tokens USING btree (deploy_token_id); - - --- --- Name: index_group_deploy_tokens_on_group_and_deploy_token_ids; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_group_deploy_tokens_on_group_and_deploy_token_ids ON public.group_deploy_tokens USING btree (group_id, deploy_token_id); - - --- --- Name: index_group_group_links_on_member_role_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_group_links_on_member_role_id ON public.group_group_links USING btree (member_role_id); - - --- --- Name: index_group_group_links_on_shared_group_and_shared_with_group; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_group_group_links_on_shared_group_and_shared_with_group ON public.group_group_links USING btree (shared_group_id, shared_with_group_id); - - --- --- Name: index_group_group_links_on_shared_with_group_and_group_access; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_group_links_on_shared_with_group_and_group_access ON public.group_group_links USING btree (shared_with_group_id, group_access); - - --- --- Name: index_group_group_links_on_shared_with_group_and_shared_group; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_group_links_on_shared_with_group_and_shared_group ON public.group_group_links USING btree (shared_with_group_id, shared_group_id); - - --- --- Name: index_group_import_states_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_import_states_on_group_id ON public.group_import_states USING btree (group_id); - - --- --- Name: index_group_import_states_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_import_states_on_user_id ON public.group_import_states USING btree (user_id) WHERE (user_id IS NOT NULL); - - --- --- Name: index_group_repository_storage_moves_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_repository_storage_moves_on_group_id ON public.group_repository_storage_moves USING btree (group_id); - - --- --- Name: index_group_saved_replies_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_saved_replies_on_group_id ON public.group_saved_replies USING btree (group_id); - - --- --- Name: index_group_ssh_certificates_on_fingerprint; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_group_ssh_certificates_on_fingerprint ON public.group_ssh_certificates USING btree (fingerprint); - - --- --- Name: index_group_ssh_certificates_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_ssh_certificates_on_namespace_id ON public.group_ssh_certificates USING btree (namespace_id); - - --- --- Name: index_group_stages_on_group_id_group_value_stream_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_group_stages_on_group_id_group_value_stream_id_and_name ON public.analytics_cycle_analytics_group_stages USING btree (group_id, group_value_stream_id, name); - - --- --- Name: index_group_stages_on_stage_event_hash_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_stages_on_stage_event_hash_id ON public.analytics_cycle_analytics_group_stages USING btree (stage_event_hash_id); - - --- --- Name: index_group_user_callouts_feature; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_group_user_callouts_feature ON public.user_group_callouts USING btree (user_id, feature_name, group_id); - - --- --- Name: index_group_wiki_repositories_on_disk_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_group_wiki_repositories_on_disk_path ON public.group_wiki_repositories USING btree (disk_path); - - --- --- Name: index_group_wiki_repositories_on_shard_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_wiki_repositories_on_shard_id ON public.group_wiki_repositories USING btree (shard_id); - - --- --- Name: index_group_wiki_repository_states_failed_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_wiki_repository_states_failed_verification ON public.group_wiki_repository_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); - - --- --- Name: index_group_wiki_repository_states_needs_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_wiki_repository_states_needs_verification ON public.group_wiki_repository_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); - - --- --- Name: index_group_wiki_repository_states_on_group_wiki_repository_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_group_wiki_repository_states_on_group_wiki_repository_id ON public.group_wiki_repository_states USING btree (group_wiki_repository_id); - - --- --- Name: index_group_wiki_repository_states_on_verification_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_wiki_repository_states_on_verification_state ON public.group_wiki_repository_states USING btree (verification_state); - - --- --- Name: index_group_wiki_repository_states_pending_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_group_wiki_repository_states_pending_verification ON public.group_wiki_repository_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); - - --- --- Name: index_groups_on_parent_id_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_groups_on_parent_id_id ON public.namespaces USING btree (parent_id, id) WHERE ((type)::text = 'Group'::text); - - --- --- Name: index_groups_on_path_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_groups_on_path_and_id ON public.namespaces USING btree (path, id) WHERE ((type)::text = 'Group'::text); - - --- --- Name: index_groups_visits_on_entity_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_groups_visits_on_entity_id ON ONLY public.groups_visits USING btree (entity_id); - - --- --- Name: index_groups_visits_on_user_id_and_entity_id_and_visited_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_groups_visits_on_user_id_and_entity_id_and_visited_at ON ONLY public.groups_visits USING btree (user_id, entity_id, visited_at); - - --- --- Name: index_historical_data_on_recorded_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_historical_data_on_recorded_at ON public.historical_data USING btree (recorded_at); - - --- --- Name: index_http_integrations_on_project_and_endpoint; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_http_integrations_on_project_and_endpoint ON public.alert_management_http_integrations USING btree (project_id, endpoint_identifier); - - --- --- Name: index_identities_on_saml_provider_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_identities_on_saml_provider_id ON public.identities USING btree (saml_provider_id) WHERE (saml_provider_id IS NOT NULL); - - --- --- Name: index_identities_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_identities_on_user_id ON public.identities USING btree (user_id); - - --- --- Name: index_im_issuable_escalation_statuses_on_policy_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_im_issuable_escalation_statuses_on_policy_id ON public.incident_management_issuable_escalation_statuses USING btree (policy_id); - - --- --- Name: index_im_oncall_schedules_on_project_id_and_iid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_im_oncall_schedules_on_project_id_and_iid ON public.incident_management_oncall_schedules USING btree (project_id, iid); - - --- --- Name: index_im_timeline_event_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_im_timeline_event_id ON public.incident_management_timeline_event_tag_links USING btree (timeline_event_id); - - --- --- Name: index_im_timeline_event_tags_on_lower_name_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_im_timeline_event_tags_on_lower_name_and_project_id ON public.incident_management_timeline_event_tags USING btree (project_id, lower(name)); - - --- --- Name: index_im_timeline_event_tags_on_tag_id_and_event_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_im_timeline_event_tags_on_tag_id_and_event_id ON public.incident_management_timeline_event_tag_links USING btree (timeline_event_tag_id, timeline_event_id); - - --- --- Name: index_im_timeline_events_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_im_timeline_events_author_id ON public.incident_management_timeline_events USING btree (author_id); - - --- --- Name: index_im_timeline_events_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_im_timeline_events_issue_id ON public.incident_management_timeline_events USING btree (issue_id); - - --- --- Name: index_im_timeline_events_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_im_timeline_events_project_id ON public.incident_management_timeline_events USING btree (project_id); - - --- --- Name: index_im_timeline_events_promoted_from_note_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_im_timeline_events_promoted_from_note_id ON public.incident_management_timeline_events USING btree (promoted_from_note_id); - - --- --- Name: index_im_timeline_events_updated_by_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_im_timeline_events_updated_by_user_id ON public.incident_management_timeline_events USING btree (updated_by_user_id); - - --- --- Name: index_import_export_uploads_on_group_id_non_unique; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_export_uploads_on_group_id_non_unique ON public.import_export_uploads USING btree (group_id) WHERE (group_id IS NOT NULL); - - --- --- Name: index_import_export_uploads_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_export_uploads_on_project_id ON public.import_export_uploads USING btree (project_id); - - --- --- Name: index_import_export_uploads_on_updated_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_export_uploads_on_updated_at ON public.import_export_uploads USING btree (updated_at); - - --- --- Name: index_import_export_uploads_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_export_uploads_on_user_id ON public.import_export_uploads USING btree (user_id); - - --- --- Name: index_import_failures_on_correlation_id_value; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_failures_on_correlation_id_value ON public.import_failures USING btree (correlation_id_value); - - --- --- Name: index_import_failures_on_external_identifiers; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_failures_on_external_identifiers ON public.import_failures USING btree (external_identifiers) WHERE (external_identifiers <> '{}'::jsonb); - - --- --- Name: index_import_failures_on_group_id_not_null; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_failures_on_group_id_not_null ON public.import_failures USING btree (group_id) WHERE (group_id IS NOT NULL); - - --- --- Name: index_import_failures_on_project_id_and_correlation_id_value; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_failures_on_project_id_and_correlation_id_value ON public.import_failures USING btree (project_id, correlation_id_value) WHERE (retry_count = 0); - - --- --- Name: index_import_failures_on_project_id_not_null; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_failures_on_project_id_not_null ON public.import_failures USING btree (project_id) WHERE (project_id IS NOT NULL); - - --- --- Name: index_import_failures_on_user_id_not_null; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_failures_on_user_id_not_null ON public.import_failures USING btree (user_id) WHERE (user_id IS NOT NULL); - - --- --- Name: index_import_placeholder_memberships_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_placeholder_memberships_on_group_id ON public.import_placeholder_memberships USING btree (group_id); - - --- --- Name: index_import_placeholder_memberships_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_placeholder_memberships_on_namespace_id ON public.import_placeholder_memberships USING btree (namespace_id); - - --- --- Name: index_import_placeholder_memberships_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_placeholder_memberships_on_project_id ON public.import_placeholder_memberships USING btree (project_id); - - --- --- Name: index_import_placeholder_memberships_on_source_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_placeholder_memberships_on_source_user_id ON public.import_placeholder_memberships USING btree (source_user_id); - - --- --- Name: index_import_source_user_placeholder_references_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_source_user_placeholder_references_on_namespace_id ON public.import_source_user_placeholder_references USING btree (namespace_id); - - --- --- Name: index_import_source_user_placeholder_references_on_source_user_; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_source_user_placeholder_references_on_source_user_ ON public.import_source_user_placeholder_references USING btree (source_user_id); - - --- --- Name: index_import_source_users_on_namespace_id_and_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_source_users_on_namespace_id_and_status ON public.import_source_users USING btree (namespace_id, status); - - --- --- Name: index_import_source_users_on_placeholder_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_source_users_on_placeholder_user_id ON public.import_source_users USING btree (placeholder_user_id); - - --- --- Name: index_import_source_users_on_reassigned_by_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_import_source_users_on_reassigned_by_user_id ON public.import_source_users USING btree (reassigned_by_user_id); - - --- --- Name: index_imported_projects_on_import_type_creator_id_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_imported_projects_on_import_type_creator_id_created_at ON public.projects USING btree (import_type, creator_id, created_at) WHERE (import_type IS NOT NULL); - - --- --- Name: index_imported_projects_on_import_type_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_imported_projects_on_import_type_id ON public.projects USING btree (import_type, id) WHERE (import_type IS NOT NULL); - - --- --- Name: index_inc_mgmnt_oncall_participants_on_oncall_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_inc_mgmnt_oncall_participants_on_oncall_user_id ON public.incident_management_oncall_participants USING btree (user_id); - - --- --- Name: index_inc_mgmnt_oncall_participants_on_user_id_and_rotation_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_inc_mgmnt_oncall_participants_on_user_id_and_rotation_id ON public.incident_management_oncall_participants USING btree (user_id, oncall_rotation_id); - - --- --- Name: index_inc_mgmnt_oncall_pcpnt_on_oncall_rotation_id_is_removed; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_inc_mgmnt_oncall_pcpnt_on_oncall_rotation_id_is_removed ON public.incident_management_oncall_participants USING btree (oncall_rotation_id, is_removed); - - --- --- Name: index_inc_mgmnt_oncall_rotations_on_oncall_schedule_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_inc_mgmnt_oncall_rotations_on_oncall_schedule_id_and_id ON public.incident_management_oncall_rotations USING btree (oncall_schedule_id, id); - - --- --- Name: index_inc_mgmnt_oncall_rotations_on_oncall_schedule_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_inc_mgmnt_oncall_rotations_on_oncall_schedule_id_and_name ON public.incident_management_oncall_rotations USING btree (oncall_schedule_id, name); - - --- --- Name: index_incident_management_oncall_schedules_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_incident_management_oncall_schedules_on_project_id ON public.incident_management_oncall_schedules USING btree (project_id); - - --- --- Name: index_incident_management_oncall_shifts_on_participant_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_incident_management_oncall_shifts_on_participant_id ON public.incident_management_oncall_shifts USING btree (participant_id); - - --- --- Name: index_incident_management_pending_alert_escalations_on_alert_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_incident_management_pending_alert_escalations_on_alert_id ON ONLY public.incident_management_pending_alert_escalations USING btree (alert_id); - - --- --- Name: index_incident_management_pending_alert_escalations_on_rule_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_incident_management_pending_alert_escalations_on_rule_id ON ONLY public.incident_management_pending_alert_escalations USING btree (rule_id); - - --- --- Name: index_incident_management_pending_issue_escalations_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_incident_management_pending_issue_escalations_on_issue_id ON ONLY public.incident_management_pending_issue_escalations USING btree (issue_id); - - --- --- Name: index_incident_management_pending_issue_escalations_on_rule_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_incident_management_pending_issue_escalations_on_rule_id ON ONLY public.incident_management_pending_issue_escalations USING btree (rule_id); - - --- --- Name: index_index_statuses_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_index_statuses_on_project_id ON public.index_statuses USING btree (project_id); - - --- --- Name: index_insights_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_insights_on_namespace_id ON public.insights USING btree (namespace_id); - - --- --- Name: index_insights_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_insights_on_project_id ON public.insights USING btree (project_id); - - --- --- Name: index_integrations_on_inherit_from_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_integrations_on_inherit_from_id ON public.integrations USING btree (inherit_from_id); - - --- --- Name: index_integrations_on_project_and_type_new_where_inherit_null; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_integrations_on_project_and_type_new_where_inherit_null ON public.integrations USING btree (project_id, type_new) WHERE (inherit_from_id IS NULL); - - --- --- Name: index_integrations_on_project_id_and_type_new_unique; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_integrations_on_project_id_and_type_new_unique ON public.integrations USING btree (project_id, type_new); - - --- --- Name: index_integrations_on_type_new; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_integrations_on_type_new ON public.integrations USING btree (type_new); - - --- --- Name: index_integrations_on_type_new_and_instance_partial; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_integrations_on_type_new_and_instance_partial ON public.integrations USING btree (type_new, instance) WHERE (instance = true); - - --- --- Name: index_integrations_on_type_new_id_when_active_and_has_group; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_integrations_on_type_new_id_when_active_and_has_group ON public.integrations USING btree (type_new, id, inherit_from_id) WHERE ((active = true) AND (group_id IS NOT NULL)); - - --- --- Name: index_integrations_on_type_new_id_when_active_and_has_project; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_integrations_on_type_new_id_when_active_and_has_project ON public.integrations USING btree (type_new, id) WHERE ((active = true) AND (project_id IS NOT NULL)); - - --- --- Name: index_integrations_on_unique_group_id_and_type_new; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_integrations_on_unique_group_id_and_type_new ON public.integrations USING btree (group_id, type_new); - - --- --- Name: index_internal_ids_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_internal_ids_on_namespace_id ON public.internal_ids USING btree (namespace_id); - - --- --- Name: index_internal_ids_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_internal_ids_on_project_id ON public.internal_ids USING btree (project_id); - - --- --- Name: index_internal_ids_on_usage_and_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_internal_ids_on_usage_and_namespace_id ON public.internal_ids USING btree (usage, namespace_id) WHERE (namespace_id IS NOT NULL); - - --- --- Name: index_internal_ids_on_usage_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_internal_ids_on_usage_and_project_id ON public.internal_ids USING btree (usage, project_id) WHERE (project_id IS NOT NULL); - - --- --- Name: index_ip_restrictions_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ip_restrictions_on_group_id ON public.ip_restrictions USING btree (group_id); - - --- --- Name: index_issuable_metric_images_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issuable_metric_images_on_issue_id ON public.issuable_metric_images USING btree (issue_id); - - --- --- Name: index_issuable_resource_links_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issuable_resource_links_on_issue_id ON public.issuable_resource_links USING btree (issue_id); - - --- --- Name: index_issuable_severities_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_issuable_severities_on_issue_id ON public.issuable_severities USING btree (issue_id); - - --- --- Name: index_issuable_slas_on_due_at_id_label_applied_issuable_closed; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issuable_slas_on_due_at_id_label_applied_issuable_closed ON public.issuable_slas USING btree (due_at, id) WHERE ((label_applied = false) AND (issuable_closed = false)); - - --- --- Name: index_issuable_slas_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_issuable_slas_on_issue_id ON public.issuable_slas USING btree (issue_id); - - --- --- Name: index_issue_assignees_on_user_id_and_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_assignees_on_user_id_and_issue_id ON public.issue_assignees USING btree (user_id, issue_id); - - --- --- Name: index_issue_assignment_events_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_assignment_events_on_user_id ON public.issue_assignment_events USING btree (user_id); - - --- --- Name: index_issue_crm_contacts_on_issue_id_and_contact_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_issue_crm_contacts_on_issue_id_and_contact_id ON public.issue_customer_relations_contacts USING btree (issue_id, contact_id); - - --- --- Name: index_issue_customer_relations_contacts_on_contact_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_customer_relations_contacts_on_contact_id ON public.issue_customer_relations_contacts USING btree (contact_id); - - --- --- Name: index_issue_email_participants_on_issue_id_and_lower_email; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_issue_email_participants_on_issue_id_and_lower_email ON public.issue_email_participants USING btree (issue_id, lower(email)); - - --- --- Name: index_issue_emails_on_email_message_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_emails_on_email_message_id ON public.issue_emails USING btree (email_message_id); - - --- --- Name: index_issue_emails_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_emails_on_issue_id ON public.issue_emails USING btree (issue_id); - - --- --- Name: index_issue_links_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_links_on_namespace_id ON public.issue_links USING btree (namespace_id); - - --- --- Name: index_issue_links_on_source_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_links_on_source_id ON public.issue_links USING btree (source_id); - - --- --- Name: index_issue_links_on_source_id_and_target_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_issue_links_on_source_id_and_target_id ON public.issue_links USING btree (source_id, target_id); - - --- --- Name: index_issue_links_on_target_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_links_on_target_id ON public.issue_links USING btree (target_id); - - --- --- Name: index_issue_metrics_on_issue_id_and_timestamps; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_metrics_on_issue_id_and_timestamps ON public.issue_metrics USING btree (issue_id, first_mentioned_in_commit_at, first_associated_with_milestone_at, first_added_to_board_at); - - --- --- Name: index_issue_on_project_id_state_id_and_blocking_issues_count; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_on_project_id_state_id_and_blocking_issues_count ON public.issues USING btree (project_id, state_id, blocking_issues_count); - - --- --- Name: index_issue_tracker_data_on_integration_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issue_tracker_data_on_integration_id ON public.issue_tracker_data USING btree (integration_id); - - --- --- Name: index_issue_user_mentions_on_note_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_issue_user_mentions_on_note_id ON public.issue_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); - - --- --- Name: index_issues_on_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_author_id ON public.issues USING btree (author_id); - - --- --- Name: index_issues_on_author_id_and_id_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_author_id_and_id_and_created_at ON public.issues USING btree (author_id, id, created_at); - - --- --- Name: index_issues_on_closed_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_closed_by_id ON public.issues USING btree (closed_by_id); - - --- --- Name: index_issues_on_confidential; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_confidential ON public.issues USING btree (confidential); - - --- --- Name: index_issues_on_description_trigram_non_latin; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_description_trigram_non_latin ON public.issues USING gin (description public.gin_trgm_ops) WHERE (((title)::text !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text)) OR (description !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text))); - - --- --- Name: index_issues_on_duplicated_to_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_duplicated_to_id ON public.issues USING btree (duplicated_to_id) WHERE (duplicated_to_id IS NOT NULL); - - --- --- Name: index_issues_on_id_and_weight; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_id_and_weight ON public.issues USING btree (id, weight); - - --- --- Name: index_issues_on_last_edited_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_last_edited_by_id ON public.issues USING btree (last_edited_by_id); - - --- --- Name: index_issues_on_milestone_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_milestone_id_and_id ON public.issues USING btree (milestone_id, id); - - --- --- Name: index_issues_on_moved_to_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_moved_to_id ON public.issues USING btree (moved_to_id) WHERE (moved_to_id IS NOT NULL); - - --- --- Name: index_issues_on_namespace_id_iid_unique; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_issues_on_namespace_id_iid_unique ON public.issues USING btree (namespace_id, iid); - - --- --- Name: index_issues_on_project_health_status_asc_work_item_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_project_health_status_asc_work_item_type ON public.issues USING btree (project_id, health_status, id DESC, state_id, work_item_type_id); - - --- --- Name: index_issues_on_project_health_status_desc_work_item_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_project_health_status_desc_work_item_type ON public.issues USING btree (project_id, health_status DESC NULLS LAST, id DESC, state_id, work_item_type_id); - - --- --- Name: index_issues_on_project_id_and_external_key; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_issues_on_project_id_and_external_key ON public.issues USING btree (project_id, external_key) WHERE (external_key IS NOT NULL); - - --- --- Name: index_issues_on_project_id_and_iid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_issues_on_project_id_and_iid ON public.issues USING btree (project_id, iid); - - --- --- Name: index_issues_on_project_id_and_state_id_and_created_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_project_id_and_state_id_and_created_at_and_id ON public.issues USING btree (project_id, state_id, created_at, id); - - --- --- Name: index_issues_on_project_id_and_upvotes_count; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_project_id_and_upvotes_count ON public.issues USING btree (project_id, upvotes_count); - - --- --- Name: index_issues_on_project_id_closed_at_desc_state_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_project_id_closed_at_desc_state_id_and_id ON public.issues USING btree (project_id, closed_at DESC NULLS LAST, state_id, id); - - --- --- Name: index_issues_on_project_id_closed_at_state_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_project_id_closed_at_state_id_and_id ON public.issues USING btree (project_id, closed_at, state_id, id); - - --- --- Name: index_issues_on_project_id_health_status_created_at_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_project_id_health_status_created_at_id ON public.issues USING btree (project_id, health_status, created_at, id); - - --- --- Name: index_issues_on_promoted_to_epic_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_promoted_to_epic_id ON public.issues USING btree (promoted_to_epic_id) WHERE (promoted_to_epic_id IS NOT NULL); - - --- --- Name: index_issues_on_sprint_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_sprint_id ON public.issues USING btree (sprint_id); - - --- --- Name: index_issues_on_title_trigram_non_latin; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_title_trigram_non_latin ON public.issues USING gin (title public.gin_trgm_ops) WHERE (((title)::text !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text)) OR (description !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text))); - - --- --- Name: index_issues_on_updated_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_updated_at ON public.issues USING btree (updated_at); - - --- --- Name: index_issues_on_updated_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_updated_by_id ON public.issues USING btree (updated_by_id) WHERE (updated_by_id IS NOT NULL); - - --- --- Name: index_issues_on_work_item_type_id_project_id_created_at_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_issues_on_work_item_type_id_project_id_created_at_state ON public.issues USING btree (work_item_type_id, project_id, created_at, state_id); - - --- --- Name: index_iterations_cadences_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_iterations_cadences_on_group_id ON public.iterations_cadences USING btree (group_id); - - --- --- Name: index_jira_connect_installations_on_client_key; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_jira_connect_installations_on_client_key ON public.jira_connect_installations USING btree (client_key); - - --- --- Name: index_jira_connect_installations_on_instance_url; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_jira_connect_installations_on_instance_url ON public.jira_connect_installations USING btree (instance_url); - - --- --- Name: index_jira_connect_subscriptions_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_jira_connect_subscriptions_on_namespace_id ON public.jira_connect_subscriptions USING btree (namespace_id); - - --- --- Name: index_jira_imports_on_label_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_jira_imports_on_label_id ON public.jira_imports USING btree (label_id); - - --- --- Name: index_jira_imports_on_project_id_and_jira_project_key; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_jira_imports_on_project_id_and_jira_project_key ON public.jira_imports USING btree (project_id, jira_project_key); - - --- --- Name: index_jira_imports_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_jira_imports_on_user_id ON public.jira_imports USING btree (user_id); - - --- --- Name: index_jira_tracker_data_on_integration_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_jira_tracker_data_on_integration_id ON public.jira_tracker_data USING btree (integration_id); - - --- --- Name: index_job_artifact_states_failed_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_job_artifact_states_failed_verification ON public.ci_job_artifact_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); - - --- --- Name: index_job_artifact_states_needs_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_job_artifact_states_needs_verification ON public.ci_job_artifact_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); - - --- --- Name: index_job_artifact_states_on_verification_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_job_artifact_states_on_verification_state ON public.ci_job_artifact_states USING btree (verification_state); - - --- --- Name: index_job_artifact_states_pending_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_job_artifact_states_pending_verification ON public.ci_job_artifact_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); - - --- --- Name: index_key_updated_at_on_user_custom_attribute; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_key_updated_at_on_user_custom_attribute ON public.user_custom_attributes USING btree (key, updated_at); - - --- --- Name: index_keys_on_expires_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_keys_on_expires_at_and_id ON public.keys USING btree (date(timezone('UTC'::text, expires_at)), id) WHERE (expiry_notification_delivered_at IS NULL); - - --- --- Name: index_keys_on_fingerprint; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_keys_on_fingerprint ON public.keys USING btree (fingerprint); - - --- --- Name: index_keys_on_fingerprint_sha256_unique; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_keys_on_fingerprint_sha256_unique ON public.keys USING btree (fingerprint_sha256); - - --- --- Name: index_keys_on_id_and_ldap_key_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_keys_on_id_and_ldap_key_type ON public.keys USING btree (id) WHERE ((type)::text = 'LDAPKey'::text); - - --- --- Name: index_keys_on_last_used_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_keys_on_last_used_at ON public.keys USING btree (last_used_at DESC NULLS LAST); - - --- --- Name: index_keys_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_keys_on_user_id ON public.keys USING btree (user_id); - - --- --- Name: index_kubernetes_namespaces_on_cluster_project_environment_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_kubernetes_namespaces_on_cluster_project_environment_id ON public.clusters_kubernetes_namespaces USING btree (cluster_id, project_id, environment_id); - - --- --- Name: index_label_links_on_label_id_and_target_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_label_links_on_label_id_and_target_type ON public.label_links USING btree (label_id, target_type); - - --- --- Name: index_label_links_on_target_id_and_target_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_label_links_on_target_id_and_target_type ON public.label_links USING btree (target_id, target_type); - - --- --- Name: index_label_priorities_on_label_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_label_priorities_on_label_id ON public.label_priorities USING btree (label_id); - - --- --- Name: index_label_priorities_on_priority; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_label_priorities_on_priority ON public.label_priorities USING btree (priority); - - --- --- Name: index_label_priorities_on_project_id_and_label_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_label_priorities_on_project_id_and_label_id ON public.label_priorities USING btree (project_id, label_id); - - --- --- Name: index_labels_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_labels_on_group_id ON public.labels USING btree (group_id); - - --- --- Name: index_labels_on_group_id_and_title_varchar_unique; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_labels_on_group_id_and_title_varchar_unique ON public.labels USING btree (group_id, title varchar_pattern_ops) WHERE (project_id IS NULL); - - --- --- Name: index_labels_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_labels_on_project_id ON public.labels USING btree (project_id); - - --- --- Name: index_labels_on_project_id_and_title_varchar_unique; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_labels_on_project_id_and_title_varchar_unique ON public.labels USING btree (project_id, title varchar_pattern_ops) WHERE (group_id IS NULL); - - --- --- Name: index_labels_on_template; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_labels_on_template ON public.labels USING btree (template) WHERE template; - - --- --- Name: index_labels_on_title_varchar; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_labels_on_title_varchar ON public.labels USING btree (title varchar_pattern_ops); - - --- --- Name: index_labels_on_type_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_labels_on_type_and_project_id ON public.labels USING btree (type, project_id); - - --- --- Name: index_ldap_group_links_on_member_role_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ldap_group_links_on_member_role_id ON public.ldap_group_links USING btree (member_role_id); - - --- --- Name: index_lfs_file_locks_on_project_id_and_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_lfs_file_locks_on_project_id_and_path ON public.lfs_file_locks USING btree (project_id, path); - - --- --- Name: index_lfs_file_locks_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_lfs_file_locks_on_user_id ON public.lfs_file_locks USING btree (user_id); - - --- --- Name: index_lfs_object_states_failed_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_lfs_object_states_failed_verification ON public.lfs_object_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); - - --- --- Name: index_lfs_object_states_needs_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_lfs_object_states_needs_verification ON public.lfs_object_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); - - --- --- Name: index_lfs_object_states_on_lfs_object_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_lfs_object_states_on_lfs_object_id ON public.lfs_object_states USING btree (lfs_object_id); - - --- --- Name: index_lfs_object_states_on_verification_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_lfs_object_states_on_verification_state ON public.lfs_object_states USING btree (verification_state); - - --- --- Name: index_lfs_object_states_pending_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_lfs_object_states_pending_verification ON public.lfs_object_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); - - --- --- Name: index_lfs_objects_on_file; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_lfs_objects_on_file ON public.lfs_objects USING btree (file); - - --- --- Name: index_lfs_objects_on_file_store; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_lfs_objects_on_file_store ON public.lfs_objects USING btree (file_store); - - --- --- Name: index_lfs_objects_on_oid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_lfs_objects_on_oid ON public.lfs_objects USING btree (oid); - - --- --- Name: index_lfs_objects_projects_on_lfs_object_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_lfs_objects_projects_on_lfs_object_id ON public.lfs_objects_projects USING btree (lfs_object_id); - - --- --- Name: index_lfs_objects_projects_on_project_id_and_lfs_object_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_lfs_objects_projects_on_project_id_and_lfs_object_id ON public.lfs_objects_projects USING btree (project_id, lfs_object_id); - - --- --- Name: index_list_user_preferences_on_list_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_list_user_preferences_on_list_id ON public.list_user_preferences USING btree (list_id); - - --- --- Name: index_list_user_preferences_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_list_user_preferences_on_user_id ON public.list_user_preferences USING btree (user_id); - - --- --- Name: index_list_user_preferences_on_user_id_and_list_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_list_user_preferences_on_user_id_and_list_id ON public.list_user_preferences USING btree (user_id, list_id); - - --- --- Name: index_lists_on_board_id_and_label_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_lists_on_board_id_and_label_id ON public.lists USING btree (board_id, label_id); - - --- --- Name: index_lists_on_iteration_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_lists_on_iteration_id ON public.lists USING btree (iteration_id); - - --- --- Name: index_lists_on_label_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_lists_on_label_id ON public.lists USING btree (label_id); - - --- --- Name: index_lists_on_list_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_lists_on_list_type ON public.lists USING btree (list_type); - - --- --- Name: index_lists_on_milestone_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_lists_on_milestone_id ON public.lists USING btree (milestone_id); - - --- --- Name: index_lists_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_lists_on_user_id ON public.lists USING btree (user_id); - - --- --- Name: index_loose_foreign_keys_deleted_records_for_partitioned_query; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_loose_foreign_keys_deleted_records_for_partitioned_query ON ONLY public.loose_foreign_keys_deleted_records USING btree (partition, fully_qualified_table_name, consume_after, id) WHERE (status = 1); - - --- --- Name: index_manifest_states_failed_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_manifest_states_failed_verification ON public.dependency_proxy_manifest_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); - - --- --- Name: index_manifest_states_needs_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_manifest_states_needs_verification ON public.dependency_proxy_manifest_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); - - --- --- Name: index_manifest_states_on_dependency_proxy_manifest_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_manifest_states_on_dependency_proxy_manifest_id ON public.dependency_proxy_manifest_states USING btree (dependency_proxy_manifest_id); - - --- --- Name: index_manifest_states_on_verification_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_manifest_states_on_verification_state ON public.dependency_proxy_manifest_states USING btree (verification_state); - - --- --- Name: index_manifest_states_pending_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_manifest_states_pending_verification ON public.dependency_proxy_manifest_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); - - --- --- Name: index_member_approval_on_member_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_member_approval_on_member_id ON public.member_approvals USING btree (member_id); - - --- --- Name: index_member_approval_on_member_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_member_approval_on_member_namespace_id ON public.member_approvals USING btree (member_namespace_id); - - --- --- Name: index_member_approval_on_requested_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_member_approval_on_requested_by_id ON public.member_approvals USING btree (requested_by_id); - - --- --- Name: index_member_approval_on_reviewed_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_member_approval_on_reviewed_by_id ON public.member_approvals USING btree (reviewed_by_id); - - --- --- Name: index_member_approvals_on_member_namespace_id_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_member_approvals_on_member_namespace_id_status ON public.member_approvals USING btree (member_namespace_id, status) WHERE (status = 0); - - --- --- Name: index_member_approvals_on_member_role_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_member_approvals_on_member_role_id ON public.member_approvals USING btree (member_role_id); - - --- --- Name: index_member_approvals_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_member_approvals_on_user_id ON public.member_approvals USING btree (user_id); - - --- --- Name: index_member_roles_on_name_unique; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_member_roles_on_name_unique ON public.member_roles USING btree (name) WHERE (namespace_id IS NULL); - - --- --- Name: index_member_roles_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_member_roles_on_namespace_id ON public.member_roles USING btree (namespace_id); - - --- --- Name: index_member_roles_on_namespace_id_name_unique; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_member_roles_on_namespace_id_name_unique ON public.member_roles USING btree (namespace_id, name) WHERE (namespace_id IS NOT NULL); - - --- --- Name: index_member_roles_on_occupies_seat; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_member_roles_on_occupies_seat ON public.member_roles USING btree (occupies_seat); - - --- --- Name: index_member_roles_on_permissions; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_member_roles_on_permissions ON public.member_roles USING gin (permissions); - - --- --- Name: index_members_on_access_level; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_members_on_access_level ON public.members USING btree (access_level); - - --- --- Name: index_members_on_expires_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_members_on_expires_at ON public.members USING btree (expires_at); - - --- --- Name: index_members_on_expiring_at_access_level_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_members_on_expiring_at_access_level_id ON public.members USING btree (expires_at, access_level, id) WHERE ((requested_at IS NULL) AND (expiry_notified_at IS NULL)); - - --- --- Name: index_members_on_invite_email; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_members_on_invite_email ON public.members USING btree (invite_email); - - --- --- Name: index_members_on_invite_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_members_on_invite_token ON public.members USING btree (invite_token); - - --- --- Name: index_members_on_lower_invite_email_with_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_members_on_lower_invite_email_with_token ON public.members USING btree (lower((invite_email)::text)) WHERE (invite_token IS NOT NULL); - - --- --- Name: index_members_on_member_namespace_id_compound; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_members_on_member_namespace_id_compound ON public.members USING btree (member_namespace_id, type, requested_at, id); - - --- --- Name: index_members_on_member_role_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_members_on_member_role_id ON public.members USING btree (member_role_id); - - --- --- Name: index_members_on_requested_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_members_on_requested_at ON public.members USING btree (requested_at); - - --- --- Name: index_members_on_source_and_type_and_access_level; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_members_on_source_and_type_and_access_level ON public.members USING btree (source_id, source_type, type, access_level); - - --- --- Name: index_members_on_source_and_type_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_members_on_source_and_type_and_id ON public.members USING btree (source_id, source_type, type, id) WHERE (invite_token IS NULL); - - --- --- Name: index_members_on_source_state_type_access_level_and_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_members_on_source_state_type_access_level_and_user_id ON public.members USING btree (source_id, source_type, state, type, access_level, user_id) WHERE ((requested_at IS NULL) AND (invite_token IS NULL)); - - --- --- Name: index_members_on_user_id_and_access_level_requested_at_is_null; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_members_on_user_id_and_access_level_requested_at_is_null ON public.members USING btree (user_id, access_level) WHERE (requested_at IS NULL); - - --- --- Name: index_members_on_user_id_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_members_on_user_id_created_at ON public.members USING btree (user_id, created_at) WHERE ((ldap = true) AND ((type)::text = 'GroupMember'::text) AND ((source_type)::text = 'Namespace'::text)); - - --- --- Name: index_merge_request_assignees_on_merge_request_id_and_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_merge_request_assignees_on_merge_request_id_and_user_id ON public.merge_request_assignees USING btree (merge_request_id, user_id); - - --- --- Name: index_merge_request_assignees_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_assignees_on_project_id ON public.merge_request_assignees USING btree (project_id); - - --- --- Name: index_merge_request_assignees_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_assignees_on_user_id ON public.merge_request_assignees USING btree (user_id); - - --- --- Name: index_merge_request_assignment_events_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_assignment_events_on_project_id ON public.merge_request_assignment_events USING btree (project_id); - - --- --- Name: index_merge_request_assignment_events_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_assignment_events_on_user_id ON public.merge_request_assignment_events USING btree (user_id); - - --- --- Name: index_merge_request_blocks_on_blocked_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_blocks_on_blocked_merge_request_id ON public.merge_request_blocks USING btree (blocked_merge_request_id); - - --- --- Name: index_merge_request_blocks_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_blocks_on_project_id ON public.merge_request_blocks USING btree (project_id); - - --- --- Name: index_merge_request_cleanup_schedules_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_merge_request_cleanup_schedules_on_merge_request_id ON public.merge_request_cleanup_schedules USING btree (merge_request_id); - - --- --- Name: index_merge_request_cleanup_schedules_on_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_cleanup_schedules_on_status ON public.merge_request_cleanup_schedules USING btree (status); - - --- --- Name: index_merge_request_context_commits_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_context_commits_on_project_id ON public.merge_request_context_commits USING btree (project_id); - - --- --- Name: index_merge_request_diff_commit_users_on_name_and_email; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_merge_request_diff_commit_users_on_name_and_email ON public.merge_request_diff_commit_users USING btree (name, email); - - --- --- Name: index_merge_request_diff_commits_on_sha; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_diff_commits_on_sha ON public.merge_request_diff_commits USING btree (sha); - - --- --- Name: index_merge_request_diff_details_failed_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_diff_details_failed_verification ON public.merge_request_diff_details USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); - - --- --- Name: index_merge_request_diff_details_needs_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_diff_details_needs_verification ON public.merge_request_diff_details USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); - - --- --- Name: index_merge_request_diff_details_on_merge_request_diff_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_diff_details_on_merge_request_diff_id ON public.merge_request_diff_details USING btree (merge_request_diff_id); - - --- --- Name: index_merge_request_diff_details_on_verification_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_diff_details_on_verification_state ON public.merge_request_diff_details USING btree (verification_state); - - --- --- Name: index_merge_request_diff_details_pending_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_diff_details_pending_verification ON public.merge_request_diff_details USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); - - --- --- Name: index_merge_request_diffs_by_id_partial; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_diffs_by_id_partial ON public.merge_request_diffs USING btree (id) WHERE ((files_count > 0) AND ((NOT stored_externally) OR (stored_externally IS NULL))); - - --- --- Name: index_merge_request_diffs_on_external_diff; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_diffs_on_external_diff ON public.merge_request_diffs USING btree (external_diff); - - --- --- Name: index_merge_request_diffs_on_external_diff_store; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_diffs_on_external_diff_store ON public.merge_request_diffs USING btree (external_diff_store); - - --- --- Name: index_merge_request_diffs_on_merge_request_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_diffs_on_merge_request_id_and_id ON public.merge_request_diffs USING btree (merge_request_id, id); - - --- --- Name: index_merge_request_diffs_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_diffs_on_project_id ON public.merge_request_diffs USING btree (project_id); - - --- --- Name: index_merge_request_diffs_on_unique_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_merge_request_diffs_on_unique_merge_request_id ON public.merge_request_diffs USING btree (merge_request_id) WHERE (diff_type = 2); - - --- --- Name: index_merge_request_metrics_on_first_deployed_to_production_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_metrics_on_first_deployed_to_production_at ON public.merge_request_metrics USING btree (first_deployed_to_production_at); - - --- --- Name: index_merge_request_metrics_on_latest_closed_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_metrics_on_latest_closed_at ON public.merge_request_metrics USING btree (latest_closed_at) WHERE (latest_closed_at IS NOT NULL); - - --- --- Name: index_merge_request_metrics_on_latest_closed_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_metrics_on_latest_closed_by_id ON public.merge_request_metrics USING btree (latest_closed_by_id); - - --- --- Name: index_merge_request_metrics_on_merge_request_id_and_merged_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_metrics_on_merge_request_id_and_merged_at ON public.merge_request_metrics USING btree (merge_request_id, merged_at) WHERE (merged_at IS NOT NULL); - - --- --- Name: index_merge_request_metrics_on_merged_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_metrics_on_merged_at ON public.merge_request_metrics USING btree (merged_at); - - --- --- Name: index_merge_request_metrics_on_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_metrics_on_pipeline_id ON public.merge_request_metrics USING btree (pipeline_id); - - --- --- Name: index_merge_request_requested_changes_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_requested_changes_on_merge_request_id ON public.merge_request_requested_changes USING btree (merge_request_id); - - --- --- Name: index_merge_request_requested_changes_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_requested_changes_on_project_id ON public.merge_request_requested_changes USING btree (project_id); - - --- --- Name: index_merge_request_requested_changes_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_requested_changes_on_user_id ON public.merge_request_requested_changes USING btree (user_id); - - --- --- Name: index_merge_request_reviewers_on_merge_request_id_and_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_merge_request_reviewers_on_merge_request_id_and_user_id ON public.merge_request_reviewers USING btree (merge_request_id, user_id); - - --- --- Name: index_merge_request_reviewers_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_reviewers_on_project_id ON public.merge_request_reviewers USING btree (project_id); - - --- --- Name: index_merge_request_reviewers_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_request_reviewers_on_user_id ON public.merge_request_reviewers USING btree (user_id); - - --- --- Name: index_merge_request_user_mentions_on_note_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_merge_request_user_mentions_on_note_id ON public.merge_request_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); - - --- --- Name: index_merge_requests_closing_issues_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_closing_issues_on_issue_id ON public.merge_requests_closing_issues USING btree (issue_id); - - --- --- Name: index_merge_requests_closing_issues_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_closing_issues_on_merge_request_id ON public.merge_requests_closing_issues USING btree (merge_request_id); - - --- --- Name: index_merge_requests_closing_issues_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_closing_issues_on_project_id ON public.merge_requests_closing_issues USING btree (project_id); - - --- --- Name: index_merge_requests_compliance_violations_on_violating_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_compliance_violations_on_violating_user_id ON public.merge_requests_compliance_violations USING btree (violating_user_id); - - --- --- Name: index_merge_requests_compliance_violations_unique_columns; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_merge_requests_compliance_violations_unique_columns ON public.merge_requests_compliance_violations USING btree (merge_request_id, violating_user_id, reason); - - --- --- Name: index_merge_requests_for_latest_diffs_with_state_merged; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_for_latest_diffs_with_state_merged ON public.merge_requests USING btree (latest_merge_request_diff_id, target_project_id) WHERE (state_id = 3); - - --- --- Name: index_merge_requests_id_created_at_prepared_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_id_created_at_prepared_at ON public.merge_requests USING btree (created_at, id) WHERE (prepared_at IS NULL); - - --- --- Name: index_merge_requests_on_assignee_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_assignee_id ON public.merge_requests USING btree (assignee_id); - - --- --- Name: index_merge_requests_on_author_id_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_author_id_and_created_at ON public.merge_requests USING btree (author_id, created_at); - - --- --- Name: index_merge_requests_on_author_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_author_id_and_id ON public.merge_requests USING btree (author_id, id); - - --- --- Name: index_merge_requests_on_author_id_and_target_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_author_id_and_target_project_id ON public.merge_requests USING btree (author_id, target_project_id); - - --- --- Name: index_merge_requests_on_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_created_at ON public.merge_requests USING btree (created_at); - - --- --- Name: index_merge_requests_on_description_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_description_trigram ON public.merge_requests USING gin (description public.gin_trgm_ops) WITH (fastupdate='false'); - - --- --- Name: index_merge_requests_on_head_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_head_pipeline_id ON public.merge_requests USING btree (head_pipeline_id); - - --- --- Name: index_merge_requests_on_latest_merge_request_diff_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_latest_merge_request_diff_id ON public.merge_requests USING btree (latest_merge_request_diff_id); - - --- --- Name: index_merge_requests_on_merge_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_merge_user_id ON public.merge_requests USING btree (merge_user_id) WHERE (merge_user_id IS NOT NULL); - - --- --- Name: index_merge_requests_on_milestone_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_milestone_id ON public.merge_requests USING btree (milestone_id); - - --- --- Name: index_merge_requests_on_source_branch; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_source_branch ON public.merge_requests USING btree (source_branch); - - --- --- Name: index_merge_requests_on_source_project_id_and_source_branch; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_source_project_id_and_source_branch ON public.merge_requests USING btree (source_project_id, source_branch); - - --- --- Name: index_merge_requests_on_sprint_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_sprint_id ON public.merge_requests USING btree (sprint_id); - - --- --- Name: index_merge_requests_on_target_branch; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_target_branch ON public.merge_requests USING btree (target_branch); - - --- --- Name: index_merge_requests_on_target_project_id_and_created_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_target_project_id_and_created_at_and_id ON public.merge_requests USING btree (target_project_id, created_at, id); - - --- --- Name: index_merge_requests_on_target_project_id_and_iid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_merge_requests_on_target_project_id_and_iid ON public.merge_requests USING btree (target_project_id, iid); - - --- --- Name: index_merge_requests_on_target_project_id_and_merged_commit_sha; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_target_project_id_and_merged_commit_sha ON public.merge_requests USING btree (target_project_id, merged_commit_sha); - - --- --- Name: index_merge_requests_on_target_project_id_and_source_branch; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_target_project_id_and_source_branch ON public.merge_requests USING btree (target_project_id, source_branch); - - --- --- Name: index_merge_requests_on_target_project_id_and_squash_commit_sha; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_target_project_id_and_squash_commit_sha ON public.merge_requests USING btree (target_project_id, squash_commit_sha); - - --- --- Name: index_merge_requests_on_target_project_id_and_target_branch; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_target_project_id_and_target_branch ON public.merge_requests USING btree (target_project_id, target_branch) WHERE ((state_id = 1) AND (merge_when_pipeline_succeeds = true)); - - --- --- Name: index_merge_requests_on_target_project_id_and_updated_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_target_project_id_and_updated_at_and_id ON public.merge_requests USING btree (target_project_id, updated_at, id); - - --- --- Name: index_merge_requests_on_title_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_title_trigram ON public.merge_requests USING gin (title public.gin_trgm_ops) WITH (fastupdate='false'); - - --- --- Name: index_merge_requests_on_tp_id_and_merge_commit_sha_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_tp_id_and_merge_commit_sha_and_id ON public.merge_requests USING btree (target_project_id, merge_commit_sha, id); - - --- --- Name: index_merge_requests_on_updated_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_requests_on_updated_by_id ON public.merge_requests USING btree (updated_by_id) WHERE (updated_by_id IS NOT NULL); - - --- --- Name: index_merge_trains_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_merge_trains_on_merge_request_id ON public.merge_trains USING btree (merge_request_id); - - --- --- Name: index_merge_trains_on_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_trains_on_pipeline_id ON public.merge_trains USING btree (pipeline_id); - - --- --- Name: index_merge_trains_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_merge_trains_on_user_id ON public.merge_trains USING btree (user_id); - - --- --- Name: index_metrics_dashboard_annotations_on_cluster_id_and_3_columns; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_metrics_dashboard_annotations_on_cluster_id_and_3_columns ON public.metrics_dashboard_annotations USING btree (cluster_id, dashboard_path, starting_at, ending_at) WHERE (cluster_id IS NOT NULL); - - --- --- Name: index_metrics_dashboard_annotations_on_environment_id_and_3_col; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_metrics_dashboard_annotations_on_environment_id_and_3_col ON public.metrics_dashboard_annotations USING btree (environment_id, dashboard_path, starting_at, ending_at) WHERE (environment_id IS NOT NULL); - - --- --- Name: index_metrics_dashboard_annotations_on_timespan_end; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_metrics_dashboard_annotations_on_timespan_end ON public.metrics_dashboard_annotations USING btree (COALESCE(ending_at, starting_at)); - - --- --- Name: index_metrics_users_starred_dashboards_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_metrics_users_starred_dashboards_on_project_id ON public.metrics_users_starred_dashboards USING btree (project_id); - - --- --- Name: index_migration_jobs_on_migration_id_and_finished_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_migration_jobs_on_migration_id_and_finished_at ON public.batched_background_migration_jobs USING btree (batched_background_migration_id, finished_at); - - --- --- Name: index_migration_jobs_on_migration_id_and_max_value; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_migration_jobs_on_migration_id_and_max_value ON public.batched_background_migration_jobs USING btree (batched_background_migration_id, max_value); - - --- --- Name: index_milestone_releases_on_release_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_milestone_releases_on_release_id ON public.milestone_releases USING btree (release_id); - - --- --- Name: index_milestones_on_description_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_milestones_on_description_trigram ON public.milestones USING gin (description public.gin_trgm_ops); - - --- --- Name: index_milestones_on_due_date; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_milestones_on_due_date ON public.milestones USING btree (due_date); - - --- --- Name: index_milestones_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_milestones_on_group_id ON public.milestones USING btree (group_id); - - --- --- Name: index_milestones_on_project_id_and_iid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_milestones_on_project_id_and_iid ON public.milestones USING btree (project_id, iid); - - --- --- Name: index_milestones_on_title; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_milestones_on_title ON public.milestones USING btree (title); - - --- --- Name: index_milestones_on_title_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_milestones_on_title_trigram ON public.milestones USING gin (title public.gin_trgm_ops); - - --- --- Name: index_mirror_data_non_scheduled_or_started; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_mirror_data_non_scheduled_or_started ON public.project_mirror_data USING btree (next_execution_timestamp, retry_count) WHERE ((status)::text <> ALL ('{scheduled,started}'::text[])); - - --- --- Name: index_ml_candidate_metadata_on_candidate_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ml_candidate_metadata_on_candidate_id_and_name ON public.ml_candidate_metadata USING btree (candidate_id, name); - - --- --- Name: index_ml_candidate_metadata_on_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_candidate_metadata_on_name ON public.ml_candidate_metadata USING btree (name); - - --- --- Name: index_ml_candidate_metadata_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_candidate_metadata_on_project_id ON public.ml_candidate_metadata USING btree (project_id); - - --- --- Name: index_ml_candidate_metrics_on_candidate_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_candidate_metrics_on_candidate_id ON public.ml_candidate_metrics USING btree (candidate_id); - - --- --- Name: index_ml_candidate_params_on_candidate_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_candidate_params_on_candidate_id ON public.ml_candidate_params USING btree (candidate_id); - - --- --- Name: index_ml_candidate_params_on_candidate_id_on_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ml_candidate_params_on_candidate_id_on_name ON public.ml_candidate_params USING btree (candidate_id, name); - - --- --- Name: index_ml_candidates_on_ci_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_candidates_on_ci_build_id ON public.ml_candidates USING btree (ci_build_id); - - --- --- Name: index_ml_candidates_on_experiment_id_and_eid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ml_candidates_on_experiment_id_and_eid ON public.ml_candidates USING btree (experiment_id, eid); - - --- --- Name: index_ml_candidates_on_model_version_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ml_candidates_on_model_version_id ON public.ml_candidates USING btree (model_version_id); - - --- --- Name: index_ml_candidates_on_package_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_candidates_on_package_id ON public.ml_candidates USING btree (package_id); - - --- --- Name: index_ml_candidates_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_candidates_on_project_id ON public.ml_candidates USING btree (project_id); - - --- --- Name: index_ml_candidates_on_project_id_on_internal_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_candidates_on_project_id_on_internal_id ON public.ml_candidates USING btree (project_id, internal_id); - - --- --- Name: index_ml_candidates_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_candidates_on_user_id ON public.ml_candidates USING btree (user_id); - - --- --- Name: index_ml_experiment_metadata_on_experiment_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ml_experiment_metadata_on_experiment_id_and_name ON public.ml_experiment_metadata USING btree (experiment_id, name); - - --- --- Name: index_ml_experiment_metadata_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_experiment_metadata_on_project_id ON public.ml_experiment_metadata USING btree (project_id); - - --- --- Name: index_ml_experiments_on_model_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_experiments_on_model_id ON public.ml_experiments USING btree (model_id); - - --- --- Name: index_ml_experiments_on_project_id_and_iid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ml_experiments_on_project_id_and_iid ON public.ml_experiments USING btree (project_id, iid); - - --- --- Name: index_ml_experiments_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ml_experiments_on_project_id_and_name ON public.ml_experiments USING btree (project_id, name); - - --- --- Name: index_ml_experiments_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_experiments_on_user_id ON public.ml_experiments USING btree (user_id); - - --- --- Name: index_ml_model_metadata_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_model_metadata_on_project_id ON public.ml_model_metadata USING btree (project_id); - - --- --- Name: index_ml_model_version_metadata_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_model_version_metadata_on_project_id ON public.ml_model_version_metadata USING btree (project_id); - - --- --- Name: index_ml_model_versions_on_created_at_on_model_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_model_versions_on_created_at_on_model_id ON public.ml_model_versions USING btree (model_id, created_at); - - --- --- Name: index_ml_model_versions_on_package_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_model_versions_on_package_id ON public.ml_model_versions USING btree (package_id); - - --- --- Name: index_ml_model_versions_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_model_versions_on_project_id ON public.ml_model_versions USING btree (project_id); - - --- --- Name: index_ml_model_versions_on_project_id_and_model_id_and_version; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ml_model_versions_on_project_id_and_model_id_and_version ON public.ml_model_versions USING btree (project_id, model_id, version); - - --- --- Name: index_ml_models_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_models_on_project_id ON public.ml_models USING btree (project_id); - - --- --- Name: index_ml_models_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ml_models_on_project_id_and_name ON public.ml_models USING btree (project_id, name); - - --- --- Name: index_ml_models_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ml_models_on_user_id ON public.ml_models USING btree (user_id); - - --- --- Name: index_mr_blocks_on_blocking_and_blocked_mr_ids; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_mr_blocks_on_blocking_and_blocked_mr_ids ON public.merge_request_blocks USING btree (blocking_merge_request_id, blocked_merge_request_id); - - --- --- Name: index_mr_cleanup_schedules_timestamps_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_mr_cleanup_schedules_timestamps_status ON public.merge_request_cleanup_schedules USING btree (scheduled_at) WHERE ((completed_at IS NULL) AND (status = 0)); - - --- --- Name: index_mr_context_commits_on_merge_request_id_and_sha; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_mr_context_commits_on_merge_request_id_and_sha ON public.merge_request_context_commits USING btree (merge_request_id, sha); - - --- --- Name: index_mr_metrics_on_target_project_id_merged_at_nulls_last; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_mr_metrics_on_target_project_id_merged_at_nulls_last ON public.merge_request_metrics USING btree (target_project_id, merged_at DESC NULLS LAST, id DESC); - - --- --- Name: index_mr_metrics_on_target_project_id_merged_at_time_to_merge; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_mr_metrics_on_target_project_id_merged_at_time_to_merge ON public.merge_request_metrics USING btree (target_project_id, merged_at, created_at) WHERE (merged_at > created_at); - - --- --- Name: index_namespace_admin_notes_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespace_admin_notes_on_namespace_id ON public.namespace_admin_notes USING btree (namespace_id); - - --- --- Name: index_namespace_aggregation_schedules_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_namespace_aggregation_schedules_on_namespace_id ON public.namespace_aggregation_schedules USING btree (namespace_id); - - --- --- Name: index_namespace_bans_on_namespace_id_and_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_namespace_bans_on_namespace_id_and_user_id ON public.namespace_bans USING btree (namespace_id, user_id); - - --- --- Name: index_namespace_bans_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespace_bans_on_user_id ON public.namespace_bans USING btree (user_id); - - --- --- Name: index_namespace_commit_emails_on_email_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespace_commit_emails_on_email_id ON public.namespace_commit_emails USING btree (email_id); - - --- --- Name: index_namespace_commit_emails_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespace_commit_emails_on_namespace_id ON public.namespace_commit_emails USING btree (namespace_id); - - --- --- Name: index_namespace_commit_emails_on_user_id_and_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_namespace_commit_emails_on_user_id_and_namespace_id ON public.namespace_commit_emails USING btree (user_id, namespace_id); - - --- --- Name: index_namespace_details_on_creator_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespace_details_on_creator_id ON public.namespace_details USING btree (creator_id); - - --- --- Name: index_namespace_import_users_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_namespace_import_users_on_namespace_id ON public.namespace_import_users USING btree (namespace_id); - - --- --- Name: index_namespace_import_users_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_namespace_import_users_on_user_id ON public.namespace_import_users USING btree (user_id); - - --- --- Name: index_namespace_root_storage_statistics_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_namespace_root_storage_statistics_on_namespace_id ON public.namespace_root_storage_statistics USING btree (namespace_id); - - --- --- Name: index_namespace_statistics_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_namespace_statistics_on_namespace_id ON public.namespace_statistics USING btree (namespace_id); - - --- --- Name: index_namespaces_name_parent_id_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_namespaces_name_parent_id_type ON public.namespaces USING btree (name, parent_id, type); - - --- --- Name: index_namespaces_on_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespaces_on_created_at ON public.namespaces USING btree (created_at); - - --- --- Name: index_namespaces_on_custom_project_templates_group_id_and_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespaces_on_custom_project_templates_group_id_and_type ON public.namespaces USING btree (custom_project_templates_group_id, type) WHERE (custom_project_templates_group_id IS NOT NULL); - - --- --- Name: index_namespaces_on_file_template_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespaces_on_file_template_project_id ON public.namespaces USING btree (file_template_project_id); - - --- --- Name: index_namespaces_on_ldap_sync_last_successful_update_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespaces_on_ldap_sync_last_successful_update_at ON public.namespaces USING btree (ldap_sync_last_successful_update_at); - - --- --- Name: index_namespaces_on_name_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespaces_on_name_trigram ON public.namespaces USING gin (name public.gin_trgm_ops); - - --- --- Name: index_namespaces_on_organization_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespaces_on_organization_id ON public.namespaces USING btree (organization_id); - - --- --- Name: index_namespaces_on_organization_id_for_groups; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespaces_on_organization_id_for_groups ON public.namespaces USING btree (organization_id) WHERE ((type)::text = 'Group'::text); - - --- --- Name: index_namespaces_on_owner_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespaces_on_owner_id ON public.namespaces USING btree (owner_id); - - --- --- Name: index_namespaces_on_parent_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_namespaces_on_parent_id_and_id ON public.namespaces USING btree (parent_id, id); - - --- --- Name: index_namespaces_on_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespaces_on_path ON public.namespaces USING btree (path); - - --- --- Name: index_namespaces_on_path_for_top_level_non_projects; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespaces_on_path_for_top_level_non_projects ON public.namespaces USING btree (lower((path)::text)) WHERE ((parent_id IS NULL) AND ((type)::text <> 'Project'::text)); - - --- --- Name: index_namespaces_on_path_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespaces_on_path_trigram ON public.namespaces USING gin (path public.gin_trgm_ops); - - --- --- Name: index_namespaces_on_push_rule_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_namespaces_on_push_rule_id ON public.namespaces USING btree (push_rule_id); - - --- --- Name: index_namespaces_on_runners_token_encrypted; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_namespaces_on_runners_token_encrypted ON public.namespaces USING btree (runners_token_encrypted); - - --- --- Name: index_namespaces_on_traversal_ids; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespaces_on_traversal_ids ON public.namespaces USING gin (traversal_ids); - - --- --- Name: index_namespaces_on_traversal_ids_for_groups; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespaces_on_traversal_ids_for_groups ON public.namespaces USING gin (traversal_ids) WHERE ((type)::text = 'Group'::text); - - --- --- Name: index_namespaces_on_traversal_ids_for_groups_btree; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespaces_on_traversal_ids_for_groups_btree ON public.namespaces USING btree (traversal_ids) WHERE ((type)::text = 'Group'::text); - - --- --- Name: index_namespaces_on_type_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespaces_on_type_and_id ON public.namespaces USING btree (type, id); - - --- --- Name: index_namespaces_public_groups_name_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespaces_public_groups_name_id ON public.namespaces USING btree (name, id) WHERE (((type)::text = 'Group'::text) AND (visibility_level = 20)); - - --- --- Name: index_namespaces_sync_events_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_namespaces_sync_events_on_namespace_id ON public.namespaces_sync_events USING btree (namespace_id); - - --- --- Name: index_non_requested_project_members_on_source_id_and_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_non_requested_project_members_on_source_id_and_type ON public.members USING btree (source_id, source_type) WHERE ((requested_at IS NULL) AND ((type)::text = 'ProjectMember'::text)); - - --- --- Name: index_note_diff_files_on_diff_note_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_note_diff_files_on_diff_note_id ON public.note_diff_files USING btree (diff_note_id); - - --- --- Name: index_note_metadata_on_note_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_note_metadata_on_note_id ON public.note_metadata USING btree (note_id); - - --- --- Name: index_notes_for_cherry_picked_merge_requests; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_notes_for_cherry_picked_merge_requests ON public.notes USING btree (project_id, commit_id) WHERE ((noteable_type)::text = 'MergeRequest'::text); - - --- --- Name: index_notes_on_author_id_and_created_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_notes_on_author_id_and_created_at_and_id ON public.notes USING btree (author_id, created_at, id); - - --- --- Name: index_notes_on_commit_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_notes_on_commit_id ON public.notes USING btree (commit_id); - - --- --- Name: index_notes_on_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_notes_on_created_at ON public.notes USING btree (created_at); - - --- --- Name: index_notes_on_discussion_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_notes_on_discussion_id ON public.notes USING btree (discussion_id); - - --- --- Name: index_notes_on_id_where_confidential; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_notes_on_id_where_confidential ON public.notes USING btree (id) WHERE (confidential = true); - - --- --- Name: index_notes_on_id_where_internal; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_notes_on_id_where_internal ON public.notes USING btree (id) WHERE (internal = true); - - --- --- Name: index_notes_on_line_code; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_notes_on_line_code ON public.notes USING btree (line_code); - - --- --- Name: index_notes_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_notes_on_namespace_id ON public.notes USING btree (namespace_id); - - --- --- Name: index_notes_on_noteable_id_and_noteable_type_and_system; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_notes_on_noteable_id_and_noteable_type_and_system ON public.notes USING btree (noteable_id, noteable_type, system); - - --- --- Name: index_notes_on_project_id_and_id_and_system_false; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_notes_on_project_id_and_id_and_system_false ON public.notes USING btree (project_id, id) WHERE (NOT system); - - --- --- Name: index_notes_on_project_id_and_noteable_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_notes_on_project_id_and_noteable_type ON public.notes USING btree (project_id, noteable_type); - - --- --- Name: index_notes_on_review_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_notes_on_review_id ON public.notes USING btree (review_id); - - --- --- Name: index_notification_settings_on_source_and_level_and_user; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_notification_settings_on_source_and_level_and_user ON public.notification_settings USING btree (source_id, source_type, level, user_id); - - --- --- Name: index_notifications_on_user_id_and_source_id_and_source_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_notifications_on_user_id_and_source_id_and_source_type ON public.notification_settings USING btree (user_id, source_id, source_type); - - --- --- Name: index_npm_metadata_caches_on_package_name_project_id_unique; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_npm_metadata_caches_on_package_name_project_id_unique ON public.packages_npm_metadata_caches USING btree (package_name, project_id) WHERE (project_id IS NOT NULL); - - --- --- Name: index_ns_root_stor_stats_on_registry_size_estimated; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ns_root_stor_stats_on_registry_size_estimated ON public.namespace_root_storage_statistics USING btree (registry_size_estimated); - - --- --- Name: index_ns_user_callouts_feature; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ns_user_callouts_feature ON public.user_namespace_callouts USING btree (user_id, feature_name, namespace_id); - - --- --- Name: index_oauth_access_grants_on_application_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_oauth_access_grants_on_application_id ON public.oauth_access_grants USING btree (application_id); - - --- --- Name: index_oauth_access_grants_on_resource_owner_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_oauth_access_grants_on_resource_owner_id ON public.oauth_access_grants USING btree (resource_owner_id, application_id, created_at); - - --- --- Name: index_oauth_access_grants_on_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_oauth_access_grants_on_token ON public.oauth_access_grants USING btree (token); - - --- --- Name: index_oauth_access_tokens_on_application_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_oauth_access_tokens_on_application_id ON public.oauth_access_tokens USING btree (application_id); - - --- --- Name: index_oauth_access_tokens_on_refresh_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_oauth_access_tokens_on_refresh_token ON public.oauth_access_tokens USING btree (refresh_token); - - --- --- Name: index_oauth_access_tokens_on_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_oauth_access_tokens_on_token ON public.oauth_access_tokens USING btree (token); - - --- --- Name: index_oauth_applications_on_owner_id_and_owner_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_oauth_applications_on_owner_id_and_owner_type ON public.oauth_applications USING btree (owner_id, owner_type); - - --- --- Name: index_oauth_applications_on_uid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_oauth_applications_on_uid ON public.oauth_applications USING btree (uid); - - --- --- Name: index_oauth_device_grants_on_application_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_oauth_device_grants_on_application_id ON public.oauth_device_grants USING btree (application_id); - - --- --- Name: index_oauth_device_grants_on_device_code; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_oauth_device_grants_on_device_code ON public.oauth_device_grants USING btree (device_code); - - --- --- Name: index_oauth_device_grants_on_user_code; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_oauth_device_grants_on_user_code ON public.oauth_device_grants USING btree (user_code); - - --- --- Name: index_oauth_openid_requests_on_access_grant_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_oauth_openid_requests_on_access_grant_id ON public.oauth_openid_requests USING btree (access_grant_id); - - --- --- Name: index_observability_logs_issues_connections_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_observability_logs_issues_connections_on_project_id ON public.observability_logs_issues_connections USING btree (project_id); - - --- --- Name: index_observability_metrics_issues_connections_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_observability_metrics_issues_connections_on_namespace_id ON public.observability_metrics_issues_connections USING btree (namespace_id); - - --- --- Name: index_observability_metrics_issues_connections_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_observability_metrics_issues_connections_on_project_id ON public.observability_metrics_issues_connections USING btree (project_id); - - --- --- Name: index_observability_traces_issues_connections_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_observability_traces_issues_connections_on_project_id ON public.observability_traces_issues_connections USING btree (project_id); - - --- --- Name: index_on_deploy_keys_id_and_type_and_public; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_on_deploy_keys_id_and_type_and_public ON public.keys USING btree (id, type) WHERE (public = true); - - --- --- Name: index_on_dingtalk_tracker_data_corpid; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_dingtalk_tracker_data_corpid ON public.dingtalk_tracker_data USING btree (corpid) WHERE (corpid IS NOT NULL); - - --- --- Name: INDEX index_on_dingtalk_tracker_data_corpid; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON INDEX public.index_on_dingtalk_tracker_data_corpid IS 'JiHu-specific index'; - - --- --- Name: index_on_events_to_improve_contribution_analytics_performance; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_events_to_improve_contribution_analytics_performance ON public.events USING btree (project_id, target_type, action, created_at, author_id, id); - - --- --- Name: index_on_group_id_on_webhooks; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_group_id_on_webhooks ON public.web_hooks USING btree (group_id); - - --- --- Name: index_on_identities_lower_extern_uid_and_provider; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_identities_lower_extern_uid_and_provider ON public.identities USING btree (lower((extern_uid)::text), provider); - - --- --- Name: index_on_instance_statistics_recorded_at_and_identifier; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_on_instance_statistics_recorded_at_and_identifier ON public.analytics_usage_trends_measurements USING btree (identifier, recorded_at); - - --- --- Name: index_on_issue_assignment_events_issue_id_action_created_at_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_issue_assignment_events_issue_id_action_created_at_id ON public.issue_assignment_events USING btree (issue_id, action, created_at, id); - - --- --- Name: index_on_job_artifact_id_partition_id_verification_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_job_artifact_id_partition_id_verification_state ON public.ci_job_artifact_states USING btree (verification_state, job_artifact_id, partition_id); - - --- --- Name: index_on_label_links_all_columns; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_label_links_all_columns ON public.label_links USING btree (target_id, label_id, target_type); - - --- --- Name: index_on_merge_request_diffs_head_commit_sha; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_merge_request_diffs_head_commit_sha ON public.merge_request_diffs USING btree (head_commit_sha); - - --- --- Name: index_on_merge_request_reviewers_user_id_and_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_merge_request_reviewers_user_id_and_state ON public.merge_request_reviewers USING btree (user_id, state) WHERE (state = 2); - - --- --- Name: index_on_merge_requests_for_latest_diffs; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_merge_requests_for_latest_diffs ON public.merge_requests USING btree (target_project_id) INCLUDE (id, latest_merge_request_diff_id); - - --- --- Name: INDEX index_on_merge_requests_for_latest_diffs; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON INDEX public.index_on_merge_requests_for_latest_diffs IS 'Index used to efficiently obtain the oldest merge request for a commit SHA'; - - --- --- Name: index_on_mr_assignment_events_mr_id_action_created_at_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_mr_assignment_events_mr_id_action_created_at_id ON public.merge_request_assignment_events USING btree (merge_request_id, action, created_at, id); - - --- --- Name: index_on_namespaces_lower_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_namespaces_lower_name ON public.namespaces USING btree (lower((name)::text)); - - --- --- Name: index_on_namespaces_lower_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_namespaces_lower_path ON public.namespaces USING btree (lower((path)::text)); - - --- --- Name: index_on_namespaces_namespaces_by_top_level_namespace; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_namespaces_namespaces_by_top_level_namespace ON public.namespaces USING btree ((traversal_ids[1]), type, id); - - --- --- Name: index_on_oncall_schedule_escalation_rule; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_oncall_schedule_escalation_rule ON public.incident_management_escalation_rules USING btree (oncall_schedule_id); - - --- --- Name: index_on_pages_metadata_not_migrated; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_pages_metadata_not_migrated ON public.project_pages_metadata USING btree (project_id) WHERE ((deployed = true) AND (pages_deployment_id IS NULL)); - - --- --- Name: index_on_project_id_escalation_policy_name_unique; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_on_project_id_escalation_policy_name_unique ON public.incident_management_escalation_policies USING btree (project_id, name); - - --- --- Name: index_on_routes_lower_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_routes_lower_path ON public.routes USING btree (lower((path)::text)); - - --- --- Name: index_on_sbom_sources_package_manager_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_sbom_sources_package_manager_name ON public.sbom_sources USING btree ((((source -> 'package_manager'::text) ->> 'name'::text))); - - --- --- Name: index_on_todos_user_project_target_and_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_todos_user_project_target_and_state ON public.todos USING btree (user_id, project_id, target_type, target_id, id) WHERE ((state)::text = 'pending'::text); - - --- --- Name: index_on_users_lower_email; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_users_lower_email ON public.users USING btree (lower((email)::text)); - - --- --- Name: index_on_users_lower_username; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_users_lower_username ON public.users USING btree (lower((username)::text)); - - --- --- Name: index_on_users_name_lower; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_users_name_lower ON public.users USING btree (lower((name)::text)); - - --- --- Name: index_on_value_stream_dashboard_aggregations_last_run_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_on_value_stream_dashboard_aggregations_last_run_at_and_id ON public.value_stream_dashboard_aggregations USING btree (last_run_at NULLS FIRST, namespace_id) WHERE (enabled IS TRUE); - - --- --- Name: index_onboarding_progresses_for_create_track; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_onboarding_progresses_for_create_track ON public.onboarding_progresses USING btree (created_at) WHERE (git_write_at IS NULL); - - --- --- Name: index_onboarding_progresses_for_team_track; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_onboarding_progresses_for_team_track ON public.onboarding_progresses USING btree (GREATEST(git_write_at, pipeline_created_at, trial_started_at)) WHERE ((git_write_at IS NOT NULL) AND (pipeline_created_at IS NOT NULL) AND (trial_started_at IS NOT NULL) AND (user_added_at IS NULL)); - - --- --- Name: index_onboarding_progresses_for_trial_track; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_onboarding_progresses_for_trial_track ON public.onboarding_progresses USING btree (GREATEST(git_write_at, pipeline_created_at)) WHERE ((git_write_at IS NOT NULL) AND (pipeline_created_at IS NOT NULL) AND (trial_started_at IS NULL)); - - --- --- Name: index_onboarding_progresses_for_verify_track; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_onboarding_progresses_for_verify_track ON public.onboarding_progresses USING btree (git_write_at) WHERE ((git_write_at IS NOT NULL) AND (pipeline_created_at IS NULL)); - - --- --- Name: index_onboarding_progresses_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_onboarding_progresses_on_namespace_id ON public.onboarding_progresses USING btree (namespace_id); - - --- --- Name: index_oncall_shifts_on_rotation_id_and_starts_at_and_ends_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_oncall_shifts_on_rotation_id_and_starts_at_and_ends_at ON public.incident_management_oncall_shifts USING btree (rotation_id, starts_at, ends_at); - - --- --- Name: index_operations_feature_flags_issues_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_operations_feature_flags_issues_on_issue_id ON public.operations_feature_flags_issues USING btree (issue_id); - - --- --- Name: index_operations_feature_flags_issues_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_operations_feature_flags_issues_on_project_id ON public.operations_feature_flags_issues USING btree (project_id); - - --- --- Name: index_operations_feature_flags_on_project_id_and_iid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_operations_feature_flags_on_project_id_and_iid ON public.operations_feature_flags USING btree (project_id, iid); - - --- --- Name: index_operations_feature_flags_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_operations_feature_flags_on_project_id_and_name ON public.operations_feature_flags USING btree (project_id, name); - - --- --- Name: index_operations_scopes_on_strategy_id_and_environment_scope; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_operations_scopes_on_strategy_id_and_environment_scope ON public.operations_scopes USING btree (strategy_id, environment_scope); - - --- --- Name: index_operations_strategies_on_feature_flag_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_operations_strategies_on_feature_flag_id ON public.operations_strategies USING btree (feature_flag_id); - - --- --- Name: index_operations_strategies_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_operations_strategies_on_project_id ON public.operations_strategies USING btree (project_id); - - --- --- Name: index_operations_strategies_user_lists_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_operations_strategies_user_lists_on_project_id ON public.operations_strategies_user_lists USING btree (project_id); - - --- --- Name: index_operations_strategies_user_lists_on_user_list_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_operations_strategies_user_lists_on_user_list_id ON public.operations_strategies_user_lists USING btree (user_list_id); - - --- --- Name: index_operations_user_lists_on_project_id_and_iid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_operations_user_lists_on_project_id_and_iid ON public.operations_user_lists USING btree (project_id, iid); - - --- --- Name: index_operations_user_lists_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_operations_user_lists_on_project_id_and_name ON public.operations_user_lists USING btree (project_id, name); - - --- --- Name: index_ops_feature_flags_issues_on_feature_flag_id_and_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ops_feature_flags_issues_on_feature_flag_id_and_issue_id ON public.operations_feature_flags_issues USING btree (feature_flag_id, issue_id); - - --- --- Name: index_ops_strategies_user_lists_on_strategy_id_and_user_list_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ops_strategies_user_lists_on_strategy_id_and_user_list_id ON public.operations_strategies_user_lists USING btree (strategy_id, user_list_id); - - --- --- Name: index_organization_users_on_org_id_access_level_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_organization_users_on_org_id_access_level_user_id ON public.organization_users USING btree (organization_id, access_level, user_id); - - --- --- Name: index_organization_users_on_organization_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_organization_users_on_organization_id_and_id ON public.organization_users USING btree (organization_id, id); - - --- --- Name: index_organization_users_on_organization_id_and_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_organization_users_on_organization_id_and_user_id ON public.organization_users USING btree (organization_id, user_id); - - --- --- Name: index_organization_users_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_organization_users_on_user_id ON public.organization_users USING btree (user_id); - - --- --- Name: index_organizations_on_name_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_organizations_on_name_trigram ON public.organizations USING gin (name public.gin_trgm_ops); - - --- --- Name: index_organizations_on_path_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_organizations_on_path_trigram ON public.organizations USING gin (path public.gin_trgm_ops); - - --- --- Name: index_organizations_on_unique_name_per_group; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_organizations_on_unique_name_per_group ON public.customer_relations_organizations USING btree (group_id, lower(name), id); - - --- --- Name: index_p_catalog_resource_component_usages_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_p_catalog_resource_component_usages_on_project_id ON ONLY public.p_catalog_resource_component_usages USING btree (project_id); - - --- --- Name: index_p_catalog_resource_sync_events_on_id_where_pending; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_p_catalog_resource_sync_events_on_id_where_pending ON ONLY public.p_catalog_resource_sync_events USING btree (id) WHERE (status = 1); - - --- --- Name: index_p_ci_build_names_on_project_id_and_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_p_ci_build_names_on_project_id_and_build_id ON ONLY public.p_ci_build_names USING btree (project_id, build_id); - - --- --- Name: index_p_ci_build_names_on_search_vector; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_p_ci_build_names_on_search_vector ON ONLY public.p_ci_build_names USING gin (search_vector); - - --- --- Name: index_p_ci_build_sources_on_project_id_and_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_p_ci_build_sources_on_project_id_and_build_id ON ONLY public.p_ci_build_sources USING btree (project_id, build_id); - - --- --- Name: index_p_ci_build_tags_on_build_id_and_partition_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_p_ci_build_tags_on_build_id_and_partition_id ON ONLY public.p_ci_build_tags USING btree (build_id, partition_id); - - --- --- Name: index_p_ci_build_tags_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_p_ci_build_tags_on_project_id ON ONLY public.p_ci_build_tags USING btree (project_id); - - --- --- Name: index_p_ci_build_tags_on_tag_id_and_build_id_and_partition_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_p_ci_build_tags_on_tag_id_and_build_id_and_partition_id ON ONLY public.p_ci_build_tags USING btree (tag_id, build_id, partition_id); - - --- --- Name: index_p_ci_builds_execution_configs_on_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_p_ci_builds_execution_configs_on_pipeline_id ON ONLY public.p_ci_builds_execution_configs USING btree (pipeline_id); - - --- --- Name: index_p_ci_builds_execution_configs_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_p_ci_builds_execution_configs_on_project_id ON ONLY public.p_ci_builds_execution_configs USING btree (project_id); - - --- --- Name: index_p_ci_finished_build_ch_sync_events_finished_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_p_ci_finished_build_ch_sync_events_finished_at ON ONLY public.p_ci_finished_build_ch_sync_events USING btree (partition, build_finished_at); - - --- --- Name: index_p_ci_job_annotations_on_partition_id_job_id_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_p_ci_job_annotations_on_partition_id_job_id_name ON ONLY public.p_ci_job_annotations USING btree (partition_id, job_id, name); - - --- --- Name: index_p_ci_runner_machine_builds_on_runner_machine_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_p_ci_runner_machine_builds_on_runner_machine_id ON ONLY public.p_ci_runner_machine_builds USING btree (runner_machine_id); - - --- --- Name: index_packages_build_infos_on_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_build_infos_on_pipeline_id ON public.packages_build_infos USING btree (pipeline_id); - - --- --- Name: index_packages_build_infos_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_build_infos_on_project_id ON public.packages_build_infos USING btree (project_id); - - --- --- Name: index_packages_build_infos_package_id_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_build_infos_package_id_id ON public.packages_build_infos USING btree (package_id, id); - - --- --- Name: index_packages_build_infos_package_id_pipeline_id_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_build_infos_package_id_pipeline_id_id ON public.packages_build_infos USING btree (package_id, pipeline_id, id); - - --- --- Name: index_packages_composer_cache_namespace_and_sha; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_packages_composer_cache_namespace_and_sha ON public.packages_composer_cache_files USING btree (namespace_id, file_sha256); - - --- --- Name: index_packages_composer_metadata_on_package_id_and_target_sha; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_packages_composer_metadata_on_package_id_and_target_sha ON public.packages_composer_metadata USING btree (package_id, target_sha); - - --- --- Name: index_packages_conan_file_metadata_on_package_file_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_packages_conan_file_metadata_on_package_file_id ON public.packages_conan_file_metadata USING btree (package_file_id); - - --- --- Name: index_packages_conan_metadata_on_package_id_username_channel; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_packages_conan_metadata_on_package_id_username_channel ON public.packages_conan_metadata USING btree (package_id, package_username, package_channel); - - --- --- Name: index_packages_conan_metadata_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_conan_metadata_on_project_id ON public.packages_conan_metadata USING btree (project_id); - - --- --- Name: index_packages_debian_group_architectures_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_debian_group_architectures_on_group_id ON public.packages_debian_group_architectures USING btree (group_id); - - --- --- Name: index_packages_debian_group_component_files_on_component_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_debian_group_component_files_on_component_id ON public.packages_debian_group_component_files USING btree (component_id); - - --- --- Name: index_packages_debian_group_components_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_debian_group_components_on_group_id ON public.packages_debian_group_components USING btree (group_id); - - --- --- Name: index_packages_debian_group_distribution_keys_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_debian_group_distribution_keys_on_group_id ON public.packages_debian_group_distribution_keys USING btree (group_id); - - --- --- Name: index_packages_debian_group_distributions_on_creator_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_debian_group_distributions_on_creator_id ON public.packages_debian_group_distributions USING btree (creator_id); - - --- --- Name: index_packages_debian_project_architectures_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_debian_project_architectures_on_project_id ON public.packages_debian_project_architectures USING btree (project_id); - - --- --- Name: index_packages_debian_project_component_files_on_component_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_debian_project_component_files_on_component_id ON public.packages_debian_project_component_files USING btree (component_id); - - --- --- Name: index_packages_debian_project_components_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_debian_project_components_on_project_id ON public.packages_debian_project_components USING btree (project_id); - - --- --- Name: index_packages_debian_project_distribution_keys_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_debian_project_distribution_keys_on_project_id ON public.packages_debian_project_distribution_keys USING btree (project_id); - - --- --- Name: index_packages_debian_project_distributions_on_creator_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_debian_project_distributions_on_creator_id ON public.packages_debian_project_distributions USING btree (creator_id); - - --- --- Name: index_packages_debian_publications_on_distribution_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_debian_publications_on_distribution_id ON public.packages_debian_publications USING btree (distribution_id); - - --- --- Name: index_packages_debian_publications_on_package_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_packages_debian_publications_on_package_id ON public.packages_debian_publications USING btree (package_id); - - --- --- Name: index_packages_debian_publications_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_debian_publications_on_project_id ON public.packages_debian_publications USING btree (project_id); - - --- --- Name: index_packages_dependencies_on_name_version_pattern_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_packages_dependencies_on_name_version_pattern_project_id ON public.packages_dependencies USING btree (name, version_pattern, project_id) WHERE (project_id IS NOT NULL); - - --- --- Name: index_packages_dependencies_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_dependencies_on_project_id ON public.packages_dependencies USING btree (project_id); - - --- --- Name: index_packages_dependency_links_on_dependency_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_dependency_links_on_dependency_id ON public.packages_dependency_links USING btree (dependency_id); - - --- --- Name: index_packages_dependency_links_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_dependency_links_on_project_id ON public.packages_dependency_links USING btree (project_id); - - --- --- Name: index_packages_helm_file_metadata_on_channel; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_helm_file_metadata_on_channel ON public.packages_helm_file_metadata USING btree (channel); - - --- --- Name: index_packages_helm_file_metadata_on_pf_id_and_channel; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_helm_file_metadata_on_pf_id_and_channel ON public.packages_helm_file_metadata USING btree (package_file_id, channel); - - --- --- Name: index_packages_maven_metadata_on_package_id_and_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_maven_metadata_on_package_id_and_path ON public.packages_maven_metadata USING btree (package_id, path); - - --- --- Name: index_packages_maven_metadata_on_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_maven_metadata_on_path ON public.packages_maven_metadata USING btree (path); - - --- --- Name: index_packages_maven_metadata_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_maven_metadata_on_project_id ON public.packages_maven_metadata USING btree (project_id); - - --- --- Name: index_packages_npm_metadata_caches_on_object_storage_key; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_packages_npm_metadata_caches_on_object_storage_key ON public.packages_npm_metadata_caches USING btree (object_storage_key); - - --- --- Name: index_packages_npm_metadata_caches_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_npm_metadata_caches_on_project_id ON public.packages_npm_metadata_caches USING btree (project_id); - - --- --- Name: index_packages_nuget_dl_metadata_on_dependency_link_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_nuget_dl_metadata_on_dependency_link_id ON public.packages_nuget_dependency_link_metadata USING btree (dependency_link_id); - - --- --- Name: index_packages_nuget_symbols_on_object_storage_key; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_packages_nuget_symbols_on_object_storage_key ON public.packages_nuget_symbols USING btree (object_storage_key); - - --- --- Name: index_packages_nuget_symbols_on_package_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_nuget_symbols_on_package_id ON public.packages_nuget_symbols USING btree (package_id); - - --- --- Name: index_packages_nuget_symbols_on_signature_and_file_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_packages_nuget_symbols_on_signature_and_file_path ON public.packages_nuget_symbols USING btree (signature, file_path); - - --- --- Name: index_packages_on_available_pypi_packages; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_on_available_pypi_packages ON public.packages_packages USING btree (project_id, id) WHERE ((status = ANY (ARRAY[0, 1])) AND (package_type = 5) AND (version IS NOT NULL)); - - --- --- Name: index_packages_package_file_build_infos_on_package_file_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_package_file_build_infos_on_package_file_id ON public.packages_package_file_build_infos USING btree (package_file_id); - - --- --- Name: index_packages_package_file_build_infos_on_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_package_file_build_infos_on_pipeline_id ON public.packages_package_file_build_infos USING btree (pipeline_id); - - --- --- Name: index_packages_package_files_on_file_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_package_files_on_file_name ON public.packages_package_files USING gin (file_name public.gin_trgm_ops); - - --- --- Name: index_packages_package_files_on_file_name_file_sha256; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_package_files_on_file_name_file_sha256 ON public.packages_package_files USING btree (file_name, file_sha256); - - --- --- Name: index_packages_package_files_on_file_store; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_package_files_on_file_store ON public.packages_package_files USING btree (file_store); - - --- --- Name: index_packages_package_files_on_id_for_cleanup; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_package_files_on_id_for_cleanup ON public.packages_package_files USING btree (id) WHERE (status = 1); - - --- --- Name: index_packages_package_files_on_package_file_extension_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_package_files_on_package_file_extension_status ON public.packages_package_files USING btree (package_id) WHERE ((status = 0) AND (reverse(split_part(reverse((file_name)::text), '.'::text, 1)) = 'nupkg'::text)); - - --- --- Name: index_packages_package_files_on_package_id_and_created_at_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_package_files_on_package_id_and_created_at_desc ON public.packages_package_files USING btree (package_id, created_at DESC); - - --- --- Name: index_packages_package_files_on_package_id_and_file_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_package_files_on_package_id_and_file_name ON public.packages_package_files USING btree (package_id, file_name); - - --- --- Name: index_packages_package_files_on_package_id_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_package_files_on_package_id_id ON public.packages_package_files USING btree (package_id, id); - - --- --- Name: index_packages_package_files_on_package_id_status_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_package_files_on_package_id_status_and_id ON public.packages_package_files USING btree (package_id, status, id); - - --- --- Name: index_packages_package_files_on_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_package_files_on_status ON public.packages_package_files USING btree (status); - - --- --- Name: index_packages_package_files_on_verification_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_package_files_on_verification_state ON public.packages_package_files USING btree (verification_state); - - --- --- Name: index_packages_packages_on_creator_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_packages_on_creator_id ON public.packages_packages USING btree (creator_id); - - --- --- Name: index_packages_packages_on_id_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_packages_on_id_and_created_at ON public.packages_packages USING btree (id, created_at); - - --- --- Name: index_packages_packages_on_name_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_packages_on_name_trigram ON public.packages_packages USING gin (name public.gin_trgm_ops); - - --- --- Name: index_packages_packages_on_project_id_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_packages_on_project_id_and_created_at ON public.packages_packages USING btree (project_id, created_at); - - --- --- Name: index_packages_packages_on_project_id_and_lower_version; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_packages_on_project_id_and_lower_version ON public.packages_packages USING btree (project_id, lower((version)::text)) WHERE (package_type = 4); - - --- --- Name: index_packages_packages_on_project_id_and_package_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_packages_on_project_id_and_package_type ON public.packages_packages USING btree (project_id, package_type); - - --- --- Name: index_packages_packages_on_project_id_and_status_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_packages_on_project_id_and_status_and_id ON public.packages_packages USING btree (project_id, status, id); - - --- --- Name: index_packages_packages_on_project_id_and_version; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_packages_on_project_id_and_version ON public.packages_packages USING btree (project_id, version); - - --- --- Name: index_packages_project_id_name_partial_for_nuget; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_project_id_name_partial_for_nuget ON public.packages_packages USING btree (project_id, name) WHERE (((name)::text <> 'NuGet.Temporary.Package'::text) AND (version IS NOT NULL) AND (package_type = 4)); - - --- --- Name: index_packages_rpm_metadata_on_package_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_rpm_metadata_on_package_id ON public.packages_rpm_metadata USING btree (package_id); - - --- --- Name: index_packages_rpm_repository_files_on_project_id_and_file_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_rpm_repository_files_on_project_id_and_file_name ON public.packages_rpm_repository_files USING btree (project_id, file_name); - - --- --- Name: index_packages_tags_on_package_id_and_updated_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_tags_on_package_id_and_updated_at ON public.packages_tags USING btree (package_id, updated_at DESC); - - --- --- Name: index_packages_tags_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_tags_on_project_id ON public.packages_tags USING btree (project_id); - - --- --- Name: index_packages_terraform_module_metadata_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_packages_terraform_module_metadata_on_project_id ON public.packages_terraform_module_metadata USING btree (project_id); - - --- --- Name: index_pages_deployment_states_failed_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_deployment_states_failed_verification ON public.pages_deployment_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); - - --- --- Name: index_pages_deployment_states_needs_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_deployment_states_needs_verification ON public.pages_deployment_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); - - --- --- Name: index_pages_deployment_states_on_pages_deployment_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_deployment_states_on_pages_deployment_id ON public.pages_deployment_states USING btree (pages_deployment_id); - - --- --- Name: index_pages_deployment_states_on_verification_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_deployment_states_on_verification_state ON public.pages_deployment_states USING btree (verification_state); - - --- --- Name: index_pages_deployment_states_pending_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_deployment_states_pending_verification ON public.pages_deployment_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); - - --- --- Name: index_pages_deployments_on_ci_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_deployments_on_ci_build_id ON public.pages_deployments USING btree (ci_build_id); - - --- --- Name: index_pages_deployments_on_deleted_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_deployments_on_deleted_at ON public.pages_deployments USING btree (deleted_at) WHERE (deleted_at IS NOT NULL); - - --- --- Name: index_pages_deployments_on_expires_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_deployments_on_expires_at ON public.pages_deployments USING btree (expires_at, id) WHERE (expires_at IS NOT NULL); - - --- --- Name: index_pages_deployments_on_file_store_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_deployments_on_file_store_and_id ON public.pages_deployments USING btree (file_store, id); - - --- --- Name: index_pages_deployments_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_deployments_on_project_id ON public.pages_deployments USING btree (project_id); - - --- --- Name: index_pages_domain_acme_orders_on_challenge_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_domain_acme_orders_on_challenge_token ON public.pages_domain_acme_orders USING btree (challenge_token); - - --- --- Name: index_pages_domain_acme_orders_on_pages_domain_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_domain_acme_orders_on_pages_domain_id ON public.pages_domain_acme_orders USING btree (pages_domain_id); - - --- --- Name: index_pages_domains_need_auto_ssl_renewal_user_provided; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_domains_need_auto_ssl_renewal_user_provided ON public.pages_domains USING btree (id) WHERE ((auto_ssl_enabled = true) AND (auto_ssl_failed = false) AND (certificate_source = 0)); - - --- --- Name: index_pages_domains_need_auto_ssl_renewal_valid_not_after; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_domains_need_auto_ssl_renewal_valid_not_after ON public.pages_domains USING btree (certificate_valid_not_after) WHERE ((auto_ssl_enabled = true) AND (auto_ssl_failed = false)); - - --- --- Name: index_pages_domains_on_domain_and_wildcard; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_pages_domains_on_domain_and_wildcard ON public.pages_domains USING btree (domain, wildcard); - - --- --- Name: index_pages_domains_on_domain_lowercase; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_domains_on_domain_lowercase ON public.pages_domains USING btree (lower((domain)::text)); - - --- --- Name: index_pages_domains_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_domains_on_project_id ON public.pages_domains USING btree (project_id); - - --- --- Name: index_pages_domains_on_project_id_and_enabled_until; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_domains_on_project_id_and_enabled_until ON public.pages_domains USING btree (project_id, enabled_until); - - --- --- Name: index_pages_domains_on_remove_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_domains_on_remove_at ON public.pages_domains USING btree (remove_at); - - --- --- Name: index_pages_domains_on_scope; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_domains_on_scope ON public.pages_domains USING btree (scope); - - --- --- Name: index_pages_domains_on_usage; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_domains_on_usage ON public.pages_domains USING btree (usage); - - --- --- Name: index_pages_domains_on_verified_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_domains_on_verified_at ON public.pages_domains USING btree (verified_at); - - --- --- Name: index_pages_domains_on_verified_at_and_enabled_until; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_domains_on_verified_at_and_enabled_until ON public.pages_domains USING btree (verified_at, enabled_until); - - --- --- Name: index_pages_domains_on_wildcard; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pages_domains_on_wildcard ON public.pages_domains USING btree (wildcard); - - --- --- Name: p_ci_builds_user_id_name_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_user_id_name_idx ON ONLY public.p_ci_builds USING btree (user_id, name) WHERE (((type)::text = 'Ci::Build'::text) AND ((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('license_scanning'::character varying)::text, ('sast'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('secret_detection'::character varying)::text]))); - - --- --- Name: index_partial_ci_builds_on_user_id_name_parser_features; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_partial_ci_builds_on_user_id_name_parser_features ON public.ci_builds USING btree (user_id, name) WHERE (((type)::text = 'Ci::Build'::text) AND ((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('license_scanning'::character varying)::text, ('sast'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('secret_detection'::character varying)::text]))); - - --- --- Name: index_pat_on_user_id_and_expires_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pat_on_user_id_and_expires_at ON public.personal_access_tokens USING btree (user_id, expires_at); - - --- --- Name: index_path_locks_on_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_path_locks_on_path ON public.path_locks USING btree (path); - - --- --- Name: index_path_locks_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_path_locks_on_project_id ON public.path_locks USING btree (project_id); - - --- --- Name: index_path_locks_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_path_locks_on_user_id ON public.path_locks USING btree (user_id); - - --- --- Name: index_pe_approval_rules_on_required_approvals_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pe_approval_rules_on_required_approvals_and_created_at ON public.protected_environment_approval_rules USING btree (required_approvals, created_at); - - --- --- Name: index_personal_access_tokens_on_id_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_personal_access_tokens_on_id_and_created_at ON public.personal_access_tokens USING btree (id, created_at); - - --- --- Name: index_personal_access_tokens_on_organization_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_personal_access_tokens_on_organization_id ON public.personal_access_tokens USING btree (organization_id); - - --- --- Name: index_personal_access_tokens_on_token_digest; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_personal_access_tokens_on_token_digest ON public.personal_access_tokens USING btree (token_digest); - - --- --- Name: index_personal_access_tokens_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_personal_access_tokens_on_user_id ON public.personal_access_tokens USING btree (user_id); - - --- --- Name: index_pipeline_metadata_on_name_text_pattern_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pipeline_metadata_on_name_text_pattern_pipeline_id ON public.ci_pipeline_metadata USING btree (name text_pattern_ops, pipeline_id); - - --- --- Name: p_ci_pipeline_variables_pipeline_id_key_partition_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX p_ci_pipeline_variables_pipeline_id_key_partition_id_idx ON ONLY public.p_ci_pipeline_variables USING btree (pipeline_id, key, partition_id); - - --- --- Name: index_pipeline_variables_on_pipeline_id_key_partition_id_unique; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_pipeline_variables_on_pipeline_id_key_partition_id_unique ON public.ci_pipeline_variables USING btree (pipeline_id, key, partition_id); - - --- --- Name: index_plan_limits_on_plan_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_plan_limits_on_plan_id ON public.plan_limits USING btree (plan_id); - - --- --- Name: index_plans_on_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_plans_on_name ON public.plans USING btree (name); - - --- --- Name: index_pm_advisories_on_advisory_xid_and_source_xid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_pm_advisories_on_advisory_xid_and_source_xid ON public.pm_advisories USING btree (advisory_xid, source_xid); - - --- --- Name: index_pm_affected_packages_on_pm_advisory_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pm_affected_packages_on_pm_advisory_id ON public.pm_affected_packages USING btree (pm_advisory_id); - - --- --- Name: index_pm_affected_packages_on_purl_type_and_package_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pm_affected_packages_on_purl_type_and_package_name ON public.pm_affected_packages USING btree (purl_type, package_name); - - --- --- Name: index_pm_epss_on_cve; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_pm_epss_on_cve ON public.pm_epss USING btree (cve); - - --- --- Name: index_pm_package_version_licenses_on_pm_license_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pm_package_version_licenses_on_pm_license_id ON public.pm_package_version_licenses USING btree (pm_license_id); - - --- --- Name: index_pm_package_version_licenses_on_pm_package_version_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pm_package_version_licenses_on_pm_package_version_id ON public.pm_package_version_licenses USING btree (pm_package_version_id); - - --- --- Name: index_pm_package_versions_on_pm_package_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pm_package_versions_on_pm_package_id ON public.pm_package_versions USING btree (pm_package_id); - - --- --- Name: index_pool_repositories_on_shard_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_pool_repositories_on_shard_id ON public.pool_repositories USING btree (shard_id); - - --- --- Name: index_pool_repositories_on_source_project_id_and_shard_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_pool_repositories_on_source_project_id_and_shard_id ON public.pool_repositories USING btree (source_project_id, shard_id); - - --- --- Name: index_postgres_async_indexes_on_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_postgres_async_indexes_on_name ON public.postgres_async_indexes USING btree (name); - - --- --- Name: index_postgres_reindex_actions_on_index_identifier; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_postgres_reindex_actions_on_index_identifier ON public.postgres_reindex_actions USING btree (index_identifier); - - --- --- Name: index_postgres_reindex_queued_actions_on_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_postgres_reindex_queued_actions_on_state ON public.postgres_reindex_queued_actions USING btree (state); - - --- --- Name: index_programming_languages_on_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_programming_languages_on_name ON public.programming_languages USING btree (name); - - --- --- Name: index_project_access_tokens_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_access_tokens_on_project_id ON public.project_access_tokens USING btree (project_id); - - --- --- Name: index_project_aliases_on_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_aliases_on_name ON public.project_aliases USING btree (name); - - --- --- Name: index_project_aliases_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_aliases_on_project_id ON public.project_aliases USING btree (project_id); - - --- --- Name: index_project_authorizations_on_project_user_access_level; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_authorizations_on_project_user_access_level ON public.project_authorizations USING btree (project_id, user_id, access_level); - - --- --- Name: index_project_auto_devops_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_auto_devops_on_project_id ON public.project_auto_devops USING btree (project_id); - - --- --- Name: index_project_build_artifacts_size_refreshes_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_build_artifacts_size_refreshes_on_project_id ON public.project_build_artifacts_size_refreshes USING btree (project_id); - - --- --- Name: index_project_ci_cd_settings_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_ci_cd_settings_on_project_id ON public.project_ci_cd_settings USING btree (project_id); - - --- --- Name: index_project_ci_feature_usages_unique_columns; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_ci_feature_usages_unique_columns ON public.project_ci_feature_usages USING btree (project_id, feature, default_branch); - - --- --- Name: index_project_compliance_framework_settings_on_framework_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_compliance_framework_settings_on_framework_id ON public.project_compliance_framework_settings USING btree (framework_id); - - --- --- Name: index_project_compliance_standards_adherence_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_compliance_standards_adherence_on_project_id ON public.project_compliance_standards_adherence USING btree (project_id); - - --- --- Name: index_project_custom_attributes_on_key_and_value; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_custom_attributes_on_key_and_value ON public.project_custom_attributes USING btree (key, value); - - --- --- Name: index_project_custom_attributes_on_project_id_and_key; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_custom_attributes_on_project_id_and_key ON public.project_custom_attributes USING btree (project_id, key); - - --- --- Name: index_project_daily_statistics_on_project_id_and_date; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_daily_statistics_on_project_id_and_date ON public.project_daily_statistics USING btree (project_id, date DESC); - - --- --- Name: index_project_data_transfers_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_data_transfers_on_namespace_id ON public.project_data_transfers USING btree (namespace_id); - - --- --- Name: index_project_data_transfers_on_project_and_namespace_and_date; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_data_transfers_on_project_and_namespace_and_date ON public.project_data_transfers USING btree (project_id, namespace_id, date); - - --- --- Name: index_project_deploy_tokens_on_deploy_token_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_deploy_tokens_on_deploy_token_id ON public.project_deploy_tokens USING btree (deploy_token_id); - - --- --- Name: index_project_deploy_tokens_on_project_id_and_deploy_token_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_deploy_tokens_on_project_id_and_deploy_token_id ON public.project_deploy_tokens USING btree (project_id, deploy_token_id); - - --- --- Name: index_project_export_job_relation; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_export_job_relation ON public.project_relation_exports USING btree (project_export_job_id, relation); - - --- --- Name: index_project_export_jobs_on_jid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_export_jobs_on_jid ON public.project_export_jobs USING btree (jid); - - --- --- Name: index_project_export_jobs_on_project_id_and_jid; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_export_jobs_on_project_id_and_jid ON public.project_export_jobs USING btree (project_id, jid); - - --- --- Name: index_project_export_jobs_on_project_id_and_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_export_jobs_on_project_id_and_status ON public.project_export_jobs USING btree (project_id, status); - - --- --- Name: index_project_export_jobs_on_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_export_jobs_on_status ON public.project_export_jobs USING btree (status); - - --- --- Name: index_project_export_jobs_on_updated_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_export_jobs_on_updated_at_and_id ON public.project_export_jobs USING btree (updated_at, id); - - --- --- Name: index_project_export_jobs_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_export_jobs_on_user_id ON public.project_export_jobs USING btree (user_id); - - --- --- Name: index_project_feature_usages_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_feature_usages_on_project_id ON public.project_feature_usages USING btree (project_id); - - --- --- Name: index_project_features_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_features_on_project_id ON public.project_features USING btree (project_id); - - --- --- Name: index_project_features_on_project_id_bal_20; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_features_on_project_id_bal_20 ON public.project_features USING btree (project_id) WHERE (builds_access_level = 20); - - --- --- Name: index_project_features_on_project_id_include_container_registry; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_features_on_project_id_include_container_registry ON public.project_features USING btree (project_id) INCLUDE (container_registry_access_level); - - --- --- Name: INDEX index_project_features_on_project_id_include_container_registry; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON INDEX public.index_project_features_on_project_id_include_container_registry IS 'Included column (container_registry_access_level) improves performance of the ContainerRepository.for_group_and_its_subgroups scope query'; - - --- --- Name: index_project_features_on_project_id_on_public_package_registry; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_features_on_project_id_on_public_package_registry ON public.project_features USING btree (project_id) WHERE (package_registry_access_level = 30); - - --- --- Name: index_project_features_on_project_id_ral_20; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_features_on_project_id_ral_20 ON public.project_features USING btree (project_id) WHERE (repository_access_level = 20); - - --- --- Name: index_project_group_links_on_group_id_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_group_links_on_group_id_and_project_id ON public.project_group_links USING btree (group_id, project_id); - - --- --- Name: index_project_group_links_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_group_links_on_project_id ON public.project_group_links USING btree (project_id); - - --- --- Name: index_project_import_data_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_import_data_on_project_id ON public.project_import_data USING btree (project_id); - - --- --- Name: index_project_incident_management_settings_on_p_id_sla_timer; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_incident_management_settings_on_p_id_sla_timer ON public.project_incident_management_settings USING btree (project_id) WHERE (sla_timer = true); - - --- --- Name: index_project_members_on_id_temp; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_members_on_id_temp ON public.members USING btree (id) WHERE ((source_type)::text = 'Project'::text); - - --- --- Name: index_project_mirror_data_on_last_successful_update_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_mirror_data_on_last_successful_update_at ON public.project_mirror_data USING btree (last_successful_update_at); - - --- --- Name: index_project_mirror_data_on_last_update_at_and_retry_count; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_mirror_data_on_last_update_at_and_retry_count ON public.project_mirror_data USING btree (last_update_at, retry_count); - - --- --- Name: index_project_mirror_data_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_mirror_data_on_project_id ON public.project_mirror_data USING btree (project_id); - - --- --- Name: index_project_mirror_data_on_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_mirror_data_on_status ON public.project_mirror_data USING btree (status); - - --- --- Name: index_project_pages_metadata_on_pages_deployment_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_pages_metadata_on_pages_deployment_id ON public.project_pages_metadata USING btree (pages_deployment_id); - - --- --- Name: index_project_pages_metadata_on_project_id_and_deployed_is_true; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_pages_metadata_on_project_id_and_deployed_is_true ON public.project_pages_metadata USING btree (project_id) WHERE (deployed = true); - - --- --- Name: index_project_relation_export_upload_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_relation_export_upload_id ON public.project_relation_export_uploads USING btree (project_relation_export_id); - - --- --- Name: index_project_relation_exports_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_relation_exports_on_project_id ON public.project_relation_exports USING btree (project_id); - - --- --- Name: index_project_repositories_on_disk_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_repositories_on_disk_path ON public.project_repositories USING btree (disk_path); - - --- --- Name: index_project_repositories_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_repositories_on_project_id ON public.project_repositories USING btree (project_id); - - --- --- Name: index_project_repositories_on_shard_id_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_repositories_on_shard_id_and_project_id ON public.project_repositories USING btree (shard_id, project_id); - - --- --- Name: index_project_repository_storage_moves_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_repository_storage_moves_on_project_id ON public.project_repository_storage_moves USING btree (project_id); - - --- --- Name: index_project_saved_replies_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_saved_replies_on_project_id ON public.project_saved_replies USING btree (project_id); - - --- --- Name: index_project_secrets_managers_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_secrets_managers_on_project_id ON public.project_secrets_managers USING btree (project_id); - - --- --- Name: index_project_settings_on_legacy_os_license_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_settings_on_legacy_os_license_project_id ON public.project_settings USING btree (project_id) WHERE (legacy_open_source_license_available = true); - - --- --- Name: index_project_settings_on_project_id_partially; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_settings_on_project_id_partially ON public.project_settings USING btree (project_id) WHERE (has_vulnerabilities IS TRUE); - - --- --- Name: index_project_settings_on_push_rule_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_settings_on_push_rule_id ON public.project_settings USING btree (push_rule_id); - - --- --- Name: index_project_states_failed_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_states_failed_verification ON public.project_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); - - --- --- Name: index_project_states_needs_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_states_needs_verification ON public.project_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); - - --- --- Name: index_project_states_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_states_on_project_id ON public.project_states USING btree (project_id); - - --- --- Name: index_project_states_on_verification_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_states_on_verification_state ON public.project_states USING btree (verification_state); - - --- --- Name: index_project_states_pending_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_states_pending_verification ON public.project_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); - - --- --- Name: index_project_statistics_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_statistics_on_namespace_id ON public.project_statistics USING btree (namespace_id); - - --- --- Name: index_project_statistics_on_packages_size_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_statistics_on_packages_size_and_project_id ON public.project_statistics USING btree (packages_size, project_id); - - --- --- Name: index_project_statistics_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_statistics_on_project_id ON public.project_statistics USING btree (project_id); - - --- --- Name: index_project_statistics_on_repository_size_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_statistics_on_repository_size_and_project_id ON public.project_statistics USING btree (repository_size, project_id); - - --- --- Name: index_project_statistics_on_root_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_statistics_on_root_namespace_id ON public.project_statistics USING btree (root_namespace_id); - - --- --- Name: index_project_statistics_on_storage_size_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_statistics_on_storage_size_and_project_id ON public.project_statistics USING btree (storage_size, project_id); - - --- --- Name: index_project_statistics_on_wiki_size_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_statistics_on_wiki_size_and_project_id ON public.project_statistics USING btree (wiki_size, project_id); - - --- --- Name: index_project_topics_on_project_id_and_topic_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_topics_on_project_id_and_topic_id ON public.project_topics USING btree (project_id, topic_id); - - --- --- Name: index_project_topics_on_topic_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_project_topics_on_topic_id ON public.project_topics USING btree (topic_id); - - --- --- Name: index_project_user_callouts_feature; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_user_callouts_feature ON public.user_project_callouts USING btree (user_id, feature_name, project_id); - - --- --- Name: index_project_wiki_repositories_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_project_wiki_repositories_on_project_id ON public.project_wiki_repositories USING btree (project_id); - - --- --- Name: index_projects_aimed_for_deletion; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_aimed_for_deletion ON public.projects USING btree (marked_for_deletion_at) WHERE ((marked_for_deletion_at IS NOT NULL) AND (pending_delete = false)); - - --- --- Name: index_projects_api_created_at_id_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_api_created_at_id_desc ON public.projects USING btree (created_at, id DESC); - - --- --- Name: index_projects_api_last_activity_at_id_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_api_last_activity_at_id_desc ON public.projects USING btree (last_activity_at, id DESC); - - --- --- Name: index_projects_api_name_id_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_api_name_id_desc ON public.projects USING btree (name, id DESC); - - --- --- Name: index_projects_api_path_id_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_api_path_id_desc ON public.projects USING btree (path, id DESC); - - --- --- Name: index_projects_api_updated_at_id_desc; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_api_updated_at_id_desc ON public.projects USING btree (updated_at, id DESC); - - --- --- Name: index_projects_api_vis20_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_api_vis20_created_at ON public.projects USING btree (created_at, id) WHERE (visibility_level = 20); - - --- --- Name: index_projects_api_vis20_last_activity_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_api_vis20_last_activity_at ON public.projects USING btree (last_activity_at, id) WHERE (visibility_level = 20); - - --- --- Name: index_projects_api_vis20_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_api_vis20_name ON public.projects USING btree (name, id) WHERE (visibility_level = 20); - - --- --- Name: index_projects_api_vis20_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_api_vis20_path ON public.projects USING btree (path, id) WHERE (visibility_level = 20); - - --- --- Name: index_projects_api_vis20_updated_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_api_vis20_updated_at ON public.projects USING btree (updated_at, id) WHERE (visibility_level = 20); - - --- --- Name: index_projects_id_for_aimed_for_deletion; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_id_for_aimed_for_deletion ON public.projects USING btree (id, marked_for_deletion_at) WHERE ((marked_for_deletion_at IS NOT NULL) AND (pending_delete = false)); - - --- --- Name: index_projects_not_aimed_for_deletion; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_not_aimed_for_deletion ON public.projects USING btree (id) WHERE (marked_for_deletion_at IS NULL); - - --- --- Name: index_projects_on_creator_id_and_created_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_creator_id_and_created_at_and_id ON public.projects USING btree (creator_id, created_at, id); - - --- --- Name: index_projects_on_creator_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_creator_id_and_id ON public.projects USING btree (creator_id, id); - - --- --- Name: index_projects_on_creator_id_import_type_and_created_at_partial; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_creator_id_import_type_and_created_at_partial ON public.projects USING btree (creator_id, import_type, created_at) WHERE (import_type IS NOT NULL); - - --- --- Name: index_projects_on_description_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_description_trigram ON public.projects USING gin (description public.gin_trgm_ops); - - --- --- Name: index_projects_on_id_and_archived_and_pending_delete; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_id_and_archived_and_pending_delete ON public.projects USING btree (id) WHERE ((archived = false) AND (pending_delete = false)); - - --- --- Name: index_projects_on_id_partial_for_visibility; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_projects_on_id_partial_for_visibility ON public.projects USING btree (id) WHERE (visibility_level = ANY (ARRAY[10, 20])); - - --- --- Name: index_projects_on_id_service_desk_enabled; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_id_service_desk_enabled ON public.projects USING btree (id) WHERE (service_desk_enabled = true); - - --- --- Name: index_projects_on_last_activity_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_last_activity_at_and_id ON public.projects USING btree (last_activity_at, id); - - --- --- Name: index_projects_on_last_repository_check_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_last_repository_check_at ON public.projects USING btree (last_repository_check_at) WHERE (last_repository_check_at IS NOT NULL); - - --- --- Name: index_projects_on_last_repository_check_failed; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_last_repository_check_failed ON public.projects USING btree (last_repository_check_failed); - - --- --- Name: index_projects_on_last_repository_updated_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_last_repository_updated_at ON public.projects USING btree (last_repository_updated_at); - - --- --- Name: index_projects_on_lower_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_lower_name ON public.projects USING btree (lower((name)::text)); - - --- --- Name: index_projects_on_marked_for_deletion_by_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_marked_for_deletion_by_user_id ON public.projects USING btree (marked_for_deletion_by_user_id) WHERE (marked_for_deletion_by_user_id IS NOT NULL); - - --- --- Name: index_projects_on_mirror_creator_id_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_mirror_creator_id_created_at ON public.projects USING btree (creator_id, created_at) WHERE ((mirror = true) AND (mirror_trigger_builds = true)); - - --- --- Name: index_projects_on_mirror_id_where_mirror_and_trigger_builds; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_mirror_id_where_mirror_and_trigger_builds ON public.projects USING btree (id) WHERE ((mirror = true) AND (mirror_trigger_builds = true)); - - --- --- Name: index_projects_on_mirror_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_mirror_user_id ON public.projects USING btree (mirror_user_id); - - --- --- Name: index_projects_on_name_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_name_and_id ON public.projects USING btree (name, id); - - --- --- Name: index_projects_on_name_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_name_trigram ON public.projects USING gin (name public.gin_trgm_ops); - - --- --- Name: index_projects_on_namespace_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_namespace_id_and_id ON public.projects USING btree (namespace_id, id); - - --- --- Name: index_projects_on_namespace_id_and_repository_size_limit; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_namespace_id_and_repository_size_limit ON public.projects USING btree (namespace_id, repository_size_limit); - - --- --- Name: index_projects_on_organization_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_organization_id_and_id ON public.projects USING btree (organization_id, id); - - --- --- Name: index_projects_on_path_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_path_trigram ON public.projects USING gin (path public.gin_trgm_ops); - - --- --- Name: index_projects_on_pending_delete; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_pending_delete ON public.projects USING btree (pending_delete); - - --- --- Name: index_projects_on_pool_repository_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_pool_repository_id ON public.projects USING btree (pool_repository_id) WHERE (pool_repository_id IS NOT NULL); - - --- --- Name: index_projects_on_project_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_projects_on_project_namespace_id ON public.projects USING btree (project_namespace_id); - - --- --- Name: index_projects_on_repository_storage; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_repository_storage ON public.projects USING btree (repository_storage); - - --- --- Name: index_projects_on_star_count; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_star_count ON public.projects USING btree (star_count); - - --- --- Name: index_projects_on_updated_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_on_updated_at_and_id ON public.projects USING btree (updated_at, id); - - --- --- Name: index_projects_sync_events_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_sync_events_on_project_id ON public.projects_sync_events USING btree (project_id); - - --- --- Name: index_projects_visits_on_entity_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_visits_on_entity_id ON ONLY public.projects_visits USING btree (entity_id); - - --- --- Name: index_projects_visits_on_user_id_and_entity_id_and_visited_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_projects_visits_on_user_id_and_entity_id_and_visited_at ON ONLY public.projects_visits USING btree (user_id, entity_id, visited_at); - - --- --- Name: index_prometheus_alert_event_scoped_payload_key; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_prometheus_alert_event_scoped_payload_key ON public.prometheus_alert_events USING btree (prometheus_alert_id, payload_key); - - --- --- Name: index_prometheus_alert_events_on_project_id_and_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_prometheus_alert_events_on_project_id_and_status ON public.prometheus_alert_events USING btree (project_id, status); - - --- --- Name: index_prometheus_alerts_metric_environment; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_prometheus_alerts_metric_environment ON public.prometheus_alerts USING btree (project_id, prometheus_metric_id, environment_id); - - --- --- Name: index_prometheus_alerts_on_environment_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_prometheus_alerts_on_environment_id ON public.prometheus_alerts USING btree (environment_id); - - --- --- Name: index_prometheus_alerts_on_prometheus_metric_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_prometheus_alerts_on_prometheus_metric_id ON public.prometheus_alerts USING btree (prometheus_metric_id); - - --- --- Name: index_prometheus_metrics_on_common; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_prometheus_metrics_on_common ON public.prometheus_metrics USING btree (common); - - --- --- Name: index_prometheus_metrics_on_group; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_prometheus_metrics_on_group ON public.prometheus_metrics USING btree ("group"); - - --- --- Name: index_prometheus_metrics_on_identifier_and_null_project; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_prometheus_metrics_on_identifier_and_null_project ON public.prometheus_metrics USING btree (identifier) WHERE (project_id IS NULL); - - --- --- Name: index_prometheus_metrics_on_identifier_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_prometheus_metrics_on_identifier_and_project_id ON public.prometheus_metrics USING btree (identifier, project_id); - - --- --- Name: index_prometheus_metrics_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_prometheus_metrics_on_project_id ON public.prometheus_metrics USING btree (project_id); - - --- --- Name: index_protected_branch_merge_access; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_branch_merge_access ON public.protected_branch_merge_access_levels USING btree (protected_branch_id); - - --- --- Name: index_protected_branch_merge_access_levels_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_branch_merge_access_levels_on_group_id ON public.protected_branch_merge_access_levels USING btree (group_id); - - --- --- Name: index_protected_branch_merge_access_levels_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_branch_merge_access_levels_on_user_id ON public.protected_branch_merge_access_levels USING btree (user_id); - - --- --- Name: index_protected_branch_push_access; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_branch_push_access ON public.protected_branch_push_access_levels USING btree (protected_branch_id); - - --- --- Name: index_protected_branch_push_access_levels_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_branch_push_access_levels_on_group_id ON public.protected_branch_push_access_levels USING btree (group_id); - - --- --- Name: index_protected_branch_push_access_levels_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_branch_push_access_levels_on_user_id ON public.protected_branch_push_access_levels USING btree (user_id); - - --- --- Name: index_protected_branch_unprotect_access; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_branch_unprotect_access ON public.protected_branch_unprotect_access_levels USING btree (protected_branch_id); - - --- --- Name: index_protected_branch_unprotect_access_levels_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_branch_unprotect_access_levels_on_group_id ON public.protected_branch_unprotect_access_levels USING btree (group_id); - - --- --- Name: index_protected_branch_unprotect_access_levels_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_branch_unprotect_access_levels_on_user_id ON public.protected_branch_unprotect_access_levels USING btree (user_id); - - --- --- Name: index_protected_branches_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_branches_namespace_id ON public.protected_branches USING btree (namespace_id) WHERE (namespace_id IS NOT NULL); - - --- --- Name: index_protected_branches_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_branches_on_project_id ON public.protected_branches USING btree (project_id); - - --- --- Name: index_protected_environment_approval_rules_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_environment_approval_rules_on_group_id ON public.protected_environment_approval_rules USING btree (group_id); - - --- --- Name: index_protected_environment_approval_rules_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_environment_approval_rules_on_user_id ON public.protected_environment_approval_rules USING btree (user_id); - - --- --- Name: index_protected_environment_deploy_access; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_environment_deploy_access ON public.protected_environment_deploy_access_levels USING btree (protected_environment_id); - - --- --- Name: index_protected_environment_deploy_access_levels_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_environment_deploy_access_levels_on_group_id ON public.protected_environment_deploy_access_levels USING btree (group_id); - - --- --- Name: index_protected_environment_deploy_access_levels_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_environment_deploy_access_levels_on_user_id ON public.protected_environment_deploy_access_levels USING btree (user_id); - - --- --- Name: index_protected_environment_group_id_of_protected_environment_a; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_environment_group_id_of_protected_environment_a ON public.protected_environment_approval_rules USING btree (protected_environment_group_id); - - --- --- Name: index_protected_environment_project_id_of_protected_environment; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_environment_project_id_of_protected_environment ON public.protected_environment_approval_rules USING btree (protected_environment_project_id); - - --- --- Name: index_protected_environments_on_approval_count_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_environments_on_approval_count_and_created_at ON public.protected_environments USING btree (required_approval_count, created_at); - - --- --- Name: index_protected_environments_on_group_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_protected_environments_on_group_id_and_name ON public.protected_environments USING btree (group_id, name) WHERE (group_id IS NOT NULL); - - --- --- Name: index_protected_environments_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_protected_environments_on_project_id_and_name ON public.protected_environments USING btree (project_id, name); - - --- --- Name: index_protected_tag_create_access; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_tag_create_access ON public.protected_tag_create_access_levels USING btree (protected_tag_id); - - --- --- Name: index_protected_tag_create_access_levels_on_deploy_key_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_tag_create_access_levels_on_deploy_key_id ON public.protected_tag_create_access_levels USING btree (deploy_key_id); - - --- --- Name: index_protected_tag_create_access_levels_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_tag_create_access_levels_on_group_id ON public.protected_tag_create_access_levels USING btree (group_id); - - --- --- Name: index_protected_tag_create_access_levels_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_tag_create_access_levels_on_project_id ON public.protected_tag_create_access_levels USING btree (project_id); - - --- --- Name: index_protected_tag_create_access_levels_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_protected_tag_create_access_levels_on_user_id ON public.protected_tag_create_access_levels USING btree (user_id); - - --- --- Name: index_protected_tags_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_protected_tags_on_project_id_and_name ON public.protected_tags USING btree (project_id, name); - - --- --- Name: index_push_rules_on_is_sample; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_push_rules_on_is_sample ON public.push_rules USING btree (is_sample) WHERE is_sample; - - --- --- Name: index_push_rules_on_organization_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_push_rules_on_organization_id ON public.push_rules USING btree (organization_id); - - --- --- Name: index_push_rules_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_push_rules_on_project_id ON public.push_rules USING btree (project_id); - - --- --- Name: index_raw_usage_data_on_organization_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_raw_usage_data_on_organization_id ON public.raw_usage_data USING btree (organization_id); - - --- --- Name: index_raw_usage_data_on_recorded_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_raw_usage_data_on_recorded_at ON public.raw_usage_data USING btree (recorded_at); - - --- --- Name: index_redirect_routes_on_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_redirect_routes_on_path ON public.redirect_routes USING btree (path); - - --- --- Name: index_redirect_routes_on_path_unique_text_pattern_ops; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_redirect_routes_on_path_unique_text_pattern_ops ON public.redirect_routes USING btree (lower((path)::text) varchar_pattern_ops); - - --- --- Name: index_redirect_routes_on_source_type_and_source_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_redirect_routes_on_source_type_and_source_id ON public.redirect_routes USING btree (source_type, source_id); - - --- --- Name: index_related_epic_links_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_related_epic_links_on_group_id ON public.related_epic_links USING btree (group_id); - - --- --- Name: index_related_epic_links_on_source_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_related_epic_links_on_source_id ON public.related_epic_links USING btree (source_id); - - --- --- Name: index_related_epic_links_on_source_id_and_target_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_related_epic_links_on_source_id_and_target_id ON public.related_epic_links USING btree (source_id, target_id); - - --- --- Name: index_related_epic_links_on_target_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_related_epic_links_on_target_id ON public.related_epic_links USING btree (target_id); - - --- --- Name: index_relation_import_trackers_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_relation_import_trackers_on_project_id ON public.relation_import_trackers USING btree (project_id); - - --- --- Name: index_release_links_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_release_links_on_project_id ON public.release_links USING btree (project_id); - - --- --- Name: index_release_links_on_release_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_release_links_on_release_id_and_name ON public.release_links USING btree (release_id, name); - - --- --- Name: index_release_links_on_release_id_and_url; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_release_links_on_release_id_and_url ON public.release_links USING btree (release_id, url); - - --- --- Name: index_releases_on_author_id_id_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_releases_on_author_id_id_created_at ON public.releases USING btree (author_id, id, created_at); - - --- --- Name: index_releases_on_project_id_and_released_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_releases_on_project_id_and_released_at_and_id ON public.releases USING btree (project_id, released_at, id); - - --- --- Name: index_releases_on_project_id_and_updated_at_and_released_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_releases_on_project_id_and_updated_at_and_released_at ON public.releases USING btree (project_id, updated_at, released_at); - - --- --- Name: index_releases_on_project_id_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_releases_on_project_id_id ON public.releases USING btree (project_id, id); - - --- --- Name: index_releases_on_project_tag_unique; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_releases_on_project_tag_unique ON public.releases USING btree (project_id, tag); - - --- --- Name: index_releases_on_released_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_releases_on_released_at ON public.releases USING btree (released_at); - - --- --- Name: index_remote_development_agent_configs_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_remote_development_agent_configs_on_project_id ON public.remote_development_agent_configs USING btree (project_id); - - --- --- Name: index_remote_development_agent_configs_on_unique_agent_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_remote_development_agent_configs_on_unique_agent_id ON public.remote_development_agent_configs USING btree (cluster_agent_id); - - --- --- Name: index_remote_mirrors_on_last_successful_update_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_remote_mirrors_on_last_successful_update_at ON public.remote_mirrors USING btree (last_successful_update_at); - - --- --- Name: index_remote_mirrors_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_remote_mirrors_on_project_id ON public.remote_mirrors USING btree (project_id); - - --- --- Name: index_required_code_owners_sections_on_protected_branch_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_required_code_owners_sections_on_protected_branch_id ON public.required_code_owners_sections USING btree (protected_branch_id); - - --- --- Name: index_requirements_management_test_reports_on_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_requirements_management_test_reports_on_author_id ON public.requirements_management_test_reports USING btree (author_id); - - --- --- Name: index_requirements_management_test_reports_on_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_requirements_management_test_reports_on_build_id ON public.requirements_management_test_reports USING btree (build_id); - - --- --- Name: index_requirements_management_test_reports_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_requirements_management_test_reports_on_issue_id ON public.requirements_management_test_reports USING btree (issue_id); - - --- --- Name: index_requirements_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_requirements_on_issue_id ON public.requirements USING btree (issue_id); - - --- --- Name: index_requirements_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_requirements_on_project_id ON public.requirements USING btree (project_id); - - --- --- Name: index_requirements_on_project_id_and_iid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_requirements_on_project_id_and_iid ON public.requirements USING btree (project_id, iid) WHERE (project_id IS NOT NULL); - - --- --- Name: index_requirements_project_id_user_id_id_and_target_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_requirements_project_id_user_id_id_and_target_type ON public.todos USING btree (project_id, user_id, id, target_type); - - --- --- Name: index_requirements_user_id_and_target_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_requirements_user_id_and_target_type ON public.todos USING btree (user_id, target_type); - - --- --- Name: index_resource_iteration_events_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_iteration_events_on_issue_id ON public.resource_iteration_events USING btree (issue_id); - - --- --- Name: index_resource_iteration_events_on_iteration_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_iteration_events_on_iteration_id ON public.resource_iteration_events USING btree (iteration_id); - - --- --- Name: index_resource_iteration_events_on_iteration_id_and_add_action; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_iteration_events_on_iteration_id_and_add_action ON public.resource_iteration_events USING btree (iteration_id) WHERE (action = 1); - - --- --- Name: index_resource_iteration_events_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_iteration_events_on_merge_request_id ON public.resource_iteration_events USING btree (merge_request_id); - - --- --- Name: index_resource_iteration_events_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_iteration_events_on_user_id ON public.resource_iteration_events USING btree (user_id); - - --- --- Name: index_resource_label_events_issue_id_label_id_action; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_label_events_issue_id_label_id_action ON public.resource_label_events USING btree (issue_id, label_id, action); - - --- --- Name: index_resource_label_events_on_epic_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_label_events_on_epic_id ON public.resource_label_events USING btree (epic_id); - - --- --- Name: index_resource_label_events_on_label_id_and_action; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_label_events_on_label_id_and_action ON public.resource_label_events USING btree (label_id, action); - - --- --- Name: index_resource_label_events_on_merge_request_id_label_id_action; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_label_events_on_merge_request_id_label_id_action ON public.resource_label_events USING btree (merge_request_id, label_id, action); - - --- --- Name: index_resource_label_events_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_label_events_on_user_id ON public.resource_label_events USING btree (user_id); - - --- --- Name: index_resource_link_events_on_child_work_item_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_link_events_on_child_work_item_id ON public.resource_link_events USING btree (child_work_item_id); - - --- --- Name: index_resource_link_events_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_link_events_on_issue_id ON public.resource_link_events USING btree (issue_id); - - --- --- Name: index_resource_link_events_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_link_events_on_user_id ON public.resource_link_events USING btree (user_id); - - --- --- Name: index_resource_milestone_events_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_milestone_events_created_at ON public.resource_milestone_events USING btree (created_at); - - --- --- Name: index_resource_milestone_events_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_milestone_events_on_issue_id ON public.resource_milestone_events USING btree (issue_id); - - --- --- Name: index_resource_milestone_events_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_milestone_events_on_merge_request_id ON public.resource_milestone_events USING btree (merge_request_id); - - --- --- Name: index_resource_milestone_events_on_milestone_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_milestone_events_on_milestone_id ON public.resource_milestone_events USING btree (milestone_id); - - --- --- Name: index_resource_milestone_events_on_milestone_id_and_add_action; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_milestone_events_on_milestone_id_and_add_action ON public.resource_milestone_events USING btree (milestone_id) WHERE (action = 1); - - --- --- Name: index_resource_milestone_events_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_milestone_events_on_user_id ON public.resource_milestone_events USING btree (user_id); - - --- --- Name: index_resource_state_events_on_epic_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_state_events_on_epic_id ON public.resource_state_events USING btree (epic_id); - - --- --- Name: index_resource_state_events_on_issue_id_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_state_events_on_issue_id_and_created_at ON public.resource_state_events USING btree (issue_id, created_at); - - --- --- Name: index_resource_state_events_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_state_events_on_merge_request_id ON public.resource_state_events USING btree (merge_request_id); - - --- --- Name: index_resource_state_events_on_source_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_state_events_on_source_merge_request_id ON public.resource_state_events USING btree (source_merge_request_id); - - --- --- Name: index_resource_state_events_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_state_events_on_user_id ON public.resource_state_events USING btree (user_id); - - --- --- Name: index_resource_weight_events_on_issue_id_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_weight_events_on_issue_id_and_created_at ON public.resource_weight_events USING btree (issue_id, created_at); - - --- --- Name: index_resource_weight_events_on_issue_id_and_weight; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_weight_events_on_issue_id_and_weight ON public.resource_weight_events USING btree (issue_id, weight); - - --- --- Name: index_resource_weight_events_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_resource_weight_events_on_user_id ON public.resource_weight_events USING btree (user_id); - - --- --- Name: index_reviews_on_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_reviews_on_author_id ON public.reviews USING btree (author_id); - - --- --- Name: index_reviews_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_reviews_on_merge_request_id ON public.reviews USING btree (merge_request_id); - - --- --- Name: index_reviews_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_reviews_on_project_id ON public.reviews USING btree (project_id); - - --- --- Name: index_route_on_name_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_route_on_name_trigram ON public.routes USING gin (name public.gin_trgm_ops); - - --- --- Name: index_routes_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_routes_on_namespace_id ON public.routes USING btree (namespace_id); - - --- --- Name: index_routes_on_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_routes_on_path ON public.routes USING btree (path); - - --- --- Name: index_routes_on_path_text_pattern_ops; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_routes_on_path_text_pattern_ops ON public.routes USING btree (path varchar_pattern_ops); - - --- --- Name: index_routes_on_path_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_routes_on_path_trigram ON public.routes USING gin (path public.gin_trgm_ops); - - --- --- Name: index_routes_on_source_type_and_source_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_routes_on_source_type_and_source_id ON public.routes USING btree (source_type, source_id); - - --- --- Name: index_saml_group_links_on_group_id_and_saml_group_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_saml_group_links_on_group_id_and_saml_group_name ON public.saml_group_links USING btree (group_id, saml_group_name); - - --- --- Name: index_saml_group_links_on_member_role_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_saml_group_links_on_member_role_id ON public.saml_group_links USING btree (member_role_id); - - --- --- Name: index_saml_providers_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_saml_providers_on_group_id ON public.saml_providers USING btree (group_id); - - --- --- Name: index_saml_providers_on_member_role_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_saml_providers_on_member_role_id ON public.saml_providers USING btree (member_role_id); - - --- --- Name: index_saved_replies_on_name_text_pattern_ops; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_saved_replies_on_name_text_pattern_ops ON public.saved_replies USING btree (user_id, name text_pattern_ops); - - --- --- Name: index_sbom_component_versions_on_component_id_and_version; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_sbom_component_versions_on_component_id_and_version ON public.sbom_component_versions USING btree (component_id, version); - - --- --- Name: index_sbom_components_on_component_type_name_and_purl_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_sbom_components_on_component_type_name_and_purl_type ON public.sbom_components USING btree (name, purl_type, component_type); - - --- --- Name: index_sbom_components_on_organization_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sbom_components_on_organization_id ON public.sbom_components USING btree (organization_id); - - --- --- Name: index_sbom_occurr_on_project_id_and_component_version_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sbom_occurr_on_project_id_and_component_version_id_and_id ON public.sbom_occurrences USING btree (project_id, component_version_id, id); - - --- --- Name: index_sbom_occurrences_on_component_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sbom_occurrences_on_component_id_and_id ON public.sbom_occurrences USING btree (component_id, id); - - --- --- Name: index_sbom_occurrences_on_component_version_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sbom_occurrences_on_component_version_id ON public.sbom_occurrences USING btree (component_version_id); - - --- --- Name: index_sbom_occurrences_on_highest_severity; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sbom_occurrences_on_highest_severity ON public.sbom_occurrences USING btree (project_id, highest_severity DESC NULLS LAST); - - --- --- Name: index_sbom_occurrences_on_licenses_spdx_identifier; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sbom_occurrences_on_licenses_spdx_identifier ON public.sbom_occurrences USING btree (project_id, ((licenses #> '{0,spdx_identifier}'::text[])), ((licenses #> '{1,spdx_identifier}'::text[]))); - - --- --- Name: index_sbom_occurrences_on_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sbom_occurrences_on_pipeline_id ON public.sbom_occurrences USING btree (pipeline_id); - - --- --- Name: index_sbom_occurrences_on_project_id_and_component_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sbom_occurrences_on_project_id_and_component_id_and_id ON public.sbom_occurrences USING btree (project_id, component_id, id); - - --- --- Name: index_sbom_occurrences_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sbom_occurrences_on_project_id_and_id ON public.sbom_occurrences USING btree (project_id, id); - - --- --- Name: index_sbom_occurrences_on_project_id_and_package_manager; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sbom_occurrences_on_project_id_and_package_manager ON public.sbom_occurrences USING btree (project_id, package_manager); - - --- --- Name: index_sbom_occurrences_on_source_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sbom_occurrences_on_source_id ON public.sbom_occurrences USING btree (source_id); - - --- --- Name: index_sbom_occurrences_on_traversal_ids_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sbom_occurrences_on_traversal_ids_and_id ON public.sbom_occurrences USING btree (traversal_ids, id) WHERE (archived = false); - - --- --- Name: index_sbom_occurrences_on_uuid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_sbom_occurrences_on_uuid ON public.sbom_occurrences USING btree (uuid); - - --- --- Name: index_sbom_occurrences_vulnerabilities_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sbom_occurrences_vulnerabilities_on_project_id ON public.sbom_occurrences_vulnerabilities USING btree (project_id); - - --- --- Name: index_sbom_occurrences_vulnerabilities_on_vulnerability_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sbom_occurrences_vulnerabilities_on_vulnerability_id ON public.sbom_occurrences_vulnerabilities USING btree (vulnerability_id); - - --- --- Name: index_sbom_source_packages_on_name_and_purl_type_and_org_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_sbom_source_packages_on_name_and_purl_type_and_org_id ON public.sbom_source_packages USING btree (name, purl_type, organization_id); - - --- --- Name: index_sbom_source_packages_on_organization_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sbom_source_packages_on_organization_id ON public.sbom_source_packages USING btree (organization_id); - - --- --- Name: index_sbom_source_packages_on_source_package_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sbom_source_packages_on_source_package_id_and_id ON public.sbom_occurrences USING btree (source_package_id, id); - - --- --- Name: index_sbom_sources_on_organization_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sbom_sources_on_organization_id ON public.sbom_sources USING btree (organization_id); - - --- --- Name: index_sbom_sources_on_source_type_and_source_and_org_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_sbom_sources_on_source_type_and_source_and_org_id ON public.sbom_sources USING btree (source_type, source, organization_id); - - --- --- Name: index_scan_execution_policy_rules_on_policy_mgmt_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_scan_execution_policy_rules_on_policy_mgmt_project_id ON public.scan_execution_policy_rules USING btree (security_policy_management_project_id); - - --- --- Name: index_scan_execution_policy_rules_on_unique_policy_rule_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_scan_execution_policy_rules_on_unique_policy_rule_index ON public.scan_execution_policy_rules USING btree (security_policy_id, rule_index); - - --- --- Name: index_scan_result_policies_on_position_in_configuration; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_scan_result_policies_on_position_in_configuration ON public.scan_result_policies USING btree (security_orchestration_policy_configuration_id, project_id, orchestration_policy_idx, rule_idx); - - --- --- Name: index_scan_result_policies_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_scan_result_policies_on_project_id ON public.scan_result_policies USING btree (project_id); - - --- --- Name: index_scan_result_policy_violations_on_approval_policy_rule_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_scan_result_policy_violations_on_approval_policy_rule_id ON public.scan_result_policy_violations USING btree (approval_policy_rule_id); - - --- --- Name: index_scan_result_policy_violations_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_scan_result_policy_violations_on_merge_request_id ON public.scan_result_policy_violations USING btree (merge_request_id); - - --- --- Name: index_scan_result_policy_violations_on_policy_and_merge_request; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_scan_result_policy_violations_on_policy_and_merge_request ON public.scan_result_policy_violations USING btree (scan_result_policy_id, merge_request_id); - - --- --- Name: index_scan_result_policy_violations_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_scan_result_policy_violations_on_project_id ON public.scan_result_policy_violations USING btree (project_id); - - --- --- Name: index_scim_identities_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_scim_identities_on_group_id ON public.scim_identities USING btree (group_id); - - --- --- Name: index_scim_identities_on_lower_extern_uid_and_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_scim_identities_on_lower_extern_uid_and_group_id ON public.scim_identities USING btree (lower((extern_uid)::text), group_id); - - --- --- Name: index_scim_identities_on_user_id_and_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_scim_identities_on_user_id_and_group_id ON public.scim_identities USING btree (user_id, group_id); - - --- --- Name: index_scim_oauth_access_tokens_on_group_id_and_token_encrypted; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_scim_oauth_access_tokens_on_group_id_and_token_encrypted ON public.scim_oauth_access_tokens USING btree (group_id, token_encrypted); - - --- --- Name: index_search_indices_on_id_and_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_search_indices_on_id_and_type ON public.search_indices USING btree (id, type); - - --- --- Name: index_search_indices_on_type_and_bucket_number; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_search_indices_on_type_and_bucket_number ON public.search_indices USING btree (type, bucket_number); - - --- --- Name: index_search_indices_on_type_and_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_search_indices_on_type_and_path ON public.search_indices USING btree (type, path); - - --- --- Name: index_search_namespace_index_assignments_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_search_namespace_index_assignments_on_namespace_id ON public.search_namespace_index_assignments USING btree (namespace_id); - - --- --- Name: index_search_namespace_index_assignments_on_search_index_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_search_namespace_index_assignments_on_search_index_id ON public.search_namespace_index_assignments USING btree (search_index_id); - - --- --- Name: index_search_namespace_index_assignments_uniqueness_index_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_search_namespace_index_assignments_uniqueness_index_type ON public.search_namespace_index_assignments USING btree (namespace_id, index_type); - - --- --- Name: index_search_namespace_index_assignments_uniqueness_on_index_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_search_namespace_index_assignments_uniqueness_on_index_id ON public.search_namespace_index_assignments USING btree (namespace_id, search_index_id); - - --- --- Name: p_ci_builds_user_id_name_created_at_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_user_id_name_created_at_idx ON ONLY public.p_ci_builds USING btree (user_id, name, created_at) WHERE (((type)::text = 'Ci::Build'::text) AND ((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('license_scanning'::character varying)::text, ('sast'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('apifuzzer_fuzz'::character varying)::text, ('apifuzzer_fuzz_dnd'::character varying)::text, ('secret_detection'::character varying)::text]))); - - --- --- Name: index_secure_ci_builds_on_user_id_name_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_secure_ci_builds_on_user_id_name_created_at ON public.ci_builds USING btree (user_id, name, created_at) WHERE (((type)::text = 'Ci::Build'::text) AND ((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('license_scanning'::character varying)::text, ('sast'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('apifuzzer_fuzz'::character varying)::text, ('apifuzzer_fuzz_dnd'::character varying)::text, ('secret_detection'::character varying)::text]))); - - --- --- Name: p_ci_builds_name_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_name_id_idx ON ONLY public.p_ci_builds USING btree (name, id) WHERE (((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('sast'::character varying)::text, ('secret_detection'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('license_scanning'::character varying)::text, ('apifuzzer_fuzz'::character varying)::text, ('apifuzzer_fuzz_dnd'::character varying)::text])) AND ((type)::text = 'Ci::Build'::text)); - - --- --- Name: index_security_ci_builds_on_name_and_id_parser_features; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_security_ci_builds_on_name_and_id_parser_features ON public.ci_builds USING btree (name, id) WHERE (((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('sast'::character varying)::text, ('secret_detection'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('license_scanning'::character varying)::text, ('apifuzzer_fuzz'::character varying)::text, ('apifuzzer_fuzz_dnd'::character varying)::text])) AND ((type)::text = 'Ci::Build'::text)); - - --- --- Name: index_security_orchestration_policy_rule_schedules_on_namespace; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_security_orchestration_policy_rule_schedules_on_namespace ON public.security_orchestration_policy_rule_schedules USING btree (namespace_id); - - --- --- Name: index_security_orchestration_policy_rule_schedules_on_project_i; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_security_orchestration_policy_rule_schedules_on_project_i ON public.security_orchestration_policy_rule_schedules USING btree (project_id); - - --- --- Name: index_security_policies_on_policy_management_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_security_policies_on_policy_management_project_id ON public.security_policies USING btree (security_policy_management_project_id); - - --- --- Name: index_security_policies_on_unique_config_type_policy_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_security_policies_on_unique_config_type_policy_index ON public.security_policies USING btree (security_orchestration_policy_configuration_id, type, policy_index); - - --- --- Name: index_security_policy_project_links_on_project_and_policy; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_security_policy_project_links_on_project_and_policy ON public.security_policy_project_links USING btree (security_policy_id, project_id); - - --- --- Name: index_security_policy_project_links_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_security_policy_project_links_on_project_id ON public.security_policy_project_links USING btree (project_id); - - --- --- Name: index_security_policy_requirements_on_compliance_requirement_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_security_policy_requirements_on_compliance_requirement_id ON public.security_policy_requirements USING btree (compliance_requirement_id); - - --- --- Name: index_security_policy_requirements_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_security_policy_requirements_on_namespace_id ON public.security_policy_requirements USING btree (namespace_id); - - --- --- Name: index_security_scans_for_non_purged_records; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_security_scans_for_non_purged_records ON public.security_scans USING btree (created_at, id) WHERE (status <> 6); - - --- --- Name: index_security_scans_on_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_security_scans_on_created_at ON public.security_scans USING btree (created_at); - - --- --- Name: index_security_scans_on_date_created_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_security_scans_on_date_created_at_and_id ON public.security_scans USING btree (date(timezone('UTC'::text, created_at)), id); - - --- --- Name: index_security_scans_on_length_of_errors; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_security_scans_on_length_of_errors ON public.security_scans USING btree (pipeline_id, jsonb_array_length(COALESCE((info -> 'errors'::text), '[]'::jsonb))); - - --- --- Name: index_security_scans_on_length_of_warnings; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_security_scans_on_length_of_warnings ON public.security_scans USING btree (pipeline_id, jsonb_array_length(COALESCE((info -> 'warnings'::text), '[]'::jsonb))); - - --- --- Name: index_security_scans_on_pipeline_id_and_scan_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_security_scans_on_pipeline_id_and_scan_type ON public.security_scans USING btree (pipeline_id, scan_type); - - --- --- Name: index_security_scans_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_security_scans_on_project_id ON public.security_scans USING btree (project_id); - - --- --- Name: index_security_training_providers_on_unique_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_security_training_providers_on_unique_name ON public.security_training_providers USING btree (name); - - --- --- Name: index_security_trainings_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_security_trainings_on_project_id ON public.security_trainings USING btree (project_id); - - --- --- Name: index_security_trainings_on_provider_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_security_trainings_on_provider_id ON public.security_trainings USING btree (provider_id); - - --- --- Name: index_security_trainings_on_unique_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_security_trainings_on_unique_project_id ON public.security_trainings USING btree (project_id) WHERE (is_primary IS TRUE); - - --- --- Name: index_self_managed_prometheus_alert_events_on_environment_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_self_managed_prometheus_alert_events_on_environment_id ON public.self_managed_prometheus_alert_events USING btree (environment_id); - - --- --- Name: index_sent_notifications_on_issue_email_participant_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sent_notifications_on_issue_email_participant_id ON public.sent_notifications USING btree (issue_email_participant_id); - - --- --- Name: index_sent_notifications_on_noteable_type_noteable_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sent_notifications_on_noteable_type_noteable_id ON public.sent_notifications USING btree (noteable_id) WHERE ((noteable_type)::text = 'Issue'::text); - - --- --- Name: index_sent_notifications_on_reply_key; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_sent_notifications_on_reply_key ON public.sent_notifications USING btree (reply_key); - - --- --- Name: index_sentry_issues_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_sentry_issues_on_issue_id ON public.sentry_issues USING btree (issue_id); - - --- --- Name: index_sentry_issues_on_sentry_issue_identifier; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sentry_issues_on_sentry_issue_identifier ON public.sentry_issues USING btree (sentry_issue_identifier); - - --- --- Name: index_service_desk_custom_email_verifications_on_triggerer_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_service_desk_custom_email_verifications_on_triggerer_id ON public.service_desk_custom_email_verifications USING btree (triggerer_id); - - --- --- Name: index_service_desk_enabled_projects_on_id_creator_id_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_service_desk_enabled_projects_on_id_creator_id_created_at ON public.projects USING btree (id, creator_id, created_at) WHERE (service_desk_enabled = true); - - --- --- Name: index_service_desk_settings_on_custom_email_enabled; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_service_desk_settings_on_custom_email_enabled ON public.service_desk_settings USING btree (custom_email_enabled); - - --- --- Name: index_service_desk_settings_on_file_template_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_service_desk_settings_on_file_template_project_id ON public.service_desk_settings USING btree (file_template_project_id); - - --- --- Name: index_shards_on_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_shards_on_name ON public.shards USING btree (name); - - --- --- Name: index_site_profile_secret_variables_on_site_profile_id_and_key; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_site_profile_secret_variables_on_site_profile_id_and_key ON public.dast_site_profile_secret_variables USING btree (dast_site_profile_id, key); - - --- --- Name: index_slack_api_scopes_on_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_slack_api_scopes_on_name ON public.slack_api_scopes USING btree (name); - - --- --- Name: index_slack_api_scopes_on_name_and_integration; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_slack_api_scopes_on_name_and_integration ON public.slack_integrations_scopes USING btree (slack_integration_id, slack_api_scope_id); - - --- --- Name: index_slack_integrations_on_integration_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_slack_integrations_on_integration_id ON public.slack_integrations USING btree (integration_id); - - --- --- Name: index_slack_integrations_on_team_id_and_alias; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_slack_integrations_on_team_id_and_alias ON public.slack_integrations USING btree (team_id, alias); - - --- --- Name: index_smartcard_identities_on_subject_and_issuer; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_smartcard_identities_on_subject_and_issuer ON public.smartcard_identities USING btree (subject, issuer); - - --- --- Name: index_smartcard_identities_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_smartcard_identities_on_user_id ON public.smartcard_identities USING btree (user_id); - - --- --- Name: index_snippet_on_id_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippet_on_id_and_project_id ON public.snippets USING btree (id, project_id); - - --- --- Name: index_snippet_repositories_failed_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippet_repositories_failed_verification ON public.snippet_repositories USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); - - --- --- Name: index_snippet_repositories_needs_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippet_repositories_needs_verification ON public.snippet_repositories USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); - - --- --- Name: index_snippet_repositories_on_disk_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_snippet_repositories_on_disk_path ON public.snippet_repositories USING btree (disk_path); - - --- --- Name: index_snippet_repositories_on_shard_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippet_repositories_on_shard_id ON public.snippet_repositories USING btree (shard_id); - - --- --- Name: index_snippet_repositories_pending_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippet_repositories_pending_verification ON public.snippet_repositories USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); - - --- --- Name: index_snippet_repositories_verification_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippet_repositories_verification_state ON public.snippet_repositories USING btree (verification_state); - - --- --- Name: index_snippet_repository_storage_moves_on_snippet_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippet_repository_storage_moves_on_snippet_id ON public.snippet_repository_storage_moves USING btree (snippet_id); - - --- --- Name: index_snippet_repository_storage_moves_on_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippet_repository_storage_moves_on_state ON public.snippet_repository_storage_moves USING btree (state) WHERE (state = ANY (ARRAY[2, 3])); - - --- --- Name: index_snippet_user_mentions_on_note_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_snippet_user_mentions_on_note_id ON public.snippet_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); - - --- --- Name: index_snippets_on_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippets_on_author_id ON public.snippets USING btree (author_id); - - --- --- Name: index_snippets_on_content_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippets_on_content_trigram ON public.snippets USING gin (content public.gin_trgm_ops); - - --- --- Name: index_snippets_on_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippets_on_created_at ON public.snippets USING btree (created_at); - - --- --- Name: index_snippets_on_description_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippets_on_description_trigram ON public.snippets USING gin (description public.gin_trgm_ops); - - --- --- Name: index_snippets_on_file_name_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippets_on_file_name_trigram ON public.snippets USING gin (file_name public.gin_trgm_ops); - - --- --- Name: index_snippets_on_id_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippets_on_id_and_created_at ON public.snippets USING btree (id, created_at); - - --- --- Name: index_snippets_on_id_and_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippets_on_id_and_type ON public.snippets USING btree (id, type); - - --- --- Name: index_snippets_on_organization_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippets_on_organization_id ON public.snippets USING btree (organization_id); - - --- --- Name: index_snippets_on_project_id_and_title; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippets_on_project_id_and_title ON public.snippets USING btree (project_id, title); - - --- --- Name: index_snippets_on_project_id_and_visibility_level; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippets_on_project_id_and_visibility_level ON public.snippets USING btree (project_id, visibility_level); - - --- --- Name: index_snippets_on_title_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippets_on_title_trigram ON public.snippets USING gin (title public.gin_trgm_ops); - - --- --- Name: index_snippets_on_updated_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippets_on_updated_at ON public.snippets USING btree (updated_at); - - --- --- Name: index_snippets_on_visibility_level_and_secret; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_snippets_on_visibility_level_and_secret ON public.snippets USING btree (visibility_level, secret); - - --- --- Name: index_software_license_policies_on_approval_policy_rule_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_software_license_policies_on_approval_policy_rule_id ON public.software_license_policies USING btree (approval_policy_rule_id); - - --- --- Name: index_software_license_policies_on_scan_result_policy_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_software_license_policies_on_scan_result_policy_id ON public.software_license_policies USING btree (scan_result_policy_id); - - --- --- Name: index_software_license_policies_on_software_license_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_software_license_policies_on_software_license_id ON public.software_license_policies USING btree (software_license_id); - - --- --- Name: index_software_licenses_on_spdx_identifier; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_software_licenses_on_spdx_identifier ON public.software_licenses USING btree (spdx_identifier); - - --- --- Name: index_software_licenses_on_unique_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_software_licenses_on_unique_name ON public.software_licenses USING btree (name); - - --- --- Name: index_sop_configurations_project_id_policy_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sop_configurations_project_id_policy_project_id ON public.security_orchestration_policy_configurations USING btree (security_policy_management_project_id, project_id); - - --- --- Name: index_sop_schedules_on_sop_configuration_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sop_schedules_on_sop_configuration_id ON public.security_orchestration_policy_rule_schedules USING btree (security_orchestration_policy_configuration_id); - - --- --- Name: index_sop_schedules_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sop_schedules_on_user_id ON public.security_orchestration_policy_rule_schedules USING btree (user_id); - - --- --- Name: index_spam_logs_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_spam_logs_on_user_id ON public.spam_logs USING btree (user_id); - - --- --- Name: index_sprints_iterations_cadence_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sprints_iterations_cadence_id ON public.sprints USING btree (iterations_cadence_id); - - --- --- Name: index_sprints_on_description_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sprints_on_description_trigram ON public.sprints USING gin (description public.gin_trgm_ops); - - --- --- Name: index_sprints_on_due_date; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sprints_on_due_date ON public.sprints USING btree (due_date); - - --- --- Name: index_sprints_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sprints_on_group_id ON public.sprints USING btree (group_id); - - --- --- Name: index_sprints_on_title; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sprints_on_title ON public.sprints USING btree (title); - - --- --- Name: index_sprints_on_title_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_sprints_on_title_trigram ON public.sprints USING gin (title public.gin_trgm_ops); - - --- --- Name: index_ssh_signatures_on_commit_sha; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_ssh_signatures_on_commit_sha ON public.ssh_signatures USING btree (commit_sha); - - --- --- Name: index_ssh_signatures_on_key_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ssh_signatures_on_key_id ON public.ssh_signatures USING btree (key_id); - - --- --- Name: index_ssh_signatures_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ssh_signatures_on_project_id ON public.ssh_signatures USING btree (project_id); - - --- --- Name: index_ssh_signatures_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_ssh_signatures_on_user_id ON public.ssh_signatures USING btree (user_id); - - --- --- Name: index_status_check_responses_on_external_approval_rule_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_status_check_responses_on_external_approval_rule_id ON public.status_check_responses USING btree (external_approval_rule_id); - - --- --- Name: index_status_check_responses_on_external_status_check_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_status_check_responses_on_external_status_check_id ON public.status_check_responses USING btree (external_status_check_id); - - --- --- Name: index_status_check_responses_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_status_check_responses_on_merge_request_id ON public.status_check_responses USING btree (merge_request_id); - - --- --- Name: index_status_check_responses_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_status_check_responses_on_project_id ON public.status_check_responses USING btree (project_id); - - --- --- Name: index_status_page_published_incidents_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_status_page_published_incidents_on_issue_id ON public.status_page_published_incidents USING btree (issue_id); - - --- --- Name: index_status_page_settings_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_status_page_settings_on_project_id ON public.status_page_settings USING btree (project_id); - - --- --- Name: index_subscription_add_on_purchases_on_namespace_id_add_on_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_subscription_add_on_purchases_on_namespace_id_add_on_id ON public.subscription_add_on_purchases USING btree (namespace_id, subscription_add_on_id); - - --- --- Name: index_subscription_add_ons_on_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_subscription_add_ons_on_name ON public.subscription_add_ons USING btree (name); - - --- --- Name: index_subscription_addon_purchases_on_expires_on; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_subscription_addon_purchases_on_expires_on ON public.subscription_add_on_purchases USING btree (expires_on); - - --- --- Name: index_subscription_user_add_on_assignments_on_organization_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_subscription_user_add_on_assignments_on_organization_id ON public.subscription_user_add_on_assignments USING btree (organization_id); - - --- --- Name: index_subscription_user_add_on_assignments_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_subscription_user_add_on_assignments_on_user_id ON public.subscription_user_add_on_assignments USING btree (user_id); - - --- --- Name: index_subscriptions_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_subscriptions_on_project_id ON public.subscriptions USING btree (project_id); - - --- --- Name: index_subscriptions_on_subscribable_and_user_id_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_subscriptions_on_subscribable_and_user_id_and_project_id ON public.subscriptions USING btree (subscribable_id, subscribable_type, user_id, project_id); - - --- --- Name: index_successful_authentication_events_for_metrics; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_successful_authentication_events_for_metrics ON public.authentication_events USING btree (user_id, provider, created_at) WHERE (result = 1); - - --- --- Name: index_suggestions_on_note_id_and_relative_order; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_suggestions_on_note_id_and_relative_order ON public.suggestions USING btree (note_id, relative_order); - - --- --- Name: index_system_access_microsoft_applications_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_system_access_microsoft_applications_on_namespace_id ON public.system_access_microsoft_applications USING btree (namespace_id); - - --- --- Name: index_system_note_metadata_on_description_version_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_system_note_metadata_on_description_version_id ON public.system_note_metadata USING btree (description_version_id) WHERE (description_version_id IS NOT NULL); - - --- --- Name: index_system_note_metadata_on_note_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_system_note_metadata_on_note_id ON public.system_note_metadata USING btree (note_id); - - --- --- Name: index_taggings_on_tag_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_taggings_on_tag_id ON public.taggings USING btree (tag_id); - - --- --- Name: index_taggings_on_taggable_id_and_taggable_type_and_context; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_taggings_on_taggable_id_and_taggable_type_and_context ON public.taggings USING btree (taggable_id, taggable_type, context); - - --- --- Name: index_tags_on_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_tags_on_name ON public.tags USING btree (name); - - --- --- Name: index_tags_on_name_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_tags_on_name_trigram ON public.tags USING gin (name public.gin_trgm_ops); - - --- --- Name: index_target_branch_rules_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_target_branch_rules_on_project_id ON public.target_branch_rules USING btree (project_id); - - --- --- Name: index_term_agreements_on_term_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_term_agreements_on_term_id ON public.term_agreements USING btree (term_id); - - --- --- Name: index_term_agreements_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_term_agreements_on_user_id ON public.term_agreements USING btree (user_id); - - --- --- Name: index_terraform_state_versions_failed_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_terraform_state_versions_failed_verification ON public.terraform_state_versions USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); - - --- --- Name: index_terraform_state_versions_needs_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_terraform_state_versions_needs_verification ON public.terraform_state_versions USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); - - --- --- Name: index_terraform_state_versions_on_ci_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_terraform_state_versions_on_ci_build_id ON public.terraform_state_versions USING btree (ci_build_id); - - --- --- Name: index_terraform_state_versions_on_created_by_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_terraform_state_versions_on_created_by_user_id ON public.terraform_state_versions USING btree (created_by_user_id); - - --- --- Name: index_terraform_state_versions_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_terraform_state_versions_on_project_id ON public.terraform_state_versions USING btree (project_id); - - --- --- Name: index_terraform_state_versions_on_state_id_and_version; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_terraform_state_versions_on_state_id_and_version ON public.terraform_state_versions USING btree (terraform_state_id, version); - - --- --- Name: index_terraform_state_versions_on_verification_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_terraform_state_versions_on_verification_state ON public.terraform_state_versions USING btree (verification_state); - - --- --- Name: index_terraform_state_versions_pending_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_terraform_state_versions_pending_verification ON public.terraform_state_versions USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); - - --- --- Name: index_terraform_states_on_file_store; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_terraform_states_on_file_store ON public.terraform_states USING btree (file_store); - - --- --- Name: index_terraform_states_on_locked_by_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_terraform_states_on_locked_by_user_id ON public.terraform_states USING btree (locked_by_user_id); - - --- --- Name: index_terraform_states_on_project_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_terraform_states_on_project_id_and_name ON public.terraform_states USING btree (project_id, name); - - --- --- Name: index_terraform_states_on_uuid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_terraform_states_on_uuid ON public.terraform_states USING btree (uuid); - - --- --- Name: index_timelog_categories_on_unique_name_per_namespace; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_timelog_categories_on_unique_name_per_namespace ON public.timelog_categories USING btree (namespace_id, lower(name)); - - --- --- Name: index_timelogs_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_timelogs_on_issue_id ON public.timelogs USING btree (issue_id); - - --- --- Name: index_timelogs_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_timelogs_on_merge_request_id ON public.timelogs USING btree (merge_request_id); - - --- --- Name: index_timelogs_on_note_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_timelogs_on_note_id ON public.timelogs USING btree (note_id); - - --- --- Name: index_timelogs_on_project_id_and_spent_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_timelogs_on_project_id_and_spent_at ON public.timelogs USING btree (project_id, spent_at); - - --- --- Name: index_timelogs_on_spent_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_timelogs_on_spent_at ON public.timelogs USING btree (spent_at) WHERE (spent_at IS NOT NULL); - - --- --- Name: index_timelogs_on_timelog_category_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_timelogs_on_timelog_category_id ON public.timelogs USING btree (timelog_category_id); - - --- --- Name: index_timelogs_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_timelogs_on_user_id ON public.timelogs USING btree (user_id); - - --- --- Name: index_todos_on_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_todos_on_author_id ON public.todos USING btree (author_id); - - --- --- Name: index_todos_on_author_id_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_todos_on_author_id_and_created_at ON public.todos USING btree (author_id, created_at); - - --- --- Name: index_todos_on_commit_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_todos_on_commit_id ON public.todos USING btree (commit_id); - - --- --- Name: index_todos_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_todos_on_group_id ON public.todos USING btree (group_id); - - --- --- Name: index_todos_on_note_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_todos_on_note_id ON public.todos USING btree (note_id); - - --- --- Name: index_todos_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_todos_on_project_id_and_id ON public.todos USING btree (project_id, id); - - --- --- Name: index_todos_on_target_type_and_target_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_todos_on_target_type_and_target_id ON public.todos USING btree (target_type, target_id); - - --- --- Name: index_todos_on_user_id_and_id_done; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_todos_on_user_id_and_id_done ON public.todos USING btree (user_id, id) WHERE ((state)::text = 'done'::text); - - --- --- Name: index_todos_on_user_id_and_id_pending; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_todos_on_user_id_and_id_pending ON public.todos USING btree (user_id, id) WHERE ((state)::text = 'pending'::text); - - --- --- Name: index_token_with_ivs_on_hashed_plaintext_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_token_with_ivs_on_hashed_plaintext_token ON public.token_with_ivs USING btree (hashed_plaintext_token); - - --- --- Name: index_token_with_ivs_on_hashed_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_token_with_ivs_on_hashed_token ON public.token_with_ivs USING btree (hashed_token); - - --- --- Name: index_topics_non_private_projects_count; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_topics_non_private_projects_count ON public.topics USING btree (non_private_projects_count DESC, id); - - --- --- Name: index_topics_on_lower_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_topics_on_lower_name ON public.topics USING btree (lower(name)); - - --- --- Name: index_topics_on_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_topics_on_name ON public.topics USING btree (name); - - --- --- Name: index_topics_on_name_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_topics_on_name_trigram ON public.topics USING gin (name public.gin_trgm_ops); - - --- --- Name: index_topics_on_slug; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_topics_on_slug ON public.topics USING btree (slug) WHERE (slug IS NOT NULL); - - --- --- Name: index_topics_total_projects_count; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_topics_total_projects_count ON public.topics USING btree (total_projects_count DESC, id); - - --- --- Name: index_trending_projects_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_trending_projects_on_project_id ON public.trending_projects USING btree (project_id); - - --- --- Name: index_unarchived_occurrences_for_aggregations_component_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_unarchived_occurrences_for_aggregations_component_name ON public.sbom_occurrences USING btree (traversal_ids, component_name, component_id, component_version_id) WHERE (archived = false); - - --- --- Name: index_unarchived_occurrences_for_aggregations_license; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_unarchived_occurrences_for_aggregations_license ON public.sbom_occurrences USING btree (traversal_ids, (((licenses -> 0) ->> 'spdx_identifier'::text)), component_id, component_version_id) WHERE (archived = false); - - --- --- Name: index_unarchived_occurrences_for_aggregations_package_manager; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_unarchived_occurrences_for_aggregations_package_manager ON public.sbom_occurrences USING btree (traversal_ids, package_manager, component_id, component_version_id) WHERE (archived = false); - - --- --- Name: index_unarchived_occurrences_for_aggregations_severity; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_unarchived_occurrences_for_aggregations_severity ON public.sbom_occurrences USING btree (traversal_ids, highest_severity, component_id, component_version_id) WHERE (archived = false); - - --- --- Name: index_unarchived_occurrences_on_version_id_and_traversal_ids; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_unarchived_occurrences_on_version_id_and_traversal_ids ON public.sbom_occurrences USING btree (component_version_id, traversal_ids) WHERE (archived = false); - - --- --- Name: index_unarchived_sbom_occurrences_for_aggregations; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_unarchived_sbom_occurrences_for_aggregations ON public.sbom_occurrences USING btree (traversal_ids, component_id, component_version_id) WHERE (archived = false); - - --- --- Name: index_uniq_ci_runners_on_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_uniq_ci_runners_on_token ON public.ci_runners USING btree (token); - - --- --- Name: index_uniq_ci_runners_on_token_encrypted; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_uniq_ci_runners_on_token_encrypted ON public.ci_runners USING btree (token_encrypted); - - --- --- Name: index_uniq_im_issuable_escalation_statuses_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_uniq_im_issuable_escalation_statuses_on_issue_id ON public.incident_management_issuable_escalation_statuses USING btree (issue_id); - - --- --- Name: index_uniq_projects_on_runners_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_uniq_projects_on_runners_token ON public.projects USING btree (runners_token); - - --- --- Name: index_uniq_projects_on_runners_token_encrypted; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_uniq_projects_on_runners_token_encrypted ON public.projects USING btree (runners_token_encrypted); - - --- --- Name: index_unique_ci_runner_projects_on_runner_id_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_unique_ci_runner_projects_on_runner_id_and_project_id ON public.ci_runner_projects USING btree (runner_id, project_id); - - --- --- Name: index_unique_epics_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_unique_epics_on_issue_id ON public.epics USING btree (issue_id); - - --- --- Name: index_unique_issuable_resource_links_on_unique_issue_link; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_unique_issuable_resource_links_on_unique_issue_link ON public.issuable_resource_links USING btree (issue_id, link) WHERE is_unique; - - --- --- Name: index_unique_issue_metrics_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_unique_issue_metrics_issue_id ON public.issue_metrics USING btree (issue_id); - - --- --- Name: index_unique_project_authorizations_on_unique_project_user; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_unique_project_authorizations_on_unique_project_user ON public.project_authorizations USING btree (project_id, user_id) WHERE is_unique; - - --- --- Name: index_unit_test_failures_failed_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_unit_test_failures_failed_at ON public.ci_unit_test_failures USING btree (failed_at DESC); - - --- --- Name: index_unit_test_failures_unique_columns; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_unit_test_failures_unique_columns ON public.ci_unit_test_failures USING btree (unit_test_id, failed_at DESC, build_id); - - --- --- Name: index_unresolved_alerts_on_project_id_and_fingerprint; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_unresolved_alerts_on_project_id_and_fingerprint ON public.alert_management_alerts USING btree (project_id, fingerprint) WHERE ((fingerprint IS NOT NULL) AND (status <> 2)); - - --- --- Name: index_upcoming_reconciliations_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_upcoming_reconciliations_on_namespace_id ON public.upcoming_reconciliations USING btree (namespace_id); - - --- --- Name: index_upcoming_reconciliations_on_organization_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_upcoming_reconciliations_on_organization_id ON public.upcoming_reconciliations USING btree (organization_id); - - --- --- Name: index_upload_states_failed_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_upload_states_failed_verification ON public.upload_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); - - --- --- Name: index_upload_states_needs_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_upload_states_needs_verification ON public.upload_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); - - --- --- Name: index_upload_states_on_upload_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_upload_states_on_upload_id ON public.upload_states USING btree (upload_id); - - --- --- Name: index_upload_states_on_verification_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_upload_states_on_verification_state ON public.upload_states USING btree (verification_state); - - --- --- Name: index_upload_states_pending_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_upload_states_pending_verification ON public.upload_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); - - --- --- Name: index_uploads_on_checksum; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_uploads_on_checksum ON public.uploads USING btree (checksum); - - --- --- Name: index_uploads_on_model_id_model_type_uploader_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_uploads_on_model_id_model_type_uploader_created_at ON public.uploads USING btree (model_id, model_type, uploader, created_at); - - --- --- Name: index_uploads_on_store; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_uploads_on_store ON public.uploads USING btree (store); - - --- --- Name: index_uploads_on_uploaded_by_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_uploads_on_uploaded_by_user_id ON public.uploads USING btree (uploaded_by_user_id); - - --- --- Name: index_uploads_on_uploader_and_path; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_uploads_on_uploader_and_path ON public.uploads USING btree (uploader, path); - - --- --- Name: index_user_achievements_on_achievement_id_revoked_by_is_null; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_achievements_on_achievement_id_revoked_by_is_null ON public.user_achievements USING btree (achievement_id, ((revoked_by_user_id IS NULL))); - - --- --- Name: index_user_achievements_on_awarded_by_revoked_by_is_null; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_achievements_on_awarded_by_revoked_by_is_null ON public.user_achievements USING btree (awarded_by_user_id, ((revoked_by_user_id IS NULL))); - - --- --- Name: index_user_achievements_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_achievements_on_namespace_id ON public.user_achievements USING btree (namespace_id); - - --- --- Name: index_user_achievements_on_revoked_by_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_achievements_on_revoked_by_user_id ON public.user_achievements USING btree (revoked_by_user_id); - - --- --- Name: index_user_achievements_on_user_id_revoked_by_is_null; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_achievements_on_user_id_revoked_by_is_null ON public.user_achievements USING btree (user_id, ((revoked_by_user_id IS NULL))); - - --- --- Name: index_user_agent_details_on_subject_id_and_subject_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_agent_details_on_subject_id_and_subject_type ON public.user_agent_details USING btree (subject_id, subject_type); - - --- --- Name: index_user_broadcast_message_dismissals_on_broadcast_message_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_broadcast_message_dismissals_on_broadcast_message_id ON public.user_broadcast_message_dismissals USING btree (broadcast_message_id); - - --- --- Name: index_user_callouts_on_user_id_and_feature_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_user_callouts_on_user_id_and_feature_name ON public.user_callouts USING btree (user_id, feature_name); - - --- --- Name: index_user_canonical_emails_on_canonical_email; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_canonical_emails_on_canonical_email ON public.user_canonical_emails USING btree (canonical_email); - - --- --- Name: index_user_canonical_emails_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_user_canonical_emails_on_user_id ON public.user_canonical_emails USING btree (user_id); - - --- --- Name: index_user_canonical_emails_on_user_id_and_canonical_email; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_user_canonical_emails_on_user_id_and_canonical_email ON public.user_canonical_emails USING btree (user_id, canonical_email); - - --- --- Name: index_user_credit_card_validations_on_stripe_card_fingerprint; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_credit_card_validations_on_stripe_card_fingerprint ON public.user_credit_card_validations USING btree (stripe_card_fingerprint); - - --- --- Name: index_user_custom_attributes_on_key_and_value; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_custom_attributes_on_key_and_value ON public.user_custom_attributes USING btree (key, value); - - --- --- Name: index_user_custom_attributes_on_user_id_and_key; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_user_custom_attributes_on_user_id_and_key ON public.user_custom_attributes USING btree (user_id, key); - - --- --- Name: index_user_details_on_enterprise_group_id_and_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_details_on_enterprise_group_id_and_user_id ON public.user_details USING btree (enterprise_group_id, user_id); - - --- --- Name: index_user_details_on_password_last_changed_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_details_on_password_last_changed_at ON public.user_details USING btree (password_last_changed_at); - - --- --- Name: INDEX index_user_details_on_password_last_changed_at; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON INDEX public.index_user_details_on_password_last_changed_at IS 'JiHu-specific index'; - - --- --- Name: index_user_details_on_phone; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_user_details_on_phone ON public.user_details USING btree (phone) WHERE (phone IS NOT NULL); - - --- --- Name: INDEX index_user_details_on_phone; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON INDEX public.index_user_details_on_phone IS 'JiHu-specific index'; - - --- --- Name: index_user_details_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_user_details_on_user_id ON public.user_details USING btree (user_id); - - --- --- Name: index_user_group_callouts_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_group_callouts_on_group_id ON public.user_group_callouts USING btree (group_id); - - --- --- Name: index_user_highest_roles_on_user_id_and_highest_access_level; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_highest_roles_on_user_id_and_highest_access_level ON public.user_highest_roles USING btree (user_id, highest_access_level); - - --- --- Name: index_user_id_and_notification_email_to_notification_settings; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_id_and_notification_email_to_notification_settings ON public.notification_settings USING btree (user_id, notification_email, id) WHERE (notification_email IS NOT NULL); - - --- --- Name: index_user_namespace_callouts_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_namespace_callouts_on_namespace_id ON public.user_namespace_callouts USING btree (namespace_id); - - --- --- Name: index_user_permission_export_uploads_on_user_id_and_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_permission_export_uploads_on_user_id_and_status ON public.user_permission_export_uploads USING btree (user_id, status); - - --- --- Name: index_user_phone_number_validations_on_telesign_reference_xid; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_phone_number_validations_on_telesign_reference_xid ON public.user_phone_number_validations USING btree (telesign_reference_xid); - - --- --- Name: index_user_phone_validations_on_dial_code_phone_number; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_phone_validations_on_dial_code_phone_number ON public.user_phone_number_validations USING btree (international_dial_code, phone_number); - - --- --- Name: index_user_preferences_on_gitpod_enabled; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_preferences_on_gitpod_enabled ON public.user_preferences USING btree (gitpod_enabled); - - --- --- Name: index_user_preferences_on_home_organization_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_preferences_on_home_organization_id ON public.user_preferences USING btree (home_organization_id); - - --- --- Name: index_user_preferences_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_user_preferences_on_user_id ON public.user_preferences USING btree (user_id); - - --- --- Name: index_user_project_callouts_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_project_callouts_on_project_id ON public.user_project_callouts USING btree (project_id); - - --- --- Name: index_user_statuses_on_clear_status_at_not_null; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_statuses_on_clear_status_at_not_null ON public.user_statuses USING btree (clear_status_at) WHERE (clear_status_at IS NOT NULL); - - --- --- Name: index_user_statuses_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_user_statuses_on_user_id ON public.user_statuses USING btree (user_id); - - --- --- Name: index_user_synced_attributes_metadata_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_user_synced_attributes_metadata_on_user_id ON public.user_synced_attributes_metadata USING btree (user_id); - - --- --- Name: index_users_for_active_billable_users; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_for_active_billable_users ON public.users USING btree (id) WHERE (((state)::text = 'active'::text) AND (user_type = ANY (ARRAY[0, 6, 4, 13])) AND (user_type = ANY (ARRAY[0, 4, 5]))); - - --- --- Name: index_users_for_auditors; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_for_auditors ON public.users USING btree (id) WHERE (auditor IS TRUE); - - --- --- Name: index_users_on_admin; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_admin ON public.users USING btree (admin); - - --- --- Name: index_users_on_confirmation_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_users_on_confirmation_token ON public.users USING btree (confirmation_token); - - --- --- Name: index_users_on_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_created_at ON public.users USING btree (created_at); - - --- --- Name: index_users_on_email; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_users_on_email ON public.users USING btree (email); - - --- --- Name: index_users_on_email_domain_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_email_domain_and_id ON public.users USING btree (lower(split_part((email)::text, '@'::text, 2)), id); - - --- --- Name: index_users_on_email_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_email_trigram ON public.users USING gin (email public.gin_trgm_ops); - - --- --- Name: index_users_on_feed_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_feed_token ON public.users USING btree (feed_token); - - --- --- Name: index_users_on_group_view; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_group_view ON public.users USING btree (group_view); - - --- --- Name: index_users_on_id_and_last_activity_on_for_active_human_service; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_id_and_last_activity_on_for_active_human_service ON public.users USING btree (id, last_activity_on) WHERE (((state)::text = 'active'::text) AND (user_type = ANY (ARRAY[0, 4]))); - - --- --- Name: index_users_on_incoming_email_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_incoming_email_token ON public.users USING btree (incoming_email_token); - - --- --- Name: index_users_on_managing_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_managing_group_id ON public.users USING btree (managing_group_id); - - --- --- Name: index_users_on_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_name ON public.users USING btree (name); - - --- --- Name: index_users_on_name_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_name_trigram ON public.users USING gin (name public.gin_trgm_ops); - - --- --- Name: index_users_on_public_email_excluding_null_and_empty; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_public_email_excluding_null_and_empty ON public.users USING btree (public_email) WHERE (((public_email)::text <> ''::text) AND (public_email IS NOT NULL)); - - --- --- Name: index_users_on_public_email_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_public_email_trigram ON public.users USING gin (public_email public.gin_trgm_ops); - - --- --- Name: index_users_on_reset_password_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_users_on_reset_password_token ON public.users USING btree (reset_password_token); - - --- --- Name: index_users_on_state_and_user_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_state_and_user_type ON public.users USING btree (state, user_type); - - --- --- Name: index_users_on_static_object_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_users_on_static_object_token ON public.users USING btree (static_object_token); - - --- --- Name: index_users_on_unconfirmed_created_at_active_type_sign_in_count; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_unconfirmed_created_at_active_type_sign_in_count ON public.users USING btree (created_at, id) WHERE ((confirmed_at IS NULL) AND ((state)::text = 'active'::text) AND (user_type = 0) AND (sign_in_count = 0)); - - --- --- Name: index_users_on_unconfirmed_email; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_unconfirmed_email ON public.users USING btree (unconfirmed_email) WHERE (unconfirmed_email IS NOT NULL); - - --- --- Name: index_users_on_unlock_token; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_users_on_unlock_token ON public.users USING btree (unlock_token); - - --- --- Name: index_users_on_updated_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_updated_at ON public.users USING btree (updated_at); - - --- --- Name: index_users_on_user_type_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_user_type_and_id ON public.users USING btree (user_type, id); - - --- --- Name: index_users_on_username; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_username ON public.users USING btree (username); - - --- --- Name: index_users_on_username_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_on_username_trigram ON public.users USING gin (username public.gin_trgm_ops); - - --- --- Name: index_users_ops_dashboard_projects_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_ops_dashboard_projects_on_project_id ON public.users_ops_dashboard_projects USING btree (project_id); - - --- --- Name: index_users_ops_dashboard_projects_on_user_id_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_users_ops_dashboard_projects_on_user_id_and_project_id ON public.users_ops_dashboard_projects USING btree (user_id, project_id); - - --- --- Name: index_users_security_dashboard_projects_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_security_dashboard_projects_on_user_id ON public.users_security_dashboard_projects USING btree (user_id); - - --- --- Name: index_users_star_projects_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_users_star_projects_on_project_id ON public.users_star_projects USING btree (project_id); - - --- --- Name: index_users_star_projects_on_user_id_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_users_star_projects_on_user_id_and_project_id ON public.users_star_projects USING btree (user_id, project_id); - - --- --- Name: index_verification_codes_on_phone_and_visitor_id_code; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_verification_codes_on_phone_and_visitor_id_code ON ONLY public.verification_codes USING btree (visitor_id_code, phone, created_at); - - --- --- Name: INDEX index_verification_codes_on_phone_and_visitor_id_code; Type: COMMENT; Schema: public; Owner: - --- - -COMMENT ON INDEX public.index_verification_codes_on_phone_and_visitor_id_code IS 'JiHu-specific index'; - - --- --- Name: index_virtual_reg_pkgs_maven_cached_responses_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_virtual_reg_pkgs_maven_cached_responses_on_group_id ON public.virtual_registries_packages_maven_cached_responses USING btree (group_id); - - --- --- Name: index_virtual_reg_pkgs_maven_reg_upstreams_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_virtual_reg_pkgs_maven_reg_upstreams_on_group_id ON public.virtual_registries_packages_maven_registry_upstreams USING btree (group_id); - - --- --- Name: index_virtual_reg_pkgs_maven_upstreams_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_virtual_reg_pkgs_maven_upstreams_on_group_id ON public.virtual_registries_packages_maven_upstreams USING btree (group_id); - - --- --- Name: index_vuln_findings_on_uuid_including_vuln_id_1; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_vuln_findings_on_uuid_including_vuln_id_1 ON public.vulnerability_occurrences USING btree (uuid) INCLUDE (vulnerability_id); - - --- --- Name: index_vuln_historical_statistics_on_project_id_and_date; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_vuln_historical_statistics_on_project_id_and_date ON public.vulnerability_historical_statistics USING btree (project_id, date); - - --- --- Name: index_vuln_namespace_historical_statistics_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vuln_namespace_historical_statistics_on_namespace_id ON public.vulnerability_namespace_historical_statistics USING btree (namespace_id); - - --- --- Name: index_vuln_namespace_historical_statistics_traversal_ids_date; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_vuln_namespace_historical_statistics_traversal_ids_date ON public.vulnerability_namespace_historical_statistics USING btree (traversal_ids, date); - - --- --- Name: index_vuln_reads_common_query_on_resolved_on_default_branch; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vuln_reads_common_query_on_resolved_on_default_branch ON public.vulnerability_reads USING btree (project_id, state, report_type, vulnerability_id DESC) WHERE (resolved_on_default_branch IS TRUE); - - --- --- Name: index_vuln_reads_on_casted_cluster_agent_id_where_it_is_null; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vuln_reads_on_casted_cluster_agent_id_where_it_is_null ON public.vulnerability_reads USING btree (casted_cluster_agent_id) WHERE (casted_cluster_agent_id IS NOT NULL); - - --- --- Name: index_vuln_reads_on_project_id_owasp_top_10; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vuln_reads_on_project_id_owasp_top_10 ON public.vulnerability_reads USING btree (project_id, owasp_top_10); - - --- --- Name: index_vuln_reads_on_project_id_state_severity_and_vuln_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vuln_reads_on_project_id_state_severity_and_vuln_id ON public.vulnerability_reads USING btree (project_id, state, severity, vulnerability_id DESC); - - --- --- Name: index_vulnerabilities_common_finder_query_on_default_branch; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerabilities_common_finder_query_on_default_branch ON public.vulnerabilities USING btree (project_id, state, report_type, present_on_default_branch, severity, id); - - --- --- Name: index_vulnerabilities_on_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerabilities_on_author_id ON public.vulnerabilities USING btree (author_id); - - --- --- Name: index_vulnerabilities_on_confirmed_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerabilities_on_confirmed_by_id ON public.vulnerabilities USING btree (confirmed_by_id); - - --- --- Name: index_vulnerabilities_on_detected_at_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerabilities_on_detected_at_and_id ON public.vulnerabilities USING btree (id, detected_at); - - --- --- Name: index_vulnerabilities_on_dismissed_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerabilities_on_dismissed_by_id ON public.vulnerabilities USING btree (dismissed_by_id); - - --- --- Name: index_vulnerabilities_on_finding_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerabilities_on_finding_id ON public.vulnerabilities USING btree (finding_id); - - --- --- Name: index_vulnerabilities_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerabilities_on_project_id_and_id ON public.vulnerabilities USING btree (project_id, id); - - --- --- Name: index_vulnerabilities_on_resolved_by_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerabilities_on_resolved_by_id ON public.vulnerabilities USING btree (resolved_by_id); - - --- --- Name: index_vulnerabilities_project_id_and_id_on_default_branch; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerabilities_project_id_and_id_on_default_branch ON public.vulnerabilities USING btree (project_id, id) WHERE (present_on_default_branch IS TRUE); - - --- --- Name: index_vulnerabilities_project_id_state_severity_default_branch; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerabilities_project_id_state_severity_default_branch ON public.vulnerabilities USING btree (project_id, state, severity, present_on_default_branch); - - --- --- Name: index_vulnerability_export_parts_on_organization_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_export_parts_on_organization_id ON public.vulnerability_export_parts USING btree (organization_id); - - --- --- Name: index_vulnerability_export_parts_on_vulnerability_export_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_export_parts_on_vulnerability_export_id ON public.vulnerability_export_parts USING btree (vulnerability_export_id); - - --- --- Name: index_vulnerability_exports_on_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_exports_on_author_id ON public.vulnerability_exports USING btree (author_id); - - --- --- Name: index_vulnerability_exports_on_file_store; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_exports_on_file_store ON public.vulnerability_exports USING btree (file_store); - - --- --- Name: index_vulnerability_exports_on_group_id_not_null; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_exports_on_group_id_not_null ON public.vulnerability_exports USING btree (group_id) WHERE (group_id IS NOT NULL); - - --- --- Name: index_vulnerability_exports_on_organization_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_exports_on_organization_id ON public.vulnerability_exports USING btree (organization_id); - - --- --- Name: index_vulnerability_exports_on_project_id_not_null; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_exports_on_project_id_not_null ON public.vulnerability_exports USING btree (project_id) WHERE (project_id IS NOT NULL); - - --- --- Name: index_vulnerability_external_issue_links_on_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_external_issue_links_on_author_id ON public.vulnerability_external_issue_links USING btree (author_id); - - --- --- Name: index_vulnerability_external_issue_links_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_external_issue_links_on_project_id ON public.vulnerability_external_issue_links USING btree (project_id); - - --- --- Name: index_vulnerability_feedback_finding_uuid; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_feedback_finding_uuid ON public.vulnerability_feedback USING hash (finding_uuid); - - --- --- Name: index_vulnerability_feedback_on_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_feedback_on_author_id ON public.vulnerability_feedback USING btree (author_id); - - --- --- Name: index_vulnerability_feedback_on_comment_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_feedback_on_comment_author_id ON public.vulnerability_feedback USING btree (comment_author_id); - - --- --- Name: index_vulnerability_feedback_on_common_attributes; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_feedback_on_common_attributes ON public.vulnerability_feedback USING btree (project_id, category, feedback_type, project_fingerprint); - - --- --- Name: index_vulnerability_feedback_on_feedback_type_and_finding_uuid; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_feedback_on_feedback_type_and_finding_uuid ON public.vulnerability_feedback USING btree (feedback_type, finding_uuid); - - --- --- Name: index_vulnerability_feedback_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_feedback_on_issue_id ON public.vulnerability_feedback USING btree (issue_id); - - --- --- Name: index_vulnerability_feedback_on_issue_id_not_null; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_feedback_on_issue_id_not_null ON public.vulnerability_feedback USING btree (id) WHERE (issue_id IS NOT NULL); - - --- --- Name: index_vulnerability_feedback_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_feedback_on_merge_request_id ON public.vulnerability_feedback USING btree (merge_request_id); - - --- --- Name: index_vulnerability_feedback_on_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_feedback_on_pipeline_id ON public.vulnerability_feedback USING btree (pipeline_id); - - --- --- Name: index_vulnerability_finding_evidences_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_finding_evidences_on_project_id ON public.vulnerability_finding_evidences USING btree (project_id); - - --- --- Name: index_vulnerability_finding_signatures_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_finding_signatures_on_project_id ON public.vulnerability_finding_signatures USING btree (project_id); - - --- --- Name: index_vulnerability_finding_signatures_on_signature_sha; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_finding_signatures_on_signature_sha ON public.vulnerability_finding_signatures USING btree (signature_sha); - - --- --- Name: index_vulnerability_findings_remediations_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_findings_remediations_on_project_id ON public.vulnerability_findings_remediations USING btree (project_id); - - --- --- Name: index_vulnerability_findings_remediations_on_remediation_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_findings_remediations_on_remediation_id ON public.vulnerability_findings_remediations USING btree (vulnerability_remediation_id); - - --- --- Name: index_vulnerability_findings_remediations_on_unique_keys; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_vulnerability_findings_remediations_on_unique_keys ON public.vulnerability_findings_remediations USING btree (vulnerability_occurrence_id, vulnerability_remediation_id); - - --- --- Name: index_vulnerability_flags_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_flags_on_project_id ON public.vulnerability_flags USING btree (project_id); - - --- --- Name: index_vulnerability_flags_on_unique_columns; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_vulnerability_flags_on_unique_columns ON public.vulnerability_flags USING btree (vulnerability_occurrence_id, flag_type, origin); - - --- --- Name: index_vulnerability_historical_statistics_on_date_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_historical_statistics_on_date_and_id ON public.vulnerability_historical_statistics USING btree (date, id); - - --- --- Name: index_vulnerability_identifiers_on_project_id_and_fingerprint; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_vulnerability_identifiers_on_project_id_and_fingerprint ON public.vulnerability_identifiers USING btree (project_id, fingerprint); - - --- --- Name: index_vulnerability_issue_links_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_issue_links_on_issue_id ON public.vulnerability_issue_links USING btree (issue_id); - - --- --- Name: index_vulnerability_issue_links_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_issue_links_on_project_id ON public.vulnerability_issue_links USING btree (project_id); - - --- --- Name: index_vulnerability_merge_request_links_on_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_merge_request_links_on_merge_request_id ON public.vulnerability_merge_request_links USING btree (merge_request_id); - - --- --- Name: index_vulnerability_merge_request_links_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_merge_request_links_on_project_id ON public.vulnerability_merge_request_links USING btree (project_id); - - --- --- Name: index_vulnerability_occurrence_identifiers_on_identifier_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_occurrence_identifiers_on_identifier_id ON public.vulnerability_occurrence_identifiers USING btree (identifier_id); - - --- --- Name: index_vulnerability_occurrence_identifiers_on_unique_keys; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_vulnerability_occurrence_identifiers_on_unique_keys ON public.vulnerability_occurrence_identifiers USING btree (occurrence_id, identifier_id); - - --- --- Name: index_vulnerability_occurrence_pipelines_occurrence_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_occurrence_pipelines_occurrence_id_and_id ON public.vulnerability_occurrence_pipelines USING btree (occurrence_id, id DESC); - - --- --- Name: index_vulnerability_occurrence_pipelines_on_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_occurrence_pipelines_on_pipeline_id ON public.vulnerability_occurrence_pipelines USING btree (pipeline_id); - - --- --- Name: index_vulnerability_occurrences_for_override_uuids_logic; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_occurrences_for_override_uuids_logic ON public.vulnerability_occurrences USING btree (project_id, report_type, location_fingerprint); - - --- --- Name: index_vulnerability_occurrences_on_initial_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_occurrences_on_initial_pipeline_id ON public.vulnerability_occurrences USING btree (initial_pipeline_id); - - --- --- Name: index_vulnerability_occurrences_on_latest_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_occurrences_on_latest_pipeline_id ON public.vulnerability_occurrences USING btree (latest_pipeline_id); - - --- --- Name: index_vulnerability_occurrences_on_location_image; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_occurrences_on_location_image ON public.vulnerability_occurrences USING gin (((location -> 'image'::text))) WHERE (report_type = ANY (ARRAY[2, 7])); - - --- --- Name: index_vulnerability_occurrences_on_location_k8s_agent_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_occurrences_on_location_k8s_agent_id ON public.vulnerability_occurrences USING gin ((((location -> 'kubernetes_resource'::text) -> 'agent_id'::text))) WHERE (report_type = 7); - - --- --- Name: index_vulnerability_occurrences_on_location_k8s_cluster_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_occurrences_on_location_k8s_cluster_id ON public.vulnerability_occurrences USING gin ((((location -> 'kubernetes_resource'::text) -> 'cluster_id'::text))) WHERE (report_type = 7); - - --- --- Name: index_vulnerability_occurrences_on_scanner_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_occurrences_on_scanner_id ON public.vulnerability_occurrences USING btree (scanner_id); - - --- --- Name: index_vulnerability_occurrences_on_uuid_1; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_vulnerability_occurrences_on_uuid_1 ON public.vulnerability_occurrences USING btree (uuid); - - --- --- Name: index_vulnerability_occurrences_on_vulnerability_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_occurrences_on_vulnerability_id ON public.vulnerability_occurrences USING btree (vulnerability_id); - - --- --- Name: index_vulnerability_occurrences_prim_iden_id_and_vuln_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_occurrences_prim_iden_id_and_vuln_id ON public.vulnerability_occurrences USING btree (primary_identifier_id, vulnerability_id); - - --- --- Name: index_vulnerability_reads_common_attrs_and_detection_for_groups; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_reads_common_attrs_and_detection_for_groups ON public.vulnerability_reads USING btree (resolved_on_default_branch, state, report_type, severity, traversal_ids, vulnerability_id) WHERE (archived = false); - - --- --- Name: index_vulnerability_reads_common_finder_query_2; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_reads_common_finder_query_2 ON public.vulnerability_reads USING btree (project_id, state, report_type, severity, vulnerability_id DESC, dismissal_reason); - - --- --- Name: index_vulnerability_reads_for_vulnerability_export; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_reads_for_vulnerability_export ON public.vulnerability_reads USING btree (traversal_ids, vulnerability_id) WHERE (archived = false); - - --- --- Name: index_vulnerability_reads_on_cluster_agent_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_reads_on_cluster_agent_id ON public.vulnerability_reads USING btree (cluster_agent_id) WHERE (report_type = 7); - - --- --- Name: index_vulnerability_reads_on_location_image; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_reads_on_location_image ON public.vulnerability_reads USING btree (location_image) WHERE (report_type = ANY (ARRAY[2, 7])); - - --- --- Name: index_vulnerability_reads_on_location_image_partial; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_reads_on_location_image_partial ON public.vulnerability_reads USING btree (project_id, location_image) WHERE ((report_type = ANY (ARRAY[2, 7])) AND (location_image IS NOT NULL)); - - --- --- Name: index_vulnerability_reads_on_location_image_trigram; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_reads_on_location_image_trigram ON public.vulnerability_reads USING gin (location_image public.gin_trgm_ops) WHERE ((report_type = ANY (ARRAY[2, 7])) AND (location_image IS NOT NULL)); - - --- --- Name: index_vulnerability_reads_on_project_id_and_vulnerability_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_reads_on_project_id_and_vulnerability_id ON public.vulnerability_reads USING btree (project_id, vulnerability_id); - - --- --- Name: index_vulnerability_reads_on_scanner_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_reads_on_scanner_id ON public.vulnerability_reads USING btree (scanner_id); - - --- --- Name: index_vulnerability_reads_on_uuid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_vulnerability_reads_on_uuid ON public.vulnerability_reads USING btree (uuid); - - --- --- Name: index_vulnerability_reads_on_uuid_project_id_and_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_reads_on_uuid_project_id_and_state ON public.vulnerability_reads USING btree (uuid, project_id, state); - - --- --- Name: index_vulnerability_reads_on_vulnerability_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_vulnerability_reads_on_vulnerability_id ON public.vulnerability_reads USING btree (vulnerability_id); - - --- --- Name: index_vulnerability_remediations_on_project_id_and_checksum; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_vulnerability_remediations_on_project_id_and_checksum ON public.vulnerability_remediations USING btree (project_id, checksum); - - --- --- Name: index_vulnerability_scanners_on_project_id_and_external_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_vulnerability_scanners_on_project_id_and_external_id ON public.vulnerability_scanners USING btree (project_id, external_id); - - --- --- Name: index_vulnerability_state_transitions_id_and_vulnerability_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_state_transitions_id_and_vulnerability_id ON public.vulnerability_state_transitions USING btree (vulnerability_id, id); - - --- --- Name: index_vulnerability_state_transitions_on_author_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_state_transitions_on_author_id ON public.vulnerability_state_transitions USING btree (author_id); - - --- --- Name: index_vulnerability_state_transitions_on_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_state_transitions_on_pipeline_id ON public.vulnerability_state_transitions USING btree (state_changed_at_pipeline_id); - - --- --- Name: index_vulnerability_state_transitions_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_state_transitions_on_project_id ON public.vulnerability_state_transitions USING btree (project_id); - - --- --- Name: index_vulnerability_statistics_on_latest_pipeline_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_statistics_on_latest_pipeline_id ON public.vulnerability_statistics USING btree (latest_pipeline_id); - - --- --- Name: index_vulnerability_statistics_on_letter_grade; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_statistics_on_letter_grade ON public.vulnerability_statistics USING btree (letter_grade); - - --- --- Name: index_vulnerability_statistics_on_unique_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_vulnerability_statistics_on_unique_project_id ON public.vulnerability_statistics USING btree (project_id); - - --- --- Name: index_vulnerability_user_mentions_on_note_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_vulnerability_user_mentions_on_note_id ON public.vulnerability_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); - - --- --- Name: index_vulnerability_user_mentions_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_vulnerability_user_mentions_on_project_id ON public.vulnerability_user_mentions USING btree (project_id); - - --- --- Name: index_vulns_user_mentions_on_vulnerability_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_vulns_user_mentions_on_vulnerability_id ON public.vulnerability_user_mentions USING btree (vulnerability_id) WHERE (note_id IS NULL); - - --- --- Name: index_vulns_user_mentions_on_vulnerability_id_and_note_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_vulns_user_mentions_on_vulnerability_id_and_note_id ON public.vulnerability_user_mentions USING btree (vulnerability_id, note_id); - - --- --- Name: index_web_hook_logs_on_web_hook_id_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_web_hook_logs_on_web_hook_id_and_created_at ON ONLY public.web_hook_logs USING btree (web_hook_id, created_at); - - --- --- Name: index_web_hook_logs_part_on_created_at_and_web_hook_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_web_hook_logs_part_on_created_at_and_web_hook_id ON ONLY public.web_hook_logs USING btree (created_at, web_hook_id); - - --- --- Name: index_web_hooks_on_group_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_web_hooks_on_group_id ON public.web_hooks USING btree (group_id) WHERE ((type)::text = 'GroupHook'::text); - - --- --- Name: index_web_hooks_on_integration_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_web_hooks_on_integration_id ON public.web_hooks USING btree (integration_id); - - --- --- Name: index_web_hooks_on_project_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_web_hooks_on_project_id_and_id ON public.web_hooks USING btree (project_id, id) WHERE ((type)::text = 'ProjectHook'::text); - - --- --- Name: index_web_hooks_on_project_id_recent_failures; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_web_hooks_on_project_id_recent_failures ON public.web_hooks USING btree (project_id, recent_failures); - - --- --- Name: index_web_hooks_on_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_web_hooks_on_type ON public.web_hooks USING btree (type); - - --- --- Name: index_webauthn_registrations_on_credential_xid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_webauthn_registrations_on_credential_xid ON public.webauthn_registrations USING btree (credential_xid); - - --- --- Name: index_webauthn_registrations_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_webauthn_registrations_on_user_id ON public.webauthn_registrations USING btree (user_id); - - --- --- Name: index_wiki_page_meta_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_wiki_page_meta_on_project_id ON public.wiki_page_meta USING btree (project_id); - - --- --- Name: index_wiki_page_slugs_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_wiki_page_slugs_on_project_id ON public.wiki_page_slugs USING btree (project_id); - - --- --- Name: index_wiki_page_slugs_on_slug_and_wiki_page_meta_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_wiki_page_slugs_on_slug_and_wiki_page_meta_id ON public.wiki_page_slugs USING btree (slug, wiki_page_meta_id); - - --- --- Name: index_wiki_page_slugs_on_wiki_page_meta_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_wiki_page_slugs_on_wiki_page_meta_id ON public.wiki_page_slugs USING btree (wiki_page_meta_id); - - --- --- Name: index_wiki_repository_states_failed_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_wiki_repository_states_failed_verification ON public.wiki_repository_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); - - --- --- Name: index_wiki_repository_states_needs_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_wiki_repository_states_needs_verification ON public.wiki_repository_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); - - --- --- Name: index_wiki_repository_states_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_wiki_repository_states_on_project_id ON public.wiki_repository_states USING btree (project_id); - - --- --- Name: index_wiki_repository_states_on_project_wiki_repository_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_wiki_repository_states_on_project_wiki_repository_id ON public.wiki_repository_states USING btree (project_wiki_repository_id); - - --- --- Name: index_wiki_repository_states_on_verification_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_wiki_repository_states_on_verification_state ON public.wiki_repository_states USING btree (verification_state); - - --- --- Name: index_wiki_repository_states_pending_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_wiki_repository_states_pending_verification ON public.wiki_repository_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); - - --- --- Name: index_work_item_hierarchy_restrictions_on_child_type_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_work_item_hierarchy_restrictions_on_child_type_id ON public.work_item_hierarchy_restrictions USING btree (child_type_id); - - --- --- Name: index_work_item_hierarchy_restrictions_on_parent_and_child; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_work_item_hierarchy_restrictions_on_parent_and_child ON public.work_item_hierarchy_restrictions USING btree (parent_type_id, child_type_id); - - --- --- Name: index_work_item_hierarchy_restrictions_on_parent_type_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_work_item_hierarchy_restrictions_on_parent_type_id ON public.work_item_hierarchy_restrictions USING btree (parent_type_id); - - --- --- Name: index_work_item_link_restrictions_on_source_link_type_target; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_work_item_link_restrictions_on_source_link_type_target ON public.work_item_related_link_restrictions USING btree (source_type_id, link_type, target_type_id); - - --- --- Name: index_work_item_parent_links_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_work_item_parent_links_on_namespace_id ON public.work_item_parent_links USING btree (namespace_id); - - --- --- Name: index_work_item_parent_links_on_work_item_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_work_item_parent_links_on_work_item_id ON public.work_item_parent_links USING btree (work_item_id); - - --- --- Name: index_work_item_parent_links_on_work_item_parent_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_work_item_parent_links_on_work_item_parent_id ON public.work_item_parent_links USING btree (work_item_parent_id); - - --- --- Name: index_work_item_related_link_restrictions_on_target_type_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_work_item_related_link_restrictions_on_target_type_id ON public.work_item_related_link_restrictions USING btree (target_type_id); - - --- --- Name: index_work_item_types_on_base_type_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_work_item_types_on_base_type_and_id ON public.work_item_types USING btree (base_type, id); - - --- --- Name: index_work_item_types_on_name_unique; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_work_item_types_on_name_unique ON public.work_item_types USING btree (TRIM(BOTH FROM lower(name))); - - --- --- Name: index_work_item_widget_definitions_on_type_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_work_item_widget_definitions_on_type_id_and_name ON public.work_item_widget_definitions USING btree (work_item_type_id, TRIM(BOTH FROM lower(name))); - - --- --- Name: index_work_item_widget_definitions_on_work_item_type_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_work_item_widget_definitions_on_work_item_type_id ON public.work_item_widget_definitions USING btree (work_item_type_id); - - --- --- Name: index_workspace_variables_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_workspace_variables_on_project_id ON public.workspace_variables USING btree (project_id); - - --- --- Name: index_workspace_variables_on_workspace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_workspace_variables_on_workspace_id ON public.workspace_variables USING btree (workspace_id); - - --- --- Name: index_workspaces_agent_configs_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_workspaces_agent_configs_on_project_id ON public.workspaces_agent_configs USING btree (project_id); - - --- --- Name: index_workspaces_agent_configs_on_unique_cluster_agent_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_workspaces_agent_configs_on_unique_cluster_agent_id ON public.workspaces_agent_configs USING btree (cluster_agent_id); - - --- --- Name: index_workspaces_on_cluster_agent_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_workspaces_on_cluster_agent_id ON public.workspaces USING btree (cluster_agent_id); - - --- --- Name: index_workspaces_on_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_workspaces_on_name ON public.workspaces USING btree (name); - - --- --- Name: index_workspaces_on_personal_access_token_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_workspaces_on_personal_access_token_id ON public.workspaces USING btree (personal_access_token_id); - - --- --- Name: index_workspaces_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_workspaces_on_project_id ON public.workspaces USING btree (project_id); - - --- --- Name: index_workspaces_on_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_workspaces_on_user_id ON public.workspaces USING btree (user_id); - - --- --- Name: index_x509_certificates_on_subject_key_identifier; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_x509_certificates_on_subject_key_identifier ON public.x509_certificates USING btree (subject_key_identifier); - - --- --- Name: index_x509_certificates_on_x509_issuer_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_x509_certificates_on_x509_issuer_id ON public.x509_certificates USING btree (x509_issuer_id); - - --- --- Name: index_x509_commit_signatures_on_commit_sha; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_x509_commit_signatures_on_commit_sha ON public.x509_commit_signatures USING btree (commit_sha); - - --- --- Name: index_x509_commit_signatures_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_x509_commit_signatures_on_project_id ON public.x509_commit_signatures USING btree (project_id); - - --- --- Name: index_x509_commit_signatures_on_x509_certificate_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_x509_commit_signatures_on_x509_certificate_id ON public.x509_commit_signatures USING btree (x509_certificate_id); - - --- --- Name: index_x509_issuers_on_subject_key_identifier; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_x509_issuers_on_subject_key_identifier ON public.x509_issuers USING btree (subject_key_identifier); - - --- --- Name: index_xray_reports_on_project_id_and_lang; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_xray_reports_on_project_id_and_lang ON public.xray_reports USING btree (project_id, lang); - - --- --- Name: index_zentao_tracker_data_on_integration_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_zentao_tracker_data_on_integration_id ON public.zentao_tracker_data USING btree (integration_id); - - --- --- Name: index_zoekt_indices_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_zoekt_indices_on_namespace_id ON public.zoekt_indices USING btree (namespace_id, zoekt_enabled_namespace_id); - - --- --- Name: index_zoekt_indices_on_replica_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_zoekt_indices_on_replica_id ON public.zoekt_indices USING btree (zoekt_replica_id); - - --- --- Name: index_zoekt_indices_on_state_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_zoekt_indices_on_state_and_id ON public.zoekt_indices USING btree (state, id); - - --- --- Name: index_zoekt_indices_on_zoekt_node_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_zoekt_indices_on_zoekt_node_id_and_id ON public.zoekt_indices USING btree (zoekt_node_id, id); - - --- --- Name: index_zoekt_nodes_on_last_seen_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_zoekt_nodes_on_last_seen_at ON public.zoekt_nodes USING btree (last_seen_at); - - --- --- Name: index_zoekt_nodes_on_uuid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_zoekt_nodes_on_uuid ON public.zoekt_nodes USING btree (uuid); - - --- --- Name: index_zoekt_replicas_on_enabled_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_zoekt_replicas_on_enabled_namespace_id ON public.zoekt_replicas USING btree (zoekt_enabled_namespace_id); - - --- --- Name: index_zoekt_replicas_on_namespace_id_enabled_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_zoekt_replicas_on_namespace_id_enabled_namespace_id ON public.zoekt_replicas USING btree (namespace_id, zoekt_enabled_namespace_id); - - --- --- Name: index_zoekt_replicas_on_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_zoekt_replicas_on_state ON public.zoekt_replicas USING btree (state); - - --- --- Name: index_zoekt_repositories_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_zoekt_repositories_on_project_id ON public.zoekt_repositories USING btree (project_id); - - --- --- Name: index_zoekt_repositories_on_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_zoekt_repositories_on_state ON public.zoekt_repositories USING btree (state); - - --- --- Name: index_zoekt_shards_on_index_base_url; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_zoekt_shards_on_index_base_url ON public.zoekt_shards USING btree (index_base_url); - - --- --- Name: index_zoekt_shards_on_last_seen_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_zoekt_shards_on_last_seen_at ON public.zoekt_shards USING btree (last_seen_at); - - --- --- Name: index_zoekt_shards_on_search_base_url; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_zoekt_shards_on_search_base_url ON public.zoekt_shards USING btree (search_base_url); - - --- --- Name: index_zoekt_tasks_on_state; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_zoekt_tasks_on_state ON ONLY public.zoekt_tasks USING btree (state); - - --- --- Name: index_zoekt_tasks_on_zoekt_node_id_and_state_and_perform_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_zoekt_tasks_on_zoekt_node_id_and_state_and_perform_at ON ONLY public.zoekt_tasks USING btree (zoekt_node_id, state, perform_at); - - --- --- Name: index_zoekt_tasks_on_zoekt_repository_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_zoekt_tasks_on_zoekt_repository_id ON ONLY public.zoekt_tasks USING btree (zoekt_repository_id); - - --- --- Name: index_zoom_meetings_on_issue_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_zoom_meetings_on_issue_id ON public.zoom_meetings USING btree (issue_id); - - --- --- Name: index_zoom_meetings_on_issue_id_and_issue_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX index_zoom_meetings_on_issue_id_and_issue_status ON public.zoom_meetings USING btree (issue_id, issue_status) WHERE (issue_status = 1); - - --- --- Name: index_zoom_meetings_on_issue_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_zoom_meetings_on_issue_status ON public.zoom_meetings USING btree (issue_status); - - --- --- Name: index_zoom_meetings_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX index_zoom_meetings_on_project_id ON public.zoom_meetings USING btree (project_id); - - --- --- Name: issue_id_issues_prometheus_alert_events_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX issue_id_issues_prometheus_alert_events_index ON public.issues_prometheus_alert_events USING btree (prometheus_alert_event_id); - - --- --- Name: issue_id_issues_self_managed_rometheus_alert_events_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX issue_id_issues_self_managed_rometheus_alert_events_index ON public.issues_self_managed_prometheus_alert_events USING btree (self_managed_prometheus_alert_event_id); - - --- --- Name: issue_user_mentions_on_issue_id_and_note_id_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX issue_user_mentions_on_issue_id_and_note_id_index ON public.issue_user_mentions USING btree (issue_id, note_id); - - --- --- Name: issue_user_mentions_on_issue_id_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX issue_user_mentions_on_issue_id_index ON public.issue_user_mentions USING btree (issue_id) WHERE (note_id IS NULL); - - --- --- Name: kubernetes_namespaces_cluster_and_namespace; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX kubernetes_namespaces_cluster_and_namespace ON public.clusters_kubernetes_namespaces USING btree (cluster_id, namespace); - - --- --- Name: merge_request_user_mentions_on_mr_id_and_note_id_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX merge_request_user_mentions_on_mr_id_and_note_id_index ON public.merge_request_user_mentions USING btree (merge_request_id, note_id); - - --- --- Name: merge_request_user_mentions_on_mr_id_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX merge_request_user_mentions_on_mr_id_index ON public.merge_request_user_mentions USING btree (merge_request_id) WHERE (note_id IS NULL); - - --- --- Name: one_canonical_wiki_page_slug_per_metadata; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX one_canonical_wiki_page_slug_per_metadata ON public.wiki_page_slugs USING btree (wiki_page_meta_id) WHERE (canonical = true); - - --- --- Name: p_ci_builds_scheduled_at_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_builds_scheduled_at_idx ON ONLY public.p_ci_builds USING btree (scheduled_at) WHERE ((scheduled_at IS NOT NULL) AND ((type)::text = 'Ci::Build'::text) AND ((status)::text = 'scheduled'::text)); - - --- --- Name: p_ci_builds_token_encrypted_partition_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX p_ci_builds_token_encrypted_partition_id_idx ON ONLY public.p_ci_builds USING btree (token_encrypted, partition_id) WHERE (token_encrypted IS NOT NULL); - - --- --- Name: p_ci_job_artifacts_expire_at_job_id_idx1; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX p_ci_job_artifacts_expire_at_job_id_idx1 ON ONLY public.p_ci_job_artifacts USING btree (expire_at, job_id) WHERE ((locked = 2) AND (expire_at IS NOT NULL)); - - --- --- Name: package_name_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX package_name_index ON public.packages_packages USING btree (name); - - --- --- Name: packages_packages_failed_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX packages_packages_failed_verification ON public.packages_package_files USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); - - --- --- Name: packages_packages_needs_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX packages_packages_needs_verification ON public.packages_package_files USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); - - --- --- Name: packages_packages_pending_verification; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX packages_packages_pending_verification ON public.packages_package_files USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); - - --- --- Name: pages_deployments_deleted_at_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX pages_deployments_deleted_at_index ON public.pages_deployments USING btree (id, project_id, path_prefix) WHERE (deleted_at IS NULL); - - --- --- Name: partial_idx_bulk_import_exports_on_group_user_and_relation; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX partial_idx_bulk_import_exports_on_group_user_and_relation ON public.bulk_import_exports USING btree (group_id, relation, user_id) WHERE ((group_id IS NOT NULL) AND (user_id IS NOT NULL)); - - --- --- Name: partial_idx_bulk_import_exports_on_project_user_and_relation; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX partial_idx_bulk_import_exports_on_project_user_and_relation ON public.bulk_import_exports USING btree (project_id, relation, user_id) WHERE ((project_id IS NOT NULL) AND (user_id IS NOT NULL)); - - --- --- Name: partial_index_ci_builds_on_scheduled_at_with_scheduled_jobs; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX partial_index_ci_builds_on_scheduled_at_with_scheduled_jobs ON public.ci_builds USING btree (scheduled_at) WHERE ((scheduled_at IS NOT NULL) AND ((type)::text = 'Ci::Build'::text) AND ((status)::text = 'scheduled'::text)); - - --- --- Name: partial_index_slack_integrations_with_bot_user_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX partial_index_slack_integrations_with_bot_user_id ON public.slack_integrations USING btree (id) WHERE (bot_user_id IS NOT NULL); - - --- --- Name: partial_index_sop_configs_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX partial_index_sop_configs_on_namespace_id ON public.security_orchestration_policy_configurations USING btree (namespace_id) WHERE (namespace_id IS NOT NULL); - - --- --- Name: partial_index_sop_configs_on_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX partial_index_sop_configs_on_project_id ON public.security_orchestration_policy_configurations USING btree (project_id) WHERE (project_id IS NOT NULL); - - --- --- Name: partial_index_user_id_app_id_created_at_token_not_revoked; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX partial_index_user_id_app_id_created_at_token_not_revoked ON public.oauth_access_tokens USING btree (resource_owner_id, application_id, created_at) WHERE (revoked_at IS NULL); - - --- --- Name: pm_checkpoints_path_components; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX pm_checkpoints_path_components ON public.pm_checkpoints USING btree (purl_type, data_type, version_format); - - --- --- Name: releases_published_at_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX releases_published_at_index ON public.releases USING btree (release_published_at); - - --- --- Name: scan_finding_approval_mr_rule_index_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX scan_finding_approval_mr_rule_index_id ON public.approval_merge_request_rules USING btree (id) WHERE (report_type = 4); - - --- --- Name: scan_finding_approval_mr_rule_index_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX scan_finding_approval_mr_rule_index_merge_request_id ON public.approval_merge_request_rules USING btree (merge_request_id) WHERE (report_type = 4); - - --- --- Name: scan_finding_approval_mr_rule_index_mr_id_and_created_at; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX scan_finding_approval_mr_rule_index_mr_id_and_created_at ON public.approval_merge_request_rules USING btree (merge_request_id, created_at) WHERE (report_type = 4); - - --- --- Name: scan_finding_approval_project_rule_index_created_at_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX scan_finding_approval_project_rule_index_created_at_project_id ON public.approval_project_rules USING btree (created_at, project_id) WHERE (report_type = 4); - - --- --- Name: scan_finding_approval_project_rule_index_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX scan_finding_approval_project_rule_index_project_id ON public.approval_project_rules USING btree (project_id) WHERE (report_type = 4); - - --- --- Name: security_findings_project_fingerprint_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX security_findings_project_fingerprint_idx ON ONLY public.security_findings USING btree (project_fingerprint); - - --- --- Name: security_findings_scan_id_deduplicated_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX security_findings_scan_id_deduplicated_idx ON ONLY public.security_findings USING btree (scan_id, deduplicated); - - --- --- Name: security_findings_scan_id_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX security_findings_scan_id_id_idx ON ONLY public.security_findings USING btree (scan_id, id); - - --- --- Name: security_findings_scanner_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX security_findings_scanner_id_idx ON ONLY public.security_findings USING btree (scanner_id); - - --- --- Name: security_findings_severity_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX security_findings_severity_idx ON ONLY public.security_findings USING btree (severity); - - --- --- Name: security_findings_uuid_scan_id_partition_number_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX security_findings_uuid_scan_id_partition_number_idx ON ONLY public.security_findings USING btree (uuid, scan_id, partition_number); - - --- --- Name: snippet_user_mentions_on_snippet_id_and_note_id_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX snippet_user_mentions_on_snippet_id_and_note_id_index ON public.snippet_user_mentions USING btree (snippet_id, note_id); - - --- --- Name: snippet_user_mentions_on_snippet_id_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX snippet_user_mentions_on_snippet_id_index ON public.snippet_user_mentions USING btree (snippet_id) WHERE (note_id IS NULL); - - --- --- Name: taggings_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX taggings_idx ON public.taggings USING btree (tag_id, taggable_id, taggable_type, context, tagger_id, tagger_type); - - --- --- Name: temp_index_on_users_where_dark_theme; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX temp_index_on_users_where_dark_theme ON public.users USING btree (id) WHERE (theme_id = 11); - - --- --- Name: term_agreements_unique_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX term_agreements_unique_index ON public.term_agreements USING btree (user_id, term_id); - - --- --- Name: tmp_idx_for_feedback_comment_processing; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX tmp_idx_for_feedback_comment_processing ON public.vulnerability_feedback USING btree (id) WHERE (char_length(comment) > 50000); - - --- --- Name: tmp_idx_for_vulnerability_feedback_migration; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX tmp_idx_for_vulnerability_feedback_migration ON public.vulnerability_feedback USING btree (id) WHERE ((migrated_to_state_transition = false) AND (feedback_type = 0)); - - --- --- Name: tmp_idx_orphaned_approval_merge_request_rules; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX tmp_idx_orphaned_approval_merge_request_rules ON public.approval_merge_request_rules USING btree (id) WHERE ((report_type = ANY (ARRAY[2, 4])) AND (security_orchestration_policy_configuration_id IS NULL)); - - --- --- Name: tmp_idx_orphaned_approval_project_rules; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX tmp_idx_orphaned_approval_project_rules ON public.approval_project_rules USING btree (id) WHERE ((report_type = ANY (ARRAY[2, 4])) AND (security_orchestration_policy_configuration_id IS NULL)); - - --- --- Name: tmp_idx_packages_dependencies_on_name_version_pattern; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX tmp_idx_packages_dependencies_on_name_version_pattern ON public.packages_dependencies USING btree (name, version_pattern) WHERE (project_id IS NULL); - - --- --- Name: tmp_index_ci_job_artifacts_on_expire_at_where_locked_unknown; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX tmp_index_ci_job_artifacts_on_expire_at_where_locked_unknown ON public.ci_job_artifacts USING btree (expire_at, job_id) WHERE ((locked = 2) AND (expire_at IS NOT NULL)); - - --- --- Name: tmp_index_for_null_member_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX tmp_index_for_null_member_namespace_id ON public.members USING btree (member_namespace_id) WHERE (member_namespace_id IS NULL); - - --- --- Name: tmp_index_for_owasp_null_on_vulnerability_reads; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX tmp_index_for_owasp_null_on_vulnerability_reads ON public.vulnerability_reads USING btree (vulnerability_id) WHERE (owasp_top_10 IS NULL); - - --- --- Name: tmp_index_for_project_namespace_id_migration_on_routes; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX tmp_index_for_project_namespace_id_migration_on_routes ON public.routes USING btree (id) WHERE ((namespace_id IS NULL) AND ((source_type)::text = 'Project'::text)); - - --- --- Name: tmp_index_for_succeeded_security_scans; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX tmp_index_for_succeeded_security_scans ON public.security_scans USING btree (id) WHERE (status = 1); - - --- --- Name: tmp_index_issues_on_tmp_epic_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX tmp_index_issues_on_tmp_epic_id ON public.issues USING btree (tmp_epic_id); - - --- --- Name: tmp_index_on_vulnerabilities_non_dismissed; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX tmp_index_on_vulnerabilities_non_dismissed ON public.vulnerabilities USING btree (id) WHERE (state <> 2); - - --- --- Name: tmp_index_project_statistics_cont_registry_size; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX tmp_index_project_statistics_cont_registry_size ON public.project_statistics USING btree (project_id) WHERE (container_registry_size = 0); - - --- --- Name: tmp_index_vulnerability_overlong_title_html; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX tmp_index_vulnerability_overlong_title_html ON public.vulnerabilities USING btree (id) WHERE (length(title_html) > 800); - - --- --- Name: tmp_index_vulnerability_reads_where_state_is_detected; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX tmp_index_vulnerability_reads_where_state_is_detected ON public.vulnerability_reads USING btree (id) WHERE (state = 1); - - --- --- Name: u_compliance_checks_for_requirement; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX u_compliance_checks_for_requirement ON public.compliance_checks USING btree (requirement_id, check_name); - - --- --- Name: u_compliance_requirements_for_framework; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX u_compliance_requirements_for_framework ON public.compliance_requirements USING btree (framework_id, name); - - --- --- Name: u_project_compliance_standards_adherence_for_reporting; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX u_project_compliance_standards_adherence_for_reporting ON public.project_compliance_standards_adherence USING btree (project_id, check_name, standard); - - --- --- Name: u_zoekt_indices_zoekt_enabled_namespace_id_and_zoekt_node_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX u_zoekt_indices_zoekt_enabled_namespace_id_and_zoekt_node_id ON public.zoekt_indices USING btree (zoekt_enabled_namespace_id, zoekt_node_id); - - --- --- Name: u_zoekt_repositories_zoekt_index_id_and_project_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX u_zoekt_repositories_zoekt_index_id_and_project_id ON public.zoekt_repositories USING btree (zoekt_index_id, project_id); - - --- --- Name: uniq_audit_group_event_filters_destination_id_and_event_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX uniq_audit_group_event_filters_destination_id_and_event_type ON public.audit_events_group_streaming_event_type_filters USING btree (external_streaming_destination_id, audit_event_type); - - --- --- Name: uniq_audit_instance_event_filters_destination_id_and_event_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX uniq_audit_instance_event_filters_destination_id_and_event_type ON public.audit_events_instance_streaming_event_type_filters USING btree (external_streaming_destination_id, audit_event_type); - - --- --- Name: uniq_google_cloud_logging_configuration_namespace_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX uniq_google_cloud_logging_configuration_namespace_id_and_name ON public.audit_events_google_cloud_logging_configurations USING btree (namespace_id, name); - - --- --- Name: uniq_idx_packages_packages_on_project_id_name_version_ml_model; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX uniq_idx_packages_packages_on_project_id_name_version_ml_model ON public.packages_packages USING btree (project_id, name, version) WHERE ((package_type = 14) AND (status <> 4)); - - --- --- Name: uniq_idx_project_compliance_framework_on_project_framework; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX uniq_idx_project_compliance_framework_on_project_framework ON public.project_compliance_framework_settings USING btree (project_id, framework_id); - - --- --- Name: uniq_idx_security_policy_requirements_on_requirement_and_policy; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX uniq_idx_security_policy_requirements_on_requirement_and_policy ON public.security_policy_requirements USING btree (compliance_framework_security_policy_id, compliance_requirement_id); - - --- --- Name: uniq_idx_streaming_destination_id_and_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX uniq_idx_streaming_destination_id_and_namespace_id ON public.audit_events_streaming_instance_namespace_filters USING btree (external_streaming_destination_id, namespace_id); - - --- --- Name: uniq_idx_streaming_group_destination_id_and_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX uniq_idx_streaming_group_destination_id_and_namespace_id ON public.audit_events_streaming_group_namespace_filters USING btree (external_streaming_destination_id, namespace_id); - - --- --- Name: uniq_idx_user_add_on_assignments_on_add_on_purchase_and_user; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX uniq_idx_user_add_on_assignments_on_add_on_purchase_and_user ON public.subscription_user_add_on_assignments USING btree (add_on_purchase_id, user_id); - - --- --- Name: uniq_pkgs_deb_grp_architectures_on_distribution_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX uniq_pkgs_deb_grp_architectures_on_distribution_id_and_name ON public.packages_debian_group_architectures USING btree (distribution_id, name); - - --- --- Name: uniq_pkgs_deb_grp_components_on_distribution_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX uniq_pkgs_deb_grp_components_on_distribution_id_and_name ON public.packages_debian_group_components USING btree (distribution_id, name); - - --- --- Name: uniq_pkgs_deb_proj_architectures_on_distribution_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX uniq_pkgs_deb_proj_architectures_on_distribution_id_and_name ON public.packages_debian_project_architectures USING btree (distribution_id, name); - - --- --- Name: uniq_pkgs_deb_proj_components_on_distribution_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX uniq_pkgs_deb_proj_components_on_distribution_id_and_name ON public.packages_debian_project_components USING btree (distribution_id, name); - - --- --- Name: uniq_pkgs_debian_group_distributions_group_id_and_codename; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX uniq_pkgs_debian_group_distributions_group_id_and_codename ON public.packages_debian_group_distributions USING btree (group_id, codename); - - --- --- Name: uniq_pkgs_debian_group_distributions_group_id_and_suite; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX uniq_pkgs_debian_group_distributions_group_id_and_suite ON public.packages_debian_group_distributions USING btree (group_id, suite); - - --- --- Name: uniq_pkgs_debian_project_distributions_project_id_and_codename; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX uniq_pkgs_debian_project_distributions_project_id_and_codename ON public.packages_debian_project_distributions USING btree (project_id, codename); - - --- --- Name: uniq_pkgs_debian_project_distributions_project_id_and_suite; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX uniq_pkgs_debian_project_distributions_project_id_and_suite ON public.packages_debian_project_distributions USING btree (project_id, suite); - - --- --- Name: unique_amazon_s3_configurations_namespace_id_and_bucket_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_amazon_s3_configurations_namespace_id_and_bucket_name ON public.audit_events_amazon_s3_configurations USING btree (namespace_id, bucket_name); - - --- --- Name: unique_amazon_s3_configurations_namespace_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_amazon_s3_configurations_namespace_id_and_name ON public.audit_events_amazon_s3_configurations USING btree (namespace_id, name); - - --- --- Name: unique_any_approver_merge_request_rule_type_post_merge; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_any_approver_merge_request_rule_type_post_merge ON public.approval_merge_request_rules USING btree (merge_request_id, rule_type, applicable_post_merge) WHERE (rule_type = 4); - - --- --- Name: unique_audit_events_group_namespace_filters_destination_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_audit_events_group_namespace_filters_destination_id ON public.audit_events_streaming_http_group_namespace_filters USING btree (external_audit_event_destination_id); - - --- --- Name: unique_audit_events_group_namespace_filters_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_audit_events_group_namespace_filters_namespace_id ON public.audit_events_streaming_http_group_namespace_filters USING btree (namespace_id); - - --- --- Name: unique_audit_events_instance_namespace_filters_destination_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_audit_events_instance_namespace_filters_destination_id ON public.audit_events_streaming_http_instance_namespace_filters USING btree (audit_events_instance_external_audit_event_destination_id); - - --- --- Name: unique_batched_background_migrations_queued_migration_version; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_batched_background_migrations_queued_migration_version ON public.batched_background_migrations USING btree (queued_migration_version); - - --- --- Name: unique_ci_builds_token_encrypted_and_partition_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_ci_builds_token_encrypted_and_partition_id ON public.ci_builds USING btree (token_encrypted, partition_id) WHERE (token_encrypted IS NOT NULL); - - --- --- Name: unique_compliance_framework_security_policies_framework_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_compliance_framework_security_policies_framework_id ON public.compliance_framework_security_policies USING btree (framework_id, policy_configuration_id, policy_index); - - --- --- Name: unique_external_audit_event_destination_namespace_id_and_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_external_audit_event_destination_namespace_id_and_name ON public.audit_events_external_audit_event_destinations USING btree (namespace_id, name); - - --- --- Name: unique_google_cloud_logging_configurations_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_google_cloud_logging_configurations_on_namespace_id ON public.audit_events_google_cloud_logging_configurations USING btree (namespace_id, google_project_id_name, log_id_name); - - --- --- Name: unique_idx_member_approvals_on_pending_status; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_idx_member_approvals_on_pending_status ON public.member_approvals USING btree (user_id, member_namespace_id) WHERE (status = 0); - - --- --- Name: unique_idx_namespaces_storage_limit_exclusions_on_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_idx_namespaces_storage_limit_exclusions_on_namespace_id ON public.namespaces_storage_limit_exclusions USING btree (namespace_id); - - --- --- Name: unique_import_source_users_on_reassign_to_user_id_and_import; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_import_source_users_on_reassign_to_user_id_and_import ON public.import_source_users USING btree (reassign_to_user_id, namespace_id, source_hostname, import_type); - - --- --- Name: unique_import_source_users_source_identifier_and_import_source; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_import_source_users_source_identifier_and_import_source ON public.import_source_users USING btree (source_user_identifier, namespace_id, source_hostname, import_type); - - --- --- Name: unique_index_ci_build_pending_states_on_partition_id_build_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_index_ci_build_pending_states_on_partition_id_build_id ON public.ci_build_pending_states USING btree (partition_id, build_id); - - --- --- Name: unique_index_for_credit_card_validation_payment_method_xid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_index_for_credit_card_validation_payment_method_xid ON public.user_credit_card_validations USING btree (zuora_payment_method_xid) WHERE (zuora_payment_method_xid IS NOT NULL); - - --- --- Name: unique_index_for_project_pages_unique_domain; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_index_for_project_pages_unique_domain ON public.project_settings USING btree (pages_unique_domain) WHERE (pages_unique_domain IS NOT NULL); - - --- --- Name: unique_index_ml_model_metadata_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_index_ml_model_metadata_name ON public.ml_model_metadata USING btree (model_id, name); - - --- --- Name: unique_index_ml_model_version_metadata_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_index_ml_model_version_metadata_name ON public.ml_model_version_metadata USING btree (model_version_id, name); - - --- --- Name: unique_index_on_system_note_metadata_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_index_on_system_note_metadata_id ON public.resource_link_events USING btree (system_note_metadata_id); - - --- --- Name: unique_index_sysaccess_ms_access_tokens_on_sysaccess_ms_app_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_index_sysaccess_ms_access_tokens_on_sysaccess_ms_app_id ON public.system_access_microsoft_graph_access_tokens USING btree (system_access_microsoft_application_id); - - --- --- Name: unique_instance_amazon_s3_configurations_bucket_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_instance_amazon_s3_configurations_bucket_name ON public.audit_events_instance_amazon_s3_configurations USING btree (bucket_name); - - --- --- Name: unique_instance_amazon_s3_configurations_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_instance_amazon_s3_configurations_name ON public.audit_events_instance_amazon_s3_configurations USING btree (name); - - --- --- Name: unique_instance_audit_event_destination_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_instance_audit_event_destination_name ON public.audit_events_instance_external_audit_event_destinations USING btree (name); - - --- --- Name: unique_instance_google_cloud_logging_configurations; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_instance_google_cloud_logging_configurations ON public.audit_events_instance_google_cloud_logging_configurations USING btree (google_project_id_name, log_id_name); - - --- --- Name: unique_instance_google_cloud_logging_configurations_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_instance_google_cloud_logging_configurations_name ON public.audit_events_instance_google_cloud_logging_configurations USING btree (name); - - --- --- Name: unique_merge_request_metrics_by_merge_request_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_merge_request_metrics_by_merge_request_id ON public.merge_request_metrics USING btree (merge_request_id); - - --- --- Name: unique_ml_model_versions_on_model_id_and_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX unique_ml_model_versions_on_model_id_and_id ON public.ml_model_versions USING btree (model_id, id DESC); - - --- --- Name: unique_namespace_cluster_agent_mappings_for_agent_association; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_namespace_cluster_agent_mappings_for_agent_association ON public.remote_development_namespace_cluster_agent_mappings USING btree (namespace_id, cluster_agent_id); - - --- --- Name: unique_organizations_on_path_case_insensitive; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_organizations_on_path_case_insensitive ON public.organizations USING btree (lower(path)); - - --- --- Name: unique_packages_project_id_and_name_and_version_when_debian; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_packages_project_id_and_name_and_version_when_debian ON public.packages_packages USING btree (project_id, name, version) WHERE ((package_type = 9) AND (status <> 4)); - - --- --- Name: unique_pool_repositories_on_disk_path_and_shard_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_pool_repositories_on_disk_path_and_shard_id ON public.pool_repositories USING btree (disk_path, shard_id); - - --- --- Name: unique_postgres_async_fk_validations_name_and_table_name; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_postgres_async_fk_validations_name_and_table_name ON public.postgres_async_foreign_key_validations USING btree (name, table_name); - - --- --- Name: unique_projects_on_name_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_projects_on_name_namespace_id ON public.projects USING btree (name, namespace_id); - - --- --- Name: unique_streaming_event_type_filters_destination_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_streaming_event_type_filters_destination_id ON public.audit_events_streaming_event_type_filters USING btree (external_audit_event_destination_id, audit_event_type); - - --- --- Name: unique_streaming_instance_event_type_filters_destination_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_streaming_instance_event_type_filters_destination_id ON public.audit_events_streaming_instance_event_type_filters USING btree (instance_external_audit_event_destination_id, audit_event_type); - - --- --- Name: unique_user_id_and_setting_type; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_user_id_and_setting_type ON public.vs_code_settings USING btree (user_id, setting_type); - - --- --- Name: unique_vuln_merge_request_link_vuln_id_and_mr_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_vuln_merge_request_link_vuln_id_and_mr_id ON public.vulnerability_merge_request_links USING btree (vulnerability_id, merge_request_id); - - --- --- Name: unique_zoekt_enabled_namespaces_on_root_namespace_id; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_zoekt_enabled_namespaces_on_root_namespace_id ON public.zoekt_enabled_namespaces USING btree (root_namespace_id); - - --- --- Name: unique_zoekt_shards_uuid; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX unique_zoekt_shards_uuid ON public.zoekt_shards USING btree (uuid); - - --- --- Name: user_follow_users_followee_id_idx; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX user_follow_users_followee_id_idx ON public.user_follow_users USING btree (followee_id); - - --- --- Name: virtual_reg_packages_maven_reg_upstreams_on_unique_reg_ids; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX virtual_reg_packages_maven_reg_upstreams_on_unique_reg_ids ON public.virtual_registries_packages_maven_registry_upstreams USING btree (registry_id); - - --- --- Name: virtual_reg_packages_maven_reg_upstreams_on_unique_upstream_ids; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX virtual_reg_packages_maven_reg_upstreams_on_unique_upstream_ids ON public.virtual_registries_packages_maven_registry_upstreams USING btree (upstream_id); - - --- --- Name: virtual_registries_pkgs_maven_registries_on_unique_group_ids; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX virtual_registries_pkgs_maven_registries_on_unique_group_ids ON public.virtual_registries_packages_maven_registries USING btree (group_id); - - --- --- Name: vulnerability_occurrence_pipelines_on_unique_keys; Type: INDEX; Schema: public; Owner: - --- - -CREATE UNIQUE INDEX vulnerability_occurrence_pipelines_on_unique_keys ON public.vulnerability_occurrence_pipelines USING btree (occurrence_id, pipeline_id); - - --- --- Name: wi_colors_namespace_id_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX wi_colors_namespace_id_index ON public.work_item_colors USING btree (namespace_id); - - --- --- Name: wi_datessources_due_date_sourcing_milestone_id_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX wi_datessources_due_date_sourcing_milestone_id_index ON public.work_item_dates_sources USING btree (due_date_sourcing_milestone_id); - - --- --- Name: wi_datessources_due_date_sourcing_work_item_id_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX wi_datessources_due_date_sourcing_work_item_id_index ON public.work_item_dates_sources USING btree (due_date_sourcing_work_item_id); - - --- --- Name: wi_datessources_namespace_id_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX wi_datessources_namespace_id_index ON public.work_item_dates_sources USING btree (namespace_id); - - --- --- Name: wi_datessources_start_date_sourcing_milestone_id_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX wi_datessources_start_date_sourcing_milestone_id_index ON public.work_item_dates_sources USING btree (start_date_sourcing_milestone_id); - - --- --- Name: wi_datessources_start_date_sourcing_work_item_id_index; Type: INDEX; Schema: public; Owner: - --- - -CREATE INDEX wi_datessources_start_date_sourcing_work_item_id_index ON public.work_item_dates_sources USING btree (start_date_sourcing_work_item_id); - - --- --- Name: analytics_cycle_analytics_issue_stage_events_00_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_01_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_02_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_03_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_04_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_05_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_06_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_07_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_08_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_09_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_10_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_11_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_12_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_13_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_14_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_15_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_16_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_17_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_18_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_19_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_20_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_21_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_22_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_23_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_24_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_25_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_26_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_27_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_28_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_29_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_30_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30_pkey; - - --- --- Name: analytics_cycle_analytics_issue_stage_events_31_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_00_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_01_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_02_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_03_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_04_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_05_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_06_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_07_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_08_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_09_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_10_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_11_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_12_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_13_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_14_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_15_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_16_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_17_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_18_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_19_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_20_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_21_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_22_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_23_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_24_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_25_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_26_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_27_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_28_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_29_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_30_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30_pkey; - - --- --- Name: analytics_cycle_analytics_merge_request_stage_events_31_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31_pkey; - - --- --- Name: index_000925dbd7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_000925dbd7; - - --- --- Name: index_006f943df6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_006f943df6; - - --- --- Name: index_009e6c1133; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_009e6c1133; - - --- --- Name: index_02749b504c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_02749b504c; - - --- --- Name: index_0287f5ba09; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_0287f5ba09; - - --- --- Name: index_03aa30a758; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_03aa30a758; - - --- --- Name: index_055179c3ea; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_055179c3ea; - - --- --- Name: index_061fe00461; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_061fe00461; - - --- --- Name: index_070cef72c3; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_070cef72c3; - - --- --- Name: index_08b7071d9b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_08b7071d9b; - - --- --- Name: index_08e3cfc564; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_08e3cfc564; - - --- --- Name: index_09af45dd6f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_09af45dd6f; - - --- --- Name: index_09fe0c1886; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_09fe0c1886; - - --- --- Name: index_0c153e2eae; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_0c153e2eae; - - --- --- Name: index_0ca85f3d71; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_0ca85f3d71; - - --- --- Name: index_0d837a5dda; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_0d837a5dda; - - --- --- Name: index_0e98daa03c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_0e98daa03c; - - --- --- Name: index_0f28a65451; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_0f28a65451; - - --- --- Name: index_10588dbff0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_10588dbff0; - - --- --- Name: index_106d7d97e8; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_106d7d97e8; - - --- --- Name: index_1076a9a98a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_1076a9a98a; - - --- --- Name: index_107e123e17; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_107e123e17; - - --- --- Name: index_1230a7a402; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1230a7a402; - - --- --- Name: index_142c4e7ea4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_142c4e7ea4; - - --- --- Name: index_14e4fa1d7d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_14e4fa1d7d; - - --- --- Name: index_14f3645821; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_14f3645821; - - --- --- Name: index_16627b455e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_16627b455e; - - --- --- Name: index_17fa2812c5; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_17fa2812c5; - - --- --- Name: index_19aa18ccc9; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_19aa18ccc9; - - --- --- Name: index_19f4ed8614; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_19f4ed8614; - - --- --- Name: index_1a0388713a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_1a0388713a; - - --- --- Name: index_1a349ed064; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1a349ed064; - - --- --- Name: index_1af932a3c7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1af932a3c7; - - --- --- Name: index_1b0ea30bdb; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1b0ea30bdb; - - --- --- Name: index_1b47bbbb6a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_1b47bbbb6a; - - --- --- Name: index_1f6c3faabe; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1f6c3faabe; - - --- --- Name: index_1f8af04ed1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1f8af04ed1; - - --- --- Name: index_201c5ddbe9; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_201c5ddbe9; - - --- --- Name: index_20353089e0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_20353089e0; - - --- --- Name: index_203dd694bc; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_203dd694bc; - - --- --- Name: index_206349925b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_206349925b; - - --- --- Name: index_208e7ef042; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_208e7ef042; - - --- --- Name: index_2098118748; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_2098118748; - - --- --- Name: index_20c6491c6e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_20c6491c6e; - - --- --- Name: index_21db459e34; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_21db459e34; - - --- --- Name: index_21e262390a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_21e262390a; - - --- --- Name: index_2208bd7d7f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_2208bd7d7f; - - --- --- Name: index_223592b4a1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_223592b4a1; - - --- --- Name: index_22acc9ab11; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_22acc9ab11; - - --- --- Name: index_22ed8f01dd; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_22ed8f01dd; - - --- --- Name: index_234d38a657; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_234d38a657; - - --- --- Name: index_23783dc748; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_23783dc748; - - --- --- Name: index_241e9a574c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_241e9a574c; - - --- --- Name: index_24ac321751; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_24ac321751; - - --- --- Name: index_25e2aaee9b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_25e2aaee9b; - - --- --- Name: index_2653e7eeb8; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_2653e7eeb8; - - --- --- Name: index_2745f5a388; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_2745f5a388; - - --- --- Name: index_27759556bc; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_27759556bc; - - --- --- Name: index_27d7ad78d8; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_27d7ad78d8; - - --- --- Name: index_281840d2d1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_281840d2d1; - - --- --- Name: index_2945cf4c6d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_2945cf4c6d; - - --- --- Name: index_296f64df5c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_296f64df5c; - - --- --- Name: index_2ad4b4fdbc; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2ad4b4fdbc; - - --- --- Name: index_2b7c0a294e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2b7c0a294e; - - --- --- Name: index_2bac9d64a0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_2bac9d64a0; - - --- --- Name: index_2c6422f668; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2c6422f668; - - --- --- Name: index_2dfcdbe81e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2dfcdbe81e; - - --- --- Name: index_2e1054b181; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_2e1054b181; - - --- --- Name: index_2e6991d05b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2e6991d05b; - - --- --- Name: index_2f80c360c3; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_2f80c360c3; - - --- --- Name: index_2fc271c673; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2fc271c673; - - --- --- Name: index_2fcfd0dc70; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_2fcfd0dc70; - - --- --- Name: index_3005c75335; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_3005c75335; - - --- --- Name: index_3206c1e6af; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_3206c1e6af; - - --- --- Name: index_3249505125; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_3249505125; - - --- --- Name: index_331eb67441; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_331eb67441; - - --- --- Name: index_34a8b08081; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_34a8b08081; - - --- --- Name: index_3640194b77; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_3640194b77; - - --- --- Name: index_372160a706; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_372160a706; - - --- --- Name: index_389dd3c9fc; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_389dd3c9fc; - - --- --- Name: index_38a538234e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_38a538234e; - - --- --- Name: index_39625b8a41; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_39625b8a41; - - --- --- Name: index_399dc06649; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_399dc06649; - - --- --- Name: index_3a10b315c0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_3a10b315c0; - - --- --- Name: index_3a7d21a6ee; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_3a7d21a6ee; - - --- --- Name: index_3a8848c00b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_3a8848c00b; - - --- --- Name: index_3b09ab5902; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_3b09ab5902; - - --- --- Name: index_3bc2eedca5; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_3bc2eedca5; - - --- --- Name: index_3c2a3a6ac9; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_3c2a3a6ac9; - - --- --- Name: index_3dbde77b8b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_3dbde77b8b; - - --- --- Name: index_3e6be332b7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_3e6be332b7; - - --- --- Name: index_4137a6fac3; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_4137a6fac3; - - --- --- Name: index_41a1c3a4c6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_41a1c3a4c6; - - --- --- Name: index_435802dd01; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_435802dd01; - - --- --- Name: index_436fa9ad5f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_436fa9ad5f; - - --- --- Name: index_453a659cb6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_453a659cb6; - - --- --- Name: index_46b989b294; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_46b989b294; - - --- --- Name: index_4717e7049b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_4717e7049b; - - --- --- Name: index_47638677a3; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_47638677a3; - - --- --- Name: index_4810ac88f5; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4810ac88f5; - - --- --- Name: index_482a09e0ee; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_482a09e0ee; - - --- --- Name: index_491b4b749e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_491b4b749e; - - --- --- Name: index_4a243772d7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4a243772d7; - - --- --- Name: index_4b1793a4c4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_4b1793a4c4; - - --- --- Name: index_4b22560035; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_4b22560035; - - --- --- Name: index_4c2645eef2; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4c2645eef2; - - --- --- Name: index_4c9d14f978; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- - -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_4c9d14f978; +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_24 + ADD CONSTRAINT namespace_descendants_24_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_25 + ADD CONSTRAINT namespace_descendants_25_pkey PRIMARY KEY (namespace_id); --- --- Name: index_4d04210a95; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_26 + ADD CONSTRAINT namespace_descendants_26_pkey PRIMARY KEY (namespace_id); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_4d04210a95; +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_27 + ADD CONSTRAINT namespace_descendants_27_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_28 + ADD CONSTRAINT namespace_descendants_28_pkey PRIMARY KEY (namespace_id); --- --- Name: index_4d4f2f7de6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_29 + ADD CONSTRAINT namespace_descendants_29_pkey PRIMARY KEY (namespace_id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_4d4f2f7de6; +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_30 + ADD CONSTRAINT namespace_descendants_30_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY gitlab_partitions_static.namespace_descendants_31 + ADD CONSTRAINT namespace_descendants_31_pkey PRIMARY KEY (namespace_id); --- --- Name: index_4db5aa5872; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY abuse_events + ADD CONSTRAINT abuse_events_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_4db5aa5872; +ALTER TABLE ONLY abuse_report_assignees + ADD CONSTRAINT abuse_report_assignees_pkey PRIMARY KEY (id); +ALTER TABLE ONLY abuse_report_events + ADD CONSTRAINT abuse_report_events_pkey PRIMARY KEY (id); --- --- Name: index_4dead6f314; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY abuse_report_notes + ADD CONSTRAINT abuse_report_notes_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4dead6f314; +ALTER TABLE ONLY abuse_report_user_mentions + ADD CONSTRAINT abuse_report_user_mentions_pkey PRIMARY KEY (id); +ALTER TABLE ONLY abuse_reports + ADD CONSTRAINT abuse_reports_pkey PRIMARY KEY (id); --- --- Name: index_4e6ce1c371; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY abuse_trust_scores + ADD CONSTRAINT abuse_trust_scores_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4e6ce1c371; +ALTER TABLE ONLY achievements + ADD CONSTRAINT achievements_pkey PRIMARY KEY (id); +ALTER TABLE ONLY activity_pub_releases_subscriptions + ADD CONSTRAINT activity_pub_releases_subscriptions_pkey PRIMARY KEY (id); --- --- Name: index_4ea50d3a5b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY agent_activity_events + ADD CONSTRAINT agent_activity_events_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_4ea50d3a5b; +ALTER TABLE ONLY agent_group_authorizations + ADD CONSTRAINT agent_group_authorizations_pkey PRIMARY KEY (id); +ALTER TABLE ONLY agent_project_authorizations + ADD CONSTRAINT agent_project_authorizations_pkey PRIMARY KEY (id); --- --- Name: index_4f2eb7a06b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY agent_user_access_group_authorizations + ADD CONSTRAINT agent_user_access_group_authorizations_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4f2eb7a06b; +ALTER TABLE ONLY agent_user_access_project_authorizations + ADD CONSTRAINT agent_user_access_project_authorizations_pkey PRIMARY KEY (id); +ALTER TABLE ONLY ai_agent_version_attachments + ADD CONSTRAINT ai_agent_version_attachments_pkey PRIMARY KEY (id); --- --- Name: index_4f6fc34e57; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ai_agent_versions + ADD CONSTRAINT ai_agent_versions_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_4f6fc34e57; +ALTER TABLE ONLY ai_agents + ADD CONSTRAINT ai_agents_pkey PRIMARY KEY (id); +ALTER TABLE ONLY ai_feature_settings + ADD CONSTRAINT ai_feature_settings_pkey PRIMARY KEY (id); --- --- Name: index_50272372ba; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ai_self_hosted_models + ADD CONSTRAINT ai_self_hosted_models_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_50272372ba; +ALTER TABLE ONLY ai_testing_terms_acceptances + ADD CONSTRAINT ai_testing_terms_acceptances_pkey PRIMARY KEY (user_id); +ALTER TABLE ONLY ai_vectorizable_files + ADD CONSTRAINT ai_vectorizable_files_pkey PRIMARY KEY (id); --- --- Name: index_5034eae5ff; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY alert_management_alert_assignees + ADD CONSTRAINT alert_management_alert_assignees_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5034eae5ff; +ALTER TABLE ONLY alert_management_alert_metric_images + ADD CONSTRAINT alert_management_alert_metric_images_pkey PRIMARY KEY (id); +ALTER TABLE ONLY alert_management_alert_user_mentions + ADD CONSTRAINT alert_management_alert_user_mentions_pkey PRIMARY KEY (id); --- --- Name: index_50c09f6e04; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY alert_management_alerts + ADD CONSTRAINT alert_management_alerts_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_50c09f6e04; +ALTER TABLE ONLY alert_management_http_integrations + ADD CONSTRAINT alert_management_http_integrations_pkey PRIMARY KEY (id); +ALTER TABLE ONLY allowed_email_domains + ADD CONSTRAINT allowed_email_domains_pkey PRIMARY KEY (id); --- --- Name: index_5111e3e7e7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_aggregations + ADD CONSTRAINT analytics_cycle_analytics_aggregations_pkey PRIMARY KEY (group_id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5111e3e7e7; +ALTER TABLE ONLY analytics_cycle_analytics_group_stages + ADD CONSTRAINT analytics_cycle_analytics_group_stages_pkey PRIMARY KEY (id); +ALTER TABLE ONLY analytics_cycle_analytics_group_value_streams + ADD CONSTRAINT analytics_cycle_analytics_group_value_streams_pkey PRIMARY KEY (id); --- --- Name: index_52ea79bf8e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_stage_event_hashes + ADD CONSTRAINT analytics_cycle_analytics_stage_event_hashes_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_52ea79bf8e; +ALTER TABLE ONLY analytics_cycle_analytics_value_stream_settings + ADD CONSTRAINT analytics_cycle_analytics_value_stream_settings_pkey PRIMARY KEY (value_stream_id); +ALTER TABLE ONLY analytics_dashboards_pointers + ADD CONSTRAINT analytics_dashboards_pointers_pkey PRIMARY KEY (id); --- --- Name: index_541cc045fc; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_devops_adoption_segments + ADD CONSTRAINT analytics_devops_adoption_segments_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_541cc045fc; +ALTER TABLE ONLY analytics_devops_adoption_snapshots + ADD CONSTRAINT analytics_devops_adoption_snapshots_pkey PRIMARY KEY (id); +ALTER TABLE ONLY analytics_language_trend_repository_languages + ADD CONSTRAINT analytics_language_trend_repository_languages_pkey PRIMARY KEY (programming_language_id, project_id, snapshot_date); --- --- Name: index_5445e466ee; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY analytics_usage_trends_measurements + ADD CONSTRAINT analytics_usage_trends_measurements_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5445e466ee; +ALTER TABLE ONLY appearances + ADD CONSTRAINT appearances_pkey PRIMARY KEY (id); +ALTER TABLE ONLY application_setting_terms + ADD CONSTRAINT application_setting_terms_pkey PRIMARY KEY (id); --- --- Name: index_551676e972; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY application_settings + ADD CONSTRAINT application_settings_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_551676e972; +ALTER TABLE ONLY approval_group_rules_groups + ADD CONSTRAINT approval_group_rules_groups_pkey PRIMARY KEY (id); +ALTER TABLE ONLY approval_group_rules + ADD CONSTRAINT approval_group_rules_pkey PRIMARY KEY (id); --- --- Name: index_56281bfb73; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY approval_group_rules_protected_branches + ADD CONSTRAINT approval_group_rules_protected_branches_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_56281bfb73; +ALTER TABLE ONLY approval_group_rules_users + ADD CONSTRAINT approval_group_rules_users_pkey PRIMARY KEY (id); +ALTER TABLE ONLY approval_merge_request_rule_sources + ADD CONSTRAINT approval_merge_request_rule_sources_pkey PRIMARY KEY (id); --- --- Name: index_5660b1b38e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY approval_merge_request_rules_approved_approvers + ADD CONSTRAINT approval_merge_request_rules_approved_approvers_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_5660b1b38e; +ALTER TABLE ONLY approval_merge_request_rules_groups + ADD CONSTRAINT approval_merge_request_rules_groups_pkey PRIMARY KEY (id); +ALTER TABLE ONLY approval_merge_request_rules + ADD CONSTRAINT approval_merge_request_rules_pkey PRIMARY KEY (id); --- --- Name: index_584c1e6fb0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY approval_merge_request_rules_users + ADD CONSTRAINT approval_merge_request_rules_users_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_584c1e6fb0; +ALTER TABLE ONLY approval_policy_rule_project_links + ADD CONSTRAINT approval_policy_rule_project_links_pkey PRIMARY KEY (id); +ALTER TABLE ONLY approval_policy_rules + ADD CONSTRAINT approval_policy_rules_pkey PRIMARY KEY (id); --- --- Name: index_5913107510; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY approval_project_rules_groups + ADD CONSTRAINT approval_project_rules_groups_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5913107510; +ALTER TABLE ONLY approval_project_rules + ADD CONSTRAINT approval_project_rules_pkey PRIMARY KEY (id); +ALTER TABLE ONLY approval_project_rules_protected_branches + ADD CONSTRAINT approval_project_rules_protected_branches_pkey PRIMARY KEY (approval_project_rule_id, protected_branch_id); --- --- Name: index_5968e77935; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY approval_project_rules_users + ADD CONSTRAINT approval_project_rules_users_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_5968e77935; +ALTER TABLE ONLY approvals + ADD CONSTRAINT approvals_pkey PRIMARY KEY (id); +ALTER TABLE ONLY approver_groups + ADD CONSTRAINT approver_groups_pkey PRIMARY KEY (id); --- --- Name: index_59a8209ab6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY approvers + ADD CONSTRAINT approvers_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_59a8209ab6; +ALTER TABLE ONLY ar_internal_metadata + ADD CONSTRAINT ar_internal_metadata_pkey PRIMARY KEY (key); +ALTER TABLE ONLY atlassian_identities + ADD CONSTRAINT atlassian_identities_pkey PRIMARY KEY (user_id); --- --- Name: index_59ce40fcc4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY audit_events_amazon_s3_configurations + ADD CONSTRAINT audit_events_amazon_s3_configurations_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_59ce40fcc4; +ALTER TABLE ONLY audit_events_external_audit_event_destinations + ADD CONSTRAINT audit_events_external_audit_event_destinations_pkey PRIMARY KEY (id); +ALTER TABLE ONLY audit_events_google_cloud_logging_configurations + ADD CONSTRAINT audit_events_google_cloud_logging_configurations_pkey PRIMARY KEY (id); --- --- Name: index_59cfd5bc9a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY audit_events_group_external_streaming_destinations + ADD CONSTRAINT audit_events_group_external_streaming_destinations_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_59cfd5bc9a; +ALTER TABLE ONLY audit_events_group_streaming_event_type_filters + ADD CONSTRAINT audit_events_group_streaming_event_type_filters_pkey PRIMARY KEY (id); +ALTER TABLE ONLY audit_events_instance_amazon_s3_configurations + ADD CONSTRAINT audit_events_instance_amazon_s3_configurations_pkey PRIMARY KEY (id); --- --- Name: index_5a5f39d824; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY audit_events_instance_external_audit_event_destinations + ADD CONSTRAINT audit_events_instance_external_audit_event_destinations_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5a5f39d824; +ALTER TABLE ONLY audit_events_instance_external_streaming_destinations + ADD CONSTRAINT audit_events_instance_external_streaming_destinations_pkey PRIMARY KEY (id); +ALTER TABLE ONLY audit_events_instance_google_cloud_logging_configurations + ADD CONSTRAINT audit_events_instance_google_cloud_logging_configurations_pkey PRIMARY KEY (id); --- --- Name: index_5b613b5fcf; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY audit_events_instance_streaming_event_type_filters + ADD CONSTRAINT audit_events_instance_streaming_event_type_filters_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5b613b5fcf; +ALTER TABLE ONLY audit_events + ADD CONSTRAINT audit_events_pkey PRIMARY KEY (id, created_at); +ALTER TABLE ONLY audit_events_streaming_event_type_filters + ADD CONSTRAINT audit_events_streaming_event_type_filters_pkey PRIMARY KEY (id); --- --- Name: index_5b944f308d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY audit_events_streaming_group_namespace_filters + ADD CONSTRAINT audit_events_streaming_group_namespace_filters_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_5b944f308d; +ALTER TABLE ONLY audit_events_streaming_headers + ADD CONSTRAINT audit_events_streaming_headers_pkey PRIMARY KEY (id); +ALTER TABLE ONLY audit_events_streaming_http_group_namespace_filters + ADD CONSTRAINT audit_events_streaming_http_group_namespace_filters_pkey PRIMARY KEY (id); --- --- Name: index_5bc2f32084; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY audit_events_streaming_http_instance_namespace_filters + ADD CONSTRAINT audit_events_streaming_http_instance_namespace_filters_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_5bc2f32084; +ALTER TABLE ONLY audit_events_streaming_instance_event_type_filters + ADD CONSTRAINT audit_events_streaming_instance_event_type_filters_pkey PRIMARY KEY (id); +ALTER TABLE ONLY audit_events_streaming_instance_namespace_filters + ADD CONSTRAINT audit_events_streaming_instance_namespace_filters_pkey PRIMARY KEY (id); --- --- Name: index_5bfa62771b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY authentication_events + ADD CONSTRAINT authentication_events_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5bfa62771b; +ALTER TABLE ONLY automation_rules + ADD CONSTRAINT automation_rules_pkey PRIMARY KEY (id); +ALTER TABLE ONLY award_emoji + ADD CONSTRAINT award_emoji_pkey PRIMARY KEY (id); --- --- Name: index_5c4053b63d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY aws_roles + ADD CONSTRAINT aws_roles_pkey PRIMARY KEY (user_id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5c4053b63d; +ALTER TABLE ONLY background_migration_jobs + ADD CONSTRAINT background_migration_jobs_pkey PRIMARY KEY (id); +ALTER TABLE ONLY badges + ADD CONSTRAINT badges_pkey PRIMARY KEY (id); --- --- Name: index_5db09170d4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY banned_users + ADD CONSTRAINT banned_users_pkey PRIMARY KEY (user_id); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_5db09170d4; +ALTER TABLE ONLY batched_background_migration_job_transition_logs + ADD CONSTRAINT batched_background_migration_job_transition_logs_pkey PRIMARY KEY (id, created_at); +ALTER TABLE ONLY batched_background_migration_jobs + ADD CONSTRAINT batched_background_migration_jobs_pkey PRIMARY KEY (id); --- --- Name: index_5e46aea379; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY batched_background_migrations + ADD CONSTRAINT batched_background_migrations_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5e46aea379; +ALTER TABLE ONLY board_assignees + ADD CONSTRAINT board_assignees_pkey PRIMARY KEY (id); +ALTER TABLE ONLY board_group_recent_visits + ADD CONSTRAINT board_group_recent_visits_pkey PRIMARY KEY (id); --- --- Name: index_5e78c2eac1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY board_labels + ADD CONSTRAINT board_labels_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5e78c2eac1; +ALTER TABLE ONLY board_project_recent_visits + ADD CONSTRAINT board_project_recent_visits_pkey PRIMARY KEY (id); +ALTER TABLE ONLY board_user_preferences + ADD CONSTRAINT board_user_preferences_pkey PRIMARY KEY (id); --- --- Name: index_5ee060202f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY boards_epic_board_labels + ADD CONSTRAINT boards_epic_board_labels_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5ee060202f; +ALTER TABLE ONLY boards_epic_board_positions + ADD CONSTRAINT boards_epic_board_positions_pkey PRIMARY KEY (id); +ALTER TABLE ONLY boards_epic_board_recent_visits + ADD CONSTRAINT boards_epic_board_recent_visits_pkey PRIMARY KEY (id); --- --- Name: index_5f24f6ead2; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY boards_epic_boards + ADD CONSTRAINT boards_epic_boards_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5f24f6ead2; +ALTER TABLE ONLY boards_epic_list_user_preferences + ADD CONSTRAINT boards_epic_list_user_preferences_pkey PRIMARY KEY (id); +ALTER TABLE ONLY boards_epic_lists + ADD CONSTRAINT boards_epic_lists_pkey PRIMARY KEY (id); --- --- Name: index_5f96b344e2; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY boards_epic_user_preferences + ADD CONSTRAINT boards_epic_user_preferences_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5f96b344e2; +ALTER TABLE ONLY boards + ADD CONSTRAINT boards_pkey PRIMARY KEY (id); +ALTER TABLE ONLY broadcast_messages + ADD CONSTRAINT broadcast_messages_pkey PRIMARY KEY (id); --- --- Name: index_5fb1867c41; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY bulk_import_batch_trackers + ADD CONSTRAINT bulk_import_batch_trackers_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_5fb1867c41; +ALTER TABLE ONLY bulk_import_configurations + ADD CONSTRAINT bulk_import_configurations_pkey PRIMARY KEY (id); +ALTER TABLE ONLY bulk_import_entities + ADD CONSTRAINT bulk_import_entities_pkey PRIMARY KEY (id); --- --- Name: index_5fe1d00845; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY bulk_import_export_batches + ADD CONSTRAINT bulk_import_export_batches_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_5fe1d00845; +ALTER TABLE ONLY bulk_import_export_uploads + ADD CONSTRAINT bulk_import_export_uploads_pkey PRIMARY KEY (id); +ALTER TABLE ONLY bulk_import_exports + ADD CONSTRAINT bulk_import_exports_pkey PRIMARY KEY (id); --- --- Name: index_60e3480f23; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY bulk_import_failures + ADD CONSTRAINT bulk_import_failures_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_60e3480f23; +ALTER TABLE ONLY bulk_import_trackers + ADD CONSTRAINT bulk_import_trackers_pkey PRIMARY KEY (id); +ALTER TABLE ONLY bulk_imports + ADD CONSTRAINT bulk_imports_pkey PRIMARY KEY (id); --- --- Name: index_6137e27484; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY catalog_resource_components + ADD CONSTRAINT catalog_resource_components_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_6137e27484; +ALTER TABLE ONLY catalog_resource_versions + ADD CONSTRAINT catalog_resource_versions_pkey PRIMARY KEY (id); +ALTER TABLE ONLY catalog_resources + ADD CONSTRAINT catalog_resources_pkey PRIMARY KEY (id); --- --- Name: index_620fe77c99; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY catalog_verified_namespaces + ADD CONSTRAINT catalog_verified_namespaces_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_620fe77c99; +ALTER TABLE ONLY chat_names + ADD CONSTRAINT chat_names_pkey PRIMARY KEY (id); +ALTER TABLE ONLY chat_teams + ADD CONSTRAINT chat_teams_pkey PRIMARY KEY (id); --- --- Name: index_625ed9e965; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE workspaces + ADD CONSTRAINT check_2a89035b04 CHECK ((personal_access_token_id IS NOT NULL)) NOT VALID; -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_625ed9e965; +ALTER TABLE vulnerability_scanners + ADD CONSTRAINT check_37608c9db5 CHECK ((char_length(vendor) <= 255)) NOT VALID; +ALTER TABLE ci_runners + ADD CONSTRAINT check_46c685e76f CHECK ((char_length((description)::text) <= 1024)) NOT VALID; --- --- Name: index_64e3a1dfa1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ci_job_variables + ADD CONSTRAINT check_567d1ccb72 CHECK ((project_id IS NOT NULL)) NOT VALID; -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_64e3a1dfa1; +ALTER TABLE ci_runners + ADD CONSTRAINT check_91230910ec CHECK ((char_length((name)::text) <= 256)) NOT VALID; +ALTER TABLE sprints + ADD CONSTRAINT check_ccd8a1eae0 CHECK ((start_date IS NOT NULL)) NOT VALID; --- --- Name: index_64eb4cf8bd; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE group_import_states + ADD CONSTRAINT check_cda75c7c3f CHECK ((user_id IS NOT NULL)) NOT VALID; -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_64eb4cf8bd; +ALTER TABLE packages_packages + ADD CONSTRAINT check_d6301aedeb CHECK ((char_length(status_message) <= 255)) NOT VALID; +ALTER TABLE sprints + ADD CONSTRAINT check_df3816aed7 CHECK ((due_date IS NOT NULL)) NOT VALID; --- --- Name: index_6578d04baa; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE web_hook_logs + ADD CONSTRAINT check_df72cb58f5 CHECK ((char_length(url_hash) <= 44)) NOT VALID; -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_6578d04baa; +ALTER TABLE projects + ADD CONSTRAINT check_fa75869cb1 CHECK ((project_namespace_id IS NOT NULL)) NOT VALID; +ALTER TABLE ONLY ci_build_needs + ADD CONSTRAINT ci_build_needs_pkey PRIMARY KEY (id); --- --- Name: index_6580ecb2db; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_build_pending_states + ADD CONSTRAINT ci_build_pending_states_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6580ecb2db; +ALTER TABLE ONLY ci_build_report_results + ADD CONSTRAINT ci_build_report_results_pkey PRIMARY KEY (build_id); +ALTER TABLE ONLY ci_build_trace_chunks + ADD CONSTRAINT ci_build_trace_chunks_pkey PRIMARY KEY (id); --- --- Name: index_66a736da09; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY p_ci_build_trace_metadata + ADD CONSTRAINT p_ci_build_trace_metadata_pkey PRIMARY KEY (build_id, partition_id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_66a736da09; +ALTER TABLE ONLY ci_build_trace_metadata + ADD CONSTRAINT ci_build_trace_metadata_pkey PRIMARY KEY (build_id, partition_id); +ALTER TABLE ONLY p_ci_builds_metadata + ADD CONSTRAINT p_ci_builds_metadata_pkey PRIMARY KEY (id, partition_id); --- --- Name: index_680d7ab4a6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_builds_metadata + ADD CONSTRAINT ci_builds_metadata_pkey PRIMARY KEY (id, partition_id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_680d7ab4a6; +ALTER TABLE ONLY p_ci_builds + ADD CONSTRAINT p_ci_builds_pkey PRIMARY KEY (id, partition_id); +ALTER TABLE ONLY ci_builds + ADD CONSTRAINT ci_builds_pkey PRIMARY KEY (id, partition_id); --- --- Name: index_682eba05f6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_builds_runner_session + ADD CONSTRAINT ci_builds_runner_session_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_682eba05f6; +ALTER TABLE ONLY ci_cost_settings + ADD CONSTRAINT ci_cost_settings_pkey PRIMARY KEY (runner_id); +ALTER TABLE ONLY ci_daily_build_group_report_results + ADD CONSTRAINT ci_daily_build_group_report_results_pkey PRIMARY KEY (id); --- --- Name: index_69bdcf213e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_deleted_objects + ADD CONSTRAINT ci_deleted_objects_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_69bdcf213e; +ALTER TABLE ONLY ci_freeze_periods + ADD CONSTRAINT ci_freeze_periods_pkey PRIMARY KEY (id); +ALTER TABLE ONLY ci_group_variables + ADD CONSTRAINT ci_group_variables_pkey PRIMARY KEY (id); --- --- Name: index_6a39f6d5ac; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_instance_variables + ADD CONSTRAINT ci_instance_variables_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_6a39f6d5ac; +ALTER TABLE ONLY ci_job_artifact_states + ADD CONSTRAINT ci_job_artifact_states_pkey PRIMARY KEY (job_artifact_id); +ALTER TABLE ONLY p_ci_job_artifacts + ADD CONSTRAINT p_ci_job_artifacts_pkey PRIMARY KEY (id, partition_id); --- --- Name: index_6add8e74cf; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_job_artifacts + ADD CONSTRAINT ci_job_artifacts_pkey PRIMARY KEY (id, partition_id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6add8e74cf; +ALTER TABLE ONLY ci_job_token_group_scope_links + ADD CONSTRAINT ci_job_token_group_scope_links_pkey PRIMARY KEY (id); +ALTER TABLE ONLY ci_job_token_project_scope_links + ADD CONSTRAINT ci_job_token_project_scope_links_pkey PRIMARY KEY (id); --- --- Name: index_6b1ce61c8f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_job_variables + ADD CONSTRAINT ci_job_variables_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6b1ce61c8f; +ALTER TABLE ONLY ci_minutes_additional_packs + ADD CONSTRAINT ci_minutes_additional_packs_pkey PRIMARY KEY (id); +ALTER TABLE ONLY ci_namespace_mirrors + ADD CONSTRAINT ci_namespace_mirrors_pkey PRIMARY KEY (id); --- --- Name: index_6b431c9952; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_namespace_monthly_usages + ADD CONSTRAINT ci_namespace_monthly_usages_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_6b431c9952; +ALTER TABLE ONLY ci_partitions + ADD CONSTRAINT ci_partitions_pkey PRIMARY KEY (id); +ALTER TABLE ONLY ci_pending_builds + ADD CONSTRAINT ci_pending_builds_pkey PRIMARY KEY (id); --- --- Name: index_6bf2b9282c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_pipeline_artifacts + ADD CONSTRAINT ci_pipeline_artifacts_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_6bf2b9282c; +ALTER TABLE ONLY ci_pipeline_chat_data + ADD CONSTRAINT ci_pipeline_chat_data_pkey PRIMARY KEY (id); +ALTER TABLE ONLY ci_pipeline_messages + ADD CONSTRAINT ci_pipeline_messages_pkey PRIMARY KEY (id); --- --- Name: index_6cfb391b86; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_pipeline_metadata + ADD CONSTRAINT ci_pipeline_metadata_pkey PRIMARY KEY (pipeline_id); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_6cfb391b86; +ALTER TABLE ONLY ci_pipeline_schedule_variables + ADD CONSTRAINT ci_pipeline_schedule_variables_pkey PRIMARY KEY (id); +ALTER TABLE ONLY ci_pipeline_schedules + ADD CONSTRAINT ci_pipeline_schedules_pkey PRIMARY KEY (id); --- --- Name: index_6e560c1a4d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY p_ci_pipeline_variables + ADD CONSTRAINT p_ci_pipeline_variables_pkey PRIMARY KEY (id, partition_id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_6e560c1a4d; +ALTER TABLE ONLY ci_pipeline_variables + ADD CONSTRAINT ci_pipeline_variables_pkey PRIMARY KEY (id, partition_id); +ALTER TABLE ONLY ci_pipelines_config + ADD CONSTRAINT ci_pipelines_config_pkey PRIMARY KEY (pipeline_id); --- --- Name: index_6e64aa1646; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY p_ci_pipelines + ADD CONSTRAINT p_ci_pipelines_pkey PRIMARY KEY (id, partition_id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_6e64aa1646; +ALTER TABLE ONLY ci_pipelines + ADD CONSTRAINT ci_pipelines_pkey PRIMARY KEY (id, partition_id); +ALTER TABLE ONLY ci_project_mirrors + ADD CONSTRAINT ci_project_mirrors_pkey PRIMARY KEY (id); --- --- Name: index_6e6c2e6a1d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_project_monthly_usages + ADD CONSTRAINT ci_project_monthly_usages_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6e6c2e6a1d; +ALTER TABLE ONLY ci_refs + ADD CONSTRAINT ci_refs_pkey PRIMARY KEY (id); +ALTER TABLE ONLY ci_resource_groups + ADD CONSTRAINT ci_resource_groups_pkey PRIMARY KEY (id); --- --- Name: index_6ea423bbd1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_resources + ADD CONSTRAINT ci_resources_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_6ea423bbd1; +ALTER TABLE ONLY ci_runner_machines + ADD CONSTRAINT ci_runner_machines_pkey PRIMARY KEY (id); +ALTER TABLE ONLY ci_runner_namespaces + ADD CONSTRAINT ci_runner_namespaces_pkey PRIMARY KEY (id); --- --- Name: index_6ec4c4afd4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_runner_projects + ADD CONSTRAINT ci_runner_projects_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6ec4c4afd4; +ALTER TABLE ONLY ci_runner_versions + ADD CONSTRAINT ci_runner_versions_pkey PRIMARY KEY (version); +ALTER TABLE ONLY ci_runners + ADD CONSTRAINT ci_runners_pkey PRIMARY KEY (id); --- --- Name: index_6f4e0abe54; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_running_builds + ADD CONSTRAINT ci_running_builds_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6f4e0abe54; +ALTER TABLE ONLY ci_secure_file_states + ADD CONSTRAINT ci_secure_file_states_pkey PRIMARY KEY (ci_secure_file_id); +ALTER TABLE ONLY ci_secure_files + ADD CONSTRAINT ci_secure_files_pkey PRIMARY KEY (id); --- --- Name: index_6fa47e1334; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_sources_pipelines + ADD CONSTRAINT ci_sources_pipelines_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6fa47e1334; +ALTER TABLE ONLY ci_sources_projects + ADD CONSTRAINT ci_sources_projects_pkey PRIMARY KEY (id); +ALTER TABLE ONLY p_ci_stages + ADD CONSTRAINT p_ci_stages_pkey PRIMARY KEY (id, partition_id); --- --- Name: index_708d792ae9; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_stages + ADD CONSTRAINT ci_stages_pkey PRIMARY KEY (id, partition_id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_708d792ae9; +ALTER TABLE ONLY ci_subscriptions_projects + ADD CONSTRAINT ci_subscriptions_projects_pkey PRIMARY KEY (id); +ALTER TABLE ONLY ci_trigger_requests + ADD CONSTRAINT ci_trigger_requests_pkey PRIMARY KEY (id); --- --- Name: index_70c657954b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_triggers + ADD CONSTRAINT ci_triggers_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_70c657954b; +ALTER TABLE ONLY ci_unit_test_failures + ADD CONSTRAINT ci_unit_test_failures_pkey PRIMARY KEY (id); +ALTER TABLE ONLY ci_unit_tests + ADD CONSTRAINT ci_unit_tests_pkey PRIMARY KEY (id); --- --- Name: index_713f462d76; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ci_variables + ADD CONSTRAINT ci_variables_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_713f462d76; +ALTER TABLE ONLY cloud_connector_access + ADD CONSTRAINT cloud_connector_access_pkey PRIMARY KEY (id); +ALTER TABLE ONLY cluster_agent_tokens + ADD CONSTRAINT cluster_agent_tokens_pkey PRIMARY KEY (id); --- --- Name: index_71c0e45eca; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY cluster_agent_url_configurations + ADD CONSTRAINT cluster_agent_url_configurations_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_71c0e45eca; +ALTER TABLE ONLY cluster_agents + ADD CONSTRAINT cluster_agents_pkey PRIMARY KEY (id); +ALTER TABLE ONLY cluster_enabled_grants + ADD CONSTRAINT cluster_enabled_grants_pkey PRIMARY KEY (id); --- --- Name: index_71c2b26944; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY cluster_groups + ADD CONSTRAINT cluster_groups_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_71c2b26944; +ALTER TABLE ONLY cluster_platforms_kubernetes + ADD CONSTRAINT cluster_platforms_kubernetes_pkey PRIMARY KEY (id); +ALTER TABLE ONLY cluster_projects + ADD CONSTRAINT cluster_projects_pkey PRIMARY KEY (id); --- --- Name: index_72027c157f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY cluster_providers_aws + ADD CONSTRAINT cluster_providers_aws_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_72027c157f; +ALTER TABLE ONLY cluster_providers_gcp + ADD CONSTRAINT cluster_providers_gcp_pkey PRIMARY KEY (id); +ALTER TABLE ONLY clusters_integration_prometheus + ADD CONSTRAINT clusters_integration_prometheus_pkey PRIMARY KEY (cluster_id); --- --- Name: index_739845f617; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY clusters_kubernetes_namespaces + ADD CONSTRAINT clusters_kubernetes_namespaces_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_739845f617; +ALTER TABLE ONLY clusters + ADD CONSTRAINT clusters_pkey PRIMARY KEY (id); +ALTER TABLE ONLY commit_user_mentions + ADD CONSTRAINT commit_user_mentions_pkey PRIMARY KEY (id); --- --- Name: index_74addd1240; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY compliance_checks + ADD CONSTRAINT compliance_checks_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_74addd1240; +ALTER TABLE ONLY compliance_framework_security_policies + ADD CONSTRAINT compliance_framework_security_policies_pkey PRIMARY KEY (id); +ALTER TABLE ONLY compliance_management_frameworks + ADD CONSTRAINT compliance_management_frameworks_pkey PRIMARY KEY (id); --- --- Name: index_75dc81d1d7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY compliance_requirements + ADD CONSTRAINT compliance_requirements_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_75dc81d1d7; +ALTER TABLE ONLY container_expiration_policies + ADD CONSTRAINT container_expiration_policies_pkey PRIMARY KEY (project_id); +ALTER TABLE ONLY container_registry_data_repair_details + ADD CONSTRAINT container_registry_data_repair_details_pkey PRIMARY KEY (project_id); --- --- Name: index_765b0cd8db; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY container_registry_protection_rules + ADD CONSTRAINT container_registry_protection_rules_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_765b0cd8db; +ALTER TABLE ONLY container_repositories + ADD CONSTRAINT container_repositories_pkey PRIMARY KEY (id); +ALTER TABLE ONLY container_repository_states + ADD CONSTRAINT container_repository_states_pkey PRIMARY KEY (container_repository_id); --- --- Name: index_77096a1dc6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY content_blocked_states + ADD CONSTRAINT content_blocked_states_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_77096a1dc6; +ALTER TABLE ONLY conversational_development_index_metrics + ADD CONSTRAINT conversational_development_index_metrics_pkey PRIMARY KEY (id); +ALTER TABLE ONLY country_access_logs + ADD CONSTRAINT country_access_logs_pkey PRIMARY KEY (id); --- --- Name: index_77c6293242; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY coverage_fuzzing_corpuses + ADD CONSTRAINT coverage_fuzzing_corpuses_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_77c6293242; +ALTER TABLE ONLY csv_issue_imports + ADD CONSTRAINT csv_issue_imports_pkey PRIMARY KEY (id); +ALTER TABLE ONLY custom_emoji + ADD CONSTRAINT custom_emoji_pkey PRIMARY KEY (id); --- --- Name: index_77f67bf238; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY custom_software_licenses + ADD CONSTRAINT custom_software_licenses_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_77f67bf238; +ALTER TABLE ONLY customer_relations_contacts + ADD CONSTRAINT customer_relations_contacts_pkey PRIMARY KEY (id); +ALTER TABLE ONLY customer_relations_organizations + ADD CONSTRAINT customer_relations_organizations_pkey PRIMARY KEY (id); --- --- Name: index_7822759674; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY dast_pre_scan_verification_steps + ADD CONSTRAINT dast_pre_scan_verification_steps_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_7822759674; +ALTER TABLE ONLY dast_pre_scan_verifications + ADD CONSTRAINT dast_pre_scan_verifications_pkey PRIMARY KEY (id); +ALTER TABLE ONLY dast_profile_schedules + ADD CONSTRAINT dast_profile_schedules_pkey PRIMARY KEY (id); --- --- Name: index_7a0b7ffadf; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY dast_profiles_pipelines + ADD CONSTRAINT dast_profiles_pipelines_pkey PRIMARY KEY (dast_profile_id, ci_pipeline_id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_7a0b7ffadf; +ALTER TABLE ONLY dast_profiles + ADD CONSTRAINT dast_profiles_pkey PRIMARY KEY (id); +ALTER TABLE ONLY dast_profiles_tags + ADD CONSTRAINT dast_profiles_tags_pkey PRIMARY KEY (id); --- --- Name: index_7b7c85eceb; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY dast_scanner_profiles_builds + ADD CONSTRAINT dast_scanner_profiles_builds_pkey PRIMARY KEY (dast_scanner_profile_id, ci_build_id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_7b7c85eceb; +ALTER TABLE ONLY dast_scanner_profiles + ADD CONSTRAINT dast_scanner_profiles_pkey PRIMARY KEY (id); +ALTER TABLE ONLY dast_site_profile_secret_variables + ADD CONSTRAINT dast_site_profile_secret_variables_pkey PRIMARY KEY (id); --- --- Name: index_7da2307d2e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY dast_site_profiles_builds + ADD CONSTRAINT dast_site_profiles_builds_pkey PRIMARY KEY (dast_site_profile_id, ci_build_id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_7da2307d2e; +ALTER TABLE ONLY dast_site_profiles + ADD CONSTRAINT dast_site_profiles_pkey PRIMARY KEY (id); +ALTER TABLE ONLY dast_site_tokens + ADD CONSTRAINT dast_site_tokens_pkey PRIMARY KEY (id); --- --- Name: index_7ead2300ca; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY dast_site_validations + ADD CONSTRAINT dast_site_validations_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_7ead2300ca; +ALTER TABLE ONLY dast_sites + ADD CONSTRAINT dast_sites_pkey PRIMARY KEY (id); +ALTER TABLE namespace_settings + ADD CONSTRAINT default_branch_protection_defaults_size_constraint CHECK ((octet_length((default_branch_protection_defaults)::text) <= 1024)) NOT VALID; --- --- Name: index_7ecb5b68b4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE application_settings + ADD CONSTRAINT default_branch_protection_defaults_size_constraint CHECK ((octet_length((default_branch_protection_defaults)::text) <= 1024)) NOT VALID; -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_7ecb5b68b4; +ALTER TABLE ONLY dependency_list_export_parts + ADD CONSTRAINT dependency_list_export_parts_pkey PRIMARY KEY (id); +ALTER TABLE ONLY dependency_list_exports + ADD CONSTRAINT dependency_list_exports_pkey PRIMARY KEY (id); --- --- Name: index_7f543eed8d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY dependency_proxy_blob_states + ADD CONSTRAINT dependency_proxy_blob_states_pkey PRIMARY KEY (dependency_proxy_blob_id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_7f543eed8d; +ALTER TABLE ONLY dependency_proxy_blobs + ADD CONSTRAINT dependency_proxy_blobs_pkey PRIMARY KEY (id); +ALTER TABLE ONLY dependency_proxy_group_settings + ADD CONSTRAINT dependency_proxy_group_settings_pkey PRIMARY KEY (id); --- --- Name: index_7f8a80dd47; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY dependency_proxy_image_ttl_group_policies + ADD CONSTRAINT dependency_proxy_image_ttl_group_policies_pkey PRIMARY KEY (group_id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_7f8a80dd47; +ALTER TABLE ONLY dependency_proxy_manifest_states + ADD CONSTRAINT dependency_proxy_manifest_states_pkey PRIMARY KEY (dependency_proxy_manifest_id); +ALTER TABLE ONLY dependency_proxy_manifests + ADD CONSTRAINT dependency_proxy_manifests_pkey PRIMARY KEY (id); --- --- Name: index_80305b1eed; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY dependency_proxy_packages_settings + ADD CONSTRAINT dependency_proxy_packages_settings_pkey PRIMARY KEY (project_id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_80305b1eed; +ALTER TABLE ONLY deploy_keys_projects + ADD CONSTRAINT deploy_keys_projects_pkey PRIMARY KEY (id); +ALTER TABLE ONLY deploy_tokens + ADD CONSTRAINT deploy_tokens_pkey PRIMARY KEY (id); --- --- Name: index_807671c4be; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY deployment_approvals + ADD CONSTRAINT deployment_approvals_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_807671c4be; +ALTER TABLE ONLY deployment_clusters + ADD CONSTRAINT deployment_clusters_pkey PRIMARY KEY (deployment_id); +ALTER TABLE ONLY deployment_merge_requests + ADD CONSTRAINT deployment_merge_requests_pkey PRIMARY KEY (deployment_id, merge_request_id); --- --- Name: index_807fa83fc0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY deployments + ADD CONSTRAINT deployments_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_807fa83fc0; +ALTER TABLE ONLY description_versions + ADD CONSTRAINT description_versions_pkey PRIMARY KEY (id); +ALTER TABLE ONLY design_management_designs + ADD CONSTRAINT design_management_designs_pkey PRIMARY KEY (id); --- --- Name: index_80a81ac235; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY design_management_designs_versions + ADD CONSTRAINT design_management_designs_versions_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_80a81ac235; +ALTER TABLE ONLY design_management_repositories + ADD CONSTRAINT design_management_repositories_pkey PRIMARY KEY (id); +ALTER TABLE ONLY design_management_repository_states + ADD CONSTRAINT design_management_repository_states_pkey PRIMARY KEY (design_management_repository_id); --- --- Name: index_80c65daf20; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY design_management_versions + ADD CONSTRAINT design_management_versions_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_80c65daf20; +ALTER TABLE ONLY design_user_mentions + ADD CONSTRAINT design_user_mentions_pkey PRIMARY KEY (id); +ALTER TABLE ONLY detached_partitions + ADD CONSTRAINT detached_partitions_pkey PRIMARY KEY (id); --- --- Name: index_81b31eafac; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY diff_note_positions + ADD CONSTRAINT diff_note_positions_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_81b31eafac; +ALTER TABLE ONLY dingtalk_tracker_data + ADD CONSTRAINT dingtalk_tracker_data_pkey PRIMARY KEY (id); +ALTER TABLE ONLY dora_configurations + ADD CONSTRAINT dora_configurations_pkey PRIMARY KEY (id); --- --- Name: index_81b9cf594f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY dora_daily_metrics + ADD CONSTRAINT dora_daily_metrics_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_81b9cf594f; +ALTER TABLE ONLY dora_performance_scores + ADD CONSTRAINT dora_performance_scores_pkey PRIMARY KEY (id); +ALTER TABLE ONLY draft_notes + ADD CONSTRAINT draft_notes_pkey PRIMARY KEY (id); --- --- Name: index_82c675952c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY duo_workflows_checkpoints + ADD CONSTRAINT duo_workflows_checkpoints_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_82c675952c; +ALTER TABLE ONLY duo_workflows_workflows + ADD CONSTRAINT duo_workflows_workflows_pkey PRIMARY KEY (id); +ALTER TABLE ONLY early_access_program_tracking_events + ADD CONSTRAINT early_access_program_tracking_events_pkey PRIMARY KEY (id); --- --- Name: index_831e7f124f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY elastic_group_index_statuses + ADD CONSTRAINT elastic_group_index_statuses_pkey PRIMARY KEY (namespace_id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_831e7f124f; +ALTER TABLE ONLY elastic_index_settings + ADD CONSTRAINT elastic_index_settings_pkey PRIMARY KEY (id); +ALTER TABLE ONLY elastic_reindexing_slices + ADD CONSTRAINT elastic_reindexing_slices_pkey PRIMARY KEY (id); --- --- Name: index_837a193bf2; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY elastic_reindexing_subtasks + ADD CONSTRAINT elastic_reindexing_subtasks_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_837a193bf2; +ALTER TABLE ONLY elastic_reindexing_tasks + ADD CONSTRAINT elastic_reindexing_tasks_pkey PRIMARY KEY (id); +ALTER TABLE ONLY elasticsearch_indexed_namespaces + ADD CONSTRAINT elasticsearch_indexed_namespaces_pkey PRIMARY KEY (namespace_id); --- --- Name: index_837cc295f1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY elasticsearch_indexed_projects + ADD CONSTRAINT elasticsearch_indexed_projects_pkey PRIMARY KEY (project_id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_837cc295f1; +ALTER TABLE ONLY emails + ADD CONSTRAINT emails_pkey PRIMARY KEY (id); +ALTER TABLE ONLY environments + ADD CONSTRAINT environments_pkey PRIMARY KEY (id); --- --- Name: index_83c5049b3e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY epic_issues + ADD CONSTRAINT epic_issues_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_83c5049b3e; +ALTER TABLE ONLY epic_metrics + ADD CONSTRAINT epic_metrics_pkey PRIMARY KEY (id); +ALTER TABLE ONLY epic_user_mentions + ADD CONSTRAINT epic_user_mentions_pkey PRIMARY KEY (id); --- --- Name: index_83edf231b8; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY epics + ADD CONSTRAINT epics_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_83edf231b8; +ALTER TABLE ONLY error_tracking_client_keys + ADD CONSTRAINT error_tracking_client_keys_pkey PRIMARY KEY (id); +ALTER TABLE ONLY error_tracking_error_events + ADD CONSTRAINT error_tracking_error_events_pkey PRIMARY KEY (id); --- --- Name: index_844abd2888; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY error_tracking_errors + ADD CONSTRAINT error_tracking_errors_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_844abd2888; +ALTER TABLE ONLY events + ADD CONSTRAINT events_pkey PRIMARY KEY (id); +ALTER TABLE ONLY evidences + ADD CONSTRAINT evidences_pkey PRIMARY KEY (id); --- --- Name: index_8464227c80; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY external_approval_rules + ADD CONSTRAINT external_approval_rules_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_8464227c80; +ALTER TABLE ONLY external_pull_requests + ADD CONSTRAINT external_pull_requests_pkey PRIMARY KEY (id); +ALTER TABLE ONLY external_status_checks + ADD CONSTRAINT external_status_checks_pkey PRIMARY KEY (id); --- --- Name: index_8685d7c69c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY external_status_checks_protected_branches + ADD CONSTRAINT external_status_checks_protected_branches_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_8685d7c69c; +ALTER TABLE ONLY feature_gates + ADD CONSTRAINT feature_gates_pkey PRIMARY KEY (id); +ALTER TABLE ONLY features + ADD CONSTRAINT features_pkey PRIMARY KEY (id); --- --- Name: index_8688b40056; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY fork_network_members + ADD CONSTRAINT fork_network_members_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_8688b40056; +ALTER TABLE ONLY fork_networks + ADD CONSTRAINT fork_networks_pkey PRIMARY KEY (id); +ALTER TABLE ONLY geo_cache_invalidation_events + ADD CONSTRAINT geo_cache_invalidation_events_pkey PRIMARY KEY (id); --- --- Name: index_876145d1d5; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY geo_event_log + ADD CONSTRAINT geo_event_log_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_876145d1d5; +ALTER TABLE ONLY geo_events + ADD CONSTRAINT geo_events_pkey PRIMARY KEY (id); +ALTER TABLE ONLY geo_node_namespace_links + ADD CONSTRAINT geo_node_namespace_links_pkey PRIMARY KEY (id); --- --- Name: index_87d40fb9f9; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY geo_node_statuses + ADD CONSTRAINT geo_node_statuses_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_87d40fb9f9; +ALTER TABLE ONLY geo_nodes + ADD CONSTRAINT geo_nodes_pkey PRIMARY KEY (id); +ALTER TABLE ONLY ghost_user_migrations + ADD CONSTRAINT ghost_user_migrations_pkey PRIMARY KEY (id); --- --- Name: index_88b40d6740; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY gitlab_subscription_histories + ADD CONSTRAINT gitlab_subscription_histories_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_88b40d6740; +ALTER TABLE ONLY gitlab_subscriptions + ADD CONSTRAINT gitlab_subscriptions_pkey PRIMARY KEY (id); +ALTER TABLE ONLY gpg_key_subkeys + ADD CONSTRAINT gpg_key_subkeys_pkey PRIMARY KEY (id); --- --- Name: index_89c49cf697; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY gpg_keys + ADD CONSTRAINT gpg_keys_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_89c49cf697; +ALTER TABLE ONLY gpg_signatures + ADD CONSTRAINT gpg_signatures_pkey PRIMARY KEY (id); +ALTER TABLE ONLY grafana_integrations + ADD CONSTRAINT grafana_integrations_pkey PRIMARY KEY (id); --- --- Name: index_89c79afe5c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY group_audit_events + ADD CONSTRAINT group_audit_events_pkey PRIMARY KEY (id, created_at); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_89c79afe5c; +ALTER TABLE ONLY group_crm_settings + ADD CONSTRAINT group_crm_settings_pkey PRIMARY KEY (group_id); +ALTER TABLE ONLY group_custom_attributes + ADD CONSTRAINT group_custom_attributes_pkey PRIMARY KEY (id); --- --- Name: index_8a0fc3de4f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY group_deletion_schedules + ADD CONSTRAINT group_deletion_schedules_pkey PRIMARY KEY (group_id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_8a0fc3de4f; +ALTER TABLE ONLY group_deploy_keys_groups + ADD CONSTRAINT group_deploy_keys_groups_pkey PRIMARY KEY (id); +ALTER TABLE ONLY group_deploy_keys + ADD CONSTRAINT group_deploy_keys_pkey PRIMARY KEY (id); --- --- Name: index_8a8eb06b9a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY group_deploy_tokens + ADD CONSTRAINT group_deploy_tokens_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_8a8eb06b9a; +ALTER TABLE ONLY group_features + ADD CONSTRAINT group_features_pkey PRIMARY KEY (group_id); +ALTER TABLE ONLY group_group_links + ADD CONSTRAINT group_group_links_pkey PRIMARY KEY (id); --- --- Name: index_8b1b6b03b4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY group_import_states + ADD CONSTRAINT group_import_states_pkey PRIMARY KEY (group_id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_8b1b6b03b4; +ALTER TABLE ONLY group_merge_request_approval_settings + ADD CONSTRAINT group_merge_request_approval_settings_pkey PRIMARY KEY (group_id); +ALTER TABLE ONLY group_repository_storage_moves + ADD CONSTRAINT group_repository_storage_moves_pkey PRIMARY KEY (id); --- --- Name: index_8b9f9a19a4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY group_saved_replies + ADD CONSTRAINT group_saved_replies_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_8b9f9a19a4; +ALTER TABLE ONLY group_ssh_certificates + ADD CONSTRAINT group_ssh_certificates_pkey PRIMARY KEY (id); +ALTER TABLE ONLY group_wiki_repositories + ADD CONSTRAINT group_wiki_repositories_pkey PRIMARY KEY (group_id); --- --- Name: index_8fb48e72ce; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY group_wiki_repository_states + ADD CONSTRAINT group_wiki_repository_states_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_8fb48e72ce; +ALTER TABLE ONLY groups_visits + ADD CONSTRAINT groups_visits_pkey PRIMARY KEY (id, visited_at); +ALTER TABLE ONLY historical_data + ADD CONSTRAINT historical_data_pkey PRIMARY KEY (id); --- --- Name: index_907e12b7ba; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY identities + ADD CONSTRAINT identities_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_907e12b7ba; +ALTER TABLE ONLY import_export_uploads + ADD CONSTRAINT import_export_uploads_pkey PRIMARY KEY (id); +ALTER TABLE ONLY import_failures + ADD CONSTRAINT import_failures_pkey PRIMARY KEY (id); --- --- Name: index_918bb2ebbb; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY import_placeholder_memberships + ADD CONSTRAINT import_placeholder_memberships_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_918bb2ebbb; +ALTER TABLE ONLY import_source_user_placeholder_references + ADD CONSTRAINT import_source_user_placeholder_references_pkey PRIMARY KEY (id); +ALTER TABLE ONLY import_source_users + ADD CONSTRAINT import_source_users_pkey PRIMARY KEY (id); --- --- Name: index_91c432a4bd; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY incident_management_oncall_shifts + ADD CONSTRAINT inc_mgmnt_no_overlapping_oncall_shifts EXCLUDE USING gist (rotation_id WITH =, tstzrange(starts_at, ends_at, '[)'::text) WITH &&); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_91c432a4bd; +ALTER TABLE ONLY incident_management_escalation_policies + ADD CONSTRAINT incident_management_escalation_policies_pkey PRIMARY KEY (id); +ALTER TABLE ONLY incident_management_escalation_rules + ADD CONSTRAINT incident_management_escalation_rules_pkey PRIMARY KEY (id); --- --- Name: index_91d5e4e3df; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY incident_management_issuable_escalation_statuses + ADD CONSTRAINT incident_management_issuable_escalation_statuses_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_91d5e4e3df; +ALTER TABLE ONLY incident_management_oncall_participants + ADD CONSTRAINT incident_management_oncall_participants_pkey PRIMARY KEY (id); +ALTER TABLE ONLY incident_management_oncall_rotations + ADD CONSTRAINT incident_management_oncall_rotations_pkey PRIMARY KEY (id); --- --- Name: index_9201b952a0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY incident_management_oncall_schedules + ADD CONSTRAINT incident_management_oncall_schedules_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_9201b952a0; +ALTER TABLE ONLY incident_management_oncall_shifts + ADD CONSTRAINT incident_management_oncall_shifts_pkey PRIMARY KEY (id); +ALTER TABLE ONLY incident_management_pending_alert_escalations + ADD CONSTRAINT incident_management_pending_alert_escalations_pkey PRIMARY KEY (id, process_at); --- --- Name: index_927796f71d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY incident_management_pending_issue_escalations + ADD CONSTRAINT incident_management_pending_issue_escalations_pkey PRIMARY KEY (id, process_at); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_927796f71d; +ALTER TABLE ONLY incident_management_timeline_event_tag_links + ADD CONSTRAINT incident_management_timeline_event_tag_links_pkey PRIMARY KEY (id); +ALTER TABLE ONLY incident_management_timeline_event_tags + ADD CONSTRAINT incident_management_timeline_event_tags_pkey PRIMARY KEY (id); --- --- Name: index_92c09e352b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY incident_management_timeline_events + ADD CONSTRAINT incident_management_timeline_events_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_92c09e352b; +ALTER TABLE ONLY index_statuses + ADD CONSTRAINT index_statuses_pkey PRIMARY KEY (id); +ALTER TABLE ONLY insights + ADD CONSTRAINT insights_pkey PRIMARY KEY (id); --- --- Name: index_9490e0e0b7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY instance_audit_events + ADD CONSTRAINT instance_audit_events_pkey PRIMARY KEY (id, created_at); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_9490e0e0b7; +ALTER TABLE ONLY instance_audit_events_streaming_headers + ADD CONSTRAINT instance_audit_events_streaming_headers_pkey PRIMARY KEY (id); +ALTER TABLE ONLY integrations + ADD CONSTRAINT integrations_pkey PRIMARY KEY (id); --- --- Name: index_9555c2ae92; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY internal_ids + ADD CONSTRAINT internal_ids_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_9555c2ae92; +ALTER TABLE ONLY ip_restrictions + ADD CONSTRAINT ip_restrictions_pkey PRIMARY KEY (id); +ALTER TABLE ONLY issuable_metric_images + ADD CONSTRAINT issuable_metric_images_pkey PRIMARY KEY (id); --- --- Name: index_95a353f50b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issuable_resource_links + ADD CONSTRAINT issuable_resource_links_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_95a353f50b; +ALTER TABLE ONLY issuable_severities + ADD CONSTRAINT issuable_severities_pkey PRIMARY KEY (id); +ALTER TABLE ONLY issuable_slas + ADD CONSTRAINT issuable_slas_pkey PRIMARY KEY (id); --- --- Name: index_971af9481e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_assignees + ADD CONSTRAINT issue_assignees_pkey PRIMARY KEY (issue_id, user_id); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_971af9481e; +ALTER TABLE ONLY issue_assignment_events + ADD CONSTRAINT issue_assignment_events_pkey PRIMARY KEY (id); +ALTER TABLE ONLY issue_customer_relations_contacts + ADD CONSTRAINT issue_customer_relations_contacts_pkey PRIMARY KEY (id); --- --- Name: index_994aa245b7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_email_participants + ADD CONSTRAINT issue_email_participants_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_994aa245b7; +ALTER TABLE ONLY issue_emails + ADD CONSTRAINT issue_emails_pkey PRIMARY KEY (id); +ALTER TABLE ONLY issue_links + ADD CONSTRAINT issue_links_pkey PRIMARY KEY (id); --- --- Name: index_9955b1dc59; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issue_metrics + ADD CONSTRAINT issue_metrics_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_9955b1dc59; +ALTER TABLE ONLY issue_tracker_data + ADD CONSTRAINT issue_tracker_data_pkey PRIMARY KEY (id); +ALTER TABLE ONLY issue_user_mentions + ADD CONSTRAINT issue_user_mentions_pkey PRIMARY KEY (id); --- --- Name: index_9a2eb72a3b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY issues + ADD CONSTRAINT issues_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_9a2eb72a3b; +ALTER TABLE ONLY issues_prometheus_alert_events + ADD CONSTRAINT issues_prometheus_alert_events_pkey PRIMARY KEY (issue_id, prometheus_alert_event_id); +ALTER TABLE ONLY issues_self_managed_prometheus_alert_events + ADD CONSTRAINT issues_self_managed_prometheus_alert_events_pkey PRIMARY KEY (issue_id, self_managed_prometheus_alert_event_id); --- --- Name: index_9b8e89ae41; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY sprints + ADD CONSTRAINT iteration_start_and_due_date_iterations_cadence_id_constraint EXCLUDE USING gist (iterations_cadence_id WITH =, daterange(start_date, due_date, '[]'::text) WITH &&) WHERE ((group_id IS NOT NULL)) DEFERRABLE INITIALLY DEFERRED; -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_9b8e89ae41; +ALTER TABLE ONLY iterations_cadences + ADD CONSTRAINT iterations_cadences_pkey PRIMARY KEY (id); +ALTER TABLE ONLY jira_connect_installations + ADD CONSTRAINT jira_connect_installations_pkey PRIMARY KEY (id); --- --- Name: index_9d0e953ab3; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY jira_connect_subscriptions + ADD CONSTRAINT jira_connect_subscriptions_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_9d0e953ab3; +ALTER TABLE ONLY jira_imports + ADD CONSTRAINT jira_imports_pkey PRIMARY KEY (id); +ALTER TABLE ONLY jira_tracker_data + ADD CONSTRAINT jira_tracker_data_pkey PRIMARY KEY (id); --- --- Name: index_9ee83b068b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY keys + ADD CONSTRAINT keys_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_9ee83b068b; +ALTER TABLE ONLY label_links + ADD CONSTRAINT label_links_pkey PRIMARY KEY (id); +ALTER TABLE ONLY label_priorities + ADD CONSTRAINT label_priorities_pkey PRIMARY KEY (id); --- --- Name: index_a016d4ed08; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY labels + ADD CONSTRAINT labels_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_a016d4ed08; +ALTER TABLE ONLY ldap_group_links + ADD CONSTRAINT ldap_group_links_pkey PRIMARY KEY (id); +ALTER TABLE ONLY lfs_file_locks + ADD CONSTRAINT lfs_file_locks_pkey PRIMARY KEY (id); --- --- Name: index_a1a9dc36c1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY lfs_object_states + ADD CONSTRAINT lfs_object_states_pkey PRIMARY KEY (lfs_object_id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a1a9dc36c1; +ALTER TABLE ONLY lfs_objects + ADD CONSTRAINT lfs_objects_pkey PRIMARY KEY (id); +ALTER TABLE ONLY lfs_objects_projects + ADD CONSTRAINT lfs_objects_projects_pkey PRIMARY KEY (id); --- --- Name: index_a2d9f185a5; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY licenses + ADD CONSTRAINT licenses_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a2d9f185a5; +ALTER TABLE ONLY list_user_preferences + ADD CONSTRAINT list_user_preferences_pkey PRIMARY KEY (id); +ALTER TABLE ONLY lists + ADD CONSTRAINT lists_pkey PRIMARY KEY (id); --- --- Name: index_a3feed3097; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY loose_foreign_keys_deleted_records + ADD CONSTRAINT loose_foreign_keys_deleted_records_pkey PRIMARY KEY (partition, id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a3feed3097; +ALTER TABLE ONLY member_approvals + ADD CONSTRAINT member_approvals_pkey PRIMARY KEY (id); +ALTER TABLE ONLY member_roles + ADD CONSTRAINT member_roles_pkey PRIMARY KEY (id); --- --- Name: index_a46b7b7f26; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY members + ADD CONSTRAINT members_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_a46b7b7f26; +ALTER TABLE ONLY merge_request_assignees + ADD CONSTRAINT merge_request_assignees_pkey PRIMARY KEY (id); +ALTER TABLE ONLY merge_request_assignment_events + ADD CONSTRAINT merge_request_assignment_events_pkey PRIMARY KEY (id); --- --- Name: index_a4f5106804; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY merge_request_blocks + ADD CONSTRAINT merge_request_blocks_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_a4f5106804; +ALTER TABLE ONLY merge_request_cleanup_schedules + ADD CONSTRAINT merge_request_cleanup_schedules_pkey PRIMARY KEY (merge_request_id); +ALTER TABLE ONLY merge_request_context_commit_diff_files + ADD CONSTRAINT merge_request_context_commit_diff_files_pkey PRIMARY KEY (merge_request_context_commit_id, relative_order); --- --- Name: index_a6999c65c9; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY merge_request_context_commits + ADD CONSTRAINT merge_request_context_commits_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a6999c65c9; +ALTER TABLE ONLY merge_request_diff_commit_users + ADD CONSTRAINT merge_request_diff_commit_users_pkey PRIMARY KEY (id); +ALTER TABLE ONLY merge_request_diff_commits_b5377a7a34 + ADD CONSTRAINT merge_request_diff_commits_b5377a7a34_pkey PRIMARY KEY (merge_request_diff_id, relative_order); --- --- Name: index_a6c68d16b2; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY merge_request_diff_commits + ADD CONSTRAINT merge_request_diff_commits_pkey PRIMARY KEY (merge_request_diff_id, relative_order); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_a6c68d16b2; +ALTER TABLE ONLY merge_request_diff_details + ADD CONSTRAINT merge_request_diff_details_pkey PRIMARY KEY (merge_request_diff_id); +ALTER TABLE ONLY merge_request_diff_files_99208b8fac + ADD CONSTRAINT merge_request_diff_files_99208b8fac_pkey PRIMARY KEY (merge_request_diff_id, relative_order); --- --- Name: index_a8276a450f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY merge_request_diff_files + ADD CONSTRAINT merge_request_diff_files_pkey PRIMARY KEY (merge_request_diff_id, relative_order); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_a8276a450f; +ALTER TABLE ONLY merge_request_diffs + ADD CONSTRAINT merge_request_diffs_pkey PRIMARY KEY (id); +ALTER TABLE ONLY merge_request_metrics + ADD CONSTRAINT merge_request_metrics_pkey PRIMARY KEY (id); --- --- Name: index_a849f1bbcc; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY merge_request_predictions + ADD CONSTRAINT merge_request_predictions_pkey PRIMARY KEY (merge_request_id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_a849f1bbcc; +ALTER TABLE ONLY merge_request_requested_changes + ADD CONSTRAINT merge_request_requested_changes_pkey PRIMARY KEY (id); +ALTER TABLE ONLY merge_request_reviewers + ADD CONSTRAINT merge_request_reviewers_pkey PRIMARY KEY (id); --- --- Name: index_a88f20fc98; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY merge_request_user_mentions + ADD CONSTRAINT merge_request_user_mentions_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a88f20fc98; +ALTER TABLE ONLY merge_requests_closing_issues + ADD CONSTRAINT merge_requests_closing_issues_pkey PRIMARY KEY (id); +ALTER TABLE ONLY merge_requests_compliance_violations + ADD CONSTRAINT merge_requests_compliance_violations_pkey PRIMARY KEY (id); --- --- Name: index_a8fe03fe34; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY merge_requests + ADD CONSTRAINT merge_requests_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_a8fe03fe34; +ALTER TABLE ONLY merge_trains + ADD CONSTRAINT merge_trains_pkey PRIMARY KEY (id); +ALTER TABLE ONLY metrics_dashboard_annotations + ADD CONSTRAINT metrics_dashboard_annotations_pkey PRIMARY KEY (id); --- --- Name: index_a9424aa392; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY metrics_users_starred_dashboards + ADD CONSTRAINT metrics_users_starred_dashboards_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a9424aa392; +ALTER TABLE ONLY milestone_releases + ADD CONSTRAINT milestone_releases_pkey PRIMARY KEY (milestone_id, release_id); +ALTER TABLE ONLY milestones + ADD CONSTRAINT milestones_pkey PRIMARY KEY (id); --- --- Name: index_a99cee1904; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ml_candidate_metadata + ADD CONSTRAINT ml_candidate_metadata_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a99cee1904; +ALTER TABLE ONLY ml_candidate_metrics + ADD CONSTRAINT ml_candidate_metrics_pkey PRIMARY KEY (id); +ALTER TABLE ONLY ml_candidate_params + ADD CONSTRAINT ml_candidate_params_pkey PRIMARY KEY (id); --- --- Name: index_a9b1763c36; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ml_candidates + ADD CONSTRAINT ml_candidates_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_a9b1763c36; +ALTER TABLE ONLY ml_experiment_metadata + ADD CONSTRAINT ml_experiment_metadata_pkey PRIMARY KEY (id); +ALTER TABLE ONLY ml_experiments + ADD CONSTRAINT ml_experiments_pkey PRIMARY KEY (id); --- --- Name: index_a9ba23c88e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ml_model_metadata + ADD CONSTRAINT ml_model_metadata_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_a9ba23c88e; +ALTER TABLE ONLY ml_model_version_metadata + ADD CONSTRAINT ml_model_version_metadata_pkey PRIMARY KEY (id); +ALTER TABLE ONLY ml_model_versions + ADD CONSTRAINT ml_model_versions_pkey PRIMARY KEY (id); --- --- Name: index_a9deff2159; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY ml_models + ADD CONSTRAINT ml_models_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_a9deff2159; +ALTER TABLE ONLY namespace_admin_notes + ADD CONSTRAINT namespace_admin_notes_pkey PRIMARY KEY (id); +ALTER TABLE ONLY namespace_aggregation_schedules + ADD CONSTRAINT namespace_aggregation_schedules_pkey PRIMARY KEY (namespace_id); --- --- Name: index_aa92d75d85; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY namespace_bans + ADD CONSTRAINT namespace_bans_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_aa92d75d85; +ALTER TABLE ONLY namespace_ci_cd_settings + ADD CONSTRAINT namespace_ci_cd_settings_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY namespace_commit_emails + ADD CONSTRAINT namespace_commit_emails_pkey PRIMARY KEY (id); --- --- Name: index_aabc184267; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY namespace_details + ADD CONSTRAINT namespace_details_pkey PRIMARY KEY (namespace_id); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_aabc184267; +ALTER TABLE ONLY namespace_import_users + ADD CONSTRAINT namespace_import_users_pkey PRIMARY KEY (id); +ALTER TABLE ONLY namespace_ldap_settings + ADD CONSTRAINT namespace_ldap_settings_pkey PRIMARY KEY (namespace_id); --- --- Name: index_ab22231a16; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY namespace_limits + ADD CONSTRAINT namespace_limits_pkey PRIMARY KEY (namespace_id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_ab22231a16; +ALTER TABLE ONLY namespace_package_settings + ADD CONSTRAINT namespace_package_settings_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY namespace_root_storage_statistics + ADD CONSTRAINT namespace_root_storage_statistics_pkey PRIMARY KEY (namespace_id); --- --- Name: index_abbdf80ab1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY namespace_settings + ADD CONSTRAINT namespace_settings_pkey PRIMARY KEY (namespace_id); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_abbdf80ab1; +ALTER TABLE ONLY namespace_statistics + ADD CONSTRAINT namespace_statistics_pkey PRIMARY KEY (id); +ALTER TABLE ONLY namespaces + ADD CONSTRAINT namespaces_pkey PRIMARY KEY (id); --- --- Name: index_aca42d7cff; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY namespaces_storage_limit_exclusions + ADD CONSTRAINT namespaces_storage_limit_exclusions_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_aca42d7cff; +ALTER TABLE ONLY namespaces_sync_events + ADD CONSTRAINT namespaces_sync_events_pkey PRIMARY KEY (id); +ALTER TABLE ONLY note_diff_files + ADD CONSTRAINT note_diff_files_pkey PRIMARY KEY (id); --- --- Name: index_ad55e8b11c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY note_metadata + ADD CONSTRAINT note_metadata_pkey PRIMARY KEY (note_id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ad55e8b11c; +ALTER TABLE ONLY notes + ADD CONSTRAINT notes_pkey PRIMARY KEY (id); +ALTER TABLE ONLY notification_settings + ADD CONSTRAINT notification_settings_pkey PRIMARY KEY (id); --- --- Name: index_adc159c3fe; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY oauth_access_grants + ADD CONSTRAINT oauth_access_grants_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_adc159c3fe; +ALTER TABLE ONLY oauth_access_tokens + ADD CONSTRAINT oauth_access_tokens_pkey PRIMARY KEY (id); +ALTER TABLE ONLY oauth_applications + ADD CONSTRAINT oauth_applications_pkey PRIMARY KEY (id); --- --- Name: index_aed7f7b10c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY oauth_device_grants + ADD CONSTRAINT oauth_device_grants_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_aed7f7b10c; +ALTER TABLE ONLY oauth_openid_requests + ADD CONSTRAINT oauth_openid_requests_pkey PRIMARY KEY (id); +ALTER TABLE ONLY observability_logs_issues_connections + ADD CONSTRAINT observability_logs_issues_connections_pkey PRIMARY KEY (id); --- --- Name: index_aee84adb5b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY observability_metrics_issues_connections + ADD CONSTRAINT observability_metrics_issues_connections_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_aee84adb5b; +ALTER TABLE ONLY observability_traces_issues_connections + ADD CONSTRAINT observability_traces_issues_connections_pkey PRIMARY KEY (id); +ALTER TABLE ONLY onboarding_progresses + ADD CONSTRAINT onboarding_progresses_pkey PRIMARY KEY (id); --- --- Name: index_af8368d587; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY operations_feature_flag_scopes + ADD CONSTRAINT operations_feature_flag_scopes_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_af8368d587; +ALTER TABLE ONLY operations_feature_flags_clients + ADD CONSTRAINT operations_feature_flags_clients_pkey PRIMARY KEY (id); +ALTER TABLE ONLY operations_feature_flags_issues + ADD CONSTRAINT operations_feature_flags_issues_pkey PRIMARY KEY (id); --- --- Name: index_b1dda405af; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY operations_feature_flags + ADD CONSTRAINT operations_feature_flags_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_b1dda405af; +ALTER TABLE ONLY operations_scopes + ADD CONSTRAINT operations_scopes_pkey PRIMARY KEY (id); +ALTER TABLE ONLY operations_strategies + ADD CONSTRAINT operations_strategies_pkey PRIMARY KEY (id); --- --- Name: index_b24e8538c8; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY operations_strategies_user_lists + ADD CONSTRAINT operations_strategies_user_lists_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_b24e8538c8; +ALTER TABLE ONLY operations_user_lists + ADD CONSTRAINT operations_user_lists_pkey PRIMARY KEY (id); +ALTER TABLE ONLY organization_details + ADD CONSTRAINT organization_details_pkey PRIMARY KEY (organization_id); --- --- Name: index_b286c595e8; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY organization_settings + ADD CONSTRAINT organization_settings_pkey PRIMARY KEY (organization_id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_b286c595e8; +ALTER TABLE ONLY organization_users + ADD CONSTRAINT organization_users_pkey PRIMARY KEY (id); +ALTER TABLE ONLY organizations + ADD CONSTRAINT organizations_pkey PRIMARY KEY (id); --- --- Name: index_b377ac6784; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY p_batched_git_ref_updates_deletions + ADD CONSTRAINT p_batched_git_ref_updates_deletions_pkey PRIMARY KEY (id, partition_id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_b377ac6784; +ALTER TABLE ONLY p_catalog_resource_component_usages + ADD CONSTRAINT p_catalog_resource_component_usages_pkey PRIMARY KEY (id, used_date); +ALTER TABLE ONLY p_catalog_resource_sync_events + ADD CONSTRAINT p_catalog_resource_sync_events_pkey PRIMARY KEY (id, partition_id); --- --- Name: index_b3b64068e7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY p_ci_build_names + ADD CONSTRAINT p_ci_build_names_pkey PRIMARY KEY (build_id, partition_id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_b3b64068e7; +ALTER TABLE ONLY p_ci_build_sources + ADD CONSTRAINT p_ci_build_sources_pkey PRIMARY KEY (build_id, partition_id); +ALTER TABLE ONLY p_ci_build_tags + ADD CONSTRAINT p_ci_build_tags_pkey PRIMARY KEY (id, partition_id); --- --- Name: index_b3c4c9a53f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY p_ci_builds_execution_configs + ADD CONSTRAINT p_ci_builds_execution_configs_pkey PRIMARY KEY (id, partition_id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_b3c4c9a53f; +ALTER TABLE ONLY p_ci_finished_build_ch_sync_events + ADD CONSTRAINT p_ci_finished_build_ch_sync_events_pkey PRIMARY KEY (build_id, partition); +ALTER TABLE ONLY p_ci_finished_pipeline_ch_sync_events + ADD CONSTRAINT p_ci_finished_pipeline_ch_sync_events_pkey PRIMARY KEY (pipeline_id, partition); --- --- Name: index_b4b2bba753; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY p_ci_job_annotations + ADD CONSTRAINT p_ci_job_annotations_pkey PRIMARY KEY (id, partition_id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_b4b2bba753; +ALTER TABLE ONLY p_ci_runner_machine_builds + ADD CONSTRAINT p_ci_runner_machine_builds_pkey PRIMARY KEY (build_id, partition_id); +ALTER TABLE ONLY packages_build_infos + ADD CONSTRAINT packages_build_infos_pkey PRIMARY KEY (id); --- --- Name: index_b607012614; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY packages_cleanup_policies + ADD CONSTRAINT packages_cleanup_policies_pkey PRIMARY KEY (project_id); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_b607012614; +ALTER TABLE ONLY packages_composer_cache_files + ADD CONSTRAINT packages_composer_cache_files_pkey PRIMARY KEY (id); +ALTER TABLE ONLY packages_composer_metadata + ADD CONSTRAINT packages_composer_metadata_pkey PRIMARY KEY (package_id); --- --- Name: index_b6cc38a848; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY packages_conan_file_metadata + ADD CONSTRAINT packages_conan_file_metadata_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_b6cc38a848; +ALTER TABLE ONLY packages_conan_metadata + ADD CONSTRAINT packages_conan_metadata_pkey PRIMARY KEY (id); +ALTER TABLE ONLY packages_debian_file_metadata + ADD CONSTRAINT packages_debian_file_metadata_pkey PRIMARY KEY (package_file_id); --- --- Name: index_b748a3e0a6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY packages_debian_group_architectures + ADD CONSTRAINT packages_debian_group_architectures_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_b748a3e0a6; +ALTER TABLE ONLY packages_debian_group_component_files + ADD CONSTRAINT packages_debian_group_component_files_pkey PRIMARY KEY (id); +ALTER TABLE ONLY packages_debian_group_components + ADD CONSTRAINT packages_debian_group_components_pkey PRIMARY KEY (id); --- --- Name: index_b7f21460bb; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY packages_debian_group_distribution_keys + ADD CONSTRAINT packages_debian_group_distribution_keys_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_b7f21460bb; +ALTER TABLE ONLY packages_debian_group_distributions + ADD CONSTRAINT packages_debian_group_distributions_pkey PRIMARY KEY (id); +ALTER TABLE ONLY packages_debian_project_architectures + ADD CONSTRAINT packages_debian_project_architectures_pkey PRIMARY KEY (id); --- --- Name: index_b83fe1306b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY packages_debian_project_component_files + ADD CONSTRAINT packages_debian_project_component_files_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_b83fe1306b; +ALTER TABLE ONLY packages_debian_project_components + ADD CONSTRAINT packages_debian_project_components_pkey PRIMARY KEY (id); +ALTER TABLE ONLY packages_debian_project_distribution_keys + ADD CONSTRAINT packages_debian_project_distribution_keys_pkey PRIMARY KEY (id); --- --- Name: index_bb6defaa27; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY packages_debian_project_distributions + ADD CONSTRAINT packages_debian_project_distributions_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_bb6defaa27; +ALTER TABLE ONLY packages_debian_publications + ADD CONSTRAINT packages_debian_publications_pkey PRIMARY KEY (id); +ALTER TABLE ONLY packages_dependencies + ADD CONSTRAINT packages_dependencies_pkey PRIMARY KEY (id); --- --- Name: index_bc189e47ab; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY packages_dependency_links + ADD CONSTRAINT packages_dependency_links_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_bc189e47ab; +ALTER TABLE ONLY packages_helm_file_metadata + ADD CONSTRAINT packages_helm_file_metadata_pkey PRIMARY KEY (package_file_id); +ALTER TABLE ONLY packages_maven_metadata + ADD CONSTRAINT packages_maven_metadata_pkey PRIMARY KEY (id); --- --- Name: index_bca83177ef; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY packages_npm_metadata_caches + ADD CONSTRAINT packages_npm_metadata_caches_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_bca83177ef; +ALTER TABLE ONLY packages_npm_metadata + ADD CONSTRAINT packages_npm_metadata_pkey PRIMARY KEY (package_id); +ALTER TABLE ONLY packages_nuget_dependency_link_metadata + ADD CONSTRAINT packages_nuget_dependency_link_metadata_pkey PRIMARY KEY (dependency_link_id); --- --- Name: index_bcaa8dcd34; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY packages_nuget_metadata + ADD CONSTRAINT packages_nuget_metadata_pkey PRIMARY KEY (package_id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_bcaa8dcd34; +ALTER TABLE ONLY packages_nuget_symbols + ADD CONSTRAINT packages_nuget_symbols_pkey PRIMARY KEY (id); +ALTER TABLE ONLY packages_package_file_build_infos + ADD CONSTRAINT packages_package_file_build_infos_pkey PRIMARY KEY (id); --- --- Name: index_bcae2cf631; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY packages_package_files + ADD CONSTRAINT packages_package_files_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_bcae2cf631; +ALTER TABLE ONLY packages_packages + ADD CONSTRAINT packages_packages_pkey PRIMARY KEY (id); +ALTER TABLE ONLY packages_protection_rules + ADD CONSTRAINT packages_protection_rules_pkey PRIMARY KEY (id); --- --- Name: index_be0a028bcc; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY packages_pypi_metadata + ADD CONSTRAINT packages_pypi_metadata_pkey PRIMARY KEY (package_id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_be0a028bcc; +ALTER TABLE ONLY packages_rpm_metadata + ADD CONSTRAINT packages_rpm_metadata_pkey PRIMARY KEY (package_id); +ALTER TABLE ONLY packages_rpm_repository_files + ADD CONSTRAINT packages_rpm_repository_files_pkey PRIMARY KEY (id); --- --- Name: index_beaa329ca0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY packages_rubygems_metadata + ADD CONSTRAINT packages_rubygems_metadata_pkey PRIMARY KEY (package_id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_beaa329ca0; +ALTER TABLE ONLY packages_tags + ADD CONSTRAINT packages_tags_pkey PRIMARY KEY (id); +ALTER TABLE ONLY packages_terraform_module_metadata + ADD CONSTRAINT packages_terraform_module_metadata_pkey PRIMARY KEY (package_id); --- --- Name: index_bedd7e160b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY pages_deployment_states + ADD CONSTRAINT pages_deployment_states_pkey PRIMARY KEY (pages_deployment_id); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_bedd7e160b; +ALTER TABLE ONLY pages_deployments + ADD CONSTRAINT pages_deployments_pkey PRIMARY KEY (id); +ALTER TABLE ONLY pages_domain_acme_orders + ADD CONSTRAINT pages_domain_acme_orders_pkey PRIMARY KEY (id); --- --- Name: index_bee2b94a80; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY pages_domains + ADD CONSTRAINT pages_domains_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_bee2b94a80; +ALTER TABLE ONLY path_locks + ADD CONSTRAINT path_locks_pkey PRIMARY KEY (id); +ALTER TABLE ONLY personal_access_token_last_used_ips + ADD CONSTRAINT personal_access_token_last_used_ips_pkey PRIMARY KEY (id); --- --- Name: index_bf1809b19e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY personal_access_tokens + ADD CONSTRAINT personal_access_tokens_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_bf1809b19e; +ALTER TABLE ONLY plan_limits + ADD CONSTRAINT plan_limits_pkey PRIMARY KEY (id); +ALTER TABLE ONLY plans + ADD CONSTRAINT plans_pkey PRIMARY KEY (id); --- --- Name: index_c02f569fba; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY pm_advisories + ADD CONSTRAINT pm_advisories_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_c02f569fba; +ALTER TABLE ONLY pm_affected_packages + ADD CONSTRAINT pm_affected_packages_pkey PRIMARY KEY (id); +ALTER TABLE ONLY pm_checkpoints + ADD CONSTRAINT pm_checkpoints_pkey PRIMARY KEY (id); --- --- Name: index_c08e669dfa; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY pm_epss + ADD CONSTRAINT pm_epss_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c08e669dfa; +ALTER TABLE ONLY pm_licenses + ADD CONSTRAINT pm_licenses_pkey PRIMARY KEY (id); +ALTER TABLE ONLY pm_package_version_licenses + ADD CONSTRAINT pm_package_version_licenses_pkey PRIMARY KEY (id); --- --- Name: index_c09bb66559; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY pm_package_versions + ADD CONSTRAINT pm_package_versions_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c09bb66559; +ALTER TABLE ONLY pm_packages + ADD CONSTRAINT pm_packages_pkey PRIMARY KEY (id); +ALTER TABLE ONLY pool_repositories + ADD CONSTRAINT pool_repositories_pkey PRIMARY KEY (id); --- --- Name: index_c119f5b92e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY postgres_async_foreign_key_validations + ADD CONSTRAINT postgres_async_foreign_key_validations_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_c119f5b92e; +ALTER TABLE ONLY postgres_async_indexes + ADD CONSTRAINT postgres_async_indexes_pkey PRIMARY KEY (id); +ALTER TABLE ONLY postgres_reindex_actions + ADD CONSTRAINT postgres_reindex_actions_pkey PRIMARY KEY (id); --- --- Name: index_c17dae3605; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY postgres_reindex_queued_actions + ADD CONSTRAINT postgres_reindex_queued_actions_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c17dae3605; +ALTER TABLE ONLY programming_languages + ADD CONSTRAINT programming_languages_pkey PRIMARY KEY (id); +ALTER TABLE ONLY project_access_tokens + ADD CONSTRAINT project_access_tokens_pkey PRIMARY KEY (personal_access_token_id, project_id); --- --- Name: index_c1cdd90d0d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY project_alerting_settings + ADD CONSTRAINT project_alerting_settings_pkey PRIMARY KEY (project_id); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c1cdd90d0d; +ALTER TABLE ONLY project_aliases + ADD CONSTRAINT project_aliases_pkey PRIMARY KEY (id); +ALTER TABLE ONLY project_audit_events + ADD CONSTRAINT project_audit_events_pkey PRIMARY KEY (id, created_at); --- --- Name: index_c2b951bf20; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY project_authorizations + ADD CONSTRAINT project_authorizations_pkey PRIMARY KEY (user_id, project_id, access_level); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_c2b951bf20; +ALTER TABLE ONLY project_auto_devops + ADD CONSTRAINT project_auto_devops_pkey PRIMARY KEY (id); +ALTER TABLE ONLY project_build_artifacts_size_refreshes + ADD CONSTRAINT project_build_artifacts_size_refreshes_pkey PRIMARY KEY (id); --- --- Name: index_c3a2cf8b3b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY project_ci_cd_settings + ADD CONSTRAINT project_ci_cd_settings_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_c3a2cf8b3b; +ALTER TABLE ONLY project_ci_feature_usages + ADD CONSTRAINT project_ci_feature_usages_pkey PRIMARY KEY (id); +ALTER TABLE ONLY project_compliance_framework_settings + ADD CONSTRAINT project_compliance_framework_settings_pkey PRIMARY KEY (id); --- --- Name: index_c42b2e7eae; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY project_compliance_standards_adherence + ADD CONSTRAINT project_compliance_standards_adherence_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c42b2e7eae; +ALTER TABLE ONLY project_custom_attributes + ADD CONSTRAINT project_custom_attributes_pkey PRIMARY KEY (id); +ALTER TABLE ONLY project_daily_statistics + ADD CONSTRAINT project_daily_statistics_pkey PRIMARY KEY (id); --- --- Name: index_c435d904ce; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY project_data_transfers + ADD CONSTRAINT project_data_transfers_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c435d904ce; +ALTER TABLE ONLY project_deploy_tokens + ADD CONSTRAINT project_deploy_tokens_pkey PRIMARY KEY (id); +ALTER TABLE ONLY project_error_tracking_settings + ADD CONSTRAINT project_error_tracking_settings_pkey PRIMARY KEY (project_id); --- --- Name: index_c473921734; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY project_export_jobs + ADD CONSTRAINT project_export_jobs_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c473921734; +ALTER TABLE ONLY project_feature_usages + ADD CONSTRAINT project_feature_usages_pkey PRIMARY KEY (project_id); +ALTER TABLE ONLY project_features + ADD CONSTRAINT project_features_pkey PRIMARY KEY (id); --- --- Name: index_c546bb0736; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY project_group_links + ADD CONSTRAINT project_group_links_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c546bb0736; +ALTER TABLE ONLY project_import_data + ADD CONSTRAINT project_import_data_pkey PRIMARY KEY (id); +ALTER TABLE ONLY project_incident_management_settings + ADD CONSTRAINT project_incident_management_settings_pkey PRIMARY KEY (project_id); --- --- Name: index_c59cde6209; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY project_metrics_settings + ADD CONSTRAINT project_metrics_settings_pkey PRIMARY KEY (project_id); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c59cde6209; +ALTER TABLE ONLY project_mirror_data + ADD CONSTRAINT project_mirror_data_pkey PRIMARY KEY (id); +ALTER TABLE ONLY project_pages_metadata + ADD CONSTRAINT project_pages_metadata_pkey PRIMARY KEY (project_id); --- --- Name: index_c66758baa7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY project_relation_export_uploads + ADD CONSTRAINT project_relation_export_uploads_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c66758baa7; +ALTER TABLE ONLY project_relation_exports + ADD CONSTRAINT project_relation_exports_pkey PRIMARY KEY (id); +ALTER TABLE ONLY project_repositories + ADD CONSTRAINT project_repositories_pkey PRIMARY KEY (id); --- --- Name: index_c6ea8a0e26; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY project_repository_storage_moves + ADD CONSTRAINT project_repository_storage_moves_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c6ea8a0e26; +ALTER TABLE ONLY project_saved_replies + ADD CONSTRAINT project_saved_replies_pkey PRIMARY KEY (id); +ALTER TABLE ONLY project_secrets_managers + ADD CONSTRAINT project_secrets_managers_pkey PRIMARY KEY (id); --- --- Name: index_c7ac8595d3; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY project_security_settings + ADD CONSTRAINT project_security_settings_pkey PRIMARY KEY (project_id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_c7ac8595d3; +ALTER TABLE ONLY project_settings + ADD CONSTRAINT project_settings_pkey PRIMARY KEY (project_id); +ALTER TABLE ONLY project_states + ADD CONSTRAINT project_states_pkey PRIMARY KEY (id); --- --- Name: index_c8bbf2b334; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY project_statistics + ADD CONSTRAINT project_statistics_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_c8bbf2b334; +ALTER TABLE ONLY project_topics + ADD CONSTRAINT project_topics_pkey PRIMARY KEY (id); +ALTER TABLE ONLY project_wiki_repositories + ADD CONSTRAINT project_wiki_repositories_pkey PRIMARY KEY (id); --- --- Name: index_c8c4219c0a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY projects + ADD CONSTRAINT projects_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c8c4219c0a; +ALTER TABLE projects + ADD CONSTRAINT projects_star_count_positive CHECK ((star_count >= 0)) NOT VALID; +ALTER TABLE ONLY projects_sync_events + ADD CONSTRAINT projects_sync_events_pkey PRIMARY KEY (id); --- --- Name: index_c971e6c5ce; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY projects_visits + ADD CONSTRAINT projects_visits_pkey PRIMARY KEY (id, visited_at); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_c971e6c5ce; +ALTER TABLE ONLY prometheus_alert_events + ADD CONSTRAINT prometheus_alert_events_pkey PRIMARY KEY (id); +ALTER TABLE ONLY prometheus_alerts + ADD CONSTRAINT prometheus_alerts_pkey PRIMARY KEY (id); --- --- Name: index_c9b14a3d9f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY prometheus_metrics + ADD CONSTRAINT prometheus_metrics_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c9b14a3d9f; +ALTER TABLE ONLY protected_branch_merge_access_levels + ADD CONSTRAINT protected_branch_merge_access_levels_pkey PRIMARY KEY (id); +ALTER TABLE ONLY protected_branch_push_access_levels + ADD CONSTRAINT protected_branch_push_access_levels_pkey PRIMARY KEY (id); --- --- Name: index_cb222425ed; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY protected_branch_unprotect_access_levels + ADD CONSTRAINT protected_branch_unprotect_access_levels_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_cb222425ed; +ALTER TABLE ONLY protected_branches + ADD CONSTRAINT protected_branches_pkey PRIMARY KEY (id); +ALTER TABLE ONLY protected_environment_approval_rules + ADD CONSTRAINT protected_environment_approval_rules_pkey PRIMARY KEY (id); --- --- Name: index_cbb61ea269; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY protected_environment_deploy_access_levels + ADD CONSTRAINT protected_environment_deploy_access_levels_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_cbb61ea269; +ALTER TABLE ONLY protected_environments + ADD CONSTRAINT protected_environments_pkey PRIMARY KEY (id); +ALTER TABLE ONLY protected_tag_create_access_levels + ADD CONSTRAINT protected_tag_create_access_levels_pkey PRIMARY KEY (id); --- --- Name: index_cc0ba6343b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY protected_tags + ADD CONSTRAINT protected_tags_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_cc0ba6343b; +ALTER TABLE ONLY push_event_payloads + ADD CONSTRAINT push_event_payloads_pkey PRIMARY KEY (event_id); +ALTER TABLE ONLY push_rules + ADD CONSTRAINT push_rules_pkey PRIMARY KEY (id); --- --- Name: index_ccb4f5c5a6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY raw_usage_data + ADD CONSTRAINT raw_usage_data_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ccb4f5c5a6; +ALTER TABLE ONLY redirect_routes + ADD CONSTRAINT redirect_routes_pkey PRIMARY KEY (id); +ALTER TABLE ONLY related_epic_links + ADD CONSTRAINT related_epic_links_pkey PRIMARY KEY (id); --- --- Name: index_cd2b2939a4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY relation_import_trackers + ADD CONSTRAINT relation_import_trackers_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_cd2b2939a4; +ALTER TABLE ONLY release_links + ADD CONSTRAINT release_links_pkey PRIMARY KEY (id); +ALTER TABLE releases + ADD CONSTRAINT releases_not_null_tag CHECK ((tag IS NOT NULL)) NOT VALID; --- --- Name: index_cda41e106e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY releases + ADD CONSTRAINT releases_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_cda41e106e; +ALTER TABLE ONLY remote_development_agent_configs + ADD CONSTRAINT remote_development_agent_configs_pkey PRIMARY KEY (id); +ALTER TABLE ONLY remote_development_namespace_cluster_agent_mappings + ADD CONSTRAINT remote_development_namespace_cluster_agent_mappings_pkey PRIMARY KEY (id); --- --- Name: index_ce87cbaf2d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY remote_mirrors + ADD CONSTRAINT remote_mirrors_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ce87cbaf2d; +ALTER TABLE ONLY repository_languages + ADD CONSTRAINT repository_languages_pkey PRIMARY KEY (project_id, programming_language_id); +ALTER TABLE ONLY required_code_owners_sections + ADD CONSTRAINT required_code_owners_sections_pkey PRIMARY KEY (id); --- --- Name: index_cfa4237c83; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY requirements_management_test_reports + ADD CONSTRAINT requirements_management_test_reports_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_cfa4237c83; +ALTER TABLE ONLY requirements + ADD CONSTRAINT requirements_pkey PRIMARY KEY (id); +ALTER TABLE ONLY resource_iteration_events + ADD CONSTRAINT resource_iteration_events_pkey PRIMARY KEY (id); --- --- Name: index_d01ea0126a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY resource_label_events + ADD CONSTRAINT resource_label_events_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_d01ea0126a; +ALTER TABLE ONLY resource_link_events + ADD CONSTRAINT resource_link_events_pkey PRIMARY KEY (id); +ALTER TABLE ONLY resource_milestone_events + ADD CONSTRAINT resource_milestone_events_pkey PRIMARY KEY (id); --- --- Name: index_d03e9cdfae; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY resource_state_events + ADD CONSTRAINT resource_state_events_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d03e9cdfae; +ALTER TABLE ONLY resource_weight_events + ADD CONSTRAINT resource_weight_events_pkey PRIMARY KEY (id); +ALTER TABLE ONLY reviews + ADD CONSTRAINT reviews_pkey PRIMARY KEY (id); --- --- Name: index_d0d285c264; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY routes + ADD CONSTRAINT routes_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_d0d285c264; +ALTER TABLE ONLY saml_group_links + ADD CONSTRAINT saml_group_links_pkey PRIMARY KEY (id); +ALTER TABLE ONLY saml_providers + ADD CONSTRAINT saml_providers_pkey PRIMARY KEY (id); --- --- Name: index_d17b82ddd9; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY saved_replies + ADD CONSTRAINT saved_replies_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d17b82ddd9; +ALTER TABLE ONLY sbom_component_versions + ADD CONSTRAINT sbom_component_versions_pkey PRIMARY KEY (id); +ALTER TABLE ONLY sbom_components + ADD CONSTRAINT sbom_components_pkey PRIMARY KEY (id); --- --- Name: index_d1c24d8199; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY sbom_occurrences + ADD CONSTRAINT sbom_occurrences_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d1c24d8199; +ALTER TABLE ONLY sbom_occurrences_vulnerabilities + ADD CONSTRAINT sbom_occurrences_vulnerabilities_pkey PRIMARY KEY (id); +ALTER TABLE ONLY sbom_source_packages + ADD CONSTRAINT sbom_source_packages_pkey PRIMARY KEY (id); --- --- Name: index_d1c6c67ec1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY sbom_sources + ADD CONSTRAINT sbom_sources_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_d1c6c67ec1; +ALTER TABLE ONLY scan_execution_policy_rules + ADD CONSTRAINT scan_execution_policy_rules_pkey PRIMARY KEY (id); +ALTER TABLE ONLY scan_result_policies + ADD CONSTRAINT scan_result_policies_pkey PRIMARY KEY (id); --- --- Name: index_d27b4c84e7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY scan_result_policy_violations + ADD CONSTRAINT scan_result_policy_violations_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_d27b4c84e7; +ALTER TABLE ONLY schema_migrations + ADD CONSTRAINT schema_migrations_pkey PRIMARY KEY (version); +ALTER TABLE ONLY scim_identities + ADD CONSTRAINT scim_identities_pkey PRIMARY KEY (id); --- --- Name: index_d2fe918e83; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY scim_oauth_access_tokens + ADD CONSTRAINT scim_oauth_access_tokens_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_d2fe918e83; +ALTER TABLE ONLY search_indices + ADD CONSTRAINT search_indices_pkey PRIMARY KEY (id); +ALTER TABLE ONLY search_namespace_index_assignments + ADD CONSTRAINT search_namespace_index_assignments_pkey PRIMARY KEY (id); --- --- Name: index_d35c969634; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY security_findings + ADD CONSTRAINT security_findings_pkey PRIMARY KEY (id, partition_number); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_d35c969634; +ALTER TABLE ONLY security_orchestration_policy_configurations + ADD CONSTRAINT security_orchestration_policy_configurations_pkey PRIMARY KEY (id); +ALTER TABLE ONLY security_orchestration_policy_rule_schedules + ADD CONSTRAINT security_orchestration_policy_rule_schedules_pkey PRIMARY KEY (id); --- --- Name: index_d3b6418940; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY security_policies + ADD CONSTRAINT security_policies_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_d3b6418940; +ALTER TABLE ONLY security_policy_project_links + ADD CONSTRAINT security_policy_project_links_pkey PRIMARY KEY (id); +ALTER TABLE ONLY security_policy_requirements + ADD CONSTRAINT security_policy_requirements_pkey PRIMARY KEY (id); --- --- Name: index_d493a5c171; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY security_scans + ADD CONSTRAINT security_scans_pkey PRIMARY KEY (id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d493a5c171; +ALTER TABLE ONLY security_training_providers + ADD CONSTRAINT security_training_providers_pkey PRIMARY KEY (id); +ALTER TABLE ONLY security_trainings + ADD CONSTRAINT security_trainings_pkey PRIMARY KEY (id); --- --- Name: index_d6047ee813; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY self_managed_prometheus_alert_events + ADD CONSTRAINT self_managed_prometheus_alert_events_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_d6047ee813; +ALTER TABLE ONLY sent_notifications + ADD CONSTRAINT sent_notifications_pkey PRIMARY KEY (id); +ALTER TABLE ONLY sentry_issues + ADD CONSTRAINT sentry_issues_pkey PRIMARY KEY (id); --- --- Name: index_d69c2485f4; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY sprints + ADD CONSTRAINT sequence_is_unique_per_iterations_cadence_id UNIQUE (iterations_cadence_id, sequence) DEFERRABLE INITIALLY DEFERRED; -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_d69c2485f4; +ALTER TABLE ONLY service_access_tokens + ADD CONSTRAINT service_access_tokens_pkey PRIMARY KEY (id); +ALTER TABLE ONLY service_desk_custom_email_credentials + ADD CONSTRAINT service_desk_custom_email_credentials_pkey PRIMARY KEY (project_id); --- --- Name: index_d70379e22c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY service_desk_custom_email_verifications + ADD CONSTRAINT service_desk_custom_email_verifications_pkey PRIMARY KEY (project_id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d70379e22c; +ALTER TABLE ONLY service_desk_settings + ADD CONSTRAINT service_desk_settings_pkey PRIMARY KEY (project_id); +ALTER TABLE ONLY shards + ADD CONSTRAINT shards_pkey PRIMARY KEY (id); --- --- Name: index_d87775b2e7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY slack_api_scopes + ADD CONSTRAINT slack_api_scopes_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_d87775b2e7; +ALTER TABLE ONLY slack_integrations + ADD CONSTRAINT slack_integrations_pkey PRIMARY KEY (id); +ALTER TABLE ONLY slack_integrations_scopes + ADD CONSTRAINT slack_integrations_scopes_pkey PRIMARY KEY (id); --- --- Name: index_d8fa9793ad; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY smartcard_identities + ADD CONSTRAINT smartcard_identities_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_d8fa9793ad; +ALTER TABLE ONLY snippet_repositories + ADD CONSTRAINT snippet_repositories_pkey PRIMARY KEY (snippet_id); +ALTER TABLE ONLY snippet_repository_storage_moves + ADD CONSTRAINT snippet_repository_storage_moves_pkey PRIMARY KEY (id); --- --- Name: index_d9384b768d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY snippet_statistics + ADD CONSTRAINT snippet_statistics_pkey PRIMARY KEY (snippet_id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_d9384b768d; +ALTER TABLE ONLY snippet_user_mentions + ADD CONSTRAINT snippet_user_mentions_pkey PRIMARY KEY (id); +ALTER TABLE ONLY snippets + ADD CONSTRAINT snippets_pkey PRIMARY KEY (id); --- --- Name: index_db2753330c; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY software_license_policies + ADD CONSTRAINT software_license_policies_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_db2753330c; +ALTER TABLE ONLY software_licenses + ADD CONSTRAINT software_licenses_pkey PRIMARY KEY (id); +ALTER TABLE ONLY spam_logs + ADD CONSTRAINT spam_logs_pkey PRIMARY KEY (id); --- --- Name: index_db6477916f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY sprints + ADD CONSTRAINT sprints_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_db6477916f; +ALTER TABLE ONLY ssh_signatures + ADD CONSTRAINT ssh_signatures_pkey PRIMARY KEY (id); +ALTER TABLE ONLY status_check_responses + ADD CONSTRAINT status_check_responses_pkey PRIMARY KEY (id); --- --- Name: index_dc571ba649; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY status_page_published_incidents + ADD CONSTRAINT status_page_published_incidents_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_dc571ba649; +ALTER TABLE ONLY status_page_settings + ADD CONSTRAINT status_page_settings_pkey PRIMARY KEY (project_id); +ALTER TABLE ONLY subscription_add_on_purchases + ADD CONSTRAINT subscription_add_on_purchases_pkey PRIMARY KEY (id); --- --- Name: index_de0334da63; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY subscription_add_ons + ADD CONSTRAINT subscription_add_ons_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_de0334da63; +ALTER TABLE ONLY subscription_user_add_on_assignments + ADD CONSTRAINT subscription_user_add_on_assignments_pkey PRIMARY KEY (id); +ALTER TABLE ONLY subscriptions + ADD CONSTRAINT subscriptions_pkey PRIMARY KEY (id); --- --- Name: index_df62a8c50e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY suggestions + ADD CONSTRAINT suggestions_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_df62a8c50e; +ALTER TABLE ONLY system_access_microsoft_applications + ADD CONSTRAINT system_access_microsoft_applications_pkey PRIMARY KEY (id); +ALTER TABLE ONLY system_access_microsoft_graph_access_tokens + ADD CONSTRAINT system_access_microsoft_graph_access_tokens_pkey PRIMARY KEY (id); --- --- Name: index_e1a4f994d8; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY system_note_metadata + ADD CONSTRAINT system_note_metadata_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e1a4f994d8; +ALTER TABLE ONLY taggings + ADD CONSTRAINT taggings_pkey PRIMARY KEY (id); +ALTER TABLE ONLY tags + ADD CONSTRAINT tags_pkey PRIMARY KEY (id); --- --- Name: index_e38489ea98; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY target_branch_rules + ADD CONSTRAINT target_branch_rules_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_e38489ea98; +ALTER TABLE ONLY term_agreements + ADD CONSTRAINT term_agreements_pkey PRIMARY KEY (id); +ALTER TABLE ONLY terraform_state_versions + ADD CONSTRAINT terraform_state_versions_pkey PRIMARY KEY (id); --- --- Name: index_e3d1fd5b19; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY terraform_states + ADD CONSTRAINT terraform_states_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_e3d1fd5b19; +ALTER TABLE ONLY timelog_categories + ADD CONSTRAINT timelog_categories_pkey PRIMARY KEY (id); +ALTER TABLE ONLY timelogs + ADD CONSTRAINT timelogs_pkey PRIMARY KEY (id); --- --- Name: index_e3d6234929; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY todos + ADD CONSTRAINT todos_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e3d6234929; +ALTER TABLE ONLY token_with_ivs + ADD CONSTRAINT token_with_ivs_pkey PRIMARY KEY (id); +ALTER TABLE ONLY topics + ADD CONSTRAINT topics_pkey PRIMARY KEY (id); --- --- Name: index_e54adf9acb; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY trending_projects + ADD CONSTRAINT trending_projects_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e54adf9acb; +ALTER TABLE ONLY upcoming_reconciliations + ADD CONSTRAINT upcoming_reconciliations_pkey PRIMARY KEY (id); +ALTER TABLE ONLY upload_states + ADD CONSTRAINT upload_states_pkey PRIMARY KEY (upload_id); --- --- Name: index_e6405afea0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY uploads + ADD CONSTRAINT uploads_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e6405afea0; +ALTER TABLE ONLY user_achievements + ADD CONSTRAINT user_achievements_pkey PRIMARY KEY (id); +ALTER TABLE ONLY user_agent_details + ADD CONSTRAINT user_agent_details_pkey PRIMARY KEY (id); --- --- Name: index_e64588e276; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY user_audit_events + ADD CONSTRAINT user_audit_events_pkey PRIMARY KEY (id, created_at); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e64588e276; +ALTER TABLE ONLY user_broadcast_message_dismissals + ADD CONSTRAINT user_broadcast_message_dismissals_pkey PRIMARY KEY (id); +ALTER TABLE ONLY user_callouts + ADD CONSTRAINT user_callouts_pkey PRIMARY KEY (id); --- --- Name: index_e716b8ac3f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY user_canonical_emails + ADD CONSTRAINT user_canonical_emails_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_e716b8ac3f; +ALTER TABLE ONLY user_credit_card_validations + ADD CONSTRAINT user_credit_card_validations_pkey PRIMARY KEY (user_id); +ALTER TABLE ONLY user_custom_attributes + ADD CONSTRAINT user_custom_attributes_pkey PRIMARY KEY (id); --- --- Name: index_e73bc5ba6a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY user_details + ADD CONSTRAINT user_details_pkey PRIMARY KEY (user_id); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_e73bc5ba6a; +ALTER TABLE ONLY user_follow_users + ADD CONSTRAINT user_follow_users_pkey PRIMARY KEY (follower_id, followee_id); +ALTER TABLE ONLY user_group_callouts + ADD CONSTRAINT user_group_callouts_pkey PRIMARY KEY (id); --- --- Name: index_e8f3a327b2; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY user_highest_roles + ADD CONSTRAINT user_highest_roles_pkey PRIMARY KEY (user_id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_e8f3a327b2; +ALTER TABLE ONLY user_namespace_callouts + ADD CONSTRAINT user_namespace_callouts_pkey PRIMARY KEY (id); +ALTER TABLE ONLY user_permission_export_uploads + ADD CONSTRAINT user_permission_export_uploads_pkey PRIMARY KEY (id); --- --- Name: index_ea0c2d3361; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY user_phone_number_validations + ADD CONSTRAINT user_phone_number_validations_pkey PRIMARY KEY (user_id); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_ea0c2d3361; +ALTER TABLE ONLY user_preferences + ADD CONSTRAINT user_preferences_pkey PRIMARY KEY (id); +ALTER TABLE ONLY user_project_callouts + ADD CONSTRAINT user_project_callouts_pkey PRIMARY KEY (id); --- --- Name: index_ea1b583157; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY user_statuses + ADD CONSTRAINT user_statuses_pkey PRIMARY KEY (user_id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ea1b583157; +ALTER TABLE ONLY user_synced_attributes_metadata + ADD CONSTRAINT user_synced_attributes_metadata_pkey PRIMARY KEY (id); +ALTER TABLE ONLY users_ops_dashboard_projects + ADD CONSTRAINT users_ops_dashboard_projects_pkey PRIMARY KEY (id); --- --- Name: index_eadcc94c4e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY users + ADD CONSTRAINT users_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_eadcc94c4e; +ALTER TABLE ONLY users_security_dashboard_projects + ADD CONSTRAINT users_security_dashboard_projects_pkey PRIMARY KEY (project_id, user_id); +ALTER TABLE ONLY users_star_projects + ADD CONSTRAINT users_star_projects_pkey PRIMARY KEY (id); --- --- Name: index_eb558957f0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY users_statistics + ADD CONSTRAINT users_statistics_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_eb558957f0; +ALTER TABLE ONLY value_stream_dashboard_aggregations + ADD CONSTRAINT value_stream_dashboard_aggregations_pkey PRIMARY KEY (namespace_id); +ALTER TABLE ONLY value_stream_dashboard_counts + ADD CONSTRAINT value_stream_dashboard_counts_pkey PRIMARY KEY (namespace_id, metric, recorded_at, count, id); --- --- Name: index_eb5a7f918a; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY verification_codes + ADD CONSTRAINT verification_codes_pkey PRIMARY KEY (created_at, visitor_id_code, code, phone); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_eb5a7f918a; +ALTER TABLE ONLY virtual_registries_packages_maven_cached_responses + ADD CONSTRAINT virtual_registries_packages_maven_cached_responses_pkey PRIMARY KEY (id); +ALTER TABLE ONLY virtual_registries_packages_maven_registries + ADD CONSTRAINT virtual_registries_packages_maven_registries_pkey PRIMARY KEY (id); --- --- Name: index_ec25d494e6; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY virtual_registries_packages_maven_registry_upstreams + ADD CONSTRAINT virtual_registries_packages_maven_registry_upstreams_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_ec25d494e6; +ALTER TABLE ONLY virtual_registries_packages_maven_upstreams + ADD CONSTRAINT virtual_registries_packages_maven_upstreams_pkey PRIMARY KEY (id); +ALTER TABLE ONLY vs_code_settings + ADD CONSTRAINT vs_code_settings_pkey PRIMARY KEY (id); --- --- Name: index_ece25b5987; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY vulnerabilities + ADD CONSTRAINT vulnerabilities_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ece25b5987; +ALTER TABLE ONLY vulnerability_export_parts + ADD CONSTRAINT vulnerability_export_parts_pkey PRIMARY KEY (id); +ALTER TABLE ONLY vulnerability_exports + ADD CONSTRAINT vulnerability_exports_pkey PRIMARY KEY (id); --- --- Name: index_ed094a4f13; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY vulnerability_external_issue_links + ADD CONSTRAINT vulnerability_external_issue_links_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_ed094a4f13; +ALTER TABLE ONLY vulnerability_feedback + ADD CONSTRAINT vulnerability_feedback_pkey PRIMARY KEY (id); +ALTER TABLE ONLY vulnerability_finding_evidences + ADD CONSTRAINT vulnerability_finding_evidences_pkey PRIMARY KEY (id); --- --- Name: index_ed6dbac8c0; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY vulnerability_finding_links + ADD CONSTRAINT vulnerability_finding_links_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ed6dbac8c0; +ALTER TABLE ONLY vulnerability_finding_signatures + ADD CONSTRAINT vulnerability_finding_signatures_pkey PRIMARY KEY (id); +ALTER TABLE ONLY vulnerability_findings_remediations + ADD CONSTRAINT vulnerability_findings_remediations_pkey PRIMARY KEY (id); --- --- Name: index_ee4c549a2d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY vulnerability_flags + ADD CONSTRAINT vulnerability_flags_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_ee4c549a2d; +ALTER TABLE ONLY vulnerability_historical_statistics + ADD CONSTRAINT vulnerability_historical_statistics_pkey PRIMARY KEY (id); +ALTER TABLE ONLY vulnerability_identifiers + ADD CONSTRAINT vulnerability_identifiers_pkey PRIMARY KEY (id); --- --- Name: index_ef6a48bd29; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY vulnerability_issue_links + ADD CONSTRAINT vulnerability_issue_links_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_ef6a48bd29; +ALTER TABLE ONLY vulnerability_merge_request_links + ADD CONSTRAINT vulnerability_merge_request_links_pkey PRIMARY KEY (id); +ALTER TABLE ONLY vulnerability_namespace_historical_statistics + ADD CONSTRAINT vulnerability_namespace_historical_statistics_pkey PRIMARY KEY (id); --- --- Name: index_ef7be2ae94; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY vulnerability_occurrence_identifiers + ADD CONSTRAINT vulnerability_occurrence_identifiers_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_ef7be2ae94; +ALTER TABLE ONLY vulnerability_occurrence_pipelines + ADD CONSTRAINT vulnerability_occurrence_pipelines_pkey PRIMARY KEY (id); +ALTER TABLE ONLY vulnerability_occurrences + ADD CONSTRAINT vulnerability_occurrences_pkey PRIMARY KEY (id); --- --- Name: index_efa25b26bd; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY vulnerability_reads + ADD CONSTRAINT vulnerability_reads_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_efa25b26bd; +ALTER TABLE ONLY vulnerability_remediations + ADD CONSTRAINT vulnerability_remediations_pkey PRIMARY KEY (id); +ALTER TABLE ONLY vulnerability_scanners + ADD CONSTRAINT vulnerability_scanners_pkey PRIMARY KEY (id); --- --- Name: index_f06b4c7a23; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY vulnerability_state_transitions + ADD CONSTRAINT vulnerability_state_transitions_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f06b4c7a23; +ALTER TABLE ONLY vulnerability_statistics + ADD CONSTRAINT vulnerability_statistics_pkey PRIMARY KEY (id); +ALTER TABLE ONLY vulnerability_user_mentions + ADD CONSTRAINT vulnerability_user_mentions_pkey PRIMARY KEY (id); --- --- Name: index_f0cdd09a5e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY web_hook_logs + ADD CONSTRAINT web_hook_logs_pkey PRIMARY KEY (id, created_at); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f0cdd09a5e; +ALTER TABLE ONLY web_hooks + ADD CONSTRAINT web_hooks_pkey PRIMARY KEY (id); +ALTER TABLE ONLY webauthn_registrations + ADD CONSTRAINT webauthn_registrations_pkey PRIMARY KEY (id); --- --- Name: index_f112fae8ac; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY wiki_page_meta + ADD CONSTRAINT wiki_page_meta_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_f112fae8ac; +ALTER TABLE ONLY wiki_page_slugs + ADD CONSTRAINT wiki_page_slugs_pkey PRIMARY KEY (id); +ALTER TABLE ONLY wiki_repository_states + ADD CONSTRAINT wiki_repository_states_pkey PRIMARY KEY (id); --- --- Name: index_f1c3d14cdc; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY work_item_colors + ADD CONSTRAINT work_item_colors_pkey PRIMARY KEY (issue_id); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_f1c3d14cdc; +ALTER TABLE ONLY work_item_dates_sources + ADD CONSTRAINT work_item_dates_sources_pkey PRIMARY KEY (issue_id); +ALTER TABLE ONLY work_item_hierarchy_restrictions + ADD CONSTRAINT work_item_hierarchy_restrictions_pkey PRIMARY KEY (id); --- --- Name: index_f256d3f6a1; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY work_item_parent_links + ADD CONSTRAINT work_item_parent_links_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f256d3f6a1; +ALTER TABLE ONLY work_item_progresses + ADD CONSTRAINT work_item_progresses_pkey PRIMARY KEY (issue_id); +ALTER TABLE ONLY work_item_related_link_restrictions + ADD CONSTRAINT work_item_related_link_restrictions_pkey PRIMARY KEY (id); --- --- Name: index_f2848acfc7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY work_item_types + ADD CONSTRAINT work_item_types_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_f2848acfc7; +ALTER TABLE ONLY work_item_widget_definitions + ADD CONSTRAINT work_item_widget_definitions_pkey PRIMARY KEY (id); +ALTER TABLE ONLY workspace_variables + ADD CONSTRAINT workspace_variables_pkey PRIMARY KEY (id); --- --- Name: index_f3d7d86e09; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY workspaces_agent_configs + ADD CONSTRAINT workspaces_agent_configs_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f3d7d86e09; +ALTER TABLE ONLY workspaces + ADD CONSTRAINT workspaces_pkey PRIMARY KEY (id); +ALTER TABLE ONLY x509_certificates + ADD CONSTRAINT x509_certificates_pkey PRIMARY KEY (id); --- --- Name: index_f402f6a388; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY x509_commit_signatures + ADD CONSTRAINT x509_commit_signatures_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f402f6a388; +ALTER TABLE ONLY x509_issuers + ADD CONSTRAINT x509_issuers_pkey PRIMARY KEY (id); +ALTER TABLE ONLY xray_reports + ADD CONSTRAINT xray_reports_pkey PRIMARY KEY (id); --- --- Name: index_f415dc2abd; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY zentao_tracker_data + ADD CONSTRAINT zentao_tracker_data_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f415dc2abd; +ALTER TABLE ONLY zoekt_enabled_namespaces + ADD CONSTRAINT zoekt_enabled_namespaces_pkey PRIMARY KEY (id); +ALTER TABLE ONLY zoekt_indices + ADD CONSTRAINT zoekt_indices_pkey PRIMARY KEY (id); --- --- Name: index_f47327ec1f; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY zoekt_nodes + ADD CONSTRAINT zoekt_nodes_pkey PRIMARY KEY (id); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_f47327ec1f; +ALTER TABLE ONLY zoekt_replicas + ADD CONSTRAINT zoekt_replicas_pkey PRIMARY KEY (id); +ALTER TABLE ONLY zoekt_repositories + ADD CONSTRAINT zoekt_repositories_pkey PRIMARY KEY (id); --- --- Name: index_f5f0e8eefd; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +ALTER TABLE ONLY zoekt_shards + ADD CONSTRAINT zoekt_shards_pkey PRIMARY KEY (id); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f5f0e8eefd; +ALTER TABLE ONLY zoekt_tasks + ADD CONSTRAINT zoekt_tasks_pkey PRIMARY KEY (id, partition_id); +ALTER TABLE ONLY zoom_meetings + ADD CONSTRAINT zoom_meetings_pkey PRIMARY KEY (id); --- --- Name: index_f6b0d458a3; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_issue_stage_events_project_duration ON ONLY analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_f6b0d458a3; +CREATE INDEX index_000925dbd7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_merge_request_stage_events_project_duration ON ONLY analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: index_f705dc8541; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_006f943df6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f705dc8541; +CREATE INDEX index_issue_stage_events_for_consistency_check ON ONLY analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +CREATE INDEX index_009e6c1133 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); --- --- Name: index_f76e8a5304; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_02749b504c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f76e8a5304; +CREATE INDEX index_merge_request_stage_events_group_duration ON ONLY analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_0287f5ba09 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: index_f836021e1e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_03aa30a758 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f836021e1e; +CREATE INDEX index_issue_stage_events_group_duration ON ONLY analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_055179c3ea ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: index_f86acdc2ff; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_061fe00461 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f86acdc2ff; +CREATE INDEX index_070cef72c3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_issue_search_data_on_namespace_id ON ONLY issue_search_data USING btree (namespace_id); --- --- Name: index_f86f73056d; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_08b7071d9b ON gitlab_partitions_static.issue_search_data_41 USING btree (namespace_id); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_f86f73056d; +CREATE INDEX index_08e3cfc564 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_merge_request_stage_events_group_in_progress_duration ON ONLY analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: index_f878aab8e3; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_09af45dd6f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f878aab8e3; +CREATE INDEX index_09fe0c1886 ON gitlab_partitions_static.issue_search_data_01 USING btree (namespace_id); +CREATE INDEX index_0c153e2eae ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: index_f902c261ce; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_issue_stage_events_group_in_progress_duration ON ONLY analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f902c261ce; +CREATE INDEX index_0ca85f3d71 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_issue_stage_events_project_in_progress_duration ON ONLY analytics_cycle_analytics_issue_stage_events USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: index_f91599d825; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_0d837a5dda ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_f91599d825; +CREATE INDEX index_0e98daa03c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +CREATE INDEX index_0f28a65451 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: index_fbccc855cf; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_10588dbff0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_fbccc855cf; +CREATE INDEX index_106d7d97e8 ON gitlab_partitions_static.issue_search_data_27 USING btree (namespace_id); +CREATE INDEX index_1076a9a98a ON gitlab_partitions_static.issue_search_data_10 USING btree (namespace_id); --- --- Name: index_fbf2d3310b; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_107e123e17 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_fbf2d3310b; +CREATE INDEX index_1230a7a402 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_142c4e7ea4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: index_fccbe45c32; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_merge_request_stage_events_project_in_progress_duration ON ONLY analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_fccbe45c32; +CREATE INDEX index_14e4fa1d7d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_14f3645821 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: index_fee429223e; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_16627b455e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_fee429223e; +CREATE INDEX index_17fa2812c5 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +CREATE INDEX index_19aa18ccc9 ON gitlab_partitions_static.issue_search_data_45 USING btree (namespace_id); --- --- Name: index_ff00c038cc; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_19f4ed8614 ON gitlab_partitions_static.issue_search_data_33 USING btree (namespace_id); -ALTER INDEX public.index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_ff00c038cc; +CREATE INDEX index_1a0388713a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_1a349ed064 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: index_ff39be5400; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_1af932a3c7 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_ff39be5400; +CREATE INDEX index_1b0ea30bdb ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_1b47bbbb6a ON gitlab_partitions_static.issue_search_data_52 USING btree (namespace_id); --- --- Name: index_ff8741d8d7; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_1f6c3faabe ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_ff8741d8d7; +CREATE INDEX index_1f8af04ed1 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_201c5ddbe9 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_00_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_20353089e0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_00_issue_id_idx; +CREATE INDEX index_mr_stage_events_for_consistency_check ON ONLY analytics_cycle_analytics_merge_request_stage_events USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +CREATE INDEX index_203dd694bc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); --- --- Name: issue_search_data_00_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_206349925b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_00_pkey; +CREATE INDEX index_208e7ef042 ON gitlab_partitions_static.issue_search_data_48 USING btree (namespace_id); +CREATE INDEX index_2098118748 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); --- --- Name: issue_search_data_00_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_20c6491c6e ON gitlab_partitions_static.issue_search_data_29 USING btree (namespace_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_00_search_vector_idx; +CREATE INDEX index_21db459e34 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_21e262390a ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_01_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_2208bd7d7f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_01_issue_id_idx; +CREATE INDEX index_223592b4a1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_22acc9ab11 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_01_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_22ed8f01dd ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_01_pkey; +CREATE INDEX index_234d38a657 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_23783dc748 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_01_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_241e9a574c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_01_search_vector_idx; +CREATE INDEX index_24ac321751 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_25e2aaee9b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_02_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_2653e7eeb8 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_02_issue_id_idx; +CREATE INDEX index_2745f5a388 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_27759556bc ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_02_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_27d7ad78d8 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_02_pkey; +CREATE INDEX index_281840d2d1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_2945cf4c6d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); --- --- Name: issue_search_data_02_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_296f64df5c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_02_search_vector_idx; +CREATE INDEX index_2ad4b4fdbc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_2b7c0a294e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_03_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_2bac9d64a0 ON gitlab_partitions_static.issue_search_data_38 USING btree (namespace_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_03_issue_id_idx; +CREATE INDEX index_2c6422f668 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_2dfcdbe81e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_03_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_2e1054b181 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_03_pkey; +CREATE INDEX index_2e6991d05b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_2f80c360c3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_03_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_2fc271c673 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_03_search_vector_idx; +CREATE INDEX index_2fcfd0dc70 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_3005c75335 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_04_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_3206c1e6af ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_04_issue_id_idx; +CREATE INDEX index_3249505125 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_331eb67441 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_04_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_34a8b08081 ON gitlab_partitions_static.issue_search_data_40 USING btree (namespace_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_04_pkey; +CREATE INDEX index_3640194b77 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_372160a706 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_04_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_389dd3c9fc ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_04_search_vector_idx; +CREATE INDEX index_38a538234e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_39625b8a41 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_05_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_399dc06649 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_05_issue_id_idx; +CREATE INDEX index_3a10b315c0 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_3a7d21a6ee ON gitlab_partitions_static.issue_search_data_19 USING btree (namespace_id); --- --- Name: issue_search_data_05_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_3a8848c00b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_05_pkey; +CREATE INDEX index_3b09ab5902 ON gitlab_partitions_static.issue_search_data_12 USING btree (namespace_id); +CREATE INDEX index_3bc2eedca5 ON gitlab_partitions_static.issue_search_data_59 USING btree (namespace_id); --- --- Name: issue_search_data_05_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_3c2a3a6ac9 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_05_search_vector_idx; +CREATE INDEX index_3dbde77b8b ON gitlab_partitions_static.issue_search_data_58 USING btree (namespace_id); +CREATE INDEX index_3e6be332b7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_06_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_4137a6fac3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_06_issue_id_idx; +CREATE INDEX index_41a1c3a4c6 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_435802dd01 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_06_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_436fa9ad5f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_06_pkey; +CREATE INDEX index_453a659cb6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_46b989b294 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_06_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_4717e7049b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_06_search_vector_idx; +CREATE INDEX index_47638677a3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_4810ac88f5 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_07_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_482a09e0ee ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_07_issue_id_idx; +CREATE INDEX index_491b4b749e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_4a243772d7 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_07_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_4b1793a4c4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_07_pkey; +CREATE INDEX index_4b22560035 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_4c2645eef2 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_07_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_4c9d14f978 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_07_search_vector_idx; +CREATE INDEX index_4d04210a95 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_4d4f2f7de6 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_08_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_4db5aa5872 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_08_issue_id_idx; +CREATE INDEX index_4dead6f314 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_4e6ce1c371 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_08_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_4ea50d3a5b ON gitlab_partitions_static.issue_search_data_24 USING btree (namespace_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_08_pkey; +CREATE INDEX index_4f2eb7a06b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_4f6fc34e57 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_08_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_50272372ba ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_08_search_vector_idx; +CREATE INDEX index_5034eae5ff ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +CREATE INDEX index_50c09f6e04 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_09_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_5111e3e7e7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_09_issue_id_idx; +CREATE INDEX index_52ea79bf8e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_541cc045fc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_09_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_5445e466ee ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_09_pkey; +CREATE INDEX index_551676e972 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_56281bfb73 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_09_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_5660b1b38e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_09_search_vector_idx; +CREATE INDEX index_584c1e6fb0 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +CREATE INDEX index_5913107510 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); --- --- Name: issue_search_data_10_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_5968e77935 ON gitlab_partitions_static.issue_search_data_46 USING btree (namespace_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_10_issue_id_idx; +CREATE INDEX index_59a8209ab6 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_59ce40fcc4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_10_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_59cfd5bc9a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_10_pkey; +CREATE INDEX index_5a5f39d824 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_5b613b5fcf ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_10_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_5b944f308d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_10_search_vector_idx; +CREATE INDEX index_5bc2f32084 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_5bfa62771b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); --- --- Name: issue_search_data_11_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_5c4053b63d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_11_issue_id_idx; +CREATE INDEX index_5db09170d4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_5e46aea379 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); --- --- Name: issue_search_data_11_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_5e78c2eac1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_11_pkey; +CREATE INDEX index_5ee060202f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_5f24f6ead2 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_11_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_5f96b344e2 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_11_search_vector_idx; +CREATE INDEX index_5fb1867c41 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_5fe1d00845 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_12_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_60e3480f23 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_12_issue_id_idx; +CREATE INDEX index_6137e27484 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_620fe77c99 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_12_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_625ed9e965 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_12_pkey; +CREATE INDEX index_64e3a1dfa1 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_64eb4cf8bd ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_12_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_6578d04baa ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_12_search_vector_idx; +CREATE INDEX index_6580ecb2db ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_66a736da09 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); --- --- Name: issue_search_data_13_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_680d7ab4a6 ON gitlab_partitions_static.issue_search_data_06 USING btree (namespace_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_13_issue_id_idx; +CREATE INDEX index_682eba05f6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_69bdcf213e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_13_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_6a39f6d5ac ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_13_pkey; +CREATE INDEX index_6add8e74cf ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_6b1ce61c8f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_13_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_6b431c9952 ON gitlab_partitions_static.issue_search_data_23 USING btree (namespace_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_13_search_vector_idx; +CREATE INDEX index_6bf2b9282c ON gitlab_partitions_static.issue_search_data_22 USING btree (namespace_id); +CREATE INDEX index_6cfb391b86 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_14_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_6e560c1a4d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_14_issue_id_idx; +CREATE INDEX index_6e64aa1646 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +CREATE INDEX index_6e6c2e6a1d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_14_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_6ea423bbd1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_14_pkey; +CREATE INDEX index_6ec4c4afd4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_6f4e0abe54 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_14_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_6fa47e1334 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_14_search_vector_idx; +CREATE INDEX index_708d792ae9 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +CREATE INDEX index_70c657954b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_15_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_713f462d76 ON gitlab_partitions_static.issue_search_data_57 USING btree (namespace_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_15_issue_id_idx; +CREATE INDEX index_71c0e45eca ON gitlab_partitions_static.issue_search_data_39 USING btree (namespace_id); +CREATE INDEX index_71c2b26944 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_15_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_72027c157f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_15_pkey; +CREATE INDEX index_739845f617 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_74addd1240 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_15_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_75dc81d1d7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_15_search_vector_idx; +CREATE INDEX index_765b0cd8db ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_77096a1dc6 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_16_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_77c6293242 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_16_issue_id_idx; +CREATE INDEX index_77f67bf238 ON gitlab_partitions_static.issue_search_data_02 USING btree (namespace_id); +CREATE INDEX index_7822759674 ON gitlab_partitions_static.issue_search_data_56 USING btree (namespace_id); --- --- Name: issue_search_data_16_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_7a0b7ffadf ON gitlab_partitions_static.issue_search_data_07 USING btree (namespace_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_16_pkey; +CREATE INDEX index_7b7c85eceb ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_7da2307d2e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_16_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_7ead2300ca ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_16_search_vector_idx; +CREATE INDEX index_7ecb5b68b4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_7f543eed8d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); --- --- Name: issue_search_data_17_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_7f8a80dd47 ON gitlab_partitions_static.issue_search_data_49 USING btree (namespace_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_17_issue_id_idx; +CREATE INDEX index_80305b1eed ON gitlab_partitions_static.issue_search_data_42 USING btree (namespace_id); +CREATE INDEX index_807671c4be ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_17_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_807fa83fc0 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_17_pkey; +CREATE INDEX index_80a81ac235 ON gitlab_partitions_static.issue_search_data_53 USING btree (namespace_id); +CREATE INDEX index_80c65daf20 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_17_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_81b31eafac ON gitlab_partitions_static.issue_search_data_63 USING btree (namespace_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_17_search_vector_idx; +CREATE INDEX index_81b9cf594f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_82c675952c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_18_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_831e7f124f ON gitlab_partitions_static.issue_search_data_43 USING btree (namespace_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_18_issue_id_idx; +CREATE INDEX index_837a193bf2 ON gitlab_partitions_static.issue_search_data_55 USING btree (namespace_id); +CREATE INDEX index_837cc295f1 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); --- --- Name: issue_search_data_18_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_83c5049b3e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_18_pkey; +CREATE INDEX index_83edf231b8 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_844abd2888 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_18_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_8464227c80 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_18_search_vector_idx; +CREATE INDEX index_8685d7c69c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_8688b40056 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_19_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_876145d1d5 ON gitlab_partitions_static.issue_search_data_51 USING btree (namespace_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_19_issue_id_idx; +CREATE INDEX index_87d40fb9f9 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_88b40d6740 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_19_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_89c49cf697 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_19_pkey; +CREATE INDEX index_89c79afe5c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_8a0fc3de4f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_19_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_8a8eb06b9a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_19_search_vector_idx; +CREATE INDEX index_8b1b6b03b4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +CREATE INDEX index_8b9f9a19a4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_20_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_8fb48e72ce ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_20_issue_id_idx; +CREATE INDEX index_907e12b7ba ON gitlab_partitions_static.issue_search_data_54 USING btree (namespace_id); +CREATE INDEX index_918bb2ebbb ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); --- --- Name: issue_search_data_20_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_91c432a4bd ON gitlab_partitions_static.issue_search_data_16 USING btree (namespace_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_20_pkey; +CREATE INDEX index_91d5e4e3df ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +CREATE INDEX index_9201b952a0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_20_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_927796f71d ON gitlab_partitions_static.issue_search_data_50 USING btree (namespace_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_20_search_vector_idx; +CREATE INDEX index_92c09e352b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_9490e0e0b7 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_21_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_9555c2ae92 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_21_issue_id_idx; +CREATE INDEX index_95a353f50b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_971af9481e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_21_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_994aa245b7 ON gitlab_partitions_static.issue_search_data_61 USING btree (namespace_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_21_pkey; +CREATE INDEX index_9955b1dc59 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_9a2eb72a3b ON gitlab_partitions_static.issue_search_data_21 USING btree (namespace_id); --- --- Name: issue_search_data_21_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_9b8e89ae41 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_21_search_vector_idx; +CREATE INDEX index_9d0e953ab3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +CREATE INDEX index_9ee83b068b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_22_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_a016d4ed08 ON gitlab_partitions_static.issue_search_data_36 USING btree (namespace_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_22_issue_id_idx; +CREATE INDEX index_a1a9dc36c1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_a2d9f185a5 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_22_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_a3feed3097 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_22_pkey; +CREATE INDEX index_a46b7b7f26 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +CREATE INDEX index_a4f5106804 ON gitlab_partitions_static.issue_search_data_11 USING btree (namespace_id); --- --- Name: issue_search_data_22_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_a6999c65c9 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_22_search_vector_idx; +CREATE INDEX index_a6c68d16b2 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_a8276a450f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_23_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_a849f1bbcc ON gitlab_partitions_static.issue_search_data_62 USING btree (namespace_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_23_issue_id_idx; +CREATE INDEX index_a88f20fc98 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_a8fe03fe34 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); --- --- Name: issue_search_data_23_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_a9424aa392 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_23_pkey; +CREATE INDEX index_a99cee1904 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_a9b1763c36 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); --- --- Name: issue_search_data_23_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_a9ba23c88e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_23_search_vector_idx; +CREATE INDEX index_a9deff2159 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_aa92d75d85 ON gitlab_partitions_static.issue_search_data_04 USING btree (namespace_id); --- --- Name: issue_search_data_24_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_aabc184267 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_24_issue_id_idx; +CREATE INDEX index_ab22231a16 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_abbdf80ab1 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_24_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_aca42d7cff ON gitlab_partitions_static.issue_search_data_44 USING btree (namespace_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_24_pkey; +CREATE INDEX index_ad55e8b11c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +CREATE INDEX index_adc159c3fe ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_24_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_aed7f7b10c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_24_search_vector_idx; +CREATE INDEX index_aee84adb5b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_af8368d587 ON gitlab_partitions_static.issue_search_data_31 USING btree (namespace_id); --- --- Name: issue_search_data_25_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_b1dda405af ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_25_issue_id_idx; +CREATE INDEX index_b24e8538c8 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); +CREATE INDEX index_b286c595e8 ON gitlab_partitions_static.issue_search_data_05 USING btree (namespace_id); --- --- Name: issue_search_data_25_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_b377ac6784 ON gitlab_partitions_static.issue_search_data_20 USING btree (namespace_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_25_pkey; +CREATE INDEX index_b3b64068e7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +CREATE INDEX index_b3c4c9a53f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); --- --- Name: issue_search_data_25_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_b4b2bba753 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_25_search_vector_idx; +CREATE INDEX index_b607012614 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_b6cc38a848 ON gitlab_partitions_static.issue_search_data_08 USING btree (namespace_id); --- --- Name: issue_search_data_26_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_b748a3e0a6 ON gitlab_partitions_static.issue_search_data_15 USING btree (namespace_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_26_issue_id_idx; +CREATE INDEX index_b7f21460bb ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_b83fe1306b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_26_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_bb6defaa27 ON gitlab_partitions_static.issue_search_data_34 USING btree (namespace_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_26_pkey; +CREATE INDEX index_bc189e47ab ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_bca83177ef ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_26_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_bcaa8dcd34 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_26_search_vector_idx; +CREATE INDEX index_bcae2cf631 ON gitlab_partitions_static.issue_search_data_00 USING btree (namespace_id); +CREATE INDEX index_be0a028bcc ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); --- --- Name: issue_search_data_27_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_beaa329ca0 ON gitlab_partitions_static.issue_search_data_47 USING btree (namespace_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_27_issue_id_idx; +CREATE INDEX index_bedd7e160b ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_bee2b94a80 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_27_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_bf1809b19e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_27_pkey; +CREATE INDEX index_c02f569fba ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +CREATE INDEX index_c08e669dfa ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_27_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_c09bb66559 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_27_search_vector_idx; +CREATE INDEX index_c119f5b92e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_c17dae3605 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_28_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_c1cdd90d0d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_28_issue_id_idx; +CREATE INDEX index_c2b951bf20 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_c3a2cf8b3b ON gitlab_partitions_static.issue_search_data_32 USING btree (namespace_id); --- --- Name: issue_search_data_28_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_c42b2e7eae ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_28_pkey; +CREATE INDEX index_c435d904ce ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_c473921734 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_28_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_c546bb0736 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_28_search_vector_idx; +CREATE INDEX index_c59cde6209 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_c66758baa7 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_29_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_c6ea8a0e26 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_29_issue_id_idx; +CREATE INDEX index_c7ac8595d3 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +CREATE INDEX index_c8bbf2b334 ON gitlab_partitions_static.issue_search_data_26 USING btree (namespace_id); --- --- Name: issue_search_data_29_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_c8c4219c0a ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_29_pkey; +CREATE INDEX index_c971e6c5ce ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_c9b14a3d9f ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_29_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_cb222425ed ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_29_search_vector_idx; +CREATE INDEX index_cbb61ea269 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_cc0ba6343b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_30_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_ccb4f5c5a6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_30_issue_id_idx; +CREATE INDEX index_cd2b2939a4 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_cda41e106e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_30_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_ce87cbaf2d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_30_pkey; +CREATE INDEX index_cfa4237c83 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_d01ea0126a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_30_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_d03e9cdfae ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_30_search_vector_idx; +CREATE INDEX index_d0d285c264 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_d17b82ddd9 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); --- --- Name: issue_search_data_31_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_d1c24d8199 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_31_issue_id_idx; +CREATE INDEX index_d1c6c67ec1 ON gitlab_partitions_static.issue_search_data_60 USING btree (namespace_id); +CREATE INDEX index_d27b4c84e7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_31_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_d2fe918e83 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_31_pkey; +CREATE INDEX index_d35c969634 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_d3b6418940 ON gitlab_partitions_static.issue_search_data_17 USING btree (namespace_id); --- --- Name: issue_search_data_31_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_d493a5c171 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_31_search_vector_idx; +CREATE INDEX index_d6047ee813 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_d69c2485f4 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_32_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_d70379e22c ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_32_issue_id_idx; +CREATE INDEX index_d87775b2e7 ON gitlab_partitions_static.issue_search_data_35 USING btree (namespace_id); +CREATE INDEX index_d8fa9793ad ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_32_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_d9384b768d ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_32_pkey; +CREATE INDEX index_db2753330c ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +CREATE INDEX index_db6477916f ON gitlab_partitions_static.issue_search_data_28 USING btree (namespace_id); --- --- Name: issue_search_data_32_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_dc571ba649 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_32_search_vector_idx; +CREATE INDEX index_de0334da63 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +CREATE INDEX index_df62a8c50e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_33_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_e1a4f994d8 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_33_issue_id_idx; +CREATE INDEX index_e38489ea98 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +CREATE INDEX index_e3d1fd5b19 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_33_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_e3d6234929 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_33_pkey; +CREATE INDEX index_e54adf9acb ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_e6405afea0 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_33_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_e64588e276 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_33_search_vector_idx; +CREATE INDEX index_e716b8ac3f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_e73bc5ba6a ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_34_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_e8f3a327b2 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_34_issue_id_idx; +CREATE INDEX index_ea0c2d3361 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_ea1b583157 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); --- --- Name: issue_search_data_34_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_eadcc94c4e ON gitlab_partitions_static.issue_search_data_03 USING btree (namespace_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_34_pkey; +CREATE INDEX index_eb558957f0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_eb5a7f918a ON gitlab_partitions_static.issue_search_data_09 USING btree (namespace_id); --- --- Name: issue_search_data_34_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_ec25d494e6 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_34_search_vector_idx; +CREATE INDEX index_ece25b5987 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); +CREATE INDEX index_ed094a4f13 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_35_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_ed6dbac8c0 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_35_issue_id_idx; +CREATE INDEX index_ee4c549a2d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_ef6a48bd29 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_35_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_ef7be2ae94 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_35_pkey; +CREATE INDEX index_efa25b26bd ON gitlab_partitions_static.issue_search_data_25 USING btree (namespace_id); +CREATE INDEX index_f06b4c7a23 ON gitlab_partitions_static.issue_search_data_30 USING btree (namespace_id); --- --- Name: issue_search_data_35_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_f0cdd09a5e ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_35_search_vector_idx; +CREATE INDEX index_f112fae8ac ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_f1c3d14cdc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_36_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_f256d3f6a1 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_36_issue_id_idx; +CREATE INDEX index_f2848acfc7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02 USING btree (stage_event_hash_id, group_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_f3d7d86e09 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_36_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_f402f6a388 ON gitlab_partitions_static.issue_search_data_14 USING btree (namespace_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_36_pkey; +CREATE INDEX index_f415dc2abd ON gitlab_partitions_static.issue_search_data_18 USING btree (namespace_id); +CREATE INDEX index_f47327ec1f ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); --- --- Name: issue_search_data_36_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_f5f0e8eefd ON gitlab_partitions_static.issue_search_data_37 USING btree (namespace_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_36_search_vector_idx; +CREATE INDEX index_f6b0d458a3 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_f705dc8541 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_37_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_f76e8a5304 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_37_issue_id_idx; +CREATE INDEX index_f836021e1e ON gitlab_partitions_static.issue_search_data_13 USING btree (namespace_id); +CREATE INDEX index_f86acdc2ff ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_37_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_f86f73056d ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_37_pkey; +CREATE INDEX index_f878aab8e3 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_f902c261ce ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16 USING btree (stage_event_hash_id, project_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_37_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_f91599d825 ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10 USING btree (stage_event_hash_id, group_id, end_event_timestamp, merge_request_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_37_search_vector_idx; +CREATE INDEX index_fbccc855cf ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26 USING btree (stage_event_hash_id, group_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_fbf2d3310b ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_38_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_fccbe45c32 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_38_issue_id_idx; +CREATE INDEX index_fee429223e ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07 USING btree (stage_event_hash_id, project_id, end_event_timestamp, merge_request_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); +CREATE INDEX index_ff00c038cc ON gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03 USING btree (stage_event_hash_id, project_id, start_event_timestamp, merge_request_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); --- --- Name: issue_search_data_38_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_ff39be5400 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04 USING btree (stage_event_hash_id, project_id, end_event_timestamp, issue_id, start_event_timestamp) WHERE (end_event_timestamp IS NOT NULL); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_38_pkey; +CREATE INDEX index_ff8741d8d7 ON gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28 USING btree (stage_event_hash_id, group_id, start_event_timestamp, issue_id) WHERE ((end_event_timestamp IS NULL) AND (state_id = 1)); +CREATE INDEX index_issue_search_data_on_issue_id ON ONLY issue_search_data USING btree (issue_id); --- --- Name: issue_search_data_38_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_00_issue_id_idx ON gitlab_partitions_static.issue_search_data_00 USING btree (issue_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_38_search_vector_idx; +CREATE INDEX index_issue_search_data_on_search_vector ON ONLY issue_search_data USING gin (search_vector); +CREATE INDEX issue_search_data_00_search_vector_idx ON gitlab_partitions_static.issue_search_data_00 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_39_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_01_issue_id_idx ON gitlab_partitions_static.issue_search_data_01 USING btree (issue_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_39_issue_id_idx; +CREATE INDEX issue_search_data_01_search_vector_idx ON gitlab_partitions_static.issue_search_data_01 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_02_issue_id_idx ON gitlab_partitions_static.issue_search_data_02 USING btree (issue_id); --- --- Name: issue_search_data_39_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_02_search_vector_idx ON gitlab_partitions_static.issue_search_data_02 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_39_pkey; +CREATE INDEX issue_search_data_03_issue_id_idx ON gitlab_partitions_static.issue_search_data_03 USING btree (issue_id); +CREATE INDEX issue_search_data_03_search_vector_idx ON gitlab_partitions_static.issue_search_data_03 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_39_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_04_issue_id_idx ON gitlab_partitions_static.issue_search_data_04 USING btree (issue_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_39_search_vector_idx; +CREATE INDEX issue_search_data_04_search_vector_idx ON gitlab_partitions_static.issue_search_data_04 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_05_issue_id_idx ON gitlab_partitions_static.issue_search_data_05 USING btree (issue_id); --- --- Name: issue_search_data_40_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_05_search_vector_idx ON gitlab_partitions_static.issue_search_data_05 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_40_issue_id_idx; +CREATE INDEX issue_search_data_06_issue_id_idx ON gitlab_partitions_static.issue_search_data_06 USING btree (issue_id); +CREATE INDEX issue_search_data_06_search_vector_idx ON gitlab_partitions_static.issue_search_data_06 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_40_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_07_issue_id_idx ON gitlab_partitions_static.issue_search_data_07 USING btree (issue_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_40_pkey; +CREATE INDEX issue_search_data_07_search_vector_idx ON gitlab_partitions_static.issue_search_data_07 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_08_issue_id_idx ON gitlab_partitions_static.issue_search_data_08 USING btree (issue_id); --- --- Name: issue_search_data_40_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_08_search_vector_idx ON gitlab_partitions_static.issue_search_data_08 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_40_search_vector_idx; +CREATE INDEX issue_search_data_09_issue_id_idx ON gitlab_partitions_static.issue_search_data_09 USING btree (issue_id); +CREATE INDEX issue_search_data_09_search_vector_idx ON gitlab_partitions_static.issue_search_data_09 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_41_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_10_issue_id_idx ON gitlab_partitions_static.issue_search_data_10 USING btree (issue_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_41_issue_id_idx; +CREATE INDEX issue_search_data_10_search_vector_idx ON gitlab_partitions_static.issue_search_data_10 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_11_issue_id_idx ON gitlab_partitions_static.issue_search_data_11 USING btree (issue_id); --- --- Name: issue_search_data_41_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_11_search_vector_idx ON gitlab_partitions_static.issue_search_data_11 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_41_pkey; +CREATE INDEX issue_search_data_12_issue_id_idx ON gitlab_partitions_static.issue_search_data_12 USING btree (issue_id); +CREATE INDEX issue_search_data_12_search_vector_idx ON gitlab_partitions_static.issue_search_data_12 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_41_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_13_issue_id_idx ON gitlab_partitions_static.issue_search_data_13 USING btree (issue_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_41_search_vector_idx; +CREATE INDEX issue_search_data_13_search_vector_idx ON gitlab_partitions_static.issue_search_data_13 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_14_issue_id_idx ON gitlab_partitions_static.issue_search_data_14 USING btree (issue_id); --- --- Name: issue_search_data_42_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_14_search_vector_idx ON gitlab_partitions_static.issue_search_data_14 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_42_issue_id_idx; +CREATE INDEX issue_search_data_15_issue_id_idx ON gitlab_partitions_static.issue_search_data_15 USING btree (issue_id); +CREATE INDEX issue_search_data_15_search_vector_idx ON gitlab_partitions_static.issue_search_data_15 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_42_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_16_issue_id_idx ON gitlab_partitions_static.issue_search_data_16 USING btree (issue_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_42_pkey; +CREATE INDEX issue_search_data_16_search_vector_idx ON gitlab_partitions_static.issue_search_data_16 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_17_issue_id_idx ON gitlab_partitions_static.issue_search_data_17 USING btree (issue_id); --- --- Name: issue_search_data_42_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_17_search_vector_idx ON gitlab_partitions_static.issue_search_data_17 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_42_search_vector_idx; +CREATE INDEX issue_search_data_18_issue_id_idx ON gitlab_partitions_static.issue_search_data_18 USING btree (issue_id); +CREATE INDEX issue_search_data_18_search_vector_idx ON gitlab_partitions_static.issue_search_data_18 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_43_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_19_issue_id_idx ON gitlab_partitions_static.issue_search_data_19 USING btree (issue_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_43_issue_id_idx; +CREATE INDEX issue_search_data_19_search_vector_idx ON gitlab_partitions_static.issue_search_data_19 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_20_issue_id_idx ON gitlab_partitions_static.issue_search_data_20 USING btree (issue_id); --- --- Name: issue_search_data_43_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_20_search_vector_idx ON gitlab_partitions_static.issue_search_data_20 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_43_pkey; +CREATE INDEX issue_search_data_21_issue_id_idx ON gitlab_partitions_static.issue_search_data_21 USING btree (issue_id); +CREATE INDEX issue_search_data_21_search_vector_idx ON gitlab_partitions_static.issue_search_data_21 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_43_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_22_issue_id_idx ON gitlab_partitions_static.issue_search_data_22 USING btree (issue_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_43_search_vector_idx; +CREATE INDEX issue_search_data_22_search_vector_idx ON gitlab_partitions_static.issue_search_data_22 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_23_issue_id_idx ON gitlab_partitions_static.issue_search_data_23 USING btree (issue_id); --- --- Name: issue_search_data_44_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_23_search_vector_idx ON gitlab_partitions_static.issue_search_data_23 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_44_issue_id_idx; +CREATE INDEX issue_search_data_24_issue_id_idx ON gitlab_partitions_static.issue_search_data_24 USING btree (issue_id); +CREATE INDEX issue_search_data_24_search_vector_idx ON gitlab_partitions_static.issue_search_data_24 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_44_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_25_issue_id_idx ON gitlab_partitions_static.issue_search_data_25 USING btree (issue_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_44_pkey; +CREATE INDEX issue_search_data_25_search_vector_idx ON gitlab_partitions_static.issue_search_data_25 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_26_issue_id_idx ON gitlab_partitions_static.issue_search_data_26 USING btree (issue_id); --- --- Name: issue_search_data_44_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_26_search_vector_idx ON gitlab_partitions_static.issue_search_data_26 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_44_search_vector_idx; +CREATE INDEX issue_search_data_27_issue_id_idx ON gitlab_partitions_static.issue_search_data_27 USING btree (issue_id); +CREATE INDEX issue_search_data_27_search_vector_idx ON gitlab_partitions_static.issue_search_data_27 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_45_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_28_issue_id_idx ON gitlab_partitions_static.issue_search_data_28 USING btree (issue_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_45_issue_id_idx; +CREATE INDEX issue_search_data_28_search_vector_idx ON gitlab_partitions_static.issue_search_data_28 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_29_issue_id_idx ON gitlab_partitions_static.issue_search_data_29 USING btree (issue_id); --- --- Name: issue_search_data_45_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_29_search_vector_idx ON gitlab_partitions_static.issue_search_data_29 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_45_pkey; +CREATE INDEX issue_search_data_30_issue_id_idx ON gitlab_partitions_static.issue_search_data_30 USING btree (issue_id); +CREATE INDEX issue_search_data_30_search_vector_idx ON gitlab_partitions_static.issue_search_data_30 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_45_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_31_issue_id_idx ON gitlab_partitions_static.issue_search_data_31 USING btree (issue_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_45_search_vector_idx; +CREATE INDEX issue_search_data_31_search_vector_idx ON gitlab_partitions_static.issue_search_data_31 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_32_issue_id_idx ON gitlab_partitions_static.issue_search_data_32 USING btree (issue_id); --- --- Name: issue_search_data_46_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_32_search_vector_idx ON gitlab_partitions_static.issue_search_data_32 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_46_issue_id_idx; +CREATE INDEX issue_search_data_33_issue_id_idx ON gitlab_partitions_static.issue_search_data_33 USING btree (issue_id); +CREATE INDEX issue_search_data_33_search_vector_idx ON gitlab_partitions_static.issue_search_data_33 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_46_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_34_issue_id_idx ON gitlab_partitions_static.issue_search_data_34 USING btree (issue_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_46_pkey; +CREATE INDEX issue_search_data_34_search_vector_idx ON gitlab_partitions_static.issue_search_data_34 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_35_issue_id_idx ON gitlab_partitions_static.issue_search_data_35 USING btree (issue_id); --- --- Name: issue_search_data_46_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_35_search_vector_idx ON gitlab_partitions_static.issue_search_data_35 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_46_search_vector_idx; +CREATE INDEX issue_search_data_36_issue_id_idx ON gitlab_partitions_static.issue_search_data_36 USING btree (issue_id); +CREATE INDEX issue_search_data_36_search_vector_idx ON gitlab_partitions_static.issue_search_data_36 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_47_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_37_issue_id_idx ON gitlab_partitions_static.issue_search_data_37 USING btree (issue_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_47_issue_id_idx; +CREATE INDEX issue_search_data_37_search_vector_idx ON gitlab_partitions_static.issue_search_data_37 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_38_issue_id_idx ON gitlab_partitions_static.issue_search_data_38 USING btree (issue_id); --- --- Name: issue_search_data_47_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_38_search_vector_idx ON gitlab_partitions_static.issue_search_data_38 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_47_pkey; +CREATE INDEX issue_search_data_39_issue_id_idx ON gitlab_partitions_static.issue_search_data_39 USING btree (issue_id); +CREATE INDEX issue_search_data_39_search_vector_idx ON gitlab_partitions_static.issue_search_data_39 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_47_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_40_issue_id_idx ON gitlab_partitions_static.issue_search_data_40 USING btree (issue_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_47_search_vector_idx; +CREATE INDEX issue_search_data_40_search_vector_idx ON gitlab_partitions_static.issue_search_data_40 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_41_issue_id_idx ON gitlab_partitions_static.issue_search_data_41 USING btree (issue_id); --- --- Name: issue_search_data_48_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_41_search_vector_idx ON gitlab_partitions_static.issue_search_data_41 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_48_issue_id_idx; +CREATE INDEX issue_search_data_42_issue_id_idx ON gitlab_partitions_static.issue_search_data_42 USING btree (issue_id); +CREATE INDEX issue_search_data_42_search_vector_idx ON gitlab_partitions_static.issue_search_data_42 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_48_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_43_issue_id_idx ON gitlab_partitions_static.issue_search_data_43 USING btree (issue_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_48_pkey; +CREATE INDEX issue_search_data_43_search_vector_idx ON gitlab_partitions_static.issue_search_data_43 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_44_issue_id_idx ON gitlab_partitions_static.issue_search_data_44 USING btree (issue_id); --- --- Name: issue_search_data_48_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_44_search_vector_idx ON gitlab_partitions_static.issue_search_data_44 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_48_search_vector_idx; +CREATE INDEX issue_search_data_45_issue_id_idx ON gitlab_partitions_static.issue_search_data_45 USING btree (issue_id); +CREATE INDEX issue_search_data_45_search_vector_idx ON gitlab_partitions_static.issue_search_data_45 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_49_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_46_issue_id_idx ON gitlab_partitions_static.issue_search_data_46 USING btree (issue_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_49_issue_id_idx; +CREATE INDEX issue_search_data_46_search_vector_idx ON gitlab_partitions_static.issue_search_data_46 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_47_issue_id_idx ON gitlab_partitions_static.issue_search_data_47 USING btree (issue_id); --- --- Name: issue_search_data_49_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_47_search_vector_idx ON gitlab_partitions_static.issue_search_data_47 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_49_pkey; +CREATE INDEX issue_search_data_48_issue_id_idx ON gitlab_partitions_static.issue_search_data_48 USING btree (issue_id); +CREATE INDEX issue_search_data_48_search_vector_idx ON gitlab_partitions_static.issue_search_data_48 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_49_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_49_issue_id_idx ON gitlab_partitions_static.issue_search_data_49 USING btree (issue_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_49_search_vector_idx; +CREATE INDEX issue_search_data_49_search_vector_idx ON gitlab_partitions_static.issue_search_data_49 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_50_issue_id_idx ON gitlab_partitions_static.issue_search_data_50 USING btree (issue_id); --- --- Name: issue_search_data_50_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_50_search_vector_idx ON gitlab_partitions_static.issue_search_data_50 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_50_issue_id_idx; +CREATE INDEX issue_search_data_51_issue_id_idx ON gitlab_partitions_static.issue_search_data_51 USING btree (issue_id); +CREATE INDEX issue_search_data_51_search_vector_idx ON gitlab_partitions_static.issue_search_data_51 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_50_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_52_issue_id_idx ON gitlab_partitions_static.issue_search_data_52 USING btree (issue_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_50_pkey; +CREATE INDEX issue_search_data_52_search_vector_idx ON gitlab_partitions_static.issue_search_data_52 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_53_issue_id_idx ON gitlab_partitions_static.issue_search_data_53 USING btree (issue_id); --- --- Name: issue_search_data_50_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_53_search_vector_idx ON gitlab_partitions_static.issue_search_data_53 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_50_search_vector_idx; +CREATE INDEX issue_search_data_54_issue_id_idx ON gitlab_partitions_static.issue_search_data_54 USING btree (issue_id); +CREATE INDEX issue_search_data_54_search_vector_idx ON gitlab_partitions_static.issue_search_data_54 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_51_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_55_issue_id_idx ON gitlab_partitions_static.issue_search_data_55 USING btree (issue_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_51_issue_id_idx; +CREATE INDEX issue_search_data_55_search_vector_idx ON gitlab_partitions_static.issue_search_data_55 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_56_issue_id_idx ON gitlab_partitions_static.issue_search_data_56 USING btree (issue_id); --- --- Name: issue_search_data_51_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_56_search_vector_idx ON gitlab_partitions_static.issue_search_data_56 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_51_pkey; +CREATE INDEX issue_search_data_57_issue_id_idx ON gitlab_partitions_static.issue_search_data_57 USING btree (issue_id); +CREATE INDEX issue_search_data_57_search_vector_idx ON gitlab_partitions_static.issue_search_data_57 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_51_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_58_issue_id_idx ON gitlab_partitions_static.issue_search_data_58 USING btree (issue_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_51_search_vector_idx; +CREATE INDEX issue_search_data_58_search_vector_idx ON gitlab_partitions_static.issue_search_data_58 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_59_issue_id_idx ON gitlab_partitions_static.issue_search_data_59 USING btree (issue_id); --- --- Name: issue_search_data_52_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_59_search_vector_idx ON gitlab_partitions_static.issue_search_data_59 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_52_issue_id_idx; +CREATE INDEX issue_search_data_60_issue_id_idx ON gitlab_partitions_static.issue_search_data_60 USING btree (issue_id); +CREATE INDEX issue_search_data_60_search_vector_idx ON gitlab_partitions_static.issue_search_data_60 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_52_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_61_issue_id_idx ON gitlab_partitions_static.issue_search_data_61 USING btree (issue_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_52_pkey; +CREATE INDEX issue_search_data_61_search_vector_idx ON gitlab_partitions_static.issue_search_data_61 USING gin (search_vector) WITH (fastupdate='false'); +CREATE INDEX issue_search_data_62_issue_id_idx ON gitlab_partitions_static.issue_search_data_62 USING btree (issue_id); --- --- Name: issue_search_data_52_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX issue_search_data_62_search_vector_idx ON gitlab_partitions_static.issue_search_data_62 USING gin (search_vector) WITH (fastupdate='false'); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_52_search_vector_idx; +CREATE INDEX issue_search_data_63_issue_id_idx ON gitlab_partitions_static.issue_search_data_63 USING btree (issue_id); +CREATE INDEX issue_search_data_63_search_vector_idx ON gitlab_partitions_static.issue_search_data_63 USING gin (search_vector) WITH (fastupdate='false'); --- --- Name: issue_search_data_53_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_on_namespace_descendants_outdated ON ONLY namespace_descendants USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_53_issue_id_idx; +CREATE INDEX namespace_descendants_00_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_00 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +CREATE INDEX namespace_descendants_01_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_01 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); --- --- Name: issue_search_data_53_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX namespace_descendants_02_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_02 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_53_pkey; +CREATE INDEX namespace_descendants_03_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_03 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +CREATE INDEX namespace_descendants_04_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_04 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); --- --- Name: issue_search_data_53_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX namespace_descendants_05_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_05 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_53_search_vector_idx; +CREATE INDEX namespace_descendants_06_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_06 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +CREATE INDEX namespace_descendants_07_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_07 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); --- --- Name: issue_search_data_54_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX namespace_descendants_08_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_08 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_54_issue_id_idx; +CREATE INDEX namespace_descendants_09_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_09 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +CREATE INDEX namespace_descendants_10_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_10 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); --- --- Name: issue_search_data_54_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX namespace_descendants_11_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_11 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_54_pkey; +CREATE INDEX namespace_descendants_12_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_12 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +CREATE INDEX namespace_descendants_13_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_13 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); --- --- Name: issue_search_data_54_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX namespace_descendants_14_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_14 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_54_search_vector_idx; +CREATE INDEX namespace_descendants_15_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_15 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +CREATE INDEX namespace_descendants_16_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_16 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); --- --- Name: issue_search_data_55_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX namespace_descendants_17_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_17 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_55_issue_id_idx; +CREATE INDEX namespace_descendants_18_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_18 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +CREATE INDEX namespace_descendants_19_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_19 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); --- --- Name: issue_search_data_55_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX namespace_descendants_20_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_20 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_55_pkey; +CREATE INDEX namespace_descendants_21_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_21 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +CREATE INDEX namespace_descendants_22_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_22 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); --- --- Name: issue_search_data_55_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX namespace_descendants_23_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_23 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_55_search_vector_idx; +CREATE INDEX namespace_descendants_24_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_24 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +CREATE INDEX namespace_descendants_25_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_25 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); --- --- Name: issue_search_data_56_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX namespace_descendants_26_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_26 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_56_issue_id_idx; +CREATE INDEX namespace_descendants_27_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_27 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +CREATE INDEX namespace_descendants_28_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_28 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); --- --- Name: issue_search_data_56_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX namespace_descendants_29_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_29 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_56_pkey; +CREATE INDEX namespace_descendants_30_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_30 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); +CREATE INDEX namespace_descendants_31_namespace_id_idx ON gitlab_partitions_static.namespace_descendants_31 USING btree (namespace_id) WHERE (outdated_at IS NOT NULL); --- --- Name: issue_search_data_56_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX analytics_index_audit_events_part_on_created_at_and_author_id ON ONLY audit_events USING btree (created_at, author_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_56_search_vector_idx; +CREATE INDEX analytics_index_events_on_created_at_and_author_id ON events USING btree (created_at, author_id); +CREATE INDEX analytics_repository_languages_on_project_id ON analytics_language_trend_repository_languages USING btree (project_id); --- --- Name: issue_search_data_57_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX any_approver_project_rule_type_unique_index ON approval_project_rules USING btree (project_id) WHERE (rule_type = 3); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_57_issue_id_idx; +CREATE INDEX approval_mr_rule_index_merge_request_id ON approval_merge_request_rules USING btree (merge_request_id); +CREATE INDEX bulk_import_export_uploads_batch_id ON bulk_import_export_uploads USING btree (batch_id); --- --- Name: issue_search_data_57_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX bulk_import_trackers_uniq_relation_by_entity ON bulk_import_trackers USING btree (bulk_import_entity_id, relation); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_57_pkey; +CREATE INDEX ca_aggregations_last_consistency_check_updated_at ON analytics_cycle_analytics_aggregations USING btree (last_consistency_check_updated_at NULLS FIRST) WHERE (enabled IS TRUE); +CREATE INDEX ca_aggregations_last_full_run_at ON analytics_cycle_analytics_aggregations USING btree (last_full_run_at NULLS FIRST) WHERE (enabled IS TRUE); --- --- Name: issue_search_data_57_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX ca_aggregations_last_incremental_run_at ON analytics_cycle_analytics_aggregations USING btree (last_incremental_run_at NULLS FIRST) WHERE (enabled IS TRUE); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_57_search_vector_idx; +CREATE INDEX index_p_ci_build_trace_metadata_on_trace_artifact_id ON ONLY p_ci_build_trace_metadata USING btree (trace_artifact_id); +CREATE INDEX ci_build_trace_metadata_trace_artifact_id_idx ON ci_build_trace_metadata USING btree (trace_artifact_id); --- --- Name: issue_search_data_58_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX p_ci_builds_status_created_at_project_id_idx ON ONLY p_ci_builds USING btree (status, created_at, project_id) WHERE ((type)::text = 'Ci::Build'::text); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_58_issue_id_idx; +CREATE INDEX ci_builds_gitlab_monitor_metrics ON ci_builds USING btree (status, created_at, project_id) WHERE ((type)::text = 'Ci::Build'::text); +CREATE UNIQUE INDEX ci_job_token_scope_links_source_and_target_project_direction ON ci_job_token_project_scope_links USING btree (source_project_id, target_project_id, direction); --- --- Name: issue_search_data_58_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX ci_pipeline_artifacts_on_expire_at_for_removal ON ci_pipeline_artifacts USING btree (expire_at) WHERE ((locked = 0) AND (expire_at IS NOT NULL)); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_58_pkey; +CREATE INDEX code_owner_approval_required ON protected_branches USING btree (project_id, code_owner_approval_required) WHERE (code_owner_approval_required = true); +CREATE UNIQUE INDEX commit_user_mentions_on_commit_id_and_note_id_unique_index ON commit_user_mentions USING btree (commit_id, note_id); --- --- Name: issue_search_data_58_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX composer_cache_files_index_on_deleted_at ON packages_composer_cache_files USING btree (delete_at, id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_58_search_vector_idx; +CREATE UNIQUE INDEX custom_email_unique_constraint ON service_desk_settings USING btree (custom_email); +CREATE UNIQUE INDEX dast_scanner_profiles_builds_on_ci_build_id ON dast_scanner_profiles_builds USING btree (ci_build_id); --- --- Name: issue_search_data_59_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX dast_site_profiles_builds_on_ci_build_id ON dast_site_profiles_builds USING btree (ci_build_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_59_issue_id_idx; +CREATE UNIQUE INDEX design_management_designs_versions_uniqueness ON design_management_designs_versions USING btree (design_id, version_id); +CREATE UNIQUE INDEX design_user_mentions_on_design_id_and_note_id_unique_index ON design_user_mentions USING btree (design_id, note_id); --- --- Name: issue_search_data_59_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX epic_user_mentions_on_epic_id_and_note_id_index ON epic_user_mentions USING btree (epic_id, note_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_59_pkey; +CREATE UNIQUE INDEX epic_user_mentions_on_epic_id_index ON epic_user_mentions USING btree (epic_id) WHERE (note_id IS NULL); +CREATE UNIQUE INDEX finding_evidences_on_unique_vulnerability_occurrence_id ON vulnerability_finding_evidences USING btree (vulnerability_occurrence_id); --- --- Name: issue_search_data_59_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX finding_link_name_url_idx ON vulnerability_finding_links USING btree (vulnerability_occurrence_id, name, url); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_59_search_vector_idx; +CREATE UNIQUE INDEX finding_link_url_idx ON vulnerability_finding_links USING btree (vulnerability_occurrence_id, url) WHERE (name IS NULL); +CREATE UNIQUE INDEX i_affected_packages_unique_for_upsert ON pm_affected_packages USING btree (pm_advisory_id, purl_type, package_name, distro_version); --- --- Name: issue_search_data_60_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX i_batched_background_migration_job_transition_logs_on_job_id ON ONLY batched_background_migration_job_transition_logs USING btree (batched_background_migration_job_id); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_60_issue_id_idx; +CREATE UNIQUE INDEX i_bulk_import_export_batches_id_batch_number ON bulk_import_export_batches USING btree (export_id, batch_number); +CREATE UNIQUE INDEX i_bulk_import_trackers_id_batch_number ON bulk_import_batch_trackers USING btree (tracker_id, batch_number); --- --- Name: issue_search_data_60_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX i_ci_job_token_group_scope_links_on_source_and_target_project ON ci_job_token_group_scope_links USING btree (source_project_id, target_group_id); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_60_pkey; +CREATE INDEX i_compliance_frameworks_on_id_and_created_at ON compliance_management_frameworks USING btree (id, created_at, pipeline_configuration_full_path); +CREATE INDEX i_compliance_standards_adherence_on_namespace_id_and_proj_id ON project_compliance_standards_adherence USING btree (namespace_id, project_id DESC, id DESC); --- --- Name: issue_search_data_60_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX i_compliance_violations_for_export ON merge_requests_compliance_violations USING btree (target_project_id, id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_60_search_vector_idx; +CREATE INDEX i_compliance_violations_on_project_id_merged_at_and_id ON merge_requests_compliance_violations USING btree (target_project_id, merged_at, id); +CREATE INDEX i_compliance_violations_on_project_id_reason_and_id ON merge_requests_compliance_violations USING btree (target_project_id, reason, id); --- --- Name: issue_search_data_61_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX i_compliance_violations_on_project_id_severity_and_id ON merge_requests_compliance_violations USING btree (target_project_id, severity_level DESC, id DESC); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_61_issue_id_idx; +CREATE INDEX i_compliance_violations_on_project_id_title_and_id ON merge_requests_compliance_violations USING btree (target_project_id, title, id); +CREATE UNIQUE INDEX i_container_protection_unique_project_repository_path_pattern ON container_registry_protection_rules USING btree (project_id, repository_path_pattern); --- --- Name: issue_search_data_61_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX i_custom_email_verifications_on_triggered_at_and_state_started ON service_desk_custom_email_verifications USING btree (triggered_at) WHERE (state = 0); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_61_pkey; +CREATE INDEX i_dast_pre_scan_verification_steps_on_pre_scan_verification_id ON dast_pre_scan_verification_steps USING btree (dast_pre_scan_verification_id); +CREATE INDEX i_dast_profiles_tags_on_scanner_profiles_id ON dast_profiles_tags USING btree (dast_profile_id); --- --- Name: issue_search_data_61_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX i_namespace_cluster_agent_mappings_on_cluster_agent_id ON remote_development_namespace_cluster_agent_mappings USING btree (cluster_agent_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_61_search_vector_idx; +CREATE INDEX i_namespace_cluster_agent_mappings_on_creator_id ON remote_development_namespace_cluster_agent_mappings USING btree (creator_id); +CREATE UNIQUE INDEX i_packages_unique_project_id_package_type_package_name_pattern ON packages_protection_rules USING btree (project_id, package_type, package_name_pattern); --- --- Name: issue_search_data_62_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX i_pkgs_deb_file_meta_on_updated_at_package_file_id_when_unknown ON packages_debian_file_metadata USING btree (updated_at, package_file_id) WHERE (file_type = 1); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_62_issue_id_idx; +CREATE UNIQUE INDEX i_pm_licenses_on_spdx_identifier ON pm_licenses USING btree (spdx_identifier); +CREATE UNIQUE INDEX i_pm_package_version_licenses_join_ids ON pm_package_version_licenses USING btree (pm_package_version_id, pm_license_id); --- --- Name: issue_search_data_62_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX i_pm_package_versions_on_package_id_and_version ON pm_package_versions USING btree (pm_package_id, version); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_62_pkey; +CREATE UNIQUE INDEX i_pm_packages_purl_type_and_name ON pm_packages USING btree (purl_type, name); +CREATE UNIQUE INDEX i_sbom_occurrences_vulnerabilities_on_occ_id_and_vuln_id ON sbom_occurrences_vulnerabilities USING btree (sbom_occurrence_id, vulnerability_id); --- --- Name: issue_search_data_62_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX i_software_license_policies_on_custom_software_license_id ON software_license_policies USING btree (custom_software_license_id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_62_search_vector_idx; +CREATE INDEX i_vuln_occurrences_on_proj_report_loc_dep_pkg_ver_file_img ON vulnerability_occurrences USING btree (project_id, report_type, ((((location -> 'dependency'::text) -> 'package'::text) ->> 'name'::text)), (((location -> 'dependency'::text) ->> 'version'::text)), COALESCE((location ->> 'file'::text), (location ->> 'image'::text))) WHERE (report_type = ANY (ARRAY[2, 1])); +CREATE INDEX idx_abuse_reports_user_id_status_and_category ON abuse_reports USING btree (user_id, status, category); --- --- Name: issue_search_data_63_issue_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_addon_purchases_on_last_refreshed_at_desc_nulls_last ON subscription_add_on_purchases USING btree (last_assigned_users_refreshed_at DESC NULLS LAST); -ALTER INDEX public.index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_63_issue_id_idx; +CREATE INDEX idx_alert_management_alerts_on_created_at_project_id_with_issue ON alert_management_alerts USING btree (created_at, project_id) WHERE (issue_id IS NOT NULL); +CREATE INDEX idx_analytics_devops_adoption_segments_on_namespace_id ON analytics_devops_adoption_segments USING btree (namespace_id); --- --- Name: issue_search_data_63_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_analytics_devops_adoption_snapshots_finalized ON analytics_devops_adoption_snapshots USING btree (namespace_id, end_time) WHERE (recorded_at >= end_time); -ALTER INDEX public.issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_63_pkey; +CREATE INDEX idx_approval_merge_request_rules_on_scan_result_policy_id ON approval_merge_request_rules USING btree (scan_result_policy_id); +CREATE INDEX idx_approval_mr_rules_on_config_id_and_id_and_updated_at ON approval_merge_request_rules USING btree (security_orchestration_policy_configuration_id, id, updated_at); --- --- Name: issue_search_data_63_search_vector_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_approval_project_rules_on_configuration_id_and_id ON approval_project_rules USING btree (security_orchestration_policy_configuration_id, id); -ALTER INDEX public.index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_63_search_vector_idx; +CREATE INDEX idx_approval_project_rules_on_scan_result_policy_id ON approval_project_rules USING btree (scan_result_policy_id); +CREATE INDEX idx_audit_events_group_external_destinations_on_group_id ON audit_events_group_external_streaming_destinations USING btree (group_id); --- --- Name: namespace_descendants_00_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_audit_events_namespace_event_type_filters_on_group_id ON audit_events_group_streaming_event_type_filters USING btree (namespace_id); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_00_namespace_id_idx; +CREATE INDEX idx_audit_events_part_on_entity_id_desc_author_id_created_at ON ONLY audit_events USING btree (entity_id, entity_type, id DESC, author_id, created_at); +CREATE INDEX idx_award_emoji_on_user_emoji_name_awardable_type_awardable_id ON award_emoji USING btree (user_id, name, awardable_type, awardable_id); --- --- Name: namespace_descendants_00_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_build_artifacts_size_refreshes_state_updated_at ON project_build_artifacts_size_refreshes USING btree (state, updated_at); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_00_pkey; +CREATE UNIQUE INDEX p_ci_job_artifacts_job_id_file_type_partition_id_idx ON ONLY p_ci_job_artifacts USING btree (job_id, file_type, partition_id); +CREATE UNIQUE INDEX idx_ci_job_artifacts_on_job_id_file_type_and_partition_id_uniq ON ci_job_artifacts USING btree (job_id, file_type, partition_id); --- --- Name: namespace_descendants_01_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX p_ci_pipelines_ci_ref_id_id_idx ON ONLY p_ci_pipelines USING btree (ci_ref_id, id) WHERE (locked = 1); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_01_namespace_id_idx; +CREATE INDEX idx_ci_pipelines_artifacts_locked ON ci_pipelines USING btree (ci_ref_id, id) WHERE (locked = 1); +CREATE INDEX idx_ci_running_builds_on_runner_type_and_owner_xid_and_id ON ci_running_builds USING btree (runner_type, runner_owner_namespace_xid, runner_id); --- --- Name: namespace_descendants_01_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_compliance_security_policies_on_policy_configuration_id ON compliance_framework_security_policies USING btree (policy_configuration_id); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_01_pkey; +CREATE INDEX idx_component_usages_on_catalog_resource_used_by_proj_used_date ON ONLY p_catalog_resource_component_usages USING btree (catalog_resource_id, used_by_project_id, used_date); +CREATE UNIQUE INDEX idx_component_usages_on_component_used_by_project_and_used_date ON ONLY p_catalog_resource_component_usages USING btree (component_id, used_by_project_id, used_date); --- --- Name: namespace_descendants_02_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_container_exp_policies_on_project_id_next_run_at ON container_expiration_policies USING btree (project_id, next_run_at) WHERE (enabled = true); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_02_namespace_id_idx; +CREATE INDEX idx_container_exp_policies_on_project_id_next_run_at_enabled ON container_expiration_policies USING btree (project_id, next_run_at, enabled); +CREATE INDEX idx_container_repos_on_exp_cleanup_status_project_id_start_date ON container_repositories USING btree (expiration_policy_cleanup_status, project_id, expiration_policy_started_at); --- --- Name: namespace_descendants_02_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_deletions_on_project_id_and_id_where_pending ON ONLY p_batched_git_ref_updates_deletions USING btree (project_id, id) WHERE (status = 1); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_02_pkey; +CREATE INDEX idx_dep_proxy_pkgs_settings_enabled_maven_on_project_id ON dependency_proxy_packages_settings USING btree (project_id) WHERE ((enabled = true) AND (maven_external_registry_url IS NOT NULL)); +CREATE INDEX idx_deployment_clusters_on_cluster_id_and_kubernetes_namespace ON deployment_clusters USING btree (cluster_id, kubernetes_namespace); --- --- Name: namespace_descendants_03_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_devops_adoption_segments_namespace_end_time ON analytics_devops_adoption_snapshots USING btree (namespace_id, end_time); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_03_namespace_id_idx; +CREATE INDEX idx_devops_adoption_segments_namespace_recorded_at ON analytics_devops_adoption_snapshots USING btree (namespace_id, recorded_at); +CREATE UNIQUE INDEX idx_devops_adoption_segments_namespaces_pair ON analytics_devops_adoption_segments USING btree (display_namespace_id, namespace_id); --- --- Name: namespace_descendants_03_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_elastic_reindexing_slices_on_elastic_reindexing_subtask_id ON elastic_reindexing_slices USING btree (elastic_reindexing_subtask_id); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_03_pkey; +CREATE INDEX idx_enabled_pkgs_cleanup_policies_on_next_run_at_project_id ON packages_cleanup_policies USING btree (next_run_at, project_id) WHERE (keep_n_duplicated_package_files <> 'all'::text); +CREATE UNIQUE INDEX idx_environment_merge_requests_unique_index ON deployment_merge_requests USING btree (environment_id, merge_request_id); --- --- Name: namespace_descendants_04_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX idx_external_audit_event_destination_id_key_uniq ON audit_events_streaming_headers USING btree (key, external_audit_event_destination_id); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_04_namespace_id_idx; +CREATE INDEX idx_external_status_checks_on_id_and_project_id ON external_status_checks USING btree (id, project_id); +CREATE INDEX idx_gpg_keys_on_user_externally_verified ON gpg_keys USING btree (user_id) WHERE (externally_verified = true); --- --- Name: namespace_descendants_04_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_group_audit_events_on_author_id_created_at_id ON ONLY group_audit_events USING btree (author_id, created_at, id); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_04_pkey; +CREATE INDEX idx_group_audit_events_on_group_id_author_created_at_id ON ONLY group_audit_events USING btree (group_id, author_id, created_at, id DESC); +CREATE INDEX idx_group_audit_events_on_project_created_at_id ON ONLY group_audit_events USING btree (group_id, created_at, id); --- --- Name: namespace_descendants_05_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_headers_instance_external_audit_event_destination_id ON instance_audit_events_streaming_headers USING btree (instance_external_audit_event_destination_id); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_05_namespace_id_idx; +CREATE INDEX idx_installable_conan_pkgs_on_project_id_id ON packages_packages USING btree (project_id, id) WHERE ((package_type = 3) AND (status = ANY (ARRAY[0, 1]))); +CREATE INDEX idx_installable_helm_pkgs_on_project_id_id ON packages_packages USING btree (project_id, id); --- --- Name: namespace_descendants_05_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_installable_npm_pkgs_on_project_id_name_version_id ON packages_packages USING btree (project_id, name, version, id) WHERE ((package_type = 2) AND (status = 0)); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_05_pkey; +CREATE INDEX idx_instance_audit_events_on_author_id_created_at_id ON ONLY instance_audit_events USING btree (author_id, created_at, id); +CREATE UNIQUE INDEX idx_instance_external_audit_event_destination_id_key_uniq ON instance_audit_events_streaming_headers USING btree (instance_external_audit_event_destination_id, key); --- --- Name: namespace_descendants_06_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_issues_on_health_status_not_null ON issues USING btree (health_status) WHERE (health_status IS NOT NULL); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_06_namespace_id_idx; +CREATE INDEX idx_issues_on_project_id_and_created_at_and_id_and_state_id ON issues USING btree (project_id, created_at, id, state_id); +CREATE INDEX idx_issues_on_project_id_and_due_date_and_id_and_state_id ON issues USING btree (project_id, due_date, id, state_id) WHERE (due_date IS NOT NULL); --- --- Name: namespace_descendants_06_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_issues_on_project_id_and_rel_position_and_id_and_state_id ON issues USING btree (project_id, relative_position, id, state_id); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_06_pkey; +CREATE INDEX idx_issues_on_project_id_and_updated_at_and_id_and_state_id ON issues USING btree (project_id, updated_at, id, state_id); +CREATE INDEX idx_issues_on_project_work_item_type_closed_at_where_closed ON issues USING btree (project_id, work_item_type_id, closed_at) WHERE (state_id = 2); --- --- Name: namespace_descendants_07_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_issues_on_state_id ON issues USING btree (state_id); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_07_namespace_id_idx; +CREATE UNIQUE INDEX idx_jira_connect_subscriptions_on_installation_id_namespace_id ON jira_connect_subscriptions USING btree (jira_connect_installation_id, namespace_id); +CREATE INDEX idx_keys_expires_at_and_before_expiry_notification_undelivered ON keys USING btree (date(timezone('UTC'::text, expires_at)), before_expiry_notification_delivered_at) WHERE (before_expiry_notification_delivered_at IS NULL); --- --- Name: namespace_descendants_07_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_members_created_at_user_id_invite_token ON members USING btree (created_at) WHERE ((invite_token IS NOT NULL) AND (user_id IS NULL)); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_07_pkey; +CREATE INDEX idx_members_on_user_and_source_and_source_type_and_member_role ON members USING btree (user_id, source_id, source_type, member_role_id); +CREATE INDEX idx_merge_request_metrics_on_merged_by_project_and_mr ON merge_request_metrics USING btree (merged_by_id, target_project_id, merge_request_id); --- --- Name: namespace_descendants_08_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_merge_requests_on_id_and_merge_jid ON merge_requests USING btree (id, merge_jid) WHERE ((merge_jid IS NOT NULL) AND (state_id = 4)); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_08_namespace_id_idx; +CREATE INDEX idx_merge_requests_on_merged_state ON merge_requests USING btree (id) WHERE (state_id = 3); +CREATE INDEX idx_merge_requests_on_source_project_and_branch_state_opened ON merge_requests USING btree (source_project_id, source_branch) WHERE (state_id = 1); --- --- Name: namespace_descendants_08_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_merge_requests_on_unmerged_state_id ON merge_requests USING btree (id) WHERE (state_id <> 3); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_08_pkey; +CREATE UNIQUE INDEX idx_metrics_users_starred_dashboard_on_user_project_dashboard ON metrics_users_starred_dashboards USING btree (user_id, project_id, dashboard_path); +CREATE INDEX idx_mr_cc_diff_files_on_mr_cc_id_and_sha ON merge_request_context_commit_diff_files USING btree (merge_request_context_commit_id, sha); --- --- Name: namespace_descendants_09_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_mrs_on_target_id_and_created_at_and_state_id ON merge_requests USING btree (target_project_id, state_id, created_at, id); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_09_namespace_id_idx; +CREATE UNIQUE INDEX idx_namespace_settings_on_default_compliance_framework_id ON namespace_settings USING btree (default_compliance_framework_id); +CREATE INDEX idx_namespace_settings_on_last_dormant_member_review_at ON namespace_settings USING btree (last_dormant_member_review_at) WHERE (remove_dormant_members IS TRUE); --- --- Name: namespace_descendants_09_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX idx_o11y_log_issue_conn_on_issue_id_logs_search_metadata ON observability_logs_issues_connections USING btree (issue_id, service_name, severity_number, log_timestamp, log_fingerprint, trace_identifier); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_09_pkey; +CREATE UNIQUE INDEX idx_o11y_metric_issue_conn_on_issue_id_metric_type_name ON observability_metrics_issues_connections USING btree (issue_id, metric_type, metric_name); +CREATE UNIQUE INDEX idx_o11y_trace_issue_conn_on_issue_id_trace_identifier ON observability_traces_issues_connections USING btree (issue_id, trace_identifier); --- --- Name: namespace_descendants_10_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX idx_on_approval_group_rules_any_approver_type ON approval_group_rules USING btree (group_id, rule_type) WHERE (rule_type = 4); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_10_namespace_id_idx; +CREATE UNIQUE INDEX idx_on_approval_group_rules_group_id_type_name ON approval_group_rules USING btree (group_id, rule_type, name); +CREATE UNIQUE INDEX idx_on_approval_group_rules_groups_rule_group ON approval_group_rules_groups USING btree (approval_group_rule_id, group_id); --- --- Name: namespace_descendants_10_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX idx_on_approval_group_rules_protected_branch ON approval_group_rules_protected_branches USING btree (approval_group_rule_id, protected_branch_id); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_10_pkey; +CREATE INDEX idx_on_approval_group_rules_security_orch_policy ON approval_group_rules USING btree (security_orchestration_policy_configuration_id); +CREATE UNIQUE INDEX idx_on_approval_group_rules_users_rule_user ON approval_group_rules_users USING btree (approval_group_rule_id, user_id); --- --- Name: namespace_descendants_11_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX idx_on_compliance_management_frameworks_namespace_id_name ON compliance_management_frameworks USING btree (namespace_id, name); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_11_namespace_id_idx; +CREATE UNIQUE INDEX idx_on_external_approval_rules_project_id_external_url ON external_approval_rules USING btree (project_id, external_url); +CREATE UNIQUE INDEX idx_on_external_approval_rules_project_id_name ON external_approval_rules USING btree (project_id, name); --- --- Name: namespace_descendants_11_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX idx_on_external_status_checks_project_id_external_url ON external_status_checks USING btree (project_id, external_url); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_11_pkey; +CREATE UNIQUE INDEX idx_on_external_status_checks_project_id_name ON external_status_checks USING btree (project_id, name); +CREATE INDEX idx_on_protected_branch ON approval_group_rules_protected_branches USING btree (protected_branch_id); --- --- Name: namespace_descendants_12_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_open_issues_on_project_and_confidential_and_author_and_id ON issues USING btree (project_id, confidential, author_id, id) WHERE (state_id = 1); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_12_namespace_id_idx; +CREATE INDEX idx_p_ci_finished_pipeline_ch_sync_evts_on_project_namespace_id ON ONLY p_ci_finished_pipeline_ch_sync_events USING btree (project_namespace_id); +CREATE INDEX idx_packages_debian_group_component_files_on_architecture_id ON packages_debian_group_component_files USING btree (architecture_id); --- --- Name: namespace_descendants_12_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_packages_debian_project_component_files_on_architecture_id ON packages_debian_project_component_files USING btree (architecture_id); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_12_pkey; +CREATE INDEX idx_packages_dependencies_on_name_version_pattern_project_id ON packages_dependencies USING btree (name, version_pattern, project_id); +CREATE INDEX idx_packages_nuget_metadata_on_pkg_id_and_normalized_version ON packages_nuget_metadata USING btree (package_id, normalized_version); --- --- Name: namespace_descendants_13_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_packages_on_project_id_name_id_version_when_installable_npm ON packages_packages USING btree (project_id, name, id, version) WHERE ((package_type = 2) AND (status = ANY (ARRAY[0, 1]))); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_13_namespace_id_idx; +CREATE UNIQUE INDEX idx_packages_on_project_id_name_version_unique_when_generic ON packages_packages USING btree (project_id, name, version) WHERE ((package_type = 7) AND (status <> 4)); +CREATE UNIQUE INDEX idx_packages_on_project_id_name_version_unique_when_golang ON packages_packages USING btree (project_id, name, version) WHERE ((package_type = 8) AND (status <> 4)); --- --- Name: namespace_descendants_13_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX idx_packages_on_project_id_name_version_unique_when_helm ON packages_packages USING btree (project_id, name, version) WHERE ((package_type = 11) AND (status <> 4)); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_13_pkey; +CREATE UNIQUE INDEX idx_packages_on_project_id_name_version_unique_when_npm ON packages_packages USING btree (project_id, name, version) WHERE ((package_type = 2) AND (status <> 4)); +CREATE INDEX idx_packages_packages_on_npm_scope_and_project_id ON packages_packages USING btree (split_part((name)::text, '/'::text, 1), project_id) WHERE ((package_type = 2) AND ("position"((name)::text, '/'::text) > 0) AND (status = ANY (ARRAY[0, 3])) AND (version IS NOT NULL)); --- --- Name: namespace_descendants_14_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_packages_packages_on_project_id_name_version_package_type ON packages_packages USING btree (project_id, name, version, package_type); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_14_namespace_id_idx; +CREATE INDEX idx_pat_last_used_ips_on_pat_id ON personal_access_token_last_used_ips USING btree (personal_access_token_id); +CREATE INDEX idx_personal_access_tokens_on_previous_personal_access_token_id ON personal_access_tokens USING btree (previous_personal_access_token_id); --- --- Name: namespace_descendants_14_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_pkgs_conan_file_metadata_on_pkg_file_id_when_recipe_file ON packages_conan_file_metadata USING btree (package_file_id) WHERE (conan_file_type = 1); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_14_pkey; +CREATE INDEX idx_pkgs_debian_group_distribution_keys_on_distribution_id ON packages_debian_group_distribution_keys USING btree (distribution_id); +CREATE INDEX idx_pkgs_debian_project_distribution_keys_on_distribution_id ON packages_debian_project_distribution_keys USING btree (distribution_id); --- --- Name: namespace_descendants_15_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX idx_pkgs_dep_links_on_pkg_id_dependency_id_dependency_type ON packages_dependency_links USING btree (package_id, dependency_id, dependency_type); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_15_namespace_id_idx; +CREATE INDEX idx_pkgs_installable_package_files_on_package_id_id_file_name ON packages_package_files USING btree (package_id, id, file_name) WHERE (status = 0); +CREATE INDEX idx_pkgs_npm_metadata_caches_on_id_and_project_id_and_status ON packages_npm_metadata_caches USING btree (id) WHERE ((project_id IS NULL) AND (status = 0)); --- --- Name: namespace_descendants_15_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_pkgs_nuget_symbols_on_lowercase_signature_and_file_name ON packages_nuget_symbols USING btree (lower(signature), lower(file)); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_15_pkey; +CREATE INDEX idx_pkgs_on_project_id_name_version_on_installable_terraform ON packages_packages USING btree (project_id, name, version, id) WHERE ((package_type = 12) AND (status = ANY (ARRAY[0, 1]))); +CREATE INDEX idx_pkgs_project_id_lower_name_when_nuget_installable_version ON packages_packages USING btree (project_id, lower((name)::text)) WHERE ((package_type = 4) AND (version IS NOT NULL) AND (status = ANY (ARRAY[0, 1]))); --- --- Name: namespace_descendants_16_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_proj_feat_usg_on_jira_dvcs_cloud_last_sync_at_and_proj_id ON project_feature_usages USING btree (jira_dvcs_cloud_last_sync_at, project_id) WHERE (jira_dvcs_cloud_last_sync_at IS NOT NULL); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_16_namespace_id_idx; +CREATE INDEX idx_proj_feat_usg_on_jira_dvcs_server_last_sync_at_and_proj_id ON project_feature_usages USING btree (jira_dvcs_server_last_sync_at, project_id) WHERE (jira_dvcs_server_last_sync_at IS NOT NULL); +CREATE INDEX idx_project_audit_events_on_author_id_created_at_id ON ONLY project_audit_events USING btree (author_id, created_at, id); --- --- Name: namespace_descendants_16_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_project_audit_events_on_project_created_at_id ON ONLY project_audit_events USING btree (project_id, created_at, id); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_16_pkey; +CREATE INDEX idx_project_audit_events_on_project_id_author_created_at_id ON ONLY project_audit_events USING btree (project_id, author_id, created_at, id DESC); +CREATE UNIQUE INDEX idx_project_id_payload_key_self_managed_prometheus_alert_events ON self_managed_prometheus_alert_events USING btree (project_id, payload_key); --- --- Name: namespace_descendants_17_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_project_repository_check_partial ON projects USING btree (repository_storage, created_at) WHERE (last_repository_check_at IS NULL); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_17_namespace_id_idx; +CREATE INDEX idx_projects_api_created_at_id_for_archived ON projects USING btree (created_at, id) WHERE ((archived = true) AND (pending_delete = false) AND (hidden = false)); +CREATE INDEX idx_projects_api_created_at_id_for_archived_vis20 ON projects USING btree (created_at, id) WHERE ((archived = true) AND (visibility_level = 20) AND (pending_delete = false) AND (hidden = false)); --- --- Name: namespace_descendants_17_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_projects_api_created_at_id_for_vis10 ON projects USING btree (created_at, id) WHERE ((visibility_level = 10) AND (pending_delete = false) AND (hidden = false)); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_17_pkey; +CREATE INDEX idx_projects_id_created_at_disable_overriding_approvers_false ON projects USING btree (id, created_at) WHERE ((disable_overriding_approvers_per_merge_request = false) OR (disable_overriding_approvers_per_merge_request IS NULL)); +CREATE INDEX idx_projects_id_created_at_disable_overriding_approvers_true ON projects USING btree (id, created_at) WHERE (disable_overriding_approvers_per_merge_request = true); --- --- Name: namespace_descendants_18_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_projects_on_repository_storage_last_repository_updated_at ON projects USING btree (id, repository_storage, last_repository_updated_at); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_18_namespace_id_idx; +CREATE INDEX idx_reminder_frequency_on_work_item_progresses ON work_item_progresses USING btree (reminder_frequency); +CREATE INDEX idx_sbom_components_on_name_gin ON sbom_components USING gin (name gin_trgm_ops); --- --- Name: namespace_descendants_18_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX idx_sbom_components_on_name_purl_type_component_type_and_org_id ON sbom_components USING btree (name, purl_type, component_type, organization_id); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_18_pkey; +CREATE INDEX idx_sbom_occurr_on_project_component_version_input_file_path ON sbom_occurrences USING btree (project_id, component_version_id, input_file_path); +CREATE INDEX idx_sbom_occurrences_on_project_id_and_source_id ON sbom_occurrences USING btree (project_id, source_id); --- --- Name: namespace_descendants_19_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX idx_sbom_source_packages_on_name_and_purl_type ON sbom_source_packages USING btree (name, purl_type); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_19_namespace_id_idx; +CREATE INDEX idx_scan_result_policies_on_configuration_id_id_updated_at ON scan_result_policies USING btree (security_orchestration_policy_configuration_id, id, updated_at); +CREATE INDEX idx_scan_result_policy_violations_on_policy_id_and_id ON scan_result_policy_violations USING btree (scan_result_policy_id, id); --- --- Name: namespace_descendants_19_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX idx_security_scans_on_build_and_scan_type ON security_scans USING btree (build_id, scan_type); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_19_pkey; +CREATE INDEX idx_security_scans_on_scan_type ON security_scans USING btree (scan_type); +CREATE UNIQUE INDEX idx_software_license_policies_unique_on_custom_license_project ON software_license_policies USING btree (project_id, custom_software_license_id, scan_result_policy_id); --- --- Name: namespace_descendants_20_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX idx_software_license_policies_unique_on_project_and_scan_policy ON software_license_policies USING btree (project_id, software_license_id, scan_result_policy_id); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_20_namespace_id_idx; +CREATE INDEX idx_status_check_responses_on_id_and_status ON status_check_responses USING btree (id, status); +CREATE INDEX idx_streaming_group_namespace_filters_on_namespace_id ON audit_events_streaming_group_namespace_filters USING btree (namespace_id); --- --- Name: namespace_descendants_20_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_streaming_headers_on_external_audit_event_destination_id ON audit_events_streaming_headers USING btree (external_audit_event_destination_id); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_20_pkey; +CREATE INDEX idx_streaming_instance_namespace_filters_on_namespace_id ON audit_events_streaming_instance_namespace_filters USING btree (namespace_id); +CREATE INDEX idx_test_reports_on_issue_id_created_at_and_id ON requirements_management_test_reports USING btree (issue_id, created_at, id); --- --- Name: namespace_descendants_21_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX idx_uniq_analytics_dashboards_pointers_on_project_id ON analytics_dashboards_pointers USING btree (project_id); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_21_namespace_id_idx; +CREATE INDEX idx_user_add_on_assignments_on_add_on_purchase_id_and_id ON subscription_user_add_on_assignments USING btree (add_on_purchase_id, id); +CREATE INDEX idx_user_audit_events_on_author_id_created_at_id ON ONLY user_audit_events USING btree (author_id, created_at, id); --- --- Name: namespace_descendants_21_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_user_audit_events_on_project_created_at_id ON ONLY user_audit_events USING btree (user_id, created_at, id); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_21_pkey; +CREATE INDEX idx_user_audit_events_on_user_id_author_created_at_id ON ONLY user_audit_events USING btree (user_id, author_id, created_at, id DESC); +CREATE INDEX idx_user_credit_card_validations_on_holder_name_hash ON user_credit_card_validations USING btree (holder_name_hash); --- --- Name: namespace_descendants_22_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_user_credit_card_validations_on_similar_to_meta_data ON user_credit_card_validations USING btree (expiration_date_hash, last_digits_hash, network_hash, credit_card_validated_at); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_22_namespace_id_idx; +CREATE INDEX idx_user_details_on_provisioned_by_group_id_user_id ON user_details USING btree (provisioned_by_group_id, user_id); +CREATE INDEX idx_vreg_pkgs_maven_cached_responses_on_relative_path_trigram ON virtual_registries_packages_maven_cached_responses USING gin (relative_path gin_trgm_ops); --- --- Name: namespace_descendants_22_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX idx_vregs_pkgs_mvn_cached_resp_on_uniq_upstrm_id_and_rel_path ON virtual_registries_packages_maven_cached_responses USING btree (upstream_id, relative_path); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_22_pkey; +CREATE INDEX idx_vuln_reads_for_filtering ON vulnerability_reads USING btree (project_id, state, dismissal_reason, severity DESC, vulnerability_id DESC NULLS LAST); +CREATE UNIQUE INDEX idx_vuln_signatures_uniqueness_signature_sha ON vulnerability_finding_signatures USING btree (finding_id, algorithm_type, signature_sha); --- --- Name: namespace_descendants_23_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_vulnerabilities_on_project_id_and_id_active_cis_dft_branch ON vulnerabilities USING btree (project_id, id) WHERE ((report_type = 7) AND (state = ANY (ARRAY[1, 4])) AND (present_on_default_branch IS TRUE)); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_23_namespace_id_idx; +CREATE INDEX idx_vulnerabilities_partial_devops_adoption_and_default_branch ON vulnerabilities USING btree (project_id, created_at, present_on_default_branch) WHERE (state <> 1); +CREATE UNIQUE INDEX idx_vulnerability_ext_issue_links_on_vulne_id_and_ext_issue ON vulnerability_external_issue_links USING btree (vulnerability_id, external_type, external_project_key, external_issue_key); --- --- Name: namespace_descendants_23_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX idx_vulnerability_ext_issue_links_on_vulne_id_and_link_type ON vulnerability_external_issue_links USING btree (vulnerability_id, link_type) WHERE (link_type = 1); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_23_pkey; +CREATE UNIQUE INDEX idx_vulnerability_issue_links_on_vulnerability_id_and_issue_id ON vulnerability_issue_links USING btree (vulnerability_id, issue_id); +CREATE UNIQUE INDEX idx_vulnerability_issue_links_on_vulnerability_id_and_link_type ON vulnerability_issue_links USING btree (vulnerability_id, link_type) WHERE (link_type = 2); --- --- Name: namespace_descendants_24_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX idx_vulnerability_reads_for_traversal_ids_queries_srt_severity ON vulnerability_reads USING btree (state, report_type, severity, traversal_ids, vulnerability_id) WHERE (archived = false); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_24_namespace_id_idx; +CREATE INDEX idx_vulnerability_reads_project_id_scanner_id_vulnerability_id ON vulnerability_reads USING btree (project_id, scanner_id, vulnerability_id); +CREATE INDEX index_p_ci_builds_on_execution_config_id ON ONLY p_ci_builds USING btree (execution_config_id) WHERE (execution_config_id IS NOT NULL); --- --- Name: namespace_descendants_24_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_0928d9f200 ON ci_builds USING btree (execution_config_id) WHERE (execution_config_id IS NOT NULL); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_24_pkey; +CREATE INDEX index_abuse_events_on_abuse_report_id ON abuse_events USING btree (abuse_report_id); +CREATE INDEX index_abuse_events_on_category_and_source ON abuse_events USING btree (category, source); --- --- Name: namespace_descendants_25_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_abuse_events_on_user_id ON abuse_events USING btree (user_id); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_25_namespace_id_idx; +CREATE INDEX index_abuse_report_assignees_on_abuse_report_id ON abuse_report_assignees USING btree (abuse_report_id); +CREATE UNIQUE INDEX index_abuse_report_assignees_on_user_id_and_abuse_report_id ON abuse_report_assignees USING btree (user_id, abuse_report_id); --- --- Name: namespace_descendants_25_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_abuse_report_events_on_abuse_report_id ON abuse_report_events USING btree (abuse_report_id); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_25_pkey; +CREATE INDEX index_abuse_report_events_on_user_id ON abuse_report_events USING btree (user_id); +CREATE INDEX index_abuse_report_notes_on_abuse_report_id ON abuse_report_notes USING btree (abuse_report_id); --- --- Name: namespace_descendants_26_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_abuse_report_notes_on_author_id ON abuse_report_notes USING btree (author_id); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_26_namespace_id_idx; +CREATE INDEX index_abuse_report_notes_on_resolved_by_id ON abuse_report_notes USING btree (resolved_by_id); +CREATE INDEX index_abuse_report_notes_on_updated_by_id ON abuse_report_notes USING btree (updated_by_id); --- --- Name: namespace_descendants_26_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX index_abuse_report_user_mentions_on_abuse_report_id_and_note_id ON abuse_report_user_mentions USING btree (abuse_report_id, note_id); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_26_pkey; +CREATE INDEX index_abuse_report_user_mentions_on_note_id ON abuse_report_user_mentions USING btree (note_id); +CREATE INDEX index_abuse_reports_on_assignee_id ON abuse_reports USING btree (assignee_id); --- --- Name: namespace_descendants_27_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_abuse_reports_on_resolved_by_id ON abuse_reports USING btree (resolved_by_id); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_27_namespace_id_idx; +CREATE INDEX index_abuse_reports_on_status_and_created_at ON abuse_reports USING btree (status, created_at); +CREATE INDEX index_abuse_reports_on_status_and_id ON abuse_reports USING btree (status, id); --- --- Name: namespace_descendants_27_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_abuse_reports_on_status_and_updated_at ON abuse_reports USING btree (status, updated_at); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_27_pkey; +CREATE INDEX index_abuse_reports_on_status_category_and_id ON abuse_reports USING btree (status, category, id); +CREATE INDEX index_abuse_reports_on_status_reporter_id_and_id ON abuse_reports USING btree (status, reporter_id, id); --- --- Name: namespace_descendants_28_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_abuse_trust_scores_on_user_id_and_source_and_created_at ON abuse_trust_scores USING btree (user_id, source, created_at); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_28_namespace_id_idx; +CREATE UNIQUE INDEX "index_achievements_on_namespace_id_LOWER_name" ON achievements USING btree (namespace_id, lower(name)); +CREATE UNIQUE INDEX index_activity_pub_releases_sub_on_project_id_inbox_url ON activity_pub_releases_subscriptions USING btree (project_id, lower(subscriber_inbox_url)); --- --- Name: namespace_descendants_28_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX index_activity_pub_releases_sub_on_project_id_sub_url ON activity_pub_releases_subscriptions USING btree (project_id, lower(subscriber_url)); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_28_pkey; +CREATE INDEX index_add_on_purchases_on_organization_id ON subscription_add_on_purchases USING btree (organization_id); +CREATE INDEX index_agent_activity_events_on_agent_id_and_recorded_at_and_id ON agent_activity_events USING btree (agent_id, recorded_at, id); --- --- Name: namespace_descendants_29_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_agent_activity_events_on_agent_project_id ON agent_activity_events USING btree (agent_project_id); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_29_namespace_id_idx; +CREATE INDEX index_agent_activity_events_on_agent_token_id ON agent_activity_events USING btree (agent_token_id) WHERE (agent_token_id IS NOT NULL); +CREATE INDEX index_agent_activity_events_on_merge_request_id ON agent_activity_events USING btree (merge_request_id) WHERE (merge_request_id IS NOT NULL); --- --- Name: namespace_descendants_29_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_agent_activity_events_on_project_id ON agent_activity_events USING btree (project_id) WHERE (project_id IS NOT NULL); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_29_pkey; +CREATE INDEX index_agent_activity_events_on_user_id ON agent_activity_events USING btree (user_id) WHERE (user_id IS NOT NULL); +CREATE UNIQUE INDEX index_agent_group_authorizations_on_agent_id_and_group_id ON agent_group_authorizations USING btree (agent_id, group_id); --- --- Name: namespace_descendants_30_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_agent_group_authorizations_on_group_id ON agent_group_authorizations USING btree (group_id); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_30_namespace_id_idx; +CREATE UNIQUE INDEX index_agent_project_authorizations_on_agent_id_and_project_id ON agent_project_authorizations USING btree (agent_id, project_id); +CREATE INDEX index_agent_project_authorizations_on_project_id ON agent_project_authorizations USING btree (project_id); --- --- Name: namespace_descendants_30_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE UNIQUE INDEX index_agent_user_access_on_agent_id_and_group_id ON agent_user_access_group_authorizations USING btree (agent_id, group_id); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_30_pkey; +CREATE UNIQUE INDEX index_agent_user_access_on_agent_id_and_project_id ON agent_user_access_project_authorizations USING btree (agent_id, project_id); +CREATE INDEX index_agent_user_access_on_group_id ON agent_user_access_group_authorizations USING btree (group_id); --- --- Name: namespace_descendants_31_namespace_id_idx; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_agent_user_access_on_project_id ON agent_user_access_project_authorizations USING btree (project_id); -ALTER INDEX public.index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_31_namespace_id_idx; +CREATE INDEX index_ai_agent_version_attachments_on_ai_agent_version_id ON ai_agent_version_attachments USING btree (ai_agent_version_id); +CREATE INDEX index_ai_agent_version_attachments_on_ai_vectorizable_file_id ON ai_agent_version_attachments USING btree (ai_vectorizable_file_id); --- --- Name: namespace_descendants_31_pkey; Type: INDEX ATTACH; Schema: gitlab_partitions_static; Owner: - --- +CREATE INDEX index_ai_agent_version_attachments_on_project_id ON ai_agent_version_attachments USING btree (project_id); -ALTER INDEX public.namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_31_pkey; +CREATE INDEX index_ai_agent_versions_on_agent_id ON ai_agent_versions USING btree (agent_id); +CREATE INDEX index_ai_agent_versions_on_project_id ON ai_agent_versions USING btree (project_id); --- --- Name: ci_build_trace_metadata_pkey; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ai_agents_on_project_id_and_name ON ai_agents USING btree (project_id, name); -ALTER INDEX public.p_ci_build_trace_metadata_pkey ATTACH PARTITION public.ci_build_trace_metadata_pkey; +CREATE INDEX index_ai_feature_settings_on_ai_self_hosted_model_id ON ai_feature_settings USING btree (ai_self_hosted_model_id); +CREATE UNIQUE INDEX index_ai_feature_settings_on_feature ON ai_feature_settings USING btree (feature); --- --- Name: ci_build_trace_metadata_trace_artifact_id_idx; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ai_self_hosted_models_on_name ON ai_self_hosted_models USING btree (name); -ALTER INDEX public.index_p_ci_build_trace_metadata_on_trace_artifact_id ATTACH PARTITION public.ci_build_trace_metadata_trace_artifact_id_idx; +CREATE INDEX index_ai_vectorizable_files_on_project_id ON ai_vectorizable_files USING btree (project_id); +CREATE INDEX index_alert_assignees_on_alert_id ON alert_management_alert_assignees USING btree (alert_id); --- --- Name: ci_builds_gitlab_monitor_metrics; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_alert_assignees_on_user_id_and_alert_id ON alert_management_alert_assignees USING btree (user_id, alert_id); -ALTER INDEX public.p_ci_builds_status_created_at_project_id_idx ATTACH PARTITION public.ci_builds_gitlab_monitor_metrics; +CREATE INDEX index_alert_management_alert_metric_images_on_alert_id ON alert_management_alert_metric_images USING btree (alert_id); +CREATE INDEX index_alert_management_alerts_on_domain ON alert_management_alerts USING btree (domain); --- --- Name: ci_builds_metadata_pkey; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_alert_management_alerts_on_environment_id ON alert_management_alerts USING btree (environment_id) WHERE (environment_id IS NOT NULL); -ALTER INDEX public.p_ci_builds_metadata_pkey ATTACH PARTITION public.ci_builds_metadata_pkey; +CREATE INDEX index_alert_management_alerts_on_issue_id ON alert_management_alerts USING btree (issue_id); +CREATE UNIQUE INDEX index_alert_management_alerts_on_project_id_and_iid ON alert_management_alerts USING btree (project_id, iid); --- --- Name: ci_builds_pkey; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_alert_management_alerts_on_prometheus_alert_id ON alert_management_alerts USING btree (prometheus_alert_id) WHERE (prometheus_alert_id IS NOT NULL); -ALTER INDEX public.p_ci_builds_pkey ATTACH PARTITION public.ci_builds_pkey; +CREATE UNIQUE INDEX index_alert_user_mentions_on_alert_id ON alert_management_alert_user_mentions USING btree (alert_management_alert_id) WHERE (note_id IS NULL); +CREATE UNIQUE INDEX index_alert_user_mentions_on_alert_id_and_note_id ON alert_management_alert_user_mentions USING btree (alert_management_alert_id, note_id); --- --- Name: ci_job_artifacts_pkey; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_alert_user_mentions_on_note_id ON alert_management_alert_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); -ALTER INDEX public.p_ci_job_artifacts_pkey ATTACH PARTITION public.ci_job_artifacts_pkey; +CREATE INDEX index_allowed_email_domains_on_group_id ON allowed_email_domains USING btree (group_id); +CREATE INDEX index_analytics_ca_group_stages_on_end_event_label_id ON analytics_cycle_analytics_group_stages USING btree (end_event_label_id); --- --- Name: ci_pipeline_variables_pkey; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_analytics_ca_group_stages_on_relative_position ON analytics_cycle_analytics_group_stages USING btree (relative_position); -ALTER INDEX public.p_ci_pipeline_variables_pkey ATTACH PARTITION public.ci_pipeline_variables_pkey; +CREATE INDEX index_analytics_ca_group_stages_on_start_event_label_id ON analytics_cycle_analytics_group_stages USING btree (start_event_label_id); +CREATE INDEX index_analytics_ca_group_stages_on_value_stream_id ON analytics_cycle_analytics_group_stages USING btree (group_value_stream_id); --- --- Name: ci_pipelines_pkey; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_analytics_ca_group_value_streams_on_group_id_and_name ON analytics_cycle_analytics_group_value_streams USING btree (group_id, name); -ALTER INDEX public.p_ci_pipelines_pkey ATTACH PARTITION public.ci_pipelines_pkey; +CREATE INDEX index_analytics_cycle_analytics_group_stages_custom_only ON analytics_cycle_analytics_group_stages USING btree (id) WHERE (custom = true); +CREATE UNIQUE INDEX index_analytics_dashboards_pointers_on_namespace_id ON analytics_dashboards_pointers USING btree (namespace_id); --- --- Name: ci_stages_pkey; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_analytics_dashboards_pointers_on_target_project_id ON analytics_dashboards_pointers USING btree (target_project_id); -ALTER INDEX public.p_ci_stages_pkey ATTACH PARTITION public.ci_stages_pkey; +CREATE INDEX index_application_settings_on_custom_project_templates_group_id ON application_settings USING btree (custom_project_templates_group_id); +CREATE INDEX index_application_settings_on_file_template_project_id ON application_settings USING btree (file_template_project_id); --- --- Name: idx_ci_job_artifacts_on_job_id_file_type_and_partition_id_uniq; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_application_settings_on_push_rule_id ON application_settings USING btree (push_rule_id); -ALTER INDEX public.p_ci_job_artifacts_job_id_file_type_partition_id_idx ATTACH PARTITION public.idx_ci_job_artifacts_on_job_id_file_type_and_partition_id_uniq; +CREATE INDEX index_application_settings_on_usage_stats_set_by_user_id ON application_settings USING btree (usage_stats_set_by_user_id); +CREATE INDEX index_application_settings_web_ide_oauth_application_id ON application_settings USING btree (web_ide_oauth_application_id); --- --- Name: idx_ci_pipelines_artifacts_locked; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_approval_group_rules_groups_on_group_id ON approval_group_rules_groups USING btree (group_id); -ALTER INDEX public.p_ci_pipelines_ci_ref_id_id_idx ATTACH PARTITION public.idx_ci_pipelines_artifacts_locked; +CREATE INDEX index_approval_group_rules_on_approval_policy_rule_id ON approval_group_rules USING btree (approval_policy_rule_id); +CREATE INDEX index_approval_group_rules_on_scan_result_policy_id ON approval_group_rules USING btree (scan_result_policy_id); --- --- Name: index_0928d9f200; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_approval_group_rules_protected_branches_on_group_id ON approval_group_rules_protected_branches USING btree (group_id); -ALTER INDEX public.index_p_ci_builds_on_execution_config_id ATTACH PARTITION public.index_0928d9f200; +CREATE INDEX index_approval_group_rules_users_on_group_id ON approval_group_rules_users USING btree (group_id); +CREATE INDEX index_approval_group_rules_users_on_user_id ON approval_group_rules_users USING btree (user_id); --- --- Name: index_ci_builds_metadata_on_build_id_and_has_exposed_artifacts; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_approval_merge_request_rule_sources_1 ON approval_merge_request_rule_sources USING btree (approval_merge_request_rule_id); -ALTER INDEX public.p_ci_builds_metadata_build_id_idx ATTACH PARTITION public.index_ci_builds_metadata_on_build_id_and_has_exposed_artifacts; +CREATE INDEX index_approval_merge_request_rule_sources_2 ON approval_merge_request_rule_sources USING btree (approval_project_rule_id); +CREATE INDEX index_approval_merge_request_rule_sources_on_project_id ON approval_merge_request_rule_sources USING btree (project_id); --- --- Name: index_ci_builds_metadata_on_build_id_and_id_and_interruptible; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_approval_merge_request_rules_approved_approvers_1 ON approval_merge_request_rules_approved_approvers USING btree (approval_merge_request_rule_id, user_id); -ALTER INDEX public.p_ci_builds_metadata_build_id_id_idx ATTACH PARTITION public.index_ci_builds_metadata_on_build_id_and_id_and_interruptible; +CREATE INDEX index_approval_merge_request_rules_approved_approvers_2 ON approval_merge_request_rules_approved_approvers USING btree (user_id); +CREATE UNIQUE INDEX index_approval_merge_request_rules_groups_1 ON approval_merge_request_rules_groups USING btree (approval_merge_request_rule_id, group_id); --- --- Name: index_ci_builds_metadata_on_build_id_partition_id_unique; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_approval_merge_request_rules_groups_2 ON approval_merge_request_rules_groups USING btree (group_id); -ALTER INDEX public.p_ci_builds_metadata_build_id_partition_id_idx ATTACH PARTITION public.index_ci_builds_metadata_on_build_id_partition_id_unique; +CREATE INDEX index_approval_merge_request_rules_on_approval_policy_rule_id ON approval_merge_request_rules USING btree (approval_policy_rule_id); +CREATE INDEX index_approval_merge_request_rules_on_project_id ON approval_merge_request_rules USING btree (project_id); --- --- Name: index_ci_builds_metadata_on_project_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_approval_merge_request_rules_users_1 ON approval_merge_request_rules_users USING btree (approval_merge_request_rule_id, user_id); -ALTER INDEX public.p_ci_builds_metadata_project_id_idx ATTACH PARTITION public.index_ci_builds_metadata_on_project_id; +CREATE INDEX index_approval_merge_request_rules_users_2 ON approval_merge_request_rules_users USING btree (user_id); +CREATE UNIQUE INDEX index_approval_policy_rule_on_project_and_rule ON approval_policy_rule_project_links USING btree (approval_policy_rule_id, project_id); --- --- Name: index_ci_builds_on_auto_canceled_by_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_approval_policy_rule_project_links_on_project_id ON approval_policy_rule_project_links USING btree (project_id); -ALTER INDEX public.p_ci_builds_auto_canceled_by_id_idx ATTACH PARTITION public.index_ci_builds_on_auto_canceled_by_id; +CREATE INDEX index_approval_policy_rules_on_policy_management_project_id ON approval_policy_rules USING btree (security_policy_management_project_id); +CREATE UNIQUE INDEX index_approval_policy_rules_on_unique_policy_rule_index ON approval_policy_rules USING btree (security_policy_id, rule_index); --- --- Name: index_ci_builds_on_commit_id_and_stage_idx_and_created_at; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_approval_project_rules_groups_1 ON approval_project_rules_groups USING btree (approval_project_rule_id, group_id); -ALTER INDEX public.p_ci_builds_commit_id_stage_idx_created_at_idx ATTACH PARTITION public.index_ci_builds_on_commit_id_and_stage_idx_and_created_at; +CREATE INDEX index_approval_project_rules_groups_2 ON approval_project_rules_groups USING btree (group_id); +CREATE INDEX index_approval_project_rules_on_approval_policy_rule_id ON approval_project_rules USING btree (approval_policy_rule_id); --- --- Name: index_ci_builds_on_commit_id_and_status_and_type; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_approval_project_rules_on_id_with_regular_type ON approval_project_rules USING btree (id) WHERE (rule_type = 0); -ALTER INDEX public.p_ci_builds_commit_id_status_type_idx ATTACH PARTITION public.index_ci_builds_on_commit_id_and_status_and_type; +CREATE INDEX index_approval_project_rules_on_project_id ON approval_project_rules USING btree (project_id); +CREATE INDEX index_approval_project_rules_on_rule_type ON approval_project_rules USING btree (rule_type); --- --- Name: index_ci_builds_on_commit_id_and_type_and_name_and_ref; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_approval_project_rules_protected_branches_pb_id ON approval_project_rules_protected_branches USING btree (protected_branch_id); -ALTER INDEX public.p_ci_builds_commit_id_type_name_ref_idx ATTACH PARTITION public.index_ci_builds_on_commit_id_and_type_and_name_and_ref; +CREATE INDEX index_approval_project_rules_report_type ON approval_project_rules USING btree (report_type); +CREATE UNIQUE INDEX index_approval_project_rules_users_1 ON approval_project_rules_users USING btree (approval_project_rule_id, user_id); --- --- Name: index_ci_builds_on_commit_id_and_type_and_ref; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_approval_project_rules_users_2 ON approval_project_rules_users USING btree (user_id); -ALTER INDEX public.p_ci_builds_commit_id_type_ref_idx ATTACH PARTITION public.index_ci_builds_on_commit_id_and_type_and_ref; +CREATE INDEX index_approval_project_rules_users_on_project_id ON approval_project_rules_users USING btree (project_id); +CREATE UNIQUE INDEX index_approval_rule_name_for_code_owners_rule_type ON approval_merge_request_rules USING btree (merge_request_id, name) WHERE ((rule_type = 2) AND (section IS NULL)); --- --- Name: index_ci_builds_on_commit_id_artifacts_expired_at_and_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_approval_rule_name_for_sectional_code_owners_rule_type ON approval_merge_request_rules USING btree (merge_request_id, name, section) WHERE (rule_type = 2); -ALTER INDEX public.p_ci_builds_commit_id_artifacts_expire_at_id_idx ATTACH PARTITION public.index_ci_builds_on_commit_id_artifacts_expired_at_and_id; +CREATE INDEX index_approval_rule_on_protected_environment_id ON protected_environment_approval_rules USING btree (protected_environment_id); +CREATE INDEX index_approval_rules_code_owners_rule_type ON approval_merge_request_rules USING btree (merge_request_id) WHERE (rule_type = 2); --- --- Name: index_ci_builds_on_project_id_and_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_approvals_on_merge_request_id_and_created_at ON approvals USING btree (merge_request_id, created_at); -ALTER INDEX public.p_ci_builds_project_id_id_idx ATTACH PARTITION public.index_ci_builds_on_project_id_and_id; +CREATE UNIQUE INDEX index_approvals_on_user_id_and_merge_request_id ON approvals USING btree (user_id, merge_request_id); +CREATE INDEX index_approver_groups_on_group_id ON approver_groups USING btree (group_id); --- --- Name: index_ci_builds_on_project_id_and_name_and_ref; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_approver_groups_on_target_id_and_target_type ON approver_groups USING btree (target_id, target_type); -ALTER INDEX public.p_ci_builds_project_id_name_ref_idx ATTACH PARTITION public.index_ci_builds_on_project_id_and_name_and_ref; +CREATE INDEX index_approvers_on_target_id_and_target_type ON approvers USING btree (target_id, target_type); +CREATE INDEX index_approvers_on_user_id ON approvers USING btree (user_id); --- --- Name: index_ci_builds_on_resource_group_and_status_and_commit_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_atlassian_identities_on_extern_uid ON atlassian_identities USING btree (extern_uid); -ALTER INDEX public.p_ci_builds_resource_group_id_status_commit_id_idx ATTACH PARTITION public.index_ci_builds_on_resource_group_and_status_and_commit_id; +CREATE UNIQUE INDEX index_audit_events_external_audit_on_verification_token ON audit_events_external_audit_event_destinations USING btree (verification_token); +CREATE INDEX index_audit_events_instance_namespace_filters_on_namespace_id ON audit_events_streaming_http_instance_namespace_filters USING btree (namespace_id); --- --- Name: index_ci_builds_on_runner_id_and_id_desc; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_audit_events_on_entity_id_and_entity_type_and_created_at ON ONLY audit_events USING btree (entity_id, entity_type, created_at, id); -ALTER INDEX public.p_ci_builds_runner_id_id_idx ATTACH PARTITION public.index_ci_builds_on_runner_id_and_id_desc; +CREATE INDEX index_audit_events_streaming_event_type_filters_on_group_id ON audit_events_streaming_event_type_filters USING btree (group_id); +CREATE INDEX index_audit_events_streaming_headers_on_group_id ON audit_events_streaming_headers USING btree (group_id); --- --- Name: index_ci_builds_on_stage_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_authentication_events_on_provider ON authentication_events USING btree (provider); -ALTER INDEX public.p_ci_builds_stage_id_idx ATTACH PARTITION public.index_ci_builds_on_stage_id; +CREATE INDEX index_authentication_events_on_user_and_ip_address_and_result ON authentication_events USING btree (user_id, ip_address, result); +CREATE UNIQUE INDEX index_automation_rules_namespace_id_name ON automation_rules USING btree (namespace_id, lower(name)); --- --- Name: index_ci_builds_on_status_and_type_and_runner_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_automation_rules_namespace_id_permanently_disabled ON automation_rules USING btree (namespace_id, permanently_disabled); -ALTER INDEX public.p_ci_builds_status_type_runner_id_idx ATTACH PARTITION public.index_ci_builds_on_status_and_type_and_runner_id; +CREATE INDEX index_award_emoji_on_awardable_type_and_awardable_id ON award_emoji USING btree (awardable_type, awardable_id); +CREATE UNIQUE INDEX index_aws_roles_on_role_external_id ON aws_roles USING btree (role_external_id); --- --- Name: index_ci_builds_on_updated_at; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_aws_roles_on_user_id ON aws_roles USING btree (user_id); -ALTER INDEX public.p_ci_builds_updated_at_idx ATTACH PARTITION public.index_ci_builds_on_updated_at; +CREATE INDEX index_background_migration_jobs_for_partitioning_migrations ON background_migration_jobs USING btree (((arguments ->> 2))) WHERE (class_name = 'Gitlab::Database::PartitioningMigrationHelpers::BackfillPartitionedTable'::text); +CREATE INDEX index_background_migration_jobs_on_class_name_and_arguments ON background_migration_jobs USING btree (class_name, arguments); --- --- Name: index_ci_builds_on_upstream_pipeline_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_background_migration_jobs_on_class_name_and_status_and_id ON background_migration_jobs USING btree (class_name, status, id); -ALTER INDEX public.p_ci_builds_upstream_pipeline_id_idx ATTACH PARTITION public.index_ci_builds_on_upstream_pipeline_id; +CREATE INDEX index_badges_on_group_id ON badges USING btree (group_id); +CREATE INDEX index_badges_on_project_id ON badges USING btree (project_id); --- --- Name: index_ci_builds_on_user_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_batch_trackers_on_tracker_id_status ON bulk_import_batch_trackers USING btree (tracker_id, status); -ALTER INDEX public.p_ci_builds_user_id_idx ATTACH PARTITION public.index_ci_builds_on_user_id; +CREATE INDEX index_batched_background_migrations_on_status ON batched_background_migrations USING btree (status); +CREATE UNIQUE INDEX index_batched_background_migrations_on_unique_configuration ON batched_background_migrations USING btree (job_class_name, table_name, column_name, job_arguments); --- --- Name: index_ci_builds_on_user_id_and_created_at_and_type_eq_ci_build; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_batched_jobs_by_batched_migration_id_and_id ON batched_background_migration_jobs USING btree (batched_background_migration_id, id); -ALTER INDEX public.p_ci_builds_user_id_created_at_idx ATTACH PARTITION public.index_ci_builds_on_user_id_and_created_at_and_type_eq_ci_build; +CREATE INDEX index_batched_jobs_on_batched_migration_id_and_status ON batched_background_migration_jobs USING btree (batched_background_migration_id, status); +CREATE UNIQUE INDEX index_batched_migrations_on_gl_schema_and_unique_configuration ON batched_background_migrations USING btree (gitlab_schema, job_class_name, table_name, column_name, job_arguments); --- --- Name: index_ci_builds_project_id_and_status_for_live_jobs_partial2; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_board_assignees_on_assignee_id ON board_assignees USING btree (assignee_id); -ALTER INDEX public.p_ci_builds_project_id_status_idx ATTACH PARTITION public.index_ci_builds_project_id_and_status_for_live_jobs_partial2; +CREATE UNIQUE INDEX index_board_assignees_on_board_id_and_assignee_id ON board_assignees USING btree (board_id, assignee_id); +CREATE INDEX index_board_group_recent_visits_on_board_id ON board_group_recent_visits USING btree (board_id); --- --- Name: index_ci_builds_runner_id_running; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_board_group_recent_visits_on_group_id ON board_group_recent_visits USING btree (group_id); -ALTER INDEX public.p_ci_builds_runner_id_idx ATTACH PARTITION public.index_ci_builds_runner_id_running; +CREATE UNIQUE INDEX index_board_group_recent_visits_on_user_group_and_board ON board_group_recent_visits USING btree (user_id, group_id, board_id); +CREATE UNIQUE INDEX index_board_labels_on_board_id_and_label_id ON board_labels USING btree (board_id, label_id); --- --- Name: index_ci_job_artifacts_expire_at_unlocked_non_trace; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_board_labels_on_label_id ON board_labels USING btree (label_id); -ALTER INDEX public.p_ci_job_artifacts_expire_at_idx ATTACH PARTITION public.index_ci_job_artifacts_expire_at_unlocked_non_trace; +CREATE INDEX index_board_project_recent_visits_on_board_id ON board_project_recent_visits USING btree (board_id); +CREATE INDEX index_board_project_recent_visits_on_project_id ON board_project_recent_visits USING btree (project_id); --- --- Name: index_ci_job_artifacts_for_terraform_reports; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_board_project_recent_visits_on_user_project_and_board ON board_project_recent_visits USING btree (user_id, project_id, board_id); -ALTER INDEX public.p_ci_job_artifacts_project_id_id_idx ATTACH PARTITION public.index_ci_job_artifacts_for_terraform_reports; +CREATE INDEX index_board_user_preferences_on_board_id ON board_user_preferences USING btree (board_id); +CREATE UNIQUE INDEX index_board_user_preferences_on_user_id_and_board_id ON board_user_preferences USING btree (user_id, board_id); --- --- Name: index_ci_job_artifacts_id_for_terraform_reports; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_boards_epic_board_labels_on_epic_board_id ON boards_epic_board_labels USING btree (epic_board_id); -ALTER INDEX public.p_ci_job_artifacts_id_idx ATTACH PARTITION public.index_ci_job_artifacts_id_for_terraform_reports; +CREATE INDEX index_boards_epic_board_labels_on_group_id ON boards_epic_board_labels USING btree (group_id); +CREATE INDEX index_boards_epic_board_labels_on_label_id ON boards_epic_board_labels USING btree (label_id); --- --- Name: index_ci_job_artifacts_on_expire_at_and_job_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_boards_epic_board_positions_on_epic_board_id_and_epic_id ON boards_epic_board_positions USING btree (epic_board_id, epic_id); -ALTER INDEX public.p_ci_job_artifacts_expire_at_job_id_idx ATTACH PARTITION public.index_ci_job_artifacts_on_expire_at_and_job_id; +CREATE INDEX index_boards_epic_board_positions_on_epic_id ON boards_epic_board_positions USING btree (epic_id); +CREATE INDEX index_boards_epic_board_positions_on_group_id ON boards_epic_board_positions USING btree (group_id); --- --- Name: index_ci_job_artifacts_on_file_final_path; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_boards_epic_board_positions_on_scoped_relative_position ON boards_epic_board_positions USING btree (epic_board_id, epic_id, relative_position); -ALTER INDEX public.p_ci_job_artifacts_file_final_path_idx ATTACH PARTITION public.index_ci_job_artifacts_on_file_final_path; +CREATE INDEX index_boards_epic_board_recent_visits_on_epic_board_id ON boards_epic_board_recent_visits USING btree (epic_board_id); +CREATE INDEX index_boards_epic_board_recent_visits_on_group_id ON boards_epic_board_recent_visits USING btree (group_id); --- --- Name: index_ci_job_artifacts_on_file_store; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_boards_epic_boards_on_group_id ON boards_epic_boards USING btree (group_id); -ALTER INDEX public.p_ci_job_artifacts_file_store_idx ATTACH PARTITION public.index_ci_job_artifacts_on_file_store; +CREATE INDEX index_boards_epic_list_user_preferences_on_epic_list_id ON boards_epic_list_user_preferences USING btree (epic_list_id); +CREATE INDEX index_boards_epic_lists_on_epic_board_id ON boards_epic_lists USING btree (epic_board_id); --- --- Name: index_ci_job_artifacts_on_file_type_for_devops_adoption; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_boards_epic_lists_on_epic_board_id_and_label_id ON boards_epic_lists USING btree (epic_board_id, label_id) WHERE (list_type = 1); -ALTER INDEX public.p_ci_job_artifacts_file_type_project_id_created_at_idx ATTACH PARTITION public.index_ci_job_artifacts_on_file_type_for_devops_adoption; +CREATE INDEX index_boards_epic_lists_on_group_id ON boards_epic_lists USING btree (group_id); +CREATE INDEX index_boards_epic_lists_on_label_id ON boards_epic_lists USING btree (label_id); --- --- Name: index_ci_job_artifacts_on_id_project_id_and_created_at; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_boards_epic_user_preferences_on_board_user_epic_unique ON boards_epic_user_preferences USING btree (board_id, user_id, epic_id); -ALTER INDEX public.p_ci_job_artifacts_project_id_created_at_id_idx ATTACH PARTITION public.index_ci_job_artifacts_on_id_project_id_and_created_at; +CREATE INDEX index_boards_epic_user_preferences_on_epic_id ON boards_epic_user_preferences USING btree (epic_id); +CREATE INDEX index_boards_epic_user_preferences_on_group_id ON boards_epic_user_preferences USING btree (group_id); --- --- Name: index_ci_job_artifacts_on_id_project_id_and_file_type; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_boards_epic_user_preferences_on_user_id ON boards_epic_user_preferences USING btree (user_id); -ALTER INDEX public.p_ci_job_artifacts_project_id_file_type_id_idx ATTACH PARTITION public.index_ci_job_artifacts_on_id_project_id_and_file_type; +CREATE INDEX index_boards_on_group_id ON boards USING btree (group_id); +CREATE INDEX index_boards_on_iteration_cadence_id ON boards USING btree (iteration_cadence_id); --- --- Name: index_ci_job_artifacts_on_partition_id_job_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_boards_on_iteration_id ON boards USING btree (iteration_id); -ALTER INDEX public.p_ci_job_artifacts_partition_id_job_id_idx ATTACH PARTITION public.index_ci_job_artifacts_on_partition_id_job_id; +CREATE INDEX index_boards_on_milestone_id ON boards USING btree (milestone_id); +CREATE INDEX index_boards_on_project_id ON boards USING btree (project_id); --- --- Name: index_ci_job_artifacts_on_project_id_and_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_broadcast_dismissals_on_user_id_and_broadcast_message_id ON user_broadcast_message_dismissals USING btree (user_id, broadcast_message_id); -ALTER INDEX public.p_ci_job_artifacts_project_id_id_idx1 ATTACH PARTITION public.index_ci_job_artifacts_on_project_id_and_id; +CREATE INDEX index_broadcast_message_on_ends_at_and_broadcast_type_and_id ON broadcast_messages USING btree (ends_at, broadcast_type, id); +CREATE INDEX index_bulk_import_batch_trackers_on_tracker_id_and_updated_at ON bulk_import_batch_trackers USING btree (tracker_id, updated_at); --- --- Name: index_ci_job_artifacts_on_project_id_for_security_reports; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_bulk_import_configurations_on_bulk_import_id ON bulk_import_configurations USING btree (bulk_import_id); -ALTER INDEX public.p_ci_job_artifacts_project_id_idx1 ATTACH PARTITION public.index_ci_job_artifacts_on_project_id_for_security_reports; +CREATE INDEX index_bulk_import_entities_for_stale_status ON bulk_import_entities USING btree (updated_at, id) WHERE (status = ANY (ARRAY[0, 1])); +CREATE INDEX index_bulk_import_entities_on_bulk_import_id_and_status ON bulk_import_entities USING btree (bulk_import_id, status); --- --- Name: index_ci_pipelines_for_ondemand_dast_scans; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_bulk_import_entities_on_namespace_id ON bulk_import_entities USING btree (namespace_id); -ALTER INDEX public.p_ci_pipelines_id_idx ATTACH PARTITION public.index_ci_pipelines_for_ondemand_dast_scans; +CREATE INDEX index_bulk_import_entities_on_parent_id ON bulk_import_entities USING btree (parent_id); +CREATE INDEX index_bulk_import_entities_on_project_id ON bulk_import_entities USING btree (project_id); --- --- Name: index_ci_pipelines_on_auto_canceled_by_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_bulk_import_export_uploads_on_export_id ON bulk_import_export_uploads USING btree (export_id); -ALTER INDEX public.p_ci_pipelines_auto_canceled_by_id_idx ATTACH PARTITION public.index_ci_pipelines_on_auto_canceled_by_id; +CREATE INDEX index_bulk_import_exports_on_group_id ON bulk_import_exports USING btree (group_id); +CREATE INDEX index_bulk_import_exports_on_project_id ON bulk_import_exports USING btree (project_id); --- --- Name: index_ci_pipelines_on_ci_ref_id_and_more; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_bulk_import_exports_on_user_id ON bulk_import_exports USING btree (user_id); -ALTER INDEX public.p_ci_pipelines_ci_ref_id_id_source_status_idx ATTACH PARTITION public.index_ci_pipelines_on_ci_ref_id_and_more; +CREATE INDEX index_bulk_import_failures_on_bulk_import_entity_id ON bulk_import_failures USING btree (bulk_import_entity_id); +CREATE INDEX index_bulk_import_failures_on_correlation_id_value ON bulk_import_failures USING btree (correlation_id_value); --- --- Name: index_ci_pipelines_on_external_pull_request_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_bulk_imports_on_updated_at_and_id_for_stale_status ON bulk_imports USING btree (updated_at, id) WHERE (status = ANY (ARRAY[0, 1])); -ALTER INDEX public.p_ci_pipelines_external_pull_request_id_idx ATTACH PARTITION public.index_ci_pipelines_on_external_pull_request_id; +CREATE INDEX index_bulk_imports_on_user_id ON bulk_imports USING btree (user_id); +CREATE INDEX index_catalog_resource_components_on_catalog_resource_id ON catalog_resource_components USING btree (catalog_resource_id); --- --- Name: index_ci_pipelines_on_merge_request_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_catalog_resource_components_on_project_id ON catalog_resource_components USING btree (project_id); -ALTER INDEX public.p_ci_pipelines_merge_request_id_idx ATTACH PARTITION public.index_ci_pipelines_on_merge_request_id; +CREATE INDEX index_catalog_resource_components_on_version_id ON catalog_resource_components USING btree (version_id); +CREATE INDEX index_catalog_resource_versions_on_project_id ON catalog_resource_versions USING btree (project_id); --- --- Name: index_ci_pipelines_on_pipeline_schedule_id_and_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_catalog_resource_versions_on_published_by_id ON catalog_resource_versions USING btree (published_by_id); -ALTER INDEX public.p_ci_pipelines_pipeline_schedule_id_id_idx ATTACH PARTITION public.index_ci_pipelines_on_pipeline_schedule_id_and_id; +CREATE UNIQUE INDEX index_catalog_resource_versions_on_release_id ON catalog_resource_versions USING btree (release_id); +CREATE INDEX index_catalog_resource_versions_on_resource_id_and_released_at ON catalog_resource_versions USING btree (catalog_resource_id, released_at); --- --- Name: index_ci_pipelines_on_project_id_and_id_desc; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_catalog_resources_on_last_30_day_usage_count ON catalog_resources USING btree (last_30_day_usage_count) WHERE (state = 1); -ALTER INDEX public.p_ci_pipelines_project_id_id_idx ATTACH PARTITION public.index_ci_pipelines_on_project_id_and_id_desc; +CREATE INDEX index_catalog_resources_on_last_30_day_usage_count_updated_at ON catalog_resources USING btree (last_30_day_usage_count_updated_at); +CREATE UNIQUE INDEX index_catalog_resources_on_project_id ON catalog_resources USING btree (project_id); --- --- Name: index_ci_pipelines_on_project_id_and_iid_and_partition_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_catalog_resources_on_search_vector ON catalog_resources USING gin (search_vector); -ALTER INDEX public.p_ci_pipelines_project_id_iid_partition_id_idx ATTACH PARTITION public.index_ci_pipelines_on_project_id_and_iid_and_partition_id; +CREATE INDEX index_catalog_resources_on_state ON catalog_resources USING btree (state); +CREATE UNIQUE INDEX index_catalog_verified_namespaces_on_namespace_id ON catalog_verified_namespaces USING btree (namespace_id); --- --- Name: index_ci_pipelines_on_project_id_and_ref_and_status_and_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_chat_names_on_team_id_and_chat_id ON chat_names USING btree (team_id, chat_id); -ALTER INDEX public.p_ci_pipelines_project_id_ref_status_id_idx ATTACH PARTITION public.index_ci_pipelines_on_project_id_and_ref_and_status_and_id; +CREATE INDEX index_chat_names_on_user_id ON chat_names USING btree (user_id); +CREATE UNIQUE INDEX index_chat_teams_on_namespace_id ON chat_teams USING btree (namespace_id); --- --- Name: index_ci_pipelines_on_project_id_and_sha; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ci_build_needs_on_build_id_and_name ON ci_build_needs USING btree (build_id, name); -ALTER INDEX public.p_ci_pipelines_project_id_sha_idx ATTACH PARTITION public.index_ci_pipelines_on_project_id_and_sha; +CREATE INDEX index_ci_build_needs_on_partition_id_build_id ON ci_build_needs USING btree (partition_id, build_id); +CREATE UNIQUE INDEX index_ci_build_pending_states_on_build_id ON ci_build_pending_states USING btree (build_id); --- --- Name: index_ci_pipelines_on_project_id_and_source; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ci_build_report_results_on_partition_id_build_id ON ci_build_report_results USING btree (partition_id, build_id); -ALTER INDEX public.p_ci_pipelines_project_id_source_idx ATTACH PARTITION public.index_ci_pipelines_on_project_id_and_source; +CREATE INDEX index_ci_build_report_results_on_project_id ON ci_build_report_results USING btree (project_id); +CREATE UNIQUE INDEX index_ci_build_trace_chunks_on_build_id_and_chunk_index ON ci_build_trace_chunks USING btree (build_id, chunk_index); --- --- Name: index_ci_pipelines_on_project_id_and_status_and_config_source; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_ci_build_trace_chunks_on_partition_id_build_id ON ci_build_trace_chunks USING btree (partition_id, build_id); -ALTER INDEX public.p_ci_pipelines_project_id_status_config_source_idx ATTACH PARTITION public.index_ci_pipelines_on_project_id_and_status_and_config_source; +CREATE INDEX p_ci_builds_metadata_build_id_idx ON ONLY p_ci_builds_metadata USING btree (build_id) WHERE (has_exposed_artifacts IS TRUE); +CREATE INDEX index_ci_builds_metadata_on_build_id_and_has_exposed_artifacts ON ci_builds_metadata USING btree (build_id) WHERE (has_exposed_artifacts IS TRUE); --- --- Name: index_ci_pipelines_on_project_id_and_status_and_created_at; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX p_ci_builds_metadata_build_id_id_idx ON ONLY p_ci_builds_metadata USING btree (build_id) INCLUDE (id) WHERE (interruptible = true); -ALTER INDEX public.p_ci_pipelines_project_id_status_created_at_idx ATTACH PARTITION public.index_ci_pipelines_on_project_id_and_status_and_created_at; +CREATE INDEX index_ci_builds_metadata_on_build_id_and_id_and_interruptible ON ci_builds_metadata USING btree (build_id) INCLUDE (id) WHERE (interruptible = true); +CREATE UNIQUE INDEX p_ci_builds_metadata_build_id_partition_id_idx ON ONLY p_ci_builds_metadata USING btree (build_id, partition_id); --- --- Name: index_ci_pipelines_on_project_id_and_status_and_updated_at; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ci_builds_metadata_on_build_id_partition_id_unique ON ci_builds_metadata USING btree (build_id, partition_id); -ALTER INDEX public.p_ci_pipelines_project_id_status_updated_at_idx ATTACH PARTITION public.index_ci_pipelines_on_project_id_and_status_and_updated_at; +CREATE INDEX p_ci_builds_metadata_project_id_idx ON ONLY p_ci_builds_metadata USING btree (project_id); +CREATE INDEX index_ci_builds_metadata_on_project_id ON ci_builds_metadata USING btree (project_id); --- --- Name: index_ci_pipelines_on_project_id_and_user_id_and_status_and_ref; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX p_ci_builds_auto_canceled_by_id_idx ON ONLY p_ci_builds USING btree (auto_canceled_by_id) WHERE (auto_canceled_by_id IS NOT NULL); -ALTER INDEX public.p_ci_pipelines_project_id_user_id_status_ref_idx ATTACH PARTITION public.index_ci_pipelines_on_project_id_and_user_id_and_status_and_ref; +CREATE INDEX index_ci_builds_on_auto_canceled_by_id ON ci_builds USING btree (auto_canceled_by_id) WHERE (auto_canceled_by_id IS NOT NULL); +CREATE INDEX p_ci_builds_commit_id_stage_idx_created_at_idx ON ONLY p_ci_builds USING btree (commit_id, stage_idx, created_at); --- --- Name: index_ci_pipelines_on_project_idandrefandiddesc; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_ci_builds_on_commit_id_and_stage_idx_and_created_at ON ci_builds USING btree (commit_id, stage_idx, created_at); -ALTER INDEX public.p_ci_pipelines_project_id_ref_id_idx ATTACH PARTITION public.index_ci_pipelines_on_project_idandrefandiddesc; +CREATE INDEX p_ci_builds_commit_id_status_type_idx ON ONLY p_ci_builds USING btree (commit_id, status, type); +CREATE INDEX index_ci_builds_on_commit_id_and_status_and_type ON ci_builds USING btree (commit_id, status, type); --- --- Name: index_ci_pipelines_on_status_and_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX p_ci_builds_commit_id_type_name_ref_idx ON ONLY p_ci_builds USING btree (commit_id, type, name, ref); -ALTER INDEX public.p_ci_pipelines_status_id_idx ATTACH PARTITION public.index_ci_pipelines_on_status_and_id; +CREATE INDEX index_ci_builds_on_commit_id_and_type_and_name_and_ref ON ci_builds USING btree (commit_id, type, name, ref); +CREATE INDEX p_ci_builds_commit_id_type_ref_idx ON ONLY p_ci_builds USING btree (commit_id, type, ref); --- --- Name: index_ci_pipelines_on_user_id_and_created_at_and_config_source; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_ci_builds_on_commit_id_and_type_and_ref ON ci_builds USING btree (commit_id, type, ref); -ALTER INDEX public.p_ci_pipelines_user_id_created_at_config_source_idx ATTACH PARTITION public.index_ci_pipelines_on_user_id_and_created_at_and_config_source; +CREATE INDEX p_ci_builds_commit_id_artifacts_expire_at_id_idx ON ONLY p_ci_builds USING btree (commit_id, artifacts_expire_at, id) WHERE (((type)::text = 'Ci::Build'::text) AND ((retried = false) OR (retried IS NULL)) AND ((name)::text = ANY (ARRAY[('sast'::character varying)::text, ('secret_detection'::character varying)::text, ('dependency_scanning'::character varying)::text, ('container_scanning'::character varying)::text, ('dast'::character varying)::text]))); +CREATE INDEX index_ci_builds_on_commit_id_artifacts_expired_at_and_id ON ci_builds USING btree (commit_id, artifacts_expire_at, id) WHERE (((type)::text = 'Ci::Build'::text) AND ((retried = false) OR (retried IS NULL)) AND ((name)::text = ANY (ARRAY[('sast'::character varying)::text, ('secret_detection'::character varying)::text, ('dependency_scanning'::character varying)::text, ('container_scanning'::character varying)::text, ('dast'::character varying)::text]))); --- --- Name: index_ci_pipelines_on_user_id_and_created_at_and_source; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX p_ci_builds_project_id_id_idx ON ONLY p_ci_builds USING btree (project_id, id); -ALTER INDEX public.p_ci_pipelines_user_id_created_at_source_idx ATTACH PARTITION public.index_ci_pipelines_on_user_id_and_created_at_and_source; +CREATE INDEX index_ci_builds_on_project_id_and_id ON ci_builds USING btree (project_id, id); +CREATE INDEX p_ci_builds_project_id_name_ref_idx ON ONLY p_ci_builds USING btree (project_id, name, ref) WHERE (((type)::text = 'Ci::Build'::text) AND ((status)::text = 'success'::text) AND ((retried = false) OR (retried IS NULL))); --- --- Name: index_ci_pipelines_on_user_id_and_id_and_cancelable_status; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_ci_builds_on_project_id_and_name_and_ref ON ci_builds USING btree (project_id, name, ref) WHERE (((type)::text = 'Ci::Build'::text) AND ((status)::text = 'success'::text) AND ((retried = false) OR (retried IS NULL))); -ALTER INDEX public.p_ci_pipelines_user_id_id_idx ATTACH PARTITION public.index_ci_pipelines_on_user_id_and_id_and_cancelable_status; +CREATE INDEX p_ci_builds_resource_group_id_status_commit_id_idx ON ONLY p_ci_builds USING btree (resource_group_id, status, commit_id) WHERE (resource_group_id IS NOT NULL); +CREATE INDEX index_ci_builds_on_resource_group_and_status_and_commit_id ON ci_builds USING btree (resource_group_id, status, commit_id) WHERE (resource_group_id IS NOT NULL); --- --- Name: index_ci_pipelines_on_user_id_and_id_desc_and_user_not_verified; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX p_ci_builds_runner_id_id_idx ON ONLY p_ci_builds USING btree (runner_id, id DESC); -ALTER INDEX public.p_ci_pipelines_user_id_id_idx1 ATTACH PARTITION public.index_ci_pipelines_on_user_id_and_id_desc_and_user_not_verified; +CREATE INDEX index_ci_builds_on_runner_id_and_id_desc ON ci_builds USING btree (runner_id, id DESC); +CREATE INDEX p_ci_builds_stage_id_idx ON ONLY p_ci_builds USING btree (stage_id); --- --- Name: index_ci_stages_on_pipeline_id_and_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_ci_builds_on_stage_id ON ci_builds USING btree (stage_id); -ALTER INDEX public.p_ci_stages_pipeline_id_id_idx ATTACH PARTITION public.index_ci_stages_on_pipeline_id_and_id; +CREATE INDEX p_ci_builds_status_type_runner_id_idx ON ONLY p_ci_builds USING btree (status, type, runner_id); +CREATE INDEX index_ci_builds_on_status_and_type_and_runner_id ON ci_builds USING btree (status, type, runner_id); --- --- Name: index_ci_stages_on_pipeline_id_and_position; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX p_ci_builds_updated_at_idx ON ONLY p_ci_builds USING btree (updated_at); -ALTER INDEX public.p_ci_stages_pipeline_id_position_idx ATTACH PARTITION public.index_ci_stages_on_pipeline_id_and_position; +CREATE INDEX index_ci_builds_on_updated_at ON ci_builds USING btree (updated_at); +CREATE INDEX p_ci_builds_upstream_pipeline_id_idx ON ONLY p_ci_builds USING btree (upstream_pipeline_id) WHERE (upstream_pipeline_id IS NOT NULL); --- --- Name: index_ci_stages_on_pipeline_id_name_partition_id_unique; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_ci_builds_on_upstream_pipeline_id ON ci_builds USING btree (upstream_pipeline_id) WHERE (upstream_pipeline_id IS NOT NULL); -ALTER INDEX public.p_ci_stages_pipeline_id_name_partition_id_idx ATTACH PARTITION public.index_ci_stages_on_pipeline_id_name_partition_id_unique; +CREATE INDEX p_ci_builds_user_id_idx ON ONLY p_ci_builds USING btree (user_id); +CREATE INDEX index_ci_builds_on_user_id ON ci_builds USING btree (user_id); --- --- Name: index_ci_stages_on_project_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX p_ci_builds_user_id_created_at_idx ON ONLY p_ci_builds USING btree (user_id, created_at) WHERE ((type)::text = 'Ci::Build'::text); -ALTER INDEX public.p_ci_stages_project_id_idx ATTACH PARTITION public.index_ci_stages_on_project_id; +CREATE INDEX index_ci_builds_on_user_id_and_created_at_and_type_eq_ci_build ON ci_builds USING btree (user_id, created_at) WHERE ((type)::text = 'Ci::Build'::text); +CREATE INDEX p_ci_builds_project_id_status_idx ON ONLY p_ci_builds USING btree (project_id, status) WHERE (((type)::text = 'Ci::Build'::text) AND ((status)::text = ANY (ARRAY[('running'::character varying)::text, ('pending'::character varying)::text, ('created'::character varying)::text]))); --- --- Name: index_partial_ci_builds_on_user_id_name_parser_features; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_ci_builds_project_id_and_status_for_live_jobs_partial2 ON ci_builds USING btree (project_id, status) WHERE (((type)::text = 'Ci::Build'::text) AND ((status)::text = ANY (ARRAY[('running'::character varying)::text, ('pending'::character varying)::text, ('created'::character varying)::text]))); -ALTER INDEX public.p_ci_builds_user_id_name_idx ATTACH PARTITION public.index_partial_ci_builds_on_user_id_name_parser_features; +CREATE INDEX p_ci_builds_runner_id_idx ON ONLY p_ci_builds USING btree (runner_id) WHERE (((status)::text = 'running'::text) AND ((type)::text = 'Ci::Build'::text)); +CREATE INDEX index_ci_builds_runner_id_running ON ci_builds USING btree (runner_id) WHERE (((status)::text = 'running'::text) AND ((type)::text = 'Ci::Build'::text)); --- --- Name: index_pipeline_variables_on_pipeline_id_key_partition_id_unique; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ci_builds_runner_session_on_build_id ON ci_builds_runner_session USING btree (build_id); -ALTER INDEX public.p_ci_pipeline_variables_pipeline_id_key_partition_id_idx ATTACH PARTITION public.index_pipeline_variables_on_pipeline_id_key_partition_id_unique; +CREATE UNIQUE INDEX index_ci_builds_runner_session_on_partition_id_build_id ON ci_builds_runner_session USING btree (partition_id, build_id); +CREATE INDEX index_ci_daily_build_group_report_results_on_group_id ON ci_daily_build_group_report_results USING btree (group_id); --- --- Name: index_secure_ci_builds_on_user_id_name_created_at; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_ci_daily_build_group_report_results_on_last_pipeline_id ON ci_daily_build_group_report_results USING btree (last_pipeline_id); -ALTER INDEX public.p_ci_builds_user_id_name_created_at_idx ATTACH PARTITION public.index_secure_ci_builds_on_user_id_name_created_at; +CREATE INDEX index_ci_daily_build_group_report_results_on_project_and_date ON ci_daily_build_group_report_results USING btree (project_id, date DESC) WHERE ((default_branch = true) AND ((data -> 'coverage'::text) IS NOT NULL)); +CREATE INDEX index_ci_deleted_objects_on_pick_up_at ON ci_deleted_objects USING btree (pick_up_at); --- --- Name: index_security_ci_builds_on_name_and_id_parser_features; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_ci_finished_build_ch_sync_events_for_partitioned_query ON ONLY p_ci_finished_build_ch_sync_events USING btree (((build_id % (100)::bigint)), build_id) WHERE (processed = false); -ALTER INDEX public.p_ci_builds_name_id_idx ATTACH PARTITION public.index_security_ci_builds_on_name_and_id_parser_features; +CREATE INDEX index_ci_finished_pipeline_ch_sync_events_for_partitioned_query ON ONLY p_ci_finished_pipeline_ch_sync_events USING btree (((pipeline_id % (100)::bigint)), pipeline_id) WHERE (processed = false); +CREATE INDEX index_ci_freeze_periods_on_project_id ON ci_freeze_periods USING btree (project_id); --- --- Name: partial_index_ci_builds_on_scheduled_at_with_scheduled_jobs; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ci_group_variables_on_group_id_and_key_and_environment ON ci_group_variables USING btree (group_id, key, environment_scope); -ALTER INDEX public.p_ci_builds_scheduled_at_idx ATTACH PARTITION public.partial_index_ci_builds_on_scheduled_at_with_scheduled_jobs; +CREATE UNIQUE INDEX index_ci_instance_variables_on_key ON ci_instance_variables USING btree (key); +CREATE INDEX index_ci_job_artifact_states_on_job_artifact_id_partition_id ON ci_job_artifact_states USING btree (job_artifact_id, partition_id); --- --- Name: tmp_index_ci_job_artifacts_on_expire_at_where_locked_unknown; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX p_ci_job_artifacts_expire_at_idx ON ONLY p_ci_job_artifacts USING btree (expire_at) WHERE ((locked = 0) AND (file_type <> 3) AND (expire_at IS NOT NULL)); -ALTER INDEX public.p_ci_job_artifacts_expire_at_job_id_idx1 ATTACH PARTITION public.tmp_index_ci_job_artifacts_on_expire_at_where_locked_unknown; +CREATE INDEX index_ci_job_artifacts_expire_at_unlocked_non_trace ON ci_job_artifacts USING btree (expire_at) WHERE ((locked = 0) AND (file_type <> 3) AND (expire_at IS NOT NULL)); +CREATE INDEX p_ci_job_artifacts_project_id_id_idx ON ONLY p_ci_job_artifacts USING btree (project_id, id) WHERE (file_type = 18); --- --- Name: unique_ci_builds_token_encrypted_and_partition_id; Type: INDEX ATTACH; Schema: public; Owner: - --- +CREATE INDEX index_ci_job_artifacts_for_terraform_reports ON ci_job_artifacts USING btree (project_id, id) WHERE (file_type = 18); -ALTER INDEX public.p_ci_builds_token_encrypted_partition_id_idx ATTACH PARTITION public.unique_ci_builds_token_encrypted_and_partition_id; +CREATE INDEX p_ci_job_artifacts_id_idx ON ONLY p_ci_job_artifacts USING btree (id) WHERE (file_type = 18); +CREATE INDEX index_ci_job_artifacts_id_for_terraform_reports ON ci_job_artifacts USING btree (id) WHERE (file_type = 18); --- --- Name: p_ci_build_tags assign_p_ci_build_tags_id_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX p_ci_job_artifacts_expire_at_job_id_idx ON ONLY p_ci_job_artifacts USING btree (expire_at, job_id); -CREATE TRIGGER assign_p_ci_build_tags_id_trigger BEFORE INSERT ON public.p_ci_build_tags FOR EACH ROW EXECUTE FUNCTION public.assign_p_ci_build_tags_id_value(); +CREATE INDEX index_ci_job_artifacts_on_expire_at_and_job_id ON ci_job_artifacts USING btree (expire_at, job_id); +CREATE INDEX p_ci_job_artifacts_file_final_path_idx ON ONLY p_ci_job_artifacts USING btree (file_final_path) WHERE (file_final_path IS NOT NULL); --- --- Name: p_ci_builds_execution_configs assign_p_ci_builds_execution_configs_id_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_job_artifacts_on_file_final_path ON ci_job_artifacts USING btree (file_final_path) WHERE (file_final_path IS NOT NULL); -CREATE TRIGGER assign_p_ci_builds_execution_configs_id_trigger BEFORE INSERT ON public.p_ci_builds_execution_configs FOR EACH ROW EXECUTE FUNCTION public.assign_p_ci_builds_execution_configs_id_value(); +CREATE INDEX p_ci_job_artifacts_file_store_idx ON ONLY p_ci_job_artifacts USING btree (file_store); +CREATE INDEX index_ci_job_artifacts_on_file_store ON ci_job_artifacts USING btree (file_store); --- --- Name: p_ci_builds assign_p_ci_builds_id_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX p_ci_job_artifacts_file_type_project_id_created_at_idx ON ONLY p_ci_job_artifacts USING btree (file_type, project_id, created_at) WHERE (file_type = ANY (ARRAY[5, 6, 8, 23])); -CREATE TRIGGER assign_p_ci_builds_id_trigger BEFORE INSERT ON public.p_ci_builds FOR EACH ROW EXECUTE FUNCTION public.assign_p_ci_builds_id_value(); +CREATE INDEX index_ci_job_artifacts_on_file_type_for_devops_adoption ON ci_job_artifacts USING btree (file_type, project_id, created_at) WHERE (file_type = ANY (ARRAY[5, 6, 8, 23])); +CREATE INDEX p_ci_job_artifacts_project_id_created_at_id_idx ON ONLY p_ci_job_artifacts USING btree (project_id, created_at, id); --- --- Name: p_ci_job_annotations assign_p_ci_job_annotations_id_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_job_artifacts_on_id_project_id_and_created_at ON ci_job_artifacts USING btree (project_id, created_at, id); -CREATE TRIGGER assign_p_ci_job_annotations_id_trigger BEFORE INSERT ON public.p_ci_job_annotations FOR EACH ROW EXECUTE FUNCTION public.assign_p_ci_job_annotations_id_value(); +CREATE INDEX p_ci_job_artifacts_project_id_file_type_id_idx ON ONLY p_ci_job_artifacts USING btree (project_id, file_type, id); +CREATE INDEX index_ci_job_artifacts_on_id_project_id_and_file_type ON ci_job_artifacts USING btree (project_id, file_type, id); --- --- Name: p_ci_job_artifacts assign_p_ci_job_artifacts_id_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX p_ci_job_artifacts_partition_id_job_id_idx ON ONLY p_ci_job_artifacts USING btree (partition_id, job_id); -CREATE TRIGGER assign_p_ci_job_artifacts_id_trigger BEFORE INSERT ON public.p_ci_job_artifacts FOR EACH ROW EXECUTE FUNCTION public.assign_p_ci_job_artifacts_id_value(); +CREATE INDEX index_ci_job_artifacts_on_partition_id_job_id ON ci_job_artifacts USING btree (partition_id, job_id); +CREATE INDEX p_ci_job_artifacts_project_id_id_idx1 ON ONLY p_ci_job_artifacts USING btree (project_id, id); --- --- Name: p_ci_pipeline_variables assign_p_ci_pipeline_variables_id_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_job_artifacts_on_project_id_and_id ON ci_job_artifacts USING btree (project_id, id); -CREATE TRIGGER assign_p_ci_pipeline_variables_id_trigger BEFORE INSERT ON public.p_ci_pipeline_variables FOR EACH ROW EXECUTE FUNCTION public.assign_p_ci_pipeline_variables_id_value(); +CREATE INDEX p_ci_job_artifacts_project_id_idx1 ON ONLY p_ci_job_artifacts USING btree (project_id) WHERE (file_type = ANY (ARRAY[5, 6, 7, 8])); +CREATE INDEX index_ci_job_artifacts_on_project_id_for_security_reports ON ci_job_artifacts USING btree (project_id) WHERE (file_type = ANY (ARRAY[5, 6, 7, 8])); --- --- Name: p_ci_stages assign_p_ci_stages_id_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_job_token_group_scope_links_on_added_by_id ON ci_job_token_group_scope_links USING btree (added_by_id); -CREATE TRIGGER assign_p_ci_stages_id_trigger BEFORE INSERT ON public.p_ci_stages FOR EACH ROW EXECUTE FUNCTION public.assign_p_ci_stages_id_value(); +CREATE INDEX index_ci_job_token_group_scope_links_on_target_group_id ON ci_job_token_group_scope_links USING btree (target_group_id); +CREATE INDEX index_ci_job_token_project_scope_links_on_added_by_id ON ci_job_token_project_scope_links USING btree (added_by_id); --- --- Name: zoekt_tasks assign_zoekt_tasks_id_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_job_token_project_scope_links_on_target_project_id ON ci_job_token_project_scope_links USING btree (target_project_id); -CREATE TRIGGER assign_zoekt_tasks_id_trigger BEFORE INSERT ON public.zoekt_tasks FOR EACH ROW EXECUTE FUNCTION public.assign_zoekt_tasks_id_value(); +CREATE INDEX index_ci_job_variables_on_job_id ON ci_job_variables USING btree (job_id); +CREATE UNIQUE INDEX index_ci_job_variables_on_key_and_job_id ON ci_job_variables USING btree (key, job_id); --- --- Name: chat_names chat_names_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_job_variables_on_partition_id_job_id ON ci_job_variables USING btree (partition_id, job_id); -CREATE TRIGGER chat_names_loose_fk_trigger AFTER DELETE ON public.chat_names REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); +CREATE INDEX index_ci_job_variables_on_project_id ON ci_job_variables USING btree (project_id); +CREATE INDEX index_ci_minutes_additional_packs_on_namespace_id_purchase_xid ON ci_minutes_additional_packs USING btree (namespace_id, purchase_xid); --- --- Name: ci_builds ci_builds_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ci_namespace_mirrors_on_namespace_id ON ci_namespace_mirrors USING btree (namespace_id); -CREATE TRIGGER ci_builds_loose_fk_trigger AFTER DELETE ON public.ci_builds REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); +CREATE INDEX index_ci_namespace_mirrors_on_traversal_ids_unnest ON ci_namespace_mirrors USING btree ((traversal_ids[1]), (traversal_ids[2]), (traversal_ids[3]), (traversal_ids[4])) INCLUDE (traversal_ids, namespace_id); +CREATE UNIQUE INDEX index_ci_namespace_monthly_usages_on_namespace_id_and_date ON ci_namespace_monthly_usages USING btree (namespace_id, date); --- --- Name: ci_pipelines ci_pipelines_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ci_partitions_on_current_status ON ci_partitions USING btree (status) WHERE (status = 2); -CREATE TRIGGER ci_pipelines_loose_fk_trigger AFTER DELETE ON public.ci_pipelines REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); +CREATE INDEX index_ci_pending_builds_id_on_protected_partial ON ci_pending_builds USING btree (id) WHERE (protected = true); +CREATE UNIQUE INDEX index_ci_pending_builds_on_build_id ON ci_pending_builds USING btree (build_id); --- --- Name: ci_runner_machines ci_runner_machines_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_pending_builds_on_namespace_id ON ci_pending_builds USING btree (namespace_id); -CREATE TRIGGER ci_runner_machines_loose_fk_trigger AFTER DELETE ON public.ci_runner_machines REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); +CREATE UNIQUE INDEX index_ci_pending_builds_on_partition_id_build_id ON ci_pending_builds USING btree (partition_id, build_id); +CREATE INDEX index_ci_pending_builds_on_plan_id ON ci_pending_builds USING btree (plan_id); --- --- Name: ci_runners ci_runners_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_pending_builds_on_project_id ON ci_pending_builds USING btree (project_id); -CREATE TRIGGER ci_runners_loose_fk_trigger AFTER DELETE ON public.ci_runners REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); +CREATE INDEX index_ci_pending_builds_on_tag_ids ON ci_pending_builds USING btree (tag_ids) WHERE (cardinality(tag_ids) > 0); +CREATE INDEX index_ci_pipeline_artifacts_failed_verification ON ci_pipeline_artifacts USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); --- --- Name: clusters clusters_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_pipeline_artifacts_needs_verification ON ci_pipeline_artifacts USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); -CREATE TRIGGER clusters_loose_fk_trigger AFTER DELETE ON public.clusters REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); +CREATE INDEX index_ci_pipeline_artifacts_on_expire_at ON ci_pipeline_artifacts USING btree (expire_at); +CREATE UNIQUE INDEX index_ci_pipeline_artifacts_on_pipeline_id_and_file_type ON ci_pipeline_artifacts USING btree (pipeline_id, file_type); --- --- Name: p_ci_pipelines gitlab_schema_write_trigger_for_p_ci_pipelines; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_pipeline_artifacts_on_project_id ON ci_pipeline_artifacts USING btree (project_id); -CREATE TRIGGER gitlab_schema_write_trigger_for_p_ci_pipelines BEFORE INSERT OR DELETE OR UPDATE OR TRUNCATE ON public.p_ci_pipelines FOR EACH STATEMENT EXECUTE FUNCTION public.gitlab_schema_prevent_write(); +CREATE INDEX index_ci_pipeline_artifacts_pending_verification ON ci_pipeline_artifacts USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); +CREATE INDEX index_ci_pipeline_artifacts_verification_state ON ci_pipeline_artifacts USING btree (verification_state); --- --- Name: merge_requests merge_requests_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_pipeline_chat_data_on_chat_name_id ON ci_pipeline_chat_data USING btree (chat_name_id); -CREATE TRIGGER merge_requests_loose_fk_trigger AFTER DELETE ON public.merge_requests REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); +CREATE UNIQUE INDEX index_ci_pipeline_chat_data_on_pipeline_id ON ci_pipeline_chat_data USING btree (pipeline_id); +CREATE INDEX index_ci_pipeline_messages_on_pipeline_id ON ci_pipeline_messages USING btree (pipeline_id); --- --- Name: namespaces namespaces_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_pipeline_metadata_on_project_id ON ci_pipeline_metadata USING btree (project_id); -CREATE TRIGGER namespaces_loose_fk_trigger AFTER DELETE ON public.namespaces REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); +CREATE UNIQUE INDEX index_ci_pipeline_schedule_variables_on_schedule_id_and_key ON ci_pipeline_schedule_variables USING btree (pipeline_schedule_id, key); +CREATE INDEX index_ci_pipeline_schedules_on_id_and_next_run_at_and_active ON ci_pipeline_schedules USING btree (id, next_run_at) WHERE (active = true); --- --- Name: merge_request_metrics nullify_merge_request_metrics_build_data_on_update; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_pipeline_schedules_on_next_run_at_and_active ON ci_pipeline_schedules USING btree (next_run_at, active); -CREATE TRIGGER nullify_merge_request_metrics_build_data_on_update BEFORE UPDATE ON public.merge_request_metrics FOR EACH ROW EXECUTE FUNCTION public.nullify_merge_request_metrics_build_data(); +CREATE INDEX index_ci_pipeline_schedules_on_owner_id ON ci_pipeline_schedules USING btree (owner_id); +CREATE INDEX index_ci_pipeline_schedules_on_owner_id_and_id_and_active ON ci_pipeline_schedules USING btree (owner_id, id) WHERE (active = true); --- --- Name: organizations organizations_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_pipeline_schedules_on_project_id ON ci_pipeline_schedules USING btree (project_id); -CREATE TRIGGER organizations_loose_fk_trigger AFTER DELETE ON public.organizations REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); +CREATE INDEX p_ci_pipelines_id_idx ON ONLY p_ci_pipelines USING btree (id) WHERE (source = 13); +CREATE INDEX index_ci_pipelines_for_ondemand_dast_scans ON ci_pipelines USING btree (id) WHERE (source = 13); --- --- Name: p_ci_builds p_ci_builds_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX p_ci_pipelines_auto_canceled_by_id_idx ON ONLY p_ci_pipelines USING btree (auto_canceled_by_id); -CREATE TRIGGER p_ci_builds_loose_fk_trigger AFTER DELETE ON public.p_ci_builds REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); +CREATE INDEX index_ci_pipelines_on_auto_canceled_by_id ON ci_pipelines USING btree (auto_canceled_by_id); +CREATE INDEX p_ci_pipelines_ci_ref_id_id_source_status_idx ON ONLY p_ci_pipelines USING btree (ci_ref_id, id DESC, source, status) WHERE (ci_ref_id IS NOT NULL); --- --- Name: p_ci_pipelines p_ci_pipelines_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_pipelines_on_ci_ref_id_and_more ON ci_pipelines USING btree (ci_ref_id, id DESC, source, status) WHERE (ci_ref_id IS NOT NULL); -CREATE TRIGGER p_ci_pipelines_loose_fk_trigger AFTER DELETE ON public.p_ci_pipelines REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); +CREATE INDEX p_ci_pipelines_external_pull_request_id_idx ON ONLY p_ci_pipelines USING btree (external_pull_request_id) WHERE (external_pull_request_id IS NOT NULL); +CREATE INDEX index_ci_pipelines_on_external_pull_request_id ON ci_pipelines USING btree (external_pull_request_id) WHERE (external_pull_request_id IS NOT NULL); --- --- Name: plans plans_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX p_ci_pipelines_merge_request_id_idx ON ONLY p_ci_pipelines USING btree (merge_request_id) WHERE (merge_request_id IS NOT NULL); -CREATE TRIGGER plans_loose_fk_trigger AFTER DELETE ON public.plans REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); +CREATE INDEX index_ci_pipelines_on_merge_request_id ON ci_pipelines USING btree (merge_request_id) WHERE (merge_request_id IS NOT NULL); +CREATE INDEX p_ci_pipelines_pipeline_schedule_id_id_idx ON ONLY p_ci_pipelines USING btree (pipeline_schedule_id, id); --- --- Name: organizations prevent_delete_of_default_organization_before_destroy; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_pipelines_on_pipeline_schedule_id_and_id ON ci_pipelines USING btree (pipeline_schedule_id, id); -CREATE TRIGGER prevent_delete_of_default_organization_before_destroy BEFORE DELETE ON public.organizations FOR EACH ROW EXECUTE FUNCTION public.prevent_delete_of_default_organization(); +CREATE INDEX p_ci_pipelines_project_id_id_idx ON ONLY p_ci_pipelines USING btree (project_id, id DESC); +CREATE INDEX index_ci_pipelines_on_project_id_and_id_desc ON ci_pipelines USING btree (project_id, id DESC); --- --- Name: projects projects_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX p_ci_pipelines_project_id_iid_partition_id_idx ON ONLY p_ci_pipelines USING btree (project_id, iid, partition_id) WHERE (iid IS NOT NULL); -CREATE TRIGGER projects_loose_fk_trigger AFTER DELETE ON public.projects REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); +CREATE UNIQUE INDEX index_ci_pipelines_on_project_id_and_iid_and_partition_id ON ci_pipelines USING btree (project_id, iid, partition_id) WHERE (iid IS NOT NULL); +CREATE INDEX p_ci_pipelines_project_id_ref_status_id_idx ON ONLY p_ci_pipelines USING btree (project_id, ref, status, id); --- --- Name: push_rules push_rules_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_pipelines_on_project_id_and_ref_and_status_and_id ON ci_pipelines USING btree (project_id, ref, status, id); -CREATE TRIGGER push_rules_loose_fk_trigger AFTER DELETE ON public.push_rules REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); +CREATE INDEX p_ci_pipelines_project_id_sha_idx ON ONLY p_ci_pipelines USING btree (project_id, sha); +CREATE INDEX index_ci_pipelines_on_project_id_and_sha ON ci_pipelines USING btree (project_id, sha); --- --- Name: merge_request_diff_commits table_sync_trigger_57c8465cd7; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX p_ci_pipelines_project_id_source_idx ON ONLY p_ci_pipelines USING btree (project_id, source); -CREATE TRIGGER table_sync_trigger_57c8465cd7 AFTER INSERT OR DELETE OR UPDATE ON public.merge_request_diff_commits FOR EACH ROW EXECUTE FUNCTION public.table_sync_function_0992e728d3(); +CREATE INDEX index_ci_pipelines_on_project_id_and_source ON ci_pipelines USING btree (project_id, source); +CREATE INDEX p_ci_pipelines_project_id_status_config_source_idx ON ONLY p_ci_pipelines USING btree (project_id, status, config_source); --- --- Name: merge_request_diff_files table_sync_trigger_cd362c20e2; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_pipelines_on_project_id_and_status_and_config_source ON ci_pipelines USING btree (project_id, status, config_source); -CREATE TRIGGER table_sync_trigger_cd362c20e2 AFTER INSERT OR DELETE OR UPDATE ON public.merge_request_diff_files FOR EACH ROW EXECUTE FUNCTION public.table_sync_function_3f39f64fc3(); +CREATE INDEX p_ci_pipelines_project_id_status_created_at_idx ON ONLY p_ci_pipelines USING btree (project_id, status, created_at); +CREATE INDEX index_ci_pipelines_on_project_id_and_status_and_created_at ON ci_pipelines USING btree (project_id, status, created_at); --- --- Name: tags tags_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX p_ci_pipelines_project_id_status_updated_at_idx ON ONLY p_ci_pipelines USING btree (project_id, status, updated_at); -CREATE TRIGGER tags_loose_fk_trigger AFTER DELETE ON public.tags REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); +CREATE INDEX index_ci_pipelines_on_project_id_and_status_and_updated_at ON ci_pipelines USING btree (project_id, status, updated_at); +CREATE INDEX p_ci_pipelines_project_id_user_id_status_ref_idx ON ONLY p_ci_pipelines USING btree (project_id, user_id, status, ref) WHERE (source <> 12); --- --- Name: approval_merge_request_rules trigger_01b3fc052119; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_pipelines_on_project_id_and_user_id_and_status_and_ref ON ci_pipelines USING btree (project_id, user_id, status, ref) WHERE (source <> 12); -CREATE TRIGGER trigger_01b3fc052119 BEFORE INSERT OR UPDATE ON public.approval_merge_request_rules FOR EACH ROW EXECUTE FUNCTION public.trigger_01b3fc052119(); +CREATE INDEX p_ci_pipelines_project_id_ref_id_idx ON ONLY p_ci_pipelines USING btree (project_id, ref, id DESC); +CREATE INDEX index_ci_pipelines_on_project_idandrefandiddesc ON ci_pipelines USING btree (project_id, ref, id DESC); --- --- Name: vulnerability_occurrence_identifiers trigger_02450faab875; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX p_ci_pipelines_status_id_idx ON ONLY p_ci_pipelines USING btree (status, id); -CREATE TRIGGER trigger_02450faab875 BEFORE INSERT OR UPDATE ON public.vulnerability_occurrence_identifiers FOR EACH ROW EXECUTE FUNCTION public.trigger_02450faab875(); +CREATE INDEX index_ci_pipelines_on_status_and_id ON ci_pipelines USING btree (status, id); +CREATE INDEX p_ci_pipelines_user_id_created_at_config_source_idx ON ONLY p_ci_pipelines USING btree (user_id, created_at, config_source); --- --- Name: approvals trigger_038fe84feff7; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_pipelines_on_user_id_and_created_at_and_config_source ON ci_pipelines USING btree (user_id, created_at, config_source); -CREATE TRIGGER trigger_038fe84feff7 BEFORE INSERT OR UPDATE ON public.approvals FOR EACH ROW EXECUTE FUNCTION public.trigger_038fe84feff7(); +CREATE INDEX p_ci_pipelines_user_id_created_at_source_idx ON ONLY p_ci_pipelines USING btree (user_id, created_at, source); +CREATE INDEX index_ci_pipelines_on_user_id_and_created_at_and_source ON ci_pipelines USING btree (user_id, created_at, source); --- --- Name: status_check_responses trigger_05ce163deddf; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX p_ci_pipelines_user_id_id_idx ON ONLY p_ci_pipelines USING btree (user_id, id) WHERE ((status)::text = ANY (ARRAY[('running'::character varying)::text, ('waiting_for_resource'::character varying)::text, ('preparing'::character varying)::text, ('pending'::character varying)::text, ('created'::character varying)::text, ('scheduled'::character varying)::text])); -CREATE TRIGGER trigger_05ce163deddf BEFORE INSERT OR UPDATE ON public.status_check_responses FOR EACH ROW EXECUTE FUNCTION public.trigger_05ce163deddf(); +CREATE INDEX index_ci_pipelines_on_user_id_and_id_and_cancelable_status ON ci_pipelines USING btree (user_id, id) WHERE ((status)::text = ANY (ARRAY[('running'::character varying)::text, ('waiting_for_resource'::character varying)::text, ('preparing'::character varying)::text, ('pending'::character varying)::text, ('created'::character varying)::text, ('scheduled'::character varying)::text])); +CREATE INDEX p_ci_pipelines_user_id_id_idx1 ON ONLY p_ci_pipelines USING btree (user_id, id DESC) WHERE (failure_reason = 3); --- --- Name: packages_debian_project_components trigger_0a1b0adcf686; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_pipelines_on_user_id_and_id_desc_and_user_not_verified ON ci_pipelines USING btree (user_id, id DESC) WHERE (failure_reason = 3); -CREATE TRIGGER trigger_0a1b0adcf686 BEFORE INSERT OR UPDATE ON public.packages_debian_project_components FOR EACH ROW EXECUTE FUNCTION public.trigger_0a1b0adcf686(); +CREATE INDEX index_ci_project_mirrors_on_namespace_id ON ci_project_mirrors USING btree (namespace_id); +CREATE UNIQUE INDEX index_ci_project_mirrors_on_project_id ON ci_project_mirrors USING btree (project_id); --- --- Name: operations_feature_flags_issues trigger_0da002390fdc; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ci_project_monthly_usages_on_project_id_and_date ON ci_project_monthly_usages USING btree (project_id, date); -CREATE TRIGGER trigger_0da002390fdc BEFORE INSERT OR UPDATE ON public.operations_feature_flags_issues FOR EACH ROW EXECUTE FUNCTION public.trigger_0da002390fdc(); +CREATE UNIQUE INDEX index_ci_refs_on_project_id_and_ref_path ON ci_refs USING btree (project_id, ref_path); +CREATE UNIQUE INDEX index_ci_resource_groups_on_project_id_and_key ON ci_resource_groups USING btree (project_id, key); --- --- Name: merge_request_assignment_events trigger_0e13f214e504; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_resources_on_build_id ON ci_resources USING btree (build_id); -CREATE TRIGGER trigger_0e13f214e504 BEFORE INSERT OR UPDATE ON public.merge_request_assignment_events FOR EACH ROW EXECUTE FUNCTION public.trigger_0e13f214e504(); +CREATE INDEX index_ci_resources_on_partition_id_build_id ON ci_resources USING btree (partition_id, build_id); +CREATE UNIQUE INDEX index_ci_resources_on_resource_group_id_and_build_id ON ci_resources USING btree (resource_group_id, build_id); --- --- Name: draft_notes trigger_13d4aa8fe3dd; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_runner_machines_on_contacted_at_desc_and_id_desc ON ci_runner_machines USING btree (contacted_at DESC, id DESC); -CREATE TRIGGER trigger_13d4aa8fe3dd BEFORE INSERT OR UPDATE ON public.draft_notes FOR EACH ROW EXECUTE FUNCTION public.trigger_13d4aa8fe3dd(); +CREATE INDEX index_ci_runner_machines_on_created_at_and_id_desc ON ci_runner_machines USING btree (created_at, id DESC); +CREATE INDEX index_ci_runner_machines_on_major_version_trigram ON ci_runner_machines USING btree ("substring"(version, '^\d+\.'::text), version, runner_id); --- --- Name: approval_group_rules_users trigger_158ac875f254; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_runner_machines_on_minor_version_trigram ON ci_runner_machines USING btree ("substring"(version, '^\d+\.\d+\.'::text), version, runner_id); -CREATE TRIGGER trigger_158ac875f254 BEFORE INSERT OR UPDATE ON public.approval_group_rules_users FOR EACH ROW EXECUTE FUNCTION public.trigger_158ac875f254(); +CREATE INDEX index_ci_runner_machines_on_patch_version_trigram ON ci_runner_machines USING btree ("substring"(version, '^\d+\.\d+\.\d+'::text), version, runner_id); +CREATE UNIQUE INDEX index_ci_runner_machines_on_runner_id_and_system_xid ON ci_runner_machines USING btree (runner_id, system_xid); --- --- Name: approval_project_rules_users trigger_174b23fa3dfb; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_runner_machines_on_version ON ci_runner_machines USING btree (version); -CREATE TRIGGER trigger_174b23fa3dfb BEFORE INSERT OR UPDATE ON public.approval_project_rules_users FOR EACH ROW EXECUTE FUNCTION public.trigger_174b23fa3dfb(); +CREATE INDEX index_ci_runner_namespaces_on_namespace_id ON ci_runner_namespaces USING btree (namespace_id); +CREATE UNIQUE INDEX index_ci_runner_namespaces_on_runner_id_and_namespace_id ON ci_runner_namespaces USING btree (runner_id, namespace_id); --- --- Name: packages_conan_metadata trigger_18bc439a6741; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_runner_projects_on_project_id ON ci_runner_projects USING btree (project_id); -CREATE TRIGGER trigger_18bc439a6741 BEFORE INSERT OR UPDATE ON public.packages_conan_metadata FOR EACH ROW EXECUTE FUNCTION public.trigger_18bc439a6741(); +CREATE UNIQUE INDEX index_ci_runner_versions_on_unique_status_and_version ON ci_runner_versions USING btree (status, version); +CREATE INDEX index_ci_runners_on_active ON ci_runners USING btree (active, id); --- --- Name: packages_maven_metadata trigger_1ed40f4d5f4e; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_runners_on_contacted_at_and_id_desc ON ci_runners USING btree (contacted_at, id DESC); -CREATE TRIGGER trigger_1ed40f4d5f4e BEFORE INSERT OR UPDATE ON public.packages_maven_metadata FOR EACH ROW EXECUTE FUNCTION public.trigger_1ed40f4d5f4e(); +CREATE INDEX index_ci_runners_on_contacted_at_and_id_where_inactive ON ci_runners USING btree (contacted_at DESC, id DESC) WHERE (active = false); +CREATE INDEX index_ci_runners_on_contacted_at_desc_and_id_desc ON ci_runners USING btree (contacted_at DESC, id DESC); --- --- Name: packages_package_files trigger_206cbe2dc1a2; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_runners_on_created_at_and_id_desc ON ci_runners USING btree (created_at, id DESC); -CREATE TRIGGER trigger_206cbe2dc1a2 BEFORE INSERT OR UPDATE ON public.packages_package_files FOR EACH ROW EXECUTE FUNCTION public.trigger_206cbe2dc1a2(); +CREATE INDEX index_ci_runners_on_created_at_and_id_where_inactive ON ci_runners USING btree (created_at DESC, id DESC) WHERE (active = false); +CREATE INDEX index_ci_runners_on_created_at_desc_and_id_desc ON ci_runners USING btree (created_at DESC, id DESC); --- --- Name: operations_strategies trigger_207005e8e995; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_runners_on_creator_id_where_creator_id_not_null ON ci_runners USING btree (creator_id) WHERE (creator_id IS NOT NULL); -CREATE TRIGGER trigger_207005e8e995 BEFORE INSERT OR UPDATE ON public.operations_strategies FOR EACH ROW EXECUTE FUNCTION public.trigger_207005e8e995(); +CREATE INDEX index_ci_runners_on_description_trigram ON ci_runners USING gin (description gin_trgm_ops); +CREATE INDEX index_ci_runners_on_locked ON ci_runners USING btree (locked); --- --- Name: merge_request_blocks trigger_219952df8fc4; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_runners_on_runner_type_and_id ON ci_runners USING btree (runner_type, id); -CREATE TRIGGER trigger_219952df8fc4 BEFORE INSERT OR UPDATE ON public.merge_request_blocks FOR EACH ROW EXECUTE FUNCTION public.trigger_219952df8fc4(); +CREATE INDEX index_ci_runners_on_token_expires_at_and_id_desc ON ci_runners USING btree (token_expires_at, id DESC); +CREATE INDEX index_ci_runners_on_token_expires_at_desc_and_id_desc ON ci_runners USING btree (token_expires_at DESC, id DESC); --- --- Name: dast_site_profile_secret_variables trigger_2514245c7fc5; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ci_running_builds_on_build_id ON ci_running_builds USING btree (build_id); -CREATE TRIGGER trigger_2514245c7fc5 BEFORE INSERT OR UPDATE ON public.dast_site_profile_secret_variables FOR EACH ROW EXECUTE FUNCTION public.trigger_2514245c7fc5(); +CREATE UNIQUE INDEX index_ci_running_builds_on_partition_id_build_id ON ci_running_builds USING btree (partition_id, build_id); +CREATE INDEX index_ci_running_builds_on_project_id ON ci_running_builds USING btree (project_id); --- --- Name: work_item_parent_links trigger_25c44c30884f; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_running_builds_on_runner_id ON ci_running_builds USING btree (runner_id); -CREATE TRIGGER trigger_25c44c30884f BEFORE INSERT OR UPDATE ON public.work_item_parent_links FOR EACH ROW EXECUTE FUNCTION public.trigger_25c44c30884f(); +CREATE INDEX index_ci_secure_file_states_failed_verification ON ci_secure_file_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +CREATE INDEX index_ci_secure_file_states_needs_verification ON ci_secure_file_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); --- --- Name: ml_candidate_metadata trigger_25d35f02ab55; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_secure_file_states_on_ci_secure_file_id ON ci_secure_file_states USING btree (ci_secure_file_id); -CREATE TRIGGER trigger_25d35f02ab55 BEFORE INSERT OR UPDATE ON public.ml_candidate_metadata FOR EACH ROW EXECUTE FUNCTION public.trigger_25d35f02ab55(); +CREATE INDEX index_ci_secure_file_states_on_verification_state ON ci_secure_file_states USING btree (verification_state); +CREATE INDEX index_ci_secure_file_states_pending_verification ON ci_secure_file_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); --- --- Name: vulnerability_issue_links trigger_25fe4f7da510; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_secure_files_on_project_id ON ci_secure_files USING btree (project_id); -CREATE TRIGGER trigger_25fe4f7da510 BEFORE INSERT OR UPDATE ON public.vulnerability_issue_links FOR EACH ROW EXECUTE FUNCTION public.trigger_25fe4f7da510(); +CREATE INDEX index_ci_sources_pipelines_on_pipeline_id ON ci_sources_pipelines USING btree (pipeline_id); +CREATE INDEX index_ci_sources_pipelines_on_project_id ON ci_sources_pipelines USING btree (project_id); --- --- Name: ml_experiment_metadata trigger_2b8fdc9b4a4e; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_sources_pipelines_on_source_job_id ON ci_sources_pipelines USING btree (source_job_id); -CREATE TRIGGER trigger_2b8fdc9b4a4e BEFORE INSERT OR UPDATE ON public.ml_experiment_metadata FOR EACH ROW EXECUTE FUNCTION public.trigger_2b8fdc9b4a4e(); +CREATE INDEX index_ci_sources_pipelines_on_source_partition_id_source_job_id ON ci_sources_pipelines USING btree (source_partition_id, source_job_id); +CREATE INDEX index_ci_sources_pipelines_on_source_pipeline_id ON ci_sources_pipelines USING btree (source_pipeline_id); --- --- Name: remote_development_agent_configs trigger_3691f9f6a69f; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_sources_pipelines_on_source_project_id ON ci_sources_pipelines USING btree (source_project_id); -CREATE TRIGGER trigger_3691f9f6a69f BEFORE INSERT OR UPDATE ON public.remote_development_agent_configs FOR EACH ROW EXECUTE FUNCTION public.trigger_3691f9f6a69f(); +CREATE INDEX index_ci_sources_projects_on_pipeline_id ON ci_sources_projects USING btree (pipeline_id); +CREATE UNIQUE INDEX index_ci_sources_projects_on_source_project_id_and_pipeline_id ON ci_sources_projects USING btree (source_project_id, pipeline_id); --- --- Name: vulnerability_merge_request_links trigger_3fe922f4db67; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX p_ci_stages_pipeline_id_id_idx ON ONLY p_ci_stages USING btree (pipeline_id, id) WHERE (status = ANY (ARRAY[0, 1, 2, 8, 9, 10])); -CREATE TRIGGER trigger_3fe922f4db67 BEFORE INSERT OR UPDATE ON public.vulnerability_merge_request_links FOR EACH ROW EXECUTE FUNCTION public.trigger_3fe922f4db67(); +CREATE INDEX index_ci_stages_on_pipeline_id_and_id ON ci_stages USING btree (pipeline_id, id) WHERE (status = ANY (ARRAY[0, 1, 2, 8, 9, 10])); +CREATE INDEX p_ci_stages_pipeline_id_position_idx ON ONLY p_ci_stages USING btree (pipeline_id, "position"); --- --- Name: release_links trigger_41eaf23bf547; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_stages_on_pipeline_id_and_position ON ci_stages USING btree (pipeline_id, "position"); -CREATE TRIGGER trigger_41eaf23bf547 BEFORE INSERT OR UPDATE ON public.release_links FOR EACH ROW EXECUTE FUNCTION public.trigger_41eaf23bf547(); +CREATE UNIQUE INDEX p_ci_stages_pipeline_id_name_partition_id_idx ON ONLY p_ci_stages USING btree (pipeline_id, name, partition_id); +CREATE UNIQUE INDEX index_ci_stages_on_pipeline_id_name_partition_id_unique ON ci_stages USING btree (pipeline_id, name, partition_id); --- --- Name: wiki_repository_states trigger_43484cb41aca; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX p_ci_stages_project_id_idx ON ONLY p_ci_stages USING btree (project_id); -CREATE TRIGGER trigger_43484cb41aca BEFORE INSERT OR UPDATE ON public.wiki_repository_states FOR EACH ROW EXECUTE FUNCTION public.trigger_43484cb41aca(); +CREATE INDEX index_ci_stages_on_project_id ON ci_stages USING btree (project_id); +CREATE INDEX index_ci_subscriptions_projects_author_id ON ci_subscriptions_projects USING btree (author_id); --- --- Name: merge_request_assignees trigger_44558add1625; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_subscriptions_projects_on_upstream_project_id ON ci_subscriptions_projects USING btree (upstream_project_id); -CREATE TRIGGER trigger_44558add1625 BEFORE INSERT OR UPDATE ON public.merge_request_assignees FOR EACH ROW EXECUTE FUNCTION public.trigger_44558add1625(); +CREATE UNIQUE INDEX index_ci_subscriptions_projects_unique_subscription ON ci_subscriptions_projects USING btree (downstream_project_id, upstream_project_id); +CREATE INDEX index_ci_trigger_requests_on_commit_id ON ci_trigger_requests USING btree (commit_id); --- --- Name: epic_issues trigger_46ebe375f632; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_ci_trigger_requests_on_trigger_id_and_id ON ci_trigger_requests USING btree (trigger_id, id DESC); -CREATE TRIGGER trigger_46ebe375f632 BEFORE INSERT OR UPDATE ON public.epic_issues FOR EACH ROW EXECUTE FUNCTION public.trigger_46ebe375f632(); +CREATE INDEX index_ci_triggers_on_owner_id ON ci_triggers USING btree (owner_id); +CREATE INDEX index_ci_triggers_on_project_id ON ci_triggers USING btree (project_id); --- --- Name: approval_group_rules_protected_branches trigger_49862b4b3035; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ci_triggers_on_token ON ci_triggers USING btree (token); -CREATE TRIGGER trigger_49862b4b3035 BEFORE INSERT OR UPDATE ON public.approval_group_rules_protected_branches FOR EACH ROW EXECUTE FUNCTION public.trigger_49862b4b3035(); +CREATE INDEX index_ci_unit_test_failures_on_build_id ON ci_unit_test_failures USING btree (build_id); +CREATE INDEX index_ci_unit_test_failures_on_partition_id_build_id ON ci_unit_test_failures USING btree (partition_id, build_id); --- --- Name: packages_dependency_links trigger_49e070da6320; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ci_unit_tests_on_project_id_and_key_hash ON ci_unit_tests USING btree (project_id, key_hash); -CREATE TRIGGER trigger_49e070da6320 BEFORE INSERT OR UPDATE ON public.packages_dependency_links FOR EACH ROW EXECUTE FUNCTION public.trigger_49e070da6320(); +CREATE INDEX index_ci_variables_on_key ON ci_variables USING btree (key); +CREATE UNIQUE INDEX index_ci_variables_on_project_id_and_key_and_environment_scope ON ci_variables USING btree (project_id, key, environment_scope); --- --- Name: sbom_occurrences_vulnerabilities trigger_4ad9a52a6614; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_cicd_settings_on_namespace_id_where_stale_pruning_enabled ON namespace_ci_cd_settings USING btree (namespace_id) WHERE (allow_stale_runner_pruning = true); -CREATE TRIGGER trigger_4ad9a52a6614 BEFORE INSERT OR UPDATE ON public.sbom_occurrences_vulnerabilities FOR EACH ROW EXECUTE FUNCTION public.trigger_4ad9a52a6614(); +CREATE INDEX index_cis_vulnerability_reads_on_cluster_agent_id ON vulnerability_reads USING btree (casted_cluster_agent_id) WHERE (report_type = 7); +CREATE INDEX index_cluster_agent_tokens_on_agent_id_status_last_used_at ON cluster_agent_tokens USING btree (agent_id, status, last_used_at DESC NULLS LAST); --- --- Name: protected_environment_approval_rules trigger_4b43790d717f; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_cluster_agent_tokens_on_created_by_user_id ON cluster_agent_tokens USING btree (created_by_user_id); -CREATE TRIGGER trigger_4b43790d717f BEFORE INSERT OR UPDATE ON public.protected_environment_approval_rules FOR EACH ROW EXECUTE FUNCTION public.trigger_4b43790d717f(); +CREATE INDEX index_cluster_agent_tokens_on_project_id ON cluster_agent_tokens USING btree (project_id); +CREATE UNIQUE INDEX index_cluster_agent_tokens_on_token_encrypted ON cluster_agent_tokens USING btree (token_encrypted); --- --- Name: security_orchestration_policy_rule_schedules trigger_54707c384ad7; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_cluster_agent_url_configurations_on_agent_id ON cluster_agent_url_configurations USING btree (agent_id); -CREATE TRIGGER trigger_54707c384ad7 BEFORE INSERT OR UPDATE ON public.security_orchestration_policy_rule_schedules FOR EACH ROW EXECUTE FUNCTION public.trigger_54707c384ad7(); +CREATE INDEX index_cluster_agent_url_configurations_on_project_id ON cluster_agent_url_configurations USING btree (project_id); +CREATE INDEX index_cluster_agent_url_configurations_on_user_id ON cluster_agent_url_configurations USING btree (created_by_user_id) WHERE (created_by_user_id IS NOT NULL); --- --- Name: workspace_variables trigger_56d49f4ed623; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_cluster_agents_on_created_by_user_id ON cluster_agents USING btree (created_by_user_id); -CREATE TRIGGER trigger_56d49f4ed623 BEFORE INSERT OR UPDATE ON public.workspace_variables FOR EACH ROW EXECUTE FUNCTION public.trigger_56d49f4ed623(); +CREATE INDEX index_cluster_agents_on_project_id_and_has_vulnerabilities ON cluster_agents USING btree (project_id, has_vulnerabilities); +CREATE UNIQUE INDEX index_cluster_agents_on_project_id_and_name ON cluster_agents USING btree (project_id, name); --- --- Name: user_achievements trigger_57ad2742ac16; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_cluster_enabled_grants_on_namespace_id ON cluster_enabled_grants USING btree (namespace_id); -CREATE TRIGGER trigger_57ad2742ac16 BEFORE INSERT OR UPDATE ON public.user_achievements FOR EACH ROW EXECUTE FUNCTION public.trigger_57ad2742ac16(); +CREATE UNIQUE INDEX index_cluster_groups_on_cluster_id_and_group_id ON cluster_groups USING btree (cluster_id, group_id); +CREATE INDEX index_cluster_groups_on_group_id ON cluster_groups USING btree (group_id); --- --- Name: merge_request_context_commits trigger_5ca97b87ee30; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_cluster_platforms_kubernetes_on_cluster_id ON cluster_platforms_kubernetes USING btree (cluster_id); -CREATE TRIGGER trigger_5ca97b87ee30 BEFORE INSERT OR UPDATE ON public.merge_request_context_commits FOR EACH ROW EXECUTE FUNCTION public.trigger_5ca97b87ee30(); +CREATE INDEX index_cluster_projects_on_cluster_id ON cluster_projects USING btree (cluster_id); +CREATE INDEX index_cluster_projects_on_project_id ON cluster_projects USING btree (project_id); --- --- Name: operations_strategies_user_lists trigger_5f6432d2dccc; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_cluster_providers_aws_on_cluster_id ON cluster_providers_aws USING btree (cluster_id); -CREATE TRIGGER trigger_5f6432d2dccc BEFORE INSERT OR UPDATE ON public.operations_strategies_user_lists FOR EACH ROW EXECUTE FUNCTION public.trigger_5f6432d2dccc(); +CREATE INDEX index_cluster_providers_aws_on_cluster_id_and_status ON cluster_providers_aws USING btree (cluster_id, status); +CREATE INDEX index_cluster_providers_gcp_on_cloud_run ON cluster_providers_gcp USING btree (cloud_run); --- --- Name: merge_request_user_mentions trigger_664594a3d0a7; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_cluster_providers_gcp_on_cluster_id ON cluster_providers_gcp USING btree (cluster_id); -CREATE TRIGGER trigger_664594a3d0a7 BEFORE INSERT OR UPDATE ON public.merge_request_user_mentions FOR EACH ROW EXECUTE FUNCTION public.trigger_664594a3d0a7(); +CREATE INDEX index_clusters_integration_prometheus_enabled ON clusters_integration_prometheus USING btree (enabled, created_at, cluster_id); +CREATE INDEX index_clusters_kubernetes_namespaces_on_cluster_project_id ON clusters_kubernetes_namespaces USING btree (cluster_project_id); --- --- Name: packages_debian_project_architectures trigger_68435a54ee2b; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_clusters_kubernetes_namespaces_on_environment_id ON clusters_kubernetes_namespaces USING btree (environment_id); -CREATE TRIGGER trigger_68435a54ee2b BEFORE INSERT OR UPDATE ON public.packages_debian_project_architectures FOR EACH ROW EXECUTE FUNCTION public.trigger_68435a54ee2b(); +CREATE INDEX index_clusters_kubernetes_namespaces_on_project_id ON clusters_kubernetes_namespaces USING btree (project_id); +CREATE INDEX index_clusters_on_enabled_and_provider_type_and_id ON clusters USING btree (enabled, provider_type, id); --- --- Name: compliance_framework_security_policies trigger_6bf50b363152; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_clusters_on_enabled_cluster_type_id_and_created_at ON clusters USING btree (enabled, cluster_type, id, created_at); -CREATE TRIGGER trigger_6bf50b363152 BEFORE INSERT OR UPDATE ON public.compliance_framework_security_policies FOR EACH ROW EXECUTE FUNCTION public.trigger_6bf50b363152(); +CREATE INDEX index_clusters_on_management_project_id ON clusters USING btree (management_project_id) WHERE (management_project_id IS NOT NULL); +CREATE INDEX index_clusters_on_user_id ON clusters USING btree (user_id); --- --- Name: error_tracking_error_events trigger_6c38ba395cc1; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_commit_user_mentions_on_note_id ON commit_user_mentions USING btree (note_id); -CREATE TRIGGER trigger_6c38ba395cc1 BEFORE INSERT OR UPDATE ON public.error_tracking_error_events FOR EACH ROW EXECUTE FUNCTION public.trigger_6c38ba395cc1(); +CREATE INDEX index_compliance_checks_on_namespace_id ON compliance_checks USING btree (namespace_id); +CREATE INDEX index_compliance_framework_security_policies_on_namespace_id ON compliance_framework_security_policies USING btree (namespace_id); --- --- Name: issue_links trigger_6cdea9559242; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_compliance_framework_security_policies_on_project_id ON compliance_framework_security_policies USING btree (project_id); -CREATE TRIGGER trigger_6cdea9559242 BEFORE INSERT OR UPDATE ON public.issue_links FOR EACH ROW EXECUTE FUNCTION public.trigger_6cdea9559242(); +CREATE INDEX index_compliance_frameworks_id_where_frameworks_not_null ON compliance_management_frameworks USING btree (id) WHERE (pipeline_configuration_full_path IS NOT NULL); +CREATE INDEX index_compliance_management_frameworks_on_name_trigram ON compliance_management_frameworks USING gin (name gin_trgm_ops); --- --- Name: protected_environment_deploy_access_levels trigger_6d6c79ce74e1; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_compliance_requirements_on_namespace_id ON compliance_requirements USING btree (namespace_id); -CREATE TRIGGER trigger_6d6c79ce74e1 BEFORE INSERT OR UPDATE ON public.protected_environment_deploy_access_levels FOR EACH ROW EXECUTE FUNCTION public.trigger_6d6c79ce74e1(); +CREATE INDEX index_composer_cache_files_where_namespace_id_is_null ON packages_composer_cache_files USING btree (id) WHERE (namespace_id IS NULL); +CREATE INDEX index_container_expiration_policies_on_next_run_at_and_enabled ON container_expiration_policies USING btree (next_run_at, enabled); --- --- Name: compliance_framework_security_policies trigger_70d3f0bba1de; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_container_registry_data_repair_details_on_status ON container_registry_data_repair_details USING btree (status); -CREATE TRIGGER trigger_70d3f0bba1de BEFORE INSERT OR UPDATE ON public.compliance_framework_security_policies FOR EACH ROW EXECUTE FUNCTION public.trigger_70d3f0bba1de(); +CREATE INDEX index_container_repositories_on_project_id_and_id ON container_repositories USING btree (project_id, id); +CREATE UNIQUE INDEX index_container_repositories_on_project_id_and_name ON container_repositories USING btree (project_id, name); --- --- Name: subscription_user_add_on_assignments trigger_740afa9807b8; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_container_repositories_on_status_and_id ON container_repositories USING btree (status, id) WHERE (status IS NOT NULL); -CREATE TRIGGER trigger_740afa9807b8 BEFORE INSERT OR UPDATE ON public.subscription_user_add_on_assignments FOR EACH ROW EXECUTE FUNCTION public.trigger_740afa9807b8(); +CREATE INDEX index_container_repository_on_name_trigram ON container_repositories USING gin (name gin_trgm_ops); +CREATE INDEX index_container_repository_states_failed_verification ON container_repository_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); --- --- Name: packages_debian_project_distribution_keys trigger_77d9fbad5b12; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_container_repository_states_needs_verification ON container_repository_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); -CREATE TRIGGER trigger_77d9fbad5b12 BEFORE INSERT OR UPDATE ON public.packages_debian_project_distribution_keys FOR EACH ROW EXECUTE FUNCTION public.trigger_77d9fbad5b12(); +CREATE INDEX index_container_repository_states_on_verification_state ON container_repository_states USING btree (verification_state); +CREATE INDEX index_container_repository_states_pending_verification ON container_repository_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); --- --- Name: boards_epic_board_positions trigger_7a8b08eed782; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_content_blocked_states_on_container_id_commit_sha_path ON content_blocked_states USING btree (container_identifier, commit_sha, path); -CREATE TRIGGER trigger_7a8b08eed782 BEFORE INSERT OR UPDATE ON public.boards_epic_board_positions FOR EACH ROW EXECUTE FUNCTION public.trigger_7a8b08eed782(); +CREATE UNIQUE INDEX index_country_access_logs_on_user_id_and_country_code ON country_access_logs USING btree (user_id, country_code); +CREATE UNIQUE INDEX index_coverage_fuzzing_corpuses_on_package_id ON coverage_fuzzing_corpuses USING btree (package_id); --- --- Name: dast_site_validations trigger_7de792ddbc05; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_coverage_fuzzing_corpuses_on_project_id ON coverage_fuzzing_corpuses USING btree (project_id); -CREATE TRIGGER trigger_7de792ddbc05 BEFORE INSERT OR UPDATE ON public.dast_site_validations FOR EACH ROW EXECUTE FUNCTION public.trigger_7de792ddbc05(); +CREATE INDEX index_coverage_fuzzing_corpuses_on_user_id ON coverage_fuzzing_corpuses USING btree (user_id); +CREATE INDEX index_created_at_on_codeowner_approval_merge_request_rules ON approval_merge_request_rules USING btree (created_at) WHERE ((rule_type = 2) AND (section <> 'codeowners'::text)); --- --- Name: wiki_page_slugs trigger_84d67ad63e93; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_csv_issue_imports_on_project_id ON csv_issue_imports USING btree (project_id); -CREATE TRIGGER trigger_84d67ad63e93 BEFORE INSERT OR UPDATE ON public.wiki_page_slugs FOR EACH ROW EXECUTE FUNCTION public.trigger_84d67ad63e93(); +CREATE INDEX index_csv_issue_imports_on_user_id ON csv_issue_imports USING btree (user_id); +CREATE INDEX index_custom_emoji_on_creator_id ON custom_emoji USING btree (creator_id); --- --- Name: boards_epic_user_preferences trigger_8a38ce2327de; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_custom_emoji_on_namespace_id_and_name ON custom_emoji USING btree (namespace_id, name); -CREATE TRIGGER trigger_8a38ce2327de BEFORE INSERT OR UPDATE ON public.boards_epic_user_preferences FOR EACH ROW EXECUTE FUNCTION public.trigger_8a38ce2327de(); +CREATE UNIQUE INDEX index_custom_software_licenses_on_project_id_and_name ON custom_software_licenses USING btree (project_id, name); +CREATE INDEX index_customer_relations_contacts_on_group_id ON customer_relations_contacts USING btree (group_id); --- --- Name: design_management_repositories trigger_8ac78f164b2d; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_customer_relations_contacts_on_organization_id ON customer_relations_contacts USING btree (organization_id); -CREATE TRIGGER trigger_8ac78f164b2d BEFORE INSERT OR UPDATE ON public.design_management_repositories FOR EACH ROW EXECUTE FUNCTION public.trigger_8ac78f164b2d(); +CREATE UNIQUE INDEX index_customer_relations_contacts_on_unique_email_per_group ON customer_relations_contacts USING btree (group_id, lower(email), id); +CREATE UNIQUE INDEX index_cycle_analytics_stage_event_hashes_on_org_id_sha_256 ON analytics_cycle_analytics_stage_event_hashes USING btree (organization_id, hash_sha256); --- --- Name: vulnerability_occurrence_pipelines trigger_8ba31bddd655; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_daily_build_group_report_results_unique_columns ON ci_daily_build_group_report_results USING btree (project_id, ref_path, date, group_name); -CREATE TRIGGER trigger_8ba31bddd655 BEFORE INSERT OR UPDATE ON public.vulnerability_occurrence_pipelines FOR EACH ROW EXECUTE FUNCTION public.trigger_8ba31bddd655(); +CREATE UNIQUE INDEX index_dast_pre_scan_verifications_on_ci_pipeline_id ON dast_pre_scan_verifications USING btree (ci_pipeline_id); +CREATE INDEX index_dast_pre_scan_verifications_on_dast_profile_id ON dast_pre_scan_verifications USING btree (dast_profile_id); --- --- Name: packages_debian_group_components trigger_8d002f38bdef; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_dast_pre_scan_verifications_on_project_id ON dast_pre_scan_verifications USING btree (project_id); -CREATE TRIGGER trigger_8d002f38bdef BEFORE INSERT OR UPDATE ON public.packages_debian_group_components FOR EACH ROW EXECUTE FUNCTION public.trigger_8d002f38bdef(); +CREATE INDEX index_dast_profile_schedules_active_next_run_at ON dast_profile_schedules USING btree (active, next_run_at); +CREATE UNIQUE INDEX index_dast_profile_schedules_on_dast_profile_id ON dast_profile_schedules USING btree (dast_profile_id); --- --- Name: merge_request_reviewers trigger_8d17725116fe; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_dast_profile_schedules_on_project_id ON dast_profile_schedules USING btree (project_id); -CREATE TRIGGER trigger_8d17725116fe BEFORE INSERT OR UPDATE ON public.merge_request_reviewers FOR EACH ROW EXECUTE FUNCTION public.trigger_8d17725116fe(); +CREATE INDEX index_dast_profile_schedules_on_user_id ON dast_profile_schedules USING btree (user_id); +CREATE INDEX index_dast_profiles_on_dast_scanner_profile_id ON dast_profiles USING btree (dast_scanner_profile_id); --- --- Name: audit_events_streaming_event_type_filters trigger_8e66b994e8f0; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_dast_profiles_on_dast_site_profile_id ON dast_profiles USING btree (dast_site_profile_id); -CREATE TRIGGER trigger_8e66b994e8f0 BEFORE INSERT OR UPDATE ON public.audit_events_streaming_event_type_filters FOR EACH ROW EXECUTE FUNCTION public.trigger_8e66b994e8f0(); +CREATE UNIQUE INDEX index_dast_profiles_on_project_id_and_name ON dast_profiles USING btree (project_id, name); +CREATE UNIQUE INDEX index_dast_profiles_pipelines_on_ci_pipeline_id ON dast_profiles_pipelines USING btree (ci_pipeline_id); --- --- Name: design_management_designs trigger_8fbb044c64ad; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_dast_profiles_tags_on_project_id ON dast_profiles_tags USING btree (project_id); -CREATE TRIGGER trigger_8fbb044c64ad BEFORE INSERT OR UPDATE ON public.design_management_designs FOR EACH ROW EXECUTE FUNCTION public.trigger_8fbb044c64ad(); +CREATE INDEX index_dast_profiles_tags_on_tag_id ON dast_profiles_tags USING btree (tag_id); +CREATE UNIQUE INDEX index_dast_scanner_profiles_on_project_id_and_name ON dast_scanner_profiles USING btree (project_id, name); --- --- Name: dast_profiles_tags trigger_90fa5c6951f1; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_dast_site_profile_secret_variables_on_project_id ON dast_site_profile_secret_variables USING btree (project_id); -CREATE TRIGGER trigger_90fa5c6951f1 BEFORE INSERT OR UPDATE ON public.dast_profiles_tags FOR EACH ROW EXECUTE FUNCTION public.trigger_90fa5c6951f1(); +CREATE INDEX index_dast_site_profiles_on_dast_site_id ON dast_site_profiles USING btree (dast_site_id); +CREATE UNIQUE INDEX index_dast_site_profiles_on_project_id_and_name ON dast_site_profiles USING btree (project_id, name); --- --- Name: packages_build_infos trigger_9259aae92378; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_dast_site_token_on_project_id_and_url ON dast_site_tokens USING btree (project_id, url); -CREATE TRIGGER trigger_9259aae92378 BEFORE INSERT OR UPDATE ON public.packages_build_infos FOR EACH ROW EXECUTE FUNCTION public.trigger_9259aae92378(); +CREATE UNIQUE INDEX index_dast_site_token_on_token ON dast_site_tokens USING btree (token); +CREATE INDEX index_dast_site_tokens_on_project_id ON dast_site_tokens USING btree (project_id); --- --- Name: deployment_approvals trigger_94514aeadc50; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_dast_site_validations_on_dast_site_token_id ON dast_site_validations USING btree (dast_site_token_id); -CREATE TRIGGER trigger_94514aeadc50 BEFORE INSERT OR UPDATE ON public.deployment_approvals FOR EACH ROW EXECUTE FUNCTION public.trigger_94514aeadc50(); +CREATE INDEX index_dast_site_validations_on_project_id ON dast_site_validations USING btree (project_id); +CREATE INDEX index_dast_site_validations_on_url_base_and_state ON dast_site_validations USING btree (url_base, state); --- --- Name: related_epic_links trigger_9699ea03bb37; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_dast_sites_on_dast_site_validation_id ON dast_sites USING btree (dast_site_validation_id); -CREATE TRIGGER trigger_9699ea03bb37 BEFORE INSERT OR UPDATE ON public.related_epic_links FOR EACH ROW EXECUTE FUNCTION public.trigger_9699ea03bb37(); +CREATE UNIQUE INDEX index_dast_sites_on_project_id_and_url ON dast_sites USING btree (project_id, url); +CREATE UNIQUE INDEX index_dep_prox_manifests_on_group_id_file_name_and_status ON dependency_proxy_manifests USING btree (group_id, file_name, status); --- --- Name: design_management_versions trigger_96a76ee9f147; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_dependency_list_export_parts_on_dependency_list_export_id ON dependency_list_export_parts USING btree (dependency_list_export_id); -CREATE TRIGGER trigger_96a76ee9f147 BEFORE INSERT OR UPDATE ON public.design_management_versions FOR EACH ROW EXECUTE FUNCTION public.trigger_96a76ee9f147(); +CREATE INDEX index_dependency_list_export_parts_on_organization_id ON dependency_list_export_parts USING btree (organization_id); +CREATE INDEX index_dependency_list_exports_on_group_id ON dependency_list_exports USING btree (group_id); --- --- Name: vulnerability_findings_remediations trigger_9e137c16de79; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_dependency_list_exports_on_organization_id ON dependency_list_exports USING btree (organization_id); -CREATE TRIGGER trigger_9e137c16de79 BEFORE INSERT OR UPDATE ON public.vulnerability_findings_remediations FOR EACH ROW EXECUTE FUNCTION public.trigger_9e137c16de79(); +CREATE INDEX index_dependency_list_exports_on_pipeline_id ON dependency_list_exports USING btree (pipeline_id); +CREATE INDEX index_dependency_list_exports_on_project_id ON dependency_list_exports USING btree (project_id); --- --- Name: merge_requests_closing_issues trigger_9f3745f8fe32; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_dependency_list_exports_on_user_id ON dependency_list_exports USING btree (user_id); -CREATE TRIGGER trigger_9f3745f8fe32 BEFORE INSERT OR UPDATE ON public.merge_requests_closing_issues FOR EACH ROW EXECUTE FUNCTION public.trigger_9f3745f8fe32(); +CREATE INDEX index_dependency_proxy_blob_states_failed_verification ON dependency_proxy_blob_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +CREATE INDEX index_dependency_proxy_blob_states_needs_verification ON dependency_proxy_blob_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); --- --- Name: vulnerability_user_mentions trigger_a1bc7c70cbdf; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_dependency_proxy_blob_states_on_dependency_proxy_blob_id ON dependency_proxy_blob_states USING btree (dependency_proxy_blob_id); -CREATE TRIGGER trigger_a1bc7c70cbdf BEFORE INSERT OR UPDATE ON public.vulnerability_user_mentions FOR EACH ROW EXECUTE FUNCTION public.trigger_a1bc7c70cbdf(); +CREATE INDEX index_dependency_proxy_blob_states_on_verification_state ON dependency_proxy_blob_states USING btree (verification_state); +CREATE INDEX index_dependency_proxy_blob_states_pending_verification ON dependency_proxy_blob_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); --- --- Name: dora_daily_metrics trigger_a253cb3cacdf; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_dependency_proxy_blobs_on_group_id_and_file_name ON dependency_proxy_blobs USING btree (group_id, file_name); -CREATE TRIGGER trigger_a253cb3cacdf BEFORE INSERT OR UPDATE ON public.dora_daily_metrics FOR EACH ROW EXECUTE FUNCTION public.trigger_a253cb3cacdf(); +CREATE INDEX index_dependency_proxy_blobs_on_group_id_status_read_at_id ON dependency_proxy_blobs USING btree (group_id, status, read_at, id); +CREATE INDEX index_dependency_proxy_blobs_on_status ON dependency_proxy_blobs USING btree (status); --- --- Name: epic_user_mentions trigger_a4e4fb2451d9; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_dependency_proxy_group_settings_on_group_id ON dependency_proxy_group_settings USING btree (group_id); -CREATE TRIGGER trigger_a4e4fb2451d9 BEFORE INSERT OR UPDATE ON public.epic_user_mentions FOR EACH ROW EXECUTE FUNCTION public.trigger_a4e4fb2451d9(); +CREATE INDEX index_dependency_proxy_manifests_on_group_id_status_read_at_id ON dependency_proxy_manifests USING btree (group_id, status, read_at, id); +CREATE INDEX index_dependency_proxy_manifests_on_status ON dependency_proxy_manifests USING btree (status); --- --- Name: vulnerability_finding_evidences trigger_a7e0fb195210; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_deploy_key_id_on_protected_branch_push_access_levels ON protected_branch_push_access_levels USING btree (deploy_key_id); -CREATE TRIGGER trigger_a7e0fb195210 BEFORE INSERT OR UPDATE ON public.vulnerability_finding_evidences FOR EACH ROW EXECUTE FUNCTION public.trigger_a7e0fb195210(); +CREATE INDEX index_deploy_keys_projects_on_deploy_key_id ON deploy_keys_projects USING btree (deploy_key_id); +CREATE INDEX index_deploy_keys_projects_on_project_id ON deploy_keys_projects USING btree (project_id); --- --- Name: protected_tag_create_access_levels trigger_af3f17817e4d; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_deploy_tokens_on_creator_id ON deploy_tokens USING btree (creator_id); -CREATE TRIGGER trigger_af3f17817e4d BEFORE INSERT OR UPDATE ON public.protected_tag_create_access_levels FOR EACH ROW EXECUTE FUNCTION public.trigger_af3f17817e4d(); +CREATE INDEX index_deploy_tokens_on_group_id ON deploy_tokens USING btree (group_id); +CREATE INDEX index_deploy_tokens_on_project_id ON deploy_tokens USING btree (project_id); --- --- Name: project_relation_exports trigger_b2612138515d; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_deploy_tokens_on_token_encrypted ON deploy_tokens USING btree (token_encrypted); -CREATE TRIGGER trigger_b2612138515d BEFORE INSERT OR UPDATE ON public.project_relation_exports FOR EACH ROW EXECUTE FUNCTION public.trigger_b2612138515d(); +CREATE INDEX index_deployment_approvals_on_approval_rule_id ON deployment_approvals USING btree (approval_rule_id); +CREATE INDEX index_deployment_approvals_on_created_at_and_id ON deployment_approvals USING btree (created_at, id); --- --- Name: approval_merge_request_rule_sources trigger_b4520c29ea74; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_deployment_approvals_on_deployment_user_approval_rule ON deployment_approvals USING btree (deployment_id, user_id, approval_rule_id); -CREATE TRIGGER trigger_b4520c29ea74 BEFORE INSERT OR UPDATE ON public.approval_merge_request_rule_sources FOR EACH ROW EXECUTE FUNCTION public.trigger_b4520c29ea74(); +CREATE INDEX index_deployment_approvals_on_project_id ON deployment_approvals USING btree (project_id); +CREATE INDEX index_deployment_approvals_on_user_id ON deployment_approvals USING btree (user_id); --- --- Name: audit_events_streaming_headers trigger_c17a166692a2; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_deployment_clusters_on_cluster_id_and_deployment_id ON deployment_clusters USING btree (cluster_id, deployment_id); -CREATE TRIGGER trigger_c17a166692a2 BEFORE INSERT OR UPDATE ON public.audit_events_streaming_headers FOR EACH ROW EXECUTE FUNCTION public.trigger_c17a166692a2(); +CREATE INDEX index_deployment_merge_requests_on_merge_request_id ON deployment_merge_requests USING btree (merge_request_id); +CREATE INDEX index_deployments_for_visible_scope ON deployments USING btree (environment_id, finished_at DESC) WHERE (status = ANY (ARRAY[1, 2, 3, 4, 6])); --- --- Name: security_orchestration_policy_rule_schedules trigger_c59fe6f31e71; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_deployments_on_archived_project_id_iid ON deployments USING btree (archived, project_id, iid); -CREATE TRIGGER trigger_c59fe6f31e71 BEFORE INSERT OR UPDATE ON public.security_orchestration_policy_rule_schedules FOR EACH ROW EXECUTE FUNCTION public.trigger_c59fe6f31e71(); +CREATE INDEX index_deployments_on_created_at ON deployments USING btree (created_at); +CREATE INDEX index_deployments_on_deployable_type_and_deployable_id ON deployments USING btree (deployable_type, deployable_id); --- --- Name: dast_pre_scan_verifications trigger_c5eec113ea76; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_deployments_on_environment_id_and_id ON deployments USING btree (environment_id, id); -CREATE TRIGGER trigger_c5eec113ea76 BEFORE INSERT OR UPDATE ON public.dast_pre_scan_verifications FOR EACH ROW EXECUTE FUNCTION public.trigger_c5eec113ea76(); +CREATE INDEX index_deployments_on_environment_id_and_ref ON deployments USING btree (environment_id, ref); +CREATE INDEX index_deployments_on_environment_id_status_and_finished_at ON deployments USING btree (environment_id, status, finished_at); --- --- Name: vulnerability_state_transitions trigger_c8bc8646bce9; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_deployments_on_environment_id_status_and_id ON deployments USING btree (environment_id, status, id); -CREATE TRIGGER trigger_c8bc8646bce9 BEFORE INSERT OR UPDATE ON public.vulnerability_state_transitions FOR EACH ROW EXECUTE FUNCTION public.trigger_c8bc8646bce9(); +CREATE INDEX index_deployments_on_environment_status_sha ON deployments USING btree (environment_id, status, sha); +CREATE INDEX index_deployments_on_id_and_status_and_created_at ON deployments USING btree (id, status, created_at); --- --- Name: boards_epic_lists trigger_c9090feed334; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_deployments_on_project_and_environment_and_updated_at_id ON deployments USING btree (project_id, environment_id, updated_at, id); -CREATE TRIGGER trigger_c9090feed334 BEFORE INSERT OR UPDATE ON public.boards_epic_lists FOR EACH ROW EXECUTE FUNCTION public.trigger_c9090feed334(); +CREATE INDEX index_deployments_on_project_and_finished ON deployments USING btree (project_id, finished_at) WHERE (status = 2); +CREATE INDEX index_deployments_on_project_id_and_id ON deployments USING btree (project_id, id DESC); --- --- Name: evidences trigger_cac7c0698291; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_deployments_on_project_id_and_iid ON deployments USING btree (project_id, iid); -CREATE TRIGGER trigger_cac7c0698291 BEFORE INSERT OR UPDATE ON public.evidences FOR EACH ROW EXECUTE FUNCTION public.trigger_cac7c0698291(); +CREATE INDEX index_deployments_on_project_id_and_status_and_created_at ON deployments USING btree (project_id, status, created_at); +CREATE INDEX index_deployments_on_project_id_and_updated_at_and_id ON deployments USING btree (project_id, updated_at DESC, id DESC); --- --- Name: projects trigger_catalog_resource_sync_event_on_project_update; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_deployments_on_user_id_and_status_and_created_at ON deployments USING btree (user_id, status, created_at); -CREATE TRIGGER trigger_catalog_resource_sync_event_on_project_update AFTER UPDATE ON public.projects FOR EACH ROW WHEN ((((old.name)::text IS DISTINCT FROM (new.name)::text) OR (old.description IS DISTINCT FROM new.description) OR (old.visibility_level IS DISTINCT FROM new.visibility_level))) EXECUTE FUNCTION public.insert_catalog_resource_sync_event(); +CREATE INDEX index_description_versions_on_epic_id ON description_versions USING btree (epic_id) WHERE (epic_id IS NOT NULL); +CREATE INDEX index_description_versions_on_issue_id ON description_versions USING btree (issue_id) WHERE (issue_id IS NOT NULL); --- --- Name: terraform_state_versions trigger_d4487a75bd44; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_description_versions_on_merge_request_id ON description_versions USING btree (merge_request_id) WHERE (merge_request_id IS NOT NULL); -CREATE TRIGGER trigger_d4487a75bd44 BEFORE INSERT OR UPDATE ON public.terraform_state_versions FOR EACH ROW EXECUTE FUNCTION public.trigger_d4487a75bd44(); +CREATE INDEX index_design_management_designs_issue_id_relative_position_id ON design_management_designs USING btree (issue_id, relative_position, id); +CREATE UNIQUE INDEX index_design_management_designs_on_iid_and_project_id ON design_management_designs USING btree (project_id, iid); --- --- Name: protected_environment_approval_rules trigger_d5c895007948; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_design_management_designs_on_issue_id_and_filename ON design_management_designs USING btree (issue_id, filename); -CREATE TRIGGER trigger_d5c895007948 BEFORE INSERT OR UPDATE ON public.protected_environment_approval_rules FOR EACH ROW EXECUTE FUNCTION public.trigger_d5c895007948(); +CREATE INDEX index_design_management_designs_on_namespace_id ON design_management_designs USING btree (namespace_id); +CREATE INDEX index_design_management_designs_on_project_id ON design_management_designs USING btree (project_id); --- --- Name: packages_debian_group_distribution_keys trigger_dadd660afe2c; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_design_management_designs_versions_on_design_id ON design_management_designs_versions USING btree (design_id); -CREATE TRIGGER trigger_dadd660afe2c BEFORE INSERT OR UPDATE ON public.packages_debian_group_distribution_keys FOR EACH ROW EXECUTE FUNCTION public.trigger_dadd660afe2c(); +CREATE INDEX index_design_management_designs_versions_on_event ON design_management_designs_versions USING btree (event); +CREATE INDEX index_design_management_designs_versions_on_version_id ON design_management_designs_versions USING btree (version_id); --- --- Name: agent_activity_events trigger_dbdd61a66a91; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_design_management_repositories_on_namespace_id ON design_management_repositories USING btree (namespace_id); -CREATE TRIGGER trigger_dbdd61a66a91 BEFORE INSERT OR UPDATE ON public.agent_activity_events FOR EACH ROW EXECUTE FUNCTION public.trigger_dbdd61a66a91(); +CREATE UNIQUE INDEX index_design_management_repositories_on_project_id ON design_management_repositories USING btree (project_id); +CREATE INDEX index_design_management_repository_states_failed_verification ON design_management_repository_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); --- --- Name: vulnerability_flags trigger_dc13168b8025; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_design_management_repository_states_needs_verification ON design_management_repository_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); -CREATE TRIGGER trigger_dc13168b8025 BEFORE INSERT OR UPDATE ON public.vulnerability_flags FOR EACH ROW EXECUTE FUNCTION public.trigger_dc13168b8025(); +CREATE INDEX index_design_management_repository_states_on_verification_state ON design_management_repository_states USING btree (verification_state); +CREATE INDEX index_design_management_repository_states_pending_verification ON design_management_repository_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); --- --- Name: projects trigger_delete_project_namespace_on_project_delete; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_design_management_versions_on_author_id ON design_management_versions USING btree (author_id) WHERE (author_id IS NOT NULL); -CREATE TRIGGER trigger_delete_project_namespace_on_project_delete AFTER DELETE ON public.projects FOR EACH ROW WHEN ((old.project_namespace_id IS NOT NULL)) EXECUTE FUNCTION public.delete_associated_project_namespace(); +CREATE INDEX index_design_management_versions_on_issue_id ON design_management_versions USING btree (issue_id); +CREATE INDEX index_design_management_versions_on_namespace_id ON design_management_versions USING btree (namespace_id); --- --- Name: packages_debian_group_architectures trigger_e0864d1cff37; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_design_management_versions_on_sha_and_issue_id ON design_management_versions USING btree (sha, issue_id); -CREATE TRIGGER trigger_e0864d1cff37 BEFORE INSERT OR UPDATE ON public.packages_debian_group_architectures FOR EACH ROW EXECUTE FUNCTION public.trigger_e0864d1cff37(); +CREATE UNIQUE INDEX index_design_user_mentions_on_note_id ON design_user_mentions USING btree (note_id); +CREATE UNIQUE INDEX index_diff_note_positions_on_note_id_and_diff_type ON diff_note_positions USING btree (note_id, diff_type); --- --- Name: vulnerability_external_issue_links trigger_e1da4a738230; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_dingtalk_tracker_data_on_integration_id ON dingtalk_tracker_data USING btree (integration_id); -CREATE TRIGGER trigger_e1da4a738230 BEFORE INSERT OR UPDATE ON public.vulnerability_external_issue_links FOR EACH ROW EXECUTE FUNCTION public.trigger_e1da4a738230(); +CREATE UNIQUE INDEX index_dora_configurations_on_project_id ON dora_configurations USING btree (project_id); +CREATE UNIQUE INDEX index_dora_daily_metrics_on_environment_id_and_date ON dora_daily_metrics USING btree (environment_id, date); --- --- Name: vulnerability_finding_links trigger_e49ab4d904a0; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_dora_daily_metrics_on_project_id ON dora_daily_metrics USING btree (project_id); -CREATE TRIGGER trigger_e49ab4d904a0 BEFORE INSERT OR UPDATE ON public.vulnerability_finding_links FOR EACH ROW EXECUTE FUNCTION public.trigger_e49ab4d904a0(); +CREATE UNIQUE INDEX index_dora_performance_scores_on_project_id_and_date ON dora_performance_scores USING btree (project_id, date); +CREATE INDEX index_draft_notes_on_author_id ON draft_notes USING btree (author_id); --- --- Name: packages_debian_publications trigger_ebab34f83f1d; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_draft_notes_on_discussion_id ON draft_notes USING btree (discussion_id); -CREATE TRIGGER trigger_ebab34f83f1d BEFORE INSERT OR UPDATE ON public.packages_debian_publications FOR EACH ROW EXECUTE FUNCTION public.trigger_ebab34f83f1d(); +CREATE INDEX index_draft_notes_on_merge_request_id ON draft_notes USING btree (merge_request_id); +CREATE INDEX index_draft_notes_on_project_id ON draft_notes USING btree (project_id); --- --- Name: ml_model_metadata trigger_f6c61cdddf31; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_duo_workflows_checkpoints_on_project_id ON duo_workflows_checkpoints USING btree (project_id); -CREATE TRIGGER trigger_f6c61cdddf31 BEFORE INSERT OR UPDATE ON public.ml_model_metadata FOR EACH ROW EXECUTE FUNCTION public.trigger_f6c61cdddf31(); +CREATE UNIQUE INDEX index_duo_workflows_workflow_checkpoints_unique_thread ON duo_workflows_checkpoints USING btree (workflow_id, thread_ts); +CREATE INDEX index_duo_workflows_workflows_on_project_id ON duo_workflows_workflows USING btree (project_id); --- --- Name: protected_environment_deploy_access_levels trigger_f6f59d8216b3; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_duo_workflows_workflows_on_user_id ON duo_workflows_workflows USING btree (user_id); -CREATE TRIGGER trigger_f6f59d8216b3 BEFORE INSERT OR UPDATE ON public.protected_environment_deploy_access_levels FOR EACH ROW EXECUTE FUNCTION public.trigger_f6f59d8216b3(); +CREATE INDEX index_early_access_program_tracking_events_on_category ON early_access_program_tracking_events USING btree (category); +CREATE INDEX index_early_access_program_tracking_events_on_event_label ON early_access_program_tracking_events USING btree (event_label); --- --- Name: external_status_checks_protected_branches trigger_fbd42ed69453; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_early_access_program_tracking_events_on_event_name ON early_access_program_tracking_events USING btree (event_name); -CREATE TRIGGER trigger_fbd42ed69453 BEFORE INSERT OR UPDATE ON public.external_status_checks_protected_branches FOR EACH ROW EXECUTE FUNCTION public.trigger_fbd42ed69453(); +CREATE INDEX index_early_access_program_tracking_events_on_user_id ON early_access_program_tracking_events USING btree (user_id); +CREATE UNIQUE INDEX index_elastic_index_settings_on_alias_name ON elastic_index_settings USING btree (alias_name); --- --- Name: boards_epic_board_labels trigger_fbd8825b3057; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_elastic_reindexing_subtasks_on_elastic_reindexing_task_id ON elastic_reindexing_subtasks USING btree (elastic_reindexing_task_id); -CREATE TRIGGER trigger_fbd8825b3057 BEFORE INSERT OR UPDATE ON public.boards_epic_board_labels FOR EACH ROW EXECUTE FUNCTION public.trigger_fbd8825b3057(); +CREATE UNIQUE INDEX index_elastic_reindexing_tasks_on_in_progress ON elastic_reindexing_tasks USING btree (in_progress) WHERE in_progress; +CREATE INDEX index_elastic_reindexing_tasks_on_state ON elastic_reindexing_tasks USING btree (state); --- --- Name: geo_event_log trigger_ff16c1fd43ea; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_elasticsearch_indexed_namespaces_on_created_at ON elasticsearch_indexed_namespaces USING btree (created_at); -CREATE TRIGGER trigger_ff16c1fd43ea BEFORE INSERT OR UPDATE ON public.geo_event_log FOR EACH ROW EXECUTE FUNCTION public.trigger_ff16c1fd43ea(); +CREATE UNIQUE INDEX index_emails_on_confirmation_token ON emails USING btree (confirmation_token); +CREATE INDEX index_emails_on_created_at_where_confirmed_at_is_null ON emails USING btree (created_at) WHERE (confirmed_at IS NULL); --- --- Name: vulnerability_finding_signatures trigger_fff8735b6b9a; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_emails_on_detumbled_email ON emails USING btree (detumbled_email); -CREATE TRIGGER trigger_fff8735b6b9a BEFORE INSERT OR UPDATE ON public.vulnerability_finding_signatures FOR EACH ROW EXECUTE FUNCTION public.trigger_fff8735b6b9a(); +CREATE UNIQUE INDEX index_emails_on_email ON emails USING btree (email); +CREATE INDEX index_emails_on_email_trigram ON emails USING gin (email gin_trgm_ops); --- --- Name: integrations trigger_has_external_issue_tracker_on_delete; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_emails_on_user_id ON emails USING btree (user_id); -CREATE TRIGGER trigger_has_external_issue_tracker_on_delete AFTER DELETE ON public.integrations FOR EACH ROW WHEN ((((old.category)::text = 'issue_tracker'::text) AND (old.active = true) AND (old.project_id IS NOT NULL))) EXECUTE FUNCTION public.set_has_external_issue_tracker(); +CREATE INDEX index_enabled_clusters_on_id ON clusters USING btree (id) WHERE (enabled = true); +CREATE INDEX index_environments_cluster_agent_id ON environments USING btree (cluster_agent_id) WHERE (cluster_agent_id IS NOT NULL); --- --- Name: integrations trigger_has_external_issue_tracker_on_insert; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_environments_name_without_type ON environments USING btree (project_id, lower(ltrim(ltrim((name)::text, (environment_type)::text), '/'::text)) varchar_pattern_ops, state); -CREATE TRIGGER trigger_has_external_issue_tracker_on_insert AFTER INSERT ON public.integrations FOR EACH ROW WHEN ((((new.category)::text = 'issue_tracker'::text) AND (new.active = true) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION public.set_has_external_issue_tracker(); +CREATE INDEX index_environments_on_merge_request_id ON environments USING btree (merge_request_id); +CREATE INDEX index_environments_on_name_varchar_pattern_ops ON environments USING btree (name varchar_pattern_ops); --- --- Name: integrations trigger_has_external_issue_tracker_on_update; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_environments_on_project_id_and_id ON environments USING btree (project_id, id); -CREATE TRIGGER trigger_has_external_issue_tracker_on_update AFTER UPDATE ON public.integrations FOR EACH ROW WHEN ((((new.category)::text = 'issue_tracker'::text) AND (old.active <> new.active) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION public.set_has_external_issue_tracker(); +CREATE UNIQUE INDEX index_environments_on_project_id_and_name ON environments USING btree (project_id, name); +CREATE UNIQUE INDEX index_environments_on_project_id_and_slug ON environments USING btree (project_id, slug); --- --- Name: integrations trigger_has_external_wiki_on_delete; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_environments_on_project_id_and_tier ON environments USING btree (project_id, tier) WHERE (tier IS NOT NULL); -CREATE TRIGGER trigger_has_external_wiki_on_delete AFTER DELETE ON public.integrations FOR EACH ROW WHEN (((old.type_new = 'Integrations::ExternalWiki'::text) AND (old.project_id IS NOT NULL))) EXECUTE FUNCTION public.set_has_external_wiki(); +CREATE INDEX index_environments_on_project_id_state_environment_type ON environments USING btree (project_id, state, environment_type); +CREATE INDEX index_environments_on_project_name_varchar_pattern_ops_state ON environments USING btree (project_id, lower((name)::text) varchar_pattern_ops, state); --- --- Name: integrations trigger_has_external_wiki_on_insert; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_environments_on_state_and_auto_delete_at ON environments USING btree (auto_delete_at) WHERE ((auto_delete_at IS NOT NULL) AND ((state)::text = 'stopped'::text)); -CREATE TRIGGER trigger_has_external_wiki_on_insert AFTER INSERT ON public.integrations FOR EACH ROW WHEN (((new.active = true) AND (new.type_new = 'Integrations::ExternalWiki'::text) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION public.set_has_external_wiki(); +CREATE INDEX index_environments_on_state_and_auto_stop_at ON environments USING btree (state, auto_stop_at) WHERE ((auto_stop_at IS NOT NULL) AND ((state)::text = 'available'::text)); +CREATE INDEX index_environments_on_updated_at_for_stopping_state ON environments USING btree (updated_at) WHERE ((state)::text = 'stopping'::text); --- --- Name: integrations trigger_has_external_wiki_on_type_new_updated; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_epic_board_list_preferences_on_user_and_list ON boards_epic_list_user_preferences USING btree (user_id, epic_list_id); -CREATE TRIGGER trigger_has_external_wiki_on_type_new_updated AFTER UPDATE OF type_new ON public.integrations FOR EACH ROW WHEN (((new.type_new = 'Integrations::ExternalWiki'::text) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION public.set_has_external_wiki(); +CREATE UNIQUE INDEX index_epic_board_recent_visits_on_user_group_and_board ON boards_epic_board_recent_visits USING btree (user_id, group_id, epic_board_id); +CREATE INDEX index_epic_issues_on_epic_id_and_issue_id ON epic_issues USING btree (epic_id, issue_id); --- --- Name: integrations trigger_has_external_wiki_on_update; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_epic_issues_on_issue_id ON epic_issues USING btree (issue_id); -CREATE TRIGGER trigger_has_external_wiki_on_update AFTER UPDATE ON public.integrations FOR EACH ROW WHEN (((new.type_new = 'Integrations::ExternalWiki'::text) AND (old.active <> new.active) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION public.set_has_external_wiki(); +CREATE INDEX index_epic_issues_on_namespace_id ON epic_issues USING btree (namespace_id); +CREATE INDEX index_epic_metrics ON epic_metrics USING btree (epic_id); --- --- Name: vulnerability_occurrences trigger_insert_or_update_vulnerability_reads_from_occurrences; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_epic_user_mentions_on_group_id ON epic_user_mentions USING btree (group_id); -CREATE TRIGGER trigger_insert_or_update_vulnerability_reads_from_occurrences AFTER INSERT OR UPDATE ON public.vulnerability_occurrences FOR EACH ROW EXECUTE FUNCTION public.insert_or_update_vulnerability_reads(); +CREATE UNIQUE INDEX index_epic_user_mentions_on_note_id ON epic_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); +CREATE INDEX index_epics_on_assignee_id ON epics USING btree (assignee_id); --- --- Name: vulnerabilities trigger_insert_vulnerability_reads_from_vulnerability; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_epics_on_author_id ON epics USING btree (author_id); -CREATE TRIGGER trigger_insert_vulnerability_reads_from_vulnerability AFTER UPDATE ON public.vulnerabilities FOR EACH ROW WHEN (((old.present_on_default_branch IS NOT TRUE) AND (new.present_on_default_branch IS TRUE))) EXECUTE FUNCTION public.insert_vulnerability_reads_from_vulnerability(); +CREATE INDEX index_epics_on_closed_by_id ON epics USING btree (closed_by_id); +CREATE INDEX index_epics_on_confidential ON epics USING btree (confidential); --- --- Name: namespaces trigger_namespaces_traversal_ids_on_update; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_epics_on_due_date_sourcing_epic_id ON epics USING btree (due_date_sourcing_epic_id) WHERE (due_date_sourcing_epic_id IS NOT NULL); -CREATE TRIGGER trigger_namespaces_traversal_ids_on_update AFTER UPDATE ON public.namespaces FOR EACH ROW WHEN ((old.traversal_ids IS DISTINCT FROM new.traversal_ids)) EXECUTE FUNCTION public.insert_namespaces_sync_event(); +CREATE INDEX index_epics_on_due_date_sourcing_milestone_id ON epics USING btree (due_date_sourcing_milestone_id); +CREATE INDEX index_epics_on_end_date ON epics USING btree (end_date); --- --- Name: projects trigger_projects_parent_id_on_insert; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_epics_on_group_id_and_external_key ON epics USING btree (group_id, external_key) WHERE (external_key IS NOT NULL); -CREATE TRIGGER trigger_projects_parent_id_on_insert AFTER INSERT ON public.projects FOR EACH ROW EXECUTE FUNCTION public.insert_projects_sync_event(); +CREATE UNIQUE INDEX index_epics_on_group_id_and_iid ON epics USING btree (group_id, iid); +CREATE INDEX index_epics_on_group_id_and_iid_varchar_pattern ON epics USING btree (group_id, ((iid)::character varying) varchar_pattern_ops); --- --- Name: projects trigger_projects_parent_id_on_update; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_epics_on_iid ON epics USING btree (iid); -CREATE TRIGGER trigger_projects_parent_id_on_update AFTER UPDATE ON public.projects FOR EACH ROW WHEN ((old.namespace_id IS DISTINCT FROM new.namespace_id)) EXECUTE FUNCTION public.insert_projects_sync_event(); +CREATE INDEX index_epics_on_last_edited_by_id ON epics USING btree (last_edited_by_id); +CREATE INDEX index_epics_on_parent_id ON epics USING btree (parent_id); --- --- Name: work_item_dates_sources trigger_sync_issues_dates_with_work_item_dates_sources; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_epics_on_start_date ON epics USING btree (start_date); -CREATE TRIGGER trigger_sync_issues_dates_with_work_item_dates_sources AFTER INSERT OR UPDATE OF start_date, due_date ON public.work_item_dates_sources FOR EACH ROW EXECUTE FUNCTION public.sync_issues_dates_with_work_item_dates_sources(); +CREATE INDEX index_epics_on_start_date_sourcing_epic_id ON epics USING btree (start_date_sourcing_epic_id) WHERE (start_date_sourcing_epic_id IS NOT NULL); +CREATE INDEX index_epics_on_start_date_sourcing_milestone_id ON epics USING btree (start_date_sourcing_milestone_id); --- --- Name: namespaces trigger_update_details_on_namespace_insert; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_error_tracking_client_for_enabled_check ON error_tracking_client_keys USING btree (project_id, public_key) WHERE (active = true); -CREATE TRIGGER trigger_update_details_on_namespace_insert AFTER INSERT ON public.namespaces FOR EACH ROW WHEN (((new.type)::text <> 'Project'::text)) EXECUTE FUNCTION public.update_namespace_details_from_namespaces(); +CREATE INDEX index_error_tracking_client_keys_on_project_id ON error_tracking_client_keys USING btree (project_id); +CREATE INDEX index_error_tracking_error_events_on_error_id ON error_tracking_error_events USING btree (error_id); --- --- Name: namespaces trigger_update_details_on_namespace_update; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_error_tracking_error_events_on_project_id ON error_tracking_error_events USING btree (project_id); -CREATE TRIGGER trigger_update_details_on_namespace_update AFTER UPDATE ON public.namespaces FOR EACH ROW WHEN ((((new.type)::text <> 'Project'::text) AND (((old.description)::text IS DISTINCT FROM (new.description)::text) OR (old.description_html IS DISTINCT FROM new.description_html) OR (old.cached_markdown_version IS DISTINCT FROM new.cached_markdown_version)))) EXECUTE FUNCTION public.update_namespace_details_from_namespaces(); +CREATE INDEX index_error_tracking_errors_on_project_id ON error_tracking_errors USING btree (project_id); +CREATE INDEX index_esc_protected_branches_on_external_status_check_id ON external_status_checks_protected_branches USING btree (external_status_check_id); --- --- Name: projects trigger_update_details_on_project_insert; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_esc_protected_branches_on_protected_branch_id ON external_status_checks_protected_branches USING btree (protected_branch_id); -CREATE TRIGGER trigger_update_details_on_project_insert AFTER INSERT ON public.projects FOR EACH ROW EXECUTE FUNCTION public.update_namespace_details_from_projects(); +CREATE UNIQUE INDEX index_escalation_rules_on_all_attributes ON incident_management_escalation_rules USING btree (policy_id, oncall_schedule_id, status, elapsed_time_seconds, user_id); +CREATE INDEX index_escalation_rules_on_user ON incident_management_escalation_rules USING btree (user_id); --- --- Name: projects trigger_update_details_on_project_update; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_et_errors_on_project_id_and_status_and_id ON error_tracking_errors USING btree (project_id, status, id); -CREATE TRIGGER trigger_update_details_on_project_update AFTER UPDATE ON public.projects FOR EACH ROW WHEN (((old.description IS DISTINCT FROM new.description) OR (old.description_html IS DISTINCT FROM new.description_html) OR (old.cached_markdown_version IS DISTINCT FROM new.cached_markdown_version))) EXECUTE FUNCTION public.update_namespace_details_from_projects(); +CREATE INDEX index_et_errors_on_project_id_and_status_events_count_id_desc ON error_tracking_errors USING btree (project_id, status, events_count DESC, id DESC); +CREATE INDEX index_et_errors_on_project_id_and_status_first_seen_at_id_desc ON error_tracking_errors USING btree (project_id, status, first_seen_at DESC, id DESC); --- --- Name: vulnerability_issue_links trigger_update_has_issues_on_vulnerability_issue_links_delete; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_et_errors_on_project_id_and_status_last_seen_at_id_desc ON error_tracking_errors USING btree (project_id, status, last_seen_at DESC, id DESC); -CREATE TRIGGER trigger_update_has_issues_on_vulnerability_issue_links_delete AFTER DELETE ON public.vulnerability_issue_links FOR EACH ROW EXECUTE FUNCTION public.unset_has_issues_on_vulnerability_reads(); +CREATE INDEX index_events_author_id_group_id_action_target_type_created_at ON events USING btree (author_id, group_id, action, target_type, created_at); +CREATE INDEX index_events_author_id_project_id_action_target_type_created_at ON events USING btree (author_id, project_id, action, target_type, created_at); --- --- Name: vulnerability_issue_links trigger_update_has_issues_on_vulnerability_issue_links_update; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_events_for_followed_users ON events USING btree (author_id, target_type, action, id); -CREATE TRIGGER trigger_update_has_issues_on_vulnerability_issue_links_update AFTER INSERT ON public.vulnerability_issue_links FOR EACH ROW EXECUTE FUNCTION public.set_has_issues_on_vulnerability_reads(); +CREATE INDEX index_events_for_group_activity ON events USING btree (group_id, target_type, action, id) WHERE (group_id IS NOT NULL); +CREATE INDEX index_events_for_project_activity ON events USING btree (project_id, target_type, action, id); --- --- Name: vulnerability_merge_request_links trigger_update_has_merge_request_on_vulnerability_mr_links_dele; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_events_on_author_id_and_created_at ON events USING btree (author_id, created_at); -CREATE TRIGGER trigger_update_has_merge_request_on_vulnerability_mr_links_dele AFTER DELETE ON public.vulnerability_merge_request_links FOR EACH ROW EXECUTE FUNCTION public.unset_has_merge_request_on_vulnerability_reads(); +CREATE INDEX index_events_on_author_id_and_id ON events USING btree (author_id, id); +CREATE INDEX index_events_on_created_at_and_id ON events USING btree (created_at, id) WHERE (created_at > '2021-08-27 00:00:00+00'::timestamp with time zone); --- --- Name: vulnerability_merge_request_links trigger_update_has_merge_request_on_vulnerability_mr_links_upda; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_events_on_group_id_and_id ON events USING btree (group_id, id) WHERE (group_id IS NOT NULL); -CREATE TRIGGER trigger_update_has_merge_request_on_vulnerability_mr_links_upda AFTER INSERT ON public.vulnerability_merge_request_links FOR EACH ROW EXECUTE FUNCTION public.set_has_merge_request_on_vulnerability_reads(); +CREATE INDEX index_events_on_group_id_partial ON events USING btree (group_id) WHERE (group_id IS NOT NULL); +CREATE INDEX index_events_on_project_id_and_created_at ON events USING btree (project_id, created_at); --- --- Name: vulnerability_occurrences trigger_update_location_on_vulnerability_occurrences_update; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_events_on_project_id_and_id ON events USING btree (project_id, id); -CREATE TRIGGER trigger_update_location_on_vulnerability_occurrences_update AFTER UPDATE ON public.vulnerability_occurrences FOR EACH ROW WHEN (((new.report_type = ANY (ARRAY[2, 7])) AND (((old.location ->> 'image'::text) IS DISTINCT FROM (new.location ->> 'image'::text)) OR (((old.location -> 'kubernetes_resource'::text) ->> 'agent_id'::text) IS DISTINCT FROM ((new.location -> 'kubernetes_resource'::text) ->> 'agent_id'::text))))) EXECUTE FUNCTION public.update_location_from_vulnerability_occurrences(); +CREATE UNIQUE INDEX index_events_on_target_type_and_target_id_and_fingerprint ON events USING btree (target_type, target_id, fingerprint); +CREATE INDEX index_evidences_on_project_id ON evidences USING btree (project_id); --- --- Name: vulnerabilities trigger_update_vulnerability_reads_on_vulnerability_update; Type: TRIGGER; Schema: public; Owner: - --- +CREATE INDEX index_evidences_on_release_id ON evidences USING btree (release_id); -CREATE TRIGGER trigger_update_vulnerability_reads_on_vulnerability_update AFTER UPDATE ON public.vulnerabilities FOR EACH ROW WHEN (((old.present_on_default_branch IS TRUE) AND ((old.severity IS DISTINCT FROM new.severity) OR (old.state IS DISTINCT FROM new.state) OR (old.resolved_on_default_branch IS DISTINCT FROM new.resolved_on_default_branch)))) EXECUTE FUNCTION public.update_vulnerability_reads_from_vulnerability(); +CREATE INDEX index_expired_and_not_notified_personal_access_tokens ON personal_access_tokens USING btree (id, expires_at) WHERE ((impersonation = false) AND (revoked = false) AND (expire_notification_delivered = false)); +CREATE UNIQUE INDEX index_external_audit_event_destinations_on_namespace_id ON audit_events_external_audit_event_destinations USING btree (namespace_id, destination_url); --- --- Name: users users_loose_fk_trigger; Type: TRIGGER; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_external_pull_requests_on_project_and_branches ON external_pull_requests USING btree (project_id, source_branch, target_branch); -CREATE TRIGGER users_loose_fk_trigger AFTER DELETE ON public.users REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION public.insert_into_loose_foreign_keys_deleted_records(); +CREATE INDEX index_external_status_checks_protected_branches_on_project_id ON external_status_checks_protected_branches USING btree (project_id); +CREATE UNIQUE INDEX index_feature_flag_scopes_on_flag_id_and_environment_scope ON operations_feature_flag_scopes USING btree (feature_flag_id, environment_scope); --- --- Name: deployments fk_009fd21147; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_feature_flags_clients_on_project_id_and_token_encrypted ON operations_feature_flags_clients USING btree (project_id, token_encrypted); -ALTER TABLE ONLY public.deployments - ADD CONSTRAINT fk_009fd21147 FOREIGN KEY (environment_id) REFERENCES public.environments(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_feature_gates_on_feature_key_and_key_and_value ON feature_gates USING btree (feature_key, key, value); +CREATE UNIQUE INDEX index_features_on_key ON features USING btree (key); --- --- Name: epics fk_013c9f36ca; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_for_owasp_top_10_group_level_reports ON vulnerability_reads USING btree (owasp_top_10, state, report_type, severity, traversal_ids, vulnerability_id, resolved_on_default_branch) WHERE (archived = false); -ALTER TABLE ONLY public.epics - ADD CONSTRAINT fk_013c9f36ca FOREIGN KEY (due_date_sourcing_epic_id) REFERENCES public.epics(id) ON DELETE SET NULL; +CREATE INDEX index_for_protected_environment_group_id_of_protected_environme ON protected_environment_deploy_access_levels USING btree (protected_environment_group_id); +CREATE INDEX index_for_protected_environment_project_id_of_protected_environ ON protected_environment_deploy_access_levels USING btree (protected_environment_project_id); --- --- Name: environments fk_01a033a308; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_for_security_scans_scan_type ON security_scans USING btree (scan_type, project_id, pipeline_id) WHERE (status = 1); -ALTER TABLE ONLY public.environments - ADD CONSTRAINT fk_01a033a308 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE SET NULL; +CREATE INDEX index_for_status_per_branch_per_project ON merge_trains USING btree (target_project_id, target_branch, status); +CREATE INDEX index_fork_network_members_on_fork_network_id ON fork_network_members USING btree (fork_network_id); --- --- Name: agent_user_access_project_authorizations fk_0250c0ad51; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_fork_network_members_on_forked_from_project_id ON fork_network_members USING btree (forked_from_project_id); -ALTER TABLE ONLY public.agent_user_access_project_authorizations - ADD CONSTRAINT fk_0250c0ad51 FOREIGN KEY (agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_fork_network_members_on_project_id ON fork_network_members USING btree (project_id); +CREATE UNIQUE INDEX index_fork_networks_on_root_project_id ON fork_networks USING btree (root_project_id); --- --- Name: cluster_agent_url_configurations fk_02c2a4f060; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_geo_event_log_on_cache_invalidation_event_id ON geo_event_log USING btree (cache_invalidation_event_id) WHERE (cache_invalidation_event_id IS NOT NULL); -ALTER TABLE ONLY public.cluster_agent_url_configurations - ADD CONSTRAINT fk_02c2a4f060 FOREIGN KEY (agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; +CREATE INDEX index_geo_event_log_on_geo_event_id ON geo_event_log USING btree (geo_event_id) WHERE (geo_event_id IS NOT NULL); +CREATE INDEX index_geo_event_log_on_repositories_changed_event_id ON geo_event_log USING btree (repositories_changed_event_id) WHERE (repositories_changed_event_id IS NOT NULL); --- --- Name: incident_management_escalation_rules fk_0314ee86eb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_geo_node_namespace_links_on_geo_node_id ON geo_node_namespace_links USING btree (geo_node_id); -ALTER TABLE ONLY public.incident_management_escalation_rules - ADD CONSTRAINT fk_0314ee86eb FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_geo_node_namespace_links_on_geo_node_id_and_namespace_id ON geo_node_namespace_links USING btree (geo_node_id, namespace_id); +CREATE INDEX index_geo_node_namespace_links_on_namespace_id ON geo_node_namespace_links USING btree (namespace_id); --- --- Name: service_desk_settings fk_03afb71f06; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_geo_node_statuses_on_geo_node_id ON geo_node_statuses USING btree (geo_node_id); -ALTER TABLE ONLY public.service_desk_settings - ADD CONSTRAINT fk_03afb71f06 FOREIGN KEY (file_template_project_id) REFERENCES public.projects(id) ON DELETE SET NULL; +CREATE INDEX index_geo_nodes_on_access_key ON geo_nodes USING btree (access_key); +CREATE UNIQUE INDEX index_geo_nodes_on_name ON geo_nodes USING btree (name); --- --- Name: design_management_designs_versions fk_03c671965c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_geo_nodes_on_primary ON geo_nodes USING btree ("primary"); -ALTER TABLE ONLY public.design_management_designs_versions - ADD CONSTRAINT fk_03c671965c FOREIGN KEY (design_id) REFERENCES public.design_management_designs(id) ON DELETE CASCADE; +CREATE INDEX index_ghost_user_migrations_on_consume_after_id ON ghost_user_migrations USING btree (consume_after, id); +CREATE UNIQUE INDEX index_ghost_user_migrations_on_user_id ON ghost_user_migrations USING btree (user_id); --- --- Name: external_status_checks_protected_branches fk_0480f2308c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_gin_ci_namespace_mirrors_on_traversal_ids ON ci_namespace_mirrors USING gin (traversal_ids); -ALTER TABLE ONLY public.external_status_checks_protected_branches - ADD CONSTRAINT fk_0480f2308c FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_gin_ci_pending_builds_on_namespace_traversal_ids ON ci_pending_builds USING gin (namespace_traversal_ids); +CREATE INDEX index_gitlab_subscription_histories_on_gitlab_subscription_id ON gitlab_subscription_histories USING btree (gitlab_subscription_id); --- --- Name: sbom_occurrences_vulnerabilities fk_058f258503; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_gitlab_subscription_histories_on_namespace_id ON gitlab_subscription_histories USING btree (namespace_id); -ALTER TABLE ONLY public.sbom_occurrences_vulnerabilities - ADD CONSTRAINT fk_058f258503 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_gitlab_subscriptions_on_end_date_and_namespace_id ON gitlab_subscriptions USING btree (end_date, namespace_id); +CREATE INDEX index_gitlab_subscriptions_on_hosted_plan_id_and_trial ON gitlab_subscriptions USING btree (hosted_plan_id, trial); --- --- Name: analytics_dashboards_pointers fk_05d96922bd; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_gitlab_subscriptions_on_max_seats_used_changed_at ON gitlab_subscriptions USING btree (max_seats_used_changed_at, namespace_id); -ALTER TABLE ONLY public.analytics_dashboards_pointers - ADD CONSTRAINT fk_05d96922bd FOREIGN KEY (target_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_gitlab_subscriptions_on_namespace_id ON gitlab_subscriptions USING btree (namespace_id); +CREATE INDEX index_gitlab_subscriptions_on_trial_and_trial_starts_on ON gitlab_subscriptions USING btree (trial, trial_starts_on); --- --- Name: issues fk_05f1e72feb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_gpg_key_subkeys_on_fingerprint ON gpg_key_subkeys USING btree (fingerprint); -ALTER TABLE ONLY public.issues - ADD CONSTRAINT fk_05f1e72feb FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_gpg_key_subkeys_on_gpg_key_id ON gpg_key_subkeys USING btree (gpg_key_id); +CREATE UNIQUE INDEX index_gpg_key_subkeys_on_keyid ON gpg_key_subkeys USING btree (keyid); --- --- Name: merge_requests fk_06067f5644; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_gpg_keys_on_fingerprint ON gpg_keys USING btree (fingerprint); -ALTER TABLE ONLY public.merge_requests - ADD CONSTRAINT fk_06067f5644 FOREIGN KEY (latest_merge_request_diff_id) REFERENCES public.merge_request_diffs(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_gpg_keys_on_primary_keyid ON gpg_keys USING btree (primary_keyid); +CREATE INDEX index_gpg_keys_on_user_id ON gpg_keys USING btree (user_id); --- --- Name: sbom_occurrences_vulnerabilities fk_07b81e3a81; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_gpg_signatures_on_commit_sha ON gpg_signatures USING btree (commit_sha); -ALTER TABLE ONLY public.sbom_occurrences_vulnerabilities - ADD CONSTRAINT fk_07b81e3a81 FOREIGN KEY (vulnerability_id) REFERENCES public.vulnerabilities(id) ON DELETE CASCADE; +CREATE INDEX index_gpg_signatures_on_gpg_key_id_and_id ON gpg_signatures USING btree (gpg_key_id, id); +CREATE INDEX index_gpg_signatures_on_gpg_key_primary_keyid ON gpg_signatures USING btree (gpg_key_primary_keyid); --- --- Name: ai_agent_version_attachments fk_07db0a0e5b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_gpg_signatures_on_gpg_key_subkey_id ON gpg_signatures USING btree (gpg_key_subkey_id); -ALTER TABLE ONLY public.ai_agent_version_attachments - ADD CONSTRAINT fk_07db0a0e5b FOREIGN KEY (ai_agent_version_id) REFERENCES public.ai_agent_versions(id) ON DELETE CASCADE; +CREATE INDEX index_gpg_signatures_on_project_id ON gpg_signatures USING btree (project_id); +CREATE INDEX index_grafana_integrations_on_enabled ON grafana_integrations USING btree (enabled) WHERE (enabled IS TRUE); --- --- Name: abuse_report_notes fk_0801b83126; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_grafana_integrations_on_project_id ON grafana_integrations USING btree (project_id); -ALTER TABLE ONLY public.abuse_report_notes - ADD CONSTRAINT fk_0801b83126 FOREIGN KEY (updated_by_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_group_crm_settings_on_group_id ON group_crm_settings USING btree (group_id); +CREATE INDEX index_group_crm_settings_on_source_group_id ON group_crm_settings USING btree (source_group_id); --- --- Name: vulnerability_issue_links fk_081e11030b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_group_custom_attributes_on_group_id_and_key ON group_custom_attributes USING btree (group_id, key); -ALTER TABLE ONLY public.vulnerability_issue_links - ADD CONSTRAINT fk_081e11030b FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_group_custom_attributes_on_key_and_value ON group_custom_attributes USING btree (key, value); +CREATE INDEX index_group_deletion_schedules_on_marked_for_deletion_on ON group_deletion_schedules USING btree (marked_for_deletion_on); --- --- Name: analytics_cycle_analytics_stage_event_hashes fk_0839874e4f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_group_deletion_schedules_on_user_id ON group_deletion_schedules USING btree (user_id); -ALTER TABLE ONLY public.analytics_cycle_analytics_stage_event_hashes - ADD CONSTRAINT fk_0839874e4f FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_group_deploy_keys_group_on_group_deploy_key_and_group_ids ON group_deploy_keys_groups USING btree (group_id, group_deploy_key_id); +CREATE INDEX index_group_deploy_keys_groups_on_group_deploy_key_id ON group_deploy_keys_groups USING btree (group_deploy_key_id); --- --- Name: abuse_report_user_mentions fk_088018ecd8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_group_deploy_keys_on_fingerprint ON group_deploy_keys USING btree (fingerprint); -ALTER TABLE ONLY public.abuse_report_user_mentions - ADD CONSTRAINT fk_088018ecd8 FOREIGN KEY (abuse_report_id) REFERENCES public.abuse_reports(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_group_deploy_keys_on_fingerprint_sha256_unique ON group_deploy_keys USING btree (fingerprint_sha256); +CREATE INDEX index_group_deploy_keys_on_user_id ON group_deploy_keys USING btree (user_id); --- --- Name: merge_request_assignees fk_088f01d08d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_group_deploy_tokens_on_deploy_token_id ON group_deploy_tokens USING btree (deploy_token_id); -ALTER TABLE ONLY public.merge_request_assignees - ADD CONSTRAINT fk_088f01d08d FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_group_deploy_tokens_on_group_and_deploy_token_ids ON group_deploy_tokens USING btree (group_id, deploy_token_id); +CREATE INDEX index_group_group_links_on_member_role_id ON group_group_links USING btree (member_role_id); --- --- Name: observability_traces_issues_connections fk_08c2664321; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_group_group_links_on_shared_group_and_shared_with_group ON group_group_links USING btree (shared_group_id, shared_with_group_id); -ALTER TABLE ONLY public.observability_traces_issues_connections - ADD CONSTRAINT fk_08c2664321 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_group_group_links_on_shared_with_group_and_group_access ON group_group_links USING btree (shared_with_group_id, group_access); +CREATE INDEX index_group_group_links_on_shared_with_group_and_shared_group ON group_group_links USING btree (shared_with_group_id, shared_group_id); --- --- Name: merge_request_assignment_events fk_08f7602bfd; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_group_import_states_on_group_id ON group_import_states USING btree (group_id); -ALTER TABLE ONLY public.merge_request_assignment_events - ADD CONSTRAINT fk_08f7602bfd FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +CREATE INDEX index_group_import_states_on_user_id ON group_import_states USING btree (user_id) WHERE (user_id IS NOT NULL); +CREATE INDEX index_group_repository_storage_moves_on_group_id ON group_repository_storage_moves USING btree (group_id); --- --- Name: remote_development_agent_configs fk_0a3c0ada56; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_group_saved_replies_on_group_id ON group_saved_replies USING btree (group_id); -ALTER TABLE ONLY public.remote_development_agent_configs - ADD CONSTRAINT fk_0a3c0ada56 FOREIGN KEY (cluster_agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_group_ssh_certificates_on_fingerprint ON group_ssh_certificates USING btree (fingerprint); +CREATE INDEX index_group_ssh_certificates_on_namespace_id ON group_ssh_certificates USING btree (namespace_id); --- --- Name: dast_sites fk_0a57f2271b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_group_stages_on_group_id_group_value_stream_id_and_name ON analytics_cycle_analytics_group_stages USING btree (group_id, group_value_stream_id, name); -ALTER TABLE ONLY public.dast_sites - ADD CONSTRAINT fk_0a57f2271b FOREIGN KEY (dast_site_validation_id) REFERENCES public.dast_site_validations(id) ON DELETE SET NULL; +CREATE INDEX index_group_stages_on_stage_event_hash_id ON analytics_cycle_analytics_group_stages USING btree (stage_event_hash_id); +CREATE UNIQUE INDEX index_group_user_callouts_feature ON user_group_callouts USING btree (user_id, feature_name, group_id); --- --- Name: project_saved_replies fk_0ace76afbb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_group_wiki_repositories_on_disk_path ON group_wiki_repositories USING btree (disk_path); -ALTER TABLE ONLY public.project_saved_replies - ADD CONSTRAINT fk_0ace76afbb FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE NOT VALID; +CREATE INDEX index_group_wiki_repositories_on_shard_id ON group_wiki_repositories USING btree (shard_id); +CREATE INDEX index_group_wiki_repository_states_failed_verification ON group_wiki_repository_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); --- --- Name: approval_group_rules_protected_branches fk_0b85e6c388; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_group_wiki_repository_states_needs_verification ON group_wiki_repository_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); -ALTER TABLE ONLY public.approval_group_rules_protected_branches - ADD CONSTRAINT fk_0b85e6c388 FOREIGN KEY (protected_branch_id) REFERENCES public.protected_branches(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_group_wiki_repository_states_on_group_wiki_repository_id ON group_wiki_repository_states USING btree (group_wiki_repository_id); +CREATE INDEX index_group_wiki_repository_states_on_verification_state ON group_wiki_repository_states USING btree (verification_state); --- --- Name: issue_customer_relations_contacts fk_0c0037f723; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_group_wiki_repository_states_pending_verification ON group_wiki_repository_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); -ALTER TABLE ONLY public.issue_customer_relations_contacts - ADD CONSTRAINT fk_0c0037f723 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +CREATE INDEX index_groups_on_parent_id_id ON namespaces USING btree (parent_id, id) WHERE ((type)::text = 'Group'::text); +CREATE INDEX index_groups_on_path_and_id ON namespaces USING btree (path, id) WHERE ((type)::text = 'Group'::text); --- --- Name: remote_development_namespace_cluster_agent_mappings fk_0c483ecb9d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_groups_visits_on_entity_id ON ONLY groups_visits USING btree (entity_id); -ALTER TABLE ONLY public.remote_development_namespace_cluster_agent_mappings - ADD CONSTRAINT fk_0c483ecb9d FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_groups_visits_on_user_id_and_entity_id_and_visited_at ON ONLY groups_visits USING btree (user_id, entity_id, visited_at); +CREATE INDEX index_historical_data_on_recorded_at ON historical_data USING btree (recorded_at); --- --- Name: zoekt_replicas fk_0c62cc0251; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_http_integrations_on_project_and_endpoint ON alert_management_http_integrations USING btree (project_id, endpoint_identifier); -ALTER TABLE ONLY public.zoekt_replicas - ADD CONSTRAINT fk_0c62cc0251 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_identities_on_saml_provider_id ON identities USING btree (saml_provider_id) WHERE (saml_provider_id IS NOT NULL); +CREATE INDEX index_identities_on_user_id ON identities USING btree (user_id); --- --- Name: ssh_signatures fk_0c83baaa5f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_im_issuable_escalation_statuses_on_policy_id ON incident_management_issuable_escalation_statuses USING btree (policy_id); -ALTER TABLE ONLY public.ssh_signatures - ADD CONSTRAINT fk_0c83baaa5f FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_im_oncall_schedules_on_project_id_and_iid ON incident_management_oncall_schedules USING btree (project_id, iid); +CREATE INDEX index_im_timeline_event_id ON incident_management_timeline_event_tag_links USING btree (timeline_event_id); --- --- Name: web_hooks fk_0c8ca6d9d1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_im_timeline_event_tags_on_lower_name_and_project_id ON incident_management_timeline_event_tags USING btree (project_id, lower(name)); -ALTER TABLE ONLY public.web_hooks - ADD CONSTRAINT fk_0c8ca6d9d1 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_im_timeline_event_tags_on_tag_id_and_event_id ON incident_management_timeline_event_tag_links USING btree (timeline_event_tag_id, timeline_event_id); +CREATE INDEX index_im_timeline_events_author_id ON incident_management_timeline_events USING btree (author_id); --- --- Name: lists fk_0d3f677137; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_im_timeline_events_issue_id ON incident_management_timeline_events USING btree (issue_id); -ALTER TABLE ONLY public.lists - ADD CONSTRAINT fk_0d3f677137 FOREIGN KEY (board_id) REFERENCES public.boards(id) ON DELETE CASCADE; +CREATE INDEX index_im_timeline_events_project_id ON incident_management_timeline_events USING btree (project_id); +CREATE INDEX index_im_timeline_events_promoted_from_note_id ON incident_management_timeline_events USING btree (promoted_from_note_id); --- --- Name: subscription_user_add_on_assignments fk_0d89020c49; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_im_timeline_events_updated_by_user_id ON incident_management_timeline_events USING btree (updated_by_user_id); -ALTER TABLE ONLY public.subscription_user_add_on_assignments - ADD CONSTRAINT fk_0d89020c49 FOREIGN KEY (add_on_purchase_id) REFERENCES public.subscription_add_on_purchases(id) ON DELETE CASCADE; +CREATE INDEX index_import_export_uploads_on_group_id_non_unique ON import_export_uploads USING btree (group_id) WHERE (group_id IS NOT NULL); +CREATE INDEX index_import_export_uploads_on_project_id ON import_export_uploads USING btree (project_id); --- --- Name: approval_project_rules_users fk_0dfcd9e339; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_import_export_uploads_on_updated_at ON import_export_uploads USING btree (updated_at); -ALTER TABLE ONLY public.approval_project_rules_users - ADD CONSTRAINT fk_0dfcd9e339 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_import_export_uploads_on_user_id ON import_export_uploads USING btree (user_id); +CREATE INDEX index_import_failures_on_correlation_id_value ON import_failures USING btree (correlation_id_value); --- --- Name: security_policy_project_links fk_0eba4d5d71; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_import_failures_on_external_identifiers ON import_failures USING btree (external_identifiers) WHERE (external_identifiers <> '{}'::jsonb); -ALTER TABLE ONLY public.security_policy_project_links - ADD CONSTRAINT fk_0eba4d5d71 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_import_failures_on_group_id_not_null ON import_failures USING btree (group_id) WHERE (group_id IS NOT NULL); +CREATE INDEX index_import_failures_on_project_id_and_correlation_id_value ON import_failures USING btree (project_id, correlation_id_value) WHERE (retry_count = 0); --- --- Name: deployment_approvals fk_0f58311058; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_import_failures_on_project_id_not_null ON import_failures USING btree (project_id) WHERE (project_id IS NOT NULL); -ALTER TABLE ONLY public.deployment_approvals - ADD CONSTRAINT fk_0f58311058 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_import_failures_on_user_id_not_null ON import_failures USING btree (user_id) WHERE (user_id IS NOT NULL); +CREATE INDEX index_import_placeholder_memberships_on_group_id ON import_placeholder_memberships USING btree (group_id); --- --- Name: project_pages_metadata fk_0fd5b22688; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_import_placeholder_memberships_on_namespace_id ON import_placeholder_memberships USING btree (namespace_id); -ALTER TABLE ONLY public.project_pages_metadata - ADD CONSTRAINT fk_0fd5b22688 FOREIGN KEY (pages_deployment_id) REFERENCES public.pages_deployments(id) ON DELETE SET NULL; +CREATE INDEX index_import_placeholder_memberships_on_project_id ON import_placeholder_memberships USING btree (project_id); +CREATE INDEX index_import_placeholder_memberships_on_source_user_id ON import_placeholder_memberships USING btree (source_user_id); --- --- Name: audit_events_streaming_event_type_filters fk_107946dffb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_import_source_user_placeholder_references_on_namespace_id ON import_source_user_placeholder_references USING btree (namespace_id); -ALTER TABLE ONLY public.audit_events_streaming_event_type_filters - ADD CONSTRAINT fk_107946dffb FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_import_source_user_placeholder_references_on_source_user_ ON import_source_user_placeholder_references USING btree (source_user_id); +CREATE INDEX index_import_source_users_on_namespace_id_and_status ON import_source_users USING btree (namespace_id, status); --- --- Name: group_deletion_schedules fk_11e3ebfcdd; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_import_source_users_on_placeholder_user_id ON import_source_users USING btree (placeholder_user_id); -ALTER TABLE ONLY public.group_deletion_schedules - ADD CONSTRAINT fk_11e3ebfcdd FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_import_source_users_on_reassigned_by_user_id ON import_source_users USING btree (reassigned_by_user_id); +CREATE INDEX index_imported_projects_on_import_type_creator_id_created_at ON projects USING btree (import_type, creator_id, created_at) WHERE (import_type IS NOT NULL); --- --- Name: protected_environment_deploy_access_levels fk_11ede44198; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_imported_projects_on_import_type_id ON projects USING btree (import_type, id) WHERE (import_type IS NOT NULL); -ALTER TABLE ONLY public.protected_environment_deploy_access_levels - ADD CONSTRAINT fk_11ede44198 FOREIGN KEY (protected_environment_group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_inc_mgmnt_oncall_participants_on_oncall_user_id ON incident_management_oncall_participants USING btree (user_id); +CREATE UNIQUE INDEX index_inc_mgmnt_oncall_participants_on_user_id_and_rotation_id ON incident_management_oncall_participants USING btree (user_id, oncall_rotation_id); --- --- Name: remote_development_namespace_cluster_agent_mappings fk_124d8167c5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_inc_mgmnt_oncall_pcpnt_on_oncall_rotation_id_is_removed ON incident_management_oncall_participants USING btree (oncall_rotation_id, is_removed); -ALTER TABLE ONLY public.remote_development_namespace_cluster_agent_mappings - ADD CONSTRAINT fk_124d8167c5 FOREIGN KEY (creator_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_inc_mgmnt_oncall_rotations_on_oncall_schedule_id_and_id ON incident_management_oncall_rotations USING btree (oncall_schedule_id, id); +CREATE UNIQUE INDEX index_inc_mgmnt_oncall_rotations_on_oncall_schedule_id_and_name ON incident_management_oncall_rotations USING btree (oncall_schedule_id, name); --- --- Name: cluster_agent_url_configurations fk_12d4a33b65; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_incident_management_oncall_schedules_on_project_id ON incident_management_oncall_schedules USING btree (project_id); -ALTER TABLE ONLY public.cluster_agent_url_configurations - ADD CONSTRAINT fk_12d4a33b65 FOREIGN KEY (created_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_incident_management_oncall_shifts_on_participant_id ON incident_management_oncall_shifts USING btree (participant_id); +CREATE INDEX index_incident_management_pending_alert_escalations_on_alert_id ON ONLY incident_management_pending_alert_escalations USING btree (alert_id); --- --- Name: member_approvals fk_1383c72212; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_incident_management_pending_alert_escalations_on_rule_id ON ONLY incident_management_pending_alert_escalations USING btree (rule_id); -ALTER TABLE ONLY public.member_approvals - ADD CONSTRAINT fk_1383c72212 FOREIGN KEY (member_namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_incident_management_pending_issue_escalations_on_issue_id ON ONLY incident_management_pending_issue_escalations USING btree (issue_id); +CREATE INDEX index_incident_management_pending_issue_escalations_on_rule_id ON ONLY incident_management_pending_issue_escalations USING btree (rule_id); --- --- Name: audit_events_streaming_headers fk_1413743b7d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_index_statuses_on_project_id ON index_statuses USING btree (project_id); -ALTER TABLE ONLY public.audit_events_streaming_headers - ADD CONSTRAINT fk_1413743b7d FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_insights_on_namespace_id ON insights USING btree (namespace_id); +CREATE INDEX index_insights_on_project_id ON insights USING btree (project_id); --- --- Name: approval_group_rules fk_1485c451e3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_integrations_on_inherit_from_id ON integrations USING btree (inherit_from_id); -ALTER TABLE ONLY public.approval_group_rules - ADD CONSTRAINT fk_1485c451e3 FOREIGN KEY (scan_result_policy_id) REFERENCES public.scan_result_policies(id) ON DELETE CASCADE; +CREATE INDEX index_integrations_on_project_and_type_new_where_inherit_null ON integrations USING btree (project_id, type_new) WHERE (inherit_from_id IS NULL); +CREATE UNIQUE INDEX index_integrations_on_project_id_and_type_new_unique ON integrations USING btree (project_id, type_new); --- --- Name: ldap_group_links fk_14a86de4b3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_integrations_on_type_new ON integrations USING btree (type_new); -ALTER TABLE ONLY public.ldap_group_links - ADD CONSTRAINT fk_14a86de4b3 FOREIGN KEY (member_role_id) REFERENCES public.member_roles(id) ON DELETE SET NULL; +CREATE INDEX index_integrations_on_type_new_and_instance_partial ON integrations USING btree (type_new, instance) WHERE (instance = true); +CREATE INDEX index_integrations_on_type_new_id_when_active_and_has_group ON integrations USING btree (type_new, id, inherit_from_id) WHERE ((active = true) AND (group_id IS NOT NULL)); --- --- Name: catalog_resource_versions fk_15376d917e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_integrations_on_type_new_id_when_active_and_has_project ON integrations USING btree (type_new, id) WHERE ((active = true) AND (project_id IS NOT NULL)); -ALTER TABLE ONLY public.catalog_resource_versions - ADD CONSTRAINT fk_15376d917e FOREIGN KEY (release_id) REFERENCES public.releases(id) ON DELETE CASCADE; +CREATE INDEX index_integrations_on_unique_group_id_and_type_new ON integrations USING btree (group_id, type_new); +CREATE INDEX index_internal_ids_on_namespace_id ON internal_ids USING btree (namespace_id); --- --- Name: merge_request_blocks fk_1551efdd17; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_internal_ids_on_project_id ON internal_ids USING btree (project_id); -ALTER TABLE ONLY public.merge_request_blocks - ADD CONSTRAINT fk_1551efdd17 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_internal_ids_on_usage_and_namespace_id ON internal_ids USING btree (usage, namespace_id) WHERE (namespace_id IS NOT NULL); +CREATE UNIQUE INDEX index_internal_ids_on_usage_and_project_id ON internal_ids USING btree (usage, project_id) WHERE (project_id IS NOT NULL); --- --- Name: protected_branch_push_access_levels fk_15d2a7a4ae; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_ip_restrictions_on_group_id ON ip_restrictions USING btree (group_id); -ALTER TABLE ONLY public.protected_branch_push_access_levels - ADD CONSTRAINT fk_15d2a7a4ae FOREIGN KEY (deploy_key_id) REFERENCES public.keys(id) ON DELETE CASCADE; +CREATE INDEX index_issuable_metric_images_on_issue_id ON issuable_metric_images USING btree (issue_id); +CREATE INDEX index_issuable_resource_links_on_issue_id ON issuable_resource_links USING btree (issue_id); --- --- Name: user_achievements fk_15d6451a81; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_issuable_severities_on_issue_id ON issuable_severities USING btree (issue_id); -ALTER TABLE ONLY public.user_achievements - ADD CONSTRAINT fk_15d6451a81 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_issuable_slas_on_due_at_id_label_applied_issuable_closed ON issuable_slas USING btree (due_at, id) WHERE ((label_applied = false) AND (issuable_closed = false)); +CREATE UNIQUE INDEX index_issuable_slas_on_issue_id ON issuable_slas USING btree (issue_id); --- --- Name: internal_ids fk_162941d509; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_issue_assignees_on_user_id_and_issue_id ON issue_assignees USING btree (user_id, issue_id); -ALTER TABLE ONLY public.internal_ids - ADD CONSTRAINT fk_162941d509 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_issue_assignment_events_on_user_id ON issue_assignment_events USING btree (user_id); +CREATE UNIQUE INDEX index_issue_crm_contacts_on_issue_id_and_contact_id ON issue_customer_relations_contacts USING btree (issue_id, contact_id); --- --- Name: incident_management_timeline_events fk_17a5fafbd4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_issue_customer_relations_contacts_on_contact_id ON issue_customer_relations_contacts USING btree (contact_id); -ALTER TABLE ONLY public.incident_management_timeline_events - ADD CONSTRAINT fk_17a5fafbd4 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_issue_email_participants_on_issue_id_and_lower_email ON issue_email_participants USING btree (issue_id, lower(email)); +CREATE INDEX index_issue_emails_on_email_message_id ON issue_emails USING btree (email_message_id); --- --- Name: scan_result_policy_violations fk_17ce579abf; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_issue_emails_on_issue_id ON issue_emails USING btree (issue_id); -ALTER TABLE ONLY public.scan_result_policy_violations - ADD CONSTRAINT fk_17ce579abf FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +CREATE INDEX index_issue_links_on_namespace_id ON issue_links USING btree (namespace_id); +CREATE INDEX index_issue_links_on_source_id ON issue_links USING btree (source_id); --- --- Name: incident_management_timeline_events fk_1800597ef9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_issue_links_on_source_id_and_target_id ON issue_links USING btree (source_id, target_id); -ALTER TABLE ONLY public.incident_management_timeline_events - ADD CONSTRAINT fk_1800597ef9 FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_issue_links_on_target_id ON issue_links USING btree (target_id); +CREATE INDEX index_issue_metrics_on_issue_id_and_timestamps ON issue_metrics USING btree (issue_id, first_mentioned_in_commit_at, first_associated_with_milestone_at, first_added_to_board_at); --- --- Name: terraform_state_versions fk_180cde327a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_issue_on_project_id_state_id_and_blocking_issues_count ON issues USING btree (project_id, state_id, blocking_issues_count); -ALTER TABLE ONLY public.terraform_state_versions - ADD CONSTRAINT fk_180cde327a FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_issue_tracker_data_on_integration_id ON issue_tracker_data USING btree (integration_id); +CREATE UNIQUE INDEX index_issue_user_mentions_on_note_id ON issue_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); --- --- Name: project_features fk_18513d9b92; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_issues_on_author_id ON issues USING btree (author_id); -ALTER TABLE ONLY public.project_features - ADD CONSTRAINT fk_18513d9b92 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_issues_on_author_id_and_id_and_created_at ON issues USING btree (author_id, id, created_at); +CREATE INDEX index_issues_on_closed_by_id ON issues USING btree (closed_by_id); --- --- Name: abuse_report_events fk_18c774c06b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_issues_on_confidential ON issues USING btree (confidential); -ALTER TABLE ONLY public.abuse_report_events - ADD CONSTRAINT fk_18c774c06b FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_issues_on_description_trigram_non_latin ON issues USING gin (description gin_trgm_ops) WHERE (((title)::text !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text)) OR (description !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text))); +CREATE INDEX index_issues_on_duplicated_to_id ON issues USING btree (duplicated_to_id) WHERE (duplicated_to_id IS NOT NULL); --- --- Name: p_ci_pipelines fk_190998ef09; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_issues_on_id_and_weight ON issues USING btree (id, weight); -ALTER TABLE public.p_ci_pipelines - ADD CONSTRAINT fk_190998ef09 FOREIGN KEY (external_pull_request_id) REFERENCES public.external_pull_requests(id) ON DELETE SET NULL; +CREATE INDEX index_issues_on_last_edited_by_id ON issues USING btree (last_edited_by_id); +CREATE INDEX index_issues_on_milestone_id_and_id ON issues USING btree (milestone_id, id); --- --- Name: analytics_devops_adoption_segments fk_190a24754d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_issues_on_moved_to_id ON issues USING btree (moved_to_id) WHERE (moved_to_id IS NOT NULL); -ALTER TABLE ONLY public.analytics_devops_adoption_segments - ADD CONSTRAINT fk_190a24754d FOREIGN KEY (display_namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_issues_on_namespace_id_iid_unique ON issues USING btree (namespace_id, iid); +CREATE INDEX index_issues_on_project_health_status_asc_work_item_type ON issues USING btree (project_id, health_status, id DESC, state_id, work_item_type_id); --- --- Name: project_statistics fk_198ad46fdc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_issues_on_project_health_status_desc_work_item_type ON issues USING btree (project_id, health_status DESC NULLS LAST, id DESC, state_id, work_item_type_id); -ALTER TABLE ONLY public.project_statistics - ADD CONSTRAINT fk_198ad46fdc FOREIGN KEY (root_namespace_id) REFERENCES public.namespaces(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_issues_on_project_id_and_external_key ON issues USING btree (project_id, external_key) WHERE (external_key IS NOT NULL); +CREATE UNIQUE INDEX index_issues_on_project_id_and_iid ON issues USING btree (project_id, iid); --- --- Name: approval_policy_rule_project_links fk_1c78796d52; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_issues_on_project_id_and_state_id_and_created_at_and_id ON issues USING btree (project_id, state_id, created_at, id); -ALTER TABLE ONLY public.approval_policy_rule_project_links - ADD CONSTRAINT fk_1c78796d52 FOREIGN KEY (approval_policy_rule_id) REFERENCES public.approval_policy_rules(id) ON DELETE CASCADE; +CREATE INDEX index_issues_on_project_id_and_upvotes_count ON issues USING btree (project_id, upvotes_count); +CREATE INDEX index_issues_on_project_id_closed_at_desc_state_id_and_id ON issues USING btree (project_id, closed_at DESC NULLS LAST, state_id, id); --- --- Name: issue_links fk_1cce06b868; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_issues_on_project_id_closed_at_state_id_and_id ON issues USING btree (project_id, closed_at, state_id, id); -ALTER TABLE ONLY public.issue_links - ADD CONSTRAINT fk_1cce06b868 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_issues_on_project_id_health_status_created_at_id ON issues USING btree (project_id, health_status, created_at, id); +CREATE INDEX index_issues_on_promoted_to_epic_id ON issues USING btree (promoted_to_epic_id) WHERE (promoted_to_epic_id IS NOT NULL); --- --- Name: agent_project_authorizations fk_1d30bb4987; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_issues_on_sprint_id ON issues USING btree (sprint_id); -ALTER TABLE ONLY public.agent_project_authorizations - ADD CONSTRAINT fk_1d30bb4987 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_issues_on_title_trigram_non_latin ON issues USING gin (title gin_trgm_ops) WHERE (((title)::text !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text)) OR (description !~ similar_escape('[\u0000-\u02FF\u1E00-\u1EFF\u2070-\u218F]*'::text, NULL::text))); +CREATE INDEX index_issues_on_updated_at ON issues USING btree (updated_at); --- --- Name: ai_agent_version_attachments fk_1d4253673b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_issues_on_updated_by_id ON issues USING btree (updated_by_id) WHERE (updated_by_id IS NOT NULL); -ALTER TABLE ONLY public.ai_agent_version_attachments - ADD CONSTRAINT fk_1d4253673b FOREIGN KEY (ai_vectorizable_file_id) REFERENCES public.ai_vectorizable_files(id) ON DELETE CASCADE; +CREATE INDEX index_issues_on_work_item_type_id_project_id_created_at_state ON issues USING btree (work_item_type_id, project_id, created_at, state_id); +CREATE INDEX index_iterations_cadences_on_group_id ON iterations_cadences USING btree (group_id); --- --- Name: design_management_versions fk_1dccb304f8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_jira_connect_installations_on_client_key ON jira_connect_installations USING btree (client_key); -ALTER TABLE ONLY public.design_management_versions - ADD CONSTRAINT fk_1dccb304f8 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_jira_connect_installations_on_instance_url ON jira_connect_installations USING btree (instance_url); +CREATE INDEX index_jira_connect_subscriptions_on_namespace_id ON jira_connect_subscriptions USING btree (namespace_id); --- --- Name: boards fk_1e9a074a35; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_jira_imports_on_label_id ON jira_imports USING btree (label_id); -ALTER TABLE ONLY public.boards - ADD CONSTRAINT fk_1e9a074a35 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_jira_imports_on_project_id_and_jira_project_key ON jira_imports USING btree (project_id, jira_project_key); +CREATE INDEX index_jira_imports_on_user_id ON jira_imports USING btree (user_id); --- --- Name: zoekt_enabled_namespaces fk_1effa65b25; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_jira_tracker_data_on_integration_id ON jira_tracker_data USING btree (integration_id); -ALTER TABLE ONLY public.zoekt_enabled_namespaces - ADD CONSTRAINT fk_1effa65b25 FOREIGN KEY (root_namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_job_artifact_states_failed_verification ON ci_job_artifact_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +CREATE INDEX index_job_artifact_states_needs_verification ON ci_job_artifact_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); --- --- Name: import_placeholder_memberships fk_1f4659deee; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_job_artifact_states_on_verification_state ON ci_job_artifact_states USING btree (verification_state); -ALTER TABLE ONLY public.import_placeholder_memberships - ADD CONSTRAINT fk_1f4659deee FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_job_artifact_states_pending_verification ON ci_job_artifact_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); +CREATE INDEX index_key_updated_at_on_user_custom_attribute ON user_custom_attributes USING btree (key, updated_at); --- --- Name: epics fk_1fbed67632; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_keys_on_expires_at_and_id ON keys USING btree (date(timezone('UTC'::text, expires_at)), id) WHERE (expiry_notification_delivered_at IS NULL); -ALTER TABLE ONLY public.epics - ADD CONSTRAINT fk_1fbed67632 FOREIGN KEY (start_date_sourcing_milestone_id) REFERENCES public.milestones(id) ON DELETE SET NULL; +CREATE INDEX index_keys_on_fingerprint ON keys USING btree (fingerprint); +CREATE UNIQUE INDEX index_keys_on_fingerprint_sha256_unique ON keys USING btree (fingerprint_sha256); --- --- Name: ghost_user_migrations fk_202e642a2f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_keys_on_id_and_ldap_key_type ON keys USING btree (id) WHERE ((type)::text = 'LDAPKey'::text); -ALTER TABLE ONLY public.ghost_user_migrations - ADD CONSTRAINT fk_202e642a2f FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_keys_on_last_used_at ON keys USING btree (last_used_at DESC NULLS LAST); +CREATE INDEX index_keys_on_user_id ON keys USING btree (user_id); --- --- Name: coverage_fuzzing_corpuses fk_204d40056a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_kubernetes_namespaces_on_cluster_project_environment_id ON clusters_kubernetes_namespaces USING btree (cluster_id, project_id, environment_id); -ALTER TABLE ONLY public.coverage_fuzzing_corpuses - ADD CONSTRAINT fk_204d40056a FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_label_links_on_label_id_and_target_type ON label_links USING btree (label_id, target_type); +CREATE INDEX index_label_links_on_target_id_and_target_type ON label_links USING btree (target_id, target_type); --- --- Name: namespace_settings fk_20cf0eb2f9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_label_priorities_on_label_id ON label_priorities USING btree (label_id); -ALTER TABLE ONLY public.namespace_settings - ADD CONSTRAINT fk_20cf0eb2f9 FOREIGN KEY (default_compliance_framework_id) REFERENCES public.compliance_management_frameworks(id) ON DELETE SET NULL; +CREATE INDEX index_label_priorities_on_priority ON label_priorities USING btree (priority); +CREATE UNIQUE INDEX index_label_priorities_on_project_id_and_label_id ON label_priorities USING btree (project_id, label_id); --- --- Name: p_ci_build_trace_metadata fk_21d25cac1a_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_labels_on_group_id ON labels USING btree (group_id); -ALTER TABLE public.p_ci_build_trace_metadata - ADD CONSTRAINT fk_21d25cac1a_p FOREIGN KEY (partition_id, trace_artifact_id) REFERENCES public.p_ci_job_artifacts(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +CREATE UNIQUE INDEX index_labels_on_group_id_and_title_varchar_unique ON labels USING btree (group_id, title varchar_pattern_ops) WHERE (project_id IS NULL); +CREATE INDEX index_labels_on_project_id ON labels USING btree (project_id); --- --- Name: users_star_projects fk_22cd27ddfc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_labels_on_project_id_and_title_varchar_unique ON labels USING btree (project_id, title varchar_pattern_ops) WHERE (group_id IS NULL); -ALTER TABLE ONLY public.users_star_projects - ADD CONSTRAINT fk_22cd27ddfc FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_labels_on_template ON labels USING btree (template) WHERE template; +CREATE INDEX index_labels_on_title_varchar ON labels USING btree (title varchar_pattern_ops); --- --- Name: alert_management_alerts fk_2358b75436; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_labels_on_type_and_project_id ON labels USING btree (type, project_id); -ALTER TABLE ONLY public.alert_management_alerts - ADD CONSTRAINT fk_2358b75436 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE SET NULL; +CREATE INDEX index_ldap_group_links_on_member_role_id ON ldap_group_links USING btree (member_role_id); +CREATE UNIQUE INDEX index_lfs_file_locks_on_project_id_and_path ON lfs_file_locks USING btree (project_id, path); --- --- Name: design_management_designs fk_239cd63678; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_lfs_file_locks_on_user_id ON lfs_file_locks USING btree (user_id); -ALTER TABLE ONLY public.design_management_designs - ADD CONSTRAINT fk_239cd63678 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_lfs_object_states_failed_verification ON lfs_object_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +CREATE INDEX index_lfs_object_states_needs_verification ON lfs_object_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); --- --- Name: audit_events_streaming_http_instance_namespace_filters fk_23f3ab7df0; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_lfs_object_states_on_lfs_object_id ON lfs_object_states USING btree (lfs_object_id); -ALTER TABLE ONLY public.audit_events_streaming_http_instance_namespace_filters - ADD CONSTRAINT fk_23f3ab7df0 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_lfs_object_states_on_verification_state ON lfs_object_states USING btree (verification_state); +CREATE INDEX index_lfs_object_states_pending_verification ON lfs_object_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); --- --- Name: import_failures fk_24b824da43; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_lfs_objects_on_file ON lfs_objects USING btree (file); -ALTER TABLE ONLY public.import_failures - ADD CONSTRAINT fk_24b824da43 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_lfs_objects_on_file_store ON lfs_objects USING btree (file_store); +CREATE UNIQUE INDEX index_lfs_objects_on_oid ON lfs_objects USING btree (oid); --- --- Name: project_ci_cd_settings fk_24c15d2f2e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_lfs_objects_projects_on_lfs_object_id ON lfs_objects_projects USING btree (lfs_object_id); -ALTER TABLE ONLY public.project_ci_cd_settings - ADD CONSTRAINT fk_24c15d2f2e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_lfs_objects_projects_on_project_id_and_lfs_object_id ON lfs_objects_projects USING btree (project_id, lfs_object_id); +CREATE INDEX index_list_user_preferences_on_list_id ON list_user_preferences USING btree (list_id); --- --- Name: agent_activity_events fk_256c631779; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_list_user_preferences_on_user_id ON list_user_preferences USING btree (user_id); -ALTER TABLE ONLY public.agent_activity_events - ADD CONSTRAINT fk_256c631779 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_list_user_preferences_on_user_id_and_list_id ON list_user_preferences USING btree (user_id, list_id); +CREATE UNIQUE INDEX index_lists_on_board_id_and_label_id ON lists USING btree (board_id, label_id); --- --- Name: zoekt_repositories fk_25a92aeccd; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_lists_on_iteration_id ON lists USING btree (iteration_id); -ALTER TABLE ONLY public.zoekt_repositories - ADD CONSTRAINT fk_25a92aeccd FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE SET NULL; +CREATE INDEX index_lists_on_label_id ON lists USING btree (label_id); +CREATE INDEX index_lists_on_list_type ON lists USING btree (list_type); --- --- Name: ci_pipelines fk_262d4c2d19_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_lists_on_milestone_id ON lists USING btree (milestone_id); -ALTER TABLE ONLY public.ci_pipelines - ADD CONSTRAINT fk_262d4c2d19_p FOREIGN KEY (auto_canceled_by_partition_id, auto_canceled_by_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL; +CREATE INDEX index_lists_on_user_id ON lists USING btree (user_id); +CREATE INDEX index_loose_foreign_keys_deleted_records_for_partitioned_query ON ONLY loose_foreign_keys_deleted_records USING btree (partition, fully_qualified_table_name, consume_after, id) WHERE (status = 1); --- --- Name: ci_pipelines fk_262d4c2d19_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_manifest_states_failed_verification ON dependency_proxy_manifest_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); -ALTER TABLE ONLY public.ci_pipelines - ADD CONSTRAINT fk_262d4c2d19_p_tmp FOREIGN KEY (auto_canceled_by_partition_id, auto_canceled_by_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL NOT VALID; +CREATE INDEX index_manifest_states_needs_verification ON dependency_proxy_manifest_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); +CREATE INDEX index_manifest_states_on_dependency_proxy_manifest_id ON dependency_proxy_manifest_states USING btree (dependency_proxy_manifest_id); --- --- Name: user_namespace_callouts fk_27a69fd1bd; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_manifest_states_on_verification_state ON dependency_proxy_manifest_states USING btree (verification_state); -ALTER TABLE ONLY public.user_namespace_callouts - ADD CONSTRAINT fk_27a69fd1bd FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_manifest_states_pending_verification ON dependency_proxy_manifest_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); +CREATE INDEX index_member_approval_on_member_id ON member_approvals USING btree (member_id); --- --- Name: work_item_dates_sources fk_283fb4ad36; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_member_approval_on_member_namespace_id ON member_approvals USING btree (member_namespace_id); -ALTER TABLE ONLY public.work_item_dates_sources - ADD CONSTRAINT fk_283fb4ad36 FOREIGN KEY (start_date_sourcing_milestone_id) REFERENCES public.milestones(id) ON DELETE SET NULL; +CREATE INDEX index_member_approval_on_requested_by_id ON member_approvals USING btree (requested_by_id); +CREATE INDEX index_member_approval_on_reviewed_by_id ON member_approvals USING btree (reviewed_by_id); --- --- Name: project_group_links fk_28a1244b01; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_member_approvals_on_member_namespace_id_status ON member_approvals USING btree (member_namespace_id, status) WHERE (status = 0); -ALTER TABLE ONLY public.project_group_links - ADD CONSTRAINT fk_28a1244b01 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE NOT VALID; +CREATE INDEX index_member_approvals_on_member_role_id ON member_approvals USING btree (member_role_id); +CREATE INDEX index_member_approvals_on_user_id ON member_approvals USING btree (user_id); --- --- Name: merge_requests_compliance_violations fk_290ec1ab02; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_member_roles_on_name_unique ON member_roles USING btree (name) WHERE (namespace_id IS NULL); -ALTER TABLE ONLY public.merge_requests_compliance_violations - ADD CONSTRAINT fk_290ec1ab02 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +CREATE INDEX index_member_roles_on_namespace_id ON member_roles USING btree (namespace_id); +CREATE UNIQUE INDEX index_member_roles_on_namespace_id_name_unique ON member_roles USING btree (namespace_id, name) WHERE (namespace_id IS NOT NULL); --- --- Name: coverage_fuzzing_corpuses fk_29f6f15f82; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_member_roles_on_occupies_seat ON member_roles USING btree (occupies_seat); -ALTER TABLE ONLY public.coverage_fuzzing_corpuses - ADD CONSTRAINT fk_29f6f15f82 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_member_roles_on_permissions ON member_roles USING gin (permissions); +CREATE INDEX index_members_on_access_level ON members USING btree (access_level); --- --- Name: resource_link_events fk_2a039c40f4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_members_on_expires_at ON members USING btree (expires_at); -ALTER TABLE ONLY public.resource_link_events - ADD CONSTRAINT fk_2a039c40f4 FOREIGN KEY (system_note_metadata_id) REFERENCES public.system_note_metadata(id) ON DELETE CASCADE; +CREATE INDEX index_members_on_expiring_at_access_level_id ON members USING btree (expires_at, access_level, id) WHERE ((requested_at IS NULL) AND (expiry_notified_at IS NULL)); +CREATE INDEX index_members_on_invite_email ON members USING btree (invite_email); --- --- Name: ml_candidates fk_2a0421d824; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_members_on_invite_token ON members USING btree (invite_token); -ALTER TABLE ONLY public.ml_candidates - ADD CONSTRAINT fk_2a0421d824 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_members_on_lower_invite_email_with_token ON members USING btree (lower((invite_email)::text)) WHERE (invite_token IS NOT NULL); +CREATE INDEX index_members_on_member_namespace_id_compound ON members USING btree (member_namespace_id, type, requested_at, id); --- --- Name: approval_group_rules fk_2a74c6e52d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_members_on_member_role_id ON members USING btree (member_role_id); -ALTER TABLE ONLY public.approval_group_rules - ADD CONSTRAINT fk_2a74c6e52d FOREIGN KEY (approval_policy_rule_id) REFERENCES public.approval_policy_rules(id) ON DELETE CASCADE; +CREATE INDEX index_members_on_requested_at ON members USING btree (requested_at); +CREATE INDEX index_members_on_source_and_type_and_access_level ON members USING btree (source_id, source_type, type, access_level); --- --- Name: agent_group_authorizations fk_2c9f941965; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_members_on_source_and_type_and_id ON members USING btree (source_id, source_type, type, id) WHERE (invite_token IS NULL); -ALTER TABLE ONLY public.agent_group_authorizations - ADD CONSTRAINT fk_2c9f941965 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_members_on_source_state_type_access_level_and_user_id ON members USING btree (source_id, source_type, state, type, access_level, user_id) WHERE ((requested_at IS NULL) AND (invite_token IS NULL)); +CREATE INDEX index_members_on_user_id_and_access_level_requested_at_is_null ON members USING btree (user_id, access_level) WHERE (requested_at IS NULL); --- --- Name: deployment_approvals fk_2d060dfc73; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_members_on_user_id_created_at ON members USING btree (user_id, created_at) WHERE ((ldap = true) AND ((type)::text = 'GroupMember'::text) AND ((source_type)::text = 'Namespace'::text)); -ALTER TABLE ONLY public.deployment_approvals - ADD CONSTRAINT fk_2d060dfc73 FOREIGN KEY (deployment_id) REFERENCES public.deployments(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_merge_request_assignees_on_merge_request_id_and_user_id ON merge_request_assignees USING btree (merge_request_id, user_id); +CREATE INDEX index_merge_request_assignees_on_project_id ON merge_request_assignees USING btree (project_id); --- --- Name: notes fk_2e82291620; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_request_assignees_on_user_id ON merge_request_assignees USING btree (user_id); -ALTER TABLE ONLY public.notes - ADD CONSTRAINT fk_2e82291620 FOREIGN KEY (review_id) REFERENCES public.reviews(id) ON DELETE SET NULL; +CREATE INDEX index_merge_request_assignment_events_on_project_id ON merge_request_assignment_events USING btree (project_id); +CREATE INDEX index_merge_request_assignment_events_on_user_id ON merge_request_assignment_events USING btree (user_id); --- --- Name: lfs_objects_projects fk_2eb33f7a78; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_request_blocks_on_blocked_merge_request_id ON merge_request_blocks USING btree (blocked_merge_request_id); -ALTER TABLE ONLY public.lfs_objects_projects - ADD CONSTRAINT fk_2eb33f7a78 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE NOT VALID; +CREATE INDEX index_merge_request_blocks_on_project_id ON merge_request_blocks USING btree (project_id); +CREATE UNIQUE INDEX index_merge_request_cleanup_schedules_on_merge_request_id ON merge_request_cleanup_schedules USING btree (merge_request_id); --- --- Name: vulnerability_merge_request_links fk_2ef3954596; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_request_cleanup_schedules_on_status ON merge_request_cleanup_schedules USING btree (status); -ALTER TABLE ONLY public.vulnerability_merge_request_links - ADD CONSTRAINT fk_2ef3954596 FOREIGN KEY (vulnerability_id) REFERENCES public.vulnerabilities(id) ON DELETE CASCADE; +CREATE INDEX index_merge_request_context_commits_on_project_id ON merge_request_context_commits USING btree (project_id); +CREATE UNIQUE INDEX index_merge_request_diff_commit_users_on_name_and_email ON merge_request_diff_commit_users USING btree (name, email); --- --- Name: duo_workflows_workflows fk_2f6398d8ee; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_request_diff_commits_on_sha ON merge_request_diff_commits USING btree (sha); -ALTER TABLE ONLY public.duo_workflows_workflows - ADD CONSTRAINT fk_2f6398d8ee FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_merge_request_diff_details_failed_verification ON merge_request_diff_details USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +CREATE INDEX index_merge_request_diff_details_needs_verification ON merge_request_diff_details USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); --- --- Name: members fk_2f85abf8f1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_request_diff_details_on_merge_request_diff_id ON merge_request_diff_details USING btree (merge_request_diff_id); -ALTER TABLE ONLY public.members - ADD CONSTRAINT fk_2f85abf8f1 FOREIGN KEY (member_namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_merge_request_diff_details_on_verification_state ON merge_request_diff_details USING btree (verification_state); +CREATE INDEX index_merge_request_diff_details_pending_verification ON merge_request_diff_details USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); --- --- Name: group_group_links fk_2fbc7071a3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_request_diffs_by_id_partial ON merge_request_diffs USING btree (id) WHERE ((files_count > 0) AND ((NOT stored_externally) OR (stored_externally IS NULL))); -ALTER TABLE ONLY public.group_group_links - ADD CONSTRAINT fk_2fbc7071a3 FOREIGN KEY (member_role_id) REFERENCES public.member_roles(id) ON DELETE SET NULL; +CREATE INDEX index_merge_request_diffs_on_external_diff ON merge_request_diffs USING btree (external_diff); +CREATE INDEX index_merge_request_diffs_on_external_diff_store ON merge_request_diffs USING btree (external_diff_store); --- --- Name: zoekt_replicas fk_3035f4b498; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_request_diffs_on_merge_request_id_and_id ON merge_request_diffs USING btree (merge_request_id, id); -ALTER TABLE ONLY public.zoekt_replicas - ADD CONSTRAINT fk_3035f4b498 FOREIGN KEY (zoekt_enabled_namespace_id) REFERENCES public.zoekt_enabled_namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_merge_request_diffs_on_project_id ON merge_request_diffs USING btree (project_id); +CREATE UNIQUE INDEX index_merge_request_diffs_on_unique_merge_request_id ON merge_request_diffs USING btree (merge_request_id) WHERE (diff_type = 2); --- --- Name: analytics_cycle_analytics_group_stages fk_3078345d6d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_request_metrics_on_first_deployed_to_production_at ON merge_request_metrics USING btree (first_deployed_to_production_at); -ALTER TABLE ONLY public.analytics_cycle_analytics_group_stages - ADD CONSTRAINT fk_3078345d6d FOREIGN KEY (stage_event_hash_id) REFERENCES public.analytics_cycle_analytics_stage_event_hashes(id) ON DELETE CASCADE; +CREATE INDEX index_merge_request_metrics_on_latest_closed_at ON merge_request_metrics USING btree (latest_closed_at) WHERE (latest_closed_at IS NOT NULL); +CREATE INDEX index_merge_request_metrics_on_latest_closed_by_id ON merge_request_metrics USING btree (latest_closed_by_id); --- --- Name: oauth_device_grants fk_308d5b76fe; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_request_metrics_on_merge_request_id_and_merged_at ON merge_request_metrics USING btree (merge_request_id, merged_at) WHERE (merged_at IS NOT NULL); -ALTER TABLE ONLY public.oauth_device_grants - ADD CONSTRAINT fk_308d5b76fe FOREIGN KEY (application_id) REFERENCES public.oauth_applications(id) ON DELETE CASCADE; +CREATE INDEX index_merge_request_metrics_on_merged_at ON merge_request_metrics USING btree (merged_at); +CREATE INDEX index_merge_request_metrics_on_pipeline_id ON merge_request_metrics USING btree (pipeline_id); --- --- Name: lists fk_30f2a831f4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_request_requested_changes_on_merge_request_id ON merge_request_requested_changes USING btree (merge_request_id); -ALTER TABLE ONLY public.lists - ADD CONSTRAINT fk_30f2a831f4 FOREIGN KEY (iteration_id) REFERENCES public.sprints(id) ON DELETE CASCADE; +CREATE INDEX index_merge_request_requested_changes_on_project_id ON merge_request_requested_changes USING btree (project_id); +CREATE INDEX index_merge_request_requested_changes_on_user_id ON merge_request_requested_changes USING btree (user_id); --- --- Name: approvals fk_310d714958; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_merge_request_reviewers_on_merge_request_id_and_user_id ON merge_request_reviewers USING btree (merge_request_id, user_id); -ALTER TABLE ONLY public.approvals - ADD CONSTRAINT fk_310d714958 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +CREATE INDEX index_merge_request_reviewers_on_project_id ON merge_request_reviewers USING btree (project_id); +CREATE INDEX index_merge_request_reviewers_on_user_id ON merge_request_reviewers USING btree (user_id); --- --- Name: namespaces fk_319256d87a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_merge_request_user_mentions_on_note_id ON merge_request_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); -ALTER TABLE ONLY public.namespaces - ADD CONSTRAINT fk_319256d87a FOREIGN KEY (file_template_project_id) REFERENCES public.projects(id) ON DELETE SET NULL; +CREATE INDEX index_merge_requests_closing_issues_on_issue_id ON merge_requests_closing_issues USING btree (issue_id); +CREATE INDEX index_merge_requests_closing_issues_on_merge_request_id ON merge_requests_closing_issues USING btree (merge_request_id); --- --- Name: design_management_repositories fk_335d4698e2; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_requests_closing_issues_on_project_id ON merge_requests_closing_issues USING btree (project_id); -ALTER TABLE ONLY public.design_management_repositories - ADD CONSTRAINT fk_335d4698e2 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_merge_requests_compliance_violations_on_violating_user_id ON merge_requests_compliance_violations USING btree (violating_user_id); +CREATE UNIQUE INDEX index_merge_requests_compliance_violations_unique_columns ON merge_requests_compliance_violations USING btree (merge_request_id, violating_user_id, reason); --- --- Name: issue_tracker_data fk_33921c0ee1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_requests_for_latest_diffs_with_state_merged ON merge_requests USING btree (latest_merge_request_diff_id, target_project_id) WHERE (state_id = 3); -ALTER TABLE ONLY public.issue_tracker_data - ADD CONSTRAINT fk_33921c0ee1 FOREIGN KEY (integration_id) REFERENCES public.integrations(id) ON DELETE CASCADE; +CREATE INDEX index_merge_requests_id_created_at_prepared_at ON merge_requests USING btree (created_at, id) WHERE (prepared_at IS NULL); +CREATE INDEX index_merge_requests_on_assignee_id ON merge_requests USING btree (assignee_id); --- --- Name: user_project_callouts fk_33b4814f6b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_requests_on_author_id_and_created_at ON merge_requests USING btree (author_id, created_at); -ALTER TABLE ONLY public.user_project_callouts - ADD CONSTRAINT fk_33b4814f6b FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_merge_requests_on_author_id_and_id ON merge_requests USING btree (author_id, id); +CREATE INDEX index_merge_requests_on_author_id_and_target_project_id ON merge_requests USING btree (author_id, target_project_id); --- --- Name: namespaces fk_3448c97865; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_requests_on_created_at ON merge_requests USING btree (created_at); -ALTER TABLE ONLY public.namespaces - ADD CONSTRAINT fk_3448c97865 FOREIGN KEY (push_rule_id) REFERENCES public.push_rules(id) ON DELETE SET NULL; +CREATE INDEX index_merge_requests_on_description_trigram ON merge_requests USING gin (description gin_trgm_ops) WITH (fastupdate='false'); +CREATE INDEX index_merge_requests_on_head_pipeline_id ON merge_requests USING btree (head_pipeline_id); --- --- Name: project_topics fk_34af9ab07a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_requests_on_latest_merge_request_diff_id ON merge_requests USING btree (latest_merge_request_diff_id); -ALTER TABLE ONLY public.project_topics - ADD CONSTRAINT fk_34af9ab07a FOREIGN KEY (topic_id) REFERENCES public.topics(id) ON DELETE CASCADE; +CREATE INDEX index_merge_requests_on_merge_user_id ON merge_requests USING btree (merge_user_id) WHERE (merge_user_id IS NOT NULL); +CREATE INDEX index_merge_requests_on_milestone_id ON merge_requests USING btree (milestone_id); --- --- Name: saml_providers fk_351dde3a84; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_requests_on_source_branch ON merge_requests USING btree (source_branch); -ALTER TABLE ONLY public.saml_providers - ADD CONSTRAINT fk_351dde3a84 FOREIGN KEY (member_role_id) REFERENCES public.member_roles(id) ON DELETE SET NULL; +CREATE INDEX index_merge_requests_on_source_project_id_and_source_branch ON merge_requests USING btree (source_project_id, source_branch); +CREATE INDEX index_merge_requests_on_sprint_id ON merge_requests USING btree (sprint_id); --- --- Name: epics fk_3654b61b03; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_requests_on_target_branch ON merge_requests USING btree (target_branch); -ALTER TABLE ONLY public.epics - ADD CONSTRAINT fk_3654b61b03 FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_merge_requests_on_target_project_id_and_created_at_and_id ON merge_requests USING btree (target_project_id, created_at, id); +CREATE UNIQUE INDEX index_merge_requests_on_target_project_id_and_iid ON merge_requests USING btree (target_project_id, iid); --- --- Name: sprints fk_365d1db505; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_requests_on_target_project_id_and_merged_commit_sha ON merge_requests USING btree (target_project_id, merged_commit_sha); -ALTER TABLE ONLY public.sprints - ADD CONSTRAINT fk_365d1db505 FOREIGN KEY (iterations_cadence_id) REFERENCES public.iterations_cadences(id) ON DELETE CASCADE; +CREATE INDEX index_merge_requests_on_target_project_id_and_source_branch ON merge_requests USING btree (target_project_id, source_branch); +CREATE INDEX index_merge_requests_on_target_project_id_and_squash_commit_sha ON merge_requests USING btree (target_project_id, squash_commit_sha); --- --- Name: operations_feature_flags_issues fk_3685a990ae; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_requests_on_target_project_id_and_target_branch ON merge_requests USING btree (target_project_id, target_branch) WHERE ((state_id = 1) AND (merge_when_pipeline_succeeds = true)); -ALTER TABLE ONLY public.operations_feature_flags_issues - ADD CONSTRAINT fk_3685a990ae FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_merge_requests_on_target_project_id_and_updated_at_and_id ON merge_requests USING btree (target_project_id, updated_at, id); +CREATE INDEX index_merge_requests_on_title_trigram ON merge_requests USING gin (title gin_trgm_ops) WITH (fastupdate='false'); --- --- Name: push_event_payloads fk_36c74129da; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_requests_on_tp_id_and_merge_commit_sha_and_id ON merge_requests USING btree (target_project_id, merge_commit_sha, id); -ALTER TABLE ONLY public.push_event_payloads - ADD CONSTRAINT fk_36c74129da FOREIGN KEY (event_id) REFERENCES public.events(id) ON DELETE CASCADE; +CREATE INDEX index_merge_requests_on_updated_by_id ON merge_requests USING btree (updated_by_id) WHERE (updated_by_id IS NOT NULL); +CREATE UNIQUE INDEX index_merge_trains_on_merge_request_id ON merge_trains USING btree (merge_request_id); --- --- Name: protected_tag_create_access_levels fk_386a642e13; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_merge_trains_on_pipeline_id ON merge_trains USING btree (pipeline_id); -ALTER TABLE ONLY public.protected_tag_create_access_levels - ADD CONSTRAINT fk_386a642e13 FOREIGN KEY (deploy_key_id) REFERENCES public.keys(id) ON DELETE CASCADE; +CREATE INDEX index_merge_trains_on_user_id ON merge_trains USING btree (user_id); +CREATE INDEX index_metrics_dashboard_annotations_on_cluster_id_and_3_columns ON metrics_dashboard_annotations USING btree (cluster_id, dashboard_path, starting_at, ending_at) WHERE (cluster_id IS NOT NULL); --- --- Name: incident_management_timeline_events fk_38a74279df; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_metrics_dashboard_annotations_on_environment_id_and_3_col ON metrics_dashboard_annotations USING btree (environment_id, dashboard_path, starting_at, ending_at) WHERE (environment_id IS NOT NULL); -ALTER TABLE ONLY public.incident_management_timeline_events - ADD CONSTRAINT fk_38a74279df FOREIGN KEY (updated_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_metrics_dashboard_annotations_on_timespan_end ON metrics_dashboard_annotations USING btree (COALESCE(ending_at, starting_at)); +CREATE INDEX index_metrics_users_starred_dashboards_on_project_id ON metrics_users_starred_dashboards USING btree (project_id); --- --- Name: import_export_uploads fk_38e11735aa; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_migration_jobs_on_migration_id_and_finished_at ON batched_background_migration_jobs USING btree (batched_background_migration_id, finished_at); -ALTER TABLE ONLY public.import_export_uploads - ADD CONSTRAINT fk_38e11735aa FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_migration_jobs_on_migration_id_and_max_value ON batched_background_migration_jobs USING btree (batched_background_migration_id, max_value); +CREATE INDEX index_milestone_releases_on_release_id ON milestone_releases USING btree (release_id); --- --- Name: approval_group_rules_users fk_3995d73930; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_milestones_on_description_trigram ON milestones USING gin (description gin_trgm_ops); -ALTER TABLE ONLY public.approval_group_rules_users - ADD CONSTRAINT fk_3995d73930 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_milestones_on_due_date ON milestones USING btree (due_date); +CREATE INDEX index_milestones_on_group_id ON milestones USING btree (group_id); --- --- Name: bulk_import_exports fk_39c726d3b5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_milestones_on_project_id_and_iid ON milestones USING btree (project_id, iid); -ALTER TABLE ONLY public.bulk_import_exports - ADD CONSTRAINT fk_39c726d3b5 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_milestones_on_title ON milestones USING btree (title); +CREATE INDEX index_milestones_on_title_trigram ON milestones USING gin (title gin_trgm_ops); --- --- Name: ml_model_versions fk_39f8aa0b8a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_mirror_data_non_scheduled_or_started ON project_mirror_data USING btree (next_execution_timestamp, retry_count) WHERE ((status)::text <> ALL ('{scheduled,started}'::text[])); -ALTER TABLE ONLY public.ml_model_versions - ADD CONSTRAINT fk_39f8aa0b8a FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_ml_candidate_metadata_on_candidate_id_and_name ON ml_candidate_metadata USING btree (candidate_id, name); +CREATE INDEX index_ml_candidate_metadata_on_name ON ml_candidate_metadata USING btree (name); --- --- Name: p_ci_builds fk_3a9eaa254d_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_ml_candidate_metadata_on_project_id ON ml_candidate_metadata USING btree (project_id); -ALTER TABLE public.p_ci_builds - ADD CONSTRAINT fk_3a9eaa254d_p FOREIGN KEY (partition_id, stage_id) REFERENCES public.p_ci_stages(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +CREATE INDEX index_ml_candidate_metrics_on_candidate_id ON ml_candidate_metrics USING btree (candidate_id); +CREATE INDEX index_ml_candidate_params_on_candidate_id ON ml_candidate_params USING btree (candidate_id); --- --- Name: draft_notes fk_3ac2bcb746; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ml_candidate_params_on_candidate_id_on_name ON ml_candidate_params USING btree (candidate_id, name); -ALTER TABLE ONLY public.draft_notes - ADD CONSTRAINT fk_3ac2bcb746 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_ml_candidates_on_ci_build_id ON ml_candidates USING btree (ci_build_id); +CREATE UNIQUE INDEX index_ml_candidates_on_experiment_id_and_eid ON ml_candidates USING btree (experiment_id, eid); --- --- Name: agent_activity_events fk_3af186389b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ml_candidates_on_model_version_id ON ml_candidates USING btree (model_version_id); -ALTER TABLE ONLY public.agent_activity_events - ADD CONSTRAINT fk_3af186389b FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE SET NULL; +CREATE INDEX index_ml_candidates_on_package_id ON ml_candidates USING btree (package_id); +CREATE INDEX index_ml_candidates_on_project_id ON ml_candidates USING btree (project_id); --- --- Name: protected_environment_approval_rules fk_3b3f2f0470; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_ml_candidates_on_project_id_on_internal_id ON ml_candidates USING btree (project_id, internal_id); -ALTER TABLE ONLY public.protected_environment_approval_rules - ADD CONSTRAINT fk_3b3f2f0470 FOREIGN KEY (protected_environment_group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_ml_candidates_on_user_id ON ml_candidates USING btree (user_id); +CREATE UNIQUE INDEX index_ml_experiment_metadata_on_experiment_id_and_name ON ml_experiment_metadata USING btree (experiment_id, name); --- --- Name: issues fk_3b8c72ea56; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_ml_experiment_metadata_on_project_id ON ml_experiment_metadata USING btree (project_id); -ALTER TABLE ONLY public.issues - ADD CONSTRAINT fk_3b8c72ea56 FOREIGN KEY (sprint_id) REFERENCES public.sprints(id) ON DELETE SET NULL; +CREATE INDEX index_ml_experiments_on_model_id ON ml_experiments USING btree (model_id); +CREATE UNIQUE INDEX index_ml_experiments_on_project_id_and_iid ON ml_experiments USING btree (project_id, iid); --- --- Name: merge_request_reviewers fk_3b8e02a846; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ml_experiments_on_project_id_and_name ON ml_experiments USING btree (project_id, name); -ALTER TABLE ONLY public.merge_request_reviewers - ADD CONSTRAINT fk_3b8e02a846 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_ml_experiments_on_user_id ON ml_experiments USING btree (user_id); +CREATE INDEX index_ml_model_metadata_on_project_id ON ml_model_metadata USING btree (project_id); --- --- Name: epics fk_3c1fd1cccc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_ml_model_version_metadata_on_project_id ON ml_model_version_metadata USING btree (project_id); -ALTER TABLE ONLY public.epics - ADD CONSTRAINT fk_3c1fd1cccc FOREIGN KEY (due_date_sourcing_milestone_id) REFERENCES public.milestones(id) ON DELETE SET NULL; +CREATE INDEX index_ml_model_versions_on_created_at_on_model_id ON ml_model_versions USING btree (model_id, created_at); +CREATE INDEX index_ml_model_versions_on_package_id ON ml_model_versions USING btree (package_id); --- --- Name: release_links fk_3cb34866ac; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_ml_model_versions_on_project_id ON ml_model_versions USING btree (project_id); -ALTER TABLE ONLY public.release_links - ADD CONSTRAINT fk_3cb34866ac FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_ml_model_versions_on_project_id_and_model_id_and_version ON ml_model_versions USING btree (project_id, model_id, version); +CREATE INDEX index_ml_models_on_project_id ON ml_models USING btree (project_id); --- --- Name: bulk_import_export_uploads fk_3cbf0b9a2e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ml_models_on_project_id_and_name ON ml_models USING btree (project_id, name); -ALTER TABLE ONLY public.bulk_import_export_uploads - ADD CONSTRAINT fk_3cbf0b9a2e FOREIGN KEY (batch_id) REFERENCES public.bulk_import_export_batches(id) ON DELETE CASCADE; +CREATE INDEX index_ml_models_on_user_id ON ml_models USING btree (user_id); +CREATE UNIQUE INDEX index_mr_blocks_on_blocking_and_blocked_mr_ids ON merge_request_blocks USING btree (blocking_merge_request_id, blocked_merge_request_id); --- --- Name: compliance_framework_security_policies fk_3ce58167f1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_mr_cleanup_schedules_timestamps_status ON merge_request_cleanup_schedules USING btree (scheduled_at) WHERE ((completed_at IS NULL) AND (status = 0)); -ALTER TABLE ONLY public.compliance_framework_security_policies - ADD CONSTRAINT fk_3ce58167f1 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_mr_context_commits_on_merge_request_id_and_sha ON merge_request_context_commits USING btree (merge_request_id, sha); +CREATE INDEX index_mr_metrics_on_target_project_id_merged_at_nulls_last ON merge_request_metrics USING btree (target_project_id, merged_at DESC NULLS LAST, id DESC); --- --- Name: p_ci_pipelines fk_3d34ab2e06; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_mr_metrics_on_target_project_id_merged_at_time_to_merge ON merge_request_metrics USING btree (target_project_id, merged_at, created_at) WHERE (merged_at > created_at); -ALTER TABLE public.p_ci_pipelines - ADD CONSTRAINT fk_3d34ab2e06 FOREIGN KEY (pipeline_schedule_id) REFERENCES public.ci_pipeline_schedules(id) ON DELETE SET NULL; +CREATE INDEX index_namespace_admin_notes_on_namespace_id ON namespace_admin_notes USING btree (namespace_id); +CREATE UNIQUE INDEX index_namespace_aggregation_schedules_on_namespace_id ON namespace_aggregation_schedules USING btree (namespace_id); --- --- Name: scan_result_policy_violations fk_3d58aa6aee; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_namespace_bans_on_namespace_id_and_user_id ON namespace_bans USING btree (namespace_id, user_id); -ALTER TABLE ONLY public.scan_result_policy_violations - ADD CONSTRAINT fk_3d58aa6aee FOREIGN KEY (approval_policy_rule_id) REFERENCES public.approval_policy_rules(id) ON DELETE CASCADE; +CREATE INDEX index_namespace_bans_on_user_id ON namespace_bans USING btree (user_id); +CREATE INDEX index_namespace_commit_emails_on_email_id ON namespace_commit_emails USING btree (email_id); --- --- Name: wiki_page_slugs fk_3d71295ac9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_namespace_commit_emails_on_namespace_id ON namespace_commit_emails USING btree (namespace_id); -ALTER TABLE ONLY public.wiki_page_slugs - ADD CONSTRAINT fk_3d71295ac9 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_namespace_commit_emails_on_user_id_and_namespace_id ON namespace_commit_emails USING btree (user_id, namespace_id); +CREATE INDEX index_namespace_details_on_creator_id ON namespace_details USING btree (creator_id); --- --- Name: security_orchestration_policy_rule_schedules fk_3e78b9a150; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_namespace_import_users_on_namespace_id ON namespace_import_users USING btree (namespace_id); -ALTER TABLE ONLY public.security_orchestration_policy_rule_schedules - ADD CONSTRAINT fk_3e78b9a150 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_namespace_import_users_on_user_id ON namespace_import_users USING btree (user_id); +CREATE UNIQUE INDEX index_namespace_root_storage_statistics_on_namespace_id ON namespace_root_storage_statistics USING btree (namespace_id); --- --- Name: compliance_checks fk_3fbfa4295c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_namespace_statistics_on_namespace_id ON namespace_statistics USING btree (namespace_id); -ALTER TABLE ONLY public.compliance_checks - ADD CONSTRAINT fk_3fbfa4295c FOREIGN KEY (requirement_id) REFERENCES public.compliance_requirements(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_namespaces_name_parent_id_type ON namespaces USING btree (name, parent_id, type); +CREATE INDEX index_namespaces_on_created_at ON namespaces USING btree (created_at); --- --- Name: abuse_reports fk_3fe6467b93; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_namespaces_on_custom_project_templates_group_id_and_type ON namespaces USING btree (custom_project_templates_group_id, type) WHERE (custom_project_templates_group_id IS NOT NULL); -ALTER TABLE ONLY public.abuse_reports - ADD CONSTRAINT fk_3fe6467b93 FOREIGN KEY (assignee_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_namespaces_on_file_template_project_id ON namespaces USING btree (file_template_project_id); +CREATE INDEX index_namespaces_on_ldap_sync_last_successful_update_at ON namespaces USING btree (ldap_sync_last_successful_update_at); --- --- Name: protected_environment_approval_rules fk_405568b491; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_namespaces_on_name_trigram ON namespaces USING gin (name gin_trgm_ops); -ALTER TABLE ONLY public.protected_environment_approval_rules - ADD CONSTRAINT fk_405568b491 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_namespaces_on_organization_id ON namespaces USING btree (organization_id); +CREATE INDEX index_namespaces_on_organization_id_for_groups ON namespaces USING btree (organization_id) WHERE ((type)::text = 'Group'::text); --- --- Name: subscription_add_on_purchases fk_410004d68b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_namespaces_on_owner_id ON namespaces USING btree (owner_id); -ALTER TABLE ONLY public.subscription_add_on_purchases - ADD CONSTRAINT fk_410004d68b FOREIGN KEY (subscription_add_on_id) REFERENCES public.subscription_add_ons(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_namespaces_on_parent_id_and_id ON namespaces USING btree (parent_id, id); +CREATE INDEX index_namespaces_on_path ON namespaces USING btree (path); --- --- Name: ci_pipeline_schedule_variables fk_41c35fda51; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_namespaces_on_path_for_top_level_non_projects ON namespaces USING btree (lower((path)::text)) WHERE ((parent_id IS NULL) AND ((type)::text <> 'Project'::text)); -ALTER TABLE ONLY public.ci_pipeline_schedule_variables - ADD CONSTRAINT fk_41c35fda51 FOREIGN KEY (pipeline_schedule_id) REFERENCES public.ci_pipeline_schedules(id) ON DELETE CASCADE; +CREATE INDEX index_namespaces_on_path_trigram ON namespaces USING gin (path gin_trgm_ops); +CREATE UNIQUE INDEX index_namespaces_on_push_rule_id ON namespaces USING btree (push_rule_id); --- --- Name: namespace_bans fk_4275fbb1d7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_namespaces_on_runners_token_encrypted ON namespaces USING btree (runners_token_encrypted); -ALTER TABLE ONLY public.namespace_bans - ADD CONSTRAINT fk_4275fbb1d7 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_namespaces_on_traversal_ids ON namespaces USING gin (traversal_ids); +CREATE INDEX index_namespaces_on_traversal_ids_for_groups ON namespaces USING gin (traversal_ids) WHERE ((type)::text = 'Group'::text); --- --- Name: geo_event_log fk_42c3b54bed; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_namespaces_on_traversal_ids_for_groups_btree ON namespaces USING btree (traversal_ids) WHERE ((type)::text = 'Group'::text); -ALTER TABLE ONLY public.geo_event_log - ADD CONSTRAINT fk_42c3b54bed FOREIGN KEY (cache_invalidation_event_id) REFERENCES public.geo_cache_invalidation_events(id) ON DELETE CASCADE; +CREATE INDEX index_namespaces_on_type_and_id ON namespaces USING btree (type, id); +CREATE INDEX index_namespaces_public_groups_name_id ON namespaces USING btree (name, id) WHERE (((type)::text = 'Group'::text) AND (visibility_level = 20)); --- --- Name: remote_mirrors fk_43a9aa4ca8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_namespaces_sync_events_on_namespace_id ON namespaces_sync_events USING btree (namespace_id); -ALTER TABLE ONLY public.remote_mirrors - ADD CONSTRAINT fk_43a9aa4ca8 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_non_requested_project_members_on_source_id_and_type ON members USING btree (source_id, source_type) WHERE ((requested_at IS NULL) AND ((type)::text = 'ProjectMember'::text)); +CREATE UNIQUE INDEX index_note_diff_files_on_diff_note_id ON note_diff_files USING btree (diff_note_id); --- --- Name: abuse_report_notes fk_44166fe70f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_note_metadata_on_note_id ON note_metadata USING btree (note_id); -ALTER TABLE ONLY public.abuse_report_notes - ADD CONSTRAINT fk_44166fe70f FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_notes_for_cherry_picked_merge_requests ON notes USING btree (project_id, commit_id) WHERE ((noteable_type)::text = 'MergeRequest'::text); +CREATE INDEX index_notes_on_author_id_and_created_at_and_id ON notes USING btree (author_id, created_at, id); --- --- Name: incident_management_timeline_events fk_4432fc4d78; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_notes_on_commit_id ON notes USING btree (commit_id); -ALTER TABLE ONLY public.incident_management_timeline_events - ADD CONSTRAINT fk_4432fc4d78 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_notes_on_created_at ON notes USING btree (created_at); +CREATE INDEX index_notes_on_discussion_id ON notes USING btree (discussion_id); --- --- Name: todos fk_45054f9c45; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_notes_on_id_where_confidential ON notes USING btree (id) WHERE (confidential = true); -ALTER TABLE ONLY public.todos - ADD CONSTRAINT fk_45054f9c45 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_notes_on_id_where_internal ON notes USING btree (id) WHERE (internal = true); +CREATE INDEX index_notes_on_line_code ON notes USING btree (line_code); --- --- Name: security_policy_requirements fk_458f7f5ad5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_notes_on_namespace_id ON notes USING btree (namespace_id); -ALTER TABLE ONLY public.security_policy_requirements - ADD CONSTRAINT fk_458f7f5ad5 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_notes_on_noteable_id_and_noteable_type_and_system ON notes USING btree (noteable_id, noteable_type, system); +CREATE INDEX index_notes_on_project_id_and_id_and_system_false ON notes USING btree (project_id, id) WHERE (NOT system); --- --- Name: releases fk_47fe2a0596; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_notes_on_project_id_and_noteable_type ON notes USING btree (project_id, noteable_type); -ALTER TABLE ONLY public.releases - ADD CONSTRAINT fk_47fe2a0596 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_notes_on_review_id ON notes USING btree (review_id); +CREATE INDEX index_notification_settings_on_source_and_level_and_user ON notification_settings USING btree (source_id, source_type, level, user_id); --- --- Name: workspace_variables fk_494e093520; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_notifications_on_user_id_and_source_id_and_source_type ON notification_settings USING btree (user_id, source_id, source_type); -ALTER TABLE ONLY public.workspace_variables - ADD CONSTRAINT fk_494e093520 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_npm_metadata_caches_on_package_name_project_id_unique ON packages_npm_metadata_caches USING btree (package_name, project_id) WHERE (project_id IS NOT NULL); +CREATE INDEX index_ns_root_stor_stats_on_registry_size_estimated ON namespace_root_storage_statistics USING btree (registry_size_estimated); --- --- Name: cluster_agent_url_configurations fk_49b126e246; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ns_user_callouts_feature ON user_namespace_callouts USING btree (user_id, feature_name, namespace_id); -ALTER TABLE ONLY public.cluster_agent_url_configurations - ADD CONSTRAINT fk_49b126e246 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_oauth_access_grants_on_application_id ON oauth_access_grants USING btree (application_id); +CREATE INDEX index_oauth_access_grants_on_resource_owner_id ON oauth_access_grants USING btree (resource_owner_id, application_id, created_at); --- --- Name: user_namespace_callouts fk_4b1257f385; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_oauth_access_grants_on_token ON oauth_access_grants USING btree (token); -ALTER TABLE ONLY public.user_namespace_callouts - ADD CONSTRAINT fk_4b1257f385 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_oauth_access_tokens_on_application_id ON oauth_access_tokens USING btree (application_id); +CREATE UNIQUE INDEX index_oauth_access_tokens_on_refresh_token ON oauth_access_tokens USING btree (refresh_token); --- --- Name: sbom_occurrences fk_4b88e5b255; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_oauth_access_tokens_on_token ON oauth_access_tokens USING btree (token); -ALTER TABLE ONLY public.sbom_occurrences - ADD CONSTRAINT fk_4b88e5b255 FOREIGN KEY (component_version_id) REFERENCES public.sbom_component_versions(id) ON DELETE CASCADE; +CREATE INDEX index_oauth_applications_on_owner_id_and_owner_type ON oauth_applications USING btree (owner_id, owner_type); +CREATE UNIQUE INDEX index_oauth_applications_on_uid ON oauth_applications USING btree (uid); --- --- Name: namespace_commit_emails fk_4d6ba63ba5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_oauth_device_grants_on_application_id ON oauth_device_grants USING btree (application_id); -ALTER TABLE ONLY public.namespace_commit_emails - ADD CONSTRAINT fk_4d6ba63ba5 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_oauth_device_grants_on_device_code ON oauth_device_grants USING btree (device_code); +CREATE UNIQUE INDEX index_oauth_device_grants_on_user_code ON oauth_device_grants USING btree (user_code); --- --- Name: vulnerabilities fk_4e64972902; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_oauth_openid_requests_on_access_grant_id ON oauth_openid_requests USING btree (access_grant_id); -ALTER TABLE ONLY public.vulnerabilities - ADD CONSTRAINT fk_4e64972902 FOREIGN KEY (finding_id) REFERENCES public.vulnerability_occurrences(id) ON DELETE CASCADE; +CREATE INDEX index_observability_logs_issues_connections_on_project_id ON observability_logs_issues_connections USING btree (project_id); +CREATE INDEX index_observability_metrics_issues_connections_on_namespace_id ON observability_metrics_issues_connections USING btree (namespace_id); --- --- Name: ml_model_versions fk_4e8b59e7a8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_observability_metrics_issues_connections_on_project_id ON observability_metrics_issues_connections USING btree (project_id); -ALTER TABLE ONLY public.ml_model_versions - ADD CONSTRAINT fk_4e8b59e7a8 FOREIGN KEY (model_id) REFERENCES public.ml_models(id) ON DELETE CASCADE; +CREATE INDEX index_observability_traces_issues_connections_on_project_id ON observability_traces_issues_connections USING btree (project_id); +CREATE UNIQUE INDEX index_on_deploy_keys_id_and_type_and_public ON keys USING btree (id, type) WHERE (public = true); --- --- Name: user_achievements fk_4efde02858; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_on_dingtalk_tracker_data_corpid ON dingtalk_tracker_data USING btree (corpid) WHERE (corpid IS NOT NULL); -ALTER TABLE ONLY public.user_achievements - ADD CONSTRAINT fk_4efde02858 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +COMMENT ON INDEX index_on_dingtalk_tracker_data_corpid IS 'JiHu-specific index'; +CREATE INDEX index_on_events_to_improve_contribution_analytics_performance ON events USING btree (project_id, target_type, action, created_at, author_id, id); --- --- Name: approval_group_rules_protected_branches fk_4f85f13b20; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_on_group_id_on_webhooks ON web_hooks USING btree (group_id); -ALTER TABLE ONLY public.approval_group_rules_protected_branches - ADD CONSTRAINT fk_4f85f13b20 FOREIGN KEY (approval_group_rule_id) REFERENCES public.approval_group_rules(id) ON DELETE CASCADE; +CREATE INDEX index_on_identities_lower_extern_uid_and_provider ON identities USING btree (lower((extern_uid)::text), provider); +CREATE UNIQUE INDEX index_on_instance_statistics_recorded_at_and_identifier ON analytics_usage_trends_measurements USING btree (identifier, recorded_at); --- --- Name: project_compliance_standards_adherence fk_4fd1d9d9b0; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_on_issue_assignment_events_issue_id_action_created_at_id ON issue_assignment_events USING btree (issue_id, action, created_at, id); -ALTER TABLE ONLY public.project_compliance_standards_adherence - ADD CONSTRAINT fk_4fd1d9d9b0 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE SET NULL; +CREATE INDEX index_on_job_artifact_id_partition_id_verification_state ON ci_job_artifact_states USING btree (verification_state, job_artifact_id, partition_id); +CREATE INDEX index_on_label_links_all_columns ON label_links USING btree (target_id, label_id, target_type); --- --- Name: vulnerability_reads fk_5001652292; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_on_merge_request_diffs_head_commit_sha ON merge_request_diffs USING btree (head_commit_sha); -ALTER TABLE ONLY public.vulnerability_reads - ADD CONSTRAINT fk_5001652292 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_on_merge_request_reviewers_user_id_and_state ON merge_request_reviewers USING btree (user_id, state) WHERE (state = 2); +CREATE INDEX index_on_merge_requests_for_latest_diffs ON merge_requests USING btree (target_project_id) INCLUDE (id, latest_merge_request_diff_id); --- --- Name: approval_group_rules_groups fk_50edc8134e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +COMMENT ON INDEX index_on_merge_requests_for_latest_diffs IS 'Index used to efficiently obtain the oldest merge request for a commit SHA'; -ALTER TABLE ONLY public.approval_group_rules_groups - ADD CONSTRAINT fk_50edc8134e FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_on_mr_assignment_events_mr_id_action_created_at_id ON merge_request_assignment_events USING btree (merge_request_id, action, created_at, id); +CREATE INDEX index_on_namespaces_lower_name ON namespaces USING btree (lower((name)::text)); --- --- Name: approval_group_rules_protected_branches fk_514003db08; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_on_namespaces_lower_path ON namespaces USING btree (lower((path)::text)); -ALTER TABLE ONLY public.approval_group_rules_protected_branches - ADD CONSTRAINT fk_514003db08 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_on_namespaces_namespaces_by_top_level_namespace ON namespaces USING btree ((traversal_ids[1]), type, id); +CREATE INDEX index_on_oncall_schedule_escalation_rule ON incident_management_escalation_rules USING btree (oncall_schedule_id); --- --- Name: alert_management_alerts fk_51ab4b6089; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_on_pages_metadata_not_migrated ON project_pages_metadata USING btree (project_id) WHERE ((deployed = true) AND (pages_deployment_id IS NULL)); -ALTER TABLE ONLY public.alert_management_alerts - ADD CONSTRAINT fk_51ab4b6089 FOREIGN KEY (prometheus_alert_id) REFERENCES public.prometheus_alerts(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_on_project_id_escalation_policy_name_unique ON incident_management_escalation_policies USING btree (project_id, name); +CREATE INDEX index_on_routes_lower_path ON routes USING btree (lower((path)::text)); --- --- Name: deploy_tokens fk_51bf7bfb69; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_on_sbom_sources_package_manager_name ON sbom_sources USING btree ((((source -> 'package_manager'::text) ->> 'name'::text))); -ALTER TABLE ONLY public.deploy_tokens - ADD CONSTRAINT fk_51bf7bfb69 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_on_todos_user_project_target_and_state ON todos USING btree (user_id, project_id, target_type, target_id, id) WHERE ((state)::text = 'pending'::text); +CREATE INDEX index_on_users_lower_email ON users USING btree (lower((email)::text)); --- --- Name: path_locks fk_5265c98f24; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_on_users_lower_username ON users USING btree (lower((username)::text)); -ALTER TABLE ONLY public.path_locks - ADD CONSTRAINT fk_5265c98f24 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_on_users_name_lower ON users USING btree (lower((name)::text)); +CREATE INDEX index_on_value_stream_dashboard_aggregations_last_run_at_and_id ON value_stream_dashboard_aggregations USING btree (last_run_at NULLS FIRST, namespace_id) WHERE (enabled IS TRUE); --- --- Name: agent_user_access_group_authorizations fk_53fd98ccbf; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_onboarding_progresses_for_create_track ON onboarding_progresses USING btree (created_at) WHERE (git_write_at IS NULL); -ALTER TABLE ONLY public.agent_user_access_group_authorizations - ADD CONSTRAINT fk_53fd98ccbf FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_onboarding_progresses_for_team_track ON onboarding_progresses USING btree (GREATEST(git_write_at, pipeline_created_at, trial_started_at)) WHERE ((git_write_at IS NOT NULL) AND (pipeline_created_at IS NOT NULL) AND (trial_started_at IS NOT NULL) AND (user_added_at IS NULL)); +CREATE INDEX index_onboarding_progresses_for_trial_track ON onboarding_progresses USING btree (GREATEST(git_write_at, pipeline_created_at)) WHERE ((git_write_at IS NOT NULL) AND (pipeline_created_at IS NOT NULL) AND (trial_started_at IS NULL)); --- --- Name: group_crm_settings fk_54592e5f57; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_onboarding_progresses_for_verify_track ON onboarding_progresses USING btree (git_write_at) WHERE ((git_write_at IS NOT NULL) AND (pipeline_created_at IS NULL)); -ALTER TABLE ONLY public.group_crm_settings - ADD CONSTRAINT fk_54592e5f57 FOREIGN KEY (source_group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_onboarding_progresses_on_namespace_id ON onboarding_progresses USING btree (namespace_id); +CREATE INDEX index_oncall_shifts_on_rotation_id_and_starts_at_and_ends_at ON incident_management_oncall_shifts USING btree (rotation_id, starts_at, ends_at); --- --- Name: terraform_states fk_558901b030; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_operations_feature_flags_issues_on_issue_id ON operations_feature_flags_issues USING btree (issue_id); -ALTER TABLE ONLY public.terraform_states - ADD CONSTRAINT fk_558901b030 FOREIGN KEY (locked_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_operations_feature_flags_issues_on_project_id ON operations_feature_flags_issues USING btree (project_id); +CREATE UNIQUE INDEX index_operations_feature_flags_on_project_id_and_iid ON operations_feature_flags USING btree (project_id, iid); --- --- Name: status_check_responses fk_55bd2abc83; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_operations_feature_flags_on_project_id_and_name ON operations_feature_flags USING btree (project_id, name); -ALTER TABLE ONLY public.status_check_responses - ADD CONSTRAINT fk_55bd2abc83 FOREIGN KEY (external_status_check_id) REFERENCES public.external_status_checks(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_operations_scopes_on_strategy_id_and_environment_scope ON operations_scopes USING btree (strategy_id, environment_scope); +CREATE INDEX index_operations_strategies_on_feature_flag_id ON operations_strategies USING btree (feature_flag_id); --- --- Name: merge_request_metrics fk_56067dcb44; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_operations_strategies_on_project_id ON operations_strategies USING btree (project_id); -ALTER TABLE ONLY public.merge_request_metrics - ADD CONSTRAINT fk_56067dcb44 FOREIGN KEY (target_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_operations_strategies_user_lists_on_project_id ON operations_strategies_user_lists USING btree (project_id); +CREATE INDEX index_operations_strategies_user_lists_on_user_list_id ON operations_strategies_user_lists USING btree (user_list_id); --- --- Name: vulnerability_feedback fk_563ff1912e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_operations_user_lists_on_project_id_and_iid ON operations_user_lists USING btree (project_id, iid); -ALTER TABLE ONLY public.vulnerability_feedback - ADD CONSTRAINT fk_563ff1912e FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_operations_user_lists_on_project_id_and_name ON operations_user_lists USING btree (project_id, name); +CREATE UNIQUE INDEX index_ops_feature_flags_issues_on_feature_flag_id_and_issue_id ON operations_feature_flags_issues USING btree (feature_flag_id, issue_id); --- --- Name: merge_request_diffs fk_56ac6fc9c0; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_ops_strategies_user_lists_on_strategy_id_and_user_list_id ON operations_strategies_user_lists USING btree (strategy_id, user_list_id); -ALTER TABLE ONLY public.merge_request_diffs - ADD CONSTRAINT fk_56ac6fc9c0 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_organization_users_on_org_id_access_level_user_id ON organization_users USING btree (organization_id, access_level, user_id); +CREATE INDEX index_organization_users_on_organization_id_and_id ON organization_users USING btree (organization_id, id); --- --- Name: ml_candidates fk_56d6ed4d3d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_organization_users_on_organization_id_and_user_id ON organization_users USING btree (organization_id, user_id); -ALTER TABLE ONLY public.ml_candidates - ADD CONSTRAINT fk_56d6ed4d3d FOREIGN KEY (experiment_id) REFERENCES public.ml_experiments(id) ON DELETE CASCADE; +CREATE INDEX index_organization_users_on_user_id ON organization_users USING btree (user_id); +CREATE INDEX index_organizations_on_name_trigram ON organizations USING gin (name gin_trgm_ops); --- --- Name: abuse_report_notes fk_57fb3e3bf2; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_organizations_on_path_trigram ON organizations USING gin (path gin_trgm_ops); -ALTER TABLE ONLY public.abuse_report_notes - ADD CONSTRAINT fk_57fb3e3bf2 FOREIGN KEY (resolved_by_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_organizations_on_unique_name_per_group ON customer_relations_organizations USING btree (group_id, lower(name), id); +CREATE INDEX index_p_catalog_resource_component_usages_on_project_id ON ONLY p_catalog_resource_component_usages USING btree (project_id); --- --- Name: approval_merge_request_rules fk_5822f009ea; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_p_catalog_resource_sync_events_on_id_where_pending ON ONLY p_catalog_resource_sync_events USING btree (id) WHERE (status = 1); -ALTER TABLE ONLY public.approval_merge_request_rules - ADD CONSTRAINT fk_5822f009ea FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES public.security_orchestration_policy_configurations(id) ON DELETE CASCADE; +CREATE INDEX index_p_ci_build_names_on_project_id_and_build_id ON ONLY p_ci_build_names USING btree (project_id, build_id); +CREATE INDEX index_p_ci_build_names_on_search_vector ON ONLY p_ci_build_names USING gin (search_vector); --- --- Name: deploy_keys_projects fk_58a901ca7e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_p_ci_build_sources_on_project_id_and_build_id ON ONLY p_ci_build_sources USING btree (project_id, build_id); -ALTER TABLE ONLY public.deploy_keys_projects - ADD CONSTRAINT fk_58a901ca7e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_p_ci_build_tags_on_build_id_and_partition_id ON ONLY p_ci_build_tags USING btree (build_id, partition_id); +CREATE INDEX index_p_ci_build_tags_on_project_id ON ONLY p_ci_build_tags USING btree (project_id); --- --- Name: packages_tags fk_5a230894f6; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_p_ci_build_tags_on_tag_id_and_build_id_and_partition_id ON ONLY p_ci_build_tags USING btree (tag_id, build_id, partition_id); -ALTER TABLE ONLY public.packages_tags - ADD CONSTRAINT fk_5a230894f6 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_p_ci_builds_execution_configs_on_pipeline_id ON ONLY p_ci_builds_execution_configs USING btree (pipeline_id); +CREATE INDEX index_p_ci_builds_execution_configs_on_project_id ON ONLY p_ci_builds_execution_configs USING btree (project_id); --- --- Name: security_policy_project_links fk_5a5eba6f88; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_p_ci_finished_build_ch_sync_events_finished_at ON ONLY p_ci_finished_build_ch_sync_events USING btree (partition, build_finished_at); -ALTER TABLE ONLY public.security_policy_project_links - ADD CONSTRAINT fk_5a5eba6f88 FOREIGN KEY (security_policy_id) REFERENCES public.security_policies(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_p_ci_job_annotations_on_partition_id_job_id_name ON ONLY p_ci_job_annotations USING btree (partition_id, job_id, name); +CREATE INDEX index_p_ci_runner_machine_builds_on_runner_machine_id ON ONLY p_ci_runner_machine_builds USING btree (runner_machine_id); --- --- Name: project_export_jobs fk_5ab0242530; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_build_infos_on_pipeline_id ON packages_build_infos USING btree (pipeline_id); -ALTER TABLE ONLY public.project_export_jobs - ADD CONSTRAINT fk_5ab0242530 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_packages_build_infos_on_project_id ON packages_build_infos USING btree (project_id); +CREATE INDEX index_packages_build_infos_package_id_id ON packages_build_infos USING btree (package_id, id); --- --- Name: dependency_list_exports fk_5b3d11e1ef; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_build_infos_package_id_pipeline_id_id ON packages_build_infos USING btree (package_id, pipeline_id, id); -ALTER TABLE ONLY public.dependency_list_exports - ADD CONSTRAINT fk_5b3d11e1ef FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_packages_composer_cache_namespace_and_sha ON packages_composer_cache_files USING btree (namespace_id, file_sha256); +CREATE UNIQUE INDEX index_packages_composer_metadata_on_package_id_and_target_sha ON packages_composer_metadata USING btree (package_id, target_sha); --- --- Name: security_policy_requirements fk_5b4fae9635; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_packages_conan_file_metadata_on_package_file_id ON packages_conan_file_metadata USING btree (package_file_id); -ALTER TABLE ONLY public.security_policy_requirements - ADD CONSTRAINT fk_5b4fae9635 FOREIGN KEY (compliance_requirement_id) REFERENCES public.compliance_requirements(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_packages_conan_metadata_on_package_id_username_channel ON packages_conan_metadata USING btree (package_id, package_username, package_channel); +CREATE INDEX index_packages_conan_metadata_on_project_id ON packages_conan_metadata USING btree (project_id); --- --- Name: user_broadcast_message_dismissals fk_5c0cfb74ce; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_debian_group_architectures_on_group_id ON packages_debian_group_architectures USING btree (group_id); -ALTER TABLE ONLY public.user_broadcast_message_dismissals - ADD CONSTRAINT fk_5c0cfb74ce FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_packages_debian_group_component_files_on_component_id ON packages_debian_group_component_files USING btree (component_id); +CREATE INDEX index_packages_debian_group_components_on_group_id ON packages_debian_group_components USING btree (group_id); --- --- Name: boards_epic_lists fk_5cbb450986; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_debian_group_distribution_keys_on_group_id ON packages_debian_group_distribution_keys USING btree (group_id); -ALTER TABLE ONLY public.boards_epic_lists - ADD CONSTRAINT fk_5cbb450986 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_packages_debian_group_distributions_on_creator_id ON packages_debian_group_distributions USING btree (creator_id); +CREATE INDEX index_packages_debian_project_architectures_on_project_id ON packages_debian_project_architectures USING btree (project_id); --- --- Name: dast_scanner_profiles_builds fk_5d46286ad3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_debian_project_component_files_on_component_id ON packages_debian_project_component_files USING btree (component_id); -ALTER TABLE ONLY public.dast_scanner_profiles_builds - ADD CONSTRAINT fk_5d46286ad3 FOREIGN KEY (dast_scanner_profile_id) REFERENCES public.dast_scanner_profiles(id) ON DELETE CASCADE; +CREATE INDEX index_packages_debian_project_components_on_project_id ON packages_debian_project_components USING btree (project_id); +CREATE INDEX index_packages_debian_project_distribution_keys_on_project_id ON packages_debian_project_distribution_keys USING btree (project_id); --- --- Name: protected_environment_deploy_access_levels fk_5d9b05a7e9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_debian_project_distributions_on_creator_id ON packages_debian_project_distributions USING btree (creator_id); -ALTER TABLE ONLY public.protected_environment_deploy_access_levels - ADD CONSTRAINT fk_5d9b05a7e9 FOREIGN KEY (protected_environment_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_packages_debian_publications_on_distribution_id ON packages_debian_publications USING btree (distribution_id); +CREATE UNIQUE INDEX index_packages_debian_publications_on_package_id ON packages_debian_publications USING btree (package_id); --- --- Name: issue_assignees fk_5e0c8d9154; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_debian_publications_on_project_id ON packages_debian_publications USING btree (project_id); -ALTER TABLE ONLY public.issue_assignees - ADD CONSTRAINT fk_5e0c8d9154 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_packages_dependencies_on_name_version_pattern_project_id ON packages_dependencies USING btree (name, version_pattern, project_id) WHERE (project_id IS NOT NULL); +CREATE INDEX index_packages_dependencies_on_project_id ON packages_dependencies USING btree (project_id); --- --- Name: csv_issue_imports fk_5e1572387c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_dependency_links_on_dependency_id ON packages_dependency_links USING btree (dependency_id); -ALTER TABLE ONLY public.csv_issue_imports - ADD CONSTRAINT fk_5e1572387c FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_packages_dependency_links_on_project_id ON packages_dependency_links USING btree (project_id); +CREATE INDEX index_packages_helm_file_metadata_on_channel ON packages_helm_file_metadata USING btree (channel); --- --- Name: project_access_tokens fk_5f7e8450e1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_helm_file_metadata_on_pf_id_and_channel ON packages_helm_file_metadata USING btree (package_file_id, channel); -ALTER TABLE ONLY public.project_access_tokens - ADD CONSTRAINT fk_5f7e8450e1 FOREIGN KEY (personal_access_token_id) REFERENCES public.personal_access_tokens(id) ON DELETE CASCADE; +CREATE INDEX index_packages_maven_metadata_on_package_id_and_path ON packages_maven_metadata USING btree (package_id, path); +CREATE INDEX index_packages_maven_metadata_on_path ON packages_maven_metadata USING btree (path); --- --- Name: user_achievements fk_60b12fcda3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_maven_metadata_on_project_id ON packages_maven_metadata USING btree (project_id); -ALTER TABLE ONLY public.user_achievements - ADD CONSTRAINT fk_60b12fcda3 FOREIGN KEY (awarded_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_packages_npm_metadata_caches_on_object_storage_key ON packages_npm_metadata_caches USING btree (object_storage_key); +CREATE INDEX index_packages_npm_metadata_caches_on_project_id ON packages_npm_metadata_caches USING btree (project_id); --- --- Name: merge_requests fk_6149611a04; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_nuget_dl_metadata_on_dependency_link_id ON packages_nuget_dependency_link_metadata USING btree (dependency_link_id); -ALTER TABLE ONLY public.merge_requests - ADD CONSTRAINT fk_6149611a04 FOREIGN KEY (assignee_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_packages_nuget_symbols_on_object_storage_key ON packages_nuget_symbols USING btree (object_storage_key); +CREATE INDEX index_packages_nuget_symbols_on_package_id ON packages_nuget_symbols USING btree (package_id); --- --- Name: member_approvals fk_619f381144; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_packages_nuget_symbols_on_signature_and_file_path ON packages_nuget_symbols USING btree (signature, file_path); -ALTER TABLE ONLY public.member_approvals - ADD CONSTRAINT fk_619f381144 FOREIGN KEY (member_role_id) REFERENCES public.member_roles(id) ON DELETE SET NULL; +CREATE INDEX index_packages_on_available_pypi_packages ON packages_packages USING btree (project_id, id) WHERE ((status = ANY (ARRAY[0, 1])) AND (package_type = 5) AND (version IS NOT NULL)); +CREATE INDEX index_packages_package_file_build_infos_on_package_file_id ON packages_package_file_build_infos USING btree (package_file_id); --- --- Name: work_item_widget_definitions fk_61bfa96db5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_package_file_build_infos_on_pipeline_id ON packages_package_file_build_infos USING btree (pipeline_id); -ALTER TABLE ONLY public.work_item_widget_definitions - ADD CONSTRAINT fk_61bfa96db5 FOREIGN KEY (work_item_type_id) REFERENCES public.work_item_types(id) ON DELETE CASCADE; +CREATE INDEX index_packages_package_files_on_file_name ON packages_package_files USING gin (file_name gin_trgm_ops); +CREATE INDEX index_packages_package_files_on_file_name_file_sha256 ON packages_package_files USING btree (file_name, file_sha256); --- --- Name: deployment_approvals fk_61cdbdc5b9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_package_files_on_file_store ON packages_package_files USING btree (file_store); -ALTER TABLE ONLY public.deployment_approvals - ADD CONSTRAINT fk_61cdbdc5b9 FOREIGN KEY (approval_rule_id) REFERENCES public.protected_environment_approval_rules(id) ON DELETE SET NULL; +CREATE INDEX index_packages_package_files_on_id_for_cleanup ON packages_package_files USING btree (id) WHERE (status = 1); +CREATE INDEX index_packages_package_files_on_package_file_extension_status ON packages_package_files USING btree (package_id) WHERE ((status = 0) AND (reverse(split_part(reverse((file_name)::text), '.'::text, 1)) = 'nupkg'::text)); --- --- Name: dast_profile_schedules fk_61d52aa0e7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_package_files_on_package_id_and_created_at_desc ON packages_package_files USING btree (package_id, created_at DESC); -ALTER TABLE ONLY public.dast_profile_schedules - ADD CONSTRAINT fk_61d52aa0e7 FOREIGN KEY (dast_profile_id) REFERENCES public.dast_profiles(id) ON DELETE CASCADE; +CREATE INDEX index_packages_package_files_on_package_id_and_file_name ON packages_package_files USING btree (package_id, file_name); +CREATE INDEX index_packages_package_files_on_package_id_id ON packages_package_files USING btree (package_id, id); --- --- Name: events fk_61fbf6ca48; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_package_files_on_package_id_status_and_id ON packages_package_files USING btree (package_id, status, id); -ALTER TABLE ONLY public.events - ADD CONSTRAINT fk_61fbf6ca48 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_packages_package_files_on_status ON packages_package_files USING btree (status); +CREATE INDEX index_packages_package_files_on_verification_state ON packages_package_files USING btree (verification_state); --- --- Name: vulnerability_reads fk_62736f638f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_packages_on_creator_id ON packages_packages USING btree (creator_id); -ALTER TABLE ONLY public.vulnerability_reads - ADD CONSTRAINT fk_62736f638f FOREIGN KEY (vulnerability_id) REFERENCES public.vulnerabilities(id) ON DELETE CASCADE; +CREATE INDEX index_packages_packages_on_id_and_created_at ON packages_packages USING btree (id, created_at); +CREATE INDEX index_packages_packages_on_name_trigram ON packages_packages USING gin (name gin_trgm_ops); --- --- Name: saml_group_links fk_6336b1d1d0; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_packages_on_project_id_and_created_at ON packages_packages USING btree (project_id, created_at); -ALTER TABLE ONLY public.saml_group_links - ADD CONSTRAINT fk_6336b1d1d0 FOREIGN KEY (member_role_id) REFERENCES public.member_roles(id) ON DELETE SET NULL; +CREATE INDEX index_packages_packages_on_project_id_and_lower_version ON packages_packages USING btree (project_id, lower((version)::text)) WHERE (package_type = 4); +CREATE INDEX index_packages_packages_on_project_id_and_package_type ON packages_packages USING btree (project_id, package_type); --- --- Name: deployment_approvals fk_63920ba071; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_packages_on_project_id_and_status_and_id ON packages_packages USING btree (project_id, status, id); -ALTER TABLE ONLY public.deployment_approvals - ADD CONSTRAINT fk_63920ba071 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_packages_packages_on_project_id_and_version ON packages_packages USING btree (project_id, version); +CREATE INDEX index_packages_project_id_name_partial_for_nuget ON packages_packages USING btree (project_id, name) WHERE (((name)::text <> 'NuGet.Temporary.Package'::text) AND (version IS NOT NULL) AND (package_type = 4)); --- --- Name: merge_requests fk_641731faff; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_rpm_metadata_on_package_id ON packages_rpm_metadata USING btree (package_id); -ALTER TABLE ONLY public.merge_requests - ADD CONSTRAINT fk_641731faff FOREIGN KEY (updated_by_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_packages_rpm_repository_files_on_project_id_and_file_name ON packages_rpm_repository_files USING btree (project_id, file_name); +CREATE INDEX index_packages_tags_on_package_id_and_updated_at ON packages_tags USING btree (package_id, updated_at DESC); --- --- Name: approval_group_rules fk_64450bea52; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_packages_tags_on_project_id ON packages_tags USING btree (project_id); -ALTER TABLE ONLY public.approval_group_rules - ADD CONSTRAINT fk_64450bea52 FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES public.security_orchestration_policy_configurations(id) ON DELETE CASCADE; +CREATE INDEX index_packages_terraform_module_metadata_on_project_id ON packages_terraform_module_metadata USING btree (project_id); +CREATE INDEX index_pages_deployment_states_failed_verification ON pages_deployment_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); --- --- Name: ci_pipeline_chat_data fk_64ebfab6b3_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_pages_deployment_states_needs_verification ON pages_deployment_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); -ALTER TABLE ONLY public.ci_pipeline_chat_data - ADD CONSTRAINT fk_64ebfab6b3_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +CREATE INDEX index_pages_deployment_states_on_pages_deployment_id ON pages_deployment_states USING btree (pages_deployment_id); +CREATE INDEX index_pages_deployment_states_on_verification_state ON pages_deployment_states USING btree (verification_state); --- --- Name: ci_pipeline_chat_data fk_64ebfab6b3_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_pages_deployment_states_pending_verification ON pages_deployment_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); -ALTER TABLE ONLY public.ci_pipeline_chat_data - ADD CONSTRAINT fk_64ebfab6b3_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +CREATE INDEX index_pages_deployments_on_ci_build_id ON pages_deployments USING btree (ci_build_id); +CREATE INDEX index_pages_deployments_on_deleted_at ON pages_deployments USING btree (deleted_at) WHERE (deleted_at IS NOT NULL); --- --- Name: cluster_agent_tokens fk_64f741f626; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_pages_deployments_on_expires_at ON pages_deployments USING btree (expires_at, id) WHERE (expires_at IS NOT NULL); -ALTER TABLE ONLY public.cluster_agent_tokens - ADD CONSTRAINT fk_64f741f626 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_pages_deployments_on_file_store_and_id ON pages_deployments USING btree (file_store, id); +CREATE INDEX index_pages_deployments_on_project_id ON pages_deployments USING btree (project_id); --- --- Name: import_placeholder_memberships fk_66286fb5e6; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_pages_domain_acme_orders_on_challenge_token ON pages_domain_acme_orders USING btree (challenge_token); -ALTER TABLE ONLY public.import_placeholder_memberships - ADD CONSTRAINT fk_66286fb5e6 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_pages_domain_acme_orders_on_pages_domain_id ON pages_domain_acme_orders USING btree (pages_domain_id); +CREATE INDEX index_pages_domains_need_auto_ssl_renewal_user_provided ON pages_domains USING btree (id) WHERE ((auto_ssl_enabled = true) AND (auto_ssl_failed = false) AND (certificate_source = 0)); --- --- Name: p_ci_builds fk_6661f4f0e8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_pages_domains_need_auto_ssl_renewal_valid_not_after ON pages_domains USING btree (certificate_valid_not_after) WHERE ((auto_ssl_enabled = true) AND (auto_ssl_failed = false)); -ALTER TABLE public.p_ci_builds - ADD CONSTRAINT fk_6661f4f0e8 FOREIGN KEY (resource_group_id) REFERENCES public.ci_resource_groups(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_pages_domains_on_domain_and_wildcard ON pages_domains USING btree (domain, wildcard); +CREATE INDEX index_pages_domains_on_domain_lowercase ON pages_domains USING btree (lower((domain)::text)); --- --- Name: remote_development_agent_configs fk_6a09894a0f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_pages_domains_on_project_id ON pages_domains USING btree (project_id); -ALTER TABLE ONLY public.remote_development_agent_configs - ADD CONSTRAINT fk_6a09894a0f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_pages_domains_on_project_id_and_enabled_until ON pages_domains USING btree (project_id, enabled_until); +CREATE INDEX index_pages_domains_on_remove_at ON pages_domains USING btree (remove_at); --- --- Name: dast_site_profile_secret_variables fk_6a254b170e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_pages_domains_on_scope ON pages_domains USING btree (scope); -ALTER TABLE ONLY public.dast_site_profile_secret_variables - ADD CONSTRAINT fk_6a254b170e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_pages_domains_on_usage ON pages_domains USING btree (usage); +CREATE INDEX index_pages_domains_on_verified_at ON pages_domains USING btree (verified_at); --- --- Name: merge_requests fk_6a5165a692; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_pages_domains_on_verified_at_and_enabled_until ON pages_domains USING btree (verified_at, enabled_until); -ALTER TABLE ONLY public.merge_requests - ADD CONSTRAINT fk_6a5165a692 FOREIGN KEY (milestone_id) REFERENCES public.milestones(id) ON DELETE SET NULL; +CREATE INDEX index_pages_domains_on_wildcard ON pages_domains USING btree (wildcard); +CREATE INDEX p_ci_builds_user_id_name_idx ON ONLY p_ci_builds USING btree (user_id, name) WHERE (((type)::text = 'Ci::Build'::text) AND ((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('license_scanning'::character varying)::text, ('sast'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('secret_detection'::character varying)::text]))); --- --- Name: ai_agent_versions fk_6c2f682587; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_partial_ci_builds_on_user_id_name_parser_features ON ci_builds USING btree (user_id, name) WHERE (((type)::text = 'Ci::Build'::text) AND ((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('license_scanning'::character varying)::text, ('sast'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('secret_detection'::character varying)::text]))); -ALTER TABLE ONLY public.ai_agent_versions - ADD CONSTRAINT fk_6c2f682587 FOREIGN KEY (agent_id) REFERENCES public.ai_agents(id) ON DELETE CASCADE; +CREATE INDEX index_pat_on_user_id_and_expires_at ON personal_access_tokens USING btree (user_id, expires_at); +CREATE INDEX index_path_locks_on_path ON path_locks USING btree (path); --- --- Name: ml_models fk_6c95e61a6e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_path_locks_on_project_id ON path_locks USING btree (project_id); -ALTER TABLE ONLY public.ml_models - ADD CONSTRAINT fk_6c95e61a6e FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_path_locks_on_user_id ON path_locks USING btree (user_id); +CREATE INDEX index_pe_approval_rules_on_required_approvals_and_created_at ON protected_environment_approval_rules USING btree (required_approvals, created_at); --- --- Name: projects fk_6ca23af0a3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_personal_access_tokens_on_id_and_created_at ON personal_access_tokens USING btree (id, created_at); -ALTER TABLE ONLY public.projects - ADD CONSTRAINT fk_6ca23af0a3 FOREIGN KEY (project_namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_personal_access_tokens_on_organization_id ON personal_access_tokens USING btree (organization_id); +CREATE UNIQUE INDEX index_personal_access_tokens_on_token_digest ON personal_access_tokens USING btree (token_digest); --- --- Name: dast_profile_schedules fk_6cca0d8800; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_personal_access_tokens_on_user_id ON personal_access_tokens USING btree (user_id); -ALTER TABLE ONLY public.dast_profile_schedules - ADD CONSTRAINT fk_6cca0d8800 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_pipeline_metadata_on_name_text_pattern_pipeline_id ON ci_pipeline_metadata USING btree (name text_pattern_ops, pipeline_id); +CREATE UNIQUE INDEX p_ci_pipeline_variables_pipeline_id_key_partition_id_idx ON ONLY p_ci_pipeline_variables USING btree (pipeline_id, key, partition_id); --- --- Name: compliance_framework_security_policies fk_6d3bd0c9f1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_pipeline_variables_on_pipeline_id_key_partition_id_unique ON ci_pipeline_variables USING btree (pipeline_id, key, partition_id); -ALTER TABLE ONLY public.compliance_framework_security_policies - ADD CONSTRAINT fk_6d3bd0c9f1 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_plan_limits_on_plan_id ON plan_limits USING btree (plan_id); +CREATE UNIQUE INDEX index_plans_on_name ON plans USING btree (name); --- --- Name: audit_events_streaming_instance_namespace_filters fk_6e0be28087; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_pm_advisories_on_advisory_xid_and_source_xid ON pm_advisories USING btree (advisory_xid, source_xid); -ALTER TABLE ONLY public.audit_events_streaming_instance_namespace_filters - ADD CONSTRAINT fk_6e0be28087 FOREIGN KEY (external_streaming_destination_id) REFERENCES public.audit_events_instance_external_streaming_destinations(id) ON DELETE CASCADE; +CREATE INDEX index_pm_affected_packages_on_pm_advisory_id ON pm_affected_packages USING btree (pm_advisory_id); +CREATE INDEX index_pm_affected_packages_on_purl_type_and_package_name ON pm_affected_packages USING btree (purl_type, package_name); --- --- Name: projects fk_6e5c14658a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_pm_epss_on_cve ON pm_epss USING btree (cve); -ALTER TABLE ONLY public.projects - ADD CONSTRAINT fk_6e5c14658a FOREIGN KEY (pool_repository_id) REFERENCES public.pool_repositories(id) ON DELETE SET NULL; +CREATE INDEX index_pm_package_version_licenses_on_pm_license_id ON pm_package_version_licenses USING btree (pm_license_id); +CREATE INDEX index_pm_package_version_licenses_on_pm_package_version_id ON pm_package_version_licenses USING btree (pm_package_version_id); --- --- Name: terraform_state_versions fk_6e81384d7f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_pm_package_versions_on_pm_package_id ON pm_package_versions USING btree (pm_package_id); -ALTER TABLE ONLY public.terraform_state_versions - ADD CONSTRAINT fk_6e81384d7f FOREIGN KEY (created_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_pool_repositories_on_shard_id ON pool_repositories USING btree (shard_id); +CREATE UNIQUE INDEX index_pool_repositories_on_source_project_id_and_shard_id ON pool_repositories USING btree (source_project_id, shard_id); --- --- Name: protected_environment_approval_rules fk_6ee8249821; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_postgres_async_indexes_on_name ON postgres_async_indexes USING btree (name); -ALTER TABLE ONLY public.protected_environment_approval_rules - ADD CONSTRAINT fk_6ee8249821 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_postgres_reindex_actions_on_index_identifier ON postgres_reindex_actions USING btree (index_identifier); +CREATE INDEX index_postgres_reindex_queued_actions_on_state ON postgres_reindex_queued_actions USING btree (state); --- --- Name: deploy_tokens fk_7082f8a288; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_programming_languages_on_name ON programming_languages USING btree (name); -ALTER TABLE ONLY public.deploy_tokens - ADD CONSTRAINT fk_7082f8a288 FOREIGN KEY (creator_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_project_access_tokens_on_project_id ON project_access_tokens USING btree (project_id); +CREATE UNIQUE INDEX index_project_aliases_on_name ON project_aliases USING btree (name); --- --- Name: protected_branch_push_access_levels fk_7111b68cdb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_project_aliases_on_project_id ON project_aliases USING btree (project_id); -ALTER TABLE ONLY public.protected_branch_push_access_levels - ADD CONSTRAINT fk_7111b68cdb FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_project_authorizations_on_project_user_access_level ON project_authorizations USING btree (project_id, user_id, access_level); +CREATE UNIQUE INDEX index_project_auto_devops_on_project_id ON project_auto_devops USING btree (project_id); --- --- Name: import_source_users fk_719b74231d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_project_build_artifacts_size_refreshes_on_project_id ON project_build_artifacts_size_refreshes USING btree (project_id); -ALTER TABLE ONLY public.import_source_users - ADD CONSTRAINT fk_719b74231d FOREIGN KEY (reassigned_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_project_ci_cd_settings_on_project_id ON project_ci_cd_settings USING btree (project_id); +CREATE UNIQUE INDEX index_project_ci_feature_usages_unique_columns ON project_ci_feature_usages USING btree (project_id, feature, default_branch); --- --- Name: integrations fk_71cce407f9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_project_compliance_framework_settings_on_framework_id ON project_compliance_framework_settings USING btree (framework_id); -ALTER TABLE ONLY public.integrations - ADD CONSTRAINT fk_71cce407f9 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_project_compliance_standards_adherence_on_project_id ON project_compliance_standards_adherence USING btree (project_id); +CREATE INDEX index_project_custom_attributes_on_key_and_value ON project_custom_attributes USING btree (key, value); --- --- Name: subscription_user_add_on_assignments fk_724c2df9a8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_project_custom_attributes_on_project_id_and_key ON project_custom_attributes USING btree (project_id, key); -ALTER TABLE ONLY public.subscription_user_add_on_assignments - ADD CONSTRAINT fk_724c2df9a8 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_project_daily_statistics_on_project_id_and_date ON project_daily_statistics USING btree (project_id, date DESC); +CREATE INDEX index_project_data_transfers_on_namespace_id ON project_data_transfers USING btree (namespace_id); --- --- Name: vulnerabilities fk_725465b774; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_project_data_transfers_on_project_and_namespace_and_date ON project_data_transfers USING btree (project_id, namespace_id, date); -ALTER TABLE ONLY public.vulnerabilities - ADD CONSTRAINT fk_725465b774 FOREIGN KEY (dismissed_by_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_project_deploy_tokens_on_deploy_token_id ON project_deploy_tokens USING btree (deploy_token_id); +CREATE UNIQUE INDEX index_project_deploy_tokens_on_project_id_and_deploy_token_id ON project_deploy_tokens USING btree (project_id, deploy_token_id); --- --- Name: packages_conan_metadata fk_7302a29cd9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_project_export_job_relation ON project_relation_exports USING btree (project_export_job_id, relation); -ALTER TABLE ONLY public.packages_conan_metadata - ADD CONSTRAINT fk_7302a29cd9 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_project_export_jobs_on_jid ON project_export_jobs USING btree (jid); +CREATE INDEX index_project_export_jobs_on_project_id_and_jid ON project_export_jobs USING btree (project_id, jid); --- --- Name: approval_merge_request_rules fk_73fec3d7e5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_project_export_jobs_on_project_id_and_status ON project_export_jobs USING btree (project_id, status); -ALTER TABLE ONLY public.approval_merge_request_rules - ADD CONSTRAINT fk_73fec3d7e5 FOREIGN KEY (approval_policy_rule_id) REFERENCES public.approval_policy_rules(id) ON DELETE CASCADE; +CREATE INDEX index_project_export_jobs_on_status ON project_export_jobs USING btree (status); +CREATE INDEX index_project_export_jobs_on_updated_at_and_id ON project_export_jobs USING btree (updated_at, id); --- --- Name: index_statuses fk_74b2492545; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_project_export_jobs_on_user_id ON project_export_jobs USING btree (user_id); -ALTER TABLE ONLY public.index_statuses - ADD CONSTRAINT fk_74b2492545 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_project_feature_usages_on_project_id ON project_feature_usages USING btree (project_id); +CREATE UNIQUE INDEX index_project_features_on_project_id ON project_features USING btree (project_id); --- --- Name: abuse_report_notes fk_74e1990397; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_project_features_on_project_id_bal_20 ON project_features USING btree (project_id) WHERE (builds_access_level = 20); -ALTER TABLE ONLY public.abuse_report_notes - ADD CONSTRAINT fk_74e1990397 FOREIGN KEY (abuse_report_id) REFERENCES public.abuse_reports(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_project_features_on_project_id_include_container_registry ON project_features USING btree (project_id) INCLUDE (container_registry_access_level); +COMMENT ON INDEX index_project_features_on_project_id_include_container_registry IS 'Included column (container_registry_access_level) improves performance of the ContainerRepository.for_group_and_its_subgroups scope query'; --- --- Name: software_license_policies fk_74f6d8328a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_project_features_on_project_id_on_public_package_registry ON project_features USING btree (project_id) WHERE (package_registry_access_level = 30); -ALTER TABLE ONLY public.software_license_policies - ADD CONSTRAINT fk_74f6d8328a FOREIGN KEY (custom_software_license_id) REFERENCES public.custom_software_licenses(id) ON DELETE CASCADE; +CREATE INDEX index_project_features_on_project_id_ral_20 ON project_features USING btree (project_id) WHERE (repository_access_level = 20); +CREATE INDEX index_project_group_links_on_group_id_and_project_id ON project_group_links USING btree (group_id, project_id); --- --- Name: cluster_agent_tokens fk_75008f3553; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_project_group_links_on_project_id ON project_group_links USING btree (project_id); -ALTER TABLE ONLY public.cluster_agent_tokens - ADD CONSTRAINT fk_75008f3553 FOREIGN KEY (created_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_project_import_data_on_project_id ON project_import_data USING btree (project_id); +CREATE INDEX index_project_incident_management_settings_on_p_id_sla_timer ON project_incident_management_settings USING btree (project_id) WHERE (sla_timer = true); --- --- Name: protected_tag_create_access_levels fk_7537413f9d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_project_members_on_id_temp ON members USING btree (id) WHERE ((source_type)::text = 'Project'::text); -ALTER TABLE ONLY public.protected_tag_create_access_levels - ADD CONSTRAINT fk_7537413f9d FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_project_mirror_data_on_last_successful_update_at ON project_mirror_data USING btree (last_successful_update_at); +CREATE INDEX index_project_mirror_data_on_last_update_at_and_retry_count ON project_mirror_data USING btree (last_update_at, retry_count); --- --- Name: environments fk_75c2098045; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_project_mirror_data_on_project_id ON project_mirror_data USING btree (project_id); -ALTER TABLE ONLY public.environments - ADD CONSTRAINT fk_75c2098045 FOREIGN KEY (cluster_agent_id) REFERENCES public.cluster_agents(id) ON DELETE SET NULL; +CREATE INDEX index_project_mirror_data_on_status ON project_mirror_data USING btree (status); +CREATE INDEX index_project_pages_metadata_on_pages_deployment_id ON project_pages_metadata USING btree (pages_deployment_id); --- --- Name: vulnerabilities fk_76bc5f5455; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_project_pages_metadata_on_project_id_and_deployed_is_true ON project_pages_metadata USING btree (project_id) WHERE (deployed = true); -ALTER TABLE ONLY public.vulnerabilities - ADD CONSTRAINT fk_76bc5f5455 FOREIGN KEY (resolved_by_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_project_relation_export_upload_id ON project_relation_export_uploads USING btree (project_relation_export_id); +CREATE INDEX index_project_relation_exports_on_project_id ON project_relation_exports USING btree (project_id); --- --- Name: notes fk_76db6d50c6; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_project_repositories_on_disk_path ON project_repositories USING btree (disk_path); -ALTER TABLE ONLY public.notes - ADD CONSTRAINT fk_76db6d50c6 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_project_repositories_on_project_id ON project_repositories USING btree (project_id); +CREATE INDEX index_project_repositories_on_shard_id_and_project_id ON project_repositories USING btree (shard_id, project_id); --- --- Name: oauth_openid_requests fk_77114b3b09; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_project_repository_storage_moves_on_project_id ON project_repository_storage_moves USING btree (project_id); -ALTER TABLE ONLY public.oauth_openid_requests - ADD CONSTRAINT fk_77114b3b09 FOREIGN KEY (access_grant_id) REFERENCES public.oauth_access_grants(id) ON DELETE CASCADE; +CREATE INDEX index_project_saved_replies_on_project_id ON project_saved_replies USING btree (project_id); +CREATE UNIQUE INDEX index_project_secrets_managers_on_project_id ON project_secrets_managers USING btree (project_id); --- --- Name: scan_result_policy_violations fk_77251168f1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_project_settings_on_legacy_os_license_project_id ON project_settings USING btree (project_id) WHERE (legacy_open_source_license_available = true); -ALTER TABLE ONLY public.scan_result_policy_violations - ADD CONSTRAINT fk_77251168f1 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_project_settings_on_project_id_partially ON project_settings USING btree (project_id) WHERE (has_vulnerabilities IS TRUE); +CREATE UNIQUE INDEX index_project_settings_on_push_rule_id ON project_settings USING btree (push_rule_id); --- --- Name: approval_project_rules fk_773289d10b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_project_states_failed_verification ON project_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); -ALTER TABLE ONLY public.approval_project_rules - ADD CONSTRAINT fk_773289d10b FOREIGN KEY (approval_policy_rule_id) REFERENCES public.approval_policy_rules(id) ON DELETE CASCADE; +CREATE INDEX index_project_states_needs_verification ON project_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); +CREATE UNIQUE INDEX index_project_states_on_project_id ON project_states USING btree (project_id); --- --- Name: agent_user_access_project_authorizations fk_78034b05d8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_project_states_on_verification_state ON project_states USING btree (verification_state); -ALTER TABLE ONLY public.agent_user_access_project_authorizations - ADD CONSTRAINT fk_78034b05d8 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_project_states_pending_verification ON project_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); +CREATE INDEX index_project_statistics_on_namespace_id ON project_statistics USING btree (namespace_id); --- --- Name: users fk_789cd90b35; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_project_statistics_on_packages_size_and_project_id ON project_statistics USING btree (packages_size, project_id); -ALTER TABLE ONLY public.users - ADD CONSTRAINT fk_789cd90b35 FOREIGN KEY (accepted_term_id) REFERENCES public.application_setting_terms(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_project_statistics_on_project_id ON project_statistics USING btree (project_id); +CREATE INDEX index_project_statistics_on_repository_size_and_project_id ON project_statistics USING btree (repository_size, project_id); --- --- Name: analytics_devops_adoption_snapshots fk_78c9eac821; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_project_statistics_on_root_namespace_id ON project_statistics USING btree (root_namespace_id); -ALTER TABLE ONLY public.analytics_devops_adoption_snapshots - ADD CONSTRAINT fk_78c9eac821 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_project_statistics_on_storage_size_and_project_id ON project_statistics USING btree (storage_size, project_id); +CREATE INDEX index_project_statistics_on_wiki_size_and_project_id ON project_statistics USING btree (wiki_size, project_id); --- --- Name: packages_maven_metadata fk_7a170ee0a3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_project_topics_on_project_id_and_topic_id ON project_topics USING btree (project_id, topic_id); -ALTER TABLE ONLY public.packages_maven_metadata - ADD CONSTRAINT fk_7a170ee0a3 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_project_topics_on_topic_id ON project_topics USING btree (topic_id); +CREATE UNIQUE INDEX index_project_user_callouts_feature ON user_project_callouts USING btree (user_id, feature_name, project_id); --- --- Name: project_relation_exports fk_7a4d3d5c0f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_project_wiki_repositories_on_project_id ON project_wiki_repositories USING btree (project_id); -ALTER TABLE ONLY public.project_relation_exports - ADD CONSTRAINT fk_7a4d3d5c0f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_projects_aimed_for_deletion ON projects USING btree (marked_for_deletion_at) WHERE ((marked_for_deletion_at IS NOT NULL) AND (pending_delete = false)); +CREATE INDEX index_projects_api_created_at_id_desc ON projects USING btree (created_at, id DESC); --- --- Name: lists fk_7a5553d60f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_projects_api_last_activity_at_id_desc ON projects USING btree (last_activity_at, id DESC); -ALTER TABLE ONLY public.lists - ADD CONSTRAINT fk_7a5553d60f FOREIGN KEY (label_id) REFERENCES public.labels(id) ON DELETE CASCADE; +CREATE INDEX index_projects_api_name_id_desc ON projects USING btree (name, id DESC); +CREATE INDEX index_projects_api_path_id_desc ON projects USING btree (path, id DESC); --- --- Name: protected_branches fk_7a9c6d93e7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_projects_api_updated_at_id_desc ON projects USING btree (updated_at, id DESC); -ALTER TABLE ONLY public.protected_branches - ADD CONSTRAINT fk_7a9c6d93e7 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_projects_api_vis20_created_at ON projects USING btree (created_at, id) WHERE (visibility_level = 20); +CREATE INDEX index_projects_api_vis20_last_activity_at ON projects USING btree (last_activity_at, id) WHERE (visibility_level = 20); --- --- Name: scan_result_policies fk_7aa24439f1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_projects_api_vis20_name ON projects USING btree (name, id) WHERE (visibility_level = 20); -ALTER TABLE ONLY public.scan_result_policies - ADD CONSTRAINT fk_7aa24439f1 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_projects_api_vis20_path ON projects USING btree (path, id) WHERE (visibility_level = 20); +CREATE INDEX index_projects_api_vis20_updated_at ON projects USING btree (updated_at, id) WHERE (visibility_level = 20); --- --- Name: catalog_resource_versions fk_7ad8849db4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_projects_id_for_aimed_for_deletion ON projects USING btree (id, marked_for_deletion_at) WHERE ((marked_for_deletion_at IS NOT NULL) AND (pending_delete = false)); -ALTER TABLE ONLY public.catalog_resource_versions - ADD CONSTRAINT fk_7ad8849db4 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_projects_not_aimed_for_deletion ON projects USING btree (id) WHERE (marked_for_deletion_at IS NULL); +CREATE INDEX index_projects_on_creator_id_and_created_at_and_id ON projects USING btree (creator_id, created_at, id); --- --- Name: issue_customer_relations_contacts fk_7b92f835bb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_projects_on_creator_id_and_id ON projects USING btree (creator_id, id); -ALTER TABLE ONLY public.issue_customer_relations_contacts - ADD CONSTRAINT fk_7b92f835bb FOREIGN KEY (contact_id) REFERENCES public.customer_relations_contacts(id) ON DELETE CASCADE; +CREATE INDEX index_projects_on_creator_id_import_type_and_created_at_partial ON projects USING btree (creator_id, import_type, created_at) WHERE (import_type IS NOT NULL); +CREATE INDEX index_projects_on_description_trigram ON projects USING gin (description gin_trgm_ops); --- --- Name: ssh_signatures fk_7d2f93996c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_projects_on_id_and_archived_and_pending_delete ON projects USING btree (id) WHERE ((archived = false) AND (pending_delete = false)); -ALTER TABLE ONLY public.ssh_signatures - ADD CONSTRAINT fk_7d2f93996c FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_projects_on_id_partial_for_visibility ON projects USING btree (id) WHERE (visibility_level = ANY (ARRAY[10, 20])); +CREATE INDEX index_projects_on_id_service_desk_enabled ON projects USING btree (id) WHERE (service_desk_enabled = true); --- --- Name: sent_notifications fk_7d7663e36a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_projects_on_last_activity_at_and_id ON projects USING btree (last_activity_at, id); -ALTER TABLE ONLY public.sent_notifications - ADD CONSTRAINT fk_7d7663e36a FOREIGN KEY (issue_email_participant_id) REFERENCES public.issue_email_participants(id) ON DELETE SET NULL NOT VALID; +CREATE INDEX index_projects_on_last_repository_check_at ON projects USING btree (last_repository_check_at) WHERE (last_repository_check_at IS NOT NULL); +CREATE INDEX index_projects_on_last_repository_check_failed ON projects USING btree (last_repository_check_failed); --- --- Name: labels fk_7de4989a69; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_projects_on_last_repository_updated_at ON projects USING btree (last_repository_updated_at); -ALTER TABLE ONLY public.labels - ADD CONSTRAINT fk_7de4989a69 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_projects_on_lower_name ON projects USING btree (lower((name)::text)); +CREATE INDEX index_projects_on_marked_for_deletion_by_user_id ON projects USING btree (marked_for_deletion_by_user_id) WHERE (marked_for_deletion_by_user_id IS NOT NULL); --- --- Name: merge_requests fk_7e85395a64; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_projects_on_mirror_creator_id_created_at ON projects USING btree (creator_id, created_at) WHERE ((mirror = true) AND (mirror_trigger_builds = true)); -ALTER TABLE ONLY public.merge_requests - ADD CONSTRAINT fk_7e85395a64 FOREIGN KEY (sprint_id) REFERENCES public.sprints(id) ON DELETE SET NULL; +CREATE INDEX index_projects_on_mirror_id_where_mirror_and_trigger_builds ON projects USING btree (id) WHERE ((mirror = true) AND (mirror_trigger_builds = true)); +CREATE INDEX index_projects_on_mirror_user_id ON projects USING btree (mirror_user_id); --- --- Name: merge_request_metrics fk_7f28d925f3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_projects_on_name_and_id ON projects USING btree (name, id); -ALTER TABLE ONLY public.merge_request_metrics - ADD CONSTRAINT fk_7f28d925f3 FOREIGN KEY (merged_by_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_projects_on_name_trigram ON projects USING gin (name gin_trgm_ops); +CREATE INDEX index_projects_on_namespace_id_and_id ON projects USING btree (namespace_id, id); --- --- Name: namespaces fk_7f813d8c90; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_projects_on_namespace_id_and_repository_size_limit ON projects USING btree (namespace_id, repository_size_limit); -ALTER TABLE ONLY public.namespaces - ADD CONSTRAINT fk_7f813d8c90 FOREIGN KEY (parent_id) REFERENCES public.namespaces(id) ON DELETE RESTRICT NOT VALID; +CREATE INDEX index_projects_on_organization_id_and_id ON projects USING btree (organization_id, id); +CREATE INDEX index_projects_on_path_trigram ON projects USING gin (path gin_trgm_ops); --- --- Name: group_import_states fk_8053b3ebd6; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_projects_on_pending_delete ON projects USING btree (pending_delete); -ALTER TABLE ONLY public.group_import_states - ADD CONSTRAINT fk_8053b3ebd6 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_projects_on_pool_repository_id ON projects USING btree (pool_repository_id) WHERE (pool_repository_id IS NOT NULL); +CREATE UNIQUE INDEX index_projects_on_project_namespace_id ON projects USING btree (project_namespace_id); --- --- Name: packages_debian_project_components fk_8053c57c65; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_projects_on_repository_storage ON projects USING btree (repository_storage); -ALTER TABLE ONLY public.packages_debian_project_components - ADD CONSTRAINT fk_8053c57c65 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_projects_on_star_count ON projects USING btree (star_count); +CREATE INDEX index_projects_on_updated_at_and_id ON projects USING btree (updated_at, id); --- --- Name: sprints fk_80aa8a1f95; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_projects_sync_events_on_project_id ON projects_sync_events USING btree (project_id); -ALTER TABLE ONLY public.sprints - ADD CONSTRAINT fk_80aa8a1f95 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_projects_visits_on_entity_id ON ONLY projects_visits USING btree (entity_id); +CREATE INDEX index_projects_visits_on_user_id_and_entity_id_and_visited_at ON ONLY projects_visits USING btree (user_id, entity_id, visited_at); --- --- Name: related_epic_links fk_8257080565; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_prometheus_alert_event_scoped_payload_key ON prometheus_alert_events USING btree (prometheus_alert_id, payload_key); -ALTER TABLE ONLY public.related_epic_links - ADD CONSTRAINT fk_8257080565 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_prometheus_alert_events_on_project_id_and_status ON prometheus_alert_events USING btree (project_id, status); +CREATE UNIQUE INDEX index_prometheus_alerts_metric_environment ON prometheus_alerts USING btree (project_id, prometheus_metric_id, environment_id); --- --- Name: import_export_uploads fk_83319d9721; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_prometheus_alerts_on_environment_id ON prometheus_alerts USING btree (environment_id); -ALTER TABLE ONLY public.import_export_uploads - ADD CONSTRAINT fk_83319d9721 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_prometheus_alerts_on_prometheus_metric_id ON prometheus_alerts USING btree (prometheus_metric_id); +CREATE INDEX index_prometheus_metrics_on_common ON prometheus_metrics USING btree (common); --- --- Name: push_rules fk_83b29894de; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_prometheus_metrics_on_group ON prometheus_metrics USING btree ("group"); -ALTER TABLE ONLY public.push_rules - ADD CONSTRAINT fk_83b29894de FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_prometheus_metrics_on_identifier_and_null_project ON prometheus_metrics USING btree (identifier) WHERE (project_id IS NULL); +CREATE UNIQUE INDEX index_prometheus_metrics_on_identifier_and_project_id ON prometheus_metrics USING btree (identifier, project_id); --- --- Name: merge_request_diffs fk_8483f3258f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_prometheus_metrics_on_project_id ON prometheus_metrics USING btree (project_id); -ALTER TABLE ONLY public.merge_request_diffs - ADD CONSTRAINT fk_8483f3258f FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +CREATE INDEX index_protected_branch_merge_access ON protected_branch_merge_access_levels USING btree (protected_branch_id); +CREATE INDEX index_protected_branch_merge_access_levels_on_group_id ON protected_branch_merge_access_levels USING btree (group_id); --- --- Name: requirements fk_85044baef0; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_protected_branch_merge_access_levels_on_user_id ON protected_branch_merge_access_levels USING btree (user_id); -ALTER TABLE ONLY public.requirements - ADD CONSTRAINT fk_85044baef0 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +CREATE INDEX index_protected_branch_push_access ON protected_branch_push_access_levels USING btree (protected_branch_id); +CREATE INDEX index_protected_branch_push_access_levels_on_group_id ON protected_branch_push_access_levels USING btree (group_id); --- --- Name: catalog_resource_components fk_85bb1d1e79; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_protected_branch_push_access_levels_on_user_id ON protected_branch_push_access_levels USING btree (user_id); -ALTER TABLE ONLY public.catalog_resource_components - ADD CONSTRAINT fk_85bb1d1e79 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_protected_branch_unprotect_access ON protected_branch_unprotect_access_levels USING btree (protected_branch_id); +CREATE INDEX index_protected_branch_unprotect_access_levels_on_group_id ON protected_branch_unprotect_access_levels USING btree (group_id); --- --- Name: ci_build_pending_states fk_861cd17da3_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_protected_branch_unprotect_access_levels_on_user_id ON protected_branch_unprotect_access_levels USING btree (user_id); -ALTER TABLE ONLY public.ci_build_pending_states - ADD CONSTRAINT fk_861cd17da3_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +CREATE INDEX index_protected_branches_namespace_id ON protected_branches USING btree (namespace_id) WHERE (namespace_id IS NOT NULL); +CREATE INDEX index_protected_branches_on_project_id ON protected_branches USING btree (project_id); --- --- Name: observability_logs_issues_connections fk_86c5fb94cc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_protected_environment_approval_rules_on_group_id ON protected_environment_approval_rules USING btree (group_id); -ALTER TABLE ONLY public.observability_logs_issues_connections - ADD CONSTRAINT fk_86c5fb94cc FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_protected_environment_approval_rules_on_user_id ON protected_environment_approval_rules USING btree (user_id); +CREATE INDEX index_protected_environment_deploy_access ON protected_environment_deploy_access_levels USING btree (protected_environment_id); --- --- Name: packages_package_files fk_86f0f182f8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_protected_environment_deploy_access_levels_on_group_id ON protected_environment_deploy_access_levels USING btree (group_id); -ALTER TABLE ONLY public.packages_package_files - ADD CONSTRAINT fk_86f0f182f8 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; +CREATE INDEX index_protected_environment_deploy_access_levels_on_user_id ON protected_environment_deploy_access_levels USING btree (user_id); +CREATE INDEX index_protected_environment_group_id_of_protected_environment_a ON protected_environment_approval_rules USING btree (protected_environment_group_id); --- --- Name: p_ci_builds fk_87f4cefcda_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_protected_environment_project_id_of_protected_environment ON protected_environment_approval_rules USING btree (protected_environment_project_id); -ALTER TABLE public.p_ci_builds - ADD CONSTRAINT fk_87f4cefcda_p FOREIGN KEY (upstream_pipeline_partition_id, upstream_pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +CREATE INDEX index_protected_environments_on_approval_count_and_created_at ON protected_environments USING btree (required_approval_count, created_at); +CREATE UNIQUE INDEX index_protected_environments_on_group_id_and_name ON protected_environments USING btree (group_id, name) WHERE (group_id IS NOT NULL); --- --- Name: ci_builds fk_87f4cefcda_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_protected_environments_on_project_id_and_name ON protected_environments USING btree (project_id, name); -ALTER TABLE ONLY public.ci_builds - ADD CONSTRAINT fk_87f4cefcda_p_tmp FOREIGN KEY (upstream_pipeline_partition_id, upstream_pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +CREATE INDEX index_protected_tag_create_access ON protected_tag_create_access_levels USING btree (protected_tag_id); +CREATE INDEX index_protected_tag_create_access_levels_on_deploy_key_id ON protected_tag_create_access_levels USING btree (deploy_key_id); --- --- Name: approval_group_rules_users fk_888a0df3b7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_protected_tag_create_access_levels_on_group_id ON protected_tag_create_access_levels USING btree (group_id); -ALTER TABLE ONLY public.approval_group_rules_users - ADD CONSTRAINT fk_888a0df3b7 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_protected_tag_create_access_levels_on_project_id ON protected_tag_create_access_levels USING btree (project_id); +CREATE INDEX index_protected_tag_create_access_levels_on_user_id ON protected_tag_create_access_levels USING btree (user_id); --- --- Name: vulnerability_findings_remediations fk_88a2923914; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_protected_tags_on_project_id_and_name ON protected_tags USING btree (project_id, name); -ALTER TABLE ONLY public.vulnerability_findings_remediations - ADD CONSTRAINT fk_88a2923914 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_push_rules_on_is_sample ON push_rules USING btree (is_sample) WHERE is_sample; +CREATE INDEX index_push_rules_on_organization_id ON push_rules USING btree (organization_id); --- --- Name: bulk_import_entities fk_88c725229f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_push_rules_on_project_id ON push_rules USING btree (project_id); -ALTER TABLE ONLY public.bulk_import_entities - ADD CONSTRAINT fk_88c725229f FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_raw_usage_data_on_organization_id ON raw_usage_data USING btree (organization_id); +CREATE UNIQUE INDEX index_raw_usage_data_on_recorded_at ON raw_usage_data USING btree (recorded_at); --- --- Name: requirements_management_test_reports fk_88f30752fc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_redirect_routes_on_path ON redirect_routes USING btree (path); -ALTER TABLE ONLY public.requirements_management_test_reports - ADD CONSTRAINT fk_88f30752fc FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_redirect_routes_on_path_unique_text_pattern_ops ON redirect_routes USING btree (lower((path)::text) varchar_pattern_ops); +CREATE INDEX index_redirect_routes_on_source_type_and_source_id ON redirect_routes USING btree (source_type, source_id); --- --- Name: issues fk_899c8f3231; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_related_epic_links_on_group_id ON related_epic_links USING btree (group_id); -ALTER TABLE ONLY public.issues - ADD CONSTRAINT fk_899c8f3231 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_related_epic_links_on_source_id ON related_epic_links USING btree (source_id); +CREATE UNIQUE INDEX index_related_epic_links_on_source_id_and_target_id ON related_epic_links USING btree (source_id, target_id); --- --- Name: ci_build_trace_chunks fk_89e29fa5ee_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_related_epic_links_on_target_id ON related_epic_links USING btree (target_id); -ALTER TABLE ONLY public.ci_build_trace_chunks - ADD CONSTRAINT fk_89e29fa5ee_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +CREATE INDEX index_relation_import_trackers_on_project_id ON relation_import_trackers USING btree (project_id); +CREATE INDEX index_release_links_on_project_id ON release_links USING btree (project_id); --- --- Name: catalog_resource_components fk_89fd1a3e33; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_release_links_on_release_id_and_name ON release_links USING btree (release_id, name); -ALTER TABLE ONLY public.catalog_resource_components - ADD CONSTRAINT fk_89fd1a3e33 FOREIGN KEY (version_id) REFERENCES public.catalog_resource_versions(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_release_links_on_release_id_and_url ON release_links USING btree (release_id, url); +CREATE INDEX index_releases_on_author_id_id_created_at ON releases USING btree (author_id, id, created_at); --- --- Name: epic_issues fk_8a0fdc0d65; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_releases_on_project_id_and_released_at_and_id ON releases USING btree (project_id, released_at, id); -ALTER TABLE ONLY public.epic_issues - ADD CONSTRAINT fk_8a0fdc0d65 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_releases_on_project_id_and_updated_at_and_released_at ON releases USING btree (project_id, updated_at, released_at); +CREATE INDEX index_releases_on_project_id_id ON releases USING btree (project_id, id); --- --- Name: protected_branch_merge_access_levels fk_8a3072ccb3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_releases_on_project_tag_unique ON releases USING btree (project_id, tag); -ALTER TABLE ONLY public.protected_branch_merge_access_levels - ADD CONSTRAINT fk_8a3072ccb3 FOREIGN KEY (protected_branch_id) REFERENCES public.protected_branches(id) ON DELETE CASCADE; +CREATE INDEX index_releases_on_released_at ON releases USING btree (released_at); +CREATE INDEX index_remote_development_agent_configs_on_project_id ON remote_development_agent_configs USING btree (project_id); --- --- Name: work_item_dates_sources fk_8a4948b668; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_remote_development_agent_configs_on_unique_agent_id ON remote_development_agent_configs USING btree (cluster_agent_id); -ALTER TABLE ONLY public.work_item_dates_sources - ADD CONSTRAINT fk_8a4948b668 FOREIGN KEY (start_date_sourcing_work_item_id) REFERENCES public.issues(id) ON DELETE SET NULL; +CREATE INDEX index_remote_mirrors_on_last_successful_update_at ON remote_mirrors USING btree (last_successful_update_at); +CREATE INDEX index_remote_mirrors_on_project_id ON remote_mirrors USING btree (project_id); --- --- Name: bulk_import_exports fk_8c6f33cebe; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_required_code_owners_sections_on_protected_branch_id ON required_code_owners_sections USING btree (protected_branch_id); -ALTER TABLE ONLY public.bulk_import_exports - ADD CONSTRAINT fk_8c6f33cebe FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_requirements_management_test_reports_on_author_id ON requirements_management_test_reports USING btree (author_id); +CREATE INDEX index_requirements_management_test_reports_on_build_id ON requirements_management_test_reports USING btree (build_id); --- --- Name: raw_usage_data fk_8e21125854; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_requirements_management_test_reports_on_issue_id ON requirements_management_test_reports USING btree (issue_id); -ALTER TABLE ONLY public.raw_usage_data - ADD CONSTRAINT fk_8e21125854 FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_requirements_on_issue_id ON requirements USING btree (issue_id); +CREATE INDEX index_requirements_on_project_id ON requirements USING btree (project_id); --- --- Name: releases fk_8e4456f90f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_requirements_on_project_id_and_iid ON requirements USING btree (project_id, iid) WHERE (project_id IS NOT NULL); -ALTER TABLE ONLY public.releases - ADD CONSTRAINT fk_8e4456f90f FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_requirements_project_id_user_id_id_and_target_type ON todos USING btree (project_id, user_id, id, target_type); +CREATE INDEX index_requirements_user_id_and_target_type ON todos USING btree (user_id, target_type); --- --- Name: protected_tags fk_8e4af87648; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_resource_iteration_events_on_issue_id ON resource_iteration_events USING btree (issue_id); -ALTER TABLE ONLY public.protected_tags - ADD CONSTRAINT fk_8e4af87648 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_resource_iteration_events_on_iteration_id ON resource_iteration_events USING btree (iteration_id); +CREATE INDEX index_resource_iteration_events_on_iteration_id_and_add_action ON resource_iteration_events USING btree (iteration_id) WHERE (action = 1); --- --- Name: observability_metrics_issues_connections fk_8e765678ba; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_resource_iteration_events_on_merge_request_id ON resource_iteration_events USING btree (merge_request_id); -ALTER TABLE ONLY public.observability_metrics_issues_connections - ADD CONSTRAINT fk_8e765678ba FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_resource_iteration_events_on_user_id ON resource_iteration_events USING btree (user_id); +CREATE INDEX index_resource_label_events_issue_id_label_id_action ON resource_label_events USING btree (issue_id, label_id, action); --- --- Name: audit_events_streaming_group_namespace_filters fk_8ed182d7da; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_resource_label_events_on_epic_id ON resource_label_events USING btree (epic_id); -ALTER TABLE ONLY public.audit_events_streaming_group_namespace_filters - ADD CONSTRAINT fk_8ed182d7da FOREIGN KEY (external_streaming_destination_id) REFERENCES public.audit_events_group_external_streaming_destinations(id) ON DELETE CASCADE; +CREATE INDEX index_resource_label_events_on_label_id_and_action ON resource_label_events USING btree (label_id, action); +CREATE INDEX index_resource_label_events_on_merge_request_id_label_id_action ON resource_label_events USING btree (merge_request_id, label_id, action); --- --- Name: compliance_requirements fk_8f5fb77fc7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_resource_label_events_on_user_id ON resource_label_events USING btree (user_id); -ALTER TABLE ONLY public.compliance_requirements - ADD CONSTRAINT fk_8f5fb77fc7 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_resource_link_events_on_child_work_item_id ON resource_link_events USING btree (child_work_item_id); +CREATE INDEX index_resource_link_events_on_issue_id ON resource_link_events USING btree (issue_id); --- --- Name: todos fk_91d1f47b13; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_resource_link_events_on_user_id ON resource_link_events USING btree (user_id); -ALTER TABLE ONLY public.todos - ADD CONSTRAINT fk_91d1f47b13 FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; +CREATE INDEX index_resource_milestone_events_created_at ON resource_milestone_events USING btree (created_at); +CREATE INDEX index_resource_milestone_events_on_issue_id ON resource_milestone_events USING btree (issue_id); --- --- Name: packages_debian_group_architectures fk_92714bcab1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_resource_milestone_events_on_merge_request_id ON resource_milestone_events USING btree (merge_request_id); -ALTER TABLE ONLY public.packages_debian_group_architectures - ADD CONSTRAINT fk_92714bcab1 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_resource_milestone_events_on_milestone_id ON resource_milestone_events USING btree (milestone_id); +CREATE INDEX index_resource_milestone_events_on_milestone_id_and_add_action ON resource_milestone_events USING btree (milestone_id) WHERE (action = 1); --- --- Name: workspaces_agent_configs fk_94660551c8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_resource_milestone_events_on_user_id ON resource_milestone_events USING btree (user_id); -ALTER TABLE ONLY public.workspaces_agent_configs - ADD CONSTRAINT fk_94660551c8 FOREIGN KEY (cluster_agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; +CREATE INDEX index_resource_state_events_on_epic_id ON resource_state_events USING btree (epic_id); +CREATE INDEX index_resource_state_events_on_issue_id_and_created_at ON resource_state_events USING btree (issue_id, created_at); --- --- Name: dast_site_profiles_builds fk_94e80df60e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_resource_state_events_on_merge_request_id ON resource_state_events USING btree (merge_request_id); -ALTER TABLE ONLY public.dast_site_profiles_builds - ADD CONSTRAINT fk_94e80df60e FOREIGN KEY (dast_site_profile_id) REFERENCES public.dast_site_profiles(id) ON DELETE CASCADE; +CREATE INDEX index_resource_state_events_on_source_merge_request_id ON resource_state_events USING btree (source_merge_request_id); +CREATE INDEX index_resource_state_events_on_user_id ON resource_state_events USING btree (user_id); --- --- Name: vulnerability_feedback fk_94f7c8a81e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_resource_weight_events_on_issue_id_and_created_at ON resource_weight_events USING btree (issue_id, created_at); -ALTER TABLE ONLY public.vulnerability_feedback - ADD CONSTRAINT fk_94f7c8a81e FOREIGN KEY (comment_author_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_resource_weight_events_on_issue_id_and_weight ON resource_weight_events USING btree (issue_id, weight); +CREATE INDEX index_resource_weight_events_on_user_id ON resource_weight_events USING btree (user_id); --- --- Name: milestones fk_95650a40d4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_reviews_on_author_id ON reviews USING btree (author_id); -ALTER TABLE ONLY public.milestones - ADD CONSTRAINT fk_95650a40d4 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_reviews_on_merge_request_id ON reviews USING btree (merge_request_id); +CREATE INDEX index_reviews_on_project_id ON reviews USING btree (project_id); --- --- Name: vulnerabilities fk_959d40ad0a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_route_on_name_trigram ON routes USING gin (name gin_trgm_ops); -ALTER TABLE ONLY public.vulnerabilities - ADD CONSTRAINT fk_959d40ad0a FOREIGN KEY (confirmed_by_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_routes_on_namespace_id ON routes USING btree (namespace_id); +CREATE UNIQUE INDEX index_routes_on_path ON routes USING btree (path); --- --- Name: boards_epic_list_user_preferences fk_95eac55851; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_routes_on_path_text_pattern_ops ON routes USING btree (path varchar_pattern_ops); -ALTER TABLE ONLY public.boards_epic_list_user_preferences - ADD CONSTRAINT fk_95eac55851 FOREIGN KEY (epic_list_id) REFERENCES public.boards_epic_lists(id) ON DELETE CASCADE; +CREATE INDEX index_routes_on_path_trigram ON routes USING gin (path gin_trgm_ops); +CREATE UNIQUE INDEX index_routes_on_source_type_and_source_id ON routes USING btree (source_type, source_id); --- --- Name: issues fk_96b1dd429c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_saml_group_links_on_group_id_and_saml_group_name ON saml_group_links USING btree (group_id, saml_group_name); -ALTER TABLE ONLY public.issues - ADD CONSTRAINT fk_96b1dd429c FOREIGN KEY (milestone_id) REFERENCES public.milestones(id) ON DELETE SET NULL; +CREATE INDEX index_saml_group_links_on_member_role_id ON saml_group_links USING btree (member_role_id); +CREATE INDEX index_saml_providers_on_group_id ON saml_providers USING btree (group_id); --- --- Name: agent_user_access_group_authorizations fk_97ce8e8284; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_saml_providers_on_member_role_id ON saml_providers USING btree (member_role_id); -ALTER TABLE ONLY public.agent_user_access_group_authorizations - ADD CONSTRAINT fk_97ce8e8284 FOREIGN KEY (agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_saved_replies_on_name_text_pattern_ops ON saved_replies USING btree (user_id, name text_pattern_ops); +CREATE UNIQUE INDEX index_sbom_component_versions_on_component_id_and_version ON sbom_component_versions USING btree (component_id, version); --- --- Name: vulnerability_occurrences fk_97ffe77653; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_sbom_components_on_component_type_name_and_purl_type ON sbom_components USING btree (name, purl_type, component_type); -ALTER TABLE ONLY public.vulnerability_occurrences - ADD CONSTRAINT fk_97ffe77653 FOREIGN KEY (vulnerability_id) REFERENCES public.vulnerabilities(id) ON DELETE SET NULL; +CREATE INDEX index_sbom_components_on_organization_id ON sbom_components USING btree (organization_id); +CREATE INDEX index_sbom_occurr_on_project_id_and_component_version_id_and_id ON sbom_occurrences USING btree (project_id, component_version_id, id); --- --- Name: protected_branch_merge_access_levels fk_98f3d044fe; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_sbom_occurrences_on_component_id_and_id ON sbom_occurrences USING btree (component_id, id); -ALTER TABLE ONLY public.protected_branch_merge_access_levels - ADD CONSTRAINT fk_98f3d044fe FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_sbom_occurrences_on_component_version_id ON sbom_occurrences USING btree (component_version_id); +CREATE INDEX index_sbom_occurrences_on_highest_severity ON sbom_occurrences USING btree (project_id, highest_severity DESC NULLS LAST); --- --- Name: notes fk_99e097b079; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_sbom_occurrences_on_licenses_spdx_identifier ON sbom_occurrences USING btree (project_id, ((licenses #> '{0,spdx_identifier}'::text[])), ((licenses #> '{1,spdx_identifier}'::text[]))); -ALTER TABLE ONLY public.notes - ADD CONSTRAINT fk_99e097b079 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_sbom_occurrences_on_pipeline_id ON sbom_occurrences USING btree (pipeline_id); +CREATE INDEX index_sbom_occurrences_on_project_id_and_component_id_and_id ON sbom_occurrences USING btree (project_id, component_id, id); --- --- Name: approval_group_rules_users fk_9a4b673183; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_sbom_occurrences_on_project_id_and_id ON sbom_occurrences USING btree (project_id, id); -ALTER TABLE ONLY public.approval_group_rules_users - ADD CONSTRAINT fk_9a4b673183 FOREIGN KEY (approval_group_rule_id) REFERENCES public.approval_group_rules(id) ON DELETE CASCADE; +CREATE INDEX index_sbom_occurrences_on_project_id_and_package_manager ON sbom_occurrences USING btree (project_id, package_manager); +CREATE INDEX index_sbom_occurrences_on_source_id ON sbom_occurrences USING btree (source_id); --- --- Name: import_failures fk_9a9b9ba21c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_sbom_occurrences_on_traversal_ids_and_id ON sbom_occurrences USING btree (traversal_ids, id) WHERE (archived = false); -ALTER TABLE ONLY public.import_failures - ADD CONSTRAINT fk_9a9b9ba21c FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_sbom_occurrences_on_uuid ON sbom_occurrences USING btree (uuid); +CREATE INDEX index_sbom_occurrences_vulnerabilities_on_project_id ON sbom_occurrences_vulnerabilities USING btree (project_id); --- --- Name: deploy_tokens fk_9b0d2e92a6; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_sbom_occurrences_vulnerabilities_on_vulnerability_id ON sbom_occurrences_vulnerabilities USING btree (vulnerability_id); -ALTER TABLE ONLY public.deploy_tokens - ADD CONSTRAINT fk_9b0d2e92a6 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_sbom_source_packages_on_name_and_purl_type_and_org_id ON sbom_source_packages USING btree (name, purl_type, organization_id); +CREATE INDEX index_sbom_source_packages_on_organization_id ON sbom_source_packages USING btree (organization_id); --- --- Name: milestones fk_9bd0a0c791; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_sbom_source_packages_on_source_package_id_and_id ON sbom_occurrences USING btree (source_package_id, id); -ALTER TABLE ONLY public.milestones - ADD CONSTRAINT fk_9bd0a0c791 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_sbom_sources_on_organization_id ON sbom_sources USING btree (organization_id); +CREATE UNIQUE INDEX index_sbom_sources_on_source_type_and_source_and_org_id ON sbom_sources USING btree (source_type, source, organization_id); --- --- Name: work_item_parent_links fk_9be5ef5f80; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_scan_execution_policy_rules_on_policy_mgmt_project_id ON scan_execution_policy_rules USING btree (security_policy_management_project_id); -ALTER TABLE ONLY public.work_item_parent_links - ADD CONSTRAINT fk_9be5ef5f80 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_scan_execution_policy_rules_on_unique_policy_rule_index ON scan_execution_policy_rules USING btree (security_policy_id, rule_index); +CREATE UNIQUE INDEX index_scan_result_policies_on_position_in_configuration ON scan_result_policies USING btree (security_orchestration_policy_configuration_id, project_id, orchestration_policy_idx, rule_idx); --- --- Name: agent_activity_events fk_9c07afa098; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_scan_result_policies_on_project_id ON scan_result_policies USING btree (project_id); -ALTER TABLE ONLY public.agent_activity_events - ADD CONSTRAINT fk_9c07afa098 FOREIGN KEY (agent_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_scan_result_policy_violations_on_approval_policy_rule_id ON scan_result_policy_violations USING btree (approval_policy_rule_id); +CREATE INDEX index_scan_result_policy_violations_on_merge_request_id ON scan_result_policy_violations USING btree (merge_request_id); --- --- Name: issues fk_9c4516d665; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_scan_result_policy_violations_on_policy_and_merge_request ON scan_result_policy_violations USING btree (scan_result_policy_id, merge_request_id); -ALTER TABLE ONLY public.issues - ADD CONSTRAINT fk_9c4516d665 FOREIGN KEY (duplicated_to_id) REFERENCES public.issues(id) ON DELETE SET NULL; +CREATE INDEX index_scan_result_policy_violations_on_project_id ON scan_result_policy_violations USING btree (project_id); +CREATE INDEX index_scim_identities_on_group_id ON scim_identities USING btree (group_id); --- --- Name: epics fk_9d480c64b2; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_scim_identities_on_lower_extern_uid_and_group_id ON scim_identities USING btree (lower((extern_uid)::text), group_id); -ALTER TABLE ONLY public.epics - ADD CONSTRAINT fk_9d480c64b2 FOREIGN KEY (start_date_sourcing_epic_id) REFERENCES public.epics(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_scim_identities_on_user_id_and_group_id ON scim_identities USING btree (user_id, group_id); +CREATE UNIQUE INDEX index_scim_oauth_access_tokens_on_group_id_and_token_encrypted ON scim_oauth_access_tokens USING btree (group_id, token_encrypted); --- --- Name: user_group_callouts fk_9dc8b9d4b2; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_search_indices_on_id_and_type ON search_indices USING btree (id, type); -ALTER TABLE ONLY public.user_group_callouts - ADD CONSTRAINT fk_9dc8b9d4b2 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_search_indices_on_type_and_bucket_number ON search_indices USING btree (type, bucket_number); +CREATE UNIQUE INDEX index_search_indices_on_type_and_path ON search_indices USING btree (type, path); --- --- Name: ci_unit_test_failures fk_9e0fc58930_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_search_namespace_index_assignments_on_namespace_id ON search_namespace_index_assignments USING btree (namespace_id); -ALTER TABLE ONLY public.ci_unit_test_failures - ADD CONSTRAINT fk_9e0fc58930_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +CREATE INDEX index_search_namespace_index_assignments_on_search_index_id ON search_namespace_index_assignments USING btree (search_index_id); +CREATE UNIQUE INDEX index_search_namespace_index_assignments_uniqueness_index_type ON search_namespace_index_assignments USING btree (namespace_id, index_type); --- --- Name: protected_environments fk_9e112565b7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_search_namespace_index_assignments_uniqueness_on_index_id ON search_namespace_index_assignments USING btree (namespace_id, search_index_id); -ALTER TABLE ONLY public.protected_environments - ADD CONSTRAINT fk_9e112565b7 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX p_ci_builds_user_id_name_created_at_idx ON ONLY p_ci_builds USING btree (user_id, name, created_at) WHERE (((type)::text = 'Ci::Build'::text) AND ((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('license_scanning'::character varying)::text, ('sast'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('apifuzzer_fuzz'::character varying)::text, ('apifuzzer_fuzz_dnd'::character varying)::text, ('secret_detection'::character varying)::text]))); +CREATE INDEX index_secure_ci_builds_on_user_id_name_created_at ON ci_builds USING btree (user_id, name, created_at) WHERE (((type)::text = 'Ci::Build'::text) AND ((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('license_scanning'::character varying)::text, ('sast'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('apifuzzer_fuzz'::character varying)::text, ('apifuzzer_fuzz_dnd'::character varying)::text, ('secret_detection'::character varying)::text]))); --- --- Name: alert_management_alerts fk_9e49e5c2b7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX p_ci_builds_name_id_idx ON ONLY p_ci_builds USING btree (name, id) WHERE (((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('sast'::character varying)::text, ('secret_detection'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('license_scanning'::character varying)::text, ('apifuzzer_fuzz'::character varying)::text, ('apifuzzer_fuzz_dnd'::character varying)::text])) AND ((type)::text = 'Ci::Build'::text)); -ALTER TABLE ONLY public.alert_management_alerts - ADD CONSTRAINT fk_9e49e5c2b7 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_security_ci_builds_on_name_and_id_parser_features ON ci_builds USING btree (name, id) WHERE (((name)::text = ANY (ARRAY[('container_scanning'::character varying)::text, ('dast'::character varying)::text, ('dependency_scanning'::character varying)::text, ('license_management'::character varying)::text, ('sast'::character varying)::text, ('secret_detection'::character varying)::text, ('coverage_fuzzing'::character varying)::text, ('license_scanning'::character varying)::text, ('apifuzzer_fuzz'::character varying)::text, ('apifuzzer_fuzz_dnd'::character varying)::text])) AND ((type)::text = 'Ci::Build'::text)); +CREATE INDEX index_security_orchestration_policy_rule_schedules_on_namespace ON security_orchestration_policy_rule_schedules USING btree (namespace_id); --- --- Name: approval_policy_rule_project_links fk_9ed5cf0600; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_security_orchestration_policy_rule_schedules_on_project_i ON security_orchestration_policy_rule_schedules USING btree (project_id); -ALTER TABLE ONLY public.approval_policy_rule_project_links - ADD CONSTRAINT fk_9ed5cf0600 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_security_policies_on_policy_management_project_id ON security_policies USING btree (security_policy_management_project_id); +CREATE UNIQUE INDEX index_security_policies_on_unique_config_type_policy_index ON security_policies USING btree (security_orchestration_policy_configuration_id, type, policy_index); --- --- Name: protected_branch_push_access_levels fk_9ffc86a3d9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_security_policy_project_links_on_project_and_policy ON security_policy_project_links USING btree (security_policy_id, project_id); -ALTER TABLE ONLY public.protected_branch_push_access_levels - ADD CONSTRAINT fk_9ffc86a3d9 FOREIGN KEY (protected_branch_id) REFERENCES public.protected_branches(id) ON DELETE CASCADE; +CREATE INDEX index_security_policy_project_links_on_project_id ON security_policy_project_links USING btree (project_id); +CREATE INDEX index_security_policy_requirements_on_compliance_requirement_id ON security_policy_requirements USING btree (compliance_requirement_id); --- --- Name: deployment_merge_requests fk_a064ff4453; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_security_policy_requirements_on_namespace_id ON security_policy_requirements USING btree (namespace_id); -ALTER TABLE ONLY public.deployment_merge_requests - ADD CONSTRAINT fk_a064ff4453 FOREIGN KEY (environment_id) REFERENCES public.environments(id) ON DELETE CASCADE; +CREATE INDEX index_security_scans_for_non_purged_records ON security_scans USING btree (created_at, id) WHERE (status <> 6); +CREATE INDEX index_security_scans_on_created_at ON security_scans USING btree (created_at); --- --- Name: issues fk_a194299be1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_security_scans_on_date_created_at_and_id ON security_scans USING btree (date(timezone('UTC'::text, created_at)), id); -ALTER TABLE ONLY public.issues - ADD CONSTRAINT fk_a194299be1 FOREIGN KEY (moved_to_id) REFERENCES public.issues(id) ON DELETE SET NULL; +CREATE INDEX index_security_scans_on_length_of_errors ON security_scans USING btree (pipeline_id, jsonb_array_length(COALESCE((info -> 'errors'::text), '[]'::jsonb))); +CREATE INDEX index_security_scans_on_length_of_warnings ON security_scans USING btree (pipeline_id, jsonb_array_length(COALESCE((info -> 'warnings'::text), '[]'::jsonb))); --- --- Name: audit_events_streaming_group_namespace_filters fk_a1a4486a96; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_security_scans_on_pipeline_id_and_scan_type ON security_scans USING btree (pipeline_id, scan_type); -ALTER TABLE ONLY public.audit_events_streaming_group_namespace_filters - ADD CONSTRAINT fk_a1a4486a96 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_security_scans_on_project_id ON security_scans USING btree (project_id); +CREATE UNIQUE INDEX index_security_training_providers_on_unique_name ON security_training_providers USING btree (name); --- --- Name: ml_candidates fk_a1d5f1bc45; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_security_trainings_on_project_id ON security_trainings USING btree (project_id); -ALTER TABLE ONLY public.ml_candidates - ADD CONSTRAINT fk_a1d5f1bc45 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE SET NULL; +CREATE INDEX index_security_trainings_on_provider_id ON security_trainings USING btree (provider_id); +CREATE UNIQUE INDEX index_security_trainings_on_unique_project_id ON security_trainings USING btree (project_id) WHERE (is_primary IS TRUE); --- --- Name: subscription_add_on_purchases fk_a1db288990; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_self_managed_prometheus_alert_events_on_environment_id ON self_managed_prometheus_alert_events USING btree (environment_id); -ALTER TABLE ONLY public.subscription_add_on_purchases - ADD CONSTRAINT fk_a1db288990 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_sent_notifications_on_issue_email_participant_id ON sent_notifications USING btree (issue_email_participant_id); +CREATE INDEX index_sent_notifications_on_noteable_type_noteable_id ON sent_notifications USING btree (noteable_id) WHERE ((noteable_type)::text = 'Issue'::text); --- --- Name: p_ci_builds fk_a2141b1522_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_sent_notifications_on_reply_key ON sent_notifications USING btree (reply_key); -ALTER TABLE public.p_ci_builds - ADD CONSTRAINT fk_a2141b1522_p FOREIGN KEY (auto_canceled_by_partition_id, auto_canceled_by_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL; +CREATE UNIQUE INDEX index_sentry_issues_on_issue_id ON sentry_issues USING btree (issue_id); +CREATE INDEX index_sentry_issues_on_sentry_issue_identifier ON sentry_issues USING btree (sentry_issue_identifier); --- --- Name: ci_builds fk_a2141b1522_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_service_desk_custom_email_verifications_on_triggerer_id ON service_desk_custom_email_verifications USING btree (triggerer_id); -ALTER TABLE ONLY public.ci_builds - ADD CONSTRAINT fk_a2141b1522_p_tmp FOREIGN KEY (auto_canceled_by_partition_id, auto_canceled_by_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL NOT VALID; +CREATE INDEX index_service_desk_enabled_projects_on_id_creator_id_created_at ON projects USING btree (id, creator_id, created_at) WHERE (service_desk_enabled = true); +CREATE INDEX index_service_desk_settings_on_custom_email_enabled ON service_desk_settings USING btree (custom_email_enabled); --- --- Name: protected_environment_approval_rules fk_a3cc825836; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_service_desk_settings_on_file_template_project_id ON service_desk_settings USING btree (file_template_project_id); -ALTER TABLE ONLY public.protected_environment_approval_rules - ADD CONSTRAINT fk_a3cc825836 FOREIGN KEY (protected_environment_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_shards_on_name ON shards USING btree (name); +CREATE UNIQUE INDEX index_site_profile_secret_variables_on_site_profile_id_and_key ON dast_site_profile_secret_variables USING btree (dast_site_profile_id, key); --- --- Name: merge_request_assignment_events fk_a437da318b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_slack_api_scopes_on_name ON slack_api_scopes USING btree (name); -ALTER TABLE ONLY public.merge_request_assignment_events - ADD CONSTRAINT fk_a437da318b FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_slack_api_scopes_on_name_and_integration ON slack_integrations_scopes USING btree (slack_integration_id, slack_api_scope_id); +CREATE INDEX index_slack_integrations_on_integration_id ON slack_integrations USING btree (integration_id); --- --- Name: bulk_import_entities fk_a44ff95be5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_slack_integrations_on_team_id_and_alias ON slack_integrations USING btree (team_id, alias); -ALTER TABLE ONLY public.bulk_import_entities - ADD CONSTRAINT fk_a44ff95be5 FOREIGN KEY (parent_id) REFERENCES public.bulk_import_entities(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_smartcard_identities_on_subject_and_issuer ON smartcard_identities USING btree (subject, issuer); +CREATE INDEX index_smartcard_identities_on_user_id ON smartcard_identities USING btree (user_id); --- --- Name: namespace_import_users fk_a49233ca5d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_snippet_on_id_and_project_id ON snippets USING btree (id, project_id); -ALTER TABLE ONLY public.namespace_import_users - ADD CONSTRAINT fk_a49233ca5d FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_snippet_repositories_failed_verification ON snippet_repositories USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +CREATE INDEX index_snippet_repositories_needs_verification ON snippet_repositories USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); --- --- Name: abuse_report_user_mentions fk_a4bd02b7df; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_snippet_repositories_on_disk_path ON snippet_repositories USING btree (disk_path); -ALTER TABLE ONLY public.abuse_report_user_mentions - ADD CONSTRAINT fk_a4bd02b7df FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; +CREATE INDEX index_snippet_repositories_on_shard_id ON snippet_repositories USING btree (shard_id); +CREATE INDEX index_snippet_repositories_pending_verification ON snippet_repositories USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); --- --- Name: security_orchestration_policy_configurations fk_a50430b375; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_snippet_repositories_verification_state ON snippet_repositories USING btree (verification_state); -ALTER TABLE ONLY public.security_orchestration_policy_configurations - ADD CONSTRAINT fk_a50430b375 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_snippet_repository_storage_moves_on_snippet_id ON snippet_repository_storage_moves USING btree (snippet_id); +CREATE INDEX index_snippet_repository_storage_moves_on_state ON snippet_repository_storage_moves USING btree (state) WHERE (state = ANY (ARRAY[2, 3])); --- --- Name: operations_strategies fk_a542e10c31; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_snippet_user_mentions_on_note_id ON snippet_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); -ALTER TABLE ONLY public.operations_strategies - ADD CONSTRAINT fk_a542e10c31 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_snippets_on_author_id ON snippets USING btree (author_id); +CREATE INDEX index_snippets_on_content_trigram ON snippets USING gin (content gin_trgm_ops); --- --- Name: lfs_objects_projects fk_a56e02279c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_snippets_on_created_at ON snippets USING btree (created_at); -ALTER TABLE ONLY public.lfs_objects_projects - ADD CONSTRAINT fk_a56e02279c FOREIGN KEY (lfs_object_id) REFERENCES public.lfs_objects(id) ON DELETE RESTRICT NOT VALID; +CREATE INDEX index_snippets_on_description_trigram ON snippets USING gin (description gin_trgm_ops); +CREATE INDEX index_snippets_on_file_name_trigram ON snippets USING gin (file_name gin_trgm_ops); --- --- Name: merge_requests fk_a6963e8447; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_snippets_on_id_and_created_at ON snippets USING btree (id, created_at); -ALTER TABLE ONLY public.merge_requests - ADD CONSTRAINT fk_a6963e8447 FOREIGN KEY (target_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_snippets_on_id_and_type ON snippets USING btree (id, type); +CREATE INDEX index_snippets_on_organization_id ON snippets USING btree (organization_id); --- --- Name: merge_requests_closing_issues fk_a8703820ae; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_snippets_on_project_id_and_title ON snippets USING btree (project_id, title); -ALTER TABLE ONLY public.merge_requests_closing_issues - ADD CONSTRAINT fk_a8703820ae FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_snippets_on_project_id_and_visibility_level ON snippets USING btree (project_id, visibility_level); +CREATE INDEX index_snippets_on_title_trigram ON snippets USING gin (title gin_trgm_ops); --- --- Name: ssh_signatures fk_aa1efbe865; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_snippets_on_updated_at ON snippets USING btree (updated_at); -ALTER TABLE ONLY public.ssh_signatures - ADD CONSTRAINT fk_aa1efbe865 FOREIGN KEY (key_id) REFERENCES public.keys(id) ON DELETE SET NULL; +CREATE INDEX index_snippets_on_visibility_level_and_secret ON snippets USING btree (visibility_level, secret); +CREATE INDEX index_software_license_policies_on_approval_policy_rule_id ON software_license_policies USING btree (approval_policy_rule_id); --- --- Name: epics fk_aa5798e761; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_software_license_policies_on_scan_result_policy_id ON software_license_policies USING btree (scan_result_policy_id); -ALTER TABLE ONLY public.epics - ADD CONSTRAINT fk_aa5798e761 FOREIGN KEY (closed_by_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_software_license_policies_on_software_license_id ON software_license_policies USING btree (software_license_id); +CREATE INDEX index_software_licenses_on_spdx_identifier ON software_licenses USING btree (spdx_identifier); --- --- Name: dast_profiles fk_aa76ef30e9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_software_licenses_on_unique_name ON software_licenses USING btree (name); -ALTER TABLE ONLY public.dast_profiles - ADD CONSTRAINT fk_aa76ef30e9 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_sop_configurations_project_id_policy_project_id ON security_orchestration_policy_configurations USING btree (security_policy_management_project_id, project_id); +CREATE INDEX index_sop_schedules_on_sop_configuration_id ON security_orchestration_policy_rule_schedules USING btree (security_orchestration_policy_configuration_id); --- --- Name: alert_management_alerts fk_aad61aedca; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_sop_schedules_on_user_id ON security_orchestration_policy_rule_schedules USING btree (user_id); -ALTER TABLE ONLY public.alert_management_alerts - ADD CONSTRAINT fk_aad61aedca FOREIGN KEY (environment_id) REFERENCES public.environments(id) ON DELETE SET NULL; +CREATE INDEX index_spam_logs_on_user_id ON spam_logs USING btree (user_id); +CREATE INDEX index_sprints_iterations_cadence_id ON sprints USING btree (iterations_cadence_id); --- --- Name: identities fk_aade90f0fc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_sprints_on_description_trigram ON sprints USING gin (description gin_trgm_ops); -ALTER TABLE ONLY public.identities - ADD CONSTRAINT fk_aade90f0fc FOREIGN KEY (saml_provider_id) REFERENCES public.saml_providers(id) ON DELETE CASCADE; +CREATE INDEX index_sprints_on_due_date ON sprints USING btree (due_date); +CREATE INDEX index_sprints_on_group_id ON sprints USING btree (group_id); --- --- Name: boards fk_ab0a250ff6; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_sprints_on_title ON sprints USING btree (title); -ALTER TABLE ONLY public.boards - ADD CONSTRAINT fk_ab0a250ff6 FOREIGN KEY (iteration_cadence_id) REFERENCES public.iterations_cadences(id) ON DELETE CASCADE; +CREATE INDEX index_sprints_on_title_trigram ON sprints USING gin (title gin_trgm_ops); +CREATE UNIQUE INDEX index_ssh_signatures_on_commit_sha ON ssh_signatures USING btree (commit_sha); --- --- Name: vulnerability_external_issue_links fk_abd093bb21; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_ssh_signatures_on_key_id ON ssh_signatures USING btree (key_id); -ALTER TABLE ONLY public.vulnerability_external_issue_links - ADD CONSTRAINT fk_abd093bb21 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_ssh_signatures_on_project_id ON ssh_signatures USING btree (project_id); +CREATE INDEX index_ssh_signatures_on_user_id ON ssh_signatures USING btree (user_id); --- --- Name: audit_events_streaming_http_instance_namespace_filters fk_abe44125bc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_status_check_responses_on_external_approval_rule_id ON status_check_responses USING btree (external_approval_rule_id); -ALTER TABLE ONLY public.audit_events_streaming_http_instance_namespace_filters - ADD CONSTRAINT fk_abe44125bc FOREIGN KEY (audit_events_instance_external_audit_event_destination_id) REFERENCES public.audit_events_instance_external_audit_event_destinations(id) ON DELETE CASCADE; +CREATE INDEX index_status_check_responses_on_external_status_check_id ON status_check_responses USING btree (external_status_check_id); +CREATE INDEX index_status_check_responses_on_merge_request_id ON status_check_responses USING btree (merge_request_id); --- --- Name: audit_events_streaming_instance_namespace_filters fk_ac20a85a68; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_status_check_responses_on_project_id ON status_check_responses USING btree (project_id); -ALTER TABLE ONLY public.audit_events_streaming_instance_namespace_filters - ADD CONSTRAINT fk_ac20a85a68 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_status_page_published_incidents_on_issue_id ON status_page_published_incidents USING btree (issue_id); +CREATE INDEX index_status_page_settings_on_project_id ON status_page_settings USING btree (project_id); --- --- Name: merge_requests fk_ad525e1f87; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_subscription_add_on_purchases_on_namespace_id ON subscription_add_on_purchases USING btree (namespace_id); -ALTER TABLE ONLY public.merge_requests - ADD CONSTRAINT fk_ad525e1f87 FOREIGN KEY (merge_user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_subscription_add_on_purchases_on_subscription_add_on_id ON subscription_add_on_purchases USING btree (subscription_add_on_id); +CREATE UNIQUE INDEX index_subscription_add_ons_on_name ON subscription_add_ons USING btree (name); --- --- Name: ml_experiments fk_ad89c59858; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_subscription_addon_purchases_on_expires_on ON subscription_add_on_purchases USING btree (expires_on); -ALTER TABLE ONLY public.ml_experiments - ADD CONSTRAINT fk_ad89c59858 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_subscription_user_add_on_assignments_on_organization_id ON subscription_user_add_on_assignments USING btree (organization_id); +CREATE INDEX index_subscription_user_add_on_assignments_on_user_id ON subscription_user_add_on_assignments USING btree (user_id); --- --- Name: packages_npm_metadata_caches fk_ada23b1d30; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_subscriptions_on_project_id ON subscriptions USING btree (project_id); -ALTER TABLE ONLY public.packages_npm_metadata_caches - ADD CONSTRAINT fk_ada23b1d30 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_subscriptions_on_subscribable_and_user_id_and_project_id ON subscriptions USING btree (subscribable_id, subscribable_type, user_id, project_id); +CREATE INDEX index_successful_authentication_events_for_metrics ON authentication_events USING btree (user_id, provider, created_at) WHERE (result = 1); --- --- Name: merge_request_metrics fk_ae440388cc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_suggestions_on_note_id_and_relative_order ON suggestions USING btree (note_id, relative_order); -ALTER TABLE ONLY public.merge_request_metrics - ADD CONSTRAINT fk_ae440388cc FOREIGN KEY (latest_closed_by_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_system_access_microsoft_applications_on_namespace_id ON system_access_microsoft_applications USING btree (namespace_id); +CREATE UNIQUE INDEX index_system_note_metadata_on_description_version_id ON system_note_metadata USING btree (description_version_id) WHERE (description_version_id IS NOT NULL); --- --- Name: vulnerability_reads fk_aee839e611; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_system_note_metadata_on_note_id ON system_note_metadata USING btree (note_id); -ALTER TABLE ONLY public.vulnerability_reads - ADD CONSTRAINT fk_aee839e611 FOREIGN KEY (casted_cluster_agent_id) REFERENCES public.cluster_agents(id) ON DELETE SET NULL; +CREATE INDEX index_taggings_on_tag_id ON taggings USING btree (tag_id); +CREATE INDEX index_taggings_on_taggable_id_and_taggable_type_and_context ON taggings USING btree (taggable_id, taggable_type, context); --- --- Name: dast_profile_schedules fk_aef03d62e5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_tags_on_name ON tags USING btree (name); -ALTER TABLE ONLY public.dast_profile_schedules - ADD CONSTRAINT fk_aef03d62e5 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_tags_on_name_trigram ON tags USING gin (name gin_trgm_ops); +CREATE INDEX index_target_branch_rules_on_project_id ON target_branch_rules USING btree (project_id); --- --- Name: analytics_cycle_analytics_group_stages fk_analytics_cycle_analytics_group_stages_group_value_stream_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_term_agreements_on_term_id ON term_agreements USING btree (term_id); -ALTER TABLE ONLY public.analytics_cycle_analytics_group_stages - ADD CONSTRAINT fk_analytics_cycle_analytics_group_stages_group_value_stream_id FOREIGN KEY (group_value_stream_id) REFERENCES public.analytics_cycle_analytics_group_value_streams(id) ON DELETE CASCADE; +CREATE INDEX index_term_agreements_on_user_id ON term_agreements USING btree (user_id); +CREATE INDEX index_terraform_state_versions_failed_verification ON terraform_state_versions USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); --- --- Name: approval_merge_request_rules fk_approval_merge_request_rules_on_scan_result_policy_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_terraform_state_versions_needs_verification ON terraform_state_versions USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); -ALTER TABLE ONLY public.approval_merge_request_rules - ADD CONSTRAINT fk_approval_merge_request_rules_on_scan_result_policy_id FOREIGN KEY (scan_result_policy_id) REFERENCES public.scan_result_policies(id) ON DELETE SET NULL; +CREATE INDEX index_terraform_state_versions_on_ci_build_id ON terraform_state_versions USING btree (ci_build_id); +CREATE INDEX index_terraform_state_versions_on_created_by_user_id ON terraform_state_versions USING btree (created_by_user_id); --- --- Name: fork_network_members fk_b01280dae4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_terraform_state_versions_on_project_id ON terraform_state_versions USING btree (project_id); -ALTER TABLE ONLY public.fork_network_members - ADD CONSTRAINT fk_b01280dae4 FOREIGN KEY (forked_from_project_id) REFERENCES public.projects(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_terraform_state_versions_on_state_id_and_version ON terraform_state_versions USING btree (terraform_state_id, version); +CREATE INDEX index_terraform_state_versions_on_verification_state ON terraform_state_versions USING btree (verification_state); --- --- Name: ml_candidate_metadata fk_b044692715; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_terraform_state_versions_pending_verification ON terraform_state_versions USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); -ALTER TABLE ONLY public.ml_candidate_metadata - ADD CONSTRAINT fk_b044692715 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_terraform_states_on_file_store ON terraform_states USING btree (file_store); +CREATE INDEX index_terraform_states_on_locked_by_user_id ON terraform_states USING btree (locked_by_user_id); --- --- Name: sbom_occurrences fk_b1b65d8d17; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_terraform_states_on_project_id_and_name ON terraform_states USING btree (project_id, name); -ALTER TABLE ONLY public.sbom_occurrences - ADD CONSTRAINT fk_b1b65d8d17 FOREIGN KEY (source_package_id) REFERENCES public.sbom_source_packages(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_terraform_states_on_uuid ON terraform_states USING btree (uuid); +CREATE UNIQUE INDEX index_timelog_categories_on_unique_name_per_namespace ON timelog_categories USING btree (namespace_id, lower(name)); --- --- Name: vulnerabilities fk_b1de915a15; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_timelogs_on_issue_id ON timelogs USING btree (issue_id); -ALTER TABLE ONLY public.vulnerabilities - ADD CONSTRAINT fk_b1de915a15 FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_timelogs_on_merge_request_id ON timelogs USING btree (merge_request_id); +CREATE INDEX index_timelogs_on_note_id ON timelogs USING btree (note_id); --- --- Name: project_access_tokens fk_b27801bfbf; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_timelogs_on_project_id_and_spent_at ON timelogs USING btree (project_id, spent_at); -ALTER TABLE ONLY public.project_access_tokens - ADD CONSTRAINT fk_b27801bfbf FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_timelogs_on_spent_at ON timelogs USING btree (spent_at) WHERE (spent_at IS NOT NULL); +CREATE INDEX index_timelogs_on_timelog_category_id ON timelogs USING btree (timelog_category_id); --- --- Name: vulnerability_reads fk_b28c28abf1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_timelogs_on_user_id ON timelogs USING btree (user_id); -ALTER TABLE ONLY public.vulnerability_reads - ADD CONSTRAINT fk_b28c28abf1 FOREIGN KEY (scanner_id) REFERENCES public.vulnerability_scanners(id) ON DELETE CASCADE; +CREATE INDEX index_todos_on_author_id ON todos USING btree (author_id); +CREATE INDEX index_todos_on_author_id_and_created_at ON todos USING btree (author_id, created_at); --- --- Name: member_approvals fk_b2e4a4b68a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_todos_on_commit_id ON todos USING btree (commit_id); -ALTER TABLE ONLY public.member_approvals - ADD CONSTRAINT fk_b2e4a4b68a FOREIGN KEY (member_id) REFERENCES public.members(id) ON DELETE CASCADE; +CREATE INDEX index_todos_on_group_id ON todos USING btree (group_id); +CREATE INDEX index_todos_on_note_id ON todos USING btree (note_id); --- --- Name: issues fk_b37be69be6; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_todos_on_project_id_and_id ON todos USING btree (project_id, id); -ALTER TABLE ONLY public.issues - ADD CONSTRAINT fk_b37be69be6 FOREIGN KEY (work_item_type_id) REFERENCES public.work_item_types(id); +CREATE INDEX index_todos_on_target_type_and_target_id ON todos USING btree (target_type, target_id); +CREATE INDEX index_todos_on_user_id_and_id_done ON todos USING btree (user_id, id) WHERE ((state)::text = 'done'::text); --- --- Name: duo_workflows_checkpoints fk_b3d9cea509; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_todos_on_user_id_and_id_pending ON todos USING btree (user_id, id) WHERE ((state)::text = 'pending'::text); -ALTER TABLE ONLY public.duo_workflows_checkpoints - ADD CONSTRAINT fk_b3d9cea509 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_token_with_ivs_on_hashed_plaintext_token ON token_with_ivs USING btree (hashed_plaintext_token); +CREATE UNIQUE INDEX index_token_with_ivs_on_hashed_token ON token_with_ivs USING btree (hashed_token); --- --- Name: protected_tag_create_access_levels fk_b4eb82fe3c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_topics_non_private_projects_count ON topics USING btree (non_private_projects_count DESC, id); -ALTER TABLE ONLY public.protected_tag_create_access_levels - ADD CONSTRAINT fk_b4eb82fe3c FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_topics_on_lower_name ON topics USING btree (lower(name)); +CREATE UNIQUE INDEX index_topics_on_name ON topics USING btree (name); --- --- Name: status_check_responses fk_b53bf31a72; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_topics_on_name_trigram ON topics USING gin (name gin_trgm_ops); -ALTER TABLE ONLY public.status_check_responses - ADD CONSTRAINT fk_b53bf31a72 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_topics_on_slug ON topics USING btree (slug) WHERE (slug IS NOT NULL); +CREATE INDEX index_topics_total_projects_count ON topics USING btree (total_projects_count DESC, id); --- --- Name: packages_dependency_links fk_b5c56b6ede; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_trending_projects_on_project_id ON trending_projects USING btree (project_id); -ALTER TABLE ONLY public.packages_dependency_links - ADD CONSTRAINT fk_b5c56b6ede FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_unarchived_occurrences_for_aggregations_component_name ON sbom_occurrences USING btree (traversal_ids, component_name, component_id, component_version_id) WHERE (archived = false); +CREATE INDEX index_unarchived_occurrences_for_aggregations_license ON sbom_occurrences USING btree (traversal_ids, (((licenses -> 0) ->> 'spdx_identifier'::text)), component_id, component_version_id) WHERE (archived = false); --- --- Name: compliance_framework_security_policies fk_b5df066d8f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_unarchived_occurrences_for_aggregations_package_manager ON sbom_occurrences USING btree (traversal_ids, package_manager, component_id, component_version_id) WHERE (archived = false); -ALTER TABLE ONLY public.compliance_framework_security_policies - ADD CONSTRAINT fk_b5df066d8f FOREIGN KEY (framework_id) REFERENCES public.compliance_management_frameworks(id) ON DELETE CASCADE; +CREATE INDEX index_unarchived_occurrences_for_aggregations_severity ON sbom_occurrences USING btree (traversal_ids, highest_severity, component_id, component_version_id) WHERE (archived = false); +CREATE INDEX index_unarchived_occurrences_on_version_id_and_traversal_ids ON sbom_occurrences USING btree (component_version_id, traversal_ids) WHERE (archived = false); --- --- Name: catalog_resource_versions fk_b670eae96b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_unarchived_sbom_occurrences_for_aggregations ON sbom_occurrences USING btree (traversal_ids, component_id, component_version_id) WHERE (archived = false); -ALTER TABLE ONLY public.catalog_resource_versions - ADD CONSTRAINT fk_b670eae96b FOREIGN KEY (catalog_resource_id) REFERENCES public.catalog_resources(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_uniq_ci_runners_on_token ON ci_runners USING btree (token); +CREATE UNIQUE INDEX index_uniq_ci_runners_on_token_encrypted ON ci_runners USING btree (token_encrypted); --- --- Name: bulk_import_entities fk_b69fa2b2df; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_uniq_im_issuable_escalation_statuses_on_issue_id ON incident_management_issuable_escalation_statuses USING btree (issue_id); -ALTER TABLE ONLY public.bulk_import_entities - ADD CONSTRAINT fk_b69fa2b2df FOREIGN KEY (bulk_import_id) REFERENCES public.bulk_imports(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_uniq_projects_on_runners_token ON projects USING btree (runners_token); +CREATE UNIQUE INDEX index_uniq_projects_on_runners_token_encrypted ON projects USING btree (runners_token_encrypted); --- --- Name: security_policy_requirements fk_b6e48e3428; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_unique_ci_runner_projects_on_runner_id_and_project_id ON ci_runner_projects USING btree (runner_id, project_id); -ALTER TABLE ONLY public.security_policy_requirements - ADD CONSTRAINT fk_b6e48e3428 FOREIGN KEY (compliance_framework_security_policy_id) REFERENCES public.compliance_framework_security_policies(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_unique_epics_on_issue_id ON epics USING btree (issue_id); +CREATE UNIQUE INDEX index_unique_issuable_resource_links_on_unique_issue_link ON issuable_resource_links USING btree (issue_id, link) WHERE is_unique; --- --- Name: compliance_management_frameworks fk_b74c45b71f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_unique_issue_metrics_issue_id ON issue_metrics USING btree (issue_id); -ALTER TABLE ONLY public.compliance_management_frameworks - ADD CONSTRAINT fk_b74c45b71f FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_unique_project_authorizations_on_unique_project_user ON project_authorizations USING btree (project_id, user_id) WHERE is_unique; +CREATE INDEX index_unit_test_failures_failed_at ON ci_unit_test_failures USING btree (failed_at DESC); --- --- Name: ml_experiment_metadata fk_b764e76c6c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_unit_test_failures_unique_columns ON ci_unit_test_failures USING btree (unit_test_id, failed_at DESC, build_id); -ALTER TABLE ONLY public.ml_experiment_metadata - ADD CONSTRAINT fk_b764e76c6c FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_unresolved_alerts_on_project_id_and_fingerprint ON alert_management_alerts USING btree (project_id, fingerprint) WHERE ((fingerprint IS NOT NULL) AND (status <> 2)); +CREATE UNIQUE INDEX index_upcoming_reconciliations_on_namespace_id ON upcoming_reconciliations USING btree (namespace_id); --- --- Name: external_status_checks_protected_branches fk_b7d788e813; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_upcoming_reconciliations_on_organization_id ON upcoming_reconciliations USING btree (organization_id); -ALTER TABLE ONLY public.external_status_checks_protected_branches - ADD CONSTRAINT fk_b7d788e813 FOREIGN KEY (protected_branch_id) REFERENCES public.protected_branches(id) ON DELETE CASCADE; +CREATE INDEX index_upload_states_failed_verification ON upload_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +CREATE INDEX index_upload_states_needs_verification ON upload_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); --- --- Name: issue_assignees fk_b7d881734a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_upload_states_on_upload_id ON upload_states USING btree (upload_id); -ALTER TABLE ONLY public.issue_assignees - ADD CONSTRAINT fk_b7d881734a FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +CREATE INDEX index_upload_states_on_verification_state ON upload_states USING btree (verification_state); +CREATE INDEX index_upload_states_pending_verification ON upload_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); --- --- Name: agent_project_authorizations fk_b7fe9b4777; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_uploads_on_checksum ON uploads USING btree (checksum); -ALTER TABLE ONLY public.agent_project_authorizations - ADD CONSTRAINT fk_b7fe9b4777 FOREIGN KEY (agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; +CREATE INDEX index_uploads_on_model_id_model_type_uploader_created_at ON uploads USING btree (model_id, model_type, uploader, created_at); +CREATE INDEX index_uploads_on_store ON uploads USING btree (store); --- --- Name: namespace_import_users fk_b82be3e1f3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_uploads_on_uploaded_by_user_id ON uploads USING btree (uploaded_by_user_id); -ALTER TABLE ONLY public.namespace_import_users - ADD CONSTRAINT fk_b82be3e1f3 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_uploads_on_uploader_and_path ON uploads USING btree (uploader, path); +CREATE INDEX index_user_achievements_on_achievement_id_revoked_by_is_null ON user_achievements USING btree (achievement_id, ((revoked_by_user_id IS NULL))); --- --- Name: namespace_commit_emails fk_b8d89d555e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_user_achievements_on_awarded_by_revoked_by_is_null ON user_achievements USING btree (awarded_by_user_id, ((revoked_by_user_id IS NULL))); -ALTER TABLE ONLY public.namespace_commit_emails - ADD CONSTRAINT fk_b8d89d555e FOREIGN KEY (email_id) REFERENCES public.emails(id) ON DELETE CASCADE; +CREATE INDEX index_user_achievements_on_namespace_id ON user_achievements USING btree (namespace_id); +CREATE INDEX index_user_achievements_on_revoked_by_user_id ON user_achievements USING btree (revoked_by_user_id); --- --- Name: ci_trigger_requests fk_b8ec8b7245; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_user_achievements_on_user_id_revoked_by_is_null ON user_achievements USING btree (user_id, ((revoked_by_user_id IS NULL))); -ALTER TABLE ONLY public.ci_trigger_requests - ADD CONSTRAINT fk_b8ec8b7245 FOREIGN KEY (trigger_id) REFERENCES public.ci_triggers(id) ON DELETE CASCADE; +CREATE INDEX index_user_agent_details_on_subject_id_and_subject_type ON user_agent_details USING btree (subject_id, subject_type); +CREATE INDEX index_user_broadcast_message_dismissals_on_broadcast_message_id ON user_broadcast_message_dismissals USING btree (broadcast_message_id); --- --- Name: customer_relations_contacts fk_b91ddd9345; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_user_callouts_on_user_id_and_feature_name ON user_callouts USING btree (user_id, feature_name); -ALTER TABLE ONLY public.customer_relations_contacts - ADD CONSTRAINT fk_b91ddd9345 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_user_canonical_emails_on_canonical_email ON user_canonical_emails USING btree (canonical_email); +CREATE UNIQUE INDEX index_user_canonical_emails_on_user_id ON user_canonical_emails USING btree (user_id); --- --- Name: uploads fk_b94f059d73; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_user_canonical_emails_on_user_id_and_canonical_email ON user_canonical_emails USING btree (user_id, canonical_email); -ALTER TABLE ONLY public.uploads - ADD CONSTRAINT fk_b94f059d73 FOREIGN KEY (uploaded_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_user_credit_card_validations_on_stripe_card_fingerprint ON user_credit_card_validations USING btree (stripe_card_fingerprint); +CREATE INDEX index_user_custom_attributes_on_key_and_value ON user_custom_attributes USING btree (key, value); --- --- Name: deployments fk_b9a3851b82; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_user_custom_attributes_on_user_id_and_key ON user_custom_attributes USING btree (user_id, key); -ALTER TABLE ONLY public.deployments - ADD CONSTRAINT fk_b9a3851b82 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_user_details_on_enterprise_group_id_and_user_id ON user_details USING btree (enterprise_group_id, user_id); +CREATE INDEX index_user_details_on_password_last_changed_at ON user_details USING btree (password_last_changed_at); --- --- Name: project_compliance_standards_adherence fk_baf6f6f878; Type: FK CONSTRAINT; Schema: public; Owner: - --- +COMMENT ON INDEX index_user_details_on_password_last_changed_at IS 'JiHu-specific index'; -ALTER TABLE ONLY public.project_compliance_standards_adherence - ADD CONSTRAINT fk_baf6f6f878 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_user_details_on_phone ON user_details USING btree (phone) WHERE (phone IS NOT NULL); +COMMENT ON INDEX index_user_details_on_phone IS 'JiHu-specific index'; --- --- Name: p_ci_runner_machine_builds fk_bb490f12fe_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_user_details_on_user_id ON user_details USING btree (user_id); -ALTER TABLE public.p_ci_runner_machine_builds - ADD CONSTRAINT fk_bb490f12fe_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +CREATE INDEX index_user_group_callouts_on_group_id ON user_group_callouts USING btree (group_id); +CREATE INDEX index_user_highest_roles_on_user_id_and_highest_access_level ON user_highest_roles USING btree (user_id, highest_access_level); --- --- Name: security_orchestration_policy_rule_schedules fk_bcbb90477f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_user_id_and_notification_email_to_notification_settings ON notification_settings USING btree (user_id, notification_email, id) WHERE (notification_email IS NOT NULL); -ALTER TABLE ONLY public.security_orchestration_policy_rule_schedules - ADD CONSTRAINT fk_bcbb90477f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_user_namespace_callouts_on_namespace_id ON user_namespace_callouts USING btree (namespace_id); +CREATE INDEX index_user_permission_export_uploads_on_user_id_and_status ON user_permission_export_uploads USING btree (user_id, status); --- --- Name: namespace_bans fk_bcc024eef2; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_user_phone_number_validations_on_telesign_reference_xid ON user_phone_number_validations USING btree (telesign_reference_xid); -ALTER TABLE ONLY public.namespace_bans - ADD CONSTRAINT fk_bcc024eef2 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_user_phone_validations_on_dial_code_phone_number ON user_phone_number_validations USING btree (international_dial_code, phone_number); +CREATE INDEX index_user_preferences_on_gitpod_enabled ON user_preferences USING btree (gitpod_enabled); --- --- Name: gitlab_subscriptions fk_bd0c4019c3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_user_preferences_on_home_organization_id ON user_preferences USING btree (home_organization_id); -ALTER TABLE ONLY public.gitlab_subscriptions - ADD CONSTRAINT fk_bd0c4019c3 FOREIGN KEY (hosted_plan_id) REFERENCES public.plans(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_user_preferences_on_user_id ON user_preferences USING btree (user_id); +CREATE INDEX index_user_project_callouts_on_project_id ON user_project_callouts USING btree (project_id); --- --- Name: catalog_resource_versions fk_bd1b87591a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_user_statuses_on_clear_status_at_not_null ON user_statuses USING btree (clear_status_at) WHERE (clear_status_at IS NOT NULL); -ALTER TABLE ONLY public.catalog_resource_versions - ADD CONSTRAINT fk_bd1b87591a FOREIGN KEY (published_by_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_user_statuses_on_user_id ON user_statuses USING btree (user_id); +CREATE UNIQUE INDEX index_user_synced_attributes_metadata_on_user_id ON user_synced_attributes_metadata USING btree (user_id); --- --- Name: resource_link_events fk_bd4ae15ce4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_users_for_active_billable_users ON users USING btree (id) WHERE (((state)::text = 'active'::text) AND (user_type = ANY (ARRAY[0, 6, 4, 13])) AND (user_type = ANY (ARRAY[0, 4, 5]))); -ALTER TABLE ONLY public.resource_link_events - ADD CONSTRAINT fk_bd4ae15ce4 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_users_for_auditors ON users USING btree (id) WHERE (auditor IS TRUE); +CREATE INDEX index_users_on_admin ON users USING btree (admin); --- --- Name: metrics_users_starred_dashboards fk_bd6ae32fac; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_users_on_confirmation_token ON users USING btree (confirmation_token); -ALTER TABLE ONLY public.metrics_users_starred_dashboards - ADD CONSTRAINT fk_bd6ae32fac FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_users_on_created_at ON users USING btree (created_at); +CREATE UNIQUE INDEX index_users_on_email ON users USING btree (email); --- --- Name: workspaces fk_bdb0b31131; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_users_on_email_domain_and_id ON users USING btree (lower(split_part((email)::text, '@'::text, 2)), id); -ALTER TABLE ONLY public.workspaces - ADD CONSTRAINT fk_bdb0b31131 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_users_on_email_trigram ON users USING gin (email gin_trgm_ops); +CREATE INDEX index_users_on_feed_token ON users USING btree (feed_token); --- --- Name: project_compliance_framework_settings fk_be413374a9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_users_on_group_view ON users USING btree (group_view); -ALTER TABLE ONLY public.project_compliance_framework_settings - ADD CONSTRAINT fk_be413374a9 FOREIGN KEY (framework_id) REFERENCES public.compliance_management_frameworks(id) ON DELETE CASCADE; +CREATE INDEX index_users_on_id_and_last_activity_on_for_active_human_service ON users USING btree (id, last_activity_on) WHERE (((state)::text = 'active'::text) AND (user_type = ANY (ARRAY[0, 4]))); +CREATE INDEX index_users_on_incoming_email_token ON users USING btree (incoming_email_token); --- --- Name: snippets fk_be41fd4bb7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_users_on_managing_group_id ON users USING btree (managing_group_id); -ALTER TABLE ONLY public.snippets - ADD CONSTRAINT fk_be41fd4bb7 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_users_on_name ON users USING btree (name); +CREATE INDEX index_users_on_name_trigram ON users USING gin (name gin_trgm_ops); --- --- Name: ci_sources_pipelines fk_be5624bf37_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_users_on_public_email_excluding_null_and_empty ON users USING btree (public_email) WHERE (((public_email)::text <> ''::text) AND (public_email IS NOT NULL)); -ALTER TABLE ONLY public.ci_sources_pipelines - ADD CONSTRAINT fk_be5624bf37_p FOREIGN KEY (source_partition_id, source_job_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +CREATE INDEX index_users_on_public_email_trigram ON users USING gin (public_email gin_trgm_ops); +CREATE UNIQUE INDEX index_users_on_reset_password_token ON users USING btree (reset_password_token); --- --- Name: packages_maven_metadata fk_be88aed360; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_users_on_state_and_user_type ON users USING btree (state, user_type); -ALTER TABLE ONLY public.packages_maven_metadata - ADD CONSTRAINT fk_be88aed360 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_users_on_static_object_token ON users USING btree (static_object_token); +CREATE INDEX index_users_on_unconfirmed_created_at_active_type_sign_in_count ON users USING btree (created_at, id) WHERE ((confirmed_at IS NULL) AND ((state)::text = 'active'::text) AND (user_type = 0) AND (sign_in_count = 0)); --- --- Name: remote_development_namespace_cluster_agent_mappings fk_be8e9c740f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_users_on_unconfirmed_email ON users USING btree (unconfirmed_email) WHERE (unconfirmed_email IS NOT NULL); -ALTER TABLE ONLY public.remote_development_namespace_cluster_agent_mappings - ADD CONSTRAINT fk_be8e9c740f FOREIGN KEY (cluster_agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_users_on_unlock_token ON users USING btree (unlock_token); +CREATE INDEX index_users_on_updated_at ON users USING btree (updated_at); --- --- Name: zoekt_indices fk_bf205d4773; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_users_on_user_type_and_id ON users USING btree (user_type, id); -ALTER TABLE ONLY public.zoekt_indices - ADD CONSTRAINT fk_bf205d4773 FOREIGN KEY (zoekt_enabled_namespace_id) REFERENCES public.zoekt_enabled_namespaces(id) ON DELETE SET NULL; +CREATE INDEX index_users_on_username ON users USING btree (username); +CREATE INDEX index_users_on_username_trigram ON users USING gin (username gin_trgm_ops); --- --- Name: packages_build_infos fk_c0bc6b19ff; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_users_ops_dashboard_projects_on_project_id ON users_ops_dashboard_projects USING btree (project_id); -ALTER TABLE ONLY public.packages_build_infos - ADD CONSTRAINT fk_c0bc6b19ff FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_users_ops_dashboard_projects_on_user_id_and_project_id ON users_ops_dashboard_projects USING btree (user_id, project_id); +CREATE INDEX index_users_security_dashboard_projects_on_user_id ON users_security_dashboard_projects USING btree (user_id); --- --- Name: design_management_versions fk_c1440b4896; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_users_star_projects_on_project_id ON users_star_projects USING btree (project_id); -ALTER TABLE ONLY public.design_management_versions - ADD CONSTRAINT fk_c1440b4896 FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_users_star_projects_on_user_id_and_project_id ON users_star_projects USING btree (user_id, project_id); +CREATE UNIQUE INDEX index_verification_codes_on_phone_and_visitor_id_code ON ONLY verification_codes USING btree (visitor_id_code, phone, created_at); --- --- Name: packages_packages fk_c188f0dba4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +COMMENT ON INDEX index_verification_codes_on_phone_and_visitor_id_code IS 'JiHu-specific index'; -ALTER TABLE ONLY public.packages_packages - ADD CONSTRAINT fk_c188f0dba4 FOREIGN KEY (creator_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_virtual_reg_pkgs_maven_cached_responses_on_group_id ON virtual_registries_packages_maven_cached_responses USING btree (group_id); +CREATE INDEX index_virtual_reg_pkgs_maven_reg_upstreams_on_group_id ON virtual_registries_packages_maven_registry_upstreams USING btree (group_id); --- --- Name: sbom_occurrences fk_c2a5562923; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_virtual_reg_pkgs_maven_upstreams_on_group_id ON virtual_registries_packages_maven_upstreams USING btree (group_id); -ALTER TABLE ONLY public.sbom_occurrences - ADD CONSTRAINT fk_c2a5562923 FOREIGN KEY (source_id) REFERENCES public.sbom_sources(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_vuln_findings_on_uuid_including_vuln_id_1 ON vulnerability_occurrences USING btree (uuid) INCLUDE (vulnerability_id); +CREATE UNIQUE INDEX index_vuln_historical_statistics_on_project_id_and_date ON vulnerability_historical_statistics USING btree (project_id, date); --- --- Name: dependency_list_exports fk_c348f16f10; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vuln_namespace_historical_statistics_on_namespace_id ON vulnerability_namespace_historical_statistics USING btree (namespace_id); -ALTER TABLE ONLY public.dependency_list_exports - ADD CONSTRAINT fk_c348f16f10 FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_vuln_namespace_historical_statistics_traversal_ids_date ON vulnerability_namespace_historical_statistics USING btree (traversal_ids, date); +CREATE INDEX index_vuln_reads_common_query_on_resolved_on_default_branch ON vulnerability_reads USING btree (project_id, state, report_type, vulnerability_id DESC) WHERE (resolved_on_default_branch IS TRUE); --- --- Name: issues fk_c34dd2b036; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vuln_reads_on_casted_cluster_agent_id_where_it_is_null ON vulnerability_reads USING btree (casted_cluster_agent_id) WHERE (casted_cluster_agent_id IS NOT NULL); -ALTER TABLE ONLY public.issues - ADD CONSTRAINT fk_c34dd2b036 FOREIGN KEY (tmp_epic_id) REFERENCES public.epics(id) ON DELETE CASCADE; +CREATE INDEX index_vuln_reads_on_project_id_owasp_top_10 ON vulnerability_reads USING btree (project_id, owasp_top_10); +CREATE INDEX index_vuln_reads_on_project_id_state_severity_and_vuln_id ON vulnerability_reads USING btree (project_id, state, severity, vulnerability_id DESC); --- --- Name: user_group_callouts fk_c366e12ec3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerabilities_common_finder_query_on_default_branch ON vulnerabilities USING btree (project_id, state, report_type, present_on_default_branch, severity, id); -ALTER TABLE ONLY public.user_group_callouts - ADD CONSTRAINT fk_c366e12ec3 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerabilities_on_author_id ON vulnerabilities USING btree (author_id); +CREATE INDEX index_vulnerabilities_on_confirmed_by_id ON vulnerabilities USING btree (confirmed_by_id); --- --- Name: timelogs fk_c49c83dd77; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerabilities_on_detected_at_and_id ON vulnerabilities USING btree (id, detected_at); -ALTER TABLE ONLY public.timelogs - ADD CONSTRAINT fk_c49c83dd77 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerabilities_on_dismissed_by_id ON vulnerabilities USING btree (dismissed_by_id); +CREATE INDEX index_vulnerabilities_on_finding_id ON vulnerabilities USING btree (finding_id); --- --- Name: wiki_repository_states fk_c558ca51b8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerabilities_on_project_id_and_id ON vulnerabilities USING btree (project_id, id); -ALTER TABLE ONLY public.wiki_repository_states - ADD CONSTRAINT fk_c558ca51b8 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerabilities_on_resolved_by_id ON vulnerabilities USING btree (resolved_by_id); +CREATE INDEX index_vulnerabilities_project_id_and_id_on_default_branch ON vulnerabilities USING btree (project_id, id) WHERE (present_on_default_branch IS TRUE); --- --- Name: issues fk_c63cbf6c25; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerabilities_project_id_state_severity_default_branch ON vulnerabilities USING btree (project_id, state, severity, present_on_default_branch); -ALTER TABLE ONLY public.issues - ADD CONSTRAINT fk_c63cbf6c25 FOREIGN KEY (closed_by_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_vulnerability_export_parts_on_organization_id ON vulnerability_export_parts USING btree (organization_id); +CREATE INDEX index_vulnerability_export_parts_on_vulnerability_export_id ON vulnerability_export_parts USING btree (vulnerability_export_id); --- --- Name: sbom_occurrences_vulnerabilities fk_c677cb859e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_exports_on_author_id ON vulnerability_exports USING btree (author_id); -ALTER TABLE ONLY public.sbom_occurrences_vulnerabilities - ADD CONSTRAINT fk_c677cb859e FOREIGN KEY (sbom_occurrence_id) REFERENCES public.sbom_occurrences(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerability_exports_on_file_store ON vulnerability_exports USING btree (file_store); +CREATE INDEX index_vulnerability_exports_on_group_id_not_null ON vulnerability_exports USING btree (group_id) WHERE (group_id IS NOT NULL); --- --- Name: issues fk_c78fbacd64; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_exports_on_organization_id ON vulnerability_exports USING btree (organization_id); -ALTER TABLE ONLY public.issues - ADD CONSTRAINT fk_c78fbacd64 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerability_exports_on_project_id_not_null ON vulnerability_exports USING btree (project_id) WHERE (project_id IS NOT NULL); +CREATE INDEX index_vulnerability_external_issue_links_on_author_id ON vulnerability_external_issue_links USING btree (author_id); --- --- Name: user_broadcast_message_dismissals fk_c7cbf5566d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_external_issue_links_on_project_id ON vulnerability_external_issue_links USING btree (project_id); -ALTER TABLE ONLY public.user_broadcast_message_dismissals - ADD CONSTRAINT fk_c7cbf5566d FOREIGN KEY (broadcast_message_id) REFERENCES public.broadcast_messages(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerability_feedback_finding_uuid ON vulnerability_feedback USING hash (finding_uuid); +CREATE INDEX index_vulnerability_feedback_on_author_id ON vulnerability_feedback USING btree (author_id); --- --- Name: packages_debian_group_distribution_keys fk_c802025a67; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_feedback_on_comment_author_id ON vulnerability_feedback USING btree (comment_author_id); -ALTER TABLE ONLY public.packages_debian_group_distribution_keys - ADD CONSTRAINT fk_c802025a67 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerability_feedback_on_common_attributes ON vulnerability_feedback USING btree (project_id, category, feedback_type, project_fingerprint); +CREATE INDEX index_vulnerability_feedback_on_feedback_type_and_finding_uuid ON vulnerability_feedback USING btree (feedback_type, finding_uuid); --- --- Name: agent_activity_events fk_c815368376; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_feedback_on_issue_id ON vulnerability_feedback USING btree (issue_id); -ALTER TABLE ONLY public.agent_activity_events - ADD CONSTRAINT fk_c815368376 FOREIGN KEY (agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerability_feedback_on_issue_id_not_null ON vulnerability_feedback USING btree (id) WHERE (issue_id IS NOT NULL); +CREATE INDEX index_vulnerability_feedback_on_merge_request_id ON vulnerability_feedback USING btree (merge_request_id); --- --- Name: agent_activity_events fk_c8b006d40f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_feedback_on_pipeline_id ON vulnerability_feedback USING btree (pipeline_id); -ALTER TABLE ONLY public.agent_activity_events - ADD CONSTRAINT fk_c8b006d40f FOREIGN KEY (agent_token_id) REFERENCES public.cluster_agent_tokens(id) ON DELETE SET NULL; +CREATE INDEX index_vulnerability_finding_evidences_on_project_id ON vulnerability_finding_evidences USING btree (project_id); +CREATE INDEX index_vulnerability_finding_signatures_on_project_id ON vulnerability_finding_signatures USING btree (project_id); --- --- Name: issue_links fk_c900194ff2; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_finding_signatures_on_signature_sha ON vulnerability_finding_signatures USING btree (signature_sha); -ALTER TABLE ONLY public.issue_links - ADD CONSTRAINT fk_c900194ff2 FOREIGN KEY (source_id) REFERENCES public.issues(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerability_findings_remediations_on_project_id ON vulnerability_findings_remediations USING btree (project_id); +CREATE INDEX index_vulnerability_findings_remediations_on_remediation_id ON vulnerability_findings_remediations USING btree (vulnerability_remediation_id); --- --- Name: bulk_import_exports fk_c9250a4d3f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_vulnerability_findings_remediations_on_unique_keys ON vulnerability_findings_remediations USING btree (vulnerability_occurrence_id, vulnerability_remediation_id); -ALTER TABLE ONLY public.bulk_import_exports - ADD CONSTRAINT fk_c9250a4d3f FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerability_flags_on_project_id ON vulnerability_flags USING btree (project_id); +CREATE UNIQUE INDEX index_vulnerability_flags_on_unique_columns ON vulnerability_flags USING btree (vulnerability_occurrence_id, flag_type, origin); --- --- Name: personal_access_tokens fk_c951fbf57e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_historical_statistics_on_date_and_id ON vulnerability_historical_statistics USING btree (date, id); -ALTER TABLE ONLY public.personal_access_tokens - ADD CONSTRAINT fk_c951fbf57e FOREIGN KEY (previous_personal_access_token_id) REFERENCES public.personal_access_tokens(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_vulnerability_identifiers_on_project_id_and_fingerprint ON vulnerability_identifiers USING btree (project_id, fingerprint); +CREATE INDEX index_vulnerability_issue_links_on_issue_id ON vulnerability_issue_links USING btree (issue_id); --- --- Name: compliance_checks fk_c9683a794f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_issue_links_on_project_id ON vulnerability_issue_links USING btree (project_id); -ALTER TABLE ONLY public.compliance_checks - ADD CONSTRAINT fk_c9683a794f FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerability_merge_request_links_on_merge_request_id ON vulnerability_merge_request_links USING btree (merge_request_id); +CREATE INDEX index_vulnerability_merge_request_links_on_project_id ON vulnerability_merge_request_links USING btree (project_id); --- --- Name: jira_tracker_data fk_c98abcd54c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_occurrence_identifiers_on_identifier_id ON vulnerability_occurrence_identifiers USING btree (identifier_id); -ALTER TABLE ONLY public.jira_tracker_data - ADD CONSTRAINT fk_c98abcd54c FOREIGN KEY (integration_id) REFERENCES public.integrations(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_vulnerability_occurrence_identifiers_on_unique_keys ON vulnerability_occurrence_identifiers USING btree (occurrence_id, identifier_id); +CREATE INDEX index_vulnerability_occurrence_pipelines_occurrence_id_and_id ON vulnerability_occurrence_pipelines USING btree (occurrence_id, id DESC); --- --- Name: evidences fk_ca4bbc114d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_occurrence_pipelines_on_pipeline_id ON vulnerability_occurrence_pipelines USING btree (pipeline_id); -ALTER TABLE ONLY public.evidences - ADD CONSTRAINT fk_ca4bbc114d FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerability_occurrences_for_override_uuids_logic ON vulnerability_occurrences USING btree (project_id, report_type, location_fingerprint); +CREATE INDEX index_vulnerability_occurrences_on_initial_pipeline_id ON vulnerability_occurrences USING btree (initial_pipeline_id); --- --- Name: subscription_add_on_purchases fk_caed789645; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_occurrences_on_latest_pipeline_id ON vulnerability_occurrences USING btree (latest_pipeline_id); -ALTER TABLE ONLY public.subscription_add_on_purchases - ADD CONSTRAINT fk_caed789645 FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerability_occurrences_on_location_image ON vulnerability_occurrences USING gin (((location -> 'image'::text))) WHERE (report_type = ANY (ARRAY[2, 7])); +CREATE INDEX index_vulnerability_occurrences_on_location_k8s_agent_id ON vulnerability_occurrences USING gin ((((location -> 'kubernetes_resource'::text) -> 'agent_id'::text))) WHERE (report_type = 7); --- --- Name: duo_workflows_workflows fk_cb28eb3e34; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_occurrences_on_location_k8s_cluster_id ON vulnerability_occurrences USING gin ((((location -> 'kubernetes_resource'::text) -> 'cluster_id'::text))) WHERE (report_type = 7); -ALTER TABLE ONLY public.duo_workflows_workflows - ADD CONSTRAINT fk_cb28eb3e34 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerability_occurrences_on_scanner_id ON vulnerability_occurrences USING btree (scanner_id); +CREATE UNIQUE INDEX index_vulnerability_occurrences_on_uuid_1 ON vulnerability_occurrences USING btree (uuid); --- --- Name: boards_epic_board_labels fk_cb8ded70e2; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_occurrences_on_vulnerability_id ON vulnerability_occurrences USING btree (vulnerability_id); -ALTER TABLE ONLY public.boards_epic_board_labels - ADD CONSTRAINT fk_cb8ded70e2 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerability_occurrences_prim_iden_id_and_vuln_id ON vulnerability_occurrences USING btree (primary_identifier_id, vulnerability_id); +CREATE INDEX index_vulnerability_reads_common_attrs_and_detection_for_groups ON vulnerability_reads USING btree (resolved_on_default_branch, state, report_type, severity, traversal_ids, vulnerability_id) WHERE (archived = false); --- --- Name: slack_integrations fk_cbe270434e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_reads_common_finder_query_2 ON vulnerability_reads USING btree (project_id, state, report_type, severity, vulnerability_id DESC, dismissal_reason); -ALTER TABLE ONLY public.slack_integrations - ADD CONSTRAINT fk_cbe270434e FOREIGN KEY (integration_id) REFERENCES public.integrations(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerability_reads_for_vulnerability_export ON vulnerability_reads USING btree (traversal_ids, vulnerability_id) WHERE (archived = false); +CREATE INDEX index_vulnerability_reads_on_cluster_agent_id ON vulnerability_reads USING btree (cluster_agent_id) WHERE (report_type = 7); --- --- Name: external_status_checks_protected_branches fk_cc0dcc36d1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_reads_on_location_image ON vulnerability_reads USING btree (location_image) WHERE (report_type = ANY (ARRAY[2, 7])); -ALTER TABLE ONLY public.external_status_checks_protected_branches - ADD CONSTRAINT fk_cc0dcc36d1 FOREIGN KEY (external_status_check_id) REFERENCES public.external_status_checks(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerability_reads_on_location_image_partial ON vulnerability_reads USING btree (project_id, location_image) WHERE ((report_type = ANY (ARRAY[2, 7])) AND (location_image IS NOT NULL)); +CREATE INDEX index_vulnerability_reads_on_location_image_trigram ON vulnerability_reads USING gin (location_image gin_trgm_ops) WHERE ((report_type = ANY (ARRAY[2, 7])) AND (location_image IS NOT NULL)); --- --- Name: dast_profiles_pipelines fk_cc206a8c13; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_reads_on_project_id_and_vulnerability_id ON vulnerability_reads USING btree (project_id, vulnerability_id); -ALTER TABLE ONLY public.dast_profiles_pipelines - ADD CONSTRAINT fk_cc206a8c13 FOREIGN KEY (dast_profile_id) REFERENCES public.dast_profiles(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerability_reads_on_scanner_id ON vulnerability_reads USING btree (scanner_id); +CREATE UNIQUE INDEX index_vulnerability_reads_on_uuid ON vulnerability_reads USING btree (uuid); --- --- Name: todos fk_ccf0373936; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_reads_on_uuid_project_id_and_state ON vulnerability_reads USING btree (uuid, project_id, state); -ALTER TABLE ONLY public.todos - ADD CONSTRAINT fk_ccf0373936 FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_vulnerability_reads_on_vulnerability_id ON vulnerability_reads USING btree (vulnerability_id); +CREATE UNIQUE INDEX index_vulnerability_remediations_on_project_id_and_checksum ON vulnerability_remediations USING btree (project_id, checksum); --- --- Name: packages_debian_project_architectures fk_cd96fce0a1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_vulnerability_scanners_on_project_id_and_external_id ON vulnerability_scanners USING btree (project_id, external_id); -ALTER TABLE ONLY public.packages_debian_project_architectures - ADD CONSTRAINT fk_cd96fce0a1 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerability_state_transitions_id_and_vulnerability_id ON vulnerability_state_transitions USING btree (vulnerability_id, id); +CREATE INDEX index_vulnerability_state_transitions_on_author_id ON vulnerability_state_transitions USING btree (author_id); --- --- Name: packages_dependencies fk_cea1124da7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_state_transitions_on_pipeline_id ON vulnerability_state_transitions USING btree (state_changed_at_pipeline_id); -ALTER TABLE ONLY public.packages_dependencies - ADD CONSTRAINT fk_cea1124da7 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_vulnerability_state_transitions_on_project_id ON vulnerability_state_transitions USING btree (project_id); +CREATE INDEX index_vulnerability_statistics_on_latest_pipeline_id ON vulnerability_statistics USING btree (latest_pipeline_id); --- --- Name: compliance_framework_security_policies fk_cf3c0ac207; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_statistics_on_letter_grade ON vulnerability_statistics USING btree (letter_grade); -ALTER TABLE ONLY public.compliance_framework_security_policies - ADD CONSTRAINT fk_cf3c0ac207 FOREIGN KEY (policy_configuration_id) REFERENCES public.security_orchestration_policy_configurations(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_vulnerability_statistics_on_unique_project_id ON vulnerability_statistics USING btree (project_id); +CREATE UNIQUE INDEX index_vulnerability_user_mentions_on_note_id ON vulnerability_user_mentions USING btree (note_id) WHERE (note_id IS NOT NULL); --- --- Name: issue_assignment_events fk_cfd2073177; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_vulnerability_user_mentions_on_project_id ON vulnerability_user_mentions USING btree (project_id); -ALTER TABLE ONLY public.issue_assignment_events - ADD CONSTRAINT fk_cfd2073177 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_vulns_user_mentions_on_vulnerability_id ON vulnerability_user_mentions USING btree (vulnerability_id) WHERE (note_id IS NULL); +CREATE UNIQUE INDEX index_vulns_user_mentions_on_vulnerability_id_and_note_id ON vulnerability_user_mentions USING btree (vulnerability_id, note_id); --- --- Name: custom_emoji fk_custom_emoji_creator_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_web_hook_logs_on_web_hook_id_and_created_at ON ONLY web_hook_logs USING btree (web_hook_id, created_at); -ALTER TABLE ONLY public.custom_emoji - ADD CONSTRAINT fk_custom_emoji_creator_id FOREIGN KEY (creator_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_web_hook_logs_part_on_created_at_and_web_hook_id ON ONLY web_hook_logs USING btree (created_at, web_hook_id); +CREATE INDEX index_web_hooks_on_group_id ON web_hooks USING btree (group_id) WHERE ((type)::text = 'GroupHook'::text); --- --- Name: bulk_import_entities fk_d06d023c30; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_web_hooks_on_integration_id ON web_hooks USING btree (integration_id); -ALTER TABLE ONLY public.bulk_import_entities - ADD CONSTRAINT fk_d06d023c30 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_web_hooks_on_project_id_and_id ON web_hooks USING btree (project_id, id) WHERE ((type)::text = 'ProjectHook'::text); +CREATE INDEX index_web_hooks_on_project_id_recent_failures ON web_hooks USING btree (project_id, recent_failures); --- --- Name: subscription_user_add_on_assignments fk_d1074a6e16; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_web_hooks_on_type ON web_hooks USING btree (type); -ALTER TABLE ONLY public.subscription_user_add_on_assignments - ADD CONSTRAINT fk_d1074a6e16 FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_webauthn_registrations_on_credential_xid ON webauthn_registrations USING btree (credential_xid); +CREATE INDEX index_webauthn_registrations_on_user_id ON webauthn_registrations USING btree (user_id); --- --- Name: project_mirror_data fk_d1aad367d7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_wiki_page_meta_on_project_id ON wiki_page_meta USING btree (project_id); -ALTER TABLE ONLY public.project_mirror_data - ADD CONSTRAINT fk_d1aad367d7 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_wiki_page_slugs_on_project_id ON wiki_page_slugs USING btree (project_id); +CREATE UNIQUE INDEX index_wiki_page_slugs_on_slug_and_wiki_page_meta_id ON wiki_page_slugs USING btree (slug, wiki_page_meta_id); --- --- Name: environments fk_d1c8c1da6a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_wiki_page_slugs_on_wiki_page_meta_id ON wiki_page_slugs USING btree (wiki_page_meta_id); -ALTER TABLE ONLY public.environments - ADD CONSTRAINT fk_d1c8c1da6a FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_wiki_repository_states_failed_verification ON wiki_repository_states USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); +CREATE INDEX index_wiki_repository_states_needs_verification ON wiki_repository_states USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); --- --- Name: dast_pre_scan_verifications fk_d23ad33d6e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_wiki_repository_states_on_project_id ON wiki_repository_states USING btree (project_id); -ALTER TABLE ONLY public.dast_pre_scan_verifications - ADD CONSTRAINT fk_d23ad33d6e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_wiki_repository_states_on_project_wiki_repository_id ON wiki_repository_states USING btree (project_wiki_repository_id); +CREATE INDEX index_wiki_repository_states_on_verification_state ON wiki_repository_states USING btree (verification_state); --- --- Name: p_ci_builds fk_d3130c9a7f_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_wiki_repository_states_pending_verification ON wiki_repository_states USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); -ALTER TABLE public.p_ci_builds - ADD CONSTRAINT fk_d3130c9a7f_p FOREIGN KEY (partition_id, commit_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +CREATE INDEX index_work_item_hierarchy_restrictions_on_child_type_id ON work_item_hierarchy_restrictions USING btree (child_type_id); +CREATE UNIQUE INDEX index_work_item_hierarchy_restrictions_on_parent_and_child ON work_item_hierarchy_restrictions USING btree (parent_type_id, child_type_id); --- --- Name: ci_builds fk_d3130c9a7f_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_work_item_hierarchy_restrictions_on_parent_type_id ON work_item_hierarchy_restrictions USING btree (parent_type_id); -ALTER TABLE ONLY public.ci_builds - ADD CONSTRAINT fk_d3130c9a7f_p_tmp FOREIGN KEY (partition_id, commit_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +CREATE UNIQUE INDEX index_work_item_link_restrictions_on_source_link_type_target ON work_item_related_link_restrictions USING btree (source_type_id, link_type, target_type_id); +CREATE INDEX index_work_item_parent_links_on_namespace_id ON work_item_parent_links USING btree (namespace_id); --- --- Name: boards_epic_user_preferences fk_d32c3d693c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_work_item_parent_links_on_work_item_id ON work_item_parent_links USING btree (work_item_id); -ALTER TABLE ONLY public.boards_epic_user_preferences - ADD CONSTRAINT fk_d32c3d693c FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX index_work_item_parent_links_on_work_item_parent_id ON work_item_parent_links USING btree (work_item_parent_id); +CREATE INDEX index_work_item_related_link_restrictions_on_target_type_id ON work_item_related_link_restrictions USING btree (target_type_id); --- --- Name: vulnerability_state_transitions fk_d3ede71c58; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_work_item_types_on_base_type_and_id ON work_item_types USING btree (base_type, id); -ALTER TABLE ONLY public.vulnerability_state_transitions - ADD CONSTRAINT fk_d3ede71c58 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_work_item_types_on_name_unique ON work_item_types USING btree (TRIM(BOTH FROM lower(name))); +CREATE UNIQUE INDEX index_work_item_widget_definitions_on_type_id_and_name ON work_item_widget_definitions USING btree (work_item_type_id, TRIM(BOTH FROM lower(name))); --- --- Name: ci_sources_pipelines fk_d4e29af7d7_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_work_item_widget_definitions_on_work_item_type_id ON work_item_widget_definitions USING btree (work_item_type_id); -ALTER TABLE ONLY public.ci_sources_pipelines - ADD CONSTRAINT fk_d4e29af7d7_p FOREIGN KEY (source_partition_id, source_pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +CREATE INDEX index_workspace_variables_on_project_id ON workspace_variables USING btree (project_id); +CREATE INDEX index_workspace_variables_on_workspace_id ON workspace_variables USING btree (workspace_id); --- --- Name: ci_sources_pipelines fk_d4e29af7d7_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_workspaces_agent_configs_on_project_id ON workspaces_agent_configs USING btree (project_id); -ALTER TABLE ONLY public.ci_sources_pipelines - ADD CONSTRAINT fk_d4e29af7d7_p_tmp FOREIGN KEY (source_partition_id, source_pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +CREATE UNIQUE INDEX index_workspaces_agent_configs_on_unique_cluster_agent_id ON workspaces_agent_configs USING btree (cluster_agent_id); +CREATE INDEX index_workspaces_on_cluster_agent_id ON workspaces USING btree (cluster_agent_id); --- --- Name: operations_strategies_user_lists fk_d4f7076369; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_workspaces_on_name ON workspaces USING btree (name); -ALTER TABLE ONLY public.operations_strategies_user_lists - ADD CONSTRAINT fk_d4f7076369 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_workspaces_on_personal_access_token_id ON workspaces USING btree (personal_access_token_id); +CREATE INDEX index_workspaces_on_project_id ON workspaces USING btree (project_id); --- --- Name: incident_management_timeline_events fk_d606a2a890; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_workspaces_on_user_id ON workspaces USING btree (user_id); -ALTER TABLE ONLY public.incident_management_timeline_events - ADD CONSTRAINT fk_d606a2a890 FOREIGN KEY (promoted_from_note_id) REFERENCES public.notes(id) ON DELETE SET NULL; +CREATE INDEX index_x509_certificates_on_subject_key_identifier ON x509_certificates USING btree (subject_key_identifier); +CREATE INDEX index_x509_certificates_on_x509_issuer_id ON x509_certificates USING btree (x509_issuer_id); --- --- Name: lists fk_d6cf4279f7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_x509_commit_signatures_on_commit_sha ON x509_commit_signatures USING btree (commit_sha); -ALTER TABLE ONLY public.lists - ADD CONSTRAINT fk_d6cf4279f7 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX index_x509_commit_signatures_on_project_id ON x509_commit_signatures USING btree (project_id); +CREATE INDEX index_x509_commit_signatures_on_x509_certificate_id ON x509_commit_signatures USING btree (x509_certificate_id); --- --- Name: agent_activity_events fk_d6f785c9fc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_x509_issuers_on_subject_key_identifier ON x509_issuers USING btree (subject_key_identifier); -ALTER TABLE ONLY public.agent_activity_events - ADD CONSTRAINT fk_d6f785c9fc FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX index_xray_reports_on_project_id_and_lang ON xray_reports USING btree (project_id, lang); +CREATE INDEX index_zentao_tracker_data_on_integration_id ON zentao_tracker_data USING btree (integration_id); --- --- Name: user_achievements fk_d7653ef780; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_zoekt_indices_on_namespace_id ON zoekt_indices USING btree (namespace_id, zoekt_enabled_namespace_id); -ALTER TABLE ONLY public.user_achievements - ADD CONSTRAINT fk_d7653ef780 FOREIGN KEY (revoked_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX index_zoekt_indices_on_replica_id ON zoekt_indices USING btree (zoekt_replica_id); +CREATE UNIQUE INDEX index_zoekt_indices_on_state_and_id ON zoekt_indices USING btree (state, id); --- --- Name: metrics_users_starred_dashboards fk_d76a2b9a8c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_zoekt_indices_on_zoekt_node_id_and_id ON zoekt_indices USING btree (zoekt_node_id, id); -ALTER TABLE ONLY public.metrics_users_starred_dashboards - ADD CONSTRAINT fk_d76a2b9a8c FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_zoekt_nodes_on_last_seen_at ON zoekt_nodes USING btree (last_seen_at); +CREATE UNIQUE INDEX index_zoekt_nodes_on_uuid ON zoekt_nodes USING btree (uuid); --- --- Name: p_ci_pipelines fk_d80e161c54; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_zoekt_replicas_on_enabled_namespace_id ON zoekt_replicas USING btree (zoekt_enabled_namespace_id); -ALTER TABLE public.p_ci_pipelines - ADD CONSTRAINT fk_d80e161c54 FOREIGN KEY (ci_ref_id) REFERENCES public.ci_refs(id) ON DELETE SET NULL; +CREATE INDEX index_zoekt_replicas_on_namespace_id_enabled_namespace_id ON zoekt_replicas USING btree (namespace_id, zoekt_enabled_namespace_id); +CREATE INDEX index_zoekt_replicas_on_state ON zoekt_replicas USING btree (state); --- --- Name: upcoming_reconciliations fk_d81de6b493; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_zoekt_repositories_on_project_id ON zoekt_repositories USING btree (project_id); -ALTER TABLE ONLY public.upcoming_reconciliations - ADD CONSTRAINT fk_d81de6b493 FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; +CREATE INDEX index_zoekt_repositories_on_state ON zoekt_repositories USING btree (state); +CREATE UNIQUE INDEX index_zoekt_shards_on_index_base_url ON zoekt_shards USING btree (index_base_url); --- --- Name: system_note_metadata fk_d83a918cb1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_zoekt_shards_on_last_seen_at ON zoekt_shards USING btree (last_seen_at); -ALTER TABLE ONLY public.system_note_metadata - ADD CONSTRAINT fk_d83a918cb1 FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX index_zoekt_shards_on_search_base_url ON zoekt_shards USING btree (search_base_url); +CREATE INDEX index_zoekt_tasks_on_state ON ONLY zoekt_tasks USING btree (state); --- --- Name: sbom_occurrences fk_d857c6edc1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX index_zoekt_tasks_on_zoekt_node_id_and_state_and_perform_at ON ONLY zoekt_tasks USING btree (zoekt_node_id, state, perform_at); -ALTER TABLE ONLY public.sbom_occurrences - ADD CONSTRAINT fk_d857c6edc1 FOREIGN KEY (component_id) REFERENCES public.sbom_components(id) ON DELETE CASCADE; +CREATE INDEX index_zoekt_tasks_on_zoekt_repository_id ON ONLY zoekt_tasks USING btree (zoekt_repository_id); +CREATE INDEX index_zoom_meetings_on_issue_id ON zoom_meetings USING btree (issue_id); --- --- Name: dependency_list_exports fk_d871d74675; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX index_zoom_meetings_on_issue_id_and_issue_status ON zoom_meetings USING btree (issue_id, issue_status) WHERE (issue_status = 1); -ALTER TABLE ONLY public.dependency_list_exports - ADD CONSTRAINT fk_d871d74675 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX index_zoom_meetings_on_issue_status ON zoom_meetings USING btree (issue_status); +CREATE INDEX index_zoom_meetings_on_project_id ON zoom_meetings USING btree (project_id); --- --- Name: todos fk_d94154aa95; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX issue_id_issues_prometheus_alert_events_index ON issues_prometheus_alert_events USING btree (prometheus_alert_event_id); -ALTER TABLE ONLY public.todos - ADD CONSTRAINT fk_d94154aa95 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE INDEX issue_id_issues_self_managed_rometheus_alert_events_index ON issues_self_managed_prometheus_alert_events USING btree (self_managed_prometheus_alert_event_id); +CREATE UNIQUE INDEX issue_user_mentions_on_issue_id_and_note_id_index ON issue_user_mentions USING btree (issue_id, note_id); --- --- Name: label_links fk_d97dd08678; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX issue_user_mentions_on_issue_id_index ON issue_user_mentions USING btree (issue_id) WHERE (note_id IS NULL); -ALTER TABLE ONLY public.label_links - ADD CONSTRAINT fk_d97dd08678 FOREIGN KEY (label_id) REFERENCES public.labels(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX kubernetes_namespaces_cluster_and_namespace ON clusters_kubernetes_namespaces USING btree (cluster_id, namespace); +CREATE UNIQUE INDEX merge_request_user_mentions_on_mr_id_and_note_id_index ON merge_request_user_mentions USING btree (merge_request_id, note_id); --- --- Name: personal_access_tokens fk_da676c7ca5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX merge_request_user_mentions_on_mr_id_index ON merge_request_user_mentions USING btree (merge_request_id) WHERE (note_id IS NULL); -ALTER TABLE ONLY public.personal_access_tokens - ADD CONSTRAINT fk_da676c7ca5 FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX one_canonical_wiki_page_slug_per_metadata ON wiki_page_slugs USING btree (wiki_page_meta_id) WHERE (canonical = true); +CREATE INDEX p_ci_builds_scheduled_at_idx ON ONLY p_ci_builds USING btree (scheduled_at) WHERE ((scheduled_at IS NOT NULL) AND ((type)::text = 'Ci::Build'::text) AND ((status)::text = 'scheduled'::text)); --- --- Name: project_group_links fk_daa8cee94c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX p_ci_builds_token_encrypted_partition_id_idx ON ONLY p_ci_builds USING btree (token_encrypted, partition_id) WHERE (token_encrypted IS NOT NULL); -ALTER TABLE ONLY public.project_group_links - ADD CONSTRAINT fk_daa8cee94c FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX p_ci_job_artifacts_expire_at_job_id_idx1 ON ONLY p_ci_job_artifacts USING btree (expire_at, job_id) WHERE ((locked = 2) AND (expire_at IS NOT NULL)); +CREATE INDEX package_name_index ON packages_packages USING btree (name); --- --- Name: project_topics fk_db13576296; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX packages_packages_failed_verification ON packages_package_files USING btree (verification_retry_at NULLS FIRST) WHERE (verification_state = 3); -ALTER TABLE ONLY public.project_topics - ADD CONSTRAINT fk_db13576296 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX packages_packages_needs_verification ON packages_package_files USING btree (verification_state) WHERE ((verification_state = 0) OR (verification_state = 3)); +CREATE INDEX packages_packages_pending_verification ON packages_package_files USING btree (verified_at NULLS FIRST) WHERE (verification_state = 0); --- --- Name: web_hooks fk_db1ea5699b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX pages_deployments_deleted_at_index ON pages_deployments USING btree (id, project_id, path_prefix) WHERE (deleted_at IS NULL); -ALTER TABLE ONLY public.web_hooks - ADD CONSTRAINT fk_db1ea5699b FOREIGN KEY (integration_id) REFERENCES public.integrations(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX partial_idx_bulk_import_exports_on_group_user_and_relation ON bulk_import_exports USING btree (group_id, relation, user_id) WHERE ((group_id IS NOT NULL) AND (user_id IS NOT NULL)); +CREATE UNIQUE INDEX partial_idx_bulk_import_exports_on_project_user_and_relation ON bulk_import_exports USING btree (project_id, relation, user_id) WHERE ((project_id IS NOT NULL) AND (user_id IS NOT NULL)); --- --- Name: work_item_dates_sources fk_dbbe8917ee; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX partial_index_ci_builds_on_scheduled_at_with_scheduled_jobs ON ci_builds USING btree (scheduled_at) WHERE ((scheduled_at IS NOT NULL) AND ((type)::text = 'Ci::Build'::text) AND ((status)::text = 'scheduled'::text)); -ALTER TABLE ONLY public.work_item_dates_sources - ADD CONSTRAINT fk_dbbe8917ee FOREIGN KEY (due_date_sourcing_work_item_id) REFERENCES public.issues(id) ON DELETE SET NULL; +CREATE INDEX partial_index_slack_integrations_with_bot_user_id ON slack_integrations USING btree (id) WHERE (bot_user_id IS NOT NULL); +CREATE UNIQUE INDEX partial_index_sop_configs_on_namespace_id ON security_orchestration_policy_configurations USING btree (namespace_id) WHERE (namespace_id IS NOT NULL); --- --- Name: boards_epic_board_positions fk_dc62428d81; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX partial_index_sop_configs_on_project_id ON security_orchestration_policy_configurations USING btree (project_id) WHERE (project_id IS NOT NULL); -ALTER TABLE ONLY public.boards_epic_board_positions - ADD CONSTRAINT fk_dc62428d81 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX partial_index_user_id_app_id_created_at_token_not_revoked ON oauth_access_tokens USING btree (resource_owner_id, application_id, created_at) WHERE (revoked_at IS NULL); +CREATE UNIQUE INDEX pm_checkpoints_path_components ON pm_checkpoints USING btree (purl_type, data_type, version_format); --- --- Name: workspaces fk_dc7c316be1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX releases_published_at_index ON releases USING btree (release_published_at); -ALTER TABLE ONLY public.workspaces - ADD CONSTRAINT fk_dc7c316be1 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX scan_finding_approval_mr_rule_index_id ON approval_merge_request_rules USING btree (id) WHERE (report_type = 4); +CREATE INDEX scan_finding_approval_mr_rule_index_merge_request_id ON approval_merge_request_rules USING btree (merge_request_id) WHERE (report_type = 4); --- --- Name: software_license_policies fk_dca6a58d53; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX scan_finding_approval_mr_rule_index_mr_id_and_created_at ON approval_merge_request_rules USING btree (merge_request_id, created_at) WHERE (report_type = 4); -ALTER TABLE ONLY public.software_license_policies - ADD CONSTRAINT fk_dca6a58d53 FOREIGN KEY (approval_policy_rule_id) REFERENCES public.approval_policy_rules(id) ON DELETE CASCADE; +CREATE INDEX scan_finding_approval_project_rule_index_created_at_project_id ON approval_project_rules USING btree (created_at, project_id) WHERE (report_type = 4); +CREATE INDEX scan_finding_approval_project_rule_index_project_id ON approval_project_rules USING btree (project_id) WHERE (report_type = 4); --- --- Name: epics fk_dccd3f98fc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX security_findings_project_fingerprint_idx ON ONLY security_findings USING btree (project_fingerprint); -ALTER TABLE ONLY public.epics - ADD CONSTRAINT fk_dccd3f98fc FOREIGN KEY (assignee_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE INDEX security_findings_scan_id_deduplicated_idx ON ONLY security_findings USING btree (scan_id, deduplicated); +CREATE INDEX security_findings_scan_id_id_idx ON ONLY security_findings USING btree (scan_id, id); --- --- Name: protected_branches fk_de9216e774; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX security_findings_scanner_id_idx ON ONLY security_findings USING btree (scanner_id); -ALTER TABLE ONLY public.protected_branches - ADD CONSTRAINT fk_de9216e774 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE INDEX security_findings_severity_idx ON ONLY security_findings USING btree (severity); +CREATE UNIQUE INDEX security_findings_uuid_scan_id_partition_number_idx ON ONLY security_findings USING btree (uuid, scan_id, partition_number); --- --- Name: issues fk_df75a7c8b8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX snippet_user_mentions_on_snippet_id_and_note_id_index ON snippet_user_mentions USING btree (snippet_id, note_id); -ALTER TABLE ONLY public.issues - ADD CONSTRAINT fk_df75a7c8b8 FOREIGN KEY (promoted_to_epic_id) REFERENCES public.epics(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX snippet_user_mentions_on_snippet_id_index ON snippet_user_mentions USING btree (snippet_id) WHERE (note_id IS NULL); +CREATE UNIQUE INDEX taggings_idx ON taggings USING btree (tag_id, taggable_id, taggable_type, context, tagger_id, tagger_type); --- --- Name: dependency_list_exports fk_e133f6725e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX temp_index_on_users_where_dark_theme ON users USING btree (id) WHERE (theme_id = 11); -ALTER TABLE ONLY public.dependency_list_exports - ADD CONSTRAINT fk_e133f6725e FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX term_agreements_unique_index ON term_agreements USING btree (user_id, term_id); +CREATE INDEX tmp_idx_for_feedback_comment_processing ON vulnerability_feedback USING btree (id) WHERE (char_length(comment) > 50000); --- --- Name: approval_project_rules fk_e1372c912e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX tmp_idx_for_vulnerability_feedback_migration ON vulnerability_feedback USING btree (id) WHERE ((migrated_to_state_transition = false) AND (feedback_type = 0)); -ALTER TABLE ONLY public.approval_project_rules - ADD CONSTRAINT fk_e1372c912e FOREIGN KEY (scan_result_policy_id) REFERENCES public.scan_result_policies(id) ON DELETE CASCADE; +CREATE INDEX tmp_idx_orphaned_approval_merge_request_rules ON approval_merge_request_rules USING btree (id) WHERE ((report_type = ANY (ARRAY[2, 4])) AND (security_orchestration_policy_configuration_id IS NULL)); +CREATE INDEX tmp_idx_orphaned_approval_project_rules ON approval_project_rules USING btree (id) WHERE ((report_type = ANY (ARRAY[2, 4])) AND (security_orchestration_policy_configuration_id IS NULL)); --- --- Name: ci_resources fk_e169a8e3d5_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX tmp_idx_packages_dependencies_on_name_version_pattern ON packages_dependencies USING btree (name, version_pattern) WHERE (project_id IS NULL); -ALTER TABLE ONLY public.ci_resources - ADD CONSTRAINT fk_e169a8e3d5_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL; +CREATE INDEX tmp_index_ci_job_artifacts_on_expire_at_where_locked_unknown ON ci_job_artifacts USING btree (expire_at, job_id) WHERE ((locked = 2) AND (expire_at IS NOT NULL)); +CREATE INDEX tmp_index_for_null_member_namespace_id ON members USING btree (member_namespace_id) WHERE (member_namespace_id IS NULL); --- --- Name: ci_sources_pipelines fk_e1bad85861_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX tmp_index_for_owasp_null_on_vulnerability_reads ON vulnerability_reads USING btree (vulnerability_id) WHERE (owasp_top_10 IS NULL); -ALTER TABLE ONLY public.ci_sources_pipelines - ADD CONSTRAINT fk_e1bad85861_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +CREATE INDEX tmp_index_for_project_namespace_id_migration_on_routes ON routes USING btree (id) WHERE ((namespace_id IS NULL) AND ((source_type)::text = 'Project'::text)); +CREATE INDEX tmp_index_for_succeeded_security_scans ON security_scans USING btree (id) WHERE (status = 1); --- --- Name: ci_sources_pipelines fk_e1bad85861_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX tmp_index_issues_on_tmp_epic_id ON issues USING btree (tmp_epic_id); -ALTER TABLE ONLY public.ci_sources_pipelines - ADD CONSTRAINT fk_e1bad85861_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +CREATE INDEX tmp_index_on_vulnerabilities_non_dismissed ON vulnerabilities USING btree (id) WHERE (state <> 2); +CREATE INDEX tmp_index_project_statistics_cont_registry_size ON project_statistics USING btree (project_id) WHERE (container_registry_size = 0); --- --- Name: p_ci_builds_metadata fk_e20479742e_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX tmp_index_vulnerability_overlong_title_html ON vulnerabilities USING btree (id) WHERE (length(title_html) > 800); -ALTER TABLE public.p_ci_builds_metadata - ADD CONSTRAINT fk_e20479742e_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +CREATE INDEX tmp_index_vulnerability_reads_where_state_is_detected ON vulnerability_reads USING btree (id) WHERE (state = 1); +CREATE UNIQUE INDEX u_compliance_checks_for_requirement ON compliance_checks USING btree (requirement_id, check_name); --- --- Name: gitlab_subscriptions fk_e2595d00a1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX u_compliance_requirements_for_framework ON compliance_requirements USING btree (framework_id, name); -ALTER TABLE ONLY public.gitlab_subscriptions - ADD CONSTRAINT fk_e2595d00a1 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX u_project_compliance_standards_adherence_for_reporting ON project_compliance_standards_adherence USING btree (project_id, check_name, standard); +CREATE UNIQUE INDEX u_zoekt_indices_zoekt_enabled_namespace_id_and_zoekt_node_id ON zoekt_indices USING btree (zoekt_enabled_namespace_id, zoekt_node_id); --- --- Name: approval_merge_request_rules fk_e33a9aaf67; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX u_zoekt_repositories_zoekt_index_id_and_project_id ON zoekt_repositories USING btree (zoekt_index_id, project_id); -ALTER TABLE ONLY public.approval_merge_request_rules - ADD CONSTRAINT fk_e33a9aaf67 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX uniq_audit_group_event_filters_destination_id_and_event_type ON audit_events_group_streaming_event_type_filters USING btree (external_streaming_destination_id, audit_event_type); +CREATE UNIQUE INDEX uniq_audit_instance_event_filters_destination_id_and_event_type ON audit_events_instance_streaming_event_type_filters USING btree (external_streaming_destination_id, audit_event_type); --- --- Name: abuse_events fk_e5ce49c215; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX uniq_google_cloud_logging_configuration_namespace_id_and_name ON audit_events_google_cloud_logging_configurations USING btree (namespace_id, name); -ALTER TABLE ONLY public.abuse_events - ADD CONSTRAINT fk_e5ce49c215 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX uniq_idx_packages_packages_on_project_id_name_version_ml_model ON packages_packages USING btree (project_id, name, version) WHERE ((package_type = 14) AND (status <> 4)); +CREATE UNIQUE INDEX uniq_idx_project_compliance_framework_on_project_framework ON project_compliance_framework_settings USING btree (project_id, framework_id); --- --- Name: user_preferences fk_e5e029c10b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX uniq_idx_security_policy_requirements_on_requirement_and_policy ON security_policy_requirements USING btree (compliance_framework_security_policy_id, compliance_requirement_id); -ALTER TABLE ONLY public.user_preferences - ADD CONSTRAINT fk_e5e029c10b FOREIGN KEY (home_organization_id) REFERENCES public.organizations(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX uniq_idx_streaming_destination_id_and_namespace_id ON audit_events_streaming_instance_namespace_filters USING btree (external_streaming_destination_id, namespace_id); +CREATE UNIQUE INDEX uniq_idx_streaming_group_destination_id_and_namespace_id ON audit_events_streaming_group_namespace_filters USING btree (external_streaming_destination_id, namespace_id); --- --- Name: packages_debian_group_components fk_e63e8ee3b1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX uniq_idx_user_add_on_assignments_on_add_on_purchase_and_user ON subscription_user_add_on_assignments USING btree (add_on_purchase_id, user_id); -ALTER TABLE ONLY public.packages_debian_group_components - ADD CONSTRAINT fk_e63e8ee3b1 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX uniq_pkgs_deb_grp_architectures_on_distribution_id_and_name ON packages_debian_group_architectures USING btree (distribution_id, name); +CREATE UNIQUE INDEX uniq_pkgs_deb_grp_components_on_distribution_id_and_name ON packages_debian_group_components USING btree (distribution_id, name); --- --- Name: merge_requests fk_e719a85f8a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX uniq_pkgs_deb_proj_architectures_on_distribution_id_and_name ON packages_debian_project_architectures USING btree (distribution_id, name); -ALTER TABLE ONLY public.merge_requests - ADD CONSTRAINT fk_e719a85f8a FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX uniq_pkgs_deb_proj_components_on_distribution_id_and_name ON packages_debian_project_components USING btree (distribution_id, name); +CREATE UNIQUE INDEX uniq_pkgs_debian_group_distributions_group_id_and_codename ON packages_debian_group_distributions USING btree (group_id, codename); --- --- Name: vulnerability_state_transitions fk_e719dc63df; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX uniq_pkgs_debian_group_distributions_group_id_and_suite ON packages_debian_group_distributions USING btree (group_id, suite); -ALTER TABLE ONLY public.vulnerability_state_transitions - ADD CONSTRAINT fk_e719dc63df FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX uniq_pkgs_debian_project_distributions_project_id_and_codename ON packages_debian_project_distributions USING btree (project_id, codename); +CREATE UNIQUE INDEX uniq_pkgs_debian_project_distributions_project_id_and_suite ON packages_debian_project_distributions USING btree (project_id, suite); --- --- Name: issue_links fk_e71bb44f1f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX unique_amazon_s3_configurations_namespace_id_and_bucket_name ON audit_events_amazon_s3_configurations USING btree (namespace_id, bucket_name); -ALTER TABLE ONLY public.issue_links - ADD CONSTRAINT fk_e71bb44f1f FOREIGN KEY (target_id) REFERENCES public.issues(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX unique_amazon_s3_configurations_namespace_id_and_name ON audit_events_amazon_s3_configurations USING btree (namespace_id, name); +CREATE UNIQUE INDEX unique_any_approver_merge_request_rule_type_post_merge ON approval_merge_request_rules USING btree (merge_request_id, rule_type, applicable_post_merge) WHERE (rule_type = 4); --- --- Name: csv_issue_imports fk_e71c0ae362; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX unique_audit_events_group_namespace_filters_destination_id ON audit_events_streaming_http_group_namespace_filters USING btree (external_audit_event_destination_id); -ALTER TABLE ONLY public.csv_issue_imports - ADD CONSTRAINT fk_e71c0ae362 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX unique_audit_events_group_namespace_filters_namespace_id ON audit_events_streaming_http_group_namespace_filters USING btree (namespace_id); +CREATE UNIQUE INDEX unique_audit_events_instance_namespace_filters_destination_id ON audit_events_streaming_http_instance_namespace_filters USING btree (audit_events_instance_external_audit_event_destination_id); --- --- Name: namespaces fk_e7a0b20a6b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX unique_batched_background_migrations_queued_migration_version ON batched_background_migrations USING btree (queued_migration_version); -ALTER TABLE ONLY public.namespaces - ADD CONSTRAINT fk_e7a0b20a6b FOREIGN KEY (custom_project_templates_group_id) REFERENCES public.namespaces(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX unique_ci_builds_token_encrypted_and_partition_id ON ci_builds USING btree (token_encrypted, partition_id) WHERE (token_encrypted IS NOT NULL); +CREATE UNIQUE INDEX unique_compliance_framework_security_policies_framework_id ON compliance_framework_security_policies USING btree (framework_id, policy_configuration_id, policy_index); --- --- Name: fork_networks fk_e7b436b2b5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX unique_external_audit_event_destination_namespace_id_and_name ON audit_events_external_audit_event_destinations USING btree (namespace_id, name); -ALTER TABLE ONLY public.fork_networks - ADD CONSTRAINT fk_e7b436b2b5 FOREIGN KEY (root_project_id) REFERENCES public.projects(id) ON DELETE SET NULL; +CREATE UNIQUE INDEX unique_google_cloud_logging_configurations_on_namespace_id ON audit_events_google_cloud_logging_configurations USING btree (namespace_id, google_project_id_name, log_id_name); +CREATE UNIQUE INDEX unique_idx_member_approvals_on_pending_status ON member_approvals USING btree (user_id, member_namespace_id) WHERE (status = 0); --- --- Name: error_tracking_error_events fk_e84882273e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX unique_idx_namespaces_storage_limit_exclusions_on_namespace_id ON namespaces_storage_limit_exclusions USING btree (namespace_id); -ALTER TABLE ONLY public.error_tracking_error_events - ADD CONSTRAINT fk_e84882273e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX unique_import_source_users_on_reassign_to_user_id_and_import ON import_source_users USING btree (reassign_to_user_id, namespace_id, source_hostname, import_type); +CREATE UNIQUE INDEX unique_import_source_users_source_identifier_and_import_source ON import_source_users USING btree (source_user_identifier, namespace_id, source_hostname, import_type); --- --- Name: ml_candidates fk_e86e0bfa5a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX unique_index_ci_build_pending_states_on_partition_id_build_id ON ci_build_pending_states USING btree (partition_id, build_id); -ALTER TABLE ONLY public.ml_candidates - ADD CONSTRAINT fk_e86e0bfa5a FOREIGN KEY (model_version_id) REFERENCES public.ml_model_versions(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX unique_index_for_credit_card_validation_payment_method_xid ON user_credit_card_validations USING btree (zuora_payment_method_xid) WHERE (zuora_payment_method_xid IS NOT NULL); +CREATE UNIQUE INDEX unique_index_for_project_pages_unique_domain ON project_settings USING btree (pages_unique_domain) WHERE (pages_unique_domain IS NOT NULL); --- --- Name: integrations fk_e8fe908a34; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX unique_index_ml_model_metadata_name ON ml_model_metadata USING btree (model_id, name); -ALTER TABLE ONLY public.integrations - ADD CONSTRAINT fk_e8fe908a34 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX unique_index_ml_model_version_metadata_name ON ml_model_version_metadata USING btree (model_version_id, name); +CREATE UNIQUE INDEX unique_index_on_system_note_metadata_id ON resource_link_events USING btree (system_note_metadata_id); --- --- Name: pages_domains fk_ea2f6dfc6f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX unique_index_sysaccess_ms_access_tokens_on_sysaccess_ms_app_id ON system_access_microsoft_graph_access_tokens USING btree (system_access_microsoft_application_id); -ALTER TABLE ONLY public.pages_domains - ADD CONSTRAINT fk_ea2f6dfc6f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX unique_instance_amazon_s3_configurations_bucket_name ON audit_events_instance_amazon_s3_configurations USING btree (bucket_name); +CREATE UNIQUE INDEX unique_instance_amazon_s3_configurations_name ON audit_events_instance_amazon_s3_configurations USING btree (name); --- --- Name: packages_debian_project_distribution_keys fk_eb2224a3c0; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX unique_instance_audit_event_destination_name ON audit_events_instance_external_audit_event_destinations USING btree (name); -ALTER TABLE ONLY public.packages_debian_project_distribution_keys - ADD CONSTRAINT fk_eb2224a3c0 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX unique_instance_google_cloud_logging_configurations ON audit_events_instance_google_cloud_logging_configurations USING btree (google_project_id_name, log_id_name); +CREATE UNIQUE INDEX unique_instance_google_cloud_logging_configurations_name ON audit_events_instance_google_cloud_logging_configurations USING btree (name); --- --- Name: dast_profiles_tags fk_eb7e19f8da; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX unique_merge_request_metrics_by_merge_request_id ON merge_request_metrics USING btree (merge_request_id); -ALTER TABLE ONLY public.dast_profiles_tags - ADD CONSTRAINT fk_eb7e19f8da FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX unique_ml_model_versions_on_model_id_and_id ON ml_model_versions USING btree (model_id, id DESC); +CREATE UNIQUE INDEX unique_namespace_cluster_agent_mappings_for_agent_association ON remote_development_namespace_cluster_agent_mappings USING btree (namespace_id, cluster_agent_id); --- --- Name: compliance_requirements fk_ebf5c3365b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX unique_organizations_on_path_case_insensitive ON organizations USING btree (lower(path)); -ALTER TABLE ONLY public.compliance_requirements - ADD CONSTRAINT fk_ebf5c3365b FOREIGN KEY (framework_id) REFERENCES public.compliance_management_frameworks(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX unique_packages_project_id_and_name_and_version_when_debian ON packages_packages USING btree (project_id, name, version) WHERE ((package_type = 9) AND (status <> 4)); +CREATE UNIQUE INDEX unique_pool_repositories_on_disk_path_and_shard_id ON pool_repositories USING btree (disk_path, shard_id); --- --- Name: catalog_resource_components fk_ec417536da; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX unique_postgres_async_fk_validations_name_and_table_name ON postgres_async_foreign_key_validations USING btree (name, table_name); -ALTER TABLE ONLY public.catalog_resource_components - ADD CONSTRAINT fk_ec417536da FOREIGN KEY (catalog_resource_id) REFERENCES public.catalog_resources(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX unique_projects_on_name_namespace_id ON projects USING btree (name, namespace_id); +CREATE UNIQUE INDEX unique_streaming_event_type_filters_destination_id ON audit_events_streaming_event_type_filters USING btree (external_audit_event_destination_id, audit_event_type); --- --- Name: workspaces fk_ec70695b2c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX unique_streaming_instance_event_type_filters_destination_id ON audit_events_streaming_instance_event_type_filters USING btree (instance_external_audit_event_destination_id, audit_event_type); -ALTER TABLE ONLY public.workspaces - ADD CONSTRAINT fk_ec70695b2c FOREIGN KEY (personal_access_token_id) REFERENCES public.personal_access_tokens(id) ON DELETE RESTRICT; +CREATE UNIQUE INDEX unique_user_id_and_setting_type ON vs_code_settings USING btree (user_id, setting_type); +CREATE UNIQUE INDEX unique_vuln_merge_request_link_vuln_id_and_mr_id ON vulnerability_merge_request_links USING btree (vulnerability_id, merge_request_id); --- --- Name: merge_requests_compliance_violations fk_ec881c1c6f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX unique_zoekt_enabled_namespaces_on_root_namespace_id ON zoekt_enabled_namespaces USING btree (root_namespace_id); -ALTER TABLE ONLY public.merge_requests_compliance_violations - ADD CONSTRAINT fk_ec881c1c6f FOREIGN KEY (violating_user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX unique_zoekt_shards_uuid ON zoekt_shards USING btree (uuid); +CREATE INDEX user_follow_users_followee_id_idx ON user_follow_users USING btree (followee_id); --- --- Name: coverage_fuzzing_corpuses fk_ef5ebf339f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX virtual_reg_packages_maven_reg_upstreams_on_unique_reg_ids ON virtual_registries_packages_maven_registry_upstreams USING btree (registry_id); -ALTER TABLE ONLY public.coverage_fuzzing_corpuses - ADD CONSTRAINT fk_ef5ebf339f FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; +CREATE UNIQUE INDEX virtual_reg_packages_maven_reg_upstreams_on_unique_upstream_ids ON virtual_registries_packages_maven_registry_upstreams USING btree (upstream_id); +CREATE UNIQUE INDEX virtual_registries_pkgs_maven_registries_on_unique_group_ids ON virtual_registries_packages_maven_registries USING btree (group_id); --- --- Name: merge_request_context_commits fk_ef6766ed57; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE UNIQUE INDEX vulnerability_occurrence_pipelines_on_unique_keys ON vulnerability_occurrence_pipelines USING btree (occurrence_id, pipeline_id); -ALTER TABLE ONLY public.merge_request_context_commits - ADD CONSTRAINT fk_ef6766ed57 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE INDEX wi_colors_namespace_id_index ON work_item_colors USING btree (namespace_id); +CREATE INDEX wi_datessources_due_date_sourcing_milestone_id_index ON work_item_dates_sources USING btree (due_date_sourcing_milestone_id); --- --- Name: approval_project_rules fk_efa5a1e3fb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX wi_datessources_due_date_sourcing_work_item_id_index ON work_item_dates_sources USING btree (due_date_sourcing_work_item_id); -ALTER TABLE ONLY public.approval_project_rules - ADD CONSTRAINT fk_efa5a1e3fb FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES public.security_orchestration_policy_configurations(id) ON DELETE CASCADE; +CREATE INDEX wi_datessources_namespace_id_index ON work_item_dates_sources USING btree (namespace_id); +CREATE INDEX wi_datessources_start_date_sourcing_milestone_id_index ON work_item_dates_sources USING btree (start_date_sourcing_milestone_id); --- --- Name: vulnerabilities fk_efb96ab1e2; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE INDEX wi_datessources_start_date_sourcing_work_item_id_index ON work_item_dates_sources USING btree (start_date_sourcing_work_item_id); -ALTER TABLE ONLY public.vulnerabilities - ADD CONSTRAINT fk_efb96ab1e2 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_00_pkey; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_01_pkey; --- --- Name: dora_daily_metrics fk_efc32a39fa; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_02_pkey; -ALTER TABLE ONLY public.dora_daily_metrics - ADD CONSTRAINT fk_efc32a39fa FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_03_pkey; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_04_pkey; --- --- Name: approval_group_rules_groups fk_efff219a48; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_05_pkey; -ALTER TABLE ONLY public.approval_group_rules_groups - ADD CONSTRAINT fk_efff219a48 FOREIGN KEY (approval_group_rule_id) REFERENCES public.approval_group_rules(id) ON DELETE CASCADE; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_06_pkey; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_07_pkey; --- --- Name: emails fk_emails_user_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_08_pkey; -ALTER TABLE ONLY public.emails - ADD CONSTRAINT fk_emails_user_id FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_09_pkey; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_10_pkey; --- --- Name: epics fk_epics_issue_id_with_on_delete_cascade; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_11_pkey; -ALTER TABLE ONLY public.epics - ADD CONSTRAINT fk_epics_issue_id_with_on_delete_cascade FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_12_pkey; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_13_pkey; --- --- Name: epics fk_epics_on_parent_id_with_on_delete_nullify; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_14_pkey; -ALTER TABLE ONLY public.epics - ADD CONSTRAINT fk_epics_on_parent_id_with_on_delete_nullify FOREIGN KEY (parent_id) REFERENCES public.epics(id) ON DELETE SET NULL; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_15_pkey; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_16_pkey; --- --- Name: clusters fk_f05c5e5a42; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_17_pkey; -ALTER TABLE ONLY public.clusters - ADD CONSTRAINT fk_f05c5e5a42 FOREIGN KEY (management_project_id) REFERENCES public.projects(id) ON DELETE SET NULL; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_18_pkey; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_19_pkey; --- --- Name: vulnerability_external_issue_links fk_f07bb8233d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_20_pkey; -ALTER TABLE ONLY public.vulnerability_external_issue_links - ADD CONSTRAINT fk_f07bb8233d FOREIGN KEY (vulnerability_id) REFERENCES public.vulnerabilities(id) ON DELETE CASCADE; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_21_pkey; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_22_pkey; --- --- Name: epics fk_f081aa4489; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_23_pkey; -ALTER TABLE ONLY public.epics - ADD CONSTRAINT fk_f081aa4489 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_24_pkey; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_25_pkey; --- --- Name: abuse_reports fk_f10de8b524; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_26_pkey; -ALTER TABLE ONLY public.abuse_reports - ADD CONSTRAINT fk_f10de8b524 FOREIGN KEY (resolved_by_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_27_pkey; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_28_pkey; --- --- Name: timelogs fk_f12ef8db70; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_29_pkey; -ALTER TABLE ONLY public.timelogs - ADD CONSTRAINT fk_f12ef8db70 FOREIGN KEY (timelog_category_id) REFERENCES public.timelog_categories(id) ON DELETE SET NULL; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_30_pkey; +ALTER INDEX analytics_cycle_analytics_issue_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_issue_stage_events_31_pkey; --- --- Name: boards fk_f15266b5f9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_00_pkey; -ALTER TABLE ONLY public.boards - ADD CONSTRAINT fk_f15266b5f9 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_01_pkey; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_02_pkey; --- --- Name: epic_user_mentions fk_f1ab52883e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_03_pkey; -ALTER TABLE ONLY public.epic_user_mentions - ADD CONSTRAINT fk_f1ab52883e FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_04_pkey; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_05_pkey; --- --- Name: observability_metrics_issues_connections fk_f218d84a14; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_06_pkey; -ALTER TABLE ONLY public.observability_metrics_issues_connections - ADD CONSTRAINT fk_f218d84a14 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_07_pkey; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_08_pkey; --- --- Name: workspaces_agent_configs fk_f25d0fbfae; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_09_pkey; -ALTER TABLE ONLY public.workspaces_agent_configs - ADD CONSTRAINT fk_f25d0fbfae FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_10_pkey; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_11_pkey; --- --- Name: p_ci_pipeline_variables fk_f29c5f4380_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_12_pkey; -ALTER TABLE public.p_ci_pipeline_variables - ADD CONSTRAINT fk_f29c5f4380_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_13_pkey; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_14_pkey; --- --- Name: ci_pipeline_variables fk_f29c5f4380_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_15_pkey; -ALTER TABLE ONLY public.ci_pipeline_variables - ADD CONSTRAINT fk_f29c5f4380_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_16_pkey; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_17_pkey; --- --- Name: zoekt_indices fk_f34800a202; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_18_pkey; -ALTER TABLE ONLY public.zoekt_indices - ADD CONSTRAINT fk_f34800a202 FOREIGN KEY (zoekt_node_id) REFERENCES public.zoekt_nodes(id) ON DELETE CASCADE; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_19_pkey; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_20_pkey; --- --- Name: status_check_responses fk_f3953d86c6; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_21_pkey; -ALTER TABLE ONLY public.status_check_responses - ADD CONSTRAINT fk_f3953d86c6 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_22_pkey; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_23_pkey; --- --- Name: design_management_designs_versions fk_f4d25ba00c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_24_pkey; -ALTER TABLE ONLY public.design_management_designs_versions - ADD CONSTRAINT fk_f4d25ba00c FOREIGN KEY (version_id) REFERENCES public.design_management_versions(id) ON DELETE CASCADE; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_25_pkey; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_26_pkey; --- --- Name: scan_result_policy_violations fk_f53706dbdd; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_27_pkey; -ALTER TABLE ONLY public.scan_result_policy_violations - ADD CONSTRAINT fk_f53706dbdd FOREIGN KEY (scan_result_policy_id) REFERENCES public.scan_result_policies(id) ON DELETE CASCADE; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_28_pkey; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_29_pkey; --- --- Name: vulnerability_user_mentions fk_f5768ba1ec; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_30_pkey; -ALTER TABLE ONLY public.vulnerability_user_mentions - ADD CONSTRAINT fk_f5768ba1ec FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX analytics_cycle_analytics_merge_request_stage_events_pkey ATTACH PARTITION gitlab_partitions_static.analytics_cycle_analytics_merge_request_stage_events_31_pkey; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_000925dbd7; --- --- Name: analytics_devops_adoption_segments fk_f5aa768998; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_006f943df6; -ALTER TABLE ONLY public.analytics_devops_adoption_segments - ADD CONSTRAINT fk_f5aa768998 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_009e6c1133; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_02749b504c; --- --- Name: boards_epic_list_user_preferences fk_f5f2fe5c1f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_0287f5ba09; -ALTER TABLE ONLY public.boards_epic_list_user_preferences - ADD CONSTRAINT fk_f5f2fe5c1f FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_03aa30a758; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_055179c3ea; --- --- Name: user_project_callouts fk_f62dd11a33; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_061fe00461; -ALTER TABLE ONLY public.user_project_callouts - ADD CONSTRAINT fk_f62dd11a33 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_070cef72c3; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_08b7071d9b; --- --- Name: ml_model_metadata fk_f68c7e109c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_08e3cfc564; -ALTER TABLE ONLY public.ml_model_metadata - ADD CONSTRAINT fk_f68c7e109c FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_09af45dd6f; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_09fe0c1886; --- --- Name: workspaces fk_f78aeddc77; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_0c153e2eae; -ALTER TABLE ONLY public.workspaces - ADD CONSTRAINT fk_f78aeddc77 FOREIGN KEY (cluster_agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_0ca85f3d71; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_0d837a5dda; --- --- Name: cluster_agents fk_f7d43dee13; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_0e98daa03c; -ALTER TABLE ONLY public.cluster_agents - ADD CONSTRAINT fk_f7d43dee13 FOREIGN KEY (created_by_user_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_0f28a65451; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_10588dbff0; --- --- Name: protected_tag_create_access_levels fk_f7dfda8c51; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_106d7d97e8; -ALTER TABLE ONLY public.protected_tag_create_access_levels - ADD CONSTRAINT fk_f7dfda8c51 FOREIGN KEY (protected_tag_id) REFERENCES public.protected_tags(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_1076a9a98a; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_107e123e17; --- --- Name: application_settings fk_f9867b3540; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1230a7a402; -ALTER TABLE ONLY public.application_settings - ADD CONSTRAINT fk_f9867b3540 FOREIGN KEY (web_ide_oauth_application_id) REFERENCES public.oauth_applications(id) ON DELETE SET NULL; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_142c4e7ea4; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_14e4fa1d7d; --- --- Name: p_ci_stages fk_fb57e6cc56_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_14f3645821; -ALTER TABLE public.p_ci_stages - ADD CONSTRAINT fk_fb57e6cc56_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_16627b455e; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_17fa2812c5; --- --- Name: ci_stages fk_fb57e6cc56_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_19aa18ccc9; -ALTER TABLE ONLY public.ci_stages - ADD CONSTRAINT fk_fb57e6cc56_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_19f4ed8614; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_1a0388713a; --- --- Name: agent_group_authorizations fk_fb70782616; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1a349ed064; -ALTER TABLE ONLY public.agent_group_authorizations - ADD CONSTRAINT fk_fb70782616 FOREIGN KEY (agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1af932a3c7; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1b0ea30bdb; --- --- Name: system_note_metadata fk_fbd87415c9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_1b47bbbb6a; -ALTER TABLE ONLY public.system_note_metadata - ADD CONSTRAINT fk_fbd87415c9 FOREIGN KEY (description_version_id) REFERENCES public.description_versions(id) ON DELETE SET NULL; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1f6c3faabe; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_1f8af04ed1; --- --- Name: work_item_dates_sources fk_fc7bc5e687; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_201c5ddbe9; -ALTER TABLE ONLY public.work_item_dates_sources - ADD CONSTRAINT fk_fc7bc5e687 FOREIGN KEY (due_date_sourcing_milestone_id) REFERENCES public.milestones(id) ON DELETE SET NULL; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_20353089e0; +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_203dd694bc; --- --- Name: packages_debian_publications fk_fd1ad5dd37; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_206349925b; -ALTER TABLE ONLY public.packages_debian_publications - ADD CONSTRAINT fk_fd1ad5dd37 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_208e7ef042; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_2098118748; --- --- Name: abuse_report_events fk_fdd4d610e0; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_20c6491c6e; -ALTER TABLE ONLY public.abuse_report_events - ADD CONSTRAINT fk_fdd4d610e0 FOREIGN KEY (abuse_report_id) REFERENCES public.abuse_reports(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_21db459e34; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_21e262390a; --- --- Name: approval_merge_request_rule_sources fk_fea41830d0; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_2208bd7d7f; -ALTER TABLE ONLY public.approval_merge_request_rule_sources - ADD CONSTRAINT fk_fea41830d0 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_223592b4a1; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_22acc9ab11; --- --- Name: import_placeholder_memberships fk_ffae4107ac; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_22ed8f01dd; -ALTER TABLE ONLY public.import_placeholder_memberships - ADD CONSTRAINT fk_ffae4107ac FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_234d38a657; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_23783dc748; --- --- Name: project_import_data fk_ffb9ee3a10; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_241e9a574c; -ALTER TABLE ONLY public.project_import_data - ADD CONSTRAINT fk_ffb9ee3a10 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_24ac321751; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_25e2aaee9b; --- --- Name: issues fk_ffed080f01; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_2653e7eeb8; -ALTER TABLE ONLY public.issues - ADD CONSTRAINT fk_ffed080f01 FOREIGN KEY (updated_by_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_2745f5a388; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_27759556bc; --- --- Name: geo_event_log fk_geo_event_log_on_geo_event_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_27d7ad78d8; -ALTER TABLE ONLY public.geo_event_log - ADD CONSTRAINT fk_geo_event_log_on_geo_event_id FOREIGN KEY (geo_event_id) REFERENCES public.geo_events(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_281840d2d1; +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_2945cf4c6d; --- --- Name: members fk_member_role_on_members; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_296f64df5c; -ALTER TABLE ONLY public.members - ADD CONSTRAINT fk_member_role_on_members FOREIGN KEY (member_role_id) REFERENCES public.member_roles(id) ON DELETE SET NULL; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2ad4b4fdbc; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2b7c0a294e; --- --- Name: ml_candidate_metrics fk_ml_candidate_metrics_on_candidate_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_2bac9d64a0; -ALTER TABLE ONLY public.ml_candidate_metrics - ADD CONSTRAINT fk_ml_candidate_metrics_on_candidate_id FOREIGN KEY (candidate_id) REFERENCES public.ml_candidates(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2c6422f668; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2dfcdbe81e; --- --- Name: ml_candidate_params fk_ml_candidate_params_on_candidate_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_2e1054b181; -ALTER TABLE ONLY public.ml_candidate_params - ADD CONSTRAINT fk_ml_candidate_params_on_candidate_id FOREIGN KEY (candidate_id) REFERENCES public.ml_candidates(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2e6991d05b; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_2f80c360c3; --- --- Name: ml_candidates fk_ml_candidates_on_user_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_2fc271c673; -ALTER TABLE ONLY public.ml_candidates - ADD CONSTRAINT fk_ml_candidates_on_user_id FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_2fcfd0dc70; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_3005c75335; --- --- Name: ml_experiments fk_ml_experiments_on_user_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_3206c1e6af; -ALTER TABLE ONLY public.ml_experiments - ADD CONSTRAINT fk_ml_experiments_on_user_id FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_3249505125; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_331eb67441; --- --- Name: path_locks fk_path_locks_user_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_34a8b08081; -ALTER TABLE ONLY public.path_locks - ADD CONSTRAINT fk_path_locks_user_id FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_3640194b77; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_372160a706; --- --- Name: personal_access_tokens fk_personal_access_tokens_user_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_389dd3c9fc; -ALTER TABLE ONLY public.personal_access_tokens - ADD CONSTRAINT fk_personal_access_tokens_user_id FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_38a538234e; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_39625b8a41; --- --- Name: project_settings fk_project_settings_push_rule_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_399dc06649; -ALTER TABLE ONLY public.project_settings - ADD CONSTRAINT fk_project_settings_push_rule_id FOREIGN KEY (push_rule_id) REFERENCES public.push_rules(id) ON DELETE SET NULL; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_3a10b315c0; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_3a7d21a6ee; --- --- Name: projects fk_projects_namespace_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_3a8848c00b; -ALTER TABLE ONLY public.projects - ADD CONSTRAINT fk_projects_namespace_id FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE RESTRICT; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_3b09ab5902; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_3bc2eedca5; --- --- Name: protected_branch_merge_access_levels fk_protected_branch_merge_access_levels_user_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_3c2a3a6ac9; -ALTER TABLE ONLY public.protected_branch_merge_access_levels - ADD CONSTRAINT fk_protected_branch_merge_access_levels_user_id FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_3dbde77b8b; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_3e6be332b7; --- --- Name: protected_branch_push_access_levels fk_protected_branch_push_access_levels_user_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_4137a6fac3; -ALTER TABLE ONLY public.protected_branch_push_access_levels - ADD CONSTRAINT fk_protected_branch_push_access_levels_user_id FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_41a1c3a4c6; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_435802dd01; --- --- Name: protected_tag_create_access_levels fk_protected_tag_create_access_levels_user_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_436fa9ad5f; -ALTER TABLE ONLY public.protected_tag_create_access_levels - ADD CONSTRAINT fk_protected_tag_create_access_levels_user_id FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_453a659cb6; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_46b989b294; --- --- Name: scan_execution_policy_rules fk_rails_003cb62f9b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_4717e7049b; -ALTER TABLE ONLY public.scan_execution_policy_rules - ADD CONSTRAINT fk_rails_003cb62f9b FOREIGN KEY (security_policy_management_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_47638677a3; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4810ac88f5; --- --- Name: approval_merge_request_rules fk_rails_004ce82224; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_482a09e0ee; -ALTER TABLE ONLY public.approval_merge_request_rules - ADD CONSTRAINT fk_rails_004ce82224 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_491b4b749e; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4a243772d7; --- --- Name: namespace_statistics fk_rails_0062050394; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_4b1793a4c4; -ALTER TABLE ONLY public.namespace_statistics - ADD CONSTRAINT fk_rails_0062050394 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_4b22560035; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4c2645eef2; --- --- Name: p_ci_build_sources fk_rails_023578ae70; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_4c9d14f978; -ALTER TABLE public.p_ci_build_sources - ADD CONSTRAINT fk_rails_023578ae70 FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_4d04210a95; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_4d4f2f7de6; --- --- Name: automation_rules fk_rails_025b519b8d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_4db5aa5872; -ALTER TABLE ONLY public.automation_rules - ADD CONSTRAINT fk_rails_025b519b8d FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4dead6f314; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4e6ce1c371; --- --- Name: incident_management_oncall_participants fk_rails_032b12996a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_4ea50d3a5b; -ALTER TABLE ONLY public.incident_management_oncall_participants - ADD CONSTRAINT fk_rails_032b12996a FOREIGN KEY (oncall_rotation_id) REFERENCES public.incident_management_oncall_rotations(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_4f2eb7a06b; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_4f6fc34e57; --- --- Name: events fk_rails_0434b48643; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_50272372ba; -ALTER TABLE ONLY public.events - ADD CONSTRAINT fk_rails_0434b48643 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5034eae5ff; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_50c09f6e04; --- --- Name: incident_management_pending_issue_escalations fk_rails_0470889ee5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5111e3e7e7; -ALTER TABLE public.incident_management_pending_issue_escalations - ADD CONSTRAINT fk_rails_0470889ee5 FOREIGN KEY (rule_id) REFERENCES public.incident_management_escalation_rules(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_52ea79bf8e; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_541cc045fc; --- --- Name: ip_restrictions fk_rails_04a93778d5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5445e466ee; -ALTER TABLE ONLY public.ip_restrictions - ADD CONSTRAINT fk_rails_04a93778d5 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_551676e972; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_56281bfb73; --- --- Name: terraform_state_versions fk_rails_04f176e239; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_5660b1b38e; -ALTER TABLE ONLY public.terraform_state_versions - ADD CONSTRAINT fk_rails_04f176e239 FOREIGN KEY (terraform_state_id) REFERENCES public.terraform_states(id) ON DELETE CASCADE; +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_584c1e6fb0; +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5913107510; --- --- Name: search_namespace_index_assignments fk_rails_06f9b905d3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_5968e77935; -ALTER TABLE ONLY public.search_namespace_index_assignments - ADD CONSTRAINT fk_rails_06f9b905d3 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id); +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_59a8209ab6; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_59ce40fcc4; --- --- Name: issue_assignment_events fk_rails_07683f8e80; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_59cfd5bc9a; -ALTER TABLE ONLY public.issue_assignment_events - ADD CONSTRAINT fk_rails_07683f8e80 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5a5f39d824; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5b613b5fcf; --- --- Name: virtual_registries_packages_maven_cached_responses fk_rails_0816e694a3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_5b944f308d; -ALTER TABLE ONLY public.virtual_registries_packages_maven_cached_responses - ADD CONSTRAINT fk_rails_0816e694a3 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_5bc2f32084; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5bfa62771b; --- --- Name: security_policies fk_rails_08722e8ac7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5c4053b63d; -ALTER TABLE ONLY public.security_policies - ADD CONSTRAINT fk_rails_08722e8ac7 FOREIGN KEY (security_policy_management_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_5db09170d4; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5e46aea379; --- --- Name: work_item_hierarchy_restrictions fk_rails_08cd7fef58; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_5e78c2eac1; -ALTER TABLE ONLY public.work_item_hierarchy_restrictions - ADD CONSTRAINT fk_rails_08cd7fef58 FOREIGN KEY (child_type_id) REFERENCES public.work_item_types(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5ee060202f; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5f24f6ead2; --- --- Name: trending_projects fk_rails_09feecd872; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_5f96b344e2; -ALTER TABLE ONLY public.trending_projects - ADD CONSTRAINT fk_rails_09feecd872 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_5fb1867c41; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_5fe1d00845; --- --- Name: security_orchestration_policy_configurations fk_rails_0a22dcd52d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_60e3480f23; -ALTER TABLE ONLY public.security_orchestration_policy_configurations - ADD CONSTRAINT fk_rails_0a22dcd52d FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_6137e27484; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_620fe77c99; --- --- Name: project_deploy_tokens fk_rails_0aca134388; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_625ed9e965; -ALTER TABLE ONLY public.project_deploy_tokens - ADD CONSTRAINT fk_rails_0aca134388 FOREIGN KEY (deploy_token_id) REFERENCES public.deploy_tokens(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_64e3a1dfa1; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_64eb4cf8bd; --- --- Name: project_saved_replies fk_rails_0ace76afbb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_6578d04baa; -ALTER TABLE ONLY public.project_saved_replies - ADD CONSTRAINT fk_rails_0ace76afbb FOREIGN KEY (project_id) REFERENCES public.projects(id); +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6580ecb2db; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_66a736da09; --- --- Name: packages_debian_group_distributions fk_rails_0adf75c347; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_680d7ab4a6; -ALTER TABLE ONLY public.packages_debian_group_distributions - ADD CONSTRAINT fk_rails_0adf75c347 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE RESTRICT; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_682eba05f6; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_69bdcf213e; --- --- Name: packages_conan_file_metadata fk_rails_0afabd9328; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_6a39f6d5ac; -ALTER TABLE ONLY public.packages_conan_file_metadata - ADD CONSTRAINT fk_rails_0afabd9328 FOREIGN KEY (package_file_id) REFERENCES public.packages_package_files(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6add8e74cf; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6b1ce61c8f; --- --- Name: related_epic_links fk_rails_0b72027748; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_6b431c9952; -ALTER TABLE ONLY public.related_epic_links - ADD CONSTRAINT fk_rails_0b72027748 FOREIGN KEY (target_id) REFERENCES public.epics(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_6bf2b9282c; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_6cfb391b86; --- --- Name: audit_events_external_audit_event_destinations fk_rails_0bc80a4edc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_6e560c1a4d; -ALTER TABLE ONLY public.audit_events_external_audit_event_destinations - ADD CONSTRAINT fk_rails_0bc80a4edc FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_6e64aa1646; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6e6c2e6a1d; --- --- Name: operations_user_lists fk_rails_0c716e079b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_6ea423bbd1; -ALTER TABLE ONLY public.operations_user_lists - ADD CONSTRAINT fk_rails_0c716e079b FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6ec4c4afd4; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6f4e0abe54; --- --- Name: resource_link_events fk_rails_0cea73eba5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_6fa47e1334; -ALTER TABLE ONLY public.resource_link_events - ADD CONSTRAINT fk_rails_0cea73eba5 FOREIGN KEY (child_work_item_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_708d792ae9; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_70c657954b; --- --- Name: p_catalog_resource_component_usages fk_rails_0e15a4677f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_713f462d76; -ALTER TABLE public.p_catalog_resource_component_usages - ADD CONSTRAINT fk_rails_0e15a4677f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_71c0e45eca; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_71c2b26944; --- --- Name: audit_events_google_cloud_logging_configurations fk_rails_0eb52fc617; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_72027c157f; -ALTER TABLE ONLY public.audit_events_google_cloud_logging_configurations - ADD CONSTRAINT fk_rails_0eb52fc617 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_739845f617; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_74addd1240; --- --- Name: geo_node_statuses fk_rails_0ecc699c2a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_75dc81d1d7; -ALTER TABLE ONLY public.geo_node_statuses - ADD CONSTRAINT fk_rails_0ecc699c2a FOREIGN KEY (geo_node_id) REFERENCES public.geo_nodes(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_765b0cd8db; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_77096a1dc6; --- --- Name: user_synced_attributes_metadata fk_rails_0f4aa0981f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_77c6293242; -ALTER TABLE ONLY public.user_synced_attributes_metadata - ADD CONSTRAINT fk_rails_0f4aa0981f FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_77f67bf238; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_7822759674; --- --- Name: project_authorizations fk_rails_0f84bb11f3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_7a0b7ffadf; -ALTER TABLE ONLY public.project_authorizations - ADD CONSTRAINT fk_rails_0f84bb11f3 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_7b7c85eceb; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_7da2307d2e; --- --- Name: boards_epic_lists fk_rails_0f9c7f646f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_7ead2300ca; -ALTER TABLE ONLY public.boards_epic_lists - ADD CONSTRAINT fk_rails_0f9c7f646f FOREIGN KEY (epic_board_id) REFERENCES public.boards_epic_boards(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_7ecb5b68b4; +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_7f543eed8d; --- --- Name: issue_email_participants fk_rails_0fdfd8b811; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_7f8a80dd47; -ALTER TABLE ONLY public.issue_email_participants - ADD CONSTRAINT fk_rails_0fdfd8b811 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_80305b1eed; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_807671c4be; --- --- Name: merge_request_context_commits fk_rails_0fe0039f60; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_807fa83fc0; -ALTER TABLE ONLY public.merge_request_context_commits - ADD CONSTRAINT fk_rails_0fe0039f60 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_80a81ac235; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_80c65daf20; --- --- Name: prometheus_alert_events fk_rails_106f901176; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_81b31eafac; -ALTER TABLE ONLY public.prometheus_alert_events - ADD CONSTRAINT fk_rails_106f901176 FOREIGN KEY (prometheus_alert_id) REFERENCES public.prometheus_alerts(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_81b9cf594f; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_82c675952c; --- --- Name: audit_events_streaming_headers fk_rails_109fcf96e2; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_831e7f124f; -ALTER TABLE ONLY public.audit_events_streaming_headers - ADD CONSTRAINT fk_rails_109fcf96e2 FOREIGN KEY (external_audit_event_destination_id) REFERENCES public.audit_events_external_audit_event_destinations(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_837a193bf2; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_837cc295f1; --- --- Name: ci_sources_projects fk_rails_10a1eb379a_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_83c5049b3e; -ALTER TABLE ONLY public.ci_sources_projects - ADD CONSTRAINT fk_rails_10a1eb379a_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_83edf231b8; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_844abd2888; --- --- Name: ci_sources_projects fk_rails_10a1eb379a_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_8464227c80; -ALTER TABLE ONLY public.ci_sources_projects - ADD CONSTRAINT fk_rails_10a1eb379a_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_8685d7c69c; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_8688b40056; --- --- Name: virtual_registries_packages_maven_cached_responses fk_rails_1167f21441; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_876145d1d5; -ALTER TABLE ONLY public.virtual_registries_packages_maven_cached_responses - ADD CONSTRAINT fk_rails_1167f21441 FOREIGN KEY (upstream_id) REFERENCES public.virtual_registries_packages_maven_upstreams(id) ON DELETE SET NULL; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_87d40fb9f9; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_88b40d6740; --- --- Name: zoom_meetings fk_rails_1190f0e0fa; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_89c49cf697; -ALTER TABLE ONLY public.zoom_meetings - ADD CONSTRAINT fk_rails_1190f0e0fa FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_89c79afe5c; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_8a0fc3de4f; --- --- Name: gpg_signatures fk_rails_11ae8cb9a7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_8a8eb06b9a; -ALTER TABLE ONLY public.gpg_signatures - ADD CONSTRAINT fk_rails_11ae8cb9a7 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_8b1b6b03b4; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_8b9f9a19a4; --- --- Name: pm_affected_packages fk_rails_1279c1b9a1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_8fb48e72ce; -ALTER TABLE ONLY public.pm_affected_packages - ADD CONSTRAINT fk_rails_1279c1b9a1 FOREIGN KEY (pm_advisory_id) REFERENCES public.pm_advisories(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_907e12b7ba; +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_918bb2ebbb; --- --- Name: description_versions fk_rails_12b144011c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_91c432a4bd; -ALTER TABLE ONLY public.description_versions - ADD CONSTRAINT fk_rails_12b144011c FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_91d5e4e3df; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_9201b952a0; --- --- Name: project_statistics fk_rails_12c471002f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_927796f71d; -ALTER TABLE ONLY public.project_statistics - ADD CONSTRAINT fk_rails_12c471002f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_92c09e352b; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_9490e0e0b7; --- --- Name: user_details fk_rails_12e0b3043d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_9555c2ae92; -ALTER TABLE ONLY public.user_details - ADD CONSTRAINT fk_rails_12e0b3043d FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_95a353f50b; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_971af9481e; --- --- Name: bulk_imports fk_rails_130a09357d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_994aa245b7; -ALTER TABLE ONLY public.bulk_imports - ADD CONSTRAINT fk_rails_130a09357d FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_9955b1dc59; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_9a2eb72a3b; --- --- Name: diff_note_positions fk_rails_13c7212859; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_9b8e89ae41; -ALTER TABLE ONLY public.diff_note_positions - ADD CONSTRAINT fk_rails_13c7212859 FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_9d0e953ab3; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_9ee83b068b; --- --- Name: analytics_cycle_analytics_aggregations fk_rails_13c8374c7a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_a016d4ed08; -ALTER TABLE ONLY public.analytics_cycle_analytics_aggregations - ADD CONSTRAINT fk_rails_13c8374c7a FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a1a9dc36c1; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a2d9f185a5; --- --- Name: service_desk_custom_email_verifications fk_rails_14dcaf4c92; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a3feed3097; -ALTER TABLE ONLY public.service_desk_custom_email_verifications - ADD CONSTRAINT fk_rails_14dcaf4c92 FOREIGN KEY (triggerer_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_a46b7b7f26; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_a4f5106804; --- --- Name: namespaces_storage_limit_exclusions fk_rails_14e8f7b0e0; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a6999c65c9; -ALTER TABLE ONLY public.namespaces_storage_limit_exclusions - ADD CONSTRAINT fk_rails_14e8f7b0e0 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_a6c68d16b2; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_a8276a450f; --- --- Name: users_security_dashboard_projects fk_rails_150cd5682c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_a849f1bbcc; -ALTER TABLE ONLY public.users_security_dashboard_projects - ADD CONSTRAINT fk_rails_150cd5682c FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a88f20fc98; +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_a8fe03fe34; --- --- Name: import_source_user_placeholder_references fk_rails_158995b934; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a9424aa392; -ALTER TABLE ONLY public.import_source_user_placeholder_references - ADD CONSTRAINT fk_rails_158995b934 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_a99cee1904; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_a9b1763c36; --- --- Name: import_source_users fk_rails_167f82fd95; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_a9ba23c88e; -ALTER TABLE ONLY public.import_source_users - ADD CONSTRAINT fk_rails_167f82fd95 FOREIGN KEY (reassign_to_user_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_a9deff2159; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_aa92d75d85; --- --- Name: ci_build_report_results fk_rails_16cb1ff064_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_aabc184267; -ALTER TABLE ONLY public.ci_build_report_results - ADD CONSTRAINT fk_rails_16cb1ff064_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_ab22231a16; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_abbdf80ab1; --- --- Name: catalog_resources fk_rails_16f09e5c44; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_aca42d7cff; -ALTER TABLE ONLY public.catalog_resources - ADD CONSTRAINT fk_rails_16f09e5c44 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ad55e8b11c; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_adc159c3fe; --- --- Name: project_deploy_tokens fk_rails_170e03cbaf; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_aed7f7b10c; -ALTER TABLE ONLY public.project_deploy_tokens - ADD CONSTRAINT fk_rails_170e03cbaf FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_aee84adb5b; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_af8368d587; --- --- Name: security_orchestration_policy_rule_schedules fk_rails_17ade83f17; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_b1dda405af; -ALTER TABLE ONLY public.security_orchestration_policy_rule_schedules - ADD CONSTRAINT fk_rails_17ade83f17 FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES public.security_orchestration_policy_configurations(id) ON DELETE CASCADE; +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_b24e8538c8; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_b286c595e8; --- --- Name: approval_policy_rules fk_rails_17c6dfe138; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_b377ac6784; -ALTER TABLE ONLY public.approval_policy_rules - ADD CONSTRAINT fk_rails_17c6dfe138 FOREIGN KEY (security_policy_id) REFERENCES public.security_policies(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_b3b64068e7; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_b3c4c9a53f; --- --- Name: incident_management_escalation_rules fk_rails_17dbea07a6; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_b4b2bba753; -ALTER TABLE ONLY public.incident_management_escalation_rules - ADD CONSTRAINT fk_rails_17dbea07a6 FOREIGN KEY (policy_id) REFERENCES public.incident_management_escalation_policies(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_b607012614; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_b6cc38a848; --- --- Name: audit_events_streaming_http_group_namespace_filters fk_rails_17f19c81df; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_b748a3e0a6; -ALTER TABLE ONLY public.audit_events_streaming_http_group_namespace_filters - ADD CONSTRAINT fk_rails_17f19c81df FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_b7f21460bb; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_b83fe1306b; --- --- Name: cluster_providers_aws fk_rails_18983d9ea4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_bb6defaa27; -ALTER TABLE ONLY public.cluster_providers_aws - ADD CONSTRAINT fk_rails_18983d9ea4 FOREIGN KEY (cluster_id) REFERENCES public.clusters(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_bc189e47ab; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_bca83177ef; --- --- Name: grafana_integrations fk_rails_18d0e2b564; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_bcaa8dcd34; -ALTER TABLE ONLY public.grafana_integrations - ADD CONSTRAINT fk_rails_18d0e2b564 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_bcae2cf631; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_be0a028bcc; --- --- Name: bulk_import_failures fk_rails_1964240b8c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_beaa329ca0; -ALTER TABLE ONLY public.bulk_import_failures - ADD CONSTRAINT fk_rails_1964240b8c FOREIGN KEY (bulk_import_entity_id) REFERENCES public.bulk_import_entities(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_bedd7e160b; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_bee2b94a80; --- --- Name: group_wiki_repositories fk_rails_19755e374b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_bf1809b19e; -ALTER TABLE ONLY public.group_wiki_repositories - ADD CONSTRAINT fk_rails_19755e374b FOREIGN KEY (shard_id) REFERENCES public.shards(id) ON DELETE RESTRICT; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_c02f569fba; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c08e669dfa; --- --- Name: gpg_signatures fk_rails_19d4f1c6f9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c09bb66559; -ALTER TABLE ONLY public.gpg_signatures - ADD CONSTRAINT fk_rails_19d4f1c6f9 FOREIGN KEY (gpg_key_subkey_id) REFERENCES public.gpg_key_subkeys(id) ON DELETE SET NULL; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_c119f5b92e; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c17dae3605; --- --- Name: incident_management_oncall_schedules fk_rails_19e83fdd65; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c1cdd90d0d; -ALTER TABLE ONLY public.incident_management_oncall_schedules - ADD CONSTRAINT fk_rails_19e83fdd65 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_c2b951bf20; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_c3a2cf8b3b; --- --- Name: vulnerability_user_mentions fk_rails_1a41c485cd; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c42b2e7eae; -ALTER TABLE ONLY public.vulnerability_user_mentions - ADD CONSTRAINT fk_rails_1a41c485cd FOREIGN KEY (vulnerability_id) REFERENCES public.vulnerabilities(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c435d904ce; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c473921734; --- --- Name: packages_debian_file_metadata fk_rails_1ae85be112; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c546bb0736; -ALTER TABLE ONLY public.packages_debian_file_metadata - ADD CONSTRAINT fk_rails_1ae85be112 FOREIGN KEY (package_file_id) REFERENCES public.packages_package_files(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c59cde6209; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c66758baa7; --- --- Name: catalog_verified_namespaces fk_rails_1b6bb852c0; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c6ea8a0e26; -ALTER TABLE ONLY public.catalog_verified_namespaces - ADD CONSTRAINT fk_rails_1b6bb852c0 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_c7ac8595d3; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_c8bbf2b334; --- --- Name: issuable_slas fk_rails_1b8768cd63; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_c8c4219c0a; -ALTER TABLE ONLY public.issuable_slas - ADD CONSTRAINT fk_rails_1b8768cd63 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_c971e6c5ce; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_c9b14a3d9f; --- --- Name: board_assignees fk_rails_1c0ff59e82; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_cb222425ed; -ALTER TABLE ONLY public.board_assignees - ADD CONSTRAINT fk_rails_1c0ff59e82 FOREIGN KEY (assignee_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_cbb61ea269; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_cc0ba6343b; --- --- Name: epic_user_mentions fk_rails_1c65976a49; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ccb4f5c5a6; -ALTER TABLE ONLY public.epic_user_mentions - ADD CONSTRAINT fk_rails_1c65976a49 FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_cd2b2939a4; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_cda41e106e; --- --- Name: approver_groups fk_rails_1cdcbd7723; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ce87cbaf2d; -ALTER TABLE ONLY public.approver_groups - ADD CONSTRAINT fk_rails_1cdcbd7723 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_cfa4237c83; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_d01ea0126a; --- --- Name: project_ci_feature_usages fk_rails_1deedbf64b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d03e9cdfae; -ALTER TABLE ONLY public.project_ci_feature_usages - ADD CONSTRAINT fk_rails_1deedbf64b FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_d0d285c264; +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d17b82ddd9; --- --- Name: packages_tags fk_rails_1dfc868911; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d1c24d8199; -ALTER TABLE ONLY public.packages_tags - ADD CONSTRAINT fk_rails_1dfc868911 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_d1c6c67ec1; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_d27b4c84e7; --- --- Name: boards_epic_board_positions fk_rails_1ecfd9f2de; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_d2fe918e83; -ALTER TABLE ONLY public.boards_epic_board_positions - ADD CONSTRAINT fk_rails_1ecfd9f2de FOREIGN KEY (epic_id) REFERENCES public.epics(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_d35c969634; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_d3b6418940; --- --- Name: external_status_checks fk_rails_1f5a8aa809; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d493a5c171; -ALTER TABLE ONLY public.external_status_checks - ADD CONSTRAINT fk_rails_1f5a8aa809 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_d6047ee813; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_d69c2485f4; --- --- Name: dora_daily_metrics fk_rails_1fd07aff6f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_d70379e22c; -ALTER TABLE ONLY public.dora_daily_metrics - ADD CONSTRAINT fk_rails_1fd07aff6f FOREIGN KEY (environment_id) REFERENCES public.environments(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_d87775b2e7; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_d8fa9793ad; --- --- Name: boards_epic_lists fk_rails_1fe6b54909; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_d9384b768d; -ALTER TABLE ONLY public.boards_epic_lists - ADD CONSTRAINT fk_rails_1fe6b54909 FOREIGN KEY (label_id) REFERENCES public.labels(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_db2753330c; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_db6477916f; --- --- Name: approval_merge_request_rules_groups fk_rails_2020a7124a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_dc571ba649; -ALTER TABLE ONLY public.approval_merge_request_rules_groups - ADD CONSTRAINT fk_rails_2020a7124a FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_de0334da63; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_df62a8c50e; --- --- Name: user_statuses fk_rails_2178592333; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e1a4f994d8; -ALTER TABLE ONLY public.user_statuses - ADD CONSTRAINT fk_rails_2178592333 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_e38489ea98; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_e3d1fd5b19; --- --- Name: ai_agent_versions fk_rails_2205f8ca20; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e3d6234929; -ALTER TABLE ONLY public.ai_agent_versions - ADD CONSTRAINT fk_rails_2205f8ca20 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e54adf9acb; +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e6405afea0; --- --- Name: users_ops_dashboard_projects fk_rails_220a0562db; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_e64588e276; -ALTER TABLE ONLY public.users_ops_dashboard_projects - ADD CONSTRAINT fk_rails_220a0562db FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_e716b8ac3f; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_e73bc5ba6a; --- --- Name: service_desk_settings fk_rails_223a296a85; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_e8f3a327b2; -ALTER TABLE ONLY public.service_desk_settings - ADD CONSTRAINT fk_rails_223a296a85 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_ea0c2d3361; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ea1b583157; --- --- Name: saml_group_links fk_rails_22e312c530; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_eadcc94c4e; -ALTER TABLE ONLY public.saml_group_links - ADD CONSTRAINT fk_rails_22e312c530 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_eb558957f0; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_eb5a7f918a; --- --- Name: work_item_parent_links fk_rails_231dba8959; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_ec25d494e6; -ALTER TABLE ONLY public.work_item_parent_links - ADD CONSTRAINT fk_rails_231dba8959 FOREIGN KEY (work_item_parent_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ece25b5987; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_ed094a4f13; --- --- Name: dast_profiles fk_rails_23cae5abe1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_ed6dbac8c0; -ALTER TABLE ONLY public.dast_profiles - ADD CONSTRAINT fk_rails_23cae5abe1 FOREIGN KEY (dast_scanner_profile_id) REFERENCES public.dast_scanner_profiles(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_ee4c549a2d; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_ef6a48bd29; --- --- Name: group_custom_attributes fk_rails_246e0db83a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_ef7be2ae94; -ALTER TABLE ONLY public.group_custom_attributes - ADD CONSTRAINT fk_rails_246e0db83a FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_efa25b26bd; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f06b4c7a23; --- --- Name: incident_management_oncall_rotations fk_rails_256e0bc604; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f0cdd09a5e; -ALTER TABLE ONLY public.incident_management_oncall_rotations - ADD CONSTRAINT fk_rails_256e0bc604 FOREIGN KEY (oncall_schedule_id) REFERENCES public.incident_management_oncall_schedules(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_f112fae8ac; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_f1c3d14cdc; --- --- Name: ci_unit_test_failures fk_rails_259da3e79c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f256d3f6a1; -ALTER TABLE ONLY public.ci_unit_test_failures - ADD CONSTRAINT fk_rails_259da3e79c FOREIGN KEY (unit_test_id) REFERENCES public.ci_unit_tests(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_group_duration ATTACH PARTITION gitlab_partitions_static.index_f2848acfc7; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f3d7d86e09; --- --- Name: ci_builds fk_rails_25dc49c011; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f402f6a388; -ALTER TABLE ONLY public.ci_builds - ADD CONSTRAINT fk_rails_25dc49c011 FOREIGN KEY (partition_id, execution_config_id) REFERENCES public.p_ci_builds_execution_configs(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL NOT VALID; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f415dc2abd; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_f47327ec1f; --- --- Name: cluster_agents fk_rails_25e9fc2d5d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f5f0e8eefd; -ALTER TABLE ONLY public.cluster_agents - ADD CONSTRAINT fk_rails_25e9fc2d5d FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_f6b0d458a3; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f705dc8541; --- --- Name: boards_epic_user_preferences fk_rails_268c57d62d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f76e8a5304; -ALTER TABLE ONLY public.boards_epic_user_preferences - ADD CONSTRAINT fk_rails_268c57d62d FOREIGN KEY (board_id) REFERENCES public.boards(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_namespace_id ATTACH PARTITION gitlab_partitions_static.index_f836021e1e; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f86acdc2ff; --- --- Name: group_wiki_repositories fk_rails_26f867598c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_f86f73056d; -ALTER TABLE ONLY public.group_wiki_repositories - ADD CONSTRAINT fk_rails_26f867598c FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f878aab8e3; +ALTER INDEX index_issue_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_f902c261ce; --- --- Name: lfs_file_locks fk_rails_27a1d98fa8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_mr_stage_events_for_consistency_check ATTACH PARTITION gitlab_partitions_static.index_f91599d825; -ALTER TABLE ONLY public.lfs_file_locks - ADD CONSTRAINT fk_rails_27a1d98fa8 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_fbccc855cf; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_fbf2d3310b; --- --- Name: project_alerting_settings fk_rails_27a84b407d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_fccbe45c32; -ALTER TABLE ONLY public.project_alerting_settings - ADD CONSTRAINT fk_rails_27a84b407d FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_merge_request_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_fee429223e; +ALTER INDEX index_merge_request_stage_events_project_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_ff00c038cc; --- --- Name: work_item_hierarchy_restrictions fk_rails_27bb3a10ba; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_issue_stage_events_project_duration ATTACH PARTITION gitlab_partitions_static.index_ff39be5400; -ALTER TABLE ONLY public.work_item_hierarchy_restrictions - ADD CONSTRAINT fk_rails_27bb3a10ba FOREIGN KEY (parent_type_id) REFERENCES public.work_item_types(id) ON DELETE CASCADE; +ALTER INDEX index_issue_stage_events_group_in_progress_duration ATTACH PARTITION gitlab_partitions_static.index_ff8741d8d7; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_00_issue_id_idx; --- --- Name: user_credit_card_validations fk_rails_27ebc03cbf; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_00_pkey; -ALTER TABLE ONLY public.user_credit_card_validations - ADD CONSTRAINT fk_rails_27ebc03cbf FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_00_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_01_issue_id_idx; --- --- Name: dast_site_validations fk_rails_285c617324; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_01_pkey; -ALTER TABLE ONLY public.dast_site_validations - ADD CONSTRAINT fk_rails_285c617324 FOREIGN KEY (dast_site_token_id) REFERENCES public.dast_site_tokens(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_01_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_02_issue_id_idx; --- --- Name: vulnerability_findings_remediations fk_rails_28a8d0cf93; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_02_pkey; -ALTER TABLE ONLY public.vulnerability_findings_remediations - ADD CONSTRAINT fk_rails_28a8d0cf93 FOREIGN KEY (vulnerability_occurrence_id) REFERENCES public.vulnerability_occurrences(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_02_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_03_issue_id_idx; --- --- Name: design_management_repositories fk_rails_2938d8dd8d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_03_pkey; -ALTER TABLE ONLY public.design_management_repositories - ADD CONSTRAINT fk_rails_2938d8dd8d FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_03_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_04_issue_id_idx; --- --- Name: incident_management_issuable_escalation_statuses fk_rails_29abffe3b9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_04_pkey; -ALTER TABLE ONLY public.incident_management_issuable_escalation_statuses - ADD CONSTRAINT fk_rails_29abffe3b9 FOREIGN KEY (policy_id) REFERENCES public.incident_management_escalation_policies(id) ON DELETE SET NULL; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_04_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_05_issue_id_idx; --- --- Name: resource_state_events fk_rails_29af06892a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_05_pkey; -ALTER TABLE ONLY public.resource_state_events - ADD CONSTRAINT fk_rails_29af06892a FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_05_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_06_issue_id_idx; --- --- Name: reviews fk_rails_29e6f859c4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_06_pkey; -ALTER TABLE ONLY public.reviews - ADD CONSTRAINT fk_rails_29e6f859c4 FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_06_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_07_issue_id_idx; --- --- Name: draft_notes fk_rails_2a8dac9901; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_07_pkey; -ALTER TABLE ONLY public.draft_notes - ADD CONSTRAINT fk_rails_2a8dac9901 FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_07_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_08_issue_id_idx; --- --- Name: xray_reports fk_rails_2b13fbecf9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_08_pkey; -ALTER TABLE ONLY public.xray_reports - ADD CONSTRAINT fk_rails_2b13fbecf9 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_08_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_09_issue_id_idx; --- --- Name: dependency_proxy_image_ttl_group_policies fk_rails_2b1896d021; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_09_pkey; -ALTER TABLE ONLY public.dependency_proxy_image_ttl_group_policies - ADD CONSTRAINT fk_rails_2b1896d021 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_09_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_10_issue_id_idx; --- --- Name: group_group_links fk_rails_2b2353ca49; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_10_pkey; -ALTER TABLE ONLY public.group_group_links - ADD CONSTRAINT fk_rails_2b2353ca49 FOREIGN KEY (shared_with_group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_10_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_11_issue_id_idx; --- --- Name: packages_debian_group_component_files fk_rails_2b8992dd83; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_11_pkey; -ALTER TABLE ONLY public.packages_debian_group_component_files - ADD CONSTRAINT fk_rails_2b8992dd83 FOREIGN KEY (architecture_id) REFERENCES public.packages_debian_group_architectures(id) ON DELETE RESTRICT; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_11_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_12_issue_id_idx; --- --- Name: boards_epic_board_labels fk_rails_2bedeb8799; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_12_pkey; -ALTER TABLE ONLY public.boards_epic_board_labels - ADD CONSTRAINT fk_rails_2bedeb8799 FOREIGN KEY (label_id) REFERENCES public.labels(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_12_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_13_issue_id_idx; --- --- Name: error_tracking_error_events fk_rails_2c096c0076; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_13_pkey; -ALTER TABLE ONLY public.error_tracking_error_events - ADD CONSTRAINT fk_rails_2c096c0076 FOREIGN KEY (error_id) REFERENCES public.error_tracking_errors(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_13_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_14_issue_id_idx; --- --- Name: work_item_colors fk_rails_2c2032206e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_14_pkey; -ALTER TABLE ONLY public.work_item_colors - ADD CONSTRAINT fk_rails_2c2032206e FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_14_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_15_issue_id_idx; --- --- Name: onboarding_progresses fk_rails_2ccfd420cc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_15_pkey; -ALTER TABLE ONLY public.onboarding_progresses - ADD CONSTRAINT fk_rails_2ccfd420cc FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_15_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_16_issue_id_idx; --- --- Name: protected_branch_unprotect_access_levels fk_rails_2d2aba21ef; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_16_pkey; -ALTER TABLE ONLY public.protected_branch_unprotect_access_levels - ADD CONSTRAINT fk_rails_2d2aba21ef FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_16_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_17_issue_id_idx; --- --- Name: issuable_severities fk_rails_2fbb74ad6d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_17_pkey; -ALTER TABLE ONLY public.issuable_severities - ADD CONSTRAINT fk_rails_2fbb74ad6d FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_17_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_18_issue_id_idx; --- --- Name: saml_providers fk_rails_306d459be7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_18_pkey; -ALTER TABLE ONLY public.saml_providers - ADD CONSTRAINT fk_rails_306d459be7 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_18_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_19_issue_id_idx; --- --- Name: bulk_import_batch_trackers fk_rails_307efb9f32; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_19_pkey; -ALTER TABLE ONLY public.bulk_import_batch_trackers - ADD CONSTRAINT fk_rails_307efb9f32 FOREIGN KEY (tracker_id) REFERENCES public.bulk_import_trackers(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_19_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_20_issue_id_idx; --- --- Name: pm_package_version_licenses fk_rails_30ddb7f837; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_20_pkey; -ALTER TABLE ONLY public.pm_package_version_licenses - ADD CONSTRAINT fk_rails_30ddb7f837 FOREIGN KEY (pm_package_version_id) REFERENCES public.pm_package_versions(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_20_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_21_issue_id_idx; --- --- Name: resource_state_events fk_rails_3112bba7dc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_21_pkey; -ALTER TABLE ONLY public.resource_state_events - ADD CONSTRAINT fk_rails_3112bba7dc FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_21_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_22_issue_id_idx; --- --- Name: merge_request_diff_commits fk_rails_316aaceda3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_22_pkey; -ALTER TABLE ONLY public.merge_request_diff_commits - ADD CONSTRAINT fk_rails_316aaceda3 FOREIGN KEY (merge_request_diff_id) REFERENCES public.merge_request_diffs(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_22_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_23_issue_id_idx; --- --- Name: group_import_states fk_rails_31c3e0503a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_23_pkey; -ALTER TABLE ONLY public.group_import_states - ADD CONSTRAINT fk_rails_31c3e0503a FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_23_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_24_issue_id_idx; --- --- Name: zoom_meetings fk_rails_3263f29616; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_24_pkey; -ALTER TABLE ONLY public.zoom_meetings - ADD CONSTRAINT fk_rails_3263f29616 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_24_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_25_issue_id_idx; --- --- Name: container_repositories fk_rails_32f7bf5aad; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_25_pkey; -ALTER TABLE ONLY public.container_repositories - ADD CONSTRAINT fk_rails_32f7bf5aad FOREIGN KEY (project_id) REFERENCES public.projects(id); +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_25_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_26_issue_id_idx; --- --- Name: ai_agents fk_rails_3328b05449; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_26_pkey; -ALTER TABLE ONLY public.ai_agents - ADD CONSTRAINT fk_rails_3328b05449 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_26_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_27_issue_id_idx; --- --- Name: alert_management_alert_metric_images fk_rails_338e55b408; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_27_pkey; -ALTER TABLE ONLY public.alert_management_alert_metric_images - ADD CONSTRAINT fk_rails_338e55b408 FOREIGN KEY (alert_id) REFERENCES public.alert_management_alerts(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_27_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_28_issue_id_idx; --- --- Name: suggestions fk_rails_33b03a535c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_28_pkey; -ALTER TABLE ONLY public.suggestions - ADD CONSTRAINT fk_rails_33b03a535c FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_28_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_29_issue_id_idx; --- --- Name: packages_terraform_module_metadata fk_rails_33c045442a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_29_pkey; -ALTER TABLE ONLY public.packages_terraform_module_metadata - ADD CONSTRAINT fk_rails_33c045442a FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_29_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_30_issue_id_idx; --- --- Name: metrics_dashboard_annotations fk_rails_345ab51043; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_30_pkey; -ALTER TABLE ONLY public.metrics_dashboard_annotations - ADD CONSTRAINT fk_rails_345ab51043 FOREIGN KEY (cluster_id) REFERENCES public.clusters(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_30_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_31_issue_id_idx; --- --- Name: group_features fk_rails_356514082b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_31_pkey; -ALTER TABLE ONLY public.group_features - ADD CONSTRAINT fk_rails_356514082b FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_31_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_32_issue_id_idx; --- --- Name: wiki_page_slugs fk_rails_358b46be14; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_32_pkey; -ALTER TABLE ONLY public.wiki_page_slugs - ADD CONSTRAINT fk_rails_358b46be14 FOREIGN KEY (wiki_page_meta_id) REFERENCES public.wiki_page_meta(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_32_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_33_issue_id_idx; --- --- Name: board_labels fk_rails_362b0600a3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_33_pkey; -ALTER TABLE ONLY public.board_labels - ADD CONSTRAINT fk_rails_362b0600a3 FOREIGN KEY (label_id) REFERENCES public.labels(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_33_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_34_issue_id_idx; --- --- Name: virtual_registries_packages_maven_upstreams fk_rails_3649ef6e9a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_34_pkey; -ALTER TABLE ONLY public.virtual_registries_packages_maven_upstreams - ADD CONSTRAINT fk_rails_3649ef6e9a FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_34_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_35_issue_id_idx; --- --- Name: merge_request_blocks fk_rails_364d4bea8b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_35_pkey; -ALTER TABLE ONLY public.merge_request_blocks - ADD CONSTRAINT fk_rails_364d4bea8b FOREIGN KEY (blocked_merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_35_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_36_issue_id_idx; --- --- Name: merge_request_reviewers fk_rails_3704a66140; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_36_pkey; -ALTER TABLE ONLY public.merge_request_reviewers - ADD CONSTRAINT fk_rails_3704a66140 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_36_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_37_issue_id_idx; --- --- Name: group_merge_request_approval_settings fk_rails_37b6b4cdba; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_37_pkey; -ALTER TABLE ONLY public.group_merge_request_approval_settings - ADD CONSTRAINT fk_rails_37b6b4cdba FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_37_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_38_issue_id_idx; --- --- Name: packages_debian_project_distribution_keys fk_rails_3834a11264; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_38_pkey; -ALTER TABLE ONLY public.packages_debian_project_distribution_keys - ADD CONSTRAINT fk_rails_3834a11264 FOREIGN KEY (distribution_id) REFERENCES public.packages_debian_project_distributions(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_38_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_39_issue_id_idx; --- --- Name: issue_user_mentions fk_rails_3861d9fefa; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_39_pkey; -ALTER TABLE ONLY public.issue_user_mentions - ADD CONSTRAINT fk_rails_3861d9fefa FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_39_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_40_issue_id_idx; --- --- Name: namespace_settings fk_rails_3896d4fae5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_40_pkey; -ALTER TABLE ONLY public.namespace_settings - ADD CONSTRAINT fk_rails_3896d4fae5 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_40_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_41_issue_id_idx; --- --- Name: self_managed_prometheus_alert_events fk_rails_3936dadc62; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_41_pkey; -ALTER TABLE ONLY public.self_managed_prometheus_alert_events - ADD CONSTRAINT fk_rails_3936dadc62 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_41_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_42_issue_id_idx; --- --- Name: packages_cleanup_policies fk_rails_393ba98591; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_42_pkey; -ALTER TABLE ONLY public.packages_cleanup_policies - ADD CONSTRAINT fk_rails_393ba98591 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_42_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_43_issue_id_idx; --- --- Name: approval_project_rules_groups fk_rails_396841e79e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_43_pkey; -ALTER TABLE ONLY public.approval_project_rules_groups - ADD CONSTRAINT fk_rails_396841e79e FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_43_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_44_issue_id_idx; --- --- Name: self_managed_prometheus_alert_events fk_rails_39d83d1b65; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_44_pkey; -ALTER TABLE ONLY public.self_managed_prometheus_alert_events - ADD CONSTRAINT fk_rails_39d83d1b65 FOREIGN KEY (environment_id) REFERENCES public.environments(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_44_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_45_issue_id_idx; --- --- Name: chat_teams fk_rails_3b543909cb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_45_pkey; -ALTER TABLE ONLY public.chat_teams - ADD CONSTRAINT fk_rails_3b543909cb FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_45_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_46_issue_id_idx; --- --- Name: ci_build_needs fk_rails_3cf221d4ed_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_46_pkey; -ALTER TABLE ONLY public.ci_build_needs - ADD CONSTRAINT fk_rails_3cf221d4ed_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_46_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_47_issue_id_idx; --- --- Name: cluster_groups fk_rails_3d28377556; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_47_pkey; -ALTER TABLE ONLY public.cluster_groups - ADD CONSTRAINT fk_rails_3d28377556 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_47_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_48_issue_id_idx; --- --- Name: note_diff_files fk_rails_3d66047aeb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_48_pkey; -ALTER TABLE ONLY public.note_diff_files - ADD CONSTRAINT fk_rails_3d66047aeb FOREIGN KEY (diff_note_id) REFERENCES public.notes(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_48_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_49_issue_id_idx; --- --- Name: virtual_registries_packages_maven_registry_upstreams fk_rails_3dc6bd8333; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_49_pkey; -ALTER TABLE ONLY public.virtual_registries_packages_maven_registry_upstreams - ADD CONSTRAINT fk_rails_3dc6bd8333 FOREIGN KEY (upstream_id) REFERENCES public.virtual_registries_packages_maven_upstreams(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_49_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_50_issue_id_idx; --- --- Name: snippet_user_mentions fk_rails_3e00189191; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_50_pkey; -ALTER TABLE ONLY public.snippet_user_mentions - ADD CONSTRAINT fk_rails_3e00189191 FOREIGN KEY (snippet_id) REFERENCES public.snippets(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_50_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_51_issue_id_idx; --- --- Name: early_access_program_tracking_events fk_rails_3e8c32b3dd; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_51_pkey; -ALTER TABLE ONLY public.early_access_program_tracking_events - ADD CONSTRAINT fk_rails_3e8c32b3dd FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_51_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_52_issue_id_idx; --- --- Name: epic_user_mentions fk_rails_3eaf4d88cc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_52_pkey; -ALTER TABLE ONLY public.epic_user_mentions - ADD CONSTRAINT fk_rails_3eaf4d88cc FOREIGN KEY (epic_id) REFERENCES public.epics(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_52_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_53_issue_id_idx; --- --- Name: issuable_resource_links fk_rails_3f0ec6b1cf; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_53_pkey; -ALTER TABLE ONLY public.issuable_resource_links - ADD CONSTRAINT fk_rails_3f0ec6b1cf FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_53_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_54_issue_id_idx; --- --- Name: board_assignees fk_rails_3f6f926bd5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_54_pkey; -ALTER TABLE ONLY public.board_assignees - ADD CONSTRAINT fk_rails_3f6f926bd5 FOREIGN KEY (board_id) REFERENCES public.boards(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_54_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_55_issue_id_idx; --- --- Name: description_versions fk_rails_3ff658220b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_55_pkey; -ALTER TABLE ONLY public.description_versions - ADD CONSTRAINT fk_rails_3ff658220b FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_55_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_56_issue_id_idx; --- --- Name: clusters_kubernetes_namespaces fk_rails_40cc7ccbc3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_56_pkey; -ALTER TABLE ONLY public.clusters_kubernetes_namespaces - ADD CONSTRAINT fk_rails_40cc7ccbc3 FOREIGN KEY (cluster_project_id) REFERENCES public.cluster_projects(id) ON DELETE SET NULL; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_56_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_57_issue_id_idx; --- --- Name: lfs_object_states fk_rails_4188448cd5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_57_pkey; -ALTER TABLE ONLY public.lfs_object_states - ADD CONSTRAINT fk_rails_4188448cd5 FOREIGN KEY (lfs_object_id) REFERENCES public.lfs_objects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_57_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_58_issue_id_idx; --- --- Name: geo_node_namespace_links fk_rails_41ff5fb854; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_58_pkey; -ALTER TABLE ONLY public.geo_node_namespace_links - ADD CONSTRAINT fk_rails_41ff5fb854 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_58_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_59_issue_id_idx; --- --- Name: epic_issues fk_rails_4209981af6; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_59_pkey; -ALTER TABLE ONLY public.epic_issues - ADD CONSTRAINT fk_rails_4209981af6 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_59_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_60_issue_id_idx; --- --- Name: ci_resources fk_rails_430336af2d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_60_pkey; -ALTER TABLE ONLY public.ci_resources - ADD CONSTRAINT fk_rails_430336af2d FOREIGN KEY (resource_group_id) REFERENCES public.ci_resource_groups(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_60_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_61_issue_id_idx; --- --- Name: batched_background_migration_jobs fk_rails_432153b86d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_61_pkey; -ALTER TABLE ONLY public.batched_background_migration_jobs - ADD CONSTRAINT fk_rails_432153b86d FOREIGN KEY (batched_background_migration_id) REFERENCES public.batched_background_migrations(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_61_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_62_issue_id_idx; --- --- Name: operations_strategies_user_lists fk_rails_43241e8d29; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_62_pkey; -ALTER TABLE ONLY public.operations_strategies_user_lists - ADD CONSTRAINT fk_rails_43241e8d29 FOREIGN KEY (strategy_id) REFERENCES public.operations_strategies(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_62_search_vector_idx; +ALTER INDEX index_issue_search_data_on_issue_id ATTACH PARTITION gitlab_partitions_static.issue_search_data_63_issue_id_idx; --- --- Name: activity_pub_releases_subscriptions fk_rails_4337598314; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX issue_search_data_pkey ATTACH PARTITION gitlab_partitions_static.issue_search_data_63_pkey; -ALTER TABLE ONLY public.activity_pub_releases_subscriptions - ADD CONSTRAINT fk_rails_4337598314 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_issue_search_data_on_search_vector ATTACH PARTITION gitlab_partitions_static.issue_search_data_63_search_vector_idx; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_00_namespace_id_idx; --- --- Name: analytics_cycle_analytics_value_stream_settings fk_rails_4360d37256; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_00_pkey; -ALTER TABLE ONLY public.analytics_cycle_analytics_value_stream_settings - ADD CONSTRAINT fk_rails_4360d37256 FOREIGN KEY (value_stream_id) REFERENCES public.analytics_cycle_analytics_group_value_streams(id) ON DELETE CASCADE; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_01_namespace_id_idx; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_01_pkey; --- --- Name: merge_request_assignment_events fk_rails_4378a2e8d7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_02_namespace_id_idx; -ALTER TABLE ONLY public.merge_request_assignment_events - ADD CONSTRAINT fk_rails_4378a2e8d7 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_02_pkey; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_03_namespace_id_idx; --- --- Name: lfs_file_locks fk_rails_43df7a0412; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_03_pkey; -ALTER TABLE ONLY public.lfs_file_locks - ADD CONSTRAINT fk_rails_43df7a0412 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_04_namespace_id_idx; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_04_pkey; --- --- Name: dast_site_profile_secret_variables fk_rails_43e2897950; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_05_namespace_id_idx; -ALTER TABLE ONLY public.dast_site_profile_secret_variables - ADD CONSTRAINT fk_rails_43e2897950 FOREIGN KEY (dast_site_profile_id) REFERENCES public.dast_site_profiles(id) ON DELETE CASCADE; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_05_pkey; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_06_namespace_id_idx; --- --- Name: merge_request_assignees fk_rails_443443ce6f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_06_pkey; -ALTER TABLE ONLY public.merge_request_assignees - ADD CONSTRAINT fk_rails_443443ce6f FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_07_namespace_id_idx; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_07_pkey; --- --- Name: packages_dependency_links fk_rails_4437bf4070; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_08_namespace_id_idx; -ALTER TABLE ONLY public.packages_dependency_links - ADD CONSTRAINT fk_rails_4437bf4070 FOREIGN KEY (dependency_id) REFERENCES public.packages_dependencies(id) ON DELETE CASCADE; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_08_pkey; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_09_namespace_id_idx; --- --- Name: work_item_related_link_restrictions fk_rails_4513f0061c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_09_pkey; -ALTER TABLE ONLY public.work_item_related_link_restrictions - ADD CONSTRAINT fk_rails_4513f0061c FOREIGN KEY (target_type_id) REFERENCES public.work_item_types(id) ON DELETE CASCADE; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_10_namespace_id_idx; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_10_pkey; --- --- Name: project_auto_devops fk_rails_45436b12b2; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_11_namespace_id_idx; -ALTER TABLE ONLY public.project_auto_devops - ADD CONSTRAINT fk_rails_45436b12b2 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_11_pkey; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_12_namespace_id_idx; --- --- Name: dora_performance_scores fk_rails_455f9acc65; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_12_pkey; -ALTER TABLE ONLY public.dora_performance_scores - ADD CONSTRAINT fk_rails_455f9acc65 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_13_namespace_id_idx; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_13_pkey; --- --- Name: merge_requests_closing_issues fk_rails_458eda8667; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_14_namespace_id_idx; -ALTER TABLE ONLY public.merge_requests_closing_issues - ADD CONSTRAINT fk_rails_458eda8667 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_14_pkey; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_15_namespace_id_idx; --- --- Name: protected_environment_deploy_access_levels fk_rails_45cc02a931; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_15_pkey; -ALTER TABLE ONLY public.protected_environment_deploy_access_levels - ADD CONSTRAINT fk_rails_45cc02a931 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_16_namespace_id_idx; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_16_pkey; --- --- Name: prometheus_alert_events fk_rails_4675865839; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_17_namespace_id_idx; -ALTER TABLE ONLY public.prometheus_alert_events - ADD CONSTRAINT fk_rails_4675865839 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_17_pkey; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_18_namespace_id_idx; --- --- Name: smartcard_identities fk_rails_4689f889a9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_18_pkey; -ALTER TABLE ONLY public.smartcard_identities - ADD CONSTRAINT fk_rails_4689f889a9 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_19_namespace_id_idx; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_19_pkey; --- --- Name: vulnerability_feedback fk_rails_472f69b043; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_20_namespace_id_idx; -ALTER TABLE ONLY public.vulnerability_feedback - ADD CONSTRAINT fk_rails_472f69b043 FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_20_pkey; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_21_namespace_id_idx; --- --- Name: user_custom_attributes fk_rails_47b91868a8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_21_pkey; -ALTER TABLE ONLY public.user_custom_attributes - ADD CONSTRAINT fk_rails_47b91868a8 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_22_namespace_id_idx; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_22_pkey; --- --- Name: upcoming_reconciliations fk_rails_497b4938ac; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_23_namespace_id_idx; -ALTER TABLE ONLY public.upcoming_reconciliations - ADD CONSTRAINT fk_rails_497b4938ac FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_23_pkey; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_24_namespace_id_idx; --- --- Name: group_deletion_schedules fk_rails_4b8c694a6c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_24_pkey; -ALTER TABLE ONLY public.group_deletion_schedules - ADD CONSTRAINT fk_rails_4b8c694a6c FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_25_namespace_id_idx; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_25_pkey; --- --- Name: snippet_repository_storage_moves fk_rails_4b950f5b94; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_26_namespace_id_idx; -ALTER TABLE ONLY public.snippet_repository_storage_moves - ADD CONSTRAINT fk_rails_4b950f5b94 FOREIGN KEY (snippet_id) REFERENCES public.snippets(id) ON DELETE CASCADE; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_26_pkey; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_27_namespace_id_idx; --- --- Name: design_management_designs fk_rails_4bb1073360; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_27_pkey; -ALTER TABLE ONLY public.design_management_designs - ADD CONSTRAINT fk_rails_4bb1073360 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_28_namespace_id_idx; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_28_pkey; --- --- Name: issue_metrics fk_rails_4bb543d85d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_29_namespace_id_idx; -ALTER TABLE ONLY public.issue_metrics - ADD CONSTRAINT fk_rails_4bb543d85d FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_29_pkey; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_30_namespace_id_idx; --- --- Name: project_metrics_settings fk_rails_4c6037ee4f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_30_pkey; -ALTER TABLE ONLY public.project_metrics_settings - ADD CONSTRAINT fk_rails_4c6037ee4f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_on_namespace_descendants_outdated ATTACH PARTITION gitlab_partitions_static.namespace_descendants_31_namespace_id_idx; +ALTER INDEX namespace_descendants_pkey ATTACH PARTITION gitlab_partitions_static.namespace_descendants_31_pkey; --- --- Name: prometheus_metrics fk_rails_4c8957a707; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_build_trace_metadata_pkey ATTACH PARTITION ci_build_trace_metadata_pkey; -ALTER TABLE ONLY public.prometheus_metrics - ADD CONSTRAINT fk_rails_4c8957a707 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX index_p_ci_build_trace_metadata_on_trace_artifact_id ATTACH PARTITION ci_build_trace_metadata_trace_artifact_id_idx; +ALTER INDEX p_ci_builds_status_created_at_project_id_idx ATTACH PARTITION ci_builds_gitlab_monitor_metrics; --- --- Name: dependency_proxy_blob_states fk_rails_4cdbb92cbd; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_builds_metadata_pkey ATTACH PARTITION ci_builds_metadata_pkey; -ALTER TABLE ONLY public.dependency_proxy_blob_states - ADD CONSTRAINT fk_rails_4cdbb92cbd FOREIGN KEY (dependency_proxy_blob_id) REFERENCES public.dependency_proxy_blobs(id) ON DELETE CASCADE; +ALTER INDEX p_ci_builds_pkey ATTACH PARTITION ci_builds_pkey; +ALTER INDEX p_ci_job_artifacts_pkey ATTACH PARTITION ci_job_artifacts_pkey; --- --- Name: scim_identities fk_rails_4d2056ebd9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_pipeline_variables_pkey ATTACH PARTITION ci_pipeline_variables_pkey; -ALTER TABLE ONLY public.scim_identities - ADD CONSTRAINT fk_rails_4d2056ebd9 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX p_ci_pipelines_pkey ATTACH PARTITION ci_pipelines_pkey; +ALTER INDEX p_ci_stages_pkey ATTACH PARTITION ci_stages_pkey; --- --- Name: snippet_user_mentions fk_rails_4d3f96b2cb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_job_artifacts_job_id_file_type_partition_id_idx ATTACH PARTITION idx_ci_job_artifacts_on_job_id_file_type_and_partition_id_uniq; -ALTER TABLE ONLY public.snippet_user_mentions - ADD CONSTRAINT fk_rails_4d3f96b2cb FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; +ALTER INDEX p_ci_pipelines_ci_ref_id_id_idx ATTACH PARTITION idx_ci_pipelines_artifacts_locked; +ALTER INDEX index_p_ci_builds_on_execution_config_id ATTACH PARTITION index_0928d9f200; --- --- Name: protected_environment_approval_rules fk_rails_4e554f96f5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_builds_metadata_build_id_idx ATTACH PARTITION index_ci_builds_metadata_on_build_id_and_has_exposed_artifacts; -ALTER TABLE ONLY public.protected_environment_approval_rules - ADD CONSTRAINT fk_rails_4e554f96f5 FOREIGN KEY (protected_environment_id) REFERENCES public.protected_environments(id) ON DELETE CASCADE; +ALTER INDEX p_ci_builds_metadata_build_id_id_idx ATTACH PARTITION index_ci_builds_metadata_on_build_id_and_id_and_interruptible; +ALTER INDEX p_ci_builds_metadata_build_id_partition_id_idx ATTACH PARTITION index_ci_builds_metadata_on_build_id_partition_id_unique; --- --- Name: aws_roles fk_rails_4ed56f4720; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_builds_metadata_project_id_idx ATTACH PARTITION index_ci_builds_metadata_on_project_id; -ALTER TABLE ONLY public.aws_roles - ADD CONSTRAINT fk_rails_4ed56f4720 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER INDEX p_ci_builds_auto_canceled_by_id_idx ATTACH PARTITION index_ci_builds_on_auto_canceled_by_id; +ALTER INDEX p_ci_builds_commit_id_stage_idx_created_at_idx ATTACH PARTITION index_ci_builds_on_commit_id_and_stage_idx_and_created_at; --- --- Name: packages_debian_publications fk_rails_4fc8ebd03e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_builds_commit_id_status_type_idx ATTACH PARTITION index_ci_builds_on_commit_id_and_status_and_type; -ALTER TABLE ONLY public.packages_debian_publications - ADD CONSTRAINT fk_rails_4fc8ebd03e FOREIGN KEY (distribution_id) REFERENCES public.packages_debian_project_distributions(id) ON DELETE CASCADE; +ALTER INDEX p_ci_builds_commit_id_type_name_ref_idx ATTACH PARTITION index_ci_builds_on_commit_id_and_type_and_name_and_ref; +ALTER INDEX p_ci_builds_commit_id_type_ref_idx ATTACH PARTITION index_ci_builds_on_commit_id_and_type_and_ref; --- --- Name: merge_request_diff_files fk_rails_501aa0a391; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_builds_commit_id_artifacts_expire_at_id_idx ATTACH PARTITION index_ci_builds_on_commit_id_artifacts_expired_at_and_id; -ALTER TABLE ONLY public.merge_request_diff_files - ADD CONSTRAINT fk_rails_501aa0a391 FOREIGN KEY (merge_request_diff_id) REFERENCES public.merge_request_diffs(id) ON DELETE CASCADE; +ALTER INDEX p_ci_builds_project_id_id_idx ATTACH PARTITION index_ci_builds_on_project_id_and_id; +ALTER INDEX p_ci_builds_project_id_name_ref_idx ATTACH PARTITION index_ci_builds_on_project_id_and_name_and_ref; --- --- Name: resource_iteration_events fk_rails_501fa15d69; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_builds_resource_group_id_status_commit_id_idx ATTACH PARTITION index_ci_builds_on_resource_group_and_status_and_commit_id; -ALTER TABLE ONLY public.resource_iteration_events - ADD CONSTRAINT fk_rails_501fa15d69 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER INDEX p_ci_builds_runner_id_id_idx ATTACH PARTITION index_ci_builds_on_runner_id_and_id_desc; +ALTER INDEX p_ci_builds_stage_id_idx ATTACH PARTITION index_ci_builds_on_stage_id; --- --- Name: status_page_settings fk_rails_506e5ba391; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_builds_status_type_runner_id_idx ATTACH PARTITION index_ci_builds_on_status_and_type_and_runner_id; -ALTER TABLE ONLY public.status_page_settings - ADD CONSTRAINT fk_rails_506e5ba391 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX p_ci_builds_updated_at_idx ATTACH PARTITION index_ci_builds_on_updated_at; +ALTER INDEX p_ci_builds_upstream_pipeline_id_idx ATTACH PARTITION index_ci_builds_on_upstream_pipeline_id; --- --- Name: ci_pipeline_metadata fk_rails_50c1e9ea10_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_builds_user_id_idx ATTACH PARTITION index_ci_builds_on_user_id; -ALTER TABLE ONLY public.ci_pipeline_metadata - ADD CONSTRAINT fk_rails_50c1e9ea10_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER INDEX p_ci_builds_user_id_created_at_idx ATTACH PARTITION index_ci_builds_on_user_id_and_created_at_and_type_eq_ci_build; +ALTER INDEX p_ci_builds_project_id_status_idx ATTACH PARTITION index_ci_builds_project_id_and_status_for_live_jobs_partial2; --- --- Name: ci_pipeline_metadata fk_rails_50c1e9ea10_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_builds_runner_id_idx ATTACH PARTITION index_ci_builds_runner_id_running; -ALTER TABLE ONLY public.ci_pipeline_metadata - ADD CONSTRAINT fk_rails_50c1e9ea10_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +ALTER INDEX p_ci_job_artifacts_expire_at_idx ATTACH PARTITION index_ci_job_artifacts_expire_at_unlocked_non_trace; +ALTER INDEX p_ci_job_artifacts_project_id_id_idx ATTACH PARTITION index_ci_job_artifacts_for_terraform_reports; --- --- Name: project_repository_storage_moves fk_rails_5106dbd44a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_job_artifacts_id_idx ATTACH PARTITION index_ci_job_artifacts_id_for_terraform_reports; -ALTER TABLE ONLY public.project_repository_storage_moves - ADD CONSTRAINT fk_rails_5106dbd44a FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER INDEX p_ci_job_artifacts_expire_at_job_id_idx ATTACH PARTITION index_ci_job_artifacts_on_expire_at_and_job_id; +ALTER INDEX p_ci_job_artifacts_file_final_path_idx ATTACH PARTITION index_ci_job_artifacts_on_file_final_path; --- --- Name: ml_candidate_metadata fk_rails_5117dddf22; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_job_artifacts_file_store_idx ATTACH PARTITION index_ci_job_artifacts_on_file_store; -ALTER TABLE ONLY public.ml_candidate_metadata - ADD CONSTRAINT fk_rails_5117dddf22 FOREIGN KEY (candidate_id) REFERENCES public.ml_candidates(id) ON DELETE CASCADE; +ALTER INDEX p_ci_job_artifacts_file_type_project_id_created_at_idx ATTACH PARTITION index_ci_job_artifacts_on_file_type_for_devops_adoption; +ALTER INDEX p_ci_job_artifacts_project_id_created_at_id_idx ATTACH PARTITION index_ci_job_artifacts_on_id_project_id_and_created_at; --- --- Name: zoekt_tasks fk_rails_51af186590; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_job_artifacts_project_id_file_type_id_idx ATTACH PARTITION index_ci_job_artifacts_on_id_project_id_and_file_type; -ALTER TABLE public.zoekt_tasks - ADD CONSTRAINT fk_rails_51af186590 FOREIGN KEY (zoekt_node_id) REFERENCES public.zoekt_nodes(id) ON DELETE CASCADE; +ALTER INDEX p_ci_job_artifacts_partition_id_job_id_idx ATTACH PARTITION index_ci_job_artifacts_on_partition_id_job_id; +ALTER INDEX p_ci_job_artifacts_project_id_id_idx1 ATTACH PARTITION index_ci_job_artifacts_on_project_id_and_id; --- --- Name: ml_models fk_rails_51e87f7c50; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_job_artifacts_project_id_idx1 ATTACH PARTITION index_ci_job_artifacts_on_project_id_for_security_reports; -ALTER TABLE ONLY public.ml_models - ADD CONSTRAINT fk_rails_51e87f7c50 FOREIGN KEY (project_id) REFERENCES public.projects(id); +ALTER INDEX p_ci_pipelines_id_idx ATTACH PARTITION index_ci_pipelines_for_ondemand_dast_scans; +ALTER INDEX p_ci_pipelines_auto_canceled_by_id_idx ATTACH PARTITION index_ci_pipelines_on_auto_canceled_by_id; --- --- Name: elastic_group_index_statuses fk_rails_52b9969b12; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_pipelines_ci_ref_id_id_source_status_idx ATTACH PARTITION index_ci_pipelines_on_ci_ref_id_and_more; -ALTER TABLE ONLY public.elastic_group_index_statuses - ADD CONSTRAINT fk_rails_52b9969b12 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX p_ci_pipelines_external_pull_request_id_idx ATTACH PARTITION index_ci_pipelines_on_external_pull_request_id; +ALTER INDEX p_ci_pipelines_merge_request_id_idx ATTACH PARTITION index_ci_pipelines_on_merge_request_id; --- --- Name: observability_metrics_issues_connections fk_rails_533fe605e3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_pipelines_pipeline_schedule_id_id_idx ATTACH PARTITION index_ci_pipelines_on_pipeline_schedule_id_and_id; -ALTER TABLE ONLY public.observability_metrics_issues_connections - ADD CONSTRAINT fk_rails_533fe605e3 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER INDEX p_ci_pipelines_project_id_id_idx ATTACH PARTITION index_ci_pipelines_on_project_id_and_id_desc; +ALTER INDEX p_ci_pipelines_project_id_iid_partition_id_idx ATTACH PARTITION index_ci_pipelines_on_project_id_and_iid_and_partition_id; --- --- Name: bulk_import_configurations fk_rails_536b96bff1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_pipelines_project_id_ref_status_id_idx ATTACH PARTITION index_ci_pipelines_on_project_id_and_ref_and_status_and_id; -ALTER TABLE ONLY public.bulk_import_configurations - ADD CONSTRAINT fk_rails_536b96bff1 FOREIGN KEY (bulk_import_id) REFERENCES public.bulk_imports(id) ON DELETE CASCADE; +ALTER INDEX p_ci_pipelines_project_id_sha_idx ATTACH PARTITION index_ci_pipelines_on_project_id_and_sha; +ALTER INDEX p_ci_pipelines_project_id_source_idx ATTACH PARTITION index_ci_pipelines_on_project_id_and_source; --- --- Name: workspace_variables fk_rails_539844891e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_pipelines_project_id_status_config_source_idx ATTACH PARTITION index_ci_pipelines_on_project_id_and_status_and_config_source; -ALTER TABLE ONLY public.workspace_variables - ADD CONSTRAINT fk_rails_539844891e FOREIGN KEY (workspace_id) REFERENCES public.workspaces(id) ON DELETE CASCADE; +ALTER INDEX p_ci_pipelines_project_id_status_created_at_idx ATTACH PARTITION index_ci_pipelines_on_project_id_and_status_and_created_at; +ALTER INDEX p_ci_pipelines_project_id_status_updated_at_idx ATTACH PARTITION index_ci_pipelines_on_project_id_and_status_and_updated_at; --- --- Name: x509_commit_signatures fk_rails_53fe41188f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_pipelines_project_id_user_id_status_ref_idx ATTACH PARTITION index_ci_pipelines_on_project_id_and_user_id_and_status_and_ref; -ALTER TABLE ONLY public.x509_commit_signatures - ADD CONSTRAINT fk_rails_53fe41188f FOREIGN KEY (x509_certificate_id) REFERENCES public.x509_certificates(id) ON DELETE CASCADE; +ALTER INDEX p_ci_pipelines_project_id_ref_id_idx ATTACH PARTITION index_ci_pipelines_on_project_idandrefandiddesc; +ALTER INDEX p_ci_pipelines_status_id_idx ATTACH PARTITION index_ci_pipelines_on_status_and_id; --- --- Name: analytics_cycle_analytics_group_value_streams fk_rails_540627381a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_pipelines_user_id_created_at_config_source_idx ATTACH PARTITION index_ci_pipelines_on_user_id_and_created_at_and_config_source; -ALTER TABLE ONLY public.analytics_cycle_analytics_group_value_streams - ADD CONSTRAINT fk_rails_540627381a FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX p_ci_pipelines_user_id_created_at_source_idx ATTACH PARTITION index_ci_pipelines_on_user_id_and_created_at_and_source; +ALTER INDEX p_ci_pipelines_user_id_id_idx ATTACH PARTITION index_ci_pipelines_on_user_id_and_id_and_cancelable_status; --- --- Name: geo_node_namespace_links fk_rails_546bf08d3e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_pipelines_user_id_id_idx1 ATTACH PARTITION index_ci_pipelines_on_user_id_and_id_desc_and_user_not_verified; -ALTER TABLE ONLY public.geo_node_namespace_links - ADD CONSTRAINT fk_rails_546bf08d3e FOREIGN KEY (geo_node_id) REFERENCES public.geo_nodes(id) ON DELETE CASCADE; +ALTER INDEX p_ci_stages_pipeline_id_id_idx ATTACH PARTITION index_ci_stages_on_pipeline_id_and_id; +ALTER INDEX p_ci_stages_pipeline_id_position_idx ATTACH PARTITION index_ci_stages_on_pipeline_id_and_position; --- --- Name: abuse_events fk_rails_55101e588c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_stages_pipeline_id_name_partition_id_idx ATTACH PARTITION index_ci_stages_on_pipeline_id_name_partition_id_unique; -ALTER TABLE ONLY public.abuse_events - ADD CONSTRAINT fk_rails_55101e588c FOREIGN KEY (abuse_report_id) REFERENCES public.abuse_reports(id); +ALTER INDEX p_ci_stages_project_id_idx ATTACH PARTITION index_ci_stages_on_project_id; +ALTER INDEX p_ci_builds_user_id_name_idx ATTACH PARTITION index_partial_ci_builds_on_user_id_name_parser_features; --- --- Name: virtual_registries_packages_maven_registries fk_rails_555e85e52c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_pipeline_variables_pipeline_id_key_partition_id_idx ATTACH PARTITION index_pipeline_variables_on_pipeline_id_key_partition_id_unique; -ALTER TABLE ONLY public.virtual_registries_packages_maven_registries - ADD CONSTRAINT fk_rails_555e85e52c FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER INDEX p_ci_builds_user_id_name_created_at_idx ATTACH PARTITION index_secure_ci_builds_on_user_id_name_created_at; +ALTER INDEX p_ci_builds_name_id_idx ATTACH PARTITION index_security_ci_builds_on_name_and_id_parser_features; --- --- Name: issuable_metric_images fk_rails_56417a5a7f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER INDEX p_ci_builds_scheduled_at_idx ATTACH PARTITION partial_index_ci_builds_on_scheduled_at_with_scheduled_jobs; -ALTER TABLE ONLY public.issuable_metric_images - ADD CONSTRAINT fk_rails_56417a5a7f FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER INDEX p_ci_job_artifacts_expire_at_job_id_idx1 ATTACH PARTITION tmp_index_ci_job_artifacts_on_expire_at_where_locked_unknown; +ALTER INDEX p_ci_builds_token_encrypted_partition_id_idx ATTACH PARTITION unique_ci_builds_token_encrypted_and_partition_id; --- --- Name: group_deploy_keys fk_rails_5682fc07f8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER assign_p_ci_build_tags_id_trigger BEFORE INSERT ON p_ci_build_tags FOR EACH ROW EXECUTE FUNCTION assign_p_ci_build_tags_id_value(); -ALTER TABLE ONLY public.group_deploy_keys - ADD CONSTRAINT fk_rails_5682fc07f8 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE RESTRICT; +CREATE TRIGGER assign_p_ci_builds_execution_configs_id_trigger BEFORE INSERT ON p_ci_builds_execution_configs FOR EACH ROW EXECUTE FUNCTION assign_p_ci_builds_execution_configs_id_value(); +CREATE TRIGGER assign_p_ci_builds_id_trigger BEFORE INSERT ON p_ci_builds FOR EACH ROW EXECUTE FUNCTION assign_p_ci_builds_id_value(); --- --- Name: issue_user_mentions fk_rails_57581fda73; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER assign_p_ci_job_annotations_id_trigger BEFORE INSERT ON p_ci_job_annotations FOR EACH ROW EXECUTE FUNCTION assign_p_ci_job_annotations_id_value(); -ALTER TABLE ONLY public.issue_user_mentions - ADD CONSTRAINT fk_rails_57581fda73 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +CREATE TRIGGER assign_p_ci_job_artifacts_id_trigger BEFORE INSERT ON p_ci_job_artifacts FOR EACH ROW EXECUTE FUNCTION assign_p_ci_job_artifacts_id_value(); +CREATE TRIGGER assign_p_ci_pipeline_variables_id_trigger BEFORE INSERT ON p_ci_pipeline_variables FOR EACH ROW EXECUTE FUNCTION assign_p_ci_pipeline_variables_id_value(); --- --- Name: merge_request_assignees fk_rails_579d375628; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER assign_p_ci_stages_id_trigger BEFORE INSERT ON p_ci_stages FOR EACH ROW EXECUTE FUNCTION assign_p_ci_stages_id_value(); -ALTER TABLE ONLY public.merge_request_assignees - ADD CONSTRAINT fk_rails_579d375628 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE TRIGGER assign_zoekt_tasks_id_trigger BEFORE INSERT ON zoekt_tasks FOR EACH ROW EXECUTE FUNCTION assign_zoekt_tasks_id_value(); +CREATE TRIGGER chat_names_loose_fk_trigger AFTER DELETE ON chat_names REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); --- --- Name: incident_management_timeline_event_tag_links fk_rails_57baccd7f9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER ci_builds_loose_fk_trigger AFTER DELETE ON ci_builds REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); -ALTER TABLE ONLY public.incident_management_timeline_event_tag_links - ADD CONSTRAINT fk_rails_57baccd7f9 FOREIGN KEY (timeline_event_id) REFERENCES public.incident_management_timeline_events(id) ON DELETE CASCADE; +CREATE TRIGGER ci_pipelines_loose_fk_trigger AFTER DELETE ON ci_pipelines REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); +CREATE TRIGGER ci_runner_machines_loose_fk_trigger AFTER DELETE ON ci_runner_machines REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); --- --- Name: packages_debian_project_architectures fk_rails_5808663adf; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER ci_runners_loose_fk_trigger AFTER DELETE ON ci_runners REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); -ALTER TABLE ONLY public.packages_debian_project_architectures - ADD CONSTRAINT fk_rails_5808663adf FOREIGN KEY (distribution_id) REFERENCES public.packages_debian_project_distributions(id) ON DELETE CASCADE; +CREATE TRIGGER clusters_loose_fk_trigger AFTER DELETE ON clusters REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); +CREATE TRIGGER merge_requests_loose_fk_trigger AFTER DELETE ON merge_requests REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); --- --- Name: analytics_cycle_analytics_group_stages fk_rails_5a22f40223; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER namespaces_loose_fk_trigger AFTER DELETE ON namespaces REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); -ALTER TABLE ONLY public.analytics_cycle_analytics_group_stages - ADD CONSTRAINT fk_rails_5a22f40223 FOREIGN KEY (start_event_label_id) REFERENCES public.labels(id) ON DELETE CASCADE; +CREATE TRIGGER nullify_merge_request_metrics_build_data_on_update BEFORE UPDATE ON merge_request_metrics FOR EACH ROW EXECUTE FUNCTION nullify_merge_request_metrics_build_data(); +CREATE TRIGGER organizations_loose_fk_trigger AFTER DELETE ON organizations REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); --- --- Name: badges fk_rails_5a7c055bdc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER p_ci_builds_loose_fk_trigger AFTER DELETE ON p_ci_builds REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); -ALTER TABLE ONLY public.badges - ADD CONSTRAINT fk_rails_5a7c055bdc FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE TRIGGER p_ci_pipelines_loose_fk_trigger AFTER DELETE ON p_ci_pipelines REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); +CREATE TRIGGER plans_loose_fk_trigger AFTER DELETE ON plans REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); --- --- Name: resource_label_events fk_rails_5ac1d2fc24; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER prevent_delete_of_default_organization_before_destroy BEFORE DELETE ON organizations FOR EACH ROW EXECUTE FUNCTION prevent_delete_of_default_organization(); -ALTER TABLE ONLY public.resource_label_events - ADD CONSTRAINT fk_rails_5ac1d2fc24 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +CREATE TRIGGER projects_loose_fk_trigger AFTER DELETE ON projects REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); +CREATE TRIGGER push_rules_loose_fk_trigger AFTER DELETE ON push_rules REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); --- --- Name: ci_secure_file_states fk_rails_5adba40c5f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER table_sync_trigger_57c8465cd7 AFTER INSERT OR DELETE OR UPDATE ON merge_request_diff_commits FOR EACH ROW EXECUTE FUNCTION table_sync_function_0992e728d3(); -ALTER TABLE ONLY public.ci_secure_file_states - ADD CONSTRAINT fk_rails_5adba40c5f FOREIGN KEY (ci_secure_file_id) REFERENCES public.ci_secure_files(id) ON DELETE CASCADE; +CREATE TRIGGER table_sync_trigger_cd362c20e2 AFTER INSERT OR DELETE OR UPDATE ON merge_request_diff_files FOR EACH ROW EXECUTE FUNCTION table_sync_function_3f39f64fc3(); +CREATE TRIGGER tags_loose_fk_trigger AFTER DELETE ON tags REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); --- --- Name: approval_merge_request_rules_groups fk_rails_5b2ecf6139; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_01b3fc052119 BEFORE INSERT OR UPDATE ON approval_merge_request_rules FOR EACH ROW EXECUTE FUNCTION trigger_01b3fc052119(); -ALTER TABLE ONLY public.approval_merge_request_rules_groups - ADD CONSTRAINT fk_rails_5b2ecf6139 FOREIGN KEY (approval_merge_request_rule_id) REFERENCES public.approval_merge_request_rules(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_02450faab875 BEFORE INSERT OR UPDATE ON vulnerability_occurrence_identifiers FOR EACH ROW EXECUTE FUNCTION trigger_02450faab875(); +CREATE TRIGGER trigger_038fe84feff7 BEFORE INSERT OR UPDATE ON approvals FOR EACH ROW EXECUTE FUNCTION trigger_038fe84feff7(); --- --- Name: namespace_limits fk_rails_5b3f2bc334; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_05ce163deddf BEFORE INSERT OR UPDATE ON status_check_responses FOR EACH ROW EXECUTE FUNCTION trigger_05ce163deddf(); -ALTER TABLE ONLY public.namespace_limits - ADD CONSTRAINT fk_rails_5b3f2bc334 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_0a1b0adcf686 BEFORE INSERT OR UPDATE ON packages_debian_project_components FOR EACH ROW EXECUTE FUNCTION trigger_0a1b0adcf686(); +CREATE TRIGGER trigger_0da002390fdc BEFORE INSERT OR UPDATE ON operations_feature_flags_issues FOR EACH ROW EXECUTE FUNCTION trigger_0da002390fdc(); --- --- Name: ml_model_version_metadata fk_rails_5b67cc9107; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_0e13f214e504 BEFORE INSERT OR UPDATE ON merge_request_assignment_events FOR EACH ROW EXECUTE FUNCTION trigger_0e13f214e504(); -ALTER TABLE ONLY public.ml_model_version_metadata - ADD CONSTRAINT fk_rails_5b67cc9107 FOREIGN KEY (model_version_id) REFERENCES public.ml_model_versions(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_13d4aa8fe3dd BEFORE INSERT OR UPDATE ON draft_notes FOR EACH ROW EXECUTE FUNCTION trigger_13d4aa8fe3dd(); +CREATE TRIGGER trigger_158ac875f254 BEFORE INSERT OR UPDATE ON approval_group_rules_users FOR EACH ROW EXECUTE FUNCTION trigger_158ac875f254(); --- --- Name: protected_environment_deploy_access_levels fk_rails_5b9f6970fe; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_174b23fa3dfb BEFORE INSERT OR UPDATE ON approval_project_rules_users FOR EACH ROW EXECUTE FUNCTION trigger_174b23fa3dfb(); -ALTER TABLE ONLY public.protected_environment_deploy_access_levels - ADD CONSTRAINT fk_rails_5b9f6970fe FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_18bc439a6741 BEFORE INSERT OR UPDATE ON packages_conan_metadata FOR EACH ROW EXECUTE FUNCTION trigger_18bc439a6741(); +CREATE TRIGGER trigger_1ed40f4d5f4e BEFORE INSERT OR UPDATE ON packages_maven_metadata FOR EACH ROW EXECUTE FUNCTION trigger_1ed40f4d5f4e(); --- --- Name: protected_branch_unprotect_access_levels fk_rails_5be1abfc25; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_206cbe2dc1a2 BEFORE INSERT OR UPDATE ON packages_package_files FOR EACH ROW EXECUTE FUNCTION trigger_206cbe2dc1a2(); -ALTER TABLE ONLY public.protected_branch_unprotect_access_levels - ADD CONSTRAINT fk_rails_5be1abfc25 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_207005e8e995 BEFORE INSERT OR UPDATE ON operations_strategies FOR EACH ROW EXECUTE FUNCTION trigger_207005e8e995(); +CREATE TRIGGER trigger_219952df8fc4 BEFORE INSERT OR UPDATE ON merge_request_blocks FOR EACH ROW EXECUTE FUNCTION trigger_219952df8fc4(); --- --- Name: cluster_providers_gcp fk_rails_5c2c3bc814; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_2514245c7fc5 BEFORE INSERT OR UPDATE ON dast_site_profile_secret_variables FOR EACH ROW EXECUTE FUNCTION trigger_2514245c7fc5(); -ALTER TABLE ONLY public.cluster_providers_gcp - ADD CONSTRAINT fk_rails_5c2c3bc814 FOREIGN KEY (cluster_id) REFERENCES public.clusters(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_25c44c30884f BEFORE INSERT OR UPDATE ON work_item_parent_links FOR EACH ROW EXECUTE FUNCTION trigger_25c44c30884f(); +CREATE TRIGGER trigger_25d35f02ab55 BEFORE INSERT OR UPDATE ON ml_candidate_metadata FOR EACH ROW EXECUTE FUNCTION trigger_25d35f02ab55(); --- --- Name: insights fk_rails_5c4391f60a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_25fe4f7da510 BEFORE INSERT OR UPDATE ON vulnerability_issue_links FOR EACH ROW EXECUTE FUNCTION trigger_25fe4f7da510(); -ALTER TABLE ONLY public.insights - ADD CONSTRAINT fk_rails_5c4391f60a FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_2b8fdc9b4a4e BEFORE INSERT OR UPDATE ON ml_experiment_metadata FOR EACH ROW EXECUTE FUNCTION trigger_2b8fdc9b4a4e(); +CREATE TRIGGER trigger_3691f9f6a69f BEFORE INSERT OR UPDATE ON remote_development_agent_configs FOR EACH ROW EXECUTE FUNCTION trigger_3691f9f6a69f(); --- --- Name: reviews fk_rails_5ca11d8c31; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_3fe922f4db67 BEFORE INSERT OR UPDATE ON vulnerability_merge_request_links FOR EACH ROW EXECUTE FUNCTION trigger_3fe922f4db67(); -ALTER TABLE ONLY public.reviews - ADD CONSTRAINT fk_rails_5ca11d8c31 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_41eaf23bf547 BEFORE INSERT OR UPDATE ON release_links FOR EACH ROW EXECUTE FUNCTION trigger_41eaf23bf547(); +CREATE TRIGGER trigger_43484cb41aca BEFORE INSERT OR UPDATE ON wiki_repository_states FOR EACH ROW EXECUTE FUNCTION trigger_43484cb41aca(); --- --- Name: ci_running_builds fk_rails_5ca491d360; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_44558add1625 BEFORE INSERT OR UPDATE ON merge_request_assignees FOR EACH ROW EXECUTE FUNCTION trigger_44558add1625(); -ALTER TABLE ONLY public.ci_running_builds - ADD CONSTRAINT fk_rails_5ca491d360 FOREIGN KEY (runner_id) REFERENCES public.ci_runners(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_46ebe375f632 BEFORE INSERT OR UPDATE ON epic_issues FOR EACH ROW EXECUTE FUNCTION trigger_46ebe375f632(); +CREATE TRIGGER trigger_49862b4b3035 BEFORE INSERT OR UPDATE ON approval_group_rules_protected_branches FOR EACH ROW EXECUTE FUNCTION trigger_49862b4b3035(); --- --- Name: epic_issues fk_rails_5d942936b4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_49e070da6320 BEFORE INSERT OR UPDATE ON packages_dependency_links FOR EACH ROW EXECUTE FUNCTION trigger_49e070da6320(); -ALTER TABLE ONLY public.epic_issues - ADD CONSTRAINT fk_rails_5d942936b4 FOREIGN KEY (epic_id) REFERENCES public.epics(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_4ad9a52a6614 BEFORE INSERT OR UPDATE ON sbom_occurrences_vulnerabilities FOR EACH ROW EXECUTE FUNCTION trigger_4ad9a52a6614(); +CREATE TRIGGER trigger_4b43790d717f BEFORE INSERT OR UPDATE ON protected_environment_approval_rules FOR EACH ROW EXECUTE FUNCTION trigger_4b43790d717f(); --- --- Name: packages_nuget_symbols fk_rails_5df972da14; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_54707c384ad7 BEFORE INSERT OR UPDATE ON security_orchestration_policy_rule_schedules FOR EACH ROW EXECUTE FUNCTION trigger_54707c384ad7(); -ALTER TABLE ONLY public.packages_nuget_symbols - ADD CONSTRAINT fk_rails_5df972da14 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE SET NULL; +CREATE TRIGGER trigger_56d49f4ed623 BEFORE INSERT OR UPDATE ON workspace_variables FOR EACH ROW EXECUTE FUNCTION trigger_56d49f4ed623(); +CREATE TRIGGER trigger_57ad2742ac16 BEFORE INSERT OR UPDATE ON user_achievements FOR EACH ROW EXECUTE FUNCTION trigger_57ad2742ac16(); --- --- Name: resource_weight_events fk_rails_5eb5cb92a1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_5ca97b87ee30 BEFORE INSERT OR UPDATE ON merge_request_context_commits FOR EACH ROW EXECUTE FUNCTION trigger_5ca97b87ee30(); -ALTER TABLE ONLY public.resource_weight_events - ADD CONSTRAINT fk_rails_5eb5cb92a1 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_5f6432d2dccc BEFORE INSERT OR UPDATE ON operations_strategies_user_lists FOR EACH ROW EXECUTE FUNCTION trigger_5f6432d2dccc(); +CREATE TRIGGER trigger_664594a3d0a7 BEFORE INSERT OR UPDATE ON merge_request_user_mentions FOR EACH ROW EXECUTE FUNCTION trigger_664594a3d0a7(); --- --- Name: observability_logs_issues_connections fk_rails_5f0f58ca3a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_68435a54ee2b BEFORE INSERT OR UPDATE ON packages_debian_project_architectures FOR EACH ROW EXECUTE FUNCTION trigger_68435a54ee2b(); -ALTER TABLE ONLY public.observability_logs_issues_connections - ADD CONSTRAINT fk_rails_5f0f58ca3a FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_6bf50b363152 BEFORE INSERT OR UPDATE ON compliance_framework_security_policies FOR EACH ROW EXECUTE FUNCTION trigger_6bf50b363152(); +CREATE TRIGGER trigger_6c38ba395cc1 BEFORE INSERT OR UPDATE ON error_tracking_error_events FOR EACH ROW EXECUTE FUNCTION trigger_6c38ba395cc1(); --- --- Name: approval_project_rules fk_rails_5fb4dd100b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_6cdea9559242 BEFORE INSERT OR UPDATE ON issue_links FOR EACH ROW EXECUTE FUNCTION trigger_6cdea9559242(); -ALTER TABLE ONLY public.approval_project_rules - ADD CONSTRAINT fk_rails_5fb4dd100b FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_6d6c79ce74e1 BEFORE INSERT OR UPDATE ON protected_environment_deploy_access_levels FOR EACH ROW EXECUTE FUNCTION trigger_6d6c79ce74e1(); +CREATE TRIGGER trigger_70d3f0bba1de BEFORE INSERT OR UPDATE ON compliance_framework_security_policies FOR EACH ROW EXECUTE FUNCTION trigger_70d3f0bba1de(); --- --- Name: incident_management_oncall_participants fk_rails_5fe86ea341; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_740afa9807b8 BEFORE INSERT OR UPDATE ON subscription_user_add_on_assignments FOR EACH ROW EXECUTE FUNCTION trigger_740afa9807b8(); -ALTER TABLE ONLY public.incident_management_oncall_participants - ADD CONSTRAINT fk_rails_5fe86ea341 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_77d9fbad5b12 BEFORE INSERT OR UPDATE ON packages_debian_project_distribution_keys FOR EACH ROW EXECUTE FUNCTION trigger_77d9fbad5b12(); +CREATE TRIGGER trigger_7a8b08eed782 BEFORE INSERT OR UPDATE ON boards_epic_board_positions FOR EACH ROW EXECUTE FUNCTION trigger_7a8b08eed782(); --- --- Name: work_item_parent_links fk_rails_601d5bec3a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_7de792ddbc05 BEFORE INSERT OR UPDATE ON dast_site_validations FOR EACH ROW EXECUTE FUNCTION trigger_7de792ddbc05(); -ALTER TABLE ONLY public.work_item_parent_links - ADD CONSTRAINT fk_rails_601d5bec3a FOREIGN KEY (work_item_id) REFERENCES public.issues(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_84d67ad63e93 BEFORE INSERT OR UPDATE ON wiki_page_slugs FOR EACH ROW EXECUTE FUNCTION trigger_84d67ad63e93(); +CREATE TRIGGER trigger_8a38ce2327de BEFORE INSERT OR UPDATE ON boards_epic_user_preferences FOR EACH ROW EXECUTE FUNCTION trigger_8a38ce2327de(); --- --- Name: system_access_microsoft_graph_access_tokens fk_rails_604908851f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_8ac78f164b2d BEFORE INSERT OR UPDATE ON design_management_repositories FOR EACH ROW EXECUTE FUNCTION trigger_8ac78f164b2d(); -ALTER TABLE ONLY public.system_access_microsoft_graph_access_tokens - ADD CONSTRAINT fk_rails_604908851f FOREIGN KEY (system_access_microsoft_application_id) REFERENCES public.system_access_microsoft_applications(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_8ba31bddd655 BEFORE INSERT OR UPDATE ON vulnerability_occurrence_pipelines FOR EACH ROW EXECUTE FUNCTION trigger_8ba31bddd655(); +CREATE TRIGGER trigger_8d002f38bdef BEFORE INSERT OR UPDATE ON packages_debian_group_components FOR EACH ROW EXECUTE FUNCTION trigger_8d002f38bdef(); --- --- Name: vulnerability_state_transitions fk_rails_60e4899648; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_8d17725116fe BEFORE INSERT OR UPDATE ON merge_request_reviewers FOR EACH ROW EXECUTE FUNCTION trigger_8d17725116fe(); -ALTER TABLE ONLY public.vulnerability_state_transitions - ADD CONSTRAINT fk_rails_60e4899648 FOREIGN KEY (vulnerability_id) REFERENCES public.vulnerabilities(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_8e66b994e8f0 BEFORE INSERT OR UPDATE ON audit_events_streaming_event_type_filters FOR EACH ROW EXECUTE FUNCTION trigger_8e66b994e8f0(); +CREATE TRIGGER trigger_8fbb044c64ad BEFORE INSERT OR UPDATE ON design_management_designs FOR EACH ROW EXECUTE FUNCTION trigger_8fbb044c64ad(); --- --- Name: user_highest_roles fk_rails_60f6c325a6; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_90fa5c6951f1 BEFORE INSERT OR UPDATE ON dast_profiles_tags FOR EACH ROW EXECUTE FUNCTION trigger_90fa5c6951f1(); -ALTER TABLE ONLY public.user_highest_roles - ADD CONSTRAINT fk_rails_60f6c325a6 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_9259aae92378 BEFORE INSERT OR UPDATE ON packages_build_infos FOR EACH ROW EXECUTE FUNCTION trigger_9259aae92378(); +CREATE TRIGGER trigger_94514aeadc50 BEFORE INSERT OR UPDATE ON deployment_approvals FOR EACH ROW EXECUTE FUNCTION trigger_94514aeadc50(); --- --- Name: dependency_proxy_group_settings fk_rails_616ddd680a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_9699ea03bb37 BEFORE INSERT OR UPDATE ON related_epic_links FOR EACH ROW EXECUTE FUNCTION trigger_9699ea03bb37(); -ALTER TABLE ONLY public.dependency_proxy_group_settings - ADD CONSTRAINT fk_rails_616ddd680a FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_96a76ee9f147 BEFORE INSERT OR UPDATE ON design_management_versions FOR EACH ROW EXECUTE FUNCTION trigger_96a76ee9f147(); +CREATE TRIGGER trigger_9e137c16de79 BEFORE INSERT OR UPDATE ON vulnerability_findings_remediations FOR EACH ROW EXECUTE FUNCTION trigger_9e137c16de79(); --- --- Name: group_deploy_tokens fk_rails_61a572b41a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_9f3745f8fe32 BEFORE INSERT OR UPDATE ON merge_requests_closing_issues FOR EACH ROW EXECUTE FUNCTION trigger_9f3745f8fe32(); -ALTER TABLE ONLY public.group_deploy_tokens - ADD CONSTRAINT fk_rails_61a572b41a FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_a1bc7c70cbdf BEFORE INSERT OR UPDATE ON vulnerability_user_mentions FOR EACH ROW EXECUTE FUNCTION trigger_a1bc7c70cbdf(); +CREATE TRIGGER trigger_a253cb3cacdf BEFORE INSERT OR UPDATE ON dora_daily_metrics FOR EACH ROW EXECUTE FUNCTION trigger_a253cb3cacdf(); --- --- Name: sbom_component_versions fk_rails_61a83aa892; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_a4e4fb2451d9 BEFORE INSERT OR UPDATE ON epic_user_mentions FOR EACH ROW EXECUTE FUNCTION trigger_a4e4fb2451d9(); -ALTER TABLE ONLY public.sbom_component_versions - ADD CONSTRAINT fk_rails_61a83aa892 FOREIGN KEY (component_id) REFERENCES public.sbom_components(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_a7e0fb195210 BEFORE INSERT OR UPDATE ON vulnerability_finding_evidences FOR EACH ROW EXECUTE FUNCTION trigger_a7e0fb195210(); +CREATE TRIGGER trigger_af3f17817e4d BEFORE INSERT OR UPDATE ON protected_tag_create_access_levels FOR EACH ROW EXECUTE FUNCTION trigger_af3f17817e4d(); --- --- Name: status_page_published_incidents fk_rails_61e5493940; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_b2612138515d BEFORE INSERT OR UPDATE ON project_relation_exports FOR EACH ROW EXECUTE FUNCTION trigger_b2612138515d(); -ALTER TABLE ONLY public.status_page_published_incidents - ADD CONSTRAINT fk_rails_61e5493940 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_b4520c29ea74 BEFORE INSERT OR UPDATE ON approval_merge_request_rule_sources FOR EACH ROW EXECUTE FUNCTION trigger_b4520c29ea74(); +CREATE TRIGGER trigger_c17a166692a2 BEFORE INSERT OR UPDATE ON audit_events_streaming_headers FOR EACH ROW EXECUTE FUNCTION trigger_c17a166692a2(); --- --- Name: group_ssh_certificates fk_rails_61f9eafcdf; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_c59fe6f31e71 BEFORE INSERT OR UPDATE ON security_orchestration_policy_rule_schedules FOR EACH ROW EXECUTE FUNCTION trigger_c59fe6f31e71(); -ALTER TABLE ONLY public.group_ssh_certificates - ADD CONSTRAINT fk_rails_61f9eafcdf FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_c5eec113ea76 BEFORE INSERT OR UPDATE ON dast_pre_scan_verifications FOR EACH ROW EXECUTE FUNCTION trigger_c5eec113ea76(); +CREATE TRIGGER trigger_c8bc8646bce9 BEFORE INSERT OR UPDATE ON vulnerability_state_transitions FOR EACH ROW EXECUTE FUNCTION trigger_c8bc8646bce9(); --- --- Name: container_repository_states fk_rails_63436c99ce; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_c9090feed334 BEFORE INSERT OR UPDATE ON boards_epic_lists FOR EACH ROW EXECUTE FUNCTION trigger_c9090feed334(); -ALTER TABLE ONLY public.container_repository_states - ADD CONSTRAINT fk_rails_63436c99ce FOREIGN KEY (container_repository_id) REFERENCES public.container_repositories(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_cac7c0698291 BEFORE INSERT OR UPDATE ON evidences FOR EACH ROW EXECUTE FUNCTION trigger_cac7c0698291(); +CREATE TRIGGER trigger_catalog_resource_sync_event_on_project_update AFTER UPDATE ON projects FOR EACH ROW WHEN ((((old.name)::text IS DISTINCT FROM (new.name)::text) OR (old.description IS DISTINCT FROM new.description) OR (old.visibility_level IS DISTINCT FROM new.visibility_level))) EXECUTE FUNCTION insert_catalog_resource_sync_event(); --- --- Name: deployment_clusters fk_rails_6359a164df; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_d4487a75bd44 BEFORE INSERT OR UPDATE ON terraform_state_versions FOR EACH ROW EXECUTE FUNCTION trigger_d4487a75bd44(); -ALTER TABLE ONLY public.deployment_clusters - ADD CONSTRAINT fk_rails_6359a164df FOREIGN KEY (deployment_id) REFERENCES public.deployments(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_d5c895007948 BEFORE INSERT OR UPDATE ON protected_environment_approval_rules FOR EACH ROW EXECUTE FUNCTION trigger_d5c895007948(); +CREATE TRIGGER trigger_dadd660afe2c BEFORE INSERT OR UPDATE ON packages_debian_group_distribution_keys FOR EACH ROW EXECUTE FUNCTION trigger_dadd660afe2c(); --- --- Name: incident_management_pending_issue_escalations fk_rails_636678b3bd; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_dbdd61a66a91 BEFORE INSERT OR UPDATE ON agent_activity_events FOR EACH ROW EXECUTE FUNCTION trigger_dbdd61a66a91(); -ALTER TABLE public.incident_management_pending_issue_escalations - ADD CONSTRAINT fk_rails_636678b3bd FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_dc13168b8025 BEFORE INSERT OR UPDATE ON vulnerability_flags FOR EACH ROW EXECUTE FUNCTION trigger_dc13168b8025(); +CREATE TRIGGER trigger_delete_project_namespace_on_project_delete AFTER DELETE ON projects FOR EACH ROW WHEN ((old.project_namespace_id IS NOT NULL)) EXECUTE FUNCTION delete_associated_project_namespace(); --- --- Name: evidences fk_rails_6388b435a6; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_e0864d1cff37 BEFORE INSERT OR UPDATE ON packages_debian_group_architectures FOR EACH ROW EXECUTE FUNCTION trigger_e0864d1cff37(); -ALTER TABLE ONLY public.evidences - ADD CONSTRAINT fk_rails_6388b435a6 FOREIGN KEY (release_id) REFERENCES public.releases(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_e1da4a738230 BEFORE INSERT OR UPDATE ON vulnerability_external_issue_links FOR EACH ROW EXECUTE FUNCTION trigger_e1da4a738230(); +CREATE TRIGGER trigger_e49ab4d904a0 BEFORE INSERT OR UPDATE ON vulnerability_finding_links FOR EACH ROW EXECUTE FUNCTION trigger_e49ab4d904a0(); --- --- Name: jira_imports fk_rails_63cbe52ada; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_ebab34f83f1d BEFORE INSERT OR UPDATE ON packages_debian_publications FOR EACH ROW EXECUTE FUNCTION trigger_ebab34f83f1d(); -ALTER TABLE ONLY public.jira_imports - ADD CONSTRAINT fk_rails_63cbe52ada FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_f6c61cdddf31 BEFORE INSERT OR UPDATE ON ml_model_metadata FOR EACH ROW EXECUTE FUNCTION trigger_f6c61cdddf31(); +CREATE TRIGGER trigger_f6f59d8216b3 BEFORE INSERT OR UPDATE ON protected_environment_deploy_access_levels FOR EACH ROW EXECUTE FUNCTION trigger_f6f59d8216b3(); --- --- Name: group_deploy_tokens fk_rails_6477b01f6b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_fbd42ed69453 BEFORE INSERT OR UPDATE ON external_status_checks_protected_branches FOR EACH ROW EXECUTE FUNCTION trigger_fbd42ed69453(); -ALTER TABLE ONLY public.group_deploy_tokens - ADD CONSTRAINT fk_rails_6477b01f6b FOREIGN KEY (deploy_token_id) REFERENCES public.deploy_tokens(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_fbd8825b3057 BEFORE INSERT OR UPDATE ON boards_epic_board_labels FOR EACH ROW EXECUTE FUNCTION trigger_fbd8825b3057(); +CREATE TRIGGER trigger_ff16c1fd43ea BEFORE INSERT OR UPDATE ON geo_event_log FOR EACH ROW EXECUTE FUNCTION trigger_ff16c1fd43ea(); --- --- Name: reviews fk_rails_64798be025; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_fff8735b6b9a BEFORE INSERT OR UPDATE ON vulnerability_finding_signatures FOR EACH ROW EXECUTE FUNCTION trigger_fff8735b6b9a(); -ALTER TABLE ONLY public.reviews - ADD CONSTRAINT fk_rails_64798be025 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_has_external_issue_tracker_on_delete AFTER DELETE ON integrations FOR EACH ROW WHEN ((((old.category)::text = 'issue_tracker'::text) AND (old.active = true) AND (old.project_id IS NOT NULL))) EXECUTE FUNCTION set_has_external_issue_tracker(); +CREATE TRIGGER trigger_has_external_issue_tracker_on_insert AFTER INSERT ON integrations FOR EACH ROW WHEN ((((new.category)::text = 'issue_tracker'::text) AND (new.active = true) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION set_has_external_issue_tracker(); --- --- Name: operations_feature_flags fk_rails_648e241be7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_has_external_issue_tracker_on_update AFTER UPDATE ON integrations FOR EACH ROW WHEN ((((new.category)::text = 'issue_tracker'::text) AND (old.active <> new.active) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION set_has_external_issue_tracker(); -ALTER TABLE ONLY public.operations_feature_flags - ADD CONSTRAINT fk_rails_648e241be7 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_has_external_wiki_on_delete AFTER DELETE ON integrations FOR EACH ROW WHEN (((old.type_new = 'Integrations::ExternalWiki'::text) AND (old.project_id IS NOT NULL))) EXECUTE FUNCTION set_has_external_wiki(); +CREATE TRIGGER trigger_has_external_wiki_on_insert AFTER INSERT ON integrations FOR EACH ROW WHEN (((new.active = true) AND (new.type_new = 'Integrations::ExternalWiki'::text) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION set_has_external_wiki(); --- --- Name: board_group_recent_visits fk_rails_64bfc19bc5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_has_external_wiki_on_type_new_updated AFTER UPDATE OF type_new ON integrations FOR EACH ROW WHEN (((new.type_new = 'Integrations::ExternalWiki'::text) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION set_has_external_wiki(); -ALTER TABLE ONLY public.board_group_recent_visits - ADD CONSTRAINT fk_rails_64bfc19bc5 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_has_external_wiki_on_update AFTER UPDATE ON integrations FOR EACH ROW WHEN (((new.type_new = 'Integrations::ExternalWiki'::text) AND (old.active <> new.active) AND (new.project_id IS NOT NULL))) EXECUTE FUNCTION set_has_external_wiki(); +CREATE TRIGGER trigger_insert_or_update_vulnerability_reads_from_occurrences AFTER INSERT OR UPDATE ON vulnerability_occurrences FOR EACH ROW EXECUTE FUNCTION insert_or_update_vulnerability_reads(); --- --- Name: approval_merge_request_rule_sources fk_rails_64e8ed3c7e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_insert_vulnerability_reads_from_vulnerability AFTER UPDATE ON vulnerabilities FOR EACH ROW WHEN (((old.present_on_default_branch IS NOT TRUE) AND (new.present_on_default_branch IS TRUE))) EXECUTE FUNCTION insert_vulnerability_reads_from_vulnerability(); -ALTER TABLE ONLY public.approval_merge_request_rule_sources - ADD CONSTRAINT fk_rails_64e8ed3c7e FOREIGN KEY (approval_project_rule_id) REFERENCES public.approval_project_rules(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_namespaces_traversal_ids_on_update AFTER UPDATE ON namespaces FOR EACH ROW WHEN ((old.traversal_ids IS DISTINCT FROM new.traversal_ids)) EXECUTE FUNCTION insert_namespaces_sync_event(); +CREATE TRIGGER trigger_projects_parent_id_on_insert AFTER INSERT ON projects FOR EACH ROW EXECUTE FUNCTION insert_projects_sync_event(); --- --- Name: approval_project_rules_protected_branches fk_rails_65203aa786; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_projects_parent_id_on_update AFTER UPDATE ON projects FOR EACH ROW WHEN ((old.namespace_id IS DISTINCT FROM new.namespace_id)) EXECUTE FUNCTION insert_projects_sync_event(); -ALTER TABLE ONLY public.approval_project_rules_protected_branches - ADD CONSTRAINT fk_rails_65203aa786 FOREIGN KEY (approval_project_rule_id) REFERENCES public.approval_project_rules(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_sync_issues_dates_with_work_item_dates_sources AFTER INSERT OR UPDATE OF start_date, due_date ON work_item_dates_sources FOR EACH ROW EXECUTE FUNCTION sync_issues_dates_with_work_item_dates_sources(); +CREATE TRIGGER trigger_update_details_on_namespace_insert AFTER INSERT ON namespaces FOR EACH ROW WHEN (((new.type)::text <> 'Project'::text)) EXECUTE FUNCTION update_namespace_details_from_namespaces(); --- --- Name: design_management_versions fk_rails_6574200d99; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_update_details_on_namespace_update AFTER UPDATE ON namespaces FOR EACH ROW WHEN ((((new.type)::text <> 'Project'::text) AND (((old.description)::text IS DISTINCT FROM (new.description)::text) OR (old.description_html IS DISTINCT FROM new.description_html) OR (old.cached_markdown_version IS DISTINCT FROM new.cached_markdown_version)))) EXECUTE FUNCTION update_namespace_details_from_namespaces(); -ALTER TABLE ONLY public.design_management_versions - ADD CONSTRAINT fk_rails_6574200d99 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_update_details_on_project_insert AFTER INSERT ON projects FOR EACH ROW EXECUTE FUNCTION update_namespace_details_from_projects(); +CREATE TRIGGER trigger_update_details_on_project_update AFTER UPDATE ON projects FOR EACH ROW WHEN (((old.description IS DISTINCT FROM new.description) OR (old.description_html IS DISTINCT FROM new.description_html) OR (old.cached_markdown_version IS DISTINCT FROM new.cached_markdown_version))) EXECUTE FUNCTION update_namespace_details_from_projects(); --- --- Name: approval_merge_request_rules_approved_approvers fk_rails_6577725edb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_update_has_issues_on_vulnerability_issue_links_delete AFTER DELETE ON vulnerability_issue_links FOR EACH ROW EXECUTE FUNCTION unset_has_issues_on_vulnerability_reads(); -ALTER TABLE ONLY public.approval_merge_request_rules_approved_approvers - ADD CONSTRAINT fk_rails_6577725edb FOREIGN KEY (approval_merge_request_rule_id) REFERENCES public.approval_merge_request_rules(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_update_has_issues_on_vulnerability_issue_links_update AFTER INSERT ON vulnerability_issue_links FOR EACH ROW EXECUTE FUNCTION set_has_issues_on_vulnerability_reads(); +CREATE TRIGGER trigger_update_has_merge_request_on_vulnerability_mr_links_dele AFTER DELETE ON vulnerability_merge_request_links FOR EACH ROW EXECUTE FUNCTION unset_has_merge_request_on_vulnerability_reads(); --- --- Name: project_relation_export_uploads fk_rails_660ada90c9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER trigger_update_has_merge_request_on_vulnerability_mr_links_upda AFTER INSERT ON vulnerability_merge_request_links FOR EACH ROW EXECUTE FUNCTION set_has_merge_request_on_vulnerability_reads(); -ALTER TABLE ONLY public.project_relation_export_uploads - ADD CONSTRAINT fk_rails_660ada90c9 FOREIGN KEY (project_relation_export_id) REFERENCES public.project_relation_exports(id) ON DELETE CASCADE; +CREATE TRIGGER trigger_update_location_on_vulnerability_occurrences_update AFTER UPDATE ON vulnerability_occurrences FOR EACH ROW WHEN (((new.report_type = ANY (ARRAY[2, 7])) AND (((old.location ->> 'image'::text) IS DISTINCT FROM (new.location ->> 'image'::text)) OR (((old.location -> 'kubernetes_resource'::text) ->> 'agent_id'::text) IS DISTINCT FROM ((new.location -> 'kubernetes_resource'::text) ->> 'agent_id'::text))))) EXECUTE FUNCTION update_location_from_vulnerability_occurrences(); +CREATE TRIGGER trigger_update_vulnerability_reads_on_vulnerability_update AFTER UPDATE ON vulnerabilities FOR EACH ROW WHEN (((old.present_on_default_branch IS TRUE) AND ((old.severity IS DISTINCT FROM new.severity) OR (old.state IS DISTINCT FROM new.state) OR (old.resolved_on_default_branch IS DISTINCT FROM new.resolved_on_default_branch)))) EXECUTE FUNCTION update_vulnerability_reads_from_vulnerability(); --- --- Name: operations_feature_flags_clients fk_rails_6650ed902c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +CREATE TRIGGER users_loose_fk_trigger AFTER DELETE ON users REFERENCING OLD TABLE AS old_table FOR EACH STATEMENT EXECUTE FUNCTION insert_into_loose_foreign_keys_deleted_records(); -ALTER TABLE ONLY public.operations_feature_flags_clients - ADD CONSTRAINT fk_rails_6650ed902c FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY deployments + ADD CONSTRAINT fk_009fd21147 FOREIGN KEY (environment_id) REFERENCES environments(id) ON DELETE CASCADE; +ALTER TABLE ONLY epics + ADD CONSTRAINT fk_013c9f36ca FOREIGN KEY (due_date_sourcing_epic_id) REFERENCES epics(id) ON DELETE SET NULL; --- --- Name: namespace_admin_notes fk_rails_666166ea7b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY environments + ADD CONSTRAINT fk_01a033a308 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.namespace_admin_notes - ADD CONSTRAINT fk_rails_666166ea7b FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY agent_user_access_project_authorizations + ADD CONSTRAINT fk_0250c0ad51 FOREIGN KEY (agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; +ALTER TABLE ONLY cluster_agent_url_configurations + ADD CONSTRAINT fk_02c2a4f060 FOREIGN KEY (agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; --- --- Name: ci_runner_machines fk_rails_666b61f04f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY incident_management_escalation_rules + ADD CONSTRAINT fk_0314ee86eb FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.ci_runner_machines - ADD CONSTRAINT fk_rails_666b61f04f FOREIGN KEY (runner_id) REFERENCES public.ci_runners(id) ON DELETE CASCADE; +ALTER TABLE ONLY service_desk_settings + ADD CONSTRAINT fk_03afb71f06 FOREIGN KEY (file_template_project_id) REFERENCES projects(id) ON DELETE SET NULL; +ALTER TABLE ONLY design_management_designs_versions + ADD CONSTRAINT fk_03c671965c FOREIGN KEY (design_id) REFERENCES design_management_designs(id) ON DELETE CASCADE; --- --- Name: approval_group_rules fk_rails_6727675176; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY external_status_checks_protected_branches + ADD CONSTRAINT fk_0480f2308c FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.approval_group_rules - ADD CONSTRAINT fk_rails_6727675176 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY sbom_occurrences_vulnerabilities + ADD CONSTRAINT fk_058f258503 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY analytics_dashboards_pointers + ADD CONSTRAINT fk_05d96922bd FOREIGN KEY (target_project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: jira_imports fk_rails_675d38c03b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY issues + ADD CONSTRAINT fk_05f1e72feb FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.jira_imports - ADD CONSTRAINT fk_rails_675d38c03b FOREIGN KEY (label_id) REFERENCES public.labels(id) ON DELETE SET NULL; +ALTER TABLE ONLY merge_requests + ADD CONSTRAINT fk_06067f5644 FOREIGN KEY (latest_merge_request_diff_id) REFERENCES merge_request_diffs(id) ON DELETE SET NULL; +ALTER TABLE ONLY sbom_occurrences_vulnerabilities + ADD CONSTRAINT fk_07b81e3a81 FOREIGN KEY (vulnerability_id) REFERENCES vulnerabilities(id) ON DELETE CASCADE; --- --- Name: vulnerability_findings_remediations fk_rails_681c85ae0f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ai_agent_version_attachments + ADD CONSTRAINT fk_07db0a0e5b FOREIGN KEY (ai_agent_version_id) REFERENCES ai_agent_versions(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.vulnerability_findings_remediations - ADD CONSTRAINT fk_rails_681c85ae0f FOREIGN KEY (vulnerability_remediation_id) REFERENCES public.vulnerability_remediations(id) ON DELETE CASCADE; +ALTER TABLE ONLY abuse_report_notes + ADD CONSTRAINT fk_0801b83126 FOREIGN KEY (updated_by_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_issue_links + ADD CONSTRAINT fk_081e11030b FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: resource_iteration_events fk_rails_6830c13ac1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_stage_event_hashes + ADD CONSTRAINT fk_0839874e4f FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.resource_iteration_events - ADD CONSTRAINT fk_rails_6830c13ac1 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY abuse_report_user_mentions + ADD CONSTRAINT fk_088018ecd8 FOREIGN KEY (abuse_report_id) REFERENCES abuse_reports(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_assignees + ADD CONSTRAINT fk_088f01d08d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: plan_limits fk_rails_69f8b6184f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY observability_traces_issues_connections + ADD CONSTRAINT fk_08c2664321 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.plan_limits - ADD CONSTRAINT fk_rails_69f8b6184f FOREIGN KEY (plan_id) REFERENCES public.plans(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_assignment_events + ADD CONSTRAINT fk_08f7602bfd FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY remote_development_agent_configs + ADD CONSTRAINT fk_0a3c0ada56 FOREIGN KEY (cluster_agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; --- --- Name: ci_cost_settings fk_rails_6a70651f75; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY dast_sites + ADD CONSTRAINT fk_0a57f2271b FOREIGN KEY (dast_site_validation_id) REFERENCES dast_site_validations(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.ci_cost_settings - ADD CONSTRAINT fk_rails_6a70651f75 FOREIGN KEY (runner_id) REFERENCES public.ci_runners(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_saved_replies + ADD CONSTRAINT fk_0ace76afbb FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE NOT VALID; +ALTER TABLE ONLY approval_group_rules_protected_branches + ADD CONSTRAINT fk_0b85e6c388 FOREIGN KEY (protected_branch_id) REFERENCES protected_branches(id) ON DELETE CASCADE; --- --- Name: operations_feature_flags_issues fk_rails_6a8856ca4f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY issue_customer_relations_contacts + ADD CONSTRAINT fk_0c0037f723 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.operations_feature_flags_issues - ADD CONSTRAINT fk_rails_6a8856ca4f FOREIGN KEY (feature_flag_id) REFERENCES public.operations_feature_flags(id) ON DELETE CASCADE; +ALTER TABLE ONLY remote_development_namespace_cluster_agent_mappings + ADD CONSTRAINT fk_0c483ecb9d FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY zoekt_replicas + ADD CONSTRAINT fk_0c62cc0251 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: import_source_users fk_rails_6aee6cd676; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ssh_signatures + ADD CONSTRAINT fk_0c83baaa5f FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.import_source_users - ADD CONSTRAINT fk_rails_6aee6cd676 FOREIGN KEY (placeholder_user_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER TABLE ONLY web_hooks + ADD CONSTRAINT fk_0c8ca6d9d1 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY lists + ADD CONSTRAINT fk_0d3f677137 FOREIGN KEY (board_id) REFERENCES boards(id) ON DELETE CASCADE; --- --- Name: ml_experiment_metadata fk_rails_6b39844d44; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY subscription_user_add_on_assignments + ADD CONSTRAINT fk_0d89020c49 FOREIGN KEY (add_on_purchase_id) REFERENCES subscription_add_on_purchases(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.ml_experiment_metadata - ADD CONSTRAINT fk_rails_6b39844d44 FOREIGN KEY (experiment_id) REFERENCES public.ml_experiments(id) ON DELETE CASCADE; +ALTER TABLE ONLY approval_project_rules_users + ADD CONSTRAINT fk_0dfcd9e339 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY security_policy_project_links + ADD CONSTRAINT fk_0eba4d5d71 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: error_tracking_errors fk_rails_6b41f837ba; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY deployment_approvals + ADD CONSTRAINT fk_0f58311058 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.error_tracking_errors - ADD CONSTRAINT fk_rails_6b41f837ba FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_pages_metadata + ADD CONSTRAINT fk_0fd5b22688 FOREIGN KEY (pages_deployment_id) REFERENCES pages_deployments(id) ON DELETE SET NULL; +ALTER TABLE ONLY audit_events_streaming_event_type_filters + ADD CONSTRAINT fk_107946dffb FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: ml_model_version_metadata fk_rails_6b8fcb2af1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY group_deletion_schedules + ADD CONSTRAINT fk_11e3ebfcdd FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.ml_model_version_metadata - ADD CONSTRAINT fk_rails_6b8fcb2af1 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY protected_environment_deploy_access_levels + ADD CONSTRAINT fk_11ede44198 FOREIGN KEY (protected_environment_group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY remote_development_namespace_cluster_agent_mappings + ADD CONSTRAINT fk_124d8167c5 FOREIGN KEY (creator_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: prometheus_alerts fk_rails_6d9b283465; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY cluster_agent_url_configurations + ADD CONSTRAINT fk_12d4a33b65 FOREIGN KEY (created_by_user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.prometheus_alerts - ADD CONSTRAINT fk_rails_6d9b283465 FOREIGN KEY (environment_id) REFERENCES public.environments(id) ON DELETE CASCADE; +ALTER TABLE ONLY member_approvals + ADD CONSTRAINT fk_1383c72212 FOREIGN KEY (member_namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY audit_events_streaming_headers + ADD CONSTRAINT fk_1413743b7d FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: term_agreements fk_rails_6ea6520e4a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY approval_group_rules + ADD CONSTRAINT fk_1485c451e3 FOREIGN KEY (scan_result_policy_id) REFERENCES scan_result_policies(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.term_agreements - ADD CONSTRAINT fk_rails_6ea6520e4a FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY ldap_group_links + ADD CONSTRAINT fk_14a86de4b3 FOREIGN KEY (member_role_id) REFERENCES member_roles(id) ON DELETE SET NULL; +ALTER TABLE ONLY catalog_resource_versions + ADD CONSTRAINT fk_15376d917e FOREIGN KEY (release_id) REFERENCES releases(id) ON DELETE CASCADE; --- --- Name: project_compliance_framework_settings fk_rails_6f5294f16c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_request_blocks + ADD CONSTRAINT fk_1551efdd17 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.project_compliance_framework_settings - ADD CONSTRAINT fk_rails_6f5294f16c FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY protected_branch_push_access_levels + ADD CONSTRAINT fk_15d2a7a4ae FOREIGN KEY (deploy_key_id) REFERENCES keys(id) ON DELETE CASCADE; +ALTER TABLE ONLY user_achievements + ADD CONSTRAINT fk_15d6451a81 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: users_security_dashboard_projects fk_rails_6f6cf8e66e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY internal_ids + ADD CONSTRAINT fk_162941d509 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.users_security_dashboard_projects - ADD CONSTRAINT fk_rails_6f6cf8e66e FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY incident_management_timeline_events + ADD CONSTRAINT fk_17a5fafbd4 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY scan_result_policy_violations + ADD CONSTRAINT fk_17ce579abf FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; --- --- Name: analytics_dashboards_pointers fk_rails_7027b7eaa9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY incident_management_timeline_events + ADD CONSTRAINT fk_1800597ef9 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.analytics_dashboards_pointers - ADD CONSTRAINT fk_rails_7027b7eaa9 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY terraform_state_versions + ADD CONSTRAINT fk_180cde327a FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_features + ADD CONSTRAINT fk_18513d9b92 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: ci_builds_runner_session fk_rails_70707857d3_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY abuse_report_events + ADD CONSTRAINT fk_18c774c06b FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.ci_builds_runner_session - ADD CONSTRAINT fk_rails_70707857d3_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE p_ci_pipelines + ADD CONSTRAINT fk_190998ef09 FOREIGN KEY (external_pull_request_id) REFERENCES external_pull_requests(id) ON DELETE SET NULL; +ALTER TABLE ONLY analytics_devops_adoption_segments + ADD CONSTRAINT fk_190a24754d FOREIGN KEY (display_namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: list_user_preferences fk_rails_70b2ef5ce2; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_statistics + ADD CONSTRAINT fk_198ad46fdc FOREIGN KEY (root_namespace_id) REFERENCES namespaces(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.list_user_preferences - ADD CONSTRAINT fk_rails_70b2ef5ce2 FOREIGN KEY (list_id) REFERENCES public.lists(id) ON DELETE CASCADE; +ALTER TABLE ONLY approval_policy_rule_project_links + ADD CONSTRAINT fk_1c78796d52 FOREIGN KEY (approval_policy_rule_id) REFERENCES approval_policy_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY issue_links + ADD CONSTRAINT fk_1cce06b868 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: issue_search_data fk_rails_7149dd9eee; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY agent_project_authorizations + ADD CONSTRAINT fk_1d30bb4987 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE public.issue_search_data - ADD CONSTRAINT fk_rails_7149dd9eee FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY ai_agent_version_attachments + ADD CONSTRAINT fk_1d4253673b FOREIGN KEY (ai_vectorizable_file_id) REFERENCES ai_vectorizable_files(id) ON DELETE CASCADE; +ALTER TABLE ONLY design_management_versions + ADD CONSTRAINT fk_1dccb304f8 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: project_custom_attributes fk_rails_719c3dccc5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY boards + ADD CONSTRAINT fk_1e9a074a35 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.project_custom_attributes - ADD CONSTRAINT fk_rails_719c3dccc5 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY zoekt_enabled_namespaces + ADD CONSTRAINT fk_1effa65b25 FOREIGN KEY (root_namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY import_placeholder_memberships + ADD CONSTRAINT fk_1f4659deee FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: ci_pending_builds fk_rails_725a2644a3_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY epics + ADD CONSTRAINT fk_1fbed67632 FOREIGN KEY (start_date_sourcing_milestone_id) REFERENCES milestones(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.ci_pending_builds - ADD CONSTRAINT fk_rails_725a2644a3_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY ghost_user_migrations + ADD CONSTRAINT fk_202e642a2f FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY coverage_fuzzing_corpuses + ADD CONSTRAINT fk_204d40056a FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: security_findings fk_rails_729b763a54; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY namespace_settings + ADD CONSTRAINT fk_20cf0eb2f9 FOREIGN KEY (default_compliance_framework_id) REFERENCES compliance_management_frameworks(id) ON DELETE SET NULL; -ALTER TABLE public.security_findings - ADD CONSTRAINT fk_rails_729b763a54 FOREIGN KEY (scanner_id) REFERENCES public.vulnerability_scanners(id) ON DELETE CASCADE; +ALTER TABLE p_ci_build_trace_metadata + ADD CONSTRAINT fk_21d25cac1a_p FOREIGN KEY (partition_id, trace_artifact_id) REFERENCES p_ci_job_artifacts(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY users_star_projects + ADD CONSTRAINT fk_22cd27ddfc FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: custom_emoji fk_rails_745925b412; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY alert_management_alerts + ADD CONSTRAINT fk_2358b75436 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.custom_emoji - ADD CONSTRAINT fk_rails_745925b412 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY design_management_designs + ADD CONSTRAINT fk_239cd63678 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY audit_events_streaming_http_instance_namespace_filters + ADD CONSTRAINT fk_23f3ab7df0 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: boards_epic_board_labels fk_rails_7471128a8e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY import_failures + ADD CONSTRAINT fk_24b824da43 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.boards_epic_board_labels - ADD CONSTRAINT fk_rails_7471128a8e FOREIGN KEY (epic_board_id) REFERENCES public.boards_epic_boards(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_ci_cd_settings + ADD CONSTRAINT fk_24c15d2f2e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY agent_activity_events + ADD CONSTRAINT fk_256c631779 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE SET NULL; --- --- Name: dast_site_profiles fk_rails_747dc64abc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY zoekt_repositories + ADD CONSTRAINT fk_25a92aeccd FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.dast_site_profiles - ADD CONSTRAINT fk_rails_747dc64abc FOREIGN KEY (dast_site_id) REFERENCES public.dast_sites(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_pipelines + ADD CONSTRAINT fk_262d4c2d19_p FOREIGN KEY (auto_canceled_by_partition_id, auto_canceled_by_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL; +ALTER TABLE ONLY ci_pipelines + ADD CONSTRAINT fk_262d4c2d19_p_tmp FOREIGN KEY (auto_canceled_by_partition_id, auto_canceled_by_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL NOT VALID; --- --- Name: merge_request_context_commit_diff_files fk_rails_74a00a1787; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY user_namespace_callouts + ADD CONSTRAINT fk_27a69fd1bd FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.merge_request_context_commit_diff_files - ADD CONSTRAINT fk_rails_74a00a1787 FOREIGN KEY (merge_request_context_commit_id) REFERENCES public.merge_request_context_commits(id) ON DELETE CASCADE; +ALTER TABLE ONLY work_item_dates_sources + ADD CONSTRAINT fk_283fb4ad36 FOREIGN KEY (start_date_sourcing_milestone_id) REFERENCES milestones(id) ON DELETE SET NULL; +ALTER TABLE ONLY project_group_links + ADD CONSTRAINT fk_28a1244b01 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE NOT VALID; --- --- Name: audit_events_streaming_http_group_namespace_filters fk_rails_74a28d2432; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_requests_compliance_violations + ADD CONSTRAINT fk_290ec1ab02 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.audit_events_streaming_http_group_namespace_filters - ADD CONSTRAINT fk_rails_74a28d2432 FOREIGN KEY (external_audit_event_destination_id) REFERENCES public.audit_events_external_audit_event_destinations(id) ON DELETE CASCADE; +ALTER TABLE ONLY coverage_fuzzing_corpuses + ADD CONSTRAINT fk_29f6f15f82 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY resource_link_events + ADD CONSTRAINT fk_2a039c40f4 FOREIGN KEY (system_note_metadata_id) REFERENCES system_note_metadata(id) ON DELETE CASCADE; --- --- Name: group_crm_settings fk_rails_74fdf2f13d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ml_candidates + ADD CONSTRAINT fk_2a0421d824 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.group_crm_settings - ADD CONSTRAINT fk_rails_74fdf2f13d FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY approval_group_rules + ADD CONSTRAINT fk_2a74c6e52d FOREIGN KEY (approval_policy_rule_id) REFERENCES approval_policy_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY agent_group_authorizations + ADD CONSTRAINT fk_2c9f941965 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: pm_package_version_licenses fk_rails_7520ea026d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY deployment_approvals + ADD CONSTRAINT fk_2d060dfc73 FOREIGN KEY (deployment_id) REFERENCES deployments(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.pm_package_version_licenses - ADD CONSTRAINT fk_rails_7520ea026d FOREIGN KEY (pm_license_id) REFERENCES public.pm_licenses(id) ON DELETE CASCADE; +ALTER TABLE ONLY notes + ADD CONSTRAINT fk_2e82291620 FOREIGN KEY (review_id) REFERENCES reviews(id) ON DELETE SET NULL; +ALTER TABLE ONLY lfs_objects_projects + ADD CONSTRAINT fk_2eb33f7a78 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE NOT VALID; --- --- Name: incident_management_timeline_event_tag_links fk_rails_753b8b6ee3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_merge_request_links + ADD CONSTRAINT fk_2ef3954596 FOREIGN KEY (vulnerability_id) REFERENCES vulnerabilities(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.incident_management_timeline_event_tag_links - ADD CONSTRAINT fk_rails_753b8b6ee3 FOREIGN KEY (timeline_event_tag_id) REFERENCES public.incident_management_timeline_event_tags(id) ON DELETE CASCADE; +ALTER TABLE ONLY duo_workflows_workflows + ADD CONSTRAINT fk_2f6398d8ee FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY members + ADD CONSTRAINT fk_2f85abf8f1 FOREIGN KEY (member_namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: release_links fk_rails_753be7ae29; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY group_group_links + ADD CONSTRAINT fk_2fbc7071a3 FOREIGN KEY (member_role_id) REFERENCES member_roles(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.release_links - ADD CONSTRAINT fk_rails_753be7ae29 FOREIGN KEY (release_id) REFERENCES public.releases(id) ON DELETE CASCADE; +ALTER TABLE ONLY zoekt_replicas + ADD CONSTRAINT fk_3035f4b498 FOREIGN KEY (zoekt_enabled_namespace_id) REFERENCES zoekt_enabled_namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY analytics_cycle_analytics_group_stages + ADD CONSTRAINT fk_3078345d6d FOREIGN KEY (stage_event_hash_id) REFERENCES analytics_cycle_analytics_stage_event_hashes(id) ON DELETE CASCADE; --- --- Name: milestone_releases fk_rails_754f27dbfa; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY oauth_device_grants + ADD CONSTRAINT fk_308d5b76fe FOREIGN KEY (application_id) REFERENCES oauth_applications(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.milestone_releases - ADD CONSTRAINT fk_rails_754f27dbfa FOREIGN KEY (release_id) REFERENCES public.releases(id) ON DELETE CASCADE; +ALTER TABLE ONLY lists + ADD CONSTRAINT fk_30f2a831f4 FOREIGN KEY (iteration_id) REFERENCES sprints(id) ON DELETE CASCADE; +ALTER TABLE ONLY approvals + ADD CONSTRAINT fk_310d714958 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; --- --- Name: resource_label_events fk_rails_75efb0a653; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY namespaces + ADD CONSTRAINT fk_319256d87a FOREIGN KEY (file_template_project_id) REFERENCES projects(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.resource_label_events - ADD CONSTRAINT fk_rails_75efb0a653 FOREIGN KEY (epic_id) REFERENCES public.epics(id) ON DELETE CASCADE; +ALTER TABLE ONLY design_management_repositories + ADD CONSTRAINT fk_335d4698e2 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY issue_tracker_data + ADD CONSTRAINT fk_33921c0ee1 FOREIGN KEY (integration_id) REFERENCES integrations(id) ON DELETE CASCADE; --- --- Name: x509_certificates fk_rails_76479fb5b4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY user_project_callouts + ADD CONSTRAINT fk_33b4814f6b FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.x509_certificates - ADD CONSTRAINT fk_rails_76479fb5b4 FOREIGN KEY (x509_issuer_id) REFERENCES public.x509_issuers(id) ON DELETE CASCADE; +ALTER TABLE ONLY namespaces + ADD CONSTRAINT fk_3448c97865 FOREIGN KEY (push_rule_id) REFERENCES push_rules(id) ON DELETE SET NULL; +ALTER TABLE ONLY project_topics + ADD CONSTRAINT fk_34af9ab07a FOREIGN KEY (topic_id) REFERENCES topics(id) ON DELETE CASCADE; --- --- Name: pages_domain_acme_orders fk_rails_76581b1c16; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY saml_providers + ADD CONSTRAINT fk_351dde3a84 FOREIGN KEY (member_role_id) REFERENCES member_roles(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.pages_domain_acme_orders - ADD CONSTRAINT fk_rails_76581b1c16 FOREIGN KEY (pages_domain_id) REFERENCES public.pages_domains(id) ON DELETE CASCADE; +ALTER TABLE ONLY epics + ADD CONSTRAINT fk_3654b61b03 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY sprints + ADD CONSTRAINT fk_365d1db505 FOREIGN KEY (iterations_cadence_id) REFERENCES iterations_cadences(id) ON DELETE CASCADE; --- --- Name: packages_debian_publications fk_rails_7668c1d606; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY operations_feature_flags_issues + ADD CONSTRAINT fk_3685a990ae FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_debian_publications - ADD CONSTRAINT fk_rails_7668c1d606 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY push_event_payloads + ADD CONSTRAINT fk_36c74129da FOREIGN KEY (event_id) REFERENCES events(id) ON DELETE CASCADE; +ALTER TABLE ONLY protected_tag_create_access_levels + ADD CONSTRAINT fk_386a642e13 FOREIGN KEY (deploy_key_id) REFERENCES keys(id) ON DELETE CASCADE; --- --- Name: boards_epic_user_preferences fk_rails_76c4e9732d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY incident_management_timeline_events + ADD CONSTRAINT fk_38a74279df FOREIGN KEY (updated_by_user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.boards_epic_user_preferences - ADD CONSTRAINT fk_rails_76c4e9732d FOREIGN KEY (epic_id) REFERENCES public.epics(id) ON DELETE CASCADE; +ALTER TABLE ONLY import_export_uploads + ADD CONSTRAINT fk_38e11735aa FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY approval_group_rules_users + ADD CONSTRAINT fk_3995d73930 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: packages_debian_group_distribution_keys fk_rails_779438f163; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY bulk_import_exports + ADD CONSTRAINT fk_39c726d3b5 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_debian_group_distribution_keys - ADD CONSTRAINT fk_rails_779438f163 FOREIGN KEY (distribution_id) REFERENCES public.packages_debian_group_distributions(id) ON DELETE CASCADE; +ALTER TABLE ONLY ml_model_versions + ADD CONSTRAINT fk_39f8aa0b8a FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE SET NULL; +ALTER TABLE p_ci_builds + ADD CONSTRAINT fk_3a9eaa254d_p FOREIGN KEY (partition_id, stage_id) REFERENCES p_ci_stages(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; --- --- Name: terraform_states fk_rails_78f54ca485; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY draft_notes + ADD CONSTRAINT fk_3ac2bcb746 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.terraform_states - ADD CONSTRAINT fk_rails_78f54ca485 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY agent_activity_events + ADD CONSTRAINT fk_3af186389b FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE SET NULL; +ALTER TABLE ONLY protected_environment_approval_rules + ADD CONSTRAINT fk_3b3f2f0470 FOREIGN KEY (protected_environment_group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: software_license_policies fk_rails_7a7a2a92de; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY issues + ADD CONSTRAINT fk_3b8c72ea56 FOREIGN KEY (sprint_id) REFERENCES sprints(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.software_license_policies - ADD CONSTRAINT fk_rails_7a7a2a92de FOREIGN KEY (software_license_id) REFERENCES public.software_licenses(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_reviewers + ADD CONSTRAINT fk_3b8e02a846 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY epics + ADD CONSTRAINT fk_3c1fd1cccc FOREIGN KEY (due_date_sourcing_milestone_id) REFERENCES milestones(id) ON DELETE SET NULL; --- --- Name: project_repositories fk_rails_7a810d4121; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY release_links + ADD CONSTRAINT fk_3cb34866ac FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.project_repositories - ADD CONSTRAINT fk_rails_7a810d4121 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY bulk_import_export_uploads + ADD CONSTRAINT fk_3cbf0b9a2e FOREIGN KEY (batch_id) REFERENCES bulk_import_export_batches(id) ON DELETE CASCADE; +ALTER TABLE ONLY compliance_framework_security_policies + ADD CONSTRAINT fk_3ce58167f1 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: operations_scopes fk_rails_7a9358853b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE p_ci_pipelines + ADD CONSTRAINT fk_3d34ab2e06 FOREIGN KEY (pipeline_schedule_id) REFERENCES ci_pipeline_schedules(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.operations_scopes - ADD CONSTRAINT fk_rails_7a9358853b FOREIGN KEY (strategy_id) REFERENCES public.operations_strategies(id) ON DELETE CASCADE; +ALTER TABLE ONLY scan_result_policy_violations + ADD CONSTRAINT fk_3d58aa6aee FOREIGN KEY (approval_policy_rule_id) REFERENCES approval_policy_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY wiki_page_slugs + ADD CONSTRAINT fk_3d71295ac9 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: milestone_releases fk_rails_7ae0756a2d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY security_orchestration_policy_rule_schedules + ADD CONSTRAINT fk_3e78b9a150 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.milestone_releases - ADD CONSTRAINT fk_rails_7ae0756a2d FOREIGN KEY (milestone_id) REFERENCES public.milestones(id) ON DELETE CASCADE; +ALTER TABLE ONLY compliance_checks + ADD CONSTRAINT fk_3fbfa4295c FOREIGN KEY (requirement_id) REFERENCES compliance_requirements(id) ON DELETE CASCADE; +ALTER TABLE ONLY abuse_reports + ADD CONSTRAINT fk_3fe6467b93 FOREIGN KEY (assignee_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: scan_execution_policy_rules fk_rails_7be2571ecf; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY protected_environment_approval_rules + ADD CONSTRAINT fk_405568b491 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.scan_execution_policy_rules - ADD CONSTRAINT fk_rails_7be2571ecf FOREIGN KEY (security_policy_id) REFERENCES public.security_policies(id) ON DELETE CASCADE; +ALTER TABLE ONLY subscription_add_on_purchases + ADD CONSTRAINT fk_410004d68b FOREIGN KEY (subscription_add_on_id) REFERENCES subscription_add_ons(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_pipeline_schedule_variables + ADD CONSTRAINT fk_41c35fda51 FOREIGN KEY (pipeline_schedule_id) REFERENCES ci_pipeline_schedules(id) ON DELETE CASCADE; --- --- Name: resource_state_events fk_rails_7ddc5f7457; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY namespace_bans + ADD CONSTRAINT fk_4275fbb1d7 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.resource_state_events - ADD CONSTRAINT fk_rails_7ddc5f7457 FOREIGN KEY (source_merge_request_id) REFERENCES public.merge_requests(id) ON DELETE SET NULL; +ALTER TABLE ONLY geo_event_log + ADD CONSTRAINT fk_42c3b54bed FOREIGN KEY (cache_invalidation_event_id) REFERENCES geo_cache_invalidation_events(id) ON DELETE CASCADE; +ALTER TABLE ONLY remote_mirrors + ADD CONSTRAINT fk_43a9aa4ca8 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: audit_events_group_external_streaming_destinations fk_rails_7dffb88f29; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY abuse_report_notes + ADD CONSTRAINT fk_44166fe70f FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.audit_events_group_external_streaming_destinations - ADD CONSTRAINT fk_rails_7dffb88f29 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY incident_management_timeline_events + ADD CONSTRAINT fk_4432fc4d78 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY todos + ADD CONSTRAINT fk_45054f9c45 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: personal_access_token_last_used_ips fk_rails_7e650a7967; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY security_policy_requirements + ADD CONSTRAINT fk_458f7f5ad5 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.personal_access_token_last_used_ips - ADD CONSTRAINT fk_rails_7e650a7967 FOREIGN KEY (personal_access_token_id) REFERENCES public.personal_access_tokens(id) ON DELETE CASCADE; +ALTER TABLE ONLY releases + ADD CONSTRAINT fk_47fe2a0596 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY workspace_variables + ADD CONSTRAINT fk_494e093520 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: clusters_kubernetes_namespaces fk_rails_7e7688ecaf; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY cluster_agent_url_configurations + ADD CONSTRAINT fk_49b126e246 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.clusters_kubernetes_namespaces - ADD CONSTRAINT fk_rails_7e7688ecaf FOREIGN KEY (cluster_id) REFERENCES public.clusters(id) ON DELETE CASCADE; +ALTER TABLE ONLY user_namespace_callouts + ADD CONSTRAINT fk_4b1257f385 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY sbom_occurrences + ADD CONSTRAINT fk_4b88e5b255 FOREIGN KEY (component_version_id) REFERENCES sbom_component_versions(id) ON DELETE CASCADE; --- --- Name: security_policies fk_rails_802ceea0c8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY namespace_commit_emails + ADD CONSTRAINT fk_4d6ba63ba5 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.security_policies - ADD CONSTRAINT fk_rails_802ceea0c8 FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES public.security_orchestration_policy_configurations(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerabilities + ADD CONSTRAINT fk_4e64972902 FOREIGN KEY (finding_id) REFERENCES vulnerability_occurrences(id) ON DELETE CASCADE; +ALTER TABLE ONLY ml_model_versions + ADD CONSTRAINT fk_4e8b59e7a8 FOREIGN KEY (model_id) REFERENCES ml_models(id) ON DELETE CASCADE; --- --- Name: dependency_proxy_manifest_states fk_rails_806cf07a3c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY user_achievements + ADD CONSTRAINT fk_4efde02858 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.dependency_proxy_manifest_states - ADD CONSTRAINT fk_rails_806cf07a3c FOREIGN KEY (dependency_proxy_manifest_id) REFERENCES public.dependency_proxy_manifests(id) ON DELETE CASCADE; +ALTER TABLE ONLY approval_group_rules_protected_branches + ADD CONSTRAINT fk_4f85f13b20 FOREIGN KEY (approval_group_rule_id) REFERENCES approval_group_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_compliance_standards_adherence + ADD CONSTRAINT fk_4fd1d9d9b0 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE SET NULL; --- --- Name: ci_job_artifact_states fk_rails_80a9cba3b2_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_reads + ADD CONSTRAINT fk_5001652292 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.ci_job_artifact_states - ADD CONSTRAINT fk_rails_80a9cba3b2_p FOREIGN KEY (partition_id, job_artifact_id) REFERENCES public.p_ci_job_artifacts(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY approval_group_rules_groups + ADD CONSTRAINT fk_50edc8134e FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY approval_group_rules_protected_branches + ADD CONSTRAINT fk_514003db08 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: approval_merge_request_rules_users fk_rails_80e6801803; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY alert_management_alerts + ADD CONSTRAINT fk_51ab4b6089 FOREIGN KEY (prometheus_alert_id) REFERENCES prometheus_alerts(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.approval_merge_request_rules_users - ADD CONSTRAINT fk_rails_80e6801803 FOREIGN KEY (approval_merge_request_rule_id) REFERENCES public.approval_merge_request_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY deploy_tokens + ADD CONSTRAINT fk_51bf7bfb69 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY path_locks + ADD CONSTRAINT fk_5265c98f24 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: audit_events_instance_streaming_event_type_filters fk_rails_80e948655b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY agent_user_access_group_authorizations + ADD CONSTRAINT fk_53fd98ccbf FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.audit_events_instance_streaming_event_type_filters - ADD CONSTRAINT fk_rails_80e948655b FOREIGN KEY (external_streaming_destination_id) REFERENCES public.audit_events_instance_external_streaming_destinations(id) ON DELETE CASCADE; +ALTER TABLE ONLY group_crm_settings + ADD CONSTRAINT fk_54592e5f57 FOREIGN KEY (source_group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY terraform_states + ADD CONSTRAINT fk_558901b030 FOREIGN KEY (locked_by_user_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: required_code_owners_sections fk_rails_817708cf2d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY status_check_responses + ADD CONSTRAINT fk_55bd2abc83 FOREIGN KEY (external_status_check_id) REFERENCES external_status_checks(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.required_code_owners_sections - ADD CONSTRAINT fk_rails_817708cf2d FOREIGN KEY (protected_branch_id) REFERENCES public.protected_branches(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_metrics + ADD CONSTRAINT fk_56067dcb44 FOREIGN KEY (target_project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_feedback + ADD CONSTRAINT fk_563ff1912e FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE SET NULL; --- --- Name: p_ci_build_tags fk_rails_8284d35c66; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_request_diffs + ADD CONSTRAINT fk_56ac6fc9c0 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE public.p_ci_build_tags - ADD CONSTRAINT fk_rails_8284d35c66 FOREIGN KEY (tag_id) REFERENCES public.tags(id) ON DELETE CASCADE; +ALTER TABLE ONLY ml_candidates + ADD CONSTRAINT fk_56d6ed4d3d FOREIGN KEY (experiment_id) REFERENCES ml_experiments(id) ON DELETE CASCADE; +ALTER TABLE ONLY abuse_report_notes + ADD CONSTRAINT fk_57fb3e3bf2 FOREIGN KEY (resolved_by_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: namespace_ldap_settings fk_rails_82cd0ad4bb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY approval_merge_request_rules + ADD CONSTRAINT fk_5822f009ea FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES security_orchestration_policy_configurations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.namespace_ldap_settings - ADD CONSTRAINT fk_rails_82cd0ad4bb FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY deploy_keys_projects + ADD CONSTRAINT fk_58a901ca7e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_tags + ADD CONSTRAINT fk_5a230894f6 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: group_wiki_repository_states fk_rails_832511c9f1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY security_policy_project_links + ADD CONSTRAINT fk_5a5eba6f88 FOREIGN KEY (security_policy_id) REFERENCES security_policies(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.group_wiki_repository_states - ADD CONSTRAINT fk_rails_832511c9f1 FOREIGN KEY (group_wiki_repository_id) REFERENCES public.group_wiki_repositories(group_id) ON DELETE CASCADE; +ALTER TABLE ONLY project_export_jobs + ADD CONSTRAINT fk_5ab0242530 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY dependency_list_exports + ADD CONSTRAINT fk_5b3d11e1ef FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: cluster_enabled_grants fk_rails_8336ce35af; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY security_policy_requirements + ADD CONSTRAINT fk_5b4fae9635 FOREIGN KEY (compliance_requirement_id) REFERENCES compliance_requirements(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.cluster_enabled_grants - ADD CONSTRAINT fk_rails_8336ce35af FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY user_broadcast_message_dismissals + ADD CONSTRAINT fk_5c0cfb74ce FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY boards_epic_lists + ADD CONSTRAINT fk_5cbb450986 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: virtual_registries_packages_maven_registry_upstreams fk_rails_838d054752; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY dast_scanner_profiles_builds + ADD CONSTRAINT fk_5d46286ad3 FOREIGN KEY (dast_scanner_profile_id) REFERENCES dast_scanner_profiles(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.virtual_registries_packages_maven_registry_upstreams - ADD CONSTRAINT fk_rails_838d054752 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY protected_environment_deploy_access_levels + ADD CONSTRAINT fk_5d9b05a7e9 FOREIGN KEY (protected_environment_project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY issue_assignees + ADD CONSTRAINT fk_5e0c8d9154 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: dast_site_profiles fk_rails_83e309d69e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY csv_issue_imports + ADD CONSTRAINT fk_5e1572387c FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.dast_site_profiles - ADD CONSTRAINT fk_rails_83e309d69e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_access_tokens + ADD CONSTRAINT fk_5f7e8450e1 FOREIGN KEY (personal_access_token_id) REFERENCES personal_access_tokens(id) ON DELETE CASCADE; +ALTER TABLE ONLY user_achievements + ADD CONSTRAINT fk_60b12fcda3 FOREIGN KEY (awarded_by_user_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: dependency_list_export_parts fk_rails_83f26c0e6f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_requests + ADD CONSTRAINT fk_6149611a04 FOREIGN KEY (assignee_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.dependency_list_export_parts - ADD CONSTRAINT fk_rails_83f26c0e6f FOREIGN KEY (dependency_list_export_id) REFERENCES public.dependency_list_exports(id) ON DELETE CASCADE; +ALTER TABLE ONLY member_approvals + ADD CONSTRAINT fk_619f381144 FOREIGN KEY (member_role_id) REFERENCES member_roles(id) ON DELETE SET NULL; +ALTER TABLE ONLY work_item_widget_definitions + ADD CONSTRAINT fk_61bfa96db5 FOREIGN KEY (work_item_type_id) REFERENCES work_item_types(id) ON DELETE CASCADE; --- --- Name: security_trainings fk_rails_84c7951d72; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY deployment_approvals + ADD CONSTRAINT fk_61cdbdc5b9 FOREIGN KEY (approval_rule_id) REFERENCES protected_environment_approval_rules(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.security_trainings - ADD CONSTRAINT fk_rails_84c7951d72 FOREIGN KEY (provider_id) REFERENCES public.security_training_providers(id) ON DELETE CASCADE; +ALTER TABLE ONLY dast_profile_schedules + ADD CONSTRAINT fk_61d52aa0e7 FOREIGN KEY (dast_profile_id) REFERENCES dast_profiles(id) ON DELETE CASCADE; +ALTER TABLE ONLY events + ADD CONSTRAINT fk_61fbf6ca48 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: zentao_tracker_data fk_rails_84efda7be0; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_reads + ADD CONSTRAINT fk_62736f638f FOREIGN KEY (vulnerability_id) REFERENCES vulnerabilities(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.zentao_tracker_data - ADD CONSTRAINT fk_rails_84efda7be0 FOREIGN KEY (integration_id) REFERENCES public.integrations(id) ON DELETE CASCADE; +ALTER TABLE ONLY saml_group_links + ADD CONSTRAINT fk_6336b1d1d0 FOREIGN KEY (member_role_id) REFERENCES member_roles(id) ON DELETE SET NULL; +ALTER TABLE ONLY deployment_approvals + ADD CONSTRAINT fk_63920ba071 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: audit_events_amazon_s3_configurations fk_rails_84f4b10a16; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_requests + ADD CONSTRAINT fk_641731faff FOREIGN KEY (updated_by_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.audit_events_amazon_s3_configurations - ADD CONSTRAINT fk_rails_84f4b10a16 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY approval_group_rules + ADD CONSTRAINT fk_64450bea52 FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES security_orchestration_policy_configurations(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_pipeline_chat_data + ADD CONSTRAINT fk_64ebfab6b3_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; --- --- Name: boards_epic_user_preferences fk_rails_851fe1510a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_pipeline_chat_data + ADD CONSTRAINT fk_64ebfab6b3_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -ALTER TABLE ONLY public.boards_epic_user_preferences - ADD CONSTRAINT fk_rails_851fe1510a FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY cluster_agent_tokens + ADD CONSTRAINT fk_64f741f626 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY import_placeholder_memberships + ADD CONSTRAINT fk_66286fb5e6 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: value_stream_dashboard_aggregations fk_rails_859b4f86f3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE p_ci_builds + ADD CONSTRAINT fk_6661f4f0e8 FOREIGN KEY (resource_group_id) REFERENCES ci_resource_groups(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.value_stream_dashboard_aggregations - ADD CONSTRAINT fk_rails_859b4f86f3 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY remote_development_agent_configs + ADD CONSTRAINT fk_6a09894a0f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY dast_site_profile_secret_variables + ADD CONSTRAINT fk_6a254b170e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: deployment_merge_requests fk_rails_86a6d8bf12; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_requests + ADD CONSTRAINT fk_6a5165a692 FOREIGN KEY (milestone_id) REFERENCES milestones(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.deployment_merge_requests - ADD CONSTRAINT fk_rails_86a6d8bf12 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY ai_agent_versions + ADD CONSTRAINT fk_6c2f682587 FOREIGN KEY (agent_id) REFERENCES ai_agents(id) ON DELETE CASCADE; +ALTER TABLE ONLY ml_models + ADD CONSTRAINT fk_6c95e61a6e FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: analytics_language_trend_repository_languages fk_rails_86cc9aef5f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY projects + ADD CONSTRAINT fk_6ca23af0a3 FOREIGN KEY (project_namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.analytics_language_trend_repository_languages - ADD CONSTRAINT fk_rails_86cc9aef5f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY dast_profile_schedules + ADD CONSTRAINT fk_6cca0d8800 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY compliance_framework_security_policies + ADD CONSTRAINT fk_6d3bd0c9f1 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: merge_request_diff_details fk_rails_86f4d24ecd; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY audit_events_streaming_instance_namespace_filters + ADD CONSTRAINT fk_6e0be28087 FOREIGN KEY (external_streaming_destination_id) REFERENCES audit_events_instance_external_streaming_destinations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.merge_request_diff_details - ADD CONSTRAINT fk_rails_86f4d24ecd FOREIGN KEY (merge_request_diff_id) REFERENCES public.merge_request_diffs(id) ON DELETE CASCADE; +ALTER TABLE ONLY projects + ADD CONSTRAINT fk_6e5c14658a FOREIGN KEY (pool_repository_id) REFERENCES pool_repositories(id) ON DELETE SET NULL; +ALTER TABLE ONLY terraform_state_versions + ADD CONSTRAINT fk_6e81384d7f FOREIGN KEY (created_by_user_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: packages_package_file_build_infos fk_rails_871ca3ae21; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY protected_environment_approval_rules + ADD CONSTRAINT fk_6ee8249821 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_package_file_build_infos - ADD CONSTRAINT fk_rails_871ca3ae21 FOREIGN KEY (package_file_id) REFERENCES public.packages_package_files(id) ON DELETE CASCADE; +ALTER TABLE ONLY deploy_tokens + ADD CONSTRAINT fk_7082f8a288 FOREIGN KEY (creator_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY protected_branch_push_access_levels + ADD CONSTRAINT fk_7111b68cdb FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: boards_epic_boards fk_rails_874c573878; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY import_source_users + ADD CONSTRAINT fk_719b74231d FOREIGN KEY (reassigned_by_user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.boards_epic_boards - ADD CONSTRAINT fk_rails_874c573878 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY integrations + ADD CONSTRAINT fk_71cce407f9 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY subscription_user_add_on_assignments + ADD CONSTRAINT fk_724c2df9a8 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: ci_runner_namespaces fk_rails_8767676b7a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerabilities + ADD CONSTRAINT fk_725465b774 FOREIGN KEY (dismissed_by_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.ci_runner_namespaces - ADD CONSTRAINT fk_rails_8767676b7a FOREIGN KEY (runner_id) REFERENCES public.ci_runners(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_conan_metadata + ADD CONSTRAINT fk_7302a29cd9 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY approval_merge_request_rules + ADD CONSTRAINT fk_73fec3d7e5 FOREIGN KEY (approval_policy_rule_id) REFERENCES approval_policy_rules(id) ON DELETE CASCADE; --- --- Name: service_desk_custom_email_credentials fk_rails_878b562d12; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY index_statuses + ADD CONSTRAINT fk_74b2492545 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.service_desk_custom_email_credentials - ADD CONSTRAINT fk_rails_878b562d12 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY abuse_report_notes + ADD CONSTRAINT fk_74e1990397 FOREIGN KEY (abuse_report_id) REFERENCES abuse_reports(id) ON DELETE CASCADE; +ALTER TABLE ONLY software_license_policies + ADD CONSTRAINT fk_74f6d8328a FOREIGN KEY (custom_software_license_id) REFERENCES custom_software_licenses(id) ON DELETE CASCADE; --- --- Name: software_license_policies fk_rails_87b2247ce5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY cluster_agent_tokens + ADD CONSTRAINT fk_75008f3553 FOREIGN KEY (created_by_user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.software_license_policies - ADD CONSTRAINT fk_rails_87b2247ce5 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY protected_tag_create_access_levels + ADD CONSTRAINT fk_7537413f9d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY environments + ADD CONSTRAINT fk_75c2098045 FOREIGN KEY (cluster_agent_id) REFERENCES cluster_agents(id) ON DELETE SET NULL; --- --- Name: achievements fk_rails_87e990f752; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerabilities + ADD CONSTRAINT fk_76bc5f5455 FOREIGN KEY (resolved_by_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.achievements - ADD CONSTRAINT fk_rails_87e990f752 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY notes + ADD CONSTRAINT fk_76db6d50c6 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY oauth_openid_requests + ADD CONSTRAINT fk_77114b3b09 FOREIGN KEY (access_grant_id) REFERENCES oauth_access_grants(id) ON DELETE CASCADE; --- --- Name: ai_feature_settings fk_rails_8907fb7bbb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY scan_result_policy_violations + ADD CONSTRAINT fk_77251168f1 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.ai_feature_settings - ADD CONSTRAINT fk_rails_8907fb7bbb FOREIGN KEY (ai_self_hosted_model_id) REFERENCES public.ai_self_hosted_models(id) ON DELETE CASCADE; +ALTER TABLE ONLY approval_project_rules + ADD CONSTRAINT fk_773289d10b FOREIGN KEY (approval_policy_rule_id) REFERENCES approval_policy_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY agent_user_access_project_authorizations + ADD CONSTRAINT fk_78034b05d8 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: protected_environment_deploy_access_levels fk_rails_898a13b650; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY users + ADD CONSTRAINT fk_789cd90b35 FOREIGN KEY (accepted_term_id) REFERENCES application_setting_terms(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.protected_environment_deploy_access_levels - ADD CONSTRAINT fk_rails_898a13b650 FOREIGN KEY (protected_environment_id) REFERENCES public.protected_environments(id) ON DELETE CASCADE; +ALTER TABLE ONLY analytics_devops_adoption_snapshots + ADD CONSTRAINT fk_78c9eac821 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_maven_metadata + ADD CONSTRAINT fk_7a170ee0a3 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: ml_model_versions fk_rails_8a481bd22e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_relation_exports + ADD CONSTRAINT fk_7a4d3d5c0f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.ml_model_versions - ADD CONSTRAINT fk_rails_8a481bd22e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY lists + ADD CONSTRAINT fk_7a5553d60f FOREIGN KEY (label_id) REFERENCES labels(id) ON DELETE CASCADE; +ALTER TABLE ONLY protected_branches + ADD CONSTRAINT fk_7a9c6d93e7 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: snippet_repositories fk_rails_8afd7e2f71; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY scan_result_policies + ADD CONSTRAINT fk_7aa24439f1 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.snippet_repositories - ADD CONSTRAINT fk_rails_8afd7e2f71 FOREIGN KEY (snippet_id) REFERENCES public.snippets(id) ON DELETE CASCADE; +ALTER TABLE ONLY catalog_resource_versions + ADD CONSTRAINT fk_7ad8849db4 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY issue_customer_relations_contacts + ADD CONSTRAINT fk_7b92f835bb FOREIGN KEY (contact_id) REFERENCES customer_relations_contacts(id) ON DELETE CASCADE; --- --- Name: gpg_key_subkeys fk_rails_8b2c90b046; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ssh_signatures + ADD CONSTRAINT fk_7d2f93996c FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.gpg_key_subkeys - ADD CONSTRAINT fk_rails_8b2c90b046 FOREIGN KEY (gpg_key_id) REFERENCES public.gpg_keys(id) ON DELETE CASCADE; +ALTER TABLE ONLY sent_notifications + ADD CONSTRAINT fk_7d7663e36a FOREIGN KEY (issue_email_participant_id) REFERENCES issue_email_participants(id) ON DELETE SET NULL NOT VALID; +ALTER TABLE ONLY labels + ADD CONSTRAINT fk_7de4989a69 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: board_user_preferences fk_rails_8b3b23ce82; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_requests + ADD CONSTRAINT fk_7e85395a64 FOREIGN KEY (sprint_id) REFERENCES sprints(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.board_user_preferences - ADD CONSTRAINT fk_rails_8b3b23ce82 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_metrics + ADD CONSTRAINT fk_7f28d925f3 FOREIGN KEY (merged_by_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY namespaces + ADD CONSTRAINT fk_7f813d8c90 FOREIGN KEY (parent_id) REFERENCES namespaces(id) ON DELETE RESTRICT NOT VALID; --- --- Name: allowed_email_domains fk_rails_8b5da859f9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY group_import_states + ADD CONSTRAINT fk_8053b3ebd6 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.allowed_email_domains - ADD CONSTRAINT fk_rails_8b5da859f9 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_debian_project_components + ADD CONSTRAINT fk_8053c57c65 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY sprints + ADD CONSTRAINT fk_80aa8a1f95 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: cluster_projects fk_rails_8b8c5caf07; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY related_epic_links + ADD CONSTRAINT fk_8257080565 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.cluster_projects - ADD CONSTRAINT fk_rails_8b8c5caf07 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY import_export_uploads + ADD CONSTRAINT fk_83319d9721 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY push_rules + ADD CONSTRAINT fk_83b29894de FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: project_pages_metadata fk_rails_8c28a61485; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_request_diffs + ADD CONSTRAINT fk_8483f3258f FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.project_pages_metadata - ADD CONSTRAINT fk_rails_8c28a61485 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY requirements + ADD CONSTRAINT fk_85044baef0 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY catalog_resource_components + ADD CONSTRAINT fk_85bb1d1e79 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: work_item_progresses fk_rails_8c584bfb37; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_build_pending_states + ADD CONSTRAINT fk_861cd17da3_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY public.work_item_progresses - ADD CONSTRAINT fk_rails_8c584bfb37 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY observability_logs_issues_connections + ADD CONSTRAINT fk_86c5fb94cc FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_package_files + ADD CONSTRAINT fk_86f0f182f8 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; --- --- Name: packages_conan_metadata fk_rails_8c68cfec8b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE p_ci_builds + ADD CONSTRAINT fk_87f4cefcda_p FOREIGN KEY (upstream_pipeline_partition_id, upstream_pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_conan_metadata - ADD CONSTRAINT fk_rails_8c68cfec8b FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_builds + ADD CONSTRAINT fk_87f4cefcda_p_tmp FOREIGN KEY (upstream_pipeline_partition_id, upstream_pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +ALTER TABLE ONLY approval_group_rules_users + ADD CONSTRAINT fk_888a0df3b7 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: vulnerability_feedback fk_rails_8c77e5891a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_findings_remediations + ADD CONSTRAINT fk_88a2923914 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.vulnerability_feedback - ADD CONSTRAINT fk_rails_8c77e5891a FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE SET NULL; +ALTER TABLE ONLY bulk_import_entities + ADD CONSTRAINT fk_88c725229f FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY requirements_management_test_reports + ADD CONSTRAINT fk_88f30752fc FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; --- --- Name: import_placeholder_memberships fk_rails_8cdeffd260; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY issues + ADD CONSTRAINT fk_899c8f3231 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.import_placeholder_memberships - ADD CONSTRAINT fk_rails_8cdeffd260 FOREIGN KEY (source_user_id) REFERENCES public.import_source_users(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_build_trace_chunks + ADD CONSTRAINT fk_89e29fa5ee_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY catalog_resource_components + ADD CONSTRAINT fk_89fd1a3e33 FOREIGN KEY (version_id) REFERENCES catalog_resource_versions(id) ON DELETE CASCADE; --- --- Name: ci_pipeline_messages fk_rails_8d3b04e3e1_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY epic_issues + ADD CONSTRAINT fk_8a0fdc0d65 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.ci_pipeline_messages - ADD CONSTRAINT fk_rails_8d3b04e3e1_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY protected_branch_merge_access_levels + ADD CONSTRAINT fk_8a3072ccb3 FOREIGN KEY (protected_branch_id) REFERENCES protected_branches(id) ON DELETE CASCADE; +ALTER TABLE ONLY work_item_dates_sources + ADD CONSTRAINT fk_8a4948b668 FOREIGN KEY (start_date_sourcing_work_item_id) REFERENCES issues(id) ON DELETE SET NULL; --- --- Name: ci_pipeline_messages fk_rails_8d3b04e3e1_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY bulk_import_exports + ADD CONSTRAINT fk_8c6f33cebe FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.ci_pipeline_messages - ADD CONSTRAINT fk_rails_8d3b04e3e1_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +ALTER TABLE ONLY raw_usage_data + ADD CONSTRAINT fk_8e21125854 FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; +ALTER TABLE ONLY releases + ADD CONSTRAINT fk_8e4456f90f FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: incident_management_pending_alert_escalations fk_rails_8d8de95da9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY protected_tags + ADD CONSTRAINT fk_8e4af87648 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE public.incident_management_pending_alert_escalations - ADD CONSTRAINT fk_rails_8d8de95da9 FOREIGN KEY (alert_id) REFERENCES public.alert_management_alerts(id) ON DELETE CASCADE; +ALTER TABLE ONLY observability_metrics_issues_connections + ADD CONSTRAINT fk_8e765678ba FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY audit_events_streaming_group_namespace_filters + ADD CONSTRAINT fk_8ed182d7da FOREIGN KEY (external_streaming_destination_id) REFERENCES audit_events_group_external_streaming_destinations(id) ON DELETE CASCADE; --- --- Name: approval_merge_request_rules_approved_approvers fk_rails_8dc94cff4d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY compliance_requirements + ADD CONSTRAINT fk_8f5fb77fc7 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.approval_merge_request_rules_approved_approvers - ADD CONSTRAINT fk_rails_8dc94cff4d FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY todos + ADD CONSTRAINT fk_91d1f47b13 FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_debian_group_architectures + ADD CONSTRAINT fk_92714bcab1 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: work_item_dates_sources fk_rails_8dcefa21a5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY workspaces_agent_configs + ADD CONSTRAINT fk_94660551c8 FOREIGN KEY (cluster_agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.work_item_dates_sources - ADD CONSTRAINT fk_rails_8dcefa21a5 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY dast_site_profiles_builds + ADD CONSTRAINT fk_94e80df60e FOREIGN KEY (dast_site_profile_id) REFERENCES dast_site_profiles(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_feedback + ADD CONSTRAINT fk_94f7c8a81e FOREIGN KEY (comment_author_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: design_user_mentions fk_rails_8de8c6d632; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY milestones + ADD CONSTRAINT fk_95650a40d4 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.design_user_mentions - ADD CONSTRAINT fk_rails_8de8c6d632 FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerabilities + ADD CONSTRAINT fk_959d40ad0a FOREIGN KEY (confirmed_by_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY boards_epic_list_user_preferences + ADD CONSTRAINT fk_95eac55851 FOREIGN KEY (epic_list_id) REFERENCES boards_epic_lists(id) ON DELETE CASCADE; --- --- Name: clusters_kubernetes_namespaces fk_rails_8df789f3ab; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY issues + ADD CONSTRAINT fk_96b1dd429c FOREIGN KEY (milestone_id) REFERENCES milestones(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.clusters_kubernetes_namespaces - ADD CONSTRAINT fk_rails_8df789f3ab FOREIGN KEY (environment_id) REFERENCES public.environments(id) ON DELETE SET NULL; +ALTER TABLE ONLY agent_user_access_group_authorizations + ADD CONSTRAINT fk_97ce8e8284 FOREIGN KEY (agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_occurrences + ADD CONSTRAINT fk_97ffe77653 FOREIGN KEY (vulnerability_id) REFERENCES vulnerabilities(id) ON DELETE SET NULL; --- --- Name: alert_management_alert_user_mentions fk_rails_8e48eca0fe; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY protected_branch_merge_access_levels + ADD CONSTRAINT fk_98f3d044fe FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.alert_management_alert_user_mentions - ADD CONSTRAINT fk_rails_8e48eca0fe FOREIGN KEY (alert_management_alert_id) REFERENCES public.alert_management_alerts(id) ON DELETE CASCADE; +ALTER TABLE ONLY notes + ADD CONSTRAINT fk_99e097b079 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY approval_group_rules_users + ADD CONSTRAINT fk_9a4b673183 FOREIGN KEY (approval_group_rule_id) REFERENCES approval_group_rules(id) ON DELETE CASCADE; --- --- Name: project_daily_statistics fk_rails_8e549b272d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY import_failures + ADD CONSTRAINT fk_9a9b9ba21c FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.project_daily_statistics - ADD CONSTRAINT fk_rails_8e549b272d FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY deploy_tokens + ADD CONSTRAINT fk_9b0d2e92a6 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY milestones + ADD CONSTRAINT fk_9bd0a0c791 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: project_secrets_managers fk_rails_8f88850d11; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY work_item_parent_links + ADD CONSTRAINT fk_9be5ef5f80 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.project_secrets_managers - ADD CONSTRAINT fk_rails_8f88850d11 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY agent_activity_events + ADD CONSTRAINT fk_9c07afa098 FOREIGN KEY (agent_project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY issues + ADD CONSTRAINT fk_9c4516d665 FOREIGN KEY (duplicated_to_id) REFERENCES issues(id) ON DELETE SET NULL; --- --- Name: organization_details fk_rails_8facb04bef; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY epics + ADD CONSTRAINT fk_9d480c64b2 FOREIGN KEY (start_date_sourcing_epic_id) REFERENCES epics(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.organization_details - ADD CONSTRAINT fk_rails_8facb04bef FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; +ALTER TABLE ONLY user_group_callouts + ADD CONSTRAINT fk_9dc8b9d4b2 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_unit_test_failures + ADD CONSTRAINT fk_9e0fc58930_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; --- --- Name: ci_pipelines_config fk_rails_906c9a2533_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY protected_environments + ADD CONSTRAINT fk_9e112565b7 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.ci_pipelines_config - ADD CONSTRAINT fk_rails_906c9a2533_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY alert_management_alerts + ADD CONSTRAINT fk_9e49e5c2b7 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY approval_policy_rule_project_links + ADD CONSTRAINT fk_9ed5cf0600 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: ci_pipelines_config fk_rails_906c9a2533_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY protected_branch_push_access_levels + ADD CONSTRAINT fk_9ffc86a3d9 FOREIGN KEY (protected_branch_id) REFERENCES protected_branches(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.ci_pipelines_config - ADD CONSTRAINT fk_rails_906c9a2533_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +ALTER TABLE ONLY deployment_merge_requests + ADD CONSTRAINT fk_a064ff4453 FOREIGN KEY (environment_id) REFERENCES environments(id) ON DELETE CASCADE; +ALTER TABLE ONLY issues + ADD CONSTRAINT fk_a194299be1 FOREIGN KEY (moved_to_id) REFERENCES issues(id) ON DELETE SET NULL; --- --- Name: approval_project_rules_groups fk_rails_9071e863d1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY audit_events_streaming_group_namespace_filters + ADD CONSTRAINT fk_a1a4486a96 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.approval_project_rules_groups - ADD CONSTRAINT fk_rails_9071e863d1 FOREIGN KEY (approval_project_rule_id) REFERENCES public.approval_project_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY ml_candidates + ADD CONSTRAINT fk_a1d5f1bc45 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE SET NULL; +ALTER TABLE ONLY subscription_add_on_purchases + ADD CONSTRAINT fk_a1db288990 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: vulnerability_occurrences fk_rails_90fed4faba; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE p_ci_builds + ADD CONSTRAINT fk_a2141b1522_p FOREIGN KEY (auto_canceled_by_partition_id, auto_canceled_by_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL; -ALTER TABLE ONLY public.vulnerability_occurrences - ADD CONSTRAINT fk_rails_90fed4faba FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_builds + ADD CONSTRAINT fk_a2141b1522_p_tmp FOREIGN KEY (auto_canceled_by_partition_id, auto_canceled_by_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL NOT VALID; +ALTER TABLE ONLY protected_environment_approval_rules + ADD CONSTRAINT fk_a3cc825836 FOREIGN KEY (protected_environment_project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: project_error_tracking_settings fk_rails_910a2b8bd9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_request_assignment_events + ADD CONSTRAINT fk_a437da318b FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.project_error_tracking_settings - ADD CONSTRAINT fk_rails_910a2b8bd9 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY bulk_import_entities + ADD CONSTRAINT fk_a44ff95be5 FOREIGN KEY (parent_id) REFERENCES bulk_import_entities(id) ON DELETE CASCADE; +ALTER TABLE ONLY namespace_import_users + ADD CONSTRAINT fk_a49233ca5d FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: list_user_preferences fk_rails_916d72cafd; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY abuse_report_user_mentions + ADD CONSTRAINT fk_a4bd02b7df FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.list_user_preferences - ADD CONSTRAINT fk_rails_916d72cafd FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY security_orchestration_policy_configurations + ADD CONSTRAINT fk_a50430b375 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY operations_strategies + ADD CONSTRAINT fk_a542e10c31 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: merge_request_cleanup_schedules fk_rails_92dd0e705c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY lfs_objects_projects + ADD CONSTRAINT fk_a56e02279c FOREIGN KEY (lfs_object_id) REFERENCES lfs_objects(id) ON DELETE RESTRICT NOT VALID; -ALTER TABLE ONLY public.merge_request_cleanup_schedules - ADD CONSTRAINT fk_rails_92dd0e705c FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_requests + ADD CONSTRAINT fk_a6963e8447 FOREIGN KEY (target_project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_requests_closing_issues + ADD CONSTRAINT fk_a8703820ae FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: project_build_artifacts_size_refreshes fk_rails_936db5fc44; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ssh_signatures + ADD CONSTRAINT fk_aa1efbe865 FOREIGN KEY (key_id) REFERENCES keys(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.project_build_artifacts_size_refreshes - ADD CONSTRAINT fk_rails_936db5fc44 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY epics + ADD CONSTRAINT fk_aa5798e761 FOREIGN KEY (closed_by_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY dast_profiles + ADD CONSTRAINT fk_aa76ef30e9 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: board_labels fk_rails_9374a16edd; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY alert_management_alerts + ADD CONSTRAINT fk_aad61aedca FOREIGN KEY (environment_id) REFERENCES environments(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.board_labels - ADD CONSTRAINT fk_rails_9374a16edd FOREIGN KEY (board_id) REFERENCES public.boards(id) ON DELETE CASCADE; +ALTER TABLE ONLY identities + ADD CONSTRAINT fk_aade90f0fc FOREIGN KEY (saml_provider_id) REFERENCES saml_providers(id) ON DELETE CASCADE; +ALTER TABLE ONLY boards + ADD CONSTRAINT fk_ab0a250ff6 FOREIGN KEY (iteration_cadence_id) REFERENCES iterations_cadences(id) ON DELETE CASCADE; --- --- Name: alert_management_alert_assignees fk_rails_93c0f6703b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_external_issue_links + ADD CONSTRAINT fk_abd093bb21 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.alert_management_alert_assignees - ADD CONSTRAINT fk_rails_93c0f6703b FOREIGN KEY (alert_id) REFERENCES public.alert_management_alerts(id) ON DELETE CASCADE; +ALTER TABLE ONLY audit_events_streaming_http_instance_namespace_filters + ADD CONSTRAINT fk_abe44125bc FOREIGN KEY (audit_events_instance_external_audit_event_destination_id) REFERENCES audit_events_instance_external_audit_event_destinations(id) ON DELETE CASCADE; +ALTER TABLE ONLY audit_events_streaming_instance_namespace_filters + ADD CONSTRAINT fk_ac20a85a68 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: scim_identities fk_rails_9421a0bffb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_requests + ADD CONSTRAINT fk_ad525e1f87 FOREIGN KEY (merge_user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.scim_identities - ADD CONSTRAINT fk_rails_9421a0bffb FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY ml_experiments + ADD CONSTRAINT fk_ad89c59858 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_npm_metadata_caches + ADD CONSTRAINT fk_ada23b1d30 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE SET NULL; --- --- Name: p_catalog_resource_component_usages fk_rails_9430673479; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_request_metrics + ADD CONSTRAINT fk_ae440388cc FOREIGN KEY (latest_closed_by_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE public.p_catalog_resource_component_usages - ADD CONSTRAINT fk_rails_9430673479 FOREIGN KEY (catalog_resource_id) REFERENCES public.catalog_resources(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_reads + ADD CONSTRAINT fk_aee839e611 FOREIGN KEY (casted_cluster_agent_id) REFERENCES cluster_agents(id) ON DELETE SET NULL; +ALTER TABLE ONLY dast_profile_schedules + ADD CONSTRAINT fk_aef03d62e5 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: packages_debian_project_distributions fk_rails_94b95e1f84; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_group_stages + ADD CONSTRAINT fk_analytics_cycle_analytics_group_stages_group_value_stream_id FOREIGN KEY (group_value_stream_id) REFERENCES analytics_cycle_analytics_group_value_streams(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_debian_project_distributions - ADD CONSTRAINT fk_rails_94b95e1f84 FOREIGN KEY (creator_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER TABLE ONLY approval_merge_request_rules + ADD CONSTRAINT fk_approval_merge_request_rules_on_scan_result_policy_id FOREIGN KEY (scan_result_policy_id) REFERENCES scan_result_policies(id) ON DELETE SET NULL; +ALTER TABLE ONLY fork_network_members + ADD CONSTRAINT fk_b01280dae4 FOREIGN KEY (forked_from_project_id) REFERENCES projects(id) ON DELETE SET NULL; --- --- Name: packages_rubygems_metadata fk_rails_95a3f5ce78; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ml_candidate_metadata + ADD CONSTRAINT fk_b044692715 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_rubygems_metadata - ADD CONSTRAINT fk_rails_95a3f5ce78 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY sbom_occurrences + ADD CONSTRAINT fk_b1b65d8d17 FOREIGN KEY (source_package_id) REFERENCES sbom_source_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerabilities + ADD CONSTRAINT fk_b1de915a15 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: packages_pypi_metadata fk_rails_9698717cdd; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_access_tokens + ADD CONSTRAINT fk_b27801bfbf FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_pypi_metadata - ADD CONSTRAINT fk_rails_9698717cdd FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_reads + ADD CONSTRAINT fk_b28c28abf1 FOREIGN KEY (scanner_id) REFERENCES vulnerability_scanners(id) ON DELETE CASCADE; +ALTER TABLE ONLY member_approvals + ADD CONSTRAINT fk_b2e4a4b68a FOREIGN KEY (member_id) REFERENCES members(id) ON DELETE CASCADE; --- --- Name: boards_epic_board_recent_visits fk_rails_96c2c18642; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY issues + ADD CONSTRAINT fk_b37be69be6 FOREIGN KEY (work_item_type_id) REFERENCES work_item_types(id); -ALTER TABLE ONLY public.boards_epic_board_recent_visits - ADD CONSTRAINT fk_rails_96c2c18642 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY duo_workflows_checkpoints + ADD CONSTRAINT fk_b3d9cea509 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY protected_tag_create_access_levels + ADD CONSTRAINT fk_b4eb82fe3c FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: packages_dependency_links fk_rails_96ef1c00d3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY status_check_responses + ADD CONSTRAINT fk_b53bf31a72 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_dependency_links - ADD CONSTRAINT fk_rails_96ef1c00d3 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_dependency_links + ADD CONSTRAINT fk_b5c56b6ede FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY compliance_framework_security_policies + ADD CONSTRAINT fk_b5df066d8f FOREIGN KEY (framework_id) REFERENCES compliance_management_frameworks(id) ON DELETE CASCADE; --- --- Name: ml_experiments fk_rails_97194a054e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY catalog_resource_versions + ADD CONSTRAINT fk_b670eae96b FOREIGN KEY (catalog_resource_id) REFERENCES catalog_resources(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.ml_experiments - ADD CONSTRAINT fk_rails_97194a054e FOREIGN KEY (model_id) REFERENCES public.ml_models(id) ON DELETE CASCADE; +ALTER TABLE ONLY bulk_import_entities + ADD CONSTRAINT fk_b69fa2b2df FOREIGN KEY (bulk_import_id) REFERENCES bulk_imports(id) ON DELETE CASCADE; +ALTER TABLE ONLY security_policy_requirements + ADD CONSTRAINT fk_b6e48e3428 FOREIGN KEY (compliance_framework_security_policy_id) REFERENCES compliance_framework_security_policies(id) ON DELETE CASCADE; --- --- Name: group_repository_storage_moves fk_rails_982bb5daf1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY compliance_management_frameworks + ADD CONSTRAINT fk_b74c45b71f FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.group_repository_storage_moves - ADD CONSTRAINT fk_rails_982bb5daf1 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY ml_experiment_metadata + ADD CONSTRAINT fk_b764e76c6c FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY external_status_checks_protected_branches + ADD CONSTRAINT fk_b7d788e813 FOREIGN KEY (protected_branch_id) REFERENCES protected_branches(id) ON DELETE CASCADE; --- --- Name: resource_label_events fk_rails_9851a00031; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY issue_assignees + ADD CONSTRAINT fk_b7d881734a FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.resource_label_events - ADD CONSTRAINT fk_rails_9851a00031 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY agent_project_authorizations + ADD CONSTRAINT fk_b7fe9b4777 FOREIGN KEY (agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; +ALTER TABLE ONLY namespace_import_users + ADD CONSTRAINT fk_b82be3e1f3 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: board_project_recent_visits fk_rails_98f8843922; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY namespace_commit_emails + ADD CONSTRAINT fk_b8d89d555e FOREIGN KEY (email_id) REFERENCES emails(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.board_project_recent_visits - ADD CONSTRAINT fk_rails_98f8843922 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_trigger_requests + ADD CONSTRAINT fk_b8ec8b7245 FOREIGN KEY (trigger_id) REFERENCES ci_triggers(id) ON DELETE CASCADE; +ALTER TABLE ONLY customer_relations_contacts + ADD CONSTRAINT fk_b91ddd9345 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: clusters_kubernetes_namespaces fk_rails_98fe21e486; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY uploads + ADD CONSTRAINT fk_b94f059d73 FOREIGN KEY (uploaded_by_user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.clusters_kubernetes_namespaces - ADD CONSTRAINT fk_rails_98fe21e486 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE SET NULL; +ALTER TABLE ONLY deployments + ADD CONSTRAINT fk_b9a3851b82 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_compliance_standards_adherence + ADD CONSTRAINT fk_baf6f6f878 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: error_tracking_client_keys fk_rails_99342d1d54; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE p_ci_runner_machine_builds + ADD CONSTRAINT fk_bb490f12fe_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY public.error_tracking_client_keys - ADD CONSTRAINT fk_rails_99342d1d54 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY security_orchestration_policy_rule_schedules + ADD CONSTRAINT fk_bcbb90477f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY namespace_bans + ADD CONSTRAINT fk_bcc024eef2 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: pages_deployments fk_rails_993b88f59a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY gitlab_subscriptions + ADD CONSTRAINT fk_bd0c4019c3 FOREIGN KEY (hosted_plan_id) REFERENCES plans(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.pages_deployments - ADD CONSTRAINT fk_rails_993b88f59a FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY catalog_resource_versions + ADD CONSTRAINT fk_bd1b87591a FOREIGN KEY (published_by_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY resource_link_events + ADD CONSTRAINT fk_bd4ae15ce4 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: dast_pre_scan_verification_steps fk_rails_9990fc2adf; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY metrics_users_starred_dashboards + ADD CONSTRAINT fk_bd6ae32fac FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.dast_pre_scan_verification_steps - ADD CONSTRAINT fk_rails_9990fc2adf FOREIGN KEY (dast_pre_scan_verification_id) REFERENCES public.dast_pre_scan_verifications(id) ON DELETE CASCADE; +ALTER TABLE ONLY workspaces + ADD CONSTRAINT fk_bdb0b31131 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_compliance_framework_settings + ADD CONSTRAINT fk_be413374a9 FOREIGN KEY (framework_id) REFERENCES compliance_management_frameworks(id) ON DELETE CASCADE; --- --- Name: users_ops_dashboard_projects fk_rails_9b4ebf005b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY snippets + ADD CONSTRAINT fk_be41fd4bb7 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.users_ops_dashboard_projects - ADD CONSTRAINT fk_rails_9b4ebf005b FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_sources_pipelines + ADD CONSTRAINT fk_be5624bf37_p FOREIGN KEY (source_partition_id, source_job_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY packages_maven_metadata + ADD CONSTRAINT fk_be88aed360 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; --- --- Name: project_incident_management_settings fk_rails_9c2ea1b7dd; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY remote_development_namespace_cluster_agent_mappings + ADD CONSTRAINT fk_be8e9c740f FOREIGN KEY (cluster_agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.project_incident_management_settings - ADD CONSTRAINT fk_rails_9c2ea1b7dd FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY zoekt_indices + ADD CONSTRAINT fk_bf205d4773 FOREIGN KEY (zoekt_enabled_namespace_id) REFERENCES zoekt_enabled_namespaces(id) ON DELETE SET NULL; +ALTER TABLE ONLY packages_build_infos + ADD CONSTRAINT fk_c0bc6b19ff FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: packages_debian_project_components fk_rails_9d072b5073; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY design_management_versions + ADD CONSTRAINT fk_c1440b4896 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.packages_debian_project_components - ADD CONSTRAINT fk_rails_9d072b5073 FOREIGN KEY (distribution_id) REFERENCES public.packages_debian_project_distributions(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_packages + ADD CONSTRAINT fk_c188f0dba4 FOREIGN KEY (creator_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY sbom_occurrences + ADD CONSTRAINT fk_c2a5562923 FOREIGN KEY (source_id) REFERENCES sbom_sources(id) ON DELETE CASCADE; --- --- Name: gpg_keys fk_rails_9d1f5d8719; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY dependency_list_exports + ADD CONSTRAINT fk_c348f16f10 FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.gpg_keys - ADD CONSTRAINT fk_rails_9d1f5d8719 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY issues + ADD CONSTRAINT fk_c34dd2b036 FOREIGN KEY (tmp_epic_id) REFERENCES epics(id) ON DELETE CASCADE; +ALTER TABLE ONLY user_group_callouts + ADD CONSTRAINT fk_c366e12ec3 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: analytics_language_trend_repository_languages fk_rails_9d851d566c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY timelogs + ADD CONSTRAINT fk_c49c83dd77 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.analytics_language_trend_repository_languages - ADD CONSTRAINT fk_rails_9d851d566c FOREIGN KEY (programming_language_id) REFERENCES public.programming_languages(id) ON DELETE CASCADE; +ALTER TABLE ONLY wiki_repository_states + ADD CONSTRAINT fk_c558ca51b8 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY issues + ADD CONSTRAINT fk_c63cbf6c25 FOREIGN KEY (closed_by_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: namespaces_sync_events fk_rails_9da32a0431; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY sbom_occurrences_vulnerabilities + ADD CONSTRAINT fk_c677cb859e FOREIGN KEY (sbom_occurrence_id) REFERENCES sbom_occurrences(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.namespaces_sync_events - ADD CONSTRAINT fk_rails_9da32a0431 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY issues + ADD CONSTRAINT fk_c78fbacd64 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY user_broadcast_message_dismissals + ADD CONSTRAINT fk_c7cbf5566d FOREIGN KEY (broadcast_message_id) REFERENCES broadcast_messages(id) ON DELETE CASCADE; --- --- Name: badges fk_rails_9df4a56538; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_debian_group_distribution_keys + ADD CONSTRAINT fk_c802025a67 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.badges - ADD CONSTRAINT fk_rails_9df4a56538 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY agent_activity_events + ADD CONSTRAINT fk_c815368376 FOREIGN KEY (agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; +ALTER TABLE ONLY agent_activity_events + ADD CONSTRAINT fk_c8b006d40f FOREIGN KEY (agent_token_id) REFERENCES cluster_agent_tokens(id) ON DELETE SET NULL; --- --- Name: vulnerability_finding_signatures fk_rails_9e0baf9dcd; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY issue_links + ADD CONSTRAINT fk_c900194ff2 FOREIGN KEY (source_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.vulnerability_finding_signatures - ADD CONSTRAINT fk_rails_9e0baf9dcd FOREIGN KEY (finding_id) REFERENCES public.vulnerability_occurrences(id) ON DELETE CASCADE; +ALTER TABLE ONLY bulk_import_exports + ADD CONSTRAINT fk_c9250a4d3f FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY personal_access_tokens + ADD CONSTRAINT fk_c951fbf57e FOREIGN KEY (previous_personal_access_token_id) REFERENCES personal_access_tokens(id) ON DELETE SET NULL; --- --- Name: target_branch_rules fk_rails_9e9cf81c8e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY compliance_checks + ADD CONSTRAINT fk_c9683a794f FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.target_branch_rules - ADD CONSTRAINT fk_rails_9e9cf81c8e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY jira_tracker_data + ADD CONSTRAINT fk_c98abcd54c FOREIGN KEY (integration_id) REFERENCES integrations(id) ON DELETE CASCADE; +ALTER TABLE ONLY evidences + ADD CONSTRAINT fk_ca4bbc114d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: timelog_categories fk_rails_9f27b821a8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY subscription_add_on_purchases + ADD CONSTRAINT fk_caed789645 FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.timelog_categories - ADD CONSTRAINT fk_rails_9f27b821a8 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY duo_workflows_workflows + ADD CONSTRAINT fk_cb28eb3e34 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY boards_epic_board_labels + ADD CONSTRAINT fk_cb8ded70e2 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: resource_milestone_events fk_rails_a006df5590; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY slack_integrations + ADD CONSTRAINT fk_cbe270434e FOREIGN KEY (integration_id) REFERENCES integrations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.resource_milestone_events - ADD CONSTRAINT fk_rails_a006df5590 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY external_status_checks_protected_branches + ADD CONSTRAINT fk_cc0dcc36d1 FOREIGN KEY (external_status_check_id) REFERENCES external_status_checks(id) ON DELETE CASCADE; +ALTER TABLE ONLY dast_profiles_pipelines + ADD CONSTRAINT fk_cc206a8c13 FOREIGN KEY (dast_profile_id) REFERENCES dast_profiles(id) ON DELETE CASCADE; --- --- Name: namespace_root_storage_statistics fk_rails_a0702c430b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY todos + ADD CONSTRAINT fk_ccf0373936 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.namespace_root_storage_statistics - ADD CONSTRAINT fk_rails_a0702c430b FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_debian_project_architectures + ADD CONSTRAINT fk_cd96fce0a1 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_dependencies + ADD CONSTRAINT fk_cea1124da7 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: dingtalk_tracker_data fk_rails_a138e0d542; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY compliance_framework_security_policies + ADD CONSTRAINT fk_cf3c0ac207 FOREIGN KEY (policy_configuration_id) REFERENCES security_orchestration_policy_configurations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.dingtalk_tracker_data - ADD CONSTRAINT fk_rails_a138e0d542 FOREIGN KEY (integration_id) REFERENCES public.integrations(id) ON DELETE CASCADE; +ALTER TABLE ONLY issue_assignment_events + ADD CONSTRAINT fk_cfd2073177 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY custom_emoji + ADD CONSTRAINT fk_custom_emoji_creator_id FOREIGN KEY (creator_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: elastic_reindexing_slices fk_rails_a17d86aeb9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY bulk_import_entities + ADD CONSTRAINT fk_d06d023c30 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.elastic_reindexing_slices - ADD CONSTRAINT fk_rails_a17d86aeb9 FOREIGN KEY (elastic_reindexing_subtask_id) REFERENCES public.elastic_reindexing_subtasks(id) ON DELETE CASCADE; +ALTER TABLE ONLY subscription_user_add_on_assignments + ADD CONSTRAINT fk_d1074a6e16 FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_mirror_data + ADD CONSTRAINT fk_d1aad367d7 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: project_aliases fk_rails_a1804f74a7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY environments + ADD CONSTRAINT fk_d1c8c1da6a FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.project_aliases - ADD CONSTRAINT fk_rails_a1804f74a7 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY dast_pre_scan_verifications + ADD CONSTRAINT fk_d23ad33d6e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE p_ci_builds + ADD CONSTRAINT fk_d3130c9a7f_p FOREIGN KEY (partition_id, commit_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; --- --- Name: vulnerability_user_mentions fk_rails_a18600f210; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_builds + ADD CONSTRAINT fk_d3130c9a7f_p_tmp FOREIGN KEY (partition_id, commit_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -ALTER TABLE ONLY public.vulnerability_user_mentions - ADD CONSTRAINT fk_rails_a18600f210 FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; +ALTER TABLE ONLY boards_epic_user_preferences + ADD CONSTRAINT fk_d32c3d693c FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_state_transitions + ADD CONSTRAINT fk_d3ede71c58 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: dependency_proxy_packages_settings fk_rails_a248d0c26f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_sources_pipelines + ADD CONSTRAINT fk_d4e29af7d7_p FOREIGN KEY (source_partition_id, source_pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY public.dependency_proxy_packages_settings - ADD CONSTRAINT fk_rails_a248d0c26f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_sources_pipelines + ADD CONSTRAINT fk_d4e29af7d7_p_tmp FOREIGN KEY (source_partition_id, source_pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +ALTER TABLE ONLY operations_strategies_user_lists + ADD CONSTRAINT fk_d4f7076369 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: todos fk_rails_a27c483435; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY incident_management_timeline_events + ADD CONSTRAINT fk_d606a2a890 FOREIGN KEY (promoted_from_note_id) REFERENCES notes(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.todos - ADD CONSTRAINT fk_rails_a27c483435 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY lists + ADD CONSTRAINT fk_d6cf4279f7 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY agent_activity_events + ADD CONSTRAINT fk_d6f785c9fc FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: protected_environments fk_rails_a354313d11; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY user_achievements + ADD CONSTRAINT fk_d7653ef780 FOREIGN KEY (revoked_by_user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.protected_environments - ADD CONSTRAINT fk_rails_a354313d11 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY metrics_users_starred_dashboards + ADD CONSTRAINT fk_d76a2b9a8c FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE p_ci_pipelines + ADD CONSTRAINT fk_d80e161c54 FOREIGN KEY (ci_ref_id) REFERENCES ci_refs(id) ON DELETE SET NULL; --- --- Name: jira_connect_subscriptions fk_rails_a3c10bcf7d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY upcoming_reconciliations + ADD CONSTRAINT fk_d81de6b493 FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.jira_connect_subscriptions - ADD CONSTRAINT fk_rails_a3c10bcf7d FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY system_note_metadata + ADD CONSTRAINT fk_d83a918cb1 FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; +ALTER TABLE ONLY sbom_occurrences + ADD CONSTRAINT fk_d857c6edc1 FOREIGN KEY (component_id) REFERENCES sbom_components(id) ON DELETE CASCADE; --- --- Name: fork_network_members fk_rails_a40860a1ca; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY dependency_list_exports + ADD CONSTRAINT fk_d871d74675 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.fork_network_members - ADD CONSTRAINT fk_rails_a40860a1ca FOREIGN KEY (fork_network_id) REFERENCES public.fork_networks(id) ON DELETE CASCADE; +ALTER TABLE ONLY todos + ADD CONSTRAINT fk_d94154aa95 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY label_links + ADD CONSTRAINT fk_d97dd08678 FOREIGN KEY (label_id) REFERENCES labels(id) ON DELETE CASCADE; --- --- Name: customer_relations_organizations fk_rails_a48597902f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY personal_access_tokens + ADD CONSTRAINT fk_da676c7ca5 FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.customer_relations_organizations - ADD CONSTRAINT fk_rails_a48597902f FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_group_links + ADD CONSTRAINT fk_daa8cee94c FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_topics + ADD CONSTRAINT fk_db13576296 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: ai_agent_version_attachments fk_rails_a4ed49efb5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY web_hooks + ADD CONSTRAINT fk_db1ea5699b FOREIGN KEY (integration_id) REFERENCES integrations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.ai_agent_version_attachments - ADD CONSTRAINT fk_rails_a4ed49efb5 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY work_item_dates_sources + ADD CONSTRAINT fk_dbbe8917ee FOREIGN KEY (due_date_sourcing_work_item_id) REFERENCES issues(id) ON DELETE SET NULL; +ALTER TABLE ONLY boards_epic_board_positions + ADD CONSTRAINT fk_dc62428d81 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: operations_feature_flag_scopes fk_rails_a50a04d0a4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY workspaces + ADD CONSTRAINT fk_dc7c316be1 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.operations_feature_flag_scopes - ADD CONSTRAINT fk_rails_a50a04d0a4 FOREIGN KEY (feature_flag_id) REFERENCES public.operations_feature_flags(id) ON DELETE CASCADE; +ALTER TABLE ONLY software_license_policies + ADD CONSTRAINT fk_dca6a58d53 FOREIGN KEY (approval_policy_rule_id) REFERENCES approval_policy_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY epics + ADD CONSTRAINT fk_dccd3f98fc FOREIGN KEY (assignee_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: packages_helm_file_metadata fk_rails_a559865345; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY protected_branches + ADD CONSTRAINT fk_de9216e774 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_helm_file_metadata - ADD CONSTRAINT fk_rails_a559865345 FOREIGN KEY (package_file_id) REFERENCES public.packages_package_files(id) ON DELETE CASCADE; +ALTER TABLE ONLY issues + ADD CONSTRAINT fk_df75a7c8b8 FOREIGN KEY (promoted_to_epic_id) REFERENCES epics(id) ON DELETE SET NULL; +ALTER TABLE ONLY dependency_list_exports + ADD CONSTRAINT fk_e133f6725e FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: cluster_projects fk_rails_a5a958bca1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY approval_project_rules + ADD CONSTRAINT fk_e1372c912e FOREIGN KEY (scan_result_policy_id) REFERENCES scan_result_policies(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.cluster_projects - ADD CONSTRAINT fk_rails_a5a958bca1 FOREIGN KEY (cluster_id) REFERENCES public.clusters(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_resources + ADD CONSTRAINT fk_e169a8e3d5_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL; +ALTER TABLE ONLY ci_sources_pipelines + ADD CONSTRAINT fk_e1bad85861_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; --- --- Name: commit_user_mentions fk_rails_a6760813e0; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_sources_pipelines + ADD CONSTRAINT fk_e1bad85861_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -ALTER TABLE ONLY public.commit_user_mentions - ADD CONSTRAINT fk_rails_a6760813e0 FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; +ALTER TABLE p_ci_builds_metadata + ADD CONSTRAINT fk_e20479742e_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY gitlab_subscriptions + ADD CONSTRAINT fk_e2595d00a1 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: vulnerability_identifiers fk_rails_a67a16c885; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY approval_merge_request_rules + ADD CONSTRAINT fk_e33a9aaf67 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.vulnerability_identifiers - ADD CONSTRAINT fk_rails_a67a16c885 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY abuse_events + ADD CONSTRAINT fk_e5ce49c215 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY user_preferences + ADD CONSTRAINT fk_e5e029c10b FOREIGN KEY (home_organization_id) REFERENCES organizations(id) ON DELETE SET NULL; --- --- Name: user_preferences fk_rails_a69bfcfd81; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_debian_group_components + ADD CONSTRAINT fk_e63e8ee3b1 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.user_preferences - ADD CONSTRAINT fk_rails_a69bfcfd81 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_requests + ADD CONSTRAINT fk_e719a85f8a FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY vulnerability_state_transitions + ADD CONSTRAINT fk_e719dc63df FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: sentry_issues fk_rails_a6a9612965; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY issue_links + ADD CONSTRAINT fk_e71bb44f1f FOREIGN KEY (target_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.sentry_issues - ADD CONSTRAINT fk_rails_a6a9612965 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY csv_issue_imports + ADD CONSTRAINT fk_e71c0ae362 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY namespaces + ADD CONSTRAINT fk_e7a0b20a6b FOREIGN KEY (custom_project_templates_group_id) REFERENCES namespaces(id) ON DELETE SET NULL; --- --- Name: project_states fk_rails_a6e5821877; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY fork_networks + ADD CONSTRAINT fk_e7b436b2b5 FOREIGN KEY (root_project_id) REFERENCES projects(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.project_states - ADD CONSTRAINT fk_rails_a6e5821877 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY error_tracking_error_events + ADD CONSTRAINT fk_e84882273e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY ml_candidates + ADD CONSTRAINT fk_e86e0bfa5a FOREIGN KEY (model_version_id) REFERENCES ml_model_versions(id) ON DELETE CASCADE; --- --- Name: user_permission_export_uploads fk_rails_a7130085e3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY integrations + ADD CONSTRAINT fk_e8fe908a34 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.user_permission_export_uploads - ADD CONSTRAINT fk_rails_a7130085e3 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY pages_domains + ADD CONSTRAINT fk_ea2f6dfc6f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_debian_project_distribution_keys + ADD CONSTRAINT fk_eb2224a3c0 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: repository_languages fk_rails_a750ec87a8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY dast_profiles_tags + ADD CONSTRAINT fk_eb7e19f8da FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.repository_languages - ADD CONSTRAINT fk_rails_a750ec87a8 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY compliance_requirements + ADD CONSTRAINT fk_ebf5c3365b FOREIGN KEY (framework_id) REFERENCES compliance_management_frameworks(id) ON DELETE CASCADE; +ALTER TABLE ONLY catalog_resource_components + ADD CONSTRAINT fk_ec417536da FOREIGN KEY (catalog_resource_id) REFERENCES catalog_resources(id) ON DELETE CASCADE; --- --- Name: dependency_proxy_manifests fk_rails_a758021fb0; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY workspaces + ADD CONSTRAINT fk_ec70695b2c FOREIGN KEY (personal_access_token_id) REFERENCES personal_access_tokens(id) ON DELETE RESTRICT; -ALTER TABLE ONLY public.dependency_proxy_manifests - ADD CONSTRAINT fk_rails_a758021fb0 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_requests_compliance_violations + ADD CONSTRAINT fk_ec881c1c6f FOREIGN KEY (violating_user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY coverage_fuzzing_corpuses + ADD CONSTRAINT fk_ef5ebf339f FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; --- --- Name: resource_milestone_events fk_rails_a788026e85; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_request_context_commits + ADD CONSTRAINT fk_ef6766ed57 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.resource_milestone_events - ADD CONSTRAINT fk_rails_a788026e85 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY approval_project_rules + ADD CONSTRAINT fk_efa5a1e3fb FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES security_orchestration_policy_configurations(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerabilities + ADD CONSTRAINT fk_efb96ab1e2 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: term_agreements fk_rails_a88721bcdf; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY dora_daily_metrics + ADD CONSTRAINT fk_efc32a39fa FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.term_agreements - ADD CONSTRAINT fk_rails_a88721bcdf FOREIGN KEY (term_id) REFERENCES public.application_setting_terms(id); +ALTER TABLE ONLY approval_group_rules_groups + ADD CONSTRAINT fk_efff219a48 FOREIGN KEY (approval_group_rule_id) REFERENCES approval_group_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY emails + ADD CONSTRAINT fk_emails_user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: saved_replies fk_rails_a8bf5bf111; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY epics + ADD CONSTRAINT fk_epics_issue_id_with_on_delete_cascade FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.saved_replies - ADD CONSTRAINT fk_rails_a8bf5bf111 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY epics + ADD CONSTRAINT fk_epics_on_parent_id_with_on_delete_nullify FOREIGN KEY (parent_id) REFERENCES epics(id) ON DELETE SET NULL; +ALTER TABLE ONLY clusters + ADD CONSTRAINT fk_f05c5e5a42 FOREIGN KEY (management_project_id) REFERENCES projects(id) ON DELETE SET NULL; --- --- Name: ci_pipeline_artifacts fk_rails_a9e811a466_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_external_issue_links + ADD CONSTRAINT fk_f07bb8233d FOREIGN KEY (vulnerability_id) REFERENCES vulnerabilities(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.ci_pipeline_artifacts - ADD CONSTRAINT fk_rails_a9e811a466_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY epics + ADD CONSTRAINT fk_f081aa4489 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY abuse_reports + ADD CONSTRAINT fk_f10de8b524 FOREIGN KEY (resolved_by_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: ci_pipeline_artifacts fk_rails_a9e811a466_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY timelogs + ADD CONSTRAINT fk_f12ef8db70 FOREIGN KEY (timelog_category_id) REFERENCES timelog_categories(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.ci_pipeline_artifacts - ADD CONSTRAINT fk_rails_a9e811a466_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +ALTER TABLE ONLY boards + ADD CONSTRAINT fk_f15266b5f9 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY epic_user_mentions + ADD CONSTRAINT fk_f1ab52883e FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: merge_request_user_mentions fk_rails_aa1b2961b1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY observability_metrics_issues_connections + ADD CONSTRAINT fk_f218d84a14 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.merge_request_user_mentions - ADD CONSTRAINT fk_rails_aa1b2961b1 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY workspaces_agent_configs + ADD CONSTRAINT fk_f25d0fbfae FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE p_ci_pipeline_variables + ADD CONSTRAINT fk_f29c5f4380_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; --- --- Name: wiki_repository_states fk_rails_aa2f8a61ba; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_pipeline_variables + ADD CONSTRAINT fk_f29c5f4380_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -ALTER TABLE ONLY public.wiki_repository_states - ADD CONSTRAINT fk_rails_aa2f8a61ba FOREIGN KEY (project_wiki_repository_id) REFERENCES public.project_wiki_repositories(id) ON DELETE CASCADE; +ALTER TABLE ONLY zoekt_indices + ADD CONSTRAINT fk_f34800a202 FOREIGN KEY (zoekt_node_id) REFERENCES zoekt_nodes(id) ON DELETE CASCADE; +ALTER TABLE ONLY status_check_responses + ADD CONSTRAINT fk_f3953d86c6 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; --- --- Name: x509_commit_signatures fk_rails_ab07452314; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY design_management_designs_versions + ADD CONSTRAINT fk_f4d25ba00c FOREIGN KEY (version_id) REFERENCES design_management_versions(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.x509_commit_signatures - ADD CONSTRAINT fk_rails_ab07452314 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY scan_result_policy_violations + ADD CONSTRAINT fk_f53706dbdd FOREIGN KEY (scan_result_policy_id) REFERENCES scan_result_policies(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_user_mentions + ADD CONSTRAINT fk_f5768ba1ec FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: dast_profiles_tags fk_rails_ab9e643cd8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY analytics_devops_adoption_segments + ADD CONSTRAINT fk_f5aa768998 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.dast_profiles_tags - ADD CONSTRAINT fk_rails_ab9e643cd8 FOREIGN KEY (dast_profile_id) REFERENCES public.dast_profiles(id) ON DELETE CASCADE; +ALTER TABLE ONLY boards_epic_list_user_preferences + ADD CONSTRAINT fk_f5f2fe5c1f FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY user_project_callouts + ADD CONSTRAINT fk_f62dd11a33 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: resource_iteration_events fk_rails_abf5d4affa; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ml_model_metadata + ADD CONSTRAINT fk_f68c7e109c FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.resource_iteration_events - ADD CONSTRAINT fk_rails_abf5d4affa FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY workspaces + ADD CONSTRAINT fk_f78aeddc77 FOREIGN KEY (cluster_agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; +ALTER TABLE ONLY cluster_agents + ADD CONSTRAINT fk_f7d43dee13 FOREIGN KEY (created_by_user_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: container_registry_protection_rules fk_rails_ac331fcba9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY protected_tag_create_access_levels + ADD CONSTRAINT fk_f7dfda8c51 FOREIGN KEY (protected_tag_id) REFERENCES protected_tags(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.container_registry_protection_rules - ADD CONSTRAINT fk_rails_ac331fcba9 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY application_settings + ADD CONSTRAINT fk_f9867b3540 FOREIGN KEY (web_ide_oauth_application_id) REFERENCES oauth_applications(id) ON DELETE SET NULL; +ALTER TABLE p_ci_stages + ADD CONSTRAINT fk_fb57e6cc56_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; --- --- Name: clusters fk_rails_ac3a663d79; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_stages + ADD CONSTRAINT fk_fb57e6cc56_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -ALTER TABLE ONLY public.clusters - ADD CONSTRAINT fk_rails_ac3a663d79 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER TABLE ONLY agent_group_authorizations + ADD CONSTRAINT fk_fb70782616 FOREIGN KEY (agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; +ALTER TABLE ONLY system_note_metadata + ADD CONSTRAINT fk_fbd87415c9 FOREIGN KEY (description_version_id) REFERENCES description_versions(id) ON DELETE SET NULL; --- --- Name: group_saved_replies fk_rails_acd8e1889b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY work_item_dates_sources + ADD CONSTRAINT fk_fc7bc5e687 FOREIGN KEY (due_date_sourcing_milestone_id) REFERENCES milestones(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.group_saved_replies - ADD CONSTRAINT fk_rails_acd8e1889b FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_debian_publications + ADD CONSTRAINT fk_fd1ad5dd37 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY abuse_report_events + ADD CONSTRAINT fk_fdd4d610e0 FOREIGN KEY (abuse_report_id) REFERENCES abuse_reports(id) ON DELETE CASCADE; --- --- Name: packages_composer_metadata fk_rails_ad48c2e5bb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY approval_merge_request_rule_sources + ADD CONSTRAINT fk_fea41830d0 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_composer_metadata - ADD CONSTRAINT fk_rails_ad48c2e5bb FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY import_placeholder_memberships + ADD CONSTRAINT fk_ffae4107ac FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_import_data + ADD CONSTRAINT fk_ffb9ee3a10 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: user_phone_number_validations fk_rails_ad6686f3d8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY issues + ADD CONSTRAINT fk_ffed080f01 FOREIGN KEY (updated_by_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.user_phone_number_validations - ADD CONSTRAINT fk_rails_ad6686f3d8 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY geo_event_log + ADD CONSTRAINT fk_geo_event_log_on_geo_event_id FOREIGN KEY (geo_event_id) REFERENCES geo_events(id) ON DELETE CASCADE; +ALTER TABLE ONLY members + ADD CONSTRAINT fk_member_role_on_members FOREIGN KEY (member_role_id) REFERENCES member_roles(id) ON DELETE SET NULL; --- --- Name: analytics_cycle_analytics_group_stages fk_rails_ae5da3409b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ml_candidate_metrics + ADD CONSTRAINT fk_ml_candidate_metrics_on_candidate_id FOREIGN KEY (candidate_id) REFERENCES ml_candidates(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.analytics_cycle_analytics_group_stages - ADD CONSTRAINT fk_rails_ae5da3409b FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY ml_candidate_params + ADD CONSTRAINT fk_ml_candidate_params_on_candidate_id FOREIGN KEY (candidate_id) REFERENCES ml_candidates(id) ON DELETE CASCADE; +ALTER TABLE ONLY ml_candidates + ADD CONSTRAINT fk_ml_candidates_on_user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: metrics_dashboard_annotations fk_rails_aeb11a7643; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ml_experiments + ADD CONSTRAINT fk_ml_experiments_on_user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.metrics_dashboard_annotations - ADD CONSTRAINT fk_rails_aeb11a7643 FOREIGN KEY (environment_id) REFERENCES public.environments(id) ON DELETE CASCADE; +ALTER TABLE ONLY path_locks + ADD CONSTRAINT fk_path_locks_user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY personal_access_tokens + ADD CONSTRAINT fk_personal_access_tokens_user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: p_ci_build_trace_metadata fk_rails_aebc78111f_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_settings + ADD CONSTRAINT fk_project_settings_push_rule_id FOREIGN KEY (push_rule_id) REFERENCES push_rules(id) ON DELETE SET NULL; -ALTER TABLE public.p_ci_build_trace_metadata - ADD CONSTRAINT fk_rails_aebc78111f_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY projects + ADD CONSTRAINT fk_projects_namespace_id FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE RESTRICT; +ALTER TABLE ONLY protected_branch_merge_access_levels + ADD CONSTRAINT fk_protected_branch_merge_access_levels_user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: bulk_import_trackers fk_rails_aed566d3f3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY protected_branch_push_access_levels + ADD CONSTRAINT fk_protected_branch_push_access_levels_user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.bulk_import_trackers - ADD CONSTRAINT fk_rails_aed566d3f3 FOREIGN KEY (bulk_import_entity_id) REFERENCES public.bulk_import_entities(id) ON DELETE CASCADE; +ALTER TABLE ONLY protected_tag_create_access_levels + ADD CONSTRAINT fk_protected_tag_create_access_levels_user_id FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY scan_execution_policy_rules + ADD CONSTRAINT fk_rails_003cb62f9b FOREIGN KEY (security_policy_management_project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: pool_repositories fk_rails_af3f8c5d62; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY approval_merge_request_rules + ADD CONSTRAINT fk_rails_004ce82224 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.pool_repositories - ADD CONSTRAINT fk_rails_af3f8c5d62 FOREIGN KEY (shard_id) REFERENCES public.shards(id) ON DELETE RESTRICT; +ALTER TABLE ONLY namespace_statistics + ADD CONSTRAINT fk_rails_0062050394 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE p_ci_build_sources + ADD CONSTRAINT fk_rails_023578ae70 FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; --- --- Name: work_item_related_link_restrictions fk_rails_b013a0fa65; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY automation_rules + ADD CONSTRAINT fk_rails_025b519b8d FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.work_item_related_link_restrictions - ADD CONSTRAINT fk_rails_b013a0fa65 FOREIGN KEY (source_type_id) REFERENCES public.work_item_types(id) ON DELETE CASCADE; +ALTER TABLE ONLY incident_management_oncall_participants + ADD CONSTRAINT fk_rails_032b12996a FOREIGN KEY (oncall_rotation_id) REFERENCES incident_management_oncall_rotations(id) ON DELETE CASCADE; +ALTER TABLE ONLY events + ADD CONSTRAINT fk_rails_0434b48643 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: resource_label_events fk_rails_b126799f57; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE incident_management_pending_issue_escalations + ADD CONSTRAINT fk_rails_0470889ee5 FOREIGN KEY (rule_id) REFERENCES incident_management_escalation_rules(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.resource_label_events - ADD CONSTRAINT fk_rails_b126799f57 FOREIGN KEY (label_id) REFERENCES public.labels(id) ON DELETE SET NULL; +ALTER TABLE ONLY ip_restrictions + ADD CONSTRAINT fk_rails_04a93778d5 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY terraform_state_versions + ADD CONSTRAINT fk_rails_04f176e239 FOREIGN KEY (terraform_state_id) REFERENCES terraform_states(id) ON DELETE CASCADE; --- --- Name: webauthn_registrations fk_rails_b15c016782; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY search_namespace_index_assignments + ADD CONSTRAINT fk_rails_06f9b905d3 FOREIGN KEY (namespace_id) REFERENCES namespaces(id); -ALTER TABLE ONLY public.webauthn_registrations - ADD CONSTRAINT fk_rails_b15c016782 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY issue_assignment_events + ADD CONSTRAINT fk_rails_07683f8e80 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY virtual_registries_packages_maven_cached_responses + ADD CONSTRAINT fk_rails_0816e694a3 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: packages_build_infos fk_rails_b18868292d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY security_policies + ADD CONSTRAINT fk_rails_08722e8ac7 FOREIGN KEY (security_policy_management_project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_build_infos - ADD CONSTRAINT fk_rails_b18868292d FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY work_item_hierarchy_restrictions + ADD CONSTRAINT fk_rails_08cd7fef58 FOREIGN KEY (child_type_id) REFERENCES work_item_types(id) ON DELETE CASCADE; +ALTER TABLE ONLY trending_projects + ADD CONSTRAINT fk_rails_09feecd872 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: authentication_events fk_rails_b204656a54; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY security_orchestration_policy_configurations + ADD CONSTRAINT fk_rails_0a22dcd52d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.authentication_events - ADD CONSTRAINT fk_rails_b204656a54 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER TABLE ONLY project_deploy_tokens + ADD CONSTRAINT fk_rails_0aca134388 FOREIGN KEY (deploy_token_id) REFERENCES deploy_tokens(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_saved_replies + ADD CONSTRAINT fk_rails_0ace76afbb FOREIGN KEY (project_id) REFERENCES projects(id); --- --- Name: merge_trains fk_rails_b29261ce31; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_debian_group_distributions + ADD CONSTRAINT fk_rails_0adf75c347 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE RESTRICT; -ALTER TABLE ONLY public.merge_trains - ADD CONSTRAINT fk_rails_b29261ce31 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_conan_file_metadata + ADD CONSTRAINT fk_rails_0afabd9328 FOREIGN KEY (package_file_id) REFERENCES packages_package_files(id) ON DELETE CASCADE; +ALTER TABLE ONLY related_epic_links + ADD CONSTRAINT fk_rails_0b72027748 FOREIGN KEY (target_id) REFERENCES epics(id) ON DELETE CASCADE; --- --- Name: board_project_recent_visits fk_rails_b315dd0c80; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY audit_events_external_audit_event_destinations + ADD CONSTRAINT fk_rails_0bc80a4edc FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.board_project_recent_visits - ADD CONSTRAINT fk_rails_b315dd0c80 FOREIGN KEY (board_id) REFERENCES public.boards(id) ON DELETE CASCADE; +ALTER TABLE ONLY operations_user_lists + ADD CONSTRAINT fk_rails_0c716e079b FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY resource_link_events + ADD CONSTRAINT fk_rails_0cea73eba5 FOREIGN KEY (child_work_item_id) REFERENCES issues(id) ON DELETE CASCADE; --- --- Name: issues_prometheus_alert_events fk_rails_b32edb790f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE p_catalog_resource_component_usages + ADD CONSTRAINT fk_rails_0e15a4677f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.issues_prometheus_alert_events - ADD CONSTRAINT fk_rails_b32edb790f FOREIGN KEY (prometheus_alert_event_id) REFERENCES public.prometheus_alert_events(id) ON DELETE CASCADE; +ALTER TABLE ONLY audit_events_google_cloud_logging_configurations + ADD CONSTRAINT fk_rails_0eb52fc617 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY geo_node_statuses + ADD CONSTRAINT fk_rails_0ecc699c2a FOREIGN KEY (geo_node_id) REFERENCES geo_nodes(id) ON DELETE CASCADE; --- --- Name: merge_trains fk_rails_b374b5225d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY user_synced_attributes_metadata + ADD CONSTRAINT fk_rails_0f4aa0981f FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.merge_trains - ADD CONSTRAINT fk_rails_b374b5225d FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_authorizations + ADD CONSTRAINT fk_rails_0f84bb11f3 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY boards_epic_lists + ADD CONSTRAINT fk_rails_0f9c7f646f FOREIGN KEY (epic_board_id) REFERENCES boards_epic_boards(id) ON DELETE CASCADE; --- --- Name: merge_request_predictions fk_rails_b3b78cbcd0; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY issue_email_participants + ADD CONSTRAINT fk_rails_0fdfd8b811 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.merge_request_predictions - ADD CONSTRAINT fk_rails_b3b78cbcd0 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_context_commits + ADD CONSTRAINT fk_rails_0fe0039f60 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY prometheus_alert_events + ADD CONSTRAINT fk_rails_106f901176 FOREIGN KEY (prometheus_alert_id) REFERENCES prometheus_alerts(id) ON DELETE CASCADE; --- --- Name: incident_management_escalation_rules fk_rails_b3c9c17bd4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY audit_events_streaming_headers + ADD CONSTRAINT fk_rails_109fcf96e2 FOREIGN KEY (external_audit_event_destination_id) REFERENCES audit_events_external_audit_event_destinations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.incident_management_escalation_rules - ADD CONSTRAINT fk_rails_b3c9c17bd4 FOREIGN KEY (oncall_schedule_id) REFERENCES public.incident_management_oncall_schedules(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_sources_projects + ADD CONSTRAINT fk_rails_10a1eb379a_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY ci_sources_projects + ADD CONSTRAINT fk_rails_10a1eb379a_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; --- --- Name: duo_workflows_checkpoints fk_rails_b4c109b1a4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY virtual_registries_packages_maven_cached_responses + ADD CONSTRAINT fk_rails_1167f21441 FOREIGN KEY (upstream_id) REFERENCES virtual_registries_packages_maven_upstreams(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.duo_workflows_checkpoints - ADD CONSTRAINT fk_rails_b4c109b1a4 FOREIGN KEY (workflow_id) REFERENCES public.duo_workflows_workflows(id) ON DELETE CASCADE; +ALTER TABLE ONLY zoom_meetings + ADD CONSTRAINT fk_rails_1190f0e0fa FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY gpg_signatures + ADD CONSTRAINT fk_rails_11ae8cb9a7 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: packages_debian_project_component_files fk_rails_b543a9622b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY pm_affected_packages + ADD CONSTRAINT fk_rails_1279c1b9a1 FOREIGN KEY (pm_advisory_id) REFERENCES pm_advisories(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_debian_project_component_files - ADD CONSTRAINT fk_rails_b543a9622b FOREIGN KEY (architecture_id) REFERENCES public.packages_debian_project_architectures(id) ON DELETE RESTRICT; +ALTER TABLE ONLY description_versions + ADD CONSTRAINT fk_rails_12b144011c FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_statistics + ADD CONSTRAINT fk_rails_12c471002f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: namespace_aggregation_schedules fk_rails_b565c8d16c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY user_details + ADD CONSTRAINT fk_rails_12e0b3043d FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.namespace_aggregation_schedules - ADD CONSTRAINT fk_rails_b565c8d16c FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY bulk_imports + ADD CONSTRAINT fk_rails_130a09357d FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY diff_note_positions + ADD CONSTRAINT fk_rails_13c7212859 FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; --- --- Name: container_registry_data_repair_details fk_rails_b70d8111d9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_aggregations + ADD CONSTRAINT fk_rails_13c8374c7a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.container_registry_data_repair_details - ADD CONSTRAINT fk_rails_b70d8111d9 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY service_desk_custom_email_verifications + ADD CONSTRAINT fk_rails_14dcaf4c92 FOREIGN KEY (triggerer_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY namespaces_storage_limit_exclusions + ADD CONSTRAINT fk_rails_14e8f7b0e0 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: batched_background_migration_job_transition_logs fk_rails_b7523a175b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY users_security_dashboard_projects + ADD CONSTRAINT fk_rails_150cd5682c FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE public.batched_background_migration_job_transition_logs - ADD CONSTRAINT fk_rails_b7523a175b FOREIGN KEY (batched_background_migration_job_id) REFERENCES public.batched_background_migration_jobs(id) ON DELETE CASCADE; +ALTER TABLE ONLY import_source_user_placeholder_references + ADD CONSTRAINT fk_rails_158995b934 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY import_source_users + ADD CONSTRAINT fk_rails_167f82fd95 FOREIGN KEY (reassign_to_user_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: approval_project_rules_protected_branches fk_rails_b7567b031b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_build_report_results + ADD CONSTRAINT fk_rails_16cb1ff064_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY public.approval_project_rules_protected_branches - ADD CONSTRAINT fk_rails_b7567b031b FOREIGN KEY (protected_branch_id) REFERENCES public.protected_branches(id) ON DELETE CASCADE; +ALTER TABLE ONLY catalog_resources + ADD CONSTRAINT fk_rails_16f09e5c44 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_deploy_tokens + ADD CONSTRAINT fk_rails_170e03cbaf FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: packages_composer_cache_files fk_rails_b82cea43a0; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY security_orchestration_policy_rule_schedules + ADD CONSTRAINT fk_rails_17ade83f17 FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES security_orchestration_policy_configurations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_composer_cache_files - ADD CONSTRAINT fk_rails_b82cea43a0 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE SET NULL; +ALTER TABLE ONLY approval_policy_rules + ADD CONSTRAINT fk_rails_17c6dfe138 FOREIGN KEY (security_policy_id) REFERENCES security_policies(id) ON DELETE CASCADE; +ALTER TABLE ONLY incident_management_escalation_rules + ADD CONSTRAINT fk_rails_17dbea07a6 FOREIGN KEY (policy_id) REFERENCES incident_management_escalation_policies(id) ON DELETE CASCADE; --- --- Name: abuse_trust_scores fk_rails_b903079eb4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY audit_events_streaming_http_group_namespace_filters + ADD CONSTRAINT fk_rails_17f19c81df FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.abuse_trust_scores - ADD CONSTRAINT fk_rails_b903079eb4 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY cluster_providers_aws + ADD CONSTRAINT fk_rails_18983d9ea4 FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE; +ALTER TABLE ONLY grafana_integrations + ADD CONSTRAINT fk_rails_18d0e2b564 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: virtual_registries_packages_maven_registry_upstreams fk_rails_b991fff0be; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY bulk_import_failures + ADD CONSTRAINT fk_rails_1964240b8c FOREIGN KEY (bulk_import_entity_id) REFERENCES bulk_import_entities(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.virtual_registries_packages_maven_registry_upstreams - ADD CONSTRAINT fk_rails_b991fff0be FOREIGN KEY (registry_id) REFERENCES public.virtual_registries_packages_maven_registries(id) ON DELETE CASCADE; +ALTER TABLE ONLY group_wiki_repositories + ADD CONSTRAINT fk_rails_19755e374b FOREIGN KEY (shard_id) REFERENCES shards(id) ON DELETE RESTRICT; +ALTER TABLE ONLY gpg_signatures + ADD CONSTRAINT fk_rails_19d4f1c6f9 FOREIGN KEY (gpg_key_subkey_id) REFERENCES gpg_key_subkeys(id) ON DELETE SET NULL; --- --- Name: dora_configurations fk_rails_b9b8d90ddb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY incident_management_oncall_schedules + ADD CONSTRAINT fk_rails_19e83fdd65 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.dora_configurations - ADD CONSTRAINT fk_rails_b9b8d90ddb FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_user_mentions + ADD CONSTRAINT fk_rails_1a41c485cd FOREIGN KEY (vulnerability_id) REFERENCES vulnerabilities(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_debian_file_metadata + ADD CONSTRAINT fk_rails_1ae85be112 FOREIGN KEY (package_file_id) REFERENCES packages_package_files(id) ON DELETE CASCADE; --- --- Name: merge_trains fk_rails_b9d67af01d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY catalog_verified_namespaces + ADD CONSTRAINT fk_rails_1b6bb852c0 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.merge_trains - ADD CONSTRAINT fk_rails_b9d67af01d FOREIGN KEY (target_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY issuable_slas + ADD CONSTRAINT fk_rails_1b8768cd63 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY board_assignees + ADD CONSTRAINT fk_rails_1c0ff59e82 FOREIGN KEY (assignee_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: approval_project_rules_users fk_rails_b9e9394efb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY epic_user_mentions + ADD CONSTRAINT fk_rails_1c65976a49 FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.approval_project_rules_users - ADD CONSTRAINT fk_rails_b9e9394efb FOREIGN KEY (approval_project_rule_id) REFERENCES public.approval_project_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY approver_groups + ADD CONSTRAINT fk_rails_1cdcbd7723 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_ci_feature_usages + ADD CONSTRAINT fk_rails_1deedbf64b FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: lists fk_rails_baed5f39b7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_tags + ADD CONSTRAINT fk_rails_1dfc868911 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.lists - ADD CONSTRAINT fk_rails_baed5f39b7 FOREIGN KEY (milestone_id) REFERENCES public.milestones(id) ON DELETE CASCADE; +ALTER TABLE ONLY boards_epic_board_positions + ADD CONSTRAINT fk_rails_1ecfd9f2de FOREIGN KEY (epic_id) REFERENCES epics(id) ON DELETE CASCADE; +ALTER TABLE ONLY external_status_checks + ADD CONSTRAINT fk_rails_1f5a8aa809 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: security_findings fk_rails_bb63863cf1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY dora_daily_metrics + ADD CONSTRAINT fk_rails_1fd07aff6f FOREIGN KEY (environment_id) REFERENCES environments(id) ON DELETE CASCADE; -ALTER TABLE public.security_findings - ADD CONSTRAINT fk_rails_bb63863cf1 FOREIGN KEY (scan_id) REFERENCES public.security_scans(id) ON DELETE CASCADE; +ALTER TABLE ONLY boards_epic_lists + ADD CONSTRAINT fk_rails_1fe6b54909 FOREIGN KEY (label_id) REFERENCES labels(id) ON DELETE CASCADE; +ALTER TABLE ONLY approval_merge_request_rules_groups + ADD CONSTRAINT fk_rails_2020a7124a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: packages_debian_project_component_files fk_rails_bbe9ebfbd9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY user_statuses + ADD CONSTRAINT fk_rails_2178592333 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_debian_project_component_files - ADD CONSTRAINT fk_rails_bbe9ebfbd9 FOREIGN KEY (component_id) REFERENCES public.packages_debian_project_components(id) ON DELETE RESTRICT; +ALTER TABLE ONLY ai_agent_versions + ADD CONSTRAINT fk_rails_2205f8ca20 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY users_ops_dashboard_projects + ADD CONSTRAINT fk_rails_220a0562db FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: projects_sync_events fk_rails_bbf0eef59f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY service_desk_settings + ADD CONSTRAINT fk_rails_223a296a85 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.projects_sync_events - ADD CONSTRAINT fk_rails_bbf0eef59f FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY saml_group_links + ADD CONSTRAINT fk_rails_22e312c530 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY work_item_parent_links + ADD CONSTRAINT fk_rails_231dba8959 FOREIGN KEY (work_item_parent_id) REFERENCES issues(id) ON DELETE CASCADE; --- --- Name: p_ci_build_names fk_rails_bc221a297a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY dast_profiles + ADD CONSTRAINT fk_rails_23cae5abe1 FOREIGN KEY (dast_scanner_profile_id) REFERENCES dast_scanner_profiles(id) ON DELETE CASCADE; -ALTER TABLE public.p_ci_build_names - ADD CONSTRAINT fk_rails_bc221a297a FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY group_custom_attributes + ADD CONSTRAINT fk_rails_246e0db83a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY incident_management_oncall_rotations + ADD CONSTRAINT fk_rails_256e0bc604 FOREIGN KEY (oncall_schedule_id) REFERENCES incident_management_oncall_schedules(id) ON DELETE CASCADE; --- --- Name: approval_merge_request_rules_users fk_rails_bc8972fa55; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_unit_test_failures + ADD CONSTRAINT fk_rails_259da3e79c FOREIGN KEY (unit_test_id) REFERENCES ci_unit_tests(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.approval_merge_request_rules_users - ADD CONSTRAINT fk_rails_bc8972fa55 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_builds + ADD CONSTRAINT fk_rails_25dc49c011 FOREIGN KEY (partition_id, execution_config_id) REFERENCES p_ci_builds_execution_configs(partition_id, id) ON UPDATE CASCADE ON DELETE SET NULL NOT VALID; +ALTER TABLE ONLY cluster_agents + ADD CONSTRAINT fk_rails_25e9fc2d5d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: observability_traces_issues_connections fk_rails_bcf18aa0d2; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY boards_epic_user_preferences + ADD CONSTRAINT fk_rails_268c57d62d FOREIGN KEY (board_id) REFERENCES boards(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.observability_traces_issues_connections - ADD CONSTRAINT fk_rails_bcf18aa0d2 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY group_wiki_repositories + ADD CONSTRAINT fk_rails_26f867598c FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY lfs_file_locks + ADD CONSTRAINT fk_rails_27a1d98fa8 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: elasticsearch_indexed_projects fk_rails_bd13bbdc3d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_alerting_settings + ADD CONSTRAINT fk_rails_27a84b407d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.elasticsearch_indexed_projects - ADD CONSTRAINT fk_rails_bd13bbdc3d FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY work_item_hierarchy_restrictions + ADD CONSTRAINT fk_rails_27bb3a10ba FOREIGN KEY (parent_type_id) REFERENCES work_item_types(id) ON DELETE CASCADE; +ALTER TABLE ONLY user_credit_card_validations + ADD CONSTRAINT fk_rails_27ebc03cbf FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: elasticsearch_indexed_namespaces fk_rails_bdcf044f37; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY dast_site_validations + ADD CONSTRAINT fk_rails_285c617324 FOREIGN KEY (dast_site_token_id) REFERENCES dast_site_tokens(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.elasticsearch_indexed_namespaces - ADD CONSTRAINT fk_rails_bdcf044f37 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_findings_remediations + ADD CONSTRAINT fk_rails_28a8d0cf93 FOREIGN KEY (vulnerability_occurrence_id) REFERENCES vulnerability_occurrences(id) ON DELETE CASCADE; +ALTER TABLE ONLY design_management_repositories + ADD CONSTRAINT fk_rails_2938d8dd8d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: vulnerability_occurrence_identifiers fk_rails_be2e49e1d0; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY incident_management_issuable_escalation_statuses + ADD CONSTRAINT fk_rails_29abffe3b9 FOREIGN KEY (policy_id) REFERENCES incident_management_escalation_policies(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.vulnerability_occurrence_identifiers - ADD CONSTRAINT fk_rails_be2e49e1d0 FOREIGN KEY (identifier_id) REFERENCES public.vulnerability_identifiers(id) ON DELETE CASCADE; +ALTER TABLE ONLY resource_state_events + ADD CONSTRAINT fk_rails_29af06892a FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY reviews + ADD CONSTRAINT fk_rails_29e6f859c4 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: bulk_import_export_batches fk_rails_be479792f6; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY draft_notes + ADD CONSTRAINT fk_rails_2a8dac9901 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.bulk_import_export_batches - ADD CONSTRAINT fk_rails_be479792f6 FOREIGN KEY (export_id) REFERENCES public.bulk_import_exports(id) ON DELETE CASCADE; +ALTER TABLE ONLY xray_reports + ADD CONSTRAINT fk_rails_2b13fbecf9 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY dependency_proxy_image_ttl_group_policies + ADD CONSTRAINT fk_rails_2b1896d021 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: alert_management_http_integrations fk_rails_bec49f52cc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY group_group_links + ADD CONSTRAINT fk_rails_2b2353ca49 FOREIGN KEY (shared_with_group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.alert_management_http_integrations - ADD CONSTRAINT fk_rails_bec49f52cc FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_debian_group_component_files + ADD CONSTRAINT fk_rails_2b8992dd83 FOREIGN KEY (architecture_id) REFERENCES packages_debian_group_architectures(id) ON DELETE RESTRICT; +ALTER TABLE ONLY boards_epic_board_labels + ADD CONSTRAINT fk_rails_2bedeb8799 FOREIGN KEY (label_id) REFERENCES labels(id) ON DELETE CASCADE; --- --- Name: namespace_ci_cd_settings fk_rails_bf04185d54; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY error_tracking_error_events + ADD CONSTRAINT fk_rails_2c096c0076 FOREIGN KEY (error_id) REFERENCES error_tracking_errors(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.namespace_ci_cd_settings - ADD CONSTRAINT fk_rails_bf04185d54 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY work_item_colors + ADD CONSTRAINT fk_rails_2c2032206e FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY onboarding_progresses + ADD CONSTRAINT fk_rails_2ccfd420cc FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: vulnerability_occurrences fk_rails_bf5b788ca7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY protected_branch_unprotect_access_levels + ADD CONSTRAINT fk_rails_2d2aba21ef FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.vulnerability_occurrences - ADD CONSTRAINT fk_rails_bf5b788ca7 FOREIGN KEY (scanner_id) REFERENCES public.vulnerability_scanners(id) ON DELETE CASCADE; +ALTER TABLE ONLY issuable_severities + ADD CONSTRAINT fk_rails_2fbb74ad6d FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY saml_providers + ADD CONSTRAINT fk_rails_306d459be7 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: resource_weight_events fk_rails_bfc406b47c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY bulk_import_batch_trackers + ADD CONSTRAINT fk_rails_307efb9f32 FOREIGN KEY (tracker_id) REFERENCES bulk_import_trackers(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.resource_weight_events - ADD CONSTRAINT fk_rails_bfc406b47c FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER TABLE ONLY pm_package_version_licenses + ADD CONSTRAINT fk_rails_30ddb7f837 FOREIGN KEY (pm_package_version_id) REFERENCES pm_package_versions(id) ON DELETE CASCADE; +ALTER TABLE ONLY resource_state_events + ADD CONSTRAINT fk_rails_3112bba7dc FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; --- --- Name: design_management_designs fk_rails_bfe283ec3c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_request_diff_commits + ADD CONSTRAINT fk_rails_316aaceda3 FOREIGN KEY (merge_request_diff_id) REFERENCES merge_request_diffs(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.design_management_designs - ADD CONSTRAINT fk_rails_bfe283ec3c FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY group_import_states + ADD CONSTRAINT fk_rails_31c3e0503a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY zoom_meetings + ADD CONSTRAINT fk_rails_3263f29616 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; --- --- Name: atlassian_identities fk_rails_c02928bc18; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY container_repositories + ADD CONSTRAINT fk_rails_32f7bf5aad FOREIGN KEY (project_id) REFERENCES projects(id); -ALTER TABLE ONLY public.atlassian_identities - ADD CONSTRAINT fk_rails_c02928bc18 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY ai_agents + ADD CONSTRAINT fk_rails_3328b05449 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY alert_management_alert_metric_images + ADD CONSTRAINT fk_rails_338e55b408 FOREIGN KEY (alert_id) REFERENCES alert_management_alerts(id) ON DELETE CASCADE; --- --- Name: slack_integrations_scopes fk_rails_c0e018a6fe; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY suggestions + ADD CONSTRAINT fk_rails_33b03a535c FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.slack_integrations_scopes - ADD CONSTRAINT fk_rails_c0e018a6fe FOREIGN KEY (slack_api_scope_id) REFERENCES public.slack_api_scopes(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_terraform_module_metadata + ADD CONSTRAINT fk_rails_33c045442a FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY metrics_dashboard_annotations + ADD CONSTRAINT fk_rails_345ab51043 FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE; --- --- Name: packages_npm_metadata fk_rails_c0e5fce6f3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY group_features + ADD CONSTRAINT fk_rails_356514082b FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_npm_metadata - ADD CONSTRAINT fk_rails_c0e5fce6f3 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY wiki_page_slugs + ADD CONSTRAINT fk_rails_358b46be14 FOREIGN KEY (wiki_page_meta_id) REFERENCES wiki_page_meta(id) ON DELETE CASCADE; +ALTER TABLE ONLY board_labels + ADD CONSTRAINT fk_rails_362b0600a3 FOREIGN KEY (label_id) REFERENCES labels(id) ON DELETE CASCADE; --- --- Name: labels fk_rails_c1ac5161d8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY virtual_registries_packages_maven_upstreams + ADD CONSTRAINT fk_rails_3649ef6e9a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.labels - ADD CONSTRAINT fk_rails_c1ac5161d8 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_blocks + ADD CONSTRAINT fk_rails_364d4bea8b FOREIGN KEY (blocked_merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_reviewers + ADD CONSTRAINT fk_rails_3704a66140 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: project_feature_usages fk_rails_c22a50024b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY group_merge_request_approval_settings + ADD CONSTRAINT fk_rails_37b6b4cdba FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.project_feature_usages - ADD CONSTRAINT fk_rails_c22a50024b FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_debian_project_distribution_keys + ADD CONSTRAINT fk_rails_3834a11264 FOREIGN KEY (distribution_id) REFERENCES packages_debian_project_distributions(id) ON DELETE CASCADE; +ALTER TABLE ONLY issue_user_mentions + ADD CONSTRAINT fk_rails_3861d9fefa FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; --- --- Name: p_ci_builds_execution_configs fk_rails_c26408d02c_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY namespace_settings + ADD CONSTRAINT fk_rails_3896d4fae5 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE public.p_ci_builds_execution_configs - ADD CONSTRAINT fk_rails_c26408d02c_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY self_managed_prometheus_alert_events + ADD CONSTRAINT fk_rails_3936dadc62 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_cleanup_policies + ADD CONSTRAINT fk_rails_393ba98591 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: user_canonical_emails fk_rails_c2bd828b51; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY approval_project_rules_groups + ADD CONSTRAINT fk_rails_396841e79e FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.user_canonical_emails - ADD CONSTRAINT fk_rails_c2bd828b51 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY self_managed_prometheus_alert_events + ADD CONSTRAINT fk_rails_39d83d1b65 FOREIGN KEY (environment_id) REFERENCES environments(id) ON DELETE CASCADE; +ALTER TABLE ONLY chat_teams + ADD CONSTRAINT fk_rails_3b543909cb FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: project_repositories fk_rails_c3258dc63b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_build_needs + ADD CONSTRAINT fk_rails_3cf221d4ed_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY public.project_repositories - ADD CONSTRAINT fk_rails_c3258dc63b FOREIGN KEY (shard_id) REFERENCES public.shards(id) ON DELETE RESTRICT; +ALTER TABLE ONLY cluster_groups + ADD CONSTRAINT fk_rails_3d28377556 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY note_diff_files + ADD CONSTRAINT fk_rails_3d66047aeb FOREIGN KEY (diff_note_id) REFERENCES notes(id) ON DELETE CASCADE; --- --- Name: packages_nuget_dependency_link_metadata fk_rails_c3313ee2e4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY virtual_registries_packages_maven_registry_upstreams + ADD CONSTRAINT fk_rails_3dc6bd8333 FOREIGN KEY (upstream_id) REFERENCES virtual_registries_packages_maven_upstreams(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_nuget_dependency_link_metadata - ADD CONSTRAINT fk_rails_c3313ee2e4 FOREIGN KEY (dependency_link_id) REFERENCES public.packages_dependency_links(id) ON DELETE CASCADE; +ALTER TABLE ONLY snippet_user_mentions + ADD CONSTRAINT fk_rails_3e00189191 FOREIGN KEY (snippet_id) REFERENCES snippets(id) ON DELETE CASCADE; +ALTER TABLE ONLY early_access_program_tracking_events + ADD CONSTRAINT fk_rails_3e8c32b3dd FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: group_deploy_keys_groups fk_rails_c3854f19f5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY epic_user_mentions + ADD CONSTRAINT fk_rails_3eaf4d88cc FOREIGN KEY (epic_id) REFERENCES epics(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.group_deploy_keys_groups - ADD CONSTRAINT fk_rails_c3854f19f5 FOREIGN KEY (group_deploy_key_id) REFERENCES public.group_deploy_keys(id) ON DELETE CASCADE; +ALTER TABLE ONLY issuable_resource_links + ADD CONSTRAINT fk_rails_3f0ec6b1cf FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY board_assignees + ADD CONSTRAINT fk_rails_3f6f926bd5 FOREIGN KEY (board_id) REFERENCES boards(id) ON DELETE CASCADE; --- --- Name: project_wiki_repositories fk_rails_c3dd796199; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY description_versions + ADD CONSTRAINT fk_rails_3ff658220b FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.project_wiki_repositories - ADD CONSTRAINT fk_rails_c3dd796199 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY clusters_kubernetes_namespaces + ADD CONSTRAINT fk_rails_40cc7ccbc3 FOREIGN KEY (cluster_project_id) REFERENCES cluster_projects(id) ON DELETE SET NULL; +ALTER TABLE ONLY lfs_object_states + ADD CONSTRAINT fk_rails_4188448cd5 FOREIGN KEY (lfs_object_id) REFERENCES lfs_objects(id) ON DELETE CASCADE; --- --- Name: merge_request_user_mentions fk_rails_c440b9ea31; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY geo_node_namespace_links + ADD CONSTRAINT fk_rails_41ff5fb854 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.merge_request_user_mentions - ADD CONSTRAINT fk_rails_c440b9ea31 FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; +ALTER TABLE ONLY epic_issues + ADD CONSTRAINT fk_rails_4209981af6 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_resources + ADD CONSTRAINT fk_rails_430336af2d FOREIGN KEY (resource_group_id) REFERENCES ci_resource_groups(id) ON DELETE CASCADE; --- --- Name: user_achievements fk_rails_c44f5b3b25; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY batched_background_migration_jobs + ADD CONSTRAINT fk_rails_432153b86d FOREIGN KEY (batched_background_migration_id) REFERENCES batched_background_migrations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.user_achievements - ADD CONSTRAINT fk_rails_c44f5b3b25 FOREIGN KEY (achievement_id) REFERENCES public.achievements(id) ON DELETE CASCADE; +ALTER TABLE ONLY operations_strategies_user_lists + ADD CONSTRAINT fk_rails_43241e8d29 FOREIGN KEY (strategy_id) REFERENCES operations_strategies(id) ON DELETE CASCADE; +ALTER TABLE ONLY activity_pub_releases_subscriptions + ADD CONSTRAINT fk_rails_4337598314 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: related_epic_links fk_rails_c464534def; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_value_stream_settings + ADD CONSTRAINT fk_rails_4360d37256 FOREIGN KEY (value_stream_id) REFERENCES analytics_cycle_analytics_group_value_streams(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.related_epic_links - ADD CONSTRAINT fk_rails_c464534def FOREIGN KEY (source_id) REFERENCES public.epics(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_assignment_events + ADD CONSTRAINT fk_rails_4378a2e8d7 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY lfs_file_locks + ADD CONSTRAINT fk_rails_43df7a0412 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: boards_epic_board_recent_visits fk_rails_c4dcba4a3e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY dast_site_profile_secret_variables + ADD CONSTRAINT fk_rails_43e2897950 FOREIGN KEY (dast_site_profile_id) REFERENCES dast_site_profiles(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.boards_epic_board_recent_visits - ADD CONSTRAINT fk_rails_c4dcba4a3e FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_assignees + ADD CONSTRAINT fk_rails_443443ce6f FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_dependency_links + ADD CONSTRAINT fk_rails_4437bf4070 FOREIGN KEY (dependency_id) REFERENCES packages_dependencies(id) ON DELETE CASCADE; --- --- Name: p_ci_job_artifacts fk_rails_c5137cb2c1_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY work_item_related_link_restrictions + ADD CONSTRAINT fk_rails_4513f0061c FOREIGN KEY (target_type_id) REFERENCES work_item_types(id) ON DELETE CASCADE; -ALTER TABLE public.p_ci_job_artifacts - ADD CONSTRAINT fk_rails_c5137cb2c1_p FOREIGN KEY (partition_id, job_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY project_auto_devops + ADD CONSTRAINT fk_rails_45436b12b2 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY dora_performance_scores + ADD CONSTRAINT fk_rails_455f9acc65 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: organization_settings fk_rails_c56e4690c0; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_requests_closing_issues + ADD CONSTRAINT fk_rails_458eda8667 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.organization_settings - ADD CONSTRAINT fk_rails_c56e4690c0 FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; +ALTER TABLE ONLY protected_environment_deploy_access_levels + ADD CONSTRAINT fk_rails_45cc02a931 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY prometheus_alert_events + ADD CONSTRAINT fk_rails_4675865839 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: system_access_microsoft_applications fk_rails_c5b7765d04; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY smartcard_identities + ADD CONSTRAINT fk_rails_4689f889a9 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.system_access_microsoft_applications - ADD CONSTRAINT fk_rails_c5b7765d04 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_feedback + ADD CONSTRAINT fk_rails_472f69b043 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY user_custom_attributes + ADD CONSTRAINT fk_rails_47b91868a8 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: custom_software_licenses fk_rails_c68163fae6; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY upcoming_reconciliations + ADD CONSTRAINT fk_rails_497b4938ac FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.custom_software_licenses - ADD CONSTRAINT fk_rails_c68163fae6 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY group_deletion_schedules + ADD CONSTRAINT fk_rails_4b8c694a6c FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY snippet_repository_storage_moves + ADD CONSTRAINT fk_rails_4b950f5b94 FOREIGN KEY (snippet_id) REFERENCES snippets(id) ON DELETE CASCADE; --- --- Name: project_settings fk_rails_c6df6e6328; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY design_management_designs + ADD CONSTRAINT fk_rails_4bb1073360 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.project_settings - ADD CONSTRAINT fk_rails_c6df6e6328 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY issue_metrics + ADD CONSTRAINT fk_rails_4bb543d85d FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_metrics_settings + ADD CONSTRAINT fk_rails_4c6037ee4f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: container_expiration_policies fk_rails_c7360f09ad; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY prometheus_metrics + ADD CONSTRAINT fk_rails_4c8957a707 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.container_expiration_policies - ADD CONSTRAINT fk_rails_c7360f09ad FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY dependency_proxy_blob_states + ADD CONSTRAINT fk_rails_4cdbb92cbd FOREIGN KEY (dependency_proxy_blob_id) REFERENCES dependency_proxy_blobs(id) ON DELETE CASCADE; +ALTER TABLE ONLY scim_identities + ADD CONSTRAINT fk_rails_4d2056ebd9 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: wiki_page_meta fk_rails_c7a0c59cf1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY snippet_user_mentions + ADD CONSTRAINT fk_rails_4d3f96b2cb FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.wiki_page_meta - ADD CONSTRAINT fk_rails_c7a0c59cf1 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY protected_environment_approval_rules + ADD CONSTRAINT fk_rails_4e554f96f5 FOREIGN KEY (protected_environment_id) REFERENCES protected_environments(id) ON DELETE CASCADE; +ALTER TABLE ONLY aws_roles + ADD CONSTRAINT fk_rails_4ed56f4720 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: scim_oauth_access_tokens fk_rails_c84404fb6c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_debian_publications + ADD CONSTRAINT fk_rails_4fc8ebd03e FOREIGN KEY (distribution_id) REFERENCES packages_debian_project_distributions(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.scim_oauth_access_tokens - ADD CONSTRAINT fk_rails_c84404fb6c FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_diff_files + ADD CONSTRAINT fk_rails_501aa0a391 FOREIGN KEY (merge_request_diff_id) REFERENCES merge_request_diffs(id) ON DELETE CASCADE; +ALTER TABLE ONLY resource_iteration_events + ADD CONSTRAINT fk_rails_501fa15d69 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: vulnerability_occurrences fk_rails_c8661a61eb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY status_page_settings + ADD CONSTRAINT fk_rails_506e5ba391 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.vulnerability_occurrences - ADD CONSTRAINT fk_rails_c8661a61eb FOREIGN KEY (primary_identifier_id) REFERENCES public.vulnerability_identifiers(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_pipeline_metadata + ADD CONSTRAINT fk_rails_50c1e9ea10_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY ci_pipeline_metadata + ADD CONSTRAINT fk_rails_50c1e9ea10_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; --- --- Name: project_export_jobs fk_rails_c88d8db2e1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_repository_storage_moves + ADD CONSTRAINT fk_rails_5106dbd44a FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.project_export_jobs - ADD CONSTRAINT fk_rails_c88d8db2e1 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY ml_candidate_metadata + ADD CONSTRAINT fk_rails_5117dddf22 FOREIGN KEY (candidate_id) REFERENCES ml_candidates(id) ON DELETE CASCADE; +ALTER TABLE zoekt_tasks + ADD CONSTRAINT fk_rails_51af186590 FOREIGN KEY (zoekt_node_id) REFERENCES zoekt_nodes(id) ON DELETE CASCADE; --- --- Name: resource_state_events fk_rails_c913c64977; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ml_models + ADD CONSTRAINT fk_rails_51e87f7c50 FOREIGN KEY (project_id) REFERENCES projects(id); -ALTER TABLE ONLY public.resource_state_events - ADD CONSTRAINT fk_rails_c913c64977 FOREIGN KEY (epic_id) REFERENCES public.epics(id) ON DELETE CASCADE; +ALTER TABLE ONLY elastic_group_index_statuses + ADD CONSTRAINT fk_rails_52b9969b12 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY observability_metrics_issues_connections + ADD CONSTRAINT fk_rails_533fe605e3 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; --- --- Name: resource_milestone_events fk_rails_c940fb9fc5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY bulk_import_configurations + ADD CONSTRAINT fk_rails_536b96bff1 FOREIGN KEY (bulk_import_id) REFERENCES bulk_imports(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.resource_milestone_events - ADD CONSTRAINT fk_rails_c940fb9fc5 FOREIGN KEY (milestone_id) REFERENCES public.milestones(id) ON DELETE CASCADE; +ALTER TABLE ONLY workspace_variables + ADD CONSTRAINT fk_rails_539844891e FOREIGN KEY (workspace_id) REFERENCES workspaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY x509_commit_signatures + ADD CONSTRAINT fk_rails_53fe41188f FOREIGN KEY (x509_certificate_id) REFERENCES x509_certificates(id) ON DELETE CASCADE; --- --- Name: gpg_signatures fk_rails_c97176f5f7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_group_value_streams + ADD CONSTRAINT fk_rails_540627381a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.gpg_signatures - ADD CONSTRAINT fk_rails_c97176f5f7 FOREIGN KEY (gpg_key_id) REFERENCES public.gpg_keys(id) ON DELETE SET NULL; +ALTER TABLE ONLY geo_node_namespace_links + ADD CONSTRAINT fk_rails_546bf08d3e FOREIGN KEY (geo_node_id) REFERENCES geo_nodes(id) ON DELETE CASCADE; +ALTER TABLE ONLY abuse_events + ADD CONSTRAINT fk_rails_55101e588c FOREIGN KEY (abuse_report_id) REFERENCES abuse_reports(id); --- --- Name: board_group_recent_visits fk_rails_ca04c38720; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY virtual_registries_packages_maven_registries + ADD CONSTRAINT fk_rails_555e85e52c FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.board_group_recent_visits - ADD CONSTRAINT fk_rails_ca04c38720 FOREIGN KEY (board_id) REFERENCES public.boards(id) ON DELETE CASCADE; +ALTER TABLE ONLY issuable_metric_images + ADD CONSTRAINT fk_rails_56417a5a7f FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY group_deploy_keys + ADD CONSTRAINT fk_rails_5682fc07f8 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE RESTRICT; --- --- Name: relation_import_trackers fk_rails_ca9bd1ef8a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY issue_user_mentions + ADD CONSTRAINT fk_rails_57581fda73 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.relation_import_trackers - ADD CONSTRAINT fk_rails_ca9bd1ef8a FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_assignees + ADD CONSTRAINT fk_rails_579d375628 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY incident_management_timeline_event_tag_links + ADD CONSTRAINT fk_rails_57baccd7f9 FOREIGN KEY (timeline_event_id) REFERENCES incident_management_timeline_events(id) ON DELETE CASCADE; --- --- Name: boards_epic_board_positions fk_rails_cb4563dd6e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_debian_project_architectures + ADD CONSTRAINT fk_rails_5808663adf FOREIGN KEY (distribution_id) REFERENCES packages_debian_project_distributions(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.boards_epic_board_positions - ADD CONSTRAINT fk_rails_cb4563dd6e FOREIGN KEY (epic_board_id) REFERENCES public.boards_epic_boards(id) ON DELETE CASCADE; +ALTER TABLE ONLY analytics_cycle_analytics_group_stages + ADD CONSTRAINT fk_rails_5a22f40223 FOREIGN KEY (start_event_label_id) REFERENCES labels(id) ON DELETE CASCADE; +ALTER TABLE ONLY badges + ADD CONSTRAINT fk_rails_5a7c055bdc FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: vulnerability_finding_links fk_rails_cbdfde27ce; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY resource_label_events + ADD CONSTRAINT fk_rails_5ac1d2fc24 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.vulnerability_finding_links - ADD CONSTRAINT fk_rails_cbdfde27ce FOREIGN KEY (vulnerability_occurrence_id) REFERENCES public.vulnerability_occurrences(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_secure_file_states + ADD CONSTRAINT fk_rails_5adba40c5f FOREIGN KEY (ci_secure_file_id) REFERENCES ci_secure_files(id) ON DELETE CASCADE; +ALTER TABLE ONLY approval_merge_request_rules_groups + ADD CONSTRAINT fk_rails_5b2ecf6139 FOREIGN KEY (approval_merge_request_rule_id) REFERENCES approval_merge_request_rules(id) ON DELETE CASCADE; --- --- Name: namespace_details fk_rails_cc11a451f8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY namespace_limits + ADD CONSTRAINT fk_rails_5b3f2bc334 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.namespace_details - ADD CONSTRAINT fk_rails_cc11a451f8 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY ml_model_version_metadata + ADD CONSTRAINT fk_rails_5b67cc9107 FOREIGN KEY (model_version_id) REFERENCES ml_model_versions(id) ON DELETE CASCADE; +ALTER TABLE ONLY protected_environment_deploy_access_levels + ADD CONSTRAINT fk_rails_5b9f6970fe FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: issues_self_managed_prometheus_alert_events fk_rails_cc5d88bbb0; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY protected_branch_unprotect_access_levels + ADD CONSTRAINT fk_rails_5be1abfc25 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.issues_self_managed_prometheus_alert_events - ADD CONSTRAINT fk_rails_cc5d88bbb0 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY cluster_providers_gcp + ADD CONSTRAINT fk_rails_5c2c3bc814 FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE; +ALTER TABLE ONLY insights + ADD CONSTRAINT fk_rails_5c4391f60a FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: operations_strategies_user_lists fk_rails_ccb7e4bc0b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY reviews + ADD CONSTRAINT fk_rails_5ca11d8c31 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.operations_strategies_user_lists - ADD CONSTRAINT fk_rails_ccb7e4bc0b FOREIGN KEY (user_list_id) REFERENCES public.operations_user_lists(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_running_builds + ADD CONSTRAINT fk_rails_5ca491d360 FOREIGN KEY (runner_id) REFERENCES ci_runners(id) ON DELETE CASCADE; +ALTER TABLE ONLY epic_issues + ADD CONSTRAINT fk_rails_5d942936b4 FOREIGN KEY (epic_id) REFERENCES epics(id) ON DELETE CASCADE; --- --- Name: resource_milestone_events fk_rails_cedf8cce4d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_nuget_symbols + ADD CONSTRAINT fk_rails_5df972da14 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.resource_milestone_events - ADD CONSTRAINT fk_rails_cedf8cce4d FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER TABLE ONLY resource_weight_events + ADD CONSTRAINT fk_rails_5eb5cb92a1 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY observability_logs_issues_connections + ADD CONSTRAINT fk_rails_5f0f58ca3a FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; --- --- Name: resource_iteration_events fk_rails_cee126f66c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY approval_project_rules + ADD CONSTRAINT fk_rails_5fb4dd100b FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.resource_iteration_events - ADD CONSTRAINT fk_rails_cee126f66c FOREIGN KEY (iteration_id) REFERENCES public.sprints(id) ON DELETE CASCADE; +ALTER TABLE ONLY incident_management_oncall_participants + ADD CONSTRAINT fk_rails_5fe86ea341 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY work_item_parent_links + ADD CONSTRAINT fk_rails_601d5bec3a FOREIGN KEY (work_item_id) REFERENCES issues(id) ON DELETE CASCADE; --- --- Name: member_roles fk_rails_cf0ee35814; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY system_access_microsoft_graph_access_tokens + ADD CONSTRAINT fk_rails_604908851f FOREIGN KEY (system_access_microsoft_application_id) REFERENCES system_access_microsoft_applications(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.member_roles - ADD CONSTRAINT fk_rails_cf0ee35814 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_state_transitions + ADD CONSTRAINT fk_rails_60e4899648 FOREIGN KEY (vulnerability_id) REFERENCES vulnerabilities(id) ON DELETE CASCADE; +ALTER TABLE ONLY user_highest_roles + ADD CONSTRAINT fk_rails_60f6c325a6 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: pm_package_versions fk_rails_cf94c3e601; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY dependency_proxy_group_settings + ADD CONSTRAINT fk_rails_616ddd680a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.pm_package_versions - ADD CONSTRAINT fk_rails_cf94c3e601 FOREIGN KEY (pm_package_id) REFERENCES public.pm_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY group_deploy_tokens + ADD CONSTRAINT fk_rails_61a572b41a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY sbom_component_versions + ADD CONSTRAINT fk_rails_61a83aa892 FOREIGN KEY (component_id) REFERENCES sbom_components(id) ON DELETE CASCADE; --- --- Name: upload_states fk_rails_d00f153613; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY status_page_published_incidents + ADD CONSTRAINT fk_rails_61e5493940 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.upload_states - ADD CONSTRAINT fk_rails_d00f153613 FOREIGN KEY (upload_id) REFERENCES public.uploads(id) ON DELETE CASCADE; +ALTER TABLE ONLY group_ssh_certificates + ADD CONSTRAINT fk_rails_61f9eafcdf FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY container_repository_states + ADD CONSTRAINT fk_rails_63436c99ce FOREIGN KEY (container_repository_id) REFERENCES container_repositories(id) ON DELETE CASCADE; --- --- Name: epic_metrics fk_rails_d071904753; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY deployment_clusters + ADD CONSTRAINT fk_rails_6359a164df FOREIGN KEY (deployment_id) REFERENCES deployments(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.epic_metrics - ADD CONSTRAINT fk_rails_d071904753 FOREIGN KEY (epic_id) REFERENCES public.epics(id) ON DELETE CASCADE; +ALTER TABLE incident_management_pending_issue_escalations + ADD CONSTRAINT fk_rails_636678b3bd FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY evidences + ADD CONSTRAINT fk_rails_6388b435a6 FOREIGN KEY (release_id) REFERENCES releases(id) ON DELETE CASCADE; --- --- Name: import_source_user_placeholder_references fk_rails_d0b75c434e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY jira_imports + ADD CONSTRAINT fk_rails_63cbe52ada FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.import_source_user_placeholder_references - ADD CONSTRAINT fk_rails_d0b75c434e FOREIGN KEY (source_user_id) REFERENCES public.import_source_users(id) ON DELETE CASCADE; +ALTER TABLE ONLY group_deploy_tokens + ADD CONSTRAINT fk_rails_6477b01f6b FOREIGN KEY (deploy_token_id) REFERENCES deploy_tokens(id) ON DELETE CASCADE; +ALTER TABLE ONLY reviews + ADD CONSTRAINT fk_rails_64798be025 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: subscriptions fk_rails_d0c8bda804; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY operations_feature_flags + ADD CONSTRAINT fk_rails_648e241be7 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.subscriptions - ADD CONSTRAINT fk_rails_d0c8bda804 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY board_group_recent_visits + ADD CONSTRAINT fk_rails_64bfc19bc5 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY approval_merge_request_rule_sources + ADD CONSTRAINT fk_rails_64e8ed3c7e FOREIGN KEY (approval_project_rule_id) REFERENCES approval_project_rules(id) ON DELETE CASCADE; --- --- Name: operations_strategies fk_rails_d183b6e6dd; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY approval_project_rules_protected_branches + ADD CONSTRAINT fk_rails_65203aa786 FOREIGN KEY (approval_project_rule_id) REFERENCES approval_project_rules(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.operations_strategies - ADD CONSTRAINT fk_rails_d183b6e6dd FOREIGN KEY (feature_flag_id) REFERENCES public.operations_feature_flags(id) ON DELETE CASCADE; +ALTER TABLE ONLY design_management_versions + ADD CONSTRAINT fk_rails_6574200d99 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY approval_merge_request_rules_approved_approvers + ADD CONSTRAINT fk_rails_6577725edb FOREIGN KEY (approval_merge_request_rule_id) REFERENCES approval_merge_request_rules(id) ON DELETE CASCADE; --- --- Name: cluster_agent_tokens fk_rails_d1d26abc25; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_relation_export_uploads + ADD CONSTRAINT fk_rails_660ada90c9 FOREIGN KEY (project_relation_export_id) REFERENCES project_relation_exports(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.cluster_agent_tokens - ADD CONSTRAINT fk_rails_d1d26abc25 FOREIGN KEY (agent_id) REFERENCES public.cluster_agents(id) ON DELETE CASCADE; +ALTER TABLE ONLY operations_feature_flags_clients + ADD CONSTRAINT fk_rails_6650ed902c FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY namespace_admin_notes + ADD CONSTRAINT fk_rails_666166ea7b FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: requirements_management_test_reports fk_rails_d1e8b498bf; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_runner_machines + ADD CONSTRAINT fk_rails_666b61f04f FOREIGN KEY (runner_id) REFERENCES ci_runners(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.requirements_management_test_reports - ADD CONSTRAINT fk_rails_d1e8b498bf FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER TABLE ONLY approval_group_rules + ADD CONSTRAINT fk_rails_6727675176 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY jira_imports + ADD CONSTRAINT fk_rails_675d38c03b FOREIGN KEY (label_id) REFERENCES labels(id) ON DELETE SET NULL; --- --- Name: pool_repositories fk_rails_d2711daad4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_findings_remediations + ADD CONSTRAINT fk_rails_681c85ae0f FOREIGN KEY (vulnerability_remediation_id) REFERENCES vulnerability_remediations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.pool_repositories - ADD CONSTRAINT fk_rails_d2711daad4 FOREIGN KEY (source_project_id) REFERENCES public.projects(id) ON DELETE SET NULL; +ALTER TABLE ONLY resource_iteration_events + ADD CONSTRAINT fk_rails_6830c13ac1 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY plan_limits + ADD CONSTRAINT fk_rails_69f8b6184f FOREIGN KEY (plan_id) REFERENCES plans(id) ON DELETE CASCADE; --- --- Name: design_management_repository_states fk_rails_d2a258cc5a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_cost_settings + ADD CONSTRAINT fk_rails_6a70651f75 FOREIGN KEY (runner_id) REFERENCES ci_runners(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.design_management_repository_states - ADD CONSTRAINT fk_rails_d2a258cc5a FOREIGN KEY (design_management_repository_id) REFERENCES public.design_management_repositories(id) ON DELETE CASCADE; +ALTER TABLE ONLY operations_feature_flags_issues + ADD CONSTRAINT fk_rails_6a8856ca4f FOREIGN KEY (feature_flag_id) REFERENCES operations_feature_flags(id) ON DELETE CASCADE; +ALTER TABLE ONLY import_source_users + ADD CONSTRAINT fk_rails_6aee6cd676 FOREIGN KEY (placeholder_user_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: web_hooks fk_rails_d35697648e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ml_experiment_metadata + ADD CONSTRAINT fk_rails_6b39844d44 FOREIGN KEY (experiment_id) REFERENCES ml_experiments(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.web_hooks - ADD CONSTRAINT fk_rails_d35697648e FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY error_tracking_errors + ADD CONSTRAINT fk_rails_6b41f837ba FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY ml_model_version_metadata + ADD CONSTRAINT fk_rails_6b8fcb2af1 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: group_group_links fk_rails_d3a0488427; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY prometheus_alerts + ADD CONSTRAINT fk_rails_6d9b283465 FOREIGN KEY (environment_id) REFERENCES environments(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.group_group_links - ADD CONSTRAINT fk_rails_d3a0488427 FOREIGN KEY (shared_group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY term_agreements + ADD CONSTRAINT fk_rails_6ea6520e4a FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_compliance_framework_settings + ADD CONSTRAINT fk_rails_6f5294f16c FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: vulnerability_issue_links fk_rails_d459c19036; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY users_security_dashboard_projects + ADD CONSTRAINT fk_rails_6f6cf8e66e FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.vulnerability_issue_links - ADD CONSTRAINT fk_rails_d459c19036 FOREIGN KEY (vulnerability_id) REFERENCES public.vulnerabilities(id) ON DELETE CASCADE; +ALTER TABLE ONLY analytics_dashboards_pointers + ADD CONSTRAINT fk_rails_7027b7eaa9 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_builds_runner_session + ADD CONSTRAINT fk_rails_70707857d3_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; --- --- Name: alert_management_alert_assignees fk_rails_d47570ac62; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY list_user_preferences + ADD CONSTRAINT fk_rails_70b2ef5ce2 FOREIGN KEY (list_id) REFERENCES lists(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.alert_management_alert_assignees - ADD CONSTRAINT fk_rails_d47570ac62 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE issue_search_data + ADD CONSTRAINT fk_rails_7149dd9eee FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_custom_attributes + ADD CONSTRAINT fk_rails_719c3dccc5 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: packages_terraform_module_metadata fk_rails_d48f21a84b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_pending_builds + ADD CONSTRAINT fk_rails_725a2644a3_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_terraform_module_metadata - ADD CONSTRAINT fk_rails_d48f21a84b FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE SET NULL; +ALTER TABLE security_findings + ADD CONSTRAINT fk_rails_729b763a54 FOREIGN KEY (scanner_id) REFERENCES vulnerability_scanners(id) ON DELETE CASCADE; +ALTER TABLE ONLY custom_emoji + ADD CONSTRAINT fk_rails_745925b412 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: p_ci_job_annotations fk_rails_d4d0c0fa0f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY boards_epic_board_labels + ADD CONSTRAINT fk_rails_7471128a8e FOREIGN KEY (epic_board_id) REFERENCES boards_epic_boards(id) ON DELETE CASCADE; -ALTER TABLE public.p_ci_job_annotations - ADD CONSTRAINT fk_rails_d4d0c0fa0f FOREIGN KEY (partition_id, job_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY dast_site_profiles + ADD CONSTRAINT fk_rails_747dc64abc FOREIGN KEY (dast_site_id) REFERENCES dast_sites(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_context_commit_diff_files + ADD CONSTRAINT fk_rails_74a00a1787 FOREIGN KEY (merge_request_context_commit_id) REFERENCES merge_request_context_commits(id) ON DELETE CASCADE; --- --- Name: packages_rpm_repository_files fk_rails_d545cfaed2; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY audit_events_streaming_http_group_namespace_filters + ADD CONSTRAINT fk_rails_74a28d2432 FOREIGN KEY (external_audit_event_destination_id) REFERENCES audit_events_external_audit_event_destinations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_rpm_repository_files - ADD CONSTRAINT fk_rails_d545cfaed2 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY group_crm_settings + ADD CONSTRAINT fk_rails_74fdf2f13d FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY pm_package_version_licenses + ADD CONSTRAINT fk_rails_7520ea026d FOREIGN KEY (pm_license_id) REFERENCES pm_licenses(id) ON DELETE CASCADE; --- --- Name: packages_rpm_metadata fk_rails_d79f02264b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY incident_management_timeline_event_tag_links + ADD CONSTRAINT fk_rails_753b8b6ee3 FOREIGN KEY (timeline_event_tag_id) REFERENCES incident_management_timeline_event_tags(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_rpm_metadata - ADD CONSTRAINT fk_rails_d79f02264b FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY release_links + ADD CONSTRAINT fk_rails_753be7ae29 FOREIGN KEY (release_id) REFERENCES releases(id) ON DELETE CASCADE; +ALTER TABLE ONLY milestone_releases + ADD CONSTRAINT fk_rails_754f27dbfa FOREIGN KEY (release_id) REFERENCES releases(id) ON DELETE CASCADE; --- --- Name: p_ci_build_tags fk_rails_d7bd025909; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY resource_label_events + ADD CONSTRAINT fk_rails_75efb0a653 FOREIGN KEY (epic_id) REFERENCES epics(id) ON DELETE CASCADE; -ALTER TABLE public.p_ci_build_tags - ADD CONSTRAINT fk_rails_d7bd025909 FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY x509_certificates + ADD CONSTRAINT fk_rails_76479fb5b4 FOREIGN KEY (x509_issuer_id) REFERENCES x509_issuers(id) ON DELETE CASCADE; +ALTER TABLE ONLY pages_domain_acme_orders + ADD CONSTRAINT fk_rails_76581b1c16 FOREIGN KEY (pages_domain_id) REFERENCES pages_domains(id) ON DELETE CASCADE; --- --- Name: note_metadata fk_rails_d853224d37; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_debian_publications + ADD CONSTRAINT fk_rails_7668c1d606 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.note_metadata - ADD CONSTRAINT fk_rails_d853224d37 FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; +ALTER TABLE ONLY boards_epic_user_preferences + ADD CONSTRAINT fk_rails_76c4e9732d FOREIGN KEY (epic_id) REFERENCES epics(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_debian_group_distribution_keys + ADD CONSTRAINT fk_rails_779438f163 FOREIGN KEY (distribution_id) REFERENCES packages_debian_group_distributions(id) ON DELETE CASCADE; --- --- Name: ml_model_metadata fk_rails_d907835e01; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY terraform_states + ADD CONSTRAINT fk_rails_78f54ca485 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.ml_model_metadata - ADD CONSTRAINT fk_rails_d907835e01 FOREIGN KEY (model_id) REFERENCES public.ml_models(id) ON DELETE CASCADE; +ALTER TABLE ONLY software_license_policies + ADD CONSTRAINT fk_rails_7a7a2a92de FOREIGN KEY (software_license_id) REFERENCES software_licenses(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_repositories + ADD CONSTRAINT fk_rails_7a810d4121 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: merge_request_reviewers fk_rails_d9fec24b9d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY operations_scopes + ADD CONSTRAINT fk_rails_7a9358853b FOREIGN KEY (strategy_id) REFERENCES operations_strategies(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.merge_request_reviewers - ADD CONSTRAINT fk_rails_d9fec24b9d FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY milestone_releases + ADD CONSTRAINT fk_rails_7ae0756a2d FOREIGN KEY (milestone_id) REFERENCES milestones(id) ON DELETE CASCADE; +ALTER TABLE ONLY scan_execution_policy_rules + ADD CONSTRAINT fk_rails_7be2571ecf FOREIGN KEY (security_policy_id) REFERENCES security_policies(id) ON DELETE CASCADE; --- --- Name: ci_running_builds fk_rails_da45cfa165_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY resource_state_events + ADD CONSTRAINT fk_rails_7ddc5f7457 FOREIGN KEY (source_merge_request_id) REFERENCES merge_requests(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.ci_running_builds - ADD CONSTRAINT fk_rails_da45cfa165_p FOREIGN KEY (partition_id, build_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY audit_events_group_external_streaming_destinations + ADD CONSTRAINT fk_rails_7dffb88f29 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY personal_access_token_last_used_ips + ADD CONSTRAINT fk_rails_7e650a7967 FOREIGN KEY (personal_access_token_id) REFERENCES personal_access_tokens(id) ON DELETE CASCADE; --- --- Name: resource_link_events fk_rails_da5dd8a56f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY clusters_kubernetes_namespaces + ADD CONSTRAINT fk_rails_7e7688ecaf FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.resource_link_events - ADD CONSTRAINT fk_rails_da5dd8a56f FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY security_policies + ADD CONSTRAINT fk_rails_802ceea0c8 FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES security_orchestration_policy_configurations(id) ON DELETE CASCADE; +ALTER TABLE ONLY dependency_proxy_manifest_states + ADD CONSTRAINT fk_rails_806cf07a3c FOREIGN KEY (dependency_proxy_manifest_id) REFERENCES dependency_proxy_manifests(id) ON DELETE CASCADE; --- --- Name: jira_imports fk_rails_da617096ce; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_job_artifact_states + ADD CONSTRAINT fk_rails_80a9cba3b2_p FOREIGN KEY (partition_id, job_artifact_id) REFERENCES p_ci_job_artifacts(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY public.jira_imports - ADD CONSTRAINT fk_rails_da617096ce FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER TABLE ONLY approval_merge_request_rules_users + ADD CONSTRAINT fk_rails_80e6801803 FOREIGN KEY (approval_merge_request_rule_id) REFERENCES approval_merge_request_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY audit_events_instance_streaming_event_type_filters + ADD CONSTRAINT fk_rails_80e948655b FOREIGN KEY (external_streaming_destination_id) REFERENCES audit_events_instance_external_streaming_destinations(id) ON DELETE CASCADE; --- --- Name: dependency_proxy_blobs fk_rails_db58bbc5d7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY required_code_owners_sections + ADD CONSTRAINT fk_rails_817708cf2d FOREIGN KEY (protected_branch_id) REFERENCES protected_branches(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.dependency_proxy_blobs - ADD CONSTRAINT fk_rails_db58bbc5d7 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE p_ci_build_tags + ADD CONSTRAINT fk_rails_8284d35c66 FOREIGN KEY (tag_id) REFERENCES tags(id) ON DELETE CASCADE; +ALTER TABLE ONLY namespace_ldap_settings + ADD CONSTRAINT fk_rails_82cd0ad4bb FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: issues_prometheus_alert_events fk_rails_db5b756534; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY group_wiki_repository_states + ADD CONSTRAINT fk_rails_832511c9f1 FOREIGN KEY (group_wiki_repository_id) REFERENCES group_wiki_repositories(group_id) ON DELETE CASCADE; -ALTER TABLE ONLY public.issues_prometheus_alert_events - ADD CONSTRAINT fk_rails_db5b756534 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY cluster_enabled_grants + ADD CONSTRAINT fk_rails_8336ce35af FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY virtual_registries_packages_maven_registry_upstreams + ADD CONSTRAINT fk_rails_838d054752 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: board_user_preferences fk_rails_dbebdaa8fe; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY dast_site_profiles + ADD CONSTRAINT fk_rails_83e309d69e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.board_user_preferences - ADD CONSTRAINT fk_rails_dbebdaa8fe FOREIGN KEY (board_id) REFERENCES public.boards(id) ON DELETE CASCADE; +ALTER TABLE ONLY dependency_list_export_parts + ADD CONSTRAINT fk_rails_83f26c0e6f FOREIGN KEY (dependency_list_export_id) REFERENCES dependency_list_exports(id) ON DELETE CASCADE; +ALTER TABLE ONLY security_trainings + ADD CONSTRAINT fk_rails_84c7951d72 FOREIGN KEY (provider_id) REFERENCES security_training_providers(id) ON DELETE CASCADE; --- --- Name: vulnerability_occurrence_pipelines fk_rails_dc3ae04693; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY zentao_tracker_data + ADD CONSTRAINT fk_rails_84efda7be0 FOREIGN KEY (integration_id) REFERENCES integrations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.vulnerability_occurrence_pipelines - ADD CONSTRAINT fk_rails_dc3ae04693 FOREIGN KEY (occurrence_id) REFERENCES public.vulnerability_occurrences(id) ON DELETE CASCADE; +ALTER TABLE ONLY audit_events_amazon_s3_configurations + ADD CONSTRAINT fk_rails_84f4b10a16 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY boards_epic_user_preferences + ADD CONSTRAINT fk_rails_851fe1510a FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: instance_audit_events_streaming_headers fk_rails_dc933c1f3c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY value_stream_dashboard_aggregations + ADD CONSTRAINT fk_rails_859b4f86f3 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.instance_audit_events_streaming_headers - ADD CONSTRAINT fk_rails_dc933c1f3c FOREIGN KEY (instance_external_audit_event_destination_id) REFERENCES public.audit_events_instance_external_audit_event_destinations(id) ON DELETE CASCADE; +ALTER TABLE ONLY deployment_merge_requests + ADD CONSTRAINT fk_rails_86a6d8bf12 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY analytics_language_trend_repository_languages + ADD CONSTRAINT fk_rails_86cc9aef5f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: deployment_merge_requests fk_rails_dcbce9f4df; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY merge_request_diff_details + ADD CONSTRAINT fk_rails_86f4d24ecd FOREIGN KEY (merge_request_diff_id) REFERENCES merge_request_diffs(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.deployment_merge_requests - ADD CONSTRAINT fk_rails_dcbce9f4df FOREIGN KEY (deployment_id) REFERENCES public.deployments(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_package_file_build_infos + ADD CONSTRAINT fk_rails_871ca3ae21 FOREIGN KEY (package_file_id) REFERENCES packages_package_files(id) ON DELETE CASCADE; +ALTER TABLE ONLY boards_epic_boards + ADD CONSTRAINT fk_rails_874c573878 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: packages_debian_group_component_files fk_rails_dd262386e9; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_runner_namespaces + ADD CONSTRAINT fk_rails_8767676b7a FOREIGN KEY (runner_id) REFERENCES ci_runners(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_debian_group_component_files - ADD CONSTRAINT fk_rails_dd262386e9 FOREIGN KEY (component_id) REFERENCES public.packages_debian_group_components(id) ON DELETE RESTRICT; +ALTER TABLE ONLY service_desk_custom_email_credentials + ADD CONSTRAINT fk_rails_878b562d12 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY software_license_policies + ADD CONSTRAINT fk_rails_87b2247ce5 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: incident_management_timeline_event_tags fk_rails_dd5c91484e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY achievements + ADD CONSTRAINT fk_rails_87e990f752 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.incident_management_timeline_event_tags - ADD CONSTRAINT fk_rails_dd5c91484e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY ai_feature_settings + ADD CONSTRAINT fk_rails_8907fb7bbb FOREIGN KEY (ai_self_hosted_model_id) REFERENCES ai_self_hosted_models(id) ON DELETE CASCADE; +ALTER TABLE ONLY protected_environment_deploy_access_levels + ADD CONSTRAINT fk_rails_898a13b650 FOREIGN KEY (protected_environment_id) REFERENCES protected_environments(id) ON DELETE CASCADE; --- --- Name: user_callouts fk_rails_ddfdd80f3d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ml_model_versions + ADD CONSTRAINT fk_rails_8a481bd22e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.user_callouts - ADD CONSTRAINT fk_rails_ddfdd80f3d FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY snippet_repositories + ADD CONSTRAINT fk_rails_8afd7e2f71 FOREIGN KEY (snippet_id) REFERENCES snippets(id) ON DELETE CASCADE; +ALTER TABLE ONLY gpg_key_subkeys + ADD CONSTRAINT fk_rails_8b2c90b046 FOREIGN KEY (gpg_key_id) REFERENCES gpg_keys(id) ON DELETE CASCADE; --- --- Name: scan_result_policies fk_rails_de9e5d2ce6; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY board_user_preferences + ADD CONSTRAINT fk_rails_8b3b23ce82 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.scan_result_policies - ADD CONSTRAINT fk_rails_de9e5d2ce6 FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES public.security_orchestration_policy_configurations(id) ON DELETE CASCADE; +ALTER TABLE ONLY allowed_email_domains + ADD CONSTRAINT fk_rails_8b5da859f9 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY cluster_projects + ADD CONSTRAINT fk_rails_8b8c5caf07 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: vulnerability_feedback fk_rails_debd54e456; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_pages_metadata + ADD CONSTRAINT fk_rails_8c28a61485 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.vulnerability_feedback - ADD CONSTRAINT fk_rails_debd54e456 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY work_item_progresses + ADD CONSTRAINT fk_rails_8c584bfb37 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_conan_metadata + ADD CONSTRAINT fk_rails_8c68cfec8b FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; --- --- Name: service_desk_custom_email_verifications fk_rails_debe4c4acc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_feedback + ADD CONSTRAINT fk_rails_8c77e5891a FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.service_desk_custom_email_verifications - ADD CONSTRAINT fk_rails_debe4c4acc FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY import_placeholder_memberships + ADD CONSTRAINT fk_rails_8cdeffd260 FOREIGN KEY (source_user_id) REFERENCES import_source_users(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_pipeline_messages + ADD CONSTRAINT fk_rails_8d3b04e3e1_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; --- --- Name: packages_debian_project_distributions fk_rails_df44271a30; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_pipeline_messages + ADD CONSTRAINT fk_rails_8d3b04e3e1_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -ALTER TABLE ONLY public.packages_debian_project_distributions - ADD CONSTRAINT fk_rails_df44271a30 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE RESTRICT; +ALTER TABLE incident_management_pending_alert_escalations + ADD CONSTRAINT fk_rails_8d8de95da9 FOREIGN KEY (alert_id) REFERENCES alert_management_alerts(id) ON DELETE CASCADE; +ALTER TABLE ONLY approval_merge_request_rules_approved_approvers + ADD CONSTRAINT fk_rails_8dc94cff4d FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: incident_management_oncall_shifts fk_rails_df4feb286a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY work_item_dates_sources + ADD CONSTRAINT fk_rails_8dcefa21a5 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.incident_management_oncall_shifts - ADD CONSTRAINT fk_rails_df4feb286a FOREIGN KEY (rotation_id) REFERENCES public.incident_management_oncall_rotations(id) ON DELETE CASCADE; +ALTER TABLE ONLY design_user_mentions + ADD CONSTRAINT fk_rails_8de8c6d632 FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; +ALTER TABLE ONLY clusters_kubernetes_namespaces + ADD CONSTRAINT fk_rails_8df789f3ab FOREIGN KEY (environment_id) REFERENCES environments(id) ON DELETE SET NULL; --- --- Name: namespace_commit_emails fk_rails_dfa4c104f5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY alert_management_alert_user_mentions + ADD CONSTRAINT fk_rails_8e48eca0fe FOREIGN KEY (alert_management_alert_id) REFERENCES alert_management_alerts(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.namespace_commit_emails - ADD CONSTRAINT fk_rails_dfa4c104f5 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_daily_statistics + ADD CONSTRAINT fk_rails_8e549b272d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_secrets_managers + ADD CONSTRAINT fk_rails_8f88850d11 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: analytics_cycle_analytics_group_stages fk_rails_dfb37c880d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY organization_details + ADD CONSTRAINT fk_rails_8facb04bef FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.analytics_cycle_analytics_group_stages - ADD CONSTRAINT fk_rails_dfb37c880d FOREIGN KEY (end_event_label_id) REFERENCES public.labels(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_pipelines_config + ADD CONSTRAINT fk_rails_906c9a2533_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY ci_pipelines_config + ADD CONSTRAINT fk_rails_906c9a2533_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; --- --- Name: bulk_import_export_uploads fk_rails_dfbfb45eca; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY approval_project_rules_groups + ADD CONSTRAINT fk_rails_9071e863d1 FOREIGN KEY (approval_project_rule_id) REFERENCES approval_project_rules(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.bulk_import_export_uploads - ADD CONSTRAINT fk_rails_dfbfb45eca FOREIGN KEY (export_id) REFERENCES public.bulk_import_exports(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_occurrences + ADD CONSTRAINT fk_rails_90fed4faba FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_error_tracking_settings + ADD CONSTRAINT fk_rails_910a2b8bd9 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: vs_code_settings fk_rails_e02b1ed535; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY list_user_preferences + ADD CONSTRAINT fk_rails_916d72cafd FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.vs_code_settings - ADD CONSTRAINT fk_rails_e02b1ed535 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_cleanup_schedules + ADD CONSTRAINT fk_rails_92dd0e705c FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_build_artifacts_size_refreshes + ADD CONSTRAINT fk_rails_936db5fc44 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: audit_events_group_streaming_event_type_filters fk_rails_e07e457a27; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY board_labels + ADD CONSTRAINT fk_rails_9374a16edd FOREIGN KEY (board_id) REFERENCES boards(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.audit_events_group_streaming_event_type_filters - ADD CONSTRAINT fk_rails_e07e457a27 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY alert_management_alert_assignees + ADD CONSTRAINT fk_rails_93c0f6703b FOREIGN KEY (alert_id) REFERENCES alert_management_alerts(id) ON DELETE CASCADE; +ALTER TABLE ONLY scim_identities + ADD CONSTRAINT fk_rails_9421a0bffb FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: label_priorities fk_rails_e161058b0f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE p_catalog_resource_component_usages + ADD CONSTRAINT fk_rails_9430673479 FOREIGN KEY (catalog_resource_id) REFERENCES catalog_resources(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.label_priorities - ADD CONSTRAINT fk_rails_e161058b0f FOREIGN KEY (label_id) REFERENCES public.labels(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_debian_project_distributions + ADD CONSTRAINT fk_rails_94b95e1f84 FOREIGN KEY (creator_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY packages_rubygems_metadata + ADD CONSTRAINT fk_rails_95a3f5ce78 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; --- --- Name: packages_packages fk_rails_e1ac527425; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_pypi_metadata + ADD CONSTRAINT fk_rails_9698717cdd FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_packages - ADD CONSTRAINT fk_rails_e1ac527425 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY boards_epic_board_recent_visits + ADD CONSTRAINT fk_rails_96c2c18642 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_dependency_links + ADD CONSTRAINT fk_rails_96ef1c00d3 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; --- --- Name: p_catalog_resource_component_usages fk_rails_e1ba64b7ee; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ml_experiments + ADD CONSTRAINT fk_rails_97194a054e FOREIGN KEY (model_id) REFERENCES ml_models(id) ON DELETE CASCADE; -ALTER TABLE public.p_catalog_resource_component_usages - ADD CONSTRAINT fk_rails_e1ba64b7ee FOREIGN KEY (component_id) REFERENCES public.catalog_resource_components(id) ON DELETE CASCADE; +ALTER TABLE ONLY group_repository_storage_moves + ADD CONSTRAINT fk_rails_982bb5daf1 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY resource_label_events + ADD CONSTRAINT fk_rails_9851a00031 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; --- --- Name: cluster_platforms_kubernetes fk_rails_e1e2cf841a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY board_project_recent_visits + ADD CONSTRAINT fk_rails_98f8843922 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.cluster_platforms_kubernetes - ADD CONSTRAINT fk_rails_e1e2cf841a FOREIGN KEY (cluster_id) REFERENCES public.clusters(id) ON DELETE CASCADE; +ALTER TABLE ONLY clusters_kubernetes_namespaces + ADD CONSTRAINT fk_rails_98fe21e486 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE SET NULL; +ALTER TABLE ONLY error_tracking_client_keys + ADD CONSTRAINT fk_rails_99342d1d54 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: issue_emails fk_rails_e2ee00a8f7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY pages_deployments + ADD CONSTRAINT fk_rails_993b88f59a FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.issue_emails - ADD CONSTRAINT fk_rails_e2ee00a8f7 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY dast_pre_scan_verification_steps + ADD CONSTRAINT fk_rails_9990fc2adf FOREIGN KEY (dast_pre_scan_verification_id) REFERENCES dast_pre_scan_verifications(id) ON DELETE CASCADE; +ALTER TABLE ONLY users_ops_dashboard_projects + ADD CONSTRAINT fk_rails_9b4ebf005b FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: vulnerability_finding_evidences fk_rails_e3205a0c65; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_incident_management_settings + ADD CONSTRAINT fk_rails_9c2ea1b7dd FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.vulnerability_finding_evidences - ADD CONSTRAINT fk_rails_e3205a0c65 FOREIGN KEY (vulnerability_occurrence_id) REFERENCES public.vulnerability_occurrences(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_debian_project_components + ADD CONSTRAINT fk_rails_9d072b5073 FOREIGN KEY (distribution_id) REFERENCES packages_debian_project_distributions(id) ON DELETE CASCADE; +ALTER TABLE ONLY gpg_keys + ADD CONSTRAINT fk_rails_9d1f5d8719 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: approval_policy_rules fk_rails_e344cb2d35; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY analytics_language_trend_repository_languages + ADD CONSTRAINT fk_rails_9d851d566c FOREIGN KEY (programming_language_id) REFERENCES programming_languages(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.approval_policy_rules - ADD CONSTRAINT fk_rails_e344cb2d35 FOREIGN KEY (security_policy_management_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY namespaces_sync_events + ADD CONSTRAINT fk_rails_9da32a0431 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY badges + ADD CONSTRAINT fk_rails_9df4a56538 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: clusters_integration_prometheus fk_rails_e44472034c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_finding_signatures + ADD CONSTRAINT fk_rails_9e0baf9dcd FOREIGN KEY (finding_id) REFERENCES vulnerability_occurrences(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.clusters_integration_prometheus - ADD CONSTRAINT fk_rails_e44472034c FOREIGN KEY (cluster_id) REFERENCES public.clusters(id) ON DELETE CASCADE; +ALTER TABLE ONLY target_branch_rules + ADD CONSTRAINT fk_rails_9e9cf81c8e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY timelog_categories + ADD CONSTRAINT fk_rails_9f27b821a8 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: vulnerability_occurrence_identifiers fk_rails_e4ef6d027c; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY resource_milestone_events + ADD CONSTRAINT fk_rails_a006df5590 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.vulnerability_occurrence_identifiers - ADD CONSTRAINT fk_rails_e4ef6d027c FOREIGN KEY (occurrence_id) REFERENCES public.vulnerability_occurrences(id) ON DELETE CASCADE; +ALTER TABLE ONLY namespace_root_storage_statistics + ADD CONSTRAINT fk_rails_a0702c430b FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY dingtalk_tracker_data + ADD CONSTRAINT fk_rails_a138e0d542 FOREIGN KEY (integration_id) REFERENCES integrations(id) ON DELETE CASCADE; --- --- Name: packages_protection_rules fk_rails_e52adb5267; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY elastic_reindexing_slices + ADD CONSTRAINT fk_rails_a17d86aeb9 FOREIGN KEY (elastic_reindexing_subtask_id) REFERENCES elastic_reindexing_subtasks(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_protection_rules - ADD CONSTRAINT fk_rails_e52adb5267 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_aliases + ADD CONSTRAINT fk_rails_a1804f74a7 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_user_mentions + ADD CONSTRAINT fk_rails_a18600f210 FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; --- --- Name: vulnerability_flags fk_rails_e59393b48b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY dependency_proxy_packages_settings + ADD CONSTRAINT fk_rails_a248d0c26f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.vulnerability_flags - ADD CONSTRAINT fk_rails_e59393b48b FOREIGN KEY (vulnerability_occurrence_id) REFERENCES public.vulnerability_occurrences(id) ON DELETE CASCADE; +ALTER TABLE ONLY todos + ADD CONSTRAINT fk_rails_a27c483435 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY protected_environments + ADD CONSTRAINT fk_rails_a354313d11 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: incident_management_escalation_policies fk_rails_e5b513daa7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY jira_connect_subscriptions + ADD CONSTRAINT fk_rails_a3c10bcf7d FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.incident_management_escalation_policies - ADD CONSTRAINT fk_rails_e5b513daa7 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY fork_network_members + ADD CONSTRAINT fk_rails_a40860a1ca FOREIGN KEY (fork_network_id) REFERENCES fork_networks(id) ON DELETE CASCADE; +ALTER TABLE ONLY customer_relations_organizations + ADD CONSTRAINT fk_rails_a48597902f FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: software_license_policies fk_rails_e5b77d620e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ai_agent_version_attachments + ADD CONSTRAINT fk_rails_a4ed49efb5 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.software_license_policies - ADD CONSTRAINT fk_rails_e5b77d620e FOREIGN KEY (scan_result_policy_id) REFERENCES public.scan_result_policies(id) ON DELETE CASCADE; +ALTER TABLE ONLY operations_feature_flag_scopes + ADD CONSTRAINT fk_rails_a50a04d0a4 FOREIGN KEY (feature_flag_id) REFERENCES operations_feature_flags(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_helm_file_metadata + ADD CONSTRAINT fk_rails_a559865345 FOREIGN KEY (package_file_id) REFERENCES packages_package_files(id) ON DELETE CASCADE; --- --- Name: vulnerability_external_issue_links fk_rails_e5ba7f7b13; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY cluster_projects + ADD CONSTRAINT fk_rails_a5a958bca1 FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.vulnerability_external_issue_links - ADD CONSTRAINT fk_rails_e5ba7f7b13 FOREIGN KEY (author_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER TABLE ONLY commit_user_mentions + ADD CONSTRAINT fk_rails_a6760813e0 FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_identifiers + ADD CONSTRAINT fk_rails_a67a16c885 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: approval_merge_request_rule_sources fk_rails_e605a04f76; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY user_preferences + ADD CONSTRAINT fk_rails_a69bfcfd81 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.approval_merge_request_rule_sources - ADD CONSTRAINT fk_rails_e605a04f76 FOREIGN KEY (approval_merge_request_rule_id) REFERENCES public.approval_merge_request_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY sentry_issues + ADD CONSTRAINT fk_rails_a6a9612965 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_states + ADD CONSTRAINT fk_rails_a6e5821877 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: prometheus_alerts fk_rails_e6351447ec; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY user_permission_export_uploads + ADD CONSTRAINT fk_rails_a7130085e3 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.prometheus_alerts - ADD CONSTRAINT fk_rails_e6351447ec FOREIGN KEY (prometheus_metric_id) REFERENCES public.prometheus_metrics(id) ON DELETE CASCADE; +ALTER TABLE ONLY repository_languages + ADD CONSTRAINT fk_rails_a750ec87a8 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY dependency_proxy_manifests + ADD CONSTRAINT fk_rails_a758021fb0 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: merge_request_metrics fk_rails_e6d7c24d1b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY resource_milestone_events + ADD CONSTRAINT fk_rails_a788026e85 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.merge_request_metrics - ADD CONSTRAINT fk_rails_e6d7c24d1b FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY term_agreements + ADD CONSTRAINT fk_rails_a88721bcdf FOREIGN KEY (term_id) REFERENCES application_setting_terms(id); +ALTER TABLE ONLY saved_replies + ADD CONSTRAINT fk_rails_a8bf5bf111 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: draft_notes fk_rails_e753681674; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_pipeline_artifacts + ADD CONSTRAINT fk_rails_a9e811a466_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY public.draft_notes - ADD CONSTRAINT fk_rails_e753681674 FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_pipeline_artifacts + ADD CONSTRAINT fk_rails_a9e811a466_p_tmp FOREIGN KEY (partition_id, pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +ALTER TABLE ONLY merge_request_user_mentions + ADD CONSTRAINT fk_rails_aa1b2961b1 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; --- --- Name: namespace_package_settings fk_rails_e773444769; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY wiki_repository_states + ADD CONSTRAINT fk_rails_aa2f8a61ba FOREIGN KEY (project_wiki_repository_id) REFERENCES project_wiki_repositories(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.namespace_package_settings - ADD CONSTRAINT fk_rails_e773444769 FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY x509_commit_signatures + ADD CONSTRAINT fk_rails_ab07452314 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY dast_profiles_tags + ADD CONSTRAINT fk_rails_ab9e643cd8 FOREIGN KEY (dast_profile_id) REFERENCES dast_profiles(id) ON DELETE CASCADE; --- --- Name: boards_epic_board_recent_visits fk_rails_e77911cf03; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY resource_iteration_events + ADD CONSTRAINT fk_rails_abf5d4affa FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.boards_epic_board_recent_visits - ADD CONSTRAINT fk_rails_e77911cf03 FOREIGN KEY (epic_board_id) REFERENCES public.boards_epic_boards(id) ON DELETE CASCADE; +ALTER TABLE ONLY container_registry_protection_rules + ADD CONSTRAINT fk_rails_ac331fcba9 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY clusters + ADD CONSTRAINT fk_rails_ac3a663d79 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: audit_events_streaming_instance_event_type_filters fk_rails_e7bb18c0e1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY group_saved_replies + ADD CONSTRAINT fk_rails_acd8e1889b FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.audit_events_streaming_instance_event_type_filters - ADD CONSTRAINT fk_rails_e7bb18c0e1 FOREIGN KEY (instance_external_audit_event_destination_id) REFERENCES public.audit_events_instance_external_audit_event_destinations(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_composer_metadata + ADD CONSTRAINT fk_rails_ad48c2e5bb FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY user_phone_number_validations + ADD CONSTRAINT fk_rails_ad6686f3d8 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: group_deploy_keys_groups fk_rails_e87145115d; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY analytics_cycle_analytics_group_stages + ADD CONSTRAINT fk_rails_ae5da3409b FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.group_deploy_keys_groups - ADD CONSTRAINT fk_rails_e87145115d FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY metrics_dashboard_annotations + ADD CONSTRAINT fk_rails_aeb11a7643 FOREIGN KEY (environment_id) REFERENCES environments(id) ON DELETE CASCADE; +ALTER TABLE p_ci_build_trace_metadata + ADD CONSTRAINT fk_rails_aebc78111f_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; --- --- Name: audit_events_streaming_event_type_filters fk_rails_e8bd011129; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY bulk_import_trackers + ADD CONSTRAINT fk_rails_aed566d3f3 FOREIGN KEY (bulk_import_entity_id) REFERENCES bulk_import_entities(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.audit_events_streaming_event_type_filters - ADD CONSTRAINT fk_rails_e8bd011129 FOREIGN KEY (external_audit_event_destination_id) REFERENCES public.audit_events_external_audit_event_destinations(id) ON DELETE CASCADE; +ALTER TABLE ONLY pool_repositories + ADD CONSTRAINT fk_rails_af3f8c5d62 FOREIGN KEY (shard_id) REFERENCES shards(id) ON DELETE RESTRICT; +ALTER TABLE ONLY work_item_related_link_restrictions + ADD CONSTRAINT fk_rails_b013a0fa65 FOREIGN KEY (source_type_id) REFERENCES work_item_types(id) ON DELETE CASCADE; --- --- Name: description_versions fk_rails_e8f4caf9c7; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY resource_label_events + ADD CONSTRAINT fk_rails_b126799f57 FOREIGN KEY (label_id) REFERENCES labels(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.description_versions - ADD CONSTRAINT fk_rails_e8f4caf9c7 FOREIGN KEY (epic_id) REFERENCES public.epics(id) ON DELETE CASCADE; +ALTER TABLE ONLY webauthn_registrations + ADD CONSTRAINT fk_rails_b15c016782 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_build_infos + ADD CONSTRAINT fk_rails_b18868292d FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; --- --- Name: vulnerability_issue_links fk_rails_e9180d534b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY authentication_events + ADD CONSTRAINT fk_rails_b204656a54 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.vulnerability_issue_links - ADD CONSTRAINT fk_rails_e9180d534b FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_trains + ADD CONSTRAINT fk_rails_b29261ce31 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY board_project_recent_visits + ADD CONSTRAINT fk_rails_b315dd0c80 FOREIGN KEY (board_id) REFERENCES boards(id) ON DELETE CASCADE; --- --- Name: merge_request_blocks fk_rails_e9387863bc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY issues_prometheus_alert_events + ADD CONSTRAINT fk_rails_b32edb790f FOREIGN KEY (prometheus_alert_event_id) REFERENCES prometheus_alert_events(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.merge_request_blocks - ADD CONSTRAINT fk_rails_e9387863bc FOREIGN KEY (blocking_merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_trains + ADD CONSTRAINT fk_rails_b374b5225d FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_predictions + ADD CONSTRAINT fk_rails_b3b78cbcd0 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; --- --- Name: protected_branch_unprotect_access_levels fk_rails_e9eb8dc025; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY incident_management_escalation_rules + ADD CONSTRAINT fk_rails_b3c9c17bd4 FOREIGN KEY (oncall_schedule_id) REFERENCES incident_management_oncall_schedules(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.protected_branch_unprotect_access_levels - ADD CONSTRAINT fk_rails_e9eb8dc025 FOREIGN KEY (protected_branch_id) REFERENCES public.protected_branches(id) ON DELETE CASCADE; +ALTER TABLE ONLY duo_workflows_checkpoints + ADD CONSTRAINT fk_rails_b4c109b1a4 FOREIGN KEY (workflow_id) REFERENCES duo_workflows_workflows(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_debian_project_component_files + ADD CONSTRAINT fk_rails_b543a9622b FOREIGN KEY (architecture_id) REFERENCES packages_debian_project_architectures(id) ON DELETE RESTRICT; --- --- Name: ai_vectorizable_files fk_rails_ea2e440084; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY namespace_aggregation_schedules + ADD CONSTRAINT fk_rails_b565c8d16c FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.ai_vectorizable_files - ADD CONSTRAINT fk_rails_ea2e440084 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY container_registry_data_repair_details + ADD CONSTRAINT fk_rails_b70d8111d9 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE batched_background_migration_job_transition_logs + ADD CONSTRAINT fk_rails_b7523a175b FOREIGN KEY (batched_background_migration_job_id) REFERENCES batched_background_migration_jobs(id) ON DELETE CASCADE; --- --- Name: alert_management_alert_user_mentions fk_rails_eb2de0cdef; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY approval_project_rules_protected_branches + ADD CONSTRAINT fk_rails_b7567b031b FOREIGN KEY (protected_branch_id) REFERENCES protected_branches(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.alert_management_alert_user_mentions - ADD CONSTRAINT fk_rails_eb2de0cdef FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_composer_cache_files + ADD CONSTRAINT fk_rails_b82cea43a0 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE SET NULL; +ALTER TABLE ONLY abuse_trust_scores + ADD CONSTRAINT fk_rails_b903079eb4 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: snippet_statistics fk_rails_ebc283ccf1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY virtual_registries_packages_maven_registry_upstreams + ADD CONSTRAINT fk_rails_b991fff0be FOREIGN KEY (registry_id) REFERENCES virtual_registries_packages_maven_registries(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.snippet_statistics - ADD CONSTRAINT fk_rails_ebc283ccf1 FOREIGN KEY (snippet_id) REFERENCES public.snippets(id) ON DELETE CASCADE; +ALTER TABLE ONLY dora_configurations + ADD CONSTRAINT fk_rails_b9b8d90ddb FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_trains + ADD CONSTRAINT fk_rails_b9d67af01d FOREIGN KEY (target_project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: slack_integrations_scopes fk_rails_ece1eb6772; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY approval_project_rules_users + ADD CONSTRAINT fk_rails_b9e9394efb FOREIGN KEY (approval_project_rule_id) REFERENCES approval_project_rules(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.slack_integrations_scopes - ADD CONSTRAINT fk_rails_ece1eb6772 FOREIGN KEY (slack_integration_id) REFERENCES public.slack_integrations(id) ON DELETE CASCADE; +ALTER TABLE ONLY lists + ADD CONSTRAINT fk_rails_baed5f39b7 FOREIGN KEY (milestone_id) REFERENCES milestones(id) ON DELETE CASCADE; +ALTER TABLE security_findings + ADD CONSTRAINT fk_rails_bb63863cf1 FOREIGN KEY (scan_id) REFERENCES security_scans(id) ON DELETE CASCADE; --- --- Name: iterations_cadences fk_rails_ece400c55a; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_debian_project_component_files + ADD CONSTRAINT fk_rails_bbe9ebfbd9 FOREIGN KEY (component_id) REFERENCES packages_debian_project_components(id) ON DELETE RESTRICT; -ALTER TABLE ONLY public.iterations_cadences - ADD CONSTRAINT fk_rails_ece400c55a FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY projects_sync_events + ADD CONSTRAINT fk_rails_bbf0eef59f FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE p_ci_build_names + ADD CONSTRAINT fk_rails_bc221a297a FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; --- --- Name: dast_profiles fk_rails_ed1e66fbbf; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY approval_merge_request_rules_users + ADD CONSTRAINT fk_rails_bc8972fa55 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.dast_profiles - ADD CONSTRAINT fk_rails_ed1e66fbbf FOREIGN KEY (dast_site_profile_id) REFERENCES public.dast_site_profiles(id) ON DELETE CASCADE; +ALTER TABLE ONLY observability_traces_issues_connections + ADD CONSTRAINT fk_rails_bcf18aa0d2 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY elasticsearch_indexed_projects + ADD CONSTRAINT fk_rails_bd13bbdc3d FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: project_security_settings fk_rails_ed4abe1338; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY elasticsearch_indexed_namespaces + ADD CONSTRAINT fk_rails_bdcf044f37 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.project_security_settings - ADD CONSTRAINT fk_rails_ed4abe1338 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_occurrence_identifiers + ADD CONSTRAINT fk_rails_be2e49e1d0 FOREIGN KEY (identifier_id) REFERENCES vulnerability_identifiers(id) ON DELETE CASCADE; +ALTER TABLE ONLY bulk_import_export_batches + ADD CONSTRAINT fk_rails_be479792f6 FOREIGN KEY (export_id) REFERENCES bulk_import_exports(id) ON DELETE CASCADE; --- --- Name: packages_debian_group_distributions fk_rails_ede0bb937f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY alert_management_http_integrations + ADD CONSTRAINT fk_rails_bec49f52cc FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_debian_group_distributions - ADD CONSTRAINT fk_rails_ede0bb937f FOREIGN KEY (creator_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER TABLE ONLY namespace_ci_cd_settings + ADD CONSTRAINT fk_rails_bf04185d54 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_occurrences + ADD CONSTRAINT fk_rails_bf5b788ca7 FOREIGN KEY (scanner_id) REFERENCES vulnerability_scanners(id) ON DELETE CASCADE; --- --- Name: ci_daily_build_group_report_results fk_rails_ee072d13b3_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY resource_weight_events + ADD CONSTRAINT fk_rails_bfc406b47c FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.ci_daily_build_group_report_results - ADD CONSTRAINT fk_rails_ee072d13b3_p FOREIGN KEY (partition_id, last_pipeline_id) REFERENCES public.ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY design_management_designs + ADD CONSTRAINT fk_rails_bfe283ec3c FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY atlassian_identities + ADD CONSTRAINT fk_rails_c02928bc18 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: ci_daily_build_group_report_results fk_rails_ee072d13b3_p_tmp; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY slack_integrations_scopes + ADD CONSTRAINT fk_rails_c0e018a6fe FOREIGN KEY (slack_api_scope_id) REFERENCES slack_api_scopes(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.ci_daily_build_group_report_results - ADD CONSTRAINT fk_rails_ee072d13b3_p_tmp FOREIGN KEY (partition_id, last_pipeline_id) REFERENCES public.p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; +ALTER TABLE ONLY packages_npm_metadata + ADD CONSTRAINT fk_rails_c0e5fce6f3 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY labels + ADD CONSTRAINT fk_rails_c1ac5161d8 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: import_source_users fk_rails_ee30e569be; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_feature_usages + ADD CONSTRAINT fk_rails_c22a50024b FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.import_source_users - ADD CONSTRAINT fk_rails_ee30e569be FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE p_ci_builds_execution_configs + ADD CONSTRAINT fk_rails_c26408d02c_p FOREIGN KEY (partition_id, pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY user_canonical_emails + ADD CONSTRAINT fk_rails_c2bd828b51 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: audit_events_group_streaming_event_type_filters fk_rails_ee6950967f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_repositories + ADD CONSTRAINT fk_rails_c3258dc63b FOREIGN KEY (shard_id) REFERENCES shards(id) ON DELETE RESTRICT; -ALTER TABLE ONLY public.audit_events_group_streaming_event_type_filters - ADD CONSTRAINT fk_rails_ee6950967f FOREIGN KEY (external_streaming_destination_id) REFERENCES public.audit_events_group_external_streaming_destinations(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_nuget_dependency_link_metadata + ADD CONSTRAINT fk_rails_c3313ee2e4 FOREIGN KEY (dependency_link_id) REFERENCES packages_dependency_links(id) ON DELETE CASCADE; +ALTER TABLE ONLY group_deploy_keys_groups + ADD CONSTRAINT fk_rails_c3854f19f5 FOREIGN KEY (group_deploy_key_id) REFERENCES group_deploy_keys(id) ON DELETE CASCADE; --- --- Name: packages_debian_group_architectures fk_rails_ef667d1b03; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_wiki_repositories + ADD CONSTRAINT fk_rails_c3dd796199 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_debian_group_architectures - ADD CONSTRAINT fk_rails_ef667d1b03 FOREIGN KEY (distribution_id) REFERENCES public.packages_debian_group_distributions(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_user_mentions + ADD CONSTRAINT fk_rails_c440b9ea31 FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; +ALTER TABLE ONLY user_achievements + ADD CONSTRAINT fk_rails_c44f5b3b25 FOREIGN KEY (achievement_id) REFERENCES achievements(id) ON DELETE CASCADE; --- --- Name: dependency_list_export_parts fk_rails_ef73d6ad62; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY related_epic_links + ADD CONSTRAINT fk_rails_c464534def FOREIGN KEY (source_id) REFERENCES epics(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.dependency_list_export_parts - ADD CONSTRAINT fk_rails_ef73d6ad62 FOREIGN KEY (organization_id) REFERENCES public.organizations(id) ON DELETE CASCADE; +ALTER TABLE ONLY boards_epic_board_recent_visits + ADD CONSTRAINT fk_rails_c4dcba4a3e FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE p_ci_job_artifacts + ADD CONSTRAINT fk_rails_c5137cb2c1_p FOREIGN KEY (partition_id, job_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; --- --- Name: project_relation_exports fk_rails_ef89b354fc; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY organization_settings + ADD CONSTRAINT fk_rails_c56e4690c0 FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.project_relation_exports - ADD CONSTRAINT fk_rails_ef89b354fc FOREIGN KEY (project_export_job_id) REFERENCES public.project_export_jobs(id) ON DELETE CASCADE; +ALTER TABLE ONLY system_access_microsoft_applications + ADD CONSTRAINT fk_rails_c5b7765d04 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY custom_software_licenses + ADD CONSTRAINT fk_rails_c68163fae6 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: label_priorities fk_rails_ef916d14fa; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_settings + ADD CONSTRAINT fk_rails_c6df6e6328 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.label_priorities - ADD CONSTRAINT fk_rails_ef916d14fa FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY container_expiration_policies + ADD CONSTRAINT fk_rails_c7360f09ad FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY wiki_page_meta + ADD CONSTRAINT fk_rails_c7a0c59cf1 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: fork_network_members fk_rails_efccadc4ec; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY scim_oauth_access_tokens + ADD CONSTRAINT fk_rails_c84404fb6c FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.fork_network_members - ADD CONSTRAINT fk_rails_efccadc4ec FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_occurrences + ADD CONSTRAINT fk_rails_c8661a61eb FOREIGN KEY (primary_identifier_id) REFERENCES vulnerability_identifiers(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_export_jobs + ADD CONSTRAINT fk_rails_c88d8db2e1 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: security_orchestration_policy_rule_schedules fk_rails_efe1d9b133; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY resource_state_events + ADD CONSTRAINT fk_rails_c913c64977 FOREIGN KEY (epic_id) REFERENCES epics(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.security_orchestration_policy_rule_schedules - ADD CONSTRAINT fk_rails_efe1d9b133 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY resource_milestone_events + ADD CONSTRAINT fk_rails_c940fb9fc5 FOREIGN KEY (milestone_id) REFERENCES milestones(id) ON DELETE CASCADE; +ALTER TABLE ONLY gpg_signatures + ADD CONSTRAINT fk_rails_c97176f5f7 FOREIGN KEY (gpg_key_id) REFERENCES gpg_keys(id) ON DELETE SET NULL; --- --- Name: dast_pre_scan_verifications fk_rails_f08d9312a8; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY board_group_recent_visits + ADD CONSTRAINT fk_rails_ca04c38720 FOREIGN KEY (board_id) REFERENCES boards(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.dast_pre_scan_verifications - ADD CONSTRAINT fk_rails_f08d9312a8 FOREIGN KEY (dast_profile_id) REFERENCES public.dast_profiles(id) ON DELETE CASCADE; +ALTER TABLE ONLY relation_import_trackers + ADD CONSTRAINT fk_rails_ca9bd1ef8a FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY boards_epic_board_positions + ADD CONSTRAINT fk_rails_cb4563dd6e FOREIGN KEY (epic_board_id) REFERENCES boards_epic_boards(id) ON DELETE CASCADE; --- --- Name: analytics_dashboards_pointers fk_rails_f0e7c640c3; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_finding_links + ADD CONSTRAINT fk_rails_cbdfde27ce FOREIGN KEY (vulnerability_occurrence_id) REFERENCES vulnerability_occurrences(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.analytics_dashboards_pointers - ADD CONSTRAINT fk_rails_f0e7c640c3 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY namespace_details + ADD CONSTRAINT fk_rails_cc11a451f8 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY issues_self_managed_prometheus_alert_events + ADD CONSTRAINT fk_rails_cc5d88bbb0 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; --- --- Name: prometheus_alerts fk_rails_f0e8db86aa; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY operations_strategies_user_lists + ADD CONSTRAINT fk_rails_ccb7e4bc0b FOREIGN KEY (user_list_id) REFERENCES operations_user_lists(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.prometheus_alerts - ADD CONSTRAINT fk_rails_f0e8db86aa FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY resource_milestone_events + ADD CONSTRAINT fk_rails_cedf8cce4d FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY resource_iteration_events + ADD CONSTRAINT fk_rails_cee126f66c FOREIGN KEY (iteration_id) REFERENCES sprints(id) ON DELETE CASCADE; --- --- Name: import_export_uploads fk_rails_f129140f9e; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY member_roles + ADD CONSTRAINT fk_rails_cf0ee35814 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.import_export_uploads - ADD CONSTRAINT fk_rails_f129140f9e FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY pm_package_versions + ADD CONSTRAINT fk_rails_cf94c3e601 FOREIGN KEY (pm_package_id) REFERENCES pm_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY upload_states + ADD CONSTRAINT fk_rails_d00f153613 FOREIGN KEY (upload_id) REFERENCES uploads(id) ON DELETE CASCADE; --- --- Name: jira_connect_subscriptions fk_rails_f1d617343f; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY epic_metrics + ADD CONSTRAINT fk_rails_d071904753 FOREIGN KEY (epic_id) REFERENCES epics(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.jira_connect_subscriptions - ADD CONSTRAINT fk_rails_f1d617343f FOREIGN KEY (jira_connect_installation_id) REFERENCES public.jira_connect_installations(id) ON DELETE CASCADE; +ALTER TABLE ONLY import_source_user_placeholder_references + ADD CONSTRAINT fk_rails_d0b75c434e FOREIGN KEY (source_user_id) REFERENCES import_source_users(id) ON DELETE CASCADE; +ALTER TABLE ONLY subscriptions + ADD CONSTRAINT fk_rails_d0c8bda804 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: requirements fk_rails_f212e67e63; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY operations_strategies + ADD CONSTRAINT fk_rails_d183b6e6dd FOREIGN KEY (feature_flag_id) REFERENCES operations_feature_flags(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.requirements - ADD CONSTRAINT fk_rails_f212e67e63 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY cluster_agent_tokens + ADD CONSTRAINT fk_rails_d1d26abc25 FOREIGN KEY (agent_id) REFERENCES cluster_agents(id) ON DELETE CASCADE; +ALTER TABLE ONLY requirements_management_test_reports + ADD CONSTRAINT fk_rails_d1e8b498bf FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: snippet_repositories fk_rails_f21f899728; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY pool_repositories + ADD CONSTRAINT fk_rails_d2711daad4 FOREIGN KEY (source_project_id) REFERENCES projects(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.snippet_repositories - ADD CONSTRAINT fk_rails_f21f899728 FOREIGN KEY (shard_id) REFERENCES public.shards(id) ON DELETE RESTRICT; +ALTER TABLE ONLY design_management_repository_states + ADD CONSTRAINT fk_rails_d2a258cc5a FOREIGN KEY (design_management_repository_id) REFERENCES design_management_repositories(id) ON DELETE CASCADE; +ALTER TABLE ONLY web_hooks + ADD CONSTRAINT fk_rails_d35697648e FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: elastic_reindexing_subtasks fk_rails_f2cc190164; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY group_group_links + ADD CONSTRAINT fk_rails_d3a0488427 FOREIGN KEY (shared_group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.elastic_reindexing_subtasks - ADD CONSTRAINT fk_rails_f2cc190164 FOREIGN KEY (elastic_reindexing_task_id) REFERENCES public.elastic_reindexing_tasks(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_issue_links + ADD CONSTRAINT fk_rails_d459c19036 FOREIGN KEY (vulnerability_id) REFERENCES vulnerabilities(id) ON DELETE CASCADE; +ALTER TABLE ONLY alert_management_alert_assignees + ADD CONSTRAINT fk_rails_d47570ac62 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: approval_project_rules_users fk_rails_f365da8250; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_terraform_module_metadata + ADD CONSTRAINT fk_rails_d48f21a84b FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE SET NULL; -ALTER TABLE ONLY public.approval_project_rules_users - ADD CONSTRAINT fk_rails_f365da8250 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE p_ci_job_annotations + ADD CONSTRAINT fk_rails_d4d0c0fa0f FOREIGN KEY (partition_id, job_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY packages_rpm_repository_files + ADD CONSTRAINT fk_rails_d545cfaed2 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: insights fk_rails_f36fda3932; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_rpm_metadata + ADD CONSTRAINT fk_rails_d79f02264b FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.insights - ADD CONSTRAINT fk_rails_f36fda3932 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE p_ci_build_tags + ADD CONSTRAINT fk_rails_d7bd025909 FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY note_metadata + ADD CONSTRAINT fk_rails_d853224d37 FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; --- --- Name: incident_management_pending_alert_escalations fk_rails_f3d17bc8af; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ml_model_metadata + ADD CONSTRAINT fk_rails_d907835e01 FOREIGN KEY (model_id) REFERENCES ml_models(id) ON DELETE CASCADE; -ALTER TABLE public.incident_management_pending_alert_escalations - ADD CONSTRAINT fk_rails_f3d17bc8af FOREIGN KEY (rule_id) REFERENCES public.incident_management_escalation_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_reviewers + ADD CONSTRAINT fk_rails_d9fec24b9d FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY ci_running_builds + ADD CONSTRAINT fk_rails_da45cfa165_p FOREIGN KEY (partition_id, build_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; --- --- Name: board_group_recent_visits fk_rails_f410736518; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY resource_link_events + ADD CONSTRAINT fk_rails_da5dd8a56f FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.board_group_recent_visits - ADD CONSTRAINT fk_rails_f410736518 FOREIGN KEY (group_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY jira_imports + ADD CONSTRAINT fk_rails_da617096ce FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY dependency_proxy_blobs + ADD CONSTRAINT fk_rails_db58bbc5d7 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: incident_management_issuable_escalation_statuses fk_rails_f4c811fd28; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY issues_prometheus_alert_events + ADD CONSTRAINT fk_rails_db5b756534 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.incident_management_issuable_escalation_statuses - ADD CONSTRAINT fk_rails_f4c811fd28 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY board_user_preferences + ADD CONSTRAINT fk_rails_dbebdaa8fe FOREIGN KEY (board_id) REFERENCES boards(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_occurrence_pipelines + ADD CONSTRAINT fk_rails_dc3ae04693 FOREIGN KEY (occurrence_id) REFERENCES vulnerability_occurrences(id) ON DELETE CASCADE; --- --- Name: vulnerability_export_parts fk_rails_f50ca1aabf; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY instance_audit_events_streaming_headers + ADD CONSTRAINT fk_rails_dc933c1f3c FOREIGN KEY (instance_external_audit_event_destination_id) REFERENCES audit_events_instance_external_audit_event_destinations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.vulnerability_export_parts - ADD CONSTRAINT fk_rails_f50ca1aabf FOREIGN KEY (vulnerability_export_id) REFERENCES public.vulnerability_exports(id) ON DELETE CASCADE; +ALTER TABLE ONLY deployment_merge_requests + ADD CONSTRAINT fk_rails_dcbce9f4df FOREIGN KEY (deployment_id) REFERENCES deployments(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_debian_group_component_files + ADD CONSTRAINT fk_rails_dd262386e9 FOREIGN KEY (component_id) REFERENCES packages_debian_group_components(id) ON DELETE RESTRICT; --- --- Name: resource_state_events fk_rails_f5827a7ccd; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY incident_management_timeline_event_tags + ADD CONSTRAINT fk_rails_dd5c91484e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.resource_state_events - ADD CONSTRAINT fk_rails_f5827a7ccd FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER TABLE ONLY user_callouts + ADD CONSTRAINT fk_rails_ddfdd80f3d FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY scan_result_policies + ADD CONSTRAINT fk_rails_de9e5d2ce6 FOREIGN KEY (security_orchestration_policy_configuration_id) REFERENCES security_orchestration_policy_configurations(id) ON DELETE CASCADE; --- --- Name: packages_debian_group_components fk_rails_f5f1ef54c6; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_feedback + ADD CONSTRAINT fk_rails_debd54e456 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_debian_group_components - ADD CONSTRAINT fk_rails_f5f1ef54c6 FOREIGN KEY (distribution_id) REFERENCES public.packages_debian_group_distributions(id) ON DELETE CASCADE; +ALTER TABLE ONLY service_desk_custom_email_verifications + ADD CONSTRAINT fk_rails_debe4c4acc FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_debian_project_distributions + ADD CONSTRAINT fk_rails_df44271a30 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE RESTRICT; --- --- Name: incident_management_oncall_shifts fk_rails_f6eef06841; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY incident_management_oncall_shifts + ADD CONSTRAINT fk_rails_df4feb286a FOREIGN KEY (rotation_id) REFERENCES incident_management_oncall_rotations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.incident_management_oncall_shifts - ADD CONSTRAINT fk_rails_f6eef06841 FOREIGN KEY (participant_id) REFERENCES public.incident_management_oncall_participants(id) ON DELETE CASCADE; +ALTER TABLE ONLY namespace_commit_emails + ADD CONSTRAINT fk_rails_dfa4c104f5 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY analytics_cycle_analytics_group_stages + ADD CONSTRAINT fk_rails_dfb37c880d FOREIGN KEY (end_event_label_id) REFERENCES labels(id) ON DELETE CASCADE; --- --- Name: design_user_mentions fk_rails_f7075a53c1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY bulk_import_export_uploads + ADD CONSTRAINT fk_rails_dfbfb45eca FOREIGN KEY (export_id) REFERENCES bulk_import_exports(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.design_user_mentions - ADD CONSTRAINT fk_rails_f7075a53c1 FOREIGN KEY (design_id) REFERENCES public.design_management_designs(id) ON DELETE CASCADE; +ALTER TABLE ONLY vs_code_settings + ADD CONSTRAINT fk_rails_e02b1ed535 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY audit_events_group_streaming_event_type_filters + ADD CONSTRAINT fk_rails_e07e457a27 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: internal_ids fk_rails_f7d46b66c6; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY label_priorities + ADD CONSTRAINT fk_rails_e161058b0f FOREIGN KEY (label_id) REFERENCES labels(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.internal_ids - ADD CONSTRAINT fk_rails_f7d46b66c6 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_packages + ADD CONSTRAINT fk_rails_e1ac527425 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE p_catalog_resource_component_usages + ADD CONSTRAINT fk_rails_e1ba64b7ee FOREIGN KEY (component_id) REFERENCES catalog_resource_components(id) ON DELETE CASCADE; --- --- Name: issues_self_managed_prometheus_alert_events fk_rails_f7db2d72eb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY cluster_platforms_kubernetes + ADD CONSTRAINT fk_rails_e1e2cf841a FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.issues_self_managed_prometheus_alert_events - ADD CONSTRAINT fk_rails_f7db2d72eb FOREIGN KEY (self_managed_prometheus_alert_event_id) REFERENCES public.self_managed_prometheus_alert_events(id) ON DELETE CASCADE; +ALTER TABLE ONLY issue_emails + ADD CONSTRAINT fk_rails_e2ee00a8f7 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_finding_evidences + ADD CONSTRAINT fk_rails_e3205a0c65 FOREIGN KEY (vulnerability_occurrence_id) REFERENCES vulnerability_occurrences(id) ON DELETE CASCADE; --- --- Name: merge_requests_closing_issues fk_rails_f8540692be; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY approval_policy_rules + ADD CONSTRAINT fk_rails_e344cb2d35 FOREIGN KEY (security_policy_management_project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.merge_requests_closing_issues - ADD CONSTRAINT fk_rails_f8540692be FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY clusters_integration_prometheus + ADD CONSTRAINT fk_rails_e44472034c FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_occurrence_identifiers + ADD CONSTRAINT fk_rails_e4ef6d027c FOREIGN KEY (occurrence_id) REFERENCES vulnerability_occurrences(id) ON DELETE CASCADE; --- --- Name: banned_users fk_rails_fa5bb598e5; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_protection_rules + ADD CONSTRAINT fk_rails_e52adb5267 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.banned_users - ADD CONSTRAINT fk_rails_fa5bb598e5 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_flags + ADD CONSTRAINT fk_rails_e59393b48b FOREIGN KEY (vulnerability_occurrence_id) REFERENCES vulnerability_occurrences(id) ON DELETE CASCADE; +ALTER TABLE ONLY incident_management_escalation_policies + ADD CONSTRAINT fk_rails_e5b513daa7 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: operations_feature_flags_issues fk_rails_fb4d2a7cb1; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY software_license_policies + ADD CONSTRAINT fk_rails_e5b77d620e FOREIGN KEY (scan_result_policy_id) REFERENCES scan_result_policies(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.operations_feature_flags_issues - ADD CONSTRAINT fk_rails_fb4d2a7cb1 FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_external_issue_links + ADD CONSTRAINT fk_rails_e5ba7f7b13 FOREIGN KEY (author_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY approval_merge_request_rule_sources + ADD CONSTRAINT fk_rails_e605a04f76 FOREIGN KEY (approval_merge_request_rule_id) REFERENCES approval_merge_request_rules(id) ON DELETE CASCADE; --- --- Name: board_project_recent_visits fk_rails_fb6fc419cb; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY prometheus_alerts + ADD CONSTRAINT fk_rails_e6351447ec FOREIGN KEY (prometheus_metric_id) REFERENCES prometheus_metrics(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.board_project_recent_visits - ADD CONSTRAINT fk_rails_fb6fc419cb FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_metrics + ADD CONSTRAINT fk_rails_e6d7c24d1b FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY draft_notes + ADD CONSTRAINT fk_rails_e753681674 FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; --- --- Name: ci_job_variables fk_rails_fbf3b34792_p; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY namespace_package_settings + ADD CONSTRAINT fk_rails_e773444769 FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.ci_job_variables - ADD CONSTRAINT fk_rails_fbf3b34792_p FOREIGN KEY (partition_id, job_id) REFERENCES public.p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; +ALTER TABLE ONLY boards_epic_board_recent_visits + ADD CONSTRAINT fk_rails_e77911cf03 FOREIGN KEY (epic_board_id) REFERENCES boards_epic_boards(id) ON DELETE CASCADE; +ALTER TABLE ONLY audit_events_streaming_instance_event_type_filters + ADD CONSTRAINT fk_rails_e7bb18c0e1 FOREIGN KEY (instance_external_audit_event_destination_id) REFERENCES audit_events_instance_external_audit_event_destinations(id) ON DELETE CASCADE; --- --- Name: packages_nuget_metadata fk_rails_fc0c19f5b4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY group_deploy_keys_groups + ADD CONSTRAINT fk_rails_e87145115d FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.packages_nuget_metadata - ADD CONSTRAINT fk_rails_fc0c19f5b4 FOREIGN KEY (package_id) REFERENCES public.packages_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY audit_events_streaming_event_type_filters + ADD CONSTRAINT fk_rails_e8bd011129 FOREIGN KEY (external_audit_event_destination_id) REFERENCES audit_events_external_audit_event_destinations(id) ON DELETE CASCADE; +ALTER TABLE ONLY description_versions + ADD CONSTRAINT fk_rails_e8f4caf9c7 FOREIGN KEY (epic_id) REFERENCES epics(id) ON DELETE CASCADE; --- --- Name: customer_relations_contacts fk_rails_fd3f2e7572; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY vulnerability_issue_links + ADD CONSTRAINT fk_rails_e9180d534b FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.customer_relations_contacts - ADD CONSTRAINT fk_rails_fd3f2e7572 FOREIGN KEY (organization_id) REFERENCES public.customer_relations_organizations(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_request_blocks + ADD CONSTRAINT fk_rails_e9387863bc FOREIGN KEY (blocking_merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY protected_branch_unprotect_access_levels + ADD CONSTRAINT fk_rails_e9eb8dc025 FOREIGN KEY (protected_branch_id) REFERENCES protected_branches(id) ON DELETE CASCADE; --- --- Name: external_approval_rules fk_rails_fd4f9ac573; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ai_vectorizable_files + ADD CONSTRAINT fk_rails_ea2e440084 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.external_approval_rules - ADD CONSTRAINT fk_rails_fd4f9ac573 FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY alert_management_alert_user_mentions + ADD CONSTRAINT fk_rails_eb2de0cdef FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE CASCADE; +ALTER TABLE ONLY snippet_statistics + ADD CONSTRAINT fk_rails_ebc283ccf1 FOREIGN KEY (snippet_id) REFERENCES snippets(id) ON DELETE CASCADE; --- --- Name: abuse_report_assignees fk_rails_fd5f22166b; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY slack_integrations_scopes + ADD CONSTRAINT fk_rails_ece1eb6772 FOREIGN KEY (slack_integration_id) REFERENCES slack_integrations(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.abuse_report_assignees - ADD CONSTRAINT fk_rails_fd5f22166b FOREIGN KEY (abuse_report_id) REFERENCES public.abuse_reports(id) ON DELETE CASCADE; +ALTER TABLE ONLY iterations_cadences + ADD CONSTRAINT fk_rails_ece400c55a FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY dast_profiles + ADD CONSTRAINT fk_rails_ed1e66fbbf FOREIGN KEY (dast_site_profile_id) REFERENCES dast_site_profiles(id) ON DELETE CASCADE; --- --- Name: cluster_groups fk_rails_fdb8648a96; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY project_security_settings + ADD CONSTRAINT fk_rails_ed4abe1338 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.cluster_groups - ADD CONSTRAINT fk_rails_fdb8648a96 FOREIGN KEY (cluster_id) REFERENCES public.clusters(id) ON DELETE CASCADE; +ALTER TABLE ONLY packages_debian_group_distributions + ADD CONSTRAINT fk_rails_ede0bb937f FOREIGN KEY (creator_id) REFERENCES users(id) ON DELETE SET NULL; +ALTER TABLE ONLY ci_daily_build_group_report_results + ADD CONSTRAINT fk_rails_ee072d13b3_p FOREIGN KEY (partition_id, last_pipeline_id) REFERENCES ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; --- --- Name: resource_label_events fk_rails_fe91ece594; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_daily_build_group_report_results + ADD CONSTRAINT fk_rails_ee072d13b3_p_tmp FOREIGN KEY (partition_id, last_pipeline_id) REFERENCES p_ci_pipelines(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE NOT VALID; -ALTER TABLE ONLY public.resource_label_events - ADD CONSTRAINT fk_rails_fe91ece594 FOREIGN KEY (user_id) REFERENCES public.users(id) ON DELETE SET NULL; +ALTER TABLE ONLY import_source_users + ADD CONSTRAINT fk_rails_ee30e569be FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY audit_events_group_streaming_event_type_filters + ADD CONSTRAINT fk_rails_ee6950967f FOREIGN KEY (external_streaming_destination_id) REFERENCES audit_events_group_external_streaming_destinations(id) ON DELETE CASCADE; --- --- Name: pages_deployment_states fk_rails_ff6ca551a4; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_debian_group_architectures + ADD CONSTRAINT fk_rails_ef667d1b03 FOREIGN KEY (distribution_id) REFERENCES packages_debian_group_distributions(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.pages_deployment_states - ADD CONSTRAINT fk_rails_ff6ca551a4 FOREIGN KEY (pages_deployment_id) REFERENCES public.pages_deployments(id) ON DELETE CASCADE; +ALTER TABLE ONLY dependency_list_export_parts + ADD CONSTRAINT fk_rails_ef73d6ad62 FOREIGN KEY (organization_id) REFERENCES organizations(id) ON DELETE CASCADE; +ALTER TABLE ONLY project_relation_exports + ADD CONSTRAINT fk_rails_ef89b354fc FOREIGN KEY (project_export_job_id) REFERENCES project_export_jobs(id) ON DELETE CASCADE; --- --- Name: search_namespace_index_assignments fk_search_index_id_and_type; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY label_priorities + ADD CONSTRAINT fk_rails_ef916d14fa FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.search_namespace_index_assignments - ADD CONSTRAINT fk_search_index_id_and_type FOREIGN KEY (search_index_id, index_type) REFERENCES public.search_indices(id, type) ON DELETE CASCADE; +ALTER TABLE ONLY fork_network_members + ADD CONSTRAINT fk_rails_efccadc4ec FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY security_orchestration_policy_rule_schedules + ADD CONSTRAINT fk_rails_efe1d9b133 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: security_orchestration_policy_configurations fk_security_policy_configurations_management_project_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY dast_pre_scan_verifications + ADD CONSTRAINT fk_rails_f08d9312a8 FOREIGN KEY (dast_profile_id) REFERENCES dast_profiles(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.security_orchestration_policy_configurations - ADD CONSTRAINT fk_security_policy_configurations_management_project_id FOREIGN KEY (security_policy_management_project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY analytics_dashboards_pointers + ADD CONSTRAINT fk_rails_f0e7c640c3 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY prometheus_alerts + ADD CONSTRAINT fk_rails_f0e8db86aa FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: integrations fk_services_inherit_from_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY import_export_uploads + ADD CONSTRAINT fk_rails_f129140f9e FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.integrations - ADD CONSTRAINT fk_services_inherit_from_id FOREIGN KEY (inherit_from_id) REFERENCES public.integrations(id) ON DELETE CASCADE; +ALTER TABLE ONLY jira_connect_subscriptions + ADD CONSTRAINT fk_rails_f1d617343f FOREIGN KEY (jira_connect_installation_id) REFERENCES jira_connect_installations(id) ON DELETE CASCADE; +ALTER TABLE ONLY requirements + ADD CONSTRAINT fk_rails_f212e67e63 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; --- --- Name: merge_requests fk_source_project; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY snippet_repositories + ADD CONSTRAINT fk_rails_f21f899728 FOREIGN KEY (shard_id) REFERENCES shards(id) ON DELETE RESTRICT; -ALTER TABLE ONLY public.merge_requests - ADD CONSTRAINT fk_source_project FOREIGN KEY (source_project_id) REFERENCES public.projects(id) ON DELETE SET NULL; +ALTER TABLE ONLY elastic_reindexing_subtasks + ADD CONSTRAINT fk_rails_f2cc190164 FOREIGN KEY (elastic_reindexing_task_id) REFERENCES elastic_reindexing_tasks(id) ON DELETE CASCADE; +ALTER TABLE ONLY approval_project_rules_users + ADD CONSTRAINT fk_rails_f365da8250 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: timelogs fk_timelogs_issues_issue_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY insights + ADD CONSTRAINT fk_rails_f36fda3932 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.timelogs - ADD CONSTRAINT fk_timelogs_issues_issue_id FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER TABLE incident_management_pending_alert_escalations + ADD CONSTRAINT fk_rails_f3d17bc8af FOREIGN KEY (rule_id) REFERENCES incident_management_escalation_rules(id) ON DELETE CASCADE; +ALTER TABLE ONLY board_group_recent_visits + ADD CONSTRAINT fk_rails_f410736518 FOREIGN KEY (group_id) REFERENCES namespaces(id) ON DELETE CASCADE; --- --- Name: timelogs fk_timelogs_merge_requests_merge_request_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY incident_management_issuable_escalation_statuses + ADD CONSTRAINT fk_rails_f4c811fd28 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.timelogs - ADD CONSTRAINT fk_timelogs_merge_requests_merge_request_id FOREIGN KEY (merge_request_id) REFERENCES public.merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY vulnerability_export_parts + ADD CONSTRAINT fk_rails_f50ca1aabf FOREIGN KEY (vulnerability_export_id) REFERENCES vulnerability_exports(id) ON DELETE CASCADE; +ALTER TABLE ONLY resource_state_events + ADD CONSTRAINT fk_rails_f5827a7ccd FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; --- --- Name: timelogs fk_timelogs_note_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY packages_debian_group_components + ADD CONSTRAINT fk_rails_f5f1ef54c6 FOREIGN KEY (distribution_id) REFERENCES packages_debian_group_distributions(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.timelogs - ADD CONSTRAINT fk_timelogs_note_id FOREIGN KEY (note_id) REFERENCES public.notes(id) ON DELETE SET NULL; +ALTER TABLE ONLY incident_management_oncall_shifts + ADD CONSTRAINT fk_rails_f6eef06841 FOREIGN KEY (participant_id) REFERENCES incident_management_oncall_participants(id) ON DELETE CASCADE; +ALTER TABLE ONLY design_user_mentions + ADD CONSTRAINT fk_rails_f7075a53c1 FOREIGN KEY (design_id) REFERENCES design_management_designs(id) ON DELETE CASCADE; --- --- Name: work_item_colors fk_work_item_colors_on_namespace_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY internal_ids + ADD CONSTRAINT fk_rails_f7d46b66c6 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.work_item_colors - ADD CONSTRAINT fk_work_item_colors_on_namespace_id FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY issues_self_managed_prometheus_alert_events + ADD CONSTRAINT fk_rails_f7db2d72eb FOREIGN KEY (self_managed_prometheus_alert_event_id) REFERENCES self_managed_prometheus_alert_events(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_requests_closing_issues + ADD CONSTRAINT fk_rails_f8540692be FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; --- --- Name: work_item_dates_sources fk_work_item_dates_sources_on_namespace_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY banned_users + ADD CONSTRAINT fk_rails_fa5bb598e5 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.work_item_dates_sources - ADD CONSTRAINT fk_work_item_dates_sources_on_namespace_id FOREIGN KEY (namespace_id) REFERENCES public.namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY operations_feature_flags_issues + ADD CONSTRAINT fk_rails_fb4d2a7cb1 FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY board_project_recent_visits + ADD CONSTRAINT fk_rails_fb6fc419cb FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE CASCADE; --- --- Name: zoekt_indices fk_zoekt_indices_on_zoekt_replica_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY ci_job_variables + ADD CONSTRAINT fk_rails_fbf3b34792_p FOREIGN KEY (partition_id, job_id) REFERENCES p_ci_builds(partition_id, id) ON UPDATE CASCADE ON DELETE CASCADE; -ALTER TABLE ONLY public.zoekt_indices - ADD CONSTRAINT fk_zoekt_indices_on_zoekt_replica_id FOREIGN KEY (zoekt_replica_id) REFERENCES public.zoekt_replicas(id) ON DELETE SET NULL; +ALTER TABLE ONLY packages_nuget_metadata + ADD CONSTRAINT fk_rails_fc0c19f5b4 FOREIGN KEY (package_id) REFERENCES packages_packages(id) ON DELETE CASCADE; +ALTER TABLE ONLY customer_relations_contacts + ADD CONSTRAINT fk_rails_fd3f2e7572 FOREIGN KEY (organization_id) REFERENCES customer_relations_organizations(id) ON DELETE CASCADE; --- --- Name: zoekt_repositories fk_zoekt_repositories_on_zoekt_index_id; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY external_approval_rules + ADD CONSTRAINT fk_rails_fd4f9ac573 FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.zoekt_repositories - ADD CONSTRAINT fk_zoekt_repositories_on_zoekt_index_id FOREIGN KEY (zoekt_index_id) REFERENCES public.zoekt_indices(id) ON DELETE RESTRICT; +ALTER TABLE ONLY abuse_report_assignees + ADD CONSTRAINT fk_rails_fd5f22166b FOREIGN KEY (abuse_report_id) REFERENCES abuse_reports(id) ON DELETE CASCADE; +ALTER TABLE ONLY cluster_groups + ADD CONSTRAINT fk_rails_fdb8648a96 FOREIGN KEY (cluster_id) REFERENCES clusters(id) ON DELETE CASCADE; --- --- Name: issue_search_data issue_search_data_issue_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY resource_label_events + ADD CONSTRAINT fk_rails_fe91ece594 FOREIGN KEY (user_id) REFERENCES users(id) ON DELETE SET NULL; -ALTER TABLE public.issue_search_data - ADD CONSTRAINT issue_search_data_issue_id_fkey FOREIGN KEY (issue_id) REFERENCES public.issues(id) ON DELETE CASCADE; +ALTER TABLE ONLY pages_deployment_states + ADD CONSTRAINT fk_rails_ff6ca551a4 FOREIGN KEY (pages_deployment_id) REFERENCES pages_deployments(id) ON DELETE CASCADE; +ALTER TABLE ONLY search_namespace_index_assignments + ADD CONSTRAINT fk_search_index_id_and_type FOREIGN KEY (search_index_id, index_type) REFERENCES search_indices(id, type) ON DELETE CASCADE; --- --- Name: issue_search_data issue_search_data_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY security_orchestration_policy_configurations + ADD CONSTRAINT fk_security_policy_configurations_management_project_id FOREIGN KEY (security_policy_management_project_id) REFERENCES projects(id) ON DELETE CASCADE; -ALTER TABLE public.issue_search_data - ADD CONSTRAINT issue_search_data_project_id_fkey FOREIGN KEY (project_id) REFERENCES public.projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY integrations + ADD CONSTRAINT fk_services_inherit_from_id FOREIGN KEY (inherit_from_id) REFERENCES integrations(id) ON DELETE CASCADE; +ALTER TABLE ONLY merge_requests + ADD CONSTRAINT fk_source_project FOREIGN KEY (source_project_id) REFERENCES projects(id) ON DELETE SET NULL; --- --- Name: user_follow_users user_follow_users_followee_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY timelogs + ADD CONSTRAINT fk_timelogs_issues_issue_id FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.user_follow_users - ADD CONSTRAINT user_follow_users_followee_id_fkey FOREIGN KEY (followee_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY timelogs + ADD CONSTRAINT fk_timelogs_merge_requests_merge_request_id FOREIGN KEY (merge_request_id) REFERENCES merge_requests(id) ON DELETE CASCADE; +ALTER TABLE ONLY timelogs + ADD CONSTRAINT fk_timelogs_note_id FOREIGN KEY (note_id) REFERENCES notes(id) ON DELETE SET NULL; --- --- Name: user_follow_users user_follow_users_follower_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - --- +ALTER TABLE ONLY work_item_colors + ADD CONSTRAINT fk_work_item_colors_on_namespace_id FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; -ALTER TABLE ONLY public.user_follow_users - ADD CONSTRAINT user_follow_users_follower_id_fkey FOREIGN KEY (follower_id) REFERENCES public.users(id) ON DELETE CASCADE; +ALTER TABLE ONLY work_item_dates_sources + ADD CONSTRAINT fk_work_item_dates_sources_on_namespace_id FOREIGN KEY (namespace_id) REFERENCES namespaces(id) ON DELETE CASCADE; +ALTER TABLE ONLY zoekt_indices + ADD CONSTRAINT fk_zoekt_indices_on_zoekt_replica_id FOREIGN KEY (zoekt_replica_id) REFERENCES zoekt_replicas(id) ON DELETE SET NULL; --- --- PostgreSQL database dump complete --- +ALTER TABLE ONLY zoekt_repositories + ADD CONSTRAINT fk_zoekt_repositories_on_zoekt_index_id FOREIGN KEY (zoekt_index_id) REFERENCES zoekt_indices(id) ON DELETE RESTRICT; -SET search_path TO "$user", public; +ALTER TABLE issue_search_data + ADD CONSTRAINT issue_search_data_issue_id_fkey FOREIGN KEY (issue_id) REFERENCES issues(id) ON DELETE CASCADE; +ALTER TABLE issue_search_data + ADD CONSTRAINT issue_search_data_project_id_fkey FOREIGN KEY (project_id) REFERENCES projects(id) ON DELETE CASCADE; +ALTER TABLE ONLY user_follow_users + ADD CONSTRAINT user_follow_users_followee_id_fkey FOREIGN KEY (followee_id) REFERENCES users(id) ON DELETE CASCADE; +ALTER TABLE ONLY user_follow_users + ADD CONSTRAINT user_follow_users_follower_id_fkey FOREIGN KEY (follower_id) REFERENCES users(id) ON DELETE CASCADE; -- GitLab From 4cf2358b11f4c4a22eca65e033ef54e4fb5d9ce0 Mon Sep 17 00:00:00 2001 From: Austin Dixon Date: Wed, 4 Sep 2024 14:32:25 +0000 Subject: [PATCH 35/72] Apply 1 suggestion(s) to 1 file(s) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Eduardo Sanz García --- .../access_tokens/components/access_token_table_app.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/access_tokens/components/access_token_table_app.vue b/app/assets/javascripts/access_tokens/components/access_token_table_app.vue index 4296c55a2f3c03..44bfe1025d2989 100644 --- a/app/assets/javascripts/access_tokens/components/access_token_table_app.vue +++ b/app/assets/javascripts/access_tokens/components/access_token_table_app.vue @@ -31,7 +31,7 @@ export default { }), i18n: { emptyDateField: __('Never'), - emptyIpField: __('-'), + emptyIpField: '-' expired: __('Expired'), modalMessage: __( 'Are you sure you want to revoke the %{accessTokenType} "%{tokenName}"? This action cannot be undone.', -- GitLab From aa6dfe33482a356718ed3fe119323ec42fba01bb Mon Sep 17 00:00:00 2001 From: Austin Dixon Date: Wed, 4 Sep 2024 19:51:10 +0000 Subject: [PATCH 36/72] Apply 1 suggestion(s) to 1 file(s) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Eduardo Sanz García --- .../access_tokens/components/access_token_table_app.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/access_tokens/components/access_token_table_app.vue b/app/assets/javascripts/access_tokens/components/access_token_table_app.vue index 44bfe1025d2989..259737dea81bbb 100644 --- a/app/assets/javascripts/access_tokens/components/access_token_table_app.vue +++ b/app/assets/javascripts/access_tokens/components/access_token_table_app.vue @@ -144,7 +144,7 @@ export default { + + - -