feat: add models and enum

This commit is contained in:
firedotguy
2026-01-30 20:49:49 +03:00
parent 1a606da55f
commit c7e3812ee8
17 changed files with 210 additions and 5 deletions

17
itd/models/_text.py Normal file
View File

@@ -0,0 +1,17 @@
from uuid import UUID
from datetime import datetime
from pydantic import BaseModel, Field
from itd.models.user import UserPost
class _TextObject(BaseModel):
id: UUID
content: str
author: UserPost
attachments: list[UUID]
created_at: datetime = Field(alias='createdAt')
model_config = {'populate_by_name': True}