20 lines
466 B
Python
20 lines
466 B
Python
"""
|
|
创建绩效计划管理表
|
|
"""
|
|
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())
|