Benutzerverwaltung begonnen
This commit is contained in:
parent
d8ddc4c416
commit
c4d27a1187
7 changed files with 88 additions and 3 deletions
17
backend/hermes/app/schemas/user.py
Normal file
17
backend/hermes/app/schemas/user.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
from pydantic import BaseModel, EmailStr
|
||||
|
||||
|
||||
class UserCreate(BaseModel):
|
||||
username: str
|
||||
email: EmailStr
|
||||
password: str
|
||||
|
||||
|
||||
class UserResponse(BaseModel):
|
||||
id: int
|
||||
username: str
|
||||
email: EmailStr
|
||||
|
||||
model_config = {
|
||||
"from_attributes": True
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue