Could not assemble any primary key columns for mapped table
When I'm trying to create a database schema migration, I'm getting this weird error. Can you please help me to figure out what's wrong? $ python app.py db upgrade [skipped] sqlalchemy.exc.ArgumentError: Mapper Mapper|EssayStateAssociations|essay_associations could not assemble any primary key columns for mapped table 'essay_associations' My model: class EssayStateAssociations(db.Model): __tablename__ = 'essay_associations' application_essay_id = db.Column( db.Integer, db.ForeignKey("application_essay.id"), primary_key=True), theme_essay_id = db.Column( db.Integer, db.ForeignKey("theme_essay.id