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

//! Normalized pool entity.

/// Persisted normalized pool row.
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, sqlx::FromRow)]
pub struct PoolEntity {
    /// Numeric primary key.
    pub id: i64,
    /// Related DEX id.
    pub dex_id: i64,
    /// Pool address.
    pub address: std::string::String,
    /// Pool kind stored as stable integer.
    pub pool_kind: i16,
    /// Pool status stored as stable integer.
    pub status: i16,
    /// 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,
}
