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