| use sea_orm::entity::prelude::*; | |
| use serde::{Deserialize, Serialize}; | |
| pub struct Model { | |
| pub dialog_id: i64, | |
| pub uid: i64, | |
| pub dialog_name: String, | |
| pub history: String, | |
| pub created_at: Date, | |
| pub updated_at: Date, | |
| } | |
| pub enum Relation {} | |
| impl Related<super::kb_info::Entity> for Entity { | |
| fn to() -> RelationDef { | |
| super::dialog2_kb::Relation::KbInfo.def() | |
| } | |
| fn via() -> Option<RelationDef> { | |
| Some(super::dialog2_kb::Relation::DialogInfo.def().rev()) | |
| } | |
| } | |
| impl ActiveModelBehavior for ActiveModel {} |