cid
This commit is contained in:
@ -17,6 +17,15 @@ pub struct Model {
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
pub enum Relation {}
|
||||
pub enum Relation {
|
||||
#[sea_orm(has_many = "super::la_article::Entity")]
|
||||
LaArticle
|
||||
}
|
||||
|
||||
impl Related<super::la_article::Entity> for Entity {
|
||||
fn to() -> RelationDef {
|
||||
Relation::LaArticle.def()
|
||||
}
|
||||
}
|
||||
|
||||
impl ActiveModelBehavior for ActiveModel {}
|
||||
|
Reference in New Issue
Block a user