Added expenses.

This commit is contained in:
2026-09-20 21:52:49 +02:00
parent 15b8ae8f62
commit b9d18c4dd1
8 changed files with 226 additions and 1 deletions
+1
View File
@@ -1 +1,2 @@
pub mod expense;
pub mod transaction;
+14
View File
@@ -0,0 +1,14 @@
use chrono::{DateTime, Utc};
use uuid::Uuid;
#[derive(sqlx::FromRow)]
pub struct RecurringExpenseRow {
pub id: Uuid,
pub name: String,
pub amount_cents: i64,
pub starts_at: DateTime<Utc>,
pub ends_at: Option<DateTime<Utc>>,
pub recurrence_every: i32,
pub recurrence_unit: String,
pub weekend_adjustment: Option<String>,
}