feat: add V034-V035 flyway migrations and phase 04-07 test classes

This commit is contained in:
Codex
2026-09-14 10:01:50 +08:00
parent 0518cda95c
commit 10887f40ed
6 changed files with 406 additions and 0 deletions
@@ -0,0 +1,7 @@
-- Phase 05: 敏感佐证访问审计记录具体目标和访问结果。
ALTER TABLE sensitive_access_logs
ADD COLUMN IF NOT EXISTS access_target VARCHAR(128),
ADD COLUMN IF NOT EXISTS access_result VARCHAR(32);
CREATE INDEX IF NOT EXISTS idx_sensitive_access_target
ON sensitive_access_logs(data_type, access_target, created_at DESC);
@@ -0,0 +1,4 @@
-- SensitiveAccessLog 继承 BaseEntity,补齐自动填充和软删除字段。
ALTER TABLE sensitive_access_logs
ADD COLUMN IF NOT EXISTS updated_at TIMESTAMPTZ NOT NULL DEFAULT NOW(),
ADD COLUMN IF NOT EXISTS deleted_at TIMESTAMPTZ;