задать правильно схему для денормализации.
надо на выходе получить
{
"tasksById": [
{
"id": 1,
"taskName": "Task 1",
"taskStart": 3,
"taskDuration": 7,
"cellColor": "red"
},
{
"id": 2,
"taskName": "Task 2",
"taskStart": 1,
"taskDuration": 9,
"cellColor": "blue"
},
{
"id": 3,
"taskName": "Task 3",
"taskStart": 4,
"taskDuration": 4,
"cellColor": "green"
},
{
"id": 4,
"taskName": "Task 4",
"taskStart": 3,
"taskDuration": 7,
"cellColor": "yellow"
},
{
"id": 5,
"taskName": "Task 5",
"taskStart": 1,
"taskDuration": 5,
"cellColor": "purple"
},
{
"id": 6,
"taskName": "Task 6",
"taskStart": 2,
"taskDuration": 9,
"cellColor": "orange"
},
{
"id": 7,
"taskName": "Task 7",
"taskStart": 4,
"taskDuration": 3,
"cellColor": "grey"
},
{
"id": 8,
"taskName": "Task 8",
"taskStart": 3,
"taskDuration": 7,
"cellColor": "blue"
},
{
"id": 9,
"taskName": "Task 9",
"taskStart": 6,
"taskDuration": 2,
"cellColor": "cyan"
},
{
"id": 10,
"taskName": "Task 10",
"taskStart": 2,
"taskDuration": 8,
"cellColor": "red"
}
]
}
юзайте gist ради бога
Обсуждают сегодня