add: user coins and transactions

This commit is contained in:
trisua 2025-08-06 23:35:13 -04:00
parent 81a7628861
commit 0a3ce3e9fe
8 changed files with 143 additions and 2 deletions

View file

@ -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,
}
}