mirror of
https://github.com/Zproger/Aurum.git
synced 2026-10-12 18:46:40 +07:00
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.
23 lines
429 B
Python
23 lines
429 B
Python
from decimal import Decimal
|
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
class CategoryBreakdownItem(BaseModel):
|
|
category_id: int | None
|
|
name: str
|
|
color: str
|
|
icon: str | None
|
|
amount: Decimal
|
|
percent: float
|
|
|
|
|
|
class DashboardSummary(BaseModel):
|
|
year: int
|
|
month: int
|
|
real_income: Decimal
|
|
spent: Decimal
|
|
net: Decimal
|
|
transferred_out: Decimal
|
|
spending_by_category: list[CategoryBreakdownItem]
|