mirror of
https://github.com/Zproger/Aurum.git
synced 2026-10-13 02:56:39 +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:
14
backend/app/schemas/insights.py
Normal file
14
backend/app/schemas/insights.py
Normal file
@@ -0,0 +1,14 @@
|
||||
from pydantic import BaseModel
|
||||
|
||||
|
||||
class FinancialAlert(BaseModel):
|
||||
key: str
|
||||
severity: str
|
||||
# Machine-readable params for the frontend to interpolate into its own
|
||||
# localized message template (keyed by `key`) — keeps alert copy out of
|
||||
# the backend so it can be translated without an API change.
|
||||
params: dict[str, int]
|
||||
|
||||
|
||||
class AlertsResponse(BaseModel):
|
||||
alerts: list[FinancialAlert]
|
||||
Reference in New Issue
Block a user