feat: additionnal bal features: ended field, current_bal for users
This commit is contained in:
parent
61aac4bd80
commit
4d451ace79
5 changed files with 97 additions and 49 deletions
|
|
@ -9,6 +9,7 @@ pub struct Model {
|
|||
pub id: u32,
|
||||
pub user_id: u32,
|
||||
pub name: String,
|
||||
pub ended: bool
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ pub struct Model {
|
|||
#[sea_orm(unique)]
|
||||
pub username: String,
|
||||
pub hashed_password: String,
|
||||
pub owner_id: Option<u32>,
|
||||
pub current_bal_id: Option<u32>,
|
||||
}
|
||||
|
||||
|
|
|
|||
Reference in a new issue