use serde::Serialize; #[derive(Debug, Clone, sqlx::FromRow, Serialize)] pub struct Stat { pub date: String, pub amount: i64, } #[derive(Debug, Clone, sqlx::FromRow, Serialize)] pub struct Table { pub id: i64, pub date: String, pub user: String, pub amount: i64, } #[derive(Debug, Clone, sqlx::FromRow, Serialize)] pub struct Form { pub id: i64, pub amount: i64, pub user_id: i64, pub month: i64, pub year: i64, } #[derive(Debug)] pub struct Create { pub user_id: i64, pub amount: i64, pub month: u32, pub year: i32, } #[derive(Debug)] pub struct Update { pub user_id: i64, pub amount: i64, pub month: u32, pub year: i32, }