// file: kb_lib/src/db/entities/pair.rs

//! Normalized pair entity.

/// Persisted normalized pair row.
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, sqlx::FromRow)]
pub struct PairEntity {
    /// Numeric primary key.
    pub id: i64,
    /// Related DEX id.
    pub dex_id: i64,
    /// Related pool id.
    pub pool_id: i64,
    /// Base token id.
    pub base_token_id: i64,
    /// Quote token id.
    pub quote_token_id: i64,
    /// Optional display symbol.
    pub symbol: std::option::Option<std::string::String>,
    /// First seen timestamp encoded as RFC3339 UTC text.
    pub first_seen_at: std::string::String,
    /// Update timestamp encoded as RFC3339 UTC text.
    pub updated_at: std::string::String,
}
