from pydantic import BaseModel, EmailStr, Field


class UserMe(BaseModel):
    id: str
    email: str | None = None
    phone: str | None = None
    name: str | None = None
    role: str
    created_at: str | None = None


class UserUpdateMe(BaseModel):
    name: str | None = None
    email: EmailStr | None = None
    phone: str | None = None


class ChangePasswordIn(BaseModel):
    current_password: str = Field(min_length=6)
    new_password: str = Field(min_length=6)
