fix financial and certificates

This commit is contained in:
root
2026-06-05 01:51:08 -04:00
parent d28d11e2e5
commit ad968eaff7
94 changed files with 9654 additions and 214 deletions
+7
View File
@@ -25,6 +25,9 @@ class SemesterScore extends BaseModel
'ptap_score',
'test_avg',
'semester_score',
'calculation_mode',
'calculation_policy_version',
'snapshot_id',
'semester',
'school_year',
];
@@ -52,6 +55,7 @@ class SemesterScore extends BaseModel
'ptap_score' => 'decimal:2',
'test_avg' => 'decimal:2',
'semester_score' => 'decimal:2',
'snapshot_id' => 'integer',
'created_at' => 'datetime',
'updated_at' => 'datetime',
@@ -169,6 +173,9 @@ class SemesterScore extends BaseModel
'ptap_score' => ['nullable', 'numeric', 'min:0'],
'test_avg' => ['nullable', 'numeric', 'min:0'],
'semester_score' => ['nullable', 'numeric', 'min:0'],
'calculation_mode' => ['nullable', 'string', 'in:legacy,strong'],
'calculation_policy_version' => ['nullable', 'string', 'max:50'],
'snapshot_id' => ['nullable', 'integer', 'min:1'],
];
}
}