fullcalendar调度程序mysql资源json

fullcalendar调度程序mysql资源json,mysql,json,resources,fullcalendar,Mysql,Json,Resources,Fullcalendar,我尝试将mysql用于以下json。但是如何在mysql中构建儿童室D1和D2呢? 现在我很难为id d和他的孩子d1和d2建立主/细节关系。请建议如何使用mysql实现这一点 [ { "id": "a", "title": "Auditorium A" }, { "id": "b", "title": "Auditorium B", "eventColor": "green" }, { "id": "c", "title": "Auditorium C", "eventColor": "ora

我尝试将mysql用于以下json。但是如何在mysql中构建儿童室D1和D2呢? 现在我很难为id d和他的孩子d1和d2建立主/细节关系。请建议如何使用mysql实现这一点

[
{ "id": "a", "title": "Auditorium A" },
{ "id": "b", "title": "Auditorium B", "eventColor": "green" },
{ "id": "c", "title": "Auditorium C", "eventColor": "orange" },
{ "id": "d", "title": "Auditorium D", "children": [
    { "id": "d1", "title": "Room D1" },
    { "id": "d2", "title": "Room D2" }
] }, 

谢谢使用家长Id参考此链接

资源:[ { id:'a', 标题:“A房间” }, { id:'a1', parentId:'a', 标题:“A1房间” }, { id:'a2', parentId:'a', 标题:“A2房间” } ]
Use Parent Id refer to this link http://fullcalendar.io/docs/resource_data/Resource_Object/