feat(health): consultation_message + follow_up_record PII 加密
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

- 迁移 m000065/m000066: 添加 key_version 列
- consultation_message: content 加密写入 + 解密读取
- follow_up_record: result/patient_condition/medical_advice 加密
- Entity: 添加 key_version 字段
This commit is contained in:
iven
2026-04-26 12:17:49 +08:00
parent e6f036eaf4
commit 1b3caf0e69
7 changed files with 121 additions and 15 deletions

View File

@@ -64,6 +64,8 @@ mod m20260426_000061_create_consent;
mod m20260427_000062_create_tenant_crypto_keys;
mod m20260427_000063_content_management;
mod m20260427_000064_add_patient_pii_fields;
mod m20260427_000065_add_consultation_message_key_version;
mod m20260427_000066_add_follow_up_record_key_version;
pub struct Migrator;
@@ -135,6 +137,8 @@ impl MigratorTrait for Migrator {
Box::new(m20260427_000062_create_tenant_crypto_keys::Migration),
Box::new(m20260427_000063_content_management::Migration),
Box::new(m20260427_000064_add_patient_pii_fields::Migration),
Box::new(m20260427_000065_add_consultation_message_key_version::Migration),
Box::new(m20260427_000066_add_follow_up_record_key_version::Migration),
]
}
}