from database import engine, Base from models import Inventory, TransactionLog # 初始化数据库表 Base.metadata.create_all(bind=engine) print("数据库表创建成功!")