summaryrefslogtreecommitdiff
path: root/rust/actualbudget_models/src/actualbudget_transaction.rs
blob: 2b2f67b257a3ad2d7e57e78fa9ee2874e41110b5 (plain)
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::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<String>,
}