Add map location with coordinates to location in Upcoming Events in Directus

This commit is contained in:
Quinn Hegeman
2026-03-01 16:25:12 +01:00
parent 48a4739a08
commit fa4c74e58c

View File

@@ -7380,26 +7380,6 @@
"collection": "Upcoming_Event",
"field": "id",
"type": "uuid",
"schema": {
"name": "id",
"table": "Upcoming_Event",
"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": "Upcoming_Event",
"field": "id",
@@ -7422,14 +7402,9 @@
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Upcoming_Event",
"field": "user_created",
"type": "uuid",
"schema": {
"name": "user_created",
"name": "id",
"table": "Upcoming_Event",
"data_type": "uuid",
"default_value": null,
@@ -7438,16 +7413,21 @@
"numeric_precision": null,
"numeric_scale": null,
"is_generated": false,
"is_nullable": true,
"is_unique": false,
"is_nullable": false,
"is_unique": true,
"is_indexed": false,
"is_primary_key": false,
"is_primary_key": true,
"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": "Upcoming_Event",
"field": "user_created",
"type": "uuid",
"meta": {
"collection": "Upcoming_Event",
"field": "user_created",
@@ -7472,16 +7452,11 @@
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Upcoming_Event",
"field": "date_created",
"type": "timestamp",
"schema": {
"name": "date_created",
"name": "user_created",
"table": "Upcoming_Event",
"data_type": "timestamp with time zone",
"data_type": "uuid",
"default_value": null,
"generation_expression": null,
"max_length": null,
@@ -7493,11 +7468,16 @@
"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": "Upcoming_Event",
"field": "date_created",
"type": "timestamp",
"meta": {
"collection": "Upcoming_Event",
"field": "date_created",
@@ -7522,16 +7502,11 @@
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Upcoming_Event",
"field": "user_updated",
"type": "uuid",
"schema": {
"name": "user_updated",
"name": "date_created",
"table": "Upcoming_Event",
"data_type": "uuid",
"data_type": "timestamp with time zone",
"default_value": null,
"generation_expression": null,
"max_length": null,
@@ -7543,11 +7518,16 @@
"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": "Upcoming_Event",
"field": "user_updated",
"type": "uuid",
"meta": {
"collection": "Upcoming_Event",
"field": "user_updated",
@@ -7572,16 +7552,11 @@
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Upcoming_Event",
"field": "date_updated",
"type": "timestamp",
"schema": {
"name": "date_updated",
"name": "user_updated",
"table": "Upcoming_Event",
"data_type": "timestamp with time zone",
"data_type": "uuid",
"default_value": null,
"generation_expression": null,
"max_length": null,
@@ -7593,11 +7568,16 @@
"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": "Upcoming_Event",
"field": "date_updated",
"type": "timestamp",
"meta": {
"collection": "Upcoming_Event",
"field": "date_updated",
@@ -7622,23 +7602,18 @@
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Upcoming_Event",
"field": "title",
"type": "string",
"schema": {
"name": "title",
"name": "date_updated",
"table": "Upcoming_Event",
"data_type": "character varying",
"data_type": "timestamp with time zone",
"default_value": null,
"generation_expression": null,
"max_length": 255,
"max_length": null,
"numeric_precision": null,
"numeric_scale": null,
"is_generated": false,
"is_nullable": false,
"is_nullable": true,
"is_unique": false,
"is_indexed": false,
"is_primary_key": false,
@@ -7647,7 +7622,12 @@
"foreign_key_table": null,
"foreign_key_column": null,
"comment": null
}
},
{
"collection": "Upcoming_Event",
"field": "title",
"type": "string",
"meta": {
"collection": "Upcoming_Event",
"field": "title",
@@ -7670,23 +7650,18 @@
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Upcoming_Event",
"field": "description",
"type": "text",
"schema": {
"name": "description",
"name": "title",
"table": "Upcoming_Event",
"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,
"is_nullable": true,
"is_nullable": false,
"is_unique": false,
"is_indexed": false,
"is_primary_key": false,
@@ -7695,7 +7670,12 @@
"foreign_key_table": null,
"foreign_key_column": null,
"comment": null
}
},
{
"collection": "Upcoming_Event",
"field": "description",
"type": "text",
"meta": {
"collection": "Upcoming_Event",
"field": "description",
@@ -7716,19 +7696,14 @@
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Upcoming_Event",
"field": "location",
"type": "string",
"schema": {
"name": "location",
"name": "description",
"table": "Upcoming_Event",
"data_type": "character varying",
"data_type": "text",
"default_value": null,
"generation_expression": null,
"max_length": 255,
"max_length": null,
"numeric_precision": null,
"numeric_scale": null,
"is_generated": false,
@@ -7741,7 +7716,12 @@
"foreign_key_table": null,
"foreign_key_column": null,
"comment": null
}
},
{
"collection": "Upcoming_Event",
"field": "location",
"type": "string",
"meta": {
"collection": "Upcoming_Event",
"field": "location",
@@ -7764,12 +7744,112 @@
"validation": null,
"validation_message": null,
"searchable": true
},
"schema": {
"name": "location",
"table": "Upcoming_Event",
"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
}
},
{
"collection": "Upcoming_Event",
"field": "map_location",
"type": "geometry.Point",
"meta": {
"collection": "Upcoming_Event",
"field": "map_location",
"special": null,
"interface": "map",
"options": {
"defaultView": {
"center": {
"lng": 0,
"lat": 0
},
"zoom": 0,
"bearing": 0,
"pitch": 0
},
"geometryType": "Point"
},
"display": null,
"display_options": null,
"readonly": false,
"hidden": false,
"sort": 9,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": false,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
},
"schema": {
"name": "map_location",
"table": "Upcoming_Event",
"data_type": "POINT",
"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
}
},
{
"collection": "Upcoming_Event",
"field": "thumbnail",
"type": "uuid",
"meta": {
"collection": "Upcoming_Event",
"field": "thumbnail",
"special": [
"file"
],
"interface": "file-image",
"options": null,
"display": null,
"display_options": null,
"readonly": false,
"hidden": false,
"sort": 10,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": false,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
},
"schema": {
"name": "thumbnail",
"table": "Upcoming_Event",
@@ -7789,35 +7869,33 @@
"foreign_key_table": "directus_files",
"foreign_key_column": "id",
"comment": null
},
"meta": {
"collection": "Upcoming_Event",
"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": false,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Upcoming_Event",
"field": "start_date",
"type": "date",
"meta": {
"collection": "Upcoming_Event",
"field": "start_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": true,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
},
"schema": {
"name": "start_date",
"table": "Upcoming_Event",
@@ -7837,10 +7915,15 @@
"foreign_key_table": null,
"foreign_key_column": null,
"comment": null
}
},
{
"collection": "Upcoming_Event",
"field": "end_date",
"type": "date",
"meta": {
"collection": "Upcoming_Event",
"field": "start_date",
"field": "end_date",
"special": null,
"interface": "datetime",
"options": null,
@@ -7848,22 +7931,17 @@
"display_options": null,
"readonly": false,
"hidden": false,
"sort": 10,
"sort": 12,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": true,
"required": false,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Upcoming_Event",
"field": "end_date",
"type": "date",
"schema": {
"name": "end_date",
"table": "Upcoming_Event",
@@ -7883,18 +7961,25 @@
"foreign_key_table": null,
"foreign_key_column": null,
"comment": null
}
},
{
"collection": "Upcoming_Event",
"field": "Upcoming_Events_id",
"type": "uuid",
"meta": {
"collection": "Upcoming_Event",
"field": "end_date",
"special": null,
"interface": "datetime",
"field": "Upcoming_Events_id",
"special": [
"uuid"
],
"interface": "input",
"options": null,
"display": null,
"display_options": null,
"readonly": false,
"hidden": false,
"sort": 11,
"hidden": true,
"sort": 13,
"width": "full",
"translations": null,
"note": null,
@@ -7904,12 +7989,7 @@
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Upcoming_Event",
"field": "Upcoming_Events_id",
"type": "uuid",
"schema": {
"name": "Upcoming_Events_id",
"table": "Upcoming_Event",
@@ -7929,20 +8009,23 @@
"foreign_key_table": "Upcoming_Events",
"foreign_key_column": "id",
"comment": null
}
},
{
"collection": "Upcoming_Event",
"field": "sort",
"type": "integer",
"meta": {
"collection": "Upcoming_Event",
"field": "Upcoming_Events_id",
"special": [
"uuid"
],
"interface": "input",
"field": "sort",
"special": null,
"interface": null,
"options": null,
"display": null,
"display_options": null,
"readonly": false,
"hidden": true,
"sort": 12,
"sort": 14,
"width": "full",
"translations": null,
"note": null,
@@ -7952,12 +8035,7 @@
"validation": null,
"validation_message": null,
"searchable": true
}
},
{
"collection": "Upcoming_Event",
"field": "sort",
"type": "integer",
"schema": {
"name": "sort",
"table": "Upcoming_Event",
@@ -7977,27 +8055,6 @@
"foreign_key_table": null,
"foreign_key_column": null,
"comment": null
},
"meta": {
"collection": "Upcoming_Event",
"field": "sort",
"special": null,
"interface": null,
"options": null,
"display": null,
"display_options": null,
"readonly": false,
"hidden": true,
"sort": 13,
"width": "full",
"translations": null,
"note": null,
"conditions": null,
"required": false,
"group": null,
"validation": null,
"validation_message": null,
"searchable": true
}
},
{