use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct HistoryEntry {
    pub id: String,
    pub connection_id: String,
    pub connection_name: String,
    pub database: String,
    pub sql: String,
    pub status: String,
    pub error_message: Option<String>,
    pub row_count: Option<i64>,
    pub execution_time_ms: f64,
    pub executed_at: String,
}
