cms.c2sgmbh/src/migrations/20251130_213501_initial_with_localization.ts
Martin Porwoll eac43f9846 chore: update migrations for localization schema
- Remove old migrations (pre-localization)
- Add 20251130_213501_initial_with_localization migration
- Update migrations index
- Remove unused graphql-playground route

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 08:20:06 +00:00

1727 lines
106 KiB
TypeScript

import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-postgres'
export async function up({ db, payload, req }: MigrateUpArgs): Promise<void> {
await db.execute(sql`
CREATE TYPE "public"."_locales" AS ENUM('de', 'en');
CREATE TYPE "public"."enum_pages_blocks_hero_block_alignment" AS ENUM('left', 'center', 'right');
CREATE TYPE "public"."enum_pages_blocks_hero_block_cta_style" AS ENUM('primary', 'secondary', 'outline');
CREATE TYPE "public"."enum_pages_blocks_text_block_width" AS ENUM('narrow', 'medium', 'full');
CREATE TYPE "public"."enum_pages_blocks_image_text_block_image_position" AS ENUM('left', 'right');
CREATE TYPE "public"."enum_pages_blocks_card_grid_block_columns" AS ENUM('2', '3', '4');
CREATE TYPE "public"."enum_pages_blocks_quote_block_style" AS ENUM('simple', 'highlighted', 'with-image');
CREATE TYPE "public"."enum_pages_blocks_cta_block_buttons_style" AS ENUM('primary', 'secondary', 'outline');
CREATE TYPE "public"."enum_pages_blocks_cta_block_background_color" AS ENUM('dark', 'light', 'accent');
CREATE TYPE "public"."enum_pages_blocks_timeline_block_layout" AS ENUM('vertical', 'alternating', 'horizontal');
CREATE TYPE "public"."enum_pages_blocks_timeline_block_marker_style" AS ENUM('dot', 'number', 'icon', 'date');
CREATE TYPE "public"."enum_pages_blocks_timeline_block_background_color" AS ENUM('white', 'light', 'dark');
CREATE TYPE "public"."enum_pages_blocks_divider_block_style" AS ENUM('line', 'space', 'dots');
CREATE TYPE "public"."enum_pages_blocks_divider_block_spacing" AS ENUM('small', 'medium', 'large');
CREATE TYPE "public"."enum_pages_blocks_video_block_aspect_ratio" AS ENUM('16:9', '4:3', '1:1');
CREATE TYPE "public"."enum_pages_blocks_posts_list_block_post_type" AS ENUM('blog', 'news', 'press', 'announcement', 'all');
CREATE TYPE "public"."enum_pages_blocks_posts_list_block_layout" AS ENUM('grid', 'list', 'featured', 'compact', 'masonry');
CREATE TYPE "public"."enum_pages_blocks_posts_list_block_columns" AS ENUM('2', '3', '4');
CREATE TYPE "public"."enum_pages_blocks_posts_list_block_background_color" AS ENUM('white', 'light', 'dark');
CREATE TYPE "public"."enum_pages_blocks_testimonials_block_layout" AS ENUM('slider', 'grid', 'single', 'masonry', 'list');
CREATE TYPE "public"."enum_pages_blocks_testimonials_block_columns" AS ENUM('2', '3', '4');
CREATE TYPE "public"."enum_pages_blocks_testimonials_block_display_mode" AS ENUM('all', 'selected');
CREATE TYPE "public"."enum_pages_blocks_testimonials_block_background_color" AS ENUM('white', 'light', 'dark', 'accent');
CREATE TYPE "public"."enum_pages_blocks_newsletter_block_available_interests" AS ENUM('general', 'blog', 'products', 'offers', 'events');
CREATE TYPE "public"."enum_pages_blocks_newsletter_block_layout" AS ENUM('inline', 'stacked', 'with-image', 'minimal', 'card');
CREATE TYPE "public"."enum_pages_blocks_newsletter_block_image_position" AS ENUM('left', 'right');
CREATE TYPE "public"."enum_pages_blocks_newsletter_block_background_color" AS ENUM('white', 'light', 'dark', 'accent');
CREATE TYPE "public"."enum_pages_blocks_process_steps_block_layout" AS ENUM('horizontal', 'vertical', 'alternating', 'connected', 'timeline');
CREATE TYPE "public"."enum_pages_blocks_process_steps_block_cta_variant" AS ENUM('default', 'ghost', 'light');
CREATE TYPE "public"."enum_pages_blocks_process_steps_block_background_color" AS ENUM('white', 'light', 'dark');
CREATE TYPE "public"."enum_pages_status" AS ENUM('draft', 'published');
CREATE TYPE "public"."enum_posts_type" AS ENUM('blog', 'news', 'press', 'announcement');
CREATE TYPE "public"."enum_posts_status" AS ENUM('draft', 'published', 'archived');
CREATE TYPE "public"."enum_social_links_platform" AS ENUM('facebook', 'x', 'instagram', 'youtube', 'linkedin', 'xing');
CREATE TYPE "public"."enum_newsletter_subscribers_interests" AS ENUM('general', 'blog', 'products', 'offers', 'events');
CREATE TYPE "public"."enum_newsletter_subscribers_status" AS ENUM('pending', 'confirmed', 'unsubscribed', 'bounced');
CREATE TYPE "public"."enum_cookie_configurations_enabled_categories" AS ENUM('necessary', 'functional', 'analytics', 'marketing');
CREATE TYPE "public"."enum_cookie_configurations_styling_position" AS ENUM('bottom', 'top', 'middle');
CREATE TYPE "public"."enum_cookie_configurations_styling_theme" AS ENUM('dark', 'light', 'auto');
CREATE TYPE "public"."enum_cookie_inventory_category" AS ENUM('necessary', 'functional', 'analytics', 'marketing');
CREATE TYPE "public"."enum_privacy_policy_settings_provider" AS ENUM('alfright', 'internal');
CREATE TYPE "public"."enum_privacy_policy_settings_alfright_language" AS ENUM('de-de', 'de-at', 'de-ch', 'en-gb', 'en-us');
CREATE TYPE "public"."enum_forms_confirmation_type" AS ENUM('message', 'redirect');
CREATE TYPE "public"."enum_redirects_to_type" AS ENUM('reference', 'custom');
CREATE TYPE "public"."enum_navigation_main_menu_submenu_link_type" AS ENUM('page', 'custom');
CREATE TYPE "public"."enum_navigation_main_menu_type" AS ENUM('page', 'custom', 'submenu');
CREATE TYPE "public"."enum_navigation_footer_menu_link_type" AS ENUM('page', 'custom');
CREATE TYPE "public"."enum_seo_settings_social_profiles_platform" AS ENUM('facebook', 'instagram', 'twitter', 'linkedin', 'youtube', 'tiktok', 'pinterest', 'xing', 'other');
CREATE TYPE "public"."enum_seo_settings_local_business_type" AS ENUM('LocalBusiness', 'Physician', 'Dentist', 'Attorney', 'Restaurant', 'Hotel', 'Store', 'HealthClub', 'HairSalon', 'AutoRepair', 'RealEstateAgent', 'FinancialService', 'ProfessionalService', 'MedicalBusiness');
CREATE TYPE "public"."enum_seo_settings_local_business_price_range" AS ENUM('€', '€€', '€€€', '€€€€');
CREATE TABLE "users_tenants" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"tenant_id" integer NOT NULL
);
CREATE TABLE "users_sessions" (
"_order" integer NOT NULL,
"_parent_id" integer 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" serial PRIMARY KEY NOT NULL,
"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 "media" (
"id" serial PRIMARY KEY NOT NULL,
"tenant_id" integer,
"alt" varchar NOT NULL,
"caption" varchar,
"credit" varchar,
"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,
"sizes_thumbnail_url" varchar,
"sizes_thumbnail_width" numeric,
"sizes_thumbnail_height" numeric,
"sizes_thumbnail_mime_type" varchar,
"sizes_thumbnail_filesize" numeric,
"sizes_thumbnail_filename" varchar,
"sizes_small_url" varchar,
"sizes_small_width" numeric,
"sizes_small_height" numeric,
"sizes_small_mime_type" varchar,
"sizes_small_filesize" numeric,
"sizes_small_filename" varchar,
"sizes_medium_url" varchar,
"sizes_medium_width" numeric,
"sizes_medium_height" numeric,
"sizes_medium_mime_type" varchar,
"sizes_medium_filesize" numeric,
"sizes_medium_filename" varchar,
"sizes_large_url" varchar,
"sizes_large_width" numeric,
"sizes_large_height" numeric,
"sizes_large_mime_type" varchar,
"sizes_large_filesize" numeric,
"sizes_large_filename" varchar,
"sizes_xlarge_url" varchar,
"sizes_xlarge_width" numeric,
"sizes_xlarge_height" numeric,
"sizes_xlarge_mime_type" varchar,
"sizes_xlarge_filesize" numeric,
"sizes_xlarge_filename" varchar,
"sizes_2k_url" varchar,
"sizes_2k_width" numeric,
"sizes_2k_height" numeric,
"sizes_2k_mime_type" varchar,
"sizes_2k_filesize" numeric,
"sizes_2k_filename" varchar,
"sizes_og_url" varchar,
"sizes_og_width" numeric,
"sizes_og_height" numeric,
"sizes_og_mime_type" varchar,
"sizes_og_filesize" numeric,
"sizes_og_filename" varchar,
"sizes_medium_avif_url" varchar,
"sizes_medium_avif_width" numeric,
"sizes_medium_avif_height" numeric,
"sizes_medium_avif_mime_type" varchar,
"sizes_medium_avif_filesize" numeric,
"sizes_medium_avif_filename" varchar,
"sizes_large_avif_url" varchar,
"sizes_large_avif_width" numeric,
"sizes_large_avif_height" numeric,
"sizes_large_avif_mime_type" varchar,
"sizes_large_avif_filesize" numeric,
"sizes_large_avif_filename" varchar,
"sizes_xlarge_avif_url" varchar,
"sizes_xlarge_avif_width" numeric,
"sizes_xlarge_avif_height" numeric,
"sizes_xlarge_avif_mime_type" varchar,
"sizes_xlarge_avif_filesize" numeric,
"sizes_xlarge_avif_filename" varchar
);
CREATE TABLE "media_texts" (
"id" serial PRIMARY KEY NOT NULL,
"order" integer NOT NULL,
"parent_id" integer NOT NULL,
"path" varchar NOT NULL,
"text" varchar
);
CREATE TABLE "tenants_domains" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"domain" varchar NOT NULL
);
CREATE TABLE "tenants" (
"id" serial PRIMARY KEY NOT NULL,
"name" varchar NOT NULL,
"slug" 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
);
CREATE TABLE "pages_blocks_hero_block" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"background_image_id" integer,
"alignment" "enum_pages_blocks_hero_block_alignment" DEFAULT 'center',
"overlay" boolean DEFAULT true,
"cta_link" varchar,
"cta_style" "enum_pages_blocks_hero_block_cta_style" DEFAULT 'primary',
"block_name" varchar
);
CREATE TABLE "pages_blocks_hero_block_locales" (
"headline" varchar NOT NULL,
"subline" varchar,
"cta_text" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "pages_blocks_text_block" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"width" "enum_pages_blocks_text_block_width" DEFAULT 'medium',
"block_name" varchar
);
CREATE TABLE "pages_blocks_text_block_locales" (
"content" jsonb NOT NULL,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "pages_blocks_image_text_block" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"image_id" integer NOT NULL,
"image_position" "enum_pages_blocks_image_text_block_image_position" DEFAULT 'left',
"cta_link" varchar,
"block_name" varchar
);
CREATE TABLE "pages_blocks_image_text_block_locales" (
"headline" varchar,
"content" jsonb,
"cta_text" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "pages_blocks_card_grid_block_cards" (
"_order" integer NOT NULL,
"_parent_id" varchar NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"image_id" integer,
"link" varchar
);
CREATE TABLE "pages_blocks_card_grid_block_cards_locales" (
"title" varchar NOT NULL,
"description" varchar,
"link_text" varchar DEFAULT 'mehr',
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "pages_blocks_card_grid_block" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"columns" "enum_pages_blocks_card_grid_block_columns" DEFAULT '3',
"block_name" varchar
);
CREATE TABLE "pages_blocks_card_grid_block_locales" (
"headline" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "pages_blocks_quote_block" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"author" varchar,
"image_id" integer,
"style" "enum_pages_blocks_quote_block_style" DEFAULT 'simple',
"block_name" varchar
);
CREATE TABLE "pages_blocks_quote_block_locales" (
"quote" varchar NOT NULL,
"role" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "pages_blocks_cta_block_buttons" (
"_order" integer NOT NULL,
"_parent_id" varchar NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"link" varchar NOT NULL,
"style" "enum_pages_blocks_cta_block_buttons_style" DEFAULT 'primary'
);
CREATE TABLE "pages_blocks_cta_block_buttons_locales" (
"text" varchar NOT NULL,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "pages_blocks_cta_block" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"background_color" "enum_pages_blocks_cta_block_background_color" DEFAULT 'dark',
"block_name" varchar
);
CREATE TABLE "pages_blocks_cta_block_locales" (
"headline" varchar NOT NULL,
"description" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "pages_blocks_contact_form_block" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"recipient_email" varchar DEFAULT 'info@porwoll.de',
"show_phone" boolean DEFAULT true,
"show_address" boolean DEFAULT true,
"show_socials" boolean DEFAULT true,
"block_name" varchar
);
CREATE TABLE "pages_blocks_contact_form_block_locales" (
"headline" varchar DEFAULT 'Kontakt',
"description" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "pages_blocks_timeline_block_items" (
"_order" integer NOT NULL,
"_parent_id" varchar NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"year" varchar,
"icon" varchar,
"image_id" integer,
"link_href" varchar
);
CREATE TABLE "pages_blocks_timeline_block_items_locales" (
"title" varchar NOT NULL,
"description" varchar,
"link_label" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "pages_blocks_timeline_block" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"layout" "enum_pages_blocks_timeline_block_layout" DEFAULT 'vertical',
"show_connector" boolean DEFAULT true,
"marker_style" "enum_pages_blocks_timeline_block_marker_style" DEFAULT 'dot',
"background_color" "enum_pages_blocks_timeline_block_background_color" DEFAULT 'white',
"block_name" varchar
);
CREATE TABLE "pages_blocks_timeline_block_locales" (
"title" varchar,
"subtitle" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "pages_blocks_divider_block" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"style" "enum_pages_blocks_divider_block_style" DEFAULT 'space',
"spacing" "enum_pages_blocks_divider_block_spacing" DEFAULT 'medium',
"block_name" varchar
);
CREATE TABLE "pages_blocks_video_block" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"video_url" varchar NOT NULL,
"aspect_ratio" "enum_pages_blocks_video_block_aspect_ratio" DEFAULT '16:9',
"block_name" varchar
);
CREATE TABLE "pages_blocks_video_block_locales" (
"caption" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "pages_blocks_posts_list_block" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"post_type" "enum_pages_blocks_posts_list_block_post_type" DEFAULT 'blog' NOT NULL,
"layout" "enum_pages_blocks_posts_list_block_layout" DEFAULT 'grid',
"columns" "enum_pages_blocks_posts_list_block_columns" DEFAULT '3',
"limit" numeric DEFAULT 6,
"show_featured_only" boolean DEFAULT false,
"show_excerpt" boolean DEFAULT true,
"show_date" boolean DEFAULT true,
"show_author" boolean DEFAULT false,
"show_category" boolean DEFAULT true,
"show_pagination" boolean DEFAULT false,
"show_read_more" boolean DEFAULT true,
"read_more_link" varchar DEFAULT '/blog',
"background_color" "enum_pages_blocks_posts_list_block_background_color" DEFAULT 'white',
"block_name" varchar
);
CREATE TABLE "pages_blocks_posts_list_block_locales" (
"title" varchar,
"subtitle" varchar,
"read_more_label" varchar DEFAULT 'Alle Beiträge anzeigen',
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "pages_blocks_testimonials_block" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"layout" "enum_pages_blocks_testimonials_block_layout" DEFAULT 'slider',
"columns" "enum_pages_blocks_testimonials_block_columns" DEFAULT '3',
"display_mode" "enum_pages_blocks_testimonials_block_display_mode" DEFAULT 'all',
"limit" numeric DEFAULT 6,
"show_rating" boolean DEFAULT true,
"show_image" boolean DEFAULT true,
"show_company" boolean DEFAULT true,
"show_source" boolean DEFAULT false,
"autoplay" boolean DEFAULT true,
"autoplay_speed" numeric DEFAULT 5000,
"background_color" "enum_pages_blocks_testimonials_block_background_color" DEFAULT 'light',
"block_name" varchar
);
CREATE TABLE "pages_blocks_testimonials_block_locales" (
"title" varchar DEFAULT 'Das sagen unsere Kunden',
"subtitle" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "pages_blocks_newsletter_block_available_interests" (
"order" integer NOT NULL,
"parent_id" varchar NOT NULL,
"value" "enum_pages_blocks_newsletter_block_available_interests",
"id" serial PRIMARY KEY NOT NULL
);
CREATE TABLE "pages_blocks_newsletter_block" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"layout" "enum_pages_blocks_newsletter_block_layout" DEFAULT 'inline',
"image_id" integer,
"image_position" "enum_pages_blocks_newsletter_block_image_position" DEFAULT 'left',
"collect_name" boolean DEFAULT false,
"show_interests" boolean DEFAULT false,
"privacy_link" varchar DEFAULT '/datenschutz',
"source" varchar DEFAULT 'website',
"background_color" "enum_pages_blocks_newsletter_block_background_color" DEFAULT 'accent',
"block_name" varchar
);
CREATE TABLE "pages_blocks_newsletter_block_locales" (
"title" varchar DEFAULT 'Newsletter abonnieren',
"subtitle" varchar DEFAULT 'Erhalten Sie regelmäßig Updates und Neuigkeiten direkt in Ihr Postfach.',
"button_text" varchar DEFAULT 'Anmelden',
"placeholder_email" varchar DEFAULT 'Ihre E-Mail-Adresse',
"success_message" varchar DEFAULT 'Vielen Dank! Bitte bestätigen Sie Ihre E-Mail-Adresse über den Link in der Bestätigungsmail.',
"error_message" varchar DEFAULT 'Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut.',
"privacy_text" varchar DEFAULT 'Mit der Anmeldung akzeptieren Sie unsere Datenschutzerklärung. Sie können sich jederzeit abmelden.',
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "pages_blocks_process_steps_block_steps" (
"_order" integer NOT NULL,
"_parent_id" varchar NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"icon" varchar,
"image_id" integer
);
CREATE TABLE "pages_blocks_process_steps_block_steps_locales" (
"title" varchar NOT NULL,
"description" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "pages_blocks_process_steps_block" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"layout" "enum_pages_blocks_process_steps_block_layout" DEFAULT 'horizontal',
"show_numbers" boolean DEFAULT true,
"show_icons" boolean DEFAULT true,
"cta_show" boolean DEFAULT false,
"cta_href" varchar,
"cta_variant" "enum_pages_blocks_process_steps_block_cta_variant" DEFAULT 'default',
"background_color" "enum_pages_blocks_process_steps_block_background_color" DEFAULT 'white',
"block_name" varchar
);
CREATE TABLE "pages_blocks_process_steps_block_locales" (
"title" varchar DEFAULT 'So funktioniert es',
"subtitle" varchar,
"cta_label" varchar DEFAULT 'Jetzt starten',
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "pages" (
"id" serial PRIMARY KEY NOT NULL,
"tenant_id" integer,
"hero_image_id" integer,
"seo_og_image_id" integer,
"status" "enum_pages_status" DEFAULT 'draft',
"published_at" timestamp(3) with time zone,
"updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL,
"created_at" timestamp(3) with time zone DEFAULT now() NOT NULL
);
CREATE TABLE "pages_locales" (
"title" varchar NOT NULL,
"slug" varchar NOT NULL,
"hero_headline" varchar,
"hero_subline" varchar,
"seo_meta_title" varchar,
"seo_meta_description" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" integer NOT NULL
);
CREATE TABLE "pages_rels" (
"id" serial PRIMARY KEY NOT NULL,
"order" integer,
"parent_id" integer NOT NULL,
"path" varchar NOT NULL,
"categories_id" integer,
"testimonials_id" integer
);
CREATE TABLE "posts" (
"id" serial PRIMARY KEY NOT NULL,
"tenant_id" integer,
"type" "enum_posts_type" DEFAULT 'blog' NOT NULL,
"is_featured" boolean DEFAULT false,
"featured_image_id" integer,
"author" varchar,
"status" "enum_posts_status" DEFAULT 'draft',
"published_at" timestamp(3) with time zone,
"seo_og_image_id" integer,
"updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL,
"created_at" timestamp(3) with time zone DEFAULT now() NOT NULL
);
CREATE TABLE "posts_locales" (
"title" varchar NOT NULL,
"slug" varchar NOT NULL,
"excerpt" varchar,
"content" jsonb NOT NULL,
"seo_meta_title" varchar,
"seo_meta_description" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" integer NOT NULL
);
CREATE TABLE "posts_rels" (
"id" serial PRIMARY KEY NOT NULL,
"order" integer,
"parent_id" integer NOT NULL,
"path" varchar NOT NULL,
"categories_id" integer
);
CREATE TABLE "categories" (
"id" serial PRIMARY KEY NOT NULL,
"tenant_id" integer,
"updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL,
"created_at" timestamp(3) with time zone DEFAULT now() NOT NULL
);
CREATE TABLE "categories_locales" (
"name" varchar NOT NULL,
"slug" varchar NOT NULL,
"description" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" integer NOT NULL
);
CREATE TABLE "social_links" (
"id" serial PRIMARY KEY NOT NULL,
"tenant_id" integer,
"platform" "enum_social_links_platform" NOT NULL,
"url" varchar NOT NULL,
"is_active" boolean DEFAULT true,
"updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL,
"created_at" timestamp(3) with time zone DEFAULT now() NOT NULL
);
CREATE TABLE "testimonials" (
"id" serial PRIMARY KEY NOT NULL,
"tenant_id" integer,
"author" varchar NOT NULL,
"company" varchar,
"image_id" integer,
"rating" numeric,
"source" varchar,
"source_url" varchar,
"date" timestamp(3) with time zone,
"is_active" boolean DEFAULT true,
"order" numeric DEFAULT 0,
"updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL,
"created_at" timestamp(3) with time zone DEFAULT now() NOT NULL
);
CREATE TABLE "testimonials_locales" (
"quote" varchar NOT NULL,
"role" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" integer NOT NULL
);
CREATE TABLE "newsletter_subscribers_interests" (
"order" integer NOT NULL,
"parent_id" integer NOT NULL,
"value" "enum_newsletter_subscribers_interests",
"id" serial PRIMARY KEY NOT NULL
);
CREATE TABLE "newsletter_subscribers" (
"id" serial PRIMARY KEY NOT NULL,
"tenant_id" integer,
"email" varchar NOT NULL,
"first_name" varchar,
"last_name" varchar,
"status" "enum_newsletter_subscribers_status" DEFAULT 'pending' NOT NULL,
"source" varchar,
"subscribed_at" timestamp(3) with time zone,
"confirmed_at" timestamp(3) with time zone,
"unsubscribed_at" timestamp(3) with time zone,
"confirmation_token" varchar,
"ip_address" varchar,
"user_agent" 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 "cookie_configurations_enabled_categories" (
"order" integer NOT NULL,
"parent_id" integer NOT NULL,
"value" "enum_cookie_configurations_enabled_categories",
"id" serial PRIMARY KEY NOT NULL
);
CREATE TABLE "cookie_configurations" (
"id" serial PRIMARY KEY NOT NULL,
"tenant_id" integer NOT NULL,
"title" varchar DEFAULT 'Cookie-Einstellungen' NOT NULL,
"revision" numeric DEFAULT 1 NOT NULL,
"translations_de_banner_title" varchar DEFAULT 'Wir respektieren Ihre Privatsphäre',
"translations_de_banner_description" varchar DEFAULT 'Diese Website verwendet Cookies, um Ihnen die bestmögliche Erfahrung zu bieten.',
"translations_de_accept_all_button" varchar DEFAULT 'Alle akzeptieren',
"translations_de_accept_necessary_button" varchar DEFAULT 'Nur notwendige',
"translations_de_settings_button" varchar DEFAULT 'Einstellungen',
"translations_de_save_button" varchar DEFAULT 'Auswahl speichern',
"translations_de_privacy_policy_url" varchar DEFAULT '/datenschutz',
"translations_de_category_labels_necessary_title" varchar DEFAULT 'Notwendig',
"translations_de_category_labels_necessary_description" varchar DEFAULT 'Diese Cookies sind für die Grundfunktionen der Website erforderlich.',
"translations_de_category_labels_functional_title" varchar DEFAULT 'Funktional',
"translations_de_category_labels_functional_description" varchar DEFAULT 'Diese Cookies ermöglichen erweiterte Funktionen.',
"translations_de_category_labels_analytics_title" varchar DEFAULT 'Statistik',
"translations_de_category_labels_analytics_description" varchar DEFAULT 'Diese Cookies helfen uns zu verstehen, wie Besucher die Website nutzen.',
"translations_de_category_labels_marketing_title" varchar DEFAULT 'Marketing',
"translations_de_category_labels_marketing_description" varchar DEFAULT 'Diese Cookies werden für Werbezwecke verwendet.',
"styling_position" "enum_cookie_configurations_styling_position" DEFAULT 'bottom',
"styling_theme" "enum_cookie_configurations_styling_theme" DEFAULT 'dark',
"updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL,
"created_at" timestamp(3) with time zone DEFAULT now() NOT NULL
);
CREATE TABLE "cookie_inventory" (
"id" serial PRIMARY KEY NOT NULL,
"tenant_id" integer NOT NULL,
"name" varchar NOT NULL,
"provider" varchar NOT NULL,
"category" "enum_cookie_inventory_category" NOT NULL,
"duration" varchar NOT NULL,
"description" varchar NOT NULL,
"is_active" boolean DEFAULT true,
"updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL,
"created_at" timestamp(3) with time zone DEFAULT now() NOT NULL
);
CREATE TABLE "consent_logs" (
"id" serial PRIMARY KEY NOT NULL,
"consent_id" varchar NOT NULL,
"client_ref" varchar,
"tenant_id" integer NOT NULL,
"categories" jsonb NOT NULL,
"revision" numeric NOT NULL,
"user_agent" varchar,
"anonymized_ip" varchar,
"expires_at" timestamp(3) with time zone 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 "privacy_policy_settings" (
"id" serial PRIMARY KEY NOT NULL,
"tenant_id" integer NOT NULL,
"title" varchar DEFAULT 'Datenschutzerklärung' NOT NULL,
"provider" "enum_privacy_policy_settings_provider" DEFAULT 'alfright' NOT NULL,
"alfright_tenant_id" varchar DEFAULT 'alfright_schutzteam',
"alfright_api_key" varchar,
"alfright_language" "enum_privacy_policy_settings_alfright_language" DEFAULT 'de-de',
"alfright_iframe_height" numeric DEFAULT 4000,
"styling_header_color" varchar DEFAULT '#ca8a04',
"styling_header_font" varchar DEFAULT 'Inter, sans-serif',
"styling_header_size" varchar DEFAULT '24px',
"styling_subheader_size" varchar DEFAULT '18px',
"styling_font_color" varchar DEFAULT '#f3f4f6',
"styling_text_font" varchar DEFAULT 'Inter, sans-serif',
"styling_text_size" varchar DEFAULT '16px',
"styling_link_color" varchar DEFAULT '#ca8a04',
"styling_background_color" varchar DEFAULT '#111827',
"show_cookie_table" boolean DEFAULT true,
"cookie_table_title" varchar DEFAULT 'Übersicht der verwendeten Cookies',
"cookie_table_description" varchar DEFAULT 'Ergänzend zur Datenschutzerklärung finden Sie hier eine detaillierte Übersicht aller auf dieser Website eingesetzten Cookies. Sie können Ihre Cookie-Einstellungen jederzeit über den Link "Cookie-Einstellungen" im Footer anpassen.',
"seo_meta_title" varchar DEFAULT 'Datenschutzerklärung',
"seo_meta_description" varchar DEFAULT 'Informationen zum Datenschutz und zur Verarbeitung Ihrer personenbezogenen Daten.',
"updated_at" timestamp(3) with time zone DEFAULT now() NOT NULL,
"created_at" timestamp(3) with time zone DEFAULT now() NOT NULL
);
CREATE TABLE "forms_blocks_checkbox" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"name" varchar NOT NULL,
"width" numeric,
"required" boolean,
"default_value" boolean,
"block_name" varchar
);
CREATE TABLE "forms_blocks_checkbox_locales" (
"label" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "forms_blocks_email" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"name" varchar NOT NULL,
"width" numeric,
"required" boolean,
"block_name" varchar
);
CREATE TABLE "forms_blocks_email_locales" (
"label" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "forms_blocks_message" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"block_name" varchar
);
CREATE TABLE "forms_blocks_message_locales" (
"message" jsonb,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "forms_blocks_number" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"name" varchar NOT NULL,
"width" numeric,
"default_value" numeric,
"required" boolean,
"block_name" varchar
);
CREATE TABLE "forms_blocks_number_locales" (
"label" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "forms_blocks_select_options" (
"_order" integer NOT NULL,
"_parent_id" varchar NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"value" varchar NOT NULL
);
CREATE TABLE "forms_blocks_select_options_locales" (
"label" varchar NOT NULL,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "forms_blocks_select" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"name" varchar NOT NULL,
"width" numeric,
"placeholder" varchar,
"required" boolean,
"block_name" varchar
);
CREATE TABLE "forms_blocks_select_locales" (
"label" varchar,
"default_value" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "forms_blocks_text" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"name" varchar NOT NULL,
"width" numeric,
"required" boolean,
"block_name" varchar
);
CREATE TABLE "forms_blocks_text_locales" (
"label" varchar,
"default_value" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "forms_blocks_textarea" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"_path" text NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"name" varchar NOT NULL,
"width" numeric,
"required" boolean,
"block_name" varchar
);
CREATE TABLE "forms_blocks_textarea_locales" (
"label" varchar,
"default_value" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "forms_emails" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"email_to" varchar,
"cc" varchar,
"bcc" varchar,
"reply_to" varchar,
"email_from" varchar
);
CREATE TABLE "forms_emails_locales" (
"subject" varchar DEFAULT 'You''ve received a new message.' NOT NULL,
"message" jsonb,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "forms" (
"id" serial PRIMARY KEY NOT NULL,
"title" varchar NOT NULL,
"confirmation_type" "enum_forms_confirmation_type" DEFAULT 'message',
"redirect_url" 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 "forms_locales" (
"submit_button_label" varchar,
"confirmation_message" jsonb,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" integer NOT NULL
);
CREATE TABLE "form_submissions_submission_data" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"field" varchar NOT NULL,
"value" varchar NOT NULL
);
CREATE TABLE "form_submissions" (
"id" serial PRIMARY KEY NOT NULL,
"form_id" integer 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 "redirects" (
"id" serial PRIMARY KEY NOT NULL,
"from" varchar NOT NULL,
"to_type" "enum_redirects_to_type" DEFAULT 'reference',
"to_url" 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_kv" (
"id" serial PRIMARY KEY NOT NULL,
"key" varchar NOT NULL,
"data" jsonb NOT NULL
);
CREATE TABLE "payload_locked_documents" (
"id" serial PRIMARY KEY 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" integer NOT NULL,
"path" varchar NOT NULL,
"users_id" integer,
"media_id" integer,
"tenants_id" integer,
"pages_id" integer,
"posts_id" integer,
"categories_id" integer,
"social_links_id" integer,
"testimonials_id" integer,
"newsletter_subscribers_id" integer,
"cookie_configurations_id" integer,
"cookie_inventory_id" integer,
"consent_logs_id" integer,
"privacy_policy_settings_id" integer,
"forms_id" integer,
"form_submissions_id" integer,
"redirects_id" integer
);
CREATE TABLE "payload_preferences" (
"id" serial PRIMARY KEY 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" integer NOT NULL,
"path" varchar NOT NULL,
"users_id" integer
);
CREATE TABLE "payload_migrations" (
"id" serial PRIMARY KEY 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 "site_settings" (
"id" serial PRIMARY KEY NOT NULL,
"logo_id" integer,
"favicon_id" integer,
"contact_email" varchar,
"contact_phone" varchar,
"contact_address" varchar,
"footer_show_social_links" boolean DEFAULT true,
"seo_default_og_image_id" integer,
"updated_at" timestamp(3) with time zone,
"created_at" timestamp(3) with time zone
);
CREATE TABLE "site_settings_locales" (
"site_name" varchar DEFAULT 'porwoll.de',
"site_tagline" varchar,
"footer_copyright_text" varchar,
"seo_default_meta_title" varchar,
"seo_default_meta_description" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" integer NOT NULL
);
CREATE TABLE "navigation_main_menu_submenu" (
"_order" integer NOT NULL,
"_parent_id" varchar NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"link_type" "enum_navigation_main_menu_submenu_link_type" DEFAULT 'page',
"page_id" integer,
"url" varchar
);
CREATE TABLE "navigation_main_menu_submenu_locales" (
"label" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "navigation_main_menu" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"type" "enum_navigation_main_menu_type" DEFAULT 'page',
"page_id" integer,
"url" varchar,
"open_in_new_tab" boolean DEFAULT false
);
CREATE TABLE "navigation_main_menu_locales" (
"label" varchar NOT NULL,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "navigation_footer_menu" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"link_type" "enum_navigation_footer_menu_link_type" DEFAULT 'page',
"page_id" integer,
"url" varchar
);
CREATE TABLE "navigation_footer_menu_locales" (
"label" varchar NOT NULL,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" varchar NOT NULL
);
CREATE TABLE "navigation" (
"id" serial PRIMARY KEY NOT NULL,
"updated_at" timestamp(3) with time zone,
"created_at" timestamp(3) with time zone
);
CREATE TABLE "seo_settings_social_profiles" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"platform" "enum_seo_settings_social_profiles_platform",
"url" varchar NOT NULL
);
CREATE TABLE "seo_settings_local_business_opening_hours" (
"_order" integer NOT NULL,
"_parent_id" integer NOT NULL,
"id" varchar PRIMARY KEY NOT NULL,
"specification" varchar
);
CREATE TABLE "seo_settings" (
"id" serial PRIMARY KEY NOT NULL,
"meta_defaults_default_og_image_id" integer,
"organization_name" varchar NOT NULL,
"organization_legal_name" varchar,
"organization_logo_id" integer,
"organization_founding_date" timestamp(3) with time zone,
"contact_email" varchar,
"contact_phone" varchar,
"contact_fax" varchar,
"address_street" varchar,
"address_postal_code" varchar,
"address_city" varchar,
"address_region" varchar,
"address_country" varchar DEFAULT 'Deutschland',
"address_country_code" varchar DEFAULT 'DE',
"geo_latitude" numeric,
"geo_longitude" numeric,
"local_business_enabled" boolean DEFAULT false,
"local_business_type" "enum_seo_settings_local_business_type",
"local_business_price_range" "enum_seo_settings_local_business_price_range",
"robots_allow_indexing" boolean DEFAULT true,
"verification_google" varchar,
"verification_bing" varchar,
"verification_yandex" varchar,
"updated_at" timestamp(3) with time zone,
"created_at" timestamp(3) with time zone
);
CREATE TABLE "seo_settings_locales" (
"meta_defaults_title_suffix" varchar DEFAULT '| Website',
"meta_defaults_default_description" varchar,
"organization_description" varchar,
"id" serial PRIMARY KEY NOT NULL,
"_locale" "_locales" NOT NULL,
"_parent_id" integer NOT NULL
);
CREATE TABLE "seo_settings_texts" (
"id" serial PRIMARY KEY NOT NULL,
"order" integer NOT NULL,
"parent_id" integer NOT NULL,
"path" varchar NOT NULL,
"text" varchar
);
ALTER TABLE "users_tenants" ADD CONSTRAINT "users_tenants_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "users_tenants" ADD CONSTRAINT "users_tenants_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."users"("id") ON DELETE cascade ON UPDATE no action;
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 "media" ADD CONSTRAINT "media_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "media_texts" ADD CONSTRAINT "media_texts_parent_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."media"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "tenants_domains" ADD CONSTRAINT "tenants_domains_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."tenants"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_hero_block" ADD CONSTRAINT "pages_blocks_hero_block_background_image_id_media_id_fk" FOREIGN KEY ("background_image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "pages_blocks_hero_block" ADD CONSTRAINT "pages_blocks_hero_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_hero_block_locales" ADD CONSTRAINT "pages_blocks_hero_block_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_hero_block"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_text_block" ADD CONSTRAINT "pages_blocks_text_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_text_block_locales" ADD CONSTRAINT "pages_blocks_text_block_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_text_block"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_image_text_block" ADD CONSTRAINT "pages_blocks_image_text_block_image_id_media_id_fk" FOREIGN KEY ("image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "pages_blocks_image_text_block" ADD CONSTRAINT "pages_blocks_image_text_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_image_text_block_locales" ADD CONSTRAINT "pages_blocks_image_text_block_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_image_text_block"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_card_grid_block_cards" ADD CONSTRAINT "pages_blocks_card_grid_block_cards_image_id_media_id_fk" FOREIGN KEY ("image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "pages_blocks_card_grid_block_cards" ADD CONSTRAINT "pages_blocks_card_grid_block_cards_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_card_grid_block"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_card_grid_block_cards_locales" ADD CONSTRAINT "pages_blocks_card_grid_block_cards_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_card_grid_block_cards"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_card_grid_block" ADD CONSTRAINT "pages_blocks_card_grid_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_card_grid_block_locales" ADD CONSTRAINT "pages_blocks_card_grid_block_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_card_grid_block"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_quote_block" ADD CONSTRAINT "pages_blocks_quote_block_image_id_media_id_fk" FOREIGN KEY ("image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "pages_blocks_quote_block" ADD CONSTRAINT "pages_blocks_quote_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_quote_block_locales" ADD CONSTRAINT "pages_blocks_quote_block_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_quote_block"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_cta_block_buttons" ADD CONSTRAINT "pages_blocks_cta_block_buttons_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_cta_block"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_cta_block_buttons_locales" ADD CONSTRAINT "pages_blocks_cta_block_buttons_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_cta_block_buttons"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_cta_block" ADD CONSTRAINT "pages_blocks_cta_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_cta_block_locales" ADD CONSTRAINT "pages_blocks_cta_block_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_cta_block"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_contact_form_block" ADD CONSTRAINT "pages_blocks_contact_form_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_contact_form_block_locales" ADD CONSTRAINT "pages_blocks_contact_form_block_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_contact_form_block"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_timeline_block_items" ADD CONSTRAINT "pages_blocks_timeline_block_items_image_id_media_id_fk" FOREIGN KEY ("image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "pages_blocks_timeline_block_items" ADD CONSTRAINT "pages_blocks_timeline_block_items_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_timeline_block"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_timeline_block_items_locales" ADD CONSTRAINT "pages_blocks_timeline_block_items_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_timeline_block_items"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_timeline_block" ADD CONSTRAINT "pages_blocks_timeline_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_timeline_block_locales" ADD CONSTRAINT "pages_blocks_timeline_block_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_timeline_block"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_divider_block" ADD CONSTRAINT "pages_blocks_divider_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_video_block" ADD CONSTRAINT "pages_blocks_video_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_video_block_locales" ADD CONSTRAINT "pages_blocks_video_block_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_video_block"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_posts_list_block" ADD CONSTRAINT "pages_blocks_posts_list_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_posts_list_block_locales" ADD CONSTRAINT "pages_blocks_posts_list_block_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_posts_list_block"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_testimonials_block" ADD CONSTRAINT "pages_blocks_testimonials_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_testimonials_block_locales" ADD CONSTRAINT "pages_blocks_testimonials_block_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_testimonials_block"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_newsletter_block_available_interests" ADD CONSTRAINT "pages_blocks_newsletter_block_available_interests_parent_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."pages_blocks_newsletter_block"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_newsletter_block" ADD CONSTRAINT "pages_blocks_newsletter_block_image_id_media_id_fk" FOREIGN KEY ("image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "pages_blocks_newsletter_block" ADD CONSTRAINT "pages_blocks_newsletter_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_newsletter_block_locales" ADD CONSTRAINT "pages_blocks_newsletter_block_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_newsletter_block"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_process_steps_block_steps" ADD CONSTRAINT "pages_blocks_process_steps_block_steps_image_id_media_id_fk" FOREIGN KEY ("image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "pages_blocks_process_steps_block_steps" ADD CONSTRAINT "pages_blocks_process_steps_block_steps_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_process_steps_block"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_process_steps_block_steps_locales" ADD CONSTRAINT "pages_blocks_process_steps_block_steps_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_process_steps_block_steps"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_process_steps_block" ADD CONSTRAINT "pages_blocks_process_steps_block_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_blocks_process_steps_block_locales" ADD CONSTRAINT "pages_blocks_process_steps_block_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages_blocks_process_steps_block"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages" ADD CONSTRAINT "pages_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "pages" ADD CONSTRAINT "pages_hero_image_id_media_id_fk" FOREIGN KEY ("hero_image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "pages" ADD CONSTRAINT "pages_seo_og_image_id_media_id_fk" FOREIGN KEY ("seo_og_image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "pages_locales" ADD CONSTRAINT "pages_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_rels" ADD CONSTRAINT "pages_rels_parent_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_rels" ADD CONSTRAINT "pages_rels_categories_fk" FOREIGN KEY ("categories_id") REFERENCES "public"."categories"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "pages_rels" ADD CONSTRAINT "pages_rels_testimonials_fk" FOREIGN KEY ("testimonials_id") REFERENCES "public"."testimonials"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "posts" ADD CONSTRAINT "posts_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "posts" ADD CONSTRAINT "posts_featured_image_id_media_id_fk" FOREIGN KEY ("featured_image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "posts" ADD CONSTRAINT "posts_seo_og_image_id_media_id_fk" FOREIGN KEY ("seo_og_image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "posts_locales" ADD CONSTRAINT "posts_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."posts"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "posts_rels" ADD CONSTRAINT "posts_rels_parent_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."posts"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "posts_rels" ADD CONSTRAINT "posts_rels_categories_fk" FOREIGN KEY ("categories_id") REFERENCES "public"."categories"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "categories" ADD CONSTRAINT "categories_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "categories_locales" ADD CONSTRAINT "categories_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."categories"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "social_links" ADD CONSTRAINT "social_links_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "testimonials" ADD CONSTRAINT "testimonials_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "testimonials" ADD CONSTRAINT "testimonials_image_id_media_id_fk" FOREIGN KEY ("image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "testimonials_locales" ADD CONSTRAINT "testimonials_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."testimonials"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "newsletter_subscribers_interests" ADD CONSTRAINT "newsletter_subscribers_interests_parent_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."newsletter_subscribers"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "newsletter_subscribers" ADD CONSTRAINT "newsletter_subscribers_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "cookie_configurations_enabled_categories" ADD CONSTRAINT "cookie_configurations_enabled_categories_parent_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."cookie_configurations"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "cookie_configurations" ADD CONSTRAINT "cookie_configurations_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "cookie_inventory" ADD CONSTRAINT "cookie_inventory_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "consent_logs" ADD CONSTRAINT "consent_logs_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "privacy_policy_settings" ADD CONSTRAINT "privacy_policy_settings_tenant_id_tenants_id_fk" FOREIGN KEY ("tenant_id") REFERENCES "public"."tenants"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "forms_blocks_checkbox" ADD CONSTRAINT "forms_blocks_checkbox_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "forms_blocks_checkbox_locales" ADD CONSTRAINT "forms_blocks_checkbox_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms_blocks_checkbox"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "forms_blocks_email" ADD CONSTRAINT "forms_blocks_email_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "forms_blocks_email_locales" ADD CONSTRAINT "forms_blocks_email_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms_blocks_email"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "forms_blocks_message" ADD CONSTRAINT "forms_blocks_message_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "forms_blocks_message_locales" ADD CONSTRAINT "forms_blocks_message_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms_blocks_message"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "forms_blocks_number" ADD CONSTRAINT "forms_blocks_number_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "forms_blocks_number_locales" ADD CONSTRAINT "forms_blocks_number_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms_blocks_number"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "forms_blocks_select_options" ADD CONSTRAINT "forms_blocks_select_options_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms_blocks_select"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "forms_blocks_select_options_locales" ADD CONSTRAINT "forms_blocks_select_options_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms_blocks_select_options"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "forms_blocks_select" ADD CONSTRAINT "forms_blocks_select_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "forms_blocks_select_locales" ADD CONSTRAINT "forms_blocks_select_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms_blocks_select"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "forms_blocks_text" ADD CONSTRAINT "forms_blocks_text_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "forms_blocks_text_locales" ADD CONSTRAINT "forms_blocks_text_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms_blocks_text"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "forms_blocks_textarea" ADD CONSTRAINT "forms_blocks_textarea_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "forms_blocks_textarea_locales" ADD CONSTRAINT "forms_blocks_textarea_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms_blocks_textarea"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "forms_emails" ADD CONSTRAINT "forms_emails_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "forms_emails_locales" ADD CONSTRAINT "forms_emails_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms_emails"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "forms_locales" ADD CONSTRAINT "forms_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "form_submissions_submission_data" ADD CONSTRAINT "form_submissions_submission_data_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."form_submissions"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "form_submissions" ADD CONSTRAINT "form_submissions_form_id_forms_id_fk" FOREIGN KEY ("form_id") REFERENCES "public"."forms"("id") ON DELETE set null 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_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_tenants_fk" FOREIGN KEY ("tenants_id") REFERENCES "public"."tenants"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_pages_fk" FOREIGN KEY ("pages_id") REFERENCES "public"."pages"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_posts_fk" FOREIGN KEY ("posts_id") REFERENCES "public"."posts"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_categories_fk" FOREIGN KEY ("categories_id") REFERENCES "public"."categories"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_social_links_fk" FOREIGN KEY ("social_links_id") REFERENCES "public"."social_links"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_testimonials_fk" FOREIGN KEY ("testimonials_id") REFERENCES "public"."testimonials"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_newsletter_subscribers_fk" FOREIGN KEY ("newsletter_subscribers_id") REFERENCES "public"."newsletter_subscribers"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_cookie_configurations_fk" FOREIGN KEY ("cookie_configurations_id") REFERENCES "public"."cookie_configurations"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_cookie_inventory_fk" FOREIGN KEY ("cookie_inventory_id") REFERENCES "public"."cookie_inventory"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_consent_logs_fk" FOREIGN KEY ("consent_logs_id") REFERENCES "public"."consent_logs"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_privacy_policy_settings_fk" FOREIGN KEY ("privacy_policy_settings_id") REFERENCES "public"."privacy_policy_settings"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_forms_fk" FOREIGN KEY ("forms_id") REFERENCES "public"."forms"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_form_submissions_fk" FOREIGN KEY ("form_submissions_id") REFERENCES "public"."form_submissions"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "payload_locked_documents_rels" ADD CONSTRAINT "payload_locked_documents_rels_redirects_fk" FOREIGN KEY ("redirects_id") REFERENCES "public"."redirects"("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 "site_settings" ADD CONSTRAINT "site_settings_logo_id_media_id_fk" FOREIGN KEY ("logo_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "site_settings" ADD CONSTRAINT "site_settings_favicon_id_media_id_fk" FOREIGN KEY ("favicon_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "site_settings" ADD CONSTRAINT "site_settings_seo_default_og_image_id_media_id_fk" FOREIGN KEY ("seo_default_og_image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "site_settings_locales" ADD CONSTRAINT "site_settings_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."site_settings"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "navigation_main_menu_submenu" ADD CONSTRAINT "navigation_main_menu_submenu_page_id_pages_id_fk" FOREIGN KEY ("page_id") REFERENCES "public"."pages"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "navigation_main_menu_submenu" ADD CONSTRAINT "navigation_main_menu_submenu_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."navigation_main_menu"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "navigation_main_menu_submenu_locales" ADD CONSTRAINT "navigation_main_menu_submenu_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."navigation_main_menu_submenu"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "navigation_main_menu" ADD CONSTRAINT "navigation_main_menu_page_id_pages_id_fk" FOREIGN KEY ("page_id") REFERENCES "public"."pages"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "navigation_main_menu" ADD CONSTRAINT "navigation_main_menu_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."navigation"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "navigation_main_menu_locales" ADD CONSTRAINT "navigation_main_menu_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."navigation_main_menu"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "navigation_footer_menu" ADD CONSTRAINT "navigation_footer_menu_page_id_pages_id_fk" FOREIGN KEY ("page_id") REFERENCES "public"."pages"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "navigation_footer_menu" ADD CONSTRAINT "navigation_footer_menu_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."navigation"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "navigation_footer_menu_locales" ADD CONSTRAINT "navigation_footer_menu_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."navigation_footer_menu"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "seo_settings_social_profiles" ADD CONSTRAINT "seo_settings_social_profiles_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."seo_settings"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "seo_settings_local_business_opening_hours" ADD CONSTRAINT "seo_settings_local_business_opening_hours_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."seo_settings"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "seo_settings" ADD CONSTRAINT "seo_settings_meta_defaults_default_og_image_id_media_id_fk" FOREIGN KEY ("meta_defaults_default_og_image_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "seo_settings" ADD CONSTRAINT "seo_settings_organization_logo_id_media_id_fk" FOREIGN KEY ("organization_logo_id") REFERENCES "public"."media"("id") ON DELETE set null ON UPDATE no action;
ALTER TABLE "seo_settings_locales" ADD CONSTRAINT "seo_settings_locales_parent_id_fk" FOREIGN KEY ("_parent_id") REFERENCES "public"."seo_settings"("id") ON DELETE cascade ON UPDATE no action;
ALTER TABLE "seo_settings_texts" ADD CONSTRAINT "seo_settings_texts_parent_fk" FOREIGN KEY ("parent_id") REFERENCES "public"."seo_settings"("id") ON DELETE cascade ON UPDATE no action;
CREATE INDEX "users_tenants_order_idx" ON "users_tenants" USING btree ("_order");
CREATE INDEX "users_tenants_parent_id_idx" ON "users_tenants" USING btree ("_parent_id");
CREATE INDEX "users_tenants_tenant_idx" ON "users_tenants" USING btree ("tenant_id");
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 "media_tenant_idx" ON "media" USING btree ("tenant_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 "media_sizes_thumbnail_sizes_thumbnail_filename_idx" ON "media" USING btree ("sizes_thumbnail_filename");
CREATE INDEX "media_sizes_small_sizes_small_filename_idx" ON "media" USING btree ("sizes_small_filename");
CREATE INDEX "media_sizes_medium_sizes_medium_filename_idx" ON "media" USING btree ("sizes_medium_filename");
CREATE INDEX "media_sizes_large_sizes_large_filename_idx" ON "media" USING btree ("sizes_large_filename");
CREATE INDEX "media_sizes_xlarge_sizes_xlarge_filename_idx" ON "media" USING btree ("sizes_xlarge_filename");
CREATE INDEX "media_sizes_2k_sizes_2k_filename_idx" ON "media" USING btree ("sizes_2k_filename");
CREATE INDEX "media_sizes_og_sizes_og_filename_idx" ON "media" USING btree ("sizes_og_filename");
CREATE INDEX "media_sizes_medium_avif_sizes_medium_avif_filename_idx" ON "media" USING btree ("sizes_medium_avif_filename");
CREATE INDEX "media_sizes_large_avif_sizes_large_avif_filename_idx" ON "media" USING btree ("sizes_large_avif_filename");
CREATE INDEX "media_sizes_xlarge_avif_sizes_xlarge_avif_filename_idx" ON "media" USING btree ("sizes_xlarge_avif_filename");
CREATE INDEX "media_texts_order_parent" ON "media_texts" USING btree ("order","parent_id");
CREATE INDEX "tenants_domains_order_idx" ON "tenants_domains" USING btree ("_order");
CREATE INDEX "tenants_domains_parent_id_idx" ON "tenants_domains" USING btree ("_parent_id");
CREATE UNIQUE INDEX "tenants_slug_idx" ON "tenants" USING btree ("slug");
CREATE INDEX "tenants_updated_at_idx" ON "tenants" USING btree ("updated_at");
CREATE INDEX "tenants_created_at_idx" ON "tenants" USING btree ("created_at");
CREATE INDEX "pages_blocks_hero_block_order_idx" ON "pages_blocks_hero_block" USING btree ("_order");
CREATE INDEX "pages_blocks_hero_block_parent_id_idx" ON "pages_blocks_hero_block" USING btree ("_parent_id");
CREATE INDEX "pages_blocks_hero_block_path_idx" ON "pages_blocks_hero_block" USING btree ("_path");
CREATE INDEX "pages_blocks_hero_block_background_image_idx" ON "pages_blocks_hero_block" USING btree ("background_image_id");
CREATE UNIQUE INDEX "pages_blocks_hero_block_locales_locale_parent_id_unique" ON "pages_blocks_hero_block_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "pages_blocks_text_block_order_idx" ON "pages_blocks_text_block" USING btree ("_order");
CREATE INDEX "pages_blocks_text_block_parent_id_idx" ON "pages_blocks_text_block" USING btree ("_parent_id");
CREATE INDEX "pages_blocks_text_block_path_idx" ON "pages_blocks_text_block" USING btree ("_path");
CREATE UNIQUE INDEX "pages_blocks_text_block_locales_locale_parent_id_unique" ON "pages_blocks_text_block_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "pages_blocks_image_text_block_order_idx" ON "pages_blocks_image_text_block" USING btree ("_order");
CREATE INDEX "pages_blocks_image_text_block_parent_id_idx" ON "pages_blocks_image_text_block" USING btree ("_parent_id");
CREATE INDEX "pages_blocks_image_text_block_path_idx" ON "pages_blocks_image_text_block" USING btree ("_path");
CREATE INDEX "pages_blocks_image_text_block_image_idx" ON "pages_blocks_image_text_block" USING btree ("image_id");
CREATE UNIQUE INDEX "pages_blocks_image_text_block_locales_locale_parent_id_uniqu" ON "pages_blocks_image_text_block_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "pages_blocks_card_grid_block_cards_order_idx" ON "pages_blocks_card_grid_block_cards" USING btree ("_order");
CREATE INDEX "pages_blocks_card_grid_block_cards_parent_id_idx" ON "pages_blocks_card_grid_block_cards" USING btree ("_parent_id");
CREATE INDEX "pages_blocks_card_grid_block_cards_image_idx" ON "pages_blocks_card_grid_block_cards" USING btree ("image_id");
CREATE UNIQUE INDEX "pages_blocks_card_grid_block_cards_locales_locale_parent_id_" ON "pages_blocks_card_grid_block_cards_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "pages_blocks_card_grid_block_order_idx" ON "pages_blocks_card_grid_block" USING btree ("_order");
CREATE INDEX "pages_blocks_card_grid_block_parent_id_idx" ON "pages_blocks_card_grid_block" USING btree ("_parent_id");
CREATE INDEX "pages_blocks_card_grid_block_path_idx" ON "pages_blocks_card_grid_block" USING btree ("_path");
CREATE UNIQUE INDEX "pages_blocks_card_grid_block_locales_locale_parent_id_unique" ON "pages_blocks_card_grid_block_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "pages_blocks_quote_block_order_idx" ON "pages_blocks_quote_block" USING btree ("_order");
CREATE INDEX "pages_blocks_quote_block_parent_id_idx" ON "pages_blocks_quote_block" USING btree ("_parent_id");
CREATE INDEX "pages_blocks_quote_block_path_idx" ON "pages_blocks_quote_block" USING btree ("_path");
CREATE INDEX "pages_blocks_quote_block_image_idx" ON "pages_blocks_quote_block" USING btree ("image_id");
CREATE UNIQUE INDEX "pages_blocks_quote_block_locales_locale_parent_id_unique" ON "pages_blocks_quote_block_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "pages_blocks_cta_block_buttons_order_idx" ON "pages_blocks_cta_block_buttons" USING btree ("_order");
CREATE INDEX "pages_blocks_cta_block_buttons_parent_id_idx" ON "pages_blocks_cta_block_buttons" USING btree ("_parent_id");
CREATE UNIQUE INDEX "pages_blocks_cta_block_buttons_locales_locale_parent_id_uniq" ON "pages_blocks_cta_block_buttons_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "pages_blocks_cta_block_order_idx" ON "pages_blocks_cta_block" USING btree ("_order");
CREATE INDEX "pages_blocks_cta_block_parent_id_idx" ON "pages_blocks_cta_block" USING btree ("_parent_id");
CREATE INDEX "pages_blocks_cta_block_path_idx" ON "pages_blocks_cta_block" USING btree ("_path");
CREATE UNIQUE INDEX "pages_blocks_cta_block_locales_locale_parent_id_unique" ON "pages_blocks_cta_block_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "pages_blocks_contact_form_block_order_idx" ON "pages_blocks_contact_form_block" USING btree ("_order");
CREATE INDEX "pages_blocks_contact_form_block_parent_id_idx" ON "pages_blocks_contact_form_block" USING btree ("_parent_id");
CREATE INDEX "pages_blocks_contact_form_block_path_idx" ON "pages_blocks_contact_form_block" USING btree ("_path");
CREATE UNIQUE INDEX "pages_blocks_contact_form_block_locales_locale_parent_id_uni" ON "pages_blocks_contact_form_block_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "pages_blocks_timeline_block_items_order_idx" ON "pages_blocks_timeline_block_items" USING btree ("_order");
CREATE INDEX "pages_blocks_timeline_block_items_parent_id_idx" ON "pages_blocks_timeline_block_items" USING btree ("_parent_id");
CREATE INDEX "pages_blocks_timeline_block_items_image_idx" ON "pages_blocks_timeline_block_items" USING btree ("image_id");
CREATE UNIQUE INDEX "pages_blocks_timeline_block_items_locales_locale_parent_id_u" ON "pages_blocks_timeline_block_items_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "pages_blocks_timeline_block_order_idx" ON "pages_blocks_timeline_block" USING btree ("_order");
CREATE INDEX "pages_blocks_timeline_block_parent_id_idx" ON "pages_blocks_timeline_block" USING btree ("_parent_id");
CREATE INDEX "pages_blocks_timeline_block_path_idx" ON "pages_blocks_timeline_block" USING btree ("_path");
CREATE UNIQUE INDEX "pages_blocks_timeline_block_locales_locale_parent_id_unique" ON "pages_blocks_timeline_block_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "pages_blocks_divider_block_order_idx" ON "pages_blocks_divider_block" USING btree ("_order");
CREATE INDEX "pages_blocks_divider_block_parent_id_idx" ON "pages_blocks_divider_block" USING btree ("_parent_id");
CREATE INDEX "pages_blocks_divider_block_path_idx" ON "pages_blocks_divider_block" USING btree ("_path");
CREATE INDEX "pages_blocks_video_block_order_idx" ON "pages_blocks_video_block" USING btree ("_order");
CREATE INDEX "pages_blocks_video_block_parent_id_idx" ON "pages_blocks_video_block" USING btree ("_parent_id");
CREATE INDEX "pages_blocks_video_block_path_idx" ON "pages_blocks_video_block" USING btree ("_path");
CREATE UNIQUE INDEX "pages_blocks_video_block_locales_locale_parent_id_unique" ON "pages_blocks_video_block_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "pages_blocks_posts_list_block_order_idx" ON "pages_blocks_posts_list_block" USING btree ("_order");
CREATE INDEX "pages_blocks_posts_list_block_parent_id_idx" ON "pages_blocks_posts_list_block" USING btree ("_parent_id");
CREATE INDEX "pages_blocks_posts_list_block_path_idx" ON "pages_blocks_posts_list_block" USING btree ("_path");
CREATE UNIQUE INDEX "pages_blocks_posts_list_block_locales_locale_parent_id_uniqu" ON "pages_blocks_posts_list_block_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "pages_blocks_testimonials_block_order_idx" ON "pages_blocks_testimonials_block" USING btree ("_order");
CREATE INDEX "pages_blocks_testimonials_block_parent_id_idx" ON "pages_blocks_testimonials_block" USING btree ("_parent_id");
CREATE INDEX "pages_blocks_testimonials_block_path_idx" ON "pages_blocks_testimonials_block" USING btree ("_path");
CREATE UNIQUE INDEX "pages_blocks_testimonials_block_locales_locale_parent_id_uni" ON "pages_blocks_testimonials_block_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "pages_blocks_newsletter_block_available_interests_order_idx" ON "pages_blocks_newsletter_block_available_interests" USING btree ("order");
CREATE INDEX "pages_blocks_newsletter_block_available_interests_parent_idx" ON "pages_blocks_newsletter_block_available_interests" USING btree ("parent_id");
CREATE INDEX "pages_blocks_newsletter_block_order_idx" ON "pages_blocks_newsletter_block" USING btree ("_order");
CREATE INDEX "pages_blocks_newsletter_block_parent_id_idx" ON "pages_blocks_newsletter_block" USING btree ("_parent_id");
CREATE INDEX "pages_blocks_newsletter_block_path_idx" ON "pages_blocks_newsletter_block" USING btree ("_path");
CREATE INDEX "pages_blocks_newsletter_block_image_idx" ON "pages_blocks_newsletter_block" USING btree ("image_id");
CREATE UNIQUE INDEX "pages_blocks_newsletter_block_locales_locale_parent_id_uniqu" ON "pages_blocks_newsletter_block_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "pages_blocks_process_steps_block_steps_order_idx" ON "pages_blocks_process_steps_block_steps" USING btree ("_order");
CREATE INDEX "pages_blocks_process_steps_block_steps_parent_id_idx" ON "pages_blocks_process_steps_block_steps" USING btree ("_parent_id");
CREATE INDEX "pages_blocks_process_steps_block_steps_image_idx" ON "pages_blocks_process_steps_block_steps" USING btree ("image_id");
CREATE UNIQUE INDEX "pages_blocks_process_steps_block_steps_locales_locale_parent" ON "pages_blocks_process_steps_block_steps_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "pages_blocks_process_steps_block_order_idx" ON "pages_blocks_process_steps_block" USING btree ("_order");
CREATE INDEX "pages_blocks_process_steps_block_parent_id_idx" ON "pages_blocks_process_steps_block" USING btree ("_parent_id");
CREATE INDEX "pages_blocks_process_steps_block_path_idx" ON "pages_blocks_process_steps_block" USING btree ("_path");
CREATE UNIQUE INDEX "pages_blocks_process_steps_block_locales_locale_parent_id_un" ON "pages_blocks_process_steps_block_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "pages_tenant_idx" ON "pages" USING btree ("tenant_id");
CREATE INDEX "pages_hero_hero_image_idx" ON "pages" USING btree ("hero_image_id");
CREATE INDEX "pages_seo_seo_og_image_idx" ON "pages" USING btree ("seo_og_image_id");
CREATE INDEX "pages_updated_at_idx" ON "pages" USING btree ("updated_at");
CREATE INDEX "pages_created_at_idx" ON "pages" USING btree ("created_at");
CREATE UNIQUE INDEX "pages_locales_locale_parent_id_unique" ON "pages_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "pages_rels_order_idx" ON "pages_rels" USING btree ("order");
CREATE INDEX "pages_rels_parent_idx" ON "pages_rels" USING btree ("parent_id");
CREATE INDEX "pages_rels_path_idx" ON "pages_rels" USING btree ("path");
CREATE INDEX "pages_rels_categories_id_idx" ON "pages_rels" USING btree ("categories_id");
CREATE INDEX "pages_rels_testimonials_id_idx" ON "pages_rels" USING btree ("testimonials_id");
CREATE INDEX "posts_tenant_idx" ON "posts" USING btree ("tenant_id");
CREATE INDEX "posts_featured_image_idx" ON "posts" USING btree ("featured_image_id");
CREATE INDEX "posts_seo_seo_og_image_idx" ON "posts" USING btree ("seo_og_image_id");
CREATE INDEX "posts_updated_at_idx" ON "posts" USING btree ("updated_at");
CREATE INDEX "posts_created_at_idx" ON "posts" USING btree ("created_at");
CREATE UNIQUE INDEX "posts_locales_locale_parent_id_unique" ON "posts_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "posts_rels_order_idx" ON "posts_rels" USING btree ("order");
CREATE INDEX "posts_rels_parent_idx" ON "posts_rels" USING btree ("parent_id");
CREATE INDEX "posts_rels_path_idx" ON "posts_rels" USING btree ("path");
CREATE INDEX "posts_rels_categories_id_idx" ON "posts_rels" USING btree ("categories_id");
CREATE INDEX "categories_tenant_idx" ON "categories" USING btree ("tenant_id");
CREATE INDEX "categories_updated_at_idx" ON "categories" USING btree ("updated_at");
CREATE INDEX "categories_created_at_idx" ON "categories" USING btree ("created_at");
CREATE UNIQUE INDEX "categories_locales_locale_parent_id_unique" ON "categories_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "social_links_tenant_idx" ON "social_links" USING btree ("tenant_id");
CREATE INDEX "social_links_updated_at_idx" ON "social_links" USING btree ("updated_at");
CREATE INDEX "social_links_created_at_idx" ON "social_links" USING btree ("created_at");
CREATE INDEX "testimonials_tenant_idx" ON "testimonials" USING btree ("tenant_id");
CREATE INDEX "testimonials_image_idx" ON "testimonials" USING btree ("image_id");
CREATE INDEX "testimonials_updated_at_idx" ON "testimonials" USING btree ("updated_at");
CREATE INDEX "testimonials_created_at_idx" ON "testimonials" USING btree ("created_at");
CREATE UNIQUE INDEX "testimonials_locales_locale_parent_id_unique" ON "testimonials_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "newsletter_subscribers_interests_order_idx" ON "newsletter_subscribers_interests" USING btree ("order");
CREATE INDEX "newsletter_subscribers_interests_parent_idx" ON "newsletter_subscribers_interests" USING btree ("parent_id");
CREATE INDEX "newsletter_subscribers_tenant_idx" ON "newsletter_subscribers" USING btree ("tenant_id");
CREATE INDEX "newsletter_subscribers_updated_at_idx" ON "newsletter_subscribers" USING btree ("updated_at");
CREATE INDEX "newsletter_subscribers_created_at_idx" ON "newsletter_subscribers" USING btree ("created_at");
CREATE INDEX "cookie_configurations_enabled_categories_order_idx" ON "cookie_configurations_enabled_categories" USING btree ("order");
CREATE INDEX "cookie_configurations_enabled_categories_parent_idx" ON "cookie_configurations_enabled_categories" USING btree ("parent_id");
CREATE UNIQUE INDEX "cookie_configurations_tenant_idx" ON "cookie_configurations" USING btree ("tenant_id");
CREATE INDEX "cookie_configurations_updated_at_idx" ON "cookie_configurations" USING btree ("updated_at");
CREATE INDEX "cookie_configurations_created_at_idx" ON "cookie_configurations" USING btree ("created_at");
CREATE INDEX "cookie_inventory_tenant_idx" ON "cookie_inventory" USING btree ("tenant_id");
CREATE INDEX "cookie_inventory_updated_at_idx" ON "cookie_inventory" USING btree ("updated_at");
CREATE INDEX "cookie_inventory_created_at_idx" ON "cookie_inventory" USING btree ("created_at");
CREATE UNIQUE INDEX "consent_logs_consent_id_idx" ON "consent_logs" USING btree ("consent_id");
CREATE INDEX "consent_logs_tenant_idx" ON "consent_logs" USING btree ("tenant_id");
CREATE INDEX "consent_logs_updated_at_idx" ON "consent_logs" USING btree ("updated_at");
CREATE INDEX "consent_logs_created_at_idx" ON "consent_logs" USING btree ("created_at");
CREATE UNIQUE INDEX "privacy_policy_settings_tenant_idx" ON "privacy_policy_settings" USING btree ("tenant_id");
CREATE INDEX "privacy_policy_settings_updated_at_idx" ON "privacy_policy_settings" USING btree ("updated_at");
CREATE INDEX "privacy_policy_settings_created_at_idx" ON "privacy_policy_settings" USING btree ("created_at");
CREATE INDEX "forms_blocks_checkbox_order_idx" ON "forms_blocks_checkbox" USING btree ("_order");
CREATE INDEX "forms_blocks_checkbox_parent_id_idx" ON "forms_blocks_checkbox" USING btree ("_parent_id");
CREATE INDEX "forms_blocks_checkbox_path_idx" ON "forms_blocks_checkbox" USING btree ("_path");
CREATE UNIQUE INDEX "forms_blocks_checkbox_locales_locale_parent_id_unique" ON "forms_blocks_checkbox_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "forms_blocks_email_order_idx" ON "forms_blocks_email" USING btree ("_order");
CREATE INDEX "forms_blocks_email_parent_id_idx" ON "forms_blocks_email" USING btree ("_parent_id");
CREATE INDEX "forms_blocks_email_path_idx" ON "forms_blocks_email" USING btree ("_path");
CREATE UNIQUE INDEX "forms_blocks_email_locales_locale_parent_id_unique" ON "forms_blocks_email_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "forms_blocks_message_order_idx" ON "forms_blocks_message" USING btree ("_order");
CREATE INDEX "forms_blocks_message_parent_id_idx" ON "forms_blocks_message" USING btree ("_parent_id");
CREATE INDEX "forms_blocks_message_path_idx" ON "forms_blocks_message" USING btree ("_path");
CREATE UNIQUE INDEX "forms_blocks_message_locales_locale_parent_id_unique" ON "forms_blocks_message_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "forms_blocks_number_order_idx" ON "forms_blocks_number" USING btree ("_order");
CREATE INDEX "forms_blocks_number_parent_id_idx" ON "forms_blocks_number" USING btree ("_parent_id");
CREATE INDEX "forms_blocks_number_path_idx" ON "forms_blocks_number" USING btree ("_path");
CREATE UNIQUE INDEX "forms_blocks_number_locales_locale_parent_id_unique" ON "forms_blocks_number_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "forms_blocks_select_options_order_idx" ON "forms_blocks_select_options" USING btree ("_order");
CREATE INDEX "forms_blocks_select_options_parent_id_idx" ON "forms_blocks_select_options" USING btree ("_parent_id");
CREATE UNIQUE INDEX "forms_blocks_select_options_locales_locale_parent_id_unique" ON "forms_blocks_select_options_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "forms_blocks_select_order_idx" ON "forms_blocks_select" USING btree ("_order");
CREATE INDEX "forms_blocks_select_parent_id_idx" ON "forms_blocks_select" USING btree ("_parent_id");
CREATE INDEX "forms_blocks_select_path_idx" ON "forms_blocks_select" USING btree ("_path");
CREATE UNIQUE INDEX "forms_blocks_select_locales_locale_parent_id_unique" ON "forms_blocks_select_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "forms_blocks_text_order_idx" ON "forms_blocks_text" USING btree ("_order");
CREATE INDEX "forms_blocks_text_parent_id_idx" ON "forms_blocks_text" USING btree ("_parent_id");
CREATE INDEX "forms_blocks_text_path_idx" ON "forms_blocks_text" USING btree ("_path");
CREATE UNIQUE INDEX "forms_blocks_text_locales_locale_parent_id_unique" ON "forms_blocks_text_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "forms_blocks_textarea_order_idx" ON "forms_blocks_textarea" USING btree ("_order");
CREATE INDEX "forms_blocks_textarea_parent_id_idx" ON "forms_blocks_textarea" USING btree ("_parent_id");
CREATE INDEX "forms_blocks_textarea_path_idx" ON "forms_blocks_textarea" USING btree ("_path");
CREATE UNIQUE INDEX "forms_blocks_textarea_locales_locale_parent_id_unique" ON "forms_blocks_textarea_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "forms_emails_order_idx" ON "forms_emails" USING btree ("_order");
CREATE INDEX "forms_emails_parent_id_idx" ON "forms_emails" USING btree ("_parent_id");
CREATE UNIQUE INDEX "forms_emails_locales_locale_parent_id_unique" ON "forms_emails_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "forms_updated_at_idx" ON "forms" USING btree ("updated_at");
CREATE INDEX "forms_created_at_idx" ON "forms" USING btree ("created_at");
CREATE UNIQUE INDEX "forms_locales_locale_parent_id_unique" ON "forms_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "form_submissions_submission_data_order_idx" ON "form_submissions_submission_data" USING btree ("_order");
CREATE INDEX "form_submissions_submission_data_parent_id_idx" ON "form_submissions_submission_data" USING btree ("_parent_id");
CREATE INDEX "form_submissions_form_idx" ON "form_submissions" USING btree ("form_id");
CREATE INDEX "form_submissions_updated_at_idx" ON "form_submissions" USING btree ("updated_at");
CREATE INDEX "form_submissions_created_at_idx" ON "form_submissions" USING btree ("created_at");
CREATE UNIQUE INDEX "redirects_from_idx" ON "redirects" USING btree ("from");
CREATE INDEX "redirects_updated_at_idx" ON "redirects" USING btree ("updated_at");
CREATE INDEX "redirects_created_at_idx" ON "redirects" USING btree ("created_at");
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_media_id_idx" ON "payload_locked_documents_rels" USING btree ("media_id");
CREATE INDEX "payload_locked_documents_rels_tenants_id_idx" ON "payload_locked_documents_rels" USING btree ("tenants_id");
CREATE INDEX "payload_locked_documents_rels_pages_id_idx" ON "payload_locked_documents_rels" USING btree ("pages_id");
CREATE INDEX "payload_locked_documents_rels_posts_id_idx" ON "payload_locked_documents_rels" USING btree ("posts_id");
CREATE INDEX "payload_locked_documents_rels_categories_id_idx" ON "payload_locked_documents_rels" USING btree ("categories_id");
CREATE INDEX "payload_locked_documents_rels_social_links_id_idx" ON "payload_locked_documents_rels" USING btree ("social_links_id");
CREATE INDEX "payload_locked_documents_rels_testimonials_id_idx" ON "payload_locked_documents_rels" USING btree ("testimonials_id");
CREATE INDEX "payload_locked_documents_rels_newsletter_subscribers_id_idx" ON "payload_locked_documents_rels" USING btree ("newsletter_subscribers_id");
CREATE INDEX "payload_locked_documents_rels_cookie_configurations_id_idx" ON "payload_locked_documents_rels" USING btree ("cookie_configurations_id");
CREATE INDEX "payload_locked_documents_rels_cookie_inventory_id_idx" ON "payload_locked_documents_rels" USING btree ("cookie_inventory_id");
CREATE INDEX "payload_locked_documents_rels_consent_logs_id_idx" ON "payload_locked_documents_rels" USING btree ("consent_logs_id");
CREATE INDEX "payload_locked_documents_rels_privacy_policy_settings_id_idx" ON "payload_locked_documents_rels" USING btree ("privacy_policy_settings_id");
CREATE INDEX "payload_locked_documents_rels_forms_id_idx" ON "payload_locked_documents_rels" USING btree ("forms_id");
CREATE INDEX "payload_locked_documents_rels_form_submissions_id_idx" ON "payload_locked_documents_rels" USING btree ("form_submissions_id");
CREATE INDEX "payload_locked_documents_rels_redirects_id_idx" ON "payload_locked_documents_rels" USING btree ("redirects_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 "site_settings_logo_idx" ON "site_settings" USING btree ("logo_id");
CREATE INDEX "site_settings_favicon_idx" ON "site_settings" USING btree ("favicon_id");
CREATE INDEX "site_settings_seo_seo_default_og_image_idx" ON "site_settings" USING btree ("seo_default_og_image_id");
CREATE UNIQUE INDEX "site_settings_locales_locale_parent_id_unique" ON "site_settings_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "navigation_main_menu_submenu_order_idx" ON "navigation_main_menu_submenu" USING btree ("_order");
CREATE INDEX "navigation_main_menu_submenu_parent_id_idx" ON "navigation_main_menu_submenu" USING btree ("_parent_id");
CREATE INDEX "navigation_main_menu_submenu_page_idx" ON "navigation_main_menu_submenu" USING btree ("page_id");
CREATE UNIQUE INDEX "navigation_main_menu_submenu_locales_locale_parent_id_unique" ON "navigation_main_menu_submenu_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "navigation_main_menu_order_idx" ON "navigation_main_menu" USING btree ("_order");
CREATE INDEX "navigation_main_menu_parent_id_idx" ON "navigation_main_menu" USING btree ("_parent_id");
CREATE INDEX "navigation_main_menu_page_idx" ON "navigation_main_menu" USING btree ("page_id");
CREATE UNIQUE INDEX "navigation_main_menu_locales_locale_parent_id_unique" ON "navigation_main_menu_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "navigation_footer_menu_order_idx" ON "navigation_footer_menu" USING btree ("_order");
CREATE INDEX "navigation_footer_menu_parent_id_idx" ON "navigation_footer_menu" USING btree ("_parent_id");
CREATE INDEX "navigation_footer_menu_page_idx" ON "navigation_footer_menu" USING btree ("page_id");
CREATE UNIQUE INDEX "navigation_footer_menu_locales_locale_parent_id_unique" ON "navigation_footer_menu_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "seo_settings_social_profiles_order_idx" ON "seo_settings_social_profiles" USING btree ("_order");
CREATE INDEX "seo_settings_social_profiles_parent_id_idx" ON "seo_settings_social_profiles" USING btree ("_parent_id");
CREATE INDEX "seo_settings_local_business_opening_hours_order_idx" ON "seo_settings_local_business_opening_hours" USING btree ("_order");
CREATE INDEX "seo_settings_local_business_opening_hours_parent_id_idx" ON "seo_settings_local_business_opening_hours" USING btree ("_parent_id");
CREATE INDEX "seo_settings_meta_defaults_meta_defaults_default_og_imag_idx" ON "seo_settings" USING btree ("meta_defaults_default_og_image_id");
CREATE INDEX "seo_settings_organization_organization_logo_idx" ON "seo_settings" USING btree ("organization_logo_id");
CREATE UNIQUE INDEX "seo_settings_locales_locale_parent_id_unique" ON "seo_settings_locales" USING btree ("_locale","_parent_id");
CREATE INDEX "seo_settings_texts_order_parent" ON "seo_settings_texts" USING btree ("order","parent_id");`)
}
export async function down({ db, payload, req }: MigrateDownArgs): Promise<void> {
await db.execute(sql`
DROP TABLE "users_tenants" CASCADE;
DROP TABLE "users_sessions" CASCADE;
DROP TABLE "users" CASCADE;
DROP TABLE "media" CASCADE;
DROP TABLE "media_texts" CASCADE;
DROP TABLE "tenants_domains" CASCADE;
DROP TABLE "tenants" CASCADE;
DROP TABLE "pages_blocks_hero_block" CASCADE;
DROP TABLE "pages_blocks_hero_block_locales" CASCADE;
DROP TABLE "pages_blocks_text_block" CASCADE;
DROP TABLE "pages_blocks_text_block_locales" CASCADE;
DROP TABLE "pages_blocks_image_text_block" CASCADE;
DROP TABLE "pages_blocks_image_text_block_locales" CASCADE;
DROP TABLE "pages_blocks_card_grid_block_cards" CASCADE;
DROP TABLE "pages_blocks_card_grid_block_cards_locales" CASCADE;
DROP TABLE "pages_blocks_card_grid_block" CASCADE;
DROP TABLE "pages_blocks_card_grid_block_locales" CASCADE;
DROP TABLE "pages_blocks_quote_block" CASCADE;
DROP TABLE "pages_blocks_quote_block_locales" CASCADE;
DROP TABLE "pages_blocks_cta_block_buttons" CASCADE;
DROP TABLE "pages_blocks_cta_block_buttons_locales" CASCADE;
DROP TABLE "pages_blocks_cta_block" CASCADE;
DROP TABLE "pages_blocks_cta_block_locales" CASCADE;
DROP TABLE "pages_blocks_contact_form_block" CASCADE;
DROP TABLE "pages_blocks_contact_form_block_locales" CASCADE;
DROP TABLE "pages_blocks_timeline_block_items" CASCADE;
DROP TABLE "pages_blocks_timeline_block_items_locales" CASCADE;
DROP TABLE "pages_blocks_timeline_block" CASCADE;
DROP TABLE "pages_blocks_timeline_block_locales" CASCADE;
DROP TABLE "pages_blocks_divider_block" CASCADE;
DROP TABLE "pages_blocks_video_block" CASCADE;
DROP TABLE "pages_blocks_video_block_locales" CASCADE;
DROP TABLE "pages_blocks_posts_list_block" CASCADE;
DROP TABLE "pages_blocks_posts_list_block_locales" CASCADE;
DROP TABLE "pages_blocks_testimonials_block" CASCADE;
DROP TABLE "pages_blocks_testimonials_block_locales" CASCADE;
DROP TABLE "pages_blocks_newsletter_block_available_interests" CASCADE;
DROP TABLE "pages_blocks_newsletter_block" CASCADE;
DROP TABLE "pages_blocks_newsletter_block_locales" CASCADE;
DROP TABLE "pages_blocks_process_steps_block_steps" CASCADE;
DROP TABLE "pages_blocks_process_steps_block_steps_locales" CASCADE;
DROP TABLE "pages_blocks_process_steps_block" CASCADE;
DROP TABLE "pages_blocks_process_steps_block_locales" CASCADE;
DROP TABLE "pages" CASCADE;
DROP TABLE "pages_locales" CASCADE;
DROP TABLE "pages_rels" CASCADE;
DROP TABLE "posts" CASCADE;
DROP TABLE "posts_locales" CASCADE;
DROP TABLE "posts_rels" CASCADE;
DROP TABLE "categories" CASCADE;
DROP TABLE "categories_locales" CASCADE;
DROP TABLE "social_links" CASCADE;
DROP TABLE "testimonials" CASCADE;
DROP TABLE "testimonials_locales" CASCADE;
DROP TABLE "newsletter_subscribers_interests" CASCADE;
DROP TABLE "newsletter_subscribers" CASCADE;
DROP TABLE "cookie_configurations_enabled_categories" CASCADE;
DROP TABLE "cookie_configurations" CASCADE;
DROP TABLE "cookie_inventory" CASCADE;
DROP TABLE "consent_logs" CASCADE;
DROP TABLE "privacy_policy_settings" CASCADE;
DROP TABLE "forms_blocks_checkbox" CASCADE;
DROP TABLE "forms_blocks_checkbox_locales" CASCADE;
DROP TABLE "forms_blocks_email" CASCADE;
DROP TABLE "forms_blocks_email_locales" CASCADE;
DROP TABLE "forms_blocks_message" CASCADE;
DROP TABLE "forms_blocks_message_locales" CASCADE;
DROP TABLE "forms_blocks_number" CASCADE;
DROP TABLE "forms_blocks_number_locales" CASCADE;
DROP TABLE "forms_blocks_select_options" CASCADE;
DROP TABLE "forms_blocks_select_options_locales" CASCADE;
DROP TABLE "forms_blocks_select" CASCADE;
DROP TABLE "forms_blocks_select_locales" CASCADE;
DROP TABLE "forms_blocks_text" CASCADE;
DROP TABLE "forms_blocks_text_locales" CASCADE;
DROP TABLE "forms_blocks_textarea" CASCADE;
DROP TABLE "forms_blocks_textarea_locales" CASCADE;
DROP TABLE "forms_emails" CASCADE;
DROP TABLE "forms_emails_locales" CASCADE;
DROP TABLE "forms" CASCADE;
DROP TABLE "forms_locales" CASCADE;
DROP TABLE "form_submissions_submission_data" CASCADE;
DROP TABLE "form_submissions" CASCADE;
DROP TABLE "redirects" 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 "site_settings" CASCADE;
DROP TABLE "site_settings_locales" CASCADE;
DROP TABLE "navigation_main_menu_submenu" CASCADE;
DROP TABLE "navigation_main_menu_submenu_locales" CASCADE;
DROP TABLE "navigation_main_menu" CASCADE;
DROP TABLE "navigation_main_menu_locales" CASCADE;
DROP TABLE "navigation_footer_menu" CASCADE;
DROP TABLE "navigation_footer_menu_locales" CASCADE;
DROP TABLE "navigation" CASCADE;
DROP TABLE "seo_settings_social_profiles" CASCADE;
DROP TABLE "seo_settings_local_business_opening_hours" CASCADE;
DROP TABLE "seo_settings" CASCADE;
DROP TABLE "seo_settings_locales" CASCADE;
DROP TABLE "seo_settings_texts" CASCADE;
DROP TYPE "public"."_locales";
DROP TYPE "public"."enum_pages_blocks_hero_block_alignment";
DROP TYPE "public"."enum_pages_blocks_hero_block_cta_style";
DROP TYPE "public"."enum_pages_blocks_text_block_width";
DROP TYPE "public"."enum_pages_blocks_image_text_block_image_position";
DROP TYPE "public"."enum_pages_blocks_card_grid_block_columns";
DROP TYPE "public"."enum_pages_blocks_quote_block_style";
DROP TYPE "public"."enum_pages_blocks_cta_block_buttons_style";
DROP TYPE "public"."enum_pages_blocks_cta_block_background_color";
DROP TYPE "public"."enum_pages_blocks_timeline_block_layout";
DROP TYPE "public"."enum_pages_blocks_timeline_block_marker_style";
DROP TYPE "public"."enum_pages_blocks_timeline_block_background_color";
DROP TYPE "public"."enum_pages_blocks_divider_block_style";
DROP TYPE "public"."enum_pages_blocks_divider_block_spacing";
DROP TYPE "public"."enum_pages_blocks_video_block_aspect_ratio";
DROP TYPE "public"."enum_pages_blocks_posts_list_block_post_type";
DROP TYPE "public"."enum_pages_blocks_posts_list_block_layout";
DROP TYPE "public"."enum_pages_blocks_posts_list_block_columns";
DROP TYPE "public"."enum_pages_blocks_posts_list_block_background_color";
DROP TYPE "public"."enum_pages_blocks_testimonials_block_layout";
DROP TYPE "public"."enum_pages_blocks_testimonials_block_columns";
DROP TYPE "public"."enum_pages_blocks_testimonials_block_display_mode";
DROP TYPE "public"."enum_pages_blocks_testimonials_block_background_color";
DROP TYPE "public"."enum_pages_blocks_newsletter_block_available_interests";
DROP TYPE "public"."enum_pages_blocks_newsletter_block_layout";
DROP TYPE "public"."enum_pages_blocks_newsletter_block_image_position";
DROP TYPE "public"."enum_pages_blocks_newsletter_block_background_color";
DROP TYPE "public"."enum_pages_blocks_process_steps_block_layout";
DROP TYPE "public"."enum_pages_blocks_process_steps_block_cta_variant";
DROP TYPE "public"."enum_pages_blocks_process_steps_block_background_color";
DROP TYPE "public"."enum_pages_status";
DROP TYPE "public"."enum_posts_type";
DROP TYPE "public"."enum_posts_status";
DROP TYPE "public"."enum_social_links_platform";
DROP TYPE "public"."enum_newsletter_subscribers_interests";
DROP TYPE "public"."enum_newsletter_subscribers_status";
DROP TYPE "public"."enum_cookie_configurations_enabled_categories";
DROP TYPE "public"."enum_cookie_configurations_styling_position";
DROP TYPE "public"."enum_cookie_configurations_styling_theme";
DROP TYPE "public"."enum_cookie_inventory_category";
DROP TYPE "public"."enum_privacy_policy_settings_provider";
DROP TYPE "public"."enum_privacy_policy_settings_alfright_language";
DROP TYPE "public"."enum_forms_confirmation_type";
DROP TYPE "public"."enum_redirects_to_type";
DROP TYPE "public"."enum_navigation_main_menu_submenu_link_type";
DROP TYPE "public"."enum_navigation_main_menu_type";
DROP TYPE "public"."enum_navigation_footer_menu_link_type";
DROP TYPE "public"."enum_seo_settings_social_profiles_platform";
DROP TYPE "public"."enum_seo_settings_local_business_type";
DROP TYPE "public"."enum_seo_settings_local_business_price_range";`)
}