feat(health): 新增 blind_indexes 表 + Entity 支持 PII 盲索引搜索
This commit is contained in:
21
crates/erp-health/src/entity/blind_index.rs
Normal file
21
crates/erp-health/src/entity/blind_index.rs
Normal file
@@ -0,0 +1,21 @@
|
||||
use sea_orm::entity::prelude::*;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
|
||||
#[sea_orm(table_name = "blind_indexes")]
|
||||
pub struct Model {
|
||||
#[sea_orm(primary_key, auto_increment = false)]
|
||||
pub id: Uuid,
|
||||
pub tenant_id: Uuid,
|
||||
pub entity_type: String,
|
||||
pub entity_id: Uuid,
|
||||
pub field_name: String,
|
||||
pub blind_hash: String,
|
||||
pub created_at: DateTimeUtc,
|
||||
pub updated_at: DateTimeUtc,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
pub enum Relation {}
|
||||
|
||||
impl ActiveModelBehavior for ActiveModel {}
|
||||
@@ -6,6 +6,7 @@ pub mod article_article_tag;
|
||||
pub mod article_category;
|
||||
pub mod article_revision;
|
||||
pub mod article_tag;
|
||||
pub mod blind_index;
|
||||
pub mod critical_value_threshold;
|
||||
pub mod consent;
|
||||
pub mod consultation_message;
|
||||
|
||||
Reference in New Issue
Block a user