use chrono::{DateTime, Utc};
use sqlx::FromRow;

#[derive(Debug, Clone, FromRow)]
pub struct InstrumentStatsRow {
    pub instrument_id: i32,
    pub exchange_name: String,
    pub base_asset: String,
    pub quote_asset: String,
    pub kind: String,
    pub trade_count_total: i64,
    pub trade_count_1h: i64,
    pub l1_count_total: i64,
    pub l1_count_1h: i64,
    pub latest_trade_time: Option<DateTime<Utc>>,
    pub latest_l1_time: Option<DateTime<Utc>>,
    pub estimated_storage_bytes: i64,
}
