Something went wrong. Try again.
forked from oppi.li/at-advent
Something went wrong. Try again.
Rust
12345678910111213141516171819202122use 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<Utc>, pub time_challenge_one_completed: Option<DateTime<Utc>>, pub time_challenge_two_completed: Option<DateTime<Utc>>, pub verification_code_one: Option<String>, pub verification_code_two: Option<String>,}