
from pydantic import BaseModel, Field
from datetime import datetime

class UserModel(BaseModel):
    phone: str = Field(
        ...,
        min_length=10,
        max_length=15
    )

    password: str

    is_active: bool = True

    created_at: datetime = Field(
        default_factory=datetime.utcnow
    )