feat(backend): directus seed advanced (#306)

* directus minimal seed & seed instructions

* more seed data

* places-layer

---------

Co-authored-by: Anton Tranelis <31516529+antontranelis@users.noreply.github.com>
This commit is contained in:
Ulf Gebhardt 2025-08-14 08:47:23 +01:00 committed by GitHub
parent aa13c44cba
commit 5c79633ea4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 81 additions and 2 deletions

View File

@ -118,3 +118,4 @@ sudo chmod 777 -R ./data/
This process is to be repeated whenever you restart the database docker container
The same applies for the uploads and extension folder - ensure that the folder is writeable or file uploads will fail.

View File

@ -0,0 +1,26 @@
{
"collection": "layers",
"meta": {
"insert_order": 1,
"create": true,
"update": true,
"delete": true,
"preserve_ids": false,
"ignore_on_update": []
},
"data": [
{
"_sync_id": "layer-places",
"name": "Places",
"itemType": "type-test",
"userProfileLayer": false,
"menuColor": "#2ECDA7",
"markerDefaultColor2": null,
"onlyOnePerOwner": false,
"index_plus_button": true,
"public_edit_items": false,
"listed": true,
"item_presets": null
}
]
}

View File

@ -0,0 +1,18 @@
{
"collection": "layers_maps",
"meta": {
"insert_order": 1,
"create": true,
"update": true,
"delete": true,
"preserve_ids": false,
"ignore_on_update": []
},
"data": [
{
"_sync_id": "layer-places-map-local-development",
"layers_id": "layer-places",
"maps_id": "map-local-development"
}
]
}

View File

@ -10,9 +10,21 @@
},
"data": [
{
"_sync_id": "local-development",
"_sync_id": "map-local-development",
"name": "Local Development",
"url": "http://local.development"
"url": "http://local.development",
"zoom": 6,
"own_tag_space": true,
"center": {
"type": "Point",
"coordinates": [
10.067625824315172,
50.51565268622562
]
},
"donation_widget": false,
"custom_text": "# Welcome to the Development Server\n\nThis map is just for development purposes and to try out new things.",
"default_theme": null
}
]
}

View File

@ -0,0 +1,22 @@
{
"collection": "types",
"meta": {
"insert_order": 1,
"create": true,
"update": true,
"delete": true,
"preserve_ids": false,
"ignore_on_update": []
},
"data": [
{
"_sync_id": "type-test",
"user_created": null,
"date_created": "2025-01-01T00:00:00.000Z",
"user_updated": null,
"date_updated": null,
"name": "test",
"template": "flex"
}
]
}