Add Photo Albums to Directus

This commit is contained in:
Quinn Hegeman
2026-02-28 17:39:15 +01:00
parent b784758bf1
commit 4507e09a5b

View File

@@ -104,6 +104,32 @@
},
"schema": {}
},
{
"collection": "Photo_Albums",
"meta": {
"collection": "Photo_Albums",
"icon": "gallery_thumbnail",
"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_Categories",
"collapse": "open",
"preview_url": null,
"versioning": false
},
"schema": {}
},
{
"collection": "Robots",
"meta": {
@@ -2023,6 +2049,579 @@
"searchable": true
}
},
{
"collection": "Photo_Albums",
"field": "id",
"type": "uuid",
"schema": {
"name": "id",
"table": "Photo_Albums",
"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_Albums",
"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_Albums",
"field": "status",
"type": "string",
"schema": {
"name": "status",
"table": "Photo_Albums",
"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_Albums",
"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_Albums",
"field": "user_created",
"type": "uuid",
"schema": {
"name": "user_created",
"table": "Photo_Albums",
"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_Albums",
"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_Albums",
"field": "date_created",
"type": "timestamp",
"schema": {
"name": "date_created",
"table": "Photo_Albums",
"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_Albums",
"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_Albums",
"field": "user_updated",
"type": "uuid",
"schema": {
"name": "user_updated",
"table": "Photo_Albums",
"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_Albums",
"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_Albums",
"field": "date_updated",
"type": "timestamp",
"schema": {
"name": "date_updated",
"table": "Photo_Albums",
"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_Albums",
"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_Albums",
"field": "title",
"type": "string",
"schema": {
"name": "title",
"table": "Photo_Albums",
"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_Albums",
"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_Albums",
"field": "url",
"type": "string",
"schema": {
"name": "url",
"table": "Photo_Albums",
"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
},
"meta": {
"collection": "Photo_Albums",
"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_Albums",
"field": "thumbnail",
"type": "uuid",
"schema": {
"name": "thumbnail",
"table": "Photo_Albums",
"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_Albums",
"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": "Photo_Albums",
"field": "start_date",
"type": "date",
"schema": {
"name": "start_date",
"table": "Photo_Albums",
"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": true,
"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",
"field": "start_date",
"special": null,
"interface": "datetime",
"options": null,
"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": "Photo_Albums",
"field": "end_date",
"type": "date",
"schema": {
"name": "end_date",
"table": "Photo_Albums",
"data_type": "date",
"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_Albums",
"field": "end_date",
"special": null,
"interface": "datetime",
"options": null,
"display": null,
"display_options": null,
"readonly": false,
"hidden": false,
"sort": 11,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": false,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Robots",
"field": "id",
@@ -8335,6 +8934,84 @@
"one_deselect_action": "nullify"
}
},
{
"collection": "Photo_Albums",
"field": "user_updated",
"related_collection": "directus_users",
"schema": {
"constraint_name": "photo_albums_user_updated_foreign",
"table": "Photo_Albums",
"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_Albums",
"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_Albums",
"field": "user_created",
"related_collection": "directus_users",
"schema": {
"constraint_name": "photo_albums_user_created_foreign",
"table": "Photo_Albums",
"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_Albums",
"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_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",
@@ -8985,6 +9662,32 @@
"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"
}
},
{
"collection": "Photo_Categories",
"field": "user_updated",
@@ -9037,32 +9740,6 @@
"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"
}
},
{
"collection": "Website_Settings",
"field": "user_updated",