Add Photo albums M2M join and album fields in Directus
This commit is contained in:
@@ -623,6 +623,32 @@
|
||||
"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": [
|
||||
@@ -2434,6 +2460,52 @@
|
||||
"searchable": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"collection": "Photo_Albums",
|
||||
"field": "description",
|
||||
"type": "text",
|
||||
"schema": {
|
||||
"name": "description",
|
||||
"table": "Photo_Albums",
|
||||
"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_Albums",
|
||||
"field": "description",
|
||||
"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_Albums",
|
||||
"field": "url",
|
||||
@@ -2470,7 +2542,7 @@
|
||||
"display_options": null,
|
||||
"readonly": false,
|
||||
"hidden": false,
|
||||
"sort": 8,
|
||||
"sort": 9,
|
||||
"width": "full",
|
||||
"translations": null,
|
||||
"note": null,
|
||||
@@ -2518,7 +2590,7 @@
|
||||
"display_options": null,
|
||||
"readonly": false,
|
||||
"hidden": false,
|
||||
"sort": 9,
|
||||
"sort": 10,
|
||||
"width": "full",
|
||||
"translations": null,
|
||||
"note": null,
|
||||
@@ -2564,7 +2636,7 @@
|
||||
"display_options": null,
|
||||
"readonly": false,
|
||||
"hidden": false,
|
||||
"sort": 10,
|
||||
"sort": 11,
|
||||
"width": "full",
|
||||
"translations": null,
|
||||
"note": null,
|
||||
@@ -2610,7 +2682,7 @@
|
||||
"display_options": null,
|
||||
"readonly": false,
|
||||
"hidden": false,
|
||||
"sort": 11,
|
||||
"sort": 12,
|
||||
"width": "full",
|
||||
"translations": null,
|
||||
"note": null,
|
||||
@@ -2622,6 +2694,85 @@
|
||||
"searchable": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"collection": "Photo_Albums",
|
||||
"field": "location",
|
||||
"type": "string",
|
||||
"schema": {
|
||||
"name": "location",
|
||||
"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": 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": "location",
|
||||
"special": null,
|
||||
"interface": "input",
|
||||
"options": {
|
||||
"iconLeft": "globe_location_pin"
|
||||
},
|
||||
"display": null,
|
||||
"display_options": null,
|
||||
"readonly": false,
|
||||
"hidden": false,
|
||||
"sort": 13,
|
||||
"width": "full",
|
||||
"translations": null,
|
||||
"note": null,
|
||||
"conditions": null,
|
||||
"required": false,
|
||||
"group": null,
|
||||
"validation": null,
|
||||
"validation_message": null,
|
||||
"searchable": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"collection": "Photo_Albums",
|
||||
"field": "category",
|
||||
"type": "alias",
|
||||
"schema": null,
|
||||
"meta": {
|
||||
"collection": "Photo_Albums",
|
||||
"field": "category",
|
||||
"special": [
|
||||
"m2m"
|
||||
],
|
||||
"interface": "list-m2m",
|
||||
"options": {
|
||||
"template": "{{Photo_Categories_id.title}}"
|
||||
},
|
||||
"display": null,
|
||||
"display_options": null,
|
||||
"readonly": false,
|
||||
"hidden": false,
|
||||
"sort": 14,
|
||||
"width": "full",
|
||||
"translations": null,
|
||||
"note": null,
|
||||
"conditions": null,
|
||||
"required": true,
|
||||
"group": null,
|
||||
"validation": null,
|
||||
"validation_message": null,
|
||||
"searchable": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"collection": "Robots",
|
||||
"field": "id",
|
||||
@@ -8729,6 +8880,190 @@
|
||||
"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": [
|
||||
@@ -9843,6 +10178,58 @@
|
||||
"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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user