Refactoring and reworking dbsetup route
This commit is contained in:
0
db/.gitkeep
Normal file
0
db/.gitkeep
Normal file
29
db/seed/posts.json
Normal file
29
db/seed/posts.json
Normal 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",
|
||||
"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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
BIN
db/seed/posts/FB_IMG_1716665756868.jpg
Normal file
BIN
db/seed/posts/FB_IMG_1716665756868.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 124 KiB |
BIN
db/seed/posts/patchnotes.png
Normal file
BIN
db/seed/posts/patchnotes.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
21
db/seed/users.json
Normal file
21
db/seed/users.json
Normal 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
|
||||
}
|
||||
}]
|
||||
}
|
||||
Reference in New Issue
Block a user