This commit is contained in:
xds
2026-02-04 15:10:55 +03:00
parent 11c1f4f7dc
commit 35de8efc56
20 changed files with 566 additions and 135 deletions

View File

@@ -1,6 +1,6 @@
from datetime import datetime, UTC
from enum import Enum
from typing import Optional, Any
from typing import Optional, Any, List
from pydantic import BaseModel, computed_field
@@ -16,8 +16,9 @@ class Asset(BaseModel):
type: AssetType
linked_char_id: Optional[str] = None
data: Optional[bytes] = None
tg_doc_file_id: str
tg_doc_file_id: Optional[str] = None
tg_photo_file_id: Optional[str] = None
tags: List[str] = []
created_at: datetime = datetime.now(UTC)
# --- CALCULATED FIELD ---