init commit: create skeleton from lab1

This commit is contained in:
2026-10-16 22:39:23 +03:00
parent 65003b6119
commit aecd8d2957
70 changed files with 3205 additions and 8 deletions
+21
View File
@@ -0,0 +1,21 @@
from datetime import datetime
from uuid import UUID
from pydantic import Field
from app.schemas.base import Base, BaseCreate, BasePage
class Message(Base):
chat_id: UUID
sender_id: UUID
text: str = Field(min_length=1, max_length=4000)
created_at: datetime
class CreateMessage(BaseCreate):
text: str = Field(min_length=1, max_length=4000)
class MessagePage(BasePage):
items: list[Message]
next_cursor: str | None