📅  最后修改于: 2022-03-11 15:05:05.645000             🧑  作者: Mango
1. Make sure all your tables have a primary key and you set the __table__ = 'name'
2. execute the following underneath declared table models
with Session(engine) as session:
Base.metadata.create_all(engine)
session.commit()