mirror of
https://github.com/StepanovPlaton/torrent_backend.git
synced 2026-04-03 20:30:38 +04:00
Small fixes
This commit is contained in:
@@ -12,8 +12,11 @@ class UserCreate(UserBase):
|
||||
password: str = Field(examples=["password"])
|
||||
|
||||
|
||||
class User(UserBase):
|
||||
class UserOpenData(UserBase):
|
||||
id: int = Field(examples=[1])
|
||||
|
||||
|
||||
class User(UserOpenData):
|
||||
hash_of_password: str = Field(examples=["hash_of_password"])
|
||||
|
||||
model_config = ConfigDict(from_attributes=True)
|
||||
|
||||
Reference in New Issue
Block a user