1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
use diesel::prelude::{Identifiable, Queryable, QueryableByName, Selectable};
use crate::models::actualbudget_date::ActualbudgetDate;
#[derive(Identifiable, QueryableByName, Queryable, Selectable, Clone)]
#[diesel(table_name = crate::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<String>,
}
|