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:
14
app/schema/freeform.py
Normal file
14
app/schema/freeform.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""
|
||||
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."
|
||||
Reference in New Issue
Block a user