mirror of
https://github.com/marcogll/telegram_expenses_controller.git
synced 2026-01-13 21:35:15 +00:00
feat: Implement core application structure, AI extraction, persistence, and Telegram bot modules with updated configuration and dependencies.
This commit is contained in:
18
app/schema/report.py
Normal file
18
app/schema/report.py
Normal file
@@ -0,0 +1,18 @@
|
||||
"""
|
||||
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]
|
||||
Reference in New Issue
Block a user