use fully_pub::fully_pub; use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; #[derive(sqlx::Type, Clone, Debug, Serialize, Deserialize, PartialEq)] #[derive(strum_macros::Display)] #[fully_pub] enum UserStatus { Active, Disabled } #[derive(sqlx::FromRow, Deserialize, Serialize, Debug)] #[fully_pub] struct User { /// uuid id: String, handle: String, full_name: Option, email: Option, website: Option, picture: Option>, // embeded blob to store profile pic password_hash: Option, // argon2 password hash status: UserStatus, activation_token: Option, last_login_at: Option>, created_at: DateTime }