mirror of
https://github.com/marcogll/telegram_expenses_controller.git
synced 2026-01-13 13:25:15 +00:00
19 lines
432 B
Python
19 lines
432 B
Python
"""
|
|
Pydantic schemas for reports or summaries.
|
|
"""
|
|
from pydantic import BaseModel
|
|
from typing import List
|
|
from datetime import date
|
|
|
|
class ExpenseReport(BaseModel):
|
|
"""
|
|
Represents a summary or report of multiple expenses.
|
|
"""
|
|
report_name: str
|
|
start_date: date
|
|
end_date: date
|
|
total_amount: float
|
|
expense_count: int
|
|
# In a real app, you'd link to the actual expense models
|
|
expenses: List[int]
|