From 1ae19eb3315c40e3f9062592c27fa76c11cf626c Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Sun, 17 Nov 2024 09:23:28 +0000 Subject: Renames workspace folder --- rust/core/src/models/transaction_categorisation.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 rust/core/src/models/transaction_categorisation.rs (limited to 'rust/core/src/models/transaction_categorisation.rs') diff --git a/rust/core/src/models/transaction_categorisation.rs b/rust/core/src/models/transaction_categorisation.rs new file mode 100644 index 0000000..c6ac6ea --- /dev/null +++ b/rust/core/src/models/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, +} -- cgit v1.2.3