docs: 事件注册表更新 — 告警降噪 + alert.aggregated 事件
This commit is contained in:
29
crates/erp-health/src/entity/api_client.rs
Normal file
29
crates/erp-health/src/entity/api_client.rs
Normal file
@@ -0,0 +1,29 @@
|
||||
use sea_orm::entity::prelude::*;
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
|
||||
#[sea_orm(table_name = "api_clients")]
|
||||
pub struct Model {
|
||||
#[sea_orm(primary_key, auto_increment = false)]
|
||||
pub id: Uuid,
|
||||
pub tenant_id: Uuid,
|
||||
pub client_id: String,
|
||||
pub client_secret_hash: String,
|
||||
pub client_name: String,
|
||||
pub scopes: serde_json::Value,
|
||||
pub allowed_patient_ids: Option<serde_json::Value>,
|
||||
pub rate_limit_per_minute: i32,
|
||||
pub is_active: bool,
|
||||
pub token_lifetime_seconds: i32,
|
||||
pub created_at: chrono::DateTime<chrono::FixedOffset>,
|
||||
pub updated_at: chrono::DateTime<chrono::FixedOffset>,
|
||||
pub created_by: Option<Uuid>,
|
||||
pub updated_by: Option<Uuid>,
|
||||
pub deleted_at: Option<chrono::DateTime<chrono::FixedOffset>>,
|
||||
pub version: i32,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
pub enum Relation {}
|
||||
|
||||
impl ActiveModelBehavior for ActiveModel {}
|
||||
@@ -1,4 +1,5 @@
|
||||
pub mod alert_rules;
|
||||
pub mod api_client;
|
||||
pub mod alerts;
|
||||
pub mod appointment;
|
||||
pub mod article;
|
||||
|
||||
Reference in New Issue
Block a user