summaryrefslogtreecommitdiff
path: root/schist_models/src/transaction_categorisation.rs
diff options
context:
space:
mode:
Diffstat (limited to 'schist_models/src/transaction_categorisation.rs')
-rw-r--r--schist_models/src/transaction_categorisation.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/schist_models/src/transaction_categorisation.rs b/schist_models/src/transaction_categorisation.rs
new file mode 100644
index 0000000..c6ac6ea
--- /dev/null
+++ b/schist_models/src/transaction_categorisation.rs
@@ -0,0 +1,12 @@
+use derive_builder::Builder;
+use diesel::prelude::*;
+
+#[derive(Builder, Queryable, Identifiable, Selectable, Insertable, Debug, PartialEq)]
+#[diesel(table_name = crate::schema::transaction_categorisations)]
+pub struct TransactionCategorisation {
+ pub id: i32,
+ pub description: String,
+ pub quantity: i32,
+ pub transaction_id: i32,
+ pub category_id: i32,
+}