Question 27
IITM BS degree program conducts an annual event called Paradox every summer. The event is open to students, and participants are assigned to hostels based on availability. Each student can stay in only one hostel, but a hostel can accommodate multiple students. Additionally, each student can register for multiple events at Paradox, and each event can have multiple registered students. To model this in SQLAlchemy ORM, we need to establish relationships between the Student, Hostel, and Event tables.
Based on the above data, answer the given subquestions.
Which type of relationship best represents the association between students and hostels in the given scenario?
One-to-One
One-to-Many
Many-to-One
Many-to-Many