from pydantic import BaseModel, Field


class User(BaseModel):
    id: str
    tenant_id: str
    name: str | None = None
    username: str | None = None
    email: str
    phone_number: str | None = None
    role: str
    permissions: list[str] = Field(default_factory=list)
    created_at: str
