use chrono::NaiveDateTime; use serde::{Deserialize, Serialize}; use uuid::Uuid; #[derive(Serialize, Deserialize, sqlx::FromRow, Debug, Clone)] pub struct SettlementRecord { pub settlement_id: Uuid, pub transaction_id: String, pub merchant_id: String, pub gross_amount_inr: f64, pub platform_fee_inr: f64, pub delivery_fee_inr: f64, pub tax_amount_inr: f64, pub net_payout_inr: f64, pub utr_number: Option, pub settled_at: NaiveDateTime, pub status: String, }