use uuid::Uuid; use chrono::{DateTime, Utc}; #[derive(Debug, Clone, Serialize, Deserialize)] pub struct CustomerMetrics { pub customer_id: Uuid, pub table_name: String, pub row_count: i64, pub last_sync_at: DateTime, pub drift_detected: bool, } #[derive(Debug, Clone, Serialize, Deserialize)] pub struct DashboardResponse { pub metrics: Vec, pub generated_at: DateTime, } impl DashboardResponse { pub fn new(metrics: Vec) -> Self { Self { metrics, generated_at: Utc::now(), } } }