use serde::{Deserialize, Serialize}; #[derive(Debug, Clone, Serialize, Deserialize)] pub struct LookupTableMatch { pub schema: String, pub table: String, pub column_type: String, pub columns: Vec, pub types: Vec, pub rows: Vec>, pub row_count: usize, pub total_count: i64, } #[derive(Debug, Clone, Serialize, Deserialize)] pub struct LookupDatabaseResult { pub database: String, pub tables: Vec, pub error: Option, pub search_time_ms: u128, } #[derive(Debug, Clone, Serialize, Deserialize)] pub struct EntityLookupResult { pub column_name: String, pub value: String, pub databases: Vec, pub total_databases_searched: usize, pub total_tables_matched: usize, pub total_rows_found: usize, pub total_time_ms: u128, } #[derive(Debug, Clone, Serialize, Deserialize)] pub struct LookupProgress { pub lookup_id: String, pub database: String, pub status: String, pub tables_found: usize, pub rows_found: usize, pub error: Option, pub completed: usize, pub total: usize, }