use chrono::{DateTime, Utc}; use serde::{Deserialize, Serialize}; use sqlx::FromRow; use uuid::Uuid; #[derive(Debug, Clone, PartialEq, Serialize, Deserialize, FromRow)] pub struct UserEmailNotifyModel { pub id: Uuid, pub user: Uuid, pub email: String, pub subject: String, pub template: String, pub body_text: Option, pub body_html: Option, pub notify_type: String, pub target_type: Option, pub target_id: Option, pub metadata: Option, pub status: String, pub provider_message_id: Option, pub error: Option, pub retry_count: i32, pub queued_at: DateTime, pub sent_at: Option>, pub delivered_at: Option>, pub opened_at: Option>, pub clicked_at: Option>, pub failed_at: Option>, }