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

This commit is contained in:
Ninjdai 2025-08-14 12:29:47 +02:00
parent 4225fcb36f
commit 08fe5949be
6 changed files with 41 additions and 16 deletions

View file

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

View file

@ -10,7 +10,6 @@ pub struct Model {
#[sea_orm(unique)]
pub username: String,
pub hashed_password: String,
pub owner_id: Option<u32>,
}
impl Model {