Moved accumulation calculations into DB triggers

This commit is contained in:
Manuel Forcén Muñoz 2024-03-21 23:34:43 +01:00
parent e336292db4
commit 79ef859fbe
9 changed files with 50 additions and 281 deletions

View file

@ -20,6 +20,7 @@ pub struct Transaction {
transaction_timestamp: DateTime<Utc>,
category: Option<i32>,
amount: i32,
accumulated: i32,
#[serde(default, skip_serializing)]
hash: Option<String>,
}