From b784758bf115c71e89b96f1b8fe24047735725ba Mon Sep 17 00:00:00 2001 From: Quinn Hegeman <102350242+itsfinniii@users.noreply.github.com> Date: Sat, 28 Feb 2026 17:21:02 +0100 Subject: [PATCH] Add Photo Categories to Directus --- directus/schema.json | 1007 +++++++++++++++++++++++++++++++++--------- 1 file changed, 796 insertions(+), 211 deletions(-) diff --git a/directus/schema.json b/directus/schema.json index f0b4152..af2f82e 100644 --- a/directus/schema.json +++ b/directus/schema.json @@ -416,6 +416,32 @@ }, "schema": {} }, + { + "collection": "Photo_Categories", + "meta": { + "collection": "Photo_Categories", + "icon": "stack_group", + "note": null, + "display_template": null, + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": "status", + "archive_app_filter": true, + "archive_value": "archived", + "unarchive_value": "draft", + "sort_field": null, + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": 3, + "group": "Web_Pages", + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, { "collection": "Single_Pages", "meta": { @@ -5280,6 +5306,26 @@ "collection": "Projects", "field": "id", "type": "uuid", + "schema": { + "name": "id", + "table": "Projects", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, "meta": { "collection": "Projects", "field": "id", @@ -5302,32 +5348,32 @@ "validation": null, "validation_message": null, "searchable": true - }, - "schema": { - "name": "id", - "table": "Projects", - "data_type": "uuid", - "default_value": null, - "generation_expression": null, - "max_length": null, - "numeric_precision": null, - "numeric_scale": null, - "is_generated": false, - "is_nullable": false, - "is_unique": true, - "is_indexed": false, - "is_primary_key": true, - "has_auto_increment": false, - "foreign_key_schema": null, - "foreign_key_table": null, - "foreign_key_column": null, - "comment": null } }, { "collection": "Projects", "field": "status", "type": "string", + "schema": { + "name": "status", + "table": "Projects", + "data_type": "character varying", + "default_value": "draft", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "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": "Projects", "field": "status", @@ -5391,32 +5437,32 @@ "validation": null, "validation_message": null, "searchable": true - }, - "schema": { - "name": "status", - "table": "Projects", - "data_type": "character varying", - "default_value": "draft", - "generation_expression": null, - "max_length": 255, - "numeric_precision": null, - "numeric_scale": null, - "is_generated": false, - "is_nullable": false, - "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 } }, { "collection": "Projects", "field": "user_created", "type": "uuid", + "schema": { + "name": "user_created", + "table": "Projects", + "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": "directus_users", + "foreign_key_column": "id", + "comment": null + }, "meta": { "collection": "Projects", "field": "user_created", @@ -5441,11 +5487,16 @@ "validation": null, "validation_message": null, "searchable": true - }, + } + }, + { + "collection": "Projects", + "field": "date_created", + "type": "timestamp", "schema": { - "name": "user_created", + "name": "date_created", "table": "Projects", - "data_type": "uuid", + "data_type": "timestamp with time zone", "default_value": null, "generation_expression": null, "max_length": null, @@ -5457,16 +5508,11 @@ "is_indexed": false, "is_primary_key": false, "has_auto_increment": false, - "foreign_key_schema": "public", - "foreign_key_table": "directus_users", - "foreign_key_column": "id", + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, "comment": null - } - }, - { - "collection": "Projects", - "field": "date_created", - "type": "timestamp", + }, "meta": { "collection": "Projects", "field": "date_created", @@ -5491,11 +5537,16 @@ "validation": null, "validation_message": null, "searchable": true - }, + } + }, + { + "collection": "Projects", + "field": "user_updated", + "type": "uuid", "schema": { - "name": "date_created", + "name": "user_updated", "table": "Projects", - "data_type": "timestamp with time zone", + "data_type": "uuid", "default_value": null, "generation_expression": null, "max_length": null, @@ -5507,16 +5558,11 @@ "is_indexed": false, "is_primary_key": false, "has_auto_increment": false, - "foreign_key_schema": null, - "foreign_key_table": null, - "foreign_key_column": null, + "foreign_key_schema": "public", + "foreign_key_table": "directus_users", + "foreign_key_column": "id", "comment": null - } - }, - { - "collection": "Projects", - "field": "user_updated", - "type": "uuid", + }, "meta": { "collection": "Projects", "field": "user_updated", @@ -5541,11 +5587,16 @@ "validation": null, "validation_message": null, "searchable": true - }, + } + }, + { + "collection": "Projects", + "field": "date_updated", + "type": "timestamp", "schema": { - "name": "user_updated", + "name": "date_updated", "table": "Projects", - "data_type": "uuid", + "data_type": "timestamp with time zone", "default_value": null, "generation_expression": null, "max_length": null, @@ -5557,16 +5608,11 @@ "is_indexed": false, "is_primary_key": false, "has_auto_increment": false, - "foreign_key_schema": "public", - "foreign_key_table": "directus_users", - "foreign_key_column": "id", + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, "comment": null - } - }, - { - "collection": "Projects", - "field": "date_updated", - "type": "timestamp", + }, "meta": { "collection": "Projects", "field": "date_updated", @@ -5591,18 +5637,23 @@ "validation": null, "validation_message": null, "searchable": true - }, + } + }, + { + "collection": "Projects", + "field": "title", + "type": "string", "schema": { - "name": "date_updated", + "name": "title", "table": "Projects", - "data_type": "timestamp with time zone", + "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, - "is_nullable": true, + "is_nullable": false, "is_unique": false, "is_indexed": false, "is_primary_key": false, @@ -5611,12 +5662,7 @@ "foreign_key_table": null, "foreign_key_column": null, "comment": null - } - }, - { - "collection": "Projects", - "field": "title", - "type": "string", + }, "meta": { "collection": "Projects", "field": "title", @@ -5639,9 +5685,14 @@ "validation": null, "validation_message": null, "searchable": true - }, + } + }, + { + "collection": "Projects", + "field": "url", + "type": "string", "schema": { - "name": "title", + "name": "url", "table": "Projects", "data_type": "character varying", "default_value": null, @@ -5651,20 +5702,15 @@ "numeric_scale": null, "is_generated": false, "is_nullable": false, - "is_unique": false, - "is_indexed": false, + "is_unique": true, + "is_indexed": true, "is_primary_key": false, "has_auto_increment": false, "foreign_key_schema": null, "foreign_key_table": null, "foreign_key_column": null, "comment": null - } - }, - { - "collection": "Projects", - "field": "url", - "type": "string", + }, "meta": { "collection": "Projects", "field": "url", @@ -5687,32 +5733,32 @@ "validation": null, "validation_message": null, "searchable": true - }, - "schema": { - "name": "url", - "table": "Projects", - "data_type": "character varying", - "default_value": null, - "generation_expression": null, - "max_length": 255, - "numeric_precision": null, - "numeric_scale": null, - "is_generated": false, - "is_nullable": false, - "is_unique": true, - "is_indexed": true, - "is_primary_key": false, - "has_auto_increment": false, - "foreign_key_schema": null, - "foreign_key_table": null, - "foreign_key_column": null, - "comment": null } }, { "collection": "Projects", "field": "date", "type": "date", + "schema": { + "name": "date", + "table": "Projects", + "data_type": "date", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "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": "Projects", "field": "date", @@ -5733,32 +5779,13 @@ "validation": null, "validation_message": null, "searchable": true - }, - "schema": { - "name": "date", - "table": "Projects", - "data_type": "date", - "default_value": null, - "generation_expression": null, - "max_length": null, - "numeric_precision": null, - "numeric_scale": null, - "is_generated": false, - "is_nullable": false, - "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 } }, { "collection": "Projects", "field": "search_engine", "type": "alias", + "schema": null, "meta": { "collection": "Projects", "field": "search_engine", @@ -5783,13 +5810,13 @@ "validation": null, "validation_message": null, "searchable": true - }, - "schema": null + } }, { "collection": "Projects", "field": "tags", "type": "alias", + "schema": null, "meta": { "collection": "Projects", "field": "tags", @@ -5814,13 +5841,32 @@ "validation": null, "validation_message": null, "searchable": true - }, - "schema": null + } }, { "collection": "Projects", "field": "content", "type": "text", + "schema": { + "name": "content", + "table": "Projects", + "data_type": "text", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "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": "Projects", "field": "content", @@ -5841,26 +5887,6 @@ "validation": null, "validation_message": null, "searchable": true - }, - "schema": { - "name": "content", - "table": "Projects", - "data_type": "text", - "default_value": null, - "generation_expression": null, - "max_length": null, - "numeric_precision": null, - "numeric_scale": null, - "is_generated": false, - "is_nullable": false, - "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 } }, { @@ -6231,6 +6257,487 @@ "searchable": true } }, + { + "collection": "Photo_Categories", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "Photo_Categories", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": true, + "has_auto_increment": false, + "foreign_key_schema": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "Photo_Categories", + "field": "id", + "special": [ + "uuid" + ], + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": true, + "hidden": true, + "sort": 1, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "Photo_Categories", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "Photo_Categories", + "data_type": "character varying", + "default_value": "draft", + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "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": "Photo_Categories", + "field": "status", + "special": null, + "interface": "select-dropdown", + "options": { + "choices": [ + { + "text": "Published", + "value": "published", + "color": "var(--theme--primary)" + }, + { + "text": "Draft", + "value": "draft", + "color": "var(--theme--foreground)" + }, + { + "text": "Archived", + "value": "archived", + "color": "var(--theme--warning)" + } + ] + }, + "display": "labels", + "display_options": { + "showAsDot": true, + "choices": [ + { + "text": "Published", + "value": "published", + "color": "var(--theme--primary)", + "foreground": "var(--theme--primary)", + "background": "var(--theme--primary-background)" + }, + { + "text": "Draft", + "value": "draft", + "color": "var(--theme--foreground)", + "foreground": "var(--theme--foreground)", + "background": "var(--theme--background-normal)" + }, + { + "text": "Archived", + "value": "archived", + "color": "var(--theme--warning)", + "foreground": "var(--theme--warning)", + "background": "var(--theme--warning-background)" + } + ] + }, + "readonly": false, + "hidden": false, + "sort": 2, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "Photo_Categories", + "field": "user_created", + "type": "uuid", + "schema": { + "name": "user_created", + "table": "Photo_Categories", + "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": "directus_users", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "Photo_Categories", + "field": "user_created", + "special": [ + "user-created" + ], + "interface": "select-dropdown-m2o", + "options": { + "template": "{{avatar}} {{first_name}} {{last_name}}" + }, + "display": "user", + "display_options": null, + "readonly": true, + "hidden": true, + "sort": 3, + "width": "half", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "Photo_Categories", + "field": "date_created", + "type": "timestamp", + "schema": { + "name": "date_created", + "table": "Photo_Categories", + "data_type": "timestamp with time zone", + "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": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "Photo_Categories", + "field": "date_created", + "special": [ + "date-created" + ], + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": true, + "sort": 4, + "width": "half", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "Photo_Categories", + "field": "user_updated", + "type": "uuid", + "schema": { + "name": "user_updated", + "table": "Photo_Categories", + "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": "directus_users", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "Photo_Categories", + "field": "user_updated", + "special": [ + "user-updated" + ], + "interface": "select-dropdown-m2o", + "options": { + "template": "{{avatar}} {{first_name}} {{last_name}}" + }, + "display": "user", + "display_options": null, + "readonly": true, + "hidden": true, + "sort": 5, + "width": "half", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "Photo_Categories", + "field": "date_updated", + "type": "timestamp", + "schema": { + "name": "date_updated", + "table": "Photo_Categories", + "data_type": "timestamp with time zone", + "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": null, + "foreign_key_table": null, + "foreign_key_column": null, + "comment": null + }, + "meta": { + "collection": "Photo_Categories", + "field": "date_updated", + "special": [ + "date-updated" + ], + "interface": "datetime", + "options": null, + "display": "datetime", + "display_options": { + "relative": true + }, + "readonly": true, + "hidden": true, + "sort": 6, + "width": "half", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "Photo_Categories", + "field": "title", + "type": "string", + "schema": { + "name": "title", + "table": "Photo_Categories", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "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": "Photo_Categories", + "field": "title", + "special": null, + "interface": "input", + "options": { + "iconLeft": "title" + }, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": 7, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": true, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "Photo_Categories", + "field": "url", + "type": "string", + "schema": { + "name": "url", + "table": "Photo_Categories", + "data_type": "character varying", + "default_value": null, + "generation_expression": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "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": "Photo_Categories", + "field": "url", + "special": null, + "interface": "input", + "options": { + "iconLeft": "link" + }, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": 8, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": true, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "Photo_Categories", + "field": "thumbnail", + "type": "uuid", + "schema": { + "name": "thumbnail", + "table": "Photo_Categories", + "data_type": "uuid", + "default_value": null, + "generation_expression": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_generated": false, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "has_auto_increment": false, + "foreign_key_schema": "public", + "foreign_key_table": "directus_files", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "Photo_Categories", + "field": "thumbnail", + "special": [ + "file" + ], + "interface": "file-image", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": 9, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": true, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, { "collection": "Website_Settings", "field": "id", @@ -7880,6 +8387,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": "Blog_id", @@ -7984,32 +8517,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": "Tags", "field": "user_updated", @@ -8374,6 +8881,32 @@ "one_deselect_action": "nullify" } }, + { + "collection": "Projects_Tags", + "field": "Projects_id", + "related_collection": "Projects", + "schema": { + "constraint_name": "projects_tags_projects_id_foreign", + "table": "Projects_Tags", + "column": "Projects_id", + "foreign_key_schema": "public", + "foreign_key_table": "Projects", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "SET NULL" + }, + "meta": { + "many_collection": "Projects_Tags", + "many_field": "Projects_id", + "one_collection": "Projects", + "one_field": "tags", + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": "Tags_id", + "sort_field": "sort", + "one_deselect_action": "nullify" + } + }, { "collection": "Projects_Tags", "field": "Tags_id", @@ -8401,23 +8934,23 @@ } }, { - "collection": "Projects_Tags", - "field": "Projects_id", - "related_collection": "Projects", + "collection": "Blogs_Tags", + "field": "Blogs_id", + "related_collection": "Blogs", "schema": { - "constraint_name": "projects_tags_projects_id_foreign", - "table": "Projects_Tags", - "column": "Projects_id", + "constraint_name": "blogs_tags_blogs_id_foreign", + "table": "Blogs_Tags", + "column": "Blogs_id", "foreign_key_schema": "public", - "foreign_key_table": "Projects", + "foreign_key_table": "Blogs", "foreign_key_column": "id", "on_update": "NO ACTION", "on_delete": "SET NULL" }, "meta": { - "many_collection": "Projects_Tags", - "many_field": "Projects_id", - "one_collection": "Projects", + "many_collection": "Blogs_Tags", + "many_field": "Blogs_id", + "one_collection": "Blogs", "one_field": "tags", "one_collection_field": null, "one_allowed_collections": null, @@ -8453,28 +8986,80 @@ } }, { - "collection": "Blogs_Tags", - "field": "Blogs_id", - "related_collection": "Blogs", + "collection": "Photo_Categories", + "field": "user_updated", + "related_collection": "directus_users", "schema": { - "constraint_name": "blogs_tags_blogs_id_foreign", - "table": "Blogs_Tags", - "column": "Blogs_id", + "constraint_name": "photo_categories_user_updated_foreign", + "table": "Photo_Categories", + "column": "user_updated", "foreign_key_schema": "public", - "foreign_key_table": "Blogs", + "foreign_key_table": "directus_users", "foreign_key_column": "id", "on_update": "NO ACTION", - "on_delete": "SET NULL" + "on_delete": "NO ACTION" }, "meta": { - "many_collection": "Blogs_Tags", - "many_field": "Blogs_id", - "one_collection": "Blogs", - "one_field": "tags", + "many_collection": "Photo_Categories", + "many_field": "user_updated", + "one_collection": "directus_users", + "one_field": null, "one_collection_field": null, "one_allowed_collections": null, - "junction_field": "Tags_id", - "sort_field": "sort", + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + }, + { + "collection": "Photo_Categories", + "field": "user_created", + "related_collection": "directus_users", + "schema": { + "constraint_name": "photo_categories_user_created_foreign", + "table": "Photo_Categories", + "column": "user_created", + "foreign_key_schema": "public", + "foreign_key_table": "directus_users", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "NO ACTION" + }, + "meta": { + "many_collection": "Photo_Categories", + "many_field": "user_created", + "one_collection": "directus_users", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, + "one_deselect_action": "nullify" + } + }, + { + "collection": "Photo_Categories", + "field": "thumbnail", + "related_collection": "directus_files", + "schema": { + "constraint_name": "photo_categories_thumbnail_foreign", + "table": "Photo_Categories", + "column": "thumbnail", + "foreign_key_schema": "public", + "foreign_key_table": "directus_files", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "NO ACTION" + }, + "meta": { + "many_collection": "Photo_Categories", + "many_field": "thumbnail", + "one_collection": "directus_files", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": null, "one_deselect_action": "nullify" } },