Fixed docker config. Added services

This commit is contained in:
2025-09-17 22:45:33 +02:00
parent da63f1b75b
commit df86a3d998
12 changed files with 513 additions and 41 deletions

View File

@@ -100,13 +100,18 @@ def validate_username_not_empty(username: str) -> str:
return username.strip()
class UserCreate(BaseModel):
class UserCreateNoValidation(BaseModel):
"""Model for creating a new user."""
username: str
email: EmailStr
email: str
password: str
role: UserRole = UserRole.USER
class UserCreate(UserCreateNoValidation):
"""Model for creating a new user."""
email: EmailStr
@field_validator('username')
@classmethod