|
@ -1,20 +1,34 @@ |
|
|
use std::time::SystemTime;
|
|
|
use std::time::SystemTime;
|
|
|
|
|
|
|
|
|
use libpso::character::settings;
|
|
|
use libpso::character::settings;
|
|
|
|
|
|
|
|
|
|
|
|
use libpso::character::character;
|
|
|
|
|
|
use libpso::character::guildcard;
|
|
|
|
|
|
|
|
|
pub struct UserAccount {
|
|
|
pub struct UserAccount {
|
|
|
pub id: i32,
|
|
|
|
|
|
|
|
|
pub id: u32,
|
|
|
pub username: String,
|
|
|
pub username: String,
|
|
|
pub password: String,
|
|
|
pub password: String,
|
|
|
pub guildcard: Option<i32>,
|
|
|
|
|
|
pub team_id: Option<i32>,
|
|
|
|
|
|
|
|
|
pub guildcard: Option<u32>,
|
|
|
|
|
|
pub team_id: Option<u32>,
|
|
|
pub banned: bool,
|
|
|
pub banned: bool,
|
|
|
pub muted_until: SystemTime,
|
|
|
pub muted_until: SystemTime,
|
|
|
pub created_at: SystemTime,
|
|
|
pub created_at: SystemTime,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
pub struct UserSettings {
|
|
|
pub struct UserSettings {
|
|
|
pub id: i32,
|
|
|
|
|
|
pub user_id: i32,
|
|
|
|
|
|
|
|
|
pub id: u32,
|
|
|
|
|
|
pub user_id: u32,
|
|
|
pub settings: settings::UserSettings,
|
|
|
pub settings: settings::UserSettings,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pub struct Character {
|
|
|
|
|
|
pub id: u32,
|
|
|
|
|
|
pub user_id: u32,
|
|
|
|
|
|
pub character: character::Character,
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
pub struct GuildCardData {
|
|
|
|
|
|
pub id: u32,
|
|
|
|
|
|
pub user_id: u32,
|
|
|
|
|
|
pub guildcard: guildcard::GuildCardData,
|
|
|
|
|
|
}
|