mirror of
https://github.com/Zproger/Aurum.git
synced 2026-11-05 07:17:22 +07:00
Initial public release
Aurum — a self-hosted personal finance operating system: cash flow, net worth tracking, budgets, goals, recurring payments, reports, proactive alerts, and a compound-interest returns calculator, all bilingual (RU/EN) and mobile-first. Ships as a three-container Docker Compose stack (Postgres + FastAPI + nginx-served React frontend). See README.md for setup and CONTRIBUTING.md for development.
This commit is contained in:
21
backend/app/schemas/cash_flow.py
Normal file
21
backend/app/schemas/cash_flow.py
Normal file
@@ -0,0 +1,21 @@
|
||||
from datetime import date as date_
|
||||
from decimal import Decimal
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class CashFlowPoint(BaseModel):
|
||||
year: int
|
||||
month: int
|
||||
income: Decimal
|
||||
expense: Decimal
|
||||
net: Decimal
|
||||
|
||||
|
||||
class CashFlowResponse(BaseModel):
|
||||
start_date: date_ | None
|
||||
end_date: date_ | None
|
||||
points: list[CashFlowPoint]
|
||||
total_income: Decimal
|
||||
total_expense: Decimal
|
||||
total_net: Decimal
|
||||
Reference in New Issue
Block a user