- Cleaned up the Nginx configuration for the Coolify deployment, ensuring proper formatting and organization. - Updated the `pyproject.toml` file to maintain consistent formatting. - Reformatted the `requirements.txt` file for better readability while keeping the dependencies unchanged.
18 lines
339 B
Python
18 lines
339 B
Python
"""Pydantic schemas for user management endpoints."""
|
|
from pydantic import BaseModel, EmailStr
|
|
|
|
|
|
class UserResponse(BaseModel):
|
|
id: str
|
|
email: str
|
|
role: str
|
|
|
|
|
|
class UpdateUserRequest(BaseModel):
|
|
email: EmailStr | None = None
|
|
password: str | None = None
|
|
|
|
|
|
class SetRoleRequest(BaseModel):
|
|
role: str
|