//! Split export row model. use chrono::{DateTime, Utc}; use sqlx::FromRow; use super::super::id_types::*; use super::super::validated_types::Cents; /// A revenue split record with context for CSV export. #[derive(Debug, Clone, FromRow)] pub struct DbSplitExportRow { pub id: RevenueSplitId, pub recipient_id: UserId, pub amount_cents: Cents, pub split_percent: i16, pub created_at: DateTime, /// "sale" or "tip" pub source_type: String, /// Username of the member who receives this split pub recipient_username: String, }