I have data like this:
{
"related_id": "1",
"domain": "test.example.com",
"email_id": [
{
"email_id": "[email protected]",
"tag": "test"
},
{
"email_id": "[email protected]",
"tag": "test"
}
],
"cname": "cname.example.com"
}
I want to store this data in a database
from my understanding this will be a one to many relation where for one domain there will be many email_id. But I can really understand how the models would look like... and how would I insert the data in this relational table. I have worked with one to one relations in beego before but this is confusing me.