fix: correct targeted search logic for material/stock list to prevent unrelated results
This commit is contained in:
9
inventory-backend/init_db.py
Normal file
9
inventory-backend/init_db.py
Normal file
@ -0,0 +1,9 @@
|
||||
from app import create_app, db
|
||||
|
||||
# 1. 创建应用实例
|
||||
app = create_app()
|
||||
|
||||
# 2. 在应用上下文中创建表
|
||||
with app.app_context():
|
||||
db.create_all()
|
||||
print("✅ 数据库表结构已成功创建!")
|
||||
Reference in New Issue
Block a user