import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres' export async function up({ db, payload, req }: MigrateUpArgs): Promise { await db.execute(sql` CREATE TYPE "public"."_locales" AS ENUM('hu', 'en'); CREATE TYPE "public"."enum_legal_pages_legal_validation_reviews_verdict" AS ENUM('approve', 'approve-with-changes', 'reject'); CREATE TYPE "public"."enum_legal_pages_en_translation_status" AS ENUM('none', 'ai-draft', 'approved'); CREATE TYPE "public"."enum_legal_pages_status" AS ENUM('draft', 'published'); CREATE TYPE "public"."enum__legal_pages_v_version_legal_validation_reviews_verdict" AS ENUM('approve', 'approve-with-changes', 'reject'); CREATE TYPE "public"."enum__legal_pages_v_version_en_translation_status" AS ENUM('none', 'ai-draft', 'approved'); CREATE TYPE "public"."enum__legal_pages_v_version_status" AS ENUM('draft', 'published'); CREATE TYPE "public"."enum__legal_pages_v_published_locale" AS ENUM('hu', 'en'); CREATE TYPE "public"."enum_partners_relationship" AS ENUM('client-reference', 'technology-partner', 'infrastructure', 'supplier', 'technology-used', 'professional-partner'); CREATE TYPE "public"."enum_partners_publication_permission" AS ENUM('granted', 'pending', 'none'); CREATE TYPE "public"."enum_partners_status" AS ENUM('draft', 'published'); CREATE TYPE "public"."enum__partners_v_version_relationship" AS ENUM('client-reference', 'technology-partner', 'infrastructure', 'supplier', 'technology-used', 'professional-partner'); CREATE TYPE "public"."enum__partners_v_version_publication_permission" AS ENUM('granted', 'pending', 'none'); CREATE TYPE "public"."enum__partners_v_version_status" AS ENUM('draft', 'published'); CREATE TYPE "public"."enum__partners_v_published_locale" AS ENUM('hu', 'en'); CREATE TYPE "public"."enum_contact_submissions_status" AS ENUM('new', 'read', 'replied', 'archived'); CREATE TYPE "public"."enum_products_product_type" AS ENUM('hosting', 'managed-service'); CREATE TYPE "public"."enum_products_lifecycle_status" AS ENUM('draft', 'internal', 'publishable', 'active', 'retired'); CREATE TYPE "public"."enum_products_pricing_billing_period" AS ENUM('yearly', 'monthly', 'one-time'); CREATE TYPE "public"."enum_products_en_translation_status" AS ENUM('none', 'ai-draft', 'approved'); CREATE TYPE "public"."enum_products_status" AS ENUM('draft', 'published'); CREATE TYPE "public"."enum__products_v_version_product_type" AS ENUM('hosting', 'managed-service'); CREATE TYPE "public"."enum__products_v_version_pricing_billing_period" AS ENUM('yearly', 'monthly', 'one-time'); CREATE TYPE "public"."enum__products_v_version_en_translation_status" AS ENUM('none', 'ai-draft', 'approved'); CREATE TYPE "public"."enum__products_v_version_status" AS ENUM('draft', 'published'); CREATE TYPE "public"."enum__products_v_published_locale" AS ENUM('hu', 'en'); CREATE TYPE "public"."enum_home_hero_cta_primary_link_type" AS ENUM('page', 'url'); CREATE TYPE "public"."enum_home_hero_cta_primary_page" AS ENUM('home', 'about', 'services', 'hostingPlans', 'contact', 'privacy', 'terms'); CREATE TYPE "public"."enum_home_hero_cta_secondary_link_type" AS ENUM('page', 'url'); CREATE TYPE "public"."enum_home_hero_cta_secondary_page" AS ENUM('home', 'about', 'services', 'hostingPlans', 'contact', 'privacy', 'terms'); CREATE TYPE "public"."enum_home_en_translation_status" AS ENUM('none', 'ai-draft', 'approved'); CREATE TYPE "public"."enum_home_status" AS ENUM('draft', 'published'); CREATE TYPE "public"."enum__home_v_version_hero_cta_primary_link_type" AS ENUM('page', 'url'); CREATE TYPE "public"."enum__home_v_version_hero_cta_primary_page" AS ENUM('home', 'about', 'services', 'hostingPlans', 'contact', 'privacy', 'terms'); CREATE TYPE "public"."enum__home_v_version_hero_cta_secondary_link_type" AS ENUM('page', 'url'); CREATE TYPE "public"."enum__home_v_version_hero_cta_secondary_page" AS ENUM('home', 'about', 'services', 'hostingPlans', 'contact', 'privacy', 'terms'); CREATE TYPE "public"."enum__home_v_version_en_translation_status" AS ENUM('none', 'ai-draft', 'approved'); CREATE TYPE "public"."enum__home_v_version_status" AS ENUM('draft', 'published'); CREATE TYPE "public"."enum__home_v_published_locale" AS ENUM('hu', 'en'); CREATE TYPE "public"."enum_about_en_translation_status" AS ENUM('none', 'ai-draft', 'approved'); CREATE TYPE "public"."enum_about_status" AS ENUM('draft', 'published'); CREATE TYPE "public"."enum__about_v_version_en_translation_status" AS ENUM('none', 'ai-draft', 'approved'); CREATE TYPE "public"."enum__about_v_version_status" AS ENUM('draft', 'published'); CREATE TYPE "public"."enum__about_v_published_locale" AS ENUM('hu', 'en'); CREATE TYPE "public"."enum_services_en_translation_status" AS ENUM('none', 'ai-draft', 'approved'); CREATE TYPE "public"."enum_services_status" AS ENUM('draft', 'published'); CREATE TYPE "public"."enum__services_v_version_en_translation_status" AS ENUM('none', 'ai-draft', 'approved'); CREATE TYPE "public"."enum__services_v_version_status" AS ENUM('draft', 'published'); CREATE TYPE "public"."enum__services_v_published_locale" AS ENUM('hu', 'en'); CREATE TYPE "public"."enum_contact_en_translation_status" AS ENUM('none', 'ai-draft', 'approved'); CREATE TYPE "public"."enum_contact_status" AS ENUM('draft', 'published'); CREATE TYPE "public"."enum__contact_v_version_en_translation_status" AS ENUM('none', 'ai-draft', 'approved'); CREATE TYPE "public"."enum__contact_v_version_status" AS ENUM('draft', 'published'); CREATE TYPE "public"."enum__contact_v_published_locale" AS ENUM('hu', 'en'); CREATE TYPE "public"."enum_common_en_translation_status" AS ENUM('none', 'ai-draft', 'approved'); CREATE TYPE "public"."enum_common_status" AS ENUM('draft', 'published'); CREATE TYPE "public"."enum__common_v_version_en_translation_status" AS ENUM('none', 'ai-draft', 'approved'); CREATE TYPE "public"."enum__common_v_version_status" AS ENUM('draft', 'published'); CREATE TYPE "public"."enum__common_v_published_locale" AS ENUM('hu', 'en'); CREATE TYPE "public"."enum_hosting_plans_en_translation_status" AS ENUM('none', 'ai-draft', 'approved'); CREATE TYPE "public"."enum_hosting_plans_status" AS ENUM('draft', 'published'); CREATE TYPE "public"."enum__hosting_plans_v_version_en_translation_status" AS ENUM('none', 'ai-draft', 'approved'); CREATE TYPE "public"."enum__hosting_plans_v_version_status" AS ENUM('draft', 'published'); CREATE TYPE "public"."enum__hosting_plans_v_published_locale" AS ENUM('hu', 'en'); CREATE TABLE "users_sessions" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "id" varchar PRIMARY KEY NOT NULL, "created_at" timestamp(3) with time zone, "expires_at" timestamp(3) with time zone NOT NULL ); CREATE TABLE "users" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "name" varchar, "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "email" varchar NOT NULL, "reset_password_token" varchar, "reset_password_expiration" timestamp(3) with time zone, "salt" varchar, "hash" varchar, "login_attempts" numeric DEFAULT 0, "lock_until" timestamp(3) with time zone ); CREATE TABLE "legal_pages_sections" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "id" varchar PRIMARY KEY NOT NULL, "anchor" varchar ); CREATE TABLE "legal_pages_sections_locales" ( "title" varchar, "content" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" varchar NOT NULL ); CREATE TABLE "legal_pages_legal_validation_reviews" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "id" varchar PRIMARY KEY NOT NULL, "model" varchar, "reviewed_at" timestamp(3) with time zone, "verdict" "enum_legal_pages_legal_validation_reviews_verdict", "result" varchar, "notes" varchar ); CREATE TABLE "legal_pages" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "slug" varchar, "en_translation_status" "enum_legal_pages_en_translation_status" DEFAULT 'none', "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "_status" "enum_legal_pages_status" DEFAULT 'draft' ); CREATE TABLE "legal_pages_locales" ( "title" varchar, "last_updated" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "_legal_pages_v_version_sections" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "anchor" varchar, "_uuid" varchar ); CREATE TABLE "_legal_pages_v_version_sections_locales" ( "title" varchar, "content" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "_legal_pages_v_version_legal_validation_reviews" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "model" varchar, "reviewed_at" timestamp(3) with time zone, "verdict" "enum__legal_pages_v_version_legal_validation_reviews_verdict", "result" varchar, "notes" varchar, "_uuid" varchar ); CREATE TABLE "_legal_pages_v" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "parent_id" uuid, "version_slug" varchar, "version_en_translation_status" "enum__legal_pages_v_version_en_translation_status" DEFAULT 'none', "version_updated_at" timestamp(3) with time zone, "version_created_at" timestamp(3) with time zone, "version__status" "enum__legal_pages_v_version_status" DEFAULT 'draft', "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "snapshot" boolean, "published_locale" "enum__legal_pages_v_published_locale", "latest" boolean ); CREATE TABLE "_legal_pages_v_locales" ( "version_title" varchar, "version_last_updated" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "media" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "alt" varchar NOT NULL, "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "url" varchar, "thumbnail_u_r_l" varchar, "filename" varchar, "mime_type" varchar, "filesize" numeric, "width" numeric, "height" numeric, "focal_x" numeric, "focal_y" numeric ); CREATE TABLE "partners" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "name" varchar, "url" varchar, "relationship" "enum_partners_relationship", "publication_permission" "enum_partners_publication_permission" DEFAULT 'none', "permission_reference" varchar, "permission_review_date" timestamp(3) with time zone, "logo_id" uuid, "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "_status" "enum_partners_status" DEFAULT 'draft' ); CREATE TABLE "_partners_v" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "parent_id" uuid, "version_name" varchar, "version_url" varchar, "version_relationship" "enum__partners_v_version_relationship", "version_publication_permission" "enum__partners_v_version_publication_permission" DEFAULT 'none', "version_permission_reference" varchar, "version_permission_review_date" timestamp(3) with time zone, "version_logo_id" uuid, "version_updated_at" timestamp(3) with time zone, "version_created_at" timestamp(3) with time zone, "version__status" "enum__partners_v_version_status" DEFAULT 'draft', "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "snapshot" boolean, "published_locale" "enum__partners_v_published_locale", "latest" boolean ); CREATE TABLE "contact_submissions" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "name" varchar NOT NULL, "email" varchar NOT NULL, "subject" varchar NOT NULL, "message" varchar NOT NULL, "gdpr_consent" boolean DEFAULT false NOT NULL, "status" "enum_contact_submissions_status" DEFAULT 'new' NOT NULL, "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL ); CREATE TABLE "products_public_features" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "_locale" "_locales" NOT NULL, "id" varchar PRIMARY KEY NOT NULL, "value" varchar ); CREATE TABLE "products" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "name" varchar, "slug" varchar, "product_type" "enum_products_product_type" DEFAULT 'hosting', "status" "enum_products_lifecycle_status" DEFAULT 'draft', "sort_order" numeric DEFAULT 0, "highlighted" boolean DEFAULT false, "pricing_net_amount" numeric, "pricing_billing_period" "enum_products_pricing_billing_period" DEFAULT 'yearly', "service_definition_storage_gb" numeric, "service_definition_mail_storage_gb" numeric, "service_definition_domains" numeric, "service_definition_domain_aliases" numeric, "service_definition_databases" numeric, "service_definition_mailboxes" numeric, "service_definition_ssl" boolean DEFAULT false, "service_definition_spam_filter" boolean DEFAULT false, "en_translation_status" "enum_products_en_translation_status" DEFAULT 'none', "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "_status" "enum_products_status" DEFAULT 'draft' ); CREATE TABLE "products_locales" ( "public_audience" varchar, "public_short_description" varchar, "public_cta_text" varchar, "public_seo_description" varchar, "service_definition_backup" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "_products_v_version_public_features" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "_locale" "_locales" NOT NULL, "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "value" varchar, "_uuid" varchar ); CREATE TABLE "_products_v" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "parent_id" uuid, "version_name" varchar, "version_slug" varchar, "version_product_type" "enum__products_v_version_product_type" DEFAULT 'hosting', "version_status" "enum_products_lifecycle_status" DEFAULT 'draft', "version_sort_order" numeric DEFAULT 0, "version_highlighted" boolean DEFAULT false, "version_pricing_net_amount" numeric, "version_pricing_billing_period" "enum__products_v_version_pricing_billing_period" DEFAULT 'yearly', "version_service_definition_storage_gb" numeric, "version_service_definition_mail_storage_gb" numeric, "version_service_definition_domains" numeric, "version_service_definition_domain_aliases" numeric, "version_service_definition_databases" numeric, "version_service_definition_mailboxes" numeric, "version_service_definition_ssl" boolean DEFAULT false, "version_service_definition_spam_filter" boolean DEFAULT false, "version_en_translation_status" "enum__products_v_version_en_translation_status" DEFAULT 'none', "version_updated_at" timestamp(3) with time zone, "version_created_at" timestamp(3) with time zone, "version__status" "enum__products_v_version_status" DEFAULT 'draft', "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "snapshot" boolean, "published_locale" "enum__products_v_published_locale", "latest" boolean ); CREATE TABLE "_products_v_locales" ( "version_public_audience" varchar, "version_public_short_description" varchar, "version_public_cta_text" varchar, "version_public_seo_description" varchar, "version_service_definition_backup" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "payload_kv" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "key" varchar NOT NULL, "data" jsonb NOT NULL ); CREATE TABLE "payload_locked_documents" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "global_slug" varchar, "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL ); CREATE TABLE "payload_locked_documents_rels" ( "id" serial PRIMARY KEY NOT NULL, "order" integer, "parent_id" uuid NOT NULL, "path" varchar NOT NULL, "users_id" uuid, "legal_pages_id" uuid, "media_id" uuid, "partners_id" uuid, "contact_submissions_id" uuid, "products_id" uuid ); CREATE TABLE "payload_preferences" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "key" varchar, "value" jsonb, "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL ); CREATE TABLE "payload_preferences_rels" ( "id" serial PRIMARY KEY NOT NULL, "order" integer, "parent_id" uuid NOT NULL, "path" varchar NOT NULL, "users_id" uuid ); CREATE TABLE "payload_migrations" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "name" varchar, "batch" numeric, "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL ); CREATE TABLE "home_hero_trust_bullets" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "_locale" "_locales" NOT NULL, "id" varchar PRIMARY KEY NOT NULL, "value" varchar ); CREATE TABLE "home_about_usps" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "id" varchar PRIMARY KEY NOT NULL, "icon" varchar ); CREATE TABLE "home_about_usps_locales" ( "title" varchar, "description" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" varchar NOT NULL ); CREATE TABLE "home_services_items_features" ( "_order" integer NOT NULL, "_parent_id" varchar NOT NULL, "_locale" "_locales" NOT NULL, "id" varchar PRIMARY KEY NOT NULL, "value" varchar ); CREATE TABLE "home_services_items" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "id" varchar PRIMARY KEY NOT NULL, "icon" varchar ); CREATE TABLE "home_services_items_locales" ( "title" varchar, "description" varchar, "cta_text" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" varchar NOT NULL ); CREATE TABLE "home" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "hero_cta_primary_link_type" "enum_home_hero_cta_primary_link_type" DEFAULT 'page', "hero_cta_primary_page" "enum_home_hero_cta_primary_page", "hero_cta_secondary_link_type" "enum_home_hero_cta_secondary_link_type" DEFAULT 'page', "hero_cta_secondary_page" "enum_home_hero_cta_secondary_page", "en_translation_status" "enum_home_en_translation_status" DEFAULT 'none', "_status" "enum_home_status" DEFAULT 'draft', "updated_at" timestamp(3) with time zone, "created_at" timestamp(3) with time zone ); CREATE TABLE "home_locales" ( "hero_title" varchar, "hero_subtitle" varchar, "hero_description" varchar, "hero_cta_primary_text" varchar, "hero_cta_primary_href" varchar, "hero_cta_secondary_text" varchar, "hero_cta_secondary_href" varchar, "about_title" varchar, "services_title" varchar, "services_subtitle" varchar, "cta_title" varchar, "cta_subtitle" varchar, "cta_button" varchar, "service_features_title" varchar, "references_section_clients_title" varchar, "references_section_clients_subtitle" varchar, "references_section_partners_title" varchar, "references_section_partners_subtitle" varchar, "references_section_relationship_labels_technology_partner" varchar, "references_section_relationship_labels_infrastructure" varchar, "references_section_relationship_labels_supplier" varchar, "references_section_relationship_labels_technology_used" varchar, "references_section_relationship_labels_professional_partner" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "_home_v_version_hero_trust_bullets" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "_locale" "_locales" NOT NULL, "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "value" varchar, "_uuid" varchar ); CREATE TABLE "_home_v_version_about_usps" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "_uuid" varchar, "icon" varchar ); CREATE TABLE "_home_v_version_about_usps_locales" ( "title" varchar, "description" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "_home_v_version_services_items_features" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "_locale" "_locales" NOT NULL, "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "value" varchar, "_uuid" varchar ); CREATE TABLE "_home_v_version_services_items" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "_uuid" varchar, "icon" varchar ); CREATE TABLE "_home_v_version_services_items_locales" ( "title" varchar, "description" varchar, "cta_text" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "_home_v" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "version_hero_cta_primary_link_type" "enum__home_v_version_hero_cta_primary_link_type" DEFAULT 'page', "version_hero_cta_primary_page" "enum__home_v_version_hero_cta_primary_page", "version_hero_cta_secondary_link_type" "enum__home_v_version_hero_cta_secondary_link_type" DEFAULT 'page', "version_hero_cta_secondary_page" "enum__home_v_version_hero_cta_secondary_page", "version_en_translation_status" "enum__home_v_version_en_translation_status" DEFAULT 'none', "version__status" "enum__home_v_version_status" DEFAULT 'draft', "version_updated_at" timestamp(3) with time zone, "version_created_at" timestamp(3) with time zone, "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "snapshot" boolean, "published_locale" "enum__home_v_published_locale", "latest" boolean ); CREATE TABLE "_home_v_locales" ( "version_hero_title" varchar, "version_hero_subtitle" varchar, "version_hero_description" varchar, "version_hero_cta_primary_text" varchar, "version_hero_cta_primary_href" varchar, "version_hero_cta_secondary_text" varchar, "version_hero_cta_secondary_href" varchar, "version_about_title" varchar, "version_services_title" varchar, "version_services_subtitle" varchar, "version_cta_title" varchar, "version_cta_subtitle" varchar, "version_cta_button" varchar, "version_service_features_title" varchar, "version_references_section_clients_title" varchar, "version_references_section_clients_subtitle" varchar, "version_references_section_partners_title" varchar, "version_references_section_partners_subtitle" varchar, "version_references_section_relationship_labels_technology_partner" varchar, "version_references_section_relationship_labels_infrastructure" varchar, "version_references_section_relationship_labels_supplier" varchar, "version_references_section_relationship_labels_technology_used" varchar, "version_references_section_relationship_labels_professional_partner" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "about_story_paragraphs" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "_locale" "_locales" NOT NULL, "id" varchar PRIMARY KEY NOT NULL, "value" varchar ); CREATE TABLE "about_mission_values" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "id" varchar PRIMARY KEY NOT NULL, "icon" varchar ); CREATE TABLE "about_mission_values_locales" ( "title" varchar, "description" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" varchar NOT NULL ); CREATE TABLE "about_team_paragraphs" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "_locale" "_locales" NOT NULL, "id" varchar PRIMARY KEY NOT NULL, "value" varchar ); CREATE TABLE "about" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "en_translation_status" "enum_about_en_translation_status" DEFAULT 'none', "_status" "enum_about_status" DEFAULT 'draft', "updated_at" timestamp(3) with time zone, "created_at" timestamp(3) with time zone ); CREATE TABLE "about_locales" ( "meta_title" varchar, "meta_description" varchar, "meta_og_description" varchar, "hero_title" varchar, "hero_subtitle" varchar, "story_title" varchar, "mission_title" varchar, "mission_subtitle" varchar, "team_title" varchar, "team_subtitle" varchar, "cta_title" varchar, "cta_subtitle" varchar, "cta_button" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "_about_v_version_story_paragraphs" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "_locale" "_locales" NOT NULL, "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "value" varchar, "_uuid" varchar ); CREATE TABLE "_about_v_version_mission_values" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "icon" varchar, "_uuid" varchar ); CREATE TABLE "_about_v_version_mission_values_locales" ( "title" varchar, "description" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "_about_v_version_team_paragraphs" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "_locale" "_locales" NOT NULL, "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "value" varchar, "_uuid" varchar ); CREATE TABLE "_about_v" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "version_en_translation_status" "enum__about_v_version_en_translation_status" DEFAULT 'none', "version__status" "enum__about_v_version_status" DEFAULT 'draft', "version_updated_at" timestamp(3) with time zone, "version_created_at" timestamp(3) with time zone, "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "snapshot" boolean, "published_locale" "enum__about_v_published_locale", "latest" boolean ); CREATE TABLE "_about_v_locales" ( "version_meta_title" varchar, "version_meta_description" varchar, "version_meta_og_description" varchar, "version_hero_title" varchar, "version_hero_subtitle" varchar, "version_story_title" varchar, "version_mission_title" varchar, "version_mission_subtitle" varchar, "version_team_title" varchar, "version_team_subtitle" varchar, "version_cta_title" varchar, "version_cta_subtitle" varchar, "version_cta_button" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "services_details_services_specs_items" ( "_order" integer NOT NULL, "_parent_id" varchar NOT NULL, "_locale" "_locales" NOT NULL, "id" varchar PRIMARY KEY NOT NULL, "value" varchar ); CREATE TABLE "services_details_services" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "id" varchar PRIMARY KEY NOT NULL, "icon" varchar ); CREATE TABLE "services_details_services_locales" ( "title" varchar, "description" varchar, "specs_title" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" varchar NOT NULL ); CREATE TABLE "services_support_channels" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "id" varchar PRIMARY KEY NOT NULL, "icon" varchar ); CREATE TABLE "services_support_channels_locales" ( "title" varchar, "description" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" varchar NOT NULL ); CREATE TABLE "services" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "en_translation_status" "enum_services_en_translation_status" DEFAULT 'none', "_status" "enum_services_status" DEFAULT 'draft', "updated_at" timestamp(3) with time zone, "created_at" timestamp(3) with time zone ); CREATE TABLE "services_locales" ( "meta_title" varchar, "meta_description" varchar, "meta_og_description" varchar, "hero_title" varchar, "hero_subtitle" varchar, "details_title" varchar, "details_subtitle" varchar, "support_title" varchar, "support_subtitle" varchar, "cta_title" varchar, "cta_subtitle" varchar, "cta_primary_button" varchar, "cta_secondary_button" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "_services_v_version_details_services_specs_items" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "_locale" "_locales" NOT NULL, "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "value" varchar, "_uuid" varchar ); CREATE TABLE "_services_v_version_details_services" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "icon" varchar, "_uuid" varchar ); CREATE TABLE "_services_v_version_details_services_locales" ( "title" varchar, "description" varchar, "specs_title" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "_services_v_version_support_channels" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "icon" varchar, "_uuid" varchar ); CREATE TABLE "_services_v_version_support_channels_locales" ( "title" varchar, "description" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "_services_v" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "version_en_translation_status" "enum__services_v_version_en_translation_status" DEFAULT 'none', "version__status" "enum__services_v_version_status" DEFAULT 'draft', "version_updated_at" timestamp(3) with time zone, "version_created_at" timestamp(3) with time zone, "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "snapshot" boolean, "published_locale" "enum__services_v_published_locale", "latest" boolean ); CREATE TABLE "_services_v_locales" ( "version_meta_title" varchar, "version_meta_description" varchar, "version_meta_og_description" varchar, "version_hero_title" varchar, "version_hero_subtitle" varchar, "version_details_title" varchar, "version_details_subtitle" varchar, "version_support_title" varchar, "version_support_subtitle" varchar, "version_cta_title" varchar, "version_cta_subtitle" varchar, "version_cta_primary_button" varchar, "version_cta_secondary_button" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "contact_faq_items" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "id" varchar PRIMARY KEY NOT NULL ); CREATE TABLE "contact_faq_items_locales" ( "question" varchar, "answer" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" varchar NOT NULL ); CREATE TABLE "contact" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "en_translation_status" "enum_contact_en_translation_status" DEFAULT 'none', "_status" "enum_contact_status" DEFAULT 'draft', "updated_at" timestamp(3) with time zone, "created_at" timestamp(3) with time zone ); CREATE TABLE "contact_locales" ( "meta_title" varchar, "meta_description" varchar, "hero_title" varchar, "hero_subtitle" varchar, "form_title" varchar, "form_success_message" varchar, "form_error_message" varchar, "form_fields_name_label" varchar, "form_fields_name_placeholder" varchar, "form_fields_name_error" varchar, "form_fields_email_label" varchar, "form_fields_email_placeholder" varchar, "form_fields_email_error_required" varchar, "form_fields_email_error_invalid" varchar, "form_fields_subject_label" varchar, "form_fields_subject_placeholder" varchar, "form_fields_subject_error" varchar, "form_fields_message_label" varchar, "form_fields_message_placeholder" varchar, "form_fields_message_error_required" varchar, "form_fields_message_error_min_length" varchar, "form_fields_gdpr_label" varchar, "form_fields_gdpr_error" varchar, "form_submit_button" varchar, "form_submitting_button" varchar, "info_title" varchar, "info_email_title" varchar, "info_email_response_time" varchar, "info_company_title" varchar, "info_webmail_title" varchar, "info_webmail_link_text" varchar, "info_webmail_subtitle" varchar, "faq_title" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "_contact_v_version_faq_items" ( "_order" integer NOT NULL, "_parent_id" uuid NOT NULL, "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "_uuid" varchar ); CREATE TABLE "_contact_v_version_faq_items_locales" ( "question" varchar, "answer" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "_contact_v" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "version_en_translation_status" "enum__contact_v_version_en_translation_status" DEFAULT 'none', "version__status" "enum__contact_v_version_status" DEFAULT 'draft', "version_updated_at" timestamp(3) with time zone, "version_created_at" timestamp(3) with time zone, "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "snapshot" boolean, "published_locale" "enum__contact_v_published_locale", "latest" boolean ); CREATE TABLE "_contact_v_locales" ( "version_meta_title" varchar, "version_meta_description" varchar, "version_hero_title" varchar, "version_hero_subtitle" varchar, "version_form_title" varchar, "version_form_success_message" varchar, "version_form_error_message" varchar, "version_form_fields_name_label" varchar, "version_form_fields_name_placeholder" varchar, "version_form_fields_name_error" varchar, "version_form_fields_email_label" varchar, "version_form_fields_email_placeholder" varchar, "version_form_fields_email_error_required" varchar, "version_form_fields_email_error_invalid" varchar, "version_form_fields_subject_label" varchar, "version_form_fields_subject_placeholder" varchar, "version_form_fields_subject_error" varchar, "version_form_fields_message_label" varchar, "version_form_fields_message_placeholder" varchar, "version_form_fields_message_error_required" varchar, "version_form_fields_message_error_min_length" varchar, "version_form_fields_gdpr_label" varchar, "version_form_fields_gdpr_error" varchar, "version_form_submit_button" varchar, "version_form_submitting_button" varchar, "version_info_title" varchar, "version_info_email_title" varchar, "version_info_email_response_time" varchar, "version_info_company_title" varchar, "version_info_webmail_title" varchar, "version_info_webmail_link_text" varchar, "version_info_webmail_subtitle" varchar, "version_faq_title" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "common" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "footer_address" varchar, "en_translation_status" "enum_common_en_translation_status" DEFAULT 'none', "_status" "enum_common_status" DEFAULT 'draft', "updated_at" timestamp(3) with time zone, "created_at" timestamp(3) with time zone ); CREATE TABLE "common_locales" ( "buttons_contact" varchar, "buttons_learn_more" varchar, "buttons_webmail" varchar, "buttons_send_message" varchar, "labels_required" varchar, "labels_features" varchar, "validation_required" varchar, "validation_invalid_email" varchar, "validation_min_length" varchar, "staging_banner" varchar, "footer_copyright" varchar, "a11y_open_menu" varchar, "a11y_close_menu" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "_common_v" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "version_footer_address" varchar, "version_en_translation_status" "enum__common_v_version_en_translation_status" DEFAULT 'none', "version__status" "enum__common_v_version_status" DEFAULT 'draft', "version_updated_at" timestamp(3) with time zone, "version_created_at" timestamp(3) with time zone, "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "snapshot" boolean, "published_locale" "enum__common_v_published_locale", "latest" boolean ); CREATE TABLE "_common_v_locales" ( "version_buttons_contact" varchar, "version_buttons_learn_more" varchar, "version_buttons_webmail" varchar, "version_buttons_send_message" varchar, "version_labels_required" varchar, "version_labels_features" varchar, "version_validation_required" varchar, "version_validation_invalid_email" varchar, "version_validation_min_length" varchar, "version_staging_banner" varchar, "version_footer_copyright" varchar, "version_a11y_open_menu" varchar, "version_a11y_close_menu" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "hosting_plans" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "vat_rate_percent" numeric DEFAULT 27, "en_translation_status" "enum_hosting_plans_en_translation_status" DEFAULT 'none', "_status" "enum_hosting_plans_status" DEFAULT 'draft', "updated_at" timestamp(3) with time zone, "created_at" timestamp(3) with time zone ); CREATE TABLE "hosting_plans_locales" ( "meta_title" varchar, "meta_description" varchar, "hero_title" varchar, "hero_subtitle" varchar, "labels_storage" varchar, "labels_mail_storage" varchar, "labels_domains" varchar, "labels_domain_aliases" varchar, "labels_databases" varchar, "labels_mailboxes" varchar, "labels_backup" varchar, "labels_ssl" varchar, "labels_spam_filter" varchar, "labels_per_year" varchar, "labels_per_month" varchar, "labels_one_time" varchar, "labels_plus_vat" varchar, "labels_gross_price" varchar, "labels_recommended" varchar, "labels_included" varchar, "labels_price_note" varchar, "larger_needs_title" varchar, "larger_needs_text" varchar, "larger_needs_button" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); CREATE TABLE "_hosting_plans_v" ( "id" uuid PRIMARY KEY DEFAULT gen_random_uuid() NOT NULL, "version_vat_rate_percent" numeric DEFAULT 27, "version_en_translation_status" "enum__hosting_plans_v_version_en_translation_status" DEFAULT 'none', "version__status" "enum__hosting_plans_v_version_status" DEFAULT 'draft', "version_updated_at" timestamp(3) with time zone, "version_created_at" timestamp(3) with time zone, "created_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL, "snapshot" boolean, "published_locale" "enum__hosting_plans_v_published_locale", "latest" boolean ); CREATE TABLE "_hosting_plans_v_locales" ( "version_meta_title" varchar, "version_meta_description" varchar, "version_hero_title" varchar, "version_hero_subtitle" varchar, "version_labels_storage" varchar, "version_labels_mail_storage" varchar, "version_labels_domains" varchar, "version_labels_domain_aliases" varchar, "version_labels_databases" varchar, "version_labels_mailboxes" varchar, "version_labels_backup" varchar, "version_labels_ssl" varchar, "version_labels_spam_filter" varchar, "version_labels_per_year" varchar, "version_labels_per_month" varchar, "version_labels_one_time" varchar, "version_labels_plus_vat" varchar, "version_labels_gross_price" varchar, "version_labels_recommended" varchar, "version_labels_included" varchar, "version_labels_price_note" varchar, "version_larger_needs_title" varchar, "version_larger_needs_text" varchar, "version_larger_needs_button" varchar, "id" serial PRIMARY KEY NOT NULL, "_locale" "_locales" NOT NULL, "_parent_id" uuid NOT NULL ); ALTER TABLE "users_sessions" ADD CONSTRAINT "users_sessions_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "legal_pages_sections" ADD CONSTRAINT "legal_pages_sections_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."legal_pages"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "legal_pages_sections_locales" ADD CONSTRAINT "legal_pages_sections_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."legal_pages_sections"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "legal_pages_legal_validation_reviews" ADD CONSTRAINT "legal_pages_legal_validation_reviews_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."legal_pages"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "legal_pages_locales" ADD CONSTRAINT "legal_pages_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."legal_pages"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_legal_pages_v_version_sections" ADD CONSTRAINT "_legal_pages_v_version_sections_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_legal_pages_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_legal_pages_v_version_sections_locales" ADD CONSTRAINT "_legal_pages_v_version_sections_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_legal_pages_v_version_sections"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_legal_pages_v_version_legal_validation_reviews" ADD CONSTRAINT "_legal_pages_v_version_legal_validation_reviews_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_legal_pages_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_legal_pages_v" ADD CONSTRAINT "_legal_pages_v_parent_id_legal_pages_id_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."legal_pages"("id") ON DELETE set null ON UPDATE no action; ALTER TABLE "_legal_pages_v_locales" ADD CONSTRAINT "_legal_pages_v_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_legal_pages_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "partners" ADD CONSTRAINT "partners_logo_id_media_id_fk" FOREIGN KEY ("logo_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action; ALTER TABLE "_partners_v" ADD CONSTRAINT "_partners_v_parent_id_partners_id_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."partners"("id") ON DELETE set null ON UPDATE no action; ALTER TABLE "_partners_v" ADD CONSTRAINT "_partners_v_version_logo_id_media_id_fk" FOREIGN KEY ("version_logo_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action; ALTER TABLE "products_public_features" ADD CONSTRAINT "products_public_features_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."products"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "products_locales" ADD CONSTRAINT "products_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."products"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_products_v_version_public_features" ADD CONSTRAINT "_products_v_version_public_features_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_products_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_products_v" ADD CONSTRAINT "_products_v_parent_id_products_id_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."products"("id") ON DELETE set null ON UPDATE no action; ALTER TABLE "_products_v_locales" ADD CONSTRAINT "_products_v_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_products_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_parent_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."payload_locked_documents"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_users_fk" FOREIGN KEY ("users_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_legal_pages_fk" FOREIGN KEY ("legal_pages_id") REFERENCES "public"."legal_pages"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_media_fk" FOREIGN KEY ("media_id") REFERENCES "public"."media"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_partners_fk" FOREIGN KEY ("partners_id") REFERENCES "public"."partners"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_contact_submissions_fk" FOREIGN KEY ("contact_submissions_id") REFERENCES "public"."contact_submissions"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_products_fk" FOREIGN KEY ("products_id") REFERENCES "public"."products"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "payload_preferences_rels" ADD CONSTRAINT "payload_preferences_rels_parent_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."payload_preferences"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "payload_preferences_rels" ADD CONSTRAINT "payload_preferences_rels_users_fk" FOREIGN KEY ("users_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "home_hero_trust_bullets" ADD CONSTRAINT "home_hero_trust_bullets_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."home"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "home_about_usps" ADD CONSTRAINT "home_about_usps_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."home"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "home_about_usps_locales" ADD CONSTRAINT "home_about_usps_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."home_about_usps"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "home_services_items_features" ADD CONSTRAINT "home_services_items_features_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."home_services_items"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "home_services_items" ADD CONSTRAINT "home_services_items_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."home"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "home_services_items_locales" ADD CONSTRAINT "home_services_items_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."home_services_items"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "home_locales" ADD CONSTRAINT "home_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."home"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_home_v_version_hero_trust_bullets" ADD CONSTRAINT "_home_v_version_hero_trust_bullets_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_home_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_home_v_version_about_usps" ADD CONSTRAINT "_home_v_version_about_usps_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_home_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_home_v_version_about_usps_locales" ADD CONSTRAINT "_home_v_version_about_usps_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_home_v_version_about_usps"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_home_v_version_services_items_features" ADD CONSTRAINT "_home_v_version_services_items_features_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_home_v_version_services_items"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_home_v_version_services_items" ADD CONSTRAINT "_home_v_version_services_items_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_home_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_home_v_version_services_items_locales" ADD CONSTRAINT "_home_v_version_services_items_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_home_v_version_services_items"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_home_v_locales" ADD CONSTRAINT "_home_v_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_home_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "about_story_paragraphs" ADD CONSTRAINT "about_story_paragraphs_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."about"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "about_mission_values" ADD CONSTRAINT "about_mission_values_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."about"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "about_mission_values_locales" ADD CONSTRAINT "about_mission_values_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."about_mission_values"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "about_team_paragraphs" ADD CONSTRAINT "about_team_paragraphs_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."about"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "about_locales" ADD CONSTRAINT "about_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."about"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_about_v_version_story_paragraphs" ADD CONSTRAINT "_about_v_version_story_paragraphs_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_about_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_about_v_version_mission_values" ADD CONSTRAINT "_about_v_version_mission_values_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_about_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_about_v_version_mission_values_locales" ADD CONSTRAINT "_about_v_version_mission_values_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_about_v_version_mission_values"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_about_v_version_team_paragraphs" ADD CONSTRAINT "_about_v_version_team_paragraphs_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_about_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_about_v_locales" ADD CONSTRAINT "_about_v_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_about_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "services_details_services_specs_items" ADD CONSTRAINT "services_details_services_specs_items_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."services_details_services"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "services_details_services" ADD CONSTRAINT "services_details_services_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."services"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "services_details_services_locales" ADD CONSTRAINT "services_details_services_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."services_details_services"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "services_support_channels" ADD CONSTRAINT "services_support_channels_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."services"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "services_support_channels_locales" ADD CONSTRAINT "services_support_channels_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."services_support_channels"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "services_locales" ADD CONSTRAINT "services_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."services"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_services_v_version_details_services_specs_items" ADD CONSTRAINT "_services_v_version_details_services_specs_items_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_services_v_version_details_services"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_services_v_version_details_services" ADD CONSTRAINT "_services_v_version_details_services_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_services_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_services_v_version_details_services_locales" ADD CONSTRAINT "_services_v_version_details_services_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_services_v_version_details_services"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_services_v_version_support_channels" ADD CONSTRAINT "_services_v_version_support_channels_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_services_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_services_v_version_support_channels_locales" ADD CONSTRAINT "_services_v_version_support_channels_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_services_v_version_support_channels"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_services_v_locales" ADD CONSTRAINT "_services_v_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_services_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "contact_faq_items" ADD CONSTRAINT "contact_faq_items_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."contact"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "contact_faq_items_locales" ADD CONSTRAINT "contact_faq_items_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."contact_faq_items"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "contact_locales" ADD CONSTRAINT "contact_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."contact"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_contact_v_version_faq_items" ADD CONSTRAINT "_contact_v_version_faq_items_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_contact_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_contact_v_version_faq_items_locales" ADD CONSTRAINT "_contact_v_version_faq_items_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_contact_v_version_faq_items"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_contact_v_locales" ADD CONSTRAINT "_contact_v_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_contact_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "common_locales" ADD CONSTRAINT "common_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."common"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_common_v_locales" ADD CONSTRAINT "_common_v_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_common_v"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "hosting_plans_locales" ADD CONSTRAINT "hosting_plans_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."hosting_plans"("id") ON DELETE cascade ON UPDATE no action; ALTER TABLE "_hosting_plans_v_locales" ADD CONSTRAINT "_hosting_plans_v_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."_hosting_plans_v"("id") ON DELETE cascade ON UPDATE no action; CREATE INDEX "users_sessions_order_idx" ON "users_sessions" USING btree ("_order"); CREATE INDEX "users_sessions_parent_id_idx" ON "users_sessions" USING btree ("_parent_id"); CREATE INDEX "users_updated_at_idx" ON "users" USING btree ("updated_at"); CREATE INDEX "users_created_at_idx" ON "users" USING btree ("created_at"); CREATE UNIQUE INDEX "users_email_idx" ON "users" USING btree ("email"); CREATE INDEX "legal_pages_sections_order_idx" ON "legal_pages_sections" USING btree ("_order"); CREATE INDEX "legal_pages_sections_parent_id_idx" ON "legal_pages_sections" USING btree ("_parent_id"); CREATE UNIQUE INDEX "legal_pages_sections_locales_locale_parent_id_unique" ON "legal_pages_sections_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "legal_pages_legal_validation_reviews_order_idx" ON "legal_pages_legal_validation_reviews" USING btree ("_order"); CREATE INDEX "legal_pages_legal_validation_reviews_parent_id_idx" ON "legal_pages_legal_validation_reviews" USING btree ("_parent_id"); CREATE UNIQUE INDEX "legal_pages_slug_idx" ON "legal_pages" USING btree ("slug"); CREATE INDEX "legal_pages_updated_at_idx" ON "legal_pages" USING btree ("updated_at"); CREATE INDEX "legal_pages_created_at_idx" ON "legal_pages" USING btree ("created_at"); CREATE INDEX "legal_pages__status_idx" ON "legal_pages" USING btree ("_status"); CREATE UNIQUE INDEX "legal_pages_locales_locale_parent_id_unique" ON "legal_pages_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "_legal_pages_v_version_sections_order_idx" ON "_legal_pages_v_version_sections" USING btree ("_order"); CREATE INDEX "_legal_pages_v_version_sections_parent_id_idx" ON "_legal_pages_v_version_sections" USING btree ("_parent_id"); CREATE UNIQUE INDEX "_legal_pages_v_version_sections_locales_locale_parent_id_uni" ON "_legal_pages_v_version_sections_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "_legal_pages_v_version_legal_validation_reviews_order_idx" ON "_legal_pages_v_version_legal_validation_reviews" USING btree ("_order"); CREATE INDEX "_legal_pages_v_version_legal_validation_reviews_parent_id_idx" ON "_legal_pages_v_version_legal_validation_reviews" USING btree ("_parent_id"); CREATE INDEX "_legal_pages_v_parent_idx" ON "_legal_pages_v" USING btree ("parent_id"); CREATE INDEX "_legal_pages_v_version_version_slug_idx" ON "_legal_pages_v" USING btree ("version_slug"); CREATE INDEX "_legal_pages_v_version_version_updated_at_idx" ON "_legal_pages_v" USING btree ("version_updated_at"); CREATE INDEX "_legal_pages_v_version_version_created_at_idx" ON "_legal_pages_v" USING btree ("version_created_at"); CREATE INDEX "_legal_pages_v_version_version__status_idx" ON "_legal_pages_v" USING btree ("version__status"); CREATE INDEX "_legal_pages_v_created_at_idx" ON "_legal_pages_v" USING btree ("created_at"); CREATE INDEX "_legal_pages_v_updated_at_idx" ON "_legal_pages_v" USING btree ("updated_at"); CREATE INDEX "_legal_pages_v_snapshot_idx" ON "_legal_pages_v" USING btree ("snapshot"); CREATE INDEX "_legal_pages_v_published_locale_idx" ON "_legal_pages_v" USING btree ("published_locale"); CREATE INDEX "_legal_pages_v_latest_idx" ON "_legal_pages_v" USING btree ("latest"); CREATE UNIQUE INDEX "_legal_pages_v_locales_locale_parent_id_unique" ON "_legal_pages_v_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "media_updated_at_idx" ON "media" USING btree ("updated_at"); CREATE INDEX "media_created_at_idx" ON "media" USING btree ("created_at"); CREATE UNIQUE INDEX "media_filename_idx" ON "media" USING btree ("filename"); CREATE INDEX "partners_logo_idx" ON "partners" USING btree ("logo_id"); CREATE INDEX "partners_updated_at_idx" ON "partners" USING btree ("updated_at"); CREATE INDEX "partners_created_at_idx" ON "partners" USING btree ("created_at"); CREATE INDEX "partners__status_idx" ON "partners" USING btree ("_status"); CREATE INDEX "_partners_v_parent_idx" ON "_partners_v" USING btree ("parent_id"); CREATE INDEX "_partners_v_version_version_logo_idx" ON "_partners_v" USING btree ("version_logo_id"); CREATE INDEX "_partners_v_version_version_updated_at_idx" ON "_partners_v" USING btree ("version_updated_at"); CREATE INDEX "_partners_v_version_version_created_at_idx" ON "_partners_v" USING btree ("version_created_at"); CREATE INDEX "_partners_v_version_version__status_idx" ON "_partners_v" USING btree ("version__status"); CREATE INDEX "_partners_v_created_at_idx" ON "_partners_v" USING btree ("created_at"); CREATE INDEX "_partners_v_updated_at_idx" ON "_partners_v" USING btree ("updated_at"); CREATE INDEX "_partners_v_snapshot_idx" ON "_partners_v" USING btree ("snapshot"); CREATE INDEX "_partners_v_published_locale_idx" ON "_partners_v" USING btree ("published_locale"); CREATE INDEX "_partners_v_latest_idx" ON "_partners_v" USING btree ("latest"); CREATE INDEX "contact_submissions_updated_at_idx" ON "contact_submissions" USING btree ("updated_at"); CREATE INDEX "contact_submissions_created_at_idx" ON "contact_submissions" USING btree ("created_at"); CREATE INDEX "products_public_features_order_idx" ON "products_public_features" USING btree ("_order"); CREATE INDEX "products_public_features_parent_id_idx" ON "products_public_features" USING btree ("_parent_id"); CREATE INDEX "products_public_features_locale_idx" ON "products_public_features" USING btree ("_locale"); CREATE UNIQUE INDEX "products_slug_idx" ON "products" USING btree ("slug"); CREATE INDEX "products_updated_at_idx" ON "products" USING btree ("updated_at"); CREATE INDEX "products_created_at_idx" ON "products" USING btree ("created_at"); CREATE INDEX "products__status_idx" ON "products" USING btree ("_status"); CREATE UNIQUE INDEX "products_locales_locale_parent_id_unique" ON "products_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "_products_v_version_public_features_order_idx" ON "_products_v_version_public_features" USING btree ("_order"); CREATE INDEX "_products_v_version_public_features_parent_id_idx" ON "_products_v_version_public_features" USING btree ("_parent_id"); CREATE INDEX "_products_v_version_public_features_locale_idx" ON "_products_v_version_public_features" USING btree ("_locale"); CREATE INDEX "_products_v_parent_idx" ON "_products_v" USING btree ("parent_id"); CREATE INDEX "_products_v_version_version_slug_idx" ON "_products_v" USING btree ("version_slug"); CREATE INDEX "_products_v_version_version_updated_at_idx" ON "_products_v" USING btree ("version_updated_at"); CREATE INDEX "_products_v_version_version_created_at_idx" ON "_products_v" USING btree ("version_created_at"); CREATE INDEX "_products_v_version_version__status_idx" ON "_products_v" USING btree ("version__status"); CREATE INDEX "_products_v_created_at_idx" ON "_products_v" USING btree ("created_at"); CREATE INDEX "_products_v_updated_at_idx" ON "_products_v" USING btree ("updated_at"); CREATE INDEX "_products_v_snapshot_idx" ON "_products_v" USING btree ("snapshot"); CREATE INDEX "_products_v_published_locale_idx" ON "_products_v" USING btree ("published_locale"); CREATE INDEX "_products_v_latest_idx" ON "_products_v" USING btree ("latest"); CREATE UNIQUE INDEX "_products_v_locales_locale_parent_id_unique" ON "_products_v_locales" USING btree ("_locale","_parent_id"); CREATE UNIQUE INDEX "payload_kv_key_idx" ON "payload_kv" USING btree ("key"); CREATE INDEX "payload_locked_documents_global_slug_idx" ON "payload_locked_documents" USING btree ("global_slug"); CREATE INDEX "payload_locked_documents_updated_at_idx" ON "payload_locked_documents" USING btree ("updated_at"); CREATE INDEX "payload_locked_documents_created_at_idx" ON "payload_locked_documents" USING btree ("created_at"); CREATE INDEX "payload_locked_documents_rels_order_idx" ON "payload_locked_documents_rels" USING btree ("order"); CREATE INDEX "payload_locked_documents_rels_parent_idx" ON "payload_locked_documents_rels" USING btree ("parent_id"); CREATE INDEX "payload_locked_documents_rels_path_idx" ON "payload_locked_documents_rels" USING btree ("path"); CREATE INDEX "payload_locked_documents_rels_users_id_idx" ON "payload_locked_documents_rels" USING btree ("users_id"); CREATE INDEX "payload_locked_documents_rels_legal_pages_id_idx" ON "payload_locked_documents_rels" USING btree ("legal_pages_id"); CREATE INDEX "payload_locked_documents_rels_media_id_idx" ON "payload_locked_documents_rels" USING btree ("media_id"); CREATE INDEX "payload_locked_documents_rels_partners_id_idx" ON "payload_locked_documents_rels" USING btree ("partners_id"); CREATE INDEX "payload_locked_documents_rels_contact_submissions_id_idx" ON "payload_locked_documents_rels" USING btree ("contact_submissions_id"); CREATE INDEX "payload_locked_documents_rels_products_id_idx" ON "payload_locked_documents_rels" USING btree ("products_id"); CREATE INDEX "payload_preferences_key_idx" ON "payload_preferences" USING btree ("key"); CREATE INDEX "payload_preferences_updated_at_idx" ON "payload_preferences" USING btree ("updated_at"); CREATE INDEX "payload_preferences_created_at_idx" ON "payload_preferences" USING btree ("created_at"); CREATE INDEX "payload_preferences_rels_order_idx" ON "payload_preferences_rels" USING btree ("order"); CREATE INDEX "payload_preferences_rels_parent_idx" ON "payload_preferences_rels" USING btree ("parent_id"); CREATE INDEX "payload_preferences_rels_path_idx" ON "payload_preferences_rels" USING btree ("path"); CREATE INDEX "payload_preferences_rels_users_id_idx" ON "payload_preferences_rels" USING btree ("users_id"); CREATE INDEX "payload_migrations_updated_at_idx" ON "payload_migrations" USING btree ("updated_at"); CREATE INDEX "payload_migrations_created_at_idx" ON "payload_migrations" USING btree ("created_at"); CREATE INDEX "home_hero_trust_bullets_order_idx" ON "home_hero_trust_bullets" USING btree ("_order"); CREATE INDEX "home_hero_trust_bullets_parent_id_idx" ON "home_hero_trust_bullets" USING btree ("_parent_id"); CREATE INDEX "home_hero_trust_bullets_locale_idx" ON "home_hero_trust_bullets" USING btree ("_locale"); CREATE INDEX "home_about_usps_order_idx" ON "home_about_usps" USING btree ("_order"); CREATE INDEX "home_about_usps_parent_id_idx" ON "home_about_usps" USING btree ("_parent_id"); CREATE UNIQUE INDEX "home_about_usps_locales_locale_parent_id_unique" ON "home_about_usps_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "home_services_items_features_order_idx" ON "home_services_items_features" USING btree ("_order"); CREATE INDEX "home_services_items_features_parent_id_idx" ON "home_services_items_features" USING btree ("_parent_id"); CREATE INDEX "home_services_items_features_locale_idx" ON "home_services_items_features" USING btree ("_locale"); CREATE INDEX "home_services_items_order_idx" ON "home_services_items" USING btree ("_order"); CREATE INDEX "home_services_items_parent_id_idx" ON "home_services_items" USING btree ("_parent_id"); CREATE UNIQUE INDEX "home_services_items_locales_locale_parent_id_unique" ON "home_services_items_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "home__status_idx" ON "home" USING btree ("_status"); CREATE UNIQUE INDEX "home_locales_locale_parent_id_unique" ON "home_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "_home_v_version_hero_trust_bullets_order_idx" ON "_home_v_version_hero_trust_bullets" USING btree ("_order"); CREATE INDEX "_home_v_version_hero_trust_bullets_parent_id_idx" ON "_home_v_version_hero_trust_bullets" USING btree ("_parent_id"); CREATE INDEX "_home_v_version_hero_trust_bullets_locale_idx" ON "_home_v_version_hero_trust_bullets" USING btree ("_locale"); CREATE INDEX "_home_v_version_about_usps_order_idx" ON "_home_v_version_about_usps" USING btree ("_order"); CREATE INDEX "_home_v_version_about_usps_parent_id_idx" ON "_home_v_version_about_usps" USING btree ("_parent_id"); CREATE UNIQUE INDEX "_home_v_version_about_usps_locales_locale_parent_id_unique" ON "_home_v_version_about_usps_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "_home_v_version_services_items_features_order_idx" ON "_home_v_version_services_items_features" USING btree ("_order"); CREATE INDEX "_home_v_version_services_items_features_parent_id_idx" ON "_home_v_version_services_items_features" USING btree ("_parent_id"); CREATE INDEX "_home_v_version_services_items_features_locale_idx" ON "_home_v_version_services_items_features" USING btree ("_locale"); CREATE INDEX "_home_v_version_services_items_order_idx" ON "_home_v_version_services_items" USING btree ("_order"); CREATE INDEX "_home_v_version_services_items_parent_id_idx" ON "_home_v_version_services_items" USING btree ("_parent_id"); CREATE UNIQUE INDEX "_home_v_version_services_items_locales_locale_parent_id_uniq" ON "_home_v_version_services_items_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "_home_v_version_version__status_idx" ON "_home_v" USING btree ("version__status"); CREATE INDEX "_home_v_created_at_idx" ON "_home_v" USING btree ("created_at"); CREATE INDEX "_home_v_updated_at_idx" ON "_home_v" USING btree ("updated_at"); CREATE INDEX "_home_v_snapshot_idx" ON "_home_v" USING btree ("snapshot"); CREATE INDEX "_home_v_published_locale_idx" ON "_home_v" USING btree ("published_locale"); CREATE INDEX "_home_v_latest_idx" ON "_home_v" USING btree ("latest"); CREATE UNIQUE INDEX "_home_v_locales_locale_parent_id_unique" ON "_home_v_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "about_story_paragraphs_order_idx" ON "about_story_paragraphs" USING btree ("_order"); CREATE INDEX "about_story_paragraphs_parent_id_idx" ON "about_story_paragraphs" USING btree ("_parent_id"); CREATE INDEX "about_story_paragraphs_locale_idx" ON "about_story_paragraphs" USING btree ("_locale"); CREATE INDEX "about_mission_values_order_idx" ON "about_mission_values" USING btree ("_order"); CREATE INDEX "about_mission_values_parent_id_idx" ON "about_mission_values" USING btree ("_parent_id"); CREATE UNIQUE INDEX "about_mission_values_locales_locale_parent_id_unique" ON "about_mission_values_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "about_team_paragraphs_order_idx" ON "about_team_paragraphs" USING btree ("_order"); CREATE INDEX "about_team_paragraphs_parent_id_idx" ON "about_team_paragraphs" USING btree ("_parent_id"); CREATE INDEX "about_team_paragraphs_locale_idx" ON "about_team_paragraphs" USING btree ("_locale"); CREATE INDEX "about__status_idx" ON "about" USING btree ("_status"); CREATE UNIQUE INDEX "about_locales_locale_parent_id_unique" ON "about_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "_about_v_version_story_paragraphs_order_idx" ON "_about_v_version_story_paragraphs" USING btree ("_order"); CREATE INDEX "_about_v_version_story_paragraphs_parent_id_idx" ON "_about_v_version_story_paragraphs" USING btree ("_parent_id"); CREATE INDEX "_about_v_version_story_paragraphs_locale_idx" ON "_about_v_version_story_paragraphs" USING btree ("_locale"); CREATE INDEX "_about_v_version_mission_values_order_idx" ON "_about_v_version_mission_values" USING btree ("_order"); CREATE INDEX "_about_v_version_mission_values_parent_id_idx" ON "_about_v_version_mission_values" USING btree ("_parent_id"); CREATE UNIQUE INDEX "_about_v_version_mission_values_locales_locale_parent_id_uni" ON "_about_v_version_mission_values_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "_about_v_version_team_paragraphs_order_idx" ON "_about_v_version_team_paragraphs" USING btree ("_order"); CREATE INDEX "_about_v_version_team_paragraphs_parent_id_idx" ON "_about_v_version_team_paragraphs" USING btree ("_parent_id"); CREATE INDEX "_about_v_version_team_paragraphs_locale_idx" ON "_about_v_version_team_paragraphs" USING btree ("_locale"); CREATE INDEX "_about_v_version_version__status_idx" ON "_about_v" USING btree ("version__status"); CREATE INDEX "_about_v_created_at_idx" ON "_about_v" USING btree ("created_at"); CREATE INDEX "_about_v_updated_at_idx" ON "_about_v" USING btree ("updated_at"); CREATE INDEX "_about_v_snapshot_idx" ON "_about_v" USING btree ("snapshot"); CREATE INDEX "_about_v_published_locale_idx" ON "_about_v" USING btree ("published_locale"); CREATE INDEX "_about_v_latest_idx" ON "_about_v" USING btree ("latest"); CREATE UNIQUE INDEX "_about_v_locales_locale_parent_id_unique" ON "_about_v_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "services_details_services_specs_items_order_idx" ON "services_details_services_specs_items" USING btree ("_order"); CREATE INDEX "services_details_services_specs_items_parent_id_idx" ON "services_details_services_specs_items" USING btree ("_parent_id"); CREATE INDEX "services_details_services_specs_items_locale_idx" ON "services_details_services_specs_items" USING btree ("_locale"); CREATE INDEX "services_details_services_order_idx" ON "services_details_services" USING btree ("_order"); CREATE INDEX "services_details_services_parent_id_idx" ON "services_details_services" USING btree ("_parent_id"); CREATE UNIQUE INDEX "services_details_services_locales_locale_parent_id_unique" ON "services_details_services_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "services_support_channels_order_idx" ON "services_support_channels" USING btree ("_order"); CREATE INDEX "services_support_channels_parent_id_idx" ON "services_support_channels" USING btree ("_parent_id"); CREATE UNIQUE INDEX "services_support_channels_locales_locale_parent_id_unique" ON "services_support_channels_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "services__status_idx" ON "services" USING btree ("_status"); CREATE UNIQUE INDEX "services_locales_locale_parent_id_unique" ON "services_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "_services_v_version_details_services_specs_items_order_idx" ON "_services_v_version_details_services_specs_items" USING btree ("_order"); CREATE INDEX "_services_v_version_details_services_specs_items_parent_id_idx" ON "_services_v_version_details_services_specs_items" USING btree ("_parent_id"); CREATE INDEX "_services_v_version_details_services_specs_items_locale_idx" ON "_services_v_version_details_services_specs_items" USING btree ("_locale"); CREATE INDEX "_services_v_version_details_services_order_idx" ON "_services_v_version_details_services" USING btree ("_order"); CREATE INDEX "_services_v_version_details_services_parent_id_idx" ON "_services_v_version_details_services" USING btree ("_parent_id"); CREATE UNIQUE INDEX "_services_v_version_details_services_locales_locale_parent_i" ON "_services_v_version_details_services_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "_services_v_version_support_channels_order_idx" ON "_services_v_version_support_channels" USING btree ("_order"); CREATE INDEX "_services_v_version_support_channels_parent_id_idx" ON "_services_v_version_support_channels" USING btree ("_parent_id"); CREATE UNIQUE INDEX "_services_v_version_support_channels_locales_locale_parent_i" ON "_services_v_version_support_channels_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "_services_v_version_version__status_idx" ON "_services_v" USING btree ("version__status"); CREATE INDEX "_services_v_created_at_idx" ON "_services_v" USING btree ("created_at"); CREATE INDEX "_services_v_updated_at_idx" ON "_services_v" USING btree ("updated_at"); CREATE INDEX "_services_v_snapshot_idx" ON "_services_v" USING btree ("snapshot"); CREATE INDEX "_services_v_published_locale_idx" ON "_services_v" USING btree ("published_locale"); CREATE INDEX "_services_v_latest_idx" ON "_services_v" USING btree ("latest"); CREATE UNIQUE INDEX "_services_v_locales_locale_parent_id_unique" ON "_services_v_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "contact_faq_items_order_idx" ON "contact_faq_items" USING btree ("_order"); CREATE INDEX "contact_faq_items_parent_id_idx" ON "contact_faq_items" USING btree ("_parent_id"); CREATE UNIQUE INDEX "contact_faq_items_locales_locale_parent_id_unique" ON "contact_faq_items_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "contact__status_idx" ON "contact" USING btree ("_status"); CREATE UNIQUE INDEX "contact_locales_locale_parent_id_unique" ON "contact_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "_contact_v_version_faq_items_order_idx" ON "_contact_v_version_faq_items" USING btree ("_order"); CREATE INDEX "_contact_v_version_faq_items_parent_id_idx" ON "_contact_v_version_faq_items" USING btree ("_parent_id"); CREATE UNIQUE INDEX "_contact_v_version_faq_items_locales_locale_parent_id_unique" ON "_contact_v_version_faq_items_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "_contact_v_version_version__status_idx" ON "_contact_v" USING btree ("version__status"); CREATE INDEX "_contact_v_created_at_idx" ON "_contact_v" USING btree ("created_at"); CREATE INDEX "_contact_v_updated_at_idx" ON "_contact_v" USING btree ("updated_at"); CREATE INDEX "_contact_v_snapshot_idx" ON "_contact_v" USING btree ("snapshot"); CREATE INDEX "_contact_v_published_locale_idx" ON "_contact_v" USING btree ("published_locale"); CREATE INDEX "_contact_v_latest_idx" ON "_contact_v" USING btree ("latest"); CREATE UNIQUE INDEX "_contact_v_locales_locale_parent_id_unique" ON "_contact_v_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "common__status_idx" ON "common" USING btree ("_status"); CREATE UNIQUE INDEX "common_locales_locale_parent_id_unique" ON "common_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "_common_v_version_version__status_idx" ON "_common_v" USING btree ("version__status"); CREATE INDEX "_common_v_created_at_idx" ON "_common_v" USING btree ("created_at"); CREATE INDEX "_common_v_updated_at_idx" ON "_common_v" USING btree ("updated_at"); CREATE INDEX "_common_v_snapshot_idx" ON "_common_v" USING btree ("snapshot"); CREATE INDEX "_common_v_published_locale_idx" ON "_common_v" USING btree ("published_locale"); CREATE INDEX "_common_v_latest_idx" ON "_common_v" USING btree ("latest"); CREATE UNIQUE INDEX "_common_v_locales_locale_parent_id_unique" ON "_common_v_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "hosting_plans__status_idx" ON "hosting_plans" USING btree ("_status"); CREATE UNIQUE INDEX "hosting_plans_locales_locale_parent_id_unique" ON "hosting_plans_locales" USING btree ("_locale","_parent_id"); CREATE INDEX "_hosting_plans_v_version_version__status_idx" ON "_hosting_plans_v" USING btree ("version__status"); CREATE INDEX "_hosting_plans_v_created_at_idx" ON "_hosting_plans_v" USING btree ("created_at"); CREATE INDEX "_hosting_plans_v_updated_at_idx" ON "_hosting_plans_v" USING btree ("updated_at"); CREATE INDEX "_hosting_plans_v_snapshot_idx" ON "_hosting_plans_v" USING btree ("snapshot"); CREATE INDEX "_hosting_plans_v_published_locale_idx" ON "_hosting_plans_v" USING btree ("published_locale"); CREATE INDEX "_hosting_plans_v_latest_idx" ON "_hosting_plans_v" USING btree ("latest"); CREATE UNIQUE INDEX "_hosting_plans_v_locales_locale_parent_id_unique" ON "_hosting_plans_v_locales" USING btree ("_locale","_parent_id");`) } export async function down({ db, payload, req }: MigrateDownArgs): Promise { await db.execute(sql` DROP TABLE "users_sessions" CASCADE; DROP TABLE "users" CASCADE; DROP TABLE "legal_pages_sections" CASCADE; DROP TABLE "legal_pages_sections_locales" CASCADE; DROP TABLE "legal_pages_legal_validation_reviews" CASCADE; DROP TABLE "legal_pages" CASCADE; DROP TABLE "legal_pages_locales" CASCADE; DROP TABLE "_legal_pages_v_version_sections" CASCADE; DROP TABLE "_legal_pages_v_version_sections_locales" CASCADE; DROP TABLE "_legal_pages_v_version_legal_validation_reviews" CASCADE; DROP TABLE "_legal_pages_v" CASCADE; DROP TABLE "_legal_pages_v_locales" CASCADE; DROP TABLE "media" CASCADE; DROP TABLE "partners" CASCADE; DROP TABLE "_partners_v" CASCADE; DROP TABLE "contact_submissions" CASCADE; DROP TABLE "products_public_features" CASCADE; DROP TABLE "products" CASCADE; DROP TABLE "products_locales" CASCADE; DROP TABLE "_products_v_version_public_features" CASCADE; DROP TABLE "_products_v" CASCADE; DROP TABLE "_products_v_locales" CASCADE; DROP TABLE "payload_kv" CASCADE; DROP TABLE "payload_locked_documents" CASCADE; DROP TABLE "payload_locked_documents_rels" CASCADE; DROP TABLE "payload_preferences" CASCADE; DROP TABLE "payload_preferences_rels" CASCADE; DROP TABLE "payload_migrations" CASCADE; DROP TABLE "home_hero_trust_bullets" CASCADE; DROP TABLE "home_about_usps" CASCADE; DROP TABLE "home_about_usps_locales" CASCADE; DROP TABLE "home_services_items_features" CASCADE; DROP TABLE "home_services_items" CASCADE; DROP TABLE "home_services_items_locales" CASCADE; DROP TABLE "home" CASCADE; DROP TABLE "home_locales" CASCADE; DROP TABLE "_home_v_version_hero_trust_bullets" CASCADE; DROP TABLE "_home_v_version_about_usps" CASCADE; DROP TABLE "_home_v_version_about_usps_locales" CASCADE; DROP TABLE "_home_v_version_services_items_features" CASCADE; DROP TABLE "_home_v_version_services_items" CASCADE; DROP TABLE "_home_v_version_services_items_locales" CASCADE; DROP TABLE "_home_v" CASCADE; DROP TABLE "_home_v_locales" CASCADE; DROP TABLE "about_story_paragraphs" CASCADE; DROP TABLE "about_mission_values" CASCADE; DROP TABLE "about_mission_values_locales" CASCADE; DROP TABLE "about_team_paragraphs" CASCADE; DROP TABLE "about" CASCADE; DROP TABLE "about_locales" CASCADE; DROP TABLE "_about_v_version_story_paragraphs" CASCADE; DROP TABLE "_about_v_version_mission_values" CASCADE; DROP TABLE "_about_v_version_mission_values_locales" CASCADE; DROP TABLE "_about_v_version_team_paragraphs" CASCADE; DROP TABLE "_about_v" CASCADE; DROP TABLE "_about_v_locales" CASCADE; DROP TABLE "services_details_services_specs_items" CASCADE; DROP TABLE "services_details_services" CASCADE; DROP TABLE "services_details_services_locales" CASCADE; DROP TABLE "services_support_channels" CASCADE; DROP TABLE "services_support_channels_locales" CASCADE; DROP TABLE "services" CASCADE; DROP TABLE "services_locales" CASCADE; DROP TABLE "_services_v_version_details_services_specs_items" CASCADE; DROP TABLE "_services_v_version_details_services" CASCADE; DROP TABLE "_services_v_version_details_services_locales" CASCADE; DROP TABLE "_services_v_version_support_channels" CASCADE; DROP TABLE "_services_v_version_support_channels_locales" CASCADE; DROP TABLE "_services_v" CASCADE; DROP TABLE "_services_v_locales" CASCADE; DROP TABLE "contact_faq_items" CASCADE; DROP TABLE "contact_faq_items_locales" CASCADE; DROP TABLE "contact" CASCADE; DROP TABLE "contact_locales" CASCADE; DROP TABLE "_contact_v_version_faq_items" CASCADE; DROP TABLE "_contact_v_version_faq_items_locales" CASCADE; DROP TABLE "_contact_v" CASCADE; DROP TABLE "_contact_v_locales" CASCADE; DROP TABLE "common" CASCADE; DROP TABLE "common_locales" CASCADE; DROP TABLE "_common_v" CASCADE; DROP TABLE "_common_v_locales" CASCADE; DROP TABLE "hosting_plans" CASCADE; DROP TABLE "hosting_plans_locales" CASCADE; DROP TABLE "_hosting_plans_v" CASCADE; DROP TABLE "_hosting_plans_v_locales" CASCADE; DROP TYPE "public"."_locales"; DROP TYPE "public"."enum_legal_pages_legal_validation_reviews_verdict"; DROP TYPE "public"."enum_legal_pages_en_translation_status"; DROP TYPE "public"."enum_legal_pages_status"; DROP TYPE "public"."enum__legal_pages_v_version_legal_validation_reviews_verdict"; DROP TYPE "public"."enum__legal_pages_v_version_en_translation_status"; DROP TYPE "public"."enum__legal_pages_v_version_status"; DROP TYPE "public"."enum__legal_pages_v_published_locale"; DROP TYPE "public"."enum_partners_relationship"; DROP TYPE "public"."enum_partners_publication_permission"; DROP TYPE "public"."enum_partners_status"; DROP TYPE "public"."enum__partners_v_version_relationship"; DROP TYPE "public"."enum__partners_v_version_publication_permission"; DROP TYPE "public"."enum__partners_v_version_status"; DROP TYPE "public"."enum__partners_v_published_locale"; DROP TYPE "public"."enum_contact_submissions_status"; DROP TYPE "public"."enum_products_product_type"; DROP TYPE "public"."enum_products_lifecycle_status"; DROP TYPE "public"."enum_products_pricing_billing_period"; DROP TYPE "public"."enum_products_en_translation_status"; DROP TYPE "public"."enum_products_status"; DROP TYPE "public"."enum__products_v_version_product_type"; DROP TYPE "public"."enum__products_v_version_pricing_billing_period"; DROP TYPE "public"."enum__products_v_version_en_translation_status"; DROP TYPE "public"."enum__products_v_version_status"; DROP TYPE "public"."enum__products_v_published_locale"; DROP TYPE "public"."enum_home_hero_cta_primary_link_type"; DROP TYPE "public"."enum_home_hero_cta_primary_page"; DROP TYPE "public"."enum_home_hero_cta_secondary_link_type"; DROP TYPE "public"."enum_home_hero_cta_secondary_page"; DROP TYPE "public"."enum_home_en_translation_status"; DROP TYPE "public"."enum_home_status"; DROP TYPE "public"."enum__home_v_version_hero_cta_primary_link_type"; DROP TYPE "public"."enum__home_v_version_hero_cta_primary_page"; DROP TYPE "public"."enum__home_v_version_hero_cta_secondary_link_type"; DROP TYPE "public"."enum__home_v_version_hero_cta_secondary_page"; DROP TYPE "public"."enum__home_v_version_en_translation_status"; DROP TYPE "public"."enum__home_v_version_status"; DROP TYPE "public"."enum__home_v_published_locale"; DROP TYPE "public"."enum_about_en_translation_status"; DROP TYPE "public"."enum_about_status"; DROP TYPE "public"."enum__about_v_version_en_translation_status"; DROP TYPE "public"."enum__about_v_version_status"; DROP TYPE "public"."enum__about_v_published_locale"; DROP TYPE "public"."enum_services_en_translation_status"; DROP TYPE "public"."enum_services_status"; DROP TYPE "public"."enum__services_v_version_en_translation_status"; DROP TYPE "public"."enum__services_v_version_status"; DROP TYPE "public"."enum__services_v_published_locale"; DROP TYPE "public"."enum_contact_en_translation_status"; DROP TYPE "public"."enum_contact_status"; DROP TYPE "public"."enum__contact_v_version_en_translation_status"; DROP TYPE "public"."enum__contact_v_version_status"; DROP TYPE "public"."enum__contact_v_published_locale"; DROP TYPE "public"."enum_common_en_translation_status"; DROP TYPE "public"."enum_common_status"; DROP TYPE "public"."enum__common_v_version_en_translation_status"; DROP TYPE "public"."enum__common_v_version_status"; DROP TYPE "public"."enum__common_v_published_locale"; DROP TYPE "public"."enum_hosting_plans_en_translation_status"; DROP TYPE "public"."enum_hosting_plans_status"; DROP TYPE "public"."enum__hosting_plans_v_version_en_translation_status"; DROP TYPE "public"."enum__hosting_plans_v_version_status"; DROP TYPE "public"."enum__hosting_plans_v_published_locale";`) }