-
diff --git a/apps/cms/src/migrations/20241218_093558_cod_213.json b/apps/cms/src/migrations/20241218_093558_cod_213.json
index cea948c12..170639cb4 100644
--- a/apps/cms/src/migrations/20241218_093558_cod_213.json
+++ b/apps/cms/src/migrations/20241218_093558_cod_213.json
@@ -147,12 +147,8 @@
"name": "articles_locales_parent_id_fk",
"tableFrom": "articles_locales",
"tableTo": "articles",
- "columnsFrom": [
- "_parent_id"
- ],
- "columnsTo": [
- "id"
- ],
+ "columnsFrom": ["_parent_id"],
+ "columnsTo": ["id"],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -162,10 +158,7 @@
"articles_locales_locale_parent_id_unique": {
"name": "articles_locales_locale_parent_id_unique",
"nullsNotDistinct": false,
- "columns": [
- "_locale",
- "_parent_id"
- ]
+ "columns": ["_locale", "_parent_id"]
}
}
},
@@ -312,12 +305,8 @@
"name": "pages_locales_parent_id_fk",
"tableFrom": "pages_locales",
"tableTo": "pages",
- "columnsFrom": [
- "_parent_id"
- ],
- "columnsTo": [
- "id"
- ],
+ "columnsFrom": ["_parent_id"],
+ "columnsTo": ["id"],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -327,10 +316,7 @@
"pages_locales_locale_parent_id_unique": {
"name": "pages_locales_locale_parent_id_unique",
"nullsNotDistinct": false,
- "columns": [
- "_locale",
- "_parent_id"
- ]
+ "columns": ["_locale", "_parent_id"]
}
}
},
@@ -722,12 +708,8 @@
"name": "payload_preferences_rels_parent_fk",
"tableFrom": "payload_preferences_rels",
"tableTo": "payload_preferences",
- "columnsFrom": [
- "parent_id"
- ],
- "columnsTo": [
- "id"
- ],
+ "columnsFrom": ["parent_id"],
+ "columnsTo": ["id"],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -735,12 +717,8 @@
"name": "payload_preferences_rels_tenants_fk",
"tableFrom": "payload_preferences_rels",
"tableTo": "tenants",
- "columnsFrom": [
- "tenants_id"
- ],
- "columnsTo": [
- "id"
- ],
+ "columnsFrom": ["tenants_id"],
+ "columnsTo": ["id"],
"onDelete": "cascade",
"onUpdate": "no action"
},
@@ -748,12 +726,8 @@
"name": "payload_preferences_rels_users_fk",
"tableFrom": "payload_preferences_rels",
"tableTo": "users",
- "columnsFrom": [
- "users_id"
- ],
- "columnsTo": [
- "id"
- ],
+ "columnsFrom": ["users_id"],
+ "columnsTo": ["id"],
"onDelete": "cascade",
"onUpdate": "no action"
}
@@ -824,18 +798,12 @@
"public._locales": {
"name": "_locales",
"schema": "public",
- "values": [
- "en",
- "sv"
- ]
+ "values": ["en", "sv"]
},
"public.enum_users_role": {
"name": "enum_users_role",
"schema": "public",
- "values": [
- "admin",
- "user"
- ]
+ "values": ["admin", "user"]
}
},
"schemas": {},
@@ -845,4 +813,4 @@
"tables": {},
"columns": {}
}
-}
\ No newline at end of file
+}
diff --git a/apps/cms/src/migrations/20250328_154057_cod_296.json b/apps/cms/src/migrations/20250328_154057_cod_296.json
new file mode 100644
index 000000000..e32971898
--- /dev/null
+++ b/apps/cms/src/migrations/20250328_154057_cod_296.json
@@ -0,0 +1,5898 @@
+{
+ "id": "19912317-966f-4f40-aab6-f7d774b7ebca",
+ "prevId": "00000000-0000-0000-0000-000000000000",
+ "version": "7",
+ "dialect": "postgresql",
+ "tables": {
+ "public.categories": {
+ "name": "categories",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "tenant_id": {
+ "name": "tenant_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "slug": {
+ "name": "slug",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "categories_tenant_idx": {
+ "name": "categories_tenant_idx",
+ "columns": [
+ {
+ "expression": "tenant_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "categories_slug_idx": {
+ "name": "categories_slug_idx",
+ "columns": [
+ {
+ "expression": "slug",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "categories_updated_at_idx": {
+ "name": "categories_updated_at_idx",
+ "columns": [
+ {
+ "expression": "updated_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "categories_created_at_idx": {
+ "name": "categories_created_at_idx",
+ "columns": [
+ {
+ "expression": "created_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "categories_tenant_id_tenants_id_fk": {
+ "name": "categories_tenant_id_tenants_id_fk",
+ "tableFrom": "categories",
+ "tableTo": "tenants",
+ "columnsFrom": ["tenant_id"],
+ "columnsTo": ["id"],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.categories_locales": {
+ "name": "categories_locales",
+ "schema": "",
+ "columns": {
+ "name": {
+ "name": "name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "categories_locales_locale_parent_id_unique": {
+ "name": "categories_locales_locale_parent_id_unique",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "categories_locales_parent_id_fk": {
+ "name": "categories_locales_parent_id_fk",
+ "tableFrom": "categories_locales",
+ "tableTo": "categories",
+ "columnsFrom": ["_parent_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.media": {
+ "name": "media",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "tenant_id": {
+ "name": "tenant_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "alt": {
+ "name": "alt",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "prefix": {
+ "name": "prefix",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'media'"
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "url": {
+ "name": "url",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "thumbnail_u_r_l": {
+ "name": "thumbnail_u_r_l",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "filename": {
+ "name": "filename",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "mime_type": {
+ "name": "mime_type",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "filesize": {
+ "name": "filesize",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "width": {
+ "name": "width",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "height": {
+ "name": "height",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "focal_x": {
+ "name": "focal_x",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "focal_y": {
+ "name": "focal_y",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_thumbnail_url": {
+ "name": "sizes_thumbnail_url",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_thumbnail_width": {
+ "name": "sizes_thumbnail_width",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_thumbnail_height": {
+ "name": "sizes_thumbnail_height",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_thumbnail_mime_type": {
+ "name": "sizes_thumbnail_mime_type",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_thumbnail_filesize": {
+ "name": "sizes_thumbnail_filesize",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_thumbnail_filename": {
+ "name": "sizes_thumbnail_filename",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_square_url": {
+ "name": "sizes_square_url",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_square_width": {
+ "name": "sizes_square_width",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_square_height": {
+ "name": "sizes_square_height",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_square_mime_type": {
+ "name": "sizes_square_mime_type",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_square_filesize": {
+ "name": "sizes_square_filesize",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_square_filename": {
+ "name": "sizes_square_filename",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_small_url": {
+ "name": "sizes_small_url",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_small_width": {
+ "name": "sizes_small_width",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_small_height": {
+ "name": "sizes_small_height",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_small_mime_type": {
+ "name": "sizes_small_mime_type",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_small_filesize": {
+ "name": "sizes_small_filesize",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_small_filename": {
+ "name": "sizes_small_filename",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_medium_url": {
+ "name": "sizes_medium_url",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_medium_width": {
+ "name": "sizes_medium_width",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_medium_height": {
+ "name": "sizes_medium_height",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_medium_mime_type": {
+ "name": "sizes_medium_mime_type",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_medium_filesize": {
+ "name": "sizes_medium_filesize",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_medium_filename": {
+ "name": "sizes_medium_filename",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_large_url": {
+ "name": "sizes_large_url",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_large_width": {
+ "name": "sizes_large_width",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_large_height": {
+ "name": "sizes_large_height",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_large_mime_type": {
+ "name": "sizes_large_mime_type",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_large_filesize": {
+ "name": "sizes_large_filesize",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_large_filename": {
+ "name": "sizes_large_filename",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_xlarge_url": {
+ "name": "sizes_xlarge_url",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_xlarge_width": {
+ "name": "sizes_xlarge_width",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_xlarge_height": {
+ "name": "sizes_xlarge_height",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_xlarge_mime_type": {
+ "name": "sizes_xlarge_mime_type",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_xlarge_filesize": {
+ "name": "sizes_xlarge_filesize",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_xlarge_filename": {
+ "name": "sizes_xlarge_filename",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_og_url": {
+ "name": "sizes_og_url",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_og_width": {
+ "name": "sizes_og_width",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_og_height": {
+ "name": "sizes_og_height",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_og_mime_type": {
+ "name": "sizes_og_mime_type",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_og_filesize": {
+ "name": "sizes_og_filesize",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "sizes_og_filename": {
+ "name": "sizes_og_filename",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "media_tenant_idx": {
+ "name": "media_tenant_idx",
+ "columns": [
+ {
+ "expression": "tenant_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "media_updated_at_idx": {
+ "name": "media_updated_at_idx",
+ "columns": [
+ {
+ "expression": "updated_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "media_created_at_idx": {
+ "name": "media_created_at_idx",
+ "columns": [
+ {
+ "expression": "created_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "media_filename_idx": {
+ "name": "media_filename_idx",
+ "columns": [
+ {
+ "expression": "filename",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "media_sizes_thumbnail_sizes_thumbnail_filename_idx": {
+ "name": "media_sizes_thumbnail_sizes_thumbnail_filename_idx",
+ "columns": [
+ {
+ "expression": "sizes_thumbnail_filename",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "media_sizes_square_sizes_square_filename_idx": {
+ "name": "media_sizes_square_sizes_square_filename_idx",
+ "columns": [
+ {
+ "expression": "sizes_square_filename",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "media_sizes_small_sizes_small_filename_idx": {
+ "name": "media_sizes_small_sizes_small_filename_idx",
+ "columns": [
+ {
+ "expression": "sizes_small_filename",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "media_sizes_medium_sizes_medium_filename_idx": {
+ "name": "media_sizes_medium_sizes_medium_filename_idx",
+ "columns": [
+ {
+ "expression": "sizes_medium_filename",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "media_sizes_large_sizes_large_filename_idx": {
+ "name": "media_sizes_large_sizes_large_filename_idx",
+ "columns": [
+ {
+ "expression": "sizes_large_filename",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "media_sizes_xlarge_sizes_xlarge_filename_idx": {
+ "name": "media_sizes_xlarge_sizes_xlarge_filename_idx",
+ "columns": [
+ {
+ "expression": "sizes_xlarge_filename",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "media_sizes_og_sizes_og_filename_idx": {
+ "name": "media_sizes_og_sizes_og_filename_idx",
+ "columns": [
+ {
+ "expression": "sizes_og_filename",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "media_tenant_id_tenants_id_fk": {
+ "name": "media_tenant_id_tenants_id_fk",
+ "tableFrom": "media",
+ "tableTo": "tenants",
+ "columnsFrom": ["tenant_id"],
+ "columnsTo": ["id"],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.media_locales": {
+ "name": "media_locales",
+ "schema": "",
+ "columns": {
+ "caption": {
+ "name": "caption",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "media_locales_locale_parent_id_unique": {
+ "name": "media_locales_locale_parent_id_unique",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.pages_blocks_content_columns": {
+ "name": "pages_blocks_content_columns",
+ "schema": "",
+ "columns": {
+ "_order": {
+ "name": "_order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "varchar",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "size": {
+ "name": "size",
+ "type": "enum_pages_blocks_content_columns_size",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'full'"
+ },
+ "rich_text": {
+ "name": "rich_text",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "pages_blocks_content_columns_order_idx": {
+ "name": "pages_blocks_content_columns_order_idx",
+ "columns": [
+ {
+ "expression": "_order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_blocks_content_columns_parent_id_idx": {
+ "name": "pages_blocks_content_columns_parent_id_idx",
+ "columns": [
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_blocks_content_columns_locale_idx": {
+ "name": "pages_blocks_content_columns_locale_idx",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "pages_blocks_content_columns_parent_id_fk": {
+ "name": "pages_blocks_content_columns_parent_id_fk",
+ "tableFrom": "pages_blocks_content_columns",
+ "tableTo": "pages_blocks_content",
+ "columnsFrom": ["_parent_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.pages_blocks_content": {
+ "name": "pages_blocks_content",
+ "schema": "",
+ "columns": {
+ "_order": {
+ "name": "_order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_path": {
+ "name": "_path",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "varchar",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "block_name": {
+ "name": "block_name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "pages_blocks_content_order_idx": {
+ "name": "pages_blocks_content_order_idx",
+ "columns": [
+ {
+ "expression": "_order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_blocks_content_parent_id_idx": {
+ "name": "pages_blocks_content_parent_id_idx",
+ "columns": [
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_blocks_content_path_idx": {
+ "name": "pages_blocks_content_path_idx",
+ "columns": [
+ {
+ "expression": "_path",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_blocks_content_locale_idx": {
+ "name": "pages_blocks_content_locale_idx",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.pages_blocks_form": {
+ "name": "pages_blocks_form",
+ "schema": "",
+ "columns": {
+ "_order": {
+ "name": "_order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_path": {
+ "name": "_path",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "varchar",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "form_id": {
+ "name": "form_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "enable_intro": {
+ "name": "enable_intro",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "intro_content": {
+ "name": "intro_content",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "block_name": {
+ "name": "block_name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "pages_blocks_form_order_idx": {
+ "name": "pages_blocks_form_order_idx",
+ "columns": [
+ {
+ "expression": "_order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_blocks_form_parent_id_idx": {
+ "name": "pages_blocks_form_parent_id_idx",
+ "columns": [
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_blocks_form_path_idx": {
+ "name": "pages_blocks_form_path_idx",
+ "columns": [
+ {
+ "expression": "_path",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_blocks_form_locale_idx": {
+ "name": "pages_blocks_form_locale_idx",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_blocks_form_form_idx": {
+ "name": "pages_blocks_form_form_idx",
+ "columns": [
+ {
+ "expression": "form_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "pages_blocks_form_form_id_forms_id_fk": {
+ "name": "pages_blocks_form_form_id_forms_id_fk",
+ "tableFrom": "pages_blocks_form",
+ "tableTo": "forms",
+ "columnsFrom": ["form_id"],
+ "columnsTo": ["id"],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "pages_blocks_form_parent_id_fk": {
+ "name": "pages_blocks_form_parent_id_fk",
+ "tableFrom": "pages_blocks_form",
+ "tableTo": "pages",
+ "columnsFrom": ["_parent_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.pages_blocks_media": {
+ "name": "pages_blocks_media",
+ "schema": "",
+ "columns": {
+ "_order": {
+ "name": "_order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_path": {
+ "name": "_path",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "varchar",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "media_id": {
+ "name": "media_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "block_name": {
+ "name": "block_name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "pages_blocks_media_order_idx": {
+ "name": "pages_blocks_media_order_idx",
+ "columns": [
+ {
+ "expression": "_order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_blocks_media_parent_id_idx": {
+ "name": "pages_blocks_media_parent_id_idx",
+ "columns": [
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_blocks_media_path_idx": {
+ "name": "pages_blocks_media_path_idx",
+ "columns": [
+ {
+ "expression": "_path",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_blocks_media_locale_idx": {
+ "name": "pages_blocks_media_locale_idx",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_blocks_media_media_idx": {
+ "name": "pages_blocks_media_media_idx",
+ "columns": [
+ {
+ "expression": "media_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "pages_blocks_media_media_id_media_id_fk": {
+ "name": "pages_blocks_media_media_id_media_id_fk",
+ "tableFrom": "pages_blocks_media",
+ "tableTo": "media",
+ "columnsFrom": ["media_id"],
+ "columnsTo": ["id"],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "pages_blocks_media_parent_id_fk": {
+ "name": "pages_blocks_media_parent_id_fk",
+ "tableFrom": "pages_blocks_media",
+ "tableTo": "pages",
+ "columnsFrom": ["_parent_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.pages_blocks_code": {
+ "name": "pages_blocks_code",
+ "schema": "",
+ "columns": {
+ "_order": {
+ "name": "_order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_path": {
+ "name": "_path",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "varchar",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "language": {
+ "name": "language",
+ "type": "enum_pages_blocks_code_language",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'ts'"
+ },
+ "code": {
+ "name": "code",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "block_name": {
+ "name": "block_name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "pages_blocks_code_order_idx": {
+ "name": "pages_blocks_code_order_idx",
+ "columns": [
+ {
+ "expression": "_order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_blocks_code_parent_id_idx": {
+ "name": "pages_blocks_code_parent_id_idx",
+ "columns": [
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_blocks_code_path_idx": {
+ "name": "pages_blocks_code_path_idx",
+ "columns": [
+ {
+ "expression": "_path",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_blocks_code_locale_idx": {
+ "name": "pages_blocks_code_locale_idx",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "pages_blocks_code_parent_id_fk": {
+ "name": "pages_blocks_code_parent_id_fk",
+ "tableFrom": "pages_blocks_code",
+ "tableTo": "pages",
+ "columnsFrom": ["_parent_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.pages": {
+ "name": "pages",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "tenant_id": {
+ "name": "tenant_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "published_at": {
+ "name": "published_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "slug": {
+ "name": "slug",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "pages_tenant_idx": {
+ "name": "pages_tenant_idx",
+ "columns": [
+ {
+ "expression": "tenant_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_slug_idx": {
+ "name": "pages_slug_idx",
+ "columns": [
+ {
+ "expression": "slug",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_updated_at_idx": {
+ "name": "pages_updated_at_idx",
+ "columns": [
+ {
+ "expression": "updated_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_created_at_idx": {
+ "name": "pages_created_at_idx",
+ "columns": [
+ {
+ "expression": "created_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "pages_tenant_id_tenants_id_fk": {
+ "name": "pages_tenant_id_tenants_id_fk",
+ "tableFrom": "pages",
+ "tableTo": "tenants",
+ "columnsFrom": ["tenant_id"],
+ "columnsTo": ["id"],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.pages_locales": {
+ "name": "pages_locales",
+ "schema": "",
+ "columns": {
+ "name": {
+ "name": "name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "header": {
+ "name": "header",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "''"
+ },
+ "meta_title": {
+ "name": "meta_title",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "meta_image_id": {
+ "name": "meta_image_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "meta_description": {
+ "name": "meta_description",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "pages_meta_meta_image_idx": {
+ "name": "pages_meta_meta_image_idx",
+ "columns": [
+ {
+ "expression": "meta_image_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "pages_locales_locale_parent_id_unique": {
+ "name": "pages_locales_locale_parent_id_unique",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.posts": {
+ "name": "posts",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "tenant_id": {
+ "name": "tenant_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "hero_image_id": {
+ "name": "hero_image_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "published_at": {
+ "name": "published_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "slug": {
+ "name": "slug",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "posts_tenant_idx": {
+ "name": "posts_tenant_idx",
+ "columns": [
+ {
+ "expression": "tenant_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "posts_hero_image_idx": {
+ "name": "posts_hero_image_idx",
+ "columns": [
+ {
+ "expression": "hero_image_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "posts_slug_idx": {
+ "name": "posts_slug_idx",
+ "columns": [
+ {
+ "expression": "slug",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "posts_updated_at_idx": {
+ "name": "posts_updated_at_idx",
+ "columns": [
+ {
+ "expression": "updated_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "posts_created_at_idx": {
+ "name": "posts_created_at_idx",
+ "columns": [
+ {
+ "expression": "created_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "posts_tenant_id_tenants_id_fk": {
+ "name": "posts_tenant_id_tenants_id_fk",
+ "tableFrom": "posts",
+ "tableTo": "tenants",
+ "columnsFrom": ["tenant_id"],
+ "columnsTo": ["id"],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "posts_hero_image_id_media_id_fk": {
+ "name": "posts_hero_image_id_media_id_fk",
+ "tableFrom": "posts",
+ "tableTo": "media",
+ "columnsFrom": ["hero_image_id"],
+ "columnsTo": ["id"],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.posts_locales": {
+ "name": "posts_locales",
+ "schema": "",
+ "columns": {
+ "title": {
+ "name": "title",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "content": {
+ "name": "content",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "meta_title": {
+ "name": "meta_title",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "meta_image_id": {
+ "name": "meta_image_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "meta_description": {
+ "name": "meta_description",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "posts_meta_meta_image_idx": {
+ "name": "posts_meta_meta_image_idx",
+ "columns": [
+ {
+ "expression": "meta_image_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "posts_locales_locale_parent_id_unique": {
+ "name": "posts_locales_locale_parent_id_unique",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "posts_locales_meta_image_id_media_id_fk": {
+ "name": "posts_locales_meta_image_id_media_id_fk",
+ "tableFrom": "posts_locales",
+ "tableTo": "media",
+ "columnsFrom": ["meta_image_id"],
+ "columnsTo": ["id"],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "posts_locales_parent_id_fk": {
+ "name": "posts_locales_parent_id_fk",
+ "tableFrom": "posts_locales",
+ "tableTo": "posts",
+ "columnsFrom": ["_parent_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.posts_rels": {
+ "name": "posts_rels",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "order": {
+ "name": "order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "parent_id": {
+ "name": "parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "path": {
+ "name": "path",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "posts_id": {
+ "name": "posts_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "categories_id": {
+ "name": "categories_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "users_id": {
+ "name": "users_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "posts_rels_order_idx": {
+ "name": "posts_rels_order_idx",
+ "columns": [
+ {
+ "expression": "order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "posts_rels_parent_idx": {
+ "name": "posts_rels_parent_idx",
+ "columns": [
+ {
+ "expression": "parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "posts_rels_path_idx": {
+ "name": "posts_rels_path_idx",
+ "columns": [
+ {
+ "expression": "path",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "posts_rels_posts_id_idx": {
+ "name": "posts_rels_posts_id_idx",
+ "columns": [
+ {
+ "expression": "posts_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "posts_rels_categories_id_idx": {
+ "name": "posts_rels_categories_id_idx",
+ "columns": [
+ {
+ "expression": "categories_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "posts_rels_users_id_idx": {
+ "name": "posts_rels_users_id_idx",
+ "columns": [
+ {
+ "expression": "users_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "posts_rels_parent_fk": {
+ "name": "posts_rels_parent_fk",
+ "tableFrom": "posts_rels",
+ "tableTo": "posts",
+ "columnsFrom": ["parent_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "posts_rels_posts_fk": {
+ "name": "posts_rels_posts_fk",
+ "tableFrom": "posts_rels",
+ "tableTo": "posts",
+ "columnsFrom": ["posts_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "posts_rels_categories_fk": {
+ "name": "posts_rels_categories_fk",
+ "tableFrom": "posts_rels",
+ "tableTo": "categories",
+ "columnsFrom": ["categories_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "posts_rels_users_fk": {
+ "name": "posts_rels_users_fk",
+ "tableFrom": "posts_rels",
+ "tableTo": "users",
+ "columnsFrom": ["users_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.tenants_domains_page_types": {
+ "name": "tenants_domains_page_types",
+ "schema": "",
+ "columns": {
+ "order": {
+ "name": "order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "parent_id": {
+ "name": "parent_id",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "value": {
+ "name": "value",
+ "type": "enum_tenants_domains_page_types",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "tenants_domains_page_types_order_idx": {
+ "name": "tenants_domains_page_types_order_idx",
+ "columns": [
+ {
+ "expression": "order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "tenants_domains_page_types_parent_idx": {
+ "name": "tenants_domains_page_types_parent_idx",
+ "columns": [
+ {
+ "expression": "parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "tenants_domains_page_types_parent_fk": {
+ "name": "tenants_domains_page_types_parent_fk",
+ "tableFrom": "tenants_domains_page_types",
+ "tableTo": "tenants_domains",
+ "columnsFrom": ["parent_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.tenants_domains": {
+ "name": "tenants_domains",
+ "schema": "",
+ "columns": {
+ "_order": {
+ "name": "_order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "varchar",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "domain": {
+ "name": "domain",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "tenants_domains_order_idx": {
+ "name": "tenants_domains_order_idx",
+ "columns": [
+ {
+ "expression": "_order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "tenants_domains_parent_id_idx": {
+ "name": "tenants_domains_parent_id_idx",
+ "columns": [
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "tenants_domains_parent_id_fk": {
+ "name": "tenants_domains_parent_id_fk",
+ "tableFrom": "tenants_domains",
+ "tableTo": "tenants",
+ "columnsFrom": ["_parent_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.tenants": {
+ "name": "tenants",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "description": {
+ "name": "description",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "slug": {
+ "name": "slug",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "enable_a_p_i_key": {
+ "name": "enable_a_p_i_key",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "api_key": {
+ "name": "api_key",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "api_key_index": {
+ "name": "api_key_index",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "tenants_slug_idx": {
+ "name": "tenants_slug_idx",
+ "columns": [
+ {
+ "expression": "slug",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "tenants_updated_at_idx": {
+ "name": "tenants_updated_at_idx",
+ "columns": [
+ {
+ "expression": "updated_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "tenants_created_at_idx": {
+ "name": "tenants_created_at_idx",
+ "columns": [
+ {
+ "expression": "created_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.users_tenants": {
+ "name": "users_tenants",
+ "schema": "",
+ "columns": {
+ "_order": {
+ "name": "_order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "varchar",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "tenant_id": {
+ "name": "tenant_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "enum_users_tenants_role",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'user'"
+ }
+ },
+ "indexes": {
+ "users_tenants_order_idx": {
+ "name": "users_tenants_order_idx",
+ "columns": [
+ {
+ "expression": "_order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "users_tenants_parent_id_idx": {
+ "name": "users_tenants_parent_id_idx",
+ "columns": [
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "users_tenants_tenant_idx": {
+ "name": "users_tenants_tenant_idx",
+ "columns": [
+ {
+ "expression": "tenant_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "users_tenants_tenant_id_tenants_id_fk": {
+ "name": "users_tenants_tenant_id_tenants_id_fk",
+ "tableFrom": "users_tenants",
+ "tableTo": "tenants",
+ "columnsFrom": ["tenant_id"],
+ "columnsTo": ["id"],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "users_tenants_parent_id_fk": {
+ "name": "users_tenants_parent_id_fk",
+ "tableFrom": "users_tenants",
+ "tableTo": "users",
+ "columnsFrom": ["_parent_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.users": {
+ "name": "users",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "role": {
+ "name": "role",
+ "type": "enum_users_role",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'user'"
+ },
+ "description": {
+ "name": "description",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "email": {
+ "name": "email",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "reset_password_token": {
+ "name": "reset_password_token",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "reset_password_expiration": {
+ "name": "reset_password_expiration",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "salt": {
+ "name": "salt",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "hash": {
+ "name": "hash",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "login_attempts": {
+ "name": "login_attempts",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false,
+ "default": 0
+ },
+ "lock_until": {
+ "name": "lock_until",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "users_updated_at_idx": {
+ "name": "users_updated_at_idx",
+ "columns": [
+ {
+ "expression": "updated_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "users_created_at_idx": {
+ "name": "users_created_at_idx",
+ "columns": [
+ {
+ "expression": "created_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "users_email_idx": {
+ "name": "users_email_idx",
+ "columns": [
+ {
+ "expression": "email",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_blocks_checkbox": {
+ "name": "forms_blocks_checkbox",
+ "schema": "",
+ "columns": {
+ "_order": {
+ "name": "_order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_path": {
+ "name": "_path",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "varchar",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "width": {
+ "name": "width",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "required": {
+ "name": "required",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "default_value": {
+ "name": "default_value",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "block_name": {
+ "name": "block_name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "forms_blocks_checkbox_order_idx": {
+ "name": "forms_blocks_checkbox_order_idx",
+ "columns": [
+ {
+ "expression": "_order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_blocks_checkbox_parent_id_idx": {
+ "name": "forms_blocks_checkbox_parent_id_idx",
+ "columns": [
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_blocks_checkbox_path_idx": {
+ "name": "forms_blocks_checkbox_path_idx",
+ "columns": [
+ {
+ "expression": "_path",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_blocks_checkbox_locales": {
+ "name": "forms_blocks_checkbox_locales",
+ "schema": "",
+ "columns": {
+ "label": {
+ "name": "label",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "forms_blocks_checkbox_locales_locale_parent_id_unique": {
+ "name": "forms_blocks_checkbox_locales_locale_parent_id_unique",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_blocks_country": {
+ "name": "forms_blocks_country",
+ "schema": "",
+ "columns": {
+ "_order": {
+ "name": "_order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_path": {
+ "name": "_path",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "varchar",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "width": {
+ "name": "width",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "required": {
+ "name": "required",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "block_name": {
+ "name": "block_name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "forms_blocks_country_order_idx": {
+ "name": "forms_blocks_country_order_idx",
+ "columns": [
+ {
+ "expression": "_order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_blocks_country_parent_id_idx": {
+ "name": "forms_blocks_country_parent_id_idx",
+ "columns": [
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_blocks_country_path_idx": {
+ "name": "forms_blocks_country_path_idx",
+ "columns": [
+ {
+ "expression": "_path",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_blocks_country_locales": {
+ "name": "forms_blocks_country_locales",
+ "schema": "",
+ "columns": {
+ "label": {
+ "name": "label",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placeholder": {
+ "name": "placeholder",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "forms_blocks_country_locales_locale_parent_id_unique": {
+ "name": "forms_blocks_country_locales_locale_parent_id_unique",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_blocks_email": {
+ "name": "forms_blocks_email",
+ "schema": "",
+ "columns": {
+ "_order": {
+ "name": "_order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_path": {
+ "name": "_path",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "varchar",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "width": {
+ "name": "width",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "required": {
+ "name": "required",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "block_name": {
+ "name": "block_name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "forms_blocks_email_order_idx": {
+ "name": "forms_blocks_email_order_idx",
+ "columns": [
+ {
+ "expression": "_order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_blocks_email_parent_id_idx": {
+ "name": "forms_blocks_email_parent_id_idx",
+ "columns": [
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_blocks_email_path_idx": {
+ "name": "forms_blocks_email_path_idx",
+ "columns": [
+ {
+ "expression": "_path",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_blocks_email_locales": {
+ "name": "forms_blocks_email_locales",
+ "schema": "",
+ "columns": {
+ "label": {
+ "name": "label",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placeholder": {
+ "name": "placeholder",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "forms_blocks_email_locales_locale_parent_id_unique": {
+ "name": "forms_blocks_email_locales_locale_parent_id_unique",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_blocks_message": {
+ "name": "forms_blocks_message",
+ "schema": "",
+ "columns": {
+ "_order": {
+ "name": "_order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_path": {
+ "name": "_path",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "varchar",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "block_name": {
+ "name": "block_name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "forms_blocks_message_order_idx": {
+ "name": "forms_blocks_message_order_idx",
+ "columns": [
+ {
+ "expression": "_order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_blocks_message_parent_id_idx": {
+ "name": "forms_blocks_message_parent_id_idx",
+ "columns": [
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_blocks_message_path_idx": {
+ "name": "forms_blocks_message_path_idx",
+ "columns": [
+ {
+ "expression": "_path",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_blocks_message_locales": {
+ "name": "forms_blocks_message_locales",
+ "schema": "",
+ "columns": {
+ "message": {
+ "name": "message",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "forms_blocks_message_locales_locale_parent_id_unique": {
+ "name": "forms_blocks_message_locales_locale_parent_id_unique",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_blocks_number": {
+ "name": "forms_blocks_number",
+ "schema": "",
+ "columns": {
+ "_order": {
+ "name": "_order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_path": {
+ "name": "_path",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "varchar",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "width": {
+ "name": "width",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "default_value": {
+ "name": "default_value",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "required": {
+ "name": "required",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "block_name": {
+ "name": "block_name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "forms_blocks_number_order_idx": {
+ "name": "forms_blocks_number_order_idx",
+ "columns": [
+ {
+ "expression": "_order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_blocks_number_parent_id_idx": {
+ "name": "forms_blocks_number_parent_id_idx",
+ "columns": [
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_blocks_number_path_idx": {
+ "name": "forms_blocks_number_path_idx",
+ "columns": [
+ {
+ "expression": "_path",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_blocks_number_locales": {
+ "name": "forms_blocks_number_locales",
+ "schema": "",
+ "columns": {
+ "label": {
+ "name": "label",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placeholder": {
+ "name": "placeholder",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "forms_blocks_number_locales_locale_parent_id_unique": {
+ "name": "forms_blocks_number_locales_locale_parent_id_unique",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_blocks_select_options": {
+ "name": "forms_blocks_select_options",
+ "schema": "",
+ "columns": {
+ "_order": {
+ "name": "_order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "varchar",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "value": {
+ "name": "value",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "forms_blocks_select_options_order_idx": {
+ "name": "forms_blocks_select_options_order_idx",
+ "columns": [
+ {
+ "expression": "_order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_blocks_select_options_parent_id_idx": {
+ "name": "forms_blocks_select_options_parent_id_idx",
+ "columns": [
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_blocks_select_options_locales": {
+ "name": "forms_blocks_select_options_locales",
+ "schema": "",
+ "columns": {
+ "label": {
+ "name": "label",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "forms_blocks_select_options_locales_locale_parent_id_unique": {
+ "name": "forms_blocks_select_options_locales_locale_parent_id_unique",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_blocks_select": {
+ "name": "forms_blocks_select",
+ "schema": "",
+ "columns": {
+ "_order": {
+ "name": "_order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_path": {
+ "name": "_path",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "varchar",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "width": {
+ "name": "width",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "required": {
+ "name": "required",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "block_name": {
+ "name": "block_name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "forms_blocks_select_order_idx": {
+ "name": "forms_blocks_select_order_idx",
+ "columns": [
+ {
+ "expression": "_order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_blocks_select_parent_id_idx": {
+ "name": "forms_blocks_select_parent_id_idx",
+ "columns": [
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_blocks_select_path_idx": {
+ "name": "forms_blocks_select_path_idx",
+ "columns": [
+ {
+ "expression": "_path",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_blocks_select_locales": {
+ "name": "forms_blocks_select_locales",
+ "schema": "",
+ "columns": {
+ "label": {
+ "name": "label",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placeholder": {
+ "name": "placeholder",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "default_value": {
+ "name": "default_value",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "forms_blocks_select_locales_locale_parent_id_unique": {
+ "name": "forms_blocks_select_locales_locale_parent_id_unique",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_blocks_text": {
+ "name": "forms_blocks_text",
+ "schema": "",
+ "columns": {
+ "_order": {
+ "name": "_order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_path": {
+ "name": "_path",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "varchar",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "width": {
+ "name": "width",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "required": {
+ "name": "required",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "block_name": {
+ "name": "block_name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "forms_blocks_text_order_idx": {
+ "name": "forms_blocks_text_order_idx",
+ "columns": [
+ {
+ "expression": "_order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_blocks_text_parent_id_idx": {
+ "name": "forms_blocks_text_parent_id_idx",
+ "columns": [
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_blocks_text_path_idx": {
+ "name": "forms_blocks_text_path_idx",
+ "columns": [
+ {
+ "expression": "_path",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_blocks_text_locales": {
+ "name": "forms_blocks_text_locales",
+ "schema": "",
+ "columns": {
+ "label": {
+ "name": "label",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placeholder": {
+ "name": "placeholder",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "default_value": {
+ "name": "default_value",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "forms_blocks_text_locales_locale_parent_id_unique": {
+ "name": "forms_blocks_text_locales_locale_parent_id_unique",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_blocks_textarea": {
+ "name": "forms_blocks_textarea",
+ "schema": "",
+ "columns": {
+ "_order": {
+ "name": "_order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_path": {
+ "name": "_path",
+ "type": "text",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "varchar",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "width": {
+ "name": "width",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "required": {
+ "name": "required",
+ "type": "boolean",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "block_name": {
+ "name": "block_name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "forms_blocks_textarea_order_idx": {
+ "name": "forms_blocks_textarea_order_idx",
+ "columns": [
+ {
+ "expression": "_order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_blocks_textarea_parent_id_idx": {
+ "name": "forms_blocks_textarea_parent_id_idx",
+ "columns": [
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_blocks_textarea_path_idx": {
+ "name": "forms_blocks_textarea_path_idx",
+ "columns": [
+ {
+ "expression": "_path",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_blocks_textarea_locales": {
+ "name": "forms_blocks_textarea_locales",
+ "schema": "",
+ "columns": {
+ "label": {
+ "name": "label",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "placeholder": {
+ "name": "placeholder",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "default_value": {
+ "name": "default_value",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "forms_blocks_textarea_locales_locale_parent_id_unique": {
+ "name": "forms_blocks_textarea_locales_locale_parent_id_unique",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_emails": {
+ "name": "forms_emails",
+ "schema": "",
+ "columns": {
+ "_order": {
+ "name": "_order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "varchar",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "email_to": {
+ "name": "email_to",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "cc": {
+ "name": "cc",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "bcc": {
+ "name": "bcc",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "reply_to": {
+ "name": "reply_to",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "email_from": {
+ "name": "email_from",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "forms_emails_order_idx": {
+ "name": "forms_emails_order_idx",
+ "columns": [
+ {
+ "expression": "_order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_emails_parent_id_idx": {
+ "name": "forms_emails_parent_id_idx",
+ "columns": [
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_emails_locales": {
+ "name": "forms_emails_locales",
+ "schema": "",
+ "columns": {
+ "subject": {
+ "name": "subject",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "'You''''ve received a new message.'"
+ },
+ "message": {
+ "name": "message",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "forms_emails_locales_locale_parent_id_unique": {
+ "name": "forms_emails_locales_locale_parent_id_unique",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms": {
+ "name": "forms",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "tenant_id": {
+ "name": "tenant_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "title": {
+ "name": "title",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "confirmation_type": {
+ "name": "confirmation_type",
+ "type": "enum_forms_confirmation_type",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'message'"
+ },
+ "redirect_type": {
+ "name": "redirect_type",
+ "type": "enum_forms_redirect_type",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": false,
+ "default": "'reference'"
+ },
+ "redirect_url": {
+ "name": "redirect_url",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "forms_tenant_idx": {
+ "name": "forms_tenant_idx",
+ "columns": [
+ {
+ "expression": "tenant_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_updated_at_idx": {
+ "name": "forms_updated_at_idx",
+ "columns": [
+ {
+ "expression": "updated_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_created_at_idx": {
+ "name": "forms_created_at_idx",
+ "columns": [
+ {
+ "expression": "created_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "forms_tenant_id_tenants_id_fk": {
+ "name": "forms_tenant_id_tenants_id_fk",
+ "tableFrom": "forms",
+ "tableTo": "tenants",
+ "columnsFrom": ["tenant_id"],
+ "columnsTo": ["id"],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ }
+ },
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_locales": {
+ "name": "forms_locales",
+ "schema": "",
+ "columns": {
+ "submit_button_label": {
+ "name": "submit_button_label",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "confirmation_message": {
+ "name": "confirmation_message",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "_locale": {
+ "name": "_locale",
+ "type": "_locales",
+ "typeSchema": "public",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "forms_locales_locale_parent_id_unique": {
+ "name": "forms_locales_locale_parent_id_unique",
+ "columns": [
+ {
+ "expression": "_locale",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ },
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": true,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.forms_rels": {
+ "name": "forms_rels",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "order": {
+ "name": "order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "parent_id": {
+ "name": "parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "path": {
+ "name": "path",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "pages_id": {
+ "name": "pages_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "forms_rels_order_idx": {
+ "name": "forms_rels_order_idx",
+ "columns": [
+ {
+ "expression": "order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_rels_parent_idx": {
+ "name": "forms_rels_parent_idx",
+ "columns": [
+ {
+ "expression": "parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_rels_path_idx": {
+ "name": "forms_rels_path_idx",
+ "columns": [
+ {
+ "expression": "path",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "forms_rels_pages_id_idx": {
+ "name": "forms_rels_pages_id_idx",
+ "columns": [
+ {
+ "expression": "pages_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.form_submissions_submission_data": {
+ "name": "form_submissions_submission_data",
+ "schema": "",
+ "columns": {
+ "_order": {
+ "name": "_order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "_parent_id": {
+ "name": "_parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "id": {
+ "name": "id",
+ "type": "varchar",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "field": {
+ "name": "field",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "value": {
+ "name": "value",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ }
+ },
+ "indexes": {
+ "form_submissions_submission_data_order_idx": {
+ "name": "form_submissions_submission_data_order_idx",
+ "columns": [
+ {
+ "expression": "_order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "form_submissions_submission_data_parent_id_idx": {
+ "name": "form_submissions_submission_data_parent_id_idx",
+ "columns": [
+ {
+ "expression": "_parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.form_submissions": {
+ "name": "form_submissions",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "tenant_id": {
+ "name": "tenant_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "form_id": {
+ "name": "form_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "form_submissions_tenant_idx": {
+ "name": "form_submissions_tenant_idx",
+ "columns": [
+ {
+ "expression": "tenant_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "form_submissions_form_idx": {
+ "name": "form_submissions_form_idx",
+ "columns": [
+ {
+ "expression": "form_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "form_submissions_updated_at_idx": {
+ "name": "form_submissions_updated_at_idx",
+ "columns": [
+ {
+ "expression": "updated_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "form_submissions_created_at_idx": {
+ "name": "form_submissions_created_at_idx",
+ "columns": [
+ {
+ "expression": "created_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {
+ "form_submissions_tenant_id_tenants_id_fk": {
+ "name": "form_submissions_tenant_id_tenants_id_fk",
+ "tableFrom": "form_submissions",
+ "tableTo": "tenants",
+ "columnsFrom": ["tenant_id"],
+ "columnsTo": ["id"],
+ "onDelete": "set null",
+ "onUpdate": "no action"
+ },
+ "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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.payload_locked_documents": {
+ "name": "payload_locked_documents",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "global_slug": {
+ "name": "global_slug",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "payload_locked_documents_global_slug_idx": {
+ "name": "payload_locked_documents_global_slug_idx",
+ "columns": [
+ {
+ "expression": "global_slug",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_locked_documents_updated_at_idx": {
+ "name": "payload_locked_documents_updated_at_idx",
+ "columns": [
+ {
+ "expression": "updated_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_locked_documents_created_at_idx": {
+ "name": "payload_locked_documents_created_at_idx",
+ "columns": [
+ {
+ "expression": "created_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.payload_locked_documents_rels": {
+ "name": "payload_locked_documents_rels",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "order": {
+ "name": "order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "parent_id": {
+ "name": "parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "path": {
+ "name": "path",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "categories_id": {
+ "name": "categories_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "media_id": {
+ "name": "media_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "pages_id": {
+ "name": "pages_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "posts_id": {
+ "name": "posts_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "tenants_id": {
+ "name": "tenants_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "users_id": {
+ "name": "users_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "forms_id": {
+ "name": "forms_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "form_submissions_id": {
+ "name": "form_submissions_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "payload_locked_documents_rels_order_idx": {
+ "name": "payload_locked_documents_rels_order_idx",
+ "columns": [
+ {
+ "expression": "order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_locked_documents_rels_parent_idx": {
+ "name": "payload_locked_documents_rels_parent_idx",
+ "columns": [
+ {
+ "expression": "parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_locked_documents_rels_path_idx": {
+ "name": "payload_locked_documents_rels_path_idx",
+ "columns": [
+ {
+ "expression": "path",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_locked_documents_rels_categories_id_idx": {
+ "name": "payload_locked_documents_rels_categories_id_idx",
+ "columns": [
+ {
+ "expression": "categories_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_locked_documents_rels_media_id_idx": {
+ "name": "payload_locked_documents_rels_media_id_idx",
+ "columns": [
+ {
+ "expression": "media_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_locked_documents_rels_pages_id_idx": {
+ "name": "payload_locked_documents_rels_pages_id_idx",
+ "columns": [
+ {
+ "expression": "pages_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_locked_documents_rels_posts_id_idx": {
+ "name": "payload_locked_documents_rels_posts_id_idx",
+ "columns": [
+ {
+ "expression": "posts_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_locked_documents_rels_tenants_id_idx": {
+ "name": "payload_locked_documents_rels_tenants_id_idx",
+ "columns": [
+ {
+ "expression": "tenants_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_locked_documents_rels_users_id_idx": {
+ "name": "payload_locked_documents_rels_users_id_idx",
+ "columns": [
+ {
+ "expression": "users_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_locked_documents_rels_forms_id_idx": {
+ "name": "payload_locked_documents_rels_forms_id_idx",
+ "columns": [
+ {
+ "expression": "forms_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_locked_documents_rels_form_submissions_id_idx": {
+ "name": "payload_locked_documents_rels_form_submissions_id_idx",
+ "columns": [
+ {
+ "expression": "form_submissions_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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_categories_fk": {
+ "name": "payload_locked_documents_rels_categories_fk",
+ "tableFrom": "payload_locked_documents_rels",
+ "tableTo": "categories",
+ "columnsFrom": ["categories_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_posts_fk": {
+ "name": "payload_locked_documents_rels_posts_fk",
+ "tableFrom": "payload_locked_documents_rels",
+ "tableTo": "posts",
+ "columnsFrom": ["posts_id"],
+ "columnsTo": ["id"],
+ "onDelete": "cascade",
+ "onUpdate": "no action"
+ },
+ "payload_locked_documents_rels_tenants_fk": {
+ "name": "payload_locked_documents_rels_tenants_fk",
+ "tableFrom": "payload_locked_documents_rels",
+ "tableTo": "tenants",
+ "columnsFrom": ["tenants_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_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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.payload_preferences": {
+ "name": "payload_preferences",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "key": {
+ "name": "key",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "value": {
+ "name": "value",
+ "type": "jsonb",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "payload_preferences_key_idx": {
+ "name": "payload_preferences_key_idx",
+ "columns": [
+ {
+ "expression": "key",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_preferences_updated_at_idx": {
+ "name": "payload_preferences_updated_at_idx",
+ "columns": [
+ {
+ "expression": "updated_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_preferences_created_at_idx": {
+ "name": "payload_preferences_created_at_idx",
+ "columns": [
+ {
+ "expression": "created_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.payload_preferences_rels": {
+ "name": "payload_preferences_rels",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "order": {
+ "name": "order",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "parent_id": {
+ "name": "parent_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "path": {
+ "name": "path",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": true
+ },
+ "tenants_id": {
+ "name": "tenants_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "users_id": {
+ "name": "users_id",
+ "type": "integer",
+ "primaryKey": false,
+ "notNull": false
+ }
+ },
+ "indexes": {
+ "payload_preferences_rels_order_idx": {
+ "name": "payload_preferences_rels_order_idx",
+ "columns": [
+ {
+ "expression": "order",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_preferences_rels_parent_idx": {
+ "name": "payload_preferences_rels_parent_idx",
+ "columns": [
+ {
+ "expression": "parent_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_preferences_rels_path_idx": {
+ "name": "payload_preferences_rels_path_idx",
+ "columns": [
+ {
+ "expression": "path",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_preferences_rels_tenants_id_idx": {
+ "name": "payload_preferences_rels_tenants_id_idx",
+ "columns": [
+ {
+ "expression": "tenants_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_preferences_rels_users_id_idx": {
+ "name": "payload_preferences_rels_users_id_idx",
+ "columns": [
+ {
+ "expression": "users_id",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "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_tenants_fk": {
+ "name": "payload_preferences_rels_tenants_fk",
+ "tableFrom": "payload_preferences_rels",
+ "tableTo": "tenants",
+ "columnsFrom": ["tenants_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": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ },
+ "public.payload_migrations": {
+ "name": "payload_migrations",
+ "schema": "",
+ "columns": {
+ "id": {
+ "name": "id",
+ "type": "serial",
+ "primaryKey": true,
+ "notNull": true
+ },
+ "name": {
+ "name": "name",
+ "type": "varchar",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "batch": {
+ "name": "batch",
+ "type": "numeric",
+ "primaryKey": false,
+ "notNull": false
+ },
+ "updated_at": {
+ "name": "updated_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ },
+ "created_at": {
+ "name": "created_at",
+ "type": "timestamp(3) with time zone",
+ "primaryKey": false,
+ "notNull": true,
+ "default": "now()"
+ }
+ },
+ "indexes": {
+ "payload_migrations_updated_at_idx": {
+ "name": "payload_migrations_updated_at_idx",
+ "columns": [
+ {
+ "expression": "updated_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ },
+ "payload_migrations_created_at_idx": {
+ "name": "payload_migrations_created_at_idx",
+ "columns": [
+ {
+ "expression": "created_at",
+ "isExpression": false,
+ "asc": true,
+ "nulls": "last"
+ }
+ ],
+ "isUnique": false,
+ "concurrently": false,
+ "method": "btree",
+ "with": {}
+ }
+ },
+ "foreignKeys": {},
+ "compositePrimaryKeys": {},
+ "uniqueConstraints": {},
+ "policies": {},
+ "checkConstraints": {},
+ "isRLSEnabled": false
+ }
+ },
+ "enums": {
+ "public._locales": {
+ "name": "_locales",
+ "schema": "public",
+ "values": ["en", "sv"]
+ },
+ "public.enum_pages_blocks_content_columns_size": {
+ "name": "enum_pages_blocks_content_columns_size",
+ "schema": "public",
+ "values": ["one-third", "half", "two-thirds", "full"]
+ },
+ "public.enum_pages_blocks_code_language": {
+ "name": "enum_pages_blocks_code_language",
+ "schema": "public",
+ "values": ["ts", "plaintext", "tsx", "js", "jsx"]
+ },
+ "public.enum_tenants_domains_page_types": {
+ "name": "enum_tenants_domains_page_types",
+ "schema": "public",
+ "values": ["cms", "client", "disabled"]
+ },
+ "public.enum_users_tenants_role": {
+ "name": "enum_users_tenants_role",
+ "schema": "public",
+ "values": ["user", "admin"]
+ },
+ "public.enum_users_role": {
+ "name": "enum_users_role",
+ "schema": "public",
+ "values": ["user", "system-user"]
+ },
+ "public.enum_forms_confirmation_type": {
+ "name": "enum_forms_confirmation_type",
+ "schema": "public",
+ "values": ["message", "redirect"]
+ },
+ "public.enum_forms_redirect_type": {
+ "name": "enum_forms_redirect_type",
+ "schema": "public",
+ "values": ["reference", "custom"]
+ }
+ },
+ "schemas": {},
+ "sequences": {},
+ "roles": {},
+ "policies": {},
+ "views": {},
+ "_meta": {
+ "schemas": {},
+ "tables": {},
+ "columns": {}
+ }
+}
diff --git a/apps/cms/src/migrations/20250328_154057_cod_296.ts b/apps/cms/src/migrations/20250328_154057_cod_296.ts
new file mode 100644
index 000000000..2f4b8796d
--- /dev/null
+++ b/apps/cms/src/migrations/20250328_154057_cod_296.ts
@@ -0,0 +1,110 @@
+import { MigrateDownArgs, MigrateUpArgs, sql } from '@payloadcms/db-postgres';
+
+export async function up({ db, payload, req }: MigrateUpArgs): Promise
{
+ await db.execute(sql`
+ -- Add temporary numeric columns
+ ALTER TABLE "forms_blocks_checkbox" ADD COLUMN "width_numeric" numeric;
+ ALTER TABLE "forms_blocks_country" ADD COLUMN "width_numeric" numeric;
+ ALTER TABLE "forms_blocks_email" ADD COLUMN "width_numeric" numeric;
+ ALTER TABLE "forms_blocks_number" ADD COLUMN "width_numeric" numeric;
+ ALTER TABLE "forms_blocks_select" ADD COLUMN "width_numeric" numeric;
+ ALTER TABLE "forms_blocks_text" ADD COLUMN "width_numeric" numeric;
+ ALTER TABLE "forms_blocks_textarea" ADD COLUMN "width_numeric" numeric;
+
+ -- Convert enum values to numeric, capping at 6
+ UPDATE "forms_blocks_checkbox" SET "width_numeric" = LEAST(CAST(CAST("width" AS text) AS numeric), 6);
+ UPDATE "forms_blocks_country" SET "width_numeric" = LEAST(CAST(CAST("width" AS text) AS numeric), 6);
+ UPDATE "forms_blocks_email" SET "width_numeric" = LEAST(CAST(CAST("width" AS text) AS numeric), 6);
+ UPDATE "forms_blocks_number" SET "width_numeric" = LEAST(CAST(CAST("width" AS text) AS numeric), 6);
+ UPDATE "forms_blocks_select" SET "width_numeric" = LEAST(CAST(CAST("width" AS text) AS numeric), 6);
+ UPDATE "forms_blocks_text" SET "width_numeric" = LEAST(CAST(CAST("width" AS text) AS numeric), 6);
+ UPDATE "forms_blocks_textarea" SET "width_numeric" = LEAST(CAST(CAST("width" AS text) AS numeric), 6);
+
+ -- Drop the original enum columns
+ ALTER TABLE "forms_blocks_checkbox" DROP COLUMN "width";
+ ALTER TABLE "forms_blocks_country" DROP COLUMN "width";
+ ALTER TABLE "forms_blocks_email" DROP COLUMN "width";
+ ALTER TABLE "forms_blocks_number" DROP COLUMN "width";
+ ALTER TABLE "forms_blocks_select" DROP COLUMN "width";
+ ALTER TABLE "forms_blocks_text" DROP COLUMN "width";
+ ALTER TABLE "forms_blocks_textarea" DROP COLUMN "width";
+
+ -- Rename the numeric columns to the original names
+ ALTER TABLE "forms_blocks_checkbox" RENAME COLUMN "width_numeric" TO "width";
+ ALTER TABLE "forms_blocks_country" RENAME COLUMN "width_numeric" TO "width";
+ ALTER TABLE "forms_blocks_email" RENAME COLUMN "width_numeric" TO "width";
+ ALTER TABLE "forms_blocks_number" RENAME COLUMN "width_numeric" TO "width";
+ ALTER TABLE "forms_blocks_select" RENAME COLUMN "width_numeric" TO "width";
+ ALTER TABLE "forms_blocks_text" RENAME COLUMN "width_numeric" TO "width";
+ ALTER TABLE "forms_blocks_textarea" RENAME COLUMN "width_numeric" TO "width";
+
+ -- Drop the now-unused enum types
+ DROP TYPE "public"."enum_forms_blocks_checkbox_width";
+ DROP TYPE "public"."enum_forms_blocks_country_width";
+ DROP TYPE "public"."enum_forms_blocks_email_width";
+ DROP TYPE "public"."enum_forms_blocks_number_width";
+ DROP TYPE "public"."enum_forms_blocks_select_width";
+ DROP TYPE "public"."enum_forms_blocks_text_width";
+ DROP TYPE "public"."enum_forms_blocks_textarea_width";`);
+}
+
+export async function down({
+ db,
+ payload,
+ req
+}: MigrateDownArgs): Promise {
+ await db.execute(sql`
+ -- First recreate the enum types
+ CREATE TYPE "public"."enum_forms_blocks_checkbox_width" AS ENUM('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12');
+ CREATE TYPE "public"."enum_forms_blocks_country_width" AS ENUM('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12');
+ CREATE TYPE "public"."enum_forms_blocks_email_width" AS ENUM('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12');
+ CREATE TYPE "public"."enum_forms_blocks_number_width" AS ENUM('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12');
+ CREATE TYPE "public"."enum_forms_blocks_select_width" AS ENUM('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12');
+ CREATE TYPE "public"."enum_forms_blocks_text_width" AS ENUM('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12');
+ CREATE TYPE "public"."enum_forms_blocks_textarea_width" AS ENUM('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12');
+
+ -- Add temporary enum columns
+ ALTER TABLE "forms_blocks_checkbox" ADD COLUMN "width_enum" enum_forms_blocks_checkbox_width;
+ ALTER TABLE "forms_blocks_country" ADD COLUMN "width_enum" enum_forms_blocks_country_width;
+ ALTER TABLE "forms_blocks_email" ADD COLUMN "width_enum" enum_forms_blocks_email_width;
+ ALTER TABLE "forms_blocks_number" ADD COLUMN "width_enum" enum_forms_blocks_number_width;
+ ALTER TABLE "forms_blocks_select" ADD COLUMN "width_enum" enum_forms_blocks_select_width;
+ ALTER TABLE "forms_blocks_text" ADD COLUMN "width_enum" enum_forms_blocks_text_width;
+ ALTER TABLE "forms_blocks_textarea" ADD COLUMN "width_enum" enum_forms_blocks_textarea_width;
+
+ -- Convert numeric values to enum, ensuring they are valid enum values
+ UPDATE "forms_blocks_checkbox" SET "width_enum" = CAST(CAST(LEAST("width", 6) AS text) AS enum_forms_blocks_checkbox_width);
+ UPDATE "forms_blocks_country" SET "width_enum" = CAST(CAST(LEAST("width", 6) AS text) AS enum_forms_blocks_country_width);
+ UPDATE "forms_blocks_email" SET "width_enum" = CAST(CAST(LEAST("width", 6) AS text) AS enum_forms_blocks_email_width);
+ UPDATE "forms_blocks_number" SET "width_enum" = CAST(CAST(LEAST("width", 6) AS text) AS enum_forms_blocks_number_width);
+ UPDATE "forms_blocks_select" SET "width_enum" = CAST(CAST(LEAST("width", 6) AS text) AS enum_forms_blocks_select_width);
+ UPDATE "forms_blocks_text" SET "width_enum" = CAST(CAST(LEAST("width", 6) AS text) AS enum_forms_blocks_text_width);
+ UPDATE "forms_blocks_textarea" SET "width_enum" = CAST(CAST(LEAST("width", 6) AS text) AS enum_forms_blocks_textarea_width);
+
+ -- Drop the numeric columns
+ ALTER TABLE "forms_blocks_checkbox" DROP COLUMN "width";
+ ALTER TABLE "forms_blocks_country" DROP COLUMN "width";
+ ALTER TABLE "forms_blocks_email" DROP COLUMN "width";
+ ALTER TABLE "forms_blocks_number" DROP COLUMN "width";
+ ALTER TABLE "forms_blocks_select" DROP COLUMN "width";
+ ALTER TABLE "forms_blocks_text" DROP COLUMN "width";
+ ALTER TABLE "forms_blocks_textarea" DROP COLUMN "width";
+
+ -- Rename the enum columns to the original names
+ ALTER TABLE "forms_blocks_checkbox" RENAME COLUMN "width_enum" TO "width";
+ ALTER TABLE "forms_blocks_country" RENAME COLUMN "width_enum" TO "width";
+ ALTER TABLE "forms_blocks_email" RENAME COLUMN "width_enum" TO "width";
+ ALTER TABLE "forms_blocks_number" RENAME COLUMN "width_enum" TO "width";
+ ALTER TABLE "forms_blocks_select" RENAME COLUMN "width_enum" TO "width";
+ ALTER TABLE "forms_blocks_text" RENAME COLUMN "width_enum" TO "width";
+ ALTER TABLE "forms_blocks_textarea" RENAME COLUMN "width_enum" TO "width";
+
+ -- Set default values
+ ALTER TABLE "forms_blocks_checkbox" ALTER COLUMN "width" SET DEFAULT '12';
+ ALTER TABLE "forms_blocks_country" ALTER COLUMN "width" SET DEFAULT '12';
+ ALTER TABLE "forms_blocks_email" ALTER COLUMN "width" SET DEFAULT '12';
+ ALTER TABLE "forms_blocks_number" ALTER COLUMN "width" SET DEFAULT '12';
+ ALTER TABLE "forms_blocks_select" ALTER COLUMN "width" SET DEFAULT '12';
+ ALTER TABLE "forms_blocks_text" ALTER COLUMN "width" SET DEFAULT '12';
+ ALTER TABLE "forms_blocks_textarea" ALTER COLUMN "width" SET DEFAULT '12';`);
+}
diff --git a/apps/cms/src/migrations/index.ts b/apps/cms/src/migrations/index.ts
index b8120fb86..3bdbdc522 100644
--- a/apps/cms/src/migrations/index.ts
+++ b/apps/cms/src/migrations/index.ts
@@ -9,6 +9,7 @@ import * as migration_20250314_143517_cod_280 from './20250314_143517_cod_280';
import * as migration_20250317_105827_cod_278 from './20250317_105827_cod_278';
import * as migration_20250325_141317_cod_282 from './20250325_141317_cod_282';
import * as migration_20250326_200110_cod_282_2 from './20250326_200110_cod_282_2';
+import * as migration_20250328_154057_cod_296 from './20250328_154057_cod_296';
export const migrations = [
{
@@ -65,5 +66,10 @@ export const migrations = [
up: migration_20250326_200110_cod_282_2.up,
down: migration_20250326_200110_cod_282_2.down,
name: '20250326_200110_cod_282_2'
+ },
+ {
+ up: migration_20250328_154057_cod_296.up,
+ down: migration_20250328_154057_cod_296.down,
+ name: '20250328_154057_cod_296'
}
];
diff --git a/apps/cms/tailwind.config.mjs b/apps/cms/tailwind.config.mjs
deleted file mode 100644
index b015aa2b4..000000000
--- a/apps/cms/tailwind.config.mjs
+++ /dev/null
@@ -1,28 +0,0 @@
-import path from 'path';
-import { fileURLToPath } from 'url';
-
-import { createGlobPatternsForDependencies } from '@nx/react/tailwind';
-import typography from '@tailwindcss/typography';
-import tailwindcssAnimate from 'tailwindcss-animate';
-
-const filename = fileURLToPath(import.meta.url);
-const dirname = path.dirname(filename);
-
-/** @type {import('tailwindcss').Config} */
-const config = {
- content: [
- path.join(
- dirname,
- 'src/{app,components}/*!(*.stories|*.spec).{ts,tsx,html}'
- ),
- ...createGlobPatternsForDependencies(dirname)
- ],
- corePlugins: {
- preflight: false
- },
- darkMode: ['selector', '[data-theme="dark"]', '.dark'],
- //theme: {}
- plugins: [typography, tailwindcssAnimate]
-};
-
-export default config;
diff --git a/apps/web/app/components/container.tsx b/apps/web/app/components/container.tsx
index fb24d54b9..66f44f867 100644
--- a/apps/web/app/components/container.tsx
+++ b/apps/web/app/components/container.tsx
@@ -1,4 +1,4 @@
-import { cn } from '@codeware/shared/ui/shadcn';
+import { cn } from '@codeware/shared/util/ui';
import { forwardRef } from 'react';
export const ContainerOuter = forwardRef<
diff --git a/apps/web/app/components/desktop-navigation.tsx b/apps/web/app/components/desktop-navigation.tsx
index e903e42df..43ddf7181 100644
--- a/apps/web/app/components/desktop-navigation.tsx
+++ b/apps/web/app/components/desktop-navigation.tsx
@@ -1,4 +1,4 @@
-import { cn } from '@codeware/shared/ui/shadcn';
+import { cn } from '@codeware/shared/util/ui';
import { NavLink } from '@remix-run/react';
import { filterPages } from '../utils/filter-pages';
@@ -17,7 +17,7 @@ function NavItem({
to={href}
className={({ isActive }) =>
cn(
- 'relative block px-3 py-2 transition min-w-max',
+ 'relative block min-w-max px-3 py-2 transition',
isActive
? 'text-teal-500 dark:text-teal-400'
: 'hover:text-teal-500 dark:hover:text-teal-400'
@@ -28,7 +28,7 @@ function NavItem({
<>
{children}
{isActive && (
-
+
)}
>
)}
@@ -49,7 +49,7 @@ export function DesktopNavigation(
return (