Made scheduled transactions more generic.
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
pub mod expense;
|
||||
pub mod scheduled_transaction;
|
||||
pub mod transaction;
|
||||
|
||||
+2
-1
@@ -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,
|
||||
@@ -5,5 +5,6 @@ pub struct TransactionRow {
|
||||
pub id: Uuid,
|
||||
pub description: String,
|
||||
pub amount_cents: i64,
|
||||
pub direction: String,
|
||||
pub date: DateTime<Utc>,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user