summaryrefslogtreecommitdiff
path: root/schist_core/schist_models/src/bucket_transaction.rs
blob: a956d0be198ffb407fbd93c355a6a2ff4d172991 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use derive_builder::Builder;
use diesel::prelude::*;

use crate::date_utc::DateUtc;

#[derive(Builder, Queryable, Identifiable, Selectable, Debug, PartialEq, Insertable)]
#[diesel(table_name = crate::schema::bucket_transactions)]
pub struct BucketTransaction {
    pub id: i32,
    pub amount: i32,
    pub bucket_id: i32,
    pub date: DateUtc,
    pub description: String,
}