🔧 chore(user.py): add optional 'username' field to UserUpdate model for better flexibility in updating user information

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-09-25 19:14:09 -03:00
commit 4be21db30c

View file

@ -42,6 +42,7 @@ class UserRead(SQLModel):
class UserUpdate(SQLModel):
username: Optional[str] = Field()
profile_image: Optional[str] = Field()
password: Optional[str] = Field()
is_active: Optional[bool] = Field()