Fix some things in the Directus schema

This commit is contained in:
itsfinniii
2026-03-28 19:58:46 +01:00
parent 54e53d278e
commit 1e3243aac3

View File

@@ -1730,15 +1730,15 @@
},
{
"collection": "Contact_Social",
"field": "text",
"type": "text",
"field": "url",
"type": "string",
"schema": {
"name": "text",
"name": "url",
"table": "Contact_Social",
"data_type": "text",
"data_type": "character varying",
"default_value": null,
"generation_expression": null,
"max_length": null,
"max_length": 255,
"numeric_precision": null,
"numeric_scale": null,
"is_generated": false,
@@ -1754,10 +1754,12 @@
},
"meta": {
"collection": "Contact_Social",
"field": "text",
"field": "url",
"special": null,
"interface": "input-rich-text-md",
"options": null,
"interface": "input",
"options": {
"iconLeft": "link"
},
"display": null,
"display_options": null,
"readonly": false,
@@ -4553,9 +4555,7 @@
"o2m"
],
"interface": "list-o2m",
"options": {
"template": "{{title}}"
},
"options": null,
"display": null,
"display_options": null,
"readonly": false,
@@ -4565,7 +4565,7 @@
"translations": null,
"note": null,
"conditions": null,
"required": true,
"required": false,
"group": null,
"validation": null,
"validation_message": null,
@@ -7569,10 +7569,10 @@
},
{
"collection": "Search_Engine_Optimisation",
"field": "Page_id",
"field": "Project_id",
"type": "uuid",
"schema": {
"name": "Page_id",
"name": "Project_id",
"table": "Search_Engine_Optimisation",
"data_type": "uuid",
"default_value": null,
@@ -7587,23 +7587,25 @@
"is_primary_key": false,
"has_auto_increment": false,
"foreign_key_schema": "public",
"foreign_key_table": "Pages",
"foreign_key_table": "Projects",
"foreign_key_column": "id",
"comment": null
},
"meta": {
"collection": "Search_Engine_Optimisation",
"field": "Page_id",
"field": "Project_id",
"special": [
"uuid"
"m2o"
],
"interface": "input",
"options": null,
"interface": "select-dropdown-m2o",
"options": {
"template": "{{title}}"
},
"display": null,
"display_options": null,
"readonly": false,
"hidden": false,
"sort": 12,
"hidden": true,
"sort": 16,
"width": "full",
"translations": null,
"note": null,
@@ -7643,15 +7645,17 @@
"collection": "Search_Engine_Optimisation",
"field": "Blog_id",
"special": [
"uuid"
"m2o"
],
"interface": "input",
"options": null,
"interface": "select-dropdown-m2o",
"options": {
"template": "{{title}}"
},
"display": null,
"display_options": null,
"readonly": false,
"hidden": true,
"sort": 13,
"sort": 18,
"width": "full",
"translations": null,
"note": null,
@@ -7665,10 +7669,10 @@
},
{
"collection": "Search_Engine_Optimisation",
"field": "Project_id",
"field": "Page_id",
"type": "uuid",
"schema": {
"name": "Project_id",
"name": "Page_id",
"table": "Search_Engine_Optimisation",
"data_type": "uuid",
"default_value": null,
@@ -7683,23 +7687,25 @@
"is_primary_key": false,
"has_auto_increment": false,
"foreign_key_schema": "public",
"foreign_key_table": "Projects",
"foreign_key_table": "Pages",
"foreign_key_column": "id",
"comment": null
},
"meta": {
"collection": "Search_Engine_Optimisation",
"field": "Project_id",
"field": "Page_id",
"special": [
"uuid"
"m2o"
],
"interface": "input",
"options": null,
"interface": "select-dropdown-m2o",
"options": {
"template": "{{url}}"
},
"display": null,
"display_options": null,
"readonly": false,
"hidden": true,
"sort": 14,
"sort": 19,
"width": "full",
"translations": null,
"note": null,
@@ -9261,37 +9267,6 @@
"searchable": true
}
},
{
"collection": "Blogs",
"field": "search_engine",
"type": "alias",
"schema": null,
"meta": {
"collection": "Blogs",
"field": "search_engine",
"special": [
"o2m"
],
"interface": "list-o2m",
"options": {
"template": "{{title}}"
},
"display": null,
"display_options": null,
"readonly": false,
"hidden": false,
"sort": 10,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": true,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Blogs",
"field": "tags",
@@ -9311,7 +9286,7 @@
"display_options": null,
"readonly": false,
"hidden": false,
"sort": 11,
"sort": 10,
"width": "full",
"translations": null,
"note": null,
@@ -9323,6 +9298,35 @@
"searchable": true
}
},
{
"collection": "Blogs",
"field": "search_engine",
"type": "alias",
"schema": null,
"meta": {
"collection": "Blogs",
"field": "search_engine",
"special": [
"o2m"
],
"interface": "list-o2m",
"options": null,
"display": null,
"display_options": null,
"readonly": false,
"hidden": false,
"sort": 11,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": true,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Blogs",
"field": "content",
@@ -12356,37 +12360,6 @@
"searchable": true
}
},
{
"collection": "Projects",
"field": "search_engine",
"type": "alias",
"schema": null,
"meta": {
"collection": "Projects",
"field": "search_engine",
"special": [
"o2m"
],
"interface": "list-o2m",
"options": {
"template": "{{title}}"
},
"display": null,
"display_options": null,
"readonly": false,
"hidden": false,
"sort": 10,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": true,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Projects",
"field": "tags",
@@ -12406,7 +12379,7 @@
"display_options": null,
"readonly": false,
"hidden": false,
"sort": 11,
"sort": 10,
"width": "full",
"translations": null,
"note": null,
@@ -12418,6 +12391,35 @@
"searchable": true
}
},
{
"collection": "Projects",
"field": "search_engine",
"type": "alias",
"schema": null,
"meta": {
"collection": "Projects",
"field": "search_engine",
"special": [
"o2m"
],
"interface": "list-o2m",
"options": null,
"display": null,
"display_options": null,
"readonly": false,
"hidden": false,
"sort": 11,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": true,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Projects",
"field": "content",
@@ -20052,6 +20054,68 @@
"searchable": true
}
},
{
"collection": "Text_With_Side_Image",
"field": "image_size",
"type": "string",
"schema": {
"name": "image_size",
"table": "Text_With_Side_Image",
"data_type": "character varying",
"default_value": "medium",
"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": "Text_With_Side_Image",
"field": "image_size",
"special": null,
"interface": "select-dropdown",
"options": {
"choices": [
{
"text": "Small",
"value": "small"
},
{
"text": "Medium",
"value": "medium"
},
{
"text": "Large",
"value": "large"
}
],
"icon": "photo_size_select_small"
},
"display": null,
"display_options": null,
"readonly": false,
"hidden": false,
"sort": 10,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": true,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Wall_Of_Text",
"field": "id",
@@ -24403,32 +24467,6 @@
"one_deselect_action": "nullify"
}
},
{
"collection": "Search_Engine_Optimisation",
"field": "Project_id",
"related_collection": "Projects",
"schema": {
"constraint_name": "search_engine_optimisation_project_id_foreign",
"table": "Search_Engine_Optimisation",
"column": "Project_id",
"foreign_key_schema": "public",
"foreign_key_table": "Projects",
"foreign_key_column": "id",
"on_update": "NO ACTION",
"on_delete": "SET NULL"
},
"meta": {
"many_collection": "Search_Engine_Optimisation",
"many_field": "Project_id",
"one_collection": "Projects",
"one_field": "search_engine",
"one_collection_field": null,
"one_allowed_collections": null,
"junction_field": null,
"sort_field": null,
"one_deselect_action": "nullify"
}
},
{
"collection": "Search_Engine_Optimisation",
"field": "Blog_id",
@@ -24455,6 +24493,32 @@
"one_deselect_action": "nullify"
}
},
{
"collection": "Search_Engine_Optimisation",
"field": "Project_id",
"related_collection": "Projects",
"schema": {
"constraint_name": "search_engine_optimisation_project_id_foreign",
"table": "Search_Engine_Optimisation",
"column": "Project_id",
"foreign_key_schema": "public",
"foreign_key_table": "Projects",
"foreign_key_column": "id",
"on_update": "NO ACTION",
"on_delete": "SET NULL"
},
"meta": {
"many_collection": "Search_Engine_Optimisation",
"many_field": "Project_id",
"one_collection": "Projects",
"one_field": "search_engine",
"one_collection_field": null,
"one_allowed_collections": null,
"junction_field": null,
"sort_field": null,
"one_deselect_action": "nullify"
}
},
{
"collection": "Search_Engine_Optimisation",
"field": "thumbnail",
@@ -25625,6 +25689,32 @@
"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": "Pages_components",
"field": "item",
@@ -25654,32 +25744,6 @@
"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",