feat: ЛР 4 с хранением вложений в MinIO

This commit is contained in:
2026-11-05 19:45:49 +03:00
parent 5be0a6c0b4
commit 0ed4b9cea5
40 changed files with 1763 additions and 65 deletions
+19
View File
@@ -30,6 +30,25 @@ class Message:
sender_id: UUID
text: str
created_at: datetime
attachment_ids: tuple[UUID, ...] = ()
@dataclass(frozen=True, slots=True)
class Attachment:
id: UUID
chat_id: UUID
owner_id: UUID
filename: str
object_key: str
content_type: str
size_bytes: int
sha256: str
width: int
height: int
status: str
error_code: str | None
created_at: datetime
updated_at: datetime
@dataclass(frozen=True, slots=True)