add backend source code

This commit is contained in:
2026-02-28 15:06:52 +08:00
parent 1bc330e20c
commit 2c37aa9064
67 changed files with 11654 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
"""
创建绩效计划管理表
"""
import asyncio
from app.core.database import engine, Base
from app.models.models import PerformancePlan, PlanKpiRelation
async def create_tables():
"""创建绩效计划管理相关表"""
async with engine.begin() as conn:
# 创建所有表
await conn.run_sync(Base.metadata.create_all)
print("绩效计划管理表创建成功!")
if __name__ == "__main__":
asyncio.run(create_tables())