from pydantic import BaseModel
from typing import Optional
from schemas.base import UTCDatetime


class PosSettingOut(BaseModel):
    key: str
    value: str
    updated_at: Optional[UTCDatetime] = None
    updated_by_id: Optional[int] = None

    model_config = {"from_attributes": True}


class UpdateSettingRequest(BaseModel):
    value: str
