From 7f4c90fbeed64ffca1b50e7f93490e21959fd664 Mon Sep 17 00:00:00 2001 From: arkanoider Date: Wed, 4 Dec 2024 22:23:49 +0100 Subject: [PATCH] added trade index to user struct --- src/user.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/user.rs b/src/user.rs index 309b02b..31f4c02 100644 --- a/src/user.rs +++ b/src/user.rs @@ -17,6 +17,7 @@ pub struct User { pub is_banned: i64, pub category: i64, pub created_at: i64, + pub trade_index: u64, } impl User { @@ -26,6 +27,7 @@ impl User { is_solver: i64, is_banned: i64, category: i64, + trade_index: u64 ) -> Self { Self { id: Uuid::new_v4(), @@ -35,6 +37,7 @@ impl User { is_banned, category, created_at: Utc::now().timestamp(), + trade_index } } }