Initial commit: KPI Management System Backend

Features:
- FastAPI backend with JWT authentication
- MySQL database with SQLAlchemy ORM
- KPI workflow: draft → pending → approved → evaluation → completed
- Ollama LLM API integration for AI features
- Gitea API integration for version control
- Complete API endpoints for KPI, dashboard, notifications

Tables: KPI_D_* prefix naming convention

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-11 16:20:57 +08:00
commit f810ddc2ea
48 changed files with 4950 additions and 0 deletions

27
app/models/__init__.py Normal file
View File

@@ -0,0 +1,27 @@
"""
SQLAlchemy Models
"""
from app.models.department import Department
from app.models.employee import Employee
from app.models.kpi_period import KPIPeriod
from app.models.kpi_template import KPITemplate, KPIPreset, KPIPresetItem
from app.models.kpi_sheet import KPISheet
from app.models.kpi_item import KPIItem
from app.models.kpi_review_log import KPIReviewLog
from app.models.notification import Notification, NotificationPreference
from app.models.dashboard_alert import DashboardAlert
__all__ = [
"Department",
"Employee",
"KPIPeriod",
"KPITemplate",
"KPIPreset",
"KPIPresetItem",
"KPISheet",
"KPIItem",
"KPIReviewLog",
"Notification",
"NotificationPreference",
"DashboardAlert",
]