add: user coins and transactions
This commit is contained in:
parent
81a7628861
commit
0a3ce3e9fe
8 changed files with 143 additions and 2 deletions
|
@ -92,6 +92,9 @@ pub struct User {
|
|||
/// The time at which the user's ban will automatically expire.
|
||||
#[serde(default)]
|
||||
pub ban_expire: usize,
|
||||
/// The number of coins the user has.
|
||||
#[serde(default)]
|
||||
pub coins: i32,
|
||||
}
|
||||
|
||||
pub type UserConnections =
|
||||
|
@ -397,6 +400,7 @@ impl User {
|
|||
channel_mutes: Vec::new(),
|
||||
is_deactivated: false,
|
||||
ban_expire: 0,
|
||||
coins: 0,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue