Refactoring and reworking dbsetup route

This commit is contained in:
2024-06-28 08:03:58 +02:00
parent c076918d05
commit 665da4be29
18 changed files with 390 additions and 162 deletions

0
db/.gitkeep Normal file
View File

29
db/seed/posts.json Normal file
View File

@@ -0,0 +1,29 @@
{
"projects": [
{
"name": "Blog",
"readableIdentifier": "blog",
"posts": [
{
"title": "Test Post",
"content": "# Hello <ExampleComponent />\nthis is some **test** markdown and we make some edits\n![](/attachment/788dfc19-55ba-482c-8124-277702296dfb/FB_IMG_1716665756868.jpg)",
"description": "A new post to test the blog system",
"project_id": 1,
"user_id": 1,
"buckets": [
{
"id": "788dfc19-55ba-482c-8124-277702296dfb",
"attachments": [
{
"path": "FB_IMG_1716665756868.jpg"
},{
"path": "patchnotes.jpg"
}
]
}
]
}
]
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 124 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

21
db/seed/users.json Normal file
View File

@@ -0,0 +1,21 @@
{
"users": [{
"username": "admin",
"password": "changeme",
"perms": {
"isAdmin": true
}
},{
"username": "notadmin",
"password": "changeme",
"perms": {
"isAdmin": false
}
},{
"username": "theodore",
"password": "changeme",
"perms": {
"isAdmin": false
}
}]
}