Made scheduled transactions more generic.

This commit is contained in:
2026-09-24 21:07:38 +02:00
parent 18cf7e6bdd
commit 9e5a976ac7
17 changed files with 235 additions and 92 deletions
+1 -1
View File
@@ -1,2 +1,2 @@
pub mod expense;
pub mod scheduled_transaction;
pub mod transaction;
@@ -1,10 +1,11 @@
use chrono::{DateTime, Utc};
use uuid::Uuid;
pub struct RecurringExpenseRow {
pub struct RecurringTransactionRow {
pub id: Uuid,
pub name: String,
pub amount_cents: i64,
pub direction: String,
pub starts_at: DateTime<Utc>,
pub ends_at: Option<DateTime<Utc>>,
pub recurrence_every: i32,
+1
View File
@@ -5,5 +5,6 @@ pub struct TransactionRow {
pub id: Uuid,
pub description: String,
pub amount_cents: i64,
pub direction: String,
pub date: DateTime<Utc>,
}