Event layout page update.

This commit is contained in:
2026-01-11 15:21:17 -06:00
parent e0af183086
commit e50b2f31d3
13 changed files with 1460 additions and 183 deletions

View File

@ -0,0 +1,24 @@
from pydantic import BaseModel, Field
from datetime import datetime
from typing import List
class EventCommentCreate(BaseModel):
content: str = Field(..., min_length=1, max_length=500)
class EventComment(BaseModel):
id: int
event_id: int
user_id: int
username: str
content: str
created_at: datetime
class Config:
from_attributes = True
class EventCommentsResponse(BaseModel):
comments: List[EventComment]
total: int