feat(db): add migrations for RBAC, diagnostic, messaging, attendance, leave, invitation codes

- 0011: RBAC role flags and seed data

- 0012: diagnostic grade_id

- 0013: message recall

- 0014: message templates

- 0015: group messages and message reports/blocks

- 0016: invitation codes

- 0017: draft device sync

- 0018: attendance status reason

- 0019: attendance warning thresholds

- 0020: leave requests

- 0021: attendance period
This commit is contained in:
SpecialX
2026-07-03 10:23:24 +08:00
parent 48829bd02b
commit 365c36d97b
13 changed files with 308 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
-- L-3出勤率阈值预警
-- 新增 attendance_rate_threshold出勤率阈值默认 90%
-- 新增 consecutive_absence_threshold连续缺勤阈值默认 3 次)
ALTER TABLE `attendance_rules`
ADD COLUMN `attendance_rate_threshold` int DEFAULT 90,
ADD COLUMN `consecutive_absence_threshold` int DEFAULT 3;