- Refactor new_listing from single file to modular structure - Add handler factory pattern for state management - Improve keyboard utilities and validations - Update database models for bid, listing, and user systems - Add new types: listing_duration, user_row_id - Remove deprecated user_id type - Update Docker configuration - Enhance test utilities and message handling
15 lines
339 B
Rust
15 lines
339 B
Rust
use chrono::{DateTime, Utc};
|
|
use sqlx::FromRow;
|
|
|
|
/// User preferences and settings
|
|
#[derive(Debug, Clone, FromRow)]
|
|
#[allow(unused)]
|
|
pub struct UserSettings {
|
|
pub user_id: i64,
|
|
pub language_code: String,
|
|
pub notify_outbid: bool,
|
|
pub notify_won: bool,
|
|
pub created_at: DateTime<Utc>,
|
|
pub updated_at: DateTime<Utc>,
|
|
}
|