feat: GET self owner and refactor self owner to remove circular dependency between user and owner
All checks were successful
/ test (push) Successful in 15m11s
All checks were successful
/ test (push) Successful in 15m11s
This commit is contained in:
parent
4225fcb36f
commit
08fe5949be
6 changed files with 41 additions and 16 deletions
|
|
@ -10,7 +10,8 @@ pub struct Model {
|
|||
pub user_id: u32,
|
||||
pub first_name: String,
|
||||
pub last_name: String,
|
||||
pub contact: String
|
||||
pub contact: String,
|
||||
pub user: bool
|
||||
}
|
||||
|
||||
impl Entity {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@ pub struct Model {
|
|||
#[sea_orm(unique)]
|
||||
pub username: String,
|
||||
pub hashed_password: String,
|
||||
pub owner_id: Option<u32>,
|
||||
}
|
||||
|
||||
impl Model {
|
||||
|
|
|
|||
Reference in a new issue