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

#[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 description: String,
}