Skip to content

Commit

Permalink
Update commentSchema.py
Browse files Browse the repository at this point in the history
  • Loading branch information
victorleaoo authored Jul 22, 2024
1 parent 19809b6 commit 6c95244
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/domain/commentSchema.py
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

0 comments on commit 6c95244

Please sign in to comment.