我有一个这样的json文件
[
{
"topic": "Example1",
"ref": {
"1": "Example Topic",
"2": "Topic"
},
"contact": [
{
"ref": [
1
],
"corresponding": true,
"name": "XYZ"
},
{
"ref": [
1
],
"name": "ZXY"
},
{
"ref": [
1
],
"name": "ABC"
},
{
"ref": [
1,
2
],
"name":"BCA"
}
] ,
"type": "Presentation"
},
{
"topic": "Example2",
"ref": {
"1": "Example Topic",
"2": "Topic"
},
"contact": [
{
"ref": [
1
],
"corresponding": true,
"name": "XYZ"
},
{
"ref": [
1
],
"name": "ZXY"
},
{
"ref": [
1
],
"name": "ABC"
},
{
"ref": [
1,
2
],
"name":"BCA"
}
] ,
"type": "Poster"
}
]
我创建了3 Tables
Items,Reference,Contact 一是
Items:
Item_ID
topic
type
reference:
ref_ID
content
Contact:
ref_ID
contact_ID
Item_ID
name
关系 :
1) Items has many references
2)Items has many Authors
3)Authors has many references
现在,我的问题是
1)我应该在这里做错什么吗?
2)有什么办法可以改善我目前的实施?
3)在这里,我对实现corresponding
(在联系人数组内部)感到困惑。我如何在设计中实现它?
谢谢。