forked from UnBTV/UnB-TV-VideoService
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
19809b6
commit 6c95244
Showing
1 changed file
with
19 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
from datetime import date | ||
from pydantic import BaseModel, ConfigDict | ||
# from datetime import date | ||
# from pydantic import BaseModel, ConfigDict | ||
|
||
class CommentUpdate(BaseModel): | ||
content: str | None = None | ||
# class CommentUpdate(BaseModel): | ||
# content: str | None = None | ||
|
||
class Comment(BaseModel): | ||
model_config = ConfigDict(from_attributes = True) | ||
id: int | ||
user_id: int | ||
user_name: str | ||
video_id: int | ||
content: str | ||
created_at: date | ||
# class Comment(BaseModel): | ||
# model_config = ConfigDict(from_attributes = True) | ||
# id: int | ||
# user_id: int | ||
# user_name: str | ||
# video_id: int | ||
# content: str | ||
# created_at: date | ||
|
||
class CommentCreate(BaseModel): | ||
model_config = ConfigDict(from_attributes = True) | ||
user_id: int | ||
user_name: str | ||
video_id: int | ||
content: str | ||
|
||
# class CommentCreate(BaseModel): | ||
# model_config = ConfigDict(from_attributes = True) | ||
# user_id: int | ||
# user_name: str | ||
# video_id: int | ||
# content: str | ||
|