feat: more models implemented

This commit is contained in:
2024-07-02 08:35:29 +02:00
parent 5c02867273
commit bce450f744
10 changed files with 333 additions and 13 deletions
+3 -1
View File
@@ -9,10 +9,12 @@ pub struct Model {
pub id: i32,
#[sea_orm(index = "permission_names")]
pub name: String,
#[sea_orm(index = "permission_codes")]
pub codename: String,
pub level: i32,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}
impl ActiveModelBehavior for ActiveModel {}