Since, I need to redo the users, would this work. In this example, user 1 (John Doe) creates topic 1, “The Title”, and this topic has 1 post by John Doe with content of Body?
If this is correct, How do I use the json_generic script to start the process? I’m a little confused on the next step in the process.
"topics": [
{
"id": 1,
"user_id": "1",
"title": "The title",
"pinned": false,
"posts": [
{
"id": 2,
"user_id": "1",
"body": "The body",
"date": "The date",
"author": "username"
}
]
}
],
"users": [
{
"id": "1",
"name": "John Doe",
"email": "John_Doe@wahoo.com",
"password": "asfd9!t",
"username": "John Doe",
"active": true,
"approved": true
},
]
}