summaryrefslogtreecommitdiff
path: root/schist_models/src/transaction.rs
diff options
context:
space:
mode:
authorJoe Carstairs <jcarstairs@scottlogic.com>2025-07-28 13:22:53 +0100
committerJoe Carstairs <jcarstairs@scottlogic.com>2025-07-28 13:30:27 +0100
commit2361adeb0ca77904138e3466d51c2f44cf6df613 (patch)
treef6e7192908f99fab62061913d8a1e9d2b918414b /schist_models/src/transaction.rs
parentc7ed1e61ce2218be0b9e60577454124c4e43a366 (diff)
Tidier folders
Diffstat (limited to 'schist_models/src/transaction.rs')
-rw-r--r--schist_models/src/transaction.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/schist_models/src/transaction.rs b/schist_models/src/transaction.rs
deleted file mode 100644
index 9e983f5..0000000
--- a/schist_models/src/transaction.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-use derive_builder::Builder;
-use diesel::prelude::{Associations, Identifiable, Insertable, Queryable, Selectable};
-
-use crate::{account::Account, date_utc::DateUtc};
-
-#[derive(Builder, Clone, Queryable, Identifiable, Selectable, Insertable, Associations, Debug, PartialEq)]
-#[diesel(table_name = crate::schema::transactions)]
-#[diesel(belongs_to(Account))]
-pub struct Transaction {
- pub id: i32,
- pub description: String,
- pub payee: String,
- pub quantity: i32,
- pub date: DateUtc,
- pub account_id: i32,
-}