Question 8
Consider the following models Creator and Song corresponding to tables creator and song in SQLite database.
class Creator(db.Model): id = db.Column(db.Integer(), primary_key = True) c_name = db.Column(db.String(), unique = True)
class Song(db.Model): id = db.Column(db.Integer(), primary_key = True) s_title = db.Column(db.String(), unique = True) singer = db.Column(db.Integer(), db.ForeignKey("creator.id"))Based on the model schemas, what relationship do the table creator and song share?
Many-to-Many
One-to-Many
One-to-One
The tables are not at all related