fix(authorization): 增大 monthly_assessments.local_percentage 字段精度

将 local_percentage 字段从 DECIMAL(5,2) 改为 DECIMAL(10,2)

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-23 08:02:21 -08:00
parent 68621d3826
commit 050cfacec3
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1,4 @@
-- AlterTable: Increase local_percentage precision from DECIMAL(5,2) to DECIMAL(10,2)
-- This allows storing percentages greater than 999.99%
ALTER TABLE "monthly_assessments" ALTER COLUMN "local_percentage" TYPE DECIMAL(10, 2);

View File

@ -98,7 +98,7 @@ model MonthlyAssessment {
// 自有团队占比
localTeamCount Int @default(0) @map("local_team_count")
totalTeamCount Int @default(0) @map("total_team_count")
localPercentage Decimal @default(0) @map("local_percentage") @db.Decimal(5, 2)
localPercentage Decimal @default(0) @map("local_percentage") @db.Decimal(10, 2)
localPercentagePass Boolean @default(false) @map("local_percentage_pass")
// 超越目标占比