【报错】sqlalchemy.exc.ArgumentError: Mapper mapped class Role→role could not assemble any primary key
出错代码:#生成抽象模型,不会创建模型对应的表,减少重复代码classBaseModel(db.Model):__abstract__=Trueid=db.Column(db.Integer,pramary_key=True,autoincrement=True)name=db.Column(db.String(20),unique=True,nullable=False)classRole(Ba