Question 7
Consider the following models Department and Student corresponding to tables department and student in SQLite database.
class Department(db.Model): id = db.Column(db.Integer(), primary_key = True) name = db.Column(db.String(), unique = True)
class Student(db.Model): id = db.Column(db.Integer(), primary_key = True) name = db.Column(db.String(), unique = True) department = db.Column(db.Integer(), db.ForeignKey("faculty.id"))Based on the model schemas, what relationship do the classes Department and Student share?
Many-to-Many
One-to-Many
One-to-One
The tables are not at all related