Skip to content

Commit

Permalink
added trade index to user struct
Browse files Browse the repository at this point in the history
  • Loading branch information
arkanoider committed Dec 4, 2024
1 parent 7d6cc8f commit 7f4c90f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ pub struct User {
pub is_banned: i64,
pub category: i64,
pub created_at: i64,
pub trade_index: u64,
}

impl User {
Expand All @@ -26,6 +27,7 @@ impl User {
is_solver: i64,
is_banned: i64,
category: i64,
trade_index: u64
) -> Self {
Self {
id: Uuid::new_v4(),
Expand All @@ -35,6 +37,7 @@ impl User {
is_banned,
category,
created_at: Utc::now().timestamp(),
trade_index
}
}
}

0 comments on commit 7f4c90f

Please sign in to comment.