Question 28
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 SQLAlchemy relationship should be used to model the many-to-many relationship between students and events in the Paradox ?