use serde::{Deserialize, Serialize}; use sqlx::FromRow; use sqlx::types::chrono::{DateTime, Utc}; #[derive(FromRow, Serialize, Deserialize, Debug, Default)] pub struct TestModel { pub id: i64, pub test: String, } #[derive(FromRow, Serialize, Deserialize, Debug, Clone)] pub struct ChallengeProgress { pub id: i64, pub user_did: String, pub day: i32, pub time_started: DateTime, pub time_challenge_one_completed: Option>, pub time_challenge_two_completed: Option>, pub verification_code_one: Option, pub verification_code_two: Option, pub additional_context: Option, }