feat: bal and user permission checks
This commit is contained in:
parent
e3f954679a
commit
e078bffc25
13 changed files with 207 additions and 19 deletions
|
|
@ -21,6 +21,14 @@ impl Model {
|
|||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
pub enum Relation {
|
||||
#[sea_orm(has_many = "super::owner::Entity")]
|
||||
Owner,
|
||||
}
|
||||
|
||||
impl Related<super::owner::Entity> for Entity {
|
||||
fn to() -> RelationDef {
|
||||
Relation::Owner.def()
|
||||
}
|
||||
}
|
||||
|
||||
impl ActiveModelBehavior for ActiveModel {}
|
||||
|
|
|
|||
Reference in a new issue