feat: bal and user permission checks

This commit is contained in:
Ninjdai 2025-08-03 20:10:00 +02:00
parent e3f954679a
commit e078bffc25
13 changed files with 207 additions and 19 deletions

View file

@ -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 {}