Initial commit

This commit is contained in:
2025-10-28 15:50:53 +08:00
commit 297ef231c5
31 changed files with 12708 additions and 0 deletions

17
migrate_db.py Normal file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env python3
"""
資料庫遷移腳本 - 添加 DepartmentCapability 表
"""
from simple_app import app, db, DepartmentCapability
def migrate():
with app.app_context():
# 創建新表(如果不存在)
db.create_all()
print("✓ 資料庫表已更新")
print("✓ DepartmentCapability 表已創建")
if __name__ == '__main__':
migrate()
print("\n資料庫遷移完成!")