time="2026-02-10T09:27:48-03:00" level=warning msg="The \"WWWGROUP\" variable is not set. Defaulting to a blank string." time="2026-02-10T09:27:48-03:00" level=warning msg="The \"WWWUSER\" variable is not set. Defaulting to a blank string." pg_restore: connecting to database for restore pg_restore: executing SELECT pg_catalog.set_config('search_path', '', false); pg_restore: dropping EVENT TRIGGER pgrst_drop_watch pg_restore: dropping EVENT TRIGGER pgrst_ddl_watch pg_restore: dropping EVENT TRIGGER issue_pg_net_access pg_restore: dropping EVENT TRIGGER issue_pg_graphql_access pg_restore: dropping EVENT TRIGGER issue_pg_cron_access pg_restore: dropping EVENT TRIGGER issue_graphql_placeholder pg_restore: dropping PUBLICATION supabase_realtime pg_restore: dropping FK CONSTRAINT vector_indexes vector_indexes_bucket_id_fkey pg_restore: dropping FK CONSTRAINT s3_multipart_uploads_parts s3_multipart_uploads_parts_upload_id_fkey pg_restore: dropping FK CONSTRAINT s3_multipart_uploads_parts s3_multipart_uploads_parts_bucket_id_fkey pg_restore: dropping FK CONSTRAINT s3_multipart_uploads s3_multipart_uploads_bucket_id_fkey pg_restore: dropping FK CONSTRAINT prefixes prefixes_bucketId_fkey pg_restore: dropping FK CONSTRAINT objects objects_bucketId_fkey pg_restore: dropping FK CONSTRAINT users users_segment_id_foreign pg_restore: dropping FK CONSTRAINT suggested_segments suggested_segments_created_by_foreign pg_restore: dropping FK CONSTRAINT subscriptions subscriptions_user_id_foreign pg_restore: dropping FK CONSTRAINT subscriptions subscriptions_plan_id_foreign pg_restore: dropping FK CONSTRAINT segment_default_text segment_default_text_segment_id_fkey pg_restore: dropping FK CONSTRAINT sdr_ai_agent_conversation_buffer sdr_ai_agent_conversation_buffer_bidding_id_fkey pg_restore: dropping FK CONSTRAINT prospecting_queue prospecting_queue_bidding_id_fkey pg_restore: dropping FK CONSTRAINT alert_group_portal portais_grupo_de_pesquisa_portais_id_foreign pg_restore: dropping FK CONSTRAINT partners_company partners_company_partner_id_fkey pg_restore: dropping FK CONSTRAINT partners_company partners_company_company_id_fkey pg_restore: dropping FK CONSTRAINT keywords_segment palavra_chave_nicho_palavra_chave_id_fkey pg_restore: dropping FK CONSTRAINT keywords_segment palavra_chave_nicho_nicho_id_fkey pg_restore: dropping FK CONSTRAINT alert_group_keyword palavra_chave_grupo_de_pesquisa_palavra_chave_id_foreign pg_restore: dropping FK CONSTRAINT modalities_alert_group modalities_alert_group_alert_group_id_fkey pg_restore: dropping FK CONSTRAINT modalities_alert_group modalidades_grupo_de_pesquisa_modalidades_id_foreign pg_restore: dropping FK CONSTRAINT lead_crm lead_crm_bidding_id_fkey pg_restore: dropping FK CONSTRAINT bidding_complement fk_bidding pg_restore: dropping FK CONSTRAINT effecti_biddings effecti_biddings_segment_id_fkey pg_restore: dropping FK CONSTRAINT effecti_bidding_items effecti_biddings_items_bidding_id_fkey pg_restore: dropping FK CONSTRAINT effecti_attachments effecti_attachments_bidding_id_fkey pg_restore: dropping FK CONSTRAINT days_of_searching dias_de_busca_grupo_de_pesquisa_id_foreign pg_restore: dropping FK CONSTRAINT companies_biddings companies_biddings_company_id_fkey pg_restore: dropping FK CONSTRAINT companies_biddings companies_biddings_bidding_id_fkey pg_restore: dropping FK CONSTRAINT cnae_alert_group cnae_grupo_de_pesquisa_grupo_de_pesquisa_id_foreign pg_restore: dropping FK CONSTRAINT cnae_alert_group cnae_grupo_de_pesquisa_cnae_id_foreign pg_restore: dropping FK CONSTRAINT biddings biddings_segment_id_fkey pg_restore: dropping FK CONSTRAINT bidding_partners bidding_partners_partner_id_fkey pg_restore: dropping FK CONSTRAINT bidding_partners bidding_partners_bidding_id_fkey pg_restore: dropping FK CONSTRAINT bidding_items bidding_items_bidding_id_fkey pg_restore: dropping FK CONSTRAINT bidding_alert_group bidding_alert_group_alert_group_id_fkey pg_restore: dropping FK CONSTRAINT alert_groups alert_groups_client_id_fkey pg_restore: dropping FK CONSTRAINT alert_group_portal alert_group_portal_alert_group_id_fkey pg_restore: dropping FK CONSTRAINT alert_group_keyword alert_group_keyword_alert_group_id_fkey pg_restore: dropping FK CONSTRAINT activity_logs activity_logs_user_id_foreign pg_restore: dropping FK CONSTRAINT sso_domains sso_domains_sso_provider_id_fkey pg_restore: dropping FK CONSTRAINT sessions sessions_user_id_fkey pg_restore: dropping FK CONSTRAINT sessions sessions_oauth_client_id_fkey pg_restore: dropping FK CONSTRAINT saml_relay_states saml_relay_states_sso_provider_id_fkey pg_restore: dropping FK CONSTRAINT saml_relay_states saml_relay_states_flow_state_id_fkey pg_restore: dropping FK CONSTRAINT saml_providers saml_providers_sso_provider_id_fkey pg_restore: dropping FK CONSTRAINT refresh_tokens refresh_tokens_session_id_fkey pg_restore: dropping FK CONSTRAINT one_time_tokens one_time_tokens_user_id_fkey pg_restore: dropping FK CONSTRAINT oauth_consents oauth_consents_user_id_fkey pg_restore: dropping FK CONSTRAINT oauth_consents oauth_consents_client_id_fkey pg_restore: dropping FK CONSTRAINT oauth_authorizations oauth_authorizations_user_id_fkey pg_restore: dropping FK CONSTRAINT oauth_authorizations oauth_authorizations_client_id_fkey pg_restore: dropping FK CONSTRAINT mfa_factors mfa_factors_user_id_fkey pg_restore: dropping FK CONSTRAINT mfa_challenges mfa_challenges_auth_factor_id_fkey pg_restore: dropping FK CONSTRAINT mfa_amr_claims mfa_amr_claims_session_id_fkey pg_restore: dropping FK CONSTRAINT identities identities_user_id_fkey pg_restore: dropping TRIGGER objects update_objects_updated_at pg_restore: dropping TRIGGER prefixes prefixes_delete_hierarchy pg_restore: dropping TRIGGER prefixes prefixes_create_hierarchy pg_restore: dropping TRIGGER objects objects_update_create_prefix pg_restore: dropping TRIGGER objects objects_insert_create_prefix pg_restore: dropping TRIGGER objects objects_delete_delete_prefix pg_restore: dropping TRIGGER buckets enforce_bucket_name_length_trigger pg_restore: dropping TRIGGER subscription tr_check_filters pg_restore: dropping TRIGGER segments trg_log_segments_delete pg_restore: dropping TRIGGER effecti_biddings delete_expired_effecti_biddings_trigger pg_restore: dropping INDEX supabase_functions_hooks_request_id_idx pg_restore: dropping INDEX supabase_functions_hooks_h_table_id_h_name_idx pg_restore: dropping INDEX vector_indexes_name_bucket_id_idx pg_restore: dropping INDEX objects_bucket_id_level_idx pg_restore: dropping INDEX name_prefix_search pg_restore: dropping INDEX idx_prefixes_lower_name pg_restore: dropping INDEX idx_objects_lower_name pg_restore: dropping INDEX idx_objects_bucket_id_name pg_restore: dropping INDEX idx_name_bucket_level_unique pg_restore: dropping INDEX idx_multipart_uploads_list pg_restore: dropping INDEX buckets_analytics_unique_name_idx pg_restore: dropping INDEX bucketid_objname pg_restore: dropping INDEX bname pg_restore: dropping INDEX subscription_subscription_id_entity_filters_action_filter_key pg_restore: dropping INDEX messages_inserted_at_topic_index pg_restore: dropping INDEX ix_realtime_subscription_entity pg_restore: dropping INDEX sessions_user_id_index pg_restore: dropping INDEX sessions_last_activity_index pg_restore: dropping INDEX personal_access_tokens_tokenable_type_tokenable_id_index pg_restore: dropping INDEX personal_access_tokens_expires_at_index pg_restore: dropping INDEX activity_logs_user_id_created_at_index pg_restore: dropping INDEX users_is_anonymous_idx pg_restore: dropping INDEX users_instance_id_idx pg_restore: dropping INDEX users_instance_id_email_idx pg_restore: dropping INDEX users_email_partial_key pg_restore: dropping INDEX user_id_created_at_idx pg_restore: dropping INDEX unique_phone_factor_per_user pg_restore: dropping INDEX sso_providers_resource_id_pattern_idx pg_restore: dropping INDEX sso_providers_resource_id_idx pg_restore: dropping INDEX sso_domains_sso_provider_id_idx pg_restore: dropping INDEX sso_domains_domain_idx pg_restore: dropping INDEX sessions_user_id_idx pg_restore: dropping INDEX sessions_oauth_client_id_idx pg_restore: dropping INDEX sessions_not_after_idx pg_restore: dropping INDEX saml_relay_states_sso_provider_id_idx pg_restore: dropping INDEX saml_relay_states_for_email_idx pg_restore: dropping INDEX saml_relay_states_created_at_idx pg_restore: dropping INDEX saml_providers_sso_provider_id_idx pg_restore: dropping INDEX refresh_tokens_updated_at_idx pg_restore: dropping INDEX refresh_tokens_session_id_revoked_idx pg_restore: dropping INDEX refresh_tokens_parent_idx pg_restore: dropping INDEX refresh_tokens_instance_id_user_id_idx pg_restore: dropping INDEX refresh_tokens_instance_id_idx pg_restore: dropping INDEX recovery_token_idx pg_restore: dropping INDEX reauthentication_token_idx pg_restore: dropping INDEX one_time_tokens_user_id_token_type_key pg_restore: dropping INDEX one_time_tokens_token_hash_hash_idx pg_restore: dropping INDEX one_time_tokens_relates_to_hash_idx pg_restore: dropping INDEX oauth_consents_user_order_idx pg_restore: dropping INDEX oauth_consents_active_user_client_idx pg_restore: dropping INDEX oauth_consents_active_client_idx pg_restore: dropping INDEX oauth_clients_deleted_at_idx pg_restore: dropping INDEX oauth_auth_pending_exp_idx pg_restore: dropping INDEX mfa_factors_user_id_idx pg_restore: dropping INDEX mfa_factors_user_friendly_name_unique pg_restore: dropping INDEX mfa_challenge_created_at_idx pg_restore: dropping INDEX idx_user_id_auth_method pg_restore: dropping INDEX idx_oauth_client_states_created_at pg_restore: dropping INDEX idx_auth_code pg_restore: dropping INDEX identities_user_id_idx pg_restore: dropping INDEX identities_email_idx pg_restore: dropping INDEX flow_state_created_at_idx pg_restore: dropping INDEX factor_id_created_at_idx pg_restore: dropping INDEX email_change_token_new_idx pg_restore: dropping INDEX email_change_token_current_idx pg_restore: dropping INDEX confirmation_token_idx pg_restore: dropping INDEX audit_logs_instance_id_idx pg_restore: dropping CONSTRAINT migrations migrations_pkey pg_restore: dropping CONSTRAINT hooks hooks_pkey pg_restore: dropping CONSTRAINT vector_indexes vector_indexes_pkey pg_restore: dropping CONSTRAINT s3_multipart_uploads s3_multipart_uploads_pkey pg_restore: dropping CONSTRAINT s3_multipart_uploads_parts s3_multipart_uploads_parts_pkey pg_restore: dropping CONSTRAINT prefixes prefixes_pkey pg_restore: dropping CONSTRAINT objects objects_pkey pg_restore: dropping CONSTRAINT migrations migrations_pkey pg_restore: dropping CONSTRAINT migrations migrations_name_key pg_restore: dropping CONSTRAINT buckets_vectors buckets_vectors_pkey pg_restore: dropping CONSTRAINT buckets buckets_pkey pg_restore: dropping CONSTRAINT buckets_analytics buckets_analytics_pkey pg_restore: dropping CONSTRAINT schema_migrations schema_migrations_pkey pg_restore: dropping CONSTRAINT subscription pk_subscription pg_restore: dropping CONSTRAINT messages messages_pkey pg_restore: dropping CONSTRAINT users users_pkey pg_restore: dropping CONSTRAINT users users_email_unique pg_restore: dropping CONSTRAINT suggested_segments suggested_segments_pkey pg_restore: dropping CONSTRAINT subscriptions subscriptions_pkey pg_restore: dropping CONSTRAINT sessions sessions_pkey pg_restore: dropping CONSTRAINT sdr_ai_agent_conversation sdr_ai_agent_conversation_pkey pg_restore: dropping CONSTRAINT sdr_ai_agent_conversation_buffer sdr_ai_agent_conversation_buffer_pkey pg_restore: dropping CONSTRAINT prospecting_queue prospecting_queue_pkey pg_restore: dropping CONSTRAINT prospecting_queue prospecting_queue_cellphone_key pg_restore: dropping CONSTRAINT alert_group_portal portals_alert_group_pkey pg_restore: dropping CONSTRAINT portals portais_pkey pg_restore: dropping CONSTRAINT plans plans_slug_unique pg_restore: dropping CONSTRAINT plans plans_pkey pg_restore: dropping CONSTRAINT personal_access_tokens personal_access_tokens_token_unique pg_restore: dropping CONSTRAINT personal_access_tokens personal_access_tokens_pkey pg_restore: dropping CONSTRAINT password_reset_tokens password_reset_tokens_pkey pg_restore: dropping CONSTRAINT partners partners_duplicate_pkey pg_restore: dropping CONSTRAINT partners partners_duplicate_cpf_key pg_restore: dropping CONSTRAINT partners_company partners_company_pkey pg_restore: dropping CONSTRAINT keywords palavra_chave_pkey pg_restore: dropping CONSTRAINT keywords_segment palavra_chave_nicho_pkey pg_restore: dropping CONSTRAINT segments nicho_pkey pg_restore: dropping CONSTRAINT modalities_alert_group modalities_alert_group_pkey pg_restore: dropping CONSTRAINT modalities modalidades_pkey pg_restore: dropping CONSTRAINT migrations migrations_pkey pg_restore: dropping CONSTRAINT memoria_agente_kommo memoria_agente_kommo_pkey pg_restore: dropping CONSTRAINT lead_crm lead_crm_pkey pg_restore: dropping CONSTRAINT alert_group_keyword keyword_alert_group_pkey pg_restore: dropping CONSTRAINT alert_groups grupo_de_pesquisa_pkey pg_restore: dropping CONSTRAINT companies empresas_pkey pg_restore: dropping CONSTRAINT companies empresas_cnpj_key pg_restore: dropping CONSTRAINT effecti_segments effecti_segments_pkey pg_restore: dropping CONSTRAINT effecti_bidding_items effecti_biddings_items_pkey pg_restore: dropping CONSTRAINT effecti_attachments effecti_attachments_pkey pg_restore: dropping CONSTRAINT days_of_searching dias_de_busca_pkey pg_restore: dropping CONSTRAINT segment_default_text default_text_pkey pg_restore: dropping CONSTRAINT segment_default_text default_text_content_key pg_restore: dropping CONSTRAINT consultants consultants_pkey pg_restore: dropping CONSTRAINT companies_biddings companies_biddings_pkey pg_restore: dropping CONSTRAINT cnaes cnae_pkey pg_restore: dropping CONSTRAINT cnae_alert_group cnae_alert_group_pkey pg_restore: dropping CONSTRAINT clients clientes_pkey pg_restore: dropping CONSTRAINT clients clientes_email_unique pg_restore: dropping CONSTRAINT cache cache_pkey pg_restore: dropping CONSTRAINT cache_locks cache_locks_pkey pg_restore: dropping CONSTRAINT buffer_agente_kommo buffer_agente_kommo_pkey pg_restore: dropping CONSTRAINT biddings biddings_duplicate_pkey pg_restore: dropping CONSTRAINT biddings biddings_control_number_pncp_key pg_restore: dropping CONSTRAINT effecti_biddings bidding_pkey pg_restore: dropping CONSTRAINT bidding_partners bidding_partners_pkey pg_restore: dropping CONSTRAINT bidding_partners bidding_partners_id_key pg_restore: dropping CONSTRAINT bidding_items bidding_items_pkey pg_restore: dropping CONSTRAINT bidding_complement bidding_complement_pkey pg_restore: dropping CONSTRAINT bidding_complement bidding_complement_bidding_id_key pg_restore: dropping CONSTRAINT bidding_alert_group bidding_alert_group_pkey pg_restore: dropping CONSTRAINT activity_logs activity_logs_pkey pg_restore: dropping CONSTRAINT users users_pkey pg_restore: dropping CONSTRAINT users users_phone_key pg_restore: dropping CONSTRAINT sso_providers sso_providers_pkey pg_restore: dropping CONSTRAINT sso_domains sso_domains_pkey pg_restore: dropping CONSTRAINT sessions sessions_pkey pg_restore: dropping CONSTRAINT schema_migrations schema_migrations_pkey pg_restore: dropping CONSTRAINT saml_relay_states saml_relay_states_pkey pg_restore: dropping CONSTRAINT saml_providers saml_providers_pkey pg_restore: dropping CONSTRAINT saml_providers saml_providers_entity_id_key pg_restore: dropping CONSTRAINT refresh_tokens refresh_tokens_token_unique pg_restore: dropping CONSTRAINT refresh_tokens refresh_tokens_pkey pg_restore: dropping CONSTRAINT one_time_tokens one_time_tokens_pkey pg_restore: dropping CONSTRAINT oauth_consents oauth_consents_user_client_unique pg_restore: dropping CONSTRAINT oauth_consents oauth_consents_pkey pg_restore: dropping CONSTRAINT oauth_clients oauth_clients_pkey pg_restore: dropping CONSTRAINT oauth_client_states oauth_client_states_pkey pg_restore: dropping CONSTRAINT oauth_authorizations oauth_authorizations_pkey pg_restore: dropping CONSTRAINT oauth_authorizations oauth_authorizations_authorization_id_key pg_restore: dropping CONSTRAINT oauth_authorizations oauth_authorizations_authorization_code_key pg_restore: dropping CONSTRAINT mfa_factors mfa_factors_pkey pg_restore: dropping CONSTRAINT mfa_factors mfa_factors_last_challenged_at_key pg_restore: dropping CONSTRAINT mfa_challenges mfa_challenges_pkey pg_restore: dropping CONSTRAINT mfa_amr_claims mfa_amr_claims_session_id_authentication_method_pkey pg_restore: dropping CONSTRAINT instances instances_pkey pg_restore: dropping CONSTRAINT identities identities_provider_id_provider_unique pg_restore: dropping CONSTRAINT identities identities_pkey pg_restore: dropping CONSTRAINT flow_state flow_state_pkey pg_restore: dropping CONSTRAINT audit_log_entries audit_log_entries_pkey pg_restore: dropping CONSTRAINT mfa_amr_claims amr_id_pk pg_restore: dropping DEFAULT hooks id pg_restore: dropping DEFAULT personal_access_tokens id pg_restore: dropping DEFAULT migrations id pg_restore: dropping DEFAULT memoria_agente_kommo id pg_restore: dropping DEFAULT refresh_tokens id pg_restore: dropping TABLE migrations pg_restore: dropping SEQUENCE hooks_id_seq pg_restore: dropping TABLE hooks pg_restore: dropping TABLE vector_indexes pg_restore: dropping TABLE s3_multipart_uploads_parts pg_restore: dropping TABLE s3_multipart_uploads pg_restore: dropping TABLE prefixes pg_restore: dropping TABLE objects pg_restore: dropping TABLE migrations pg_restore: dropping TABLE buckets_vectors pg_restore: dropping TABLE buckets_analytics pg_restore: dropping TABLE buckets pg_restore: dropping SEQUENCE subscription_id_seq pg_restore: dropping TABLE subscription pg_restore: dropping TABLE schema_migrations pg_restore: dropping TABLE messages pg_restore: dropping TABLE users pg_restore: dropping TABLE suggested_segments pg_restore: dropping TABLE subscriptions pg_restore: dropping TABLE sessions pg_restore: dropping TABLE segments_delete_log pg_restore: dropping TABLE segments pg_restore: while PROCESSING TOC: pg_restore: from TOC entry 399; 1259 19666 TABLE segments postgres pg_restore: error: could not execute query: ERROR: cannot drop table public.segments because other objects depend on it DETAIL: constraint companies_segment_segment_id_fkey on table public.companies_segment depends on table public.segments HINT: Use DROP ... CASCADE to drop the dependent objects too. Command was: DROP TABLE IF EXISTS public.segments; pg_restore: dropping TABLE segment_default_text pg_restore: dropping SEQUENCE sdr_ai_agent_conversation_buffer_queue_seq pg_restore: dropping TABLE sdr_ai_agent_conversation_buffer pg_restore: dropping TABLE sdr_ai_agent_conversation pg_restore: dropping TABLE prospecting_queue pg_restore: dropping TABLE portals pg_restore: dropping TABLE plans pg_restore: dropping SEQUENCE personal_access_tokens_id_seq pg_restore: dropping TABLE personal_access_tokens pg_restore: dropping TABLE password_reset_tokens pg_restore: dropping SEQUENCE partners_company_id_seq pg_restore: dropping TABLE partners_company pg_restore: dropping TABLE partners pg_restore: dropping TABLE modalities_alert_group pg_restore: dropping TABLE modalities pg_restore: dropping SEQUENCE migrations_id_seq pg_restore: dropping TABLE migrations pg_restore: dropping SEQUENCE memoria_agente_kommo_id_seq pg_restore: dropping TABLE memoria_agente_kommo pg_restore: dropping TABLE lead_crm pg_restore: dropping TABLE keywords_segment pg_restore: dropping TABLE keywords pg_restore: dropping TABLE effecti_segments pg_restore: dropping TABLE effecti_biddings pg_restore: dropping TABLE effecti_bidding_items pg_restore: dropping SEQUENCE effecti_attachments_id_seq pg_restore: dropping TABLE effecti_attachments pg_restore: dropping TABLE days_of_searching pg_restore: from TOC entry 420; 1259 50153 TABLE days_of_searching postgres pg_restore: error: could not execute query: ERROR: cannot drop table public.days_of_searching because other objects depend on it DETAIL: constraint days_of_searching_alert_groups_days_of_searching_id_foreign on table public.days_of_searching_alert_groups depends on table public.days_of_searching HINT: Use DROP ... CASCADE to drop the dependent objects too. Command was: DROP TABLE IF EXISTS public.days_of_searching; pg_restore: dropping SEQUENCE consultants_id_seq pg_restore: dropping TABLE consultants pg_restore: dropping SEQUENCE companies_biddings_id_seq pg_restore: dropping TABLE companies_biddings pg_restore: dropping TABLE companies pg_restore: from TOC entry 401; 1259 21983 TABLE companies postgres pg_restore: error: could not execute query: ERROR: cannot drop table public.companies because other objects depend on it DETAIL: constraint companies_segment_company_id_fkey on table public.companies_segment depends on table public.companies HINT: Use DROP ... CASCADE to drop the dependent objects too. Command was: DROP TABLE IF EXISTS public.companies; pg_restore: dropping TABLE cnaes pg_restore: dropping TABLE cnae_alert_group pg_restore: dropping TABLE clients pg_restore: dropping TABLE cache_locks pg_restore: dropping TABLE cache pg_restore: dropping SEQUENCE buffer_agente_kommo_id_seq pg_restore: dropping TABLE buffer_agente_kommo pg_restore: dropping TABLE biddings pg_restore: dropping TABLE bidding_partners pg_restore: dropping TABLE bidding_items pg_restore: dropping TABLE bidding_complement pg_restore: dropping TABLE bidding_alert_group pg_restore: dropping TABLE alert_groups pg_restore: from TOC entry 413; 1259 50053 TABLE alert_groups postgres pg_restore: error: could not execute query: ERROR: cannot drop table public.alert_groups because other objects depend on it DETAIL: constraint days_of_searching_alert_group_id_foreign on table public.days_of_searching depends on table public.alert_groups constraint days_of_searching_alert_groups_alert_group_id_foreign on table public.days_of_searching_alert_groups depends on table public.alert_groups HINT: Use DROP ... CASCADE to drop the dependent objects too. Command was: DROP TABLE IF EXISTS public.alert_groups; pg_restore: dropping TABLE alert_group_portal pg_restore: dropping TABLE alert_group_keyword pg_restore: dropping TABLE activity_logs pg_restore: dropping TABLE users pg_restore: dropping TABLE sso_providers pg_restore: dropping TABLE sso_domains pg_restore: dropping TABLE sessions pg_restore: dropping TABLE schema_migrations pg_restore: dropping TABLE saml_relay_states pg_restore: dropping TABLE saml_providers pg_restore: dropping SEQUENCE refresh_tokens_id_seq pg_restore: dropping TABLE refresh_tokens pg_restore: dropping TABLE one_time_tokens pg_restore: dropping TABLE oauth_consents pg_restore: dropping TABLE oauth_clients pg_restore: dropping TABLE oauth_client_states pg_restore: dropping TABLE oauth_authorizations pg_restore: dropping TABLE mfa_factors pg_restore: dropping TABLE mfa_challenges pg_restore: dropping TABLE mfa_amr_claims pg_restore: dropping TABLE instances pg_restore: dropping TABLE identities pg_restore: dropping TABLE flow_state pg_restore: dropping TABLE audit_log_entries pg_restore: dropping FUNCTION http_request() pg_restore: dropping FUNCTION update_updated_at_column() pg_restore: dropping FUNCTION search_v2(text, text, integer, integer, text, text, text, text) pg_restore: dropping FUNCTION search_v1_optimised(text, text, integer, integer, integer, text, text, text) pg_restore: dropping FUNCTION search_legacy_v1(text, text, integer, integer, integer, text, text, text) pg_restore: dropping FUNCTION search(text, text, integer, integer, integer, text, text, text) pg_restore: dropping FUNCTION prefixes_insert_trigger() pg_restore: dropping FUNCTION prefixes_delete_cleanup() pg_restore: dropping FUNCTION operation() pg_restore: dropping FUNCTION objects_update_prefix_trigger() pg_restore: dropping FUNCTION objects_update_level_trigger() pg_restore: dropping FUNCTION objects_update_cleanup() pg_restore: dropping FUNCTION objects_insert_prefix_trigger() pg_restore: dropping FUNCTION objects_delete_cleanup() pg_restore: dropping FUNCTION lock_top_prefixes(text[], text[]) pg_restore: dropping FUNCTION list_objects_with_delimiter(text, text, text, integer, text, text) pg_restore: dropping FUNCTION list_multipart_uploads_with_delimiter(text, text, text, integer, text, text) pg_restore: dropping FUNCTION get_size_by_bucket() pg_restore: dropping FUNCTION get_prefixes(text) pg_restore: dropping FUNCTION get_prefix(text) pg_restore: dropping FUNCTION get_level(text) pg_restore: dropping FUNCTION foldername(text) pg_restore: dropping FUNCTION filename(text) pg_restore: dropping FUNCTION extension(text) pg_restore: dropping FUNCTION enforce_bucket_name_length() pg_restore: dropping FUNCTION delete_prefix_hierarchy_trigger() pg_restore: dropping FUNCTION delete_prefix(text, text) pg_restore: dropping FUNCTION delete_leaf_prefixes(text[], text[]) pg_restore: dropping FUNCTION can_insert_object(text, text, uuid, jsonb) pg_restore: dropping FUNCTION add_prefixes(text, text) pg_restore: dropping FUNCTION topic() pg_restore: dropping FUNCTION to_regrole(text) pg_restore: dropping FUNCTION subscription_check_filters() pg_restore: dropping FUNCTION send(jsonb, text, text, boolean) pg_restore: dropping FUNCTION quote_wal2json(regclass) pg_restore: dropping FUNCTION list_changes(name, name, integer, integer) pg_restore: dropping FUNCTION is_visible_through_filters(realtime.wal_column[], realtime.user_defined_filter[]) pg_restore: dropping FUNCTION check_equality_op(realtime.equality_op, regtype, text, text) pg_restore: dropping FUNCTION cast(text, regtype) pg_restore: dropping FUNCTION build_prepared_statement_sql(text, regclass, realtime.wal_column[]) pg_restore: dropping FUNCTION broadcast_changes(text, text, text, text, text, record, record, text) pg_restore: dropping FUNCTION apply_rls(jsonb, integer) pg_restore: dropping FUNCTION manage_life_cicle_biddings() pg_restore: dropping FUNCTION log_segments_delete() pg_restore: dropping FUNCTION delete_expired_effecti_biddings() pg_restore: dropping FUNCTION get_auth(text) pg_restore: dropping FUNCTION set_graphql_placeholder() pg_restore: dropping FUNCTION pgrst_drop_watch() pg_restore: dropping FUNCTION pgrst_ddl_watch() pg_restore: dropping FUNCTION grant_pg_net_access() pg_restore: dropping FUNCTION grant_pg_graphql_access() pg_restore: dropping FUNCTION grant_pg_cron_access() pg_restore: dropping FUNCTION uid() pg_restore: dropping FUNCTION role() pg_restore: dropping FUNCTION jwt() pg_restore: dropping FUNCTION email() pg_restore: dropping TYPE buckettype pg_restore: dropping TYPE wal_rls pg_restore: dropping TYPE wal_column pg_restore: dropping TYPE user_defined_filter pg_restore: dropping TYPE equality_op pg_restore: dropping TYPE action pg_restore: dropping TYPE sending_status pg_restore: dropping TYPE billing_cycle_enum pg_restore: dropping TYPE bidding_status pg_restore: dropping TYPE one_time_token_type pg_restore: dropping TYPE oauth_response_type pg_restore: dropping TYPE oauth_registration_type pg_restore: dropping TYPE oauth_client_type pg_restore: dropping TYPE oauth_authorization_status pg_restore: dropping TYPE factor_type pg_restore: dropping TYPE factor_status pg_restore: dropping TYPE code_challenge_method pg_restore: dropping TYPE aal_level pg_restore: dropping EXTENSION uuid-ossp pg_restore: dropping EXTENSION supabase_vault pg_restore: dropping EXTENSION pgcrypto pg_restore: dropping EXTENSION pg_stat_statements pg_restore: dropping EXTENSION pg_graphql pg_restore: dropping SCHEMA vault pg_restore: dropping SCHEMA supabase_functions pg_restore: dropping SCHEMA storage pg_restore: dropping SCHEMA realtime pg_restore: dropping SCHEMA pgbouncer pg_restore: dropping EXTENSION pg_net pg_restore: dropping SCHEMA graphql_public pg_restore: dropping SCHEMA graphql pg_restore: dropping SCHEMA extensions pg_restore: dropping EXTENSION pg_cron pg_restore: dropping SCHEMA auth pg_restore: creating SCHEMA "auth" pg_restore: creating EXTENSION "pg_cron" pg_restore: from TOC entry 1; 3079 27626 EXTENSION pg_cron (no owner) pg_restore: error: could not execute query: ERROR: extension "pg_cron" is not available HINT: The extension must first be installed on the system where PostgreSQL is running. Command was: CREATE EXTENSION IF NOT EXISTS pg_cron WITH SCHEMA pg_catalog; pg_restore: creating COMMENT "EXTENSION pg_cron" pg_restore: from TOC entry 4785; 0 0 COMMENT EXTENSION pg_cron pg_restore: error: could not execute query: ERROR: extension "pg_cron" does not exist Command was: COMMENT ON EXTENSION pg_cron IS 'Job scheduler for PostgreSQL'; pg_restore: creating SCHEMA "extensions" pg_restore: creating SCHEMA "graphql" pg_restore: creating SCHEMA "graphql_public" pg_restore: creating EXTENSION "pg_net" pg_restore: from TOC entry 3; 3079 19578 EXTENSION pg_net (no owner) pg_restore: error: could not execute query: ERROR: extension "pg_net" is not available HINT: The extension must first be installed on the system where PostgreSQL is running. Command was: CREATE EXTENSION IF NOT EXISTS pg_net WITH SCHEMA extensions; pg_restore: creating COMMENT "EXTENSION pg_net" pg_restore: from TOC entry 4786; 0 0 COMMENT EXTENSION pg_net pg_restore: error: could not execute query: ERROR: extension "pg_net" does not exist Command was: COMMENT ON EXTENSION pg_net IS 'Async HTTP'; pg_restore: creating SCHEMA "pgbouncer" pg_restore: creating SCHEMA "realtime" pg_restore: creating SCHEMA "storage" pg_restore: creating SCHEMA "supabase_functions" pg_restore: creating SCHEMA "vault" pg_restore: creating EXTENSION "pg_graphql" pg_restore: from TOC entry 8; 3079 16689 EXTENSION pg_graphql (no owner) pg_restore: error: could not execute query: ERROR: extension "pg_graphql" is not available HINT: The extension must first be installed on the system where PostgreSQL is running. Command was: CREATE EXTENSION IF NOT EXISTS pg_graphql WITH SCHEMA graphql; pg_restore: creating COMMENT "EXTENSION pg_graphql" pg_restore: from TOC entry 4787; 0 0 COMMENT EXTENSION pg_graphql pg_restore: error: could not execute query: ERROR: extension "pg_graphql" does not exist Command was: COMMENT ON EXTENSION pg_graphql IS 'pg_graphql: GraphQL support'; pg_restore: creating EXTENSION "pg_stat_statements" pg_restore: creating COMMENT "EXTENSION pg_stat_statements" pg_restore: creating EXTENSION "pgcrypto" pg_restore: creating COMMENT "EXTENSION pgcrypto" pg_restore: creating EXTENSION "supabase_vault" pg_restore: from TOC entry 7; 3079 16654 EXTENSION supabase_vault (no owner) pg_restore: error: could not execute query: ERROR: extension "supabase_vault" is not available HINT: The extension must first be installed on the system where PostgreSQL is running. Command was: CREATE EXTENSION IF NOT EXISTS supabase_vault WITH SCHEMA vault; pg_restore: creating COMMENT "EXTENSION supabase_vault" pg_restore: from TOC entry 4790; 0 0 COMMENT EXTENSION supabase_vault pg_restore: error: could not execute query: ERROR: extension "supabase_vault" does not exist Command was: COMMENT ON EXTENSION supabase_vault IS 'Supabase Vault Extension'; pg_restore: creating EXTENSION "uuid-ossp" pg_restore: creating COMMENT "EXTENSION "uuid-ossp"" pg_restore: creating TYPE "auth.aal_level" pg_restore: creating TYPE "auth.code_challenge_method" pg_restore: creating TYPE "auth.factor_status" pg_restore: creating TYPE "auth.factor_type" pg_restore: creating TYPE "auth.oauth_authorization_status" pg_restore: creating TYPE "auth.oauth_client_type" pg_restore: creating TYPE "auth.oauth_registration_type" pg_restore: creating TYPE "auth.oauth_response_type" pg_restore: creating TYPE "auth.one_time_token_type" pg_restore: creating TYPE "public.bidding_status" pg_restore: creating TYPE "public.billing_cycle_enum" pg_restore: creating TYPE "public.sending_status" pg_restore: creating TYPE "realtime.action" pg_restore: creating TYPE "realtime.equality_op" pg_restore: creating TYPE "realtime.user_defined_filter" pg_restore: creating TYPE "realtime.wal_column" pg_restore: creating TYPE "realtime.wal_rls" pg_restore: creating TYPE "storage.buckettype" pg_restore: creating FUNCTION "auth.email()" pg_restore: creating COMMENT "auth.FUNCTION email()" pg_restore: creating FUNCTION "auth.jwt()" pg_restore: creating FUNCTION "auth.role()" pg_restore: creating COMMENT "auth.FUNCTION role()" pg_restore: creating FUNCTION "auth.uid()" pg_restore: creating COMMENT "auth.FUNCTION uid()" pg_restore: creating FUNCTION "extensions.grant_pg_cron_access()" pg_restore: creating COMMENT "extensions.FUNCTION grant_pg_cron_access()" pg_restore: creating FUNCTION "extensions.grant_pg_graphql_access()" pg_restore: creating COMMENT "extensions.FUNCTION grant_pg_graphql_access()" pg_restore: creating FUNCTION "extensions.grant_pg_net_access()" pg_restore: creating COMMENT "extensions.FUNCTION grant_pg_net_access()" pg_restore: creating FUNCTION "extensions.pgrst_ddl_watch()" pg_restore: creating FUNCTION "extensions.pgrst_drop_watch()" pg_restore: creating FUNCTION "extensions.set_graphql_placeholder()" pg_restore: creating COMMENT "extensions.FUNCTION set_graphql_placeholder()" pg_restore: creating FUNCTION "pgbouncer.get_auth(text)" pg_restore: creating FUNCTION "public.delete_expired_effecti_biddings()" pg_restore: creating FUNCTION "public.log_segments_delete()" pg_restore: creating FUNCTION "public.manage_life_cicle_biddings()" pg_restore: creating FUNCTION "realtime.apply_rls(jsonb, integer)" pg_restore: creating FUNCTION "realtime.broadcast_changes(text, text, text, text, text, record, record, text)" pg_restore: creating FUNCTION "realtime.build_prepared_statement_sql(text, regclass, realtime.wal_column[])" pg_restore: creating FUNCTION "realtime.cast(text, regtype)" pg_restore: creating FUNCTION "realtime.check_equality_op(realtime.equality_op, regtype, text, text)" pg_restore: creating FUNCTION "realtime.is_visible_through_filters(realtime.wal_column[], realtime.user_defined_filter[])" pg_restore: creating FUNCTION "realtime.list_changes(name, name, integer, integer)" pg_restore: creating FUNCTION "realtime.quote_wal2json(regclass)" pg_restore: creating FUNCTION "realtime.send(jsonb, text, text, boolean)" pg_restore: creating FUNCTION "realtime.subscription_check_filters()" pg_restore: creating FUNCTION "realtime.to_regrole(text)" pg_restore: creating FUNCTION "realtime.topic()" pg_restore: creating FUNCTION "storage.add_prefixes(text, text)" pg_restore: creating FUNCTION "storage.can_insert_object(text, text, uuid, jsonb)" pg_restore: creating FUNCTION "storage.delete_leaf_prefixes(text[], text[])" pg_restore: creating FUNCTION "storage.delete_prefix(text, text)" pg_restore: creating FUNCTION "storage.delete_prefix_hierarchy_trigger()" pg_restore: creating FUNCTION "storage.enforce_bucket_name_length()" pg_restore: creating FUNCTION "storage.extension(text)" pg_restore: creating FUNCTION "storage.filename(text)" pg_restore: creating FUNCTION "storage.foldername(text)" pg_restore: creating FUNCTION "storage.get_level(text)" pg_restore: creating FUNCTION "storage.get_prefix(text)" pg_restore: creating FUNCTION "storage.get_prefixes(text)" pg_restore: creating FUNCTION "storage.get_size_by_bucket()" pg_restore: creating FUNCTION "storage.list_multipart_uploads_with_delimiter(text, text, text, integer, text, text)" pg_restore: creating FUNCTION "storage.list_objects_with_delimiter(text, text, text, integer, text, text)" pg_restore: creating FUNCTION "storage.lock_top_prefixes(text[], text[])" pg_restore: creating FUNCTION "storage.objects_delete_cleanup()" pg_restore: creating FUNCTION "storage.objects_insert_prefix_trigger()" pg_restore: creating FUNCTION "storage.objects_update_cleanup()" pg_restore: creating FUNCTION "storage.objects_update_level_trigger()" pg_restore: creating FUNCTION "storage.objects_update_prefix_trigger()" pg_restore: creating FUNCTION "storage.operation()" pg_restore: creating FUNCTION "storage.prefixes_delete_cleanup()" pg_restore: creating FUNCTION "storage.prefixes_insert_trigger()" pg_restore: creating FUNCTION "storage.search(text, text, integer, integer, integer, text, text, text)" pg_restore: creating FUNCTION "storage.search_legacy_v1(text, text, integer, integer, integer, text, text, text)" pg_restore: creating FUNCTION "storage.search_v1_optimised(text, text, integer, integer, integer, text, text, text)" pg_restore: creating FUNCTION "storage.search_v2(text, text, integer, integer, text, text, text, text)" pg_restore: creating FUNCTION "storage.update_updated_at_column()" pg_restore: creating FUNCTION "supabase_functions.http_request()" pg_restore: creating TABLE "auth.audit_log_entries" pg_restore: creating COMMENT "auth.TABLE audit_log_entries" pg_restore: creating TABLE "auth.flow_state" pg_restore: creating COMMENT "auth.TABLE flow_state" pg_restore: creating TABLE "auth.identities" pg_restore: creating COMMENT "auth.TABLE identities" pg_restore: creating COMMENT "auth.COLUMN identities.email" pg_restore: creating TABLE "auth.instances" pg_restore: creating COMMENT "auth.TABLE instances" pg_restore: creating TABLE "auth.mfa_amr_claims" pg_restore: creating COMMENT "auth.TABLE mfa_amr_claims" pg_restore: creating TABLE "auth.mfa_challenges" pg_restore: creating COMMENT "auth.TABLE mfa_challenges" pg_restore: creating TABLE "auth.mfa_factors" pg_restore: creating COMMENT "auth.TABLE mfa_factors" pg_restore: creating COMMENT "auth.COLUMN mfa_factors.last_webauthn_challenge_data" pg_restore: creating TABLE "auth.oauth_authorizations" pg_restore: creating TABLE "auth.oauth_client_states" pg_restore: creating COMMENT "auth.TABLE oauth_client_states" pg_restore: creating TABLE "auth.oauth_clients" pg_restore: creating TABLE "auth.oauth_consents" pg_restore: creating TABLE "auth.one_time_tokens" pg_restore: creating TABLE "auth.refresh_tokens" pg_restore: creating COMMENT "auth.TABLE refresh_tokens" pg_restore: creating SEQUENCE "auth.refresh_tokens_id_seq" pg_restore: creating SEQUENCE OWNED BY "auth.refresh_tokens_id_seq" pg_restore: creating TABLE "auth.saml_providers" pg_restore: creating COMMENT "auth.TABLE saml_providers" pg_restore: creating TABLE "auth.saml_relay_states" pg_restore: creating COMMENT "auth.TABLE saml_relay_states" pg_restore: creating TABLE "auth.schema_migrations" pg_restore: creating COMMENT "auth.TABLE schema_migrations" pg_restore: creating TABLE "auth.sessions" pg_restore: creating COMMENT "auth.TABLE sessions" pg_restore: creating COMMENT "auth.COLUMN sessions.not_after" pg_restore: creating COMMENT "auth.COLUMN sessions.refresh_token_hmac_key" pg_restore: creating COMMENT "auth.COLUMN sessions.refresh_token_counter" pg_restore: creating TABLE "auth.sso_domains" pg_restore: creating COMMENT "auth.TABLE sso_domains" pg_restore: creating TABLE "auth.sso_providers" pg_restore: creating COMMENT "auth.TABLE sso_providers" pg_restore: creating COMMENT "auth.COLUMN sso_providers.resource_id" pg_restore: creating TABLE "auth.users" pg_restore: creating COMMENT "auth.TABLE users" pg_restore: creating COMMENT "auth.COLUMN users.is_sso_user" pg_restore: creating TABLE "public.activity_logs" pg_restore: creating TABLE "public.alert_group_keyword" pg_restore: creating TABLE "public.alert_group_portal" pg_restore: creating TABLE "public.alert_groups" pg_restore: from TOC entry 413; 1259 50053 TABLE alert_groups postgres pg_restore: error: could not execute query: ERROR: relation "alert_groups" already exists Command was: CREATE TABLE public.alert_groups ( id uuid NOT NULL, title character varying(255) NOT NULL, minimum_value numeric(10,2), maximum_value numeric(10,2), client_id uuid, created_at timestamp(0) without time zone, updated_at timestamp(0) without time zone, srp boolean, insert_value boolean, states text, cities text, bid_closing_start date, bid_closing_end date, operator character varying(255) DEFAULT 'AND'::character varying NOT NULL, CONSTRAINT alert_groups_operator_check CHECK (((operator)::text = ANY ((ARRAY['AND'::character varying, 'OR'::character varying])::text[]))) ); pg_restore: creating TABLE "public.bidding_alert_group" pg_restore: creating TABLE "public.bidding_complement" pg_restore: creating TABLE "public.bidding_items" pg_restore: creating TABLE "public.bidding_partners" pg_restore: creating TABLE "public.biddings" pg_restore: creating TABLE "public.buffer_agente_kommo" pg_restore: creating SEQUENCE "public.buffer_agente_kommo_id_seq" pg_restore: creating TABLE "public.cache" pg_restore: creating TABLE "public.cache_locks" pg_restore: creating TABLE "public.clients" pg_restore: creating TABLE "public.cnae_alert_group" pg_restore: creating TABLE "public.cnaes" pg_restore: creating TABLE "public.companies" pg_restore: from TOC entry 401; 1259 21983 TABLE companies postgres pg_restore: error: could not execute query: ERROR: relation "companies" already exists Command was: CREATE TABLE public.companies ( id uuid DEFAULT gen_random_uuid() NOT NULL, created_at timestamp with time zone DEFAULT now() NOT NULL, trading_name character varying, company_name character varying, cnae_code integer, cnae_description text, juridical_type character varying, headquarter_type character varying, creation_date date, address character varying, address_number character varying DEFAULT 'NULL'::character varying, neighborhood character varying, city character varying, district character varying, postal_code character varying, ddd_phone1 smallint, phone1 character varying DEFAULT 'NULL'::character varying, ddd_cell1 smallint, cell1 character varying DEFAULT 'NULL'::character varying, ddd_cell2 smallint, cell2 character varying DEFAULT 'NULL'::character varying, fg_whatsapp_cell1 character varying DEFAULT 'NULL'::character varying, address_complement character varying DEFAULT 'NULL'::character varying, email_1 character varying DEFAULT 'NULL'::character varying, cnpj character varying, juridical_type_id smallint, business_size character varying DEFAULT 'NULL'::character varying, estimated_revenue character varying, employee_count character varying, ddd_phone2 smallint, phone2 character varying DEFAULT 'NULL'::character varying, ddd_phone3 smallint, phone3 character varying DEFAULT 'NULL'::character varying, fg_whatsapp_cel2 character varying DEFAULT 'NULL'::character varying, fg_whatsapp_cell3 character varying DEFAULT 'NULL'::character varying, email_2 character varying DEFAULT 'NULL'::character varying, email_3 character varying DEFAULT 'NULL'::character varying, ddd_cell3 smallint, cell3 character varying DEFAULT 'NULL'::character varying ); pg_restore: creating TABLE "public.companies_biddings" pg_restore: creating SEQUENCE "public.companies_biddings_id_seq" pg_restore: creating TABLE "public.consultants" pg_restore: creating SEQUENCE "public.consultants_id_seq" pg_restore: creating TABLE "public.days_of_searching" pg_restore: from TOC entry 420; 1259 50153 TABLE days_of_searching postgres pg_restore: error: could not execute query: ERROR: relation "days_of_searching" already exists Command was: CREATE TABLE public.days_of_searching ( id uuid DEFAULT gen_random_uuid() NOT NULL, days_of_week character varying(255) NOT NULL, hour time(0) without time zone, alert_group_id uuid NOT NULL, created_at timestamp(0) without time zone, updated_at timestamp(0) without time zone, CONSTRAINT dias_de_busca_dias_da_semana_check CHECK (((days_of_week)::text = ANY ((ARRAY['SEG'::character varying, 'TER'::character varying, 'QUA'::character varying, 'QUI'::character varying, 'SEX'::character varying, 'SAB'::character varying, 'DOM'::character varying])::text[]))) ); pg_restore: creating TABLE "public.effecti_attachments" pg_restore: creating SEQUENCE "public.effecti_attachments_id_seq" pg_restore: creating TABLE "public.effecti_bidding_items" pg_restore: creating TABLE "public.effecti_biddings" pg_restore: creating TABLE "public.effecti_segments" pg_restore: creating TABLE "public.keywords" pg_restore: creating TABLE "public.keywords_segment" pg_restore: creating TABLE "public.lead_crm" pg_restore: creating TABLE "public.memoria_agente_kommo" pg_restore: creating SEQUENCE "public.memoria_agente_kommo_id_seq" pg_restore: creating SEQUENCE OWNED BY "public.memoria_agente_kommo_id_seq" pg_restore: creating TABLE "public.migrations" pg_restore: creating SEQUENCE "public.migrations_id_seq" pg_restore: creating SEQUENCE OWNED BY "public.migrations_id_seq" pg_restore: creating TABLE "public.modalities" pg_restore: creating TABLE "public.modalities_alert_group" pg_restore: creating TABLE "public.partners" pg_restore: creating TABLE "public.partners_company" pg_restore: creating SEQUENCE "public.partners_company_id_seq" pg_restore: creating TABLE "public.password_reset_tokens" pg_restore: creating TABLE "public.personal_access_tokens" pg_restore: creating SEQUENCE "public.personal_access_tokens_id_seq" pg_restore: creating SEQUENCE OWNED BY "public.personal_access_tokens_id_seq" pg_restore: creating TABLE "public.plans" pg_restore: creating TABLE "public.portals" pg_restore: creating TABLE "public.prospecting_queue" pg_restore: creating TABLE "public.sdr_ai_agent_conversation" pg_restore: creating TABLE "public.sdr_ai_agent_conversation_buffer" pg_restore: creating SEQUENCE "public.sdr_ai_agent_conversation_buffer_queue_seq" pg_restore: creating TABLE "public.segment_default_text" pg_restore: creating TABLE "public.segments" pg_restore: from TOC entry 399; 1259 19666 TABLE segments postgres pg_restore: error: could not execute query: ERROR: relation "segments" already exists Command was: CREATE TABLE public.segments ( id uuid DEFAULT gen_random_uuid() NOT NULL, created_at timestamp with time zone DEFAULT now() NOT NULL, title character varying NOT NULL, cnae character varying DEFAULT 'NULL'::character varying NOT NULL ); pg_restore: creating TABLE "public.segments_delete_log" pg_restore: creating TABLE "public.sessions" pg_restore: creating TABLE "public.subscriptions" pg_restore: creating TABLE "public.suggested_segments" pg_restore: creating TABLE "public.users" pg_restore: creating TABLE "realtime.messages" pg_restore: creating TABLE "realtime.schema_migrations" pg_restore: creating TABLE "realtime.subscription" pg_restore: creating SEQUENCE "realtime.subscription_id_seq" pg_restore: creating TABLE "storage.buckets" pg_restore: creating COMMENT "storage.COLUMN buckets.owner" pg_restore: creating TABLE "storage.buckets_analytics" pg_restore: creating TABLE "storage.buckets_vectors" pg_restore: creating TABLE "storage.migrations" pg_restore: creating TABLE "storage.objects" pg_restore: creating COMMENT "storage.COLUMN objects.owner" pg_restore: creating TABLE "storage.prefixes" pg_restore: creating TABLE "storage.s3_multipart_uploads" pg_restore: creating TABLE "storage.s3_multipart_uploads_parts" pg_restore: creating TABLE "storage.vector_indexes" pg_restore: creating TABLE "supabase_functions.hooks" pg_restore: creating COMMENT "supabase_functions.TABLE hooks" pg_restore: creating SEQUENCE "supabase_functions.hooks_id_seq" pg_restore: creating SEQUENCE OWNED BY "supabase_functions.hooks_id_seq" pg_restore: creating TABLE "supabase_functions.migrations" pg_restore: creating DEFAULT "auth.refresh_tokens id" pg_restore: creating DEFAULT "public.memoria_agente_kommo id" pg_restore: creating DEFAULT "public.migrations id" pg_restore: creating DEFAULT "public.personal_access_tokens id" pg_restore: creating DEFAULT "supabase_functions.hooks id" pg_restore: processing data for table "auth.audit_log_entries" pg_restore: processing data for table "auth.flow_state" pg_restore: processing data for table "auth.identities" pg_restore: processing data for table "auth.instances" pg_restore: processing data for table "auth.mfa_amr_claims" pg_restore: processing data for table "auth.mfa_challenges" pg_restore: processing data for table "auth.mfa_factors" pg_restore: processing data for table "auth.oauth_authorizations" pg_restore: processing data for table "auth.oauth_client_states" pg_restore: processing data for table "auth.oauth_clients" pg_restore: processing data for table "auth.oauth_consents" pg_restore: processing data for table "auth.one_time_tokens" pg_restore: processing data for table "auth.refresh_tokens" pg_restore: processing data for table "auth.saml_providers" pg_restore: processing data for table "auth.saml_relay_states" pg_restore: processing data for table "auth.schema_migrations" pg_restore: processing data for table "auth.sessions" pg_restore: processing data for table "auth.sso_domains" pg_restore: processing data for table "auth.sso_providers" pg_restore: processing data for table "auth.users" pg_restore: processing data for table "cron.job" pg_restore: from TOC entry 3943; 0 27629 TABLE DATA job supabase_admin pg_restore: error: could not execute query: ERROR: schema "cron" does not exist Command was: COPY cron.job (jobid, schedule, command, nodename, nodeport, database, username, active, jobname) FROM stdin; pg_restore: processing data for table "cron.job_run_details" pg_restore: from TOC entry 3945; 0 27648 TABLE DATA job_run_details supabase_admin pg_restore: error: could not execute query: ERROR: schema "cron" does not exist Command was: COPY cron.job_run_details (jobid, runid, job_pid, database, username, command, status, return_message, start_time, end_time) FROM stdin; pg_restore: processing data for table "public.activity_logs" pg_restore: processing data for table "public.alert_group_keyword" pg_restore: processing data for table "public.alert_group_portal" pg_restore: processing data for table "public.alert_groups" pg_restore: from TOC entry 4726; 0 50053 TABLE DATA alert_groups postgres pg_restore: error: COPY failed for table "alert_groups": ERROR: null value in column "srp" of relation "alert_groups" violates not-null constraint DETAIL: Failing row contains (019affb9-a413-7369-bc9b-d3c1a19ce7b4, Teste, null, null, null, null, RO,AC,AM,RR,PA,AP,TO,MA,PI,CE,RN,PB,PE,AL,SE,BA,MG,ES,RJ,SP,PR,S..., null, 019aff51-d745-71df-82b1-02d5c6b53fbf, 2025-12-08 20:49:07, 2025-12-08 20:49:07, null, null, OR). CONTEXT: COPY alert_groups, line 1: "019affb9-a413-7369-bc9b-d3c1a19ce7b4 Teste \N \N 019aff51-d745-71df-82b1-02d5c6b53fbf 2025-12-08 20:..." pg_restore: processing data for table "public.bidding_alert_group" pg_restore: processing data for table "public.bidding_complement" pg_restore: processing data for table "public.bidding_items" pg_restore: processing data for table "public.bidding_partners" pg_restore: processing data for table "public.biddings" pg_restore: processing data for table "public.buffer_agente_kommo" pg_restore: processing data for table "public.cache" pg_restore: processing data for table "public.cache_locks" pg_restore: processing data for table "public.clients" pg_restore: processing data for table "public.cnae_alert_group" pg_restore: processing data for table "public.cnaes" pg_restore: processing data for table "public.companies" pg_restore: from TOC entry 4718; 0 21983 TABLE DATA companies postgres pg_restore: error: could not execute query: ERROR: column "fg_whatsapp_cel2" of relation "companies" does not exist Command was: COPY public.companies (id, created_at, trading_name, company_name, cnae_code, cnae_description, juridical_type, headquarter_type, creation_date, address, address_number, neighborhood, city, district, postal_code, ddd_phone1, phone1, ddd_cell1, cell1, ddd_cell2, cell2, fg_whatsapp_cell1, address_complement, email_1, cnpj, juridical_type_id, business_size, estimated_revenue, employee_count, ddd_phone2, phone2, ddd_phone3, phone3, fg_whatsapp_cel2, fg_whatsapp_cell3, email_2, email_3, ddd_cell3, cell3) FROM stdin; pg_restore: processing data for table "public.companies_biddings" pg_restore: processing data for table "public.consultants" pg_restore: processing data for table "public.days_of_searching" pg_restore: from TOC entry 4733; 0 50153 TABLE DATA days_of_searching postgres pg_restore: error: COPY failed for table "days_of_searching": ERROR: insert or update on table "days_of_searching" violates foreign key constraint "days_of_searching_alert_group_id_foreign" DETAIL: Key (alert_group_id)=(019bd622-b006-7082-961d-617ec7d4d5da) is not present in table "alert_groups". pg_restore: processing data for table "public.effecti_attachments" pg_restore: processing data for table "public.effecti_bidding_items" pg_restore: processing data for table "public.effecti_biddings" pg_restore: processing data for table "public.effecti_segments" pg_restore: processing data for table "public.keywords" pg_restore: processing data for table "public.keywords_segment" pg_restore: processing data for table "public.lead_crm" pg_restore: processing data for table "public.memoria_agente_kommo" pg_restore: processing data for table "public.migrations" pg_restore: processing data for table "public.modalities" pg_restore: processing data for table "public.modalities_alert_group" pg_restore: processing data for table "public.partners" pg_restore: processing data for table "public.partners_company" pg_restore: processing data for table "public.password_reset_tokens" pg_restore: processing data for table "public.personal_access_tokens" pg_restore: processing data for table "public.plans" pg_restore: processing data for table "public.portals" pg_restore: processing data for table "public.prospecting_queue" pg_restore: processing data for table "public.sdr_ai_agent_conversation" pg_restore: processing data for table "public.sdr_ai_agent_conversation_buffer" pg_restore: processing data for table "public.segment_default_text" pg_restore: processing data for table "public.segments" pg_restore: from TOC entry 4716; 0 19666 TABLE DATA segments postgres pg_restore: error: COPY failed for table "segments": ERROR: duplicate key value violates unique constraint "segments_pkey" DETAIL: Key (id)=(25705745-c503-4809-b48d-7f9d5854a6e5) already exists. CONTEXT: COPY segments, line 1 pg_restore: processing data for table "public.segments_delete_log" pg_restore: processing data for table "public.sessions" pg_restore: processing data for table "public.subscriptions" pg_restore: processing data for table "public.suggested_segments" pg_restore: processing data for table "public.users" pg_restore: processing data for table "realtime.schema_migrations" pg_restore: processing data for table "realtime.subscription" pg_restore: processing data for table "storage.buckets" pg_restore: processing data for table "storage.buckets_analytics" pg_restore: processing data for table "storage.buckets_vectors" pg_restore: processing data for table "storage.migrations" pg_restore: processing data for table "storage.objects" pg_restore: processing data for table "storage.prefixes" pg_restore: processing data for table "storage.s3_multipart_uploads" pg_restore: processing data for table "storage.s3_multipart_uploads_parts" pg_restore: processing data for table "storage.vector_indexes" pg_restore: processing data for table "supabase_functions.hooks" pg_restore: processing data for table "supabase_functions.migrations" pg_restore: processing data for table "vault.secrets" pg_restore: from TOC entry 3947; 0 16658 TABLE DATA secrets supabase_admin pg_restore: error: could not execute query: ERROR: relation "vault.secrets" does not exist Command was: COPY vault.secrets (id, name, description, secret, key_id, nonce, created_at, updated_at) FROM stdin; pg_restore: executing SEQUENCE SET refresh_tokens_id_seq pg_restore: executing SEQUENCE SET jobid_seq pg_restore: from TOC entry 4831; 0 0 SEQUENCE SET jobid_seq supabase_admin pg_restore: error: could not execute query: ERROR: relation "cron.jobid_seq" does not exist LINE 1: SELECT pg_catalog.setval('cron.jobid_seq', 11, true); ^ Command was: SELECT pg_catalog.setval('cron.jobid_seq', 11, true); pg_restore: executing SEQUENCE SET runid_seq pg_restore: from TOC entry 4832; 0 0 SEQUENCE SET runid_seq supabase_admin pg_restore: error: could not execute query: ERROR: relation "cron.runid_seq" does not exist LINE 1: SELECT pg_catalog.setval('cron.runid_seq', 5062, true); ^ Command was: SELECT pg_catalog.setval('cron.runid_seq', 5062, true); pg_restore: executing SEQUENCE SET buffer_agente_kommo_id_seq pg_restore: executing SEQUENCE SET companies_biddings_id_seq pg_restore: executing SEQUENCE SET consultants_id_seq pg_restore: executing SEQUENCE SET effecti_attachments_id_seq pg_restore: executing SEQUENCE SET memoria_agente_kommo_id_seq pg_restore: executing SEQUENCE SET migrations_id_seq pg_restore: executing SEQUENCE SET partners_company_id_seq pg_restore: executing SEQUENCE SET personal_access_tokens_id_seq pg_restore: executing SEQUENCE SET sdr_ai_agent_conversation_buffer_queue_seq pg_restore: executing SEQUENCE SET subscription_id_seq pg_restore: executing SEQUENCE SET hooks_id_seq pg_restore: creating CONSTRAINT "auth.mfa_amr_claims amr_id_pk" pg_restore: creating CONSTRAINT "auth.audit_log_entries audit_log_entries_pkey" pg_restore: creating CONSTRAINT "auth.flow_state flow_state_pkey" pg_restore: creating CONSTRAINT "auth.identities identities_pkey" pg_restore: creating CONSTRAINT "auth.identities identities_provider_id_provider_unique" pg_restore: creating CONSTRAINT "auth.instances instances_pkey" pg_restore: creating CONSTRAINT "auth.mfa_amr_claims mfa_amr_claims_session_id_authentication_method_pkey" pg_restore: creating CONSTRAINT "auth.mfa_challenges mfa_challenges_pkey" pg_restore: creating CONSTRAINT "auth.mfa_factors mfa_factors_last_challenged_at_key" pg_restore: creating CONSTRAINT "auth.mfa_factors mfa_factors_pkey" pg_restore: creating CONSTRAINT "auth.oauth_authorizations oauth_authorizations_authorization_code_key" pg_restore: creating CONSTRAINT "auth.oauth_authorizations oauth_authorizations_authorization_id_key" pg_restore: creating CONSTRAINT "auth.oauth_authorizations oauth_authorizations_pkey" pg_restore: creating CONSTRAINT "auth.oauth_client_states oauth_client_states_pkey" pg_restore: creating CONSTRAINT "auth.oauth_clients oauth_clients_pkey" pg_restore: creating CONSTRAINT "auth.oauth_consents oauth_consents_pkey" pg_restore: creating CONSTRAINT "auth.oauth_consents oauth_consents_user_client_unique" pg_restore: creating CONSTRAINT "auth.one_time_tokens one_time_tokens_pkey" pg_restore: creating CONSTRAINT "auth.refresh_tokens refresh_tokens_pkey" pg_restore: creating CONSTRAINT "auth.refresh_tokens refresh_tokens_token_unique" pg_restore: creating CONSTRAINT "auth.saml_providers saml_providers_entity_id_key" pg_restore: creating CONSTRAINT "auth.saml_providers saml_providers_pkey" pg_restore: creating CONSTRAINT "auth.saml_relay_states saml_relay_states_pkey" pg_restore: creating CONSTRAINT "auth.schema_migrations schema_migrations_pkey" pg_restore: creating CONSTRAINT "auth.sessions sessions_pkey" pg_restore: creating CONSTRAINT "auth.sso_domains sso_domains_pkey" pg_restore: creating CONSTRAINT "auth.sso_providers sso_providers_pkey" pg_restore: creating CONSTRAINT "auth.users users_phone_key" pg_restore: creating CONSTRAINT "auth.users users_pkey" pg_restore: creating CONSTRAINT "public.activity_logs activity_logs_pkey" pg_restore: creating CONSTRAINT "public.bidding_alert_group bidding_alert_group_pkey" pg_restore: creating CONSTRAINT "public.bidding_complement bidding_complement_bidding_id_key" pg_restore: creating CONSTRAINT "public.bidding_complement bidding_complement_pkey" pg_restore: creating CONSTRAINT "public.bidding_items bidding_items_pkey" pg_restore: creating CONSTRAINT "public.bidding_partners bidding_partners_id_key" pg_restore: creating CONSTRAINT "public.bidding_partners bidding_partners_pkey" pg_restore: creating CONSTRAINT "public.effecti_biddings bidding_pkey" pg_restore: creating CONSTRAINT "public.biddings biddings_control_number_pncp_key" pg_restore: creating CONSTRAINT "public.biddings biddings_duplicate_pkey" pg_restore: creating CONSTRAINT "public.buffer_agente_kommo buffer_agente_kommo_pkey" pg_restore: creating CONSTRAINT "public.cache_locks cache_locks_pkey" pg_restore: creating CONSTRAINT "public.cache cache_pkey" pg_restore: creating CONSTRAINT "public.clients clientes_email_unique" pg_restore: creating CONSTRAINT "public.clients clientes_pkey" pg_restore: creating CONSTRAINT "public.cnae_alert_group cnae_alert_group_pkey" pg_restore: creating CONSTRAINT "public.cnaes cnae_pkey" pg_restore: creating CONSTRAINT "public.companies_biddings companies_biddings_pkey" pg_restore: creating CONSTRAINT "public.consultants consultants_pkey" pg_restore: creating CONSTRAINT "public.segment_default_text default_text_content_key" pg_restore: creating CONSTRAINT "public.segment_default_text default_text_pkey" pg_restore: creating CONSTRAINT "public.days_of_searching dias_de_busca_pkey" pg_restore: from TOC entry 4340; 2606 50163 CONSTRAINT days_of_searching dias_de_busca_pkey postgres pg_restore: error: could not execute query: ERROR: multiple primary keys for table "days_of_searching" are not allowed Command was: ALTER TABLE ONLY public.days_of_searching ADD CONSTRAINT dias_de_busca_pkey PRIMARY KEY (id); pg_restore: creating CONSTRAINT "public.effecti_attachments effecti_attachments_pkey" pg_restore: creating CONSTRAINT "public.effecti_bidding_items effecti_biddings_items_pkey" pg_restore: creating CONSTRAINT "public.effecti_segments effecti_segments_pkey" pg_restore: creating CONSTRAINT "public.companies empresas_cnpj_key" pg_restore: creating CONSTRAINT "public.companies empresas_pkey" pg_restore: from TOC entry 4292; 2606 21992 CONSTRAINT companies empresas_pkey postgres pg_restore: error: could not execute query: ERROR: multiple primary keys for table "companies" are not allowed Command was: ALTER TABLE ONLY public.companies ADD CONSTRAINT empresas_pkey PRIMARY KEY (id); pg_restore: creating CONSTRAINT "public.alert_groups grupo_de_pesquisa_pkey" pg_restore: from TOC entry 4326; 2606 50062 CONSTRAINT alert_groups grupo_de_pesquisa_pkey postgres pg_restore: error: could not execute query: ERROR: multiple primary keys for table "alert_groups" are not allowed Command was: ALTER TABLE ONLY public.alert_groups ADD CONSTRAINT grupo_de_pesquisa_pkey PRIMARY KEY (id); pg_restore: creating CONSTRAINT "public.alert_group_keyword keyword_alert_group_pkey" pg_restore: creating CONSTRAINT "public.lead_crm lead_crm_pkey" pg_restore: creating CONSTRAINT "public.memoria_agente_kommo memoria_agente_kommo_pkey" pg_restore: creating CONSTRAINT "public.migrations migrations_pkey" pg_restore: creating CONSTRAINT "public.modalities modalidades_pkey" pg_restore: creating CONSTRAINT "public.modalities_alert_group modalities_alert_group_pkey" pg_restore: creating CONSTRAINT "public.segments nicho_pkey" pg_restore: from TOC entry 4286; 2606 19677 CONSTRAINT segments nicho_pkey postgres pg_restore: error: could not execute query: ERROR: multiple primary keys for table "segments" are not allowed Command was: ALTER TABLE ONLY public.segments ADD CONSTRAINT nicho_pkey PRIMARY KEY (id); pg_restore: creating CONSTRAINT "public.keywords_segment palavra_chave_nicho_pkey" pg_restore: creating CONSTRAINT "public.keywords palavra_chave_pkey" pg_restore: creating CONSTRAINT "public.partners_company partners_company_pkey" pg_restore: creating CONSTRAINT "public.partners partners_duplicate_cpf_key" pg_restore: creating CONSTRAINT "public.partners partners_duplicate_pkey" pg_restore: creating CONSTRAINT "public.password_reset_tokens password_reset_tokens_pkey" pg_restore: creating CONSTRAINT "public.personal_access_tokens personal_access_tokens_pkey" pg_restore: creating CONSTRAINT "public.personal_access_tokens personal_access_tokens_token_unique" pg_restore: creating CONSTRAINT "public.plans plans_pkey" pg_restore: creating CONSTRAINT "public.plans plans_slug_unique" pg_restore: creating CONSTRAINT "public.portals portais_pkey" pg_restore: creating CONSTRAINT "public.alert_group_portal portals_alert_group_pkey" pg_restore: creating CONSTRAINT "public.prospecting_queue prospecting_queue_cellphone_key" pg_restore: creating CONSTRAINT "public.prospecting_queue prospecting_queue_pkey" pg_restore: creating CONSTRAINT "public.sdr_ai_agent_conversation_buffer sdr_ai_agent_conversation_buffer_pkey" pg_restore: creating CONSTRAINT "public.sdr_ai_agent_conversation sdr_ai_agent_conversation_pkey" pg_restore: creating CONSTRAINT "public.sessions sessions_pkey" pg_restore: creating CONSTRAINT "public.subscriptions subscriptions_pkey" pg_restore: creating CONSTRAINT "public.suggested_segments suggested_segments_pkey" pg_restore: creating CONSTRAINT "public.users users_email_unique" pg_restore: creating CONSTRAINT "public.users users_pkey" pg_restore: creating CONSTRAINT "realtime.messages messages_pkey" pg_restore: creating CONSTRAINT "realtime.subscription pk_subscription" pg_restore: creating CONSTRAINT "realtime.schema_migrations schema_migrations_pkey" pg_restore: creating CONSTRAINT "storage.buckets_analytics buckets_analytics_pkey" pg_restore: creating CONSTRAINT "storage.buckets buckets_pkey" pg_restore: creating CONSTRAINT "storage.buckets_vectors buckets_vectors_pkey" pg_restore: creating CONSTRAINT "storage.migrations migrations_name_key" pg_restore: creating CONSTRAINT "storage.migrations migrations_pkey" pg_restore: creating CONSTRAINT "storage.objects objects_pkey" pg_restore: creating CONSTRAINT "storage.prefixes prefixes_pkey" pg_restore: creating CONSTRAINT "storage.s3_multipart_uploads_parts s3_multipart_uploads_parts_pkey" pg_restore: creating CONSTRAINT "storage.s3_multipart_uploads s3_multipart_uploads_pkey" pg_restore: creating CONSTRAINT "storage.vector_indexes vector_indexes_pkey" pg_restore: creating CONSTRAINT "supabase_functions.hooks hooks_pkey" pg_restore: creating CONSTRAINT "supabase_functions.migrations migrations_pkey" pg_restore: creating INDEX "auth.audit_logs_instance_id_idx" pg_restore: creating INDEX "auth.confirmation_token_idx" pg_restore: creating INDEX "auth.email_change_token_current_idx" pg_restore: creating INDEX "auth.email_change_token_new_idx" pg_restore: creating INDEX "auth.factor_id_created_at_idx" pg_restore: creating INDEX "auth.flow_state_created_at_idx" pg_restore: creating INDEX "auth.identities_email_idx" pg_restore: creating COMMENT "auth.INDEX identities_email_idx" pg_restore: creating INDEX "auth.identities_user_id_idx" pg_restore: creating INDEX "auth.idx_auth_code" pg_restore: creating INDEX "auth.idx_oauth_client_states_created_at" pg_restore: creating INDEX "auth.idx_user_id_auth_method" pg_restore: creating INDEX "auth.mfa_challenge_created_at_idx" pg_restore: creating INDEX "auth.mfa_factors_user_friendly_name_unique" pg_restore: creating INDEX "auth.mfa_factors_user_id_idx" pg_restore: creating INDEX "auth.oauth_auth_pending_exp_idx" pg_restore: creating INDEX "auth.oauth_clients_deleted_at_idx" pg_restore: creating INDEX "auth.oauth_consents_active_client_idx" pg_restore: creating INDEX "auth.oauth_consents_active_user_client_idx" pg_restore: creating INDEX "auth.oauth_consents_user_order_idx" pg_restore: creating INDEX "auth.one_time_tokens_relates_to_hash_idx" pg_restore: creating INDEX "auth.one_time_tokens_token_hash_hash_idx" pg_restore: creating INDEX "auth.one_time_tokens_user_id_token_type_key" pg_restore: creating INDEX "auth.reauthentication_token_idx" pg_restore: creating INDEX "auth.recovery_token_idx" pg_restore: creating INDEX "auth.refresh_tokens_instance_id_idx" pg_restore: creating INDEX "auth.refresh_tokens_instance_id_user_id_idx" pg_restore: creating INDEX "auth.refresh_tokens_parent_idx" pg_restore: creating INDEX "auth.refresh_tokens_session_id_revoked_idx" pg_restore: creating INDEX "auth.refresh_tokens_updated_at_idx" pg_restore: creating INDEX "auth.saml_providers_sso_provider_id_idx" pg_restore: creating INDEX "auth.saml_relay_states_created_at_idx" pg_restore: creating INDEX "auth.saml_relay_states_for_email_idx" pg_restore: creating INDEX "auth.saml_relay_states_sso_provider_id_idx" pg_restore: creating INDEX "auth.sessions_not_after_idx" pg_restore: creating INDEX "auth.sessions_oauth_client_id_idx" pg_restore: creating INDEX "auth.sessions_user_id_idx" pg_restore: creating INDEX "auth.sso_domains_domain_idx" pg_restore: creating INDEX "auth.sso_domains_sso_provider_id_idx" pg_restore: creating INDEX "auth.sso_providers_resource_id_idx" pg_restore: creating INDEX "auth.sso_providers_resource_id_pattern_idx" pg_restore: creating INDEX "auth.unique_phone_factor_per_user" pg_restore: creating INDEX "auth.user_id_created_at_idx" pg_restore: creating INDEX "auth.users_email_partial_key" pg_restore: creating COMMENT "auth.INDEX users_email_partial_key" pg_restore: creating INDEX "auth.users_instance_id_email_idx" pg_restore: creating INDEX "auth.users_instance_id_idx" pg_restore: creating INDEX "auth.users_is_anonymous_idx" pg_restore: creating INDEX "public.activity_logs_user_id_created_at_index" pg_restore: creating INDEX "public.personal_access_tokens_expires_at_index" pg_restore: creating INDEX "public.personal_access_tokens_tokenable_type_tokenable_id_index" pg_restore: creating INDEX "public.sessions_last_activity_index" pg_restore: creating INDEX "public.sessions_user_id_index" pg_restore: creating INDEX "realtime.ix_realtime_subscription_entity" pg_restore: creating INDEX "realtime.messages_inserted_at_topic_index" pg_restore: creating INDEX "realtime.subscription_subscription_id_entity_filters_action_filter_key" pg_restore: creating INDEX "storage.bname" pg_restore: creating INDEX "storage.bucketid_objname" pg_restore: creating INDEX "storage.buckets_analytics_unique_name_idx" pg_restore: creating INDEX "storage.idx_multipart_uploads_list" pg_restore: creating INDEX "storage.idx_name_bucket_level_unique" pg_restore: creating INDEX "storage.idx_objects_bucket_id_name" pg_restore: creating INDEX "storage.idx_objects_lower_name" pg_restore: creating INDEX "storage.idx_prefixes_lower_name" pg_restore: creating INDEX "storage.name_prefix_search" pg_restore: creating INDEX "storage.objects_bucket_id_level_idx" pg_restore: creating INDEX "storage.vector_indexes_name_bucket_id_idx" pg_restore: creating INDEX "supabase_functions.supabase_functions_hooks_h_table_id_h_name_idx" pg_restore: creating INDEX "supabase_functions.supabase_functions_hooks_request_id_idx" pg_restore: creating TRIGGER "public.effecti_biddings delete_expired_effecti_biddings_trigger" pg_restore: creating TRIGGER "public.segments trg_log_segments_delete" pg_restore: creating TRIGGER "realtime.subscription tr_check_filters" pg_restore: creating TRIGGER "storage.buckets enforce_bucket_name_length_trigger" pg_restore: creating TRIGGER "storage.objects objects_delete_delete_prefix" pg_restore: creating TRIGGER "storage.objects objects_insert_create_prefix" pg_restore: creating TRIGGER "storage.objects objects_update_create_prefix" pg_restore: creating TRIGGER "storage.prefixes prefixes_create_hierarchy" pg_restore: creating TRIGGER "storage.prefixes prefixes_delete_hierarchy" pg_restore: creating TRIGGER "storage.objects update_objects_updated_at" pg_restore: creating FK CONSTRAINT "auth.identities identities_user_id_fkey" pg_restore: creating FK CONSTRAINT "auth.mfa_amr_claims mfa_amr_claims_session_id_fkey" pg_restore: creating FK CONSTRAINT "auth.mfa_challenges mfa_challenges_auth_factor_id_fkey" pg_restore: creating FK CONSTRAINT "auth.mfa_factors mfa_factors_user_id_fkey" pg_restore: creating FK CONSTRAINT "auth.oauth_authorizations oauth_authorizations_client_id_fkey" pg_restore: creating FK CONSTRAINT "auth.oauth_authorizations oauth_authorizations_user_id_fkey" pg_restore: creating FK CONSTRAINT "auth.oauth_consents oauth_consents_client_id_fkey" pg_restore: creating FK CONSTRAINT "auth.oauth_consents oauth_consents_user_id_fkey" pg_restore: creating FK CONSTRAINT "auth.one_time_tokens one_time_tokens_user_id_fkey" pg_restore: creating FK CONSTRAINT "auth.refresh_tokens refresh_tokens_session_id_fkey" pg_restore: creating FK CONSTRAINT "auth.saml_providers saml_providers_sso_provider_id_fkey" pg_restore: creating FK CONSTRAINT "auth.saml_relay_states saml_relay_states_flow_state_id_fkey" pg_restore: creating FK CONSTRAINT "auth.saml_relay_states saml_relay_states_sso_provider_id_fkey" pg_restore: creating FK CONSTRAINT "auth.sessions sessions_oauth_client_id_fkey" pg_restore: creating FK CONSTRAINT "auth.sessions sessions_user_id_fkey" pg_restore: creating FK CONSTRAINT "auth.sso_domains sso_domains_sso_provider_id_fkey" pg_restore: creating FK CONSTRAINT "public.activity_logs activity_logs_user_id_foreign" pg_restore: creating FK CONSTRAINT "public.alert_group_keyword alert_group_keyword_alert_group_id_fkey" pg_restore: from TOC entry 4462; 2606 76681 FK CONSTRAINT alert_group_keyword alert_group_keyword_alert_group_id_fkey postgres pg_restore: error: could not execute query: ERROR: insert or update on table "alert_group_keyword" violates foreign key constraint "alert_group_keyword_alert_group_id_fkey" DETAIL: Key (alert_group_id)=(019affb9-a413-7369-bc9b-d3c1a19ce7b4) is not present in table "alert_groups". Command was: ALTER TABLE ONLY public.alert_group_keyword ADD CONSTRAINT alert_group_keyword_alert_group_id_fkey FOREIGN KEY (alert_group_id) REFERENCES public.alert_groups(id) ON DELETE CASCADE; pg_restore: creating FK CONSTRAINT "public.alert_group_portal alert_group_portal_alert_group_id_fkey" pg_restore: from TOC entry 4458; 2606 76676 FK CONSTRAINT alert_group_portal alert_group_portal_alert_group_id_fkey postgres pg_restore: error: could not execute query: ERROR: insert or update on table "alert_group_portal" violates foreign key constraint "alert_group_portal_alert_group_id_fkey" DETAIL: Key (alert_group_id)=(019affb9-a413-7369-bc9b-d3c1a19ce7b4) is not present in table "alert_groups". Command was: ALTER TABLE ONLY public.alert_group_portal ADD CONSTRAINT alert_group_portal_alert_group_id_fkey FOREIGN KEY (alert_group_id) REFERENCES public.alert_groups(id) ON DELETE CASCADE; pg_restore: creating FK CONSTRAINT "public.alert_groups alert_groups_client_id_fkey" pg_restore: creating FK CONSTRAINT "public.bidding_alert_group bidding_alert_group_alert_group_id_fkey" pg_restore: from TOC entry 4464; 2606 76688 FK CONSTRAINT bidding_alert_group bidding_alert_group_alert_group_id_fkey postgres pg_restore: error: could not execute query: ERROR: insert or update on table "bidding_alert_group" violates foreign key constraint "bidding_alert_group_alert_group_id_fkey" DETAIL: Key (alert_group_id)=(019b9351-f524-7376-b274-bc8e79e41f66) is not present in table "alert_groups". Command was: ALTER TABLE ONLY public.bidding_alert_group ADD CONSTRAINT bidding_alert_group_alert_group_id_fkey FOREIGN KEY (alert_group_id) REFERENCES public.alert_groups(id) ON DELETE CASCADE; pg_restore: creating FK CONSTRAINT "public.bidding_items bidding_items_bidding_id_fkey" pg_restore: creating FK CONSTRAINT "public.bidding_partners bidding_partners_bidding_id_fkey" pg_restore: creating FK CONSTRAINT "public.bidding_partners bidding_partners_partner_id_fkey" pg_restore: creating FK CONSTRAINT "public.biddings biddings_segment_id_fkey" pg_restore: creating FK CONSTRAINT "public.cnae_alert_group cnae_grupo_de_pesquisa_cnae_id_foreign" pg_restore: creating FK CONSTRAINT "public.cnae_alert_group cnae_grupo_de_pesquisa_grupo_de_pesquisa_id_foreign" pg_restore: creating FK CONSTRAINT "public.companies_biddings companies_biddings_bidding_id_fkey" pg_restore: creating FK CONSTRAINT "public.companies_biddings companies_biddings_company_id_fkey" pg_restore: creating FK CONSTRAINT "public.days_of_searching dias_de_busca_grupo_de_pesquisa_id_foreign" pg_restore: creating FK CONSTRAINT "public.effecti_attachments effecti_attachments_bidding_id_fkey" pg_restore: creating FK CONSTRAINT "public.effecti_bidding_items effecti_biddings_items_bidding_id_fkey" pg_restore: creating FK CONSTRAINT "public.effecti_biddings effecti_biddings_segment_id_fkey" pg_restore: creating FK CONSTRAINT "public.bidding_complement fk_bidding" pg_restore: creating FK CONSTRAINT "public.lead_crm lead_crm_bidding_id_fkey" pg_restore: creating FK CONSTRAINT "public.modalities_alert_group modalidades_grupo_de_pesquisa_modalidades_id_foreign" pg_restore: creating FK CONSTRAINT "public.modalities_alert_group modalities_alert_group_alert_group_id_fkey" pg_restore: from TOC entry 4461; 2606 76671 FK CONSTRAINT modalities_alert_group modalities_alert_group_alert_group_id_fkey postgres pg_restore: error: could not execute query: ERROR: insert or update on table "modalities_alert_group" violates foreign key constraint "modalities_alert_group_alert_group_id_fkey" DETAIL: Key (alert_group_id)=(019b31d6-a3da-73d6-b92d-ea42eb56b470) is not present in table "alert_groups". Command was: ALTER TABLE ONLY public.modalities_alert_group ADD CONSTRAINT modalities_alert_group_alert_group_id_fkey FOREIGN KEY (alert_group_id) REFERENCES public.alert_groups(id) ON DELETE CASCADE; pg_restore: creating FK CONSTRAINT "public.alert_group_keyword palavra_chave_grupo_de_pesquisa_palavra_chave_id_foreign" pg_restore: creating FK CONSTRAINT "public.keywords_segment palavra_chave_nicho_nicho_id_fkey" pg_restore: creating FK CONSTRAINT "public.keywords_segment palavra_chave_nicho_palavra_chave_id_fkey" pg_restore: creating FK CONSTRAINT "public.partners_company partners_company_company_id_fkey" pg_restore: from TOC entry 4471; 2606 63528 FK CONSTRAINT partners_company partners_company_company_id_fkey postgres pg_restore: error: could not execute query: ERROR: insert or update on table "partners_company" violates foreign key constraint "partners_company_company_id_fkey" DETAIL: Key (company_id)=(d5b95487-bc07-440b-99ac-4a444ca9934d) is not present in table "companies". Command was: ALTER TABLE ONLY public.partners_company ADD CONSTRAINT partners_company_company_id_fkey FOREIGN KEY (company_id) REFERENCES public.companies(id) ON DELETE CASCADE; pg_restore: creating FK CONSTRAINT "public.partners_company partners_company_partner_id_fkey" pg_restore: creating FK CONSTRAINT "public.alert_group_portal portais_grupo_de_pesquisa_portais_id_foreign" pg_restore: creating FK CONSTRAINT "public.prospecting_queue prospecting_queue_bidding_id_fkey" pg_restore: creating FK CONSTRAINT "public.sdr_ai_agent_conversation_buffer sdr_ai_agent_conversation_buffer_bidding_id_fkey" pg_restore: creating FK CONSTRAINT "public.segment_default_text segment_default_text_segment_id_fkey" pg_restore: creating FK CONSTRAINT "public.subscriptions subscriptions_plan_id_foreign" pg_restore: creating FK CONSTRAINT "public.subscriptions subscriptions_user_id_foreign" pg_restore: creating FK CONSTRAINT "public.suggested_segments suggested_segments_created_by_foreign" pg_restore: creating FK CONSTRAINT "public.users users_segment_id_foreign" pg_restore: creating FK CONSTRAINT "storage.objects objects_bucketId_fkey" pg_restore: creating FK CONSTRAINT "storage.prefixes prefixes_bucketId_fkey" pg_restore: creating FK CONSTRAINT "storage.s3_multipart_uploads s3_multipart_uploads_bucket_id_fkey" pg_restore: creating FK CONSTRAINT "storage.s3_multipart_uploads_parts s3_multipart_uploads_parts_bucket_id_fkey" pg_restore: creating FK CONSTRAINT "storage.s3_multipart_uploads_parts s3_multipart_uploads_parts_upload_id_fkey" pg_restore: creating FK CONSTRAINT "storage.vector_indexes vector_indexes_bucket_id_fkey" pg_restore: creating ROW SECURITY "auth.audit_log_entries" pg_restore: creating ROW SECURITY "auth.flow_state" pg_restore: creating ROW SECURITY "auth.identities" pg_restore: creating ROW SECURITY "auth.instances" pg_restore: creating ROW SECURITY "auth.mfa_amr_claims" pg_restore: creating ROW SECURITY "auth.mfa_challenges" pg_restore: creating ROW SECURITY "auth.mfa_factors" pg_restore: creating ROW SECURITY "auth.one_time_tokens" pg_restore: creating ROW SECURITY "auth.refresh_tokens" pg_restore: creating ROW SECURITY "auth.saml_providers" pg_restore: creating ROW SECURITY "auth.saml_relay_states" pg_restore: creating ROW SECURITY "auth.schema_migrations" pg_restore: creating ROW SECURITY "auth.sessions" pg_restore: creating ROW SECURITY "auth.sso_domains" pg_restore: creating ROW SECURITY "auth.sso_providers" pg_restore: creating ROW SECURITY "auth.users" pg_restore: creating ROW SECURITY "public.companies" pg_restore: creating ROW SECURITY "public.companies_biddings" pg_restore: creating ROW SECURITY "public.consultants" pg_restore: creating ROW SECURITY "public.keywords" pg_restore: creating ROW SECURITY "public.keywords_segment" pg_restore: creating ROW SECURITY "public.lead_crm" pg_restore: creating ROW SECURITY "public.partners" pg_restore: creating ROW SECURITY "public.partners_company" pg_restore: creating ROW SECURITY "public.prospecting_queue" pg_restore: creating ROW SECURITY "public.segment_default_text" pg_restore: creating ROW SECURITY "public.segments" pg_restore: creating ROW SECURITY "realtime.messages" pg_restore: creating ROW SECURITY "storage.buckets" pg_restore: creating ROW SECURITY "storage.buckets_analytics" pg_restore: creating ROW SECURITY "storage.buckets_vectors" pg_restore: creating ROW SECURITY "storage.migrations" pg_restore: creating ROW SECURITY "storage.objects" pg_restore: creating ROW SECURITY "storage.prefixes" pg_restore: creating ROW SECURITY "storage.s3_multipart_uploads" pg_restore: creating ROW SECURITY "storage.s3_multipart_uploads_parts" pg_restore: creating ROW SECURITY "storage.vector_indexes" pg_restore: creating PUBLICATION "supabase_realtime" pg_restore: WARNING: "wal_level" is insufficient to publish logical changes HINT: Set "wal_level" to "logical" before creating subscriptions. pg_restore: creating EVENT TRIGGER "issue_graphql_placeholder" pg_restore: creating EVENT TRIGGER "issue_pg_cron_access" pg_restore: creating EVENT TRIGGER "issue_pg_graphql_access" pg_restore: creating EVENT TRIGGER "issue_pg_net_access" pg_restore: creating EVENT TRIGGER "pgrst_ddl_watch" pg_restore: creating EVENT TRIGGER "pgrst_drop_watch" pg_restore: warning: errors ignored on restore: 34