TW-Requests/fastapi_app/schemas/comments.py
2024-07-15 10:15:51 +03:00

15 lines
194 B
Python

from pydantic import BaseModel
class UserComments(BaseModel):
username: str
comment: str
class CommentsCreate(UserComments):
pass
class CommentsRead(UserComments):
id: int