27 lines
586 B
Rust
27 lines
586 B
Rust
use chrono::{DateTime, Utc};
|
|
use sqlx::FromRow;
|
|
|
|
use crate::db::MoneyAmount;
|
|
|
|
/// Proxy bid strategies (automatic bidding settings)
|
|
#[derive(Debug, Clone, FromRow)]
|
|
#[allow(unused)]
|
|
pub struct ProxyBid {
|
|
pub id: i64,
|
|
pub listing_id: i64,
|
|
pub buyer_id: i64,
|
|
pub max_amount: MoneyAmount,
|
|
pub is_active: bool,
|
|
pub created_at: DateTime<Utc>,
|
|
pub updated_at: DateTime<Utc>,
|
|
}
|
|
|
|
/// New proxy bid data for insertion
|
|
#[derive(Debug, Clone)]
|
|
#[allow(unused)]
|
|
pub struct NewProxyBid {
|
|
pub listing_id: i64,
|
|
pub buyer_id: i64,
|
|
pub max_amount: MoneyAmount,
|
|
}
|