summaryrefslogtreecommitdiff
path: root/backend/src/models/account.rs
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2024-09-17 11:28:56 +0100
committerJoe Carstairs <me@joeac.net>2024-09-17 11:28:56 +0100
commitf0e3e0cfb183253e03b1a61ddecb7b9330d47fdb (patch)
tree722eca369743dcfbb95f1efd58cc4cecc0fb8677 /backend/src/models/account.rs
parentc737b6df94eae4981bb03dda3583e24046e24865 (diff)
Refactors backend
Diffstat (limited to 'backend/src/models/account.rs')
-rw-r--r--backend/src/models/account.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/backend/src/models/account.rs b/backend/src/models/account.rs
index 1a2aa41..c10bd5f 100644
--- a/backend/src/models/account.rs
+++ b/backend/src/models/account.rs
@@ -1,6 +1,8 @@
use diesel::prelude::*;
use serde::{Deserialize, Serialize};
+use super::date_time_utc::DateTimeUtc;
+
#[derive(
Insertable, Queryable, Identifiable, Selectable, Debug, PartialEq, Clone, Serialize, Deserialize,
)]
@@ -9,5 +11,5 @@ pub struct Account {
pub id: i32,
pub name: String,
pub opening_balance: i32,
- pub opening_date: String,
+ pub opening_date: DateTimeUtc,
}