advent of atproto
at feature/UIChanges 21 lines 627 B view raw
1use serde::{Deserialize, Serialize}; 2use sqlx::FromRow; 3use sqlx::types::chrono::{DateTime, Utc}; 4 5#[derive(FromRow, Serialize, Deserialize, Debug, Default)] 6pub struct TestModel { 7 pub id: i64, 8 pub test: String, 9} 10 11#[derive(FromRow, Serialize, Deserialize, Debug, Clone)] 12pub struct ChallengeProgress { 13 pub id: i64, 14 pub user_did: String, 15 pub day: i32, 16 pub time_started: DateTime<Utc>, 17 pub time_challenge_one_completed: Option<DateTime<Utc>>, 18 pub time_challenge_two_completed: Option<DateTime<Utc>>, 19 pub verification_code_one: Option<String>, 20 pub verification_code_two: Option<String>, 21}