0
I have a teaching application in it I have a model for Classes (Room) and another for Students (Student).
In my business rule, each student can be enrolled in up to three classes. For this I simply created 3 more columns in the student register.
- room_1 (integer)
- room_2 (integer)
- room_3 (integer)
And in the creation I place the class id manually (form select) inside each column.
My problem is that:
- I know it’s not the right way to create this relationship.
- I’m having several problems at the time of generating report why I need to take several turns to consult the data.