diff --git a/src/migrations/20260826_011138_update_schema.json b/src/migrations/20260826_011138_update_schema.json new file mode 100644 index 0000000..a811e2a --- /dev/null +++ b/src/migrations/20260826_011138_update_schema.json @@ -0,0 +1,7891 @@ +{ + "version": "6", + "dialect": "sqlite", + "tables": { + "users_roles": { + "name": "users_roles", + "columns": { + "order": { + "name": "order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "parent_id": { + "name": "parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "value": { + "name": "value", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "users_roles_order_idx": { + "name": "users_roles_order_idx", + "columns": [ + "order" + ], + "isUnique": false + }, + "users_roles_parent_idx": { + "name": "users_roles_parent_idx", + "columns": [ + "parent_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "users_roles_parent_fk": { + "name": "users_roles_parent_fk", + "tableFrom": "users_roles", + "tableTo": "users", + "columnsFrom": [ + "parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "users_sessions": { + "name": "users_sessions", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "expires_at": { + "name": "expires_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "users_sessions_order_idx": { + "name": "users_sessions_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "users_sessions_parent_id_idx": { + "name": "users_sessions_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "users_sessions_parent_id_fk": { + "name": "users_sessions_parent_id_fk", + "tableFrom": "users_sessions", + "tableTo": "users", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "users": { + "name": "users", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "updated_at": { + "name": "updated_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + }, + "email": { + "name": "email", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "reset_password_token": { + "name": "reset_password_token", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "reset_password_expiration": { + "name": "reset_password_expiration", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "salt": { + "name": "salt", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "hash": { + "name": "hash", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "login_attempts": { + "name": "login_attempts", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": 0 + }, + "lock_until": { + "name": "lock_until", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "users_updated_at_idx": { + "name": "users_updated_at_idx", + "columns": [ + "updated_at" + ], + "isUnique": false + }, + "users_created_at_idx": { + "name": "users_created_at_idx", + "columns": [ + "created_at" + ], + "isUnique": false + }, + "users_email_idx": { + "name": "users_email_idx", + "columns": [ + "email" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "media": { + "name": "media", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "updated_at": { + "name": "updated_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + }, + "url": { + "name": "url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "thumbnail_u_r_l": { + "name": "thumbnail_u_r_l", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "filename": { + "name": "filename", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "mime_type": { + "name": "mime_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "filesize": { + "name": "filesize", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "width": { + "name": "width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "height": { + "name": "height", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "focal_x": { + "name": "focal_x", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "focal_y": { + "name": "focal_y", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_thumbnail_url": { + "name": "sizes_thumbnail_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_thumbnail_width": { + "name": "sizes_thumbnail_width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_thumbnail_height": { + "name": "sizes_thumbnail_height", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_thumbnail_mime_type": { + "name": "sizes_thumbnail_mime_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_thumbnail_filesize": { + "name": "sizes_thumbnail_filesize", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_thumbnail_filename": { + "name": "sizes_thumbnail_filename", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_card_url": { + "name": "sizes_card_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_card_width": { + "name": "sizes_card_width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_card_height": { + "name": "sizes_card_height", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_card_mime_type": { + "name": "sizes_card_mime_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_card_filesize": { + "name": "sizes_card_filesize", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_card_filename": { + "name": "sizes_card_filename", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_hero_url": { + "name": "sizes_hero_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_hero_width": { + "name": "sizes_hero_width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_hero_height": { + "name": "sizes_hero_height", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_hero_mime_type": { + "name": "sizes_hero_mime_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_hero_filesize": { + "name": "sizes_hero_filesize", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "sizes_hero_filename": { + "name": "sizes_hero_filename", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "media_updated_at_idx": { + "name": "media_updated_at_idx", + "columns": [ + "updated_at" + ], + "isUnique": false + }, + "media_created_at_idx": { + "name": "media_created_at_idx", + "columns": [ + "created_at" + ], + "isUnique": false + }, + "media_filename_idx": { + "name": "media_filename_idx", + "columns": [ + "filename" + ], + "isUnique": true + }, + "media_sizes_thumbnail_sizes_thumbnail_filename_idx": { + "name": "media_sizes_thumbnail_sizes_thumbnail_filename_idx", + "columns": [ + "sizes_thumbnail_filename" + ], + "isUnique": false + }, + "media_sizes_card_sizes_card_filename_idx": { + "name": "media_sizes_card_sizes_card_filename_idx", + "columns": [ + "sizes_card_filename" + ], + "isUnique": false + }, + "media_sizes_hero_sizes_hero_filename_idx": { + "name": "media_sizes_hero_sizes_hero_filename_idx", + "columns": [ + "sizes_hero_filename" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "media_locales": { + "name": "media_locales", + "columns": { + "alt": { + "name": "alt", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "media_locales_locale_parent_id_unique": { + "name": "media_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "media_locales_parent_id_fk": { + "name": "media_locales_parent_id_fk", + "tableFrom": "media_locales", + "tableTo": "media", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_hero_trust_badges": { + "name": "pages_blocks_hero_trust_badges", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "text": { + "name": "text", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_hero_trust_badges_order_idx": { + "name": "pages_blocks_hero_trust_badges_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_hero_trust_badges_parent_id_idx": { + "name": "pages_blocks_hero_trust_badges_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_hero_trust_badges_locale_idx": { + "name": "pages_blocks_hero_trust_badges_locale_idx", + "columns": [ + "_locale" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_hero_trust_badges_parent_id_fk": { + "name": "pages_blocks_hero_trust_badges_parent_id_fk", + "tableFrom": "pages_blocks_hero_trust_badges", + "tableTo": "pages_blocks_hero", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_hero": { + "name": "pages_blocks_hero", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "cta_secondary_target_id": { + "name": "cta_secondary_target_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "background_image_id": { + "name": "background_image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_hero_order_idx": { + "name": "pages_blocks_hero_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_hero_parent_id_idx": { + "name": "pages_blocks_hero_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_hero_path_idx": { + "name": "pages_blocks_hero_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + }, + "pages_blocks_hero_cta_secondary_target_idx": { + "name": "pages_blocks_hero_cta_secondary_target_idx", + "columns": [ + "cta_secondary_target_id" + ], + "isUnique": false + }, + "pages_blocks_hero_background_image_idx": { + "name": "pages_blocks_hero_background_image_idx", + "columns": [ + "background_image_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_hero_cta_secondary_target_id_pages_id_fk": { + "name": "pages_blocks_hero_cta_secondary_target_id_pages_id_fk", + "tableFrom": "pages_blocks_hero", + "tableTo": "pages", + "columnsFrom": [ + "cta_secondary_target_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "pages_blocks_hero_background_image_id_media_id_fk": { + "name": "pages_blocks_hero_background_image_id_media_id_fk", + "tableFrom": "pages_blocks_hero", + "tableTo": "media", + "columnsFrom": [ + "background_image_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "pages_blocks_hero_parent_id_fk": { + "name": "pages_blocks_hero_parent_id_fk", + "tableFrom": "pages_blocks_hero", + "tableTo": "pages", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_hero_locales": { + "name": "pages_blocks_hero_locales", + "columns": { + "badge": { + "name": "badge", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "heading": { + "name": "heading", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "subheading": { + "name": "subheading", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "cta_phone": { + "name": "cta_phone", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "cta_phone_label": { + "name": "cta_phone_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "cta_secondary_label": { + "name": "cta_secondary_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "cta_secondary_url": { + "name": "cta_secondary_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_hero_locales_locale_parent_id_unique": { + "name": "pages_blocks_hero_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "pages_blocks_hero_locales_parent_id_fk": { + "name": "pages_blocks_hero_locales_parent_id_fk", + "tableFrom": "pages_blocks_hero_locales", + "tableTo": "pages_blocks_hero", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_problem_solution_items": { + "name": "pages_blocks_problem_solution_items", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "problem_title": { + "name": "problem_title", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "problem_description": { + "name": "problem_description", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "solution_title": { + "name": "solution_title", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "solution_description": { + "name": "solution_description", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_problem_solution_items_order_idx": { + "name": "pages_blocks_problem_solution_items_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_problem_solution_items_parent_id_idx": { + "name": "pages_blocks_problem_solution_items_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_problem_solution_items_locale_idx": { + "name": "pages_blocks_problem_solution_items_locale_idx", + "columns": [ + "_locale" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_problem_solution_items_parent_id_fk": { + "name": "pages_blocks_problem_solution_items_parent_id_fk", + "tableFrom": "pages_blocks_problem_solution_items", + "tableTo": "pages_blocks_problem_solution", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_problem_solution": { + "name": "pages_blocks_problem_solution", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_problem_solution_order_idx": { + "name": "pages_blocks_problem_solution_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_problem_solution_parent_id_idx": { + "name": "pages_blocks_problem_solution_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_problem_solution_path_idx": { + "name": "pages_blocks_problem_solution_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_problem_solution_parent_id_fk": { + "name": "pages_blocks_problem_solution_parent_id_fk", + "tableFrom": "pages_blocks_problem_solution", + "tableTo": "pages", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_problem_solution_locales": { + "name": "pages_blocks_problem_solution_locales", + "columns": { + "badge": { + "name": "badge", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "heading": { + "name": "heading", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "subheading": { + "name": "subheading", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_problem_solution_locales_locale_parent_id_uniqu": { + "name": "pages_blocks_problem_solution_locales_locale_parent_id_uniqu", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "pages_blocks_problem_solution_locales_parent_id_fk": { + "name": "pages_blocks_problem_solution_locales_parent_id_fk", + "tableFrom": "pages_blocks_problem_solution_locales", + "tableTo": "pages_blocks_problem_solution", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_process_steps_steps": { + "name": "pages_blocks_process_steps_steps", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "step_number": { + "name": "step_number", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_process_steps_steps_order_idx": { + "name": "pages_blocks_process_steps_steps_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_process_steps_steps_parent_id_idx": { + "name": "pages_blocks_process_steps_steps_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_process_steps_steps_locale_idx": { + "name": "pages_blocks_process_steps_steps_locale_idx", + "columns": [ + "_locale" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_process_steps_steps_parent_id_fk": { + "name": "pages_blocks_process_steps_steps_parent_id_fk", + "tableFrom": "pages_blocks_process_steps_steps", + "tableTo": "pages_blocks_process_steps", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_process_steps": { + "name": "pages_blocks_process_steps", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_process_steps_order_idx": { + "name": "pages_blocks_process_steps_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_process_steps_parent_id_idx": { + "name": "pages_blocks_process_steps_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_process_steps_path_idx": { + "name": "pages_blocks_process_steps_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_process_steps_parent_id_fk": { + "name": "pages_blocks_process_steps_parent_id_fk", + "tableFrom": "pages_blocks_process_steps", + "tableTo": "pages", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_process_steps_locales": { + "name": "pages_blocks_process_steps_locales", + "columns": { + "badge": { + "name": "badge", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "heading": { + "name": "heading", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "subheading": { + "name": "subheading", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_process_steps_locales_locale_parent_id_unique": { + "name": "pages_blocks_process_steps_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "pages_blocks_process_steps_locales_parent_id_fk": { + "name": "pages_blocks_process_steps_locales_parent_id_fk", + "tableFrom": "pages_blocks_process_steps_locales", + "tableTo": "pages_blocks_process_steps", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_before_after_gallery_items": { + "name": "pages_blocks_before_after_gallery_items", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "category": { + "name": "category", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "before_image_id": { + "name": "before_image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "after_image_id": { + "name": "after_image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_before_after_gallery_items_order_idx": { + "name": "pages_blocks_before_after_gallery_items_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_before_after_gallery_items_parent_id_idx": { + "name": "pages_blocks_before_after_gallery_items_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_before_after_gallery_items_locale_idx": { + "name": "pages_blocks_before_after_gallery_items_locale_idx", + "columns": [ + "_locale" + ], + "isUnique": false + }, + "pages_blocks_before_after_gallery_items_before_image_idx": { + "name": "pages_blocks_before_after_gallery_items_before_image_idx", + "columns": [ + "before_image_id" + ], + "isUnique": false + }, + "pages_blocks_before_after_gallery_items_after_image_idx": { + "name": "pages_blocks_before_after_gallery_items_after_image_idx", + "columns": [ + "after_image_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_before_after_gallery_items_before_image_id_media_id_fk": { + "name": "pages_blocks_before_after_gallery_items_before_image_id_media_id_fk", + "tableFrom": "pages_blocks_before_after_gallery_items", + "tableTo": "media", + "columnsFrom": [ + "before_image_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "pages_blocks_before_after_gallery_items_after_image_id_media_id_fk": { + "name": "pages_blocks_before_after_gallery_items_after_image_id_media_id_fk", + "tableFrom": "pages_blocks_before_after_gallery_items", + "tableTo": "media", + "columnsFrom": [ + "after_image_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "pages_blocks_before_after_gallery_items_parent_id_fk": { + "name": "pages_blocks_before_after_gallery_items_parent_id_fk", + "tableFrom": "pages_blocks_before_after_gallery_items", + "tableTo": "pages_blocks_before_after_gallery", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_before_after_gallery": { + "name": "pages_blocks_before_after_gallery", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_before_after_gallery_order_idx": { + "name": "pages_blocks_before_after_gallery_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_before_after_gallery_parent_id_idx": { + "name": "pages_blocks_before_after_gallery_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_before_after_gallery_path_idx": { + "name": "pages_blocks_before_after_gallery_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_before_after_gallery_parent_id_fk": { + "name": "pages_blocks_before_after_gallery_parent_id_fk", + "tableFrom": "pages_blocks_before_after_gallery", + "tableTo": "pages", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_before_after_gallery_locales": { + "name": "pages_blocks_before_after_gallery_locales", + "columns": { + "badge": { + "name": "badge", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "heading": { + "name": "heading", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "subheading": { + "name": "subheading", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_before_after_gallery_locales_locale_parent_id_u": { + "name": "pages_blocks_before_after_gallery_locales_locale_parent_id_u", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "pages_blocks_before_after_gallery_locales_parent_id_fk": { + "name": "pages_blocks_before_after_gallery_locales_parent_id_fk", + "tableFrom": "pages_blocks_before_after_gallery_locales", + "tableTo": "pages_blocks_before_after_gallery", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_pricing_table_packages_features": { + "name": "pages_blocks_pricing_table_packages_features", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "feature": { + "name": "feature", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_pricing_table_packages_features_order_idx": { + "name": "pages_blocks_pricing_table_packages_features_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_pricing_table_packages_features_parent_id_idx": { + "name": "pages_blocks_pricing_table_packages_features_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_pricing_table_packages_features_locale_idx": { + "name": "pages_blocks_pricing_table_packages_features_locale_idx", + "columns": [ + "_locale" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_pricing_table_packages_features_parent_id_fk": { + "name": "pages_blocks_pricing_table_packages_features_parent_id_fk", + "tableFrom": "pages_blocks_pricing_table_packages_features", + "tableTo": "pages_blocks_pricing_table_packages", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_pricing_table_packages": { + "name": "pages_blocks_pricing_table_packages", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "price": { + "name": "price", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "is_popular": { + "name": "is_popular", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": false + }, + "popular_badge_label": { + "name": "popular_badge_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Polecany Pakiet'" + }, + "cta_label": { + "name": "cta_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Zamów wycenę'" + } + }, + "indexes": { + "pages_blocks_pricing_table_packages_order_idx": { + "name": "pages_blocks_pricing_table_packages_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_pricing_table_packages_parent_id_idx": { + "name": "pages_blocks_pricing_table_packages_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_pricing_table_packages_locale_idx": { + "name": "pages_blocks_pricing_table_packages_locale_idx", + "columns": [ + "_locale" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_pricing_table_packages_parent_id_fk": { + "name": "pages_blocks_pricing_table_packages_parent_id_fk", + "tableFrom": "pages_blocks_pricing_table_packages", + "tableTo": "pages_blocks_pricing_table", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_pricing_table": { + "name": "pages_blocks_pricing_table", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_pricing_table_order_idx": { + "name": "pages_blocks_pricing_table_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_pricing_table_parent_id_idx": { + "name": "pages_blocks_pricing_table_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_pricing_table_path_idx": { + "name": "pages_blocks_pricing_table_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_pricing_table_parent_id_fk": { + "name": "pages_blocks_pricing_table_parent_id_fk", + "tableFrom": "pages_blocks_pricing_table", + "tableTo": "pages", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_pricing_table_locales": { + "name": "pages_blocks_pricing_table_locales", + "columns": { + "badge": { + "name": "badge", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "heading": { + "name": "heading", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "subheading": { + "name": "subheading", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "disclaimer": { + "name": "disclaimer", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_pricing_table_locales_locale_parent_id_unique": { + "name": "pages_blocks_pricing_table_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "pages_blocks_pricing_table_locales_parent_id_fk": { + "name": "pages_blocks_pricing_table_locales_parent_id_fk", + "tableFrom": "pages_blocks_pricing_table_locales", + "tableTo": "pages_blocks_pricing_table", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_tech_equipment_items": { + "name": "pages_blocks_tech_equipment_items", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "image_id": { + "name": "image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_tech_equipment_items_order_idx": { + "name": "pages_blocks_tech_equipment_items_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_tech_equipment_items_parent_id_idx": { + "name": "pages_blocks_tech_equipment_items_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_tech_equipment_items_locale_idx": { + "name": "pages_blocks_tech_equipment_items_locale_idx", + "columns": [ + "_locale" + ], + "isUnique": false + }, + "pages_blocks_tech_equipment_items_image_idx": { + "name": "pages_blocks_tech_equipment_items_image_idx", + "columns": [ + "image_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_tech_equipment_items_image_id_media_id_fk": { + "name": "pages_blocks_tech_equipment_items_image_id_media_id_fk", + "tableFrom": "pages_blocks_tech_equipment_items", + "tableTo": "media", + "columnsFrom": [ + "image_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "pages_blocks_tech_equipment_items_parent_id_fk": { + "name": "pages_blocks_tech_equipment_items_parent_id_fk", + "tableFrom": "pages_blocks_tech_equipment_items", + "tableTo": "pages_blocks_tech_equipment", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_tech_equipment": { + "name": "pages_blocks_tech_equipment", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_tech_equipment_order_idx": { + "name": "pages_blocks_tech_equipment_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_tech_equipment_parent_id_idx": { + "name": "pages_blocks_tech_equipment_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_tech_equipment_path_idx": { + "name": "pages_blocks_tech_equipment_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_tech_equipment_parent_id_fk": { + "name": "pages_blocks_tech_equipment_parent_id_fk", + "tableFrom": "pages_blocks_tech_equipment", + "tableTo": "pages", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_tech_equipment_locales": { + "name": "pages_blocks_tech_equipment_locales", + "columns": { + "badge": { + "name": "badge", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "heading": { + "name": "heading", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "subheading": { + "name": "subheading", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_tech_equipment_locales_locale_parent_id_unique": { + "name": "pages_blocks_tech_equipment_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "pages_blocks_tech_equipment_locales_parent_id_fk": { + "name": "pages_blocks_tech_equipment_locales_parent_id_fk", + "tableFrom": "pages_blocks_tech_equipment_locales", + "tableTo": "pages_blocks_tech_equipment", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_faq_accordion_items": { + "name": "pages_blocks_faq_accordion_items", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "question": { + "name": "question", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "answer": { + "name": "answer", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_faq_accordion_items_order_idx": { + "name": "pages_blocks_faq_accordion_items_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_faq_accordion_items_parent_id_idx": { + "name": "pages_blocks_faq_accordion_items_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_faq_accordion_items_locale_idx": { + "name": "pages_blocks_faq_accordion_items_locale_idx", + "columns": [ + "_locale" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_faq_accordion_items_parent_id_fk": { + "name": "pages_blocks_faq_accordion_items_parent_id_fk", + "tableFrom": "pages_blocks_faq_accordion_items", + "tableTo": "pages_blocks_faq_accordion", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_faq_accordion": { + "name": "pages_blocks_faq_accordion", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_faq_accordion_order_idx": { + "name": "pages_blocks_faq_accordion_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_faq_accordion_parent_id_idx": { + "name": "pages_blocks_faq_accordion_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_faq_accordion_path_idx": { + "name": "pages_blocks_faq_accordion_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_faq_accordion_parent_id_fk": { + "name": "pages_blocks_faq_accordion_parent_id_fk", + "tableFrom": "pages_blocks_faq_accordion", + "tableTo": "pages", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_faq_accordion_locales": { + "name": "pages_blocks_faq_accordion_locales", + "columns": { + "badge": { + "name": "badge", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "heading": { + "name": "heading", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "subheading": { + "name": "subheading", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_faq_accordion_locales_locale_parent_id_unique": { + "name": "pages_blocks_faq_accordion_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "pages_blocks_faq_accordion_locales_parent_id_fk": { + "name": "pages_blocks_faq_accordion_locales_parent_id_fk", + "tableFrom": "pages_blocks_faq_accordion_locales", + "tableTo": "pages_blocks_faq_accordion", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_reviews_items": { + "name": "pages_blocks_reviews_items", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "author": { + "name": "author", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "location": { + "name": "location", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "rating": { + "name": "rating", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": 5 + }, + "content": { + "name": "content", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_reviews_items_order_idx": { + "name": "pages_blocks_reviews_items_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_reviews_items_parent_id_idx": { + "name": "pages_blocks_reviews_items_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_reviews_items_locale_idx": { + "name": "pages_blocks_reviews_items_locale_idx", + "columns": [ + "_locale" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_reviews_items_parent_id_fk": { + "name": "pages_blocks_reviews_items_parent_id_fk", + "tableFrom": "pages_blocks_reviews_items", + "tableTo": "pages_blocks_reviews", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_reviews": { + "name": "pages_blocks_reviews", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_reviews_order_idx": { + "name": "pages_blocks_reviews_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_reviews_parent_id_idx": { + "name": "pages_blocks_reviews_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_reviews_path_idx": { + "name": "pages_blocks_reviews_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_reviews_parent_id_fk": { + "name": "pages_blocks_reviews_parent_id_fk", + "tableFrom": "pages_blocks_reviews", + "tableTo": "pages", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_reviews_locales": { + "name": "pages_blocks_reviews_locales", + "columns": { + "badge": { + "name": "badge", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "heading": { + "name": "heading", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "subheading": { + "name": "subheading", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_reviews_locales_locale_parent_id_unique": { + "name": "pages_blocks_reviews_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "pages_blocks_reviews_locales_parent_id_fk": { + "name": "pages_blocks_reviews_locales_parent_id_fk", + "tableFrom": "pages_blocks_reviews_locales", + "tableTo": "pages_blocks_reviews", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_form_block": { + "name": "pages_blocks_form_block", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_form_block_order_idx": { + "name": "pages_blocks_form_block_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_form_block_parent_id_idx": { + "name": "pages_blocks_form_block_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_form_block_path_idx": { + "name": "pages_blocks_form_block_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_form_block_parent_id_fk": { + "name": "pages_blocks_form_block_parent_id_fk", + "tableFrom": "pages_blocks_form_block", + "tableTo": "pages", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_form_block_locales": { + "name": "pages_blocks_form_block_locales", + "columns": { + "badge": { + "name": "badge", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "heading": { + "name": "heading", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "subheading": { + "name": "subheading", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "phone": { + "name": "phone", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "direct_phone_label": { + "name": "direct_phone_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Telefon bezpośredni'" + }, + "email": { + "name": "email", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "email_contact_label": { + "name": "email_contact_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Kontakt e-mail'" + }, + "working_hours": { + "name": "working_hours", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "working_hours_label": { + "name": "working_hours_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Godziny pracy'" + }, + "name_label": { + "name": "name_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Imię i Nazwisko *'" + }, + "phone_input_label": { + "name": "phone_input_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Numer Telefonu *'" + }, + "location_label": { + "name": "location_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Miejscowość'" + }, + "area_label": { + "name": "area_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Szacowany Metraż (m²)'" + }, + "message_label": { + "name": "message_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Zakres prac / stan nawierzchni'" + }, + "submit_button_text": { + "name": "submit_button_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Wyślij zapytanie o bezpłatną wycenę'" + }, + "consent_text": { + "name": "consent_text", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Wyrażam zgodę na przetwarzanie moich danych osobowych w celu kontaktu i przygotowania oferty zgodnie z Polityką Prywatności.'" + }, + "success_heading": { + "name": "success_heading", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Zgłoszenie zostało wysłane'" + }, + "success_message": { + "name": "success_message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Nasz doradca techniczny skontaktuje się z Państwem telefonicznie w celu przygotowania dokładnej wyceny.'" + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_form_block_locales_locale_parent_id_unique": { + "name": "pages_blocks_form_block_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "pages_blocks_form_block_locales_parent_id_fk": { + "name": "pages_blocks_form_block_locales_parent_id_fk", + "tableFrom": "pages_blocks_form_block_locales", + "tableTo": "pages_blocks_form_block", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_content": { + "name": "pages_blocks_content", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_content_order_idx": { + "name": "pages_blocks_content_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_content_parent_id_idx": { + "name": "pages_blocks_content_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_content_path_idx": { + "name": "pages_blocks_content_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_content_parent_id_fk": { + "name": "pages_blocks_content_parent_id_fk", + "tableFrom": "pages_blocks_content", + "tableTo": "pages", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_content_locales": { + "name": "pages_blocks_content_locales", + "columns": { + "badge": { + "name": "badge", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "heading": { + "name": "heading", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "body": { + "name": "body", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_content_locales_locale_parent_id_unique": { + "name": "pages_blocks_content_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "pages_blocks_content_locales_parent_id_fk": { + "name": "pages_blocks_content_locales_parent_id_fk", + "tableFrom": "pages_blocks_content_locales", + "tableTo": "pages_blocks_content", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_blog_list_articles": { + "name": "pages_blocks_blog_list_articles", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "category": { + "name": "category", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "read_time": { + "name": "read_time", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'4 min czytania'" + }, + "date": { + "name": "date", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'2026'" + }, + "excerpt": { + "name": "excerpt", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "content": { + "name": "content", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_blog_list_articles_order_idx": { + "name": "pages_blocks_blog_list_articles_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_blog_list_articles_parent_id_idx": { + "name": "pages_blocks_blog_list_articles_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_blog_list_articles_locale_idx": { + "name": "pages_blocks_blog_list_articles_locale_idx", + "columns": [ + "_locale" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_blog_list_articles_parent_id_fk": { + "name": "pages_blocks_blog_list_articles_parent_id_fk", + "tableFrom": "pages_blocks_blog_list_articles", + "tableTo": "pages_blocks_blog_list", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_blog_list": { + "name": "pages_blocks_blog_list", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_blog_list_order_idx": { + "name": "pages_blocks_blog_list_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "pages_blocks_blog_list_parent_id_idx": { + "name": "pages_blocks_blog_list_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "pages_blocks_blog_list_path_idx": { + "name": "pages_blocks_blog_list_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "pages_blocks_blog_list_parent_id_fk": { + "name": "pages_blocks_blog_list_parent_id_fk", + "tableFrom": "pages_blocks_blog_list", + "tableTo": "pages", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_blocks_blog_list_locales": { + "name": "pages_blocks_blog_list_locales", + "columns": { + "badge": { + "name": "badge", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Baza Wiedzy & Porady'" + }, + "heading": { + "name": "heading", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'Poradnik czyszczenia i pielęgnacji kostki brukowej'" + }, + "subheading": { + "name": "subheading", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Praktyczne wskazówki ekspertów: jak usuwać trudne plamy, kiedy impregnować nawierzchnię i dlaczego temperatura wody decyduje o skuteczności czyszczenia.'" + }, + "read_more_label": { + "name": "read_more_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Czytaj poradnik'" + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "pages_blocks_blog_list_locales_locale_parent_id_unique": { + "name": "pages_blocks_blog_list_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "pages_blocks_blog_list_locales_parent_id_fk": { + "name": "pages_blocks_blog_list_locales_parent_id_fk", + "tableFrom": "pages_blocks_blog_list_locales", + "tableTo": "pages_blocks_blog_list", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages": { + "name": "pages", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "updated_at": { + "name": "updated_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + } + }, + "indexes": { + "pages_updated_at_idx": { + "name": "pages_updated_at_idx", + "columns": [ + "updated_at" + ], + "isUnique": false + }, + "pages_created_at_idx": { + "name": "pages_created_at_idx", + "columns": [ + "created_at" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "pages_locales": { + "name": "pages_locales", + "columns": { + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "slug": { + "name": "slug", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "meta_title": { + "name": "meta_title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "meta_description": { + "name": "meta_description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "meta_image_id": { + "name": "meta_image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "meta_title_override": { + "name": "meta_title_override", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "pages_slug_idx": { + "name": "pages_slug_idx", + "columns": [ + "slug", + "_locale" + ], + "isUnique": false + }, + "pages_meta_meta_image_idx": { + "name": "pages_meta_meta_image_idx", + "columns": [ + "meta_image_id", + "_locale" + ], + "isUnique": false + }, + "pages_locales_locale_parent_id_unique": { + "name": "pages_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "pages_locales_meta_image_id_media_id_fk": { + "name": "pages_locales_meta_image_id_media_id_fk", + "tableFrom": "pages_locales", + "tableTo": "media", + "columnsFrom": [ + "meta_image_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "pages_locales_parent_id_fk": { + "name": "pages_locales_parent_id_fk", + "tableFrom": "pages_locales", + "tableTo": "pages", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_checkbox": { + "name": "forms_blocks_checkbox", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "width": { + "name": "width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "required": { + "name": "required", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "default_value": { + "name": "default_value", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_checkbox_order_idx": { + "name": "forms_blocks_checkbox_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "forms_blocks_checkbox_parent_id_idx": { + "name": "forms_blocks_checkbox_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "forms_blocks_checkbox_path_idx": { + "name": "forms_blocks_checkbox_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_checkbox_parent_id_fk": { + "name": "forms_blocks_checkbox_parent_id_fk", + "tableFrom": "forms_blocks_checkbox", + "tableTo": "forms", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_checkbox_locales": { + "name": "forms_blocks_checkbox_locales", + "columns": { + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_checkbox_locales_locale_parent_id_unique": { + "name": "forms_blocks_checkbox_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "forms_blocks_checkbox_locales_parent_id_fk": { + "name": "forms_blocks_checkbox_locales_parent_id_fk", + "tableFrom": "forms_blocks_checkbox_locales", + "tableTo": "forms_blocks_checkbox", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_country": { + "name": "forms_blocks_country", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "width": { + "name": "width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "required": { + "name": "required", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_country_order_idx": { + "name": "forms_blocks_country_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "forms_blocks_country_parent_id_idx": { + "name": "forms_blocks_country_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "forms_blocks_country_path_idx": { + "name": "forms_blocks_country_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_country_parent_id_fk": { + "name": "forms_blocks_country_parent_id_fk", + "tableFrom": "forms_blocks_country", + "tableTo": "forms", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_country_locales": { + "name": "forms_blocks_country_locales", + "columns": { + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_country_locales_locale_parent_id_unique": { + "name": "forms_blocks_country_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "forms_blocks_country_locales_parent_id_fk": { + "name": "forms_blocks_country_locales_parent_id_fk", + "tableFrom": "forms_blocks_country_locales", + "tableTo": "forms_blocks_country", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_email": { + "name": "forms_blocks_email", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "width": { + "name": "width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "required": { + "name": "required", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_email_order_idx": { + "name": "forms_blocks_email_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "forms_blocks_email_parent_id_idx": { + "name": "forms_blocks_email_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "forms_blocks_email_path_idx": { + "name": "forms_blocks_email_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_email_parent_id_fk": { + "name": "forms_blocks_email_parent_id_fk", + "tableFrom": "forms_blocks_email", + "tableTo": "forms", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_email_locales": { + "name": "forms_blocks_email_locales", + "columns": { + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_email_locales_locale_parent_id_unique": { + "name": "forms_blocks_email_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "forms_blocks_email_locales_parent_id_fk": { + "name": "forms_blocks_email_locales_parent_id_fk", + "tableFrom": "forms_blocks_email_locales", + "tableTo": "forms_blocks_email", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_message": { + "name": "forms_blocks_message", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_message_order_idx": { + "name": "forms_blocks_message_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "forms_blocks_message_parent_id_idx": { + "name": "forms_blocks_message_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "forms_blocks_message_path_idx": { + "name": "forms_blocks_message_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_message_parent_id_fk": { + "name": "forms_blocks_message_parent_id_fk", + "tableFrom": "forms_blocks_message", + "tableTo": "forms", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_message_locales": { + "name": "forms_blocks_message_locales", + "columns": { + "message": { + "name": "message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_message_locales_locale_parent_id_unique": { + "name": "forms_blocks_message_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "forms_blocks_message_locales_parent_id_fk": { + "name": "forms_blocks_message_locales_parent_id_fk", + "tableFrom": "forms_blocks_message_locales", + "tableTo": "forms_blocks_message", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_number": { + "name": "forms_blocks_number", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "width": { + "name": "width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "default_value": { + "name": "default_value", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "required": { + "name": "required", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_number_order_idx": { + "name": "forms_blocks_number_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "forms_blocks_number_parent_id_idx": { + "name": "forms_blocks_number_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "forms_blocks_number_path_idx": { + "name": "forms_blocks_number_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_number_parent_id_fk": { + "name": "forms_blocks_number_parent_id_fk", + "tableFrom": "forms_blocks_number", + "tableTo": "forms", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_number_locales": { + "name": "forms_blocks_number_locales", + "columns": { + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_number_locales_locale_parent_id_unique": { + "name": "forms_blocks_number_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "forms_blocks_number_locales_parent_id_fk": { + "name": "forms_blocks_number_locales_parent_id_fk", + "tableFrom": "forms_blocks_number_locales", + "tableTo": "forms_blocks_number", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_select_options": { + "name": "forms_blocks_select_options", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "value": { + "name": "value", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_select_options_order_idx": { + "name": "forms_blocks_select_options_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "forms_blocks_select_options_parent_id_idx": { + "name": "forms_blocks_select_options_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_select_options_parent_id_fk": { + "name": "forms_blocks_select_options_parent_id_fk", + "tableFrom": "forms_blocks_select_options", + "tableTo": "forms_blocks_select", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_select_options_locales": { + "name": "forms_blocks_select_options_locales", + "columns": { + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_select_options_locales_locale_parent_id_unique": { + "name": "forms_blocks_select_options_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "forms_blocks_select_options_locales_parent_id_fk": { + "name": "forms_blocks_select_options_locales_parent_id_fk", + "tableFrom": "forms_blocks_select_options_locales", + "tableTo": "forms_blocks_select_options", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_select": { + "name": "forms_blocks_select", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "width": { + "name": "width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "placeholder": { + "name": "placeholder", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "required": { + "name": "required", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_select_order_idx": { + "name": "forms_blocks_select_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "forms_blocks_select_parent_id_idx": { + "name": "forms_blocks_select_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "forms_blocks_select_path_idx": { + "name": "forms_blocks_select_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_select_parent_id_fk": { + "name": "forms_blocks_select_parent_id_fk", + "tableFrom": "forms_blocks_select", + "tableTo": "forms", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_select_locales": { + "name": "forms_blocks_select_locales", + "columns": { + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "default_value": { + "name": "default_value", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_select_locales_locale_parent_id_unique": { + "name": "forms_blocks_select_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "forms_blocks_select_locales_parent_id_fk": { + "name": "forms_blocks_select_locales_parent_id_fk", + "tableFrom": "forms_blocks_select_locales", + "tableTo": "forms_blocks_select", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_state": { + "name": "forms_blocks_state", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "width": { + "name": "width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "required": { + "name": "required", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_state_order_idx": { + "name": "forms_blocks_state_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "forms_blocks_state_parent_id_idx": { + "name": "forms_blocks_state_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "forms_blocks_state_path_idx": { + "name": "forms_blocks_state_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_state_parent_id_fk": { + "name": "forms_blocks_state_parent_id_fk", + "tableFrom": "forms_blocks_state", + "tableTo": "forms", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_state_locales": { + "name": "forms_blocks_state_locales", + "columns": { + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_state_locales_locale_parent_id_unique": { + "name": "forms_blocks_state_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "forms_blocks_state_locales_parent_id_fk": { + "name": "forms_blocks_state_locales_parent_id_fk", + "tableFrom": "forms_blocks_state_locales", + "tableTo": "forms_blocks_state", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_text": { + "name": "forms_blocks_text", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "width": { + "name": "width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "required": { + "name": "required", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_text_order_idx": { + "name": "forms_blocks_text_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "forms_blocks_text_parent_id_idx": { + "name": "forms_blocks_text_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "forms_blocks_text_path_idx": { + "name": "forms_blocks_text_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_text_parent_id_fk": { + "name": "forms_blocks_text_parent_id_fk", + "tableFrom": "forms_blocks_text", + "tableTo": "forms", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_text_locales": { + "name": "forms_blocks_text_locales", + "columns": { + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "default_value": { + "name": "default_value", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_text_locales_locale_parent_id_unique": { + "name": "forms_blocks_text_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "forms_blocks_text_locales_parent_id_fk": { + "name": "forms_blocks_text_locales_parent_id_fk", + "tableFrom": "forms_blocks_text_locales", + "tableTo": "forms_blocks_text", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_textarea": { + "name": "forms_blocks_textarea", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_path": { + "name": "_path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "width": { + "name": "width", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "required": { + "name": "required", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "block_name": { + "name": "block_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_textarea_order_idx": { + "name": "forms_blocks_textarea_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "forms_blocks_textarea_parent_id_idx": { + "name": "forms_blocks_textarea_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "forms_blocks_textarea_path_idx": { + "name": "forms_blocks_textarea_path_idx", + "columns": [ + "_path" + ], + "isUnique": false + } + }, + "foreignKeys": { + "forms_blocks_textarea_parent_id_fk": { + "name": "forms_blocks_textarea_parent_id_fk", + "tableFrom": "forms_blocks_textarea", + "tableTo": "forms", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_blocks_textarea_locales": { + "name": "forms_blocks_textarea_locales", + "columns": { + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "default_value": { + "name": "default_value", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "forms_blocks_textarea_locales_locale_parent_id_unique": { + "name": "forms_blocks_textarea_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "forms_blocks_textarea_locales_parent_id_fk": { + "name": "forms_blocks_textarea_locales_parent_id_fk", + "tableFrom": "forms_blocks_textarea_locales", + "tableTo": "forms_blocks_textarea", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_emails": { + "name": "forms_emails", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "email_to": { + "name": "email_to", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "cc": { + "name": "cc", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "bcc": { + "name": "bcc", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "reply_to": { + "name": "reply_to", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "email_from": { + "name": "email_from", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_emails_order_idx": { + "name": "forms_emails_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "forms_emails_parent_id_idx": { + "name": "forms_emails_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "forms_emails_parent_id_fk": { + "name": "forms_emails_parent_id_fk", + "tableFrom": "forms_emails", + "tableTo": "forms", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_emails_locales": { + "name": "forms_emails_locales", + "columns": { + "subject": { + "name": "subject", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'You''ve received a new message.'" + }, + "message": { + "name": "message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "forms_emails_locales_locale_parent_id_unique": { + "name": "forms_emails_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "forms_emails_locales_parent_id_fk": { + "name": "forms_emails_locales_parent_id_fk", + "tableFrom": "forms_emails_locales", + "tableTo": "forms_emails", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms": { + "name": "forms", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "confirmation_type": { + "name": "confirmation_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'message'" + }, + "redirect_type": { + "name": "redirect_type", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'reference'" + }, + "redirect_url": { + "name": "redirect_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "updated_at": { + "name": "updated_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + } + }, + "indexes": { + "forms_updated_at_idx": { + "name": "forms_updated_at_idx", + "columns": [ + "updated_at" + ], + "isUnique": false + }, + "forms_created_at_idx": { + "name": "forms_created_at_idx", + "columns": [ + "created_at" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_locales": { + "name": "forms_locales", + "columns": { + "submit_button_label": { + "name": "submit_button_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "confirmation_message": { + "name": "confirmation_message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "forms_locales_locale_parent_id_unique": { + "name": "forms_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "forms_locales_parent_id_fk": { + "name": "forms_locales_parent_id_fk", + "tableFrom": "forms_locales", + "tableTo": "forms", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "forms_rels": { + "name": "forms_rels", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "order": { + "name": "order", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "parent_id": { + "name": "parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "pages_id": { + "name": "pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "forms_rels_order_idx": { + "name": "forms_rels_order_idx", + "columns": [ + "order" + ], + "isUnique": false + }, + "forms_rels_parent_idx": { + "name": "forms_rels_parent_idx", + "columns": [ + "parent_id" + ], + "isUnique": false + }, + "forms_rels_path_idx": { + "name": "forms_rels_path_idx", + "columns": [ + "path" + ], + "isUnique": false + }, + "forms_rels_pages_id_idx": { + "name": "forms_rels_pages_id_idx", + "columns": [ + "pages_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "forms_rels_parent_fk": { + "name": "forms_rels_parent_fk", + "tableFrom": "forms_rels", + "tableTo": "forms", + "columnsFrom": [ + "parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "forms_rels_pages_fk": { + "name": "forms_rels_pages_fk", + "tableFrom": "forms_rels", + "tableTo": "pages", + "columnsFrom": [ + "pages_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "form_submissions_submission_data": { + "name": "form_submissions_submission_data", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "field": { + "name": "field", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "value": { + "name": "value", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "form_submissions_submission_data_order_idx": { + "name": "form_submissions_submission_data_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "form_submissions_submission_data_parent_id_idx": { + "name": "form_submissions_submission_data_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "form_submissions_submission_data_parent_id_fk": { + "name": "form_submissions_submission_data_parent_id_fk", + "tableFrom": "form_submissions_submission_data", + "tableTo": "form_submissions", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "form_submissions": { + "name": "form_submissions", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "form_id": { + "name": "form_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "updated_at": { + "name": "updated_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + } + }, + "indexes": { + "form_submissions_form_idx": { + "name": "form_submissions_form_idx", + "columns": [ + "form_id" + ], + "isUnique": false + }, + "form_submissions_updated_at_idx": { + "name": "form_submissions_updated_at_idx", + "columns": [ + "updated_at" + ], + "isUnique": false + }, + "form_submissions_created_at_idx": { + "name": "form_submissions_created_at_idx", + "columns": [ + "created_at" + ], + "isUnique": false + } + }, + "foreignKeys": { + "form_submissions_form_id_forms_id_fk": { + "name": "form_submissions_form_id_forms_id_fk", + "tableFrom": "form_submissions", + "tableTo": "forms", + "columnsFrom": [ + "form_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "payload_kv": { + "name": "payload_kv", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "key": { + "name": "key", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "data": { + "name": "data", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "payload_kv_key_idx": { + "name": "payload_kv_key_idx", + "columns": [ + "key" + ], + "isUnique": true + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "payload_locked_documents": { + "name": "payload_locked_documents", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "global_slug": { + "name": "global_slug", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "updated_at": { + "name": "updated_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + } + }, + "indexes": { + "payload_locked_documents_global_slug_idx": { + "name": "payload_locked_documents_global_slug_idx", + "columns": [ + "global_slug" + ], + "isUnique": false + }, + "payload_locked_documents_updated_at_idx": { + "name": "payload_locked_documents_updated_at_idx", + "columns": [ + "updated_at" + ], + "isUnique": false + }, + "payload_locked_documents_created_at_idx": { + "name": "payload_locked_documents_created_at_idx", + "columns": [ + "created_at" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "payload_locked_documents_rels": { + "name": "payload_locked_documents_rels", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "order": { + "name": "order", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "parent_id": { + "name": "parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "users_id": { + "name": "users_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "media_id": { + "name": "media_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "pages_id": { + "name": "pages_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "forms_id": { + "name": "forms_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "form_submissions_id": { + "name": "form_submissions_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "payload_locked_documents_rels_order_idx": { + "name": "payload_locked_documents_rels_order_idx", + "columns": [ + "order" + ], + "isUnique": false + }, + "payload_locked_documents_rels_parent_idx": { + "name": "payload_locked_documents_rels_parent_idx", + "columns": [ + "parent_id" + ], + "isUnique": false + }, + "payload_locked_documents_rels_path_idx": { + "name": "payload_locked_documents_rels_path_idx", + "columns": [ + "path" + ], + "isUnique": false + }, + "payload_locked_documents_rels_users_id_idx": { + "name": "payload_locked_documents_rels_users_id_idx", + "columns": [ + "users_id" + ], + "isUnique": false + }, + "payload_locked_documents_rels_media_id_idx": { + "name": "payload_locked_documents_rels_media_id_idx", + "columns": [ + "media_id" + ], + "isUnique": false + }, + "payload_locked_documents_rels_pages_id_idx": { + "name": "payload_locked_documents_rels_pages_id_idx", + "columns": [ + "pages_id" + ], + "isUnique": false + }, + "payload_locked_documents_rels_forms_id_idx": { + "name": "payload_locked_documents_rels_forms_id_idx", + "columns": [ + "forms_id" + ], + "isUnique": false + }, + "payload_locked_documents_rels_form_submissions_id_idx": { + "name": "payload_locked_documents_rels_form_submissions_id_idx", + "columns": [ + "form_submissions_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "payload_locked_documents_rels_parent_fk": { + "name": "payload_locked_documents_rels_parent_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "payload_locked_documents", + "columnsFrom": [ + "parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_users_fk": { + "name": "payload_locked_documents_rels_users_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "users", + "columnsFrom": [ + "users_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_media_fk": { + "name": "payload_locked_documents_rels_media_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "media", + "columnsFrom": [ + "media_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_pages_fk": { + "name": "payload_locked_documents_rels_pages_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "pages", + "columnsFrom": [ + "pages_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_forms_fk": { + "name": "payload_locked_documents_rels_forms_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "forms", + "columnsFrom": [ + "forms_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_locked_documents_rels_form_submissions_fk": { + "name": "payload_locked_documents_rels_form_submissions_fk", + "tableFrom": "payload_locked_documents_rels", + "tableTo": "form_submissions", + "columnsFrom": [ + "form_submissions_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "payload_preferences": { + "name": "payload_preferences", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "key": { + "name": "key", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "value": { + "name": "value", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "updated_at": { + "name": "updated_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + } + }, + "indexes": { + "payload_preferences_key_idx": { + "name": "payload_preferences_key_idx", + "columns": [ + "key" + ], + "isUnique": false + }, + "payload_preferences_updated_at_idx": { + "name": "payload_preferences_updated_at_idx", + "columns": [ + "updated_at" + ], + "isUnique": false + }, + "payload_preferences_created_at_idx": { + "name": "payload_preferences_created_at_idx", + "columns": [ + "created_at" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "payload_preferences_rels": { + "name": "payload_preferences_rels", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "order": { + "name": "order", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "parent_id": { + "name": "parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "path": { + "name": "path", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "users_id": { + "name": "users_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "payload_preferences_rels_order_idx": { + "name": "payload_preferences_rels_order_idx", + "columns": [ + "order" + ], + "isUnique": false + }, + "payload_preferences_rels_parent_idx": { + "name": "payload_preferences_rels_parent_idx", + "columns": [ + "parent_id" + ], + "isUnique": false + }, + "payload_preferences_rels_path_idx": { + "name": "payload_preferences_rels_path_idx", + "columns": [ + "path" + ], + "isUnique": false + }, + "payload_preferences_rels_users_id_idx": { + "name": "payload_preferences_rels_users_id_idx", + "columns": [ + "users_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "payload_preferences_rels_parent_fk": { + "name": "payload_preferences_rels_parent_fk", + "tableFrom": "payload_preferences_rels", + "tableTo": "payload_preferences", + "columnsFrom": [ + "parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + }, + "payload_preferences_rels_users_fk": { + "name": "payload_preferences_rels_users_fk", + "tableFrom": "payload_preferences_rels", + "tableTo": "users", + "columnsFrom": [ + "users_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "payload_migrations": { + "name": "payload_migrations", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "batch": { + "name": "batch", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "updated_at": { + "name": "updated_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "(strftime('%Y-%m-%dT%H:%M:%fZ', 'now'))" + } + }, + "indexes": { + "payload_migrations_updated_at_idx": { + "name": "payload_migrations_updated_at_idx", + "columns": [ + "updated_at" + ], + "isUnique": false + }, + "payload_migrations_created_at_idx": { + "name": "payload_migrations_created_at_idx", + "columns": [ + "created_at" + ], + "isUnique": false + } + }, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "company": { + "name": "company", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "nip": { + "name": "nip", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'7542827484'" + }, + "regon": { + "name": "regon", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'521920102'" + }, + "address": { + "name": "address", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'ul. Opolska 7B'" + }, + "city": { + "name": "city", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'45-960 Opole'" + }, + "phone": { + "name": "phone", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'+48 668 973 737'" + }, + "email": { + "name": "email", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'it@intecion.com'" + }, + "updated_at": { + "name": "updated_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "company_locales": { + "name": "company_locales", + "columns": { + "name": { + "name": "name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'POI CLEAN HOUSE Dariusz Król'" + }, + "short_name": { + "name": "short_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'POI Clean House'" + }, + "region": { + "name": "region", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Opole, woj. opolskie, dolnośląskie i śląskie'" + }, + "working_hours": { + "name": "working_hours", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Poniedziałek - Sobota: 7:00 - 20:00'" + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "company_locales_locale_parent_id_unique": { + "name": "company_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "company_locales_parent_id_fk": { + "name": "company_locales_parent_id_fk", + "tableFrom": "company_locales", + "tableTo": "company", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigation_header_items": { + "name": "navigation_header_items", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "page_id": { + "name": "page_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "url": { + "name": "url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "navigation_header_items_order_idx": { + "name": "navigation_header_items_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "navigation_header_items_parent_id_idx": { + "name": "navigation_header_items_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "navigation_header_items_locale_idx": { + "name": "navigation_header_items_locale_idx", + "columns": [ + "_locale" + ], + "isUnique": false + }, + "navigation_header_items_page_idx": { + "name": "navigation_header_items_page_idx", + "columns": [ + "page_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "navigation_header_items_page_id_pages_id_fk": { + "name": "navigation_header_items_page_id_pages_id_fk", + "tableFrom": "navigation_header_items", + "tableTo": "pages", + "columnsFrom": [ + "page_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "navigation_header_items_parent_id_fk": { + "name": "navigation_header_items_parent_id_fk", + "tableFrom": "navigation_header_items", + "tableTo": "navigation", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigation_footer_items": { + "name": "navigation_footer_items", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "label": { + "name": "label", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "page_id": { + "name": "page_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "url": { + "name": "url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "navigation_footer_items_order_idx": { + "name": "navigation_footer_items_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "navigation_footer_items_parent_id_idx": { + "name": "navigation_footer_items_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + }, + "navigation_footer_items_locale_idx": { + "name": "navigation_footer_items_locale_idx", + "columns": [ + "_locale" + ], + "isUnique": false + }, + "navigation_footer_items_page_idx": { + "name": "navigation_footer_items_page_idx", + "columns": [ + "page_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "navigation_footer_items_page_id_pages_id_fk": { + "name": "navigation_footer_items_page_id_pages_id_fk", + "tableFrom": "navigation_footer_items", + "tableTo": "pages", + "columnsFrom": [ + "page_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "navigation_footer_items_parent_id_fk": { + "name": "navigation_footer_items_parent_id_fk", + "tableFrom": "navigation_footer_items", + "tableTo": "navigation", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigation": { + "name": "navigation", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "updated_at": { + "name": "updated_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "navigation_locales": { + "name": "navigation_locales", + "columns": { + "tagline": { + "name": "tagline", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Profesjonalne Mycie i Renowacja Nawierzchni Brukowych'" + }, + "phone_label": { + "name": "phone_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Infolinia / Bezpłatna wycena:'" + }, + "cta_button_label": { + "name": "cta_button_label", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'KONTAKT'" + }, + "cta_button_page_id": { + "name": "cta_button_page_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "cta_button_url": { + "name": "cta_button_url", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'#formularz-kontaktowy'" + }, + "footer_tagline": { + "name": "footer_tagline", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Wyspecjalizowane usługi mycia gorącowodnego, usuwania mchu, odplamiania oleju, spoinowania i impregnacji hydrofobowej nawierzchni brukowych.'" + }, + "nav_title": { + "name": "nav_title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Nawigacja'" + }, + "contact_title": { + "name": "contact_title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'Kontakt'" + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "navigation_cta_button_cta_button_page_idx": { + "name": "navigation_cta_button_cta_button_page_idx", + "columns": [ + "cta_button_page_id" + ], + "isUnique": false + }, + "navigation_locales_locale_parent_id_unique": { + "name": "navigation_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "navigation_locales_cta_button_page_id_pages_id_fk": { + "name": "navigation_locales_cta_button_page_id_pages_id_fk", + "tableFrom": "navigation_locales", + "tableTo": "pages", + "columnsFrom": [ + "cta_button_page_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "navigation_locales_parent_id_fk": { + "name": "navigation_locales_parent_id_fk", + "tableFrom": "navigation_locales", + "tableTo": "navigation", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "site_settings": { + "name": "site_settings", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "title_order": { + "name": "title_order", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'page-first'" + }, + "title_separator": { + "name": "title_separator", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'|'" + }, + "logo_id": { + "name": "logo_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "default_share_image_id": { + "name": "default_share_image_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "favicon_id": { + "name": "favicon_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "default_theme": { + "name": "default_theme", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false, + "default": "'light'" + }, + "allow_theme_toggle": { + "name": "allow_theme_toggle", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": true + }, + "homepage_id": { + "name": "homepage_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "privacy_policy_id": { + "name": "privacy_policy_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "cookie_policy_id": { + "name": "cookie_policy_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "terms_of_service_id": { + "name": "terms_of_service_id", + "type": "integer", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "updated_at": { + "name": "updated_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": { + "site_settings_logo_idx": { + "name": "site_settings_logo_idx", + "columns": [ + "logo_id" + ], + "isUnique": false + }, + "site_settings_default_share_image_idx": { + "name": "site_settings_default_share_image_idx", + "columns": [ + "default_share_image_id" + ], + "isUnique": false + }, + "site_settings_favicon_idx": { + "name": "site_settings_favicon_idx", + "columns": [ + "favicon_id" + ], + "isUnique": false + }, + "site_settings_homepage_idx": { + "name": "site_settings_homepage_idx", + "columns": [ + "homepage_id" + ], + "isUnique": false + }, + "site_settings_privacy_policy_idx": { + "name": "site_settings_privacy_policy_idx", + "columns": [ + "privacy_policy_id" + ], + "isUnique": false + }, + "site_settings_cookie_policy_idx": { + "name": "site_settings_cookie_policy_idx", + "columns": [ + "cookie_policy_id" + ], + "isUnique": false + }, + "site_settings_terms_of_service_idx": { + "name": "site_settings_terms_of_service_idx", + "columns": [ + "terms_of_service_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "site_settings_logo_id_media_id_fk": { + "name": "site_settings_logo_id_media_id_fk", + "tableFrom": "site_settings", + "tableTo": "media", + "columnsFrom": [ + "logo_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "site_settings_default_share_image_id_media_id_fk": { + "name": "site_settings_default_share_image_id_media_id_fk", + "tableFrom": "site_settings", + "tableTo": "media", + "columnsFrom": [ + "default_share_image_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "site_settings_favicon_id_media_id_fk": { + "name": "site_settings_favicon_id_media_id_fk", + "tableFrom": "site_settings", + "tableTo": "media", + "columnsFrom": [ + "favicon_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "site_settings_homepage_id_pages_id_fk": { + "name": "site_settings_homepage_id_pages_id_fk", + "tableFrom": "site_settings", + "tableTo": "pages", + "columnsFrom": [ + "homepage_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "site_settings_privacy_policy_id_pages_id_fk": { + "name": "site_settings_privacy_policy_id_pages_id_fk", + "tableFrom": "site_settings", + "tableTo": "pages", + "columnsFrom": [ + "privacy_policy_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "site_settings_cookie_policy_id_pages_id_fk": { + "name": "site_settings_cookie_policy_id_pages_id_fk", + "tableFrom": "site_settings", + "tableTo": "pages", + "columnsFrom": [ + "cookie_policy_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + }, + "site_settings_terms_of_service_id_pages_id_fk": { + "name": "site_settings_terms_of_service_id_pages_id_fk", + "tableFrom": "site_settings", + "tableTo": "pages", + "columnsFrom": [ + "terms_of_service_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "set null", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "site_settings_locales": { + "name": "site_settings_locales", + "columns": { + "site_name": { + "name": "site_name", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "site_settings_locales_locale_parent_id_unique": { + "name": "site_settings_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "site_settings_locales_parent_id_fk": { + "name": "site_settings_locales_parent_id_fk", + "tableFrom": "site_settings_locales", + "tableTo": "site_settings", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "site_integrations": { + "name": "site_integrations", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "ga4_measurement_id": { + "name": "ga4_measurement_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "gtm_container_id": { + "name": "gtm_container_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "turnstile_site_key": { + "name": "turnstile_site_key", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "turnstile_secret_key": { + "name": "turnstile_secret_key", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "email_transport": { + "name": "email_transport", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": "'smtp'" + }, + "smtp_host": { + "name": "smtp_host", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "smtp_port": { + "name": "smtp_port", + "type": "numeric", + "primaryKey": false, + "notNull": false, + "autoincrement": false, + "default": 587 + }, + "smtp_user": { + "name": "smtp_user", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "smtp_password": { + "name": "smtp_password", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "smtp_from_address": { + "name": "smtp_from_address", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "smtp_from_name": { + "name": "smtp_from_name", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "r2_bucket": { + "name": "r2_bucket", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "r2_endpoint": { + "name": "r2_endpoint", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "r2_access_key_id": { + "name": "r2_access_key_id", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "r2_secret_access_key": { + "name": "r2_secret_access_key", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "updated_at": { + "name": "updated_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "cookie_settings_categories": { + "name": "cookie_settings_categories", + "columns": { + "_order": { + "name": "_order", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "text", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "key": { + "name": "key", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "cookie_settings_categories_order_idx": { + "name": "cookie_settings_categories_order_idx", + "columns": [ + "_order" + ], + "isUnique": false + }, + "cookie_settings_categories_parent_id_idx": { + "name": "cookie_settings_categories_parent_id_idx", + "columns": [ + "_parent_id" + ], + "isUnique": false + } + }, + "foreignKeys": { + "cookie_settings_categories_parent_id_fk": { + "name": "cookie_settings_categories_parent_id_fk", + "tableFrom": "cookie_settings_categories", + "tableTo": "cookie_settings", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "cookie_settings_categories_locales": { + "name": "cookie_settings_categories_locales", + "columns": { + "title": { + "name": "title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "description": { + "name": "description", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "cookie_settings_categories_locales_locale_parent_id_unique": { + "name": "cookie_settings_categories_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "cookie_settings_categories_locales_parent_id_fk": { + "name": "cookie_settings_categories_locales_parent_id_fk", + "tableFrom": "cookie_settings_categories_locales", + "tableTo": "cookie_settings_categories", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "cookie_settings": { + "name": "cookie_settings", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "updated_at": { + "name": "updated_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "cookie_settings_locales": { + "name": "cookie_settings_locales", + "columns": { + "message": { + "name": "message", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "settings_title": { + "name": "settings_title", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "buttons_accept_all": { + "name": "buttons_accept_all", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "buttons_reject": { + "name": "buttons_reject", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "buttons_settings": { + "name": "buttons_settings", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "buttons_save": { + "name": "buttons_save", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "buttons_back": { + "name": "buttons_back", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "cookie_settings_locales_locale_parent_id_unique": { + "name": "cookie_settings_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "cookie_settings_locales_parent_id_fk": { + "name": "cookie_settings_locales_parent_id_fk", + "tableFrom": "cookie_settings_locales", + "tableTo": "cookie_settings", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "notifications": { + "name": "notifications", + "columns": { + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "updated_at": { + "name": "updated_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "created_at": { + "name": "created_at", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + } + }, + "indexes": {}, + "foreignKeys": {}, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + }, + "notifications_locales": { + "name": "notifications_locales", + "columns": { + "form_success": { + "name": "form_success", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "form_error": { + "name": "form_error", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "form_rate_limited": { + "name": "form_rate_limited", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "form_turnstile": { + "name": "form_turnstile", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "form_validation": { + "name": "form_validation", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "form_consent": { + "name": "form_consent", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "form_not_found": { + "name": "form_not_found", + "type": "text", + "primaryKey": false, + "notNull": false, + "autoincrement": false + }, + "id": { + "name": "id", + "type": "integer", + "primaryKey": true, + "notNull": true, + "autoincrement": false + }, + "_locale": { + "name": "_locale", + "type": "text", + "primaryKey": false, + "notNull": true, + "autoincrement": false + }, + "_parent_id": { + "name": "_parent_id", + "type": "integer", + "primaryKey": false, + "notNull": true, + "autoincrement": false + } + }, + "indexes": { + "notifications_locales_locale_parent_id_unique": { + "name": "notifications_locales_locale_parent_id_unique", + "columns": [ + "_locale", + "_parent_id" + ], + "isUnique": true + } + }, + "foreignKeys": { + "notifications_locales_parent_id_fk": { + "name": "notifications_locales_parent_id_fk", + "tableFrom": "notifications_locales", + "tableTo": "notifications", + "columnsFrom": [ + "_parent_id" + ], + "columnsTo": [ + "id" + ], + "onDelete": "cascade", + "onUpdate": "no action" + } + }, + "compositePrimaryKeys": {}, + "uniqueConstraints": {}, + "checkConstraints": {} + } + }, + "views": {}, + "enums": {}, + "_meta": { + "tables": {}, + "columns": {} + }, + "internal": { + "indexes": {} + }, + "id": "a8912ac9-588c-48eb-a44c-99a28ecf3eb9", + "prevId": "00000000-0000-0000-0000-000000000000" +} \ No newline at end of file diff --git a/src/migrations/20260826_011138_update_schema.ts b/src/migrations/20260826_011138_update_schema.ts new file mode 100644 index 0000000..04befe9 --- /dev/null +++ b/src/migrations/20260826_011138_update_schema.ts @@ -0,0 +1,76 @@ +import { MigrateUpArgs, MigrateDownArgs, sql } from '@payloadcms/db-sqlite' + +export async function up({ db, payload, req }: MigrateUpArgs): Promise { + await db.run(sql`PRAGMA foreign_keys=OFF;`) + await db.run(sql`CREATE TABLE \`__new_navigation_locales\` ( + \`tagline\` text DEFAULT 'Profesjonalne Mycie i Renowacja Nawierzchni Brukowych', + \`phone_label\` text DEFAULT 'Infolinia / Bezpłatna wycena:', + \`cta_button_label\` text DEFAULT 'KONTAKT', + \`cta_button_page_id\` integer, + \`cta_button_url\` text DEFAULT '#formularz-kontaktowy', + \`footer_tagline\` text DEFAULT 'Wyspecjalizowane usługi mycia gorącowodnego, usuwania mchu, odplamiania oleju, spoinowania i impregnacji hydrofobowej nawierzchni brukowych.', + \`nav_title\` text DEFAULT 'Nawigacja', + \`contact_title\` text DEFAULT 'Kontakt', + \`id\` integer PRIMARY KEY NOT NULL, + \`_locale\` text NOT NULL, + \`_parent_id\` integer NOT NULL, + FOREIGN KEY (\`cta_button_page_id\`) REFERENCES \`pages\`(\`id\`) ON UPDATE no action ON DELETE set null, + FOREIGN KEY (\`_parent_id\`) REFERENCES \`navigation\`(\`id\`) ON UPDATE no action ON DELETE cascade + ); + `) + await db.run(sql`INSERT INTO \`__new_navigation_locales\`("tagline", "phone_label", "cta_button_label", "cta_button_page_id", "cta_button_url", "footer_tagline", "nav_title", "contact_title", "id", "_locale", "_parent_id") SELECT "tagline", "phone_label", "cta_button_label", "cta_button_page_id", "cta_button_url", "footer_tagline", "nav_title", "contact_title", "id", "_locale", "_parent_id" FROM \`navigation_locales\`;`) + await db.run(sql`DROP TABLE \`navigation_locales\`;`) + await db.run(sql`ALTER TABLE \`__new_navigation_locales\` RENAME TO \`navigation_locales\`;`) + await db.run(sql`PRAGMA foreign_keys=ON;`) + await db.run(sql`CREATE INDEX \`navigation_cta_button_cta_button_page_idx\` ON \`navigation_locales\` (\`cta_button_page_id\`);`) + await db.run(sql`CREATE UNIQUE INDEX \`navigation_locales_locale_parent_id_unique\` ON \`navigation_locales\` (\`_locale\`,\`_parent_id\`);`) + await db.run(sql`ALTER TABLE \`pages_blocks_hero_locales\` ADD \`cta_secondary_url\` text;`) + await db.run(sql`ALTER TABLE \`pages_blocks_pricing_table_packages\` ADD \`popular_badge_label\` text DEFAULT 'Polecany Pakiet';`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` ADD \`direct_phone_label\` text DEFAULT 'Telefon bezpośredni';`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` ADD \`email_contact_label\` text DEFAULT 'Kontakt e-mail';`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` ADD \`working_hours_label\` text DEFAULT 'Godziny pracy';`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` ADD \`name_label\` text DEFAULT 'Imię i Nazwisko *';`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` ADD \`phone_input_label\` text DEFAULT 'Numer Telefonu *';`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` ADD \`location_label\` text DEFAULT 'Miejscowość';`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` ADD \`area_label\` text DEFAULT 'Szacowany Metraż (m²)';`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` ADD \`message_label\` text DEFAULT 'Zakres prac / stan nawierzchni';`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` ADD \`success_heading\` text DEFAULT 'Zgłoszenie zostało wysłane';`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` ADD \`success_message\` text DEFAULT 'Nasz doradca techniczny skontaktuje się z Państwem telefonicznie w celu przygotowania dokładnej wyceny.';`) + await db.run(sql`ALTER TABLE \`pages_blocks_blog_list_locales\` ADD \`read_more_label\` text DEFAULT 'Czytaj poradnik';`) +} + +export async function down({ db, payload, req }: MigrateDownArgs): Promise { + await db.run(sql`PRAGMA foreign_keys=OFF;`) + await db.run(sql`CREATE TABLE \`__new_navigation_locales\` ( + \`tagline\` text DEFAULT 'Czyszczenie Kostki Brukowej', + \`cta_button_label\` text DEFAULT 'Zadzwoń po wycenę', + \`cta_button_page_id\` integer, + \`cta_button_url\` text, + \`footer_tagline\` text DEFAULT 'Wyspecjalizowane usługi mycia gorącowodnego, usuwania mchu, odplamiania oleju, spoinowania i impregnacji hydrofobowej nawierzchni brukowych.', + \`id\` integer PRIMARY KEY NOT NULL, + \`_locale\` text NOT NULL, + \`_parent_id\` integer NOT NULL, + FOREIGN KEY (\`cta_button_page_id\`) REFERENCES \`pages\`(\`id\`) ON UPDATE no action ON DELETE set null, + FOREIGN KEY (\`_parent_id\`) REFERENCES \`navigation\`(\`id\`) ON UPDATE no action ON DELETE cascade + ); + `) + await db.run(sql`INSERT INTO \`__new_navigation_locales\`("tagline", "cta_button_label", "cta_button_page_id", "cta_button_url", "footer_tagline", "id", "_locale", "_parent_id") SELECT "tagline", "cta_button_label", "cta_button_page_id", "cta_button_url", "footer_tagline", "id", "_locale", "_parent_id" FROM \`navigation_locales\`;`) + await db.run(sql`DROP TABLE \`navigation_locales\`;`) + await db.run(sql`ALTER TABLE \`__new_navigation_locales\` RENAME TO \`navigation_locales\`;`) + await db.run(sql`PRAGMA foreign_keys=ON;`) + await db.run(sql`CREATE INDEX \`navigation_cta_button_cta_button_page_idx\` ON \`navigation_locales\` (\`cta_button_page_id\`);`) + await db.run(sql`CREATE UNIQUE INDEX \`navigation_locales_locale_parent_id_unique\` ON \`navigation_locales\` (\`_locale\`,\`_parent_id\`);`) + await db.run(sql`ALTER TABLE \`pages_blocks_hero_locales\` DROP COLUMN \`cta_secondary_url\`;`) + await db.run(sql`ALTER TABLE \`pages_blocks_pricing_table_packages\` DROP COLUMN \`popular_badge_label\`;`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` DROP COLUMN \`direct_phone_label\`;`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` DROP COLUMN \`email_contact_label\`;`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` DROP COLUMN \`working_hours_label\`;`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` DROP COLUMN \`name_label\`;`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` DROP COLUMN \`phone_input_label\`;`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` DROP COLUMN \`location_label\`;`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` DROP COLUMN \`area_label\`;`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` DROP COLUMN \`message_label\`;`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` DROP COLUMN \`success_heading\`;`) + await db.run(sql`ALTER TABLE \`pages_blocks_form_block_locales\` DROP COLUMN \`success_message\`;`) + await db.run(sql`ALTER TABLE \`pages_blocks_blog_list_locales\` DROP COLUMN \`read_more_label\`;`) +} diff --git a/src/migrations/index.ts b/src/migrations/index.ts index 44cc36d..11f6e53 100644 --- a/src/migrations/index.ts +++ b/src/migrations/index.ts @@ -1,9 +1,15 @@ import * as migration_20260826_005622_init from './20260826_005622_init'; +import * as migration_20260826_011138_update_schema from './20260826_011138_update_schema'; export const migrations = [ { up: migration_20260826_005622_init.up, down: migration_20260826_005622_init.down, - name: '20260826_005622_init' + name: '20260826_005622_init', + }, + { + up: migration_20260826_011138_update_schema.up, + down: migration_20260826_011138_update_schema.down, + name: '20260826_011138_update_schema' }, ];