add: purchased accounts
This commit is contained in:
parent
0aa2ea362f
commit
2ec8d86edf
22 changed files with 1279 additions and 124 deletions
|
@ -61,6 +61,15 @@ pub struct User {
|
|||
/// Users collect achievements through little actions across the site.
|
||||
#[serde(default)]
|
||||
pub achievements: Vec<Achievement>,
|
||||
/// If the account was registered as a "bought" account, the user should not
|
||||
/// be allowed to actually use the account if they haven't paid for supporter yet.
|
||||
#[serde(default)]
|
||||
pub awaiting_purchase: bool,
|
||||
/// This value cannot be changed after account creation. This value is used to
|
||||
/// lock the user's account again if the subscription is cancelled and they haven't
|
||||
/// used an invite code.
|
||||
#[serde(default)]
|
||||
pub was_purchased: bool,
|
||||
}
|
||||
|
||||
pub type UserConnections =
|
||||
|
@ -319,6 +328,8 @@ impl User {
|
|||
invite_code: 0,
|
||||
secondary_permissions: SecondaryPermission::DEFAULT,
|
||||
achievements: Vec::new(),
|
||||
awaiting_purchase: false,
|
||||
was_purchased: false,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue