aboutsummaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/model')
-rw-r--r--src/model/income.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/model/income.rs b/src/model/income.rs
index 7bc888f..ef97b56 100644
--- a/src/model/income.rs
+++ b/src/model/income.rs
@@ -1,3 +1,4 @@
+use chrono::NaiveDate;
use serde::Serialize;
#[derive(Debug, Clone, sqlx::FromRow, Serialize)]
@@ -27,14 +28,12 @@ pub struct Form {
pub struct Create {
pub user_id: i64,
pub amount: i64,
- pub month: u32,
- pub year: i32,
+ pub date: NaiveDate,
}
#[derive(Debug)]
pub struct Update {
pub user_id: i64,
pub amount: i64,
- pub month: u32,
- pub year: i32,
+ pub date: NaiveDate,
}