mirror of
https://github.com/complexcaresolutions/cms.c2sgmbh.git
synced 2026-03-17 20:54:11 +00:00
Community Management Phase 1 completion: - Add Community Inbox admin view with filters, stats, and reply functionality - Add Rules Engine service for automated interaction processing - Add YouTube OAuth flow (auth, callback, token refresh) - Add Comment Sync cron job (every 15 minutes) - Add Community Export API (PDF/Excel/CSV) - Fix database schema for community_rules hasMany fields - Fix access control in communityAccess.ts Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20661 lines
804 KiB
TypeScript
20661 lines
804 KiB
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* This file was automatically generated by Payload.
|
|
* DO NOT MODIFY IT BY HAND. Instead, modify your source Payload config,
|
|
* and re-run `payload generate:db-schema` to regenerate this file.
|
|
*/
|
|
|
|
import type {} from "@payloadcms/db-postgres";
|
|
import {
|
|
pgTable,
|
|
index,
|
|
uniqueIndex,
|
|
foreignKey,
|
|
integer,
|
|
varchar,
|
|
timestamp,
|
|
serial,
|
|
boolean,
|
|
numeric,
|
|
text,
|
|
jsonb,
|
|
type AnyPgColumn,
|
|
pgEnum,
|
|
} from "@payloadcms/db-postgres/drizzle/pg-core";
|
|
import { sql, relations } from "@payloadcms/db-postgres/drizzle";
|
|
export const enum__locales = pgEnum("enum__locales", ["de", "en"]);
|
|
export const enum_users_youtube_role = pgEnum("enum_users_youtube_role", [
|
|
"none",
|
|
"viewer",
|
|
"editor",
|
|
"producer",
|
|
"creator",
|
|
"manager",
|
|
]);
|
|
export const enum_users_community_role = pgEnum("enum_users_community_role", [
|
|
"none",
|
|
"viewer",
|
|
"moderator",
|
|
"manager",
|
|
]);
|
|
export const enum_pages_blocks_hero_block_alignment = pgEnum("enum_pages_blocks_hero_block_alignment", [
|
|
"left",
|
|
"center",
|
|
"right",
|
|
]);
|
|
export const enum_pages_blocks_hero_block_cta_style = pgEnum("enum_pages_blocks_hero_block_cta_style", [
|
|
"primary",
|
|
"secondary",
|
|
"outline",
|
|
]);
|
|
export const enum_pages_blocks_hero_slider_block_slides_text_alignment = pgEnum(
|
|
"enum_pages_blocks_hero_slider_block_slides_text_alignment",
|
|
["left", "center", "right"],
|
|
);
|
|
export const enum_pages_blocks_hero_slider_block_slides_vertical_position = pgEnum(
|
|
"enum_pages_blocks_hero_slider_block_slides_vertical_position",
|
|
["top", "center", "bottom"],
|
|
);
|
|
export const enum_pages_blocks_hero_slider_block_slides_overlay_color = pgEnum(
|
|
"enum_pages_blocks_hero_slider_block_slides_overlay_color",
|
|
["dark", "light", "primary", "gradient-bottom", "gradient-top"],
|
|
);
|
|
export const enum_pages_blocks_hero_slider_block_slides_overlay_opacity = pgEnum(
|
|
"enum_pages_blocks_hero_slider_block_slides_overlay_opacity",
|
|
["20", "30", "40", "50", "60", "70", "80"],
|
|
);
|
|
export const enum_pages_blocks_hero_slider_block_slides_primary_cta_style = pgEnum(
|
|
"enum_pages_blocks_hero_slider_block_slides_primary_cta_style",
|
|
["primary", "secondary", "outline-white", "outline-dark"],
|
|
);
|
|
export const enum_pages_blocks_hero_slider_block_slides_secondary_cta_style = pgEnum(
|
|
"enum_pages_blocks_hero_slider_block_slides_secondary_cta_style",
|
|
["primary", "secondary", "outline-white", "outline-dark", "text"],
|
|
);
|
|
export const enum_pages_blocks_hero_slider_block_slides_text_color = pgEnum(
|
|
"enum_pages_blocks_hero_slider_block_slides_text_color",
|
|
["white", "dark", "primary"],
|
|
);
|
|
export const enum_pages_blocks_hero_slider_block_settings_animation = pgEnum(
|
|
"enum_pages_blocks_hero_slider_block_settings_animation",
|
|
["fade", "slide", "zoom", "flip", "none"],
|
|
);
|
|
export const enum_pages_blocks_hero_slider_block_settings_animation_duration = pgEnum(
|
|
"enum_pages_blocks_hero_slider_block_settings_animation_duration",
|
|
["300", "500", "800", "1200"],
|
|
);
|
|
export const enum_pages_blocks_hero_slider_block_settings_autoplay_interval = pgEnum(
|
|
"enum_pages_blocks_hero_slider_block_settings_autoplay_interval",
|
|
["3000", "4000", "5000", "6000", "7000", "8000", "10000"],
|
|
);
|
|
export const enum_pages_blocks_hero_slider_block_navigation_arrows_style = pgEnum(
|
|
"enum_pages_blocks_hero_slider_block_navigation_arrows_style",
|
|
["default", "minimal", "square", "hover-only"],
|
|
);
|
|
export const enum_pages_blocks_hero_slider_block_navigation_arrows_position = pgEnum(
|
|
"enum_pages_blocks_hero_slider_block_navigation_arrows_position",
|
|
["sides", "bottom-left", "bottom-right", "bottom-center"],
|
|
);
|
|
export const enum_pages_blocks_hero_slider_block_navigation_dots_style = pgEnum(
|
|
"enum_pages_blocks_hero_slider_block_navigation_dots_style",
|
|
["dots", "lines", "numbers", "thumbnails", "progress"],
|
|
);
|
|
export const enum_pages_blocks_hero_slider_block_navigation_dots_position = pgEnum(
|
|
"enum_pages_blocks_hero_slider_block_navigation_dots_position",
|
|
["bottom-center", "bottom-left", "bottom-right", "left", "right"],
|
|
);
|
|
export const enum_pages_blocks_hero_slider_block_navigation_dots_color = pgEnum(
|
|
"enum_pages_blocks_hero_slider_block_navigation_dots_color",
|
|
["white", "dark", "primary"],
|
|
);
|
|
export const enum_pages_blocks_hero_slider_block_layout_height = pgEnum(
|
|
"enum_pages_blocks_hero_slider_block_layout_height",
|
|
["viewport", "large", "medium", "small", "compact", "auto"],
|
|
);
|
|
export const enum_pages_blocks_hero_slider_block_layout_mobile_height = pgEnum(
|
|
"enum_pages_blocks_hero_slider_block_layout_mobile_height",
|
|
["same", "viewport", "large", "medium", "small", "compact"],
|
|
);
|
|
export const enum_pages_blocks_hero_slider_block_layout_content_width = pgEnum(
|
|
"enum_pages_blocks_hero_slider_block_layout_content_width",
|
|
["container", "narrow", "wide", "full"],
|
|
);
|
|
export const enum_pages_blocks_image_slider_block_layout = pgEnum("enum_pages_blocks_image_slider_block_layout", [
|
|
"slider",
|
|
"grid",
|
|
"masonry",
|
|
"single",
|
|
"thumbs",
|
|
"filmstrip",
|
|
]);
|
|
export const enum_pages_blocks_image_slider_block_grid_cols = pgEnum("enum_pages_blocks_image_slider_block_grid_cols", [
|
|
"2",
|
|
"3",
|
|
"4",
|
|
"5",
|
|
"6",
|
|
]);
|
|
export const enum_pages_blocks_image_slider_block_grid_gap = pgEnum("enum_pages_blocks_image_slider_block_grid_gap", [
|
|
"0",
|
|
"8",
|
|
"16",
|
|
"24",
|
|
"32",
|
|
]);
|
|
export const enum_pages_blocks_image_slider_block_grid_aspect_ratio = pgEnum(
|
|
"enum_pages_blocks_image_slider_block_grid_aspect_ratio",
|
|
["square", "4-3", "16-9", "3-4", "auto"],
|
|
);
|
|
export const enum_pages_blocks_image_slider_block_slider_effect = pgEnum(
|
|
"enum_pages_blocks_image_slider_block_slider_effect",
|
|
["slide", "fade", "zoom", "flip", "coverflow", "cube"],
|
|
);
|
|
export const enum_pages_blocks_image_slider_block_slider_speed = pgEnum(
|
|
"enum_pages_blocks_image_slider_block_slider_speed",
|
|
["300", "500", "800"],
|
|
);
|
|
export const enum_pages_blocks_image_slider_block_slider_per_view = pgEnum(
|
|
"enum_pages_blocks_image_slider_block_slider_per_view",
|
|
["1", "2", "3", "4", "auto"],
|
|
);
|
|
export const enum_pages_blocks_image_slider_block_slider_gap = pgEnum(
|
|
"enum_pages_blocks_image_slider_block_slider_gap",
|
|
["0", "8", "16", "24"],
|
|
);
|
|
export const enum_pages_blocks_image_slider_block_slider_delay = pgEnum(
|
|
"enum_pages_blocks_image_slider_block_slider_delay",
|
|
["3000", "4000", "5000", "6000", "8000"],
|
|
);
|
|
export const enum_pages_blocks_image_slider_block_nav_arrow_style = pgEnum(
|
|
"enum_pages_blocks_image_slider_block_nav_arrow_style",
|
|
["default", "minimal", "square", "hover"],
|
|
);
|
|
export const enum_pages_blocks_image_slider_block_nav_dot_style = pgEnum(
|
|
"enum_pages_blocks_image_slider_block_nav_dot_style",
|
|
["dots", "lines", "numbers", "progress"],
|
|
);
|
|
export const enum_pages_blocks_image_slider_block_lightbox_bg = pgEnum(
|
|
"enum_pages_blocks_image_slider_block_lightbox_bg",
|
|
["dark", "light", "blur"],
|
|
);
|
|
export const enum_pages_blocks_image_slider_block_style_height = pgEnum(
|
|
"enum_pages_blocks_image_slider_block_style_height",
|
|
["auto", "300", "400", "500", "600", "full"],
|
|
);
|
|
export const enum_pages_blocks_image_slider_block_style_img_fit = pgEnum(
|
|
"enum_pages_blocks_image_slider_block_style_img_fit",
|
|
["cover", "contain", "fill"],
|
|
);
|
|
export const enum_pages_blocks_image_slider_block_style_rounded = pgEnum(
|
|
"enum_pages_blocks_image_slider_block_style_rounded",
|
|
["none", "sm", "md", "lg", "full"],
|
|
);
|
|
export const enum_pages_blocks_image_slider_block_style_hover_effect = pgEnum(
|
|
"enum_pages_blocks_image_slider_block_style_hover_effect",
|
|
["none", "zoom", "brighten", "darken", "overlay"],
|
|
);
|
|
export const enum_pages_blocks_image_slider_block_style_caption_pos = pgEnum(
|
|
"enum_pages_blocks_image_slider_block_style_caption_pos",
|
|
["below", "overlay", "hover", "hidden"],
|
|
);
|
|
export const enum_pages_blocks_image_slider_block_style_bg = pgEnum("enum_pages_blocks_image_slider_block_style_bg", [
|
|
"none",
|
|
"white",
|
|
"light",
|
|
"dark",
|
|
]);
|
|
export const enum_pages_blocks_image_slider_block_style_padding = pgEnum(
|
|
"enum_pages_blocks_image_slider_block_style_padding",
|
|
["none", "sm", "md", "lg"],
|
|
);
|
|
export const enum_pages_blocks_text_block_width = pgEnum("enum_pages_blocks_text_block_width", [
|
|
"narrow",
|
|
"medium",
|
|
"full",
|
|
]);
|
|
export const enum_pages_blocks_image_text_block_image_position = pgEnum(
|
|
"enum_pages_blocks_image_text_block_image_position",
|
|
["left", "right"],
|
|
);
|
|
export const enum_pages_blocks_card_grid_block_columns = pgEnum("enum_pages_blocks_card_grid_block_columns", [
|
|
"2",
|
|
"3",
|
|
"4",
|
|
]);
|
|
export const enum_pages_blocks_quote_block_style = pgEnum("enum_pages_blocks_quote_block_style", [
|
|
"simple",
|
|
"highlighted",
|
|
"with-image",
|
|
]);
|
|
export const enum_pages_blocks_cta_block_buttons_style = pgEnum("enum_pages_blocks_cta_block_buttons_style", [
|
|
"primary",
|
|
"secondary",
|
|
"outline",
|
|
]);
|
|
export const enum_pages_blocks_cta_block_background_color = pgEnum("enum_pages_blocks_cta_block_background_color", [
|
|
"dark",
|
|
"light",
|
|
"accent",
|
|
]);
|
|
export const enum_pages_blocks_timeline_block_layout = pgEnum("enum_pages_blocks_timeline_block_layout", [
|
|
"vertical",
|
|
"alternating",
|
|
"horizontal",
|
|
]);
|
|
export const enum_pages_blocks_timeline_block_marker_style = pgEnum("enum_pages_blocks_timeline_block_marker_style", [
|
|
"dot",
|
|
"number",
|
|
"icon",
|
|
"date",
|
|
]);
|
|
export const enum_pages_blocks_timeline_block_background_color = pgEnum(
|
|
"enum_pages_blocks_timeline_block_background_color",
|
|
["white", "light", "dark"],
|
|
);
|
|
export const enum_pages_blocks_divider_block_style = pgEnum("enum_pages_blocks_divider_block_style", [
|
|
"line",
|
|
"space",
|
|
"dots",
|
|
]);
|
|
export const enum_pages_blocks_divider_block_spacing = pgEnum("enum_pages_blocks_divider_block_spacing", [
|
|
"small",
|
|
"medium",
|
|
"large",
|
|
]);
|
|
export const enum_pages_blocks_video_block_source_type = pgEnum("enum_pages_blocks_video_block_source_type", [
|
|
"embed",
|
|
"upload",
|
|
"library",
|
|
"external",
|
|
]);
|
|
export const enum_pages_blocks_video_block_aspect_ratio = pgEnum("enum_pages_blocks_video_block_aspect_ratio", [
|
|
"16:9",
|
|
"4:3",
|
|
"1:1",
|
|
"9:16",
|
|
"21:9",
|
|
]);
|
|
export const enum_pages_blocks_video_block_size = pgEnum("enum_pages_blocks_video_block_size", [
|
|
"full",
|
|
"large",
|
|
"medium",
|
|
"small",
|
|
]);
|
|
export const enum_pages_blocks_video_block_alignment = pgEnum("enum_pages_blocks_video_block_alignment", [
|
|
"left",
|
|
"center",
|
|
"right",
|
|
]);
|
|
export const enum_pages_blocks_video_block_style_rounded = pgEnum("enum_pages_blocks_video_block_style_rounded", [
|
|
"none",
|
|
"sm",
|
|
"md",
|
|
"lg",
|
|
"xl",
|
|
]);
|
|
export const enum_pages_blocks_video_block_style_shadow = pgEnum("enum_pages_blocks_video_block_style_shadow", [
|
|
"none",
|
|
"sm",
|
|
"md",
|
|
"lg",
|
|
"xl",
|
|
]);
|
|
export const enum_pages_blocks_posts_list_block_post_type = pgEnum("enum_pages_blocks_posts_list_block_post_type", [
|
|
"blog",
|
|
"news",
|
|
"press",
|
|
"announcement",
|
|
"all",
|
|
]);
|
|
export const enum_pages_blocks_posts_list_block_layout = pgEnum("enum_pages_blocks_posts_list_block_layout", [
|
|
"grid",
|
|
"list",
|
|
"featured",
|
|
"compact",
|
|
"masonry",
|
|
]);
|
|
export const enum_pages_blocks_posts_list_block_columns = pgEnum("enum_pages_blocks_posts_list_block_columns", [
|
|
"2",
|
|
"3",
|
|
"4",
|
|
]);
|
|
export const enum_pages_blocks_posts_list_block_background_color = pgEnum(
|
|
"enum_pages_blocks_posts_list_block_background_color",
|
|
["white", "light", "dark"],
|
|
);
|
|
export const enum_pages_blocks_testimonials_block_layout = pgEnum("enum_pages_blocks_testimonials_block_layout", [
|
|
"slider",
|
|
"grid",
|
|
"single",
|
|
"masonry",
|
|
"list",
|
|
]);
|
|
export const enum_pages_blocks_testimonials_block_columns = pgEnum("enum_pages_blocks_testimonials_block_columns", [
|
|
"2",
|
|
"3",
|
|
"4",
|
|
]);
|
|
export const enum_pages_blocks_testimonials_block_display_mode = pgEnum(
|
|
"enum_pages_blocks_testimonials_block_display_mode",
|
|
["all", "selected"],
|
|
);
|
|
export const enum_pages_blocks_testimonials_block_slider_effect = pgEnum(
|
|
"enum_pages_blocks_testimonials_block_slider_effect",
|
|
["slide", "fade", "cards", "coverflow", "none"],
|
|
);
|
|
export const enum_pages_blocks_testimonials_block_slider_speed = pgEnum(
|
|
"enum_pages_blocks_testimonials_block_slider_speed",
|
|
["300", "500", "800"],
|
|
);
|
|
export const enum_pages_blocks_testimonials_block_slider_per_view = pgEnum(
|
|
"enum_pages_blocks_testimonials_block_slider_per_view",
|
|
["1", "2", "3", "auto"],
|
|
);
|
|
export const enum_pages_blocks_testimonials_block_slider_gap = pgEnum(
|
|
"enum_pages_blocks_testimonials_block_slider_gap",
|
|
["0", "16", "24", "32", "48"],
|
|
);
|
|
export const enum_pages_blocks_testimonials_block_slider_delay = pgEnum(
|
|
"enum_pages_blocks_testimonials_block_slider_delay",
|
|
["3000", "4000", "5000", "6000", "8000", "10000"],
|
|
);
|
|
export const enum_pages_blocks_testimonials_block_nav_arrow_style = pgEnum(
|
|
"enum_pages_blocks_testimonials_block_nav_arrow_style",
|
|
["default", "minimal", "square", "hover", "outside"],
|
|
);
|
|
export const enum_pages_blocks_testimonials_block_nav_arrow_pos = pgEnum(
|
|
"enum_pages_blocks_testimonials_block_nav_arrow_pos",
|
|
["sides", "bl", "br", "bc"],
|
|
);
|
|
export const enum_pages_blocks_testimonials_block_nav_dot_style = pgEnum(
|
|
"enum_pages_blocks_testimonials_block_nav_dot_style",
|
|
["dots", "lines", "numbers", "progress", "fraction"],
|
|
);
|
|
export const enum_pages_blocks_testimonials_block_nav_dot_pos = pgEnum(
|
|
"enum_pages_blocks_testimonials_block_nav_dot_pos",
|
|
["bottom", "bl", "br"],
|
|
);
|
|
export const enum_pages_blocks_testimonials_block_style_bg = pgEnum("enum_pages_blocks_testimonials_block_style_bg", [
|
|
"white",
|
|
"light",
|
|
"dark",
|
|
"accent",
|
|
"none",
|
|
]);
|
|
export const enum_pages_blocks_testimonials_block_style_card = pgEnum(
|
|
"enum_pages_blocks_testimonials_block_style_card",
|
|
["shadow", "border", "flat", "glass"],
|
|
);
|
|
export const enum_pages_blocks_testimonials_block_style_quote = pgEnum(
|
|
"enum_pages_blocks_testimonials_block_style_quote",
|
|
["icon", "quotes", "none", "large"],
|
|
);
|
|
export const enum_pages_blocks_testimonials_block_style_img_pos = pgEnum(
|
|
"enum_pages_blocks_testimonials_block_style_img_pos",
|
|
["top", "left", "bottom", "bg"],
|
|
);
|
|
export const enum_pages_blocks_testimonials_block_style_img_size = pgEnum(
|
|
"enum_pages_blocks_testimonials_block_style_img_size",
|
|
["sm", "md", "lg", "xl"],
|
|
);
|
|
export const enum_pages_blocks_testimonials_block_style_align = pgEnum(
|
|
"enum_pages_blocks_testimonials_block_style_align",
|
|
["left", "center", "right"],
|
|
);
|
|
export const enum_pages_blocks_testimonials_block_style_spacing = pgEnum(
|
|
"enum_pages_blocks_testimonials_block_style_spacing",
|
|
["sm", "normal", "lg"],
|
|
);
|
|
export const enum_pages_blocks_newsletter_block_available_interests = pgEnum(
|
|
"enum_pages_blocks_newsletter_block_available_interests",
|
|
["general", "blog", "products", "offers", "events"],
|
|
);
|
|
export const enum_pages_blocks_newsletter_block_layout = pgEnum("enum_pages_blocks_newsletter_block_layout", [
|
|
"inline",
|
|
"stacked",
|
|
"with-image",
|
|
"minimal",
|
|
"card",
|
|
]);
|
|
export const enum_pages_blocks_newsletter_block_image_position = pgEnum(
|
|
"enum_pages_blocks_newsletter_block_image_position",
|
|
["left", "right"],
|
|
);
|
|
export const enum_pages_blocks_newsletter_block_background_color = pgEnum(
|
|
"enum_pages_blocks_newsletter_block_background_color",
|
|
["white", "light", "dark", "accent"],
|
|
);
|
|
export const enum_pages_blocks_process_steps_block_layout = pgEnum("enum_pages_blocks_process_steps_block_layout", [
|
|
"horizontal",
|
|
"vertical",
|
|
"alternating",
|
|
"connected",
|
|
"timeline",
|
|
]);
|
|
export const enum_pages_blocks_process_steps_block_cta_variant = pgEnum(
|
|
"enum_pages_blocks_process_steps_block_cta_variant",
|
|
["default", "ghost", "light"],
|
|
);
|
|
export const enum_pages_blocks_process_steps_block_background_color = pgEnum(
|
|
"enum_pages_blocks_process_steps_block_background_color",
|
|
["white", "light", "dark"],
|
|
);
|
|
export const enum_pages_blocks_faq_block_source_mode = pgEnum("enum_pages_blocks_faq_block_source_mode", [
|
|
"collection",
|
|
"inline",
|
|
]);
|
|
export const enum_pages_blocks_faq_block_display_mode = pgEnum("enum_pages_blocks_faq_block_display_mode", [
|
|
"all",
|
|
"featured",
|
|
"category",
|
|
"selected",
|
|
]);
|
|
export const enum_pages_blocks_faq_block_layout = pgEnum("enum_pages_blocks_faq_block_layout", [
|
|
"accordion",
|
|
"grid",
|
|
"list",
|
|
"two-column",
|
|
]);
|
|
export const enum_pages_blocks_faq_block_columns = pgEnum("enum_pages_blocks_faq_block_columns", ["2", "3"]);
|
|
export const enum_pages_blocks_faq_block_background_color = pgEnum("enum_pages_blocks_faq_block_background_color", [
|
|
"white",
|
|
"light",
|
|
"dark",
|
|
"accent",
|
|
]);
|
|
export const enum_pages_blocks_team_block_display_mode = pgEnum("enum_pages_blocks_team_block_display_mode", [
|
|
"all",
|
|
"featured",
|
|
"department",
|
|
"selected",
|
|
]);
|
|
export const enum_pages_blocks_team_block_layout = pgEnum("enum_pages_blocks_team_block_layout", [
|
|
"grid",
|
|
"list",
|
|
"slider",
|
|
"compact",
|
|
"detailed",
|
|
]);
|
|
export const enum_pages_blocks_team_block_columns = pgEnum("enum_pages_blocks_team_block_columns", ["2", "3", "4"]);
|
|
export const enum_pages_blocks_team_block_image_style = pgEnum("enum_pages_blocks_team_block_image_style", [
|
|
"circle",
|
|
"rounded",
|
|
"square",
|
|
]);
|
|
export const enum_pages_blocks_team_block_background_color = pgEnum("enum_pages_blocks_team_block_background_color", [
|
|
"white",
|
|
"light",
|
|
"dark",
|
|
"accent",
|
|
]);
|
|
export const enum_pages_blocks_services_block_display_mode = pgEnum("enum_pages_blocks_services_block_display_mode", [
|
|
"all",
|
|
"featured",
|
|
"category",
|
|
"selected",
|
|
]);
|
|
export const enum_pages_blocks_services_block_layout = pgEnum("enum_pages_blocks_services_block_layout", [
|
|
"grid",
|
|
"list",
|
|
"tabs",
|
|
"accordion",
|
|
"featured-grid",
|
|
"slider",
|
|
"compact",
|
|
"masonry",
|
|
]);
|
|
export const enum_pages_blocks_services_block_columns = pgEnum("enum_pages_blocks_services_block_columns", [
|
|
"2",
|
|
"3",
|
|
"4",
|
|
]);
|
|
export const enum_pages_blocks_services_block_tabs_style = pgEnum("enum_pages_blocks_services_block_tabs_style", [
|
|
"horizontal",
|
|
"vertical",
|
|
"pills",
|
|
]);
|
|
export const enum_pages_blocks_services_block_slides_per_view = pgEnum(
|
|
"enum_pages_blocks_services_block_slides_per_view",
|
|
["1", "2", "3", "4"],
|
|
);
|
|
export const enum_pages_blocks_services_block_card_style = pgEnum("enum_pages_blocks_services_block_card_style", [
|
|
"elevated",
|
|
"bordered",
|
|
"flat",
|
|
"filled",
|
|
]);
|
|
export const enum_pages_blocks_services_block_background_color = pgEnum(
|
|
"enum_pages_blocks_services_block_background_color",
|
|
["white", "light", "dark", "accent"],
|
|
);
|
|
export const enum_pages_blocks_author_bio_block_source = pgEnum("enum_pages_blocks_author_bio_block_source", [
|
|
"post",
|
|
"manual",
|
|
]);
|
|
export const enum_pages_blocks_author_bio_block_layout = pgEnum("enum_pages_blocks_author_bio_block_layout", [
|
|
"card",
|
|
"inline",
|
|
"compact",
|
|
"feature",
|
|
]);
|
|
export const enum_pages_blocks_author_bio_block_show_bio = pgEnum("enum_pages_blocks_author_bio_block_show_bio", [
|
|
"none",
|
|
"short",
|
|
"full",
|
|
]);
|
|
export const enum_pages_blocks_author_bio_block_style_avatar_size = pgEnum(
|
|
"enum_pages_blocks_author_bio_block_style_avatar_size",
|
|
["sm", "md", "lg"],
|
|
);
|
|
export const enum_pages_blocks_author_bio_block_style_avatar_shape = pgEnum(
|
|
"enum_pages_blocks_author_bio_block_style_avatar_shape",
|
|
["circle", "square", "rounded"],
|
|
);
|
|
export const enum_pages_blocks_author_bio_block_style_bg = pgEnum("enum_pages_blocks_author_bio_block_style_bg", [
|
|
"none",
|
|
"light",
|
|
"dark",
|
|
"accent",
|
|
]);
|
|
export const enum_pages_blocks_related_posts_block_source = pgEnum("enum_pages_blocks_related_posts_block_source", [
|
|
"auto",
|
|
"manual",
|
|
"category",
|
|
"tag",
|
|
"latest",
|
|
"popular",
|
|
"author",
|
|
]);
|
|
export const enum_pages_blocks_related_posts_block_layout = pgEnum("enum_pages_blocks_related_posts_block_layout", [
|
|
"grid",
|
|
"list",
|
|
"slider",
|
|
"compact",
|
|
"cards",
|
|
]);
|
|
export const enum_pages_blocks_related_posts_block_cols = pgEnum("enum_pages_blocks_related_posts_block_cols", [
|
|
"2",
|
|
"3",
|
|
"4",
|
|
]);
|
|
export const enum_pages_blocks_related_posts_block_style_img_ratio = pgEnum(
|
|
"enum_pages_blocks_related_posts_block_style_img_ratio",
|
|
["square", "4-3", "16-9", "3-4"],
|
|
);
|
|
export const enum_pages_blocks_related_posts_block_style_rounded = pgEnum(
|
|
"enum_pages_blocks_related_posts_block_style_rounded",
|
|
["none", "sm", "md", "lg"],
|
|
);
|
|
export const enum_pages_blocks_related_posts_block_style_hover = pgEnum(
|
|
"enum_pages_blocks_related_posts_block_style_hover",
|
|
["none", "lift", "zoom", "overlay"],
|
|
);
|
|
export const enum_pages_blocks_related_posts_block_style_bg = pgEnum("enum_pages_blocks_related_posts_block_style_bg", [
|
|
"none",
|
|
"light",
|
|
"dark",
|
|
]);
|
|
export const enum_pages_blocks_related_posts_block_style_gap = pgEnum(
|
|
"enum_pages_blocks_related_posts_block_style_gap",
|
|
["16", "24", "32"],
|
|
);
|
|
export const enum_pages_blocks_share_buttons_block_layout = pgEnum("enum_pages_blocks_share_buttons_block_layout", [
|
|
"horizontal",
|
|
"vertical",
|
|
"floating",
|
|
"sticky",
|
|
]);
|
|
export const enum_pages_blocks_share_buttons_block_align = pgEnum("enum_pages_blocks_share_buttons_block_align", [
|
|
"left",
|
|
"center",
|
|
"right",
|
|
]);
|
|
export const enum_pages_blocks_share_buttons_block_float_side = pgEnum(
|
|
"enum_pages_blocks_share_buttons_block_float_side",
|
|
["left", "right"],
|
|
);
|
|
export const enum_pages_blocks_share_buttons_block_style_variant = pgEnum(
|
|
"enum_pages_blocks_share_buttons_block_style_variant",
|
|
["filled", "outline", "icon", "minimal"],
|
|
);
|
|
export const enum_pages_blocks_share_buttons_block_style_size = pgEnum(
|
|
"enum_pages_blocks_share_buttons_block_style_size",
|
|
["sm", "md", "lg"],
|
|
);
|
|
export const enum_pages_blocks_share_buttons_block_style_shape = pgEnum(
|
|
"enum_pages_blocks_share_buttons_block_style_shape",
|
|
["square", "rounded", "circle", "pill"],
|
|
);
|
|
export const enum_pages_blocks_share_buttons_block_style_color_scheme = pgEnum(
|
|
"enum_pages_blocks_share_buttons_block_style_color_scheme",
|
|
["brand", "gray", "dark", "light", "accent"],
|
|
);
|
|
export const enum_pages_blocks_share_buttons_block_style_gap = pgEnum(
|
|
"enum_pages_blocks_share_buttons_block_style_gap",
|
|
["0", "4", "8", "12"],
|
|
);
|
|
export const enum_pages_blocks_toc_block_layout = pgEnum("enum_pages_blocks_toc_block_layout", [
|
|
"list",
|
|
"numbered",
|
|
"inline",
|
|
"sidebar",
|
|
"dropdown",
|
|
]);
|
|
export const enum_pages_blocks_toc_block_sidebar_pos = pgEnum("enum_pages_blocks_toc_block_sidebar_pos", [
|
|
"left",
|
|
"right",
|
|
]);
|
|
export const enum_pages_blocks_toc_block_behavior_progress_style = pgEnum(
|
|
"enum_pages_blocks_toc_block_behavior_progress_style",
|
|
["bar", "percent", "circle"],
|
|
);
|
|
export const enum_pages_blocks_toc_block_style_bg = pgEnum("enum_pages_blocks_toc_block_style_bg", [
|
|
"none",
|
|
"light",
|
|
"dark",
|
|
"accent",
|
|
]);
|
|
export const enum_pages_blocks_toc_block_style_border_side = pgEnum("enum_pages_blocks_toc_block_style_border_side", [
|
|
"all",
|
|
"left",
|
|
"top",
|
|
]);
|
|
export const enum_pages_blocks_toc_block_style_rounded = pgEnum("enum_pages_blocks_toc_block_style_rounded", [
|
|
"none",
|
|
"sm",
|
|
"md",
|
|
"lg",
|
|
]);
|
|
export const enum_pages_blocks_toc_block_style_font_size = pgEnum("enum_pages_blocks_toc_block_style_font_size", [
|
|
"sm",
|
|
"base",
|
|
"lg",
|
|
]);
|
|
export const enum_pages_blocks_toc_block_style_line_height = pgEnum("enum_pages_blocks_toc_block_style_line_height", [
|
|
"tight",
|
|
"normal",
|
|
"relaxed",
|
|
]);
|
|
export const enum_pages_blocks_team_filter_block_filters_filter_layout = pgEnum(
|
|
"enum_pages_blocks_team_filter_block_filters_filter_layout",
|
|
["horizontal", "sidebar", "dropdown", "tabs"],
|
|
);
|
|
export const enum_pages_blocks_team_filter_block_filters_filter_style = pgEnum(
|
|
"enum_pages_blocks_team_filter_block_filters_filter_style",
|
|
["buttons", "select", "checkbox"],
|
|
);
|
|
export const enum_pages_blocks_team_filter_block_display_layout = pgEnum(
|
|
"enum_pages_blocks_team_filter_block_display_layout",
|
|
["grid", "list", "compact"],
|
|
);
|
|
export const enum_pages_blocks_team_filter_block_display_columns = pgEnum(
|
|
"enum_pages_blocks_team_filter_block_display_columns",
|
|
["2", "3", "4"],
|
|
);
|
|
export const enum_pages_blocks_team_filter_block_display_load_more = pgEnum(
|
|
"enum_pages_blocks_team_filter_block_display_load_more",
|
|
["button", "infinite", "pagination", "all"],
|
|
);
|
|
export const enum_pages_blocks_team_filter_block_card_image_style = pgEnum(
|
|
"enum_pages_blocks_team_filter_block_card_image_style",
|
|
["circle", "rounded", "square"],
|
|
);
|
|
export const enum_pages_blocks_team_filter_block_style_bg = pgEnum("enum_pages_blocks_team_filter_block_style_bg", [
|
|
"none",
|
|
"light",
|
|
"dark",
|
|
]);
|
|
export const enum_pages_blocks_team_filter_block_style_card_bg = pgEnum(
|
|
"enum_pages_blocks_team_filter_block_style_card_bg",
|
|
["white", "transparent", "light"],
|
|
);
|
|
export const enum_pages_blocks_team_filter_block_style_card_hover = pgEnum(
|
|
"enum_pages_blocks_team_filter_block_style_card_hover",
|
|
["none", "lift", "shadow", "border"],
|
|
);
|
|
export const enum_pages_blocks_team_filter_block_style_gap = pgEnum("enum_pages_blocks_team_filter_block_style_gap", [
|
|
"16",
|
|
"24",
|
|
"32",
|
|
]);
|
|
export const enum_pages_blocks_team_filter_block_style_animation = pgEnum(
|
|
"enum_pages_blocks_team_filter_block_style_animation",
|
|
["none", "fade", "slide", "scale"],
|
|
);
|
|
export const enum_pages_blocks_org_chart_block_source = pgEnum("enum_pages_blocks_org_chart_block_source", [
|
|
"auto",
|
|
"department",
|
|
"manual",
|
|
]);
|
|
export const enum_pages_blocks_org_chart_block_layout = pgEnum("enum_pages_blocks_org_chart_block_layout", [
|
|
"tree",
|
|
"tree-horizontal",
|
|
"org",
|
|
"radial",
|
|
"layers",
|
|
]);
|
|
export const enum_pages_blocks_org_chart_block_direction = pgEnum("enum_pages_blocks_org_chart_block_direction", [
|
|
"top",
|
|
"bottom",
|
|
"left",
|
|
"right",
|
|
]);
|
|
export const enum_pages_blocks_org_chart_block_node_style = pgEnum("enum_pages_blocks_org_chart_block_node_style", [
|
|
"card",
|
|
"compact",
|
|
"avatar",
|
|
"text",
|
|
]);
|
|
export const enum_pages_blocks_org_chart_block_node_image_size = pgEnum(
|
|
"enum_pages_blocks_org_chart_block_node_image_size",
|
|
["sm", "md", "lg"],
|
|
);
|
|
export const enum_pages_blocks_org_chart_block_node_image_shape = pgEnum(
|
|
"enum_pages_blocks_org_chart_block_node_image_shape",
|
|
["circle", "rounded", "square"],
|
|
);
|
|
export const enum_pages_blocks_org_chart_block_node_click_action = pgEnum(
|
|
"enum_pages_blocks_org_chart_block_node_click_action",
|
|
["none", "modal", "link", "expand"],
|
|
);
|
|
export const enum_pages_blocks_org_chart_block_connectors_style = pgEnum(
|
|
"enum_pages_blocks_org_chart_block_connectors_style",
|
|
["straight", "angular", "curved", "dashed"],
|
|
);
|
|
export const enum_pages_blocks_org_chart_block_connectors_color = pgEnum(
|
|
"enum_pages_blocks_org_chart_block_connectors_color",
|
|
["gray", "dark", "accent", "gradient"],
|
|
);
|
|
export const enum_pages_blocks_org_chart_block_connectors_thickness = pgEnum(
|
|
"enum_pages_blocks_org_chart_block_connectors_thickness",
|
|
["1", "2", "3"],
|
|
);
|
|
export const enum_pages_blocks_org_chart_block_style_bg = pgEnum("enum_pages_blocks_org_chart_block_style_bg", [
|
|
"none",
|
|
"light",
|
|
"white",
|
|
"dark",
|
|
"gradient",
|
|
]);
|
|
export const enum_pages_blocks_org_chart_block_style_node_bg = pgEnum(
|
|
"enum_pages_blocks_org_chart_block_style_node_bg",
|
|
["white", "light", "transparent", "accent"],
|
|
);
|
|
export const enum_pages_blocks_org_chart_block_style_spacing = pgEnum(
|
|
"enum_pages_blocks_org_chart_block_style_spacing",
|
|
["sm", "md", "lg"],
|
|
);
|
|
export const enum_pages_blocks_org_chart_block_style_min_height = pgEnum(
|
|
"enum_pages_blocks_org_chart_block_style_min_height",
|
|
["auto", "300", "400", "500", "600", "full"],
|
|
);
|
|
export const enum_pages_blocks_locations_block_source = pgEnum("enum_pages_blocks_locations_block_source", [
|
|
"all",
|
|
"main",
|
|
"type",
|
|
"manual",
|
|
]);
|
|
export const enum_pages_blocks_locations_block_location_type = pgEnum(
|
|
"enum_pages_blocks_locations_block_location_type",
|
|
["headquarters", "office", "branch", "warehouse", "showroom", "studio", "practice", "workshop"],
|
|
);
|
|
export const enum_pages_blocks_locations_block_layout = pgEnum("enum_pages_blocks_locations_block_layout", [
|
|
"map-list",
|
|
"map-only",
|
|
"list-only",
|
|
"cards",
|
|
"accordion",
|
|
"tabs",
|
|
]);
|
|
export const enum_pages_blocks_locations_block_map_position = pgEnum("enum_pages_blocks_locations_block_map_position", [
|
|
"left",
|
|
"right",
|
|
"top",
|
|
"bottom",
|
|
]);
|
|
export const enum_pages_blocks_locations_block_columns = pgEnum("enum_pages_blocks_locations_block_columns", [
|
|
"1",
|
|
"2",
|
|
"3",
|
|
]);
|
|
export const enum_pages_blocks_locations_block_map_provider = pgEnum("enum_pages_blocks_locations_block_map_provider", [
|
|
"osm",
|
|
"google",
|
|
"mapbox",
|
|
]);
|
|
export const enum_pages_blocks_locations_block_map_style = pgEnum("enum_pages_blocks_locations_block_map_style", [
|
|
"default",
|
|
"light",
|
|
"dark",
|
|
"satellite",
|
|
]);
|
|
export const enum_pages_blocks_locations_block_map_height = pgEnum("enum_pages_blocks_locations_block_map_height", [
|
|
"300",
|
|
"400",
|
|
"500",
|
|
"600",
|
|
]);
|
|
export const enum_pages_blocks_locations_block_map_marker_style = pgEnum(
|
|
"enum_pages_blocks_locations_block_map_marker_style",
|
|
["pin", "dot", "icon", "custom"],
|
|
);
|
|
export const enum_pages_blocks_locations_block_style_bg = pgEnum("enum_pages_blocks_locations_block_style_bg", [
|
|
"none",
|
|
"light",
|
|
"dark",
|
|
]);
|
|
export const enum_pages_blocks_locations_block_style_card_style = pgEnum(
|
|
"enum_pages_blocks_locations_block_style_card_style",
|
|
["simple", "bordered", "shadow", "filled"],
|
|
);
|
|
export const enum_pages_blocks_locations_block_style_gap = pgEnum("enum_pages_blocks_locations_block_style_gap", [
|
|
"16",
|
|
"24",
|
|
"32",
|
|
]);
|
|
export const enum_pages_blocks_logo_grid_block_partner_type = pgEnum("enum_pages_blocks_logo_grid_block_partner_type", [
|
|
"all",
|
|
"partner",
|
|
"client",
|
|
"reference",
|
|
"sponsor",
|
|
"certification",
|
|
"membership",
|
|
"award",
|
|
"supplier",
|
|
"technology",
|
|
]);
|
|
export const enum_pages_blocks_logo_grid_block_source = pgEnum("enum_pages_blocks_logo_grid_block_source", [
|
|
"collection",
|
|
"manual",
|
|
]);
|
|
export const enum_pages_blocks_logo_grid_block_layout = pgEnum("enum_pages_blocks_logo_grid_block_layout", [
|
|
"grid",
|
|
"slider",
|
|
"marquee",
|
|
"inline",
|
|
"masonry",
|
|
]);
|
|
export const enum_pages_blocks_logo_grid_block_columns = pgEnum("enum_pages_blocks_logo_grid_block_columns", [
|
|
"3",
|
|
"4",
|
|
"5",
|
|
"6",
|
|
"8",
|
|
]);
|
|
export const enum_pages_blocks_logo_grid_block_slider_per_view = pgEnum(
|
|
"enum_pages_blocks_logo_grid_block_slider_per_view",
|
|
["3", "4", "5", "6", "auto"],
|
|
);
|
|
export const enum_pages_blocks_logo_grid_block_slider_speed = pgEnum("enum_pages_blocks_logo_grid_block_slider_speed", [
|
|
"5000",
|
|
"3000",
|
|
"2000",
|
|
]);
|
|
export const enum_pages_blocks_logo_grid_block_logo_style_size = pgEnum(
|
|
"enum_pages_blocks_logo_grid_block_logo_style_size",
|
|
["sm", "md", "lg"],
|
|
);
|
|
export const enum_pages_blocks_logo_grid_block_logo_style_max_height = pgEnum(
|
|
"enum_pages_blocks_logo_grid_block_logo_style_max_height",
|
|
["40", "50", "60", "80", "100"],
|
|
);
|
|
export const enum_pages_blocks_logo_grid_block_logo_style_opacity = pgEnum(
|
|
"enum_pages_blocks_logo_grid_block_logo_style_opacity",
|
|
["50", "70", "100"],
|
|
);
|
|
export const enum_pages_blocks_logo_grid_block_logo_style_hover_effect = pgEnum(
|
|
"enum_pages_blocks_logo_grid_block_logo_style_hover_effect",
|
|
["none", "scale", "brighten", "shadow"],
|
|
);
|
|
export const enum_pages_blocks_logo_grid_block_style_bg = pgEnum("enum_pages_blocks_logo_grid_block_style_bg", [
|
|
"none",
|
|
"light",
|
|
"white",
|
|
"dark",
|
|
]);
|
|
export const enum_pages_blocks_logo_grid_block_style_logo_bg = pgEnum(
|
|
"enum_pages_blocks_logo_grid_block_style_logo_bg",
|
|
["none", "white", "light"],
|
|
);
|
|
export const enum_pages_blocks_logo_grid_block_style_gap = pgEnum("enum_pages_blocks_logo_grid_block_style_gap", [
|
|
"16",
|
|
"24",
|
|
"32",
|
|
"48",
|
|
]);
|
|
export const enum_pages_blocks_logo_grid_block_style_alignment = pgEnum(
|
|
"enum_pages_blocks_logo_grid_block_style_alignment",
|
|
["left", "center", "right"],
|
|
);
|
|
export const enum_pages_blocks_stats_block_stats_icon = pgEnum("enum_pages_blocks_stats_block_stats_icon", [
|
|
"none",
|
|
"users",
|
|
"star",
|
|
"heart",
|
|
"check",
|
|
"trophy",
|
|
"chart",
|
|
"clock",
|
|
"calendar",
|
|
"globe",
|
|
"building",
|
|
"document",
|
|
"target",
|
|
"rocket",
|
|
"handshake",
|
|
]);
|
|
export const enum_pages_blocks_stats_block_stats_color = pgEnum("enum_pages_blocks_stats_block_stats_color", [
|
|
"default",
|
|
"primary",
|
|
"green",
|
|
"blue",
|
|
"orange",
|
|
"red",
|
|
]);
|
|
export const enum_pages_blocks_stats_block_layout = pgEnum("enum_pages_blocks_stats_block_layout", [
|
|
"row",
|
|
"grid",
|
|
"cards",
|
|
"column",
|
|
"inline",
|
|
"feature",
|
|
]);
|
|
export const enum_pages_blocks_stats_block_columns = pgEnum("enum_pages_blocks_stats_block_columns", [
|
|
"2",
|
|
"3",
|
|
"4",
|
|
"auto",
|
|
]);
|
|
export const enum_pages_blocks_stats_block_alignment = pgEnum("enum_pages_blocks_stats_block_alignment", [
|
|
"left",
|
|
"center",
|
|
"right",
|
|
]);
|
|
export const enum_pages_blocks_stats_block_animation_duration = pgEnum(
|
|
"enum_pages_blocks_stats_block_animation_duration",
|
|
["1000", "2000", "3000"],
|
|
);
|
|
export const enum_pages_blocks_stats_block_animation_trigger = pgEnum(
|
|
"enum_pages_blocks_stats_block_animation_trigger",
|
|
["viewport", "immediate"],
|
|
);
|
|
export const enum_pages_blocks_stats_block_style_bg = pgEnum("enum_pages_blocks_stats_block_style_bg", [
|
|
"none",
|
|
"light",
|
|
"dark",
|
|
"primary",
|
|
"gradient",
|
|
]);
|
|
export const enum_pages_blocks_stats_block_style_bg_overlay = pgEnum("enum_pages_blocks_stats_block_style_bg_overlay", [
|
|
"none",
|
|
"dark",
|
|
"light",
|
|
"primary",
|
|
]);
|
|
export const enum_pages_blocks_stats_block_style_text_color = pgEnum("enum_pages_blocks_stats_block_style_text_color", [
|
|
"auto",
|
|
"dark",
|
|
"light",
|
|
]);
|
|
export const enum_pages_blocks_stats_block_style_value_size = pgEnum("enum_pages_blocks_stats_block_style_value_size", [
|
|
"base",
|
|
"lg",
|
|
"xl",
|
|
"2xl",
|
|
]);
|
|
export const enum_pages_blocks_stats_block_style_value_weight = pgEnum(
|
|
"enum_pages_blocks_stats_block_style_value_weight",
|
|
["normal", "medium", "bold", "extrabold"],
|
|
);
|
|
export const enum_pages_blocks_stats_block_style_icon_position = pgEnum(
|
|
"enum_pages_blocks_stats_block_style_icon_position",
|
|
["top", "left", "inline"],
|
|
);
|
|
export const enum_pages_blocks_stats_block_style_gap = pgEnum("enum_pages_blocks_stats_block_style_gap", [
|
|
"16",
|
|
"24",
|
|
"32",
|
|
"48",
|
|
]);
|
|
export const enum_pages_blocks_stats_block_style_padding = pgEnum("enum_pages_blocks_stats_block_style_padding", [
|
|
"none",
|
|
"sm",
|
|
"md",
|
|
"lg",
|
|
]);
|
|
export const enum_pages_blocks_jobs_block_source = pgEnum("enum_pages_blocks_jobs_block_source", [
|
|
"all",
|
|
"category",
|
|
"department",
|
|
"location",
|
|
"featured",
|
|
"manual",
|
|
]);
|
|
export const enum_pages_blocks_jobs_block_category = pgEnum("enum_pages_blocks_jobs_block_category", [
|
|
"care",
|
|
"medical",
|
|
"admin",
|
|
"it",
|
|
"marketing",
|
|
"sales",
|
|
"finance",
|
|
"hr",
|
|
"production",
|
|
"logistics",
|
|
]);
|
|
export const enum_pages_blocks_jobs_block_filters_filter_layout = pgEnum(
|
|
"enum_pages_blocks_jobs_block_filters_filter_layout",
|
|
["horizontal", "sidebar", "dropdown"],
|
|
);
|
|
export const enum_pages_blocks_jobs_block_layout = pgEnum("enum_pages_blocks_jobs_block_layout", [
|
|
"list",
|
|
"cards",
|
|
"compact",
|
|
"accordion",
|
|
]);
|
|
export const enum_pages_blocks_jobs_block_columns = pgEnum("enum_pages_blocks_jobs_block_columns", ["1", "2", "3"]);
|
|
export const enum_pages_blocks_jobs_block_pagination_type = pgEnum("enum_pages_blocks_jobs_block_pagination_type", [
|
|
"button",
|
|
"pagination",
|
|
"infinite",
|
|
"none",
|
|
]);
|
|
export const enum_pages_blocks_jobs_block_style_bg = pgEnum("enum_pages_blocks_jobs_block_style_bg", [
|
|
"none",
|
|
"light",
|
|
"dark",
|
|
]);
|
|
export const enum_pages_blocks_jobs_block_style_card_style = pgEnum("enum_pages_blocks_jobs_block_style_card_style", [
|
|
"simple",
|
|
"bordered",
|
|
"shadow",
|
|
]);
|
|
export const enum_pages_blocks_jobs_block_style_hover_effect = pgEnum(
|
|
"enum_pages_blocks_jobs_block_style_hover_effect",
|
|
["none", "lift", "highlight"],
|
|
);
|
|
export const enum_pages_blocks_jobs_block_style_gap = pgEnum("enum_pages_blocks_jobs_block_style_gap", [
|
|
"8",
|
|
"16",
|
|
"24",
|
|
]);
|
|
export const enum_pages_blocks_downloads_block_source = pgEnum("enum_pages_blocks_downloads_block_source", [
|
|
"all",
|
|
"category",
|
|
"tags",
|
|
"featured",
|
|
"service",
|
|
"product",
|
|
"manual",
|
|
]);
|
|
export const enum_pages_blocks_downloads_block_category = pgEnum("enum_pages_blocks_downloads_block_category", [
|
|
"brochure",
|
|
"flyer",
|
|
"catalog",
|
|
"pricelist",
|
|
"form",
|
|
"manual",
|
|
"datasheet",
|
|
"certificate",
|
|
"press",
|
|
"whitepaper",
|
|
"presentation",
|
|
"legal",
|
|
]);
|
|
export const enum_pages_blocks_downloads_block_filters_filter_layout = pgEnum(
|
|
"enum_pages_blocks_downloads_block_filters_filter_layout",
|
|
["horizontal", "sidebar", "dropdown"],
|
|
);
|
|
export const enum_pages_blocks_downloads_block_layout = pgEnum("enum_pages_blocks_downloads_block_layout", [
|
|
"list",
|
|
"cards",
|
|
"compact",
|
|
"table",
|
|
"accordion",
|
|
]);
|
|
export const enum_pages_blocks_downloads_block_columns = pgEnum("enum_pages_blocks_downloads_block_columns", [
|
|
"1",
|
|
"2",
|
|
"3",
|
|
"4",
|
|
]);
|
|
export const enum_pages_blocks_downloads_block_file_icons_icon_style = pgEnum(
|
|
"enum_pages_blocks_downloads_block_file_icons_icon_style",
|
|
["colored", "mono", "outline"],
|
|
);
|
|
export const enum_pages_blocks_downloads_block_sort_by = pgEnum("enum_pages_blocks_downloads_block_sort_by", [
|
|
"order",
|
|
"title_asc",
|
|
"title_desc",
|
|
"date_desc",
|
|
"date_asc",
|
|
"downloads_desc",
|
|
"size",
|
|
]);
|
|
export const enum_pages_blocks_downloads_block_group_by = pgEnum("enum_pages_blocks_downloads_block_group_by", [
|
|
"none",
|
|
"category",
|
|
"fileType",
|
|
]);
|
|
export const enum_pages_blocks_downloads_block_pagination_type = pgEnum(
|
|
"enum_pages_blocks_downloads_block_pagination_type",
|
|
["none", "button", "pagination"],
|
|
);
|
|
export const enum_pages_blocks_downloads_block_style_bg = pgEnum("enum_pages_blocks_downloads_block_style_bg", [
|
|
"none",
|
|
"light",
|
|
"dark",
|
|
]);
|
|
export const enum_pages_blocks_downloads_block_style_card_style = pgEnum(
|
|
"enum_pages_blocks_downloads_block_style_card_style",
|
|
["simple", "bordered", "shadow"],
|
|
);
|
|
export const enum_pages_blocks_downloads_block_style_hover_effect = pgEnum(
|
|
"enum_pages_blocks_downloads_block_style_hover_effect",
|
|
["none", "highlight", "lift"],
|
|
);
|
|
export const enum_pages_blocks_downloads_block_style_gap = pgEnum("enum_pages_blocks_downloads_block_style_gap", [
|
|
"8",
|
|
"16",
|
|
"24",
|
|
]);
|
|
export const enum_pages_blocks_map_block_location_type = pgEnum("enum_pages_blocks_map_block_location_type", [
|
|
"all",
|
|
"headquarters",
|
|
"branch",
|
|
"office",
|
|
"warehouse",
|
|
"production",
|
|
"showroom",
|
|
"service",
|
|
"partner",
|
|
]);
|
|
export const enum_pages_blocks_map_block_markers_marker_type = pgEnum(
|
|
"enum_pages_blocks_map_block_markers_marker_type",
|
|
["default", "main", "highlight", "custom"],
|
|
);
|
|
export const enum_pages_blocks_map_block_source = pgEnum("enum_pages_blocks_map_block_source", [
|
|
"locations",
|
|
"manual",
|
|
"single",
|
|
]);
|
|
export const enum_pages_blocks_map_block_provider = pgEnum("enum_pages_blocks_map_block_provider", [
|
|
"osm",
|
|
"google",
|
|
"mapbox",
|
|
"leaflet",
|
|
]);
|
|
export const enum_pages_blocks_map_block_map_style = pgEnum("enum_pages_blocks_map_block_map_style", [
|
|
"default",
|
|
"light",
|
|
"dark",
|
|
"satellite",
|
|
"hybrid",
|
|
"terrain",
|
|
]);
|
|
export const enum_pages_blocks_map_block_map_settings_height = pgEnum(
|
|
"enum_pages_blocks_map_block_map_settings_height",
|
|
["300", "400", "500", "600", "fullscreen"],
|
|
);
|
|
export const enum_pages_blocks_map_block_marker_style_type = pgEnum("enum_pages_blocks_map_block_marker_style_type", [
|
|
"pin",
|
|
"dot",
|
|
"icon",
|
|
"custom",
|
|
]);
|
|
export const enum_pages_blocks_map_block_marker_style_size = pgEnum("enum_pages_blocks_map_block_marker_style_size", [
|
|
"sm",
|
|
"md",
|
|
"lg",
|
|
]);
|
|
export const enum_pages_blocks_map_block_popup_trigger = pgEnum("enum_pages_blocks_map_block_popup_trigger", [
|
|
"click",
|
|
"hover",
|
|
]);
|
|
export const enum_pages_blocks_map_block_sidebar_position = pgEnum("enum_pages_blocks_map_block_sidebar_position", [
|
|
"left",
|
|
"right",
|
|
"bottom",
|
|
]);
|
|
export const enum_pages_blocks_map_block_sidebar_width = pgEnum("enum_pages_blocks_map_block_sidebar_width", [
|
|
"250",
|
|
"300",
|
|
"400",
|
|
]);
|
|
export const enum_pages_blocks_map_block_style_padding = pgEnum("enum_pages_blocks_map_block_style_padding", [
|
|
"none",
|
|
"sm",
|
|
"md",
|
|
"lg",
|
|
]);
|
|
export const enum_pages_blocks_events_source_mode = pgEnum("enum_pages_blocks_events_source_mode", [
|
|
"collection",
|
|
"selected",
|
|
]);
|
|
export const enum_pages_blocks_events_filter_mode = pgEnum("enum_pages_blocks_events_filter_mode", [
|
|
"upcoming",
|
|
"past",
|
|
"all",
|
|
"featured",
|
|
"type",
|
|
"category",
|
|
]);
|
|
export const enum_pages_blocks_events_event_type = pgEnum("enum_pages_blocks_events_event_type", [
|
|
"event",
|
|
"workshop",
|
|
"seminar",
|
|
"webinar",
|
|
"conference",
|
|
"tradeshow",
|
|
"networking",
|
|
"course",
|
|
"talk",
|
|
]);
|
|
export const enum_pages_blocks_events_layout = pgEnum("enum_pages_blocks_events_layout", [
|
|
"cards",
|
|
"list",
|
|
"compact",
|
|
"timeline",
|
|
"calendar",
|
|
"agenda",
|
|
]);
|
|
export const enum_pages_blocks_events_columns = pgEnum("enum_pages_blocks_events_columns", ["2", "3", "4"]);
|
|
export const enum_pages_blocks_events_calendar_options_default_view = pgEnum(
|
|
"enum_pages_blocks_events_calendar_options_default_view",
|
|
["month", "week", "day"],
|
|
);
|
|
export const enum_pages_blocks_events_group_by = pgEnum("enum_pages_blocks_events_group_by", [
|
|
"none",
|
|
"month",
|
|
"type",
|
|
"category",
|
|
]);
|
|
export const enum_pages_blocks_events_sort_order = pgEnum("enum_pages_blocks_events_sort_order", ["asc", "desc"]);
|
|
export const enum_pages_blocks_events_background_color = pgEnum("enum_pages_blocks_events_background_color", [
|
|
"white",
|
|
"light",
|
|
"dark",
|
|
"accent",
|
|
]);
|
|
export const enum_pages_blocks_events_card_style = pgEnum("enum_pages_blocks_events_card_style", [
|
|
"elevated",
|
|
"bordered",
|
|
"flat",
|
|
]);
|
|
export const enum_pages_blocks_pricing_plans_cta_style = pgEnum("enum_pages_blocks_pricing_plans_cta_style", [
|
|
"primary",
|
|
"secondary",
|
|
"outline",
|
|
]);
|
|
export const enum_pages_blocks_pricing_plans_accent_color = pgEnum("enum_pages_blocks_pricing_plans_accent_color", [
|
|
"default",
|
|
"primary",
|
|
"secondary",
|
|
"green",
|
|
"blue",
|
|
"purple",
|
|
]);
|
|
export const enum_pages_blocks_pricing_pricing_type = pgEnum("enum_pages_blocks_pricing_pricing_type", [
|
|
"one-time",
|
|
"monthly",
|
|
"yearly",
|
|
"toggle",
|
|
"custom",
|
|
]);
|
|
export const enum_pages_blocks_pricing_layout = pgEnum("enum_pages_blocks_pricing_layout", [
|
|
"cards",
|
|
"table",
|
|
"compact",
|
|
]);
|
|
export const enum_pages_blocks_pricing_alignment = pgEnum("enum_pages_blocks_pricing_alignment", [
|
|
"left",
|
|
"center",
|
|
"right",
|
|
]);
|
|
export const enum_pages_blocks_pricing_guarantee_icon = pgEnum("enum_pages_blocks_pricing_guarantee_icon", [
|
|
"shield",
|
|
"check",
|
|
"star",
|
|
"lock",
|
|
]);
|
|
export const enum_pages_blocks_pricing_background_color = pgEnum("enum_pages_blocks_pricing_background_color", [
|
|
"white",
|
|
"light",
|
|
"dark",
|
|
"gradient",
|
|
]);
|
|
export const enum_pages_blocks_pricing_card_style = pgEnum("enum_pages_blocks_pricing_card_style", [
|
|
"elevated",
|
|
"bordered",
|
|
"flat",
|
|
"glass",
|
|
]);
|
|
export const enum_pages_blocks_tabs_tabs_features_icon = pgEnum("enum_pages_blocks_tabs_tabs_features_icon", [
|
|
"check",
|
|
"star",
|
|
"arrow",
|
|
"dot",
|
|
"number",
|
|
]);
|
|
export const enum_pages_blocks_tabs_tabs_icon = pgEnum("enum_pages_blocks_tabs_tabs_icon", [
|
|
"none",
|
|
"info",
|
|
"star",
|
|
"heart",
|
|
"check",
|
|
"settings",
|
|
"user",
|
|
"document",
|
|
"image",
|
|
"video",
|
|
"code",
|
|
"chart",
|
|
"calendar",
|
|
"location",
|
|
"email",
|
|
"phone",
|
|
]);
|
|
export const enum_pages_blocks_tabs_tabs_content_type = pgEnum("enum_pages_blocks_tabs_tabs_content_type", [
|
|
"richtext",
|
|
"image-text",
|
|
"features",
|
|
"code",
|
|
"embed",
|
|
]);
|
|
export const enum_pages_blocks_tabs_tabs_img_txt_img_pos = pgEnum("enum_pages_blocks_tabs_tabs_img_txt_img_pos", [
|
|
"left",
|
|
"right",
|
|
"top",
|
|
]);
|
|
export const enum_pages_blocks_tabs_tabs_code_language = pgEnum("enum_pages_blocks_tabs_tabs_code_language", [
|
|
"javascript",
|
|
"typescript",
|
|
"html",
|
|
"css",
|
|
"json",
|
|
"python",
|
|
"bash",
|
|
"sql",
|
|
]);
|
|
export const enum_pages_blocks_tabs_tabs_embed_type = pgEnum("enum_pages_blocks_tabs_tabs_embed_type", [
|
|
"youtube",
|
|
"vimeo",
|
|
"iframe",
|
|
]);
|
|
export const enum_pages_blocks_tabs_tabs_embed_aspect_ratio = pgEnum("enum_pages_blocks_tabs_tabs_embed_aspect_ratio", [
|
|
"16:9",
|
|
"4:3",
|
|
"1:1",
|
|
]);
|
|
export const enum_pages_blocks_tabs_tab_style = pgEnum("enum_pages_blocks_tabs_tab_style", [
|
|
"underline",
|
|
"boxed",
|
|
"pills",
|
|
"buttons",
|
|
"vertical",
|
|
]);
|
|
export const enum_pages_blocks_tabs_tab_position = pgEnum("enum_pages_blocks_tabs_tab_position", [
|
|
"top",
|
|
"left",
|
|
"right",
|
|
"bottom",
|
|
]);
|
|
export const enum_pages_blocks_tabs_tab_alignment = pgEnum("enum_pages_blocks_tabs_tab_alignment", [
|
|
"left",
|
|
"center",
|
|
"right",
|
|
"stretch",
|
|
]);
|
|
export const enum_pages_blocks_tabs_mobile_style = pgEnum("enum_pages_blocks_tabs_mobile_style", [
|
|
"scroll",
|
|
"dropdown",
|
|
"accordion",
|
|
"stacked",
|
|
]);
|
|
export const enum_pages_blocks_tabs_background_color = pgEnum("enum_pages_blocks_tabs_background_color", [
|
|
"white",
|
|
"light",
|
|
"dark",
|
|
"transparent",
|
|
]);
|
|
export const enum_pages_blocks_tabs_content_background = pgEnum("enum_pages_blocks_tabs_content_background", [
|
|
"white",
|
|
"light",
|
|
"transparent",
|
|
]);
|
|
export const enum_pages_blocks_accordion_items_list_items_icon = pgEnum(
|
|
"enum_pages_blocks_accordion_items_list_items_icon",
|
|
["check", "dot", "arrow", "star", "x"],
|
|
);
|
|
export const enum_pages_blocks_accordion_items_icon = pgEnum("enum_pages_blocks_accordion_items_icon", [
|
|
"none",
|
|
"info",
|
|
"question",
|
|
"star",
|
|
"check",
|
|
"warning",
|
|
"document",
|
|
"user",
|
|
"settings",
|
|
"code",
|
|
"lightbulb",
|
|
"lock",
|
|
]);
|
|
export const enum_pages_blocks_accordion_items_content_type = pgEnum("enum_pages_blocks_accordion_items_content_type", [
|
|
"richtext",
|
|
"image-text",
|
|
"list",
|
|
"table",
|
|
"code",
|
|
]);
|
|
export const enum_pages_blocks_accordion_items_img_txt_img_pos = pgEnum(
|
|
"enum_pages_blocks_accordion_items_img_txt_img_pos",
|
|
["left", "right"],
|
|
);
|
|
export const enum_pages_blocks_accordion_items_code_content_language = pgEnum(
|
|
"enum_pages_blocks_accordion_items_code_content_language",
|
|
["javascript", "typescript", "html", "css", "json", "python", "bash"],
|
|
);
|
|
export const enum_pages_blocks_accordion_items_badge_color = pgEnum("enum_pages_blocks_accordion_items_badge_color", [
|
|
"gray",
|
|
"blue",
|
|
"green",
|
|
"yellow",
|
|
"red",
|
|
"purple",
|
|
]);
|
|
export const enum_pages_blocks_accordion_behavior = pgEnum("enum_pages_blocks_accordion_behavior", [
|
|
"single",
|
|
"multiple",
|
|
"at-least-one",
|
|
]);
|
|
export const enum_pages_blocks_accordion_style = pgEnum("enum_pages_blocks_accordion_style", [
|
|
"default",
|
|
"bordered",
|
|
"separated",
|
|
"flush",
|
|
"rounded",
|
|
]);
|
|
export const enum_pages_blocks_accordion_icon_position = pgEnum("enum_pages_blocks_accordion_icon_position", [
|
|
"left",
|
|
"right",
|
|
]);
|
|
export const enum_pages_blocks_accordion_icon_style = pgEnum("enum_pages_blocks_accordion_icon_style", [
|
|
"chevron",
|
|
"plus-minus",
|
|
"arrow",
|
|
"caret",
|
|
]);
|
|
export const enum_pages_blocks_accordion_layout = pgEnum("enum_pages_blocks_accordion_layout", [
|
|
"full",
|
|
"centered",
|
|
"narrow",
|
|
"two-column",
|
|
]);
|
|
export const enum_pages_blocks_accordion_title_size = pgEnum("enum_pages_blocks_accordion_title_size", [
|
|
"small",
|
|
"medium",
|
|
"large",
|
|
]);
|
|
export const enum_pages_blocks_accordion_background_color = pgEnum("enum_pages_blocks_accordion_background_color", [
|
|
"white",
|
|
"light",
|
|
"dark",
|
|
"transparent",
|
|
]);
|
|
export const enum_pages_blocks_accordion_header_background = pgEnum("enum_pages_blocks_accordion_header_background", [
|
|
"white",
|
|
"light",
|
|
"transparent",
|
|
]);
|
|
export const enum_pages_blocks_comparison_tbl_rows_values_value_type = pgEnum(
|
|
"enum_pages_blocks_comparison_tbl_rows_values_value_type",
|
|
["text", "boolean", "partial", "na"],
|
|
);
|
|
export const enum_pages_blocks_comparison_crd_items_accent_color = pgEnum(
|
|
"enum_pages_blocks_comparison_crd_items_accent_color",
|
|
["default", "primary", "secondary", "green", "blue"],
|
|
);
|
|
export const enum_pages_blocks_comparison_comparison_type = pgEnum("enum_pages_blocks_comparison_comparison_type", [
|
|
"table",
|
|
"cards",
|
|
"before-after",
|
|
"pros-cons",
|
|
"feature-matrix",
|
|
]);
|
|
export const enum_pages_blocks_comparison_before_after_display_style = pgEnum(
|
|
"enum_pages_blocks_comparison_before_after_display_style",
|
|
["slider", "side-by-side", "stacked", "flip"],
|
|
);
|
|
export const enum_pages_blocks_comparison_mobile_view = pgEnum("enum_pages_blocks_comparison_mobile_view", [
|
|
"scroll",
|
|
"stacked",
|
|
"accordion",
|
|
"dropdown",
|
|
]);
|
|
export const enum_pages_blocks_comparison_background_color = pgEnum("enum_pages_blocks_comparison_background_color", [
|
|
"white",
|
|
"light",
|
|
"dark",
|
|
]);
|
|
export const enum_pages_blocks_comparison_table_style = pgEnum("enum_pages_blocks_comparison_table_style", [
|
|
"bordered",
|
|
"striped",
|
|
"minimal",
|
|
"cards",
|
|
]);
|
|
export const enum_pages_blocks_comparison_check_color = pgEnum("enum_pages_blocks_comparison_check_color", [
|
|
"green",
|
|
"primary",
|
|
"blue",
|
|
]);
|
|
export const enum_pages_blocks_comparison_cross_color = pgEnum("enum_pages_blocks_comparison_cross_color", [
|
|
"red",
|
|
"gray",
|
|
"transparent",
|
|
]);
|
|
export const enum_pages_blocks_before_after_comparisons_category = pgEnum(
|
|
"enum_pages_blocks_before_after_comparisons_category",
|
|
["wedding", "portrait", "retouch", "colorgrade", "restore", "composing", "architecture", "product", "other"],
|
|
);
|
|
export const enum_pages_blocks_before_after_display_style = pgEnum("enum_pages_blocks_before_after_display_style", [
|
|
"slider",
|
|
"hover",
|
|
"toggle",
|
|
"side-by-side",
|
|
"fade",
|
|
]);
|
|
export const enum_pages_blocks_before_after_slider_orientation = pgEnum(
|
|
"enum_pages_blocks_before_after_slider_orientation",
|
|
["horizontal", "vertical"],
|
|
);
|
|
export const enum_pages_blocks_before_after_layout = pgEnum("enum_pages_blocks_before_after_layout", [
|
|
"single",
|
|
"grid-2",
|
|
"grid-3",
|
|
"carousel",
|
|
"masonry",
|
|
]);
|
|
export const enum_pages_blocks_before_after_aspect_ratio = pgEnum("enum_pages_blocks_before_after_aspect_ratio", [
|
|
"original",
|
|
"16-9",
|
|
"4-3",
|
|
"3-2",
|
|
"1-1",
|
|
"2-3",
|
|
"9-16",
|
|
]);
|
|
export const enum_pages_blocks_before_after_slider_handle_style = pgEnum(
|
|
"enum_pages_blocks_before_after_slider_handle_style",
|
|
["circle", "line", "arrows", "custom"],
|
|
);
|
|
export const enum_pages_blocks_before_after_slider_handle_color = pgEnum(
|
|
"enum_pages_blocks_before_after_slider_handle_color",
|
|
["white", "black", "primary", "accent"],
|
|
);
|
|
export const enum_pages_blocks_before_after_slider_handle_size = pgEnum(
|
|
"enum_pages_blocks_before_after_slider_handle_size",
|
|
["small", "medium", "large"],
|
|
);
|
|
export const enum_pages_blocks_before_after_label_position = pgEnum("enum_pages_blocks_before_after_label_position", [
|
|
"corners",
|
|
"top",
|
|
"bottom",
|
|
"overlay",
|
|
]);
|
|
export const enum_pages_blocks_before_after_label_style = pgEnum("enum_pages_blocks_before_after_label_style", [
|
|
"badge",
|
|
"text",
|
|
"pill",
|
|
]);
|
|
export const enum_pages_blocks_before_after_cta_cta_style = pgEnum("enum_pages_blocks_before_after_cta_cta_style", [
|
|
"primary",
|
|
"secondary",
|
|
"outline",
|
|
"ghost",
|
|
]);
|
|
export const enum_pages_blocks_before_after_background_color = pgEnum(
|
|
"enum_pages_blocks_before_after_background_color",
|
|
["transparent", "white", "light", "dark", "black"],
|
|
);
|
|
export const enum_pages_blocks_before_after_border_radius = pgEnum("enum_pages_blocks_before_after_border_radius", [
|
|
"none",
|
|
"small",
|
|
"medium",
|
|
"large",
|
|
]);
|
|
export const enum_pages_blocks_before_after_shadow = pgEnum("enum_pages_blocks_before_after_shadow", [
|
|
"none",
|
|
"small",
|
|
"medium",
|
|
"large",
|
|
]);
|
|
export const enum_pages_blocks_before_after_spacing = pgEnum("enum_pages_blocks_before_after_spacing", [
|
|
"none",
|
|
"small",
|
|
"medium",
|
|
"large",
|
|
]);
|
|
export const enum_pages_blocks_favorites_block_category = pgEnum("enum_pages_blocks_favorites_block_category", [
|
|
"all",
|
|
"fashion",
|
|
"beauty",
|
|
"travel",
|
|
"tech",
|
|
"home",
|
|
]);
|
|
export const enum_pages_blocks_favorites_block_layout = pgEnum("enum_pages_blocks_favorites_block_layout", [
|
|
"grid",
|
|
"list",
|
|
"carousel",
|
|
]);
|
|
export const enum_pages_blocks_favorites_block_columns = pgEnum("enum_pages_blocks_favorites_block_columns", [
|
|
"2",
|
|
"3",
|
|
"4",
|
|
]);
|
|
export const enum_pages_blocks_favorites_block_background_color = pgEnum(
|
|
"enum_pages_blocks_favorites_block_background_color",
|
|
["white", "ivory", "sand", "light", "dark"],
|
|
);
|
|
export const enum_pages_blocks_series_block_layout = pgEnum("enum_pages_blocks_series_block_layout", [
|
|
"grid",
|
|
"list",
|
|
"featured",
|
|
]);
|
|
export const enum_pages_blocks_series_block_columns = pgEnum("enum_pages_blocks_series_block_columns", ["2", "3", "4"]);
|
|
export const enum_pages_blocks_series_block_background_color = pgEnum(
|
|
"enum_pages_blocks_series_block_background_color",
|
|
["white", "ivory", "sand", "light", "dark"],
|
|
);
|
|
export const enum_pages_blocks_series_detail_block_layout = pgEnum("enum_pages_blocks_series_detail_block_layout", [
|
|
"full",
|
|
"compact",
|
|
]);
|
|
export const enum_pages_blocks_series_detail_block_hero_height = pgEnum(
|
|
"enum_pages_blocks_series_detail_block_hero_height",
|
|
["small", "medium", "large", "fullscreen"],
|
|
);
|
|
export const enum_pages_blocks_series_detail_block_hero_text_align = pgEnum(
|
|
"enum_pages_blocks_series_detail_block_hero_text_align",
|
|
["left", "center", "right"],
|
|
);
|
|
export const enum_pages_blocks_video_embed_block_video_source = pgEnum(
|
|
"enum_pages_blocks_video_embed_block_video_source",
|
|
["youtube", "vimeo", "custom"],
|
|
);
|
|
export const enum_pages_blocks_video_embed_block_aspect_ratio = pgEnum(
|
|
"enum_pages_blocks_video_embed_block_aspect_ratio",
|
|
["16:9", "4:3", "1:1", "9:16"],
|
|
);
|
|
export const enum_pages_blocks_video_embed_block_max_width = pgEnum("enum_pages_blocks_video_embed_block_max_width", [
|
|
"full",
|
|
"large",
|
|
"medium",
|
|
"small",
|
|
]);
|
|
export const enum_pages_blocks_video_embed_block_style_alignment = pgEnum(
|
|
"enum_pages_blocks_video_embed_block_style_alignment",
|
|
["left", "center", "right"],
|
|
);
|
|
export const enum_pages_blocks_video_embed_block_style_border_radius = pgEnum(
|
|
"enum_pages_blocks_video_embed_block_style_border_radius",
|
|
["none", "sm", "md", "lg"],
|
|
);
|
|
export const enum_pages_blocks_featured_content_block_items_item_type = pgEnum(
|
|
"enum_pages_blocks_featured_content_block_items_item_type",
|
|
["post", "video", "series", "external"],
|
|
);
|
|
export const enum_pages_blocks_featured_content_block_layout = pgEnum(
|
|
"enum_pages_blocks_featured_content_block_layout",
|
|
["grid", "carousel", "list", "featured-grid"],
|
|
);
|
|
export const enum_pages_blocks_featured_content_block_columns = pgEnum(
|
|
"enum_pages_blocks_featured_content_block_columns",
|
|
["2", "3", "4"],
|
|
);
|
|
export const enum_pages_blocks_featured_content_block_background_color = pgEnum(
|
|
"enum_pages_blocks_featured_content_block_background_color",
|
|
["white", "ivory", "sand", "light", "dark"],
|
|
);
|
|
export const enum_pages_blocks_featured_content_block_card_bg = pgEnum(
|
|
"enum_pages_blocks_featured_content_block_card_bg",
|
|
["white", "transparent", "light"],
|
|
);
|
|
export const enum_pages_blocks_featured_content_block_card_img_ratio = pgEnum(
|
|
"enum_pages_blocks_featured_content_block_card_img_ratio",
|
|
["16:9", "4:3", "1:1", "3:2"],
|
|
);
|
|
export const enum_pages_blocks_featured_content_block_card_hover = pgEnum(
|
|
"enum_pages_blocks_featured_content_block_card_hover",
|
|
["none", "lift", "zoom", "shadow"],
|
|
);
|
|
export const enum_pages_status = pgEnum("enum_pages_status", ["draft", "published"]);
|
|
export const enum_posts_type = pgEnum("enum_posts_type", ["blog", "news", "press", "announcement"]);
|
|
export const enum_posts_featured_video_source = pgEnum("enum_posts_featured_video_source", [
|
|
"library",
|
|
"embed",
|
|
"upload",
|
|
]);
|
|
export const enum_posts_status = pgEnum("enum_posts_status", ["draft", "published", "archived"]);
|
|
export const enum_social_links_platform = pgEnum("enum_social_links_platform", [
|
|
"facebook",
|
|
"x",
|
|
"instagram",
|
|
"youtube",
|
|
"linkedin",
|
|
"xing",
|
|
]);
|
|
export const enum_team_social_links_platform = pgEnum("enum_team_social_links_platform", [
|
|
"linkedin",
|
|
"xing",
|
|
"twitter",
|
|
"instagram",
|
|
"facebook",
|
|
"website",
|
|
"github",
|
|
]);
|
|
export const enum_team_languages_level = pgEnum("enum_team_languages_level", ["native", "fluent", "good", "basic"]);
|
|
export const enum_team_hierarchy_level = pgEnum("enum_team_hierarchy_level", [
|
|
"executive",
|
|
"department_head",
|
|
"team_lead",
|
|
"employee",
|
|
"trainee",
|
|
]);
|
|
export const enum_services_pricing_type = pgEnum("enum_services_pricing_type", [
|
|
"on-request",
|
|
"fixed",
|
|
"from",
|
|
"range",
|
|
"hourly",
|
|
"monthly",
|
|
"free",
|
|
]);
|
|
export const enum_services_cta_style = pgEnum("enum_services_cta_style", ["primary", "secondary", "outline"]);
|
|
export const enum_newsletter_subscribers_interests = pgEnum("enum_newsletter_subscribers_interests", [
|
|
"general",
|
|
"blog",
|
|
"products",
|
|
"offers",
|
|
"events",
|
|
]);
|
|
export const enum_newsletter_subscribers_status = pgEnum("enum_newsletter_subscribers_status", [
|
|
"pending",
|
|
"confirmed",
|
|
"unsubscribed",
|
|
"bounced",
|
|
]);
|
|
export const enum_portfolios_status = pgEnum("enum_portfolios_status", ["draft", "published", "archived"]);
|
|
export const enum_videos_source = pgEnum("enum_videos_source", ["youtube", "vimeo", "upload", "external"]);
|
|
export const enum_videos_video_type = pgEnum("enum_videos_video_type", [
|
|
"tutorial",
|
|
"product",
|
|
"testimonial",
|
|
"explainer",
|
|
"webinar",
|
|
"interview",
|
|
"event",
|
|
"trailer",
|
|
"other",
|
|
]);
|
|
export const enum_videos_aspect_ratio = pgEnum("enum_videos_aspect_ratio", ["16:9", "4:3", "1:1", "9:16", "21:9"]);
|
|
export const enum_videos_status = pgEnum("enum_videos_status", ["draft", "published", "archived"]);
|
|
export const enum_products_pricing_currency = pgEnum("enum_products_pricing_currency", ["EUR", "USD", "CHF"]);
|
|
export const enum_products_pricing_price_type = pgEnum("enum_products_pricing_price_type", [
|
|
"fixed",
|
|
"from",
|
|
"on_request",
|
|
"free",
|
|
]);
|
|
export const enum_products_inventory_stock_status = pgEnum("enum_products_inventory_stock_status", [
|
|
"in_stock",
|
|
"low_stock",
|
|
"out_of_stock",
|
|
"on_order",
|
|
"preorder",
|
|
]);
|
|
export const enum_products_cta_type = pgEnum("enum_products_cta_type", [
|
|
"contact",
|
|
"quote",
|
|
"cart",
|
|
"external",
|
|
"download",
|
|
]);
|
|
export const enum_products_status = pgEnum("enum_products_status", ["draft", "published", "archived"]);
|
|
export const enum_timelines_events_deliverables_type = pgEnum("enum_timelines_events_deliverables_type", [
|
|
"output",
|
|
"input",
|
|
"document",
|
|
]);
|
|
export const enum_timelines_events_links_type = pgEnum("enum_timelines_events_links_type", [
|
|
"internal",
|
|
"external",
|
|
"download",
|
|
]);
|
|
export const enum_timelines_events_date_type = pgEnum("enum_timelines_events_date_type", [
|
|
"year",
|
|
"monthYear",
|
|
"fullDate",
|
|
"range",
|
|
"custom",
|
|
]);
|
|
export const enum_timelines_events_month = pgEnum("enum_timelines_events_month", [
|
|
"1",
|
|
"2",
|
|
"3",
|
|
"4",
|
|
"5",
|
|
"6",
|
|
"7",
|
|
"8",
|
|
"9",
|
|
"10",
|
|
"11",
|
|
"12",
|
|
]);
|
|
export const enum_timelines_events_end_month = pgEnum("enum_timelines_events_end_month", [
|
|
"1",
|
|
"2",
|
|
"3",
|
|
"4",
|
|
"5",
|
|
"6",
|
|
"7",
|
|
"8",
|
|
"9",
|
|
"10",
|
|
"11",
|
|
"12",
|
|
]);
|
|
export const enum_timelines_events_category = pgEnum("enum_timelines_events_category", [
|
|
"milestone",
|
|
"founding",
|
|
"product",
|
|
"team",
|
|
"award",
|
|
"partnership",
|
|
"expansion",
|
|
"technology",
|
|
"other",
|
|
]);
|
|
export const enum_timelines_events_importance = pgEnum("enum_timelines_events_importance", [
|
|
"highlight",
|
|
"normal",
|
|
"minor",
|
|
]);
|
|
export const enum_timelines_events_action_required = pgEnum("enum_timelines_events_action_required", [
|
|
"customer",
|
|
"internal",
|
|
"both",
|
|
"automatic",
|
|
]);
|
|
export const enum_timelines_type = pgEnum("enum_timelines_type", [
|
|
"history",
|
|
"milestones",
|
|
"releases",
|
|
"career",
|
|
"events",
|
|
"process",
|
|
]);
|
|
export const enum_timelines_status = pgEnum("enum_timelines_status", ["draft", "published", "archived"]);
|
|
export const enum_timelines_display_options_layout = pgEnum("enum_timelines_display_options_layout", [
|
|
"vertical",
|
|
"alternating",
|
|
"horizontal",
|
|
"compact",
|
|
]);
|
|
export const enum_timelines_display_options_sort_order = pgEnum("enum_timelines_display_options_sort_order", [
|
|
"desc",
|
|
"asc",
|
|
]);
|
|
export const enum_timelines_display_options_marker_style = pgEnum("enum_timelines_display_options_marker_style", [
|
|
"dot",
|
|
"number",
|
|
"icon",
|
|
"date",
|
|
]);
|
|
export const enum_timelines_display_options_color_scheme = pgEnum("enum_timelines_display_options_color_scheme", [
|
|
"primary",
|
|
"secondary",
|
|
"neutral",
|
|
"colorful",
|
|
]);
|
|
export const enum_workflows_phases_steps_resources_type = pgEnum("enum_workflows_phases_steps_resources_type", [
|
|
"document",
|
|
"template",
|
|
"link",
|
|
"tool",
|
|
"video",
|
|
]);
|
|
export const enum_workflows_phases_steps_step_type = pgEnum("enum_workflows_phases_steps_step_type", [
|
|
"task",
|
|
"decision",
|
|
"milestone",
|
|
"approval",
|
|
"wait",
|
|
"automatic",
|
|
]);
|
|
export const enum_workflows_phases_steps_priority = pgEnum("enum_workflows_phases_steps_priority", [
|
|
"critical",
|
|
"high",
|
|
"normal",
|
|
"low",
|
|
"optional",
|
|
]);
|
|
export const enum_workflows_global_resources_type = pgEnum("enum_workflows_global_resources_type", [
|
|
"document",
|
|
"template",
|
|
"checklist",
|
|
"link",
|
|
"tool",
|
|
]);
|
|
export const enum_workflows_type = pgEnum("enum_workflows_type", [
|
|
"project",
|
|
"business",
|
|
"approval",
|
|
"onboarding",
|
|
"support",
|
|
"development",
|
|
"marketing",
|
|
"other",
|
|
]);
|
|
export const enum_workflows_status = pgEnum("enum_workflows_status", ["draft", "published", "archived"]);
|
|
export const enum_workflows_properties_complexity = pgEnum("enum_workflows_properties_complexity", [
|
|
"simple",
|
|
"medium",
|
|
"complex",
|
|
"very_complex",
|
|
]);
|
|
export const enum_workflows_display_options_layout = pgEnum("enum_workflows_display_options_layout", [
|
|
"vertical",
|
|
"horizontal",
|
|
"flowchart",
|
|
"kanban",
|
|
"gantt",
|
|
]);
|
|
export const enum_workflows_display_options_color_scheme = pgEnum("enum_workflows_display_options_color_scheme", [
|
|
"phase",
|
|
"status",
|
|
"priority",
|
|
"brand",
|
|
]);
|
|
export const enum_locations_hours_structured_day = pgEnum("enum_locations_hours_structured_day", [
|
|
"monday",
|
|
"tuesday",
|
|
"wednesday",
|
|
"thursday",
|
|
"friday",
|
|
"saturday",
|
|
"sunday",
|
|
]);
|
|
export const enum_locations_type = pgEnum("enum_locations_type", [
|
|
"headquarters",
|
|
"office",
|
|
"branch",
|
|
"warehouse",
|
|
"showroom",
|
|
"studio",
|
|
"practice",
|
|
"workshop",
|
|
]);
|
|
export const enum_partners_type = pgEnum("enum_partners_type", [
|
|
"partner",
|
|
"client",
|
|
"reference",
|
|
"sponsor",
|
|
"certification",
|
|
"membership",
|
|
"award",
|
|
"supplier",
|
|
"technology",
|
|
]);
|
|
export const enum_jobs_benefits_list_icon = pgEnum("enum_jobs_benefits_list_icon", [
|
|
"money",
|
|
"vacation",
|
|
"home",
|
|
"education",
|
|
"health",
|
|
"team",
|
|
"flexible",
|
|
"transport",
|
|
"food",
|
|
"childcare",
|
|
"fitness",
|
|
"parking",
|
|
]);
|
|
export const enum_jobs_category = pgEnum("enum_jobs_category", [
|
|
"care",
|
|
"medical",
|
|
"admin",
|
|
"it",
|
|
"marketing",
|
|
"sales",
|
|
"finance",
|
|
"hr",
|
|
"production",
|
|
"logistics",
|
|
"other",
|
|
]);
|
|
export const enum_jobs_type = pgEnum("enum_jobs_type", [
|
|
"fulltime",
|
|
"parttime",
|
|
"minijob",
|
|
"working_student",
|
|
"internship",
|
|
"apprenticeship",
|
|
"dual_study",
|
|
"freelance",
|
|
"temporary",
|
|
]);
|
|
export const enum_jobs_work_model = pgEnum("enum_jobs_work_model", ["onsite", "remote", "hybrid"]);
|
|
export const enum_jobs_experience_level = pgEnum("enum_jobs_experience_level", [
|
|
"entry",
|
|
"experienced",
|
|
"senior",
|
|
"management",
|
|
]);
|
|
export const enum_jobs_salary_type = pgEnum("enum_jobs_salary_type", ["yearly", "monthly", "hourly"]);
|
|
export const enum_jobs_application_method = pgEnum("enum_jobs_application_method", [
|
|
"email",
|
|
"form",
|
|
"external",
|
|
"mail",
|
|
]);
|
|
export const enum_jobs_status = pgEnum("enum_jobs_status", ["draft", "published", "filled", "archived"]);
|
|
export const enum_downloads_access_form_fields = pgEnum("enum_downloads_access_form_fields", [
|
|
"name",
|
|
"email",
|
|
"company",
|
|
"phone",
|
|
]);
|
|
export const enum_downloads_file_type = pgEnum("enum_downloads_file_type", [
|
|
"pdf",
|
|
"doc",
|
|
"xls",
|
|
"ppt",
|
|
"image",
|
|
"video",
|
|
"audio",
|
|
"archive",
|
|
"other",
|
|
]);
|
|
export const enum_downloads_category = pgEnum("enum_downloads_category", [
|
|
"brochure",
|
|
"flyer",
|
|
"catalog",
|
|
"pricelist",
|
|
"form",
|
|
"manual",
|
|
"datasheet",
|
|
"certificate",
|
|
"press",
|
|
"whitepaper",
|
|
"presentation",
|
|
"legal",
|
|
"other",
|
|
]);
|
|
export const enum_events_agenda_type = pgEnum("enum_events_agenda_type", [
|
|
"talk",
|
|
"workshop",
|
|
"break",
|
|
"networking",
|
|
"panel",
|
|
"qa",
|
|
]);
|
|
export const enum_events_event_type = pgEnum("enum_events_event_type", [
|
|
"event",
|
|
"workshop",
|
|
"seminar",
|
|
"webinar",
|
|
"conference",
|
|
"tradeshow",
|
|
"networking",
|
|
"course",
|
|
"talk",
|
|
"other",
|
|
]);
|
|
export const enum_events_format = pgEnum("enum_events_format", ["onsite", "online", "hybrid"]);
|
|
export const enum_events_recurrence_frequency = pgEnum("enum_events_recurrence_frequency", [
|
|
"daily",
|
|
"weekly",
|
|
"monthly",
|
|
"yearly",
|
|
]);
|
|
export const enum_events_online_platform = pgEnum("enum_events_online_platform", [
|
|
"zoom",
|
|
"teams",
|
|
"google-meet",
|
|
"webex",
|
|
"gotowebinar",
|
|
"livestream",
|
|
"other",
|
|
]);
|
|
export const enum_events_registration_method = pgEnum("enum_events_registration_method", [
|
|
"form",
|
|
"email",
|
|
"external",
|
|
"phone",
|
|
]);
|
|
export const enum_events_status = pgEnum("enum_events_status", [
|
|
"draft",
|
|
"published",
|
|
"soldout",
|
|
"cancelled",
|
|
"postponed",
|
|
"past",
|
|
]);
|
|
export const enum_bookings_contact_history_type = pgEnum("enum_bookings_contact_history_type", [
|
|
"email_sent",
|
|
"email_received",
|
|
"call",
|
|
"whatsapp",
|
|
"inperson",
|
|
]);
|
|
export const enum_bookings_service_type = pgEnum("enum_bookings_service_type", [
|
|
"wedding",
|
|
"portrait",
|
|
"business",
|
|
"event",
|
|
"product",
|
|
"family",
|
|
"newborn",
|
|
"maternity",
|
|
"realestate",
|
|
"other",
|
|
]);
|
|
export const enum_bookings_duration = pgEnum("enum_bookings_duration", [
|
|
"30",
|
|
"60",
|
|
"120",
|
|
"180",
|
|
"240",
|
|
"480",
|
|
"custom",
|
|
]);
|
|
export const enum_bookings_location_type = pgEnum("enum_bookings_location_type", [
|
|
"studio",
|
|
"outdoor",
|
|
"customer",
|
|
"event",
|
|
"tbd",
|
|
]);
|
|
export const enum_bookings_status = pgEnum("enum_bookings_status", [
|
|
"pending",
|
|
"review",
|
|
"confirmed",
|
|
"deposit",
|
|
"completed",
|
|
"cancelled",
|
|
"noshow",
|
|
]);
|
|
export const enum_bookings_priority = pgEnum("enum_bookings_priority", ["high", "normal", "low"]);
|
|
export const enum_bookings_source = pgEnum("enum_bookings_source", [
|
|
"website",
|
|
"phone",
|
|
"email",
|
|
"instagram",
|
|
"facebook",
|
|
"referral",
|
|
"returning",
|
|
"other",
|
|
]);
|
|
export const enum_certifications_benefits_icon = pgEnum("enum_certifications_benefits_icon", [
|
|
"check",
|
|
"star",
|
|
"shield",
|
|
"heart",
|
|
"lock",
|
|
"search",
|
|
"clock",
|
|
"document",
|
|
]);
|
|
export const enum_certifications_audits_type = pgEnum("enum_certifications_audits_type", [
|
|
"initial",
|
|
"surveillance",
|
|
"recertification",
|
|
"special",
|
|
]);
|
|
export const enum_certifications_audits_result = pgEnum("enum_certifications_audits_result", [
|
|
"passed",
|
|
"conditional",
|
|
"failed",
|
|
]);
|
|
export const enum_certifications_type = pgEnum("enum_certifications_type", [
|
|
"iso",
|
|
"din",
|
|
"accreditation",
|
|
"seal",
|
|
"membership",
|
|
"award",
|
|
"license",
|
|
"approval",
|
|
"other",
|
|
]);
|
|
export const enum_certifications_category = pgEnum("enum_certifications_category", [
|
|
"quality",
|
|
"care",
|
|
"medical",
|
|
"hygiene",
|
|
"safety",
|
|
"privacy",
|
|
"environment",
|
|
"hr",
|
|
"it-security",
|
|
"accessibility",
|
|
"other",
|
|
]);
|
|
export const enum_certifications_issuer_country = pgEnum("enum_certifications_issuer_country", [
|
|
"DE",
|
|
"AT",
|
|
"CH",
|
|
"EU",
|
|
"INT",
|
|
]);
|
|
export const enum_certifications_renewal_cycle = pgEnum("enum_certifications_renewal_cycle", [
|
|
"yearly",
|
|
"2years",
|
|
"3years",
|
|
"5years",
|
|
"unlimited",
|
|
]);
|
|
export const enum_certifications_status = pgEnum("enum_certifications_status", [
|
|
"active",
|
|
"pending",
|
|
"renewal",
|
|
"suspended",
|
|
"expired",
|
|
"withdrawn",
|
|
]);
|
|
export const enum_certifications_visibility = pgEnum("enum_certifications_visibility", [
|
|
"public",
|
|
"request",
|
|
"internal",
|
|
]);
|
|
export const enum_projects_genres = pgEnum("enum_projects_genres", [
|
|
"action",
|
|
"adventure",
|
|
"rpg",
|
|
"strategy",
|
|
"simulation",
|
|
"puzzle",
|
|
"horror",
|
|
"shooter",
|
|
"platformer",
|
|
"racing",
|
|
"sports",
|
|
"fighting",
|
|
"music",
|
|
"visualnovel",
|
|
"survival",
|
|
"sandbox",
|
|
"towerdefense",
|
|
"roguelike",
|
|
"indie",
|
|
]);
|
|
export const enum_projects_platforms = pgEnum("enum_projects_platforms", [
|
|
"windows",
|
|
"macos",
|
|
"linux",
|
|
"web",
|
|
"ios",
|
|
"android",
|
|
"playstation",
|
|
"xbox",
|
|
"switch",
|
|
"steamdeck",
|
|
"vr",
|
|
]);
|
|
export const enum_projects_videos_type = pgEnum("enum_projects_videos_type", [
|
|
"trailer",
|
|
"gameplay",
|
|
"devlog",
|
|
"tutorial",
|
|
"other",
|
|
]);
|
|
export const enum_projects_tech_stack_languages = pgEnum("enum_projects_tech_stack_languages", [
|
|
"csharp",
|
|
"cpp",
|
|
"gdscript",
|
|
"javascript",
|
|
"typescript",
|
|
"python",
|
|
"lua",
|
|
"rust",
|
|
"blueprint",
|
|
]);
|
|
export const enum_projects_downloads_platform = pgEnum("enum_projects_downloads_platform", [
|
|
"windows",
|
|
"macos",
|
|
"linux",
|
|
"universal",
|
|
]);
|
|
export const enum_projects_type = pgEnum("enum_projects_type", [
|
|
"game",
|
|
"demo",
|
|
"mod",
|
|
"tool",
|
|
"assets",
|
|
"prototype",
|
|
"gamejam",
|
|
"tutorial",
|
|
"opensource",
|
|
"other",
|
|
]);
|
|
export const enum_projects_tech_stack_engine = pgEnum("enum_projects_tech_stack_engine", [
|
|
"unity",
|
|
"unreal",
|
|
"godot",
|
|
"gamemaker",
|
|
"rpgmaker",
|
|
"construct",
|
|
"custom",
|
|
"renpy",
|
|
"phaser",
|
|
"other",
|
|
]);
|
|
export const enum_projects_status = pgEnum("enum_projects_status", [
|
|
"development",
|
|
"earlyaccess",
|
|
"released",
|
|
"paused",
|
|
"cancelled",
|
|
"completed",
|
|
]);
|
|
export const enum_projects_visibility = pgEnum("enum_projects_visibility", ["public", "draft", "unlisted", "private"]);
|
|
export const enum_favorites_category = pgEnum("enum_favorites_category", [
|
|
"fashion",
|
|
"beauty",
|
|
"travel",
|
|
"tech",
|
|
"home",
|
|
]);
|
|
export const enum_favorites_price_range = pgEnum("enum_favorites_price_range", ["budget", "mid", "premium", "luxury"]);
|
|
export const enum_favorites_affiliate_network = pgEnum("enum_favorites_affiliate_network", [
|
|
"amazon",
|
|
"awin",
|
|
"ltk",
|
|
"direct",
|
|
"other",
|
|
]);
|
|
export const enum_favorites_badge = pgEnum("enum_favorites_badge", [
|
|
"investment-piece",
|
|
"daily-driver",
|
|
"grfi-approved",
|
|
"new",
|
|
"bestseller",
|
|
]);
|
|
export const enum_youtube_channels_publishing_schedule_default_days = pgEnum(
|
|
"enum_youtube_channels_publishing_schedule_default_days",
|
|
["monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"],
|
|
);
|
|
export const enum_youtube_channels_language = pgEnum("enum_youtube_channels_language", ["de", "en"]);
|
|
export const enum_youtube_channels_category = pgEnum("enum_youtube_channels_category", [
|
|
"lifestyle",
|
|
"corporate",
|
|
"b2b",
|
|
]);
|
|
export const enum_youtube_channels_status = pgEnum("enum_youtube_channels_status", [
|
|
"active",
|
|
"planned",
|
|
"paused",
|
|
"archived",
|
|
]);
|
|
export const enum_youtube_content_disclaimers_type = pgEnum("enum_youtube_content_disclaimers_type", [
|
|
"medical",
|
|
"legal",
|
|
"affiliate",
|
|
"sponsored",
|
|
]);
|
|
export const enum_youtube_content_disclaimers_placement = pgEnum("enum_youtube_content_disclaimers_placement", [
|
|
"spoken",
|
|
"overlay",
|
|
"description",
|
|
"all",
|
|
]);
|
|
export const enum_youtube_content_format = pgEnum("enum_youtube_content_format", ["short", "longform", "premiere"]);
|
|
export const enum_youtube_content_status = pgEnum("enum_youtube_content_status", [
|
|
"idea",
|
|
"script_draft",
|
|
"script_review",
|
|
"script_approved",
|
|
"shoot_scheduled",
|
|
"shot",
|
|
"rough_cut",
|
|
"fine_cut",
|
|
"final_review",
|
|
"approved",
|
|
"upload_scheduled",
|
|
"published",
|
|
"tracked",
|
|
"discarded",
|
|
]);
|
|
export const enum_youtube_content_priority = pgEnum("enum_youtube_content_priority", [
|
|
"urgent",
|
|
"high",
|
|
"normal",
|
|
"low",
|
|
]);
|
|
export const enum_youtube_content_cta_type = pgEnum("enum_youtube_content_cta_type", [
|
|
"link_in_bio",
|
|
"newsletter",
|
|
"longform_link",
|
|
"custom",
|
|
]);
|
|
export const enum_youtube_content_youtube_metadata_visibility = pgEnum(
|
|
"enum_youtube_content_youtube_metadata_visibility",
|
|
["public", "unlisted", "private"],
|
|
);
|
|
export const enum_yt_tasks_task_type = pgEnum("enum_yt_tasks_task_type", [
|
|
"script_write",
|
|
"script_review",
|
|
"shoot_prep",
|
|
"shoot",
|
|
"edit",
|
|
"graphics",
|
|
"thumbnail",
|
|
"review",
|
|
"upload",
|
|
"track",
|
|
"comments",
|
|
"other",
|
|
]);
|
|
export const enum_yt_tasks_status = pgEnum("enum_yt_tasks_status", [
|
|
"todo",
|
|
"in_progress",
|
|
"blocked",
|
|
"waiting_review",
|
|
"done",
|
|
"cancelled",
|
|
]);
|
|
export const enum_yt_tasks_priority = pgEnum("enum_yt_tasks_priority", ["urgent", "high", "normal", "low"]);
|
|
export const enum_yt_notifications_type = pgEnum("enum_yt_notifications_type", [
|
|
"task_assigned",
|
|
"task_due",
|
|
"task_overdue",
|
|
"approval_required",
|
|
"approved",
|
|
"rejected",
|
|
"video_published",
|
|
"comment",
|
|
"mention",
|
|
"system",
|
|
]);
|
|
export const enum_yt_batches_status = pgEnum("enum_yt_batches_status", ["planning", "production", "published"]);
|
|
export const enum_yt_monthly_goals_custom_goals_status = pgEnum("enum_yt_monthly_goals_custom_goals_status", [
|
|
"on_track",
|
|
"at_risk",
|
|
"achieved",
|
|
"missed",
|
|
]);
|
|
export const enum_yt_script_tpl_format = pgEnum("enum_yt_script_tpl_format", ["short", "longform"]);
|
|
export const enum_yt_checklist_templates_items_category = pgEnum("enum_yt_checklist_templates_items_category", [
|
|
"metadata",
|
|
"assets",
|
|
"seo",
|
|
"community",
|
|
"legal",
|
|
"other",
|
|
]);
|
|
export const enum_yt_checklist_templates_type = pgEnum("enum_yt_checklist_templates_type", [
|
|
"upload",
|
|
"production",
|
|
"review",
|
|
"post_publish",
|
|
]);
|
|
export const enum_yt_checklist_templates_format = pgEnum("enum_yt_checklist_templates_format", [
|
|
"all",
|
|
"short",
|
|
"longform",
|
|
]);
|
|
export const enum_yt_series_format = pgEnum("enum_yt_series_format", ["short", "longform", "mixed"]);
|
|
export const enum_social_platforms_api_status = pgEnum("enum_social_platforms_api_status", [
|
|
"connected",
|
|
"limited",
|
|
"disconnected",
|
|
"development",
|
|
]);
|
|
export const enum_social_platforms_api_config_api_type = pgEnum("enum_social_platforms_api_config_api_type", [
|
|
"youtube_v3",
|
|
"linkedin",
|
|
"instagram_graph",
|
|
"facebook_graph",
|
|
"custom",
|
|
]);
|
|
export const enum_social_platforms_api_config_auth_type = pgEnum("enum_social_platforms_api_config_auth_type", [
|
|
"oauth2",
|
|
"api_key",
|
|
"bearer",
|
|
]);
|
|
export const enum_community_interactions_attachments_type = pgEnum("enum_community_interactions_attachments_type", [
|
|
"image",
|
|
"video",
|
|
"link",
|
|
"sticker",
|
|
]);
|
|
export const enum_community_interactions_type = pgEnum("enum_community_interactions_type", [
|
|
"comment",
|
|
"reply",
|
|
"dm",
|
|
"mention",
|
|
"review",
|
|
"question",
|
|
]);
|
|
export const enum_community_interactions_analysis_sentiment = pgEnum("enum_community_interactions_analysis_sentiment", [
|
|
"positive",
|
|
"neutral",
|
|
"negative",
|
|
"question",
|
|
"gratitude",
|
|
"frustration",
|
|
]);
|
|
export const enum_community_interactions_status = pgEnum("enum_community_interactions_status", [
|
|
"new",
|
|
"in_review",
|
|
"waiting",
|
|
"replied",
|
|
"resolved",
|
|
"archived",
|
|
"spam",
|
|
]);
|
|
export const enum_community_interactions_priority = pgEnum("enum_community_interactions_priority", [
|
|
"urgent",
|
|
"high",
|
|
"normal",
|
|
"low",
|
|
]);
|
|
export const enum_community_templates_category = pgEnum("enum_community_templates_category", [
|
|
"thank_you",
|
|
"question_answer",
|
|
"redirect_hotline",
|
|
"medical_disclaimer",
|
|
"product_info",
|
|
"content_reference",
|
|
"follow_up",
|
|
"negative_feedback",
|
|
"spam_response",
|
|
"welcome",
|
|
]);
|
|
export const enum_community_rules_trigger_keywords_match_type = pgEnum(
|
|
"enum_community_rules_trigger_keywords_match_type",
|
|
["contains", "exact", "regex"],
|
|
);
|
|
export const enum_community_rules_trigger_sentiment_values = pgEnum("enum_community_rules_trigger_sentiment_values", [
|
|
"positive",
|
|
"negative",
|
|
"neutral",
|
|
"question",
|
|
]);
|
|
export const enum_community_rules_actions_action = pgEnum("enum_community_rules_actions_action", [
|
|
"set_priority",
|
|
"assign_to",
|
|
"set_flag",
|
|
"suggest_template",
|
|
"send_notification",
|
|
"flag_medical",
|
|
"escalate",
|
|
"mark_spam",
|
|
"set_deadline",
|
|
]);
|
|
export const enum_community_rules_trigger_type = pgEnum("enum_community_rules_trigger_type", [
|
|
"keyword",
|
|
"sentiment",
|
|
"question_detected",
|
|
"medical_detected",
|
|
"influencer",
|
|
"all_new",
|
|
"contains_link",
|
|
"contains_email",
|
|
]);
|
|
export const enum_cookie_configurations_enabled_categories = pgEnum("enum_cookie_configurations_enabled_categories", [
|
|
"necessary",
|
|
"functional",
|
|
"analytics",
|
|
"marketing",
|
|
]);
|
|
export const enum_cookie_configurations_styling_position = pgEnum("enum_cookie_configurations_styling_position", [
|
|
"bottom",
|
|
"top",
|
|
"middle",
|
|
]);
|
|
export const enum_cookie_configurations_styling_theme = pgEnum("enum_cookie_configurations_styling_theme", [
|
|
"dark",
|
|
"light",
|
|
"auto",
|
|
]);
|
|
export const enum_cookie_inventory_category = pgEnum("enum_cookie_inventory_category", [
|
|
"necessary",
|
|
"functional",
|
|
"analytics",
|
|
"marketing",
|
|
]);
|
|
export const enum_privacy_policy_settings_provider = pgEnum("enum_privacy_policy_settings_provider", [
|
|
"alfright",
|
|
"internal",
|
|
]);
|
|
export const enum_privacy_policy_settings_alfright_language = pgEnum("enum_privacy_policy_settings_alfright_language", [
|
|
"de-de",
|
|
"de-at",
|
|
"de-ch",
|
|
"en-gb",
|
|
"en-us",
|
|
]);
|
|
export const enum_email_logs_status = pgEnum("enum_email_logs_status", ["pending", "sent", "failed"]);
|
|
export const enum_email_logs_source = pgEnum("enum_email_logs_source", ["manual", "form", "system", "newsletter"]);
|
|
export const enum_audit_logs_action = pgEnum("enum_audit_logs_action", [
|
|
"login_success",
|
|
"login_failed",
|
|
"logout",
|
|
"password_changed",
|
|
"password_reset",
|
|
"create",
|
|
"update",
|
|
"delete",
|
|
"config_changed",
|
|
"email_failed",
|
|
"access_denied",
|
|
"rate_limit",
|
|
]);
|
|
export const enum_audit_logs_severity = pgEnum("enum_audit_logs_severity", ["info", "warning", "error", "critical"]);
|
|
export const enum_audit_logs_entity_type = pgEnum("enum_audit_logs_entity_type", [
|
|
"users",
|
|
"tenants",
|
|
"pages",
|
|
"posts",
|
|
"media",
|
|
"forms",
|
|
"email",
|
|
"global",
|
|
"system",
|
|
]);
|
|
export const enum_navigations_main_menu_submenu_link_type = pgEnum("enum_navigations_main_menu_submenu_link_type", [
|
|
"page",
|
|
"custom",
|
|
]);
|
|
export const enum_navigations_main_menu_type = pgEnum("enum_navigations_main_menu_type", ["page", "custom", "submenu"]);
|
|
export const enum_navigations_footer_menu_link_type = pgEnum("enum_navigations_footer_menu_link_type", [
|
|
"page",
|
|
"custom",
|
|
]);
|
|
export const enum_forms_confirmation_type = pgEnum("enum_forms_confirmation_type", ["message", "redirect"]);
|
|
export const enum_forms_redirect_type = pgEnum("enum_forms_redirect_type", ["reference", "custom"]);
|
|
export const enum_redirects_to_type = pgEnum("enum_redirects_to_type", ["reference", "custom"]);
|
|
export const enum_seo_settings_social_profiles_platform = pgEnum("enum_seo_settings_social_profiles_platform", [
|
|
"facebook",
|
|
"instagram",
|
|
"twitter",
|
|
"linkedin",
|
|
"youtube",
|
|
"tiktok",
|
|
"pinterest",
|
|
"xing",
|
|
"other",
|
|
]);
|
|
export const enum_seo_settings_local_business_type = pgEnum("enum_seo_settings_local_business_type", [
|
|
"LocalBusiness",
|
|
"Physician",
|
|
"Dentist",
|
|
"Attorney",
|
|
"Restaurant",
|
|
"Hotel",
|
|
"Store",
|
|
"HealthClub",
|
|
"HairSalon",
|
|
"AutoRepair",
|
|
"RealEstateAgent",
|
|
"FinancialService",
|
|
"ProfessionalService",
|
|
"MedicalBusiness",
|
|
]);
|
|
export const enum_seo_settings_local_business_price_range = pgEnum("enum_seo_settings_local_business_price_range", [
|
|
"€",
|
|
"€€",
|
|
"€€€",
|
|
"€€€€",
|
|
]);
|
|
|
|
export const users_tenants = pgTable(
|
|
"users_tenants",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
tenant: integer("tenant_id")
|
|
.notNull()
|
|
.references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
},
|
|
(columns) => [
|
|
index("users_tenants_order_idx").on(columns._order),
|
|
index("users_tenants_parent_id_idx").on(columns._parentID),
|
|
index("users_tenants_tenant_idx").on(columns.tenant),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [users.id],
|
|
name: "users_tenants_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const users_sessions = pgTable(
|
|
"users_sessions",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
expiresAt: timestamp("expires_at", { mode: "string", withTimezone: true, precision: 3 }).notNull(),
|
|
},
|
|
(columns) => [
|
|
index("users_sessions_order_idx").on(columns._order),
|
|
index("users_sessions_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [users.id],
|
|
name: "users_sessions_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const users = pgTable(
|
|
"users",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
isSuperAdmin: boolean("is_super_admin").default(false),
|
|
youtubeRole: enum_users_youtube_role("youtube_role").default("none"),
|
|
communityRole: enum_users_community_role("community_role").default("none"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
email: varchar("email").notNull(),
|
|
resetPasswordToken: varchar("reset_password_token"),
|
|
resetPasswordExpiration: timestamp("reset_password_expiration", {
|
|
mode: "string",
|
|
withTimezone: true,
|
|
precision: 3,
|
|
}),
|
|
salt: varchar("salt"),
|
|
hash: varchar("hash"),
|
|
loginAttempts: numeric("login_attempts", { mode: "number" }).default(0),
|
|
lockUntil: timestamp("lock_until", { mode: "string", withTimezone: true, precision: 3 }),
|
|
},
|
|
(columns) => [
|
|
index("users_updated_at_idx").on(columns.updatedAt),
|
|
index("users_created_at_idx").on(columns.createdAt),
|
|
uniqueIndex("users_email_idx").on(columns.email),
|
|
],
|
|
);
|
|
|
|
export const users_rels = pgTable(
|
|
"users_rels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order"),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
"youtube-channelsID": integer("youtube_channels_id"),
|
|
},
|
|
(columns) => [
|
|
index("users_rels_order_idx").on(columns.order),
|
|
index("users_rels_parent_idx").on(columns.parent),
|
|
index("users_rels_path_idx").on(columns.path),
|
|
index("users_rels_youtube_channels_id_idx").on(columns["youtube-channelsID"]),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [users.id],
|
|
name: "users_rels_parent_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["youtube-channelsID"]],
|
|
foreignColumns: [youtube_channels.id],
|
|
name: "users_rels_youtube_channels_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const media = pgTable(
|
|
"media",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
alt: varchar("alt").notNull(),
|
|
caption: varchar("caption"),
|
|
credit: varchar("credit"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
url: varchar("url"),
|
|
thumbnailURL: varchar("thumbnail_u_r_l"),
|
|
filename: varchar("filename"),
|
|
mimeType: varchar("mime_type"),
|
|
filesize: numeric("filesize", { mode: "number" }),
|
|
width: numeric("width", { mode: "number" }),
|
|
height: numeric("height", { mode: "number" }),
|
|
focalX: numeric("focal_x", { mode: "number" }),
|
|
focalY: numeric("focal_y", { mode: "number" }),
|
|
sizes_thumbnail_url: varchar("sizes_thumbnail_url"),
|
|
sizes_thumbnail_width: numeric("sizes_thumbnail_width", { mode: "number" }),
|
|
sizes_thumbnail_height: numeric("sizes_thumbnail_height", { mode: "number" }),
|
|
sizes_thumbnail_mimeType: varchar("sizes_thumbnail_mime_type"),
|
|
sizes_thumbnail_filesize: numeric("sizes_thumbnail_filesize", { mode: "number" }),
|
|
sizes_thumbnail_filename: varchar("sizes_thumbnail_filename"),
|
|
sizes_small_url: varchar("sizes_small_url"),
|
|
sizes_small_width: numeric("sizes_small_width", { mode: "number" }),
|
|
sizes_small_height: numeric("sizes_small_height", { mode: "number" }),
|
|
sizes_small_mimeType: varchar("sizes_small_mime_type"),
|
|
sizes_small_filesize: numeric("sizes_small_filesize", { mode: "number" }),
|
|
sizes_small_filename: varchar("sizes_small_filename"),
|
|
sizes_medium_url: varchar("sizes_medium_url"),
|
|
sizes_medium_width: numeric("sizes_medium_width", { mode: "number" }),
|
|
sizes_medium_height: numeric("sizes_medium_height", { mode: "number" }),
|
|
sizes_medium_mimeType: varchar("sizes_medium_mime_type"),
|
|
sizes_medium_filesize: numeric("sizes_medium_filesize", { mode: "number" }),
|
|
sizes_medium_filename: varchar("sizes_medium_filename"),
|
|
sizes_large_url: varchar("sizes_large_url"),
|
|
sizes_large_width: numeric("sizes_large_width", { mode: "number" }),
|
|
sizes_large_height: numeric("sizes_large_height", { mode: "number" }),
|
|
sizes_large_mimeType: varchar("sizes_large_mime_type"),
|
|
sizes_large_filesize: numeric("sizes_large_filesize", { mode: "number" }),
|
|
sizes_large_filename: varchar("sizes_large_filename"),
|
|
sizes_xlarge_url: varchar("sizes_xlarge_url"),
|
|
sizes_xlarge_width: numeric("sizes_xlarge_width", { mode: "number" }),
|
|
sizes_xlarge_height: numeric("sizes_xlarge_height", { mode: "number" }),
|
|
sizes_xlarge_mimeType: varchar("sizes_xlarge_mime_type"),
|
|
sizes_xlarge_filesize: numeric("sizes_xlarge_filesize", { mode: "number" }),
|
|
sizes_xlarge_filename: varchar("sizes_xlarge_filename"),
|
|
sizes_2k_url: varchar("sizes_2k_url"),
|
|
sizes_2k_width: numeric("sizes_2k_width", { mode: "number" }),
|
|
sizes_2k_height: numeric("sizes_2k_height", { mode: "number" }),
|
|
sizes_2k_mimeType: varchar("sizes_2k_mime_type"),
|
|
sizes_2k_filesize: numeric("sizes_2k_filesize", { mode: "number" }),
|
|
sizes_2k_filename: varchar("sizes_2k_filename"),
|
|
sizes_og_url: varchar("sizes_og_url"),
|
|
sizes_og_width: numeric("sizes_og_width", { mode: "number" }),
|
|
sizes_og_height: numeric("sizes_og_height", { mode: "number" }),
|
|
sizes_og_mimeType: varchar("sizes_og_mime_type"),
|
|
sizes_og_filesize: numeric("sizes_og_filesize", { mode: "number" }),
|
|
sizes_og_filename: varchar("sizes_og_filename"),
|
|
sizes_medium_avif_url: varchar("sizes_medium_avif_url"),
|
|
sizes_medium_avif_width: numeric("sizes_medium_avif_width", { mode: "number" }),
|
|
sizes_medium_avif_height: numeric("sizes_medium_avif_height", { mode: "number" }),
|
|
sizes_medium_avif_mimeType: varchar("sizes_medium_avif_mime_type"),
|
|
sizes_medium_avif_filesize: numeric("sizes_medium_avif_filesize", { mode: "number" }),
|
|
sizes_medium_avif_filename: varchar("sizes_medium_avif_filename"),
|
|
sizes_large_avif_url: varchar("sizes_large_avif_url"),
|
|
sizes_large_avif_width: numeric("sizes_large_avif_width", { mode: "number" }),
|
|
sizes_large_avif_height: numeric("sizes_large_avif_height", { mode: "number" }),
|
|
sizes_large_avif_mimeType: varchar("sizes_large_avif_mime_type"),
|
|
sizes_large_avif_filesize: numeric("sizes_large_avif_filesize", { mode: "number" }),
|
|
sizes_large_avif_filename: varchar("sizes_large_avif_filename"),
|
|
sizes_xlarge_avif_url: varchar("sizes_xlarge_avif_url"),
|
|
sizes_xlarge_avif_width: numeric("sizes_xlarge_avif_width", { mode: "number" }),
|
|
sizes_xlarge_avif_height: numeric("sizes_xlarge_avif_height", { mode: "number" }),
|
|
sizes_xlarge_avif_mimeType: varchar("sizes_xlarge_avif_mime_type"),
|
|
sizes_xlarge_avif_filesize: numeric("sizes_xlarge_avif_filesize", { mode: "number" }),
|
|
sizes_xlarge_avif_filename: varchar("sizes_xlarge_avif_filename"),
|
|
},
|
|
(columns) => [
|
|
index("media_tenant_idx").on(columns.tenant),
|
|
index("media_updated_at_idx").on(columns.updatedAt),
|
|
index("media_created_at_idx").on(columns.createdAt),
|
|
uniqueIndex("media_filename_idx").on(columns.filename),
|
|
index("media_sizes_thumbnail_sizes_thumbnail_filename_idx").on(columns.sizes_thumbnail_filename),
|
|
index("media_sizes_small_sizes_small_filename_idx").on(columns.sizes_small_filename),
|
|
index("media_sizes_medium_sizes_medium_filename_idx").on(columns.sizes_medium_filename),
|
|
index("media_sizes_large_sizes_large_filename_idx").on(columns.sizes_large_filename),
|
|
index("media_sizes_xlarge_sizes_xlarge_filename_idx").on(columns.sizes_xlarge_filename),
|
|
index("media_sizes_2k_sizes_2k_filename_idx").on(columns.sizes_2k_filename),
|
|
index("media_sizes_og_sizes_og_filename_idx").on(columns.sizes_og_filename),
|
|
index("media_sizes_medium_avif_sizes_medium_avif_filename_idx").on(columns.sizes_medium_avif_filename),
|
|
index("media_sizes_large_avif_sizes_large_avif_filename_idx").on(columns.sizes_large_avif_filename),
|
|
index("media_sizes_xlarge_avif_sizes_xlarge_avif_filename_idx").on(columns.sizes_xlarge_avif_filename),
|
|
],
|
|
);
|
|
|
|
export const media_texts = pgTable(
|
|
"media_texts",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order").notNull(),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
text: varchar("text"),
|
|
},
|
|
(columns) => [
|
|
index("media_texts_order_parent").on(columns.order, columns.parent),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [media.id],
|
|
name: "media_texts_parent_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const tenants_domains = pgTable(
|
|
"tenants_domains",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
domain: varchar("domain").notNull(),
|
|
},
|
|
(columns) => [
|
|
index("tenants_domains_order_idx").on(columns._order),
|
|
index("tenants_domains_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [tenants.id],
|
|
name: "tenants_domains_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const tenants = pgTable(
|
|
"tenants",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
name: varchar("name").notNull(),
|
|
slug: varchar("slug").notNull(),
|
|
email_fromAddress: varchar("email_from_address"),
|
|
email_fromName: varchar("email_from_name"),
|
|
email_replyTo: varchar("email_reply_to"),
|
|
email_useCustomSmtp: boolean("email_use_custom_smtp").default(false),
|
|
email_smtp_host: varchar("email_smtp_host"),
|
|
email_smtp_port: numeric("email_smtp_port", { mode: "number" }).default(587),
|
|
email_smtp_secure: boolean("email_smtp_secure").default(false),
|
|
email_smtp_user: varchar("email_smtp_user"),
|
|
email_smtp_pass: varchar("email_smtp_pass"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("tenants_slug_idx").on(columns.slug),
|
|
index("tenants_updated_at_idx").on(columns.updatedAt),
|
|
index("tenants_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_hero_block = pgTable(
|
|
"pages_blocks_hero_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
backgroundImage: integer("background_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
alignment: enum_pages_blocks_hero_block_alignment("alignment").default("center"),
|
|
overlay: boolean("overlay").default(true),
|
|
cta_link: varchar("cta_link"),
|
|
cta_style: enum_pages_blocks_hero_block_cta_style("cta_style").default("primary"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_hero_block_order_idx").on(columns._order),
|
|
index("pages_blocks_hero_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_hero_block_path_idx").on(columns._path),
|
|
index("pages_blocks_hero_block_background_image_idx").on(columns.backgroundImage),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_hero_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_hero_block_locales = pgTable(
|
|
"pages_blocks_hero_block_locales",
|
|
{
|
|
headline: varchar("headline").notNull(),
|
|
subline: varchar("subline"),
|
|
cta_text: varchar("cta_text"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_hero_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_hero_block.id],
|
|
name: "pages_blocks_hero_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_hero_slider_block_slides = pgTable(
|
|
"pages_blocks_hero_slider_block_slides",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
backgroundImage: integer("background_image_id")
|
|
.notNull()
|
|
.references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
mobileBackgroundImage: integer("mobile_background_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
textAlignment: enum_pages_blocks_hero_slider_block_slides_text_alignment("text_alignment").default("center"),
|
|
verticalPosition:
|
|
enum_pages_blocks_hero_slider_block_slides_vertical_position("vertical_position").default("center"),
|
|
overlay_enabled: boolean("overlay_enabled").default(true),
|
|
overlay_color: enum_pages_blocks_hero_slider_block_slides_overlay_color("overlay_color").default("dark"),
|
|
overlay_opacity: enum_pages_blocks_hero_slider_block_slides_overlay_opacity("overlay_opacity").default("50"),
|
|
primaryCta_enabled: boolean("primary_cta_enabled").default(true),
|
|
primaryCta_link: varchar("primary_cta_link"),
|
|
primaryCta_style:
|
|
enum_pages_blocks_hero_slider_block_slides_primary_cta_style("primary_cta_style").default("primary"),
|
|
primaryCta_openInNewTab: boolean("primary_cta_open_in_new_tab").default(false),
|
|
secondaryCta_enabled: boolean("secondary_cta_enabled").default(false),
|
|
secondaryCta_link: varchar("secondary_cta_link"),
|
|
secondaryCta_style:
|
|
enum_pages_blocks_hero_slider_block_slides_secondary_cta_style("secondary_cta_style").default("outline-white"),
|
|
secondaryCta_openInNewTab: boolean("secondary_cta_open_in_new_tab").default(false),
|
|
textColor: enum_pages_blocks_hero_slider_block_slides_text_color("text_color").default("white"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_hero_slider_block_slides_order_idx").on(columns._order),
|
|
index("pages_blocks_hero_slider_block_slides_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_hero_slider_block_slides_background_image_idx").on(columns.backgroundImage),
|
|
index("pages_blocks_hero_slider_block_slides_mobile_background__idx").on(columns.mobileBackgroundImage),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_hero_slider_block.id],
|
|
name: "pages_blocks_hero_slider_block_slides_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_hero_slider_block_slides_locales = pgTable(
|
|
"pages_blocks_hero_slider_block_slides_locales",
|
|
{
|
|
headline: varchar("headline").notNull(),
|
|
subline: varchar("subline"),
|
|
primaryCta_text: varchar("primary_cta_text"),
|
|
secondaryCta_text: varchar("secondary_cta_text"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_hero_slider_block_slides_locales_locale_parent_").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_hero_slider_block_slides.id],
|
|
name: "pages_blocks_hero_slider_block_slides_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_hero_slider_block = pgTable(
|
|
"pages_blocks_hero_slider_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
settings_animation: enum_pages_blocks_hero_slider_block_settings_animation("settings_animation").default("fade"),
|
|
settings_animationDuration:
|
|
enum_pages_blocks_hero_slider_block_settings_animation_duration("settings_animation_duration").default("500"),
|
|
settings_autoplay_enabled: boolean("settings_autoplay_enabled").default(true),
|
|
settings_autoplay_interval:
|
|
enum_pages_blocks_hero_slider_block_settings_autoplay_interval("settings_autoplay_interval").default("5000"),
|
|
settings_autoplay_pauseOnHover: boolean("settings_autoplay_pause_on_hover").default(true),
|
|
settings_autoplay_pauseOnInteraction: boolean("settings_autoplay_pause_on_interaction").default(true),
|
|
settings_loop: boolean("settings_loop").default(true),
|
|
navigation_arrows_enabled: boolean("navigation_arrows_enabled").default(true),
|
|
navigation_arrows_style:
|
|
enum_pages_blocks_hero_slider_block_navigation_arrows_style("navigation_arrows_style").default("default"),
|
|
navigation_arrows_position:
|
|
enum_pages_blocks_hero_slider_block_navigation_arrows_position("navigation_arrows_position").default("sides"),
|
|
navigation_arrows_hideOnMobile: boolean("navigation_arrows_hide_on_mobile").default(false),
|
|
navigation_dots_enabled: boolean("navigation_dots_enabled").default(true),
|
|
navigation_dots_style:
|
|
enum_pages_blocks_hero_slider_block_navigation_dots_style("navigation_dots_style").default("dots"),
|
|
navigation_dots_position:
|
|
enum_pages_blocks_hero_slider_block_navigation_dots_position("navigation_dots_position").default("bottom-center"),
|
|
navigation_dots_color:
|
|
enum_pages_blocks_hero_slider_block_navigation_dots_color("navigation_dots_color").default("white"),
|
|
navigation_swipe: boolean("navigation_swipe").default(true),
|
|
navigation_keyboard: boolean("navigation_keyboard").default(true),
|
|
layout_height: enum_pages_blocks_hero_slider_block_layout_height("layout_height").default("viewport"),
|
|
layout_mobileHeight:
|
|
enum_pages_blocks_hero_slider_block_layout_mobile_height("layout_mobile_height").default("viewport"),
|
|
layout_contentWidth:
|
|
enum_pages_blocks_hero_slider_block_layout_content_width("layout_content_width").default("container"),
|
|
layout_fullWidth: boolean("layout_full_width").default(true),
|
|
accessibility_reducedMotion: boolean("accessibility_reduced_motion").default(true),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_hero_slider_block_order_idx").on(columns._order),
|
|
index("pages_blocks_hero_slider_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_hero_slider_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_hero_slider_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_hero_slider_block_locales = pgTable(
|
|
"pages_blocks_hero_slider_block_locales",
|
|
{
|
|
accessibility_ariaLabel: varchar("accessibility_aria_label").default("Hero Slider"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_hero_slider_block_locales_locale_parent_id_uniq").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_hero_slider_block.id],
|
|
name: "pages_blocks_hero_slider_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_image_slider_block_images = pgTable(
|
|
"pages_blocks_image_slider_block_images",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
image: integer("image_id")
|
|
.notNull()
|
|
.references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
link: varchar("link"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_image_slider_block_images_order_idx").on(columns._order),
|
|
index("pages_blocks_image_slider_block_images_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_image_slider_block_images_image_idx").on(columns.image),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_image_slider_block.id],
|
|
name: "pages_blocks_image_slider_block_images_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_image_slider_block_images_locales = pgTable(
|
|
"pages_blocks_image_slider_block_images_locales",
|
|
{
|
|
caption: varchar("caption"),
|
|
alt: varchar("alt"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_image_slider_block_images_locales_locale_parent").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_image_slider_block_images.id],
|
|
name: "pages_blocks_image_slider_block_images_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_image_slider_block = pgTable(
|
|
"pages_blocks_image_slider_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
layout: enum_pages_blocks_image_slider_block_layout("layout").default("slider"),
|
|
grid_cols: enum_pages_blocks_image_slider_block_grid_cols("grid_cols").default("3"),
|
|
grid_gap: enum_pages_blocks_image_slider_block_grid_gap("grid_gap").default("16"),
|
|
grid_aspectRatio: enum_pages_blocks_image_slider_block_grid_aspect_ratio("grid_aspect_ratio").default("square"),
|
|
slider_effect: enum_pages_blocks_image_slider_block_slider_effect("slider_effect").default("slide"),
|
|
slider_speed: enum_pages_blocks_image_slider_block_slider_speed("slider_speed").default("500"),
|
|
slider_perView: enum_pages_blocks_image_slider_block_slider_per_view("slider_per_view").default("1"),
|
|
slider_gap: enum_pages_blocks_image_slider_block_slider_gap("slider_gap").default("0"),
|
|
slider_auto: boolean("slider_auto").default(false),
|
|
slider_delay: enum_pages_blocks_image_slider_block_slider_delay("slider_delay").default("4000"),
|
|
slider_pauseHover: boolean("slider_pause_hover").default(true),
|
|
slider_loop: boolean("slider_loop").default(true),
|
|
slider_centered: boolean("slider_centered").default(false),
|
|
nav_arrows: boolean("nav_arrows").default(true),
|
|
nav_arrowStyle: enum_pages_blocks_image_slider_block_nav_arrow_style("nav_arrow_style").default("default"),
|
|
nav_dots: boolean("nav_dots").default(true),
|
|
nav_dotStyle: enum_pages_blocks_image_slider_block_nav_dot_style("nav_dot_style").default("dots"),
|
|
nav_counter: boolean("nav_counter").default(false),
|
|
nav_swipe: boolean("nav_swipe").default(true),
|
|
nav_keys: boolean("nav_keys").default(true),
|
|
lightbox_enabled: boolean("lightbox_enabled").default(true),
|
|
lightbox_zoom: boolean("lightbox_zoom").default(true),
|
|
lightbox_download: boolean("lightbox_download").default(false),
|
|
lightbox_share: boolean("lightbox_share").default(false),
|
|
lightbox_captions: boolean("lightbox_captions").default(true),
|
|
lightbox_thumbs: boolean("lightbox_thumbs").default(true),
|
|
lightbox_bg: enum_pages_blocks_image_slider_block_lightbox_bg("lightbox_bg").default("dark"),
|
|
style_height: enum_pages_blocks_image_slider_block_style_height("style_height").default("auto"),
|
|
style_imgFit: enum_pages_blocks_image_slider_block_style_img_fit("style_img_fit").default("cover"),
|
|
style_rounded: enum_pages_blocks_image_slider_block_style_rounded("style_rounded").default("none"),
|
|
style_shadow: boolean("style_shadow").default(false),
|
|
style_border: boolean("style_border").default(false),
|
|
style_hoverEffect: enum_pages_blocks_image_slider_block_style_hover_effect("style_hover_effect").default("none"),
|
|
style_captionPos: enum_pages_blocks_image_slider_block_style_caption_pos("style_caption_pos").default("below"),
|
|
style_bg: enum_pages_blocks_image_slider_block_style_bg("style_bg").default("none"),
|
|
style_padding: enum_pages_blocks_image_slider_block_style_padding("style_padding").default("none"),
|
|
a11y_reducedMotion: boolean("a11y_reduced_motion").default(true),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_image_slider_block_order_idx").on(columns._order),
|
|
index("pages_blocks_image_slider_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_image_slider_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_image_slider_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_image_slider_block_locales = pgTable(
|
|
"pages_blocks_image_slider_block_locales",
|
|
{
|
|
title: varchar("title"),
|
|
description: varchar("description"),
|
|
a11y_label: varchar("a11y_label").default("Bildergalerie"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_image_slider_block_locales_locale_parent_id_uni").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_image_slider_block.id],
|
|
name: "pages_blocks_image_slider_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_text_block = pgTable(
|
|
"pages_blocks_text_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
width: enum_pages_blocks_text_block_width("width").default("medium"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_text_block_order_idx").on(columns._order),
|
|
index("pages_blocks_text_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_text_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_text_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_text_block_locales = pgTable(
|
|
"pages_blocks_text_block_locales",
|
|
{
|
|
content: jsonb("content").notNull(),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_text_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_text_block.id],
|
|
name: "pages_blocks_text_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_image_text_block = pgTable(
|
|
"pages_blocks_image_text_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
image: integer("image_id")
|
|
.notNull()
|
|
.references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
imagePosition: enum_pages_blocks_image_text_block_image_position("image_position").default("left"),
|
|
cta_link: varchar("cta_link"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_image_text_block_order_idx").on(columns._order),
|
|
index("pages_blocks_image_text_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_image_text_block_path_idx").on(columns._path),
|
|
index("pages_blocks_image_text_block_image_idx").on(columns.image),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_image_text_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_image_text_block_locales = pgTable(
|
|
"pages_blocks_image_text_block_locales",
|
|
{
|
|
headline: varchar("headline"),
|
|
content: jsonb("content"),
|
|
cta_text: varchar("cta_text"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_image_text_block_locales_locale_parent_id_uniqu").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_image_text_block.id],
|
|
name: "pages_blocks_image_text_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_card_grid_block_cards = pgTable(
|
|
"pages_blocks_card_grid_block_cards",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
link: varchar("link"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_card_grid_block_cards_order_idx").on(columns._order),
|
|
index("pages_blocks_card_grid_block_cards_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_card_grid_block_cards_image_idx").on(columns.image),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_card_grid_block.id],
|
|
name: "pages_blocks_card_grid_block_cards_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_card_grid_block_cards_locales = pgTable(
|
|
"pages_blocks_card_grid_block_cards_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
description: varchar("description"),
|
|
linkText: varchar("link_text").default("mehr"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_card_grid_block_cards_locales_locale_parent_id_").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_card_grid_block_cards.id],
|
|
name: "pages_blocks_card_grid_block_cards_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_card_grid_block = pgTable(
|
|
"pages_blocks_card_grid_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
columns: enum_pages_blocks_card_grid_block_columns("columns").default("3"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_card_grid_block_order_idx").on(columns._order),
|
|
index("pages_blocks_card_grid_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_card_grid_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_card_grid_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_card_grid_block_locales = pgTable(
|
|
"pages_blocks_card_grid_block_locales",
|
|
{
|
|
headline: varchar("headline"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_card_grid_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_card_grid_block.id],
|
|
name: "pages_blocks_card_grid_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_quote_block = pgTable(
|
|
"pages_blocks_quote_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
author: varchar("author"),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
style: enum_pages_blocks_quote_block_style("style").default("simple"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_quote_block_order_idx").on(columns._order),
|
|
index("pages_blocks_quote_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_quote_block_path_idx").on(columns._path),
|
|
index("pages_blocks_quote_block_image_idx").on(columns.image),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_quote_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_quote_block_locales = pgTable(
|
|
"pages_blocks_quote_block_locales",
|
|
{
|
|
quote: varchar("quote").notNull(),
|
|
role: varchar("role"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_quote_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_quote_block.id],
|
|
name: "pages_blocks_quote_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_cta_block_buttons = pgTable(
|
|
"pages_blocks_cta_block_buttons",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
link: varchar("link").notNull(),
|
|
style: enum_pages_blocks_cta_block_buttons_style("style").default("primary"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_cta_block_buttons_order_idx").on(columns._order),
|
|
index("pages_blocks_cta_block_buttons_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_cta_block.id],
|
|
name: "pages_blocks_cta_block_buttons_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_cta_block_buttons_locales = pgTable(
|
|
"pages_blocks_cta_block_buttons_locales",
|
|
{
|
|
text: varchar("text").notNull(),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_cta_block_buttons_locales_locale_parent_id_uniq").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_cta_block_buttons.id],
|
|
name: "pages_blocks_cta_block_buttons_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_cta_block = pgTable(
|
|
"pages_blocks_cta_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
backgroundColor: enum_pages_blocks_cta_block_background_color("background_color").default("dark"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_cta_block_order_idx").on(columns._order),
|
|
index("pages_blocks_cta_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_cta_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_cta_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_cta_block_locales = pgTable(
|
|
"pages_blocks_cta_block_locales",
|
|
{
|
|
headline: varchar("headline").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_cta_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_cta_block.id],
|
|
name: "pages_blocks_cta_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_contact_form_block = pgTable(
|
|
"pages_blocks_contact_form_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
recipientEmail: varchar("recipient_email").default("info@porwoll.de"),
|
|
showPhone: boolean("show_phone").default(true),
|
|
showAddress: boolean("show_address").default(true),
|
|
showSocials: boolean("show_socials").default(true),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_contact_form_block_order_idx").on(columns._order),
|
|
index("pages_blocks_contact_form_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_contact_form_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_contact_form_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_contact_form_block_locales = pgTable(
|
|
"pages_blocks_contact_form_block_locales",
|
|
{
|
|
headline: varchar("headline").default("Kontakt"),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_contact_form_block_locales_locale_parent_id_uni").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_contact_form_block.id],
|
|
name: "pages_blocks_contact_form_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_timeline_block_items = pgTable(
|
|
"pages_blocks_timeline_block_items",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
year: varchar("year"),
|
|
icon: varchar("icon"),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
link_href: varchar("link_href"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_timeline_block_items_order_idx").on(columns._order),
|
|
index("pages_blocks_timeline_block_items_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_timeline_block_items_image_idx").on(columns.image),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_timeline_block.id],
|
|
name: "pages_blocks_timeline_block_items_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_timeline_block_items_locales = pgTable(
|
|
"pages_blocks_timeline_block_items_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
description: varchar("description"),
|
|
link_label: varchar("link_label"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_timeline_block_items_locales_locale_parent_id_u").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_timeline_block_items.id],
|
|
name: "pages_blocks_timeline_block_items_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_timeline_block = pgTable(
|
|
"pages_blocks_timeline_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
layout: enum_pages_blocks_timeline_block_layout("layout").default("vertical"),
|
|
showConnector: boolean("show_connector").default(true),
|
|
markerStyle: enum_pages_blocks_timeline_block_marker_style("marker_style").default("dot"),
|
|
backgroundColor: enum_pages_blocks_timeline_block_background_color("background_color").default("white"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_timeline_block_order_idx").on(columns._order),
|
|
index("pages_blocks_timeline_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_timeline_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_timeline_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_timeline_block_locales = pgTable(
|
|
"pages_blocks_timeline_block_locales",
|
|
{
|
|
title: varchar("title"),
|
|
subtitle: varchar("subtitle"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_timeline_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_timeline_block.id],
|
|
name: "pages_blocks_timeline_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_divider_block = pgTable(
|
|
"pages_blocks_divider_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
style: enum_pages_blocks_divider_block_style("style").default("space"),
|
|
spacing: enum_pages_blocks_divider_block_spacing("spacing").default("medium"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_divider_block_order_idx").on(columns._order),
|
|
index("pages_blocks_divider_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_divider_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_divider_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_video_block = pgTable(
|
|
"pages_blocks_video_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
sourceType: enum_pages_blocks_video_block_source_type("source_type").notNull().default("embed"),
|
|
videoFromLibrary: integer("video_from_library_id").references(() => videos.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
videoUrl: varchar("video_url"),
|
|
videoFile: integer("video_file_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
thumbnail: integer("thumbnail_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
aspectRatio: enum_pages_blocks_video_block_aspect_ratio("aspect_ratio").default("16:9"),
|
|
size: enum_pages_blocks_video_block_size("size").default("full"),
|
|
alignment: enum_pages_blocks_video_block_alignment("alignment").default("center"),
|
|
playback_autoplay: boolean("playback_autoplay").default(false),
|
|
playback_muted: boolean("playback_muted").default(false),
|
|
playback_loop: boolean("playback_loop").default(false),
|
|
playback_controls: boolean("playback_controls").default(true),
|
|
playback_playsinline: boolean("playback_playsinline").default(true),
|
|
playback_startTime: numeric("playback_start_time", { mode: "number" }),
|
|
embedOptions_showRelated: boolean("embed_options_show_related").default(false),
|
|
embedOptions_privacyMode: boolean("embed_options_privacy_mode").default(true),
|
|
style_rounded: enum_pages_blocks_video_block_style_rounded("style_rounded").default("none"),
|
|
style_shadow: enum_pages_blocks_video_block_style_shadow("style_shadow").default("none"),
|
|
style_border: boolean("style_border").default(false),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_video_block_order_idx").on(columns._order),
|
|
index("pages_blocks_video_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_video_block_path_idx").on(columns._path),
|
|
index("pages_blocks_video_block_video_from_library_idx").on(columns.videoFromLibrary),
|
|
index("pages_blocks_video_block_video_file_idx").on(columns.videoFile),
|
|
index("pages_blocks_video_block_thumbnail_idx").on(columns.thumbnail),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_video_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_video_block_locales = pgTable(
|
|
"pages_blocks_video_block_locales",
|
|
{
|
|
caption: varchar("caption"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_video_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_video_block.id],
|
|
name: "pages_blocks_video_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_posts_list_block = pgTable(
|
|
"pages_blocks_posts_list_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
postType: enum_pages_blocks_posts_list_block_post_type("post_type").notNull().default("blog"),
|
|
layout: enum_pages_blocks_posts_list_block_layout("layout").default("grid"),
|
|
columns: enum_pages_blocks_posts_list_block_columns("columns").default("3"),
|
|
limit: numeric("limit", { mode: "number" }).default(6),
|
|
showFeaturedOnly: boolean("show_featured_only").default(false),
|
|
showExcerpt: boolean("show_excerpt").default(true),
|
|
showDate: boolean("show_date").default(true),
|
|
showAuthor: boolean("show_author").default(false),
|
|
showCategory: boolean("show_category").default(true),
|
|
showPagination: boolean("show_pagination").default(false),
|
|
showReadMore: boolean("show_read_more").default(true),
|
|
readMoreLink: varchar("read_more_link").default("/blog"),
|
|
backgroundColor: enum_pages_blocks_posts_list_block_background_color("background_color").default("white"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_posts_list_block_order_idx").on(columns._order),
|
|
index("pages_blocks_posts_list_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_posts_list_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_posts_list_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_posts_list_block_locales = pgTable(
|
|
"pages_blocks_posts_list_block_locales",
|
|
{
|
|
title: varchar("title"),
|
|
subtitle: varchar("subtitle"),
|
|
readMoreLabel: varchar("read_more_label").default("Alle Beiträge anzeigen"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_posts_list_block_locales_locale_parent_id_uniqu").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_posts_list_block.id],
|
|
name: "pages_blocks_posts_list_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_testimonials_block = pgTable(
|
|
"pages_blocks_testimonials_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
layout: enum_pages_blocks_testimonials_block_layout("layout").default("slider"),
|
|
columns: enum_pages_blocks_testimonials_block_columns("columns").default("3"),
|
|
displayMode: enum_pages_blocks_testimonials_block_display_mode("display_mode").default("all"),
|
|
limit: numeric("limit", { mode: "number" }).default(6),
|
|
displayOptions_showRating: boolean("display_options_show_rating").default(true),
|
|
displayOptions_showImage: boolean("display_options_show_image").default(true),
|
|
displayOptions_showCompany: boolean("display_options_show_company").default(true),
|
|
displayOptions_showSource: boolean("display_options_show_source").default(false),
|
|
displayOptions_showDate: boolean("display_options_show_date").default(false),
|
|
displayOptions_truncateText: boolean("display_options_truncate_text").default(false),
|
|
displayOptions_maxLength: numeric("display_options_max_length", { mode: "number" }).default(200),
|
|
slider_effect: enum_pages_blocks_testimonials_block_slider_effect("slider_effect").default("slide"),
|
|
slider_speed: enum_pages_blocks_testimonials_block_slider_speed("slider_speed").default("500"),
|
|
slider_perView: enum_pages_blocks_testimonials_block_slider_per_view("slider_per_view").default("1"),
|
|
slider_gap: enum_pages_blocks_testimonials_block_slider_gap("slider_gap").default("24"),
|
|
slider_auto: boolean("slider_auto").default(true),
|
|
slider_delay: enum_pages_blocks_testimonials_block_slider_delay("slider_delay").default("5000"),
|
|
slider_hoverPause: boolean("slider_hover_pause").default(true),
|
|
slider_loop: boolean("slider_loop").default(true),
|
|
slider_centered: boolean("slider_centered").default(false),
|
|
nav_arrows: boolean("nav_arrows").default(true),
|
|
nav_arrowStyle: enum_pages_blocks_testimonials_block_nav_arrow_style("nav_arrow_style").default("default"),
|
|
nav_arrowPos: enum_pages_blocks_testimonials_block_nav_arrow_pos("nav_arrow_pos").default("sides"),
|
|
nav_dots: boolean("nav_dots").default(true),
|
|
nav_dotStyle: enum_pages_blocks_testimonials_block_nav_dot_style("nav_dot_style").default("dots"),
|
|
nav_dotPos: enum_pages_blocks_testimonials_block_nav_dot_pos("nav_dot_pos").default("bottom"),
|
|
nav_swipe: boolean("nav_swipe").default(true),
|
|
nav_keys: boolean("nav_keys").default(true),
|
|
style_bg: enum_pages_blocks_testimonials_block_style_bg("style_bg").default("light"),
|
|
style_card: enum_pages_blocks_testimonials_block_style_card("style_card").default("shadow"),
|
|
style_quote: enum_pages_blocks_testimonials_block_style_quote("style_quote").default("icon"),
|
|
style_imgPos: enum_pages_blocks_testimonials_block_style_img_pos("style_img_pos").default("top"),
|
|
style_imgSize: enum_pages_blocks_testimonials_block_style_img_size("style_img_size").default("md"),
|
|
style_align: enum_pages_blocks_testimonials_block_style_align("style_align").default("center"),
|
|
style_spacing: enum_pages_blocks_testimonials_block_style_spacing("style_spacing").default("normal"),
|
|
a11y_reducedMotion: boolean("a11y_reduced_motion").default(true),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_testimonials_block_order_idx").on(columns._order),
|
|
index("pages_blocks_testimonials_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_testimonials_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_testimonials_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_testimonials_block_locales = pgTable(
|
|
"pages_blocks_testimonials_block_locales",
|
|
{
|
|
title: varchar("title").default("Das sagen unsere Kunden"),
|
|
subtitle: varchar("subtitle"),
|
|
a11y_label: varchar("a11y_label").default("Kundenstimmen"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_testimonials_block_locales_locale_parent_id_uni").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_testimonials_block.id],
|
|
name: "pages_blocks_testimonials_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_newsletter_block_available_interests = pgTable(
|
|
"pages_blocks_newsletter_block_available_interests",
|
|
{
|
|
order: integer("order").notNull(),
|
|
parent: varchar("parent_id").notNull(),
|
|
value: enum_pages_blocks_newsletter_block_available_interests("value"),
|
|
id: serial("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_newsletter_block_available_interests_order_idx").on(columns.order),
|
|
index("pages_blocks_newsletter_block_available_interests_parent_idx").on(columns.parent),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [pages_blocks_newsletter_block.id],
|
|
name: "pages_blocks_newsletter_block_available_interests_parent_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_newsletter_block = pgTable(
|
|
"pages_blocks_newsletter_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
layout: enum_pages_blocks_newsletter_block_layout("layout").default("inline"),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
imagePosition: enum_pages_blocks_newsletter_block_image_position("image_position").default("left"),
|
|
collectName: boolean("collect_name").default(false),
|
|
showInterests: boolean("show_interests").default(false),
|
|
privacyLink: varchar("privacy_link").default("/datenschutz"),
|
|
source: varchar("source").default("website"),
|
|
backgroundColor: enum_pages_blocks_newsletter_block_background_color("background_color").default("accent"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_newsletter_block_order_idx").on(columns._order),
|
|
index("pages_blocks_newsletter_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_newsletter_block_path_idx").on(columns._path),
|
|
index("pages_blocks_newsletter_block_image_idx").on(columns.image),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_newsletter_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_newsletter_block_locales = pgTable(
|
|
"pages_blocks_newsletter_block_locales",
|
|
{
|
|
title: varchar("title").default("Newsletter abonnieren"),
|
|
subtitle: varchar("subtitle").default("Erhalten Sie regelmäßig Updates und Neuigkeiten direkt in Ihr Postfach."),
|
|
buttonText: varchar("button_text").default("Anmelden"),
|
|
placeholderEmail: varchar("placeholder_email").default("Ihre E-Mail-Adresse"),
|
|
successMessage: varchar("success_message").default(
|
|
"Vielen Dank! Bitte bestätigen Sie Ihre E-Mail-Adresse über den Link in der Bestätigungsmail.",
|
|
),
|
|
errorMessage: varchar("error_message").default(
|
|
"Es ist ein Fehler aufgetreten. Bitte versuchen Sie es später erneut.",
|
|
),
|
|
privacyText: varchar("privacy_text").default(
|
|
"Mit der Anmeldung akzeptieren Sie unsere Datenschutzerklärung. Sie können sich jederzeit abmelden.",
|
|
),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_newsletter_block_locales_locale_parent_id_uniqu").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_newsletter_block.id],
|
|
name: "pages_blocks_newsletter_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_process_steps_block_steps = pgTable(
|
|
"pages_blocks_process_steps_block_steps",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
icon: varchar("icon"),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_process_steps_block_steps_order_idx").on(columns._order),
|
|
index("pages_blocks_process_steps_block_steps_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_process_steps_block_steps_image_idx").on(columns.image),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_process_steps_block.id],
|
|
name: "pages_blocks_process_steps_block_steps_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_process_steps_block_steps_locales = pgTable(
|
|
"pages_blocks_process_steps_block_steps_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_process_steps_block_steps_locales_locale_parent").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_process_steps_block_steps.id],
|
|
name: "pages_blocks_process_steps_block_steps_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_process_steps_block = pgTable(
|
|
"pages_blocks_process_steps_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
layout: enum_pages_blocks_process_steps_block_layout("layout").default("horizontal"),
|
|
showNumbers: boolean("show_numbers").default(true),
|
|
showIcons: boolean("show_icons").default(true),
|
|
cta_show: boolean("cta_show").default(false),
|
|
cta_href: varchar("cta_href"),
|
|
cta_variant: enum_pages_blocks_process_steps_block_cta_variant("cta_variant").default("default"),
|
|
backgroundColor: enum_pages_blocks_process_steps_block_background_color("background_color").default("white"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_process_steps_block_order_idx").on(columns._order),
|
|
index("pages_blocks_process_steps_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_process_steps_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_process_steps_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_process_steps_block_locales = pgTable(
|
|
"pages_blocks_process_steps_block_locales",
|
|
{
|
|
title: varchar("title").default("So funktioniert es"),
|
|
subtitle: varchar("subtitle"),
|
|
cta_label: varchar("cta_label").default("Jetzt starten"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_process_steps_block_locales_locale_parent_id_un").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_process_steps_block.id],
|
|
name: "pages_blocks_process_steps_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_faq_block_inline_f_a_qs = pgTable(
|
|
"pages_blocks_faq_block_inline_f_a_qs",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_faq_block_inline_f_a_qs_order_idx").on(columns._order),
|
|
index("pages_blocks_faq_block_inline_f_a_qs_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_faq_block.id],
|
|
name: "pages_blocks_faq_block_inline_f_a_qs_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_faq_block_inline_f_a_qs_locales = pgTable(
|
|
"pages_blocks_faq_block_inline_f_a_qs_locales",
|
|
{
|
|
question: varchar("question"),
|
|
answer: jsonb("answer"),
|
|
answerPlainText: varchar("answer_plain_text"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_faq_block_inline_f_a_qs_locales_locale_parent_i").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_faq_block_inline_f_a_qs.id],
|
|
name: "pages_blocks_faq_block_inline_f_a_qs_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_faq_block = pgTable(
|
|
"pages_blocks_faq_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
sourceMode: enum_pages_blocks_faq_block_source_mode("source_mode").default("collection"),
|
|
displayMode: enum_pages_blocks_faq_block_display_mode("display_mode").default("all"),
|
|
category: varchar("category"),
|
|
limit: numeric("limit", { mode: "number" }).default(10),
|
|
layout: enum_pages_blocks_faq_block_layout("layout").default("accordion"),
|
|
columns: enum_pages_blocks_faq_block_columns("columns").default("2"),
|
|
expandFirst: boolean("expand_first").default(true),
|
|
allowMultipleOpen: boolean("allow_multiple_open").default(false),
|
|
showCategory: boolean("show_category").default(false),
|
|
showIcon: boolean("show_icon").default(false),
|
|
groupByCategory: boolean("group_by_category").default(false),
|
|
enableSchemaOrg: boolean("enable_schema_org").default(true),
|
|
backgroundColor: enum_pages_blocks_faq_block_background_color("background_color").default("white"),
|
|
showContactCTA: boolean("show_contact_c_t_a").default(false),
|
|
contactCTALink: varchar("contact_c_t_a_link").default("/kontakt"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_faq_block_order_idx").on(columns._order),
|
|
index("pages_blocks_faq_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_faq_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_faq_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_faq_block_locales = pgTable(
|
|
"pages_blocks_faq_block_locales",
|
|
{
|
|
title: varchar("title").default("Häufig gestellte Fragen"),
|
|
subtitle: varchar("subtitle"),
|
|
contactCTAText: varchar("contact_c_t_a_text").default("Ihre Frage war nicht dabei?"),
|
|
contactCTAButtonText: varchar("contact_c_t_a_button_text").default("Kontaktieren Sie uns"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_faq_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_faq_block.id],
|
|
name: "pages_blocks_faq_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_team_block = pgTable(
|
|
"pages_blocks_team_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
displayMode: enum_pages_blocks_team_block_display_mode("display_mode").default("all"),
|
|
department: varchar("department"),
|
|
limit: numeric("limit", { mode: "number" }).default(12),
|
|
layout: enum_pages_blocks_team_block_layout("layout").default("grid"),
|
|
columns: enum_pages_blocks_team_block_columns("columns").default("3"),
|
|
showRole: boolean("show_role").default(true),
|
|
showDepartment: boolean("show_department").default(false),
|
|
showBio: boolean("show_bio").default(true),
|
|
showContact: boolean("show_contact").default(false),
|
|
showSocialLinks: boolean("show_social_links").default(true),
|
|
showQualifications: boolean("show_qualifications").default(false),
|
|
showSpecializations: boolean("show_specializations").default(false),
|
|
showLanguages: boolean("show_languages").default(false),
|
|
groupByDepartment: boolean("group_by_department").default(false),
|
|
autoplay: boolean("autoplay").default(true),
|
|
autoplaySpeed: numeric("autoplay_speed", { mode: "number" }).default(5000),
|
|
enableDetailView: boolean("enable_detail_view").default(false),
|
|
imageStyle: enum_pages_blocks_team_block_image_style("image_style").default("rounded"),
|
|
backgroundColor: enum_pages_blocks_team_block_background_color("background_color").default("white"),
|
|
showCTA: boolean("show_c_t_a").default(false),
|
|
ctaLink: varchar("cta_link").default("/karriere"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_team_block_order_idx").on(columns._order),
|
|
index("pages_blocks_team_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_team_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_team_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_team_block_locales = pgTable(
|
|
"pages_blocks_team_block_locales",
|
|
{
|
|
title: varchar("title").default("Unser Team"),
|
|
subtitle: varchar("subtitle"),
|
|
introduction: jsonb("introduction"),
|
|
ctaText: varchar("cta_text").default("Jetzt bewerben"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_team_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_team_block.id],
|
|
name: "pages_blocks_team_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_services_block = pgTable(
|
|
"pages_blocks_services_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
displayMode: enum_pages_blocks_services_block_display_mode("display_mode").default("all"),
|
|
category: integer("category_id").references(() => service_categories.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
limit: numeric("limit", { mode: "number" }).default(12),
|
|
layout: enum_pages_blocks_services_block_layout("layout").default("grid"),
|
|
columns: enum_pages_blocks_services_block_columns("columns").default("3"),
|
|
featuredCount: numeric("featured_count", { mode: "number" }).default(1),
|
|
tabsStyle: enum_pages_blocks_services_block_tabs_style("tabs_style").default("horizontal"),
|
|
showAllTab: boolean("show_all_tab").default(true),
|
|
expandFirst: boolean("expand_first").default(true),
|
|
allowMultipleOpen: boolean("allow_multiple_open").default(false),
|
|
autoplay: boolean("autoplay").default(true),
|
|
autoplaySpeed: numeric("autoplay_speed", { mode: "number" }).default(5000),
|
|
slidesPerView: enum_pages_blocks_services_block_slides_per_view("slides_per_view").default("3"),
|
|
showImage: boolean("show_image").default(true),
|
|
showIcon: boolean("show_icon").default(true),
|
|
showDescription: boolean("show_description").default(true),
|
|
showCategory: boolean("show_category").default(false),
|
|
showPricing: boolean("show_pricing").default(true),
|
|
showFeatures: boolean("show_features").default(false),
|
|
featuresLimit: numeric("features_limit", { mode: "number" }).default(3),
|
|
showCTA: boolean("show_c_t_a").default(true),
|
|
showNewBadge: boolean("show_new_badge").default(true),
|
|
groupByCategory: boolean("group_by_category").default(false),
|
|
linkToDetail: boolean("link_to_detail").default(true),
|
|
servicesBasePath: varchar("services_base_path").default("/leistungen"),
|
|
cardStyle: enum_pages_blocks_services_block_card_style("card_style").default("elevated"),
|
|
backgroundColor: enum_pages_blocks_services_block_background_color("background_color").default("white"),
|
|
showSectionCTA: boolean("show_section_c_t_a").default(false),
|
|
sectionCTALink: varchar("section_c_t_a_link").default("/leistungen"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_services_block_order_idx").on(columns._order),
|
|
index("pages_blocks_services_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_services_block_path_idx").on(columns._path),
|
|
index("pages_blocks_services_block_category_idx").on(columns.category),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_services_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_services_block_locales = pgTable(
|
|
"pages_blocks_services_block_locales",
|
|
{
|
|
title: varchar("title").default("Unsere Leistungen"),
|
|
subtitle: varchar("subtitle"),
|
|
introduction: jsonb("introduction"),
|
|
detailLinkText: varchar("detail_link_text").default("Mehr erfahren"),
|
|
sectionCTAText: varchar("section_c_t_a_text").default("Alle Leistungen ansehen"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_services_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_services_block.id],
|
|
name: "pages_blocks_services_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_author_bio_block = pgTable(
|
|
"pages_blocks_author_bio_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
source: enum_pages_blocks_author_bio_block_source("source").default("post"),
|
|
showCoAuthors: boolean("show_co_authors").default(true),
|
|
layout: enum_pages_blocks_author_bio_block_layout("layout").default("card"),
|
|
show_avatar: boolean("show_avatar").default(true),
|
|
show_name: boolean("show_name").default(true),
|
|
show_title: boolean("show_title").default(true),
|
|
show_bio: enum_pages_blocks_author_bio_block_show_bio("show_bio").default("short"),
|
|
show_social: boolean("show_social").default(true),
|
|
show_email: boolean("show_email").default(false),
|
|
show_website: boolean("show_website").default(false),
|
|
show_postCount: boolean("show_post_count").default(false),
|
|
style_avatarSize: enum_pages_blocks_author_bio_block_style_avatar_size("style_avatar_size").default("md"),
|
|
style_avatarShape: enum_pages_blocks_author_bio_block_style_avatar_shape("style_avatar_shape").default("circle"),
|
|
style_bg: enum_pages_blocks_author_bio_block_style_bg("style_bg").default("light"),
|
|
style_border: boolean("style_border").default(false),
|
|
style_shadow: boolean("style_shadow").default(false),
|
|
style_divider: boolean("style_divider").default(true),
|
|
linkToProfile: boolean("link_to_profile").default(true),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_author_bio_block_order_idx").on(columns._order),
|
|
index("pages_blocks_author_bio_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_author_bio_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_author_bio_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_author_bio_block_locales = pgTable(
|
|
"pages_blocks_author_bio_block_locales",
|
|
{
|
|
label: varchar("label"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_author_bio_block_locales_locale_parent_id_uniqu").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_author_bio_block.id],
|
|
name: "pages_blocks_author_bio_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_related_posts_block = pgTable(
|
|
"pages_blocks_related_posts_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
source: enum_pages_blocks_related_posts_block_source("source").default("auto"),
|
|
category: integer("category_id").references(() => categories.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
tag: integer("tag_id").references(() => tags.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
limit: numeric("limit", { mode: "number" }).default(3),
|
|
excludeCurrent: boolean("exclude_current").default(true),
|
|
layout: enum_pages_blocks_related_posts_block_layout("layout").default("grid"),
|
|
cols: enum_pages_blocks_related_posts_block_cols("cols").default("3"),
|
|
show_image: boolean("show_image").default(true),
|
|
show_date: boolean("show_date").default(true),
|
|
show_author: boolean("show_author").default(false),
|
|
show_category: boolean("show_category").default(true),
|
|
show_excerpt: boolean("show_excerpt").default(true),
|
|
show_readingTime: boolean("show_reading_time").default(false),
|
|
show_tags: boolean("show_tags").default(false),
|
|
style_imgRatio: enum_pages_blocks_related_posts_block_style_img_ratio("style_img_ratio").default("16-9"),
|
|
style_rounded: enum_pages_blocks_related_posts_block_style_rounded("style_rounded").default("md"),
|
|
style_shadow: boolean("style_shadow").default(false),
|
|
style_hover: enum_pages_blocks_related_posts_block_style_hover("style_hover").default("lift"),
|
|
style_bg: enum_pages_blocks_related_posts_block_style_bg("style_bg").default("none"),
|
|
style_gap: enum_pages_blocks_related_posts_block_style_gap("style_gap").default("24"),
|
|
showAllLink: boolean("show_all_link").default(false),
|
|
allLinkUrl: varchar("all_link_url"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_related_posts_block_order_idx").on(columns._order),
|
|
index("pages_blocks_related_posts_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_related_posts_block_path_idx").on(columns._path),
|
|
index("pages_blocks_related_posts_block_category_idx").on(columns.category),
|
|
index("pages_blocks_related_posts_block_tag_idx").on(columns.tag),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_related_posts_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_related_posts_block_locales = pgTable(
|
|
"pages_blocks_related_posts_block_locales",
|
|
{
|
|
title: varchar("title").default("Das könnte Sie auch interessieren"),
|
|
allLinkText: varchar("all_link_text").default("Alle Artikel anzeigen"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_related_posts_block_locales_locale_parent_id_un").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_related_posts_block.id],
|
|
name: "pages_blocks_related_posts_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_share_buttons_block = pgTable(
|
|
"pages_blocks_share_buttons_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
platforms_facebook: boolean("platforms_facebook").default(true),
|
|
platforms_twitter: boolean("platforms_twitter").default(true),
|
|
platforms_linkedin: boolean("platforms_linkedin").default(true),
|
|
platforms_xing: boolean("platforms_xing").default(false),
|
|
platforms_whatsapp: boolean("platforms_whatsapp").default(true),
|
|
platforms_telegram: boolean("platforms_telegram").default(false),
|
|
platforms_email: boolean("platforms_email").default(true),
|
|
platforms_copy: boolean("platforms_copy").default(true),
|
|
platforms_print: boolean("platforms_print").default(false),
|
|
platforms_pinterest: boolean("platforms_pinterest").default(false),
|
|
platforms_reddit: boolean("platforms_reddit").default(false),
|
|
layout: enum_pages_blocks_share_buttons_block_layout("layout").default("horizontal"),
|
|
align: enum_pages_blocks_share_buttons_block_align("align").default("left"),
|
|
floatSide: enum_pages_blocks_share_buttons_block_float_side("float_side").default("left"),
|
|
style_variant: enum_pages_blocks_share_buttons_block_style_variant("style_variant").default("filled"),
|
|
style_size: enum_pages_blocks_share_buttons_block_style_size("style_size").default("md"),
|
|
style_shape: enum_pages_blocks_share_buttons_block_style_shape("style_shape").default("rounded"),
|
|
style_colorScheme: enum_pages_blocks_share_buttons_block_style_color_scheme("style_color_scheme").default("brand"),
|
|
style_gap: enum_pages_blocks_share_buttons_block_style_gap("style_gap").default("8"),
|
|
style_showLabel: boolean("style_show_label").default(false),
|
|
style_showCount: boolean("style_show_count").default(false),
|
|
behavior_openInPopup: boolean("behavior_open_in_popup").default(true),
|
|
behavior_useNativeShare: boolean("behavior_use_native_share").default(true),
|
|
content_hashtags: varchar("content_hashtags"),
|
|
content_via: varchar("content_via"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_share_buttons_block_order_idx").on(columns._order),
|
|
index("pages_blocks_share_buttons_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_share_buttons_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_share_buttons_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_share_buttons_block_locales = pgTable(
|
|
"pages_blocks_share_buttons_block_locales",
|
|
{
|
|
label: varchar("label"),
|
|
behavior_copyFeedback: varchar("behavior_copy_feedback").default("Link kopiert!"),
|
|
content_customTitle: varchar("content_custom_title"),
|
|
content_customDescription: varchar("content_custom_description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_share_buttons_block_locales_locale_parent_id_un").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_share_buttons_block.id],
|
|
name: "pages_blocks_share_buttons_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_toc_block = pgTable(
|
|
"pages_blocks_toc_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
levels_h2: boolean("levels_h2").default(true),
|
|
levels_h3: boolean("levels_h3").default(true),
|
|
levels_h4: boolean("levels_h4").default(false),
|
|
levels_h5: boolean("levels_h5").default(false),
|
|
levels_h6: boolean("levels_h6").default(false),
|
|
layout: enum_pages_blocks_toc_block_layout("layout").default("list"),
|
|
sidebarPos: enum_pages_blocks_toc_block_sidebar_pos("sidebar_pos").default("right"),
|
|
behavior_smoothScroll: boolean("behavior_smooth_scroll").default(true),
|
|
behavior_highlightActive: boolean("behavior_highlight_active").default(true),
|
|
behavior_scrollOffset: numeric("behavior_scroll_offset", { mode: "number" }).default(80),
|
|
behavior_collapsible: boolean("behavior_collapsible").default(false),
|
|
behavior_startCollapsed: boolean("behavior_start_collapsed").default(false),
|
|
behavior_showProgress: boolean("behavior_show_progress").default(false),
|
|
behavior_progressStyle:
|
|
enum_pages_blocks_toc_block_behavior_progress_style("behavior_progress_style").default("bar"),
|
|
style_bg: enum_pages_blocks_toc_block_style_bg("style_bg").default("light"),
|
|
style_border: boolean("style_border").default(true),
|
|
style_borderSide: enum_pages_blocks_toc_block_style_border_side("style_border_side").default("left"),
|
|
style_rounded: enum_pages_blocks_toc_block_style_rounded("style_rounded").default("md"),
|
|
style_shadow: boolean("style_shadow").default(false),
|
|
style_indent: boolean("style_indent").default(true),
|
|
style_showIcon: boolean("style_show_icon").default(false),
|
|
style_fontSize: enum_pages_blocks_toc_block_style_font_size("style_font_size").default("sm"),
|
|
style_lineHeight: enum_pages_blocks_toc_block_style_line_height("style_line_height").default("relaxed"),
|
|
minItems: numeric("min_items", { mode: "number" }).default(3),
|
|
maxItems: numeric("max_items", { mode: "number" }),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_toc_block_order_idx").on(columns._order),
|
|
index("pages_blocks_toc_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_toc_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_toc_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_toc_block_locales = pgTable(
|
|
"pages_blocks_toc_block_locales",
|
|
{
|
|
title: varchar("title").default("Inhaltsverzeichnis"),
|
|
a11yLabel: varchar("a11y_label").default("Inhaltsverzeichnis"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_toc_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_toc_block.id],
|
|
name: "pages_blocks_toc_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_team_filter_block = pgTable(
|
|
"pages_blocks_team_filter_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
filters_showSearch: boolean("filters_show_search").default(true),
|
|
filters_showDepartment: boolean("filters_show_department").default(true),
|
|
filters_showSpecialization: boolean("filters_show_specialization").default(false),
|
|
filters_showLanguage: boolean("filters_show_language").default(false),
|
|
filters_showHierarchy: boolean("filters_show_hierarchy").default(false),
|
|
filters_filterLayout:
|
|
enum_pages_blocks_team_filter_block_filters_filter_layout("filters_filter_layout").default("horizontal"),
|
|
filters_filterStyle:
|
|
enum_pages_blocks_team_filter_block_filters_filter_style("filters_filter_style").default("buttons"),
|
|
filters_showResultCount: boolean("filters_show_result_count").default(true),
|
|
filters_showResetButton: boolean("filters_show_reset_button").default(true),
|
|
display_layout: enum_pages_blocks_team_filter_block_display_layout("display_layout").default("grid"),
|
|
display_columns: enum_pages_blocks_team_filter_block_display_columns("display_columns").default("3"),
|
|
display_initialLimit: numeric("display_initial_limit", { mode: "number" }).default(12),
|
|
display_loadMore: enum_pages_blocks_team_filter_block_display_load_more("display_load_more").default("button"),
|
|
card_showImage: boolean("card_show_image").default(true),
|
|
card_imageStyle: enum_pages_blocks_team_filter_block_card_image_style("card_image_style").default("circle"),
|
|
card_showRole: boolean("card_show_role").default(true),
|
|
card_showDepartment: boolean("card_show_department").default(true),
|
|
card_showBio: boolean("card_show_bio").default(false),
|
|
card_showContact: boolean("card_show_contact").default(false),
|
|
card_showSocial: boolean("card_show_social").default(true),
|
|
card_showSpecializations: boolean("card_show_specializations").default(false),
|
|
card_showLanguages: boolean("card_show_languages").default(false),
|
|
card_showVCard: boolean("card_show_v_card").default(false),
|
|
card_linkToProfile: boolean("card_link_to_profile").default(true),
|
|
card_profileBasePath: varchar("card_profile_base_path").default("/team"),
|
|
card_enableModal: boolean("card_enable_modal").default(false),
|
|
style_bg: enum_pages_blocks_team_filter_block_style_bg("style_bg").default("none"),
|
|
style_cardBg: enum_pages_blocks_team_filter_block_style_card_bg("style_card_bg").default("white"),
|
|
style_cardShadow: boolean("style_card_shadow").default(true),
|
|
style_cardHover: enum_pages_blocks_team_filter_block_style_card_hover("style_card_hover").default("lift"),
|
|
style_gap: enum_pages_blocks_team_filter_block_style_gap("style_gap").default("24"),
|
|
style_animation: enum_pages_blocks_team_filter_block_style_animation("style_animation").default("fade"),
|
|
emptyState_showResetButton: boolean("empty_state_show_reset_button").default(true),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_team_filter_block_order_idx").on(columns._order),
|
|
index("pages_blocks_team_filter_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_team_filter_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_team_filter_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_team_filter_block_locales = pgTable(
|
|
"pages_blocks_team_filter_block_locales",
|
|
{
|
|
title: varchar("title").default("Unser Team"),
|
|
subtitle: varchar("subtitle"),
|
|
filters_searchPlaceholder: varchar("filters_search_placeholder").default("Team durchsuchen..."),
|
|
display_loadMoreText: varchar("display_load_more_text").default("Mehr anzeigen"),
|
|
emptyState_title: varchar("empty_state_title").default("Keine Mitarbeiter gefunden"),
|
|
emptyState_message: varchar("empty_state_message").default("Versuchen Sie andere Filterkriterien."),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_team_filter_block_locales_locale_parent_id_uniq").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_team_filter_block.id],
|
|
name: "pages_blocks_team_filter_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_org_chart_block = pgTable(
|
|
"pages_blocks_org_chart_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
source: enum_pages_blocks_org_chart_block_source("source").default("auto"),
|
|
rootMember: integer("root_member_id").references(() => team.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
department: varchar("department"),
|
|
maxDepth: numeric("max_depth", { mode: "number" }).default(5),
|
|
layout: enum_pages_blocks_org_chart_block_layout("layout").default("tree"),
|
|
direction: enum_pages_blocks_org_chart_block_direction("direction").default("top"),
|
|
node_style: enum_pages_blocks_org_chart_block_node_style("node_style").default("card"),
|
|
node_showImage: boolean("node_show_image").default(true),
|
|
node_imageSize: enum_pages_blocks_org_chart_block_node_image_size("node_image_size").default("md"),
|
|
node_imageShape: enum_pages_blocks_org_chart_block_node_image_shape("node_image_shape").default("circle"),
|
|
node_showName: boolean("node_show_name").default(true),
|
|
node_showRole: boolean("node_show_role").default(true),
|
|
node_showDepartment: boolean("node_show_department").default(false),
|
|
node_showContact: boolean("node_show_contact").default(false),
|
|
node_clickAction: enum_pages_blocks_org_chart_block_node_click_action("node_click_action").default("modal"),
|
|
node_profileBasePath: varchar("node_profile_base_path").default("/team"),
|
|
connectors_style: enum_pages_blocks_org_chart_block_connectors_style("connectors_style").default("straight"),
|
|
connectors_color: enum_pages_blocks_org_chart_block_connectors_color("connectors_color").default("gray"),
|
|
connectors_thickness: enum_pages_blocks_org_chart_block_connectors_thickness("connectors_thickness").default("2"),
|
|
connectors_animated: boolean("connectors_animated").default(false),
|
|
levels_colorByLevel: boolean("levels_color_by_level").default(true),
|
|
levels_sizeByLevel: boolean("levels_size_by_level").default(true),
|
|
levels_collapsible: boolean("levels_collapsible").default(true),
|
|
levels_initiallyExpanded: numeric("levels_initially_expanded", { mode: "number" }).default(2),
|
|
interaction_zoomable: boolean("interaction_zoomable").default(true),
|
|
interaction_pannable: boolean("interaction_pannable").default(true),
|
|
interaction_minimap: boolean("interaction_minimap").default(false),
|
|
interaction_search: boolean("interaction_search").default(false),
|
|
interaction_highlight: boolean("interaction_highlight").default(true),
|
|
interaction_fullscreen: boolean("interaction_fullscreen").default(true),
|
|
interaction_export: boolean("interaction_export").default(false),
|
|
style_bg: enum_pages_blocks_org_chart_block_style_bg("style_bg").default("light"),
|
|
style_nodeBg: enum_pages_blocks_org_chart_block_style_node_bg("style_node_bg").default("white"),
|
|
style_nodeShadow: boolean("style_node_shadow").default(true),
|
|
style_nodeBorder: boolean("style_node_border").default(false),
|
|
style_spacing: enum_pages_blocks_org_chart_block_style_spacing("style_spacing").default("md"),
|
|
style_minHeight: enum_pages_blocks_org_chart_block_style_min_height("style_min_height").default("400"),
|
|
showLegend: boolean("show_legend").default(false),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_org_chart_block_order_idx").on(columns._order),
|
|
index("pages_blocks_org_chart_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_org_chart_block_path_idx").on(columns._path),
|
|
index("pages_blocks_org_chart_block_root_member_idx").on(columns.rootMember),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_org_chart_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_org_chart_block_locales = pgTable(
|
|
"pages_blocks_org_chart_block_locales",
|
|
{
|
|
title: varchar("title").default("Unsere Struktur"),
|
|
subtitle: varchar("subtitle"),
|
|
a11yLabel: varchar("a11y_label").default("Organigramm der Unternehmensstruktur"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_org_chart_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_org_chart_block.id],
|
|
name: "pages_blocks_org_chart_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_locations_block = pgTable(
|
|
"pages_blocks_locations_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
source: enum_pages_blocks_locations_block_source("source").default("all"),
|
|
locationType: enum_pages_blocks_locations_block_location_type("location_type"),
|
|
layout: enum_pages_blocks_locations_block_layout("layout").default("map-list"),
|
|
mapPosition: enum_pages_blocks_locations_block_map_position("map_position").default("left"),
|
|
columns: enum_pages_blocks_locations_block_columns("columns").default("2"),
|
|
map_provider: enum_pages_blocks_locations_block_map_provider("map_provider").default("osm"),
|
|
map_style: enum_pages_blocks_locations_block_map_style("map_style").default("default"),
|
|
map_height: enum_pages_blocks_locations_block_map_height("map_height").default("400"),
|
|
map_defaultZoom: numeric("map_default_zoom", { mode: "number" }).default(12),
|
|
map_fitBounds: boolean("map_fit_bounds").default(true),
|
|
map_markerStyle: enum_pages_blocks_locations_block_map_marker_style("map_marker_style").default("pin"),
|
|
map_markerColor: varchar("map_marker_color").default("#e11d48"),
|
|
map_clustering: boolean("map_clustering").default(true),
|
|
map_controls_zoom: boolean("map_controls_zoom").default(true),
|
|
map_controls_fullscreen: boolean("map_controls_fullscreen").default(true),
|
|
map_controls_scrollZoom: boolean("map_controls_scroll_zoom").default(false),
|
|
map_controls_dragging: boolean("map_controls_dragging").default(true),
|
|
show_image: boolean("show_image").default(true),
|
|
show_type: boolean("show_type").default(false),
|
|
show_address: boolean("show_address").default(true),
|
|
show_phone: boolean("show_phone").default(true),
|
|
show_email: boolean("show_email").default(true),
|
|
show_hours: boolean("show_hours").default(true),
|
|
show_directions: boolean("show_directions").default(false),
|
|
show_services: boolean("show_services").default(false),
|
|
show_team: boolean("show_team").default(false),
|
|
actions_showDirectionsLink: boolean("actions_show_directions_link").default(true),
|
|
actions_showCallButton: boolean("actions_show_call_button").default(true),
|
|
actions_showEmailButton: boolean("actions_show_email_button").default(false),
|
|
actions_showDetailLink: boolean("actions_show_detail_link").default(false),
|
|
actions_detailBasePath: varchar("actions_detail_base_path").default("/standorte"),
|
|
style_bg: enum_pages_blocks_locations_block_style_bg("style_bg").default("none"),
|
|
style_cardStyle: enum_pages_blocks_locations_block_style_card_style("style_card_style").default("bordered"),
|
|
style_gap: enum_pages_blocks_locations_block_style_gap("style_gap").default("24"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_locations_block_order_idx").on(columns._order),
|
|
index("pages_blocks_locations_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_locations_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_locations_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_locations_block_locales = pgTable(
|
|
"pages_blocks_locations_block_locales",
|
|
{
|
|
title: varchar("title").default("Unsere Standorte"),
|
|
subtitle: varchar("subtitle"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_locations_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_locations_block.id],
|
|
name: "pages_blocks_locations_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_logo_grid_block_partner_type = pgTable(
|
|
"pages_blocks_logo_grid_block_partner_type",
|
|
{
|
|
order: integer("order").notNull(),
|
|
parent: varchar("parent_id").notNull(),
|
|
value: enum_pages_blocks_logo_grid_block_partner_type("value"),
|
|
id: serial("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_logo_grid_block_partner_type_order_idx").on(columns.order),
|
|
index("pages_blocks_logo_grid_block_partner_type_parent_idx").on(columns.parent),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [pages_blocks_logo_grid_block.id],
|
|
name: "pages_blocks_logo_grid_block_partner_type_parent_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_logo_grid_block_logos = pgTable(
|
|
"pages_blocks_logo_grid_block_logos",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
logo: integer("logo_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
name: varchar("name"),
|
|
link: varchar("link"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_logo_grid_block_logos_order_idx").on(columns._order),
|
|
index("pages_blocks_logo_grid_block_logos_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_logo_grid_block_logos_logo_idx").on(columns.logo),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_logo_grid_block.id],
|
|
name: "pages_blocks_logo_grid_block_logos_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_logo_grid_block = pgTable(
|
|
"pages_blocks_logo_grid_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
source: enum_pages_blocks_logo_grid_block_source("source").default("collection"),
|
|
featuredOnly: boolean("featured_only").default(false),
|
|
limit: numeric("limit", { mode: "number" }).default(12),
|
|
layout: enum_pages_blocks_logo_grid_block_layout("layout").default("grid"),
|
|
columns: enum_pages_blocks_logo_grid_block_columns("columns").default("4"),
|
|
slider_perView: enum_pages_blocks_logo_grid_block_slider_per_view("slider_per_view").default("4"),
|
|
slider_autoplay: boolean("slider_autoplay").default(true),
|
|
slider_speed: enum_pages_blocks_logo_grid_block_slider_speed("slider_speed").default("3000"),
|
|
slider_pauseOnHover: boolean("slider_pause_on_hover").default(true),
|
|
slider_showArrows: boolean("slider_show_arrows").default(false),
|
|
slider_showDots: boolean("slider_show_dots").default(false),
|
|
logoStyle_size: enum_pages_blocks_logo_grid_block_logo_style_size("logo_style_size").default("md"),
|
|
logoStyle_maxHeight: enum_pages_blocks_logo_grid_block_logo_style_max_height("logo_style_max_height").default("60"),
|
|
logoStyle_grayscale: boolean("logo_style_grayscale").default(true),
|
|
logoStyle_colorOnHover: boolean("logo_style_color_on_hover").default(true),
|
|
logoStyle_opacity: enum_pages_blocks_logo_grid_block_logo_style_opacity("logo_style_opacity").default("70"),
|
|
logoStyle_hoverEffect:
|
|
enum_pages_blocks_logo_grid_block_logo_style_hover_effect("logo_style_hover_effect").default("scale"),
|
|
behavior_linkToWebsite: boolean("behavior_link_to_website").default(false),
|
|
behavior_openInNewTab: boolean("behavior_open_in_new_tab").default(true),
|
|
behavior_showTooltip: boolean("behavior_show_tooltip").default(true),
|
|
behavior_showName: boolean("behavior_show_name").default(false),
|
|
style_bg: enum_pages_blocks_logo_grid_block_style_bg("style_bg").default("none"),
|
|
style_logoBg: enum_pages_blocks_logo_grid_block_style_logo_bg("style_logo_bg").default("none"),
|
|
style_logoPadding: boolean("style_logo_padding").default(true),
|
|
style_gap: enum_pages_blocks_logo_grid_block_style_gap("style_gap").default("32"),
|
|
style_alignment: enum_pages_blocks_logo_grid_block_style_alignment("style_alignment").default("center"),
|
|
style_divider: boolean("style_divider").default(false),
|
|
showCTA: boolean("show_c_t_a").default(false),
|
|
ctaLink: varchar("cta_link").default("/partner"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_logo_grid_block_order_idx").on(columns._order),
|
|
index("pages_blocks_logo_grid_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_logo_grid_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_logo_grid_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_logo_grid_block_locales = pgTable(
|
|
"pages_blocks_logo_grid_block_locales",
|
|
{
|
|
title: varchar("title"),
|
|
subtitle: varchar("subtitle"),
|
|
ctaText: varchar("cta_text").default("Alle Partner ansehen"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_logo_grid_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_logo_grid_block.id],
|
|
name: "pages_blocks_logo_grid_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_stats_block_stats = pgTable(
|
|
"pages_blocks_stats_block_stats",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
value: varchar("value").notNull(),
|
|
numericValue: numeric("numeric_value", { mode: "number" }),
|
|
prefix: varchar("prefix"),
|
|
suffix: varchar("suffix"),
|
|
icon: enum_pages_blocks_stats_block_stats_icon("icon"),
|
|
color: enum_pages_blocks_stats_block_stats_color("color"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_stats_block_stats_order_idx").on(columns._order),
|
|
index("pages_blocks_stats_block_stats_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_stats_block.id],
|
|
name: "pages_blocks_stats_block_stats_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_stats_block_stats_locales = pgTable(
|
|
"pages_blocks_stats_block_stats_locales",
|
|
{
|
|
label: varchar("label").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_stats_block_stats_locales_locale_parent_id_uniq").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_stats_block_stats.id],
|
|
name: "pages_blocks_stats_block_stats_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_stats_block = pgTable(
|
|
"pages_blocks_stats_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
layout: enum_pages_blocks_stats_block_layout("layout").default("row"),
|
|
columns: enum_pages_blocks_stats_block_columns("columns").default("4"),
|
|
alignment: enum_pages_blocks_stats_block_alignment("alignment").default("center"),
|
|
animation_countUp: boolean("animation_count_up").default(true),
|
|
animation_duration: enum_pages_blocks_stats_block_animation_duration("animation_duration").default("2000"),
|
|
animation_trigger: enum_pages_blocks_stats_block_animation_trigger("animation_trigger").default("viewport"),
|
|
animation_stagger: boolean("animation_stagger").default(true),
|
|
style_bg: enum_pages_blocks_stats_block_style_bg("style_bg").default("none"),
|
|
style_bgImage: integer("style_bg_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
style_bgOverlay: enum_pages_blocks_stats_block_style_bg_overlay("style_bg_overlay").default("dark"),
|
|
style_textColor: enum_pages_blocks_stats_block_style_text_color("style_text_color").default("auto"),
|
|
style_valueSize: enum_pages_blocks_stats_block_style_value_size("style_value_size").default("xl"),
|
|
style_valueWeight: enum_pages_blocks_stats_block_style_value_weight("style_value_weight").default("bold"),
|
|
style_showIcon: boolean("style_show_icon").default(true),
|
|
style_iconPosition: enum_pages_blocks_stats_block_style_icon_position("style_icon_position").default("top"),
|
|
style_dividers: boolean("style_dividers").default(false),
|
|
style_cardBorder: boolean("style_card_border").default(false),
|
|
style_cardShadow: boolean("style_card_shadow").default(true),
|
|
style_gap: enum_pages_blocks_stats_block_style_gap("style_gap").default("32"),
|
|
style_padding: enum_pages_blocks_stats_block_style_padding("style_padding").default("md"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_stats_block_order_idx").on(columns._order),
|
|
index("pages_blocks_stats_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_stats_block_path_idx").on(columns._path),
|
|
index("pages_blocks_stats_block_style_style_bg_image_idx").on(columns.style_bgImage),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_stats_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_stats_block_locales = pgTable(
|
|
"pages_blocks_stats_block_locales",
|
|
{
|
|
title: varchar("title"),
|
|
subtitle: varchar("subtitle"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_stats_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_stats_block.id],
|
|
name: "pages_blocks_stats_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_jobs_block = pgTable(
|
|
"pages_blocks_jobs_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
source: enum_pages_blocks_jobs_block_source("source").default("all"),
|
|
category: enum_pages_blocks_jobs_block_category("category"),
|
|
department: varchar("department"),
|
|
locationFilter: integer("location_filter_id").references(() => locations.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
limit: numeric("limit", { mode: "number" }).default(10),
|
|
filters_showSearch: boolean("filters_show_search").default(true),
|
|
filters_showCategoryFilter: boolean("filters_show_category_filter").default(true),
|
|
filters_showTypeFilter: boolean("filters_show_type_filter").default(true),
|
|
filters_showLocationFilter: boolean("filters_show_location_filter").default(true),
|
|
filters_showWorkModelFilter: boolean("filters_show_work_model_filter").default(false),
|
|
filters_filterLayout:
|
|
enum_pages_blocks_jobs_block_filters_filter_layout("filters_filter_layout").default("horizontal"),
|
|
layout: enum_pages_blocks_jobs_block_layout("layout").default("list"),
|
|
columns: enum_pages_blocks_jobs_block_columns("columns").default("1"),
|
|
show_image: boolean("show_image").default(false),
|
|
show_department: boolean("show_department").default(true),
|
|
show_type: boolean("show_type").default(true),
|
|
show_location: boolean("show_location").default(true),
|
|
show_workModel: boolean("show_work_model").default(true),
|
|
show_salary: boolean("show_salary").default(false),
|
|
show_summary: boolean("show_summary").default(true),
|
|
show_deadline: boolean("show_deadline").default(false),
|
|
show_publishDate: boolean("show_publish_date").default(true),
|
|
show_badges: boolean("show_badges").default(true),
|
|
badges_newDays: numeric("badges_new_days", { mode: "number" }).default(7),
|
|
badges_showUrgent: boolean("badges_show_urgent").default(true),
|
|
badges_showFeatured: boolean("badges_show_featured").default(true),
|
|
pagination_type: enum_pages_blocks_jobs_block_pagination_type("pagination_type").default("button"),
|
|
pagination_perPage: numeric("pagination_per_page", { mode: "number" }).default(10),
|
|
style_bg: enum_pages_blocks_jobs_block_style_bg("style_bg").default("none"),
|
|
style_cardStyle: enum_pages_blocks_jobs_block_style_card_style("style_card_style").default("bordered"),
|
|
style_hoverEffect: enum_pages_blocks_jobs_block_style_hover_effect("style_hover_effect").default("lift"),
|
|
style_gap: enum_pages_blocks_jobs_block_style_gap("style_gap").default("16"),
|
|
emptyState_showInitiativeLink: boolean("empty_state_show_initiative_link").default(true),
|
|
emptyState_initiativeUrl: varchar("empty_state_initiative_url").default("/karriere/initiativbewerbung"),
|
|
showAllJobsLink: boolean("show_all_jobs_link").default(false),
|
|
allJobsUrl: varchar("all_jobs_url").default("/karriere"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_jobs_block_order_idx").on(columns._order),
|
|
index("pages_blocks_jobs_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_jobs_block_path_idx").on(columns._path),
|
|
index("pages_blocks_jobs_block_location_filter_idx").on(columns.locationFilter),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_jobs_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_jobs_block_locales = pgTable(
|
|
"pages_blocks_jobs_block_locales",
|
|
{
|
|
title: varchar("title").default("Offene Stellen"),
|
|
subtitle: varchar("subtitle"),
|
|
introduction: jsonb("introduction"),
|
|
emptyState_title: varchar("empty_state_title").default("Aktuell keine offenen Stellen"),
|
|
emptyState_message: varchar("empty_state_message").default(
|
|
"Schauen Sie später wieder vorbei oder senden Sie uns eine Initiativbewerbung.",
|
|
),
|
|
emptyState_initiativeText: varchar("empty_state_initiative_text").default("Initiativbewerbung senden"),
|
|
allJobsText: varchar("all_jobs_text").default("Alle offenen Stellen"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_jobs_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_jobs_block.id],
|
|
name: "pages_blocks_jobs_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_downloads_block = pgTable(
|
|
"pages_blocks_downloads_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
source: enum_pages_blocks_downloads_block_source("source").default("all"),
|
|
category: enum_pages_blocks_downloads_block_category("category"),
|
|
filterTags: varchar("filter_tags"),
|
|
relatedService: integer("related_service_id").references(() => services.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
relatedProduct: integer("related_product_id").references(() => products.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
limit: numeric("limit", { mode: "number" }).default(20),
|
|
filters_showSearch: boolean("filters_show_search").default(true),
|
|
filters_showCategoryFilter: boolean("filters_show_category_filter").default(true),
|
|
filters_showFileTypeFilter: boolean("filters_show_file_type_filter").default(false),
|
|
filters_filterLayout:
|
|
enum_pages_blocks_downloads_block_filters_filter_layout("filters_filter_layout").default("horizontal"),
|
|
layout: enum_pages_blocks_downloads_block_layout("layout").default("list"),
|
|
columns: enum_pages_blocks_downloads_block_columns("columns").default("1"),
|
|
show_thumbnail: boolean("show_thumbnail").default(true),
|
|
show_description: boolean("show_description").default(true),
|
|
show_fileSize: boolean("show_file_size").default(true),
|
|
show_fileType: boolean("show_file_type").default(true),
|
|
show_category: boolean("show_category").default(true),
|
|
show_downloadCount: boolean("show_download_count").default(false),
|
|
show_version: boolean("show_version").default(false),
|
|
show_lastUpdated: boolean("show_last_updated").default(false),
|
|
downloadBehavior_directDownload: boolean("download_behavior_direct_download").default(true),
|
|
downloadBehavior_trackDownloads: boolean("download_behavior_track_downloads").default(true),
|
|
downloadBehavior_openInNewTab: boolean("download_behavior_open_in_new_tab").default(false),
|
|
fileIcons_showFileTypeIcon: boolean("file_icons_show_file_type_icon").default(true),
|
|
fileIcons_iconStyle:
|
|
enum_pages_blocks_downloads_block_file_icons_icon_style("file_icons_icon_style").default("colored"),
|
|
sortBy: enum_pages_blocks_downloads_block_sort_by("sort_by").default("order"),
|
|
groupBy: enum_pages_blocks_downloads_block_group_by("group_by").default("none"),
|
|
pagination_type: enum_pages_blocks_downloads_block_pagination_type("pagination_type").default("none"),
|
|
pagination_perPage: numeric("pagination_per_page", { mode: "number" }).default(10),
|
|
style_bg: enum_pages_blocks_downloads_block_style_bg("style_bg").default("none"),
|
|
style_cardStyle: enum_pages_blocks_downloads_block_style_card_style("style_card_style").default("bordered"),
|
|
style_hoverEffect: enum_pages_blocks_downloads_block_style_hover_effect("style_hover_effect").default("highlight"),
|
|
style_gap: enum_pages_blocks_downloads_block_style_gap("style_gap").default("16"),
|
|
showAllDownloadsLink: boolean("show_all_downloads_link").default(false),
|
|
allDownloadsUrl: varchar("all_downloads_url").default("/downloads"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_downloads_block_order_idx").on(columns._order),
|
|
index("pages_blocks_downloads_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_downloads_block_path_idx").on(columns._path),
|
|
index("pages_blocks_downloads_block_related_service_idx").on(columns.relatedService),
|
|
index("pages_blocks_downloads_block_related_product_idx").on(columns.relatedProduct),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_downloads_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_downloads_block_locales = pgTable(
|
|
"pages_blocks_downloads_block_locales",
|
|
{
|
|
title: varchar("title").default("Downloads"),
|
|
subtitle: varchar("subtitle"),
|
|
introduction: jsonb("introduction"),
|
|
emptyState_title: varchar("empty_state_title").default("Keine Downloads verfügbar"),
|
|
emptyState_message: varchar("empty_state_message").default(
|
|
"Aktuell sind keine Downloads in dieser Kategorie verfügbar.",
|
|
),
|
|
allDownloadsText: varchar("all_downloads_text").default("Alle Downloads ansehen"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_downloads_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_downloads_block.id],
|
|
name: "pages_blocks_downloads_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_map_block_location_type = pgTable(
|
|
"pages_blocks_map_block_location_type",
|
|
{
|
|
order: integer("order").notNull(),
|
|
parent: varchar("parent_id").notNull(),
|
|
value: enum_pages_blocks_map_block_location_type("value"),
|
|
id: serial("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_map_block_location_type_order_idx").on(columns.order),
|
|
index("pages_blocks_map_block_location_type_parent_idx").on(columns.parent),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [pages_blocks_map_block.id],
|
|
name: "pages_blocks_map_block_location_type_parent_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_map_block_markers = pgTable(
|
|
"pages_blocks_map_block_markers",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
lat: numeric("lat", { mode: "number" }),
|
|
lng: numeric("lng", { mode: "number" }),
|
|
markerType: enum_pages_blocks_map_block_markers_marker_type("marker_type"),
|
|
customIcon: integer("custom_icon_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
link: varchar("link"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_map_block_markers_order_idx").on(columns._order),
|
|
index("pages_blocks_map_block_markers_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_map_block_markers_custom_icon_idx").on(columns.customIcon),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_map_block.id],
|
|
name: "pages_blocks_map_block_markers_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_map_block_markers_locales = pgTable(
|
|
"pages_blocks_map_block_markers_locales",
|
|
{
|
|
name: varchar("name"),
|
|
address: varchar("address"),
|
|
popupContent: jsonb("popup_content"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_map_block_markers_locales_locale_parent_id_uniq").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_map_block_markers.id],
|
|
name: "pages_blocks_map_block_markers_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_map_block = pgTable(
|
|
"pages_blocks_map_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
source: enum_pages_blocks_map_block_source("source").default("locations"),
|
|
singleAddress_street: varchar("single_address_street"),
|
|
singleAddress_zip: varchar("single_address_zip"),
|
|
singleAddress_city: varchar("single_address_city"),
|
|
singleAddress_country: varchar("single_address_country").default("Deutschland"),
|
|
singleAddress_lat: numeric("single_address_lat", { mode: "number" }),
|
|
singleAddress_lng: numeric("single_address_lng", { mode: "number" }),
|
|
provider: enum_pages_blocks_map_block_provider("provider").default("osm"),
|
|
mapStyle: enum_pages_blocks_map_block_map_style("map_style").default("default"),
|
|
mapSettings_height: enum_pages_blocks_map_block_map_settings_height("map_settings_height").default("400"),
|
|
mapSettings_zoom: numeric("map_settings_zoom", { mode: "number" }).default(12),
|
|
mapSettings_autoFit: boolean("map_settings_auto_fit").default(true),
|
|
mapSettings_centerLat: numeric("map_settings_center_lat", { mode: "number" }),
|
|
mapSettings_centerLng: numeric("map_settings_center_lng", { mode: "number" }),
|
|
interaction_scrollZoom: boolean("interaction_scroll_zoom").default(false),
|
|
interaction_dragging: boolean("interaction_dragging").default(true),
|
|
interaction_zoomControl: boolean("interaction_zoom_control").default(true),
|
|
interaction_fullscreenControl: boolean("interaction_fullscreen_control").default(false),
|
|
interaction_locateControl: boolean("interaction_locate_control").default(false),
|
|
markerStyle_type: enum_pages_blocks_map_block_marker_style_type("marker_style_type").default("pin"),
|
|
markerStyle_color: varchar("marker_style_color").default("#3B82F6"),
|
|
markerStyle_size: enum_pages_blocks_map_block_marker_style_size("marker_style_size").default("md"),
|
|
markerStyle_clustering: boolean("marker_style_clustering").default(true),
|
|
markerStyle_clusterRadius: numeric("marker_style_cluster_radius", { mode: "number" }).default(50),
|
|
popup_show: boolean("popup_show").default(true),
|
|
popup_trigger: enum_pages_blocks_map_block_popup_trigger("popup_trigger").default("click"),
|
|
popup_showAddress: boolean("popup_show_address").default(true),
|
|
popup_showDirectionsLink: boolean("popup_show_directions_link").default(true),
|
|
popup_showPhone: boolean("popup_show_phone").default(true),
|
|
popup_showOpeningHours: boolean("popup_show_opening_hours").default(false),
|
|
popup_showDetailLink: boolean("popup_show_detail_link").default(true),
|
|
sidebar_show: boolean("sidebar_show").default(false),
|
|
sidebar_position: enum_pages_blocks_map_block_sidebar_position("sidebar_position").default("right"),
|
|
sidebar_width: enum_pages_blocks_map_block_sidebar_width("sidebar_width").default("300"),
|
|
sidebar_searchable: boolean("sidebar_searchable").default(true),
|
|
sidebar_clickToCenter: boolean("sidebar_click_to_center").default(true),
|
|
style_rounded: boolean("style_rounded").default(true),
|
|
style_shadow: boolean("style_shadow").default(true),
|
|
style_border: boolean("style_border").default(false),
|
|
style_padding: enum_pages_blocks_map_block_style_padding("style_padding").default("none"),
|
|
fallback_showStaticImage: boolean("fallback_show_static_image").default(false),
|
|
fallback_staticImage: integer("fallback_static_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_map_block_order_idx").on(columns._order),
|
|
index("pages_blocks_map_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_map_block_path_idx").on(columns._path),
|
|
index("pages_blocks_map_block_fallback_fallback_static_image_idx").on(columns.fallback_staticImage),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_map_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_map_block_locales = pgTable(
|
|
"pages_blocks_map_block_locales",
|
|
{
|
|
title: varchar("title"),
|
|
subtitle: varchar("subtitle"),
|
|
singleAddress_name: varchar("single_address_name"),
|
|
fallback_noJsMessage: varchar("fallback_no_js_message").default(
|
|
"Bitte aktivieren Sie JavaScript, um die Karte anzuzeigen.",
|
|
),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_map_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_map_block.id],
|
|
name: "pages_blocks_map_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_events = pgTable(
|
|
"pages_blocks_events",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
sourceMode: enum_pages_blocks_events_source_mode("source_mode").default("collection"),
|
|
filterMode: enum_pages_blocks_events_filter_mode("filter_mode").default("upcoming"),
|
|
eventType: enum_pages_blocks_events_event_type("event_type"),
|
|
category: varchar("category"),
|
|
limit: numeric("limit", { mode: "number" }).default(6),
|
|
layout: enum_pages_blocks_events_layout("layout").default("cards"),
|
|
columns: enum_pages_blocks_events_columns("columns").default("3"),
|
|
showImage: boolean("show_image").default(true),
|
|
showExcerpt: boolean("show_excerpt").default(true),
|
|
showDate: boolean("show_date").default(true),
|
|
showTime: boolean("show_time").default(true),
|
|
showLocation: boolean("show_location").default(true),
|
|
showPrice: boolean("show_price").default(false),
|
|
showEventType: boolean("show_event_type").default(false),
|
|
showRegistrationButton: boolean("show_registration_button").default(true),
|
|
calendarOptions_defaultView: enum_pages_blocks_events_calendar_options_default_view(
|
|
"calendar_options_default_view",
|
|
).default("month"),
|
|
calendarOptions_showNavigation: boolean("calendar_options_show_navigation").default(true),
|
|
calendarOptions_showViewToggle: boolean("calendar_options_show_view_toggle").default(false),
|
|
groupBy: enum_pages_blocks_events_group_by("group_by").default("none"),
|
|
sortOrder: enum_pages_blocks_events_sort_order("sort_order").default("asc"),
|
|
showAllLink: boolean("show_all_link").default(true),
|
|
allEventsLink: varchar("all_events_link").default("/events"),
|
|
backgroundColor: enum_pages_blocks_events_background_color("background_color").default("white"),
|
|
cardStyle: enum_pages_blocks_events_card_style("card_style").default("elevated"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_events_order_idx").on(columns._order),
|
|
index("pages_blocks_events_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_events_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_events_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_events_locales = pgTable(
|
|
"pages_blocks_events_locales",
|
|
{
|
|
title: varchar("title"),
|
|
subtitle: varchar("subtitle"),
|
|
registrationButtonText: varchar("registration_button_text").default("Jetzt anmelden"),
|
|
allEventsText: varchar("all_events_text").default("Alle Veranstaltungen"),
|
|
emptyMessage: varchar("empty_message").default("Aktuell sind keine Veranstaltungen geplant."),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_events_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_events.id],
|
|
name: "pages_blocks_events_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_pricing_plans_features = pgTable(
|
|
"pages_blocks_pricing_plans_features",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
included: boolean("included").default(true),
|
|
highlight: boolean("highlight").default(false),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_pricing_plans_features_order_idx").on(columns._order),
|
|
index("pages_blocks_pricing_plans_features_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_pricing_plans.id],
|
|
name: "pages_blocks_pricing_plans_features_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_pricing_plans_features_locales = pgTable(
|
|
"pages_blocks_pricing_plans_features_locales",
|
|
{
|
|
text: varchar("text").notNull(),
|
|
tooltip: varchar("tooltip"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_pricing_plans_features_locales_locale_parent_id").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_pricing_plans_features.id],
|
|
name: "pages_blocks_pricing_plans_features_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_pricing_plans = pgTable(
|
|
"pages_blocks_pricing_plans",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
price: numeric("price", { mode: "number" }),
|
|
priceMonthly: numeric("price_monthly", { mode: "number" }),
|
|
priceYearly: numeric("price_yearly", { mode: "number" }),
|
|
originalPrice: numeric("original_price", { mode: "number" }),
|
|
ctaLink: varchar("cta_link"),
|
|
ctaStyle: enum_pages_blocks_pricing_plans_cta_style("cta_style").default("primary"),
|
|
isPopular: boolean("is_popular").default(false),
|
|
isRecommended: boolean("is_recommended").default(false),
|
|
accentColor: enum_pages_blocks_pricing_plans_accent_color("accent_color"),
|
|
icon: integer("icon_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_pricing_plans_order_idx").on(columns._order),
|
|
index("pages_blocks_pricing_plans_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_pricing_plans_icon_idx").on(columns.icon),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_pricing.id],
|
|
name: "pages_blocks_pricing_plans_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_pricing_plans_locales = pgTable(
|
|
"pages_blocks_pricing_plans_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
subtitle: varchar("subtitle"),
|
|
description: varchar("description"),
|
|
priceSuffix: varchar("price_suffix"),
|
|
priceNote: varchar("price_note"),
|
|
customPriceText: varchar("custom_price_text"),
|
|
ctaText: varchar("cta_text").default("Jetzt starten"),
|
|
popularLabel: varchar("popular_label").default("Beliebt"),
|
|
recommendedLabel: varchar("recommended_label").default("Empfohlen"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_pricing_plans_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_pricing_plans.id],
|
|
name: "pages_blocks_pricing_plans_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_pricing_comparison_features_values = pgTable(
|
|
"pages_blocks_pricing_comparison_features_values",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
planIndex: numeric("plan_index", { mode: "number" }),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_pricing_comparison_features_values_order_idx").on(columns._order),
|
|
index("pages_blocks_pricing_comparison_features_values_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_pricing_comparison_features.id],
|
|
name: "pages_blocks_pricing_comparison_features_values_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_pricing_comparison_features_values_locales = pgTable(
|
|
"pages_blocks_pricing_comparison_features_values_locales",
|
|
{
|
|
value: varchar("value"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_pricing_comparison_features_values_locales_loca").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_pricing_comparison_features_values.id],
|
|
name: "pages_blocks_pricing_comparison_features_values_locales_p_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_pricing_comparison_features = pgTable(
|
|
"pages_blocks_pricing_comparison_features",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_pricing_comparison_features_order_idx").on(columns._order),
|
|
index("pages_blocks_pricing_comparison_features_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_pricing.id],
|
|
name: "pages_blocks_pricing_comparison_features_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_pricing_comparison_features_locales = pgTable(
|
|
"pages_blocks_pricing_comparison_features_locales",
|
|
{
|
|
category: varchar("category"),
|
|
feature: varchar("feature"),
|
|
tooltip: varchar("tooltip"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_pricing_comparison_features_locales_locale_pare").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_pricing_comparison_features.id],
|
|
name: "pages_blocks_pricing_comparison_features_locales_parent_i_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_pricing_faq_items = pgTable(
|
|
"pages_blocks_pricing_faq_items",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_pricing_faq_items_order_idx").on(columns._order),
|
|
index("pages_blocks_pricing_faq_items_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_pricing.id],
|
|
name: "pages_blocks_pricing_faq_items_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_pricing_faq_items_locales = pgTable(
|
|
"pages_blocks_pricing_faq_items_locales",
|
|
{
|
|
question: varchar("question"),
|
|
answer: jsonb("answer"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_pricing_faq_items_locales_locale_parent_id_uniq").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_pricing_faq_items.id],
|
|
name: "pages_blocks_pricing_faq_items_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_pricing = pgTable(
|
|
"pages_blocks_pricing",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
pricingType: enum_pages_blocks_pricing_pricing_type("pricing_type").default("one-time"),
|
|
currency: varchar("currency").default("€"),
|
|
showCurrencyBefore: boolean("show_currency_before").default(true),
|
|
toggleOptions_defaultToYearly: boolean("toggle_options_default_to_yearly").default(true),
|
|
showComparison: boolean("show_comparison").default(false),
|
|
layout: enum_pages_blocks_pricing_layout("layout").default("cards"),
|
|
alignment: enum_pages_blocks_pricing_alignment("alignment").default("center"),
|
|
highlightPopular: boolean("highlight_popular").default(true),
|
|
guarantee_show: boolean("guarantee_show").default(false),
|
|
guarantee_icon: enum_pages_blocks_pricing_guarantee_icon("guarantee_icon"),
|
|
showFAQ: boolean("show_f_a_q").default(false),
|
|
backgroundColor: enum_pages_blocks_pricing_background_color("background_color").default("white"),
|
|
cardStyle: enum_pages_blocks_pricing_card_style("card_style").default("elevated"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_pricing_order_idx").on(columns._order),
|
|
index("pages_blocks_pricing_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_pricing_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_pricing_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_pricing_locales = pgTable(
|
|
"pages_blocks_pricing_locales",
|
|
{
|
|
title: varchar("title"),
|
|
subtitle: varchar("subtitle"),
|
|
description: varchar("description"),
|
|
toggleOptions_monthlyLabel: varchar("toggle_options_monthly_label").default("Monatlich"),
|
|
toggleOptions_yearlyLabel: varchar("toggle_options_yearly_label").default("Jährlich"),
|
|
toggleOptions_yearlyDiscount: varchar("toggle_options_yearly_discount"),
|
|
guarantee_text: varchar("guarantee_text").default("30 Tage Geld-zurück-Garantie"),
|
|
faqTitle: varchar("faq_title").default("Häufig gestellte Fragen"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_pricing_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_pricing.id],
|
|
name: "pages_blocks_pricing_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_tabs_tabs_features = pgTable(
|
|
"pages_blocks_tabs_tabs_features",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
icon: enum_pages_blocks_tabs_tabs_features_icon("icon"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_tabs_tabs_features_order_idx").on(columns._order),
|
|
index("pages_blocks_tabs_tabs_features_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_tabs_tabs.id],
|
|
name: "pages_blocks_tabs_tabs_features_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_tabs_tabs_features_locales = pgTable(
|
|
"pages_blocks_tabs_tabs_features_locales",
|
|
{
|
|
title: varchar("title"),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_tabs_tabs_features_locales_locale_parent_id_uni").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_tabs_tabs_features.id],
|
|
name: "pages_blocks_tabs_tabs_features_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_tabs_tabs = pgTable(
|
|
"pages_blocks_tabs_tabs",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
icon: enum_pages_blocks_tabs_tabs_icon("icon"),
|
|
customIcon: integer("custom_icon_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
badge: varchar("badge"),
|
|
contentType: enum_pages_blocks_tabs_tabs_content_type("content_type").default("richtext"),
|
|
imgTxt_img: integer("img_txt_img_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
imgTxt_imgPos: enum_pages_blocks_tabs_tabs_img_txt_img_pos("img_txt_img_pos").default("left"),
|
|
code_language: enum_pages_blocks_tabs_tabs_code_language("code_language"),
|
|
code_code: varchar("code_code"),
|
|
code_showLineNumbers: boolean("code_show_line_numbers").default(true),
|
|
embed_type: enum_pages_blocks_tabs_tabs_embed_type("embed_type"),
|
|
embed_url: varchar("embed_url"),
|
|
embed_aspectRatio: enum_pages_blocks_tabs_tabs_embed_aspect_ratio("embed_aspect_ratio").default("16:9"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_tabs_tabs_order_idx").on(columns._order),
|
|
index("pages_blocks_tabs_tabs_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_tabs_tabs_custom_icon_idx").on(columns.customIcon),
|
|
index("pages_blocks_tabs_tabs_img_txt_img_txt_img_idx").on(columns.imgTxt_img),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_tabs.id],
|
|
name: "pages_blocks_tabs_tabs_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_tabs_tabs_locales = pgTable(
|
|
"pages_blocks_tabs_tabs_locales",
|
|
{
|
|
label: varchar("label").notNull(),
|
|
content: jsonb("content"),
|
|
imgTxt_text: jsonb("img_txt_text"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_tabs_tabs_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_tabs_tabs.id],
|
|
name: "pages_blocks_tabs_tabs_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_tabs = pgTable(
|
|
"pages_blocks_tabs",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
tabStyle: enum_pages_blocks_tabs_tab_style("tab_style").default("underline"),
|
|
tabPosition: enum_pages_blocks_tabs_tab_position("tab_position").default("top"),
|
|
tabAlignment: enum_pages_blocks_tabs_tab_alignment("tab_alignment").default("left"),
|
|
defaultTab: numeric("default_tab", { mode: "number" }).default(0),
|
|
allowKeyboardNavigation: boolean("allow_keyboard_navigation").default(true),
|
|
animated: boolean("animated").default(true),
|
|
lazy: boolean("lazy").default(false),
|
|
mobileStyle: enum_pages_blocks_tabs_mobile_style("mobile_style").default("scroll"),
|
|
backgroundColor: enum_pages_blocks_tabs_background_color("background_color").default("white"),
|
|
contentBackground: enum_pages_blocks_tabs_content_background("content_background").default("white"),
|
|
showBorder: boolean("show_border").default(true),
|
|
fullWidth: boolean("full_width").default(false),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_tabs_order_idx").on(columns._order),
|
|
index("pages_blocks_tabs_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_tabs_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_tabs_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_tabs_locales = pgTable(
|
|
"pages_blocks_tabs_locales",
|
|
{
|
|
title: varchar("title"),
|
|
subtitle: varchar("subtitle"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_tabs_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_tabs.id],
|
|
name: "pages_blocks_tabs_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_accordion_items_list_items = pgTable(
|
|
"pages_blocks_accordion_items_list_items",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
icon: enum_pages_blocks_accordion_items_list_items_icon("icon").default("check"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_accordion_items_list_items_order_idx").on(columns._order),
|
|
index("pages_blocks_accordion_items_list_items_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_accordion_items.id],
|
|
name: "pages_blocks_accordion_items_list_items_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_accordion_items_list_items_locales = pgTable(
|
|
"pages_blocks_accordion_items_list_items_locales",
|
|
{
|
|
text: varchar("text"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_accordion_items_list_items_locales_locale_paren").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_accordion_items_list_items.id],
|
|
name: "pages_blocks_accordion_items_list_items_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_accordion_items_table_data_headers = pgTable(
|
|
"pages_blocks_accordion_items_table_data_headers",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_accordion_items_table_data_headers_order_idx").on(columns._order),
|
|
index("pages_blocks_accordion_items_table_data_headers_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_accordion_items.id],
|
|
name: "pages_blocks_accordion_items_table_data_headers_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_accordion_items_table_data_headers_locales = pgTable(
|
|
"pages_blocks_accordion_items_table_data_headers_locales",
|
|
{
|
|
text: varchar("text"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_accordion_items_table_data_headers_locales_loca").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_accordion_items_table_data_headers.id],
|
|
name: "pages_blocks_accordion_items_table_data_headers_locales_p_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_accordion_items_table_data_rows_cells = pgTable(
|
|
"pages_blocks_accordion_items_table_data_rows_cells",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_accordion_items_table_data_rows_cells_order_idx").on(columns._order),
|
|
index("pages_blocks_accordion_items_table_data_rows_cells_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_accordion_items_table_data_rows.id],
|
|
name: "pages_blocks_accordion_items_table_data_rows_cells_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_accordion_items_table_data_rows_cells_locales = pgTable(
|
|
"pages_blocks_accordion_items_table_data_rows_cells_locales",
|
|
{
|
|
text: varchar("text"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_accordion_items_table_data_rows_cells_locales_l").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_accordion_items_table_data_rows_cells.id],
|
|
name: "pages_blocks_accordion_items_table_data_rows_cells_locale_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_accordion_items_table_data_rows = pgTable(
|
|
"pages_blocks_accordion_items_table_data_rows",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_accordion_items_table_data_rows_order_idx").on(columns._order),
|
|
index("pages_blocks_accordion_items_table_data_rows_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_accordion_items.id],
|
|
name: "pages_blocks_accordion_items_table_data_rows_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_accordion_items = pgTable(
|
|
"pages_blocks_accordion_items",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
icon: enum_pages_blocks_accordion_items_icon("icon"),
|
|
customIcon: integer("custom_icon_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
contentType: enum_pages_blocks_accordion_items_content_type("content_type").default("richtext"),
|
|
imgTxt_img: integer("img_txt_img_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
imgTxt_imgPos: enum_pages_blocks_accordion_items_img_txt_img_pos("img_txt_img_pos").default("left"),
|
|
codeContent_language: enum_pages_blocks_accordion_items_code_content_language("code_content_language"),
|
|
codeContent_code: varchar("code_content_code"),
|
|
badge: varchar("badge"),
|
|
badgeColor: enum_pages_blocks_accordion_items_badge_color("badge_color"),
|
|
defaultOpen: boolean("default_open").default(false),
|
|
disabled: boolean("disabled").default(false),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_accordion_items_order_idx").on(columns._order),
|
|
index("pages_blocks_accordion_items_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_accordion_items_custom_icon_idx").on(columns.customIcon),
|
|
index("pages_blocks_accordion_items_img_txt_img_txt_img_idx").on(columns.imgTxt_img),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_accordion.id],
|
|
name: "pages_blocks_accordion_items_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_accordion_items_locales = pgTable(
|
|
"pages_blocks_accordion_items_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
subtitle: varchar("subtitle"),
|
|
content: jsonb("content"),
|
|
imgTxt_text: jsonb("img_txt_text"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_accordion_items_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_accordion_items.id],
|
|
name: "pages_blocks_accordion_items_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_accordion = pgTable(
|
|
"pages_blocks_accordion",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
behavior: enum_pages_blocks_accordion_behavior("behavior").default("single"),
|
|
expandFirst: boolean("expand_first").default(false),
|
|
animated: boolean("animated").default(true),
|
|
style: enum_pages_blocks_accordion_style("style").default("default"),
|
|
iconPosition: enum_pages_blocks_accordion_icon_position("icon_position").default("right"),
|
|
iconStyle: enum_pages_blocks_accordion_icon_style("icon_style").default("chevron"),
|
|
layout: enum_pages_blocks_accordion_layout("layout").default("full"),
|
|
titleSize: enum_pages_blocks_accordion_title_size("title_size").default("medium"),
|
|
backgroundColor: enum_pages_blocks_accordion_background_color("background_color").default("white"),
|
|
headerBackground: enum_pages_blocks_accordion_header_background("header_background").default("white"),
|
|
enableSchemaOrg: boolean("enable_schema_org").default(false),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_accordion_order_idx").on(columns._order),
|
|
index("pages_blocks_accordion_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_accordion_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_accordion_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_accordion_locales = pgTable(
|
|
"pages_blocks_accordion_locales",
|
|
{
|
|
title: varchar("title"),
|
|
subtitle: varchar("subtitle"),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_accordion_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_accordion.id],
|
|
name: "pages_blocks_accordion_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_tbl_columns = pgTable(
|
|
"pages_blocks_comparison_tbl_columns",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
isHighlighted: boolean("is_highlighted").default(false),
|
|
ctaLink: varchar("cta_link"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_comparison_tbl_columns_order_idx").on(columns._order),
|
|
index("pages_blocks_comparison_tbl_columns_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_comparison_tbl_columns_image_idx").on(columns.image),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison.id],
|
|
name: "pages_blocks_comparison_tbl_columns_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_tbl_columns_locales = pgTable(
|
|
"pages_blocks_comparison_tbl_columns_locales",
|
|
{
|
|
name: varchar("name"),
|
|
subtitle: varchar("subtitle"),
|
|
price: varchar("price"),
|
|
highlightLabel: varchar("highlight_label"),
|
|
ctaText: varchar("cta_text"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_comparison_tbl_columns_locales_locale_parent_id").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison_tbl_columns.id],
|
|
name: "pages_blocks_comparison_tbl_columns_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_tbl_rows_values = pgTable(
|
|
"pages_blocks_comparison_tbl_rows_values",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
columnIndex: numeric("column_index", { mode: "number" }),
|
|
valueType: enum_pages_blocks_comparison_tbl_rows_values_value_type("value_type").default("text"),
|
|
booleanValue: boolean("boolean_value"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_comparison_tbl_rows_values_order_idx").on(columns._order),
|
|
index("pages_blocks_comparison_tbl_rows_values_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison_tbl_rows.id],
|
|
name: "pages_blocks_comparison_tbl_rows_values_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_tbl_rows_values_locales = pgTable(
|
|
"pages_blocks_comparison_tbl_rows_values_locales",
|
|
{
|
|
textValue: varchar("text_value"),
|
|
partialNote: varchar("partial_note"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_comparison_tbl_rows_values_locales_locale_paren").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison_tbl_rows_values.id],
|
|
name: "pages_blocks_comparison_tbl_rows_values_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_tbl_rows = pgTable(
|
|
"pages_blocks_comparison_tbl_rows",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
category: varchar("category"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_comparison_tbl_rows_order_idx").on(columns._order),
|
|
index("pages_blocks_comparison_tbl_rows_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison.id],
|
|
name: "pages_blocks_comparison_tbl_rows_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_tbl_rows_locales = pgTable(
|
|
"pages_blocks_comparison_tbl_rows_locales",
|
|
{
|
|
feature: varchar("feature"),
|
|
tooltip: varchar("tooltip"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_comparison_tbl_rows_locales_locale_parent_id_un").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison_tbl_rows.id],
|
|
name: "pages_blocks_comparison_tbl_rows_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_crd_items_features = pgTable(
|
|
"pages_blocks_comparison_crd_items_features",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
included: boolean("included").default(true),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_comparison_crd_items_features_order_idx").on(columns._order),
|
|
index("pages_blocks_comparison_crd_items_features_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison_crd_items.id],
|
|
name: "pages_blocks_comparison_crd_items_features_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_crd_items_features_locales = pgTable(
|
|
"pages_blocks_comparison_crd_items_features_locales",
|
|
{
|
|
text: varchar("text"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_comparison_crd_items_features_locales_locale_pa").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison_crd_items_features.id],
|
|
name: "pages_blocks_comparison_crd_items_features_locales_parent_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_crd_items = pgTable(
|
|
"pages_blocks_comparison_crd_items",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
ctaLink: varchar("cta_link"),
|
|
isHighlighted: boolean("is_highlighted").default(false),
|
|
accentColor: enum_pages_blocks_comparison_crd_items_accent_color("accent_color"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_comparison_crd_items_order_idx").on(columns._order),
|
|
index("pages_blocks_comparison_crd_items_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_comparison_crd_items_image_idx").on(columns.image),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison.id],
|
|
name: "pages_blocks_comparison_crd_items_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_crd_items_locales = pgTable(
|
|
"pages_blocks_comparison_crd_items_locales",
|
|
{
|
|
title: varchar("title"),
|
|
subtitle: varchar("subtitle"),
|
|
description: jsonb("description"),
|
|
price: varchar("price"),
|
|
ctaText: varchar("cta_text"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_comparison_crd_items_locales_locale_parent_id_u").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison_crd_items.id],
|
|
name: "pages_blocks_comparison_crd_items_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_before_after_items = pgTable(
|
|
"pages_blocks_comparison_before_after_items",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
beforeImage: integer("before_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
afterImage: integer("after_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_comparison_before_after_items_order_idx").on(columns._order),
|
|
index("pages_blocks_comparison_before_after_items_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_comparison_before_after_items_before_image_idx").on(columns.beforeImage),
|
|
index("pages_blocks_comparison_before_after_items_after_image_idx").on(columns.afterImage),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison.id],
|
|
name: "pages_blocks_comparison_before_after_items_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_before_after_items_locales = pgTable(
|
|
"pages_blocks_comparison_before_after_items_locales",
|
|
{
|
|
title: varchar("title"),
|
|
beforeText: varchar("before_text"),
|
|
afterText: varchar("after_text"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_comparison_before_after_items_locales_locale_pa").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison_before_after_items.id],
|
|
name: "pages_blocks_comparison_before_after_items_locales_parent_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_pros_cons_items_pros = pgTable(
|
|
"pages_blocks_comparison_pros_cons_items_pros",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_comparison_pros_cons_items_pros_order_idx").on(columns._order),
|
|
index("pages_blocks_comparison_pros_cons_items_pros_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison_pros_cons_items.id],
|
|
name: "pages_blocks_comparison_pros_cons_items_pros_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_pros_cons_items_pros_locales = pgTable(
|
|
"pages_blocks_comparison_pros_cons_items_pros_locales",
|
|
{
|
|
text: varchar("text"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_comparison_pros_cons_items_pros_locales_locale_").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison_pros_cons_items_pros.id],
|
|
name: "pages_blocks_comparison_pros_cons_items_pros_locales_pare_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_pros_cons_items_cons = pgTable(
|
|
"pages_blocks_comparison_pros_cons_items_cons",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_comparison_pros_cons_items_cons_order_idx").on(columns._order),
|
|
index("pages_blocks_comparison_pros_cons_items_cons_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison_pros_cons_items.id],
|
|
name: "pages_blocks_comparison_pros_cons_items_cons_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_pros_cons_items_cons_locales = pgTable(
|
|
"pages_blocks_comparison_pros_cons_items_cons_locales",
|
|
{
|
|
text: varchar("text"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_comparison_pros_cons_items_cons_locales_locale_").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison_pros_cons_items_cons.id],
|
|
name: "pages_blocks_comparison_pros_cons_items_cons_locales_pare_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_pros_cons_items = pgTable(
|
|
"pages_blocks_comparison_pros_cons_items",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
rating: numeric("rating", { mode: "number" }),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_comparison_pros_cons_items_order_idx").on(columns._order),
|
|
index("pages_blocks_comparison_pros_cons_items_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_comparison_pros_cons_items_image_idx").on(columns.image),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison.id],
|
|
name: "pages_blocks_comparison_pros_cons_items_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_pros_cons_items_locales = pgTable(
|
|
"pages_blocks_comparison_pros_cons_items_locales",
|
|
{
|
|
title: varchar("title"),
|
|
verdict: varchar("verdict"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_comparison_pros_cons_items_locales_locale_paren").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison_pros_cons_items.id],
|
|
name: "pages_blocks_comparison_pros_cons_items_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison = pgTable(
|
|
"pages_blocks_comparison",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
comparisonType: enum_pages_blocks_comparison_comparison_type("comparison_type").default("table"),
|
|
beforeAfter_displayStyle:
|
|
enum_pages_blocks_comparison_before_after_display_style("before_after_display_style").default("slider"),
|
|
stickyHeader: boolean("sticky_header").default(true),
|
|
showCategories: boolean("show_categories").default(true),
|
|
collapsibleCategories: boolean("collapsible_categories").default(false),
|
|
showRowDividers: boolean("show_row_dividers").default(true),
|
|
highlightDifferences: boolean("highlight_differences").default(false),
|
|
mobileView: enum_pages_blocks_comparison_mobile_view("mobile_view").default("scroll"),
|
|
symbols_checkSymbol: varchar("symbols_check_symbol").default("✓"),
|
|
symbols_crossSymbol: varchar("symbols_cross_symbol").default("✗"),
|
|
symbols_partialSymbol: varchar("symbols_partial_symbol").default("○"),
|
|
backgroundColor: enum_pages_blocks_comparison_background_color("background_color").default("white"),
|
|
tableStyle: enum_pages_blocks_comparison_table_style("table_style").default("bordered"),
|
|
checkColor: enum_pages_blocks_comparison_check_color("check_color").default("green"),
|
|
crossColor: enum_pages_blocks_comparison_cross_color("cross_color").default("red"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_comparison_order_idx").on(columns._order),
|
|
index("pages_blocks_comparison_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_comparison_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_comparison_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_comparison_locales = pgTable(
|
|
"pages_blocks_comparison_locales",
|
|
{
|
|
title: varchar("title"),
|
|
subtitle: varchar("subtitle"),
|
|
description: varchar("description"),
|
|
beforeAfter_beforeLabel: varchar("before_after_before_label").default("Vorher"),
|
|
beforeAfter_afterLabel: varchar("before_after_after_label").default("Nachher"),
|
|
prosCons_prosLabel: varchar("pros_cons_pros_label").default("Vorteile"),
|
|
prosCons_consLabel: varchar("pros_cons_cons_label").default("Nachteile"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_comparison_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_comparison.id],
|
|
name: "pages_blocks_comparison_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_before_after_comparisons = pgTable(
|
|
"pages_blocks_before_after_comparisons",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
beforeImage: integer("before_image_id")
|
|
.notNull()
|
|
.references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
afterImage: integer("after_image_id")
|
|
.notNull()
|
|
.references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
category: enum_pages_blocks_before_after_comparisons_category("category"),
|
|
tags: varchar("tags"),
|
|
metadata_client: varchar("metadata_client"),
|
|
metadata_date: timestamp("metadata_date", { mode: "string", withTimezone: true, precision: 3 }),
|
|
metadata_tools: varchar("metadata_tools"),
|
|
metadata_duration: varchar("metadata_duration"),
|
|
showMetadata: boolean("show_metadata").default(false),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_before_after_comparisons_order_idx").on(columns._order),
|
|
index("pages_blocks_before_after_comparisons_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_before_after_comparisons_before_image_idx").on(columns.beforeImage),
|
|
index("pages_blocks_before_after_comparisons_after_image_idx").on(columns.afterImage),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_before_after.id],
|
|
name: "pages_blocks_before_after_comparisons_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_before_after_comparisons_locales = pgTable(
|
|
"pages_blocks_before_after_comparisons_locales",
|
|
{
|
|
title: varchar("title"),
|
|
beforeLabel: varchar("before_label").default("Vorher"),
|
|
afterLabel: varchar("after_label").default("Nachher"),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_before_after_comparisons_locales_locale_parent_").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_before_after_comparisons.id],
|
|
name: "pages_blocks_before_after_comparisons_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_before_after = pgTable(
|
|
"pages_blocks_before_after",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
displayStyle: enum_pages_blocks_before_after_display_style("display_style").default("slider"),
|
|
sliderOrientation: enum_pages_blocks_before_after_slider_orientation("slider_orientation").default("horizontal"),
|
|
sliderStartPosition: numeric("slider_start_position", { mode: "number" }).default(50),
|
|
layout: enum_pages_blocks_before_after_layout("layout").default("single"),
|
|
aspectRatio: enum_pages_blocks_before_after_aspect_ratio("aspect_ratio").default("original"),
|
|
sliderHandle_style: enum_pages_blocks_before_after_slider_handle_style("slider_handle_style").default("circle"),
|
|
sliderHandle_color: enum_pages_blocks_before_after_slider_handle_color("slider_handle_color").default("white"),
|
|
sliderHandle_size: enum_pages_blocks_before_after_slider_handle_size("slider_handle_size").default("medium"),
|
|
sliderHandle_showLine: boolean("slider_handle_show_line").default(true),
|
|
showLabels: boolean("show_labels").default(true),
|
|
labelPosition: enum_pages_blocks_before_after_label_position("label_position").default("corners"),
|
|
labelStyle: enum_pages_blocks_before_after_label_style("label_style").default("badge"),
|
|
showFilter: boolean("show_filter").default(false),
|
|
animation_enableAnimation: boolean("animation_enable_animation").default(true),
|
|
animation_autoPlay: boolean("animation_auto_play").default(false),
|
|
animation_autoPlaySpeed: numeric("animation_auto_play_speed", { mode: "number" }).default(3),
|
|
animation_scrollTrigger: boolean("animation_scroll_trigger").default(true),
|
|
interactivity_enableZoom: boolean("interactivity_enable_zoom").default(false),
|
|
interactivity_enableFullscreen: boolean("interactivity_enable_fullscreen").default(true),
|
|
interactivity_enableSwipe: boolean("interactivity_enable_swipe").default(true),
|
|
interactivity_enableKeyboard: boolean("interactivity_enable_keyboard").default(true),
|
|
cta_showCta: boolean("cta_show_cta").default(false),
|
|
cta_ctaLink: varchar("cta_cta_link"),
|
|
cta_ctaStyle: enum_pages_blocks_before_after_cta_cta_style("cta_cta_style").default("primary"),
|
|
backgroundColor: enum_pages_blocks_before_after_background_color("background_color").default("transparent"),
|
|
borderRadius: enum_pages_blocks_before_after_border_radius("border_radius").default("medium"),
|
|
shadow: enum_pages_blocks_before_after_shadow("shadow").default("medium"),
|
|
spacing: enum_pages_blocks_before_after_spacing("spacing").default("medium"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_before_after_order_idx").on(columns._order),
|
|
index("pages_blocks_before_after_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_before_after_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_before_after_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_before_after_locales = pgTable(
|
|
"pages_blocks_before_after_locales",
|
|
{
|
|
title: varchar("title"),
|
|
subtitle: varchar("subtitle"),
|
|
description: varchar("description"),
|
|
cta_ctaText: varchar("cta_cta_text"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_before_after_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_before_after.id],
|
|
name: "pages_blocks_before_after_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_favorites_block = pgTable(
|
|
"pages_blocks_favorites_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
category: enum_pages_blocks_favorites_block_category("category").default("all"),
|
|
showFeaturedOnly: boolean("show_featured_only").default(false),
|
|
limit: numeric("limit", { mode: "number" }).default(8),
|
|
layout: enum_pages_blocks_favorites_block_layout("layout").default("grid"),
|
|
columns: enum_pages_blocks_favorites_block_columns("columns").default("4"),
|
|
showPrice: boolean("show_price").default(true),
|
|
showBadge: boolean("show_badge").default(true),
|
|
showDescription: boolean("show_description").default(false),
|
|
showCategory: boolean("show_category").default(false),
|
|
backgroundColor: enum_pages_blocks_favorites_block_background_color("background_color").default("white"),
|
|
cta_showCta: boolean("cta_show_cta").default(false),
|
|
cta_ctaUrl: varchar("cta_cta_url"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_favorites_block_order_idx").on(columns._order),
|
|
index("pages_blocks_favorites_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_favorites_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_favorites_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_favorites_block_locales = pgTable(
|
|
"pages_blocks_favorites_block_locales",
|
|
{
|
|
title: varchar("title"),
|
|
subtitle: varchar("subtitle"),
|
|
cta_ctaText: varchar("cta_cta_text").default("Alle Favoriten ansehen"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_favorites_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_favorites_block.id],
|
|
name: "pages_blocks_favorites_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_series_block = pgTable(
|
|
"pages_blocks_series_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
layout: enum_pages_blocks_series_block_layout("layout").default("grid"),
|
|
columns: enum_pages_blocks_series_block_columns("columns").default("3"),
|
|
showDescription: boolean("show_description").default(true),
|
|
showLogo: boolean("show_logo").default(true),
|
|
showTagline: boolean("show_tagline").default(true),
|
|
useBrandColors: boolean("use_brand_colors").default(true),
|
|
limit: numeric("limit", { mode: "number" }).default(6),
|
|
backgroundColor: enum_pages_blocks_series_block_background_color("background_color").default("white"),
|
|
cta_showCta: boolean("cta_show_cta").default(false),
|
|
cta_ctaUrl: varchar("cta_cta_url"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_series_block_order_idx").on(columns._order),
|
|
index("pages_blocks_series_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_series_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_series_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_series_block_locales = pgTable(
|
|
"pages_blocks_series_block_locales",
|
|
{
|
|
title: varchar("title"),
|
|
subtitle: varchar("subtitle"),
|
|
cta_ctaText: varchar("cta_cta_text").default("Alle Serien ansehen"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_series_block_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_series_block.id],
|
|
name: "pages_blocks_series_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_series_detail_block = pgTable(
|
|
"pages_blocks_series_detail_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
series: integer("series_id")
|
|
.notNull()
|
|
.references(() => series.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
showHero: boolean("show_hero").default(true),
|
|
showDescription: boolean("show_description").default(true),
|
|
showBrandColors: boolean("show_brand_colors").default(true),
|
|
showRelatedPosts: boolean("show_related_posts").default(true),
|
|
relatedPostsLimit: numeric("related_posts_limit", { mode: "number" }).default(6),
|
|
showYoutubePlaylist: boolean("show_youtube_playlist").default(true),
|
|
layout: enum_pages_blocks_series_detail_block_layout("layout").default("full"),
|
|
hero_height: enum_pages_blocks_series_detail_block_hero_height("hero_height").default("medium"),
|
|
hero_overlay: boolean("hero_overlay").default(true),
|
|
hero_textAlign: enum_pages_blocks_series_detail_block_hero_text_align("hero_text_align").default("center"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_series_detail_block_order_idx").on(columns._order),
|
|
index("pages_blocks_series_detail_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_series_detail_block_path_idx").on(columns._path),
|
|
index("pages_blocks_series_detail_block_series_idx").on(columns.series),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_series_detail_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_series_detail_block_locales = pgTable(
|
|
"pages_blocks_series_detail_block_locales",
|
|
{
|
|
relatedPostsTitle: varchar("related_posts_title").default("Beiträge aus dieser Serie"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_series_detail_block_locales_locale_parent_id_un").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_series_detail_block.id],
|
|
name: "pages_blocks_series_detail_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_video_embed_block = pgTable(
|
|
"pages_blocks_video_embed_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
videoSource: enum_pages_blocks_video_embed_block_video_source("video_source").notNull().default("youtube"),
|
|
youtubeUrl: varchar("youtube_url"),
|
|
vimeoUrl: varchar("vimeo_url"),
|
|
customUrl: varchar("custom_url"),
|
|
thumbnail: integer("thumbnail_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
privacyMode: boolean("privacy_mode").default(true),
|
|
lazyLoad: boolean("lazy_load").default(true),
|
|
aspectRatio: enum_pages_blocks_video_embed_block_aspect_ratio("aspect_ratio").default("16:9"),
|
|
maxWidth: enum_pages_blocks_video_embed_block_max_width("max_width").default("large"),
|
|
playbackOptions_autoplay: boolean("playback_options_autoplay").default(false),
|
|
playbackOptions_muted: boolean("playback_options_muted").default(false),
|
|
playbackOptions_loop: boolean("playback_options_loop").default(false),
|
|
playbackOptions_showControls: boolean("playback_options_show_controls").default(true),
|
|
playbackOptions_startTime: numeric("playback_options_start_time", { mode: "number" }),
|
|
style_alignment: enum_pages_blocks_video_embed_block_style_alignment("style_alignment").default("center"),
|
|
style_borderRadius: enum_pages_blocks_video_embed_block_style_border_radius("style_border_radius").default("md"),
|
|
style_shadow: boolean("style_shadow").default(true),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_video_embed_block_order_idx").on(columns._order),
|
|
index("pages_blocks_video_embed_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_video_embed_block_path_idx").on(columns._path),
|
|
index("pages_blocks_video_embed_block_thumbnail_idx").on(columns.thumbnail),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_video_embed_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_video_embed_block_locales = pgTable(
|
|
"pages_blocks_video_embed_block_locales",
|
|
{
|
|
title: varchar("title"),
|
|
caption: varchar("caption"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_video_embed_block_locales_locale_parent_id_uniq").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_video_embed_block.id],
|
|
name: "pages_blocks_video_embed_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_featured_content_block_items = pgTable(
|
|
"pages_blocks_featured_content_block_items",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
itemType: enum_pages_blocks_featured_content_block_items_item_type("item_type").notNull(),
|
|
post: integer("post_id").references(() => posts.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
video: integer("video_id").references(() => videos.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
series: integer("series_id").references(() => series.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
externalUrl: varchar("external_url"),
|
|
externalImage: integer("external_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
featured: boolean("featured").default(false),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_featured_content_block_items_order_idx").on(columns._order),
|
|
index("pages_blocks_featured_content_block_items_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_featured_content_block_items_post_idx").on(columns.post),
|
|
index("pages_blocks_featured_content_block_items_video_idx").on(columns.video),
|
|
index("pages_blocks_featured_content_block_items_series_idx").on(columns.series),
|
|
index("pages_blocks_featured_content_block_items_external_image_idx").on(columns.externalImage),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_featured_content_block.id],
|
|
name: "pages_blocks_featured_content_block_items_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_featured_content_block_items_locales = pgTable(
|
|
"pages_blocks_featured_content_block_items_locales",
|
|
{
|
|
externalTitle: varchar("external_title"),
|
|
externalDescription: varchar("external_description"),
|
|
customLabel: varchar("custom_label"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_featured_content_block_items_locales_locale_par").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_featured_content_block_items.id],
|
|
name: "pages_blocks_featured_content_block_items_locales_parent__fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_featured_content_block = pgTable(
|
|
"pages_blocks_featured_content_block",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
layout: enum_pages_blocks_featured_content_block_layout("layout").default("grid"),
|
|
columns: enum_pages_blocks_featured_content_block_columns("columns").default("3"),
|
|
showDates: boolean("show_dates").default(true),
|
|
showType: boolean("show_type").default(true),
|
|
showDescription: boolean("show_description").default(true),
|
|
showCustomLabels: boolean("show_custom_labels").default(true),
|
|
backgroundColor: enum_pages_blocks_featured_content_block_background_color("background_color").default("white"),
|
|
card_bg: enum_pages_blocks_featured_content_block_card_bg("card_bg").default("white"),
|
|
card_shadow: boolean("card_shadow").default(true),
|
|
card_border: boolean("card_border").default(false),
|
|
card_imgRatio: enum_pages_blocks_featured_content_block_card_img_ratio("card_img_ratio").default("16:9"),
|
|
card_hover: enum_pages_blocks_featured_content_block_card_hover("card_hover").default("lift"),
|
|
cta_showCta: boolean("cta_show_cta").default(false),
|
|
cta_ctaUrl: varchar("cta_cta_url"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("pages_blocks_featured_content_block_order_idx").on(columns._order),
|
|
index("pages_blocks_featured_content_block_parent_id_idx").on(columns._parentID),
|
|
index("pages_blocks_featured_content_block_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_blocks_featured_content_block_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_blocks_featured_content_block_locales = pgTable(
|
|
"pages_blocks_featured_content_block_locales",
|
|
{
|
|
title: varchar("title"),
|
|
subtitle: varchar("subtitle"),
|
|
cta_ctaText: varchar("cta_cta_text").default("Alle ansehen"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_blocks_featured_content_block_locales_locale_parent_id").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages_blocks_featured_content_block.id],
|
|
name: "pages_blocks_featured_content_block_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages = pgTable(
|
|
"pages",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
hero_image: integer("hero_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
seo_ogImage: integer("seo_og_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
status: enum_pages_status("status").default("draft"),
|
|
publishedAt: timestamp("published_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("pages_tenant_idx").on(columns.tenant),
|
|
index("pages_hero_hero_image_idx").on(columns.hero_image),
|
|
index("pages_seo_seo_og_image_idx").on(columns.seo_ogImage),
|
|
index("pages_updated_at_idx").on(columns.updatedAt),
|
|
index("pages_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const pages_locales = pgTable(
|
|
"pages_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
slug: varchar("slug").notNull(),
|
|
hero_headline: varchar("hero_headline"),
|
|
hero_subline: varchar("hero_subline"),
|
|
seo_metaTitle: varchar("seo_meta_title"),
|
|
seo_metaDescription: varchar("seo_meta_description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("pages_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const pages_rels = pgTable(
|
|
"pages_rels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order"),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
categoriesID: integer("categories_id"),
|
|
testimonialsID: integer("testimonials_id"),
|
|
faqsID: integer("faqs_id"),
|
|
teamID: integer("team_id"),
|
|
servicesID: integer("services_id"),
|
|
authorsID: integer("authors_id"),
|
|
postsID: integer("posts_id"),
|
|
locationsID: integer("locations_id"),
|
|
partnersID: integer("partners_id"),
|
|
jobsID: integer("jobs_id"),
|
|
downloadsID: integer("downloads_id"),
|
|
eventsID: integer("events_id"),
|
|
},
|
|
(columns) => [
|
|
index("pages_rels_order_idx").on(columns.order),
|
|
index("pages_rels_parent_idx").on(columns.parent),
|
|
index("pages_rels_path_idx").on(columns.path),
|
|
index("pages_rels_categories_id_idx").on(columns.categoriesID),
|
|
index("pages_rels_testimonials_id_idx").on(columns.testimonialsID),
|
|
index("pages_rels_faqs_id_idx").on(columns.faqsID),
|
|
index("pages_rels_team_id_idx").on(columns.teamID),
|
|
index("pages_rels_services_id_idx").on(columns.servicesID),
|
|
index("pages_rels_authors_id_idx").on(columns.authorsID),
|
|
index("pages_rels_posts_id_idx").on(columns.postsID),
|
|
index("pages_rels_locations_id_idx").on(columns.locationsID),
|
|
index("pages_rels_partners_id_idx").on(columns.partnersID),
|
|
index("pages_rels_jobs_id_idx").on(columns.jobsID),
|
|
index("pages_rels_downloads_id_idx").on(columns.downloadsID),
|
|
index("pages_rels_events_id_idx").on(columns.eventsID),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [pages.id],
|
|
name: "pages_rels_parent_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["categoriesID"]],
|
|
foreignColumns: [categories.id],
|
|
name: "pages_rels_categories_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["testimonialsID"]],
|
|
foreignColumns: [testimonials.id],
|
|
name: "pages_rels_testimonials_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["faqsID"]],
|
|
foreignColumns: [faqs.id],
|
|
name: "pages_rels_faqs_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["teamID"]],
|
|
foreignColumns: [team.id],
|
|
name: "pages_rels_team_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["servicesID"]],
|
|
foreignColumns: [services.id],
|
|
name: "pages_rels_services_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["authorsID"]],
|
|
foreignColumns: [authors.id],
|
|
name: "pages_rels_authors_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["postsID"]],
|
|
foreignColumns: [posts.id],
|
|
name: "pages_rels_posts_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["locationsID"]],
|
|
foreignColumns: [locations.id],
|
|
name: "pages_rels_locations_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["partnersID"]],
|
|
foreignColumns: [partners.id],
|
|
name: "pages_rels_partners_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["jobsID"]],
|
|
foreignColumns: [jobs.id],
|
|
name: "pages_rels_jobs_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["downloadsID"]],
|
|
foreignColumns: [downloads.id],
|
|
name: "pages_rels_downloads_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["eventsID"]],
|
|
foreignColumns: [events.id],
|
|
name: "pages_rels_events_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const posts = pgTable(
|
|
"posts",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
type: enum_posts_type("type").notNull().default("blog"),
|
|
isFeatured: boolean("is_featured").default(false),
|
|
featuredImage: integer("featured_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
featuredVideo_enabled: boolean("featured_video_enabled").default(false),
|
|
featuredVideo_replaceImage: boolean("featured_video_replace_image").default(false),
|
|
featuredVideo_source: enum_posts_featured_video_source("featured_video_source").default("library"),
|
|
featuredVideo_video: integer("featured_video_video_id").references(() => videos.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
featuredVideo_embedUrl: varchar("featured_video_embed_url"),
|
|
featuredVideo_uploadedVideo: integer("featured_video_uploaded_video_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
featuredVideo_autoplay: boolean("featured_video_autoplay").default(false),
|
|
featuredVideo_muted: boolean("featured_video_muted").default(true),
|
|
featuredVideo_processedEmbedUrl: varchar("featured_video_processed_embed_url"),
|
|
featuredVideo_extractedVideoId: varchar("featured_video_extracted_video_id"),
|
|
featuredVideo_platform: varchar("featured_video_platform"),
|
|
featuredVideo_thumbnailUrl: varchar("featured_video_thumbnail_url"),
|
|
author: integer("author_id").references(() => authors.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
authorLegacy: varchar("author_legacy"),
|
|
readingTime: numeric("reading_time", { mode: "number" }),
|
|
status: enum_posts_status("status").default("draft"),
|
|
publishedAt: timestamp("published_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
seo_ogImage: integer("seo_og_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("posts_tenant_idx").on(columns.tenant),
|
|
index("posts_featured_image_idx").on(columns.featuredImage),
|
|
index("posts_featured_video_featured_video_video_idx").on(columns.featuredVideo_video),
|
|
index("posts_featured_video_featured_video_uploaded_video_idx").on(columns.featuredVideo_uploadedVideo),
|
|
index("posts_author_idx").on(columns.author),
|
|
index("posts_seo_seo_og_image_idx").on(columns.seo_ogImage),
|
|
index("posts_updated_at_idx").on(columns.updatedAt),
|
|
index("posts_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const posts_locales = pgTable(
|
|
"posts_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
slug: varchar("slug").notNull(),
|
|
excerpt: varchar("excerpt"),
|
|
content: jsonb("content").notNull(),
|
|
seo_metaTitle: varchar("seo_meta_title"),
|
|
seo_metaDescription: varchar("seo_meta_description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("posts_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [posts.id],
|
|
name: "posts_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const posts_rels = pgTable(
|
|
"posts_rels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order"),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
categoriesID: integer("categories_id"),
|
|
tagsID: integer("tags_id"),
|
|
authorsID: integer("authors_id"),
|
|
},
|
|
(columns) => [
|
|
index("posts_rels_order_idx").on(columns.order),
|
|
index("posts_rels_parent_idx").on(columns.parent),
|
|
index("posts_rels_path_idx").on(columns.path),
|
|
index("posts_rels_categories_id_idx").on(columns.categoriesID),
|
|
index("posts_rels_tags_id_idx").on(columns.tagsID),
|
|
index("posts_rels_authors_id_idx").on(columns.authorsID),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [posts.id],
|
|
name: "posts_rels_parent_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["categoriesID"]],
|
|
foreignColumns: [categories.id],
|
|
name: "posts_rels_categories_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["tagsID"]],
|
|
foreignColumns: [tags.id],
|
|
name: "posts_rels_tags_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["authorsID"]],
|
|
foreignColumns: [authors.id],
|
|
name: "posts_rels_authors_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const categories = pgTable(
|
|
"categories",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("categories_tenant_idx").on(columns.tenant),
|
|
index("categories_updated_at_idx").on(columns.updatedAt),
|
|
index("categories_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const categories_locales = pgTable(
|
|
"categories_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
slug: varchar("slug").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("categories_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [categories.id],
|
|
name: "categories_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const social_links = pgTable(
|
|
"social_links",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
platform: enum_social_links_platform("platform").notNull(),
|
|
url: varchar("url").notNull(),
|
|
isActive: boolean("is_active").default(true),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("social_links_tenant_idx").on(columns.tenant),
|
|
index("social_links_updated_at_idx").on(columns.updatedAt),
|
|
index("social_links_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const testimonials = pgTable(
|
|
"testimonials",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
author: varchar("author").notNull(),
|
|
company: varchar("company"),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
rating: numeric("rating", { mode: "number" }),
|
|
source: varchar("source"),
|
|
sourceUrl: varchar("source_url"),
|
|
date: timestamp("date", { mode: "string", withTimezone: true, precision: 3 }),
|
|
isActive: boolean("is_active").default(true),
|
|
order: numeric("order", { mode: "number" }).default(0),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("testimonials_tenant_idx").on(columns.tenant),
|
|
index("testimonials_image_idx").on(columns.image),
|
|
index("testimonials_updated_at_idx").on(columns.updatedAt),
|
|
index("testimonials_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const testimonials_locales = pgTable(
|
|
"testimonials_locales",
|
|
{
|
|
quote: varchar("quote").notNull(),
|
|
role: varchar("role"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("testimonials_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [testimonials.id],
|
|
name: "testimonials_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const faqs = pgTable(
|
|
"faqs",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
icon: varchar("icon"),
|
|
isActive: boolean("is_active").default(true),
|
|
isFeatured: boolean("is_featured").default(false),
|
|
order: numeric("order", { mode: "number" }).default(0),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("faqs_tenant_idx").on(columns.tenant),
|
|
index("faqs_updated_at_idx").on(columns.updatedAt),
|
|
index("faqs_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const faqs_locales = pgTable(
|
|
"faqs_locales",
|
|
{
|
|
question: varchar("question").notNull(),
|
|
answer: jsonb("answer").notNull(),
|
|
answerPlainText: varchar("answer_plain_text"),
|
|
category: varchar("category"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("faqs_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [faqs.id],
|
|
name: "faqs_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const faqs_rels = pgTable(
|
|
"faqs_rels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order"),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
faqsID: integer("faqs_id"),
|
|
},
|
|
(columns) => [
|
|
index("faqs_rels_order_idx").on(columns.order),
|
|
index("faqs_rels_parent_idx").on(columns.parent),
|
|
index("faqs_rels_path_idx").on(columns.path),
|
|
index("faqs_rels_faqs_id_idx").on(columns.faqsID),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [faqs.id],
|
|
name: "faqs_rels_parent_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["faqsID"]],
|
|
foreignColumns: [faqs.id],
|
|
name: "faqs_rels_faqs_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const team_social_links = pgTable(
|
|
"team_social_links",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
platform: enum_team_social_links_platform("platform").notNull(),
|
|
url: varchar("url").notNull(),
|
|
},
|
|
(columns) => [
|
|
index("team_social_links_order_idx").on(columns._order),
|
|
index("team_social_links_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [team.id],
|
|
name: "team_social_links_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const team_qualifications = pgTable(
|
|
"team_qualifications",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
year: numeric("year", { mode: "number" }),
|
|
institution: varchar("institution"),
|
|
},
|
|
(columns) => [
|
|
index("team_qualifications_order_idx").on(columns._order),
|
|
index("team_qualifications_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [team.id],
|
|
name: "team_qualifications_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const team_qualifications_locales = pgTable(
|
|
"team_qualifications_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("team_qualifications_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [team_qualifications.id],
|
|
name: "team_qualifications_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const team_specializations = pgTable(
|
|
"team_specializations",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("team_specializations_order_idx").on(columns._order),
|
|
index("team_specializations_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [team.id],
|
|
name: "team_specializations_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const team_specializations_locales = pgTable(
|
|
"team_specializations_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("team_specializations_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [team_specializations.id],
|
|
name: "team_specializations_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const team_languages = pgTable(
|
|
"team_languages",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
level: enum_team_languages_level("level"),
|
|
},
|
|
(columns) => [
|
|
index("team_languages_order_idx").on(columns._order),
|
|
index("team_languages_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [team.id],
|
|
name: "team_languages_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const team_languages_locales = pgTable(
|
|
"team_languages_locales",
|
|
{
|
|
language: varchar("language").notNull(),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("team_languages_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [team_languages.id],
|
|
name: "team_languages_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const team = pgTable(
|
|
"team",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
name: varchar("name").notNull(),
|
|
slug: varchar("slug").notNull(),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
email: varchar("email"),
|
|
phone: varchar("phone"),
|
|
showContactInfo: boolean("show_contact_info").default(false),
|
|
linkedUser: integer("linked_user_id").references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
isActive: boolean("is_active").default(true),
|
|
isFeatured: boolean("is_featured").default(false),
|
|
order: numeric("order", { mode: "number" }).default(0),
|
|
startDate: timestamp("start_date", { mode: "string", withTimezone: true, precision: 3 }),
|
|
reportsTo: integer("reports_to_id").references((): AnyPgColumn => team.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
hierarchyLevel: enum_team_hierarchy_level("hierarchy_level"),
|
|
allowVCard: boolean("allow_v_card").default(true),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("team_tenant_idx").on(columns.tenant),
|
|
uniqueIndex("team_slug_idx").on(columns.slug),
|
|
index("team_image_idx").on(columns.image),
|
|
index("team_linked_user_idx").on(columns.linkedUser),
|
|
index("team_reports_to_idx").on(columns.reportsTo),
|
|
index("team_updated_at_idx").on(columns.updatedAt),
|
|
index("team_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const team_locales = pgTable(
|
|
"team_locales",
|
|
{
|
|
role: varchar("role").notNull(),
|
|
department: varchar("department"),
|
|
bio: jsonb("bio"),
|
|
bioShort: varchar("bio_short"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("team_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [team.id],
|
|
name: "team_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const service_categories = pgTable(
|
|
"service_categories",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
slug: varchar("slug").notNull(),
|
|
icon: varchar("icon"),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
color: varchar("color"),
|
|
isActive: boolean("is_active").default(true),
|
|
order: numeric("order", { mode: "number" }).default(0),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("service_categories_tenant_idx").on(columns.tenant),
|
|
index("service_categories_image_idx").on(columns.image),
|
|
index("service_categories_updated_at_idx").on(columns.updatedAt),
|
|
index("service_categories_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const service_categories_locales = pgTable(
|
|
"service_categories_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("service_categories_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [service_categories.id],
|
|
name: "service_categories_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const services_gallery = pgTable(
|
|
"services_gallery",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
image: integer("image_id")
|
|
.notNull()
|
|
.references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
},
|
|
(columns) => [
|
|
index("services_gallery_order_idx").on(columns._order),
|
|
index("services_gallery_parent_id_idx").on(columns._parentID),
|
|
index("services_gallery_image_idx").on(columns.image),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [services.id],
|
|
name: "services_gallery_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const services_gallery_locales = pgTable(
|
|
"services_gallery_locales",
|
|
{
|
|
caption: varchar("caption"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("services_gallery_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [services_gallery.id],
|
|
name: "services_gallery_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const services_features = pgTable(
|
|
"services_features",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
icon: varchar("icon"),
|
|
},
|
|
(columns) => [
|
|
index("services_features_order_idx").on(columns._order),
|
|
index("services_features_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [services.id],
|
|
name: "services_features_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const services_features_locales = pgTable(
|
|
"services_features_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("services_features_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [services_features.id],
|
|
name: "services_features_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const services_detail_sections = pgTable(
|
|
"services_detail_sections",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
icon: varchar("icon"),
|
|
},
|
|
(columns) => [
|
|
index("services_detail_sections_order_idx").on(columns._order),
|
|
index("services_detail_sections_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [services.id],
|
|
name: "services_detail_sections_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const services_detail_sections_locales = pgTable(
|
|
"services_detail_sections_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
content: jsonb("content").notNull(),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("services_detail_sections_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [services_detail_sections.id],
|
|
name: "services_detail_sections_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const services = pgTable(
|
|
"services",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
slug: varchar("slug").notNull(),
|
|
icon: varchar("icon"),
|
|
iconImage: integer("icon_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
category: integer("category_id").references(() => service_categories.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
pricingType: enum_services_pricing_type("pricing_type").default("on-request"),
|
|
price: numeric("price", { mode: "number" }),
|
|
priceMax: numeric("price_max", { mode: "number" }),
|
|
ctaLink: varchar("cta_link").default("/kontakt"),
|
|
ctaStyle: enum_services_cta_style("cta_style").default("primary"),
|
|
secondaryCta_enabled: boolean("secondary_cta_enabled").default(false),
|
|
secondaryCta_link: varchar("secondary_cta_link"),
|
|
testimonialAuthor: varchar("testimonial_author"),
|
|
ogImage: integer("og_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
isActive: boolean("is_active").default(true),
|
|
isFeatured: boolean("is_featured").default(false),
|
|
isNew: boolean("is_new").default(false),
|
|
order: numeric("order", { mode: "number" }).default(0),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("services_tenant_idx").on(columns.tenant),
|
|
index("services_icon_image_idx").on(columns.iconImage),
|
|
index("services_image_idx").on(columns.image),
|
|
index("services_category_idx").on(columns.category),
|
|
index("services_og_image_idx").on(columns.ogImage),
|
|
index("services_updated_at_idx").on(columns.updatedAt),
|
|
index("services_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const services_locales = pgTable(
|
|
"services_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
subtitle: varchar("subtitle"),
|
|
shortDescription: varchar("short_description").notNull(),
|
|
description: jsonb("description"),
|
|
priceUnit: varchar("price_unit"),
|
|
priceNote: varchar("price_note"),
|
|
pricingDetails: jsonb("pricing_details"),
|
|
ctaText: varchar("cta_text").default("Jetzt anfragen"),
|
|
secondaryCta_text: varchar("secondary_cta_text"),
|
|
testimonialQuote: varchar("testimonial_quote"),
|
|
metaTitle: varchar("meta_title"),
|
|
metaDescription: varchar("meta_description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("services_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [services.id],
|
|
name: "services_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const services_rels = pgTable(
|
|
"services_rels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order"),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
servicesID: integer("services_id"),
|
|
teamID: integer("team_id"),
|
|
faqsID: integer("faqs_id"),
|
|
},
|
|
(columns) => [
|
|
index("services_rels_order_idx").on(columns.order),
|
|
index("services_rels_parent_idx").on(columns.parent),
|
|
index("services_rels_path_idx").on(columns.path),
|
|
index("services_rels_services_id_idx").on(columns.servicesID),
|
|
index("services_rels_team_id_idx").on(columns.teamID),
|
|
index("services_rels_faqs_id_idx").on(columns.faqsID),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [services.id],
|
|
name: "services_rels_parent_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["servicesID"]],
|
|
foreignColumns: [services.id],
|
|
name: "services_rels_services_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["teamID"]],
|
|
foreignColumns: [team.id],
|
|
name: "services_rels_team_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["faqsID"]],
|
|
foreignColumns: [faqs.id],
|
|
name: "services_rels_faqs_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const newsletter_subscribers_interests = pgTable(
|
|
"newsletter_subscribers_interests",
|
|
{
|
|
order: integer("order").notNull(),
|
|
parent: integer("parent_id").notNull(),
|
|
value: enum_newsletter_subscribers_interests("value"),
|
|
id: serial("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("newsletter_subscribers_interests_order_idx").on(columns.order),
|
|
index("newsletter_subscribers_interests_parent_idx").on(columns.parent),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [newsletter_subscribers.id],
|
|
name: "newsletter_subscribers_interests_parent_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const newsletter_subscribers = pgTable(
|
|
"newsletter_subscribers",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
email: varchar("email").notNull(),
|
|
firstName: varchar("first_name"),
|
|
lastName: varchar("last_name"),
|
|
status: enum_newsletter_subscribers_status("status").notNull().default("pending"),
|
|
source: varchar("source"),
|
|
subscribedAt: timestamp("subscribed_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
confirmedAt: timestamp("confirmed_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
unsubscribedAt: timestamp("unsubscribed_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
confirmationToken: varchar("confirmation_token"),
|
|
ipAddress: varchar("ip_address"),
|
|
userAgent: varchar("user_agent"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("newsletter_subscribers_tenant_idx").on(columns.tenant),
|
|
index("newsletter_subscribers_updated_at_idx").on(columns.updatedAt),
|
|
index("newsletter_subscribers_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const portfolio_categories = pgTable(
|
|
"portfolio_categories",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
slug: varchar("slug").notNull(),
|
|
coverImage: integer("cover_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
order: numeric("order", { mode: "number" }).default(0),
|
|
isActive: boolean("is_active").default(true),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("portfolio_categories_tenant_idx").on(columns.tenant),
|
|
index("portfolio_categories_cover_image_idx").on(columns.coverImage),
|
|
index("portfolio_categories_updated_at_idx").on(columns.updatedAt),
|
|
index("portfolio_categories_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const portfolio_categories_locales = pgTable(
|
|
"portfolio_categories_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("portfolio_categories_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [portfolio_categories.id],
|
|
name: "portfolio_categories_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const portfolios_images = pgTable(
|
|
"portfolios_images",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
image: integer("image_id")
|
|
.notNull()
|
|
.references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
isHighlight: boolean("is_highlight").default(false),
|
|
},
|
|
(columns) => [
|
|
index("portfolios_images_order_idx").on(columns._order),
|
|
index("portfolios_images_parent_id_idx").on(columns._parentID),
|
|
index("portfolios_images_image_idx").on(columns.image),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [portfolios.id],
|
|
name: "portfolios_images_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const portfolios_images_locales = pgTable(
|
|
"portfolios_images_locales",
|
|
{
|
|
caption: varchar("caption"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("portfolios_images_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [portfolios_images.id],
|
|
name: "portfolios_images_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const portfolios = pgTable(
|
|
"portfolios",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
slug: varchar("slug").notNull(),
|
|
category: integer("category_id")
|
|
.notNull()
|
|
.references(() => portfolio_categories.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
coverImage: integer("cover_image_id")
|
|
.notNull()
|
|
.references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
projectDetails_client: varchar("project_details_client"),
|
|
projectDetails_shootingDate: timestamp("project_details_shooting_date", {
|
|
mode: "string",
|
|
withTimezone: true,
|
|
precision: 3,
|
|
}),
|
|
status: enum_portfolios_status("status").notNull().default("draft"),
|
|
isFeatured: boolean("is_featured").default(false),
|
|
publishedAt: timestamp("published_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
order: numeric("order", { mode: "number" }).default(0),
|
|
seo_ogImage: integer("seo_og_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("portfolios_tenant_idx").on(columns.tenant),
|
|
index("portfolios_category_idx").on(columns.category),
|
|
index("portfolios_cover_image_idx").on(columns.coverImage),
|
|
index("portfolios_seo_seo_og_image_idx").on(columns.seo_ogImage),
|
|
index("portfolios_updated_at_idx").on(columns.updatedAt),
|
|
index("portfolios_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const portfolios_locales = pgTable(
|
|
"portfolios_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
description: jsonb("description"),
|
|
excerpt: varchar("excerpt"),
|
|
projectDetails_location: varchar("project_details_location"),
|
|
seo_metaTitle: varchar("seo_meta_title"),
|
|
seo_metaDescription: varchar("seo_meta_description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("portfolios_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [portfolios.id],
|
|
name: "portfolios_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const portfolios_texts = pgTable(
|
|
"portfolios_texts",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order").notNull(),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
text: varchar("text"),
|
|
},
|
|
(columns) => [
|
|
index("portfolios_texts_order_parent").on(columns.order, columns.parent),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [portfolios.id],
|
|
name: "portfolios_texts_parent_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const video_categories = pgTable(
|
|
"video_categories",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
slug: varchar("slug").notNull(),
|
|
icon: varchar("icon"),
|
|
coverImage: integer("cover_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
order: numeric("order", { mode: "number" }).default(0),
|
|
isActive: boolean("is_active").default(true),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("video_categories_tenant_idx").on(columns.tenant),
|
|
index("video_categories_cover_image_idx").on(columns.coverImage),
|
|
index("video_categories_updated_at_idx").on(columns.updatedAt),
|
|
index("video_categories_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const video_categories_locales = pgTable(
|
|
"video_categories_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("video_categories_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [video_categories.id],
|
|
name: "video_categories_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const videos = pgTable(
|
|
"videos",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
slug: varchar("slug").notNull(),
|
|
source: enum_videos_source("source").notNull().default("youtube"),
|
|
videoFile: integer("video_file_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
embedUrl: varchar("embed_url"),
|
|
videoId: varchar("video_id"),
|
|
thumbnail: integer("thumbnail_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
duration: varchar("duration"),
|
|
durationSeconds: numeric("duration_seconds", { mode: "number" }),
|
|
category: integer("category_id").references(() => video_categories.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
videoType: enum_videos_video_type("video_type").default("other"),
|
|
playback_autoplay: boolean("playback_autoplay").default(false),
|
|
playback_muted: boolean("playback_muted").default(false),
|
|
playback_loop: boolean("playback_loop").default(false),
|
|
playback_controls: boolean("playback_controls").default(true),
|
|
playback_startTime: numeric("playback_start_time", { mode: "number" }),
|
|
aspectRatio: enum_videos_aspect_ratio("aspect_ratio").default("16:9"),
|
|
status: enum_videos_status("status").default("draft"),
|
|
isFeatured: boolean("is_featured").default(false),
|
|
publishedAt: timestamp("published_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
seo_metaDescription: varchar("seo_meta_description"),
|
|
seo_ogImage: integer("seo_og_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("videos_tenant_idx").on(columns.tenant),
|
|
index("videos_video_file_idx").on(columns.videoFile),
|
|
index("videos_thumbnail_idx").on(columns.thumbnail),
|
|
index("videos_category_idx").on(columns.category),
|
|
index("videos_seo_seo_og_image_idx").on(columns.seo_ogImage),
|
|
index("videos_updated_at_idx").on(columns.updatedAt),
|
|
index("videos_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const videos_locales = pgTable(
|
|
"videos_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
description: jsonb("description"),
|
|
excerpt: varchar("excerpt"),
|
|
transcript: jsonb("transcript"),
|
|
seo_metaTitle: varchar("seo_meta_title"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("videos_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [videos.id],
|
|
name: "videos_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const videos_rels = pgTable(
|
|
"videos_rels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order"),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
tagsID: integer("tags_id"),
|
|
videosID: integer("videos_id"),
|
|
postsID: integer("posts_id"),
|
|
},
|
|
(columns) => [
|
|
index("videos_rels_order_idx").on(columns.order),
|
|
index("videos_rels_parent_idx").on(columns.parent),
|
|
index("videos_rels_path_idx").on(columns.path),
|
|
index("videos_rels_tags_id_idx").on(columns.tagsID),
|
|
index("videos_rels_videos_id_idx").on(columns.videosID),
|
|
index("videos_rels_posts_id_idx").on(columns.postsID),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [videos.id],
|
|
name: "videos_rels_parent_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["tagsID"]],
|
|
foreignColumns: [tags.id],
|
|
name: "videos_rels_tags_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["videosID"]],
|
|
foreignColumns: [videos.id],
|
|
name: "videos_rels_videos_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["postsID"]],
|
|
foreignColumns: [posts.id],
|
|
name: "videos_rels_posts_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const product_categories = pgTable(
|
|
"product_categories",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
slug: varchar("slug").notNull(),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
icon: varchar("icon"),
|
|
parent: integer("parent_id").references((): AnyPgColumn => product_categories.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
order: numeric("order", { mode: "number" }).default(0),
|
|
isActive: boolean("is_active").default(true),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("product_categories_tenant_idx").on(columns.tenant),
|
|
index("product_categories_image_idx").on(columns.image),
|
|
index("product_categories_parent_idx").on(columns.parent),
|
|
index("product_categories_updated_at_idx").on(columns.updatedAt),
|
|
index("product_categories_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const product_categories_locales = pgTable(
|
|
"product_categories_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
description: varchar("description"),
|
|
seo_metaTitle: varchar("seo_meta_title"),
|
|
seo_metaDescription: varchar("seo_meta_description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("product_categories_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [product_categories.id],
|
|
name: "product_categories_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const products_tags = pgTable(
|
|
"products_tags",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
tag: varchar("tag").notNull(),
|
|
},
|
|
(columns) => [
|
|
index("products_tags_order_idx").on(columns._order),
|
|
index("products_tags_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [products.id],
|
|
name: "products_tags_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const products_gallery = pgTable(
|
|
"products_gallery",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
image: integer("image_id")
|
|
.notNull()
|
|
.references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
},
|
|
(columns) => [
|
|
index("products_gallery_order_idx").on(columns._order),
|
|
index("products_gallery_parent_id_idx").on(columns._parentID),
|
|
index("products_gallery_image_idx").on(columns.image),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [products.id],
|
|
name: "products_gallery_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const products_gallery_locales = pgTable(
|
|
"products_gallery_locales",
|
|
{
|
|
caption: varchar("caption"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("products_gallery_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [products_gallery.id],
|
|
name: "products_gallery_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const products_details_specifications = pgTable(
|
|
"products_details_specifications",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("products_details_specifications_order_idx").on(columns._order),
|
|
index("products_details_specifications_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [products.id],
|
|
name: "products_details_specifications_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const products_details_specifications_locales = pgTable(
|
|
"products_details_specifications_locales",
|
|
{
|
|
key: varchar("key").notNull(),
|
|
value: varchar("value").notNull(),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("products_details_specifications_locales_locale_parent_id_uni").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [products_details_specifications.id],
|
|
name: "products_details_specifications_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const products_details_features = pgTable(
|
|
"products_details_features",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
icon: varchar("icon"),
|
|
},
|
|
(columns) => [
|
|
index("products_details_features_order_idx").on(columns._order),
|
|
index("products_details_features_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [products.id],
|
|
name: "products_details_features_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const products_details_features_locales = pgTable(
|
|
"products_details_features_locales",
|
|
{
|
|
feature: varchar("feature").notNull(),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("products_details_features_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [products_details_features.id],
|
|
name: "products_details_features_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const products_download_files = pgTable(
|
|
"products_download_files",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
file: integer("file_id")
|
|
.notNull()
|
|
.references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
},
|
|
(columns) => [
|
|
index("products_download_files_order_idx").on(columns._order),
|
|
index("products_download_files_parent_id_idx").on(columns._parentID),
|
|
index("products_download_files_file_idx").on(columns.file),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [products.id],
|
|
name: "products_download_files_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const products_download_files_locales = pgTable(
|
|
"products_download_files_locales",
|
|
{
|
|
title: varchar("title"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("products_download_files_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [products_download_files.id],
|
|
name: "products_download_files_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const products = pgTable(
|
|
"products",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
slug: varchar("slug").notNull(),
|
|
sku: varchar("sku"),
|
|
category: integer("category_id").references(() => product_categories.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
featuredImage: integer("featured_image_id")
|
|
.notNull()
|
|
.references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
pricing_price: numeric("pricing_price", { mode: "number" }),
|
|
pricing_salePrice: numeric("pricing_sale_price", { mode: "number" }),
|
|
pricing_currency: enum_products_pricing_currency("pricing_currency").default("EUR"),
|
|
pricing_priceType: enum_products_pricing_price_type("pricing_price_type").default("fixed"),
|
|
inventory_stockStatus: enum_products_inventory_stock_status("inventory_stock_status").default("in_stock"),
|
|
inventory_stockQuantity: numeric("inventory_stock_quantity", { mode: "number" }),
|
|
cta_type: enum_products_cta_type("cta_type").default("contact"),
|
|
cta_externalUrl: varchar("cta_external_url"),
|
|
seo_ogImage: integer("seo_og_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
status: enum_products_status("status").default("draft"),
|
|
isFeatured: boolean("is_featured").default(false),
|
|
isNew: boolean("is_new").default(false),
|
|
order: numeric("order", { mode: "number" }).default(0),
|
|
publishedAt: timestamp("published_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("products_tenant_idx").on(columns.tenant),
|
|
index("products_category_idx").on(columns.category),
|
|
index("products_featured_image_idx").on(columns.featuredImage),
|
|
index("products_seo_seo_og_image_idx").on(columns.seo_ogImage),
|
|
index("products_updated_at_idx").on(columns.updatedAt),
|
|
index("products_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const products_locales = pgTable(
|
|
"products_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
shortDescription: varchar("short_description"),
|
|
description: jsonb("description"),
|
|
pricing_priceNote: varchar("pricing_price_note"),
|
|
inventory_deliveryTime: varchar("inventory_delivery_time"),
|
|
cta_buttonText: varchar("cta_button_text"),
|
|
seo_metaTitle: varchar("seo_meta_title"),
|
|
seo_metaDescription: varchar("seo_meta_description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("products_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [products.id],
|
|
name: "products_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const products_rels = pgTable(
|
|
"products_rels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order"),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
productsID: integer("products_id"),
|
|
},
|
|
(columns) => [
|
|
index("products_rels_order_idx").on(columns.order),
|
|
index("products_rels_parent_idx").on(columns.parent),
|
|
index("products_rels_path_idx").on(columns.path),
|
|
index("products_rels_products_id_idx").on(columns.productsID),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [products.id],
|
|
name: "products_rels_parent_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["productsID"]],
|
|
foreignColumns: [products.id],
|
|
name: "products_rels_products_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const timelines_events_gallery = pgTable(
|
|
"timelines_events_gallery",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
image: integer("image_id")
|
|
.notNull()
|
|
.references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
},
|
|
(columns) => [
|
|
index("timelines_events_gallery_order_idx").on(columns._order),
|
|
index("timelines_events_gallery_parent_id_idx").on(columns._parentID),
|
|
index("timelines_events_gallery_image_idx").on(columns.image),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [timelines_events.id],
|
|
name: "timelines_events_gallery_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const timelines_events_gallery_locales = pgTable(
|
|
"timelines_events_gallery_locales",
|
|
{
|
|
caption: varchar("caption"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("timelines_events_gallery_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [timelines_events_gallery.id],
|
|
name: "timelines_events_gallery_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const timelines_events_deliverables = pgTable(
|
|
"timelines_events_deliverables",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
type: enum_timelines_events_deliverables_type("type").default("output"),
|
|
},
|
|
(columns) => [
|
|
index("timelines_events_deliverables_order_idx").on(columns._order),
|
|
index("timelines_events_deliverables_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [timelines_events.id],
|
|
name: "timelines_events_deliverables_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const timelines_events_deliverables_locales = pgTable(
|
|
"timelines_events_deliverables_locales",
|
|
{
|
|
name: varchar("name"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("timelines_events_deliverables_locales_locale_parent_id_uniqu").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [timelines_events_deliverables.id],
|
|
name: "timelines_events_deliverables_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const timelines_events_links = pgTable(
|
|
"timelines_events_links",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
url: varchar("url").notNull(),
|
|
type: enum_timelines_events_links_type("type").default("internal"),
|
|
},
|
|
(columns) => [
|
|
index("timelines_events_links_order_idx").on(columns._order),
|
|
index("timelines_events_links_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [timelines_events.id],
|
|
name: "timelines_events_links_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const timelines_events_links_locales = pgTable(
|
|
"timelines_events_links_locales",
|
|
{
|
|
label: varchar("label").notNull(),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("timelines_events_links_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [timelines_events_links.id],
|
|
name: "timelines_events_links_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const timelines_events = pgTable(
|
|
"timelines_events",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
dateType: enum_timelines_events_date_type("date_type").default("year"),
|
|
year: numeric("year", { mode: "number" }),
|
|
month: enum_timelines_events_month("month"),
|
|
day: numeric("day", { mode: "number" }),
|
|
endYear: numeric("end_year", { mode: "number" }),
|
|
endMonth: enum_timelines_events_end_month("end_month"),
|
|
ongoing: boolean("ongoing"),
|
|
customDate: varchar("custom_date"),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
category: enum_timelines_events_category("category"),
|
|
importance: enum_timelines_events_importance("importance").default("normal"),
|
|
stepNumber: numeric("step_number", { mode: "number" }),
|
|
actionRequired: enum_timelines_events_action_required("action_required"),
|
|
icon: varchar("icon"),
|
|
color: varchar("color"),
|
|
metadata: jsonb("metadata"),
|
|
},
|
|
(columns) => [
|
|
index("timelines_events_order_idx").on(columns._order),
|
|
index("timelines_events_parent_id_idx").on(columns._parentID),
|
|
index("timelines_events_image_idx").on(columns.image),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [timelines.id],
|
|
name: "timelines_events_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const timelines_events_locales = pgTable(
|
|
"timelines_events_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
subtitle: varchar("subtitle"),
|
|
description: jsonb("description"),
|
|
shortDescription: varchar("short_description"),
|
|
duration: varchar("duration"),
|
|
responsible: varchar("responsible"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("timelines_events_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [timelines_events.id],
|
|
name: "timelines_events_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const timelines = pgTable(
|
|
"timelines",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
slug: varchar("slug").notNull(),
|
|
type: enum_timelines_type("type").notNull().default("history"),
|
|
status: enum_timelines_status("status").notNull().default("draft"),
|
|
displayOptions_layout: enum_timelines_display_options_layout("display_options_layout").default("vertical"),
|
|
displayOptions_sortOrder: enum_timelines_display_options_sort_order("display_options_sort_order").default("desc"),
|
|
displayOptions_showConnector: boolean("display_options_show_connector").default(true),
|
|
displayOptions_showImages: boolean("display_options_show_images").default(true),
|
|
displayOptions_groupByYear: boolean("display_options_group_by_year").default(false),
|
|
displayOptions_markerStyle:
|
|
enum_timelines_display_options_marker_style("display_options_marker_style").default("dot"),
|
|
displayOptions_colorScheme:
|
|
enum_timelines_display_options_color_scheme("display_options_color_scheme").default("primary"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("timelines_tenant_idx").on(columns.tenant),
|
|
uniqueIndex("timelines_slug_idx").on(columns.slug),
|
|
index("timelines_updated_at_idx").on(columns.updatedAt),
|
|
index("timelines_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const timelines_locales = pgTable(
|
|
"timelines_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
description: varchar("description"),
|
|
seo_metaTitle: varchar("seo_meta_title"),
|
|
seo_metaDescription: varchar("seo_meta_description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("timelines_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [timelines.id],
|
|
name: "timelines_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const workflows_phases_steps_conditions = pgTable(
|
|
"workflows_phases_steps_conditions",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
nextStep: varchar("next_step"),
|
|
color: varchar("color"),
|
|
},
|
|
(columns) => [
|
|
index("workflows_phases_steps_conditions_order_idx").on(columns._order),
|
|
index("workflows_phases_steps_conditions_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [workflows_phases_steps.id],
|
|
name: "workflows_phases_steps_conditions_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const workflows_phases_steps_conditions_locales = pgTable(
|
|
"workflows_phases_steps_conditions_locales",
|
|
{
|
|
condition: varchar("condition"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("workflows_phases_steps_conditions_locales_locale_parent_id_u").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [workflows_phases_steps_conditions.id],
|
|
name: "workflows_phases_steps_conditions_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const workflows_phases_steps_checklist = pgTable(
|
|
"workflows_phases_steps_checklist",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
isRequired: boolean("is_required").default(true),
|
|
},
|
|
(columns) => [
|
|
index("workflows_phases_steps_checklist_order_idx").on(columns._order),
|
|
index("workflows_phases_steps_checklist_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [workflows_phases_steps.id],
|
|
name: "workflows_phases_steps_checklist_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const workflows_phases_steps_checklist_locales = pgTable(
|
|
"workflows_phases_steps_checklist_locales",
|
|
{
|
|
item: varchar("item").notNull(),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("workflows_phases_steps_checklist_locales_locale_parent_id_un").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [workflows_phases_steps_checklist.id],
|
|
name: "workflows_phases_steps_checklist_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const workflows_phases_steps_resources = pgTable(
|
|
"workflows_phases_steps_resources",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
type: enum_workflows_phases_steps_resources_type("type").default("document"),
|
|
file: integer("file_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
url: varchar("url"),
|
|
},
|
|
(columns) => [
|
|
index("workflows_phases_steps_resources_order_idx").on(columns._order),
|
|
index("workflows_phases_steps_resources_parent_id_idx").on(columns._parentID),
|
|
index("workflows_phases_steps_resources_file_idx").on(columns.file),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [workflows_phases_steps.id],
|
|
name: "workflows_phases_steps_resources_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const workflows_phases_steps_resources_locales = pgTable(
|
|
"workflows_phases_steps_resources_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("workflows_phases_steps_resources_locales_locale_parent_id_un").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [workflows_phases_steps_resources.id],
|
|
name: "workflows_phases_steps_resources_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const workflows_phases_steps_outputs = pgTable(
|
|
"workflows_phases_steps_outputs",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("workflows_phases_steps_outputs_order_idx").on(columns._order),
|
|
index("workflows_phases_steps_outputs_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [workflows_phases_steps.id],
|
|
name: "workflows_phases_steps_outputs_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const workflows_phases_steps_outputs_locales = pgTable(
|
|
"workflows_phases_steps_outputs_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("workflows_phases_steps_outputs_locales_locale_parent_id_uniq").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [workflows_phases_steps_outputs.id],
|
|
name: "workflows_phases_steps_outputs_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const workflows_phases_steps = pgTable(
|
|
"workflows_phases_steps",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
stepType: enum_workflows_phases_steps_step_type("step_type").default("task"),
|
|
priority: enum_workflows_phases_steps_priority("priority").default("normal"),
|
|
icon: varchar("icon"),
|
|
dependencies_dependsOnSteps: varchar("dependencies_depends_on_steps"),
|
|
dependencies_canRunParallel: boolean("dependencies_can_run_parallel").default(false),
|
|
dependencies_isBlocking: boolean("dependencies_is_blocking").default(true),
|
|
metadata: jsonb("metadata"),
|
|
},
|
|
(columns) => [
|
|
index("workflows_phases_steps_order_idx").on(columns._order),
|
|
index("workflows_phases_steps_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [workflows_phases.id],
|
|
name: "workflows_phases_steps_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const workflows_phases_steps_locales = pgTable(
|
|
"workflows_phases_steps_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
description: jsonb("description"),
|
|
shortDescription: varchar("short_description"),
|
|
estimatedDuration: varchar("estimated_duration"),
|
|
responsible: varchar("responsible"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("workflows_phases_steps_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [workflows_phases_steps.id],
|
|
name: "workflows_phases_steps_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const workflows_phases_deliverables = pgTable(
|
|
"workflows_phases_deliverables",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("workflows_phases_deliverables_order_idx").on(columns._order),
|
|
index("workflows_phases_deliverables_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [workflows_phases.id],
|
|
name: "workflows_phases_deliverables_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const workflows_phases_deliverables_locales = pgTable(
|
|
"workflows_phases_deliverables_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("workflows_phases_deliverables_locales_locale_parent_id_uniqu").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [workflows_phases_deliverables.id],
|
|
name: "workflows_phases_deliverables_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const workflows_phases = pgTable(
|
|
"workflows_phases",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
icon: varchar("icon"),
|
|
color: varchar("color"),
|
|
},
|
|
(columns) => [
|
|
index("workflows_phases_order_idx").on(columns._order),
|
|
index("workflows_phases_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [workflows.id],
|
|
name: "workflows_phases_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const workflows_phases_locales = pgTable(
|
|
"workflows_phases_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
description: varchar("description"),
|
|
estimatedDuration: varchar("estimated_duration"),
|
|
responsible: varchar("responsible"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("workflows_phases_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [workflows_phases.id],
|
|
name: "workflows_phases_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const workflows_global_resources = pgTable(
|
|
"workflows_global_resources",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
type: enum_workflows_global_resources_type("type").default("document"),
|
|
file: integer("file_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
url: varchar("url"),
|
|
},
|
|
(columns) => [
|
|
index("workflows_global_resources_order_idx").on(columns._order),
|
|
index("workflows_global_resources_parent_id_idx").on(columns._parentID),
|
|
index("workflows_global_resources_file_idx").on(columns.file),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [workflows.id],
|
|
name: "workflows_global_resources_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const workflows_global_resources_locales = pgTable(
|
|
"workflows_global_resources_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("workflows_global_resources_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [workflows_global_resources.id],
|
|
name: "workflows_global_resources_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const workflows = pgTable(
|
|
"workflows",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
slug: varchar("slug").notNull(),
|
|
type: enum_workflows_type("type").notNull().default("project"),
|
|
status: enum_workflows_status("status").notNull().default("draft"),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
properties_complexity: enum_workflows_properties_complexity("properties_complexity"),
|
|
properties_isIterative: boolean("properties_is_iterative").default(false),
|
|
properties_allowParallelPhases: boolean("properties_allow_parallel_phases").default(false),
|
|
displayOptions_layout: enum_workflows_display_options_layout("display_options_layout").default("vertical"),
|
|
displayOptions_showPhaseNumbers: boolean("display_options_show_phase_numbers").default(true),
|
|
displayOptions_showStepNumbers: boolean("display_options_show_step_numbers").default(true),
|
|
displayOptions_showDurations: boolean("display_options_show_durations").default(true),
|
|
displayOptions_showResponsible: boolean("display_options_show_responsible").default(true),
|
|
displayOptions_showProgress: boolean("display_options_show_progress").default(false),
|
|
displayOptions_colorScheme:
|
|
enum_workflows_display_options_color_scheme("display_options_color_scheme").default("phase"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("workflows_tenant_idx").on(columns.tenant),
|
|
uniqueIndex("workflows_slug_idx").on(columns.slug),
|
|
index("workflows_image_idx").on(columns.image),
|
|
index("workflows_updated_at_idx").on(columns.updatedAt),
|
|
index("workflows_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const workflows_locales = pgTable(
|
|
"workflows_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
description: jsonb("description"),
|
|
shortDescription: varchar("short_description"),
|
|
properties_estimatedDuration: varchar("properties_estimated_duration"),
|
|
seo_metaTitle: varchar("seo_meta_title"),
|
|
seo_metaDescription: varchar("seo_meta_description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("workflows_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [workflows.id],
|
|
name: "workflows_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const tags = pgTable(
|
|
"tags",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
slug: varchar("slug").notNull(),
|
|
color: varchar("color"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("tags_tenant_idx").on(columns.tenant),
|
|
uniqueIndex("tags_slug_idx").on(columns.slug),
|
|
index("tags_updated_at_idx").on(columns.updatedAt),
|
|
index("tags_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const tags_locales = pgTable(
|
|
"tags_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("tags_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [tags.id],
|
|
name: "tags_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const authors = pgTable(
|
|
"authors",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
name: varchar("name").notNull(),
|
|
slug: varchar("slug").notNull(),
|
|
avatar: integer("avatar_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
email: varchar("email"),
|
|
website: varchar("website"),
|
|
social_twitter: varchar("social_twitter"),
|
|
social_linkedin: varchar("social_linkedin"),
|
|
social_github: varchar("social_github"),
|
|
social_instagram: varchar("social_instagram"),
|
|
linkedTeam: integer("linked_team_id").references(() => team.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
linkedUser: integer("linked_user_id").references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
isActive: boolean("is_active").default(true),
|
|
isGuest: boolean("is_guest").default(false),
|
|
featured: boolean("featured").default(false),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("authors_tenant_idx").on(columns.tenant),
|
|
uniqueIndex("authors_slug_idx").on(columns.slug),
|
|
index("authors_avatar_idx").on(columns.avatar),
|
|
index("authors_linked_team_idx").on(columns.linkedTeam),
|
|
index("authors_linked_user_idx").on(columns.linkedUser),
|
|
index("authors_updated_at_idx").on(columns.updatedAt),
|
|
index("authors_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const authors_locales = pgTable(
|
|
"authors_locales",
|
|
{
|
|
bio: jsonb("bio"),
|
|
bioShort: varchar("bio_short"),
|
|
title: varchar("title"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("authors_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [authors.id],
|
|
name: "authors_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const locations_hours_structured = pgTable(
|
|
"locations_hours_structured",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
day: enum_locations_hours_structured_day("day").notNull(),
|
|
closed: boolean("closed").default(false),
|
|
open: varchar("open"),
|
|
close: varchar("close"),
|
|
break_hasBreak: boolean("break_has_break").default(false),
|
|
break_start: varchar("break_start"),
|
|
break_end: varchar("break_end"),
|
|
},
|
|
(columns) => [
|
|
index("locations_hours_structured_order_idx").on(columns._order),
|
|
index("locations_hours_structured_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [locations.id],
|
|
name: "locations_hours_structured_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const locations = pgTable(
|
|
"locations",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
slug: varchar("slug").notNull(),
|
|
type: enum_locations_type("type").default("office"),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
address_street: varchar("address_street").notNull(),
|
|
address_additionalLine: varchar("address_additional_line"),
|
|
address_zip: varchar("address_zip").notNull(),
|
|
address_city: varchar("address_city").notNull(),
|
|
address_state: varchar("address_state"),
|
|
address_country: varchar("address_country").default("Deutschland"),
|
|
geo_lat: numeric("geo_lat", { mode: "number" }),
|
|
geo_lng: numeric("geo_lng", { mode: "number" }),
|
|
geo_zoom: numeric("geo_zoom", { mode: "number" }).default(15),
|
|
contact_phone: varchar("contact_phone"),
|
|
contact_fax: varchar("contact_fax"),
|
|
contact_email: varchar("contact_email"),
|
|
contact_website: varchar("contact_website"),
|
|
isMain: boolean("is_main").default(false),
|
|
isActive: boolean("is_active").default(true),
|
|
showInFooter: boolean("show_in_footer").default(false),
|
|
order: numeric("order", { mode: "number" }).default(0),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("locations_tenant_idx").on(columns.tenant),
|
|
uniqueIndex("locations_slug_idx").on(columns.slug),
|
|
index("locations_image_idx").on(columns.image),
|
|
index("locations_updated_at_idx").on(columns.updatedAt),
|
|
index("locations_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const locations_locales = pgTable(
|
|
"locations_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
description: jsonb("description"),
|
|
hours_display: varchar("hours_display"),
|
|
hours_note: varchar("hours_note"),
|
|
directions_text: jsonb("directions_text"),
|
|
directions_parking: varchar("directions_parking"),
|
|
directions_publicTransport: varchar("directions_public_transport"),
|
|
directions_accessibility: varchar("directions_accessibility"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("locations_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [locations.id],
|
|
name: "locations_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const locations_rels = pgTable(
|
|
"locations_rels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order"),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
servicesID: integer("services_id"),
|
|
teamID: integer("team_id"),
|
|
},
|
|
(columns) => [
|
|
index("locations_rels_order_idx").on(columns.order),
|
|
index("locations_rels_parent_idx").on(columns.parent),
|
|
index("locations_rels_path_idx").on(columns.path),
|
|
index("locations_rels_services_id_idx").on(columns.servicesID),
|
|
index("locations_rels_team_id_idx").on(columns.teamID),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [locations.id],
|
|
name: "locations_rels_parent_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["servicesID"]],
|
|
foreignColumns: [services.id],
|
|
name: "locations_rels_services_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["teamID"]],
|
|
foreignColumns: [team.id],
|
|
name: "locations_rels_team_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const partners_case_study_results = pgTable(
|
|
"partners_case_study_results",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
metric: varchar("metric"),
|
|
},
|
|
(columns) => [
|
|
index("partners_case_study_results_order_idx").on(columns._order),
|
|
index("partners_case_study_results_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [partners.id],
|
|
name: "partners_case_study_results_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const partners_case_study_results_locales = pgTable(
|
|
"partners_case_study_results_locales",
|
|
{
|
|
label: varchar("label"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("partners_case_study_results_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [partners_case_study_results.id],
|
|
name: "partners_case_study_results_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const partners_tags = pgTable(
|
|
"partners_tags",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
tag: varchar("tag").notNull(),
|
|
},
|
|
(columns) => [
|
|
index("partners_tags_order_idx").on(columns._order),
|
|
index("partners_tags_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [partners.id],
|
|
name: "partners_tags_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const partners = pgTable(
|
|
"partners",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
name: varchar("name").notNull(),
|
|
slug: varchar("slug").notNull(),
|
|
type: enum_partners_type("type").notNull().default("partner"),
|
|
logo: integer("logo_id")
|
|
.notNull()
|
|
.references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
logoLight: integer("logo_light_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
website: varchar("website"),
|
|
caseStudy_quotePerson: varchar("case_study_quote_person"),
|
|
caseStudy_quoteRole: varchar("case_study_quote_role"),
|
|
certification_issuer: varchar("certification_issuer"),
|
|
certification_validFrom: timestamp("certification_valid_from", {
|
|
mode: "string",
|
|
withTimezone: true,
|
|
precision: 3,
|
|
}),
|
|
certification_validUntil: timestamp("certification_valid_until", {
|
|
mode: "string",
|
|
withTimezone: true,
|
|
precision: 3,
|
|
}),
|
|
certification_certNumber: varchar("certification_cert_number"),
|
|
certification_document: integer("certification_document_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
category: varchar("category"),
|
|
isFeatured: boolean("is_featured").default(false),
|
|
isActive: boolean("is_active").default(true),
|
|
order: numeric("order", { mode: "number" }).default(0),
|
|
since: timestamp("since", { mode: "string", withTimezone: true, precision: 3 }),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("partners_tenant_idx").on(columns.tenant),
|
|
uniqueIndex("partners_slug_idx").on(columns.slug),
|
|
index("partners_logo_idx").on(columns.logo),
|
|
index("partners_logo_light_idx").on(columns.logoLight),
|
|
index("partners_certification_certification_document_idx").on(columns.certification_document),
|
|
index("partners_updated_at_idx").on(columns.updatedAt),
|
|
index("partners_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const partners_locales = pgTable(
|
|
"partners_locales",
|
|
{
|
|
description: varchar("description"),
|
|
caseStudy_quote: varchar("case_study_quote"),
|
|
caseStudy_projectDescription: jsonb("case_study_project_description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("partners_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [partners.id],
|
|
name: "partners_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const jobs_benefits_list = pgTable(
|
|
"jobs_benefits_list",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
icon: enum_jobs_benefits_list_icon("icon"),
|
|
},
|
|
(columns) => [
|
|
index("jobs_benefits_list_order_idx").on(columns._order),
|
|
index("jobs_benefits_list_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [jobs.id],
|
|
name: "jobs_benefits_list_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const jobs_benefits_list_locales = pgTable(
|
|
"jobs_benefits_list_locales",
|
|
{
|
|
benefit: varchar("benefit").notNull(),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("jobs_benefits_list_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [jobs_benefits_list.id],
|
|
name: "jobs_benefits_list_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const jobs = pgTable(
|
|
"jobs",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
slug: varchar("slug").notNull(),
|
|
reference: varchar("reference"),
|
|
category: enum_jobs_category("category"),
|
|
type: enum_jobs_type("type").notNull().default("fulltime"),
|
|
workModel: enum_jobs_work_model("work_model"),
|
|
experienceLevel: enum_jobs_experience_level("experience_level"),
|
|
location_locationRef: integer("location_location_ref_id").references(() => locations.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
location_city: varchar("location_city"),
|
|
location_region: varchar("location_region"),
|
|
location_country: varchar("location_country").default("Deutschland"),
|
|
salary_show: boolean("salary_show").default(false),
|
|
salary_type: enum_jobs_salary_type("salary_type"),
|
|
salary_min: numeric("salary_min", { mode: "number" }),
|
|
salary_max: numeric("salary_max", { mode: "number" }),
|
|
salary_currency: varchar("salary_currency").default("EUR"),
|
|
application_method: enum_jobs_application_method("application_method").default("email"),
|
|
application_email: varchar("application_email"),
|
|
application_formId: integer("application_form_id_id").references(() => forms.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
application_externalUrl: varchar("application_external_url"),
|
|
application_contact: integer("application_contact_id").references(() => team.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
application_deadline: timestamp("application_deadline", { mode: "string", withTimezone: true, precision: 3 }),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
status: enum_jobs_status("status").notNull().default("draft"),
|
|
publishedAt: timestamp("published_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
isFeatured: boolean("is_featured").default(false),
|
|
isUrgent: boolean("is_urgent").default(false),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("jobs_tenant_idx").on(columns.tenant),
|
|
uniqueIndex("jobs_slug_idx").on(columns.slug),
|
|
index("jobs_location_location_location_ref_idx").on(columns.location_locationRef),
|
|
index("jobs_application_application_form_id_idx").on(columns.application_formId),
|
|
index("jobs_application_application_contact_idx").on(columns.application_contact),
|
|
index("jobs_image_idx").on(columns.image),
|
|
index("jobs_updated_at_idx").on(columns.updatedAt),
|
|
index("jobs_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const jobs_locales = pgTable(
|
|
"jobs_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
department: varchar("department"),
|
|
summary: varchar("summary"),
|
|
description: jsonb("description"),
|
|
responsibilities: jsonb("responsibilities"),
|
|
requirements: jsonb("requirements"),
|
|
qualifications: jsonb("qualifications"),
|
|
benefits: jsonb("benefits"),
|
|
salary_note: varchar("salary_note"),
|
|
seo_metaTitle: varchar("seo_meta_title"),
|
|
seo_metaDescription: varchar("seo_meta_description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("jobs_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [jobs.id],
|
|
name: "jobs_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const downloads_tags = pgTable(
|
|
"downloads_tags",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
tag: varchar("tag").notNull(),
|
|
},
|
|
(columns) => [
|
|
index("downloads_tags_order_idx").on(columns._order),
|
|
index("downloads_tags_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [downloads.id],
|
|
name: "downloads_tags_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const downloads_access_form_fields = pgTable(
|
|
"downloads_access_form_fields",
|
|
{
|
|
order: integer("order").notNull(),
|
|
parent: integer("parent_id").notNull(),
|
|
value: enum_downloads_access_form_fields("value"),
|
|
id: serial("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("downloads_access_form_fields_order_idx").on(columns.order),
|
|
index("downloads_access_form_fields_parent_idx").on(columns.parent),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [downloads.id],
|
|
name: "downloads_access_form_fields_parent_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const downloads = pgTable(
|
|
"downloads",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
slug: varchar("slug").notNull(),
|
|
file: integer("file_id")
|
|
.notNull()
|
|
.references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
fileType: enum_downloads_file_type("file_type"),
|
|
fileSize: varchar("file_size"),
|
|
category: enum_downloads_category("category"),
|
|
thumbnail: integer("thumbnail_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
access_requireLogin: boolean("access_require_login").default(false),
|
|
access_requireForm: boolean("access_require_form").default(false),
|
|
downloadCount: numeric("download_count", { mode: "number" }).default(0),
|
|
version: varchar("version"),
|
|
lastUpdated: timestamp("last_updated", { mode: "string", withTimezone: true, precision: 3 }),
|
|
isActive: boolean("is_active").default(true),
|
|
isFeatured: boolean("is_featured").default(false),
|
|
order: numeric("order", { mode: "number" }).default(0),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("downloads_tenant_idx").on(columns.tenant),
|
|
uniqueIndex("downloads_slug_idx").on(columns.slug),
|
|
index("downloads_file_idx").on(columns.file),
|
|
index("downloads_thumbnail_idx").on(columns.thumbnail),
|
|
index("downloads_updated_at_idx").on(columns.updatedAt),
|
|
index("downloads_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const downloads_locales = pgTable(
|
|
"downloads_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("downloads_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [downloads.id],
|
|
name: "downloads_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const downloads_rels = pgTable(
|
|
"downloads_rels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order"),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
servicesID: integer("services_id"),
|
|
productsID: integer("products_id"),
|
|
},
|
|
(columns) => [
|
|
index("downloads_rels_order_idx").on(columns.order),
|
|
index("downloads_rels_parent_idx").on(columns.parent),
|
|
index("downloads_rels_path_idx").on(columns.path),
|
|
index("downloads_rels_services_id_idx").on(columns.servicesID),
|
|
index("downloads_rels_products_id_idx").on(columns.productsID),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [downloads.id],
|
|
name: "downloads_rels_parent_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["servicesID"]],
|
|
foreignColumns: [services.id],
|
|
name: "downloads_rels_services_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["productsID"]],
|
|
foreignColumns: [products.id],
|
|
name: "downloads_rels_products_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const events_gallery = pgTable(
|
|
"events_gallery",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
image: integer("image_id")
|
|
.notNull()
|
|
.references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
},
|
|
(columns) => [
|
|
index("events_gallery_order_idx").on(columns._order),
|
|
index("events_gallery_parent_id_idx").on(columns._parentID),
|
|
index("events_gallery_image_idx").on(columns.image),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [events.id],
|
|
name: "events_gallery_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const events_gallery_locales = pgTable(
|
|
"events_gallery_locales",
|
|
{
|
|
caption: varchar("caption"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("events_gallery_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [events_gallery.id],
|
|
name: "events_gallery_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const events_pricing_prices = pgTable(
|
|
"events_pricing_prices",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
price: numeric("price", { mode: "number" }),
|
|
currency: varchar("currency").default("EUR"),
|
|
validUntil: timestamp("valid_until", { mode: "string", withTimezone: true, precision: 3 }),
|
|
},
|
|
(columns) => [
|
|
index("events_pricing_prices_order_idx").on(columns._order),
|
|
index("events_pricing_prices_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [events.id],
|
|
name: "events_pricing_prices_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const events_pricing_prices_locales = pgTable(
|
|
"events_pricing_prices_locales",
|
|
{
|
|
name: varchar("name"),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("events_pricing_prices_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [events_pricing_prices.id],
|
|
name: "events_pricing_prices_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const events_speakers = pgTable(
|
|
"events_speakers",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
teamMember: integer("team_member_id").references(() => team.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
isExternal: boolean("is_external").default(false),
|
|
name: varchar("name"),
|
|
company: varchar("company"),
|
|
photo: integer("photo_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
},
|
|
(columns) => [
|
|
index("events_speakers_order_idx").on(columns._order),
|
|
index("events_speakers_parent_id_idx").on(columns._parentID),
|
|
index("events_speakers_team_member_idx").on(columns.teamMember),
|
|
index("events_speakers_photo_idx").on(columns.photo),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [events.id],
|
|
name: "events_speakers_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const events_speakers_locales = pgTable(
|
|
"events_speakers_locales",
|
|
{
|
|
title: varchar("title"),
|
|
bio: varchar("bio"),
|
|
role: varchar("role"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("events_speakers_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [events_speakers.id],
|
|
name: "events_speakers_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const events_agenda = pgTable(
|
|
"events_agenda",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
time: varchar("time"),
|
|
speaker: varchar("speaker"),
|
|
type: enum_events_agenda_type("type"),
|
|
},
|
|
(columns) => [
|
|
index("events_agenda_order_idx").on(columns._order),
|
|
index("events_agenda_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [events.id],
|
|
name: "events_agenda_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const events_agenda_locales = pgTable(
|
|
"events_agenda_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("events_agenda_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [events_agenda.id],
|
|
name: "events_agenda_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const events = pgTable(
|
|
"events",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
slug: varchar("slug").notNull(),
|
|
eventType: enum_events_event_type("event_type").notNull().default("event"),
|
|
category: varchar("category"),
|
|
format: enum_events_format("format").notNull().default("onsite"),
|
|
startDate: timestamp("start_date", { mode: "string", withTimezone: true, precision: 3 }).notNull(),
|
|
endDate: timestamp("end_date", { mode: "string", withTimezone: true, precision: 3 }),
|
|
isAllDay: boolean("is_all_day").default(false),
|
|
timezone: varchar("timezone").default("Europe/Berlin"),
|
|
isRecurring: boolean("is_recurring").default(false),
|
|
recurrence_frequency: enum_events_recurrence_frequency("recurrence_frequency"),
|
|
recurrence_interval: numeric("recurrence_interval", { mode: "number" }).default(1),
|
|
recurrence_endRecurrence: timestamp("recurrence_end_recurrence", {
|
|
mode: "string",
|
|
withTimezone: true,
|
|
precision: 3,
|
|
}),
|
|
location_locationRef: integer("location_location_ref_id").references(() => locations.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
location_customLocation: boolean("location_custom_location").default(false),
|
|
location_street: varchar("location_street"),
|
|
location_zip: varchar("location_zip"),
|
|
location_city: varchar("location_city"),
|
|
location_country: varchar("location_country").default("Deutschland"),
|
|
online_platform: enum_events_online_platform("online_platform"),
|
|
online_accessLink: varchar("online_access_link"),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
registration_required: boolean("registration_required").default(false),
|
|
registration_method: enum_events_registration_method("registration_method").default("form"),
|
|
registration_formId: integer("registration_form_id_id").references(() => forms.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
registration_email: varchar("registration_email"),
|
|
registration_externalUrl: varchar("registration_external_url"),
|
|
registration_phone: varchar("registration_phone"),
|
|
registration_deadline: timestamp("registration_deadline", { mode: "string", withTimezone: true, precision: 3 }),
|
|
registration_maxParticipants: numeric("registration_max_participants", { mode: "number" }),
|
|
registration_currentParticipants: numeric("registration_current_participants", { mode: "number" }).default(0),
|
|
registration_waitlistEnabled: boolean("registration_waitlist_enabled").default(false),
|
|
pricing_isFree: boolean("pricing_is_free").default(true),
|
|
contact_teamMember: integer("contact_team_member_id").references(() => team.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
contact_name: varchar("contact_name"),
|
|
contact_email: varchar("contact_email"),
|
|
contact_phone: varchar("contact_phone"),
|
|
seo_ogImage: integer("seo_og_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
status: enum_events_status("status").notNull().default("draft"),
|
|
isFeatured: boolean("is_featured").default(false),
|
|
publishedAt: timestamp("published_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("events_tenant_idx").on(columns.tenant),
|
|
uniqueIndex("events_slug_idx").on(columns.slug),
|
|
index("events_location_location_location_ref_idx").on(columns.location_locationRef),
|
|
index("events_image_idx").on(columns.image),
|
|
index("events_registration_registration_form_id_idx").on(columns.registration_formId),
|
|
index("events_contact_contact_team_member_idx").on(columns.contact_teamMember),
|
|
index("events_seo_seo_og_image_idx").on(columns.seo_ogImage),
|
|
index("events_updated_at_idx").on(columns.updatedAt),
|
|
index("events_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const events_locales = pgTable(
|
|
"events_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
subtitle: varchar("subtitle"),
|
|
description: jsonb("description"),
|
|
excerpt: varchar("excerpt"),
|
|
recurrence_description: varchar("recurrence_description"),
|
|
location_venueName: varchar("location_venue_name"),
|
|
location_room: varchar("location_room"),
|
|
location_directions: varchar("location_directions"),
|
|
online_accessInfo: varchar("online_access_info"),
|
|
pricing_priceNote: varchar("pricing_price_note"),
|
|
seo_metaTitle: varchar("seo_meta_title"),
|
|
seo_metaDescription: varchar("seo_meta_description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("events_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [events.id],
|
|
name: "events_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const events_rels = pgTable(
|
|
"events_rels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order"),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
servicesID: integer("services_id"),
|
|
eventsID: integer("events_id"),
|
|
},
|
|
(columns) => [
|
|
index("events_rels_order_idx").on(columns.order),
|
|
index("events_rels_parent_idx").on(columns.parent),
|
|
index("events_rels_path_idx").on(columns.path),
|
|
index("events_rels_services_id_idx").on(columns.servicesID),
|
|
index("events_rels_events_id_idx").on(columns.eventsID),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [events.id],
|
|
name: "events_rels_parent_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["servicesID"]],
|
|
foreignColumns: [services.id],
|
|
name: "events_rels_services_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["eventsID"]],
|
|
foreignColumns: [events.id],
|
|
name: "events_rels_events_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const bookings_reference_images = pgTable(
|
|
"bookings_reference_images",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
image: integer("image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
note: varchar("note"),
|
|
},
|
|
(columns) => [
|
|
index("bookings_reference_images_order_idx").on(columns._order),
|
|
index("bookings_reference_images_parent_id_idx").on(columns._parentID),
|
|
index("bookings_reference_images_image_idx").on(columns.image),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [bookings.id],
|
|
name: "bookings_reference_images_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const bookings_internal_notes = pgTable(
|
|
"bookings_internal_notes",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
note: varchar("note").notNull(),
|
|
author: integer("author_id").references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
},
|
|
(columns) => [
|
|
index("bookings_internal_notes_order_idx").on(columns._order),
|
|
index("bookings_internal_notes_parent_id_idx").on(columns._parentID),
|
|
index("bookings_internal_notes_author_idx").on(columns.author),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [bookings.id],
|
|
name: "bookings_internal_notes_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const bookings_contact_history = pgTable(
|
|
"bookings_contact_history",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
type: enum_bookings_contact_history_type("type").notNull(),
|
|
summary: varchar("summary").notNull(),
|
|
date: timestamp("date", { mode: "string", withTimezone: true, precision: 3 }),
|
|
},
|
|
(columns) => [
|
|
index("bookings_contact_history_order_idx").on(columns._order),
|
|
index("bookings_contact_history_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [bookings.id],
|
|
name: "bookings_contact_history_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const bookings = pgTable(
|
|
"bookings",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
customerName: varchar("customer_name").notNull(),
|
|
customerEmail: varchar("customer_email").notNull(),
|
|
customerPhone: varchar("customer_phone"),
|
|
customerCompany: varchar("customer_company"),
|
|
serviceType: enum_bookings_service_type("service_type").notNull(),
|
|
service: integer("service_id").references(() => services.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
date: timestamp("date", { mode: "string", withTimezone: true, precision: 3 }).notNull(),
|
|
time: varchar("time"),
|
|
duration: enum_bookings_duration("duration"),
|
|
locationType: enum_bookings_location_type("location_type"),
|
|
locationAddress: varchar("location_address"),
|
|
participants: numeric("participants", { mode: "number" }),
|
|
message: varchar("message"),
|
|
status: enum_bookings_status("status").notNull().default("pending"),
|
|
priority: enum_bookings_priority("priority").default("normal"),
|
|
pricing_estimatedPrice: numeric("pricing_estimated_price", { mode: "number" }),
|
|
pricing_finalPrice: numeric("pricing_final_price", { mode: "number" }),
|
|
pricing_depositAmount: numeric("pricing_deposit_amount", { mode: "number" }),
|
|
pricing_depositPaid: boolean("pricing_deposit_paid").default(false),
|
|
pricing_fullyPaid: boolean("pricing_fully_paid").default(false),
|
|
assignedTo: integer("assigned_to_id").references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
source: enum_bookings_source("source"),
|
|
gdprConsent: boolean("gdpr_consent").default(false),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("bookings_tenant_idx").on(columns.tenant),
|
|
index("bookings_service_idx").on(columns.service),
|
|
index("bookings_assigned_to_idx").on(columns.assignedTo),
|
|
index("bookings_updated_at_idx").on(columns.updatedAt),
|
|
index("bookings_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const certifications_gallery = pgTable(
|
|
"certifications_gallery",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
document: integer("document_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
title: varchar("title"),
|
|
},
|
|
(columns) => [
|
|
index("certifications_gallery_order_idx").on(columns._order),
|
|
index("certifications_gallery_parent_id_idx").on(columns._parentID),
|
|
index("certifications_gallery_document_idx").on(columns.document),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [certifications.id],
|
|
name: "certifications_gallery_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const certifications_requirements = pgTable(
|
|
"certifications_requirements",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("certifications_requirements_order_idx").on(columns._order),
|
|
index("certifications_requirements_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [certifications.id],
|
|
name: "certifications_requirements_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const certifications_requirements_locales = pgTable(
|
|
"certifications_requirements_locales",
|
|
{
|
|
requirement: varchar("requirement").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("certifications_requirements_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [certifications_requirements.id],
|
|
name: "certifications_requirements_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const certifications_benefits = pgTable(
|
|
"certifications_benefits",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
icon: enum_certifications_benefits_icon("icon"),
|
|
},
|
|
(columns) => [
|
|
index("certifications_benefits_order_idx").on(columns._order),
|
|
index("certifications_benefits_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [certifications.id],
|
|
name: "certifications_benefits_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const certifications_benefits_locales = pgTable(
|
|
"certifications_benefits_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("certifications_benefits_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [certifications_benefits.id],
|
|
name: "certifications_benefits_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const certifications_audits = pgTable(
|
|
"certifications_audits",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
date: timestamp("date", { mode: "string", withTimezone: true, precision: 3 }).notNull(),
|
|
type: enum_certifications_audits_type("type"),
|
|
result: enum_certifications_audits_result("result"),
|
|
notes: varchar("notes"),
|
|
},
|
|
(columns) => [
|
|
index("certifications_audits_order_idx").on(columns._order),
|
|
index("certifications_audits_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [certifications.id],
|
|
name: "certifications_audits_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const certifications = pgTable(
|
|
"certifications",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
slug: varchar("slug").notNull(),
|
|
type: enum_certifications_type("type").notNull(),
|
|
category: enum_certifications_category("category"),
|
|
issuer_name: varchar("issuer_name").notNull(),
|
|
issuer_logo: integer("issuer_logo_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
issuer_website: varchar("issuer_website"),
|
|
issuer_country: enum_certifications_issuer_country("issuer_country"),
|
|
certNumber: varchar("cert_number"),
|
|
issuedDate: timestamp("issued_date", { mode: "string", withTimezone: true, precision: 3 }),
|
|
validUntil: timestamp("valid_until", { mode: "string", withTimezone: true, precision: 3 }),
|
|
renewalCycle: enum_certifications_renewal_cycle("renewal_cycle"),
|
|
logo: integer("logo_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
certificate: integer("certificate_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
status: enum_certifications_status("status").notNull().default("active"),
|
|
visibility: enum_certifications_visibility("visibility").default("public"),
|
|
priority: numeric("priority", { mode: "number" }).default(0),
|
|
showOnHomepage: boolean("show_on_homepage").default(false),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("certifications_tenant_idx").on(columns.tenant),
|
|
uniqueIndex("certifications_slug_idx").on(columns.slug),
|
|
index("certifications_issuer_issuer_logo_idx").on(columns.issuer_logo),
|
|
index("certifications_logo_idx").on(columns.logo),
|
|
index("certifications_certificate_idx").on(columns.certificate),
|
|
index("certifications_updated_at_idx").on(columns.updatedAt),
|
|
index("certifications_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const certifications_locales = pgTable(
|
|
"certifications_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
description: jsonb("description"),
|
|
shortDescription: varchar("short_description"),
|
|
scope_description: varchar("scope_description"),
|
|
seo_metaTitle: varchar("seo_meta_title"),
|
|
seo_metaDescription: varchar("seo_meta_description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("certifications_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [certifications.id],
|
|
name: "certifications_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const certifications_rels = pgTable(
|
|
"certifications_rels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order"),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
locationsID: integer("locations_id"),
|
|
servicesID: integer("services_id"),
|
|
},
|
|
(columns) => [
|
|
index("certifications_rels_order_idx").on(columns.order),
|
|
index("certifications_rels_parent_idx").on(columns.parent),
|
|
index("certifications_rels_path_idx").on(columns.path),
|
|
index("certifications_rels_locations_id_idx").on(columns.locationsID),
|
|
index("certifications_rels_services_id_idx").on(columns.servicesID),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [certifications.id],
|
|
name: "certifications_rels_parent_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["locationsID"]],
|
|
foreignColumns: [locations.id],
|
|
name: "certifications_rels_locations_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["servicesID"]],
|
|
foreignColumns: [services.id],
|
|
name: "certifications_rels_services_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const projects_genres = pgTable(
|
|
"projects_genres",
|
|
{
|
|
order: integer("order").notNull(),
|
|
parent: integer("parent_id").notNull(),
|
|
value: enum_projects_genres("value"),
|
|
id: serial("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("projects_genres_order_idx").on(columns.order),
|
|
index("projects_genres_parent_idx").on(columns.parent),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [projects.id],
|
|
name: "projects_genres_parent_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const projects_platforms = pgTable(
|
|
"projects_platforms",
|
|
{
|
|
order: integer("order").notNull(),
|
|
parent: integer("parent_id").notNull(),
|
|
value: enum_projects_platforms("value"),
|
|
id: serial("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("projects_platforms_order_idx").on(columns.order),
|
|
index("projects_platforms_parent_idx").on(columns.parent),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [projects.id],
|
|
name: "projects_platforms_parent_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const projects_screenshots = pgTable(
|
|
"projects_screenshots",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
image: integer("image_id")
|
|
.notNull()
|
|
.references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
},
|
|
(columns) => [
|
|
index("projects_screenshots_order_idx").on(columns._order),
|
|
index("projects_screenshots_parent_id_idx").on(columns._parentID),
|
|
index("projects_screenshots_image_idx").on(columns.image),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [projects.id],
|
|
name: "projects_screenshots_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const projects_screenshots_locales = pgTable(
|
|
"projects_screenshots_locales",
|
|
{
|
|
caption: varchar("caption"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("projects_screenshots_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [projects_screenshots.id],
|
|
name: "projects_screenshots_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const projects_videos = pgTable(
|
|
"projects_videos",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
type: enum_projects_videos_type("type").notNull(),
|
|
url: varchar("url").notNull(),
|
|
thumbnail: integer("thumbnail_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
},
|
|
(columns) => [
|
|
index("projects_videos_order_idx").on(columns._order),
|
|
index("projects_videos_parent_id_idx").on(columns._parentID),
|
|
index("projects_videos_thumbnail_idx").on(columns.thumbnail),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [projects.id],
|
|
name: "projects_videos_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const projects_videos_locales = pgTable(
|
|
"projects_videos_locales",
|
|
{
|
|
title: varchar("title"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("projects_videos_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [projects_videos.id],
|
|
name: "projects_videos_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const projects_tech_stack_languages = pgTable(
|
|
"projects_tech_stack_languages",
|
|
{
|
|
order: integer("order").notNull(),
|
|
parent: integer("parent_id").notNull(),
|
|
value: enum_projects_tech_stack_languages("value"),
|
|
id: serial("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("projects_tech_stack_languages_order_idx").on(columns.order),
|
|
index("projects_tech_stack_languages_parent_idx").on(columns.parent),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [projects.id],
|
|
name: "projects_tech_stack_languages_parent_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const projects_downloads = pgTable(
|
|
"projects_downloads",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
title: varchar("title").notNull(),
|
|
platform: enum_projects_downloads_platform("platform"),
|
|
version: varchar("version"),
|
|
file: integer("file_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
externalUrl: varchar("external_url"),
|
|
size: varchar("size"),
|
|
},
|
|
(columns) => [
|
|
index("projects_downloads_order_idx").on(columns._order),
|
|
index("projects_downloads_parent_id_idx").on(columns._parentID),
|
|
index("projects_downloads_file_idx").on(columns.file),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [projects.id],
|
|
name: "projects_downloads_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const projects_features = pgTable(
|
|
"projects_features",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
icon: integer("icon_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
},
|
|
(columns) => [
|
|
index("projects_features_order_idx").on(columns._order),
|
|
index("projects_features_parent_id_idx").on(columns._parentID),
|
|
index("projects_features_icon_idx").on(columns.icon),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [projects.id],
|
|
name: "projects_features_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const projects_features_locales = pgTable(
|
|
"projects_features_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("projects_features_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [projects_features.id],
|
|
name: "projects_features_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const projects_team = pgTable(
|
|
"projects_team",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
name: varchar("name").notNull(),
|
|
link: varchar("link"),
|
|
avatar: integer("avatar_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
},
|
|
(columns) => [
|
|
index("projects_team_order_idx").on(columns._order),
|
|
index("projects_team_parent_id_idx").on(columns._parentID),
|
|
index("projects_team_avatar_idx").on(columns.avatar),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [projects.id],
|
|
name: "projects_team_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const projects_team_locales = pgTable(
|
|
"projects_team_locales",
|
|
{
|
|
role: varchar("role"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("projects_team_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [projects_team.id],
|
|
name: "projects_team_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const projects = pgTable(
|
|
"projects",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
slug: varchar("slug").notNull(),
|
|
type: enum_projects_type("type").notNull(),
|
|
featuredImage: integer("featured_image_id")
|
|
.notNull()
|
|
.references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
logo: integer("logo_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
techStack_engine: enum_projects_tech_stack_engine("tech_stack_engine"),
|
|
techStack_tools: varchar("tech_stack_tools"),
|
|
requirements_minimum_os: varchar("requirements_minimum_os"),
|
|
requirements_minimum_cpu: varchar("requirements_minimum_cpu"),
|
|
requirements_minimum_ram: varchar("requirements_minimum_ram"),
|
|
requirements_minimum_gpu: varchar("requirements_minimum_gpu"),
|
|
requirements_minimum_storage: varchar("requirements_minimum_storage"),
|
|
requirements_recommended_os: varchar("requirements_recommended_os"),
|
|
requirements_recommended_cpu: varchar("requirements_recommended_cpu"),
|
|
requirements_recommended_ram: varchar("requirements_recommended_ram"),
|
|
requirements_recommended_gpu: varchar("requirements_recommended_gpu"),
|
|
requirements_recommended_storage: varchar("requirements_recommended_storage"),
|
|
releaseDate: timestamp("release_date", { mode: "string", withTimezone: true, precision: 3 }),
|
|
links_website: varchar("links_website"),
|
|
links_steam: varchar("links_steam"),
|
|
links_itchio: varchar("links_itchio"),
|
|
links_epicGames: varchar("links_epic_games"),
|
|
links_gog: varchar("links_gog"),
|
|
links_playStore: varchar("links_play_store"),
|
|
links_appStore: varchar("links_app_store"),
|
|
links_github: varchar("links_github"),
|
|
links_discord: varchar("links_discord"),
|
|
links_twitter: varchar("links_twitter"),
|
|
gameJam_jamName: varchar("game_jam_jam_name"),
|
|
gameJam_theme: varchar("game_jam_theme"),
|
|
gameJam_duration: varchar("game_jam_duration"),
|
|
gameJam_ranking: varchar("game_jam_ranking"),
|
|
gameJam_jamLink: varchar("game_jam_jam_link"),
|
|
status: enum_projects_status("status").notNull().default("development"),
|
|
visibility: enum_projects_visibility("visibility").default("public"),
|
|
featured: boolean("featured").default(false),
|
|
sortOrder: numeric("sort_order", { mode: "number" }).default(0),
|
|
seo_ogImage: integer("seo_og_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("projects_tenant_idx").on(columns.tenant),
|
|
uniqueIndex("projects_slug_idx").on(columns.slug),
|
|
index("projects_featured_image_idx").on(columns.featuredImage),
|
|
index("projects_logo_idx").on(columns.logo),
|
|
index("projects_seo_seo_og_image_idx").on(columns.seo_ogImage),
|
|
index("projects_updated_at_idx").on(columns.updatedAt),
|
|
index("projects_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const projects_locales = pgTable(
|
|
"projects_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
tagline: varchar("tagline"),
|
|
description: jsonb("description"),
|
|
shortDescription: varchar("short_description"),
|
|
seo_metaTitle: varchar("seo_meta_title"),
|
|
seo_metaDescription: varchar("seo_meta_description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("projects_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [projects.id],
|
|
name: "projects_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const projects_rels = pgTable(
|
|
"projects_rels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order"),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
postsID: integer("posts_id"),
|
|
},
|
|
(columns) => [
|
|
index("projects_rels_order_idx").on(columns.order),
|
|
index("projects_rels_parent_idx").on(columns.parent),
|
|
index("projects_rels_path_idx").on(columns.path),
|
|
index("projects_rels_posts_id_idx").on(columns.postsID),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [projects.id],
|
|
name: "projects_rels_parent_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["postsID"]],
|
|
foreignColumns: [posts.id],
|
|
name: "projects_rels_posts_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const favorites = pgTable(
|
|
"favorites",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
title: varchar("title").notNull(),
|
|
slug: varchar("slug").notNull(),
|
|
description: varchar("description"),
|
|
category: enum_favorites_category("category").notNull(),
|
|
subcategory: varchar("subcategory"),
|
|
price: numeric("price", { mode: "number" }),
|
|
priceRange: enum_favorites_price_range("price_range"),
|
|
affiliateUrl: varchar("affiliate_url").notNull(),
|
|
affiliateNetwork: enum_favorites_affiliate_network("affiliate_network"),
|
|
image: integer("image_id")
|
|
.notNull()
|
|
.references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
badge: enum_favorites_badge("badge"),
|
|
featured: boolean("featured").default(false),
|
|
isActive: boolean("is_active").notNull().default(true),
|
|
order: numeric("order", { mode: "number" }).default(0),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("favorites_tenant_idx").on(columns.tenant),
|
|
uniqueIndex("favorites_slug_idx").on(columns.slug),
|
|
index("favorites_image_idx").on(columns.image),
|
|
index("favorites_updated_at_idx").on(columns.updatedAt),
|
|
index("favorites_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const series = pgTable(
|
|
"series",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
slug: varchar("slug").notNull(),
|
|
logo: integer("logo_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
coverImage: integer("cover_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
brandColor: varchar("brand_color"),
|
|
accentColor: varchar("accent_color"),
|
|
youtubePlaylistId: varchar("youtube_playlist_id"),
|
|
youtubePlaylistUrl: varchar("youtube_playlist_url"),
|
|
order: numeric("order", { mode: "number" }).default(0),
|
|
isActive: boolean("is_active").notNull().default(true),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("series_tenant_idx").on(columns.tenant),
|
|
uniqueIndex("series_slug_idx").on(columns.slug),
|
|
index("series_logo_idx").on(columns.logo),
|
|
index("series_cover_image_idx").on(columns.coverImage),
|
|
index("series_updated_at_idx").on(columns.updatedAt),
|
|
index("series_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const series_locales = pgTable(
|
|
"series_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
tagline: varchar("tagline"),
|
|
description: jsonb("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("series_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [series.id],
|
|
name: "series_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const youtube_channels_publishing_schedule_default_days = pgTable(
|
|
"youtube_channels_publishing_schedule_default_days",
|
|
{
|
|
order: integer("order").notNull(),
|
|
parent: integer("parent_id").notNull(),
|
|
value: enum_youtube_channels_publishing_schedule_default_days("value"),
|
|
id: serial("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("youtube_channels_publishing_schedule_default_days_order_idx").on(columns.order),
|
|
index("youtube_channels_publishing_schedule_default_days_parent_idx").on(columns.parent),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [youtube_channels.id],
|
|
name: "youtube_channels_publishing_schedule_default_days_parent_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const youtube_channels = pgTable(
|
|
"youtube_channels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
slug: varchar("slug").notNull(),
|
|
youtubeChannelId: varchar("youtube_channel_id").notNull(),
|
|
youtubeHandle: varchar("youtube_handle"),
|
|
language: enum_youtube_channels_language("language").notNull(),
|
|
category: enum_youtube_channels_category("category").notNull(),
|
|
status: enum_youtube_channels_status("status").notNull().default("active"),
|
|
branding_primaryColor: varchar("branding_primary_color"),
|
|
branding_secondaryColor: varchar("branding_secondary_color"),
|
|
branding_logo: integer("branding_logo_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
branding_thumbnailTemplate: integer("branding_thumbnail_template_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
publishingSchedule_defaultTime: varchar("publishing_schedule_default_time"),
|
|
publishingSchedule_shortsPerWeek: numeric("publishing_schedule_shorts_per_week", { mode: "number" }).default(4),
|
|
publishingSchedule_longformPerWeek: numeric("publishing_schedule_longform_per_week", { mode: "number" }).default(1),
|
|
currentMetrics_subscriberCount: numeric("current_metrics_subscriber_count", { mode: "number" }),
|
|
currentMetrics_totalViews: numeric("current_metrics_total_views", { mode: "number" }),
|
|
currentMetrics_videoCount: numeric("current_metrics_video_count", { mode: "number" }),
|
|
currentMetrics_lastSyncedAt: timestamp("current_metrics_last_synced_at", {
|
|
mode: "string",
|
|
withTimezone: true,
|
|
precision: 3,
|
|
}),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("youtube_channels_slug_idx").on(columns.slug),
|
|
index("youtube_channels_branding_branding_logo_idx").on(columns.branding_logo),
|
|
index("youtube_channels_branding_branding_thumbnail_template_idx").on(columns.branding_thumbnailTemplate),
|
|
index("youtube_channels_updated_at_idx").on(columns.updatedAt),
|
|
index("youtube_channels_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const youtube_channels_locales = pgTable(
|
|
"youtube_channels_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("youtube_channels_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [youtube_channels.id],
|
|
name: "youtube_channels_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const youtube_content_key_points = pgTable(
|
|
"youtube_content_key_points",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("youtube_content_key_points_order_idx").on(columns._order),
|
|
index("youtube_content_key_points_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [youtube_content.id],
|
|
name: "youtube_content_key_points_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const youtube_content_key_points_locales = pgTable(
|
|
"youtube_content_key_points_locales",
|
|
{
|
|
point: varchar("point"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("youtube_content_key_points_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [youtube_content_key_points.id],
|
|
name: "youtube_content_key_points_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const youtube_content_upload_checklist = pgTable(
|
|
"youtube_content_upload_checklist",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
step: varchar("step").notNull(),
|
|
completed: boolean("completed"),
|
|
completedAt: timestamp("completed_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
},
|
|
(columns) => [
|
|
index("youtube_content_upload_checklist_order_idx").on(columns._order),
|
|
index("youtube_content_upload_checklist_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [youtube_content.id],
|
|
name: "youtube_content_upload_checklist_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const youtube_content_disclaimers = pgTable(
|
|
"youtube_content_disclaimers",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
type: enum_youtube_content_disclaimers_type("type").notNull(),
|
|
placement: enum_youtube_content_disclaimers_placement("placement"),
|
|
},
|
|
(columns) => [
|
|
index("youtube_content_disclaimers_order_idx").on(columns._order),
|
|
index("youtube_content_disclaimers_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [youtube_content.id],
|
|
name: "youtube_content_disclaimers_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const youtube_content_disclaimers_locales = pgTable(
|
|
"youtube_content_disclaimers_locales",
|
|
{
|
|
text: varchar("text"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("youtube_content_disclaimers_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [youtube_content_disclaimers.id],
|
|
name: "youtube_content_disclaimers_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const youtube_content_raw_footage = pgTable(
|
|
"youtube_content_raw_footage",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
file: integer("file_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
description: varchar("description"),
|
|
},
|
|
(columns) => [
|
|
index("youtube_content_raw_footage_order_idx").on(columns._order),
|
|
index("youtube_content_raw_footage_parent_id_idx").on(columns._parentID),
|
|
index("youtube_content_raw_footage_file_idx").on(columns.file),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [youtube_content.id],
|
|
name: "youtube_content_raw_footage_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const youtube_content_youtube_metadata_tags = pgTable(
|
|
"youtube_content_youtube_metadata_tags",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
tag: varchar("tag"),
|
|
},
|
|
(columns) => [
|
|
index("youtube_content_youtube_metadata_tags_order_idx").on(columns._order),
|
|
index("youtube_content_youtube_metadata_tags_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [youtube_content.id],
|
|
name: "youtube_content_youtube_metadata_tags_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const youtube_content = pgTable(
|
|
"youtube_content",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
slug: varchar("slug").notNull(),
|
|
channel: integer("channel_id")
|
|
.notNull()
|
|
.references(() => youtube_channels.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
series: integer("series_id").references(() => yt_series.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
format: enum_youtube_content_format("format").notNull(),
|
|
status: enum_youtube_content_status("status").notNull().default("idea"),
|
|
priority: enum_youtube_content_priority("priority").default("normal"),
|
|
assignedTo: integer("assigned_to_id").references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
createdBy: integer("created_by_id").references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
productionBatch: integer("production_batch_id").references(() => yt_batches.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
scriptUrl: varchar("script_url"),
|
|
shootDate: timestamp("shoot_date", { mode: "string", withTimezone: true, precision: 3 }),
|
|
editDeadline: timestamp("edit_deadline", { mode: "string", withTimezone: true, precision: 3 }),
|
|
reviewDeadline: timestamp("review_deadline", { mode: "string", withTimezone: true, precision: 3 }),
|
|
scheduledPublishDate: timestamp("scheduled_publish_date", { mode: "string", withTimezone: true, precision: 3 }),
|
|
actualPublishDate: timestamp("actual_publish_date", { mode: "string", withTimezone: true, precision: 3 }),
|
|
productionWeek: numeric("production_week", { mode: "number" }),
|
|
calendarWeek: numeric("calendar_week", { mode: "number" }),
|
|
productionDate: timestamp("production_date", { mode: "string", withTimezone: true, precision: 3 }),
|
|
targetDuration: varchar("target_duration"),
|
|
publishTime: varchar("publish_time"),
|
|
thumbnailText: varchar("thumbnail_text"),
|
|
ctaType: enum_youtube_content_cta_type("cta_type"),
|
|
ctaDetail: varchar("cta_detail"),
|
|
thumbnail: integer("thumbnail_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
thumbnailAlt: integer("thumbnail_alt_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
videoFile: integer("video_file_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
approvals_scriptApproval_approved: boolean("approvals_script_approval_approved"),
|
|
approvals_scriptApproval_approvedBy: integer("approvals_script_approval_approved_by_id").references(
|
|
() => users.id,
|
|
{
|
|
onDelete: "set null",
|
|
},
|
|
),
|
|
approvals_scriptApproval_approvedAt: timestamp("approvals_script_approval_approved_at", {
|
|
mode: "string",
|
|
withTimezone: true,
|
|
precision: 3,
|
|
}),
|
|
approvals_medicalApproval_required: boolean("approvals_medical_approval_required").default(false),
|
|
approvals_medicalApproval_approved: boolean("approvals_medical_approval_approved"),
|
|
approvals_medicalApproval_approvedBy: integer("approvals_medical_approval_approved_by_id").references(
|
|
() => users.id,
|
|
{
|
|
onDelete: "set null",
|
|
},
|
|
),
|
|
approvals_medicalApproval_approvedAt: timestamp("approvals_medical_approval_approved_at", {
|
|
mode: "string",
|
|
withTimezone: true,
|
|
precision: 3,
|
|
}),
|
|
approvals_legalApproval_approved: boolean("approvals_legal_approval_approved"),
|
|
approvals_legalApproval_approvedBy: integer("approvals_legal_approval_approved_by_id").references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
approvals_legalApproval_approvedAt: timestamp("approvals_legal_approval_approved_at", {
|
|
mode: "string",
|
|
withTimezone: true,
|
|
precision: 3,
|
|
}),
|
|
approvals_legalApproval_disclaimerIncluded: boolean("approvals_legal_approval_disclaimer_included"),
|
|
approvals_finalApproval_approved: boolean("approvals_final_approval_approved"),
|
|
approvals_finalApproval_approvedBy: integer("approvals_final_approval_approved_by_id").references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
approvals_finalApproval_approvedAt: timestamp("approvals_final_approval_approved_at", {
|
|
mode: "string",
|
|
withTimezone: true,
|
|
precision: 3,
|
|
}),
|
|
youtube_videoId: varchar("youtube_video_id"),
|
|
youtube_url: varchar("youtube_url"),
|
|
youtube_metadata_visibility:
|
|
enum_youtube_content_youtube_metadata_visibility("youtube_metadata_visibility").default("private"),
|
|
youtube_metadata_chapters: varchar("youtube_metadata_chapters"),
|
|
performance_views: numeric("performance_views", { mode: "number" }),
|
|
performance_likes: numeric("performance_likes", { mode: "number" }),
|
|
performance_comments: numeric("performance_comments", { mode: "number" }),
|
|
performance_shares: numeric("performance_shares", { mode: "number" }),
|
|
performance_watchTimeMinutes: numeric("performance_watch_time_minutes", { mode: "number" }),
|
|
performance_avgViewDuration: numeric("performance_avg_view_duration", { mode: "number" }),
|
|
performance_avgViewPercentage: numeric("performance_avg_view_percentage", { mode: "number" }),
|
|
performance_ctr: numeric("performance_ctr", { mode: "number" }),
|
|
performance_impressions: numeric("performance_impressions", { mode: "number" }),
|
|
performance_subscribersGained: numeric("performance_subscribers_gained", { mode: "number" }),
|
|
performance_lastSyncedAt: timestamp("performance_last_synced_at", {
|
|
mode: "string",
|
|
withTimezone: true,
|
|
precision: 3,
|
|
}),
|
|
internalNotes: jsonb("internal_notes"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("youtube_content_channel_idx").on(columns.channel),
|
|
index("youtube_content_series_idx").on(columns.series),
|
|
index("youtube_content_assigned_to_idx").on(columns.assignedTo),
|
|
index("youtube_content_created_by_idx").on(columns.createdBy),
|
|
index("youtube_content_production_batch_idx").on(columns.productionBatch),
|
|
index("youtube_content_thumbnail_idx").on(columns.thumbnail),
|
|
index("youtube_content_thumbnail_alt_idx").on(columns.thumbnailAlt),
|
|
index("youtube_content_video_file_idx").on(columns.videoFile),
|
|
index("youtube_content_approvals_script_approval_approvals_scri_idx").on(
|
|
columns.approvals_scriptApproval_approvedBy,
|
|
),
|
|
index("youtube_content_approvals_medical_approval_approvals_med_idx").on(
|
|
columns.approvals_medicalApproval_approvedBy,
|
|
),
|
|
index("youtube_content_approvals_legal_approval_approvals_legal_idx").on(
|
|
columns.approvals_legalApproval_approvedBy,
|
|
),
|
|
index("youtube_content_approvals_final_approval_approvals_final_idx").on(
|
|
columns.approvals_finalApproval_approvedBy,
|
|
),
|
|
index("youtube_content_updated_at_idx").on(columns.updatedAt),
|
|
index("youtube_content_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const youtube_content_locales = pgTable(
|
|
"youtube_content_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
description: varchar("description"),
|
|
hook: varchar("hook"),
|
|
callToAction: varchar("call_to_action"),
|
|
scriptContent: jsonb("script_content"),
|
|
bRollNotes: varchar("b_roll_notes"),
|
|
approvals_scriptApproval_notes: varchar("approvals_script_approval_notes"),
|
|
approvals_medicalApproval_notes: varchar("approvals_medical_approval_notes"),
|
|
approvals_legalApproval_notes: varchar("approvals_legal_approval_notes"),
|
|
approvals_finalApproval_notes: varchar("approvals_final_approval_notes"),
|
|
youtube_metadata_youtubeTitle: varchar("youtube_metadata_youtube_title"),
|
|
youtube_metadata_youtubeDescription: varchar("youtube_metadata_youtube_description"),
|
|
youtube_metadata_pinnedComment: varchar("youtube_metadata_pinned_comment"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("youtube_content_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [youtube_content.id],
|
|
name: "youtube_content_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const yt_tasks_attachments = pgTable(
|
|
"yt_tasks_attachments",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
file: integer("file_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
note: varchar("note"),
|
|
},
|
|
(columns) => [
|
|
index("yt_tasks_attachments_order_idx").on(columns._order),
|
|
index("yt_tasks_attachments_parent_id_idx").on(columns._parentID),
|
|
index("yt_tasks_attachments_file_idx").on(columns.file),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [yt_tasks.id],
|
|
name: "yt_tasks_attachments_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const yt_tasks_comments = pgTable(
|
|
"yt_tasks_comments",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
author: integer("author_id").references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
content: varchar("content"),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
},
|
|
(columns) => [
|
|
index("yt_tasks_comments_order_idx").on(columns._order),
|
|
index("yt_tasks_comments_parent_id_idx").on(columns._parentID),
|
|
index("yt_tasks_comments_author_idx").on(columns.author),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [yt_tasks.id],
|
|
name: "yt_tasks_comments_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const yt_tasks = pgTable(
|
|
"yt_tasks",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
video: integer("video_id").references(() => youtube_content.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
channel: integer("channel_id").references(() => youtube_channels.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
taskType: enum_yt_tasks_task_type("task_type").notNull(),
|
|
status: enum_yt_tasks_status("status").notNull().default("todo"),
|
|
priority: enum_yt_tasks_priority("priority").default("normal"),
|
|
assignedTo: integer("assigned_to_id")
|
|
.notNull()
|
|
.references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
dueDate: timestamp("due_date", { mode: "string", withTimezone: true, precision: 3 }),
|
|
completedAt: timestamp("completed_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
completedBy: integer("completed_by_id").references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("yt_tasks_video_idx").on(columns.video),
|
|
index("yt_tasks_channel_idx").on(columns.channel),
|
|
index("yt_tasks_assigned_to_idx").on(columns.assignedTo),
|
|
index("yt_tasks_completed_by_idx").on(columns.completedBy),
|
|
index("yt_tasks_updated_at_idx").on(columns.updatedAt),
|
|
index("yt_tasks_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const yt_tasks_locales = pgTable(
|
|
"yt_tasks_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
description: varchar("description"),
|
|
blockedReason: varchar("blocked_reason"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("yt_tasks_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [yt_tasks.id],
|
|
name: "yt_tasks_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const yt_notifications = pgTable(
|
|
"yt_notifications",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
recipient: integer("recipient_id")
|
|
.notNull()
|
|
.references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
type: enum_yt_notifications_type("type").notNull(),
|
|
link: varchar("link"),
|
|
relatedVideo: integer("related_video_id").references(() => youtube_content.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
relatedTask: integer("related_task_id").references(() => yt_tasks.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
read: boolean("read").default(false),
|
|
readAt: timestamp("read_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
emailSent: boolean("email_sent").default(false),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("yt_notifications_recipient_idx").on(columns.recipient),
|
|
index("yt_notifications_related_video_idx").on(columns.relatedVideo),
|
|
index("yt_notifications_related_task_idx").on(columns.relatedTask),
|
|
index("yt_notifications_updated_at_idx").on(columns.updatedAt),
|
|
index("yt_notifications_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const yt_notifications_locales = pgTable(
|
|
"yt_notifications_locales",
|
|
{
|
|
title: varchar("title").notNull(),
|
|
message: varchar("message"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("yt_notifications_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [yt_notifications.id],
|
|
name: "yt_notifications_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const yt_batches = pgTable(
|
|
"yt_batches",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
name: varchar("name").notNull(),
|
|
channel: integer("channel_id").references(() => youtube_channels.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
status: enum_yt_batches_status("status").default("planning"),
|
|
productionPeriodStart: timestamp("production_period_start", { mode: "string", withTimezone: true, precision: 3 }),
|
|
productionPeriodEnd: timestamp("production_period_end", { mode: "string", withTimezone: true, precision: 3 }),
|
|
targets_shortsTarget: numeric("targets_shorts_target", { mode: "number" }).default(0),
|
|
targets_longformsTarget: numeric("targets_longforms_target", { mode: "number" }).default(0),
|
|
targets_totalTarget: numeric("targets_total_target", { mode: "number" }).default(0),
|
|
targets_bufferDays: numeric("targets_buffer_days", { mode: "number" }).default(0),
|
|
progress_shortsCompleted: numeric("progress_shorts_completed", { mode: "number" }).default(0),
|
|
progress_longformsCompleted: numeric("progress_longforms_completed", { mode: "number" }).default(0),
|
|
progress_percentage: numeric("progress_percentage", { mode: "number" }).default(0),
|
|
team_producer: integer("team_producer_id").references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
team_editor: integer("team_editor_id").references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
team_reviewer: integer("team_reviewer_id").references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("yt_batches_channel_idx").on(columns.channel),
|
|
index("yt_batches_team_team_producer_idx").on(columns.team_producer),
|
|
index("yt_batches_team_team_editor_idx").on(columns.team_editor),
|
|
index("yt_batches_team_team_reviewer_idx").on(columns.team_reviewer),
|
|
index("yt_batches_updated_at_idx").on(columns.updatedAt),
|
|
index("yt_batches_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const yt_monthly_goals_custom_goals = pgTable(
|
|
"yt_monthly_goals_custom_goals",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
metric: varchar("metric").notNull(),
|
|
target: varchar("target").notNull(),
|
|
current: varchar("current"),
|
|
status: enum_yt_monthly_goals_custom_goals_status("status"),
|
|
},
|
|
(columns) => [
|
|
index("yt_monthly_goals_custom_goals_order_idx").on(columns._order),
|
|
index("yt_monthly_goals_custom_goals_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [yt_monthly_goals.id],
|
|
name: "yt_monthly_goals_custom_goals_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const yt_monthly_goals = pgTable(
|
|
"yt_monthly_goals",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
channel: integer("channel_id")
|
|
.notNull()
|
|
.references(() => youtube_channels.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
month: timestamp("month", { mode: "string", withTimezone: true, precision: 3 }).notNull(),
|
|
displayTitle: varchar("display_title"),
|
|
contentGoals_longformsTarget: numeric("content_goals_longforms_target", { mode: "number" }).default(12),
|
|
contentGoals_longformsCurrent: numeric("content_goals_longforms_current", { mode: "number" }).default(0),
|
|
contentGoals_shortsTarget: numeric("content_goals_shorts_target", { mode: "number" }).default(28),
|
|
contentGoals_shortsCurrent: numeric("content_goals_shorts_current", { mode: "number" }).default(0),
|
|
audienceGoals_subscribersTarget: numeric("audience_goals_subscribers_target", { mode: "number" }),
|
|
audienceGoals_subscribersCurrent: numeric("audience_goals_subscribers_current", { mode: "number" }),
|
|
audienceGoals_viewsTarget: numeric("audience_goals_views_target", { mode: "number" }),
|
|
audienceGoals_viewsCurrent: numeric("audience_goals_views_current", { mode: "number" }),
|
|
engagementGoals_avgCtrTarget: varchar("engagement_goals_avg_ctr_target"),
|
|
engagementGoals_avgCtrCurrent: varchar("engagement_goals_avg_ctr_current"),
|
|
engagementGoals_avgRetentionTarget: varchar("engagement_goals_avg_retention_target"),
|
|
engagementGoals_avgRetentionCurrent: varchar("engagement_goals_avg_retention_current"),
|
|
businessGoals_newsletterSignupsTarget: numeric("business_goals_newsletter_signups_target", { mode: "number" }),
|
|
businessGoals_newsletterSignupsCurrent: numeric("business_goals_newsletter_signups_current", { mode: "number" }),
|
|
businessGoals_affiliateRevenueTarget: numeric("business_goals_affiliate_revenue_target", { mode: "number" }),
|
|
businessGoals_affiliateRevenueCurrent: numeric("business_goals_affiliate_revenue_current", { mode: "number" }),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("yt_monthly_goals_channel_idx").on(columns.channel),
|
|
index("yt_monthly_goals_updated_at_idx").on(columns.updatedAt),
|
|
index("yt_monthly_goals_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const yt_monthly_goals_locales = pgTable(
|
|
"yt_monthly_goals_locales",
|
|
{
|
|
notes: varchar("notes"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("yt_monthly_goals_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [yt_monthly_goals.id],
|
|
name: "yt_monthly_goals_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const yt_script_tpl = pgTable(
|
|
"yt_script_tpl",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
channel: integer("channel_id")
|
|
.notNull()
|
|
.references(() => youtube_channels.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
series: varchar("series").notNull(),
|
|
format: enum_yt_script_tpl_format("format").notNull(),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("yt_script_tpl_channel_idx").on(columns.channel),
|
|
index("yt_script_tpl_updated_at_idx").on(columns.updatedAt),
|
|
index("yt_script_tpl_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const yt_script_tpl_locales = pgTable(
|
|
"yt_script_tpl_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("yt_script_tpl_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [yt_script_tpl.id],
|
|
name: "yt_script_tpl_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const yt_checklist_templates_items = pgTable(
|
|
"yt_checklist_templates_items",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
order: numeric("order", { mode: "number" }),
|
|
category: enum_yt_checklist_templates_items_category("category"),
|
|
isRequired: boolean("is_required").default(true),
|
|
},
|
|
(columns) => [
|
|
index("yt_checklist_templates_items_order_idx").on(columns._order),
|
|
index("yt_checklist_templates_items_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [yt_checklist_templates.id],
|
|
name: "yt_checklist_templates_items_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const yt_checklist_templates_items_locales = pgTable(
|
|
"yt_checklist_templates_items_locales",
|
|
{
|
|
task: varchar("task").notNull(),
|
|
details: varchar("details"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("yt_checklist_templates_items_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [yt_checklist_templates_items.id],
|
|
name: "yt_checklist_templates_items_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const yt_checklist_templates = pgTable(
|
|
"yt_checklist_templates",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
channel: integer("channel_id").references(() => youtube_channels.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
type: enum_yt_checklist_templates_type("type").notNull(),
|
|
format: enum_yt_checklist_templates_format("format").default("all"),
|
|
isDefault: boolean("is_default"),
|
|
isActive: boolean("is_active").default(true),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("yt_checklist_templates_channel_idx").on(columns.channel),
|
|
index("yt_checklist_templates_updated_at_idx").on(columns.updatedAt),
|
|
index("yt_checklist_templates_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const yt_checklist_templates_locales = pgTable(
|
|
"yt_checklist_templates_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("yt_checklist_templates_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [yt_checklist_templates.id],
|
|
name: "yt_checklist_templates_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const yt_series = pgTable(
|
|
"yt_series",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
slug: varchar("slug").notNull(),
|
|
channel: integer("channel_id")
|
|
.notNull()
|
|
.references(() => youtube_channels.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
logo: integer("logo_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
coverImage: integer("cover_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
brandColor: varchar("brand_color"),
|
|
accentColor: varchar("accent_color"),
|
|
youtubePlaylistId: varchar("youtube_playlist_id"),
|
|
youtubePlaylistUrl: varchar("youtube_playlist_url"),
|
|
format: enum_yt_series_format("format"),
|
|
publishingFrequency: varchar("publishing_frequency"),
|
|
isActive: boolean("is_active").default(true),
|
|
order: numeric("order", { mode: "number" }).default(0),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("yt_series_channel_idx").on(columns.channel),
|
|
index("yt_series_logo_idx").on(columns.logo),
|
|
index("yt_series_cover_image_idx").on(columns.coverImage),
|
|
index("yt_series_updated_at_idx").on(columns.updatedAt),
|
|
index("yt_series_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const yt_series_locales = pgTable(
|
|
"yt_series_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
description: varchar("description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("yt_series_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [yt_series.id],
|
|
name: "yt_series_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const social_platforms_api_config_scopes = pgTable(
|
|
"social_platforms_api_config_scopes",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
scope: varchar("scope"),
|
|
},
|
|
(columns) => [
|
|
index("social_platforms_api_config_scopes_order_idx").on(columns._order),
|
|
index("social_platforms_api_config_scopes_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [social_platforms.id],
|
|
name: "social_platforms_api_config_scopes_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const social_platforms_interaction_types = pgTable(
|
|
"social_platforms_interaction_types",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
type: varchar("type").notNull(),
|
|
label: varchar("label").notNull(),
|
|
icon: varchar("icon"),
|
|
canReply: boolean("can_reply").default(true),
|
|
},
|
|
(columns) => [
|
|
index("social_platforms_interaction_types_order_idx").on(columns._order),
|
|
index("social_platforms_interaction_types_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [social_platforms.id],
|
|
name: "social_platforms_interaction_types_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const social_platforms = pgTable(
|
|
"social_platforms",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
name: varchar("name").notNull(),
|
|
slug: varchar("slug").notNull(),
|
|
icon: varchar("icon"),
|
|
color: varchar("color"),
|
|
isActive: boolean("is_active").default(true),
|
|
apiStatus: enum_social_platforms_api_status("api_status").default("disconnected"),
|
|
apiConfig_apiType: enum_social_platforms_api_config_api_type("api_config_api_type"),
|
|
apiConfig_baseUrl: varchar("api_config_base_url"),
|
|
apiConfig_authType: enum_social_platforms_api_config_auth_type("api_config_auth_type"),
|
|
rateLimits_requestsPerMinute: numeric("rate_limits_requests_per_minute", { mode: "number" }),
|
|
rateLimits_requestsPerDay: numeric("rate_limits_requests_per_day", { mode: "number" }),
|
|
rateLimits_quotaUnitsPerDay: numeric("rate_limits_quota_units_per_day", { mode: "number" }),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("social_platforms_slug_idx").on(columns.slug),
|
|
index("social_platforms_updated_at_idx").on(columns.updatedAt),
|
|
index("social_platforms_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const social_accounts = pgTable(
|
|
"social_accounts",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
platform: integer("platform_id")
|
|
.notNull()
|
|
.references(() => social_platforms.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
linkedChannel: integer("linked_channel_id").references(() => youtube_channels.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
displayName: varchar("display_name").notNull(),
|
|
accountHandle: varchar("account_handle"),
|
|
externalId: varchar("external_id"),
|
|
accountUrl: varchar("account_url"),
|
|
isActive: boolean("is_active").default(true),
|
|
credentials_accessToken: varchar("credentials_access_token"),
|
|
credentials_refreshToken: varchar("credentials_refresh_token"),
|
|
credentials_tokenExpiresAt: timestamp("credentials_token_expires_at", {
|
|
mode: "string",
|
|
withTimezone: true,
|
|
precision: 3,
|
|
}),
|
|
credentials_apiKey: varchar("credentials_api_key"),
|
|
stats_followers: numeric("stats_followers", { mode: "number" }),
|
|
stats_totalPosts: numeric("stats_total_posts", { mode: "number" }),
|
|
stats_lastSyncedAt: timestamp("stats_last_synced_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
syncSettings_autoSyncEnabled: boolean("sync_settings_auto_sync_enabled").default(true),
|
|
syncSettings_syncIntervalMinutes: numeric("sync_settings_sync_interval_minutes", { mode: "number" }).default(15),
|
|
syncSettings_syncComments: boolean("sync_settings_sync_comments").default(true),
|
|
syncSettings_syncDMs: boolean("sync_settings_sync_d_ms").default(false),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("social_accounts_platform_idx").on(columns.platform),
|
|
index("social_accounts_linked_channel_idx").on(columns.linkedChannel),
|
|
index("social_accounts_updated_at_idx").on(columns.updatedAt),
|
|
index("social_accounts_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const community_interactions_attachments = pgTable(
|
|
"community_interactions_attachments",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
type: enum_community_interactions_attachments_type("type"),
|
|
url: varchar("url"),
|
|
},
|
|
(columns) => [
|
|
index("community_interactions_attachments_order_idx").on(columns._order),
|
|
index("community_interactions_attachments_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [community_interactions.id],
|
|
name: "community_interactions_attachments_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const community_interactions_analysis_topics = pgTable(
|
|
"community_interactions_analysis_topics",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
topic: varchar("topic"),
|
|
},
|
|
(columns) => [
|
|
index("community_interactions_analysis_topics_order_idx").on(columns._order),
|
|
index("community_interactions_analysis_topics_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [community_interactions.id],
|
|
name: "community_interactions_analysis_topics_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const community_interactions = pgTable(
|
|
"community_interactions",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
platform: integer("platform_id")
|
|
.notNull()
|
|
.references(() => social_platforms.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
socialAccount: integer("social_account_id")
|
|
.notNull()
|
|
.references(() => social_accounts.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
linkedContent: integer("linked_content_id").references(() => youtube_content.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
type: enum_community_interactions_type("type").notNull(),
|
|
externalId: varchar("external_id").notNull(),
|
|
parentInteraction: integer("parent_interaction_id").references((): AnyPgColumn => community_interactions.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
author_name: varchar("author_name"),
|
|
author_handle: varchar("author_handle"),
|
|
author_profileUrl: varchar("author_profile_url"),
|
|
author_avatarUrl: varchar("author_avatar_url"),
|
|
author_isVerified: boolean("author_is_verified"),
|
|
author_isSubscriber: boolean("author_is_subscriber"),
|
|
author_isMember: boolean("author_is_member"),
|
|
author_subscriberCount: numeric("author_subscriber_count", { mode: "number" }),
|
|
message: varchar("message").notNull(),
|
|
messageHtml: varchar("message_html"),
|
|
publishedAt: timestamp("published_at", { mode: "string", withTimezone: true, precision: 3 }).notNull(),
|
|
analysis_sentiment: enum_community_interactions_analysis_sentiment("analysis_sentiment"),
|
|
analysis_sentimentScore: numeric("analysis_sentiment_score", { mode: "number" }),
|
|
analysis_confidence: numeric("analysis_confidence", { mode: "number" }),
|
|
analysis_language: varchar("analysis_language"),
|
|
analysis_suggestedTemplate: integer("analysis_suggested_template_id").references(() => community_templates.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
analysis_suggestedReply: varchar("analysis_suggested_reply"),
|
|
analysis_analyzedAt: timestamp("analysis_analyzed_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
flags_isMedicalQuestion: boolean("flags_is_medical_question"),
|
|
flags_requiresEscalation: boolean("flags_requires_escalation"),
|
|
flags_isSpam: boolean("flags_is_spam"),
|
|
flags_isFromInfluencer: boolean("flags_is_from_influencer"),
|
|
status: enum_community_interactions_status("status").notNull().default("new"),
|
|
priority: enum_community_interactions_priority("priority").notNull().default("normal"),
|
|
assignedTo: integer("assigned_to_id").references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
responseDeadline: timestamp("response_deadline", { mode: "string", withTimezone: true, precision: 3 }),
|
|
response_text: varchar("response_text"),
|
|
response_usedTemplate: integer("response_used_template_id").references(() => community_templates.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
response_sentAt: timestamp("response_sent_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
response_sentBy: integer("response_sent_by_id").references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
response_externalReplyId: varchar("response_external_reply_id"),
|
|
engagement_likes: numeric("engagement_likes", { mode: "number" }),
|
|
engagement_replies: numeric("engagement_replies", { mode: "number" }),
|
|
engagement_isHearted: boolean("engagement_is_hearted"),
|
|
engagement_isPinned: boolean("engagement_is_pinned"),
|
|
internalNotes: varchar("internal_notes"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("community_interactions_platform_idx").on(columns.platform),
|
|
index("community_interactions_social_account_idx").on(columns.socialAccount),
|
|
index("community_interactions_linked_content_idx").on(columns.linkedContent),
|
|
uniqueIndex("community_interactions_external_id_idx").on(columns.externalId),
|
|
index("community_interactions_parent_interaction_idx").on(columns.parentInteraction),
|
|
index("community_interactions_analysis_analysis_suggested_templ_idx").on(columns.analysis_suggestedTemplate),
|
|
index("community_interactions_status_idx").on(columns.status),
|
|
index("community_interactions_priority_idx").on(columns.priority),
|
|
index("community_interactions_assigned_to_idx").on(columns.assignedTo),
|
|
index("community_interactions_response_response_used_template_idx").on(columns.response_usedTemplate),
|
|
index("community_interactions_response_response_sent_by_idx").on(columns.response_sentBy),
|
|
index("community_interactions_updated_at_idx").on(columns.updatedAt),
|
|
index("community_interactions_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const community_templates_variables = pgTable(
|
|
"community_templates_variables",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
variable: varchar("variable").notNull(),
|
|
description: varchar("description"),
|
|
defaultValue: varchar("default_value"),
|
|
},
|
|
(columns) => [
|
|
index("community_templates_variables_order_idx").on(columns._order),
|
|
index("community_templates_variables_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [community_templates.id],
|
|
name: "community_templates_variables_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const community_templates_auto_suggest_keywords = pgTable(
|
|
"community_templates_auto_suggest_keywords",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
keyword: varchar("keyword").notNull(),
|
|
},
|
|
(columns) => [
|
|
index("community_templates_auto_suggest_keywords_order_idx").on(columns._order),
|
|
index("community_templates_auto_suggest_keywords_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [community_templates.id],
|
|
name: "community_templates_auto_suggest_keywords_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const community_templates = pgTable(
|
|
"community_templates",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
category: enum_community_templates_category("category").notNull(),
|
|
channel: integer("channel_id").references(() => youtube_channels.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
requiresReview: boolean("requires_review"),
|
|
isActive: boolean("is_active").default(true),
|
|
usageCount: numeric("usage_count", { mode: "number" }).default(0),
|
|
exampleOutput: varchar("example_output"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("community_templates_channel_idx").on(columns.channel),
|
|
index("community_templates_updated_at_idx").on(columns.updatedAt),
|
|
index("community_templates_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const community_templates_locales = pgTable(
|
|
"community_templates_locales",
|
|
{
|
|
name: varchar("name").notNull(),
|
|
template: varchar("template").notNull(),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("community_templates_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [community_templates.id],
|
|
name: "community_templates_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const community_templates_rels = pgTable(
|
|
"community_templates_rels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order"),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
"social-platformsID": integer("social_platforms_id"),
|
|
},
|
|
(columns) => [
|
|
index("community_templates_rels_order_idx").on(columns.order),
|
|
index("community_templates_rels_parent_idx").on(columns.parent),
|
|
index("community_templates_rels_path_idx").on(columns.path),
|
|
index("community_templates_rels_social_platforms_id_idx").on(columns["social-platformsID"]),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [community_templates.id],
|
|
name: "community_templates_rels_parent_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["social-platformsID"]],
|
|
foreignColumns: [social_platforms.id],
|
|
name: "community_templates_rels_social_platforms_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const community_rules_trigger_keywords = pgTable(
|
|
"community_rules_trigger_keywords",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
keyword: varchar("keyword"),
|
|
matchType: enum_community_rules_trigger_keywords_match_type("match_type").default("contains"),
|
|
},
|
|
(columns) => [
|
|
index("community_rules_trigger_keywords_order_idx").on(columns._order),
|
|
index("community_rules_trigger_keywords_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [community_rules.id],
|
|
name: "community_rules_trigger_keywords_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const community_rules_trigger_sentiment_values = pgTable(
|
|
"community_rules_trigger_sentiment_values",
|
|
{
|
|
order: integer("order").notNull(),
|
|
parent: integer("parent_id").notNull(),
|
|
value: enum_community_rules_trigger_sentiment_values("value"),
|
|
id: serial("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("community_rules_trigger_sentiment_values_order_idx").on(columns.order),
|
|
index("community_rules_trigger_sentiment_values_parent_idx").on(columns.parent),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [community_rules.id],
|
|
name: "community_rules_trigger_sentiment_values_parent_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const community_rules_actions = pgTable(
|
|
"community_rules_actions",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
action: enum_community_rules_actions_action("action").notNull(),
|
|
value: varchar("value"),
|
|
targetUser: integer("target_user_id").references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
targetTemplate: integer("target_template_id").references(() => community_templates.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
},
|
|
(columns) => [
|
|
index("community_rules_actions_order_idx").on(columns._order),
|
|
index("community_rules_actions_parent_id_idx").on(columns._parentID),
|
|
index("community_rules_actions_target_user_idx").on(columns.targetUser),
|
|
index("community_rules_actions_target_template_idx").on(columns.targetTemplate),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [community_rules.id],
|
|
name: "community_rules_actions_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const community_rules = pgTable(
|
|
"community_rules",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
name: varchar("name").notNull(),
|
|
priority: numeric("priority", { mode: "number" }).notNull().default(100),
|
|
isActive: boolean("is_active").default(true),
|
|
description: varchar("description"),
|
|
channel: integer("channel_id").references(() => youtube_channels.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
trigger_type: enum_community_rules_trigger_type("trigger_type").notNull(),
|
|
trigger_influencerMinFollowers: numeric("trigger_influencer_min_followers", { mode: "number" }).default(10000),
|
|
stats_timesTriggered: numeric("stats_times_triggered", { mode: "number" }).default(0),
|
|
stats_lastTriggeredAt: timestamp("stats_last_triggered_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("community_rules_channel_idx").on(columns.channel),
|
|
index("community_rules_updated_at_idx").on(columns.updatedAt),
|
|
index("community_rules_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const community_rules_rels = pgTable(
|
|
"community_rules_rels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order"),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
"social-platformsID": integer("social_platforms_id"),
|
|
},
|
|
(columns) => [
|
|
index("community_rules_rels_order_idx").on(columns.order),
|
|
index("community_rules_rels_parent_idx").on(columns.parent),
|
|
index("community_rules_rels_path_idx").on(columns.path),
|
|
index("community_rules_rels_social_platforms_id_idx").on(columns["social-platformsID"]),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [community_rules.id],
|
|
name: "community_rules_rels_parent_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["social-platformsID"]],
|
|
foreignColumns: [social_platforms.id],
|
|
name: "community_rules_rels_social_platforms_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const cookie_configurations_enabled_categories = pgTable(
|
|
"cookie_configurations_enabled_categories",
|
|
{
|
|
order: integer("order").notNull(),
|
|
parent: integer("parent_id").notNull(),
|
|
value: enum_cookie_configurations_enabled_categories("value"),
|
|
id: serial("id").primaryKey(),
|
|
},
|
|
(columns) => [
|
|
index("cookie_configurations_enabled_categories_order_idx").on(columns.order),
|
|
index("cookie_configurations_enabled_categories_parent_idx").on(columns.parent),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [cookie_configurations.id],
|
|
name: "cookie_configurations_enabled_categories_parent_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const cookie_configurations = pgTable(
|
|
"cookie_configurations",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id")
|
|
.notNull()
|
|
.references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
title: varchar("title").notNull().default("Cookie-Einstellungen"),
|
|
revision: numeric("revision", { mode: "number" }).notNull().default(1),
|
|
translations_de_bannerTitle: varchar("translations_de_banner_title").default("Wir respektieren Ihre Privatsphäre"),
|
|
translations_de_bannerDescription: varchar("translations_de_banner_description").default(
|
|
"Diese Website verwendet Cookies, um Ihnen die bestmögliche Erfahrung zu bieten.",
|
|
),
|
|
translations_de_acceptAllButton: varchar("translations_de_accept_all_button").default("Alle akzeptieren"),
|
|
translations_de_acceptNecessaryButton: varchar("translations_de_accept_necessary_button").default("Nur notwendige"),
|
|
translations_de_settingsButton: varchar("translations_de_settings_button").default("Einstellungen"),
|
|
translations_de_saveButton: varchar("translations_de_save_button").default("Auswahl speichern"),
|
|
translations_de_privacyPolicyUrl: varchar("translations_de_privacy_policy_url").default("/datenschutz"),
|
|
translations_de_categoryLabels_necessary_title: varchar("translations_de_category_labels_necessary_title").default(
|
|
"Notwendig",
|
|
),
|
|
translations_de_categoryLabels_necessary_description: varchar(
|
|
"translations_de_category_labels_necessary_description",
|
|
).default("Diese Cookies sind für die Grundfunktionen der Website erforderlich."),
|
|
translations_de_categoryLabels_functional_title: varchar(
|
|
"translations_de_category_labels_functional_title",
|
|
).default("Funktional"),
|
|
translations_de_categoryLabels_functional_description: varchar(
|
|
"translations_de_category_labels_functional_description",
|
|
).default("Diese Cookies ermöglichen erweiterte Funktionen."),
|
|
translations_de_categoryLabels_analytics_title: varchar("translations_de_category_labels_analytics_title").default(
|
|
"Statistik",
|
|
),
|
|
translations_de_categoryLabels_analytics_description: varchar(
|
|
"translations_de_category_labels_analytics_description",
|
|
).default("Diese Cookies helfen uns zu verstehen, wie Besucher die Website nutzen."),
|
|
translations_de_categoryLabels_marketing_title: varchar("translations_de_category_labels_marketing_title").default(
|
|
"Marketing",
|
|
),
|
|
translations_de_categoryLabels_marketing_description: varchar(
|
|
"translations_de_category_labels_marketing_description",
|
|
).default("Diese Cookies werden für Werbezwecke verwendet."),
|
|
styling_position: enum_cookie_configurations_styling_position("styling_position").default("bottom"),
|
|
styling_theme: enum_cookie_configurations_styling_theme("styling_theme").default("dark"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("cookie_configurations_tenant_idx").on(columns.tenant),
|
|
index("cookie_configurations_updated_at_idx").on(columns.updatedAt),
|
|
index("cookie_configurations_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const cookie_inventory = pgTable(
|
|
"cookie_inventory",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id")
|
|
.notNull()
|
|
.references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
name: varchar("name").notNull(),
|
|
provider: varchar("provider").notNull(),
|
|
category: enum_cookie_inventory_category("category").notNull(),
|
|
duration: varchar("duration").notNull(),
|
|
description: varchar("description").notNull(),
|
|
isActive: boolean("is_active").default(true),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("cookie_inventory_tenant_idx").on(columns.tenant),
|
|
index("cookie_inventory_updated_at_idx").on(columns.updatedAt),
|
|
index("cookie_inventory_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const consent_logs = pgTable(
|
|
"consent_logs",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
consentId: varchar("consent_id").notNull(),
|
|
clientRef: varchar("client_ref"),
|
|
tenant: integer("tenant_id")
|
|
.notNull()
|
|
.references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
categories: jsonb("categories").notNull(),
|
|
revision: numeric("revision", { mode: "number" }).notNull(),
|
|
userAgent: varchar("user_agent"),
|
|
anonymizedIp: varchar("anonymized_ip"),
|
|
expiresAt: timestamp("expires_at", { mode: "string", withTimezone: true, precision: 3 }).notNull(),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("consent_logs_consent_id_idx").on(columns.consentId),
|
|
index("consent_logs_tenant_idx").on(columns.tenant),
|
|
index("consent_logs_updated_at_idx").on(columns.updatedAt),
|
|
index("consent_logs_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const privacy_policy_settings = pgTable(
|
|
"privacy_policy_settings",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id")
|
|
.notNull()
|
|
.references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
title: varchar("title").notNull().default("Datenschutzerklärung"),
|
|
provider: enum_privacy_policy_settings_provider("provider").notNull().default("alfright"),
|
|
alfright_tenantId: varchar("alfright_tenant_id").default("alfright_schutzteam"),
|
|
alfright_apiKey: varchar("alfright_api_key"),
|
|
alfright_language: enum_privacy_policy_settings_alfright_language("alfright_language").default("de-de"),
|
|
alfright_iframeHeight: numeric("alfright_iframe_height", { mode: "number" }).default(4000),
|
|
styling_headerColor: varchar("styling_header_color").default("#ca8a04"),
|
|
styling_headerFont: varchar("styling_header_font").default("Inter, sans-serif"),
|
|
styling_headerSize: varchar("styling_header_size").default("24px"),
|
|
styling_subheaderSize: varchar("styling_subheader_size").default("18px"),
|
|
styling_fontColor: varchar("styling_font_color").default("#f3f4f6"),
|
|
styling_textFont: varchar("styling_text_font").default("Inter, sans-serif"),
|
|
styling_textSize: varchar("styling_text_size").default("16px"),
|
|
styling_linkColor: varchar("styling_link_color").default("#ca8a04"),
|
|
styling_backgroundColor: varchar("styling_background_color").default("#111827"),
|
|
showCookieTable: boolean("show_cookie_table").default(true),
|
|
cookieTableTitle: varchar("cookie_table_title").default("Übersicht der verwendeten Cookies"),
|
|
cookieTableDescription: varchar("cookie_table_description").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_metaTitle: varchar("seo_meta_title").default("Datenschutzerklärung"),
|
|
seo_metaDescription: varchar("seo_meta_description").default(
|
|
"Informationen zum Datenschutz und zur Verarbeitung Ihrer personenbezogenen Daten.",
|
|
),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("privacy_policy_settings_tenant_idx").on(columns.tenant),
|
|
index("privacy_policy_settings_updated_at_idx").on(columns.updatedAt),
|
|
index("privacy_policy_settings_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const email_logs = pgTable(
|
|
"email_logs",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id")
|
|
.notNull()
|
|
.references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
to: varchar("to").notNull(),
|
|
from: varchar("from").notNull(),
|
|
subject: varchar("subject").notNull(),
|
|
status: enum_email_logs_status("status").notNull().default("pending"),
|
|
messageId: varchar("message_id"),
|
|
error: varchar("error"),
|
|
source: enum_email_logs_source("source").notNull().default("manual"),
|
|
metadata: jsonb("metadata"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("email_logs_tenant_idx").on(columns.tenant),
|
|
index("email_logs_updated_at_idx").on(columns.updatedAt),
|
|
index("email_logs_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const audit_logs = pgTable(
|
|
"audit_logs",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
action: enum_audit_logs_action("action").notNull(),
|
|
severity: enum_audit_logs_severity("severity").notNull().default("info"),
|
|
entityType: enum_audit_logs_entity_type("entity_type"),
|
|
entityId: varchar("entity_id"),
|
|
user: integer("user_id").references(() => users.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
userEmail: varchar("user_email"),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
ipAddress: varchar("ip_address"),
|
|
userAgent: varchar("user_agent"),
|
|
description: varchar("description"),
|
|
previousValue: jsonb("previous_value"),
|
|
newValue: jsonb("new_value"),
|
|
metadata: jsonb("metadata"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("audit_logs_user_idx").on(columns.user),
|
|
index("audit_logs_tenant_idx").on(columns.tenant),
|
|
index("audit_logs_updated_at_idx").on(columns.updatedAt),
|
|
index("audit_logs_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const site_settings = pgTable(
|
|
"site_settings",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
logo: integer("logo_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
favicon: integer("favicon_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
contact_email: varchar("contact_email"),
|
|
contact_phone: varchar("contact_phone"),
|
|
contact_fax: varchar("contact_fax"),
|
|
address_street: varchar("address_street"),
|
|
address_additionalLine: varchar("address_additional_line"),
|
|
address_zip: varchar("address_zip"),
|
|
address_city: varchar("address_city"),
|
|
address_state: varchar("address_state"),
|
|
address_country: varchar("address_country").default("Deutschland"),
|
|
geo_lat: numeric("geo_lat", { mode: "number" }),
|
|
geo_lng: numeric("geo_lng", { mode: "number" }),
|
|
geo_zoom: numeric("geo_zoom", { mode: "number" }).default(15),
|
|
footer_showSocialLinks: boolean("footer_show_social_links").default(true),
|
|
seo_defaultOgImage: integer("seo_default_og_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("site_settings_tenant_idx").on(columns.tenant),
|
|
index("site_settings_logo_idx").on(columns.logo),
|
|
index("site_settings_favicon_idx").on(columns.favicon),
|
|
index("site_settings_seo_seo_default_og_image_idx").on(columns.seo_defaultOgImage),
|
|
index("site_settings_updated_at_idx").on(columns.updatedAt),
|
|
index("site_settings_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const site_settings_locales = pgTable(
|
|
"site_settings_locales",
|
|
{
|
|
siteName: varchar("site_name").notNull(),
|
|
siteTagline: varchar("site_tagline"),
|
|
footer_copyrightText: varchar("footer_copyright_text"),
|
|
seo_defaultMetaTitle: varchar("seo_default_meta_title"),
|
|
seo_defaultMetaDescription: varchar("seo_default_meta_description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("site_settings_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [site_settings.id],
|
|
name: "site_settings_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const navigations_main_menu_submenu = pgTable(
|
|
"navigations_main_menu_submenu",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
linkType: enum_navigations_main_menu_submenu_link_type("link_type").default("page"),
|
|
page: integer("page_id").references(() => pages.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
url: varchar("url"),
|
|
},
|
|
(columns) => [
|
|
index("navigations_main_menu_submenu_order_idx").on(columns._order),
|
|
index("navigations_main_menu_submenu_parent_id_idx").on(columns._parentID),
|
|
index("navigations_main_menu_submenu_page_idx").on(columns.page),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [navigations_main_menu.id],
|
|
name: "navigations_main_menu_submenu_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const navigations_main_menu_submenu_locales = pgTable(
|
|
"navigations_main_menu_submenu_locales",
|
|
{
|
|
label: varchar("label"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("navigations_main_menu_submenu_locales_locale_parent_id_uniqu").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [navigations_main_menu_submenu.id],
|
|
name: "navigations_main_menu_submenu_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const navigations_main_menu = pgTable(
|
|
"navigations_main_menu",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
type: enum_navigations_main_menu_type("type").default("page"),
|
|
page: integer("page_id").references(() => pages.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
url: varchar("url"),
|
|
openInNewTab: boolean("open_in_new_tab").default(false),
|
|
},
|
|
(columns) => [
|
|
index("navigations_main_menu_order_idx").on(columns._order),
|
|
index("navigations_main_menu_parent_id_idx").on(columns._parentID),
|
|
index("navigations_main_menu_page_idx").on(columns.page),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [navigations.id],
|
|
name: "navigations_main_menu_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const navigations_main_menu_locales = pgTable(
|
|
"navigations_main_menu_locales",
|
|
{
|
|
label: varchar("label").notNull(),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("navigations_main_menu_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [navigations_main_menu.id],
|
|
name: "navigations_main_menu_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const navigations_footer_menu = pgTable(
|
|
"navigations_footer_menu",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
linkType: enum_navigations_footer_menu_link_type("link_type").default("page"),
|
|
page: integer("page_id").references(() => pages.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
url: varchar("url"),
|
|
},
|
|
(columns) => [
|
|
index("navigations_footer_menu_order_idx").on(columns._order),
|
|
index("navigations_footer_menu_parent_id_idx").on(columns._parentID),
|
|
index("navigations_footer_menu_page_idx").on(columns.page),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [navigations.id],
|
|
name: "navigations_footer_menu_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const navigations_footer_menu_locales = pgTable(
|
|
"navigations_footer_menu_locales",
|
|
{
|
|
label: varchar("label").notNull(),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("navigations_footer_menu_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [navigations_footer_menu.id],
|
|
name: "navigations_footer_menu_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const navigations = pgTable(
|
|
"navigations",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
tenant: integer("tenant_id").references(() => tenants.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
title: varchar("title").notNull().default("Hauptnavigation"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("navigations_tenant_idx").on(columns.tenant),
|
|
index("navigations_updated_at_idx").on(columns.updatedAt),
|
|
index("navigations_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const forms_blocks_checkbox = pgTable(
|
|
"forms_blocks_checkbox",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
name: varchar("name").notNull(),
|
|
width: numeric("width", { mode: "number" }),
|
|
required: boolean("required"),
|
|
defaultValue: boolean("default_value"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("forms_blocks_checkbox_order_idx").on(columns._order),
|
|
index("forms_blocks_checkbox_parent_id_idx").on(columns._parentID),
|
|
index("forms_blocks_checkbox_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms.id],
|
|
name: "forms_blocks_checkbox_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms_blocks_checkbox_locales = pgTable(
|
|
"forms_blocks_checkbox_locales",
|
|
{
|
|
label: varchar("label"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("forms_blocks_checkbox_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms_blocks_checkbox.id],
|
|
name: "forms_blocks_checkbox_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms_blocks_email = pgTable(
|
|
"forms_blocks_email",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
name: varchar("name").notNull(),
|
|
width: numeric("width", { mode: "number" }),
|
|
required: boolean("required"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("forms_blocks_email_order_idx").on(columns._order),
|
|
index("forms_blocks_email_parent_id_idx").on(columns._parentID),
|
|
index("forms_blocks_email_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms.id],
|
|
name: "forms_blocks_email_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms_blocks_email_locales = pgTable(
|
|
"forms_blocks_email_locales",
|
|
{
|
|
label: varchar("label"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("forms_blocks_email_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms_blocks_email.id],
|
|
name: "forms_blocks_email_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms_blocks_message = pgTable(
|
|
"forms_blocks_message",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("forms_blocks_message_order_idx").on(columns._order),
|
|
index("forms_blocks_message_parent_id_idx").on(columns._parentID),
|
|
index("forms_blocks_message_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms.id],
|
|
name: "forms_blocks_message_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms_blocks_message_locales = pgTable(
|
|
"forms_blocks_message_locales",
|
|
{
|
|
message: jsonb("message"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("forms_blocks_message_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms_blocks_message.id],
|
|
name: "forms_blocks_message_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms_blocks_number = pgTable(
|
|
"forms_blocks_number",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
name: varchar("name").notNull(),
|
|
width: numeric("width", { mode: "number" }),
|
|
defaultValue: numeric("default_value", { mode: "number" }),
|
|
required: boolean("required"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("forms_blocks_number_order_idx").on(columns._order),
|
|
index("forms_blocks_number_parent_id_idx").on(columns._parentID),
|
|
index("forms_blocks_number_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms.id],
|
|
name: "forms_blocks_number_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms_blocks_number_locales = pgTable(
|
|
"forms_blocks_number_locales",
|
|
{
|
|
label: varchar("label"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("forms_blocks_number_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms_blocks_number.id],
|
|
name: "forms_blocks_number_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms_blocks_select_options = pgTable(
|
|
"forms_blocks_select_options",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
value: varchar("value").notNull(),
|
|
},
|
|
(columns) => [
|
|
index("forms_blocks_select_options_order_idx").on(columns._order),
|
|
index("forms_blocks_select_options_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms_blocks_select.id],
|
|
name: "forms_blocks_select_options_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms_blocks_select_options_locales = pgTable(
|
|
"forms_blocks_select_options_locales",
|
|
{
|
|
label: varchar("label").notNull(),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("forms_blocks_select_options_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms_blocks_select_options.id],
|
|
name: "forms_blocks_select_options_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms_blocks_select = pgTable(
|
|
"forms_blocks_select",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
name: varchar("name").notNull(),
|
|
width: numeric("width", { mode: "number" }),
|
|
placeholder: varchar("placeholder"),
|
|
required: boolean("required"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("forms_blocks_select_order_idx").on(columns._order),
|
|
index("forms_blocks_select_parent_id_idx").on(columns._parentID),
|
|
index("forms_blocks_select_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms.id],
|
|
name: "forms_blocks_select_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms_blocks_select_locales = pgTable(
|
|
"forms_blocks_select_locales",
|
|
{
|
|
label: varchar("label"),
|
|
defaultValue: varchar("default_value"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("forms_blocks_select_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms_blocks_select.id],
|
|
name: "forms_blocks_select_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms_blocks_text = pgTable(
|
|
"forms_blocks_text",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
name: varchar("name").notNull(),
|
|
width: numeric("width", { mode: "number" }),
|
|
required: boolean("required"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("forms_blocks_text_order_idx").on(columns._order),
|
|
index("forms_blocks_text_parent_id_idx").on(columns._parentID),
|
|
index("forms_blocks_text_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms.id],
|
|
name: "forms_blocks_text_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms_blocks_text_locales = pgTable(
|
|
"forms_blocks_text_locales",
|
|
{
|
|
label: varchar("label"),
|
|
defaultValue: varchar("default_value"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("forms_blocks_text_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms_blocks_text.id],
|
|
name: "forms_blocks_text_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms_blocks_textarea = pgTable(
|
|
"forms_blocks_textarea",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
_path: text("_path").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
name: varchar("name").notNull(),
|
|
width: numeric("width", { mode: "number" }),
|
|
required: boolean("required"),
|
|
blockName: varchar("block_name"),
|
|
},
|
|
(columns) => [
|
|
index("forms_blocks_textarea_order_idx").on(columns._order),
|
|
index("forms_blocks_textarea_parent_id_idx").on(columns._parentID),
|
|
index("forms_blocks_textarea_path_idx").on(columns._path),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms.id],
|
|
name: "forms_blocks_textarea_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms_blocks_textarea_locales = pgTable(
|
|
"forms_blocks_textarea_locales",
|
|
{
|
|
label: varchar("label"),
|
|
defaultValue: varchar("default_value"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("forms_blocks_textarea_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms_blocks_textarea.id],
|
|
name: "forms_blocks_textarea_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms_emails = pgTable(
|
|
"forms_emails",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
emailTo: varchar("email_to"),
|
|
cc: varchar("cc"),
|
|
bcc: varchar("bcc"),
|
|
replyTo: varchar("reply_to"),
|
|
emailFrom: varchar("email_from"),
|
|
},
|
|
(columns) => [
|
|
index("forms_emails_order_idx").on(columns._order),
|
|
index("forms_emails_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms.id],
|
|
name: "forms_emails_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms_emails_locales = pgTable(
|
|
"forms_emails_locales",
|
|
{
|
|
subject: varchar("subject").notNull().default("You've received a new message."),
|
|
message: jsonb("message"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: varchar("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("forms_emails_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms_emails.id],
|
|
name: "forms_emails_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms = pgTable(
|
|
"forms",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
title: varchar("title").notNull(),
|
|
confirmationType: enum_forms_confirmation_type("confirmation_type").default("message"),
|
|
redirect_type: enum_forms_redirect_type("redirect_type").default("reference"),
|
|
redirect_url: varchar("redirect_url"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("forms_updated_at_idx").on(columns.updatedAt),
|
|
index("forms_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const forms_locales = pgTable(
|
|
"forms_locales",
|
|
{
|
|
submitButtonLabel: varchar("submit_button_label"),
|
|
confirmationMessage: jsonb("confirmation_message"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("forms_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [forms.id],
|
|
name: "forms_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const forms_rels = pgTable(
|
|
"forms_rels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order"),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
pagesID: integer("pages_id"),
|
|
},
|
|
(columns) => [
|
|
index("forms_rels_order_idx").on(columns.order),
|
|
index("forms_rels_parent_idx").on(columns.parent),
|
|
index("forms_rels_path_idx").on(columns.path),
|
|
index("forms_rels_pages_id_idx").on(columns.pagesID),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [forms.id],
|
|
name: "forms_rels_parent_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["pagesID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "forms_rels_pages_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const form_submissions_submission_data = pgTable(
|
|
"form_submissions_submission_data",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
field: varchar("field").notNull(),
|
|
value: varchar("value").notNull(),
|
|
},
|
|
(columns) => [
|
|
index("form_submissions_submission_data_order_idx").on(columns._order),
|
|
index("form_submissions_submission_data_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [form_submissions.id],
|
|
name: "form_submissions_submission_data_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const form_submissions = pgTable(
|
|
"form_submissions",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
form: integer("form_id")
|
|
.notNull()
|
|
.references(() => forms.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("form_submissions_form_idx").on(columns.form),
|
|
index("form_submissions_updated_at_idx").on(columns.updatedAt),
|
|
index("form_submissions_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const redirects = pgTable(
|
|
"redirects",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
from: varchar("from").notNull(),
|
|
to_type: enum_redirects_to_type("to_type").default("reference"),
|
|
to_url: varchar("to_url"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("redirects_from_idx").on(columns.from),
|
|
index("redirects_updated_at_idx").on(columns.updatedAt),
|
|
index("redirects_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const redirects_rels = pgTable(
|
|
"redirects_rels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order"),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
pagesID: integer("pages_id"),
|
|
},
|
|
(columns) => [
|
|
index("redirects_rels_order_idx").on(columns.order),
|
|
index("redirects_rels_parent_idx").on(columns.parent),
|
|
index("redirects_rels_path_idx").on(columns.path),
|
|
index("redirects_rels_pages_id_idx").on(columns.pagesID),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [redirects.id],
|
|
name: "redirects_rels_parent_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["pagesID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "redirects_rels_pages_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const payload_kv = pgTable(
|
|
"payload_kv",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
key: varchar("key").notNull(),
|
|
data: jsonb("data").notNull(),
|
|
},
|
|
(columns) => [uniqueIndex("payload_kv_key_idx").on(columns.key)],
|
|
);
|
|
|
|
export const payload_locked_documents = pgTable(
|
|
"payload_locked_documents",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
globalSlug: varchar("global_slug"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("payload_locked_documents_global_slug_idx").on(columns.globalSlug),
|
|
index("payload_locked_documents_updated_at_idx").on(columns.updatedAt),
|
|
index("payload_locked_documents_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const payload_locked_documents_rels = pgTable(
|
|
"payload_locked_documents_rels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order"),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
usersID: integer("users_id"),
|
|
mediaID: integer("media_id"),
|
|
tenantsID: integer("tenants_id"),
|
|
pagesID: integer("pages_id"),
|
|
postsID: integer("posts_id"),
|
|
categoriesID: integer("categories_id"),
|
|
"social-linksID": integer("social_links_id"),
|
|
testimonialsID: integer("testimonials_id"),
|
|
faqsID: integer("faqs_id"),
|
|
teamID: integer("team_id"),
|
|
"service-categoriesID": integer("service_categories_id"),
|
|
servicesID: integer("services_id"),
|
|
"newsletter-subscribersID": integer("newsletter_subscribers_id"),
|
|
"portfolio-categoriesID": integer("portfolio_categories_id"),
|
|
portfoliosID: integer("portfolios_id"),
|
|
"video-categoriesID": integer("video_categories_id"),
|
|
videosID: integer("videos_id"),
|
|
"product-categoriesID": integer("product_categories_id"),
|
|
productsID: integer("products_id"),
|
|
timelinesID: integer("timelines_id"),
|
|
workflowsID: integer("workflows_id"),
|
|
tagsID: integer("tags_id"),
|
|
authorsID: integer("authors_id"),
|
|
locationsID: integer("locations_id"),
|
|
partnersID: integer("partners_id"),
|
|
jobsID: integer("jobs_id"),
|
|
downloadsID: integer("downloads_id"),
|
|
eventsID: integer("events_id"),
|
|
bookingsID: integer("bookings_id"),
|
|
certificationsID: integer("certifications_id"),
|
|
projectsID: integer("projects_id"),
|
|
favoritesID: integer("favorites_id"),
|
|
seriesID: integer("series_id"),
|
|
"youtube-channelsID": integer("youtube_channels_id"),
|
|
"youtube-contentID": integer("youtube_content_id"),
|
|
"yt-tasksID": integer("yt_tasks_id"),
|
|
"yt-notificationsID": integer("yt_notifications_id"),
|
|
"yt-batchesID": integer("yt_batches_id"),
|
|
"yt-monthly-goalsID": integer("yt_monthly_goals_id"),
|
|
"yt-script-templatesID": integer("yt_script_tpl_id"),
|
|
"yt-checklist-templatesID": integer("yt_checklist_templates_id"),
|
|
"yt-seriesID": integer("yt_series_id"),
|
|
"social-platformsID": integer("social_platforms_id"),
|
|
"social-accountsID": integer("social_accounts_id"),
|
|
"community-interactionsID": integer("community_interactions_id"),
|
|
"community-templatesID": integer("community_templates_id"),
|
|
"community-rulesID": integer("community_rules_id"),
|
|
"cookie-configurationsID": integer("cookie_configurations_id"),
|
|
"cookie-inventoryID": integer("cookie_inventory_id"),
|
|
"consent-logsID": integer("consent_logs_id"),
|
|
"privacy-policy-settingsID": integer("privacy_policy_settings_id"),
|
|
"email-logsID": integer("email_logs_id"),
|
|
"audit-logsID": integer("audit_logs_id"),
|
|
"site-settingsID": integer("site_settings_id"),
|
|
navigationsID: integer("navigations_id"),
|
|
formsID: integer("forms_id"),
|
|
"form-submissionsID": integer("form_submissions_id"),
|
|
redirectsID: integer("redirects_id"),
|
|
},
|
|
(columns) => [
|
|
index("payload_locked_documents_rels_order_idx").on(columns.order),
|
|
index("payload_locked_documents_rels_parent_idx").on(columns.parent),
|
|
index("payload_locked_documents_rels_path_idx").on(columns.path),
|
|
index("payload_locked_documents_rels_users_id_idx").on(columns.usersID),
|
|
index("payload_locked_documents_rels_media_id_idx").on(columns.mediaID),
|
|
index("payload_locked_documents_rels_tenants_id_idx").on(columns.tenantsID),
|
|
index("payload_locked_documents_rels_pages_id_idx").on(columns.pagesID),
|
|
index("payload_locked_documents_rels_posts_id_idx").on(columns.postsID),
|
|
index("payload_locked_documents_rels_categories_id_idx").on(columns.categoriesID),
|
|
index("payload_locked_documents_rels_social_links_id_idx").on(columns["social-linksID"]),
|
|
index("payload_locked_documents_rels_testimonials_id_idx").on(columns.testimonialsID),
|
|
index("payload_locked_documents_rels_faqs_id_idx").on(columns.faqsID),
|
|
index("payload_locked_documents_rels_team_id_idx").on(columns.teamID),
|
|
index("payload_locked_documents_rels_service_categories_id_idx").on(columns["service-categoriesID"]),
|
|
index("payload_locked_documents_rels_services_id_idx").on(columns.servicesID),
|
|
index("payload_locked_documents_rels_newsletter_subscribers_id_idx").on(columns["newsletter-subscribersID"]),
|
|
index("payload_locked_documents_rels_portfolio_categories_id_idx").on(columns["portfolio-categoriesID"]),
|
|
index("payload_locked_documents_rels_portfolios_id_idx").on(columns.portfoliosID),
|
|
index("payload_locked_documents_rels_video_categories_id_idx").on(columns["video-categoriesID"]),
|
|
index("payload_locked_documents_rels_videos_id_idx").on(columns.videosID),
|
|
index("payload_locked_documents_rels_product_categories_id_idx").on(columns["product-categoriesID"]),
|
|
index("payload_locked_documents_rels_products_id_idx").on(columns.productsID),
|
|
index("payload_locked_documents_rels_timelines_id_idx").on(columns.timelinesID),
|
|
index("payload_locked_documents_rels_workflows_id_idx").on(columns.workflowsID),
|
|
index("payload_locked_documents_rels_tags_id_idx").on(columns.tagsID),
|
|
index("payload_locked_documents_rels_authors_id_idx").on(columns.authorsID),
|
|
index("payload_locked_documents_rels_locations_id_idx").on(columns.locationsID),
|
|
index("payload_locked_documents_rels_partners_id_idx").on(columns.partnersID),
|
|
index("payload_locked_documents_rels_jobs_id_idx").on(columns.jobsID),
|
|
index("payload_locked_documents_rels_downloads_id_idx").on(columns.downloadsID),
|
|
index("payload_locked_documents_rels_events_id_idx").on(columns.eventsID),
|
|
index("payload_locked_documents_rels_bookings_id_idx").on(columns.bookingsID),
|
|
index("payload_locked_documents_rels_certifications_id_idx").on(columns.certificationsID),
|
|
index("payload_locked_documents_rels_projects_id_idx").on(columns.projectsID),
|
|
index("payload_locked_documents_rels_favorites_id_idx").on(columns.favoritesID),
|
|
index("payload_locked_documents_rels_series_id_idx").on(columns.seriesID),
|
|
index("payload_locked_documents_rels_youtube_channels_id_idx").on(columns["youtube-channelsID"]),
|
|
index("payload_locked_documents_rels_youtube_content_id_idx").on(columns["youtube-contentID"]),
|
|
index("payload_locked_documents_rels_yt_tasks_id_idx").on(columns["yt-tasksID"]),
|
|
index("payload_locked_documents_rels_yt_notifications_id_idx").on(columns["yt-notificationsID"]),
|
|
index("payload_locked_documents_rels_yt_batches_id_idx").on(columns["yt-batchesID"]),
|
|
index("payload_locked_documents_rels_yt_monthly_goals_id_idx").on(columns["yt-monthly-goalsID"]),
|
|
index("payload_locked_documents_rels_yt_script_tpl_id_idx").on(columns["yt-script-templatesID"]),
|
|
index("payload_locked_documents_rels_yt_checklist_templates_id_idx").on(columns["yt-checklist-templatesID"]),
|
|
index("payload_locked_documents_rels_yt_series_id_idx").on(columns["yt-seriesID"]),
|
|
index("payload_locked_documents_rels_social_platforms_id_idx").on(columns["social-platformsID"]),
|
|
index("payload_locked_documents_rels_social_accounts_id_idx").on(columns["social-accountsID"]),
|
|
index("payload_locked_documents_rels_community_interactions_id_idx").on(columns["community-interactionsID"]),
|
|
index("payload_locked_documents_rels_community_templates_id_idx").on(columns["community-templatesID"]),
|
|
index("payload_locked_documents_rels_community_rules_id_idx").on(columns["community-rulesID"]),
|
|
index("payload_locked_documents_rels_cookie_configurations_id_idx").on(columns["cookie-configurationsID"]),
|
|
index("payload_locked_documents_rels_cookie_inventory_id_idx").on(columns["cookie-inventoryID"]),
|
|
index("payload_locked_documents_rels_consent_logs_id_idx").on(columns["consent-logsID"]),
|
|
index("payload_locked_documents_rels_privacy_policy_settings_id_idx").on(columns["privacy-policy-settingsID"]),
|
|
index("payload_locked_documents_rels_email_logs_id_idx").on(columns["email-logsID"]),
|
|
index("payload_locked_documents_rels_audit_logs_id_idx").on(columns["audit-logsID"]),
|
|
index("payload_locked_documents_rels_site_settings_id_idx").on(columns["site-settingsID"]),
|
|
index("payload_locked_documents_rels_navigations_id_idx").on(columns.navigationsID),
|
|
index("payload_locked_documents_rels_forms_id_idx").on(columns.formsID),
|
|
index("payload_locked_documents_rels_form_submissions_id_idx").on(columns["form-submissionsID"]),
|
|
index("payload_locked_documents_rels_redirects_id_idx").on(columns.redirectsID),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [payload_locked_documents.id],
|
|
name: "payload_locked_documents_rels_parent_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["usersID"]],
|
|
foreignColumns: [users.id],
|
|
name: "payload_locked_documents_rels_users_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["mediaID"]],
|
|
foreignColumns: [media.id],
|
|
name: "payload_locked_documents_rels_media_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["tenantsID"]],
|
|
foreignColumns: [tenants.id],
|
|
name: "payload_locked_documents_rels_tenants_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["pagesID"]],
|
|
foreignColumns: [pages.id],
|
|
name: "payload_locked_documents_rels_pages_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["postsID"]],
|
|
foreignColumns: [posts.id],
|
|
name: "payload_locked_documents_rels_posts_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["categoriesID"]],
|
|
foreignColumns: [categories.id],
|
|
name: "payload_locked_documents_rels_categories_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["social-linksID"]],
|
|
foreignColumns: [social_links.id],
|
|
name: "payload_locked_documents_rels_social_links_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["testimonialsID"]],
|
|
foreignColumns: [testimonials.id],
|
|
name: "payload_locked_documents_rels_testimonials_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["faqsID"]],
|
|
foreignColumns: [faqs.id],
|
|
name: "payload_locked_documents_rels_faqs_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["teamID"]],
|
|
foreignColumns: [team.id],
|
|
name: "payload_locked_documents_rels_team_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["service-categoriesID"]],
|
|
foreignColumns: [service_categories.id],
|
|
name: "payload_locked_documents_rels_service_categories_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["servicesID"]],
|
|
foreignColumns: [services.id],
|
|
name: "payload_locked_documents_rels_services_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["newsletter-subscribersID"]],
|
|
foreignColumns: [newsletter_subscribers.id],
|
|
name: "payload_locked_documents_rels_newsletter_subscribers_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["portfolio-categoriesID"]],
|
|
foreignColumns: [portfolio_categories.id],
|
|
name: "payload_locked_documents_rels_portfolio_categories_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["portfoliosID"]],
|
|
foreignColumns: [portfolios.id],
|
|
name: "payload_locked_documents_rels_portfolios_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["video-categoriesID"]],
|
|
foreignColumns: [video_categories.id],
|
|
name: "payload_locked_documents_rels_video_categories_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["videosID"]],
|
|
foreignColumns: [videos.id],
|
|
name: "payload_locked_documents_rels_videos_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["product-categoriesID"]],
|
|
foreignColumns: [product_categories.id],
|
|
name: "payload_locked_documents_rels_product_categories_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["productsID"]],
|
|
foreignColumns: [products.id],
|
|
name: "payload_locked_documents_rels_products_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["timelinesID"]],
|
|
foreignColumns: [timelines.id],
|
|
name: "payload_locked_documents_rels_timelines_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["workflowsID"]],
|
|
foreignColumns: [workflows.id],
|
|
name: "payload_locked_documents_rels_workflows_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["tagsID"]],
|
|
foreignColumns: [tags.id],
|
|
name: "payload_locked_documents_rels_tags_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["authorsID"]],
|
|
foreignColumns: [authors.id],
|
|
name: "payload_locked_documents_rels_authors_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["locationsID"]],
|
|
foreignColumns: [locations.id],
|
|
name: "payload_locked_documents_rels_locations_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["partnersID"]],
|
|
foreignColumns: [partners.id],
|
|
name: "payload_locked_documents_rels_partners_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["jobsID"]],
|
|
foreignColumns: [jobs.id],
|
|
name: "payload_locked_documents_rels_jobs_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["downloadsID"]],
|
|
foreignColumns: [downloads.id],
|
|
name: "payload_locked_documents_rels_downloads_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["eventsID"]],
|
|
foreignColumns: [events.id],
|
|
name: "payload_locked_documents_rels_events_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["bookingsID"]],
|
|
foreignColumns: [bookings.id],
|
|
name: "payload_locked_documents_rels_bookings_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["certificationsID"]],
|
|
foreignColumns: [certifications.id],
|
|
name: "payload_locked_documents_rels_certifications_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["projectsID"]],
|
|
foreignColumns: [projects.id],
|
|
name: "payload_locked_documents_rels_projects_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["favoritesID"]],
|
|
foreignColumns: [favorites.id],
|
|
name: "payload_locked_documents_rels_favorites_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["seriesID"]],
|
|
foreignColumns: [series.id],
|
|
name: "payload_locked_documents_rels_series_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["youtube-channelsID"]],
|
|
foreignColumns: [youtube_channels.id],
|
|
name: "payload_locked_documents_rels_youtube_channels_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["youtube-contentID"]],
|
|
foreignColumns: [youtube_content.id],
|
|
name: "payload_locked_documents_rels_youtube_content_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["yt-tasksID"]],
|
|
foreignColumns: [yt_tasks.id],
|
|
name: "payload_locked_documents_rels_yt_tasks_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["yt-notificationsID"]],
|
|
foreignColumns: [yt_notifications.id],
|
|
name: "payload_locked_documents_rels_yt_notifications_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["yt-batchesID"]],
|
|
foreignColumns: [yt_batches.id],
|
|
name: "payload_locked_documents_rels_yt_batches_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["yt-monthly-goalsID"]],
|
|
foreignColumns: [yt_monthly_goals.id],
|
|
name: "payload_locked_documents_rels_yt_monthly_goals_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["yt-script-templatesID"]],
|
|
foreignColumns: [yt_script_tpl.id],
|
|
name: "payload_locked_documents_rels_yt_script_templates_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["yt-checklist-templatesID"]],
|
|
foreignColumns: [yt_checklist_templates.id],
|
|
name: "payload_locked_documents_rels_yt_checklist_templates_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["yt-seriesID"]],
|
|
foreignColumns: [yt_series.id],
|
|
name: "payload_locked_documents_rels_yt_series_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["social-platformsID"]],
|
|
foreignColumns: [social_platforms.id],
|
|
name: "payload_locked_documents_rels_social_platforms_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["social-accountsID"]],
|
|
foreignColumns: [social_accounts.id],
|
|
name: "payload_locked_documents_rels_social_accounts_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["community-interactionsID"]],
|
|
foreignColumns: [community_interactions.id],
|
|
name: "payload_locked_documents_rels_community_interactions_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["community-templatesID"]],
|
|
foreignColumns: [community_templates.id],
|
|
name: "payload_locked_documents_rels_community_templates_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["community-rulesID"]],
|
|
foreignColumns: [community_rules.id],
|
|
name: "payload_locked_documents_rels_community_rules_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["cookie-configurationsID"]],
|
|
foreignColumns: [cookie_configurations.id],
|
|
name: "payload_locked_documents_rels_cookie_configurations_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["cookie-inventoryID"]],
|
|
foreignColumns: [cookie_inventory.id],
|
|
name: "payload_locked_documents_rels_cookie_inventory_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["consent-logsID"]],
|
|
foreignColumns: [consent_logs.id],
|
|
name: "payload_locked_documents_rels_consent_logs_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["privacy-policy-settingsID"]],
|
|
foreignColumns: [privacy_policy_settings.id],
|
|
name: "payload_locked_documents_rels_privacy_policy_settings_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["email-logsID"]],
|
|
foreignColumns: [email_logs.id],
|
|
name: "payload_locked_documents_rels_email_logs_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["audit-logsID"]],
|
|
foreignColumns: [audit_logs.id],
|
|
name: "payload_locked_documents_rels_audit_logs_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["site-settingsID"]],
|
|
foreignColumns: [site_settings.id],
|
|
name: "payload_locked_documents_rels_site_settings_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["navigationsID"]],
|
|
foreignColumns: [navigations.id],
|
|
name: "payload_locked_documents_rels_navigations_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["formsID"]],
|
|
foreignColumns: [forms.id],
|
|
name: "payload_locked_documents_rels_forms_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["form-submissionsID"]],
|
|
foreignColumns: [form_submissions.id],
|
|
name: "payload_locked_documents_rels_form_submissions_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["redirectsID"]],
|
|
foreignColumns: [redirects.id],
|
|
name: "payload_locked_documents_rels_redirects_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const payload_preferences = pgTable(
|
|
"payload_preferences",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
key: varchar("key"),
|
|
value: jsonb("value"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("payload_preferences_key_idx").on(columns.key),
|
|
index("payload_preferences_updated_at_idx").on(columns.updatedAt),
|
|
index("payload_preferences_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const payload_preferences_rels = pgTable(
|
|
"payload_preferences_rels",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order"),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
usersID: integer("users_id"),
|
|
},
|
|
(columns) => [
|
|
index("payload_preferences_rels_order_idx").on(columns.order),
|
|
index("payload_preferences_rels_parent_idx").on(columns.parent),
|
|
index("payload_preferences_rels_path_idx").on(columns.path),
|
|
index("payload_preferences_rels_users_id_idx").on(columns.usersID),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [payload_preferences.id],
|
|
name: "payload_preferences_rels_parent_fk",
|
|
}).onDelete("cascade"),
|
|
foreignKey({
|
|
columns: [columns["usersID"]],
|
|
foreignColumns: [users.id],
|
|
name: "payload_preferences_rels_users_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const payload_migrations = pgTable(
|
|
"payload_migrations",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
name: varchar("name"),
|
|
batch: numeric("batch", { mode: "number" }),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }).defaultNow().notNull(),
|
|
},
|
|
(columns) => [
|
|
index("payload_migrations_updated_at_idx").on(columns.updatedAt),
|
|
index("payload_migrations_created_at_idx").on(columns.createdAt),
|
|
],
|
|
);
|
|
|
|
export const seo_settings_social_profiles = pgTable(
|
|
"seo_settings_social_profiles",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
platform: enum_seo_settings_social_profiles_platform("platform"),
|
|
url: varchar("url").notNull(),
|
|
},
|
|
(columns) => [
|
|
index("seo_settings_social_profiles_order_idx").on(columns._order),
|
|
index("seo_settings_social_profiles_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [seo_settings.id],
|
|
name: "seo_settings_social_profiles_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const seo_settings_local_business_opening_hours = pgTable(
|
|
"seo_settings_local_business_opening_hours",
|
|
{
|
|
_order: integer("_order").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
id: varchar("id").primaryKey(),
|
|
specification: varchar("specification"),
|
|
},
|
|
(columns) => [
|
|
index("seo_settings_local_business_opening_hours_order_idx").on(columns._order),
|
|
index("seo_settings_local_business_opening_hours_parent_id_idx").on(columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [seo_settings.id],
|
|
name: "seo_settings_local_business_opening_hours_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const seo_settings = pgTable(
|
|
"seo_settings",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
metaDefaults_defaultOgImage: integer("meta_defaults_default_og_image_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
organization_name: varchar("organization_name").notNull(),
|
|
organization_legalName: varchar("organization_legal_name"),
|
|
organization_logo: integer("organization_logo_id").references(() => media.id, {
|
|
onDelete: "set null",
|
|
}),
|
|
organization_foundingDate: timestamp("organization_founding_date", {
|
|
mode: "string",
|
|
withTimezone: true,
|
|
precision: 3,
|
|
}),
|
|
contact_email: varchar("contact_email"),
|
|
contact_phone: varchar("contact_phone"),
|
|
contact_fax: varchar("contact_fax"),
|
|
address_street: varchar("address_street"),
|
|
address_postalCode: varchar("address_postal_code"),
|
|
address_city: varchar("address_city"),
|
|
address_region: varchar("address_region"),
|
|
address_country: varchar("address_country").default("Deutschland"),
|
|
address_countryCode: varchar("address_country_code").default("DE"),
|
|
geo_latitude: numeric("geo_latitude", { mode: "number" }),
|
|
geo_longitude: numeric("geo_longitude", { mode: "number" }),
|
|
localBusiness_enabled: boolean("local_business_enabled").default(false),
|
|
localBusiness_type: enum_seo_settings_local_business_type("local_business_type"),
|
|
localBusiness_priceRange: enum_seo_settings_local_business_price_range("local_business_price_range"),
|
|
robots_allowIndexing: boolean("robots_allow_indexing").default(true),
|
|
verification_google: varchar("verification_google"),
|
|
verification_bing: varchar("verification_bing"),
|
|
verification_yandex: varchar("verification_yandex"),
|
|
updatedAt: timestamp("updated_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
createdAt: timestamp("created_at", { mode: "string", withTimezone: true, precision: 3 }),
|
|
},
|
|
(columns) => [
|
|
index("seo_settings_meta_defaults_meta_defaults_default_og_imag_idx").on(columns.metaDefaults_defaultOgImage),
|
|
index("seo_settings_organization_organization_logo_idx").on(columns.organization_logo),
|
|
],
|
|
);
|
|
|
|
export const seo_settings_locales = pgTable(
|
|
"seo_settings_locales",
|
|
{
|
|
metaDefaults_titleSuffix: varchar("meta_defaults_title_suffix").default("| Website"),
|
|
metaDefaults_defaultDescription: varchar("meta_defaults_default_description"),
|
|
organization_description: varchar("organization_description"),
|
|
id: serial("id").primaryKey(),
|
|
_locale: enum__locales("_locale").notNull(),
|
|
_parentID: integer("_parent_id").notNull(),
|
|
},
|
|
(columns) => [
|
|
uniqueIndex("seo_settings_locales_locale_parent_id_unique").on(columns._locale, columns._parentID),
|
|
foreignKey({
|
|
columns: [columns["_parentID"]],
|
|
foreignColumns: [seo_settings.id],
|
|
name: "seo_settings_locales_parent_id_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const seo_settings_texts = pgTable(
|
|
"seo_settings_texts",
|
|
{
|
|
id: serial("id").primaryKey(),
|
|
order: integer("order").notNull(),
|
|
parent: integer("parent_id").notNull(),
|
|
path: varchar("path").notNull(),
|
|
text: varchar("text"),
|
|
},
|
|
(columns) => [
|
|
index("seo_settings_texts_order_parent").on(columns.order, columns.parent),
|
|
foreignKey({
|
|
columns: [columns["parent"]],
|
|
foreignColumns: [seo_settings.id],
|
|
name: "seo_settings_texts_parent_fk",
|
|
}).onDelete("cascade"),
|
|
],
|
|
);
|
|
|
|
export const relations_users_tenants = relations(users_tenants, ({ one }) => ({
|
|
_parentID: one(users, {
|
|
fields: [users_tenants._parentID],
|
|
references: [users.id],
|
|
relationName: "tenants",
|
|
}),
|
|
tenant: one(tenants, {
|
|
fields: [users_tenants.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
}));
|
|
export const relations_users_sessions = relations(users_sessions, ({ one }) => ({
|
|
_parentID: one(users, {
|
|
fields: [users_sessions._parentID],
|
|
references: [users.id],
|
|
relationName: "sessions",
|
|
}),
|
|
}));
|
|
export const relations_users_rels = relations(users_rels, ({ one }) => ({
|
|
parent: one(users, {
|
|
fields: [users_rels.parent],
|
|
references: [users.id],
|
|
relationName: "_rels",
|
|
}),
|
|
"youtube-channelsID": one(youtube_channels, {
|
|
fields: [users_rels["youtube-channelsID"]],
|
|
references: [youtube_channels.id],
|
|
relationName: "youtube-channels",
|
|
}),
|
|
}));
|
|
export const relations_users = relations(users, ({ many }) => ({
|
|
tenants: many(users_tenants, {
|
|
relationName: "tenants",
|
|
}),
|
|
sessions: many(users_sessions, {
|
|
relationName: "sessions",
|
|
}),
|
|
_rels: many(users_rels, {
|
|
relationName: "_rels",
|
|
}),
|
|
}));
|
|
export const relations_media_texts = relations(media_texts, ({ one }) => ({
|
|
parent: one(media, {
|
|
fields: [media_texts.parent],
|
|
references: [media.id],
|
|
relationName: "_texts",
|
|
}),
|
|
}));
|
|
export const relations_media = relations(media, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [media.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
_texts: many(media_texts, {
|
|
relationName: "_texts",
|
|
}),
|
|
}));
|
|
export const relations_tenants_domains = relations(tenants_domains, ({ one }) => ({
|
|
_parentID: one(tenants, {
|
|
fields: [tenants_domains._parentID],
|
|
references: [tenants.id],
|
|
relationName: "domains",
|
|
}),
|
|
}));
|
|
export const relations_tenants = relations(tenants, ({ many }) => ({
|
|
domains: many(tenants_domains, {
|
|
relationName: "domains",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_hero_block_locales = relations(pages_blocks_hero_block_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_hero_block, {
|
|
fields: [pages_blocks_hero_block_locales._parentID],
|
|
references: [pages_blocks_hero_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_hero_block = relations(pages_blocks_hero_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_hero_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_hero-block",
|
|
}),
|
|
_locales: many(pages_blocks_hero_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
backgroundImage: one(media, {
|
|
fields: [pages_blocks_hero_block.backgroundImage],
|
|
references: [media.id],
|
|
relationName: "backgroundImage",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_hero_slider_block_slides_locales = relations(
|
|
pages_blocks_hero_slider_block_slides_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_hero_slider_block_slides, {
|
|
fields: [pages_blocks_hero_slider_block_slides_locales._parentID],
|
|
references: [pages_blocks_hero_slider_block_slides.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_hero_slider_block_slides = relations(
|
|
pages_blocks_hero_slider_block_slides,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_hero_slider_block, {
|
|
fields: [pages_blocks_hero_slider_block_slides._parentID],
|
|
references: [pages_blocks_hero_slider_block.id],
|
|
relationName: "slides",
|
|
}),
|
|
_locales: many(pages_blocks_hero_slider_block_slides_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
backgroundImage: one(media, {
|
|
fields: [pages_blocks_hero_slider_block_slides.backgroundImage],
|
|
references: [media.id],
|
|
relationName: "backgroundImage",
|
|
}),
|
|
mobileBackgroundImage: one(media, {
|
|
fields: [pages_blocks_hero_slider_block_slides.mobileBackgroundImage],
|
|
references: [media.id],
|
|
relationName: "mobileBackgroundImage",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_hero_slider_block_locales = relations(
|
|
pages_blocks_hero_slider_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_hero_slider_block, {
|
|
fields: [pages_blocks_hero_slider_block_locales._parentID],
|
|
references: [pages_blocks_hero_slider_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_hero_slider_block = relations(pages_blocks_hero_slider_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_hero_slider_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_hero-slider-block",
|
|
}),
|
|
_locales: many(pages_blocks_hero_slider_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
slides: many(pages_blocks_hero_slider_block_slides, {
|
|
relationName: "slides",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_image_slider_block_images_locales = relations(
|
|
pages_blocks_image_slider_block_images_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_image_slider_block_images, {
|
|
fields: [pages_blocks_image_slider_block_images_locales._parentID],
|
|
references: [pages_blocks_image_slider_block_images.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_image_slider_block_images = relations(
|
|
pages_blocks_image_slider_block_images,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_image_slider_block, {
|
|
fields: [pages_blocks_image_slider_block_images._parentID],
|
|
references: [pages_blocks_image_slider_block.id],
|
|
relationName: "images",
|
|
}),
|
|
_locales: many(pages_blocks_image_slider_block_images_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
image: one(media, {
|
|
fields: [pages_blocks_image_slider_block_images.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_image_slider_block_locales = relations(
|
|
pages_blocks_image_slider_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_image_slider_block, {
|
|
fields: [pages_blocks_image_slider_block_locales._parentID],
|
|
references: [pages_blocks_image_slider_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_image_slider_block = relations(
|
|
pages_blocks_image_slider_block,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_image_slider_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_image-slider-block",
|
|
}),
|
|
_locales: many(pages_blocks_image_slider_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
images: many(pages_blocks_image_slider_block_images, {
|
|
relationName: "images",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_text_block_locales = relations(pages_blocks_text_block_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_text_block, {
|
|
fields: [pages_blocks_text_block_locales._parentID],
|
|
references: [pages_blocks_text_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_text_block = relations(pages_blocks_text_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_text_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_text-block",
|
|
}),
|
|
_locales: many(pages_blocks_text_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_image_text_block_locales = relations(
|
|
pages_blocks_image_text_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_image_text_block, {
|
|
fields: [pages_blocks_image_text_block_locales._parentID],
|
|
references: [pages_blocks_image_text_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_image_text_block = relations(pages_blocks_image_text_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_image_text_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_image-text-block",
|
|
}),
|
|
_locales: many(pages_blocks_image_text_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
image: one(media, {
|
|
fields: [pages_blocks_image_text_block.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_card_grid_block_cards_locales = relations(
|
|
pages_blocks_card_grid_block_cards_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_card_grid_block_cards, {
|
|
fields: [pages_blocks_card_grid_block_cards_locales._parentID],
|
|
references: [pages_blocks_card_grid_block_cards.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_card_grid_block_cards = relations(
|
|
pages_blocks_card_grid_block_cards,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_card_grid_block, {
|
|
fields: [pages_blocks_card_grid_block_cards._parentID],
|
|
references: [pages_blocks_card_grid_block.id],
|
|
relationName: "cards",
|
|
}),
|
|
_locales: many(pages_blocks_card_grid_block_cards_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
image: one(media, {
|
|
fields: [pages_blocks_card_grid_block_cards.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_card_grid_block_locales = relations(
|
|
pages_blocks_card_grid_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_card_grid_block, {
|
|
fields: [pages_blocks_card_grid_block_locales._parentID],
|
|
references: [pages_blocks_card_grid_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_card_grid_block = relations(pages_blocks_card_grid_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_card_grid_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_card-grid-block",
|
|
}),
|
|
_locales: many(pages_blocks_card_grid_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
cards: many(pages_blocks_card_grid_block_cards, {
|
|
relationName: "cards",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_quote_block_locales = relations(pages_blocks_quote_block_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_quote_block, {
|
|
fields: [pages_blocks_quote_block_locales._parentID],
|
|
references: [pages_blocks_quote_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_quote_block = relations(pages_blocks_quote_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_quote_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_quote-block",
|
|
}),
|
|
_locales: many(pages_blocks_quote_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
image: one(media, {
|
|
fields: [pages_blocks_quote_block.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_cta_block_buttons_locales = relations(
|
|
pages_blocks_cta_block_buttons_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_cta_block_buttons, {
|
|
fields: [pages_blocks_cta_block_buttons_locales._parentID],
|
|
references: [pages_blocks_cta_block_buttons.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_cta_block_buttons = relations(pages_blocks_cta_block_buttons, ({ one, many }) => ({
|
|
_parentID: one(pages_blocks_cta_block, {
|
|
fields: [pages_blocks_cta_block_buttons._parentID],
|
|
references: [pages_blocks_cta_block.id],
|
|
relationName: "buttons",
|
|
}),
|
|
_locales: many(pages_blocks_cta_block_buttons_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_cta_block_locales = relations(pages_blocks_cta_block_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_cta_block, {
|
|
fields: [pages_blocks_cta_block_locales._parentID],
|
|
references: [pages_blocks_cta_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_cta_block = relations(pages_blocks_cta_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_cta_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_cta-block",
|
|
}),
|
|
_locales: many(pages_blocks_cta_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
buttons: many(pages_blocks_cta_block_buttons, {
|
|
relationName: "buttons",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_contact_form_block_locales = relations(
|
|
pages_blocks_contact_form_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_contact_form_block, {
|
|
fields: [pages_blocks_contact_form_block_locales._parentID],
|
|
references: [pages_blocks_contact_form_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_contact_form_block = relations(
|
|
pages_blocks_contact_form_block,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_contact_form_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_contact-form-block",
|
|
}),
|
|
_locales: many(pages_blocks_contact_form_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_timeline_block_items_locales = relations(
|
|
pages_blocks_timeline_block_items_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_timeline_block_items, {
|
|
fields: [pages_blocks_timeline_block_items_locales._parentID],
|
|
references: [pages_blocks_timeline_block_items.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_timeline_block_items = relations(
|
|
pages_blocks_timeline_block_items,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_timeline_block, {
|
|
fields: [pages_blocks_timeline_block_items._parentID],
|
|
references: [pages_blocks_timeline_block.id],
|
|
relationName: "items",
|
|
}),
|
|
_locales: many(pages_blocks_timeline_block_items_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
image: one(media, {
|
|
fields: [pages_blocks_timeline_block_items.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_timeline_block_locales = relations(
|
|
pages_blocks_timeline_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_timeline_block, {
|
|
fields: [pages_blocks_timeline_block_locales._parentID],
|
|
references: [pages_blocks_timeline_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_timeline_block = relations(pages_blocks_timeline_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_timeline_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_timeline-block",
|
|
}),
|
|
_locales: many(pages_blocks_timeline_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
items: many(pages_blocks_timeline_block_items, {
|
|
relationName: "items",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_divider_block = relations(pages_blocks_divider_block, ({ one }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_divider_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_divider-block",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_video_block_locales = relations(pages_blocks_video_block_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_video_block, {
|
|
fields: [pages_blocks_video_block_locales._parentID],
|
|
references: [pages_blocks_video_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_video_block = relations(pages_blocks_video_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_video_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_video-block",
|
|
}),
|
|
_locales: many(pages_blocks_video_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
videoFromLibrary: one(videos, {
|
|
fields: [pages_blocks_video_block.videoFromLibrary],
|
|
references: [videos.id],
|
|
relationName: "videoFromLibrary",
|
|
}),
|
|
videoFile: one(media, {
|
|
fields: [pages_blocks_video_block.videoFile],
|
|
references: [media.id],
|
|
relationName: "videoFile",
|
|
}),
|
|
thumbnail: one(media, {
|
|
fields: [pages_blocks_video_block.thumbnail],
|
|
references: [media.id],
|
|
relationName: "thumbnail",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_posts_list_block_locales = relations(
|
|
pages_blocks_posts_list_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_posts_list_block, {
|
|
fields: [pages_blocks_posts_list_block_locales._parentID],
|
|
references: [pages_blocks_posts_list_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_posts_list_block = relations(pages_blocks_posts_list_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_posts_list_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_posts-list-block",
|
|
}),
|
|
_locales: many(pages_blocks_posts_list_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_testimonials_block_locales = relations(
|
|
pages_blocks_testimonials_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_testimonials_block, {
|
|
fields: [pages_blocks_testimonials_block_locales._parentID],
|
|
references: [pages_blocks_testimonials_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_testimonials_block = relations(
|
|
pages_blocks_testimonials_block,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_testimonials_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_testimonials-block",
|
|
}),
|
|
_locales: many(pages_blocks_testimonials_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_newsletter_block_available_interests = relations(
|
|
pages_blocks_newsletter_block_available_interests,
|
|
({ one }) => ({
|
|
parent: one(pages_blocks_newsletter_block, {
|
|
fields: [pages_blocks_newsletter_block_available_interests.parent],
|
|
references: [pages_blocks_newsletter_block.id],
|
|
relationName: "availableInterests",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_newsletter_block_locales = relations(
|
|
pages_blocks_newsletter_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_newsletter_block, {
|
|
fields: [pages_blocks_newsletter_block_locales._parentID],
|
|
references: [pages_blocks_newsletter_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_newsletter_block = relations(pages_blocks_newsletter_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_newsletter_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_newsletter-block",
|
|
}),
|
|
_locales: many(pages_blocks_newsletter_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
image: one(media, {
|
|
fields: [pages_blocks_newsletter_block.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
availableInterests: many(pages_blocks_newsletter_block_available_interests, {
|
|
relationName: "availableInterests",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_process_steps_block_steps_locales = relations(
|
|
pages_blocks_process_steps_block_steps_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_process_steps_block_steps, {
|
|
fields: [pages_blocks_process_steps_block_steps_locales._parentID],
|
|
references: [pages_blocks_process_steps_block_steps.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_process_steps_block_steps = relations(
|
|
pages_blocks_process_steps_block_steps,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_process_steps_block, {
|
|
fields: [pages_blocks_process_steps_block_steps._parentID],
|
|
references: [pages_blocks_process_steps_block.id],
|
|
relationName: "steps",
|
|
}),
|
|
_locales: many(pages_blocks_process_steps_block_steps_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
image: one(media, {
|
|
fields: [pages_blocks_process_steps_block_steps.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_process_steps_block_locales = relations(
|
|
pages_blocks_process_steps_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_process_steps_block, {
|
|
fields: [pages_blocks_process_steps_block_locales._parentID],
|
|
references: [pages_blocks_process_steps_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_process_steps_block = relations(
|
|
pages_blocks_process_steps_block,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_process_steps_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_process-steps-block",
|
|
}),
|
|
_locales: many(pages_blocks_process_steps_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
steps: many(pages_blocks_process_steps_block_steps, {
|
|
relationName: "steps",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_faq_block_inline_f_a_qs_locales = relations(
|
|
pages_blocks_faq_block_inline_f_a_qs_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_faq_block_inline_f_a_qs, {
|
|
fields: [pages_blocks_faq_block_inline_f_a_qs_locales._parentID],
|
|
references: [pages_blocks_faq_block_inline_f_a_qs.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_faq_block_inline_f_a_qs = relations(
|
|
pages_blocks_faq_block_inline_f_a_qs,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_faq_block, {
|
|
fields: [pages_blocks_faq_block_inline_f_a_qs._parentID],
|
|
references: [pages_blocks_faq_block.id],
|
|
relationName: "inlineFAQs",
|
|
}),
|
|
_locales: many(pages_blocks_faq_block_inline_f_a_qs_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_faq_block_locales = relations(pages_blocks_faq_block_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_faq_block, {
|
|
fields: [pages_blocks_faq_block_locales._parentID],
|
|
references: [pages_blocks_faq_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_faq_block = relations(pages_blocks_faq_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_faq_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_faq-block",
|
|
}),
|
|
_locales: many(pages_blocks_faq_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
inlineFAQs: many(pages_blocks_faq_block_inline_f_a_qs, {
|
|
relationName: "inlineFAQs",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_team_block_locales = relations(pages_blocks_team_block_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_team_block, {
|
|
fields: [pages_blocks_team_block_locales._parentID],
|
|
references: [pages_blocks_team_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_team_block = relations(pages_blocks_team_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_team_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_team-block",
|
|
}),
|
|
_locales: many(pages_blocks_team_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_services_block_locales = relations(
|
|
pages_blocks_services_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_services_block, {
|
|
fields: [pages_blocks_services_block_locales._parentID],
|
|
references: [pages_blocks_services_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_services_block = relations(pages_blocks_services_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_services_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_services-block",
|
|
}),
|
|
_locales: many(pages_blocks_services_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
category: one(service_categories, {
|
|
fields: [pages_blocks_services_block.category],
|
|
references: [service_categories.id],
|
|
relationName: "category",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_author_bio_block_locales = relations(
|
|
pages_blocks_author_bio_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_author_bio_block, {
|
|
fields: [pages_blocks_author_bio_block_locales._parentID],
|
|
references: [pages_blocks_author_bio_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_author_bio_block = relations(pages_blocks_author_bio_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_author_bio_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_author-bio-block",
|
|
}),
|
|
_locales: many(pages_blocks_author_bio_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_related_posts_block_locales = relations(
|
|
pages_blocks_related_posts_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_related_posts_block, {
|
|
fields: [pages_blocks_related_posts_block_locales._parentID],
|
|
references: [pages_blocks_related_posts_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_related_posts_block = relations(
|
|
pages_blocks_related_posts_block,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_related_posts_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_related-posts-block",
|
|
}),
|
|
_locales: many(pages_blocks_related_posts_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
category: one(categories, {
|
|
fields: [pages_blocks_related_posts_block.category],
|
|
references: [categories.id],
|
|
relationName: "category",
|
|
}),
|
|
tag: one(tags, {
|
|
fields: [pages_blocks_related_posts_block.tag],
|
|
references: [tags.id],
|
|
relationName: "tag",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_share_buttons_block_locales = relations(
|
|
pages_blocks_share_buttons_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_share_buttons_block, {
|
|
fields: [pages_blocks_share_buttons_block_locales._parentID],
|
|
references: [pages_blocks_share_buttons_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_share_buttons_block = relations(
|
|
pages_blocks_share_buttons_block,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_share_buttons_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_share-buttons-block",
|
|
}),
|
|
_locales: many(pages_blocks_share_buttons_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_toc_block_locales = relations(pages_blocks_toc_block_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_toc_block, {
|
|
fields: [pages_blocks_toc_block_locales._parentID],
|
|
references: [pages_blocks_toc_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_toc_block = relations(pages_blocks_toc_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_toc_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_toc-block",
|
|
}),
|
|
_locales: many(pages_blocks_toc_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_team_filter_block_locales = relations(
|
|
pages_blocks_team_filter_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_team_filter_block, {
|
|
fields: [pages_blocks_team_filter_block_locales._parentID],
|
|
references: [pages_blocks_team_filter_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_team_filter_block = relations(pages_blocks_team_filter_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_team_filter_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_team-filter-block",
|
|
}),
|
|
_locales: many(pages_blocks_team_filter_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_org_chart_block_locales = relations(
|
|
pages_blocks_org_chart_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_org_chart_block, {
|
|
fields: [pages_blocks_org_chart_block_locales._parentID],
|
|
references: [pages_blocks_org_chart_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_org_chart_block = relations(pages_blocks_org_chart_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_org_chart_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_org-chart-block",
|
|
}),
|
|
_locales: many(pages_blocks_org_chart_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
rootMember: one(team, {
|
|
fields: [pages_blocks_org_chart_block.rootMember],
|
|
references: [team.id],
|
|
relationName: "rootMember",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_locations_block_locales = relations(
|
|
pages_blocks_locations_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_locations_block, {
|
|
fields: [pages_blocks_locations_block_locales._parentID],
|
|
references: [pages_blocks_locations_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_locations_block = relations(pages_blocks_locations_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_locations_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_locations-block",
|
|
}),
|
|
_locales: many(pages_blocks_locations_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_logo_grid_block_partner_type = relations(
|
|
pages_blocks_logo_grid_block_partner_type,
|
|
({ one }) => ({
|
|
parent: one(pages_blocks_logo_grid_block, {
|
|
fields: [pages_blocks_logo_grid_block_partner_type.parent],
|
|
references: [pages_blocks_logo_grid_block.id],
|
|
relationName: "partnerType",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_logo_grid_block_logos = relations(
|
|
pages_blocks_logo_grid_block_logos,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_logo_grid_block, {
|
|
fields: [pages_blocks_logo_grid_block_logos._parentID],
|
|
references: [pages_blocks_logo_grid_block.id],
|
|
relationName: "logos",
|
|
}),
|
|
logo: one(media, {
|
|
fields: [pages_blocks_logo_grid_block_logos.logo],
|
|
references: [media.id],
|
|
relationName: "logo",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_logo_grid_block_locales = relations(
|
|
pages_blocks_logo_grid_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_logo_grid_block, {
|
|
fields: [pages_blocks_logo_grid_block_locales._parentID],
|
|
references: [pages_blocks_logo_grid_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_logo_grid_block = relations(pages_blocks_logo_grid_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_logo_grid_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_logo-grid-block",
|
|
}),
|
|
_locales: many(pages_blocks_logo_grid_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
partnerType: many(pages_blocks_logo_grid_block_partner_type, {
|
|
relationName: "partnerType",
|
|
}),
|
|
logos: many(pages_blocks_logo_grid_block_logos, {
|
|
relationName: "logos",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_stats_block_stats_locales = relations(
|
|
pages_blocks_stats_block_stats_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_stats_block_stats, {
|
|
fields: [pages_blocks_stats_block_stats_locales._parentID],
|
|
references: [pages_blocks_stats_block_stats.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_stats_block_stats = relations(pages_blocks_stats_block_stats, ({ one, many }) => ({
|
|
_parentID: one(pages_blocks_stats_block, {
|
|
fields: [pages_blocks_stats_block_stats._parentID],
|
|
references: [pages_blocks_stats_block.id],
|
|
relationName: "stats",
|
|
}),
|
|
_locales: many(pages_blocks_stats_block_stats_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_stats_block_locales = relations(pages_blocks_stats_block_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_stats_block, {
|
|
fields: [pages_blocks_stats_block_locales._parentID],
|
|
references: [pages_blocks_stats_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_stats_block = relations(pages_blocks_stats_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_stats_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_stats-block",
|
|
}),
|
|
_locales: many(pages_blocks_stats_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
stats: many(pages_blocks_stats_block_stats, {
|
|
relationName: "stats",
|
|
}),
|
|
style_bgImage: one(media, {
|
|
fields: [pages_blocks_stats_block.style_bgImage],
|
|
references: [media.id],
|
|
relationName: "style_bgImage",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_jobs_block_locales = relations(pages_blocks_jobs_block_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_jobs_block, {
|
|
fields: [pages_blocks_jobs_block_locales._parentID],
|
|
references: [pages_blocks_jobs_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_jobs_block = relations(pages_blocks_jobs_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_jobs_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_jobs-block",
|
|
}),
|
|
_locales: many(pages_blocks_jobs_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
locationFilter: one(locations, {
|
|
fields: [pages_blocks_jobs_block.locationFilter],
|
|
references: [locations.id],
|
|
relationName: "locationFilter",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_downloads_block_locales = relations(
|
|
pages_blocks_downloads_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_downloads_block, {
|
|
fields: [pages_blocks_downloads_block_locales._parentID],
|
|
references: [pages_blocks_downloads_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_downloads_block = relations(pages_blocks_downloads_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_downloads_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_downloads-block",
|
|
}),
|
|
_locales: many(pages_blocks_downloads_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
relatedService: one(services, {
|
|
fields: [pages_blocks_downloads_block.relatedService],
|
|
references: [services.id],
|
|
relationName: "relatedService",
|
|
}),
|
|
relatedProduct: one(products, {
|
|
fields: [pages_blocks_downloads_block.relatedProduct],
|
|
references: [products.id],
|
|
relationName: "relatedProduct",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_map_block_location_type = relations(
|
|
pages_blocks_map_block_location_type,
|
|
({ one }) => ({
|
|
parent: one(pages_blocks_map_block, {
|
|
fields: [pages_blocks_map_block_location_type.parent],
|
|
references: [pages_blocks_map_block.id],
|
|
relationName: "locationType",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_map_block_markers_locales = relations(
|
|
pages_blocks_map_block_markers_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_map_block_markers, {
|
|
fields: [pages_blocks_map_block_markers_locales._parentID],
|
|
references: [pages_blocks_map_block_markers.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_map_block_markers = relations(pages_blocks_map_block_markers, ({ one, many }) => ({
|
|
_parentID: one(pages_blocks_map_block, {
|
|
fields: [pages_blocks_map_block_markers._parentID],
|
|
references: [pages_blocks_map_block.id],
|
|
relationName: "markers",
|
|
}),
|
|
_locales: many(pages_blocks_map_block_markers_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
customIcon: one(media, {
|
|
fields: [pages_blocks_map_block_markers.customIcon],
|
|
references: [media.id],
|
|
relationName: "customIcon",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_map_block_locales = relations(pages_blocks_map_block_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_map_block, {
|
|
fields: [pages_blocks_map_block_locales._parentID],
|
|
references: [pages_blocks_map_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_map_block = relations(pages_blocks_map_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_map_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_map-block",
|
|
}),
|
|
_locales: many(pages_blocks_map_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
locationType: many(pages_blocks_map_block_location_type, {
|
|
relationName: "locationType",
|
|
}),
|
|
markers: many(pages_blocks_map_block_markers, {
|
|
relationName: "markers",
|
|
}),
|
|
fallback_staticImage: one(media, {
|
|
fields: [pages_blocks_map_block.fallback_staticImage],
|
|
references: [media.id],
|
|
relationName: "fallback_staticImage",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_events_locales = relations(pages_blocks_events_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_events, {
|
|
fields: [pages_blocks_events_locales._parentID],
|
|
references: [pages_blocks_events.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_events = relations(pages_blocks_events, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_events._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_events",
|
|
}),
|
|
_locales: many(pages_blocks_events_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_pricing_plans_features_locales = relations(
|
|
pages_blocks_pricing_plans_features_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_pricing_plans_features, {
|
|
fields: [pages_blocks_pricing_plans_features_locales._parentID],
|
|
references: [pages_blocks_pricing_plans_features.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_pricing_plans_features = relations(
|
|
pages_blocks_pricing_plans_features,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_pricing_plans, {
|
|
fields: [pages_blocks_pricing_plans_features._parentID],
|
|
references: [pages_blocks_pricing_plans.id],
|
|
relationName: "features",
|
|
}),
|
|
_locales: many(pages_blocks_pricing_plans_features_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_pricing_plans_locales = relations(
|
|
pages_blocks_pricing_plans_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_pricing_plans, {
|
|
fields: [pages_blocks_pricing_plans_locales._parentID],
|
|
references: [pages_blocks_pricing_plans.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_pricing_plans = relations(pages_blocks_pricing_plans, ({ one, many }) => ({
|
|
_parentID: one(pages_blocks_pricing, {
|
|
fields: [pages_blocks_pricing_plans._parentID],
|
|
references: [pages_blocks_pricing.id],
|
|
relationName: "plans",
|
|
}),
|
|
_locales: many(pages_blocks_pricing_plans_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
features: many(pages_blocks_pricing_plans_features, {
|
|
relationName: "features",
|
|
}),
|
|
icon: one(media, {
|
|
fields: [pages_blocks_pricing_plans.icon],
|
|
references: [media.id],
|
|
relationName: "icon",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_pricing_comparison_features_values_locales = relations(
|
|
pages_blocks_pricing_comparison_features_values_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_pricing_comparison_features_values, {
|
|
fields: [pages_blocks_pricing_comparison_features_values_locales._parentID],
|
|
references: [pages_blocks_pricing_comparison_features_values.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_pricing_comparison_features_values = relations(
|
|
pages_blocks_pricing_comparison_features_values,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_pricing_comparison_features, {
|
|
fields: [pages_blocks_pricing_comparison_features_values._parentID],
|
|
references: [pages_blocks_pricing_comparison_features.id],
|
|
relationName: "values",
|
|
}),
|
|
_locales: many(pages_blocks_pricing_comparison_features_values_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_pricing_comparison_features_locales = relations(
|
|
pages_blocks_pricing_comparison_features_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_pricing_comparison_features, {
|
|
fields: [pages_blocks_pricing_comparison_features_locales._parentID],
|
|
references: [pages_blocks_pricing_comparison_features.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_pricing_comparison_features = relations(
|
|
pages_blocks_pricing_comparison_features,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_pricing, {
|
|
fields: [pages_blocks_pricing_comparison_features._parentID],
|
|
references: [pages_blocks_pricing.id],
|
|
relationName: "comparisonFeatures",
|
|
}),
|
|
_locales: many(pages_blocks_pricing_comparison_features_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
values: many(pages_blocks_pricing_comparison_features_values, {
|
|
relationName: "values",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_pricing_faq_items_locales = relations(
|
|
pages_blocks_pricing_faq_items_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_pricing_faq_items, {
|
|
fields: [pages_blocks_pricing_faq_items_locales._parentID],
|
|
references: [pages_blocks_pricing_faq_items.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_pricing_faq_items = relations(pages_blocks_pricing_faq_items, ({ one, many }) => ({
|
|
_parentID: one(pages_blocks_pricing, {
|
|
fields: [pages_blocks_pricing_faq_items._parentID],
|
|
references: [pages_blocks_pricing.id],
|
|
relationName: "faqItems",
|
|
}),
|
|
_locales: many(pages_blocks_pricing_faq_items_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_pricing_locales = relations(pages_blocks_pricing_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_pricing, {
|
|
fields: [pages_blocks_pricing_locales._parentID],
|
|
references: [pages_blocks_pricing.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_pricing = relations(pages_blocks_pricing, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_pricing._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_pricing",
|
|
}),
|
|
_locales: many(pages_blocks_pricing_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
plans: many(pages_blocks_pricing_plans, {
|
|
relationName: "plans",
|
|
}),
|
|
comparisonFeatures: many(pages_blocks_pricing_comparison_features, {
|
|
relationName: "comparisonFeatures",
|
|
}),
|
|
faqItems: many(pages_blocks_pricing_faq_items, {
|
|
relationName: "faqItems",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_tabs_tabs_features_locales = relations(
|
|
pages_blocks_tabs_tabs_features_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_tabs_tabs_features, {
|
|
fields: [pages_blocks_tabs_tabs_features_locales._parentID],
|
|
references: [pages_blocks_tabs_tabs_features.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_tabs_tabs_features = relations(
|
|
pages_blocks_tabs_tabs_features,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_tabs_tabs, {
|
|
fields: [pages_blocks_tabs_tabs_features._parentID],
|
|
references: [pages_blocks_tabs_tabs.id],
|
|
relationName: "features",
|
|
}),
|
|
_locales: many(pages_blocks_tabs_tabs_features_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_tabs_tabs_locales = relations(pages_blocks_tabs_tabs_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_tabs_tabs, {
|
|
fields: [pages_blocks_tabs_tabs_locales._parentID],
|
|
references: [pages_blocks_tabs_tabs.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_tabs_tabs = relations(pages_blocks_tabs_tabs, ({ one, many }) => ({
|
|
_parentID: one(pages_blocks_tabs, {
|
|
fields: [pages_blocks_tabs_tabs._parentID],
|
|
references: [pages_blocks_tabs.id],
|
|
relationName: "tabs",
|
|
}),
|
|
_locales: many(pages_blocks_tabs_tabs_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
customIcon: one(media, {
|
|
fields: [pages_blocks_tabs_tabs.customIcon],
|
|
references: [media.id],
|
|
relationName: "customIcon",
|
|
}),
|
|
imgTxt_img: one(media, {
|
|
fields: [pages_blocks_tabs_tabs.imgTxt_img],
|
|
references: [media.id],
|
|
relationName: "imgTxt_img",
|
|
}),
|
|
features: many(pages_blocks_tabs_tabs_features, {
|
|
relationName: "features",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_tabs_locales = relations(pages_blocks_tabs_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_tabs, {
|
|
fields: [pages_blocks_tabs_locales._parentID],
|
|
references: [pages_blocks_tabs.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_tabs = relations(pages_blocks_tabs, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_tabs._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_tabs",
|
|
}),
|
|
_locales: many(pages_blocks_tabs_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
tabs: many(pages_blocks_tabs_tabs, {
|
|
relationName: "tabs",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_accordion_items_list_items_locales = relations(
|
|
pages_blocks_accordion_items_list_items_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_accordion_items_list_items, {
|
|
fields: [pages_blocks_accordion_items_list_items_locales._parentID],
|
|
references: [pages_blocks_accordion_items_list_items.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_accordion_items_list_items = relations(
|
|
pages_blocks_accordion_items_list_items,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_accordion_items, {
|
|
fields: [pages_blocks_accordion_items_list_items._parentID],
|
|
references: [pages_blocks_accordion_items.id],
|
|
relationName: "listItems",
|
|
}),
|
|
_locales: many(pages_blocks_accordion_items_list_items_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_accordion_items_table_data_headers_locales = relations(
|
|
pages_blocks_accordion_items_table_data_headers_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_accordion_items_table_data_headers, {
|
|
fields: [pages_blocks_accordion_items_table_data_headers_locales._parentID],
|
|
references: [pages_blocks_accordion_items_table_data_headers.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_accordion_items_table_data_headers = relations(
|
|
pages_blocks_accordion_items_table_data_headers,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_accordion_items, {
|
|
fields: [pages_blocks_accordion_items_table_data_headers._parentID],
|
|
references: [pages_blocks_accordion_items.id],
|
|
relationName: "tableData_headers",
|
|
}),
|
|
_locales: many(pages_blocks_accordion_items_table_data_headers_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_accordion_items_table_data_rows_cells_locales = relations(
|
|
pages_blocks_accordion_items_table_data_rows_cells_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_accordion_items_table_data_rows_cells, {
|
|
fields: [pages_blocks_accordion_items_table_data_rows_cells_locales._parentID],
|
|
references: [pages_blocks_accordion_items_table_data_rows_cells.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_accordion_items_table_data_rows_cells = relations(
|
|
pages_blocks_accordion_items_table_data_rows_cells,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_accordion_items_table_data_rows, {
|
|
fields: [pages_blocks_accordion_items_table_data_rows_cells._parentID],
|
|
references: [pages_blocks_accordion_items_table_data_rows.id],
|
|
relationName: "cells",
|
|
}),
|
|
_locales: many(pages_blocks_accordion_items_table_data_rows_cells_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_accordion_items_table_data_rows = relations(
|
|
pages_blocks_accordion_items_table_data_rows,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_accordion_items, {
|
|
fields: [pages_blocks_accordion_items_table_data_rows._parentID],
|
|
references: [pages_blocks_accordion_items.id],
|
|
relationName: "tableData_rows",
|
|
}),
|
|
cells: many(pages_blocks_accordion_items_table_data_rows_cells, {
|
|
relationName: "cells",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_accordion_items_locales = relations(
|
|
pages_blocks_accordion_items_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_accordion_items, {
|
|
fields: [pages_blocks_accordion_items_locales._parentID],
|
|
references: [pages_blocks_accordion_items.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_accordion_items = relations(pages_blocks_accordion_items, ({ one, many }) => ({
|
|
_parentID: one(pages_blocks_accordion, {
|
|
fields: [pages_blocks_accordion_items._parentID],
|
|
references: [pages_blocks_accordion.id],
|
|
relationName: "items",
|
|
}),
|
|
_locales: many(pages_blocks_accordion_items_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
customIcon: one(media, {
|
|
fields: [pages_blocks_accordion_items.customIcon],
|
|
references: [media.id],
|
|
relationName: "customIcon",
|
|
}),
|
|
imgTxt_img: one(media, {
|
|
fields: [pages_blocks_accordion_items.imgTxt_img],
|
|
references: [media.id],
|
|
relationName: "imgTxt_img",
|
|
}),
|
|
listItems: many(pages_blocks_accordion_items_list_items, {
|
|
relationName: "listItems",
|
|
}),
|
|
tableData_headers: many(pages_blocks_accordion_items_table_data_headers, {
|
|
relationName: "tableData_headers",
|
|
}),
|
|
tableData_rows: many(pages_blocks_accordion_items_table_data_rows, {
|
|
relationName: "tableData_rows",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_accordion_locales = relations(pages_blocks_accordion_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_accordion, {
|
|
fields: [pages_blocks_accordion_locales._parentID],
|
|
references: [pages_blocks_accordion.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_accordion = relations(pages_blocks_accordion, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_accordion._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_accordion",
|
|
}),
|
|
_locales: many(pages_blocks_accordion_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
items: many(pages_blocks_accordion_items, {
|
|
relationName: "items",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_comparison_tbl_columns_locales = relations(
|
|
pages_blocks_comparison_tbl_columns_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_comparison_tbl_columns, {
|
|
fields: [pages_blocks_comparison_tbl_columns_locales._parentID],
|
|
references: [pages_blocks_comparison_tbl_columns.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_comparison_tbl_columns = relations(
|
|
pages_blocks_comparison_tbl_columns,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_comparison, {
|
|
fields: [pages_blocks_comparison_tbl_columns._parentID],
|
|
references: [pages_blocks_comparison.id],
|
|
relationName: "tbl_columns",
|
|
}),
|
|
_locales: many(pages_blocks_comparison_tbl_columns_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
image: one(media, {
|
|
fields: [pages_blocks_comparison_tbl_columns.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_comparison_tbl_rows_values_locales = relations(
|
|
pages_blocks_comparison_tbl_rows_values_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_comparison_tbl_rows_values, {
|
|
fields: [pages_blocks_comparison_tbl_rows_values_locales._parentID],
|
|
references: [pages_blocks_comparison_tbl_rows_values.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_comparison_tbl_rows_values = relations(
|
|
pages_blocks_comparison_tbl_rows_values,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_comparison_tbl_rows, {
|
|
fields: [pages_blocks_comparison_tbl_rows_values._parentID],
|
|
references: [pages_blocks_comparison_tbl_rows.id],
|
|
relationName: "values",
|
|
}),
|
|
_locales: many(pages_blocks_comparison_tbl_rows_values_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_comparison_tbl_rows_locales = relations(
|
|
pages_blocks_comparison_tbl_rows_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_comparison_tbl_rows, {
|
|
fields: [pages_blocks_comparison_tbl_rows_locales._parentID],
|
|
references: [pages_blocks_comparison_tbl_rows.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_comparison_tbl_rows = relations(
|
|
pages_blocks_comparison_tbl_rows,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_comparison, {
|
|
fields: [pages_blocks_comparison_tbl_rows._parentID],
|
|
references: [pages_blocks_comparison.id],
|
|
relationName: "tbl_rows",
|
|
}),
|
|
_locales: many(pages_blocks_comparison_tbl_rows_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
values: many(pages_blocks_comparison_tbl_rows_values, {
|
|
relationName: "values",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_comparison_crd_items_features_locales = relations(
|
|
pages_blocks_comparison_crd_items_features_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_comparison_crd_items_features, {
|
|
fields: [pages_blocks_comparison_crd_items_features_locales._parentID],
|
|
references: [pages_blocks_comparison_crd_items_features.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_comparison_crd_items_features = relations(
|
|
pages_blocks_comparison_crd_items_features,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_comparison_crd_items, {
|
|
fields: [pages_blocks_comparison_crd_items_features._parentID],
|
|
references: [pages_blocks_comparison_crd_items.id],
|
|
relationName: "features",
|
|
}),
|
|
_locales: many(pages_blocks_comparison_crd_items_features_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_comparison_crd_items_locales = relations(
|
|
pages_blocks_comparison_crd_items_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_comparison_crd_items, {
|
|
fields: [pages_blocks_comparison_crd_items_locales._parentID],
|
|
references: [pages_blocks_comparison_crd_items.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_comparison_crd_items = relations(
|
|
pages_blocks_comparison_crd_items,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_comparison, {
|
|
fields: [pages_blocks_comparison_crd_items._parentID],
|
|
references: [pages_blocks_comparison.id],
|
|
relationName: "crd_items",
|
|
}),
|
|
_locales: many(pages_blocks_comparison_crd_items_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
image: one(media, {
|
|
fields: [pages_blocks_comparison_crd_items.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
features: many(pages_blocks_comparison_crd_items_features, {
|
|
relationName: "features",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_comparison_before_after_items_locales = relations(
|
|
pages_blocks_comparison_before_after_items_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_comparison_before_after_items, {
|
|
fields: [pages_blocks_comparison_before_after_items_locales._parentID],
|
|
references: [pages_blocks_comparison_before_after_items.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_comparison_before_after_items = relations(
|
|
pages_blocks_comparison_before_after_items,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_comparison, {
|
|
fields: [pages_blocks_comparison_before_after_items._parentID],
|
|
references: [pages_blocks_comparison.id],
|
|
relationName: "beforeAfter_items",
|
|
}),
|
|
_locales: many(pages_blocks_comparison_before_after_items_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
beforeImage: one(media, {
|
|
fields: [pages_blocks_comparison_before_after_items.beforeImage],
|
|
references: [media.id],
|
|
relationName: "beforeImage",
|
|
}),
|
|
afterImage: one(media, {
|
|
fields: [pages_blocks_comparison_before_after_items.afterImage],
|
|
references: [media.id],
|
|
relationName: "afterImage",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_comparison_pros_cons_items_pros_locales = relations(
|
|
pages_blocks_comparison_pros_cons_items_pros_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_comparison_pros_cons_items_pros, {
|
|
fields: [pages_blocks_comparison_pros_cons_items_pros_locales._parentID],
|
|
references: [pages_blocks_comparison_pros_cons_items_pros.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_comparison_pros_cons_items_pros = relations(
|
|
pages_blocks_comparison_pros_cons_items_pros,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_comparison_pros_cons_items, {
|
|
fields: [pages_blocks_comparison_pros_cons_items_pros._parentID],
|
|
references: [pages_blocks_comparison_pros_cons_items.id],
|
|
relationName: "pros",
|
|
}),
|
|
_locales: many(pages_blocks_comparison_pros_cons_items_pros_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_comparison_pros_cons_items_cons_locales = relations(
|
|
pages_blocks_comparison_pros_cons_items_cons_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_comparison_pros_cons_items_cons, {
|
|
fields: [pages_blocks_comparison_pros_cons_items_cons_locales._parentID],
|
|
references: [pages_blocks_comparison_pros_cons_items_cons.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_comparison_pros_cons_items_cons = relations(
|
|
pages_blocks_comparison_pros_cons_items_cons,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_comparison_pros_cons_items, {
|
|
fields: [pages_blocks_comparison_pros_cons_items_cons._parentID],
|
|
references: [pages_blocks_comparison_pros_cons_items.id],
|
|
relationName: "cons",
|
|
}),
|
|
_locales: many(pages_blocks_comparison_pros_cons_items_cons_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_comparison_pros_cons_items_locales = relations(
|
|
pages_blocks_comparison_pros_cons_items_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_comparison_pros_cons_items, {
|
|
fields: [pages_blocks_comparison_pros_cons_items_locales._parentID],
|
|
references: [pages_blocks_comparison_pros_cons_items.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_comparison_pros_cons_items = relations(
|
|
pages_blocks_comparison_pros_cons_items,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_comparison, {
|
|
fields: [pages_blocks_comparison_pros_cons_items._parentID],
|
|
references: [pages_blocks_comparison.id],
|
|
relationName: "prosCons_items",
|
|
}),
|
|
_locales: many(pages_blocks_comparison_pros_cons_items_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
image: one(media, {
|
|
fields: [pages_blocks_comparison_pros_cons_items.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
pros: many(pages_blocks_comparison_pros_cons_items_pros, {
|
|
relationName: "pros",
|
|
}),
|
|
cons: many(pages_blocks_comparison_pros_cons_items_cons, {
|
|
relationName: "cons",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_comparison_locales = relations(pages_blocks_comparison_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_comparison, {
|
|
fields: [pages_blocks_comparison_locales._parentID],
|
|
references: [pages_blocks_comparison.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_comparison = relations(pages_blocks_comparison, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_comparison._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_comparison",
|
|
}),
|
|
_locales: many(pages_blocks_comparison_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
tbl_columns: many(pages_blocks_comparison_tbl_columns, {
|
|
relationName: "tbl_columns",
|
|
}),
|
|
tbl_rows: many(pages_blocks_comparison_tbl_rows, {
|
|
relationName: "tbl_rows",
|
|
}),
|
|
crd_items: many(pages_blocks_comparison_crd_items, {
|
|
relationName: "crd_items",
|
|
}),
|
|
beforeAfter_items: many(pages_blocks_comparison_before_after_items, {
|
|
relationName: "beforeAfter_items",
|
|
}),
|
|
prosCons_items: many(pages_blocks_comparison_pros_cons_items, {
|
|
relationName: "prosCons_items",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_before_after_comparisons_locales = relations(
|
|
pages_blocks_before_after_comparisons_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_before_after_comparisons, {
|
|
fields: [pages_blocks_before_after_comparisons_locales._parentID],
|
|
references: [pages_blocks_before_after_comparisons.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_before_after_comparisons = relations(
|
|
pages_blocks_before_after_comparisons,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_before_after, {
|
|
fields: [pages_blocks_before_after_comparisons._parentID],
|
|
references: [pages_blocks_before_after.id],
|
|
relationName: "comparisons",
|
|
}),
|
|
_locales: many(pages_blocks_before_after_comparisons_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
beforeImage: one(media, {
|
|
fields: [pages_blocks_before_after_comparisons.beforeImage],
|
|
references: [media.id],
|
|
relationName: "beforeImage",
|
|
}),
|
|
afterImage: one(media, {
|
|
fields: [pages_blocks_before_after_comparisons.afterImage],
|
|
references: [media.id],
|
|
relationName: "afterImage",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_before_after_locales = relations(pages_blocks_before_after_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_before_after, {
|
|
fields: [pages_blocks_before_after_locales._parentID],
|
|
references: [pages_blocks_before_after.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_before_after = relations(pages_blocks_before_after, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_before_after._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_before-after",
|
|
}),
|
|
_locales: many(pages_blocks_before_after_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
comparisons: many(pages_blocks_before_after_comparisons, {
|
|
relationName: "comparisons",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_favorites_block_locales = relations(
|
|
pages_blocks_favorites_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_favorites_block, {
|
|
fields: [pages_blocks_favorites_block_locales._parentID],
|
|
references: [pages_blocks_favorites_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_favorites_block = relations(pages_blocks_favorites_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_favorites_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_favorites-block",
|
|
}),
|
|
_locales: many(pages_blocks_favorites_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_series_block_locales = relations(pages_blocks_series_block_locales, ({ one }) => ({
|
|
_parentID: one(pages_blocks_series_block, {
|
|
fields: [pages_blocks_series_block_locales._parentID],
|
|
references: [pages_blocks_series_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_series_block = relations(pages_blocks_series_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_series_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_series-block",
|
|
}),
|
|
_locales: many(pages_blocks_series_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_series_detail_block_locales = relations(
|
|
pages_blocks_series_detail_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_series_detail_block, {
|
|
fields: [pages_blocks_series_detail_block_locales._parentID],
|
|
references: [pages_blocks_series_detail_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_series_detail_block = relations(
|
|
pages_blocks_series_detail_block,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_series_detail_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_series-detail-block",
|
|
}),
|
|
_locales: many(pages_blocks_series_detail_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
series: one(series, {
|
|
fields: [pages_blocks_series_detail_block.series],
|
|
references: [series.id],
|
|
relationName: "series",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_video_embed_block_locales = relations(
|
|
pages_blocks_video_embed_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_video_embed_block, {
|
|
fields: [pages_blocks_video_embed_block_locales._parentID],
|
|
references: [pages_blocks_video_embed_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_video_embed_block = relations(pages_blocks_video_embed_block, ({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_video_embed_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_video-embed-block",
|
|
}),
|
|
_locales: many(pages_blocks_video_embed_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
thumbnail: one(media, {
|
|
fields: [pages_blocks_video_embed_block.thumbnail],
|
|
references: [media.id],
|
|
relationName: "thumbnail",
|
|
}),
|
|
}));
|
|
export const relations_pages_blocks_featured_content_block_items_locales = relations(
|
|
pages_blocks_featured_content_block_items_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_featured_content_block_items, {
|
|
fields: [pages_blocks_featured_content_block_items_locales._parentID],
|
|
references: [pages_blocks_featured_content_block_items.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_featured_content_block_items = relations(
|
|
pages_blocks_featured_content_block_items,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages_blocks_featured_content_block, {
|
|
fields: [pages_blocks_featured_content_block_items._parentID],
|
|
references: [pages_blocks_featured_content_block.id],
|
|
relationName: "items",
|
|
}),
|
|
_locales: many(pages_blocks_featured_content_block_items_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
post: one(posts, {
|
|
fields: [pages_blocks_featured_content_block_items.post],
|
|
references: [posts.id],
|
|
relationName: "post",
|
|
}),
|
|
video: one(videos, {
|
|
fields: [pages_blocks_featured_content_block_items.video],
|
|
references: [videos.id],
|
|
relationName: "video",
|
|
}),
|
|
series: one(series, {
|
|
fields: [pages_blocks_featured_content_block_items.series],
|
|
references: [series.id],
|
|
relationName: "series",
|
|
}),
|
|
externalImage: one(media, {
|
|
fields: [pages_blocks_featured_content_block_items.externalImage],
|
|
references: [media.id],
|
|
relationName: "externalImage",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_featured_content_block_locales = relations(
|
|
pages_blocks_featured_content_block_locales,
|
|
({ one }) => ({
|
|
_parentID: one(pages_blocks_featured_content_block, {
|
|
fields: [pages_blocks_featured_content_block_locales._parentID],
|
|
references: [pages_blocks_featured_content_block.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_blocks_featured_content_block = relations(
|
|
pages_blocks_featured_content_block,
|
|
({ one, many }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_blocks_featured_content_block._parentID],
|
|
references: [pages.id],
|
|
relationName: "_blocks_featured-content-block",
|
|
}),
|
|
_locales: many(pages_blocks_featured_content_block_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
items: many(pages_blocks_featured_content_block_items, {
|
|
relationName: "items",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_pages_locales = relations(pages_locales, ({ one }) => ({
|
|
_parentID: one(pages, {
|
|
fields: [pages_locales._parentID],
|
|
references: [pages.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_pages_rels = relations(pages_rels, ({ one }) => ({
|
|
parent: one(pages, {
|
|
fields: [pages_rels.parent],
|
|
references: [pages.id],
|
|
relationName: "_rels",
|
|
}),
|
|
categoriesID: one(categories, {
|
|
fields: [pages_rels.categoriesID],
|
|
references: [categories.id],
|
|
relationName: "categories",
|
|
}),
|
|
testimonialsID: one(testimonials, {
|
|
fields: [pages_rels.testimonialsID],
|
|
references: [testimonials.id],
|
|
relationName: "testimonials",
|
|
}),
|
|
faqsID: one(faqs, {
|
|
fields: [pages_rels.faqsID],
|
|
references: [faqs.id],
|
|
relationName: "faqs",
|
|
}),
|
|
teamID: one(team, {
|
|
fields: [pages_rels.teamID],
|
|
references: [team.id],
|
|
relationName: "team",
|
|
}),
|
|
servicesID: one(services, {
|
|
fields: [pages_rels.servicesID],
|
|
references: [services.id],
|
|
relationName: "services",
|
|
}),
|
|
authorsID: one(authors, {
|
|
fields: [pages_rels.authorsID],
|
|
references: [authors.id],
|
|
relationName: "authors",
|
|
}),
|
|
postsID: one(posts, {
|
|
fields: [pages_rels.postsID],
|
|
references: [posts.id],
|
|
relationName: "posts",
|
|
}),
|
|
locationsID: one(locations, {
|
|
fields: [pages_rels.locationsID],
|
|
references: [locations.id],
|
|
relationName: "locations",
|
|
}),
|
|
partnersID: one(partners, {
|
|
fields: [pages_rels.partnersID],
|
|
references: [partners.id],
|
|
relationName: "partners",
|
|
}),
|
|
jobsID: one(jobs, {
|
|
fields: [pages_rels.jobsID],
|
|
references: [jobs.id],
|
|
relationName: "jobs",
|
|
}),
|
|
downloadsID: one(downloads, {
|
|
fields: [pages_rels.downloadsID],
|
|
references: [downloads.id],
|
|
relationName: "downloads",
|
|
}),
|
|
eventsID: one(events, {
|
|
fields: [pages_rels.eventsID],
|
|
references: [events.id],
|
|
relationName: "events",
|
|
}),
|
|
}));
|
|
export const relations_pages = relations(pages, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [pages.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
hero_image: one(media, {
|
|
fields: [pages.hero_image],
|
|
references: [media.id],
|
|
relationName: "hero_image",
|
|
}),
|
|
"_blocks_hero-block": many(pages_blocks_hero_block, {
|
|
relationName: "_blocks_hero-block",
|
|
}),
|
|
"_blocks_hero-slider-block": many(pages_blocks_hero_slider_block, {
|
|
relationName: "_blocks_hero-slider-block",
|
|
}),
|
|
"_blocks_image-slider-block": many(pages_blocks_image_slider_block, {
|
|
relationName: "_blocks_image-slider-block",
|
|
}),
|
|
"_blocks_text-block": many(pages_blocks_text_block, {
|
|
relationName: "_blocks_text-block",
|
|
}),
|
|
"_blocks_image-text-block": many(pages_blocks_image_text_block, {
|
|
relationName: "_blocks_image-text-block",
|
|
}),
|
|
"_blocks_card-grid-block": many(pages_blocks_card_grid_block, {
|
|
relationName: "_blocks_card-grid-block",
|
|
}),
|
|
"_blocks_quote-block": many(pages_blocks_quote_block, {
|
|
relationName: "_blocks_quote-block",
|
|
}),
|
|
"_blocks_cta-block": many(pages_blocks_cta_block, {
|
|
relationName: "_blocks_cta-block",
|
|
}),
|
|
"_blocks_contact-form-block": many(pages_blocks_contact_form_block, {
|
|
relationName: "_blocks_contact-form-block",
|
|
}),
|
|
"_blocks_timeline-block": many(pages_blocks_timeline_block, {
|
|
relationName: "_blocks_timeline-block",
|
|
}),
|
|
"_blocks_divider-block": many(pages_blocks_divider_block, {
|
|
relationName: "_blocks_divider-block",
|
|
}),
|
|
"_blocks_video-block": many(pages_blocks_video_block, {
|
|
relationName: "_blocks_video-block",
|
|
}),
|
|
"_blocks_posts-list-block": many(pages_blocks_posts_list_block, {
|
|
relationName: "_blocks_posts-list-block",
|
|
}),
|
|
"_blocks_testimonials-block": many(pages_blocks_testimonials_block, {
|
|
relationName: "_blocks_testimonials-block",
|
|
}),
|
|
"_blocks_newsletter-block": many(pages_blocks_newsletter_block, {
|
|
relationName: "_blocks_newsletter-block",
|
|
}),
|
|
"_blocks_process-steps-block": many(pages_blocks_process_steps_block, {
|
|
relationName: "_blocks_process-steps-block",
|
|
}),
|
|
"_blocks_faq-block": many(pages_blocks_faq_block, {
|
|
relationName: "_blocks_faq-block",
|
|
}),
|
|
"_blocks_team-block": many(pages_blocks_team_block, {
|
|
relationName: "_blocks_team-block",
|
|
}),
|
|
"_blocks_services-block": many(pages_blocks_services_block, {
|
|
relationName: "_blocks_services-block",
|
|
}),
|
|
"_blocks_author-bio-block": many(pages_blocks_author_bio_block, {
|
|
relationName: "_blocks_author-bio-block",
|
|
}),
|
|
"_blocks_related-posts-block": many(pages_blocks_related_posts_block, {
|
|
relationName: "_blocks_related-posts-block",
|
|
}),
|
|
"_blocks_share-buttons-block": many(pages_blocks_share_buttons_block, {
|
|
relationName: "_blocks_share-buttons-block",
|
|
}),
|
|
"_blocks_toc-block": many(pages_blocks_toc_block, {
|
|
relationName: "_blocks_toc-block",
|
|
}),
|
|
"_blocks_team-filter-block": many(pages_blocks_team_filter_block, {
|
|
relationName: "_blocks_team-filter-block",
|
|
}),
|
|
"_blocks_org-chart-block": many(pages_blocks_org_chart_block, {
|
|
relationName: "_blocks_org-chart-block",
|
|
}),
|
|
"_blocks_locations-block": many(pages_blocks_locations_block, {
|
|
relationName: "_blocks_locations-block",
|
|
}),
|
|
"_blocks_logo-grid-block": many(pages_blocks_logo_grid_block, {
|
|
relationName: "_blocks_logo-grid-block",
|
|
}),
|
|
"_blocks_stats-block": many(pages_blocks_stats_block, {
|
|
relationName: "_blocks_stats-block",
|
|
}),
|
|
"_blocks_jobs-block": many(pages_blocks_jobs_block, {
|
|
relationName: "_blocks_jobs-block",
|
|
}),
|
|
"_blocks_downloads-block": many(pages_blocks_downloads_block, {
|
|
relationName: "_blocks_downloads-block",
|
|
}),
|
|
"_blocks_map-block": many(pages_blocks_map_block, {
|
|
relationName: "_blocks_map-block",
|
|
}),
|
|
_blocks_events: many(pages_blocks_events, {
|
|
relationName: "_blocks_events",
|
|
}),
|
|
_blocks_pricing: many(pages_blocks_pricing, {
|
|
relationName: "_blocks_pricing",
|
|
}),
|
|
_blocks_tabs: many(pages_blocks_tabs, {
|
|
relationName: "_blocks_tabs",
|
|
}),
|
|
_blocks_accordion: many(pages_blocks_accordion, {
|
|
relationName: "_blocks_accordion",
|
|
}),
|
|
_blocks_comparison: many(pages_blocks_comparison, {
|
|
relationName: "_blocks_comparison",
|
|
}),
|
|
"_blocks_before-after": many(pages_blocks_before_after, {
|
|
relationName: "_blocks_before-after",
|
|
}),
|
|
"_blocks_favorites-block": many(pages_blocks_favorites_block, {
|
|
relationName: "_blocks_favorites-block",
|
|
}),
|
|
"_blocks_series-block": many(pages_blocks_series_block, {
|
|
relationName: "_blocks_series-block",
|
|
}),
|
|
"_blocks_series-detail-block": many(pages_blocks_series_detail_block, {
|
|
relationName: "_blocks_series-detail-block",
|
|
}),
|
|
"_blocks_video-embed-block": many(pages_blocks_video_embed_block, {
|
|
relationName: "_blocks_video-embed-block",
|
|
}),
|
|
"_blocks_featured-content-block": many(pages_blocks_featured_content_block, {
|
|
relationName: "_blocks_featured-content-block",
|
|
}),
|
|
seo_ogImage: one(media, {
|
|
fields: [pages.seo_ogImage],
|
|
references: [media.id],
|
|
relationName: "seo_ogImage",
|
|
}),
|
|
_locales: many(pages_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
_rels: many(pages_rels, {
|
|
relationName: "_rels",
|
|
}),
|
|
}));
|
|
export const relations_posts_locales = relations(posts_locales, ({ one }) => ({
|
|
_parentID: one(posts, {
|
|
fields: [posts_locales._parentID],
|
|
references: [posts.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_posts_rels = relations(posts_rels, ({ one }) => ({
|
|
parent: one(posts, {
|
|
fields: [posts_rels.parent],
|
|
references: [posts.id],
|
|
relationName: "_rels",
|
|
}),
|
|
categoriesID: one(categories, {
|
|
fields: [posts_rels.categoriesID],
|
|
references: [categories.id],
|
|
relationName: "categories",
|
|
}),
|
|
tagsID: one(tags, {
|
|
fields: [posts_rels.tagsID],
|
|
references: [tags.id],
|
|
relationName: "tags",
|
|
}),
|
|
authorsID: one(authors, {
|
|
fields: [posts_rels.authorsID],
|
|
references: [authors.id],
|
|
relationName: "authors",
|
|
}),
|
|
}));
|
|
export const relations_posts = relations(posts, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [posts.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
featuredImage: one(media, {
|
|
fields: [posts.featuredImage],
|
|
references: [media.id],
|
|
relationName: "featuredImage",
|
|
}),
|
|
featuredVideo_video: one(videos, {
|
|
fields: [posts.featuredVideo_video],
|
|
references: [videos.id],
|
|
relationName: "featuredVideo_video",
|
|
}),
|
|
featuredVideo_uploadedVideo: one(media, {
|
|
fields: [posts.featuredVideo_uploadedVideo],
|
|
references: [media.id],
|
|
relationName: "featuredVideo_uploadedVideo",
|
|
}),
|
|
author: one(authors, {
|
|
fields: [posts.author],
|
|
references: [authors.id],
|
|
relationName: "author",
|
|
}),
|
|
seo_ogImage: one(media, {
|
|
fields: [posts.seo_ogImage],
|
|
references: [media.id],
|
|
relationName: "seo_ogImage",
|
|
}),
|
|
_locales: many(posts_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
_rels: many(posts_rels, {
|
|
relationName: "_rels",
|
|
}),
|
|
}));
|
|
export const relations_categories_locales = relations(categories_locales, ({ one }) => ({
|
|
_parentID: one(categories, {
|
|
fields: [categories_locales._parentID],
|
|
references: [categories.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_categories = relations(categories, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [categories.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
_locales: many(categories_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_social_links = relations(social_links, ({ one }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [social_links.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
}));
|
|
export const relations_testimonials_locales = relations(testimonials_locales, ({ one }) => ({
|
|
_parentID: one(testimonials, {
|
|
fields: [testimonials_locales._parentID],
|
|
references: [testimonials.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_testimonials = relations(testimonials, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [testimonials.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
image: one(media, {
|
|
fields: [testimonials.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
_locales: many(testimonials_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_faqs_locales = relations(faqs_locales, ({ one }) => ({
|
|
_parentID: one(faqs, {
|
|
fields: [faqs_locales._parentID],
|
|
references: [faqs.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_faqs_rels = relations(faqs_rels, ({ one }) => ({
|
|
parent: one(faqs, {
|
|
fields: [faqs_rels.parent],
|
|
references: [faqs.id],
|
|
relationName: "_rels",
|
|
}),
|
|
faqsID: one(faqs, {
|
|
fields: [faqs_rels.faqsID],
|
|
references: [faqs.id],
|
|
relationName: "faqs",
|
|
}),
|
|
}));
|
|
export const relations_faqs = relations(faqs, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [faqs.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
_locales: many(faqs_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
_rels: many(faqs_rels, {
|
|
relationName: "_rels",
|
|
}),
|
|
}));
|
|
export const relations_team_social_links = relations(team_social_links, ({ one }) => ({
|
|
_parentID: one(team, {
|
|
fields: [team_social_links._parentID],
|
|
references: [team.id],
|
|
relationName: "socialLinks",
|
|
}),
|
|
}));
|
|
export const relations_team_qualifications_locales = relations(team_qualifications_locales, ({ one }) => ({
|
|
_parentID: one(team_qualifications, {
|
|
fields: [team_qualifications_locales._parentID],
|
|
references: [team_qualifications.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_team_qualifications = relations(team_qualifications, ({ one, many }) => ({
|
|
_parentID: one(team, {
|
|
fields: [team_qualifications._parentID],
|
|
references: [team.id],
|
|
relationName: "qualifications",
|
|
}),
|
|
_locales: many(team_qualifications_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_team_specializations_locales = relations(team_specializations_locales, ({ one }) => ({
|
|
_parentID: one(team_specializations, {
|
|
fields: [team_specializations_locales._parentID],
|
|
references: [team_specializations.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_team_specializations = relations(team_specializations, ({ one, many }) => ({
|
|
_parentID: one(team, {
|
|
fields: [team_specializations._parentID],
|
|
references: [team.id],
|
|
relationName: "specializations",
|
|
}),
|
|
_locales: many(team_specializations_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_team_languages_locales = relations(team_languages_locales, ({ one }) => ({
|
|
_parentID: one(team_languages, {
|
|
fields: [team_languages_locales._parentID],
|
|
references: [team_languages.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_team_languages = relations(team_languages, ({ one, many }) => ({
|
|
_parentID: one(team, {
|
|
fields: [team_languages._parentID],
|
|
references: [team.id],
|
|
relationName: "languages",
|
|
}),
|
|
_locales: many(team_languages_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_team_locales = relations(team_locales, ({ one }) => ({
|
|
_parentID: one(team, {
|
|
fields: [team_locales._parentID],
|
|
references: [team.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_team = relations(team, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [team.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
image: one(media, {
|
|
fields: [team.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
socialLinks: many(team_social_links, {
|
|
relationName: "socialLinks",
|
|
}),
|
|
qualifications: many(team_qualifications, {
|
|
relationName: "qualifications",
|
|
}),
|
|
specializations: many(team_specializations, {
|
|
relationName: "specializations",
|
|
}),
|
|
languages: many(team_languages, {
|
|
relationName: "languages",
|
|
}),
|
|
linkedUser: one(users, {
|
|
fields: [team.linkedUser],
|
|
references: [users.id],
|
|
relationName: "linkedUser",
|
|
}),
|
|
reportsTo: one(team, {
|
|
fields: [team.reportsTo],
|
|
references: [team.id],
|
|
relationName: "reportsTo",
|
|
}),
|
|
_locales: many(team_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_service_categories_locales = relations(service_categories_locales, ({ one }) => ({
|
|
_parentID: one(service_categories, {
|
|
fields: [service_categories_locales._parentID],
|
|
references: [service_categories.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_service_categories = relations(service_categories, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [service_categories.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
image: one(media, {
|
|
fields: [service_categories.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
_locales: many(service_categories_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_services_gallery_locales = relations(services_gallery_locales, ({ one }) => ({
|
|
_parentID: one(services_gallery, {
|
|
fields: [services_gallery_locales._parentID],
|
|
references: [services_gallery.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_services_gallery = relations(services_gallery, ({ one, many }) => ({
|
|
_parentID: one(services, {
|
|
fields: [services_gallery._parentID],
|
|
references: [services.id],
|
|
relationName: "gallery",
|
|
}),
|
|
_locales: many(services_gallery_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
image: one(media, {
|
|
fields: [services_gallery.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
}));
|
|
export const relations_services_features_locales = relations(services_features_locales, ({ one }) => ({
|
|
_parentID: one(services_features, {
|
|
fields: [services_features_locales._parentID],
|
|
references: [services_features.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_services_features = relations(services_features, ({ one, many }) => ({
|
|
_parentID: one(services, {
|
|
fields: [services_features._parentID],
|
|
references: [services.id],
|
|
relationName: "features",
|
|
}),
|
|
_locales: many(services_features_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_services_detail_sections_locales = relations(services_detail_sections_locales, ({ one }) => ({
|
|
_parentID: one(services_detail_sections, {
|
|
fields: [services_detail_sections_locales._parentID],
|
|
references: [services_detail_sections.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_services_detail_sections = relations(services_detail_sections, ({ one, many }) => ({
|
|
_parentID: one(services, {
|
|
fields: [services_detail_sections._parentID],
|
|
references: [services.id],
|
|
relationName: "detailSections",
|
|
}),
|
|
_locales: many(services_detail_sections_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_services_locales = relations(services_locales, ({ one }) => ({
|
|
_parentID: one(services, {
|
|
fields: [services_locales._parentID],
|
|
references: [services.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_services_rels = relations(services_rels, ({ one }) => ({
|
|
parent: one(services, {
|
|
fields: [services_rels.parent],
|
|
references: [services.id],
|
|
relationName: "_rels",
|
|
}),
|
|
servicesID: one(services, {
|
|
fields: [services_rels.servicesID],
|
|
references: [services.id],
|
|
relationName: "services",
|
|
}),
|
|
teamID: one(team, {
|
|
fields: [services_rels.teamID],
|
|
references: [team.id],
|
|
relationName: "team",
|
|
}),
|
|
faqsID: one(faqs, {
|
|
fields: [services_rels.faqsID],
|
|
references: [faqs.id],
|
|
relationName: "faqs",
|
|
}),
|
|
}));
|
|
export const relations_services = relations(services, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [services.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
iconImage: one(media, {
|
|
fields: [services.iconImage],
|
|
references: [media.id],
|
|
relationName: "iconImage",
|
|
}),
|
|
image: one(media, {
|
|
fields: [services.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
gallery: many(services_gallery, {
|
|
relationName: "gallery",
|
|
}),
|
|
category: one(service_categories, {
|
|
fields: [services.category],
|
|
references: [service_categories.id],
|
|
relationName: "category",
|
|
}),
|
|
features: many(services_features, {
|
|
relationName: "features",
|
|
}),
|
|
detailSections: many(services_detail_sections, {
|
|
relationName: "detailSections",
|
|
}),
|
|
ogImage: one(media, {
|
|
fields: [services.ogImage],
|
|
references: [media.id],
|
|
relationName: "ogImage",
|
|
}),
|
|
_locales: many(services_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
_rels: many(services_rels, {
|
|
relationName: "_rels",
|
|
}),
|
|
}));
|
|
export const relations_newsletter_subscribers_interests = relations(newsletter_subscribers_interests, ({ one }) => ({
|
|
parent: one(newsletter_subscribers, {
|
|
fields: [newsletter_subscribers_interests.parent],
|
|
references: [newsletter_subscribers.id],
|
|
relationName: "interests",
|
|
}),
|
|
}));
|
|
export const relations_newsletter_subscribers = relations(newsletter_subscribers, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [newsletter_subscribers.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
interests: many(newsletter_subscribers_interests, {
|
|
relationName: "interests",
|
|
}),
|
|
}));
|
|
export const relations_portfolio_categories_locales = relations(portfolio_categories_locales, ({ one }) => ({
|
|
_parentID: one(portfolio_categories, {
|
|
fields: [portfolio_categories_locales._parentID],
|
|
references: [portfolio_categories.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_portfolio_categories = relations(portfolio_categories, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [portfolio_categories.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
coverImage: one(media, {
|
|
fields: [portfolio_categories.coverImage],
|
|
references: [media.id],
|
|
relationName: "coverImage",
|
|
}),
|
|
_locales: many(portfolio_categories_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_portfolios_images_locales = relations(portfolios_images_locales, ({ one }) => ({
|
|
_parentID: one(portfolios_images, {
|
|
fields: [portfolios_images_locales._parentID],
|
|
references: [portfolios_images.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_portfolios_images = relations(portfolios_images, ({ one, many }) => ({
|
|
_parentID: one(portfolios, {
|
|
fields: [portfolios_images._parentID],
|
|
references: [portfolios.id],
|
|
relationName: "images",
|
|
}),
|
|
_locales: many(portfolios_images_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
image: one(media, {
|
|
fields: [portfolios_images.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
}));
|
|
export const relations_portfolios_locales = relations(portfolios_locales, ({ one }) => ({
|
|
_parentID: one(portfolios, {
|
|
fields: [portfolios_locales._parentID],
|
|
references: [portfolios.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_portfolios_texts = relations(portfolios_texts, ({ one }) => ({
|
|
parent: one(portfolios, {
|
|
fields: [portfolios_texts.parent],
|
|
references: [portfolios.id],
|
|
relationName: "_texts",
|
|
}),
|
|
}));
|
|
export const relations_portfolios = relations(portfolios, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [portfolios.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
category: one(portfolio_categories, {
|
|
fields: [portfolios.category],
|
|
references: [portfolio_categories.id],
|
|
relationName: "category",
|
|
}),
|
|
coverImage: one(media, {
|
|
fields: [portfolios.coverImage],
|
|
references: [media.id],
|
|
relationName: "coverImage",
|
|
}),
|
|
images: many(portfolios_images, {
|
|
relationName: "images",
|
|
}),
|
|
seo_ogImage: one(media, {
|
|
fields: [portfolios.seo_ogImage],
|
|
references: [media.id],
|
|
relationName: "seo_ogImage",
|
|
}),
|
|
_locales: many(portfolios_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
_texts: many(portfolios_texts, {
|
|
relationName: "_texts",
|
|
}),
|
|
}));
|
|
export const relations_video_categories_locales = relations(video_categories_locales, ({ one }) => ({
|
|
_parentID: one(video_categories, {
|
|
fields: [video_categories_locales._parentID],
|
|
references: [video_categories.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_video_categories = relations(video_categories, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [video_categories.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
coverImage: one(media, {
|
|
fields: [video_categories.coverImage],
|
|
references: [media.id],
|
|
relationName: "coverImage",
|
|
}),
|
|
_locales: many(video_categories_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_videos_locales = relations(videos_locales, ({ one }) => ({
|
|
_parentID: one(videos, {
|
|
fields: [videos_locales._parentID],
|
|
references: [videos.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_videos_rels = relations(videos_rels, ({ one }) => ({
|
|
parent: one(videos, {
|
|
fields: [videos_rels.parent],
|
|
references: [videos.id],
|
|
relationName: "_rels",
|
|
}),
|
|
tagsID: one(tags, {
|
|
fields: [videos_rels.tagsID],
|
|
references: [tags.id],
|
|
relationName: "tags",
|
|
}),
|
|
videosID: one(videos, {
|
|
fields: [videos_rels.videosID],
|
|
references: [videos.id],
|
|
relationName: "videos",
|
|
}),
|
|
postsID: one(posts, {
|
|
fields: [videos_rels.postsID],
|
|
references: [posts.id],
|
|
relationName: "posts",
|
|
}),
|
|
}));
|
|
export const relations_videos = relations(videos, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [videos.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
videoFile: one(media, {
|
|
fields: [videos.videoFile],
|
|
references: [media.id],
|
|
relationName: "videoFile",
|
|
}),
|
|
thumbnail: one(media, {
|
|
fields: [videos.thumbnail],
|
|
references: [media.id],
|
|
relationName: "thumbnail",
|
|
}),
|
|
category: one(video_categories, {
|
|
fields: [videos.category],
|
|
references: [video_categories.id],
|
|
relationName: "category",
|
|
}),
|
|
seo_ogImage: one(media, {
|
|
fields: [videos.seo_ogImage],
|
|
references: [media.id],
|
|
relationName: "seo_ogImage",
|
|
}),
|
|
_locales: many(videos_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
_rels: many(videos_rels, {
|
|
relationName: "_rels",
|
|
}),
|
|
}));
|
|
export const relations_product_categories_locales = relations(product_categories_locales, ({ one }) => ({
|
|
_parentID: one(product_categories, {
|
|
fields: [product_categories_locales._parentID],
|
|
references: [product_categories.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_product_categories = relations(product_categories, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [product_categories.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
image: one(media, {
|
|
fields: [product_categories.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
parent: one(product_categories, {
|
|
fields: [product_categories.parent],
|
|
references: [product_categories.id],
|
|
relationName: "parent",
|
|
}),
|
|
_locales: many(product_categories_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_products_tags = relations(products_tags, ({ one }) => ({
|
|
_parentID: one(products, {
|
|
fields: [products_tags._parentID],
|
|
references: [products.id],
|
|
relationName: "tags",
|
|
}),
|
|
}));
|
|
export const relations_products_gallery_locales = relations(products_gallery_locales, ({ one }) => ({
|
|
_parentID: one(products_gallery, {
|
|
fields: [products_gallery_locales._parentID],
|
|
references: [products_gallery.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_products_gallery = relations(products_gallery, ({ one, many }) => ({
|
|
_parentID: one(products, {
|
|
fields: [products_gallery._parentID],
|
|
references: [products.id],
|
|
relationName: "gallery",
|
|
}),
|
|
_locales: many(products_gallery_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
image: one(media, {
|
|
fields: [products_gallery.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
}));
|
|
export const relations_products_details_specifications_locales = relations(
|
|
products_details_specifications_locales,
|
|
({ one }) => ({
|
|
_parentID: one(products_details_specifications, {
|
|
fields: [products_details_specifications_locales._parentID],
|
|
references: [products_details_specifications.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_products_details_specifications = relations(
|
|
products_details_specifications,
|
|
({ one, many }) => ({
|
|
_parentID: one(products, {
|
|
fields: [products_details_specifications._parentID],
|
|
references: [products.id],
|
|
relationName: "details_specifications",
|
|
}),
|
|
_locales: many(products_details_specifications_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_products_details_features_locales = relations(products_details_features_locales, ({ one }) => ({
|
|
_parentID: one(products_details_features, {
|
|
fields: [products_details_features_locales._parentID],
|
|
references: [products_details_features.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_products_details_features = relations(products_details_features, ({ one, many }) => ({
|
|
_parentID: one(products, {
|
|
fields: [products_details_features._parentID],
|
|
references: [products.id],
|
|
relationName: "details_features",
|
|
}),
|
|
_locales: many(products_details_features_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_products_download_files_locales = relations(products_download_files_locales, ({ one }) => ({
|
|
_parentID: one(products_download_files, {
|
|
fields: [products_download_files_locales._parentID],
|
|
references: [products_download_files.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_products_download_files = relations(products_download_files, ({ one, many }) => ({
|
|
_parentID: one(products, {
|
|
fields: [products_download_files._parentID],
|
|
references: [products.id],
|
|
relationName: "downloadFiles",
|
|
}),
|
|
_locales: many(products_download_files_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
file: one(media, {
|
|
fields: [products_download_files.file],
|
|
references: [media.id],
|
|
relationName: "file",
|
|
}),
|
|
}));
|
|
export const relations_products_locales = relations(products_locales, ({ one }) => ({
|
|
_parentID: one(products, {
|
|
fields: [products_locales._parentID],
|
|
references: [products.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_products_rels = relations(products_rels, ({ one }) => ({
|
|
parent: one(products, {
|
|
fields: [products_rels.parent],
|
|
references: [products.id],
|
|
relationName: "_rels",
|
|
}),
|
|
productsID: one(products, {
|
|
fields: [products_rels.productsID],
|
|
references: [products.id],
|
|
relationName: "products",
|
|
}),
|
|
}));
|
|
export const relations_products = relations(products, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [products.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
category: one(product_categories, {
|
|
fields: [products.category],
|
|
references: [product_categories.id],
|
|
relationName: "category",
|
|
}),
|
|
tags: many(products_tags, {
|
|
relationName: "tags",
|
|
}),
|
|
featuredImage: one(media, {
|
|
fields: [products.featuredImage],
|
|
references: [media.id],
|
|
relationName: "featuredImage",
|
|
}),
|
|
gallery: many(products_gallery, {
|
|
relationName: "gallery",
|
|
}),
|
|
details_specifications: many(products_details_specifications, {
|
|
relationName: "details_specifications",
|
|
}),
|
|
details_features: many(products_details_features, {
|
|
relationName: "details_features",
|
|
}),
|
|
downloadFiles: many(products_download_files, {
|
|
relationName: "downloadFiles",
|
|
}),
|
|
seo_ogImage: one(media, {
|
|
fields: [products.seo_ogImage],
|
|
references: [media.id],
|
|
relationName: "seo_ogImage",
|
|
}),
|
|
_locales: many(products_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
_rels: many(products_rels, {
|
|
relationName: "_rels",
|
|
}),
|
|
}));
|
|
export const relations_timelines_events_gallery_locales = relations(timelines_events_gallery_locales, ({ one }) => ({
|
|
_parentID: one(timelines_events_gallery, {
|
|
fields: [timelines_events_gallery_locales._parentID],
|
|
references: [timelines_events_gallery.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_timelines_events_gallery = relations(timelines_events_gallery, ({ one, many }) => ({
|
|
_parentID: one(timelines_events, {
|
|
fields: [timelines_events_gallery._parentID],
|
|
references: [timelines_events.id],
|
|
relationName: "gallery",
|
|
}),
|
|
_locales: many(timelines_events_gallery_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
image: one(media, {
|
|
fields: [timelines_events_gallery.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
}));
|
|
export const relations_timelines_events_deliverables_locales = relations(
|
|
timelines_events_deliverables_locales,
|
|
({ one }) => ({
|
|
_parentID: one(timelines_events_deliverables, {
|
|
fields: [timelines_events_deliverables_locales._parentID],
|
|
references: [timelines_events_deliverables.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_timelines_events_deliverables = relations(timelines_events_deliverables, ({ one, many }) => ({
|
|
_parentID: one(timelines_events, {
|
|
fields: [timelines_events_deliverables._parentID],
|
|
references: [timelines_events.id],
|
|
relationName: "deliverables",
|
|
}),
|
|
_locales: many(timelines_events_deliverables_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_timelines_events_links_locales = relations(timelines_events_links_locales, ({ one }) => ({
|
|
_parentID: one(timelines_events_links, {
|
|
fields: [timelines_events_links_locales._parentID],
|
|
references: [timelines_events_links.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_timelines_events_links = relations(timelines_events_links, ({ one, many }) => ({
|
|
_parentID: one(timelines_events, {
|
|
fields: [timelines_events_links._parentID],
|
|
references: [timelines_events.id],
|
|
relationName: "links",
|
|
}),
|
|
_locales: many(timelines_events_links_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_timelines_events_locales = relations(timelines_events_locales, ({ one }) => ({
|
|
_parentID: one(timelines_events, {
|
|
fields: [timelines_events_locales._parentID],
|
|
references: [timelines_events.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_timelines_events = relations(timelines_events, ({ one, many }) => ({
|
|
_parentID: one(timelines, {
|
|
fields: [timelines_events._parentID],
|
|
references: [timelines.id],
|
|
relationName: "events",
|
|
}),
|
|
_locales: many(timelines_events_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
image: one(media, {
|
|
fields: [timelines_events.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
gallery: many(timelines_events_gallery, {
|
|
relationName: "gallery",
|
|
}),
|
|
deliverables: many(timelines_events_deliverables, {
|
|
relationName: "deliverables",
|
|
}),
|
|
links: many(timelines_events_links, {
|
|
relationName: "links",
|
|
}),
|
|
}));
|
|
export const relations_timelines_locales = relations(timelines_locales, ({ one }) => ({
|
|
_parentID: one(timelines, {
|
|
fields: [timelines_locales._parentID],
|
|
references: [timelines.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_timelines = relations(timelines, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [timelines.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
events: many(timelines_events, {
|
|
relationName: "events",
|
|
}),
|
|
_locales: many(timelines_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_workflows_phases_steps_conditions_locales = relations(
|
|
workflows_phases_steps_conditions_locales,
|
|
({ one }) => ({
|
|
_parentID: one(workflows_phases_steps_conditions, {
|
|
fields: [workflows_phases_steps_conditions_locales._parentID],
|
|
references: [workflows_phases_steps_conditions.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_workflows_phases_steps_conditions = relations(
|
|
workflows_phases_steps_conditions,
|
|
({ one, many }) => ({
|
|
_parentID: one(workflows_phases_steps, {
|
|
fields: [workflows_phases_steps_conditions._parentID],
|
|
references: [workflows_phases_steps.id],
|
|
relationName: "conditions",
|
|
}),
|
|
_locales: many(workflows_phases_steps_conditions_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_workflows_phases_steps_checklist_locales = relations(
|
|
workflows_phases_steps_checklist_locales,
|
|
({ one }) => ({
|
|
_parentID: one(workflows_phases_steps_checklist, {
|
|
fields: [workflows_phases_steps_checklist_locales._parentID],
|
|
references: [workflows_phases_steps_checklist.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_workflows_phases_steps_checklist = relations(
|
|
workflows_phases_steps_checklist,
|
|
({ one, many }) => ({
|
|
_parentID: one(workflows_phases_steps, {
|
|
fields: [workflows_phases_steps_checklist._parentID],
|
|
references: [workflows_phases_steps.id],
|
|
relationName: "checklist",
|
|
}),
|
|
_locales: many(workflows_phases_steps_checklist_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_workflows_phases_steps_resources_locales = relations(
|
|
workflows_phases_steps_resources_locales,
|
|
({ one }) => ({
|
|
_parentID: one(workflows_phases_steps_resources, {
|
|
fields: [workflows_phases_steps_resources_locales._parentID],
|
|
references: [workflows_phases_steps_resources.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_workflows_phases_steps_resources = relations(
|
|
workflows_phases_steps_resources,
|
|
({ one, many }) => ({
|
|
_parentID: one(workflows_phases_steps, {
|
|
fields: [workflows_phases_steps_resources._parentID],
|
|
references: [workflows_phases_steps.id],
|
|
relationName: "resources",
|
|
}),
|
|
_locales: many(workflows_phases_steps_resources_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
file: one(media, {
|
|
fields: [workflows_phases_steps_resources.file],
|
|
references: [media.id],
|
|
relationName: "file",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_workflows_phases_steps_outputs_locales = relations(
|
|
workflows_phases_steps_outputs_locales,
|
|
({ one }) => ({
|
|
_parentID: one(workflows_phases_steps_outputs, {
|
|
fields: [workflows_phases_steps_outputs_locales._parentID],
|
|
references: [workflows_phases_steps_outputs.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_workflows_phases_steps_outputs = relations(workflows_phases_steps_outputs, ({ one, many }) => ({
|
|
_parentID: one(workflows_phases_steps, {
|
|
fields: [workflows_phases_steps_outputs._parentID],
|
|
references: [workflows_phases_steps.id],
|
|
relationName: "outputs",
|
|
}),
|
|
_locales: many(workflows_phases_steps_outputs_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_workflows_phases_steps_locales = relations(workflows_phases_steps_locales, ({ one }) => ({
|
|
_parentID: one(workflows_phases_steps, {
|
|
fields: [workflows_phases_steps_locales._parentID],
|
|
references: [workflows_phases_steps.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_workflows_phases_steps = relations(workflows_phases_steps, ({ one, many }) => ({
|
|
_parentID: one(workflows_phases, {
|
|
fields: [workflows_phases_steps._parentID],
|
|
references: [workflows_phases.id],
|
|
relationName: "steps",
|
|
}),
|
|
_locales: many(workflows_phases_steps_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
conditions: many(workflows_phases_steps_conditions, {
|
|
relationName: "conditions",
|
|
}),
|
|
checklist: many(workflows_phases_steps_checklist, {
|
|
relationName: "checklist",
|
|
}),
|
|
resources: many(workflows_phases_steps_resources, {
|
|
relationName: "resources",
|
|
}),
|
|
outputs: many(workflows_phases_steps_outputs, {
|
|
relationName: "outputs",
|
|
}),
|
|
}));
|
|
export const relations_workflows_phases_deliverables_locales = relations(
|
|
workflows_phases_deliverables_locales,
|
|
({ one }) => ({
|
|
_parentID: one(workflows_phases_deliverables, {
|
|
fields: [workflows_phases_deliverables_locales._parentID],
|
|
references: [workflows_phases_deliverables.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_workflows_phases_deliverables = relations(workflows_phases_deliverables, ({ one, many }) => ({
|
|
_parentID: one(workflows_phases, {
|
|
fields: [workflows_phases_deliverables._parentID],
|
|
references: [workflows_phases.id],
|
|
relationName: "deliverables",
|
|
}),
|
|
_locales: many(workflows_phases_deliverables_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_workflows_phases_locales = relations(workflows_phases_locales, ({ one }) => ({
|
|
_parentID: one(workflows_phases, {
|
|
fields: [workflows_phases_locales._parentID],
|
|
references: [workflows_phases.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_workflows_phases = relations(workflows_phases, ({ one, many }) => ({
|
|
_parentID: one(workflows, {
|
|
fields: [workflows_phases._parentID],
|
|
references: [workflows.id],
|
|
relationName: "phases",
|
|
}),
|
|
_locales: many(workflows_phases_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
steps: many(workflows_phases_steps, {
|
|
relationName: "steps",
|
|
}),
|
|
deliverables: many(workflows_phases_deliverables, {
|
|
relationName: "deliverables",
|
|
}),
|
|
}));
|
|
export const relations_workflows_global_resources_locales = relations(
|
|
workflows_global_resources_locales,
|
|
({ one }) => ({
|
|
_parentID: one(workflows_global_resources, {
|
|
fields: [workflows_global_resources_locales._parentID],
|
|
references: [workflows_global_resources.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_workflows_global_resources = relations(workflows_global_resources, ({ one, many }) => ({
|
|
_parentID: one(workflows, {
|
|
fields: [workflows_global_resources._parentID],
|
|
references: [workflows.id],
|
|
relationName: "globalResources",
|
|
}),
|
|
_locales: many(workflows_global_resources_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
file: one(media, {
|
|
fields: [workflows_global_resources.file],
|
|
references: [media.id],
|
|
relationName: "file",
|
|
}),
|
|
}));
|
|
export const relations_workflows_locales = relations(workflows_locales, ({ one }) => ({
|
|
_parentID: one(workflows, {
|
|
fields: [workflows_locales._parentID],
|
|
references: [workflows.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_workflows = relations(workflows, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [workflows.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
image: one(media, {
|
|
fields: [workflows.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
phases: many(workflows_phases, {
|
|
relationName: "phases",
|
|
}),
|
|
globalResources: many(workflows_global_resources, {
|
|
relationName: "globalResources",
|
|
}),
|
|
_locales: many(workflows_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_tags_locales = relations(tags_locales, ({ one }) => ({
|
|
_parentID: one(tags, {
|
|
fields: [tags_locales._parentID],
|
|
references: [tags.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_tags = relations(tags, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [tags.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
_locales: many(tags_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_authors_locales = relations(authors_locales, ({ one }) => ({
|
|
_parentID: one(authors, {
|
|
fields: [authors_locales._parentID],
|
|
references: [authors.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_authors = relations(authors, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [authors.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
avatar: one(media, {
|
|
fields: [authors.avatar],
|
|
references: [media.id],
|
|
relationName: "avatar",
|
|
}),
|
|
linkedTeam: one(team, {
|
|
fields: [authors.linkedTeam],
|
|
references: [team.id],
|
|
relationName: "linkedTeam",
|
|
}),
|
|
linkedUser: one(users, {
|
|
fields: [authors.linkedUser],
|
|
references: [users.id],
|
|
relationName: "linkedUser",
|
|
}),
|
|
_locales: many(authors_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_locations_hours_structured = relations(locations_hours_structured, ({ one }) => ({
|
|
_parentID: one(locations, {
|
|
fields: [locations_hours_structured._parentID],
|
|
references: [locations.id],
|
|
relationName: "hours_structured",
|
|
}),
|
|
}));
|
|
export const relations_locations_locales = relations(locations_locales, ({ one }) => ({
|
|
_parentID: one(locations, {
|
|
fields: [locations_locales._parentID],
|
|
references: [locations.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_locations_rels = relations(locations_rels, ({ one }) => ({
|
|
parent: one(locations, {
|
|
fields: [locations_rels.parent],
|
|
references: [locations.id],
|
|
relationName: "_rels",
|
|
}),
|
|
servicesID: one(services, {
|
|
fields: [locations_rels.servicesID],
|
|
references: [services.id],
|
|
relationName: "services",
|
|
}),
|
|
teamID: one(team, {
|
|
fields: [locations_rels.teamID],
|
|
references: [team.id],
|
|
relationName: "team",
|
|
}),
|
|
}));
|
|
export const relations_locations = relations(locations, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [locations.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
image: one(media, {
|
|
fields: [locations.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
hours_structured: many(locations_hours_structured, {
|
|
relationName: "hours_structured",
|
|
}),
|
|
_locales: many(locations_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
_rels: many(locations_rels, {
|
|
relationName: "_rels",
|
|
}),
|
|
}));
|
|
export const relations_partners_case_study_results_locales = relations(
|
|
partners_case_study_results_locales,
|
|
({ one }) => ({
|
|
_parentID: one(partners_case_study_results, {
|
|
fields: [partners_case_study_results_locales._parentID],
|
|
references: [partners_case_study_results.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_partners_case_study_results = relations(partners_case_study_results, ({ one, many }) => ({
|
|
_parentID: one(partners, {
|
|
fields: [partners_case_study_results._parentID],
|
|
references: [partners.id],
|
|
relationName: "caseStudy_results",
|
|
}),
|
|
_locales: many(partners_case_study_results_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_partners_tags = relations(partners_tags, ({ one }) => ({
|
|
_parentID: one(partners, {
|
|
fields: [partners_tags._parentID],
|
|
references: [partners.id],
|
|
relationName: "tags",
|
|
}),
|
|
}));
|
|
export const relations_partners_locales = relations(partners_locales, ({ one }) => ({
|
|
_parentID: one(partners, {
|
|
fields: [partners_locales._parentID],
|
|
references: [partners.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_partners = relations(partners, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [partners.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
logo: one(media, {
|
|
fields: [partners.logo],
|
|
references: [media.id],
|
|
relationName: "logo",
|
|
}),
|
|
logoLight: one(media, {
|
|
fields: [partners.logoLight],
|
|
references: [media.id],
|
|
relationName: "logoLight",
|
|
}),
|
|
caseStudy_results: many(partners_case_study_results, {
|
|
relationName: "caseStudy_results",
|
|
}),
|
|
certification_document: one(media, {
|
|
fields: [partners.certification_document],
|
|
references: [media.id],
|
|
relationName: "certification_document",
|
|
}),
|
|
tags: many(partners_tags, {
|
|
relationName: "tags",
|
|
}),
|
|
_locales: many(partners_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_jobs_benefits_list_locales = relations(jobs_benefits_list_locales, ({ one }) => ({
|
|
_parentID: one(jobs_benefits_list, {
|
|
fields: [jobs_benefits_list_locales._parentID],
|
|
references: [jobs_benefits_list.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_jobs_benefits_list = relations(jobs_benefits_list, ({ one, many }) => ({
|
|
_parentID: one(jobs, {
|
|
fields: [jobs_benefits_list._parentID],
|
|
references: [jobs.id],
|
|
relationName: "benefitsList",
|
|
}),
|
|
_locales: many(jobs_benefits_list_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_jobs_locales = relations(jobs_locales, ({ one }) => ({
|
|
_parentID: one(jobs, {
|
|
fields: [jobs_locales._parentID],
|
|
references: [jobs.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_jobs = relations(jobs, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [jobs.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
location_locationRef: one(locations, {
|
|
fields: [jobs.location_locationRef],
|
|
references: [locations.id],
|
|
relationName: "location_locationRef",
|
|
}),
|
|
benefitsList: many(jobs_benefits_list, {
|
|
relationName: "benefitsList",
|
|
}),
|
|
application_formId: one(forms, {
|
|
fields: [jobs.application_formId],
|
|
references: [forms.id],
|
|
relationName: "application_formId",
|
|
}),
|
|
application_contact: one(team, {
|
|
fields: [jobs.application_contact],
|
|
references: [team.id],
|
|
relationName: "application_contact",
|
|
}),
|
|
image: one(media, {
|
|
fields: [jobs.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
_locales: many(jobs_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_downloads_tags = relations(downloads_tags, ({ one }) => ({
|
|
_parentID: one(downloads, {
|
|
fields: [downloads_tags._parentID],
|
|
references: [downloads.id],
|
|
relationName: "tags",
|
|
}),
|
|
}));
|
|
export const relations_downloads_access_form_fields = relations(downloads_access_form_fields, ({ one }) => ({
|
|
parent: one(downloads, {
|
|
fields: [downloads_access_form_fields.parent],
|
|
references: [downloads.id],
|
|
relationName: "access_formFields",
|
|
}),
|
|
}));
|
|
export const relations_downloads_locales = relations(downloads_locales, ({ one }) => ({
|
|
_parentID: one(downloads, {
|
|
fields: [downloads_locales._parentID],
|
|
references: [downloads.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_downloads_rels = relations(downloads_rels, ({ one }) => ({
|
|
parent: one(downloads, {
|
|
fields: [downloads_rels.parent],
|
|
references: [downloads.id],
|
|
relationName: "_rels",
|
|
}),
|
|
servicesID: one(services, {
|
|
fields: [downloads_rels.servicesID],
|
|
references: [services.id],
|
|
relationName: "services",
|
|
}),
|
|
productsID: one(products, {
|
|
fields: [downloads_rels.productsID],
|
|
references: [products.id],
|
|
relationName: "products",
|
|
}),
|
|
}));
|
|
export const relations_downloads = relations(downloads, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [downloads.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
file: one(media, {
|
|
fields: [downloads.file],
|
|
references: [media.id],
|
|
relationName: "file",
|
|
}),
|
|
tags: many(downloads_tags, {
|
|
relationName: "tags",
|
|
}),
|
|
thumbnail: one(media, {
|
|
fields: [downloads.thumbnail],
|
|
references: [media.id],
|
|
relationName: "thumbnail",
|
|
}),
|
|
access_formFields: many(downloads_access_form_fields, {
|
|
relationName: "access_formFields",
|
|
}),
|
|
_locales: many(downloads_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
_rels: many(downloads_rels, {
|
|
relationName: "_rels",
|
|
}),
|
|
}));
|
|
export const relations_events_gallery_locales = relations(events_gallery_locales, ({ one }) => ({
|
|
_parentID: one(events_gallery, {
|
|
fields: [events_gallery_locales._parentID],
|
|
references: [events_gallery.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_events_gallery = relations(events_gallery, ({ one, many }) => ({
|
|
_parentID: one(events, {
|
|
fields: [events_gallery._parentID],
|
|
references: [events.id],
|
|
relationName: "gallery",
|
|
}),
|
|
_locales: many(events_gallery_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
image: one(media, {
|
|
fields: [events_gallery.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
}));
|
|
export const relations_events_pricing_prices_locales = relations(events_pricing_prices_locales, ({ one }) => ({
|
|
_parentID: one(events_pricing_prices, {
|
|
fields: [events_pricing_prices_locales._parentID],
|
|
references: [events_pricing_prices.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_events_pricing_prices = relations(events_pricing_prices, ({ one, many }) => ({
|
|
_parentID: one(events, {
|
|
fields: [events_pricing_prices._parentID],
|
|
references: [events.id],
|
|
relationName: "pricing_prices",
|
|
}),
|
|
_locales: many(events_pricing_prices_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_events_speakers_locales = relations(events_speakers_locales, ({ one }) => ({
|
|
_parentID: one(events_speakers, {
|
|
fields: [events_speakers_locales._parentID],
|
|
references: [events_speakers.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_events_speakers = relations(events_speakers, ({ one, many }) => ({
|
|
_parentID: one(events, {
|
|
fields: [events_speakers._parentID],
|
|
references: [events.id],
|
|
relationName: "speakers",
|
|
}),
|
|
_locales: many(events_speakers_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
teamMember: one(team, {
|
|
fields: [events_speakers.teamMember],
|
|
references: [team.id],
|
|
relationName: "teamMember",
|
|
}),
|
|
photo: one(media, {
|
|
fields: [events_speakers.photo],
|
|
references: [media.id],
|
|
relationName: "photo",
|
|
}),
|
|
}));
|
|
export const relations_events_agenda_locales = relations(events_agenda_locales, ({ one }) => ({
|
|
_parentID: one(events_agenda, {
|
|
fields: [events_agenda_locales._parentID],
|
|
references: [events_agenda.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_events_agenda = relations(events_agenda, ({ one, many }) => ({
|
|
_parentID: one(events, {
|
|
fields: [events_agenda._parentID],
|
|
references: [events.id],
|
|
relationName: "agenda",
|
|
}),
|
|
_locales: many(events_agenda_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_events_locales = relations(events_locales, ({ one }) => ({
|
|
_parentID: one(events, {
|
|
fields: [events_locales._parentID],
|
|
references: [events.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_events_rels = relations(events_rels, ({ one }) => ({
|
|
parent: one(events, {
|
|
fields: [events_rels.parent],
|
|
references: [events.id],
|
|
relationName: "_rels",
|
|
}),
|
|
servicesID: one(services, {
|
|
fields: [events_rels.servicesID],
|
|
references: [services.id],
|
|
relationName: "services",
|
|
}),
|
|
eventsID: one(events, {
|
|
fields: [events_rels.eventsID],
|
|
references: [events.id],
|
|
relationName: "events",
|
|
}),
|
|
}));
|
|
export const relations_events = relations(events, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [events.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
location_locationRef: one(locations, {
|
|
fields: [events.location_locationRef],
|
|
references: [locations.id],
|
|
relationName: "location_locationRef",
|
|
}),
|
|
image: one(media, {
|
|
fields: [events.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
gallery: many(events_gallery, {
|
|
relationName: "gallery",
|
|
}),
|
|
registration_formId: one(forms, {
|
|
fields: [events.registration_formId],
|
|
references: [forms.id],
|
|
relationName: "registration_formId",
|
|
}),
|
|
pricing_prices: many(events_pricing_prices, {
|
|
relationName: "pricing_prices",
|
|
}),
|
|
speakers: many(events_speakers, {
|
|
relationName: "speakers",
|
|
}),
|
|
agenda: many(events_agenda, {
|
|
relationName: "agenda",
|
|
}),
|
|
contact_teamMember: one(team, {
|
|
fields: [events.contact_teamMember],
|
|
references: [team.id],
|
|
relationName: "contact_teamMember",
|
|
}),
|
|
seo_ogImage: one(media, {
|
|
fields: [events.seo_ogImage],
|
|
references: [media.id],
|
|
relationName: "seo_ogImage",
|
|
}),
|
|
_locales: many(events_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
_rels: many(events_rels, {
|
|
relationName: "_rels",
|
|
}),
|
|
}));
|
|
export const relations_bookings_reference_images = relations(bookings_reference_images, ({ one }) => ({
|
|
_parentID: one(bookings, {
|
|
fields: [bookings_reference_images._parentID],
|
|
references: [bookings.id],
|
|
relationName: "referenceImages",
|
|
}),
|
|
image: one(media, {
|
|
fields: [bookings_reference_images.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
}));
|
|
export const relations_bookings_internal_notes = relations(bookings_internal_notes, ({ one }) => ({
|
|
_parentID: one(bookings, {
|
|
fields: [bookings_internal_notes._parentID],
|
|
references: [bookings.id],
|
|
relationName: "internalNotes",
|
|
}),
|
|
author: one(users, {
|
|
fields: [bookings_internal_notes.author],
|
|
references: [users.id],
|
|
relationName: "author",
|
|
}),
|
|
}));
|
|
export const relations_bookings_contact_history = relations(bookings_contact_history, ({ one }) => ({
|
|
_parentID: one(bookings, {
|
|
fields: [bookings_contact_history._parentID],
|
|
references: [bookings.id],
|
|
relationName: "contactHistory",
|
|
}),
|
|
}));
|
|
export const relations_bookings = relations(bookings, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [bookings.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
service: one(services, {
|
|
fields: [bookings.service],
|
|
references: [services.id],
|
|
relationName: "service",
|
|
}),
|
|
referenceImages: many(bookings_reference_images, {
|
|
relationName: "referenceImages",
|
|
}),
|
|
internalNotes: many(bookings_internal_notes, {
|
|
relationName: "internalNotes",
|
|
}),
|
|
contactHistory: many(bookings_contact_history, {
|
|
relationName: "contactHistory",
|
|
}),
|
|
assignedTo: one(users, {
|
|
fields: [bookings.assignedTo],
|
|
references: [users.id],
|
|
relationName: "assignedTo",
|
|
}),
|
|
}));
|
|
export const relations_certifications_gallery = relations(certifications_gallery, ({ one }) => ({
|
|
_parentID: one(certifications, {
|
|
fields: [certifications_gallery._parentID],
|
|
references: [certifications.id],
|
|
relationName: "gallery",
|
|
}),
|
|
document: one(media, {
|
|
fields: [certifications_gallery.document],
|
|
references: [media.id],
|
|
relationName: "document",
|
|
}),
|
|
}));
|
|
export const relations_certifications_requirements_locales = relations(
|
|
certifications_requirements_locales,
|
|
({ one }) => ({
|
|
_parentID: one(certifications_requirements, {
|
|
fields: [certifications_requirements_locales._parentID],
|
|
references: [certifications_requirements.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_certifications_requirements = relations(certifications_requirements, ({ one, many }) => ({
|
|
_parentID: one(certifications, {
|
|
fields: [certifications_requirements._parentID],
|
|
references: [certifications.id],
|
|
relationName: "requirements",
|
|
}),
|
|
_locales: many(certifications_requirements_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_certifications_benefits_locales = relations(certifications_benefits_locales, ({ one }) => ({
|
|
_parentID: one(certifications_benefits, {
|
|
fields: [certifications_benefits_locales._parentID],
|
|
references: [certifications_benefits.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_certifications_benefits = relations(certifications_benefits, ({ one, many }) => ({
|
|
_parentID: one(certifications, {
|
|
fields: [certifications_benefits._parentID],
|
|
references: [certifications.id],
|
|
relationName: "benefits",
|
|
}),
|
|
_locales: many(certifications_benefits_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_certifications_audits = relations(certifications_audits, ({ one }) => ({
|
|
_parentID: one(certifications, {
|
|
fields: [certifications_audits._parentID],
|
|
references: [certifications.id],
|
|
relationName: "audits",
|
|
}),
|
|
}));
|
|
export const relations_certifications_locales = relations(certifications_locales, ({ one }) => ({
|
|
_parentID: one(certifications, {
|
|
fields: [certifications_locales._parentID],
|
|
references: [certifications.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_certifications_rels = relations(certifications_rels, ({ one }) => ({
|
|
parent: one(certifications, {
|
|
fields: [certifications_rels.parent],
|
|
references: [certifications.id],
|
|
relationName: "_rels",
|
|
}),
|
|
locationsID: one(locations, {
|
|
fields: [certifications_rels.locationsID],
|
|
references: [locations.id],
|
|
relationName: "locations",
|
|
}),
|
|
servicesID: one(services, {
|
|
fields: [certifications_rels.servicesID],
|
|
references: [services.id],
|
|
relationName: "services",
|
|
}),
|
|
}));
|
|
export const relations_certifications = relations(certifications, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [certifications.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
issuer_logo: one(media, {
|
|
fields: [certifications.issuer_logo],
|
|
references: [media.id],
|
|
relationName: "issuer_logo",
|
|
}),
|
|
logo: one(media, {
|
|
fields: [certifications.logo],
|
|
references: [media.id],
|
|
relationName: "logo",
|
|
}),
|
|
certificate: one(media, {
|
|
fields: [certifications.certificate],
|
|
references: [media.id],
|
|
relationName: "certificate",
|
|
}),
|
|
gallery: many(certifications_gallery, {
|
|
relationName: "gallery",
|
|
}),
|
|
requirements: many(certifications_requirements, {
|
|
relationName: "requirements",
|
|
}),
|
|
benefits: many(certifications_benefits, {
|
|
relationName: "benefits",
|
|
}),
|
|
audits: many(certifications_audits, {
|
|
relationName: "audits",
|
|
}),
|
|
_locales: many(certifications_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
_rels: many(certifications_rels, {
|
|
relationName: "_rels",
|
|
}),
|
|
}));
|
|
export const relations_projects_genres = relations(projects_genres, ({ one }) => ({
|
|
parent: one(projects, {
|
|
fields: [projects_genres.parent],
|
|
references: [projects.id],
|
|
relationName: "genres",
|
|
}),
|
|
}));
|
|
export const relations_projects_platforms = relations(projects_platforms, ({ one }) => ({
|
|
parent: one(projects, {
|
|
fields: [projects_platforms.parent],
|
|
references: [projects.id],
|
|
relationName: "platforms",
|
|
}),
|
|
}));
|
|
export const relations_projects_screenshots_locales = relations(projects_screenshots_locales, ({ one }) => ({
|
|
_parentID: one(projects_screenshots, {
|
|
fields: [projects_screenshots_locales._parentID],
|
|
references: [projects_screenshots.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_projects_screenshots = relations(projects_screenshots, ({ one, many }) => ({
|
|
_parentID: one(projects, {
|
|
fields: [projects_screenshots._parentID],
|
|
references: [projects.id],
|
|
relationName: "screenshots",
|
|
}),
|
|
_locales: many(projects_screenshots_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
image: one(media, {
|
|
fields: [projects_screenshots.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
}));
|
|
export const relations_projects_videos_locales = relations(projects_videos_locales, ({ one }) => ({
|
|
_parentID: one(projects_videos, {
|
|
fields: [projects_videos_locales._parentID],
|
|
references: [projects_videos.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_projects_videos = relations(projects_videos, ({ one, many }) => ({
|
|
_parentID: one(projects, {
|
|
fields: [projects_videos._parentID],
|
|
references: [projects.id],
|
|
relationName: "videos",
|
|
}),
|
|
_locales: many(projects_videos_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
thumbnail: one(media, {
|
|
fields: [projects_videos.thumbnail],
|
|
references: [media.id],
|
|
relationName: "thumbnail",
|
|
}),
|
|
}));
|
|
export const relations_projects_tech_stack_languages = relations(projects_tech_stack_languages, ({ one }) => ({
|
|
parent: one(projects, {
|
|
fields: [projects_tech_stack_languages.parent],
|
|
references: [projects.id],
|
|
relationName: "techStack_languages",
|
|
}),
|
|
}));
|
|
export const relations_projects_downloads = relations(projects_downloads, ({ one }) => ({
|
|
_parentID: one(projects, {
|
|
fields: [projects_downloads._parentID],
|
|
references: [projects.id],
|
|
relationName: "downloads",
|
|
}),
|
|
file: one(media, {
|
|
fields: [projects_downloads.file],
|
|
references: [media.id],
|
|
relationName: "file",
|
|
}),
|
|
}));
|
|
export const relations_projects_features_locales = relations(projects_features_locales, ({ one }) => ({
|
|
_parentID: one(projects_features, {
|
|
fields: [projects_features_locales._parentID],
|
|
references: [projects_features.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_projects_features = relations(projects_features, ({ one, many }) => ({
|
|
_parentID: one(projects, {
|
|
fields: [projects_features._parentID],
|
|
references: [projects.id],
|
|
relationName: "features",
|
|
}),
|
|
_locales: many(projects_features_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
icon: one(media, {
|
|
fields: [projects_features.icon],
|
|
references: [media.id],
|
|
relationName: "icon",
|
|
}),
|
|
}));
|
|
export const relations_projects_team_locales = relations(projects_team_locales, ({ one }) => ({
|
|
_parentID: one(projects_team, {
|
|
fields: [projects_team_locales._parentID],
|
|
references: [projects_team.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_projects_team = relations(projects_team, ({ one, many }) => ({
|
|
_parentID: one(projects, {
|
|
fields: [projects_team._parentID],
|
|
references: [projects.id],
|
|
relationName: "team",
|
|
}),
|
|
_locales: many(projects_team_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
avatar: one(media, {
|
|
fields: [projects_team.avatar],
|
|
references: [media.id],
|
|
relationName: "avatar",
|
|
}),
|
|
}));
|
|
export const relations_projects_locales = relations(projects_locales, ({ one }) => ({
|
|
_parentID: one(projects, {
|
|
fields: [projects_locales._parentID],
|
|
references: [projects.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_projects_rels = relations(projects_rels, ({ one }) => ({
|
|
parent: one(projects, {
|
|
fields: [projects_rels.parent],
|
|
references: [projects.id],
|
|
relationName: "_rels",
|
|
}),
|
|
postsID: one(posts, {
|
|
fields: [projects_rels.postsID],
|
|
references: [posts.id],
|
|
relationName: "posts",
|
|
}),
|
|
}));
|
|
export const relations_projects = relations(projects, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [projects.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
genres: many(projects_genres, {
|
|
relationName: "genres",
|
|
}),
|
|
platforms: many(projects_platforms, {
|
|
relationName: "platforms",
|
|
}),
|
|
featuredImage: one(media, {
|
|
fields: [projects.featuredImage],
|
|
references: [media.id],
|
|
relationName: "featuredImage",
|
|
}),
|
|
logo: one(media, {
|
|
fields: [projects.logo],
|
|
references: [media.id],
|
|
relationName: "logo",
|
|
}),
|
|
screenshots: many(projects_screenshots, {
|
|
relationName: "screenshots",
|
|
}),
|
|
videos: many(projects_videos, {
|
|
relationName: "videos",
|
|
}),
|
|
techStack_languages: many(projects_tech_stack_languages, {
|
|
relationName: "techStack_languages",
|
|
}),
|
|
downloads: many(projects_downloads, {
|
|
relationName: "downloads",
|
|
}),
|
|
features: many(projects_features, {
|
|
relationName: "features",
|
|
}),
|
|
team: many(projects_team, {
|
|
relationName: "team",
|
|
}),
|
|
seo_ogImage: one(media, {
|
|
fields: [projects.seo_ogImage],
|
|
references: [media.id],
|
|
relationName: "seo_ogImage",
|
|
}),
|
|
_locales: many(projects_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
_rels: many(projects_rels, {
|
|
relationName: "_rels",
|
|
}),
|
|
}));
|
|
export const relations_favorites = relations(favorites, ({ one }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [favorites.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
image: one(media, {
|
|
fields: [favorites.image],
|
|
references: [media.id],
|
|
relationName: "image",
|
|
}),
|
|
}));
|
|
export const relations_series_locales = relations(series_locales, ({ one }) => ({
|
|
_parentID: one(series, {
|
|
fields: [series_locales._parentID],
|
|
references: [series.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_series = relations(series, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [series.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
logo: one(media, {
|
|
fields: [series.logo],
|
|
references: [media.id],
|
|
relationName: "logo",
|
|
}),
|
|
coverImage: one(media, {
|
|
fields: [series.coverImage],
|
|
references: [media.id],
|
|
relationName: "coverImage",
|
|
}),
|
|
_locales: many(series_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_youtube_channels_publishing_schedule_default_days = relations(
|
|
youtube_channels_publishing_schedule_default_days,
|
|
({ one }) => ({
|
|
parent: one(youtube_channels, {
|
|
fields: [youtube_channels_publishing_schedule_default_days.parent],
|
|
references: [youtube_channels.id],
|
|
relationName: "publishingSchedule_defaultDays",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_youtube_channels_locales = relations(youtube_channels_locales, ({ one }) => ({
|
|
_parentID: one(youtube_channels, {
|
|
fields: [youtube_channels_locales._parentID],
|
|
references: [youtube_channels.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_youtube_channels = relations(youtube_channels, ({ one, many }) => ({
|
|
branding_logo: one(media, {
|
|
fields: [youtube_channels.branding_logo],
|
|
references: [media.id],
|
|
relationName: "branding_logo",
|
|
}),
|
|
branding_thumbnailTemplate: one(media, {
|
|
fields: [youtube_channels.branding_thumbnailTemplate],
|
|
references: [media.id],
|
|
relationName: "branding_thumbnailTemplate",
|
|
}),
|
|
publishingSchedule_defaultDays: many(youtube_channels_publishing_schedule_default_days, {
|
|
relationName: "publishingSchedule_defaultDays",
|
|
}),
|
|
_locales: many(youtube_channels_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_youtube_content_key_points_locales = relations(
|
|
youtube_content_key_points_locales,
|
|
({ one }) => ({
|
|
_parentID: one(youtube_content_key_points, {
|
|
fields: [youtube_content_key_points_locales._parentID],
|
|
references: [youtube_content_key_points.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_youtube_content_key_points = relations(youtube_content_key_points, ({ one, many }) => ({
|
|
_parentID: one(youtube_content, {
|
|
fields: [youtube_content_key_points._parentID],
|
|
references: [youtube_content.id],
|
|
relationName: "keyPoints",
|
|
}),
|
|
_locales: many(youtube_content_key_points_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_youtube_content_upload_checklist = relations(youtube_content_upload_checklist, ({ one }) => ({
|
|
_parentID: one(youtube_content, {
|
|
fields: [youtube_content_upload_checklist._parentID],
|
|
references: [youtube_content.id],
|
|
relationName: "uploadChecklist",
|
|
}),
|
|
}));
|
|
export const relations_youtube_content_disclaimers_locales = relations(
|
|
youtube_content_disclaimers_locales,
|
|
({ one }) => ({
|
|
_parentID: one(youtube_content_disclaimers, {
|
|
fields: [youtube_content_disclaimers_locales._parentID],
|
|
references: [youtube_content_disclaimers.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_youtube_content_disclaimers = relations(youtube_content_disclaimers, ({ one, many }) => ({
|
|
_parentID: one(youtube_content, {
|
|
fields: [youtube_content_disclaimers._parentID],
|
|
references: [youtube_content.id],
|
|
relationName: "disclaimers",
|
|
}),
|
|
_locales: many(youtube_content_disclaimers_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_youtube_content_raw_footage = relations(youtube_content_raw_footage, ({ one }) => ({
|
|
_parentID: one(youtube_content, {
|
|
fields: [youtube_content_raw_footage._parentID],
|
|
references: [youtube_content.id],
|
|
relationName: "rawFootage",
|
|
}),
|
|
file: one(media, {
|
|
fields: [youtube_content_raw_footage.file],
|
|
references: [media.id],
|
|
relationName: "file",
|
|
}),
|
|
}));
|
|
export const relations_youtube_content_youtube_metadata_tags = relations(
|
|
youtube_content_youtube_metadata_tags,
|
|
({ one }) => ({
|
|
_parentID: one(youtube_content, {
|
|
fields: [youtube_content_youtube_metadata_tags._parentID],
|
|
references: [youtube_content.id],
|
|
relationName: "youtube_metadata_tags",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_youtube_content_locales = relations(youtube_content_locales, ({ one }) => ({
|
|
_parentID: one(youtube_content, {
|
|
fields: [youtube_content_locales._parentID],
|
|
references: [youtube_content.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_youtube_content = relations(youtube_content, ({ one, many }) => ({
|
|
channel: one(youtube_channels, {
|
|
fields: [youtube_content.channel],
|
|
references: [youtube_channels.id],
|
|
relationName: "channel",
|
|
}),
|
|
series: one(yt_series, {
|
|
fields: [youtube_content.series],
|
|
references: [yt_series.id],
|
|
relationName: "series",
|
|
}),
|
|
assignedTo: one(users, {
|
|
fields: [youtube_content.assignedTo],
|
|
references: [users.id],
|
|
relationName: "assignedTo",
|
|
}),
|
|
createdBy: one(users, {
|
|
fields: [youtube_content.createdBy],
|
|
references: [users.id],
|
|
relationName: "createdBy",
|
|
}),
|
|
productionBatch: one(yt_batches, {
|
|
fields: [youtube_content.productionBatch],
|
|
references: [yt_batches.id],
|
|
relationName: "productionBatch",
|
|
}),
|
|
keyPoints: many(youtube_content_key_points, {
|
|
relationName: "keyPoints",
|
|
}),
|
|
uploadChecklist: many(youtube_content_upload_checklist, {
|
|
relationName: "uploadChecklist",
|
|
}),
|
|
disclaimers: many(youtube_content_disclaimers, {
|
|
relationName: "disclaimers",
|
|
}),
|
|
thumbnail: one(media, {
|
|
fields: [youtube_content.thumbnail],
|
|
references: [media.id],
|
|
relationName: "thumbnail",
|
|
}),
|
|
thumbnailAlt: one(media, {
|
|
fields: [youtube_content.thumbnailAlt],
|
|
references: [media.id],
|
|
relationName: "thumbnailAlt",
|
|
}),
|
|
videoFile: one(media, {
|
|
fields: [youtube_content.videoFile],
|
|
references: [media.id],
|
|
relationName: "videoFile",
|
|
}),
|
|
rawFootage: many(youtube_content_raw_footage, {
|
|
relationName: "rawFootage",
|
|
}),
|
|
approvals_scriptApproval_approvedBy: one(users, {
|
|
fields: [youtube_content.approvals_scriptApproval_approvedBy],
|
|
references: [users.id],
|
|
relationName: "approvals_scriptApproval_approvedBy",
|
|
}),
|
|
approvals_medicalApproval_approvedBy: one(users, {
|
|
fields: [youtube_content.approvals_medicalApproval_approvedBy],
|
|
references: [users.id],
|
|
relationName: "approvals_medicalApproval_approvedBy",
|
|
}),
|
|
approvals_legalApproval_approvedBy: one(users, {
|
|
fields: [youtube_content.approvals_legalApproval_approvedBy],
|
|
references: [users.id],
|
|
relationName: "approvals_legalApproval_approvedBy",
|
|
}),
|
|
approvals_finalApproval_approvedBy: one(users, {
|
|
fields: [youtube_content.approvals_finalApproval_approvedBy],
|
|
references: [users.id],
|
|
relationName: "approvals_finalApproval_approvedBy",
|
|
}),
|
|
youtube_metadata_tags: many(youtube_content_youtube_metadata_tags, {
|
|
relationName: "youtube_metadata_tags",
|
|
}),
|
|
_locales: many(youtube_content_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_yt_tasks_attachments = relations(yt_tasks_attachments, ({ one }) => ({
|
|
_parentID: one(yt_tasks, {
|
|
fields: [yt_tasks_attachments._parentID],
|
|
references: [yt_tasks.id],
|
|
relationName: "attachments",
|
|
}),
|
|
file: one(media, {
|
|
fields: [yt_tasks_attachments.file],
|
|
references: [media.id],
|
|
relationName: "file",
|
|
}),
|
|
}));
|
|
export const relations_yt_tasks_comments = relations(yt_tasks_comments, ({ one }) => ({
|
|
_parentID: one(yt_tasks, {
|
|
fields: [yt_tasks_comments._parentID],
|
|
references: [yt_tasks.id],
|
|
relationName: "comments",
|
|
}),
|
|
author: one(users, {
|
|
fields: [yt_tasks_comments.author],
|
|
references: [users.id],
|
|
relationName: "author",
|
|
}),
|
|
}));
|
|
export const relations_yt_tasks_locales = relations(yt_tasks_locales, ({ one }) => ({
|
|
_parentID: one(yt_tasks, {
|
|
fields: [yt_tasks_locales._parentID],
|
|
references: [yt_tasks.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_yt_tasks = relations(yt_tasks, ({ one, many }) => ({
|
|
video: one(youtube_content, {
|
|
fields: [yt_tasks.video],
|
|
references: [youtube_content.id],
|
|
relationName: "video",
|
|
}),
|
|
channel: one(youtube_channels, {
|
|
fields: [yt_tasks.channel],
|
|
references: [youtube_channels.id],
|
|
relationName: "channel",
|
|
}),
|
|
assignedTo: one(users, {
|
|
fields: [yt_tasks.assignedTo],
|
|
references: [users.id],
|
|
relationName: "assignedTo",
|
|
}),
|
|
completedBy: one(users, {
|
|
fields: [yt_tasks.completedBy],
|
|
references: [users.id],
|
|
relationName: "completedBy",
|
|
}),
|
|
attachments: many(yt_tasks_attachments, {
|
|
relationName: "attachments",
|
|
}),
|
|
comments: many(yt_tasks_comments, {
|
|
relationName: "comments",
|
|
}),
|
|
_locales: many(yt_tasks_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_yt_notifications_locales = relations(yt_notifications_locales, ({ one }) => ({
|
|
_parentID: one(yt_notifications, {
|
|
fields: [yt_notifications_locales._parentID],
|
|
references: [yt_notifications.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_yt_notifications = relations(yt_notifications, ({ one, many }) => ({
|
|
recipient: one(users, {
|
|
fields: [yt_notifications.recipient],
|
|
references: [users.id],
|
|
relationName: "recipient",
|
|
}),
|
|
relatedVideo: one(youtube_content, {
|
|
fields: [yt_notifications.relatedVideo],
|
|
references: [youtube_content.id],
|
|
relationName: "relatedVideo",
|
|
}),
|
|
relatedTask: one(yt_tasks, {
|
|
fields: [yt_notifications.relatedTask],
|
|
references: [yt_tasks.id],
|
|
relationName: "relatedTask",
|
|
}),
|
|
_locales: many(yt_notifications_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_yt_batches = relations(yt_batches, ({ one }) => ({
|
|
channel: one(youtube_channels, {
|
|
fields: [yt_batches.channel],
|
|
references: [youtube_channels.id],
|
|
relationName: "channel",
|
|
}),
|
|
team_producer: one(users, {
|
|
fields: [yt_batches.team_producer],
|
|
references: [users.id],
|
|
relationName: "team_producer",
|
|
}),
|
|
team_editor: one(users, {
|
|
fields: [yt_batches.team_editor],
|
|
references: [users.id],
|
|
relationName: "team_editor",
|
|
}),
|
|
team_reviewer: one(users, {
|
|
fields: [yt_batches.team_reviewer],
|
|
references: [users.id],
|
|
relationName: "team_reviewer",
|
|
}),
|
|
}));
|
|
export const relations_yt_monthly_goals_custom_goals = relations(yt_monthly_goals_custom_goals, ({ one }) => ({
|
|
_parentID: one(yt_monthly_goals, {
|
|
fields: [yt_monthly_goals_custom_goals._parentID],
|
|
references: [yt_monthly_goals.id],
|
|
relationName: "customGoals",
|
|
}),
|
|
}));
|
|
export const relations_yt_monthly_goals_locales = relations(yt_monthly_goals_locales, ({ one }) => ({
|
|
_parentID: one(yt_monthly_goals, {
|
|
fields: [yt_monthly_goals_locales._parentID],
|
|
references: [yt_monthly_goals.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_yt_monthly_goals = relations(yt_monthly_goals, ({ one, many }) => ({
|
|
channel: one(youtube_channels, {
|
|
fields: [yt_monthly_goals.channel],
|
|
references: [youtube_channels.id],
|
|
relationName: "channel",
|
|
}),
|
|
customGoals: many(yt_monthly_goals_custom_goals, {
|
|
relationName: "customGoals",
|
|
}),
|
|
_locales: many(yt_monthly_goals_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_yt_script_tpl_locales = relations(yt_script_tpl_locales, ({ one }) => ({
|
|
_parentID: one(yt_script_tpl, {
|
|
fields: [yt_script_tpl_locales._parentID],
|
|
references: [yt_script_tpl.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_yt_script_tpl = relations(yt_script_tpl, ({ one, many }) => ({
|
|
channel: one(youtube_channels, {
|
|
fields: [yt_script_tpl.channel],
|
|
references: [youtube_channels.id],
|
|
relationName: "channel",
|
|
}),
|
|
_locales: many(yt_script_tpl_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_yt_checklist_templates_items_locales = relations(
|
|
yt_checklist_templates_items_locales,
|
|
({ one }) => ({
|
|
_parentID: one(yt_checklist_templates_items, {
|
|
fields: [yt_checklist_templates_items_locales._parentID],
|
|
references: [yt_checklist_templates_items.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_yt_checklist_templates_items = relations(yt_checklist_templates_items, ({ one, many }) => ({
|
|
_parentID: one(yt_checklist_templates, {
|
|
fields: [yt_checklist_templates_items._parentID],
|
|
references: [yt_checklist_templates.id],
|
|
relationName: "items",
|
|
}),
|
|
_locales: many(yt_checklist_templates_items_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_yt_checklist_templates_locales = relations(yt_checklist_templates_locales, ({ one }) => ({
|
|
_parentID: one(yt_checklist_templates, {
|
|
fields: [yt_checklist_templates_locales._parentID],
|
|
references: [yt_checklist_templates.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_yt_checklist_templates = relations(yt_checklist_templates, ({ one, many }) => ({
|
|
channel: one(youtube_channels, {
|
|
fields: [yt_checklist_templates.channel],
|
|
references: [youtube_channels.id],
|
|
relationName: "channel",
|
|
}),
|
|
items: many(yt_checklist_templates_items, {
|
|
relationName: "items",
|
|
}),
|
|
_locales: many(yt_checklist_templates_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_yt_series_locales = relations(yt_series_locales, ({ one }) => ({
|
|
_parentID: one(yt_series, {
|
|
fields: [yt_series_locales._parentID],
|
|
references: [yt_series.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_yt_series = relations(yt_series, ({ one, many }) => ({
|
|
channel: one(youtube_channels, {
|
|
fields: [yt_series.channel],
|
|
references: [youtube_channels.id],
|
|
relationName: "channel",
|
|
}),
|
|
logo: one(media, {
|
|
fields: [yt_series.logo],
|
|
references: [media.id],
|
|
relationName: "logo",
|
|
}),
|
|
coverImage: one(media, {
|
|
fields: [yt_series.coverImage],
|
|
references: [media.id],
|
|
relationName: "coverImage",
|
|
}),
|
|
_locales: many(yt_series_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_social_platforms_api_config_scopes = relations(
|
|
social_platforms_api_config_scopes,
|
|
({ one }) => ({
|
|
_parentID: one(social_platforms, {
|
|
fields: [social_platforms_api_config_scopes._parentID],
|
|
references: [social_platforms.id],
|
|
relationName: "apiConfig_scopes",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_social_platforms_interaction_types = relations(
|
|
social_platforms_interaction_types,
|
|
({ one }) => ({
|
|
_parentID: one(social_platforms, {
|
|
fields: [social_platforms_interaction_types._parentID],
|
|
references: [social_platforms.id],
|
|
relationName: "interactionTypes",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_social_platforms = relations(social_platforms, ({ many }) => ({
|
|
apiConfig_scopes: many(social_platforms_api_config_scopes, {
|
|
relationName: "apiConfig_scopes",
|
|
}),
|
|
interactionTypes: many(social_platforms_interaction_types, {
|
|
relationName: "interactionTypes",
|
|
}),
|
|
}));
|
|
export const relations_social_accounts = relations(social_accounts, ({ one }) => ({
|
|
platform: one(social_platforms, {
|
|
fields: [social_accounts.platform],
|
|
references: [social_platforms.id],
|
|
relationName: "platform",
|
|
}),
|
|
linkedChannel: one(youtube_channels, {
|
|
fields: [social_accounts.linkedChannel],
|
|
references: [youtube_channels.id],
|
|
relationName: "linkedChannel",
|
|
}),
|
|
}));
|
|
export const relations_community_interactions_attachments = relations(
|
|
community_interactions_attachments,
|
|
({ one }) => ({
|
|
_parentID: one(community_interactions, {
|
|
fields: [community_interactions_attachments._parentID],
|
|
references: [community_interactions.id],
|
|
relationName: "attachments",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_community_interactions_analysis_topics = relations(
|
|
community_interactions_analysis_topics,
|
|
({ one }) => ({
|
|
_parentID: one(community_interactions, {
|
|
fields: [community_interactions_analysis_topics._parentID],
|
|
references: [community_interactions.id],
|
|
relationName: "analysis_topics",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_community_interactions = relations(community_interactions, ({ one, many }) => ({
|
|
platform: one(social_platforms, {
|
|
fields: [community_interactions.platform],
|
|
references: [social_platforms.id],
|
|
relationName: "platform",
|
|
}),
|
|
socialAccount: one(social_accounts, {
|
|
fields: [community_interactions.socialAccount],
|
|
references: [social_accounts.id],
|
|
relationName: "socialAccount",
|
|
}),
|
|
linkedContent: one(youtube_content, {
|
|
fields: [community_interactions.linkedContent],
|
|
references: [youtube_content.id],
|
|
relationName: "linkedContent",
|
|
}),
|
|
parentInteraction: one(community_interactions, {
|
|
fields: [community_interactions.parentInteraction],
|
|
references: [community_interactions.id],
|
|
relationName: "parentInteraction",
|
|
}),
|
|
attachments: many(community_interactions_attachments, {
|
|
relationName: "attachments",
|
|
}),
|
|
analysis_topics: many(community_interactions_analysis_topics, {
|
|
relationName: "analysis_topics",
|
|
}),
|
|
analysis_suggestedTemplate: one(community_templates, {
|
|
fields: [community_interactions.analysis_suggestedTemplate],
|
|
references: [community_templates.id],
|
|
relationName: "analysis_suggestedTemplate",
|
|
}),
|
|
assignedTo: one(users, {
|
|
fields: [community_interactions.assignedTo],
|
|
references: [users.id],
|
|
relationName: "assignedTo",
|
|
}),
|
|
response_usedTemplate: one(community_templates, {
|
|
fields: [community_interactions.response_usedTemplate],
|
|
references: [community_templates.id],
|
|
relationName: "response_usedTemplate",
|
|
}),
|
|
response_sentBy: one(users, {
|
|
fields: [community_interactions.response_sentBy],
|
|
references: [users.id],
|
|
relationName: "response_sentBy",
|
|
}),
|
|
}));
|
|
export const relations_community_templates_variables = relations(community_templates_variables, ({ one }) => ({
|
|
_parentID: one(community_templates, {
|
|
fields: [community_templates_variables._parentID],
|
|
references: [community_templates.id],
|
|
relationName: "variables",
|
|
}),
|
|
}));
|
|
export const relations_community_templates_auto_suggest_keywords = relations(
|
|
community_templates_auto_suggest_keywords,
|
|
({ one }) => ({
|
|
_parentID: one(community_templates, {
|
|
fields: [community_templates_auto_suggest_keywords._parentID],
|
|
references: [community_templates.id],
|
|
relationName: "autoSuggestKeywords",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_community_templates_locales = relations(community_templates_locales, ({ one }) => ({
|
|
_parentID: one(community_templates, {
|
|
fields: [community_templates_locales._parentID],
|
|
references: [community_templates.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_community_templates_rels = relations(community_templates_rels, ({ one }) => ({
|
|
parent: one(community_templates, {
|
|
fields: [community_templates_rels.parent],
|
|
references: [community_templates.id],
|
|
relationName: "_rels",
|
|
}),
|
|
"social-platformsID": one(social_platforms, {
|
|
fields: [community_templates_rels["social-platformsID"]],
|
|
references: [social_platforms.id],
|
|
relationName: "social-platforms",
|
|
}),
|
|
}));
|
|
export const relations_community_templates = relations(community_templates, ({ one, many }) => ({
|
|
channel: one(youtube_channels, {
|
|
fields: [community_templates.channel],
|
|
references: [youtube_channels.id],
|
|
relationName: "channel",
|
|
}),
|
|
variables: many(community_templates_variables, {
|
|
relationName: "variables",
|
|
}),
|
|
autoSuggestKeywords: many(community_templates_auto_suggest_keywords, {
|
|
relationName: "autoSuggestKeywords",
|
|
}),
|
|
_locales: many(community_templates_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
_rels: many(community_templates_rels, {
|
|
relationName: "_rels",
|
|
}),
|
|
}));
|
|
export const relations_community_rules_trigger_keywords = relations(community_rules_trigger_keywords, ({ one }) => ({
|
|
_parentID: one(community_rules, {
|
|
fields: [community_rules_trigger_keywords._parentID],
|
|
references: [community_rules.id],
|
|
relationName: "trigger_keywords",
|
|
}),
|
|
}));
|
|
export const relations_community_rules_trigger_sentiment_values = relations(
|
|
community_rules_trigger_sentiment_values,
|
|
({ one }) => ({
|
|
parent: one(community_rules, {
|
|
fields: [community_rules_trigger_sentiment_values.parent],
|
|
references: [community_rules.id],
|
|
relationName: "trigger_sentimentValues",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_community_rules_actions = relations(community_rules_actions, ({ one }) => ({
|
|
_parentID: one(community_rules, {
|
|
fields: [community_rules_actions._parentID],
|
|
references: [community_rules.id],
|
|
relationName: "actions",
|
|
}),
|
|
targetUser: one(users, {
|
|
fields: [community_rules_actions.targetUser],
|
|
references: [users.id],
|
|
relationName: "targetUser",
|
|
}),
|
|
targetTemplate: one(community_templates, {
|
|
fields: [community_rules_actions.targetTemplate],
|
|
references: [community_templates.id],
|
|
relationName: "targetTemplate",
|
|
}),
|
|
}));
|
|
export const relations_community_rules_rels = relations(community_rules_rels, ({ one }) => ({
|
|
parent: one(community_rules, {
|
|
fields: [community_rules_rels.parent],
|
|
references: [community_rules.id],
|
|
relationName: "_rels",
|
|
}),
|
|
"social-platformsID": one(social_platforms, {
|
|
fields: [community_rules_rels["social-platformsID"]],
|
|
references: [social_platforms.id],
|
|
relationName: "social-platforms",
|
|
}),
|
|
}));
|
|
export const relations_community_rules = relations(community_rules, ({ one, many }) => ({
|
|
channel: one(youtube_channels, {
|
|
fields: [community_rules.channel],
|
|
references: [youtube_channels.id],
|
|
relationName: "channel",
|
|
}),
|
|
trigger_keywords: many(community_rules_trigger_keywords, {
|
|
relationName: "trigger_keywords",
|
|
}),
|
|
trigger_sentimentValues: many(community_rules_trigger_sentiment_values, {
|
|
relationName: "trigger_sentimentValues",
|
|
}),
|
|
actions: many(community_rules_actions, {
|
|
relationName: "actions",
|
|
}),
|
|
_rels: many(community_rules_rels, {
|
|
relationName: "_rels",
|
|
}),
|
|
}));
|
|
export const relations_cookie_configurations_enabled_categories = relations(
|
|
cookie_configurations_enabled_categories,
|
|
({ one }) => ({
|
|
parent: one(cookie_configurations, {
|
|
fields: [cookie_configurations_enabled_categories.parent],
|
|
references: [cookie_configurations.id],
|
|
relationName: "enabledCategories",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_cookie_configurations = relations(cookie_configurations, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [cookie_configurations.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
enabledCategories: many(cookie_configurations_enabled_categories, {
|
|
relationName: "enabledCategories",
|
|
}),
|
|
}));
|
|
export const relations_cookie_inventory = relations(cookie_inventory, ({ one }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [cookie_inventory.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
}));
|
|
export const relations_consent_logs = relations(consent_logs, ({ one }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [consent_logs.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
}));
|
|
export const relations_privacy_policy_settings = relations(privacy_policy_settings, ({ one }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [privacy_policy_settings.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
}));
|
|
export const relations_email_logs = relations(email_logs, ({ one }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [email_logs.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
}));
|
|
export const relations_audit_logs = relations(audit_logs, ({ one }) => ({
|
|
user: one(users, {
|
|
fields: [audit_logs.user],
|
|
references: [users.id],
|
|
relationName: "user",
|
|
}),
|
|
tenant: one(tenants, {
|
|
fields: [audit_logs.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
}));
|
|
export const relations_site_settings_locales = relations(site_settings_locales, ({ one }) => ({
|
|
_parentID: one(site_settings, {
|
|
fields: [site_settings_locales._parentID],
|
|
references: [site_settings.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_site_settings = relations(site_settings, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [site_settings.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
logo: one(media, {
|
|
fields: [site_settings.logo],
|
|
references: [media.id],
|
|
relationName: "logo",
|
|
}),
|
|
favicon: one(media, {
|
|
fields: [site_settings.favicon],
|
|
references: [media.id],
|
|
relationName: "favicon",
|
|
}),
|
|
seo_defaultOgImage: one(media, {
|
|
fields: [site_settings.seo_defaultOgImage],
|
|
references: [media.id],
|
|
relationName: "seo_defaultOgImage",
|
|
}),
|
|
_locales: many(site_settings_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_navigations_main_menu_submenu_locales = relations(
|
|
navigations_main_menu_submenu_locales,
|
|
({ one }) => ({
|
|
_parentID: one(navigations_main_menu_submenu, {
|
|
fields: [navigations_main_menu_submenu_locales._parentID],
|
|
references: [navigations_main_menu_submenu.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_navigations_main_menu_submenu = relations(navigations_main_menu_submenu, ({ one, many }) => ({
|
|
_parentID: one(navigations_main_menu, {
|
|
fields: [navigations_main_menu_submenu._parentID],
|
|
references: [navigations_main_menu.id],
|
|
relationName: "submenu",
|
|
}),
|
|
_locales: many(navigations_main_menu_submenu_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
page: one(pages, {
|
|
fields: [navigations_main_menu_submenu.page],
|
|
references: [pages.id],
|
|
relationName: "page",
|
|
}),
|
|
}));
|
|
export const relations_navigations_main_menu_locales = relations(navigations_main_menu_locales, ({ one }) => ({
|
|
_parentID: one(navigations_main_menu, {
|
|
fields: [navigations_main_menu_locales._parentID],
|
|
references: [navigations_main_menu.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_navigations_main_menu = relations(navigations_main_menu, ({ one, many }) => ({
|
|
_parentID: one(navigations, {
|
|
fields: [navigations_main_menu._parentID],
|
|
references: [navigations.id],
|
|
relationName: "mainMenu",
|
|
}),
|
|
_locales: many(navigations_main_menu_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
page: one(pages, {
|
|
fields: [navigations_main_menu.page],
|
|
references: [pages.id],
|
|
relationName: "page",
|
|
}),
|
|
submenu: many(navigations_main_menu_submenu, {
|
|
relationName: "submenu",
|
|
}),
|
|
}));
|
|
export const relations_navigations_footer_menu_locales = relations(navigations_footer_menu_locales, ({ one }) => ({
|
|
_parentID: one(navigations_footer_menu, {
|
|
fields: [navigations_footer_menu_locales._parentID],
|
|
references: [navigations_footer_menu.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_navigations_footer_menu = relations(navigations_footer_menu, ({ one, many }) => ({
|
|
_parentID: one(navigations, {
|
|
fields: [navigations_footer_menu._parentID],
|
|
references: [navigations.id],
|
|
relationName: "footerMenu",
|
|
}),
|
|
_locales: many(navigations_footer_menu_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
page: one(pages, {
|
|
fields: [navigations_footer_menu.page],
|
|
references: [pages.id],
|
|
relationName: "page",
|
|
}),
|
|
}));
|
|
export const relations_navigations = relations(navigations, ({ one, many }) => ({
|
|
tenant: one(tenants, {
|
|
fields: [navigations.tenant],
|
|
references: [tenants.id],
|
|
relationName: "tenant",
|
|
}),
|
|
mainMenu: many(navigations_main_menu, {
|
|
relationName: "mainMenu",
|
|
}),
|
|
footerMenu: many(navigations_footer_menu, {
|
|
relationName: "footerMenu",
|
|
}),
|
|
}));
|
|
export const relations_forms_blocks_checkbox_locales = relations(forms_blocks_checkbox_locales, ({ one }) => ({
|
|
_parentID: one(forms_blocks_checkbox, {
|
|
fields: [forms_blocks_checkbox_locales._parentID],
|
|
references: [forms_blocks_checkbox.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_forms_blocks_checkbox = relations(forms_blocks_checkbox, ({ one, many }) => ({
|
|
_parentID: one(forms, {
|
|
fields: [forms_blocks_checkbox._parentID],
|
|
references: [forms.id],
|
|
relationName: "_blocks_checkbox",
|
|
}),
|
|
_locales: many(forms_blocks_checkbox_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_forms_blocks_email_locales = relations(forms_blocks_email_locales, ({ one }) => ({
|
|
_parentID: one(forms_blocks_email, {
|
|
fields: [forms_blocks_email_locales._parentID],
|
|
references: [forms_blocks_email.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_forms_blocks_email = relations(forms_blocks_email, ({ one, many }) => ({
|
|
_parentID: one(forms, {
|
|
fields: [forms_blocks_email._parentID],
|
|
references: [forms.id],
|
|
relationName: "_blocks_email",
|
|
}),
|
|
_locales: many(forms_blocks_email_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_forms_blocks_message_locales = relations(forms_blocks_message_locales, ({ one }) => ({
|
|
_parentID: one(forms_blocks_message, {
|
|
fields: [forms_blocks_message_locales._parentID],
|
|
references: [forms_blocks_message.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_forms_blocks_message = relations(forms_blocks_message, ({ one, many }) => ({
|
|
_parentID: one(forms, {
|
|
fields: [forms_blocks_message._parentID],
|
|
references: [forms.id],
|
|
relationName: "_blocks_message",
|
|
}),
|
|
_locales: many(forms_blocks_message_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_forms_blocks_number_locales = relations(forms_blocks_number_locales, ({ one }) => ({
|
|
_parentID: one(forms_blocks_number, {
|
|
fields: [forms_blocks_number_locales._parentID],
|
|
references: [forms_blocks_number.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_forms_blocks_number = relations(forms_blocks_number, ({ one, many }) => ({
|
|
_parentID: one(forms, {
|
|
fields: [forms_blocks_number._parentID],
|
|
references: [forms.id],
|
|
relationName: "_blocks_number",
|
|
}),
|
|
_locales: many(forms_blocks_number_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_forms_blocks_select_options_locales = relations(
|
|
forms_blocks_select_options_locales,
|
|
({ one }) => ({
|
|
_parentID: one(forms_blocks_select_options, {
|
|
fields: [forms_blocks_select_options_locales._parentID],
|
|
references: [forms_blocks_select_options.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_forms_blocks_select_options = relations(forms_blocks_select_options, ({ one, many }) => ({
|
|
_parentID: one(forms_blocks_select, {
|
|
fields: [forms_blocks_select_options._parentID],
|
|
references: [forms_blocks_select.id],
|
|
relationName: "options",
|
|
}),
|
|
_locales: many(forms_blocks_select_options_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_forms_blocks_select_locales = relations(forms_blocks_select_locales, ({ one }) => ({
|
|
_parentID: one(forms_blocks_select, {
|
|
fields: [forms_blocks_select_locales._parentID],
|
|
references: [forms_blocks_select.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_forms_blocks_select = relations(forms_blocks_select, ({ one, many }) => ({
|
|
_parentID: one(forms, {
|
|
fields: [forms_blocks_select._parentID],
|
|
references: [forms.id],
|
|
relationName: "_blocks_select",
|
|
}),
|
|
_locales: many(forms_blocks_select_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
options: many(forms_blocks_select_options, {
|
|
relationName: "options",
|
|
}),
|
|
}));
|
|
export const relations_forms_blocks_text_locales = relations(forms_blocks_text_locales, ({ one }) => ({
|
|
_parentID: one(forms_blocks_text, {
|
|
fields: [forms_blocks_text_locales._parentID],
|
|
references: [forms_blocks_text.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_forms_blocks_text = relations(forms_blocks_text, ({ one, many }) => ({
|
|
_parentID: one(forms, {
|
|
fields: [forms_blocks_text._parentID],
|
|
references: [forms.id],
|
|
relationName: "_blocks_text",
|
|
}),
|
|
_locales: many(forms_blocks_text_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_forms_blocks_textarea_locales = relations(forms_blocks_textarea_locales, ({ one }) => ({
|
|
_parentID: one(forms_blocks_textarea, {
|
|
fields: [forms_blocks_textarea_locales._parentID],
|
|
references: [forms_blocks_textarea.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_forms_blocks_textarea = relations(forms_blocks_textarea, ({ one, many }) => ({
|
|
_parentID: one(forms, {
|
|
fields: [forms_blocks_textarea._parentID],
|
|
references: [forms.id],
|
|
relationName: "_blocks_textarea",
|
|
}),
|
|
_locales: many(forms_blocks_textarea_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_forms_emails_locales = relations(forms_emails_locales, ({ one }) => ({
|
|
_parentID: one(forms_emails, {
|
|
fields: [forms_emails_locales._parentID],
|
|
references: [forms_emails.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_forms_emails = relations(forms_emails, ({ one, many }) => ({
|
|
_parentID: one(forms, {
|
|
fields: [forms_emails._parentID],
|
|
references: [forms.id],
|
|
relationName: "emails",
|
|
}),
|
|
_locales: many(forms_emails_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_forms_locales = relations(forms_locales, ({ one }) => ({
|
|
_parentID: one(forms, {
|
|
fields: [forms_locales._parentID],
|
|
references: [forms.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_forms_rels = relations(forms_rels, ({ one }) => ({
|
|
parent: one(forms, {
|
|
fields: [forms_rels.parent],
|
|
references: [forms.id],
|
|
relationName: "_rels",
|
|
}),
|
|
pagesID: one(pages, {
|
|
fields: [forms_rels.pagesID],
|
|
references: [pages.id],
|
|
relationName: "pages",
|
|
}),
|
|
}));
|
|
export const relations_forms = relations(forms, ({ many }) => ({
|
|
_blocks_checkbox: many(forms_blocks_checkbox, {
|
|
relationName: "_blocks_checkbox",
|
|
}),
|
|
_blocks_email: many(forms_blocks_email, {
|
|
relationName: "_blocks_email",
|
|
}),
|
|
_blocks_message: many(forms_blocks_message, {
|
|
relationName: "_blocks_message",
|
|
}),
|
|
_blocks_number: many(forms_blocks_number, {
|
|
relationName: "_blocks_number",
|
|
}),
|
|
_blocks_select: many(forms_blocks_select, {
|
|
relationName: "_blocks_select",
|
|
}),
|
|
_blocks_text: many(forms_blocks_text, {
|
|
relationName: "_blocks_text",
|
|
}),
|
|
_blocks_textarea: many(forms_blocks_textarea, {
|
|
relationName: "_blocks_textarea",
|
|
}),
|
|
emails: many(forms_emails, {
|
|
relationName: "emails",
|
|
}),
|
|
_locales: many(forms_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
_rels: many(forms_rels, {
|
|
relationName: "_rels",
|
|
}),
|
|
}));
|
|
export const relations_form_submissions_submission_data = relations(form_submissions_submission_data, ({ one }) => ({
|
|
_parentID: one(form_submissions, {
|
|
fields: [form_submissions_submission_data._parentID],
|
|
references: [form_submissions.id],
|
|
relationName: "submissionData",
|
|
}),
|
|
}));
|
|
export const relations_form_submissions = relations(form_submissions, ({ one, many }) => ({
|
|
form: one(forms, {
|
|
fields: [form_submissions.form],
|
|
references: [forms.id],
|
|
relationName: "form",
|
|
}),
|
|
submissionData: many(form_submissions_submission_data, {
|
|
relationName: "submissionData",
|
|
}),
|
|
}));
|
|
export const relations_redirects_rels = relations(redirects_rels, ({ one }) => ({
|
|
parent: one(redirects, {
|
|
fields: [redirects_rels.parent],
|
|
references: [redirects.id],
|
|
relationName: "_rels",
|
|
}),
|
|
pagesID: one(pages, {
|
|
fields: [redirects_rels.pagesID],
|
|
references: [pages.id],
|
|
relationName: "pages",
|
|
}),
|
|
}));
|
|
export const relations_redirects = relations(redirects, ({ many }) => ({
|
|
_rels: many(redirects_rels, {
|
|
relationName: "_rels",
|
|
}),
|
|
}));
|
|
export const relations_payload_kv = relations(payload_kv, () => ({}));
|
|
export const relations_payload_locked_documents_rels = relations(payload_locked_documents_rels, ({ one }) => ({
|
|
parent: one(payload_locked_documents, {
|
|
fields: [payload_locked_documents_rels.parent],
|
|
references: [payload_locked_documents.id],
|
|
relationName: "_rels",
|
|
}),
|
|
usersID: one(users, {
|
|
fields: [payload_locked_documents_rels.usersID],
|
|
references: [users.id],
|
|
relationName: "users",
|
|
}),
|
|
mediaID: one(media, {
|
|
fields: [payload_locked_documents_rels.mediaID],
|
|
references: [media.id],
|
|
relationName: "media",
|
|
}),
|
|
tenantsID: one(tenants, {
|
|
fields: [payload_locked_documents_rels.tenantsID],
|
|
references: [tenants.id],
|
|
relationName: "tenants",
|
|
}),
|
|
pagesID: one(pages, {
|
|
fields: [payload_locked_documents_rels.pagesID],
|
|
references: [pages.id],
|
|
relationName: "pages",
|
|
}),
|
|
postsID: one(posts, {
|
|
fields: [payload_locked_documents_rels.postsID],
|
|
references: [posts.id],
|
|
relationName: "posts",
|
|
}),
|
|
categoriesID: one(categories, {
|
|
fields: [payload_locked_documents_rels.categoriesID],
|
|
references: [categories.id],
|
|
relationName: "categories",
|
|
}),
|
|
"social-linksID": one(social_links, {
|
|
fields: [payload_locked_documents_rels["social-linksID"]],
|
|
references: [social_links.id],
|
|
relationName: "social-links",
|
|
}),
|
|
testimonialsID: one(testimonials, {
|
|
fields: [payload_locked_documents_rels.testimonialsID],
|
|
references: [testimonials.id],
|
|
relationName: "testimonials",
|
|
}),
|
|
faqsID: one(faqs, {
|
|
fields: [payload_locked_documents_rels.faqsID],
|
|
references: [faqs.id],
|
|
relationName: "faqs",
|
|
}),
|
|
teamID: one(team, {
|
|
fields: [payload_locked_documents_rels.teamID],
|
|
references: [team.id],
|
|
relationName: "team",
|
|
}),
|
|
"service-categoriesID": one(service_categories, {
|
|
fields: [payload_locked_documents_rels["service-categoriesID"]],
|
|
references: [service_categories.id],
|
|
relationName: "service-categories",
|
|
}),
|
|
servicesID: one(services, {
|
|
fields: [payload_locked_documents_rels.servicesID],
|
|
references: [services.id],
|
|
relationName: "services",
|
|
}),
|
|
"newsletter-subscribersID": one(newsletter_subscribers, {
|
|
fields: [payload_locked_documents_rels["newsletter-subscribersID"]],
|
|
references: [newsletter_subscribers.id],
|
|
relationName: "newsletter-subscribers",
|
|
}),
|
|
"portfolio-categoriesID": one(portfolio_categories, {
|
|
fields: [payload_locked_documents_rels["portfolio-categoriesID"]],
|
|
references: [portfolio_categories.id],
|
|
relationName: "portfolio-categories",
|
|
}),
|
|
portfoliosID: one(portfolios, {
|
|
fields: [payload_locked_documents_rels.portfoliosID],
|
|
references: [portfolios.id],
|
|
relationName: "portfolios",
|
|
}),
|
|
"video-categoriesID": one(video_categories, {
|
|
fields: [payload_locked_documents_rels["video-categoriesID"]],
|
|
references: [video_categories.id],
|
|
relationName: "video-categories",
|
|
}),
|
|
videosID: one(videos, {
|
|
fields: [payload_locked_documents_rels.videosID],
|
|
references: [videos.id],
|
|
relationName: "videos",
|
|
}),
|
|
"product-categoriesID": one(product_categories, {
|
|
fields: [payload_locked_documents_rels["product-categoriesID"]],
|
|
references: [product_categories.id],
|
|
relationName: "product-categories",
|
|
}),
|
|
productsID: one(products, {
|
|
fields: [payload_locked_documents_rels.productsID],
|
|
references: [products.id],
|
|
relationName: "products",
|
|
}),
|
|
timelinesID: one(timelines, {
|
|
fields: [payload_locked_documents_rels.timelinesID],
|
|
references: [timelines.id],
|
|
relationName: "timelines",
|
|
}),
|
|
workflowsID: one(workflows, {
|
|
fields: [payload_locked_documents_rels.workflowsID],
|
|
references: [workflows.id],
|
|
relationName: "workflows",
|
|
}),
|
|
tagsID: one(tags, {
|
|
fields: [payload_locked_documents_rels.tagsID],
|
|
references: [tags.id],
|
|
relationName: "tags",
|
|
}),
|
|
authorsID: one(authors, {
|
|
fields: [payload_locked_documents_rels.authorsID],
|
|
references: [authors.id],
|
|
relationName: "authors",
|
|
}),
|
|
locationsID: one(locations, {
|
|
fields: [payload_locked_documents_rels.locationsID],
|
|
references: [locations.id],
|
|
relationName: "locations",
|
|
}),
|
|
partnersID: one(partners, {
|
|
fields: [payload_locked_documents_rels.partnersID],
|
|
references: [partners.id],
|
|
relationName: "partners",
|
|
}),
|
|
jobsID: one(jobs, {
|
|
fields: [payload_locked_documents_rels.jobsID],
|
|
references: [jobs.id],
|
|
relationName: "jobs",
|
|
}),
|
|
downloadsID: one(downloads, {
|
|
fields: [payload_locked_documents_rels.downloadsID],
|
|
references: [downloads.id],
|
|
relationName: "downloads",
|
|
}),
|
|
eventsID: one(events, {
|
|
fields: [payload_locked_documents_rels.eventsID],
|
|
references: [events.id],
|
|
relationName: "events",
|
|
}),
|
|
bookingsID: one(bookings, {
|
|
fields: [payload_locked_documents_rels.bookingsID],
|
|
references: [bookings.id],
|
|
relationName: "bookings",
|
|
}),
|
|
certificationsID: one(certifications, {
|
|
fields: [payload_locked_documents_rels.certificationsID],
|
|
references: [certifications.id],
|
|
relationName: "certifications",
|
|
}),
|
|
projectsID: one(projects, {
|
|
fields: [payload_locked_documents_rels.projectsID],
|
|
references: [projects.id],
|
|
relationName: "projects",
|
|
}),
|
|
favoritesID: one(favorites, {
|
|
fields: [payload_locked_documents_rels.favoritesID],
|
|
references: [favorites.id],
|
|
relationName: "favorites",
|
|
}),
|
|
seriesID: one(series, {
|
|
fields: [payload_locked_documents_rels.seriesID],
|
|
references: [series.id],
|
|
relationName: "series",
|
|
}),
|
|
"youtube-channelsID": one(youtube_channels, {
|
|
fields: [payload_locked_documents_rels["youtube-channelsID"]],
|
|
references: [youtube_channels.id],
|
|
relationName: "youtube-channels",
|
|
}),
|
|
"youtube-contentID": one(youtube_content, {
|
|
fields: [payload_locked_documents_rels["youtube-contentID"]],
|
|
references: [youtube_content.id],
|
|
relationName: "youtube-content",
|
|
}),
|
|
"yt-tasksID": one(yt_tasks, {
|
|
fields: [payload_locked_documents_rels["yt-tasksID"]],
|
|
references: [yt_tasks.id],
|
|
relationName: "yt-tasks",
|
|
}),
|
|
"yt-notificationsID": one(yt_notifications, {
|
|
fields: [payload_locked_documents_rels["yt-notificationsID"]],
|
|
references: [yt_notifications.id],
|
|
relationName: "yt-notifications",
|
|
}),
|
|
"yt-batchesID": one(yt_batches, {
|
|
fields: [payload_locked_documents_rels["yt-batchesID"]],
|
|
references: [yt_batches.id],
|
|
relationName: "yt-batches",
|
|
}),
|
|
"yt-monthly-goalsID": one(yt_monthly_goals, {
|
|
fields: [payload_locked_documents_rels["yt-monthly-goalsID"]],
|
|
references: [yt_monthly_goals.id],
|
|
relationName: "yt-monthly-goals",
|
|
}),
|
|
"yt-script-templatesID": one(yt_script_tpl, {
|
|
fields: [payload_locked_documents_rels["yt-script-templatesID"]],
|
|
references: [yt_script_tpl.id],
|
|
relationName: "yt-script-templates",
|
|
}),
|
|
"yt-checklist-templatesID": one(yt_checklist_templates, {
|
|
fields: [payload_locked_documents_rels["yt-checklist-templatesID"]],
|
|
references: [yt_checklist_templates.id],
|
|
relationName: "yt-checklist-templates",
|
|
}),
|
|
"yt-seriesID": one(yt_series, {
|
|
fields: [payload_locked_documents_rels["yt-seriesID"]],
|
|
references: [yt_series.id],
|
|
relationName: "yt-series",
|
|
}),
|
|
"social-platformsID": one(social_platforms, {
|
|
fields: [payload_locked_documents_rels["social-platformsID"]],
|
|
references: [social_platforms.id],
|
|
relationName: "social-platforms",
|
|
}),
|
|
"social-accountsID": one(social_accounts, {
|
|
fields: [payload_locked_documents_rels["social-accountsID"]],
|
|
references: [social_accounts.id],
|
|
relationName: "social-accounts",
|
|
}),
|
|
"community-interactionsID": one(community_interactions, {
|
|
fields: [payload_locked_documents_rels["community-interactionsID"]],
|
|
references: [community_interactions.id],
|
|
relationName: "community-interactions",
|
|
}),
|
|
"community-templatesID": one(community_templates, {
|
|
fields: [payload_locked_documents_rels["community-templatesID"]],
|
|
references: [community_templates.id],
|
|
relationName: "community-templates",
|
|
}),
|
|
"community-rulesID": one(community_rules, {
|
|
fields: [payload_locked_documents_rels["community-rulesID"]],
|
|
references: [community_rules.id],
|
|
relationName: "community-rules",
|
|
}),
|
|
"cookie-configurationsID": one(cookie_configurations, {
|
|
fields: [payload_locked_documents_rels["cookie-configurationsID"]],
|
|
references: [cookie_configurations.id],
|
|
relationName: "cookie-configurations",
|
|
}),
|
|
"cookie-inventoryID": one(cookie_inventory, {
|
|
fields: [payload_locked_documents_rels["cookie-inventoryID"]],
|
|
references: [cookie_inventory.id],
|
|
relationName: "cookie-inventory",
|
|
}),
|
|
"consent-logsID": one(consent_logs, {
|
|
fields: [payload_locked_documents_rels["consent-logsID"]],
|
|
references: [consent_logs.id],
|
|
relationName: "consent-logs",
|
|
}),
|
|
"privacy-policy-settingsID": one(privacy_policy_settings, {
|
|
fields: [payload_locked_documents_rels["privacy-policy-settingsID"]],
|
|
references: [privacy_policy_settings.id],
|
|
relationName: "privacy-policy-settings",
|
|
}),
|
|
"email-logsID": one(email_logs, {
|
|
fields: [payload_locked_documents_rels["email-logsID"]],
|
|
references: [email_logs.id],
|
|
relationName: "email-logs",
|
|
}),
|
|
"audit-logsID": one(audit_logs, {
|
|
fields: [payload_locked_documents_rels["audit-logsID"]],
|
|
references: [audit_logs.id],
|
|
relationName: "audit-logs",
|
|
}),
|
|
"site-settingsID": one(site_settings, {
|
|
fields: [payload_locked_documents_rels["site-settingsID"]],
|
|
references: [site_settings.id],
|
|
relationName: "site-settings",
|
|
}),
|
|
navigationsID: one(navigations, {
|
|
fields: [payload_locked_documents_rels.navigationsID],
|
|
references: [navigations.id],
|
|
relationName: "navigations",
|
|
}),
|
|
formsID: one(forms, {
|
|
fields: [payload_locked_documents_rels.formsID],
|
|
references: [forms.id],
|
|
relationName: "forms",
|
|
}),
|
|
"form-submissionsID": one(form_submissions, {
|
|
fields: [payload_locked_documents_rels["form-submissionsID"]],
|
|
references: [form_submissions.id],
|
|
relationName: "form-submissions",
|
|
}),
|
|
redirectsID: one(redirects, {
|
|
fields: [payload_locked_documents_rels.redirectsID],
|
|
references: [redirects.id],
|
|
relationName: "redirects",
|
|
}),
|
|
}));
|
|
export const relations_payload_locked_documents = relations(payload_locked_documents, ({ many }) => ({
|
|
_rels: many(payload_locked_documents_rels, {
|
|
relationName: "_rels",
|
|
}),
|
|
}));
|
|
export const relations_payload_preferences_rels = relations(payload_preferences_rels, ({ one }) => ({
|
|
parent: one(payload_preferences, {
|
|
fields: [payload_preferences_rels.parent],
|
|
references: [payload_preferences.id],
|
|
relationName: "_rels",
|
|
}),
|
|
usersID: one(users, {
|
|
fields: [payload_preferences_rels.usersID],
|
|
references: [users.id],
|
|
relationName: "users",
|
|
}),
|
|
}));
|
|
export const relations_payload_preferences = relations(payload_preferences, ({ many }) => ({
|
|
_rels: many(payload_preferences_rels, {
|
|
relationName: "_rels",
|
|
}),
|
|
}));
|
|
export const relations_payload_migrations = relations(payload_migrations, () => ({}));
|
|
export const relations_seo_settings_social_profiles = relations(seo_settings_social_profiles, ({ one }) => ({
|
|
_parentID: one(seo_settings, {
|
|
fields: [seo_settings_social_profiles._parentID],
|
|
references: [seo_settings.id],
|
|
relationName: "socialProfiles",
|
|
}),
|
|
}));
|
|
export const relations_seo_settings_local_business_opening_hours = relations(
|
|
seo_settings_local_business_opening_hours,
|
|
({ one }) => ({
|
|
_parentID: one(seo_settings, {
|
|
fields: [seo_settings_local_business_opening_hours._parentID],
|
|
references: [seo_settings.id],
|
|
relationName: "localBusiness_openingHours",
|
|
}),
|
|
}),
|
|
);
|
|
export const relations_seo_settings_locales = relations(seo_settings_locales, ({ one }) => ({
|
|
_parentID: one(seo_settings, {
|
|
fields: [seo_settings_locales._parentID],
|
|
references: [seo_settings.id],
|
|
relationName: "_locales",
|
|
}),
|
|
}));
|
|
export const relations_seo_settings_texts = relations(seo_settings_texts, ({ one }) => ({
|
|
parent: one(seo_settings, {
|
|
fields: [seo_settings_texts.parent],
|
|
references: [seo_settings.id],
|
|
relationName: "_texts",
|
|
}),
|
|
}));
|
|
export const relations_seo_settings = relations(seo_settings, ({ one, many }) => ({
|
|
metaDefaults_defaultOgImage: one(media, {
|
|
fields: [seo_settings.metaDefaults_defaultOgImage],
|
|
references: [media.id],
|
|
relationName: "metaDefaults_defaultOgImage",
|
|
}),
|
|
organization_logo: one(media, {
|
|
fields: [seo_settings.organization_logo],
|
|
references: [media.id],
|
|
relationName: "organization_logo",
|
|
}),
|
|
socialProfiles: many(seo_settings_social_profiles, {
|
|
relationName: "socialProfiles",
|
|
}),
|
|
localBusiness_openingHours: many(seo_settings_local_business_opening_hours, {
|
|
relationName: "localBusiness_openingHours",
|
|
}),
|
|
_locales: many(seo_settings_locales, {
|
|
relationName: "_locales",
|
|
}),
|
|
_texts: many(seo_settings_texts, {
|
|
relationName: "_texts",
|
|
}),
|
|
}));
|
|
|
|
type DatabaseSchema = {
|
|
enum__locales: typeof enum__locales;
|
|
enum_users_youtube_role: typeof enum_users_youtube_role;
|
|
enum_users_community_role: typeof enum_users_community_role;
|
|
enum_pages_blocks_hero_block_alignment: typeof enum_pages_blocks_hero_block_alignment;
|
|
enum_pages_blocks_hero_block_cta_style: typeof enum_pages_blocks_hero_block_cta_style;
|
|
enum_pages_blocks_hero_slider_block_slides_text_alignment: typeof enum_pages_blocks_hero_slider_block_slides_text_alignment;
|
|
enum_pages_blocks_hero_slider_block_slides_vertical_position: typeof enum_pages_blocks_hero_slider_block_slides_vertical_position;
|
|
enum_pages_blocks_hero_slider_block_slides_overlay_color: typeof enum_pages_blocks_hero_slider_block_slides_overlay_color;
|
|
enum_pages_blocks_hero_slider_block_slides_overlay_opacity: typeof enum_pages_blocks_hero_slider_block_slides_overlay_opacity;
|
|
enum_pages_blocks_hero_slider_block_slides_primary_cta_style: typeof enum_pages_blocks_hero_slider_block_slides_primary_cta_style;
|
|
enum_pages_blocks_hero_slider_block_slides_secondary_cta_style: typeof enum_pages_blocks_hero_slider_block_slides_secondary_cta_style;
|
|
enum_pages_blocks_hero_slider_block_slides_text_color: typeof enum_pages_blocks_hero_slider_block_slides_text_color;
|
|
enum_pages_blocks_hero_slider_block_settings_animation: typeof enum_pages_blocks_hero_slider_block_settings_animation;
|
|
enum_pages_blocks_hero_slider_block_settings_animation_duration: typeof enum_pages_blocks_hero_slider_block_settings_animation_duration;
|
|
enum_pages_blocks_hero_slider_block_settings_autoplay_interval: typeof enum_pages_blocks_hero_slider_block_settings_autoplay_interval;
|
|
enum_pages_blocks_hero_slider_block_navigation_arrows_style: typeof enum_pages_blocks_hero_slider_block_navigation_arrows_style;
|
|
enum_pages_blocks_hero_slider_block_navigation_arrows_position: typeof enum_pages_blocks_hero_slider_block_navigation_arrows_position;
|
|
enum_pages_blocks_hero_slider_block_navigation_dots_style: typeof enum_pages_blocks_hero_slider_block_navigation_dots_style;
|
|
enum_pages_blocks_hero_slider_block_navigation_dots_position: typeof enum_pages_blocks_hero_slider_block_navigation_dots_position;
|
|
enum_pages_blocks_hero_slider_block_navigation_dots_color: typeof enum_pages_blocks_hero_slider_block_navigation_dots_color;
|
|
enum_pages_blocks_hero_slider_block_layout_height: typeof enum_pages_blocks_hero_slider_block_layout_height;
|
|
enum_pages_blocks_hero_slider_block_layout_mobile_height: typeof enum_pages_blocks_hero_slider_block_layout_mobile_height;
|
|
enum_pages_blocks_hero_slider_block_layout_content_width: typeof enum_pages_blocks_hero_slider_block_layout_content_width;
|
|
enum_pages_blocks_image_slider_block_layout: typeof enum_pages_blocks_image_slider_block_layout;
|
|
enum_pages_blocks_image_slider_block_grid_cols: typeof enum_pages_blocks_image_slider_block_grid_cols;
|
|
enum_pages_blocks_image_slider_block_grid_gap: typeof enum_pages_blocks_image_slider_block_grid_gap;
|
|
enum_pages_blocks_image_slider_block_grid_aspect_ratio: typeof enum_pages_blocks_image_slider_block_grid_aspect_ratio;
|
|
enum_pages_blocks_image_slider_block_slider_effect: typeof enum_pages_blocks_image_slider_block_slider_effect;
|
|
enum_pages_blocks_image_slider_block_slider_speed: typeof enum_pages_blocks_image_slider_block_slider_speed;
|
|
enum_pages_blocks_image_slider_block_slider_per_view: typeof enum_pages_blocks_image_slider_block_slider_per_view;
|
|
enum_pages_blocks_image_slider_block_slider_gap: typeof enum_pages_blocks_image_slider_block_slider_gap;
|
|
enum_pages_blocks_image_slider_block_slider_delay: typeof enum_pages_blocks_image_slider_block_slider_delay;
|
|
enum_pages_blocks_image_slider_block_nav_arrow_style: typeof enum_pages_blocks_image_slider_block_nav_arrow_style;
|
|
enum_pages_blocks_image_slider_block_nav_dot_style: typeof enum_pages_blocks_image_slider_block_nav_dot_style;
|
|
enum_pages_blocks_image_slider_block_lightbox_bg: typeof enum_pages_blocks_image_slider_block_lightbox_bg;
|
|
enum_pages_blocks_image_slider_block_style_height: typeof enum_pages_blocks_image_slider_block_style_height;
|
|
enum_pages_blocks_image_slider_block_style_img_fit: typeof enum_pages_blocks_image_slider_block_style_img_fit;
|
|
enum_pages_blocks_image_slider_block_style_rounded: typeof enum_pages_blocks_image_slider_block_style_rounded;
|
|
enum_pages_blocks_image_slider_block_style_hover_effect: typeof enum_pages_blocks_image_slider_block_style_hover_effect;
|
|
enum_pages_blocks_image_slider_block_style_caption_pos: typeof enum_pages_blocks_image_slider_block_style_caption_pos;
|
|
enum_pages_blocks_image_slider_block_style_bg: typeof enum_pages_blocks_image_slider_block_style_bg;
|
|
enum_pages_blocks_image_slider_block_style_padding: typeof enum_pages_blocks_image_slider_block_style_padding;
|
|
enum_pages_blocks_text_block_width: typeof enum_pages_blocks_text_block_width;
|
|
enum_pages_blocks_image_text_block_image_position: typeof enum_pages_blocks_image_text_block_image_position;
|
|
enum_pages_blocks_card_grid_block_columns: typeof enum_pages_blocks_card_grid_block_columns;
|
|
enum_pages_blocks_quote_block_style: typeof enum_pages_blocks_quote_block_style;
|
|
enum_pages_blocks_cta_block_buttons_style: typeof enum_pages_blocks_cta_block_buttons_style;
|
|
enum_pages_blocks_cta_block_background_color: typeof enum_pages_blocks_cta_block_background_color;
|
|
enum_pages_blocks_timeline_block_layout: typeof enum_pages_blocks_timeline_block_layout;
|
|
enum_pages_blocks_timeline_block_marker_style: typeof enum_pages_blocks_timeline_block_marker_style;
|
|
enum_pages_blocks_timeline_block_background_color: typeof enum_pages_blocks_timeline_block_background_color;
|
|
enum_pages_blocks_divider_block_style: typeof enum_pages_blocks_divider_block_style;
|
|
enum_pages_blocks_divider_block_spacing: typeof enum_pages_blocks_divider_block_spacing;
|
|
enum_pages_blocks_video_block_source_type: typeof enum_pages_blocks_video_block_source_type;
|
|
enum_pages_blocks_video_block_aspect_ratio: typeof enum_pages_blocks_video_block_aspect_ratio;
|
|
enum_pages_blocks_video_block_size: typeof enum_pages_blocks_video_block_size;
|
|
enum_pages_blocks_video_block_alignment: typeof enum_pages_blocks_video_block_alignment;
|
|
enum_pages_blocks_video_block_style_rounded: typeof enum_pages_blocks_video_block_style_rounded;
|
|
enum_pages_blocks_video_block_style_shadow: typeof enum_pages_blocks_video_block_style_shadow;
|
|
enum_pages_blocks_posts_list_block_post_type: typeof enum_pages_blocks_posts_list_block_post_type;
|
|
enum_pages_blocks_posts_list_block_layout: typeof enum_pages_blocks_posts_list_block_layout;
|
|
enum_pages_blocks_posts_list_block_columns: typeof enum_pages_blocks_posts_list_block_columns;
|
|
enum_pages_blocks_posts_list_block_background_color: typeof enum_pages_blocks_posts_list_block_background_color;
|
|
enum_pages_blocks_testimonials_block_layout: typeof enum_pages_blocks_testimonials_block_layout;
|
|
enum_pages_blocks_testimonials_block_columns: typeof enum_pages_blocks_testimonials_block_columns;
|
|
enum_pages_blocks_testimonials_block_display_mode: typeof enum_pages_blocks_testimonials_block_display_mode;
|
|
enum_pages_blocks_testimonials_block_slider_effect: typeof enum_pages_blocks_testimonials_block_slider_effect;
|
|
enum_pages_blocks_testimonials_block_slider_speed: typeof enum_pages_blocks_testimonials_block_slider_speed;
|
|
enum_pages_blocks_testimonials_block_slider_per_view: typeof enum_pages_blocks_testimonials_block_slider_per_view;
|
|
enum_pages_blocks_testimonials_block_slider_gap: typeof enum_pages_blocks_testimonials_block_slider_gap;
|
|
enum_pages_blocks_testimonials_block_slider_delay: typeof enum_pages_blocks_testimonials_block_slider_delay;
|
|
enum_pages_blocks_testimonials_block_nav_arrow_style: typeof enum_pages_blocks_testimonials_block_nav_arrow_style;
|
|
enum_pages_blocks_testimonials_block_nav_arrow_pos: typeof enum_pages_blocks_testimonials_block_nav_arrow_pos;
|
|
enum_pages_blocks_testimonials_block_nav_dot_style: typeof enum_pages_blocks_testimonials_block_nav_dot_style;
|
|
enum_pages_blocks_testimonials_block_nav_dot_pos: typeof enum_pages_blocks_testimonials_block_nav_dot_pos;
|
|
enum_pages_blocks_testimonials_block_style_bg: typeof enum_pages_blocks_testimonials_block_style_bg;
|
|
enum_pages_blocks_testimonials_block_style_card: typeof enum_pages_blocks_testimonials_block_style_card;
|
|
enum_pages_blocks_testimonials_block_style_quote: typeof enum_pages_blocks_testimonials_block_style_quote;
|
|
enum_pages_blocks_testimonials_block_style_img_pos: typeof enum_pages_blocks_testimonials_block_style_img_pos;
|
|
enum_pages_blocks_testimonials_block_style_img_size: typeof enum_pages_blocks_testimonials_block_style_img_size;
|
|
enum_pages_blocks_testimonials_block_style_align: typeof enum_pages_blocks_testimonials_block_style_align;
|
|
enum_pages_blocks_testimonials_block_style_spacing: typeof enum_pages_blocks_testimonials_block_style_spacing;
|
|
enum_pages_blocks_newsletter_block_available_interests: typeof enum_pages_blocks_newsletter_block_available_interests;
|
|
enum_pages_blocks_newsletter_block_layout: typeof enum_pages_blocks_newsletter_block_layout;
|
|
enum_pages_blocks_newsletter_block_image_position: typeof enum_pages_blocks_newsletter_block_image_position;
|
|
enum_pages_blocks_newsletter_block_background_color: typeof enum_pages_blocks_newsletter_block_background_color;
|
|
enum_pages_blocks_process_steps_block_layout: typeof enum_pages_blocks_process_steps_block_layout;
|
|
enum_pages_blocks_process_steps_block_cta_variant: typeof enum_pages_blocks_process_steps_block_cta_variant;
|
|
enum_pages_blocks_process_steps_block_background_color: typeof enum_pages_blocks_process_steps_block_background_color;
|
|
enum_pages_blocks_faq_block_source_mode: typeof enum_pages_blocks_faq_block_source_mode;
|
|
enum_pages_blocks_faq_block_display_mode: typeof enum_pages_blocks_faq_block_display_mode;
|
|
enum_pages_blocks_faq_block_layout: typeof enum_pages_blocks_faq_block_layout;
|
|
enum_pages_blocks_faq_block_columns: typeof enum_pages_blocks_faq_block_columns;
|
|
enum_pages_blocks_faq_block_background_color: typeof enum_pages_blocks_faq_block_background_color;
|
|
enum_pages_blocks_team_block_display_mode: typeof enum_pages_blocks_team_block_display_mode;
|
|
enum_pages_blocks_team_block_layout: typeof enum_pages_blocks_team_block_layout;
|
|
enum_pages_blocks_team_block_columns: typeof enum_pages_blocks_team_block_columns;
|
|
enum_pages_blocks_team_block_image_style: typeof enum_pages_blocks_team_block_image_style;
|
|
enum_pages_blocks_team_block_background_color: typeof enum_pages_blocks_team_block_background_color;
|
|
enum_pages_blocks_services_block_display_mode: typeof enum_pages_blocks_services_block_display_mode;
|
|
enum_pages_blocks_services_block_layout: typeof enum_pages_blocks_services_block_layout;
|
|
enum_pages_blocks_services_block_columns: typeof enum_pages_blocks_services_block_columns;
|
|
enum_pages_blocks_services_block_tabs_style: typeof enum_pages_blocks_services_block_tabs_style;
|
|
enum_pages_blocks_services_block_slides_per_view: typeof enum_pages_blocks_services_block_slides_per_view;
|
|
enum_pages_blocks_services_block_card_style: typeof enum_pages_blocks_services_block_card_style;
|
|
enum_pages_blocks_services_block_background_color: typeof enum_pages_blocks_services_block_background_color;
|
|
enum_pages_blocks_author_bio_block_source: typeof enum_pages_blocks_author_bio_block_source;
|
|
enum_pages_blocks_author_bio_block_layout: typeof enum_pages_blocks_author_bio_block_layout;
|
|
enum_pages_blocks_author_bio_block_show_bio: typeof enum_pages_blocks_author_bio_block_show_bio;
|
|
enum_pages_blocks_author_bio_block_style_avatar_size: typeof enum_pages_blocks_author_bio_block_style_avatar_size;
|
|
enum_pages_blocks_author_bio_block_style_avatar_shape: typeof enum_pages_blocks_author_bio_block_style_avatar_shape;
|
|
enum_pages_blocks_author_bio_block_style_bg: typeof enum_pages_blocks_author_bio_block_style_bg;
|
|
enum_pages_blocks_related_posts_block_source: typeof enum_pages_blocks_related_posts_block_source;
|
|
enum_pages_blocks_related_posts_block_layout: typeof enum_pages_blocks_related_posts_block_layout;
|
|
enum_pages_blocks_related_posts_block_cols: typeof enum_pages_blocks_related_posts_block_cols;
|
|
enum_pages_blocks_related_posts_block_style_img_ratio: typeof enum_pages_blocks_related_posts_block_style_img_ratio;
|
|
enum_pages_blocks_related_posts_block_style_rounded: typeof enum_pages_blocks_related_posts_block_style_rounded;
|
|
enum_pages_blocks_related_posts_block_style_hover: typeof enum_pages_blocks_related_posts_block_style_hover;
|
|
enum_pages_blocks_related_posts_block_style_bg: typeof enum_pages_blocks_related_posts_block_style_bg;
|
|
enum_pages_blocks_related_posts_block_style_gap: typeof enum_pages_blocks_related_posts_block_style_gap;
|
|
enum_pages_blocks_share_buttons_block_layout: typeof enum_pages_blocks_share_buttons_block_layout;
|
|
enum_pages_blocks_share_buttons_block_align: typeof enum_pages_blocks_share_buttons_block_align;
|
|
enum_pages_blocks_share_buttons_block_float_side: typeof enum_pages_blocks_share_buttons_block_float_side;
|
|
enum_pages_blocks_share_buttons_block_style_variant: typeof enum_pages_blocks_share_buttons_block_style_variant;
|
|
enum_pages_blocks_share_buttons_block_style_size: typeof enum_pages_blocks_share_buttons_block_style_size;
|
|
enum_pages_blocks_share_buttons_block_style_shape: typeof enum_pages_blocks_share_buttons_block_style_shape;
|
|
enum_pages_blocks_share_buttons_block_style_color_scheme: typeof enum_pages_blocks_share_buttons_block_style_color_scheme;
|
|
enum_pages_blocks_share_buttons_block_style_gap: typeof enum_pages_blocks_share_buttons_block_style_gap;
|
|
enum_pages_blocks_toc_block_layout: typeof enum_pages_blocks_toc_block_layout;
|
|
enum_pages_blocks_toc_block_sidebar_pos: typeof enum_pages_blocks_toc_block_sidebar_pos;
|
|
enum_pages_blocks_toc_block_behavior_progress_style: typeof enum_pages_blocks_toc_block_behavior_progress_style;
|
|
enum_pages_blocks_toc_block_style_bg: typeof enum_pages_blocks_toc_block_style_bg;
|
|
enum_pages_blocks_toc_block_style_border_side: typeof enum_pages_blocks_toc_block_style_border_side;
|
|
enum_pages_blocks_toc_block_style_rounded: typeof enum_pages_blocks_toc_block_style_rounded;
|
|
enum_pages_blocks_toc_block_style_font_size: typeof enum_pages_blocks_toc_block_style_font_size;
|
|
enum_pages_blocks_toc_block_style_line_height: typeof enum_pages_blocks_toc_block_style_line_height;
|
|
enum_pages_blocks_team_filter_block_filters_filter_layout: typeof enum_pages_blocks_team_filter_block_filters_filter_layout;
|
|
enum_pages_blocks_team_filter_block_filters_filter_style: typeof enum_pages_blocks_team_filter_block_filters_filter_style;
|
|
enum_pages_blocks_team_filter_block_display_layout: typeof enum_pages_blocks_team_filter_block_display_layout;
|
|
enum_pages_blocks_team_filter_block_display_columns: typeof enum_pages_blocks_team_filter_block_display_columns;
|
|
enum_pages_blocks_team_filter_block_display_load_more: typeof enum_pages_blocks_team_filter_block_display_load_more;
|
|
enum_pages_blocks_team_filter_block_card_image_style: typeof enum_pages_blocks_team_filter_block_card_image_style;
|
|
enum_pages_blocks_team_filter_block_style_bg: typeof enum_pages_blocks_team_filter_block_style_bg;
|
|
enum_pages_blocks_team_filter_block_style_card_bg: typeof enum_pages_blocks_team_filter_block_style_card_bg;
|
|
enum_pages_blocks_team_filter_block_style_card_hover: typeof enum_pages_blocks_team_filter_block_style_card_hover;
|
|
enum_pages_blocks_team_filter_block_style_gap: typeof enum_pages_blocks_team_filter_block_style_gap;
|
|
enum_pages_blocks_team_filter_block_style_animation: typeof enum_pages_blocks_team_filter_block_style_animation;
|
|
enum_pages_blocks_org_chart_block_source: typeof enum_pages_blocks_org_chart_block_source;
|
|
enum_pages_blocks_org_chart_block_layout: typeof enum_pages_blocks_org_chart_block_layout;
|
|
enum_pages_blocks_org_chart_block_direction: typeof enum_pages_blocks_org_chart_block_direction;
|
|
enum_pages_blocks_org_chart_block_node_style: typeof enum_pages_blocks_org_chart_block_node_style;
|
|
enum_pages_blocks_org_chart_block_node_image_size: typeof enum_pages_blocks_org_chart_block_node_image_size;
|
|
enum_pages_blocks_org_chart_block_node_image_shape: typeof enum_pages_blocks_org_chart_block_node_image_shape;
|
|
enum_pages_blocks_org_chart_block_node_click_action: typeof enum_pages_blocks_org_chart_block_node_click_action;
|
|
enum_pages_blocks_org_chart_block_connectors_style: typeof enum_pages_blocks_org_chart_block_connectors_style;
|
|
enum_pages_blocks_org_chart_block_connectors_color: typeof enum_pages_blocks_org_chart_block_connectors_color;
|
|
enum_pages_blocks_org_chart_block_connectors_thickness: typeof enum_pages_blocks_org_chart_block_connectors_thickness;
|
|
enum_pages_blocks_org_chart_block_style_bg: typeof enum_pages_blocks_org_chart_block_style_bg;
|
|
enum_pages_blocks_org_chart_block_style_node_bg: typeof enum_pages_blocks_org_chart_block_style_node_bg;
|
|
enum_pages_blocks_org_chart_block_style_spacing: typeof enum_pages_blocks_org_chart_block_style_spacing;
|
|
enum_pages_blocks_org_chart_block_style_min_height: typeof enum_pages_blocks_org_chart_block_style_min_height;
|
|
enum_pages_blocks_locations_block_source: typeof enum_pages_blocks_locations_block_source;
|
|
enum_pages_blocks_locations_block_location_type: typeof enum_pages_blocks_locations_block_location_type;
|
|
enum_pages_blocks_locations_block_layout: typeof enum_pages_blocks_locations_block_layout;
|
|
enum_pages_blocks_locations_block_map_position: typeof enum_pages_blocks_locations_block_map_position;
|
|
enum_pages_blocks_locations_block_columns: typeof enum_pages_blocks_locations_block_columns;
|
|
enum_pages_blocks_locations_block_map_provider: typeof enum_pages_blocks_locations_block_map_provider;
|
|
enum_pages_blocks_locations_block_map_style: typeof enum_pages_blocks_locations_block_map_style;
|
|
enum_pages_blocks_locations_block_map_height: typeof enum_pages_blocks_locations_block_map_height;
|
|
enum_pages_blocks_locations_block_map_marker_style: typeof enum_pages_blocks_locations_block_map_marker_style;
|
|
enum_pages_blocks_locations_block_style_bg: typeof enum_pages_blocks_locations_block_style_bg;
|
|
enum_pages_blocks_locations_block_style_card_style: typeof enum_pages_blocks_locations_block_style_card_style;
|
|
enum_pages_blocks_locations_block_style_gap: typeof enum_pages_blocks_locations_block_style_gap;
|
|
enum_pages_blocks_logo_grid_block_partner_type: typeof enum_pages_blocks_logo_grid_block_partner_type;
|
|
enum_pages_blocks_logo_grid_block_source: typeof enum_pages_blocks_logo_grid_block_source;
|
|
enum_pages_blocks_logo_grid_block_layout: typeof enum_pages_blocks_logo_grid_block_layout;
|
|
enum_pages_blocks_logo_grid_block_columns: typeof enum_pages_blocks_logo_grid_block_columns;
|
|
enum_pages_blocks_logo_grid_block_slider_per_view: typeof enum_pages_blocks_logo_grid_block_slider_per_view;
|
|
enum_pages_blocks_logo_grid_block_slider_speed: typeof enum_pages_blocks_logo_grid_block_slider_speed;
|
|
enum_pages_blocks_logo_grid_block_logo_style_size: typeof enum_pages_blocks_logo_grid_block_logo_style_size;
|
|
enum_pages_blocks_logo_grid_block_logo_style_max_height: typeof enum_pages_blocks_logo_grid_block_logo_style_max_height;
|
|
enum_pages_blocks_logo_grid_block_logo_style_opacity: typeof enum_pages_blocks_logo_grid_block_logo_style_opacity;
|
|
enum_pages_blocks_logo_grid_block_logo_style_hover_effect: typeof enum_pages_blocks_logo_grid_block_logo_style_hover_effect;
|
|
enum_pages_blocks_logo_grid_block_style_bg: typeof enum_pages_blocks_logo_grid_block_style_bg;
|
|
enum_pages_blocks_logo_grid_block_style_logo_bg: typeof enum_pages_blocks_logo_grid_block_style_logo_bg;
|
|
enum_pages_blocks_logo_grid_block_style_gap: typeof enum_pages_blocks_logo_grid_block_style_gap;
|
|
enum_pages_blocks_logo_grid_block_style_alignment: typeof enum_pages_blocks_logo_grid_block_style_alignment;
|
|
enum_pages_blocks_stats_block_stats_icon: typeof enum_pages_blocks_stats_block_stats_icon;
|
|
enum_pages_blocks_stats_block_stats_color: typeof enum_pages_blocks_stats_block_stats_color;
|
|
enum_pages_blocks_stats_block_layout: typeof enum_pages_blocks_stats_block_layout;
|
|
enum_pages_blocks_stats_block_columns: typeof enum_pages_blocks_stats_block_columns;
|
|
enum_pages_blocks_stats_block_alignment: typeof enum_pages_blocks_stats_block_alignment;
|
|
enum_pages_blocks_stats_block_animation_duration: typeof enum_pages_blocks_stats_block_animation_duration;
|
|
enum_pages_blocks_stats_block_animation_trigger: typeof enum_pages_blocks_stats_block_animation_trigger;
|
|
enum_pages_blocks_stats_block_style_bg: typeof enum_pages_blocks_stats_block_style_bg;
|
|
enum_pages_blocks_stats_block_style_bg_overlay: typeof enum_pages_blocks_stats_block_style_bg_overlay;
|
|
enum_pages_blocks_stats_block_style_text_color: typeof enum_pages_blocks_stats_block_style_text_color;
|
|
enum_pages_blocks_stats_block_style_value_size: typeof enum_pages_blocks_stats_block_style_value_size;
|
|
enum_pages_blocks_stats_block_style_value_weight: typeof enum_pages_blocks_stats_block_style_value_weight;
|
|
enum_pages_blocks_stats_block_style_icon_position: typeof enum_pages_blocks_stats_block_style_icon_position;
|
|
enum_pages_blocks_stats_block_style_gap: typeof enum_pages_blocks_stats_block_style_gap;
|
|
enum_pages_blocks_stats_block_style_padding: typeof enum_pages_blocks_stats_block_style_padding;
|
|
enum_pages_blocks_jobs_block_source: typeof enum_pages_blocks_jobs_block_source;
|
|
enum_pages_blocks_jobs_block_category: typeof enum_pages_blocks_jobs_block_category;
|
|
enum_pages_blocks_jobs_block_filters_filter_layout: typeof enum_pages_blocks_jobs_block_filters_filter_layout;
|
|
enum_pages_blocks_jobs_block_layout: typeof enum_pages_blocks_jobs_block_layout;
|
|
enum_pages_blocks_jobs_block_columns: typeof enum_pages_blocks_jobs_block_columns;
|
|
enum_pages_blocks_jobs_block_pagination_type: typeof enum_pages_blocks_jobs_block_pagination_type;
|
|
enum_pages_blocks_jobs_block_style_bg: typeof enum_pages_blocks_jobs_block_style_bg;
|
|
enum_pages_blocks_jobs_block_style_card_style: typeof enum_pages_blocks_jobs_block_style_card_style;
|
|
enum_pages_blocks_jobs_block_style_hover_effect: typeof enum_pages_blocks_jobs_block_style_hover_effect;
|
|
enum_pages_blocks_jobs_block_style_gap: typeof enum_pages_blocks_jobs_block_style_gap;
|
|
enum_pages_blocks_downloads_block_source: typeof enum_pages_blocks_downloads_block_source;
|
|
enum_pages_blocks_downloads_block_category: typeof enum_pages_blocks_downloads_block_category;
|
|
enum_pages_blocks_downloads_block_filters_filter_layout: typeof enum_pages_blocks_downloads_block_filters_filter_layout;
|
|
enum_pages_blocks_downloads_block_layout: typeof enum_pages_blocks_downloads_block_layout;
|
|
enum_pages_blocks_downloads_block_columns: typeof enum_pages_blocks_downloads_block_columns;
|
|
enum_pages_blocks_downloads_block_file_icons_icon_style: typeof enum_pages_blocks_downloads_block_file_icons_icon_style;
|
|
enum_pages_blocks_downloads_block_sort_by: typeof enum_pages_blocks_downloads_block_sort_by;
|
|
enum_pages_blocks_downloads_block_group_by: typeof enum_pages_blocks_downloads_block_group_by;
|
|
enum_pages_blocks_downloads_block_pagination_type: typeof enum_pages_blocks_downloads_block_pagination_type;
|
|
enum_pages_blocks_downloads_block_style_bg: typeof enum_pages_blocks_downloads_block_style_bg;
|
|
enum_pages_blocks_downloads_block_style_card_style: typeof enum_pages_blocks_downloads_block_style_card_style;
|
|
enum_pages_blocks_downloads_block_style_hover_effect: typeof enum_pages_blocks_downloads_block_style_hover_effect;
|
|
enum_pages_blocks_downloads_block_style_gap: typeof enum_pages_blocks_downloads_block_style_gap;
|
|
enum_pages_blocks_map_block_location_type: typeof enum_pages_blocks_map_block_location_type;
|
|
enum_pages_blocks_map_block_markers_marker_type: typeof enum_pages_blocks_map_block_markers_marker_type;
|
|
enum_pages_blocks_map_block_source: typeof enum_pages_blocks_map_block_source;
|
|
enum_pages_blocks_map_block_provider: typeof enum_pages_blocks_map_block_provider;
|
|
enum_pages_blocks_map_block_map_style: typeof enum_pages_blocks_map_block_map_style;
|
|
enum_pages_blocks_map_block_map_settings_height: typeof enum_pages_blocks_map_block_map_settings_height;
|
|
enum_pages_blocks_map_block_marker_style_type: typeof enum_pages_blocks_map_block_marker_style_type;
|
|
enum_pages_blocks_map_block_marker_style_size: typeof enum_pages_blocks_map_block_marker_style_size;
|
|
enum_pages_blocks_map_block_popup_trigger: typeof enum_pages_blocks_map_block_popup_trigger;
|
|
enum_pages_blocks_map_block_sidebar_position: typeof enum_pages_blocks_map_block_sidebar_position;
|
|
enum_pages_blocks_map_block_sidebar_width: typeof enum_pages_blocks_map_block_sidebar_width;
|
|
enum_pages_blocks_map_block_style_padding: typeof enum_pages_blocks_map_block_style_padding;
|
|
enum_pages_blocks_events_source_mode: typeof enum_pages_blocks_events_source_mode;
|
|
enum_pages_blocks_events_filter_mode: typeof enum_pages_blocks_events_filter_mode;
|
|
enum_pages_blocks_events_event_type: typeof enum_pages_blocks_events_event_type;
|
|
enum_pages_blocks_events_layout: typeof enum_pages_blocks_events_layout;
|
|
enum_pages_blocks_events_columns: typeof enum_pages_blocks_events_columns;
|
|
enum_pages_blocks_events_calendar_options_default_view: typeof enum_pages_blocks_events_calendar_options_default_view;
|
|
enum_pages_blocks_events_group_by: typeof enum_pages_blocks_events_group_by;
|
|
enum_pages_blocks_events_sort_order: typeof enum_pages_blocks_events_sort_order;
|
|
enum_pages_blocks_events_background_color: typeof enum_pages_blocks_events_background_color;
|
|
enum_pages_blocks_events_card_style: typeof enum_pages_blocks_events_card_style;
|
|
enum_pages_blocks_pricing_plans_cta_style: typeof enum_pages_blocks_pricing_plans_cta_style;
|
|
enum_pages_blocks_pricing_plans_accent_color: typeof enum_pages_blocks_pricing_plans_accent_color;
|
|
enum_pages_blocks_pricing_pricing_type: typeof enum_pages_blocks_pricing_pricing_type;
|
|
enum_pages_blocks_pricing_layout: typeof enum_pages_blocks_pricing_layout;
|
|
enum_pages_blocks_pricing_alignment: typeof enum_pages_blocks_pricing_alignment;
|
|
enum_pages_blocks_pricing_guarantee_icon: typeof enum_pages_blocks_pricing_guarantee_icon;
|
|
enum_pages_blocks_pricing_background_color: typeof enum_pages_blocks_pricing_background_color;
|
|
enum_pages_blocks_pricing_card_style: typeof enum_pages_blocks_pricing_card_style;
|
|
enum_pages_blocks_tabs_tabs_features_icon: typeof enum_pages_blocks_tabs_tabs_features_icon;
|
|
enum_pages_blocks_tabs_tabs_icon: typeof enum_pages_blocks_tabs_tabs_icon;
|
|
enum_pages_blocks_tabs_tabs_content_type: typeof enum_pages_blocks_tabs_tabs_content_type;
|
|
enum_pages_blocks_tabs_tabs_img_txt_img_pos: typeof enum_pages_blocks_tabs_tabs_img_txt_img_pos;
|
|
enum_pages_blocks_tabs_tabs_code_language: typeof enum_pages_blocks_tabs_tabs_code_language;
|
|
enum_pages_blocks_tabs_tabs_embed_type: typeof enum_pages_blocks_tabs_tabs_embed_type;
|
|
enum_pages_blocks_tabs_tabs_embed_aspect_ratio: typeof enum_pages_blocks_tabs_tabs_embed_aspect_ratio;
|
|
enum_pages_blocks_tabs_tab_style: typeof enum_pages_blocks_tabs_tab_style;
|
|
enum_pages_blocks_tabs_tab_position: typeof enum_pages_blocks_tabs_tab_position;
|
|
enum_pages_blocks_tabs_tab_alignment: typeof enum_pages_blocks_tabs_tab_alignment;
|
|
enum_pages_blocks_tabs_mobile_style: typeof enum_pages_blocks_tabs_mobile_style;
|
|
enum_pages_blocks_tabs_background_color: typeof enum_pages_blocks_tabs_background_color;
|
|
enum_pages_blocks_tabs_content_background: typeof enum_pages_blocks_tabs_content_background;
|
|
enum_pages_blocks_accordion_items_list_items_icon: typeof enum_pages_blocks_accordion_items_list_items_icon;
|
|
enum_pages_blocks_accordion_items_icon: typeof enum_pages_blocks_accordion_items_icon;
|
|
enum_pages_blocks_accordion_items_content_type: typeof enum_pages_blocks_accordion_items_content_type;
|
|
enum_pages_blocks_accordion_items_img_txt_img_pos: typeof enum_pages_blocks_accordion_items_img_txt_img_pos;
|
|
enum_pages_blocks_accordion_items_code_content_language: typeof enum_pages_blocks_accordion_items_code_content_language;
|
|
enum_pages_blocks_accordion_items_badge_color: typeof enum_pages_blocks_accordion_items_badge_color;
|
|
enum_pages_blocks_accordion_behavior: typeof enum_pages_blocks_accordion_behavior;
|
|
enum_pages_blocks_accordion_style: typeof enum_pages_blocks_accordion_style;
|
|
enum_pages_blocks_accordion_icon_position: typeof enum_pages_blocks_accordion_icon_position;
|
|
enum_pages_blocks_accordion_icon_style: typeof enum_pages_blocks_accordion_icon_style;
|
|
enum_pages_blocks_accordion_layout: typeof enum_pages_blocks_accordion_layout;
|
|
enum_pages_blocks_accordion_title_size: typeof enum_pages_blocks_accordion_title_size;
|
|
enum_pages_blocks_accordion_background_color: typeof enum_pages_blocks_accordion_background_color;
|
|
enum_pages_blocks_accordion_header_background: typeof enum_pages_blocks_accordion_header_background;
|
|
enum_pages_blocks_comparison_tbl_rows_values_value_type: typeof enum_pages_blocks_comparison_tbl_rows_values_value_type;
|
|
enum_pages_blocks_comparison_crd_items_accent_color: typeof enum_pages_blocks_comparison_crd_items_accent_color;
|
|
enum_pages_blocks_comparison_comparison_type: typeof enum_pages_blocks_comparison_comparison_type;
|
|
enum_pages_blocks_comparison_before_after_display_style: typeof enum_pages_blocks_comparison_before_after_display_style;
|
|
enum_pages_blocks_comparison_mobile_view: typeof enum_pages_blocks_comparison_mobile_view;
|
|
enum_pages_blocks_comparison_background_color: typeof enum_pages_blocks_comparison_background_color;
|
|
enum_pages_blocks_comparison_table_style: typeof enum_pages_blocks_comparison_table_style;
|
|
enum_pages_blocks_comparison_check_color: typeof enum_pages_blocks_comparison_check_color;
|
|
enum_pages_blocks_comparison_cross_color: typeof enum_pages_blocks_comparison_cross_color;
|
|
enum_pages_blocks_before_after_comparisons_category: typeof enum_pages_blocks_before_after_comparisons_category;
|
|
enum_pages_blocks_before_after_display_style: typeof enum_pages_blocks_before_after_display_style;
|
|
enum_pages_blocks_before_after_slider_orientation: typeof enum_pages_blocks_before_after_slider_orientation;
|
|
enum_pages_blocks_before_after_layout: typeof enum_pages_blocks_before_after_layout;
|
|
enum_pages_blocks_before_after_aspect_ratio: typeof enum_pages_blocks_before_after_aspect_ratio;
|
|
enum_pages_blocks_before_after_slider_handle_style: typeof enum_pages_blocks_before_after_slider_handle_style;
|
|
enum_pages_blocks_before_after_slider_handle_color: typeof enum_pages_blocks_before_after_slider_handle_color;
|
|
enum_pages_blocks_before_after_slider_handle_size: typeof enum_pages_blocks_before_after_slider_handle_size;
|
|
enum_pages_blocks_before_after_label_position: typeof enum_pages_blocks_before_after_label_position;
|
|
enum_pages_blocks_before_after_label_style: typeof enum_pages_blocks_before_after_label_style;
|
|
enum_pages_blocks_before_after_cta_cta_style: typeof enum_pages_blocks_before_after_cta_cta_style;
|
|
enum_pages_blocks_before_after_background_color: typeof enum_pages_blocks_before_after_background_color;
|
|
enum_pages_blocks_before_after_border_radius: typeof enum_pages_blocks_before_after_border_radius;
|
|
enum_pages_blocks_before_after_shadow: typeof enum_pages_blocks_before_after_shadow;
|
|
enum_pages_blocks_before_after_spacing: typeof enum_pages_blocks_before_after_spacing;
|
|
enum_pages_blocks_favorites_block_category: typeof enum_pages_blocks_favorites_block_category;
|
|
enum_pages_blocks_favorites_block_layout: typeof enum_pages_blocks_favorites_block_layout;
|
|
enum_pages_blocks_favorites_block_columns: typeof enum_pages_blocks_favorites_block_columns;
|
|
enum_pages_blocks_favorites_block_background_color: typeof enum_pages_blocks_favorites_block_background_color;
|
|
enum_pages_blocks_series_block_layout: typeof enum_pages_blocks_series_block_layout;
|
|
enum_pages_blocks_series_block_columns: typeof enum_pages_blocks_series_block_columns;
|
|
enum_pages_blocks_series_block_background_color: typeof enum_pages_blocks_series_block_background_color;
|
|
enum_pages_blocks_series_detail_block_layout: typeof enum_pages_blocks_series_detail_block_layout;
|
|
enum_pages_blocks_series_detail_block_hero_height: typeof enum_pages_blocks_series_detail_block_hero_height;
|
|
enum_pages_blocks_series_detail_block_hero_text_align: typeof enum_pages_blocks_series_detail_block_hero_text_align;
|
|
enum_pages_blocks_video_embed_block_video_source: typeof enum_pages_blocks_video_embed_block_video_source;
|
|
enum_pages_blocks_video_embed_block_aspect_ratio: typeof enum_pages_blocks_video_embed_block_aspect_ratio;
|
|
enum_pages_blocks_video_embed_block_max_width: typeof enum_pages_blocks_video_embed_block_max_width;
|
|
enum_pages_blocks_video_embed_block_style_alignment: typeof enum_pages_blocks_video_embed_block_style_alignment;
|
|
enum_pages_blocks_video_embed_block_style_border_radius: typeof enum_pages_blocks_video_embed_block_style_border_radius;
|
|
enum_pages_blocks_featured_content_block_items_item_type: typeof enum_pages_blocks_featured_content_block_items_item_type;
|
|
enum_pages_blocks_featured_content_block_layout: typeof enum_pages_blocks_featured_content_block_layout;
|
|
enum_pages_blocks_featured_content_block_columns: typeof enum_pages_blocks_featured_content_block_columns;
|
|
enum_pages_blocks_featured_content_block_background_color: typeof enum_pages_blocks_featured_content_block_background_color;
|
|
enum_pages_blocks_featured_content_block_card_bg: typeof enum_pages_blocks_featured_content_block_card_bg;
|
|
enum_pages_blocks_featured_content_block_card_img_ratio: typeof enum_pages_blocks_featured_content_block_card_img_ratio;
|
|
enum_pages_blocks_featured_content_block_card_hover: typeof enum_pages_blocks_featured_content_block_card_hover;
|
|
enum_pages_status: typeof enum_pages_status;
|
|
enum_posts_type: typeof enum_posts_type;
|
|
enum_posts_featured_video_source: typeof enum_posts_featured_video_source;
|
|
enum_posts_status: typeof enum_posts_status;
|
|
enum_social_links_platform: typeof enum_social_links_platform;
|
|
enum_team_social_links_platform: typeof enum_team_social_links_platform;
|
|
enum_team_languages_level: typeof enum_team_languages_level;
|
|
enum_team_hierarchy_level: typeof enum_team_hierarchy_level;
|
|
enum_services_pricing_type: typeof enum_services_pricing_type;
|
|
enum_services_cta_style: typeof enum_services_cta_style;
|
|
enum_newsletter_subscribers_interests: typeof enum_newsletter_subscribers_interests;
|
|
enum_newsletter_subscribers_status: typeof enum_newsletter_subscribers_status;
|
|
enum_portfolios_status: typeof enum_portfolios_status;
|
|
enum_videos_source: typeof enum_videos_source;
|
|
enum_videos_video_type: typeof enum_videos_video_type;
|
|
enum_videos_aspect_ratio: typeof enum_videos_aspect_ratio;
|
|
enum_videos_status: typeof enum_videos_status;
|
|
enum_products_pricing_currency: typeof enum_products_pricing_currency;
|
|
enum_products_pricing_price_type: typeof enum_products_pricing_price_type;
|
|
enum_products_inventory_stock_status: typeof enum_products_inventory_stock_status;
|
|
enum_products_cta_type: typeof enum_products_cta_type;
|
|
enum_products_status: typeof enum_products_status;
|
|
enum_timelines_events_deliverables_type: typeof enum_timelines_events_deliverables_type;
|
|
enum_timelines_events_links_type: typeof enum_timelines_events_links_type;
|
|
enum_timelines_events_date_type: typeof enum_timelines_events_date_type;
|
|
enum_timelines_events_month: typeof enum_timelines_events_month;
|
|
enum_timelines_events_end_month: typeof enum_timelines_events_end_month;
|
|
enum_timelines_events_category: typeof enum_timelines_events_category;
|
|
enum_timelines_events_importance: typeof enum_timelines_events_importance;
|
|
enum_timelines_events_action_required: typeof enum_timelines_events_action_required;
|
|
enum_timelines_type: typeof enum_timelines_type;
|
|
enum_timelines_status: typeof enum_timelines_status;
|
|
enum_timelines_display_options_layout: typeof enum_timelines_display_options_layout;
|
|
enum_timelines_display_options_sort_order: typeof enum_timelines_display_options_sort_order;
|
|
enum_timelines_display_options_marker_style: typeof enum_timelines_display_options_marker_style;
|
|
enum_timelines_display_options_color_scheme: typeof enum_timelines_display_options_color_scheme;
|
|
enum_workflows_phases_steps_resources_type: typeof enum_workflows_phases_steps_resources_type;
|
|
enum_workflows_phases_steps_step_type: typeof enum_workflows_phases_steps_step_type;
|
|
enum_workflows_phases_steps_priority: typeof enum_workflows_phases_steps_priority;
|
|
enum_workflows_global_resources_type: typeof enum_workflows_global_resources_type;
|
|
enum_workflows_type: typeof enum_workflows_type;
|
|
enum_workflows_status: typeof enum_workflows_status;
|
|
enum_workflows_properties_complexity: typeof enum_workflows_properties_complexity;
|
|
enum_workflows_display_options_layout: typeof enum_workflows_display_options_layout;
|
|
enum_workflows_display_options_color_scheme: typeof enum_workflows_display_options_color_scheme;
|
|
enum_locations_hours_structured_day: typeof enum_locations_hours_structured_day;
|
|
enum_locations_type: typeof enum_locations_type;
|
|
enum_partners_type: typeof enum_partners_type;
|
|
enum_jobs_benefits_list_icon: typeof enum_jobs_benefits_list_icon;
|
|
enum_jobs_category: typeof enum_jobs_category;
|
|
enum_jobs_type: typeof enum_jobs_type;
|
|
enum_jobs_work_model: typeof enum_jobs_work_model;
|
|
enum_jobs_experience_level: typeof enum_jobs_experience_level;
|
|
enum_jobs_salary_type: typeof enum_jobs_salary_type;
|
|
enum_jobs_application_method: typeof enum_jobs_application_method;
|
|
enum_jobs_status: typeof enum_jobs_status;
|
|
enum_downloads_access_form_fields: typeof enum_downloads_access_form_fields;
|
|
enum_downloads_file_type: typeof enum_downloads_file_type;
|
|
enum_downloads_category: typeof enum_downloads_category;
|
|
enum_events_agenda_type: typeof enum_events_agenda_type;
|
|
enum_events_event_type: typeof enum_events_event_type;
|
|
enum_events_format: typeof enum_events_format;
|
|
enum_events_recurrence_frequency: typeof enum_events_recurrence_frequency;
|
|
enum_events_online_platform: typeof enum_events_online_platform;
|
|
enum_events_registration_method: typeof enum_events_registration_method;
|
|
enum_events_status: typeof enum_events_status;
|
|
enum_bookings_contact_history_type: typeof enum_bookings_contact_history_type;
|
|
enum_bookings_service_type: typeof enum_bookings_service_type;
|
|
enum_bookings_duration: typeof enum_bookings_duration;
|
|
enum_bookings_location_type: typeof enum_bookings_location_type;
|
|
enum_bookings_status: typeof enum_bookings_status;
|
|
enum_bookings_priority: typeof enum_bookings_priority;
|
|
enum_bookings_source: typeof enum_bookings_source;
|
|
enum_certifications_benefits_icon: typeof enum_certifications_benefits_icon;
|
|
enum_certifications_audits_type: typeof enum_certifications_audits_type;
|
|
enum_certifications_audits_result: typeof enum_certifications_audits_result;
|
|
enum_certifications_type: typeof enum_certifications_type;
|
|
enum_certifications_category: typeof enum_certifications_category;
|
|
enum_certifications_issuer_country: typeof enum_certifications_issuer_country;
|
|
enum_certifications_renewal_cycle: typeof enum_certifications_renewal_cycle;
|
|
enum_certifications_status: typeof enum_certifications_status;
|
|
enum_certifications_visibility: typeof enum_certifications_visibility;
|
|
enum_projects_genres: typeof enum_projects_genres;
|
|
enum_projects_platforms: typeof enum_projects_platforms;
|
|
enum_projects_videos_type: typeof enum_projects_videos_type;
|
|
enum_projects_tech_stack_languages: typeof enum_projects_tech_stack_languages;
|
|
enum_projects_downloads_platform: typeof enum_projects_downloads_platform;
|
|
enum_projects_type: typeof enum_projects_type;
|
|
enum_projects_tech_stack_engine: typeof enum_projects_tech_stack_engine;
|
|
enum_projects_status: typeof enum_projects_status;
|
|
enum_projects_visibility: typeof enum_projects_visibility;
|
|
enum_favorites_category: typeof enum_favorites_category;
|
|
enum_favorites_price_range: typeof enum_favorites_price_range;
|
|
enum_favorites_affiliate_network: typeof enum_favorites_affiliate_network;
|
|
enum_favorites_badge: typeof enum_favorites_badge;
|
|
enum_youtube_channels_publishing_schedule_default_days: typeof enum_youtube_channels_publishing_schedule_default_days;
|
|
enum_youtube_channels_language: typeof enum_youtube_channels_language;
|
|
enum_youtube_channels_category: typeof enum_youtube_channels_category;
|
|
enum_youtube_channels_status: typeof enum_youtube_channels_status;
|
|
enum_youtube_content_disclaimers_type: typeof enum_youtube_content_disclaimers_type;
|
|
enum_youtube_content_disclaimers_placement: typeof enum_youtube_content_disclaimers_placement;
|
|
enum_youtube_content_format: typeof enum_youtube_content_format;
|
|
enum_youtube_content_status: typeof enum_youtube_content_status;
|
|
enum_youtube_content_priority: typeof enum_youtube_content_priority;
|
|
enum_youtube_content_cta_type: typeof enum_youtube_content_cta_type;
|
|
enum_youtube_content_youtube_metadata_visibility: typeof enum_youtube_content_youtube_metadata_visibility;
|
|
enum_yt_tasks_task_type: typeof enum_yt_tasks_task_type;
|
|
enum_yt_tasks_status: typeof enum_yt_tasks_status;
|
|
enum_yt_tasks_priority: typeof enum_yt_tasks_priority;
|
|
enum_yt_notifications_type: typeof enum_yt_notifications_type;
|
|
enum_yt_batches_status: typeof enum_yt_batches_status;
|
|
enum_yt_monthly_goals_custom_goals_status: typeof enum_yt_monthly_goals_custom_goals_status;
|
|
enum_yt_script_tpl_format: typeof enum_yt_script_tpl_format;
|
|
enum_yt_checklist_templates_items_category: typeof enum_yt_checklist_templates_items_category;
|
|
enum_yt_checklist_templates_type: typeof enum_yt_checklist_templates_type;
|
|
enum_yt_checklist_templates_format: typeof enum_yt_checklist_templates_format;
|
|
enum_yt_series_format: typeof enum_yt_series_format;
|
|
enum_social_platforms_api_status: typeof enum_social_platforms_api_status;
|
|
enum_social_platforms_api_config_api_type: typeof enum_social_platforms_api_config_api_type;
|
|
enum_social_platforms_api_config_auth_type: typeof enum_social_platforms_api_config_auth_type;
|
|
enum_community_interactions_attachments_type: typeof enum_community_interactions_attachments_type;
|
|
enum_community_interactions_type: typeof enum_community_interactions_type;
|
|
enum_community_interactions_analysis_sentiment: typeof enum_community_interactions_analysis_sentiment;
|
|
enum_community_interactions_status: typeof enum_community_interactions_status;
|
|
enum_community_interactions_priority: typeof enum_community_interactions_priority;
|
|
enum_community_templates_category: typeof enum_community_templates_category;
|
|
enum_community_rules_trigger_keywords_match_type: typeof enum_community_rules_trigger_keywords_match_type;
|
|
enum_community_rules_trigger_sentiment_values: typeof enum_community_rules_trigger_sentiment_values;
|
|
enum_community_rules_actions_action: typeof enum_community_rules_actions_action;
|
|
enum_community_rules_trigger_type: typeof enum_community_rules_trigger_type;
|
|
enum_cookie_configurations_enabled_categories: typeof enum_cookie_configurations_enabled_categories;
|
|
enum_cookie_configurations_styling_position: typeof enum_cookie_configurations_styling_position;
|
|
enum_cookie_configurations_styling_theme: typeof enum_cookie_configurations_styling_theme;
|
|
enum_cookie_inventory_category: typeof enum_cookie_inventory_category;
|
|
enum_privacy_policy_settings_provider: typeof enum_privacy_policy_settings_provider;
|
|
enum_privacy_policy_settings_alfright_language: typeof enum_privacy_policy_settings_alfright_language;
|
|
enum_email_logs_status: typeof enum_email_logs_status;
|
|
enum_email_logs_source: typeof enum_email_logs_source;
|
|
enum_audit_logs_action: typeof enum_audit_logs_action;
|
|
enum_audit_logs_severity: typeof enum_audit_logs_severity;
|
|
enum_audit_logs_entity_type: typeof enum_audit_logs_entity_type;
|
|
enum_navigations_main_menu_submenu_link_type: typeof enum_navigations_main_menu_submenu_link_type;
|
|
enum_navigations_main_menu_type: typeof enum_navigations_main_menu_type;
|
|
enum_navigations_footer_menu_link_type: typeof enum_navigations_footer_menu_link_type;
|
|
enum_forms_confirmation_type: typeof enum_forms_confirmation_type;
|
|
enum_forms_redirect_type: typeof enum_forms_redirect_type;
|
|
enum_redirects_to_type: typeof enum_redirects_to_type;
|
|
enum_seo_settings_social_profiles_platform: typeof enum_seo_settings_social_profiles_platform;
|
|
enum_seo_settings_local_business_type: typeof enum_seo_settings_local_business_type;
|
|
enum_seo_settings_local_business_price_range: typeof enum_seo_settings_local_business_price_range;
|
|
users_tenants: typeof users_tenants;
|
|
users_sessions: typeof users_sessions;
|
|
users: typeof users;
|
|
users_rels: typeof users_rels;
|
|
media: typeof media;
|
|
media_texts: typeof media_texts;
|
|
tenants_domains: typeof tenants_domains;
|
|
tenants: typeof tenants;
|
|
pages_blocks_hero_block: typeof pages_blocks_hero_block;
|
|
pages_blocks_hero_block_locales: typeof pages_blocks_hero_block_locales;
|
|
pages_blocks_hero_slider_block_slides: typeof pages_blocks_hero_slider_block_slides;
|
|
pages_blocks_hero_slider_block_slides_locales: typeof pages_blocks_hero_slider_block_slides_locales;
|
|
pages_blocks_hero_slider_block: typeof pages_blocks_hero_slider_block;
|
|
pages_blocks_hero_slider_block_locales: typeof pages_blocks_hero_slider_block_locales;
|
|
pages_blocks_image_slider_block_images: typeof pages_blocks_image_slider_block_images;
|
|
pages_blocks_image_slider_block_images_locales: typeof pages_blocks_image_slider_block_images_locales;
|
|
pages_blocks_image_slider_block: typeof pages_blocks_image_slider_block;
|
|
pages_blocks_image_slider_block_locales: typeof pages_blocks_image_slider_block_locales;
|
|
pages_blocks_text_block: typeof pages_blocks_text_block;
|
|
pages_blocks_text_block_locales: typeof pages_blocks_text_block_locales;
|
|
pages_blocks_image_text_block: typeof pages_blocks_image_text_block;
|
|
pages_blocks_image_text_block_locales: typeof pages_blocks_image_text_block_locales;
|
|
pages_blocks_card_grid_block_cards: typeof pages_blocks_card_grid_block_cards;
|
|
pages_blocks_card_grid_block_cards_locales: typeof pages_blocks_card_grid_block_cards_locales;
|
|
pages_blocks_card_grid_block: typeof pages_blocks_card_grid_block;
|
|
pages_blocks_card_grid_block_locales: typeof pages_blocks_card_grid_block_locales;
|
|
pages_blocks_quote_block: typeof pages_blocks_quote_block;
|
|
pages_blocks_quote_block_locales: typeof pages_blocks_quote_block_locales;
|
|
pages_blocks_cta_block_buttons: typeof pages_blocks_cta_block_buttons;
|
|
pages_blocks_cta_block_buttons_locales: typeof pages_blocks_cta_block_buttons_locales;
|
|
pages_blocks_cta_block: typeof pages_blocks_cta_block;
|
|
pages_blocks_cta_block_locales: typeof pages_blocks_cta_block_locales;
|
|
pages_blocks_contact_form_block: typeof pages_blocks_contact_form_block;
|
|
pages_blocks_contact_form_block_locales: typeof pages_blocks_contact_form_block_locales;
|
|
pages_blocks_timeline_block_items: typeof pages_blocks_timeline_block_items;
|
|
pages_blocks_timeline_block_items_locales: typeof pages_blocks_timeline_block_items_locales;
|
|
pages_blocks_timeline_block: typeof pages_blocks_timeline_block;
|
|
pages_blocks_timeline_block_locales: typeof pages_blocks_timeline_block_locales;
|
|
pages_blocks_divider_block: typeof pages_blocks_divider_block;
|
|
pages_blocks_video_block: typeof pages_blocks_video_block;
|
|
pages_blocks_video_block_locales: typeof pages_blocks_video_block_locales;
|
|
pages_blocks_posts_list_block: typeof pages_blocks_posts_list_block;
|
|
pages_blocks_posts_list_block_locales: typeof pages_blocks_posts_list_block_locales;
|
|
pages_blocks_testimonials_block: typeof pages_blocks_testimonials_block;
|
|
pages_blocks_testimonials_block_locales: typeof pages_blocks_testimonials_block_locales;
|
|
pages_blocks_newsletter_block_available_interests: typeof pages_blocks_newsletter_block_available_interests;
|
|
pages_blocks_newsletter_block: typeof pages_blocks_newsletter_block;
|
|
pages_blocks_newsletter_block_locales: typeof pages_blocks_newsletter_block_locales;
|
|
pages_blocks_process_steps_block_steps: typeof pages_blocks_process_steps_block_steps;
|
|
pages_blocks_process_steps_block_steps_locales: typeof pages_blocks_process_steps_block_steps_locales;
|
|
pages_blocks_process_steps_block: typeof pages_blocks_process_steps_block;
|
|
pages_blocks_process_steps_block_locales: typeof pages_blocks_process_steps_block_locales;
|
|
pages_blocks_faq_block_inline_f_a_qs: typeof pages_blocks_faq_block_inline_f_a_qs;
|
|
pages_blocks_faq_block_inline_f_a_qs_locales: typeof pages_blocks_faq_block_inline_f_a_qs_locales;
|
|
pages_blocks_faq_block: typeof pages_blocks_faq_block;
|
|
pages_blocks_faq_block_locales: typeof pages_blocks_faq_block_locales;
|
|
pages_blocks_team_block: typeof pages_blocks_team_block;
|
|
pages_blocks_team_block_locales: typeof pages_blocks_team_block_locales;
|
|
pages_blocks_services_block: typeof pages_blocks_services_block;
|
|
pages_blocks_services_block_locales: typeof pages_blocks_services_block_locales;
|
|
pages_blocks_author_bio_block: typeof pages_blocks_author_bio_block;
|
|
pages_blocks_author_bio_block_locales: typeof pages_blocks_author_bio_block_locales;
|
|
pages_blocks_related_posts_block: typeof pages_blocks_related_posts_block;
|
|
pages_blocks_related_posts_block_locales: typeof pages_blocks_related_posts_block_locales;
|
|
pages_blocks_share_buttons_block: typeof pages_blocks_share_buttons_block;
|
|
pages_blocks_share_buttons_block_locales: typeof pages_blocks_share_buttons_block_locales;
|
|
pages_blocks_toc_block: typeof pages_blocks_toc_block;
|
|
pages_blocks_toc_block_locales: typeof pages_blocks_toc_block_locales;
|
|
pages_blocks_team_filter_block: typeof pages_blocks_team_filter_block;
|
|
pages_blocks_team_filter_block_locales: typeof pages_blocks_team_filter_block_locales;
|
|
pages_blocks_org_chart_block: typeof pages_blocks_org_chart_block;
|
|
pages_blocks_org_chart_block_locales: typeof pages_blocks_org_chart_block_locales;
|
|
pages_blocks_locations_block: typeof pages_blocks_locations_block;
|
|
pages_blocks_locations_block_locales: typeof pages_blocks_locations_block_locales;
|
|
pages_blocks_logo_grid_block_partner_type: typeof pages_blocks_logo_grid_block_partner_type;
|
|
pages_blocks_logo_grid_block_logos: typeof pages_blocks_logo_grid_block_logos;
|
|
pages_blocks_logo_grid_block: typeof pages_blocks_logo_grid_block;
|
|
pages_blocks_logo_grid_block_locales: typeof pages_blocks_logo_grid_block_locales;
|
|
pages_blocks_stats_block_stats: typeof pages_blocks_stats_block_stats;
|
|
pages_blocks_stats_block_stats_locales: typeof pages_blocks_stats_block_stats_locales;
|
|
pages_blocks_stats_block: typeof pages_blocks_stats_block;
|
|
pages_blocks_stats_block_locales: typeof pages_blocks_stats_block_locales;
|
|
pages_blocks_jobs_block: typeof pages_blocks_jobs_block;
|
|
pages_blocks_jobs_block_locales: typeof pages_blocks_jobs_block_locales;
|
|
pages_blocks_downloads_block: typeof pages_blocks_downloads_block;
|
|
pages_blocks_downloads_block_locales: typeof pages_blocks_downloads_block_locales;
|
|
pages_blocks_map_block_location_type: typeof pages_blocks_map_block_location_type;
|
|
pages_blocks_map_block_markers: typeof pages_blocks_map_block_markers;
|
|
pages_blocks_map_block_markers_locales: typeof pages_blocks_map_block_markers_locales;
|
|
pages_blocks_map_block: typeof pages_blocks_map_block;
|
|
pages_blocks_map_block_locales: typeof pages_blocks_map_block_locales;
|
|
pages_blocks_events: typeof pages_blocks_events;
|
|
pages_blocks_events_locales: typeof pages_blocks_events_locales;
|
|
pages_blocks_pricing_plans_features: typeof pages_blocks_pricing_plans_features;
|
|
pages_blocks_pricing_plans_features_locales: typeof pages_blocks_pricing_plans_features_locales;
|
|
pages_blocks_pricing_plans: typeof pages_blocks_pricing_plans;
|
|
pages_blocks_pricing_plans_locales: typeof pages_blocks_pricing_plans_locales;
|
|
pages_blocks_pricing_comparison_features_values: typeof pages_blocks_pricing_comparison_features_values;
|
|
pages_blocks_pricing_comparison_features_values_locales: typeof pages_blocks_pricing_comparison_features_values_locales;
|
|
pages_blocks_pricing_comparison_features: typeof pages_blocks_pricing_comparison_features;
|
|
pages_blocks_pricing_comparison_features_locales: typeof pages_blocks_pricing_comparison_features_locales;
|
|
pages_blocks_pricing_faq_items: typeof pages_blocks_pricing_faq_items;
|
|
pages_blocks_pricing_faq_items_locales: typeof pages_blocks_pricing_faq_items_locales;
|
|
pages_blocks_pricing: typeof pages_blocks_pricing;
|
|
pages_blocks_pricing_locales: typeof pages_blocks_pricing_locales;
|
|
pages_blocks_tabs_tabs_features: typeof pages_blocks_tabs_tabs_features;
|
|
pages_blocks_tabs_tabs_features_locales: typeof pages_blocks_tabs_tabs_features_locales;
|
|
pages_blocks_tabs_tabs: typeof pages_blocks_tabs_tabs;
|
|
pages_blocks_tabs_tabs_locales: typeof pages_blocks_tabs_tabs_locales;
|
|
pages_blocks_tabs: typeof pages_blocks_tabs;
|
|
pages_blocks_tabs_locales: typeof pages_blocks_tabs_locales;
|
|
pages_blocks_accordion_items_list_items: typeof pages_blocks_accordion_items_list_items;
|
|
pages_blocks_accordion_items_list_items_locales: typeof pages_blocks_accordion_items_list_items_locales;
|
|
pages_blocks_accordion_items_table_data_headers: typeof pages_blocks_accordion_items_table_data_headers;
|
|
pages_blocks_accordion_items_table_data_headers_locales: typeof pages_blocks_accordion_items_table_data_headers_locales;
|
|
pages_blocks_accordion_items_table_data_rows_cells: typeof pages_blocks_accordion_items_table_data_rows_cells;
|
|
pages_blocks_accordion_items_table_data_rows_cells_locales: typeof pages_blocks_accordion_items_table_data_rows_cells_locales;
|
|
pages_blocks_accordion_items_table_data_rows: typeof pages_blocks_accordion_items_table_data_rows;
|
|
pages_blocks_accordion_items: typeof pages_blocks_accordion_items;
|
|
pages_blocks_accordion_items_locales: typeof pages_blocks_accordion_items_locales;
|
|
pages_blocks_accordion: typeof pages_blocks_accordion;
|
|
pages_blocks_accordion_locales: typeof pages_blocks_accordion_locales;
|
|
pages_blocks_comparison_tbl_columns: typeof pages_blocks_comparison_tbl_columns;
|
|
pages_blocks_comparison_tbl_columns_locales: typeof pages_blocks_comparison_tbl_columns_locales;
|
|
pages_blocks_comparison_tbl_rows_values: typeof pages_blocks_comparison_tbl_rows_values;
|
|
pages_blocks_comparison_tbl_rows_values_locales: typeof pages_blocks_comparison_tbl_rows_values_locales;
|
|
pages_blocks_comparison_tbl_rows: typeof pages_blocks_comparison_tbl_rows;
|
|
pages_blocks_comparison_tbl_rows_locales: typeof pages_blocks_comparison_tbl_rows_locales;
|
|
pages_blocks_comparison_crd_items_features: typeof pages_blocks_comparison_crd_items_features;
|
|
pages_blocks_comparison_crd_items_features_locales: typeof pages_blocks_comparison_crd_items_features_locales;
|
|
pages_blocks_comparison_crd_items: typeof pages_blocks_comparison_crd_items;
|
|
pages_blocks_comparison_crd_items_locales: typeof pages_blocks_comparison_crd_items_locales;
|
|
pages_blocks_comparison_before_after_items: typeof pages_blocks_comparison_before_after_items;
|
|
pages_blocks_comparison_before_after_items_locales: typeof pages_blocks_comparison_before_after_items_locales;
|
|
pages_blocks_comparison_pros_cons_items_pros: typeof pages_blocks_comparison_pros_cons_items_pros;
|
|
pages_blocks_comparison_pros_cons_items_pros_locales: typeof pages_blocks_comparison_pros_cons_items_pros_locales;
|
|
pages_blocks_comparison_pros_cons_items_cons: typeof pages_blocks_comparison_pros_cons_items_cons;
|
|
pages_blocks_comparison_pros_cons_items_cons_locales: typeof pages_blocks_comparison_pros_cons_items_cons_locales;
|
|
pages_blocks_comparison_pros_cons_items: typeof pages_blocks_comparison_pros_cons_items;
|
|
pages_blocks_comparison_pros_cons_items_locales: typeof pages_blocks_comparison_pros_cons_items_locales;
|
|
pages_blocks_comparison: typeof pages_blocks_comparison;
|
|
pages_blocks_comparison_locales: typeof pages_blocks_comparison_locales;
|
|
pages_blocks_before_after_comparisons: typeof pages_blocks_before_after_comparisons;
|
|
pages_blocks_before_after_comparisons_locales: typeof pages_blocks_before_after_comparisons_locales;
|
|
pages_blocks_before_after: typeof pages_blocks_before_after;
|
|
pages_blocks_before_after_locales: typeof pages_blocks_before_after_locales;
|
|
pages_blocks_favorites_block: typeof pages_blocks_favorites_block;
|
|
pages_blocks_favorites_block_locales: typeof pages_blocks_favorites_block_locales;
|
|
pages_blocks_series_block: typeof pages_blocks_series_block;
|
|
pages_blocks_series_block_locales: typeof pages_blocks_series_block_locales;
|
|
pages_blocks_series_detail_block: typeof pages_blocks_series_detail_block;
|
|
pages_blocks_series_detail_block_locales: typeof pages_blocks_series_detail_block_locales;
|
|
pages_blocks_video_embed_block: typeof pages_blocks_video_embed_block;
|
|
pages_blocks_video_embed_block_locales: typeof pages_blocks_video_embed_block_locales;
|
|
pages_blocks_featured_content_block_items: typeof pages_blocks_featured_content_block_items;
|
|
pages_blocks_featured_content_block_items_locales: typeof pages_blocks_featured_content_block_items_locales;
|
|
pages_blocks_featured_content_block: typeof pages_blocks_featured_content_block;
|
|
pages_blocks_featured_content_block_locales: typeof pages_blocks_featured_content_block_locales;
|
|
pages: typeof pages;
|
|
pages_locales: typeof pages_locales;
|
|
pages_rels: typeof pages_rels;
|
|
posts: typeof posts;
|
|
posts_locales: typeof posts_locales;
|
|
posts_rels: typeof posts_rels;
|
|
categories: typeof categories;
|
|
categories_locales: typeof categories_locales;
|
|
social_links: typeof social_links;
|
|
testimonials: typeof testimonials;
|
|
testimonials_locales: typeof testimonials_locales;
|
|
faqs: typeof faqs;
|
|
faqs_locales: typeof faqs_locales;
|
|
faqs_rels: typeof faqs_rels;
|
|
team_social_links: typeof team_social_links;
|
|
team_qualifications: typeof team_qualifications;
|
|
team_qualifications_locales: typeof team_qualifications_locales;
|
|
team_specializations: typeof team_specializations;
|
|
team_specializations_locales: typeof team_specializations_locales;
|
|
team_languages: typeof team_languages;
|
|
team_languages_locales: typeof team_languages_locales;
|
|
team: typeof team;
|
|
team_locales: typeof team_locales;
|
|
service_categories: typeof service_categories;
|
|
service_categories_locales: typeof service_categories_locales;
|
|
services_gallery: typeof services_gallery;
|
|
services_gallery_locales: typeof services_gallery_locales;
|
|
services_features: typeof services_features;
|
|
services_features_locales: typeof services_features_locales;
|
|
services_detail_sections: typeof services_detail_sections;
|
|
services_detail_sections_locales: typeof services_detail_sections_locales;
|
|
services: typeof services;
|
|
services_locales: typeof services_locales;
|
|
services_rels: typeof services_rels;
|
|
newsletter_subscribers_interests: typeof newsletter_subscribers_interests;
|
|
newsletter_subscribers: typeof newsletter_subscribers;
|
|
portfolio_categories: typeof portfolio_categories;
|
|
portfolio_categories_locales: typeof portfolio_categories_locales;
|
|
portfolios_images: typeof portfolios_images;
|
|
portfolios_images_locales: typeof portfolios_images_locales;
|
|
portfolios: typeof portfolios;
|
|
portfolios_locales: typeof portfolios_locales;
|
|
portfolios_texts: typeof portfolios_texts;
|
|
video_categories: typeof video_categories;
|
|
video_categories_locales: typeof video_categories_locales;
|
|
videos: typeof videos;
|
|
videos_locales: typeof videos_locales;
|
|
videos_rels: typeof videos_rels;
|
|
product_categories: typeof product_categories;
|
|
product_categories_locales: typeof product_categories_locales;
|
|
products_tags: typeof products_tags;
|
|
products_gallery: typeof products_gallery;
|
|
products_gallery_locales: typeof products_gallery_locales;
|
|
products_details_specifications: typeof products_details_specifications;
|
|
products_details_specifications_locales: typeof products_details_specifications_locales;
|
|
products_details_features: typeof products_details_features;
|
|
products_details_features_locales: typeof products_details_features_locales;
|
|
products_download_files: typeof products_download_files;
|
|
products_download_files_locales: typeof products_download_files_locales;
|
|
products: typeof products;
|
|
products_locales: typeof products_locales;
|
|
products_rels: typeof products_rels;
|
|
timelines_events_gallery: typeof timelines_events_gallery;
|
|
timelines_events_gallery_locales: typeof timelines_events_gallery_locales;
|
|
timelines_events_deliverables: typeof timelines_events_deliverables;
|
|
timelines_events_deliverables_locales: typeof timelines_events_deliverables_locales;
|
|
timelines_events_links: typeof timelines_events_links;
|
|
timelines_events_links_locales: typeof timelines_events_links_locales;
|
|
timelines_events: typeof timelines_events;
|
|
timelines_events_locales: typeof timelines_events_locales;
|
|
timelines: typeof timelines;
|
|
timelines_locales: typeof timelines_locales;
|
|
workflows_phases_steps_conditions: typeof workflows_phases_steps_conditions;
|
|
workflows_phases_steps_conditions_locales: typeof workflows_phases_steps_conditions_locales;
|
|
workflows_phases_steps_checklist: typeof workflows_phases_steps_checklist;
|
|
workflows_phases_steps_checklist_locales: typeof workflows_phases_steps_checklist_locales;
|
|
workflows_phases_steps_resources: typeof workflows_phases_steps_resources;
|
|
workflows_phases_steps_resources_locales: typeof workflows_phases_steps_resources_locales;
|
|
workflows_phases_steps_outputs: typeof workflows_phases_steps_outputs;
|
|
workflows_phases_steps_outputs_locales: typeof workflows_phases_steps_outputs_locales;
|
|
workflows_phases_steps: typeof workflows_phases_steps;
|
|
workflows_phases_steps_locales: typeof workflows_phases_steps_locales;
|
|
workflows_phases_deliverables: typeof workflows_phases_deliverables;
|
|
workflows_phases_deliverables_locales: typeof workflows_phases_deliverables_locales;
|
|
workflows_phases: typeof workflows_phases;
|
|
workflows_phases_locales: typeof workflows_phases_locales;
|
|
workflows_global_resources: typeof workflows_global_resources;
|
|
workflows_global_resources_locales: typeof workflows_global_resources_locales;
|
|
workflows: typeof workflows;
|
|
workflows_locales: typeof workflows_locales;
|
|
tags: typeof tags;
|
|
tags_locales: typeof tags_locales;
|
|
authors: typeof authors;
|
|
authors_locales: typeof authors_locales;
|
|
locations_hours_structured: typeof locations_hours_structured;
|
|
locations: typeof locations;
|
|
locations_locales: typeof locations_locales;
|
|
locations_rels: typeof locations_rels;
|
|
partners_case_study_results: typeof partners_case_study_results;
|
|
partners_case_study_results_locales: typeof partners_case_study_results_locales;
|
|
partners_tags: typeof partners_tags;
|
|
partners: typeof partners;
|
|
partners_locales: typeof partners_locales;
|
|
jobs_benefits_list: typeof jobs_benefits_list;
|
|
jobs_benefits_list_locales: typeof jobs_benefits_list_locales;
|
|
jobs: typeof jobs;
|
|
jobs_locales: typeof jobs_locales;
|
|
downloads_tags: typeof downloads_tags;
|
|
downloads_access_form_fields: typeof downloads_access_form_fields;
|
|
downloads: typeof downloads;
|
|
downloads_locales: typeof downloads_locales;
|
|
downloads_rels: typeof downloads_rels;
|
|
events_gallery: typeof events_gallery;
|
|
events_gallery_locales: typeof events_gallery_locales;
|
|
events_pricing_prices: typeof events_pricing_prices;
|
|
events_pricing_prices_locales: typeof events_pricing_prices_locales;
|
|
events_speakers: typeof events_speakers;
|
|
events_speakers_locales: typeof events_speakers_locales;
|
|
events_agenda: typeof events_agenda;
|
|
events_agenda_locales: typeof events_agenda_locales;
|
|
events: typeof events;
|
|
events_locales: typeof events_locales;
|
|
events_rels: typeof events_rels;
|
|
bookings_reference_images: typeof bookings_reference_images;
|
|
bookings_internal_notes: typeof bookings_internal_notes;
|
|
bookings_contact_history: typeof bookings_contact_history;
|
|
bookings: typeof bookings;
|
|
certifications_gallery: typeof certifications_gallery;
|
|
certifications_requirements: typeof certifications_requirements;
|
|
certifications_requirements_locales: typeof certifications_requirements_locales;
|
|
certifications_benefits: typeof certifications_benefits;
|
|
certifications_benefits_locales: typeof certifications_benefits_locales;
|
|
certifications_audits: typeof certifications_audits;
|
|
certifications: typeof certifications;
|
|
certifications_locales: typeof certifications_locales;
|
|
certifications_rels: typeof certifications_rels;
|
|
projects_genres: typeof projects_genres;
|
|
projects_platforms: typeof projects_platforms;
|
|
projects_screenshots: typeof projects_screenshots;
|
|
projects_screenshots_locales: typeof projects_screenshots_locales;
|
|
projects_videos: typeof projects_videos;
|
|
projects_videos_locales: typeof projects_videos_locales;
|
|
projects_tech_stack_languages: typeof projects_tech_stack_languages;
|
|
projects_downloads: typeof projects_downloads;
|
|
projects_features: typeof projects_features;
|
|
projects_features_locales: typeof projects_features_locales;
|
|
projects_team: typeof projects_team;
|
|
projects_team_locales: typeof projects_team_locales;
|
|
projects: typeof projects;
|
|
projects_locales: typeof projects_locales;
|
|
projects_rels: typeof projects_rels;
|
|
favorites: typeof favorites;
|
|
series: typeof series;
|
|
series_locales: typeof series_locales;
|
|
youtube_channels_publishing_schedule_default_days: typeof youtube_channels_publishing_schedule_default_days;
|
|
youtube_channels: typeof youtube_channels;
|
|
youtube_channels_locales: typeof youtube_channels_locales;
|
|
youtube_content_key_points: typeof youtube_content_key_points;
|
|
youtube_content_key_points_locales: typeof youtube_content_key_points_locales;
|
|
youtube_content_upload_checklist: typeof youtube_content_upload_checklist;
|
|
youtube_content_disclaimers: typeof youtube_content_disclaimers;
|
|
youtube_content_disclaimers_locales: typeof youtube_content_disclaimers_locales;
|
|
youtube_content_raw_footage: typeof youtube_content_raw_footage;
|
|
youtube_content_youtube_metadata_tags: typeof youtube_content_youtube_metadata_tags;
|
|
youtube_content: typeof youtube_content;
|
|
youtube_content_locales: typeof youtube_content_locales;
|
|
yt_tasks_attachments: typeof yt_tasks_attachments;
|
|
yt_tasks_comments: typeof yt_tasks_comments;
|
|
yt_tasks: typeof yt_tasks;
|
|
yt_tasks_locales: typeof yt_tasks_locales;
|
|
yt_notifications: typeof yt_notifications;
|
|
yt_notifications_locales: typeof yt_notifications_locales;
|
|
yt_batches: typeof yt_batches;
|
|
yt_monthly_goals_custom_goals: typeof yt_monthly_goals_custom_goals;
|
|
yt_monthly_goals: typeof yt_monthly_goals;
|
|
yt_monthly_goals_locales: typeof yt_monthly_goals_locales;
|
|
yt_script_tpl: typeof yt_script_tpl;
|
|
yt_script_tpl_locales: typeof yt_script_tpl_locales;
|
|
yt_checklist_templates_items: typeof yt_checklist_templates_items;
|
|
yt_checklist_templates_items_locales: typeof yt_checklist_templates_items_locales;
|
|
yt_checklist_templates: typeof yt_checklist_templates;
|
|
yt_checklist_templates_locales: typeof yt_checklist_templates_locales;
|
|
yt_series: typeof yt_series;
|
|
yt_series_locales: typeof yt_series_locales;
|
|
social_platforms_api_config_scopes: typeof social_platforms_api_config_scopes;
|
|
social_platforms_interaction_types: typeof social_platforms_interaction_types;
|
|
social_platforms: typeof social_platforms;
|
|
social_accounts: typeof social_accounts;
|
|
community_interactions_attachments: typeof community_interactions_attachments;
|
|
community_interactions_analysis_topics: typeof community_interactions_analysis_topics;
|
|
community_interactions: typeof community_interactions;
|
|
community_templates_variables: typeof community_templates_variables;
|
|
community_templates_auto_suggest_keywords: typeof community_templates_auto_suggest_keywords;
|
|
community_templates: typeof community_templates;
|
|
community_templates_locales: typeof community_templates_locales;
|
|
community_templates_rels: typeof community_templates_rels;
|
|
community_rules_trigger_keywords: typeof community_rules_trigger_keywords;
|
|
community_rules_trigger_sentiment_values: typeof community_rules_trigger_sentiment_values;
|
|
community_rules_actions: typeof community_rules_actions;
|
|
community_rules: typeof community_rules;
|
|
community_rules_rels: typeof community_rules_rels;
|
|
cookie_configurations_enabled_categories: typeof cookie_configurations_enabled_categories;
|
|
cookie_configurations: typeof cookie_configurations;
|
|
cookie_inventory: typeof cookie_inventory;
|
|
consent_logs: typeof consent_logs;
|
|
privacy_policy_settings: typeof privacy_policy_settings;
|
|
email_logs: typeof email_logs;
|
|
audit_logs: typeof audit_logs;
|
|
site_settings: typeof site_settings;
|
|
site_settings_locales: typeof site_settings_locales;
|
|
navigations_main_menu_submenu: typeof navigations_main_menu_submenu;
|
|
navigations_main_menu_submenu_locales: typeof navigations_main_menu_submenu_locales;
|
|
navigations_main_menu: typeof navigations_main_menu;
|
|
navigations_main_menu_locales: typeof navigations_main_menu_locales;
|
|
navigations_footer_menu: typeof navigations_footer_menu;
|
|
navigations_footer_menu_locales: typeof navigations_footer_menu_locales;
|
|
navigations: typeof navigations;
|
|
forms_blocks_checkbox: typeof forms_blocks_checkbox;
|
|
forms_blocks_checkbox_locales: typeof forms_blocks_checkbox_locales;
|
|
forms_blocks_email: typeof forms_blocks_email;
|
|
forms_blocks_email_locales: typeof forms_blocks_email_locales;
|
|
forms_blocks_message: typeof forms_blocks_message;
|
|
forms_blocks_message_locales: typeof forms_blocks_message_locales;
|
|
forms_blocks_number: typeof forms_blocks_number;
|
|
forms_blocks_number_locales: typeof forms_blocks_number_locales;
|
|
forms_blocks_select_options: typeof forms_blocks_select_options;
|
|
forms_blocks_select_options_locales: typeof forms_blocks_select_options_locales;
|
|
forms_blocks_select: typeof forms_blocks_select;
|
|
forms_blocks_select_locales: typeof forms_blocks_select_locales;
|
|
forms_blocks_text: typeof forms_blocks_text;
|
|
forms_blocks_text_locales: typeof forms_blocks_text_locales;
|
|
forms_blocks_textarea: typeof forms_blocks_textarea;
|
|
forms_blocks_textarea_locales: typeof forms_blocks_textarea_locales;
|
|
forms_emails: typeof forms_emails;
|
|
forms_emails_locales: typeof forms_emails_locales;
|
|
forms: typeof forms;
|
|
forms_locales: typeof forms_locales;
|
|
forms_rels: typeof forms_rels;
|
|
form_submissions_submission_data: typeof form_submissions_submission_data;
|
|
form_submissions: typeof form_submissions;
|
|
redirects: typeof redirects;
|
|
redirects_rels: typeof redirects_rels;
|
|
payload_kv: typeof payload_kv;
|
|
payload_locked_documents: typeof payload_locked_documents;
|
|
payload_locked_documents_rels: typeof payload_locked_documents_rels;
|
|
payload_preferences: typeof payload_preferences;
|
|
payload_preferences_rels: typeof payload_preferences_rels;
|
|
payload_migrations: typeof payload_migrations;
|
|
seo_settings_social_profiles: typeof seo_settings_social_profiles;
|
|
seo_settings_local_business_opening_hours: typeof seo_settings_local_business_opening_hours;
|
|
seo_settings: typeof seo_settings;
|
|
seo_settings_locales: typeof seo_settings_locales;
|
|
seo_settings_texts: typeof seo_settings_texts;
|
|
relations_users_tenants: typeof relations_users_tenants;
|
|
relations_users_sessions: typeof relations_users_sessions;
|
|
relations_users_rels: typeof relations_users_rels;
|
|
relations_users: typeof relations_users;
|
|
relations_media_texts: typeof relations_media_texts;
|
|
relations_media: typeof relations_media;
|
|
relations_tenants_domains: typeof relations_tenants_domains;
|
|
relations_tenants: typeof relations_tenants;
|
|
relations_pages_blocks_hero_block_locales: typeof relations_pages_blocks_hero_block_locales;
|
|
relations_pages_blocks_hero_block: typeof relations_pages_blocks_hero_block;
|
|
relations_pages_blocks_hero_slider_block_slides_locales: typeof relations_pages_blocks_hero_slider_block_slides_locales;
|
|
relations_pages_blocks_hero_slider_block_slides: typeof relations_pages_blocks_hero_slider_block_slides;
|
|
relations_pages_blocks_hero_slider_block_locales: typeof relations_pages_blocks_hero_slider_block_locales;
|
|
relations_pages_blocks_hero_slider_block: typeof relations_pages_blocks_hero_slider_block;
|
|
relations_pages_blocks_image_slider_block_images_locales: typeof relations_pages_blocks_image_slider_block_images_locales;
|
|
relations_pages_blocks_image_slider_block_images: typeof relations_pages_blocks_image_slider_block_images;
|
|
relations_pages_blocks_image_slider_block_locales: typeof relations_pages_blocks_image_slider_block_locales;
|
|
relations_pages_blocks_image_slider_block: typeof relations_pages_blocks_image_slider_block;
|
|
relations_pages_blocks_text_block_locales: typeof relations_pages_blocks_text_block_locales;
|
|
relations_pages_blocks_text_block: typeof relations_pages_blocks_text_block;
|
|
relations_pages_blocks_image_text_block_locales: typeof relations_pages_blocks_image_text_block_locales;
|
|
relations_pages_blocks_image_text_block: typeof relations_pages_blocks_image_text_block;
|
|
relations_pages_blocks_card_grid_block_cards_locales: typeof relations_pages_blocks_card_grid_block_cards_locales;
|
|
relations_pages_blocks_card_grid_block_cards: typeof relations_pages_blocks_card_grid_block_cards;
|
|
relations_pages_blocks_card_grid_block_locales: typeof relations_pages_blocks_card_grid_block_locales;
|
|
relations_pages_blocks_card_grid_block: typeof relations_pages_blocks_card_grid_block;
|
|
relations_pages_blocks_quote_block_locales: typeof relations_pages_blocks_quote_block_locales;
|
|
relations_pages_blocks_quote_block: typeof relations_pages_blocks_quote_block;
|
|
relations_pages_blocks_cta_block_buttons_locales: typeof relations_pages_blocks_cta_block_buttons_locales;
|
|
relations_pages_blocks_cta_block_buttons: typeof relations_pages_blocks_cta_block_buttons;
|
|
relations_pages_blocks_cta_block_locales: typeof relations_pages_blocks_cta_block_locales;
|
|
relations_pages_blocks_cta_block: typeof relations_pages_blocks_cta_block;
|
|
relations_pages_blocks_contact_form_block_locales: typeof relations_pages_blocks_contact_form_block_locales;
|
|
relations_pages_blocks_contact_form_block: typeof relations_pages_blocks_contact_form_block;
|
|
relations_pages_blocks_timeline_block_items_locales: typeof relations_pages_blocks_timeline_block_items_locales;
|
|
relations_pages_blocks_timeline_block_items: typeof relations_pages_blocks_timeline_block_items;
|
|
relations_pages_blocks_timeline_block_locales: typeof relations_pages_blocks_timeline_block_locales;
|
|
relations_pages_blocks_timeline_block: typeof relations_pages_blocks_timeline_block;
|
|
relations_pages_blocks_divider_block: typeof relations_pages_blocks_divider_block;
|
|
relations_pages_blocks_video_block_locales: typeof relations_pages_blocks_video_block_locales;
|
|
relations_pages_blocks_video_block: typeof relations_pages_blocks_video_block;
|
|
relations_pages_blocks_posts_list_block_locales: typeof relations_pages_blocks_posts_list_block_locales;
|
|
relations_pages_blocks_posts_list_block: typeof relations_pages_blocks_posts_list_block;
|
|
relations_pages_blocks_testimonials_block_locales: typeof relations_pages_blocks_testimonials_block_locales;
|
|
relations_pages_blocks_testimonials_block: typeof relations_pages_blocks_testimonials_block;
|
|
relations_pages_blocks_newsletter_block_available_interests: typeof relations_pages_blocks_newsletter_block_available_interests;
|
|
relations_pages_blocks_newsletter_block_locales: typeof relations_pages_blocks_newsletter_block_locales;
|
|
relations_pages_blocks_newsletter_block: typeof relations_pages_blocks_newsletter_block;
|
|
relations_pages_blocks_process_steps_block_steps_locales: typeof relations_pages_blocks_process_steps_block_steps_locales;
|
|
relations_pages_blocks_process_steps_block_steps: typeof relations_pages_blocks_process_steps_block_steps;
|
|
relations_pages_blocks_process_steps_block_locales: typeof relations_pages_blocks_process_steps_block_locales;
|
|
relations_pages_blocks_process_steps_block: typeof relations_pages_blocks_process_steps_block;
|
|
relations_pages_blocks_faq_block_inline_f_a_qs_locales: typeof relations_pages_blocks_faq_block_inline_f_a_qs_locales;
|
|
relations_pages_blocks_faq_block_inline_f_a_qs: typeof relations_pages_blocks_faq_block_inline_f_a_qs;
|
|
relations_pages_blocks_faq_block_locales: typeof relations_pages_blocks_faq_block_locales;
|
|
relations_pages_blocks_faq_block: typeof relations_pages_blocks_faq_block;
|
|
relations_pages_blocks_team_block_locales: typeof relations_pages_blocks_team_block_locales;
|
|
relations_pages_blocks_team_block: typeof relations_pages_blocks_team_block;
|
|
relations_pages_blocks_services_block_locales: typeof relations_pages_blocks_services_block_locales;
|
|
relations_pages_blocks_services_block: typeof relations_pages_blocks_services_block;
|
|
relations_pages_blocks_author_bio_block_locales: typeof relations_pages_blocks_author_bio_block_locales;
|
|
relations_pages_blocks_author_bio_block: typeof relations_pages_blocks_author_bio_block;
|
|
relations_pages_blocks_related_posts_block_locales: typeof relations_pages_blocks_related_posts_block_locales;
|
|
relations_pages_blocks_related_posts_block: typeof relations_pages_blocks_related_posts_block;
|
|
relations_pages_blocks_share_buttons_block_locales: typeof relations_pages_blocks_share_buttons_block_locales;
|
|
relations_pages_blocks_share_buttons_block: typeof relations_pages_blocks_share_buttons_block;
|
|
relations_pages_blocks_toc_block_locales: typeof relations_pages_blocks_toc_block_locales;
|
|
relations_pages_blocks_toc_block: typeof relations_pages_blocks_toc_block;
|
|
relations_pages_blocks_team_filter_block_locales: typeof relations_pages_blocks_team_filter_block_locales;
|
|
relations_pages_blocks_team_filter_block: typeof relations_pages_blocks_team_filter_block;
|
|
relations_pages_blocks_org_chart_block_locales: typeof relations_pages_blocks_org_chart_block_locales;
|
|
relations_pages_blocks_org_chart_block: typeof relations_pages_blocks_org_chart_block;
|
|
relations_pages_blocks_locations_block_locales: typeof relations_pages_blocks_locations_block_locales;
|
|
relations_pages_blocks_locations_block: typeof relations_pages_blocks_locations_block;
|
|
relations_pages_blocks_logo_grid_block_partner_type: typeof relations_pages_blocks_logo_grid_block_partner_type;
|
|
relations_pages_blocks_logo_grid_block_logos: typeof relations_pages_blocks_logo_grid_block_logos;
|
|
relations_pages_blocks_logo_grid_block_locales: typeof relations_pages_blocks_logo_grid_block_locales;
|
|
relations_pages_blocks_logo_grid_block: typeof relations_pages_blocks_logo_grid_block;
|
|
relations_pages_blocks_stats_block_stats_locales: typeof relations_pages_blocks_stats_block_stats_locales;
|
|
relations_pages_blocks_stats_block_stats: typeof relations_pages_blocks_stats_block_stats;
|
|
relations_pages_blocks_stats_block_locales: typeof relations_pages_blocks_stats_block_locales;
|
|
relations_pages_blocks_stats_block: typeof relations_pages_blocks_stats_block;
|
|
relations_pages_blocks_jobs_block_locales: typeof relations_pages_blocks_jobs_block_locales;
|
|
relations_pages_blocks_jobs_block: typeof relations_pages_blocks_jobs_block;
|
|
relations_pages_blocks_downloads_block_locales: typeof relations_pages_blocks_downloads_block_locales;
|
|
relations_pages_blocks_downloads_block: typeof relations_pages_blocks_downloads_block;
|
|
relations_pages_blocks_map_block_location_type: typeof relations_pages_blocks_map_block_location_type;
|
|
relations_pages_blocks_map_block_markers_locales: typeof relations_pages_blocks_map_block_markers_locales;
|
|
relations_pages_blocks_map_block_markers: typeof relations_pages_blocks_map_block_markers;
|
|
relations_pages_blocks_map_block_locales: typeof relations_pages_blocks_map_block_locales;
|
|
relations_pages_blocks_map_block: typeof relations_pages_blocks_map_block;
|
|
relations_pages_blocks_events_locales: typeof relations_pages_blocks_events_locales;
|
|
relations_pages_blocks_events: typeof relations_pages_blocks_events;
|
|
relations_pages_blocks_pricing_plans_features_locales: typeof relations_pages_blocks_pricing_plans_features_locales;
|
|
relations_pages_blocks_pricing_plans_features: typeof relations_pages_blocks_pricing_plans_features;
|
|
relations_pages_blocks_pricing_plans_locales: typeof relations_pages_blocks_pricing_plans_locales;
|
|
relations_pages_blocks_pricing_plans: typeof relations_pages_blocks_pricing_plans;
|
|
relations_pages_blocks_pricing_comparison_features_values_locales: typeof relations_pages_blocks_pricing_comparison_features_values_locales;
|
|
relations_pages_blocks_pricing_comparison_features_values: typeof relations_pages_blocks_pricing_comparison_features_values;
|
|
relations_pages_blocks_pricing_comparison_features_locales: typeof relations_pages_blocks_pricing_comparison_features_locales;
|
|
relations_pages_blocks_pricing_comparison_features: typeof relations_pages_blocks_pricing_comparison_features;
|
|
relations_pages_blocks_pricing_faq_items_locales: typeof relations_pages_blocks_pricing_faq_items_locales;
|
|
relations_pages_blocks_pricing_faq_items: typeof relations_pages_blocks_pricing_faq_items;
|
|
relations_pages_blocks_pricing_locales: typeof relations_pages_blocks_pricing_locales;
|
|
relations_pages_blocks_pricing: typeof relations_pages_blocks_pricing;
|
|
relations_pages_blocks_tabs_tabs_features_locales: typeof relations_pages_blocks_tabs_tabs_features_locales;
|
|
relations_pages_blocks_tabs_tabs_features: typeof relations_pages_blocks_tabs_tabs_features;
|
|
relations_pages_blocks_tabs_tabs_locales: typeof relations_pages_blocks_tabs_tabs_locales;
|
|
relations_pages_blocks_tabs_tabs: typeof relations_pages_blocks_tabs_tabs;
|
|
relations_pages_blocks_tabs_locales: typeof relations_pages_blocks_tabs_locales;
|
|
relations_pages_blocks_tabs: typeof relations_pages_blocks_tabs;
|
|
relations_pages_blocks_accordion_items_list_items_locales: typeof relations_pages_blocks_accordion_items_list_items_locales;
|
|
relations_pages_blocks_accordion_items_list_items: typeof relations_pages_blocks_accordion_items_list_items;
|
|
relations_pages_blocks_accordion_items_table_data_headers_locales: typeof relations_pages_blocks_accordion_items_table_data_headers_locales;
|
|
relations_pages_blocks_accordion_items_table_data_headers: typeof relations_pages_blocks_accordion_items_table_data_headers;
|
|
relations_pages_blocks_accordion_items_table_data_rows_cells_locales: typeof relations_pages_blocks_accordion_items_table_data_rows_cells_locales;
|
|
relations_pages_blocks_accordion_items_table_data_rows_cells: typeof relations_pages_blocks_accordion_items_table_data_rows_cells;
|
|
relations_pages_blocks_accordion_items_table_data_rows: typeof relations_pages_blocks_accordion_items_table_data_rows;
|
|
relations_pages_blocks_accordion_items_locales: typeof relations_pages_blocks_accordion_items_locales;
|
|
relations_pages_blocks_accordion_items: typeof relations_pages_blocks_accordion_items;
|
|
relations_pages_blocks_accordion_locales: typeof relations_pages_blocks_accordion_locales;
|
|
relations_pages_blocks_accordion: typeof relations_pages_blocks_accordion;
|
|
relations_pages_blocks_comparison_tbl_columns_locales: typeof relations_pages_blocks_comparison_tbl_columns_locales;
|
|
relations_pages_blocks_comparison_tbl_columns: typeof relations_pages_blocks_comparison_tbl_columns;
|
|
relations_pages_blocks_comparison_tbl_rows_values_locales: typeof relations_pages_blocks_comparison_tbl_rows_values_locales;
|
|
relations_pages_blocks_comparison_tbl_rows_values: typeof relations_pages_blocks_comparison_tbl_rows_values;
|
|
relations_pages_blocks_comparison_tbl_rows_locales: typeof relations_pages_blocks_comparison_tbl_rows_locales;
|
|
relations_pages_blocks_comparison_tbl_rows: typeof relations_pages_blocks_comparison_tbl_rows;
|
|
relations_pages_blocks_comparison_crd_items_features_locales: typeof relations_pages_blocks_comparison_crd_items_features_locales;
|
|
relations_pages_blocks_comparison_crd_items_features: typeof relations_pages_blocks_comparison_crd_items_features;
|
|
relations_pages_blocks_comparison_crd_items_locales: typeof relations_pages_blocks_comparison_crd_items_locales;
|
|
relations_pages_blocks_comparison_crd_items: typeof relations_pages_blocks_comparison_crd_items;
|
|
relations_pages_blocks_comparison_before_after_items_locales: typeof relations_pages_blocks_comparison_before_after_items_locales;
|
|
relations_pages_blocks_comparison_before_after_items: typeof relations_pages_blocks_comparison_before_after_items;
|
|
relations_pages_blocks_comparison_pros_cons_items_pros_locales: typeof relations_pages_blocks_comparison_pros_cons_items_pros_locales;
|
|
relations_pages_blocks_comparison_pros_cons_items_pros: typeof relations_pages_blocks_comparison_pros_cons_items_pros;
|
|
relations_pages_blocks_comparison_pros_cons_items_cons_locales: typeof relations_pages_blocks_comparison_pros_cons_items_cons_locales;
|
|
relations_pages_blocks_comparison_pros_cons_items_cons: typeof relations_pages_blocks_comparison_pros_cons_items_cons;
|
|
relations_pages_blocks_comparison_pros_cons_items_locales: typeof relations_pages_blocks_comparison_pros_cons_items_locales;
|
|
relations_pages_blocks_comparison_pros_cons_items: typeof relations_pages_blocks_comparison_pros_cons_items;
|
|
relations_pages_blocks_comparison_locales: typeof relations_pages_blocks_comparison_locales;
|
|
relations_pages_blocks_comparison: typeof relations_pages_blocks_comparison;
|
|
relations_pages_blocks_before_after_comparisons_locales: typeof relations_pages_blocks_before_after_comparisons_locales;
|
|
relations_pages_blocks_before_after_comparisons: typeof relations_pages_blocks_before_after_comparisons;
|
|
relations_pages_blocks_before_after_locales: typeof relations_pages_blocks_before_after_locales;
|
|
relations_pages_blocks_before_after: typeof relations_pages_blocks_before_after;
|
|
relations_pages_blocks_favorites_block_locales: typeof relations_pages_blocks_favorites_block_locales;
|
|
relations_pages_blocks_favorites_block: typeof relations_pages_blocks_favorites_block;
|
|
relations_pages_blocks_series_block_locales: typeof relations_pages_blocks_series_block_locales;
|
|
relations_pages_blocks_series_block: typeof relations_pages_blocks_series_block;
|
|
relations_pages_blocks_series_detail_block_locales: typeof relations_pages_blocks_series_detail_block_locales;
|
|
relations_pages_blocks_series_detail_block: typeof relations_pages_blocks_series_detail_block;
|
|
relations_pages_blocks_video_embed_block_locales: typeof relations_pages_blocks_video_embed_block_locales;
|
|
relations_pages_blocks_video_embed_block: typeof relations_pages_blocks_video_embed_block;
|
|
relations_pages_blocks_featured_content_block_items_locales: typeof relations_pages_blocks_featured_content_block_items_locales;
|
|
relations_pages_blocks_featured_content_block_items: typeof relations_pages_blocks_featured_content_block_items;
|
|
relations_pages_blocks_featured_content_block_locales: typeof relations_pages_blocks_featured_content_block_locales;
|
|
relations_pages_blocks_featured_content_block: typeof relations_pages_blocks_featured_content_block;
|
|
relations_pages_locales: typeof relations_pages_locales;
|
|
relations_pages_rels: typeof relations_pages_rels;
|
|
relations_pages: typeof relations_pages;
|
|
relations_posts_locales: typeof relations_posts_locales;
|
|
relations_posts_rels: typeof relations_posts_rels;
|
|
relations_posts: typeof relations_posts;
|
|
relations_categories_locales: typeof relations_categories_locales;
|
|
relations_categories: typeof relations_categories;
|
|
relations_social_links: typeof relations_social_links;
|
|
relations_testimonials_locales: typeof relations_testimonials_locales;
|
|
relations_testimonials: typeof relations_testimonials;
|
|
relations_faqs_locales: typeof relations_faqs_locales;
|
|
relations_faqs_rels: typeof relations_faqs_rels;
|
|
relations_faqs: typeof relations_faqs;
|
|
relations_team_social_links: typeof relations_team_social_links;
|
|
relations_team_qualifications_locales: typeof relations_team_qualifications_locales;
|
|
relations_team_qualifications: typeof relations_team_qualifications;
|
|
relations_team_specializations_locales: typeof relations_team_specializations_locales;
|
|
relations_team_specializations: typeof relations_team_specializations;
|
|
relations_team_languages_locales: typeof relations_team_languages_locales;
|
|
relations_team_languages: typeof relations_team_languages;
|
|
relations_team_locales: typeof relations_team_locales;
|
|
relations_team: typeof relations_team;
|
|
relations_service_categories_locales: typeof relations_service_categories_locales;
|
|
relations_service_categories: typeof relations_service_categories;
|
|
relations_services_gallery_locales: typeof relations_services_gallery_locales;
|
|
relations_services_gallery: typeof relations_services_gallery;
|
|
relations_services_features_locales: typeof relations_services_features_locales;
|
|
relations_services_features: typeof relations_services_features;
|
|
relations_services_detail_sections_locales: typeof relations_services_detail_sections_locales;
|
|
relations_services_detail_sections: typeof relations_services_detail_sections;
|
|
relations_services_locales: typeof relations_services_locales;
|
|
relations_services_rels: typeof relations_services_rels;
|
|
relations_services: typeof relations_services;
|
|
relations_newsletter_subscribers_interests: typeof relations_newsletter_subscribers_interests;
|
|
relations_newsletter_subscribers: typeof relations_newsletter_subscribers;
|
|
relations_portfolio_categories_locales: typeof relations_portfolio_categories_locales;
|
|
relations_portfolio_categories: typeof relations_portfolio_categories;
|
|
relations_portfolios_images_locales: typeof relations_portfolios_images_locales;
|
|
relations_portfolios_images: typeof relations_portfolios_images;
|
|
relations_portfolios_locales: typeof relations_portfolios_locales;
|
|
relations_portfolios_texts: typeof relations_portfolios_texts;
|
|
relations_portfolios: typeof relations_portfolios;
|
|
relations_video_categories_locales: typeof relations_video_categories_locales;
|
|
relations_video_categories: typeof relations_video_categories;
|
|
relations_videos_locales: typeof relations_videos_locales;
|
|
relations_videos_rels: typeof relations_videos_rels;
|
|
relations_videos: typeof relations_videos;
|
|
relations_product_categories_locales: typeof relations_product_categories_locales;
|
|
relations_product_categories: typeof relations_product_categories;
|
|
relations_products_tags: typeof relations_products_tags;
|
|
relations_products_gallery_locales: typeof relations_products_gallery_locales;
|
|
relations_products_gallery: typeof relations_products_gallery;
|
|
relations_products_details_specifications_locales: typeof relations_products_details_specifications_locales;
|
|
relations_products_details_specifications: typeof relations_products_details_specifications;
|
|
relations_products_details_features_locales: typeof relations_products_details_features_locales;
|
|
relations_products_details_features: typeof relations_products_details_features;
|
|
relations_products_download_files_locales: typeof relations_products_download_files_locales;
|
|
relations_products_download_files: typeof relations_products_download_files;
|
|
relations_products_locales: typeof relations_products_locales;
|
|
relations_products_rels: typeof relations_products_rels;
|
|
relations_products: typeof relations_products;
|
|
relations_timelines_events_gallery_locales: typeof relations_timelines_events_gallery_locales;
|
|
relations_timelines_events_gallery: typeof relations_timelines_events_gallery;
|
|
relations_timelines_events_deliverables_locales: typeof relations_timelines_events_deliverables_locales;
|
|
relations_timelines_events_deliverables: typeof relations_timelines_events_deliverables;
|
|
relations_timelines_events_links_locales: typeof relations_timelines_events_links_locales;
|
|
relations_timelines_events_links: typeof relations_timelines_events_links;
|
|
relations_timelines_events_locales: typeof relations_timelines_events_locales;
|
|
relations_timelines_events: typeof relations_timelines_events;
|
|
relations_timelines_locales: typeof relations_timelines_locales;
|
|
relations_timelines: typeof relations_timelines;
|
|
relations_workflows_phases_steps_conditions_locales: typeof relations_workflows_phases_steps_conditions_locales;
|
|
relations_workflows_phases_steps_conditions: typeof relations_workflows_phases_steps_conditions;
|
|
relations_workflows_phases_steps_checklist_locales: typeof relations_workflows_phases_steps_checklist_locales;
|
|
relations_workflows_phases_steps_checklist: typeof relations_workflows_phases_steps_checklist;
|
|
relations_workflows_phases_steps_resources_locales: typeof relations_workflows_phases_steps_resources_locales;
|
|
relations_workflows_phases_steps_resources: typeof relations_workflows_phases_steps_resources;
|
|
relations_workflows_phases_steps_outputs_locales: typeof relations_workflows_phases_steps_outputs_locales;
|
|
relations_workflows_phases_steps_outputs: typeof relations_workflows_phases_steps_outputs;
|
|
relations_workflows_phases_steps_locales: typeof relations_workflows_phases_steps_locales;
|
|
relations_workflows_phases_steps: typeof relations_workflows_phases_steps;
|
|
relations_workflows_phases_deliverables_locales: typeof relations_workflows_phases_deliverables_locales;
|
|
relations_workflows_phases_deliverables: typeof relations_workflows_phases_deliverables;
|
|
relations_workflows_phases_locales: typeof relations_workflows_phases_locales;
|
|
relations_workflows_phases: typeof relations_workflows_phases;
|
|
relations_workflows_global_resources_locales: typeof relations_workflows_global_resources_locales;
|
|
relations_workflows_global_resources: typeof relations_workflows_global_resources;
|
|
relations_workflows_locales: typeof relations_workflows_locales;
|
|
relations_workflows: typeof relations_workflows;
|
|
relations_tags_locales: typeof relations_tags_locales;
|
|
relations_tags: typeof relations_tags;
|
|
relations_authors_locales: typeof relations_authors_locales;
|
|
relations_authors: typeof relations_authors;
|
|
relations_locations_hours_structured: typeof relations_locations_hours_structured;
|
|
relations_locations_locales: typeof relations_locations_locales;
|
|
relations_locations_rels: typeof relations_locations_rels;
|
|
relations_locations: typeof relations_locations;
|
|
relations_partners_case_study_results_locales: typeof relations_partners_case_study_results_locales;
|
|
relations_partners_case_study_results: typeof relations_partners_case_study_results;
|
|
relations_partners_tags: typeof relations_partners_tags;
|
|
relations_partners_locales: typeof relations_partners_locales;
|
|
relations_partners: typeof relations_partners;
|
|
relations_jobs_benefits_list_locales: typeof relations_jobs_benefits_list_locales;
|
|
relations_jobs_benefits_list: typeof relations_jobs_benefits_list;
|
|
relations_jobs_locales: typeof relations_jobs_locales;
|
|
relations_jobs: typeof relations_jobs;
|
|
relations_downloads_tags: typeof relations_downloads_tags;
|
|
relations_downloads_access_form_fields: typeof relations_downloads_access_form_fields;
|
|
relations_downloads_locales: typeof relations_downloads_locales;
|
|
relations_downloads_rels: typeof relations_downloads_rels;
|
|
relations_downloads: typeof relations_downloads;
|
|
relations_events_gallery_locales: typeof relations_events_gallery_locales;
|
|
relations_events_gallery: typeof relations_events_gallery;
|
|
relations_events_pricing_prices_locales: typeof relations_events_pricing_prices_locales;
|
|
relations_events_pricing_prices: typeof relations_events_pricing_prices;
|
|
relations_events_speakers_locales: typeof relations_events_speakers_locales;
|
|
relations_events_speakers: typeof relations_events_speakers;
|
|
relations_events_agenda_locales: typeof relations_events_agenda_locales;
|
|
relations_events_agenda: typeof relations_events_agenda;
|
|
relations_events_locales: typeof relations_events_locales;
|
|
relations_events_rels: typeof relations_events_rels;
|
|
relations_events: typeof relations_events;
|
|
relations_bookings_reference_images: typeof relations_bookings_reference_images;
|
|
relations_bookings_internal_notes: typeof relations_bookings_internal_notes;
|
|
relations_bookings_contact_history: typeof relations_bookings_contact_history;
|
|
relations_bookings: typeof relations_bookings;
|
|
relations_certifications_gallery: typeof relations_certifications_gallery;
|
|
relations_certifications_requirements_locales: typeof relations_certifications_requirements_locales;
|
|
relations_certifications_requirements: typeof relations_certifications_requirements;
|
|
relations_certifications_benefits_locales: typeof relations_certifications_benefits_locales;
|
|
relations_certifications_benefits: typeof relations_certifications_benefits;
|
|
relations_certifications_audits: typeof relations_certifications_audits;
|
|
relations_certifications_locales: typeof relations_certifications_locales;
|
|
relations_certifications_rels: typeof relations_certifications_rels;
|
|
relations_certifications: typeof relations_certifications;
|
|
relations_projects_genres: typeof relations_projects_genres;
|
|
relations_projects_platforms: typeof relations_projects_platforms;
|
|
relations_projects_screenshots_locales: typeof relations_projects_screenshots_locales;
|
|
relations_projects_screenshots: typeof relations_projects_screenshots;
|
|
relations_projects_videos_locales: typeof relations_projects_videos_locales;
|
|
relations_projects_videos: typeof relations_projects_videos;
|
|
relations_projects_tech_stack_languages: typeof relations_projects_tech_stack_languages;
|
|
relations_projects_downloads: typeof relations_projects_downloads;
|
|
relations_projects_features_locales: typeof relations_projects_features_locales;
|
|
relations_projects_features: typeof relations_projects_features;
|
|
relations_projects_team_locales: typeof relations_projects_team_locales;
|
|
relations_projects_team: typeof relations_projects_team;
|
|
relations_projects_locales: typeof relations_projects_locales;
|
|
relations_projects_rels: typeof relations_projects_rels;
|
|
relations_projects: typeof relations_projects;
|
|
relations_favorites: typeof relations_favorites;
|
|
relations_series_locales: typeof relations_series_locales;
|
|
relations_series: typeof relations_series;
|
|
relations_youtube_channels_publishing_schedule_default_days: typeof relations_youtube_channels_publishing_schedule_default_days;
|
|
relations_youtube_channels_locales: typeof relations_youtube_channels_locales;
|
|
relations_youtube_channels: typeof relations_youtube_channels;
|
|
relations_youtube_content_key_points_locales: typeof relations_youtube_content_key_points_locales;
|
|
relations_youtube_content_key_points: typeof relations_youtube_content_key_points;
|
|
relations_youtube_content_upload_checklist: typeof relations_youtube_content_upload_checklist;
|
|
relations_youtube_content_disclaimers_locales: typeof relations_youtube_content_disclaimers_locales;
|
|
relations_youtube_content_disclaimers: typeof relations_youtube_content_disclaimers;
|
|
relations_youtube_content_raw_footage: typeof relations_youtube_content_raw_footage;
|
|
relations_youtube_content_youtube_metadata_tags: typeof relations_youtube_content_youtube_metadata_tags;
|
|
relations_youtube_content_locales: typeof relations_youtube_content_locales;
|
|
relations_youtube_content: typeof relations_youtube_content;
|
|
relations_yt_tasks_attachments: typeof relations_yt_tasks_attachments;
|
|
relations_yt_tasks_comments: typeof relations_yt_tasks_comments;
|
|
relations_yt_tasks_locales: typeof relations_yt_tasks_locales;
|
|
relations_yt_tasks: typeof relations_yt_tasks;
|
|
relations_yt_notifications_locales: typeof relations_yt_notifications_locales;
|
|
relations_yt_notifications: typeof relations_yt_notifications;
|
|
relations_yt_batches: typeof relations_yt_batches;
|
|
relations_yt_monthly_goals_custom_goals: typeof relations_yt_monthly_goals_custom_goals;
|
|
relations_yt_monthly_goals_locales: typeof relations_yt_monthly_goals_locales;
|
|
relations_yt_monthly_goals: typeof relations_yt_monthly_goals;
|
|
relations_yt_script_tpl_locales: typeof relations_yt_script_tpl_locales;
|
|
relations_yt_script_tpl: typeof relations_yt_script_tpl;
|
|
relations_yt_checklist_templates_items_locales: typeof relations_yt_checklist_templates_items_locales;
|
|
relations_yt_checklist_templates_items: typeof relations_yt_checklist_templates_items;
|
|
relations_yt_checklist_templates_locales: typeof relations_yt_checklist_templates_locales;
|
|
relations_yt_checklist_templates: typeof relations_yt_checklist_templates;
|
|
relations_yt_series_locales: typeof relations_yt_series_locales;
|
|
relations_yt_series: typeof relations_yt_series;
|
|
relations_social_platforms_api_config_scopes: typeof relations_social_platforms_api_config_scopes;
|
|
relations_social_platforms_interaction_types: typeof relations_social_platforms_interaction_types;
|
|
relations_social_platforms: typeof relations_social_platforms;
|
|
relations_social_accounts: typeof relations_social_accounts;
|
|
relations_community_interactions_attachments: typeof relations_community_interactions_attachments;
|
|
relations_community_interactions_analysis_topics: typeof relations_community_interactions_analysis_topics;
|
|
relations_community_interactions: typeof relations_community_interactions;
|
|
relations_community_templates_variables: typeof relations_community_templates_variables;
|
|
relations_community_templates_auto_suggest_keywords: typeof relations_community_templates_auto_suggest_keywords;
|
|
relations_community_templates_locales: typeof relations_community_templates_locales;
|
|
relations_community_templates_rels: typeof relations_community_templates_rels;
|
|
relations_community_templates: typeof relations_community_templates;
|
|
relations_community_rules_trigger_keywords: typeof relations_community_rules_trigger_keywords;
|
|
relations_community_rules_trigger_sentiment_values: typeof relations_community_rules_trigger_sentiment_values;
|
|
relations_community_rules_actions: typeof relations_community_rules_actions;
|
|
relations_community_rules_rels: typeof relations_community_rules_rels;
|
|
relations_community_rules: typeof relations_community_rules;
|
|
relations_cookie_configurations_enabled_categories: typeof relations_cookie_configurations_enabled_categories;
|
|
relations_cookie_configurations: typeof relations_cookie_configurations;
|
|
relations_cookie_inventory: typeof relations_cookie_inventory;
|
|
relations_consent_logs: typeof relations_consent_logs;
|
|
relations_privacy_policy_settings: typeof relations_privacy_policy_settings;
|
|
relations_email_logs: typeof relations_email_logs;
|
|
relations_audit_logs: typeof relations_audit_logs;
|
|
relations_site_settings_locales: typeof relations_site_settings_locales;
|
|
relations_site_settings: typeof relations_site_settings;
|
|
relations_navigations_main_menu_submenu_locales: typeof relations_navigations_main_menu_submenu_locales;
|
|
relations_navigations_main_menu_submenu: typeof relations_navigations_main_menu_submenu;
|
|
relations_navigations_main_menu_locales: typeof relations_navigations_main_menu_locales;
|
|
relations_navigations_main_menu: typeof relations_navigations_main_menu;
|
|
relations_navigations_footer_menu_locales: typeof relations_navigations_footer_menu_locales;
|
|
relations_navigations_footer_menu: typeof relations_navigations_footer_menu;
|
|
relations_navigations: typeof relations_navigations;
|
|
relations_forms_blocks_checkbox_locales: typeof relations_forms_blocks_checkbox_locales;
|
|
relations_forms_blocks_checkbox: typeof relations_forms_blocks_checkbox;
|
|
relations_forms_blocks_email_locales: typeof relations_forms_blocks_email_locales;
|
|
relations_forms_blocks_email: typeof relations_forms_blocks_email;
|
|
relations_forms_blocks_message_locales: typeof relations_forms_blocks_message_locales;
|
|
relations_forms_blocks_message: typeof relations_forms_blocks_message;
|
|
relations_forms_blocks_number_locales: typeof relations_forms_blocks_number_locales;
|
|
relations_forms_blocks_number: typeof relations_forms_blocks_number;
|
|
relations_forms_blocks_select_options_locales: typeof relations_forms_blocks_select_options_locales;
|
|
relations_forms_blocks_select_options: typeof relations_forms_blocks_select_options;
|
|
relations_forms_blocks_select_locales: typeof relations_forms_blocks_select_locales;
|
|
relations_forms_blocks_select: typeof relations_forms_blocks_select;
|
|
relations_forms_blocks_text_locales: typeof relations_forms_blocks_text_locales;
|
|
relations_forms_blocks_text: typeof relations_forms_blocks_text;
|
|
relations_forms_blocks_textarea_locales: typeof relations_forms_blocks_textarea_locales;
|
|
relations_forms_blocks_textarea: typeof relations_forms_blocks_textarea;
|
|
relations_forms_emails_locales: typeof relations_forms_emails_locales;
|
|
relations_forms_emails: typeof relations_forms_emails;
|
|
relations_forms_locales: typeof relations_forms_locales;
|
|
relations_forms_rels: typeof relations_forms_rels;
|
|
relations_forms: typeof relations_forms;
|
|
relations_form_submissions_submission_data: typeof relations_form_submissions_submission_data;
|
|
relations_form_submissions: typeof relations_form_submissions;
|
|
relations_redirects_rels: typeof relations_redirects_rels;
|
|
relations_redirects: typeof relations_redirects;
|
|
relations_payload_kv: typeof relations_payload_kv;
|
|
relations_payload_locked_documents_rels: typeof relations_payload_locked_documents_rels;
|
|
relations_payload_locked_documents: typeof relations_payload_locked_documents;
|
|
relations_payload_preferences_rels: typeof relations_payload_preferences_rels;
|
|
relations_payload_preferences: typeof relations_payload_preferences;
|
|
relations_payload_migrations: typeof relations_payload_migrations;
|
|
relations_seo_settings_social_profiles: typeof relations_seo_settings_social_profiles;
|
|
relations_seo_settings_local_business_opening_hours: typeof relations_seo_settings_local_business_opening_hours;
|
|
relations_seo_settings_locales: typeof relations_seo_settings_locales;
|
|
relations_seo_settings_texts: typeof relations_seo_settings_texts;
|
|
relations_seo_settings: typeof relations_seo_settings;
|
|
};
|
|
|
|
declare module "@payloadcms/db-postgres" {
|
|
export interface GeneratedDatabaseSchema {
|
|
schema: DatabaseSchema;
|
|
}
|
|
}
|