初始提交:全国记者站管理系统

This commit is contained in:
selfrelease
2026-08-01 23:09:49 +08:00
commit 45fbba0308
96 changed files with 21514 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
-- Migration: 006_optimize_indexes
-- Description: 索引优化(audit_logs 表)
-- Date: 2026-08-01
CREATE INDEX IF NOT EXISTS idx_audit_record_id ON audit_logs(record_id);
CREATE INDEX IF NOT EXISTS idx_audit_actor_role ON audit_logs(actor_role);
CREATE INDEX IF NOT EXISTS idx_audit_created_at ON audit_logs(created_at);
CREATE INDEX IF NOT EXISTS idx_work_station ON work_records(station);
CREATE INDEX IF NOT EXISTS idx_work_reporter ON work_records(reporter);
CREATE INDEX IF NOT EXISTS idx_work_status ON work_records(status);
CREATE INDEX IF NOT EXISTS idx_work_updated_at ON work_records(updated_at);
CREATE INDEX IF NOT EXISTS idx_people_station ON people(station);
CREATE INDEX IF NOT EXISTS idx_people_status ON people(status);
CREATE INDEX IF NOT EXISTS idx_stations_region ON stations(region);
CREATE INDEX IF NOT EXISTS idx_stations_status ON stations(status);
CREATE INDEX IF NOT EXISTS idx_notice_receipt_notice ON notice_receipts(notice_id);