Poiché devo ricreare gli utenti, funzionerebbe così? In questo esempio, l’utente 1 (John Doe) crea l’argomento 1, “The Title”, e questo argomento ha 1 post di John Doe con il contenuto “Body”?
Se è corretto, come posso utilizzare lo script json_generic per avviare il processo? Sono un po’ confuso sul prossimo passo.
"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
},
]
}