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

//! Database entity for one observed Solana slot.

/// Persisted Solana slot row.
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, sqlx::FromRow)]
pub struct ChainSlotEntity {
    /// Slot number.
    pub slot: i64,
    /// Optional parent slot number.
    pub parent_slot: std::option::Option<i64>,
    /// Optional block time in unix seconds.
    pub block_time_unix: std::option::Option<i64>,
    /// Creation timestamp.
    pub created_at: std::string::String,
    /// Update timestamp.
    pub updated_at: std::string::String,
}
