AntonF
1
There are three type of panels, every panel has its own set of a umber of models
how can a model be selected that is part of selected panel models?
'paneltypes': collection ['paneltype'] {
'paneltype': text
}
'modeltypes': collection ['modeltype'] {
'modetype': text
'paneltype': text
}
'projecten': collection ['project'] {
'project': text
'panel': text -> ^ .'paneltypes'[]
'model': text -> ^ .'modeltypes'[]
}
If each panel has its own set of models, you would typically model it as a nested collection. I think you would end up with the following model:
'paneltypes': collection ['paneltype'] {
'paneltype': text
'modeltypes': collection ['modeltype'] {
'modeltype': text
}
}
'projecten': collection ['project'] {
'project': text
'panel': text -> ^ .'paneltypes'[]
'model': text -> > 'panel' .'modeltypes'[]
}
Notice that the reference .'projecten'.'model'
uses the panel
reference.
1 Like