use diesel::prelude::{Identifiable, Queryable, QueryableByName, Selectable}; use crate::actualbudget_date::ActualbudgetDate; #[derive(Identifiable, QueryableByName, Queryable, Selectable, Clone)] #[diesel(table_name = crate::actualbudget_schema::transactions)] pub struct ActualbudgetTransaction { pub id: String, pub is_parent: bool, pub is_child: bool, pub account_id: String, pub category_id: String, pub amount: i32, pub payee: String, pub notes: String, pub date: ActualbudgetDate, pub parent_id: Option, }