Put pages M2M relation to Relations category in Directus #2

Merged
itsfinniii merged 1 commits from directus/setup-project into master 2026-03-07 15:02:34 +00:00

View File

@@ -884,6 +884,32 @@
},
"schema": {}
},
{
"collection": "Pages_components",
"meta": {
"collection": "Pages_components",
"icon": "import_export",
"note": null,
"display_template": null,
"hidden": true,
"singleton": false,
"translations": null,
"archive_field": null,
"archive_app_filter": true,
"archive_value": null,
"unarchive_value": null,
"sort_field": null,
"accountability": "all",
"color": null,
"item_duplication_fields": null,
"sort": 5,
"group": "Relations",
"collapse": "open",
"preview_url": null,
"versioning": false
},
"schema": {}
},
{
"collection": "Project_Settings",
"meta": {
@@ -1403,32 +1429,6 @@
"versioning": false
},
"schema": {}
},
{
"collection": "Pages_components",
"meta": {
"collection": "Pages_components",
"icon": "import_export",
"note": null,
"display_template": null,
"hidden": true,
"singleton": false,
"translations": null,
"archive_field": null,
"archive_app_filter": true,
"archive_value": null,
"unarchive_value": null,
"sort_field": null,
"accountability": "all",
"color": null,
"item_duplication_fields": null,
"sort": null,
"group": null,
"collapse": "open",
"preview_url": null,
"versioning": false
},
"schema": {}
}
],
"fields": [
@@ -15598,6 +15598,236 @@
"searchable": true
}
},
{
"collection": "Pages_components",
"field": "id",
"type": "integer",
"schema": {
"name": "id",
"table": "Pages_components",
"data_type": "integer",
"default_value": "nextval('\"Pages_components_id_seq\"'::regclass)",
"generation_expression": null,
"max_length": null,
"numeric_precision": 32,
"numeric_scale": 0,
"is_generated": false,
"is_nullable": false,
"is_unique": true,
"is_indexed": false,
"is_primary_key": true,
"has_auto_increment": true,
"foreign_key_schema": null,
"foreign_key_table": null,
"foreign_key_column": null,
"comment": null
},
"meta": {
"collection": "Pages_components",
"field": "id",
"special": null,
"interface": null,
"options": null,
"display": null,
"display_options": null,
"readonly": false,
"hidden": true,
"sort": 1,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": false,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Pages_components",
"field": "Pages_id",
"type": "uuid",
"schema": {
"name": "Pages_id",
"table": "Pages_components",
"data_type": "uuid",
"default_value": null,
"generation_expression": null,
"max_length": null,
"numeric_precision": null,
"numeric_scale": null,
"is_generated": false,
"is_nullable": true,
"is_unique": false,
"is_indexed": false,
"is_primary_key": false,
"has_auto_increment": false,
"foreign_key_schema": "public",
"foreign_key_table": "Pages",
"foreign_key_column": "id",
"comment": null
},
"meta": {
"collection": "Pages_components",
"field": "Pages_id",
"special": null,
"interface": null,
"options": null,
"display": null,
"display_options": null,
"readonly": false,
"hidden": true,
"sort": 2,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": false,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Pages_components",
"field": "item",
"type": "string",
"schema": {
"name": "item",
"table": "Pages_components",
"data_type": "character varying",
"default_value": null,
"generation_expression": null,
"max_length": 255,
"numeric_precision": null,
"numeric_scale": null,
"is_generated": false,
"is_nullable": true,
"is_unique": false,
"is_indexed": false,
"is_primary_key": false,
"has_auto_increment": false,
"foreign_key_schema": null,
"foreign_key_table": null,
"foreign_key_column": null,
"comment": null
},
"meta": {
"collection": "Pages_components",
"field": "item",
"special": null,
"interface": null,
"options": null,
"display": null,
"display_options": null,
"readonly": false,
"hidden": true,
"sort": 3,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": false,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Pages_components",
"field": "sort",
"type": "integer",
"schema": {
"name": "sort",
"table": "Pages_components",
"data_type": "integer",
"default_value": null,
"generation_expression": null,
"max_length": null,
"numeric_precision": 32,
"numeric_scale": 0,
"is_generated": false,
"is_nullable": true,
"is_unique": false,
"is_indexed": false,
"is_primary_key": false,
"has_auto_increment": false,
"foreign_key_schema": null,
"foreign_key_table": null,
"foreign_key_column": null,
"comment": null
},
"meta": {
"collection": "Pages_components",
"field": "sort",
"special": null,
"interface": null,
"options": null,
"display": null,
"display_options": null,
"readonly": false,
"hidden": true,
"sort": 4,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": false,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Pages_components",
"field": "collection",
"type": "string",
"schema": {
"name": "collection",
"table": "Pages_components",
"data_type": "character varying",
"default_value": null,
"generation_expression": null,
"max_length": 255,
"numeric_precision": null,
"numeric_scale": null,
"is_generated": false,
"is_nullable": true,
"is_unique": false,
"is_indexed": false,
"is_primary_key": false,
"has_auto_increment": false,
"foreign_key_schema": null,
"foreign_key_table": null,
"foreign_key_column": null,
"comment": null
},
"meta": {
"collection": "Pages_components",
"field": "collection",
"special": null,
"interface": null,
"options": null,
"display": null,
"display_options": null,
"readonly": false,
"hidden": true,
"sort": 5,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": false,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Project_Settings",
"field": "id",
@@ -23240,236 +23470,6 @@
"validation_message": null,
"searchable": true
}
},
{
"collection": "Pages_components",
"field": "id",
"type": "integer",
"schema": {
"name": "id",
"table": "Pages_components",
"data_type": "integer",
"default_value": "nextval('\"Pages_components_id_seq\"'::regclass)",
"generation_expression": null,
"max_length": null,
"numeric_precision": 32,
"numeric_scale": 0,
"is_generated": false,
"is_nullable": false,
"is_unique": true,
"is_indexed": false,
"is_primary_key": true,
"has_auto_increment": true,
"foreign_key_schema": null,
"foreign_key_table": null,
"foreign_key_column": null,
"comment": null
},
"meta": {
"collection": "Pages_components",
"field": "id",
"special": null,
"interface": null,
"options": null,
"display": null,
"display_options": null,
"readonly": false,
"hidden": true,
"sort": 1,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": false,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Pages_components",
"field": "Pages_id",
"type": "uuid",
"schema": {
"name": "Pages_id",
"table": "Pages_components",
"data_type": "uuid",
"default_value": null,
"generation_expression": null,
"max_length": null,
"numeric_precision": null,
"numeric_scale": null,
"is_generated": false,
"is_nullable": true,
"is_unique": false,
"is_indexed": false,
"is_primary_key": false,
"has_auto_increment": false,
"foreign_key_schema": "public",
"foreign_key_table": "Pages",
"foreign_key_column": "id",
"comment": null
},
"meta": {
"collection": "Pages_components",
"field": "Pages_id",
"special": null,
"interface": null,
"options": null,
"display": null,
"display_options": null,
"readonly": false,
"hidden": true,
"sort": 2,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": false,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Pages_components",
"field": "item",
"type": "string",
"schema": {
"name": "item",
"table": "Pages_components",
"data_type": "character varying",
"default_value": null,
"generation_expression": null,
"max_length": 255,
"numeric_precision": null,
"numeric_scale": null,
"is_generated": false,
"is_nullable": true,
"is_unique": false,
"is_indexed": false,
"is_primary_key": false,
"has_auto_increment": false,
"foreign_key_schema": null,
"foreign_key_table": null,
"foreign_key_column": null,
"comment": null
},
"meta": {
"collection": "Pages_components",
"field": "item",
"special": null,
"interface": null,
"options": null,
"display": null,
"display_options": null,
"readonly": false,
"hidden": true,
"sort": 3,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": false,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Pages_components",
"field": "sort",
"type": "integer",
"schema": {
"name": "sort",
"table": "Pages_components",
"data_type": "integer",
"default_value": null,
"generation_expression": null,
"max_length": null,
"numeric_precision": 32,
"numeric_scale": 0,
"is_generated": false,
"is_nullable": true,
"is_unique": false,
"is_indexed": false,
"is_primary_key": false,
"has_auto_increment": false,
"foreign_key_schema": null,
"foreign_key_table": null,
"foreign_key_column": null,
"comment": null
},
"meta": {
"collection": "Pages_components",
"field": "sort",
"special": null,
"interface": null,
"options": null,
"display": null,
"display_options": null,
"readonly": false,
"hidden": true,
"sort": 4,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": false,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Pages_components",
"field": "collection",
"type": "string",
"schema": {
"name": "collection",
"table": "Pages_components",
"data_type": "character varying",
"default_value": null,
"generation_expression": null,
"max_length": 255,
"numeric_precision": null,
"numeric_scale": null,
"is_generated": false,
"is_nullable": true,
"is_unique": false,
"is_indexed": false,
"is_primary_key": false,
"has_auto_increment": false,
"foreign_key_schema": null,
"foreign_key_table": null,
"foreign_key_column": null,
"comment": null
},
"meta": {
"collection": "Pages_components",
"field": "collection",
"special": null,
"interface": null,
"options": null,
"display": null,
"display_options": null,
"readonly": false,
"hidden": true,
"sort": 5,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": false,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
}
],
"relations": [
@@ -25625,6 +25625,61 @@
"one_deselect_action": "nullify"
}
},
{
"collection": "Pages_components",
"field": "item",
"related_collection": null,
"schema": null,
"meta": {
"many_collection": "Pages_components",
"many_field": "item",
"one_collection": null,
"one_field": null,
"one_collection_field": "collection",
"one_allowed_collections": [
"Hero",
"Text_With_Side_Image",
"Wall_Of_Text",
"Frequently_Asked_Questions",
"Upcoming_Events",
"Equipment_Table",
"Review_List",
"Contact",
"Last_Blogs",
"Last_Projects",
"Last_Galleries"
],
"junction_field": "Pages_id",
"sort_field": null,
"one_deselect_action": "nullify"
}
},
{
"collection": "Pages_components",
"field": "Pages_id",
"related_collection": "Pages",
"schema": {
"constraint_name": "pages_components_pages_id_foreign",
"table": "Pages_components",
"column": "Pages_id",
"foreign_key_schema": "public",
"foreign_key_table": "Pages",
"foreign_key_column": "id",
"on_update": "NO ACTION",
"on_delete": "SET NULL"
},
"meta": {
"many_collection": "Pages_components",
"many_field": "Pages_id",
"one_collection": "Pages",
"one_field": "components",
"one_collection_field": null,
"one_allowed_collections": null,
"junction_field": "item",
"sort_field": "sort",
"one_deselect_action": "nullify"
}
},
{
"collection": "Project_Settings",
"field": "user_updated",
@@ -26898,61 +26953,6 @@
"sort_field": null,
"one_deselect_action": "nullify"
}
},
{
"collection": "Pages_components",
"field": "item",
"related_collection": null,
"schema": null,
"meta": {
"many_collection": "Pages_components",
"many_field": "item",
"one_collection": null,
"one_field": null,
"one_collection_field": "collection",
"one_allowed_collections": [
"Hero",
"Text_With_Side_Image",
"Wall_Of_Text",
"Frequently_Asked_Questions",
"Upcoming_Events",
"Equipment_Table",
"Review_List",
"Contact",
"Last_Blogs",
"Last_Projects",
"Last_Galleries"
],
"junction_field": "Pages_id",
"sort_field": null,
"one_deselect_action": "nullify"
}
},
{
"collection": "Pages_components",
"field": "Pages_id",
"related_collection": "Pages",
"schema": {
"constraint_name": "pages_components_pages_id_foreign",
"table": "Pages_components",
"column": "Pages_id",
"foreign_key_schema": "public",
"foreign_key_table": "Pages",
"foreign_key_column": "id",
"on_update": "NO ACTION",
"on_delete": "SET NULL"
},
"meta": {
"many_collection": "Pages_components",
"many_field": "Pages_id",
"one_collection": "Pages",
"one_field": "components",
"one_collection_field": null,
"one_allowed_collections": null,
"junction_field": "item",
"sort_field": "sort",
"one_deselect_action": "nullify"
}
}
]
}