mirror of
https://github.com/marcogll/telegram_expenses_controller.git
synced 2026-01-13 21:35:15 +00:00
15 lines
369 B
Python
15 lines
369 B
Python
"""
|
|
Pydantic schemas for unstructured or freeform text entries.
|
|
"""
|
|
from pydantic import BaseModel
|
|
from datetime import datetime
|
|
|
|
class FreeformEntry(BaseModel):
|
|
"""
|
|
Represents a piece of text that could not be structured into an expense.
|
|
"""
|
|
user_id: str
|
|
text: str
|
|
timestamp: datetime
|
|
notes: str = "Could not be automatically categorized."
|