From f149ffc880d3cfcbd1191288c2a602c0957fadca Mon Sep 17 00:00:00 2001 From: Quinn Hegeman <102350242+itsfinniii@users.noreply.github.com> Date: Sat, 28 Feb 2026 18:39:27 +0100 Subject: [PATCH] Add Photo collection and update Photo_Albums schema in Directus --- directus/schema.json | 1262 ++++++++++++++++++++++++++++++++---------- 1 file changed, 974 insertions(+), 288 deletions(-) diff --git a/directus/schema.json b/directus/schema.json index 28dcd1a..083f2a3 100644 --- a/directus/schema.json +++ b/directus/schema.json @@ -104,6 +104,32 @@ }, "schema": {} }, + { + "collection": "Photo", + "meta": { + "collection": "Photo", + "icon": "photo_camera", + "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": 1, + "group": "Photo_Albums", + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, { "collection": "Photo_Albums", "meta": { @@ -520,6 +546,32 @@ }, "schema": {} }, + { + "collection": "Photo_Albums_Photo_Categories", + "meta": { + "collection": "Photo_Albums_Photo_Categories", + "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": 4, + "group": "Relations", + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": {} + }, { "collection": "Settings", "meta": { @@ -623,32 +675,6 @@ "versioning": false }, "schema": null - }, - { - "collection": "Photo_Albums_Photo_Categories", - "meta": { - "collection": "Photo_Albums_Photo_Categories", - "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": [ @@ -2075,6 +2101,531 @@ "searchable": true } }, + { + "collection": "Photo", + "field": "id", + "type": "uuid", + "schema": { + "name": "id", + "table": "Photo", + "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", + "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", + "field": "status", + "type": "string", + "schema": { + "name": "status", + "table": "Photo", + "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", + "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", + "field": "user_created", + "type": "uuid", + "schema": { + "name": "user_created", + "table": "Photo", + "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", + "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", + "field": "date_created", + "type": "timestamp", + "schema": { + "name": "date_created", + "table": "Photo", + "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", + "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", + "field": "user_updated", + "type": "uuid", + "schema": { + "name": "user_updated", + "table": "Photo", + "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", + "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", + "field": "date_updated", + "type": "timestamp", + "schema": { + "name": "date_updated", + "table": "Photo", + "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", + "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", + "field": "photo", + "type": "uuid", + "schema": { + "name": "photo", + "table": "Photo", + "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", + "field": "photo", + "special": [ + "file" + ], + "interface": "file-image", + "options": null, + "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", + "field": "text", + "type": "text", + "schema": { + "name": "text", + "table": "Photo", + "data_type": "text", + "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", + "field": "text", + "special": null, + "interface": "input-rich-text-md", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": 8, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "Photo", + "field": "Photo_Album_id", + "type": "uuid", + "schema": { + "name": "Photo_Album_id", + "table": "Photo", + "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": "Photo_Albums", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "Photo", + "field": "Photo_Album_id", + "special": [ + "uuid" + ], + "interface": "input", + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": true, + "sort": 9, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, + { + "collection": "Photo", + "field": "sort", + "type": "integer", + "schema": { + "name": "sort", + "table": "Photo", + "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": "Photo", + "field": "sort", + "special": null, + "interface": null, + "options": null, + "display": null, + "display_options": null, + "readonly": false, + "hidden": true, + "sort": 10, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, { "collection": "Photo_Albums", "field": "id", @@ -2773,6 +3324,37 @@ "searchable": true } }, + { + "collection": "Photo_Albums", + "field": "photos", + "type": "alias", + "schema": null, + "meta": { + "collection": "Photo_Albums", + "field": "photos", + "special": [ + "o2m" + ], + "interface": "list-o2m", + "options": { + "template": "{{photo.$thumbnail}} {{text}}" + }, + "display": null, + "display_options": null, + "readonly": false, + "hidden": false, + "sort": 15, + "width": "full", + "translations": null, + "note": null, + "conditions": null, + "required": false, + "group": null, + "validation": null, + "validation_message": null, + "searchable": true + } + }, { "collection": "Robots", "field": "id", @@ -8552,6 +9134,190 @@ "searchable": true } }, + { + "collection": "Photo_Albums_Photo_Categories", + "field": "id", + "type": "integer", + "schema": { + "name": "id", + "table": "Photo_Albums_Photo_Categories", + "data_type": "integer", + "default_value": "nextval('\"Photo_Albums_Photo_Categories_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": "Photo_Albums_Photo_Categories", + "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": "Photo_Albums_Photo_Categories", + "field": "Photo_Albums_id", + "type": "uuid", + "schema": { + "name": "Photo_Albums_id", + "table": "Photo_Albums_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": "Photo_Albums", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "Photo_Albums_Photo_Categories", + "field": "Photo_Albums_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": "Photo_Albums_Photo_Categories", + "field": "Photo_Categories_id", + "type": "uuid", + "schema": { + "name": "Photo_Categories_id", + "table": "Photo_Albums_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": "Photo_Categories", + "foreign_key_column": "id", + "comment": null + }, + "meta": { + "collection": "Photo_Albums_Photo_Categories", + "field": "Photo_Categories_id", + "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": "Photo_Albums_Photo_Categories", + "field": "sort", + "type": "integer", + "schema": { + "name": "sort", + "table": "Photo_Albums_Photo_Categories", + "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": "Photo_Albums_Photo_Categories", + "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": "Sitemap_Settings", "field": "id", @@ -8880,190 +9646,6 @@ "validation_message": null, "searchable": true } - }, - { - "collection": "Photo_Albums_Photo_Categories", - "field": "id", - "type": "integer", - "schema": { - "name": "id", - "table": "Photo_Albums_Photo_Categories", - "data_type": "integer", - "default_value": "nextval('\"Photo_Albums_Photo_Categories_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": "Photo_Albums_Photo_Categories", - "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": "Photo_Albums_Photo_Categories", - "field": "Photo_Albums_id", - "type": "uuid", - "schema": { - "name": "Photo_Albums_id", - "table": "Photo_Albums_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": "Photo_Albums", - "foreign_key_column": "id", - "comment": null - }, - "meta": { - "collection": "Photo_Albums_Photo_Categories", - "field": "Photo_Albums_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": "Photo_Albums_Photo_Categories", - "field": "Photo_Categories_id", - "type": "uuid", - "schema": { - "name": "Photo_Categories_id", - "table": "Photo_Albums_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": "Photo_Categories", - "foreign_key_column": "id", - "comment": null - }, - "meta": { - "collection": "Photo_Albums_Photo_Categories", - "field": "Photo_Categories_id", - "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": "Photo_Albums_Photo_Categories", - "field": "sort", - "type": "integer", - "schema": { - "name": "sort", - "table": "Photo_Albums_Photo_Categories", - "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": "Photo_Albums_Photo_Categories", - "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 - } } ], "relations": [ @@ -9269,6 +9851,136 @@ "one_deselect_action": "nullify" } }, + { + "collection": "Photo", + "field": "user_created", + "related_collection": "directus_users", + "schema": { + "constraint_name": "photo_user_created_foreign", + "table": "Photo", + "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", + "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", + "field": "user_updated", + "related_collection": "directus_users", + "schema": { + "constraint_name": "photo_user_updated_foreign", + "table": "Photo", + "column": "user_updated", + "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", + "many_field": "user_updated", + "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", + "field": "photo", + "related_collection": "directus_files", + "schema": { + "constraint_name": "photo_photo_foreign", + "table": "Photo", + "column": "photo", + "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", + "many_field": "photo", + "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" + } + }, + { + "collection": "Photo", + "field": "Photo_Album_id", + "related_collection": "Photo_Albums", + "schema": { + "constraint_name": "photo_photo_album_id_foreign", + "table": "Photo", + "column": "Photo_Album_id", + "foreign_key_schema": "public", + "foreign_key_table": "Photo_Albums", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "SET NULL" + }, + "meta": { + "many_collection": "Photo", + "many_field": "Photo_Album_id", + "one_collection": "Photo_Albums", + "one_field": "photos", + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": null, + "sort_field": "sort", + "one_deselect_action": "nullify" + } + }, + { + "collection": "Photo_Albums", + "field": "thumbnail", + "related_collection": "directus_files", + "schema": { + "constraint_name": "photo_albums_thumbnail_foreign", + "table": "Photo_Albums", + "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_Albums", + "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" + } + }, { "collection": "Photo_Albums", "field": "user_updated", @@ -9321,32 +10033,6 @@ "one_deselect_action": "nullify" } }, - { - "collection": "Photo_Albums", - "field": "thumbnail", - "related_collection": "directus_files", - "schema": { - "constraint_name": "photo_albums_thumbnail_foreign", - "table": "Photo_Albums", - "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_Albums", - "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" - } - }, { "collection": "Robots", "field": "user_updated", @@ -10127,6 +10813,58 @@ "one_deselect_action": "nullify" } }, + { + "collection": "Photo_Albums_Photo_Categories", + "field": "Photo_Albums_id", + "related_collection": "Photo_Albums", + "schema": { + "constraint_name": "photo_albums_photo_categories_photo_albums_id_foreign", + "table": "Photo_Albums_Photo_Categories", + "column": "Photo_Albums_id", + "foreign_key_schema": "public", + "foreign_key_table": "Photo_Albums", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "SET NULL" + }, + "meta": { + "many_collection": "Photo_Albums_Photo_Categories", + "many_field": "Photo_Albums_id", + "one_collection": "Photo_Albums", + "one_field": "category", + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": "Photo_Categories_id", + "sort_field": "sort", + "one_deselect_action": "nullify" + } + }, + { + "collection": "Photo_Albums_Photo_Categories", + "field": "Photo_Categories_id", + "related_collection": "Photo_Categories", + "schema": { + "constraint_name": "photo_albums_photo_categories_photo_categories_id_foreign", + "table": "Photo_Albums_Photo_Categories", + "column": "Photo_Categories_id", + "foreign_key_schema": "public", + "foreign_key_table": "Photo_Categories", + "foreign_key_column": "id", + "on_update": "NO ACTION", + "on_delete": "SET NULL" + }, + "meta": { + "many_collection": "Photo_Albums_Photo_Categories", + "many_field": "Photo_Categories_id", + "one_collection": "Photo_Categories", + "one_field": null, + "one_collection_field": null, + "one_allowed_collections": null, + "junction_field": "Photo_Albums_id", + "sort_field": null, + "one_deselect_action": "nullify" + } + }, { "collection": "Sitemap_Settings", "field": "user_updated", @@ -10178,58 +10916,6 @@ "sort_field": null, "one_deselect_action": "nullify" } - }, - { - "collection": "Photo_Albums_Photo_Categories", - "field": "Photo_Categories_id", - "related_collection": "Photo_Categories", - "schema": { - "constraint_name": "photo_albums_photo_categories_photo_categories_id_foreign", - "table": "Photo_Albums_Photo_Categories", - "column": "Photo_Categories_id", - "foreign_key_schema": "public", - "foreign_key_table": "Photo_Categories", - "foreign_key_column": "id", - "on_update": "NO ACTION", - "on_delete": "SET NULL" - }, - "meta": { - "many_collection": "Photo_Albums_Photo_Categories", - "many_field": "Photo_Categories_id", - "one_collection": "Photo_Categories", - "one_field": null, - "one_collection_field": null, - "one_allowed_collections": null, - "junction_field": "Photo_Albums_id", - "sort_field": null, - "one_deselect_action": "nullify" - } - }, - { - "collection": "Photo_Albums_Photo_Categories", - "field": "Photo_Albums_id", - "related_collection": "Photo_Albums", - "schema": { - "constraint_name": "photo_albums_photo_categories_photo_albums_id_foreign", - "table": "Photo_Albums_Photo_Categories", - "column": "Photo_Albums_id", - "foreign_key_schema": "public", - "foreign_key_table": "Photo_Albums", - "foreign_key_column": "id", - "on_update": "NO ACTION", - "on_delete": "SET NULL" - }, - "meta": { - "many_collection": "Photo_Albums_Photo_Categories", - "many_field": "Photo_Albums_id", - "one_collection": "Photo_Albums", - "one_field": "category", - "one_collection_field": null, - "one_allowed_collections": null, - "junction_field": "Photo_Categories_id", - "sort_field": "sort", - "one_deselect_action": "nullify" - } } ] } \ No newline at end of file