22 lines
391 B
Python
22 lines
391 B
Python
from datetime import datetime
|
|
from pydantic import BaseModel
|
|
|
|
from app.schemas.user import UserPublic
|
|
|
|
|
|
class ActivityResponse(BaseModel):
|
|
id: int
|
|
type: str
|
|
user: UserPublic
|
|
data: dict | None = None
|
|
created_at: datetime
|
|
|
|
class Config:
|
|
from_attributes = True
|
|
|
|
|
|
class FeedResponse(BaseModel):
|
|
items: list[ActivityResponse]
|
|
total: int
|
|
has_more: bool
|