from pydantic import BaseModel

class ClientCreate(BaseModel):
    website_url: str
    client_name: str

class ClientOut(BaseModel):
    id: int
    client_widget_id: str
    website_url: str
    client_name: str
    script_tag: str   # ← add this

    class Config:
        from_attributes = True

class ClientSchema(BaseModel):
    id: int
    client_name: str
    website_url: str | None
    client_widget_id: str | None

    class Config:
        orm_mode = True
