Files
video-gen/video-gen-api/app/schemas/notification.py
T
2026-05-25 17:08:18 +08:00

19 lines
315 B
Python

from pydantic import BaseModel
from app.schemas.common import NaiveDatetime
class NotificationOut(BaseModel):
id: str
title: str
content: str
type: str
is_read: bool
created_at: NaiveDatetime
model_config = {"from_attributes": True}
class UnreadCountOut(BaseModel):
count: int