//! `SeaORM` Entity, @generated by sea-orm-codegen 2.0 use sea_orm::entity::prelude::*; use serde::{Deserialize, Serialize}; #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel, Serialize, Deserialize)] #[sea_orm(table_name = "config_inheritance")] pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: Uuid, pub child_config_id: Uuid, pub parent_config_id: Uuid, pub priority: Option, pub applied_at: DateTime, } #[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)] pub enum Relation { #[sea_orm( belongs_to = "super::proxy_config::Entity", from = "Column::ChildConfigId", to = "super::proxy_config::Column::Id", on_update = "Cascade", on_delete = "Cascade" )] ProxyConfig2, #[sea_orm( belongs_to = "super::proxy_config::Entity", from = "Column::ParentConfigId", to = "super::proxy_config::Column::Id", on_update = "Cascade", on_delete = "Cascade" )] ProxyConfig1, } impl ActiveModelBehavior for ActiveModel {}