from app import app, bootstrap if __name__ == "__main__": with app.app_context(): bootstrap() print("数据库初始化完成: data/inventory.db")