import uuid
from pydantic import BaseModel, ConfigDict

class AdminCreateUser(BaseModel):
    model_config = ConfigDict(extra="forbid")
    username: str
    phone_number: str | None = None

class AdminUserResponse(BaseModel):
    id: uuid.UUID
    username: str
    phone_number: str | None
    is_admin: bool
    is_active: bool

    class Config:
        from_attributes = True

class AdminCreateUserResult(BaseModel):
    user: AdminUserResponse
    secret: str

class AdminResetSecretResult(BaseModel):
    secret: str
