from pydantic import BaseModel


class CertificateTemplateFieldOut(BaseModel):
    key: str
    label: str
    field_type: str
    required: bool
    example: str
    description: str


class CertificateTemplateOut(BaseModel):
    code: str
    name: str
    description: str
    dynamic_fields: list[str]
    fields: list[CertificateTemplateFieldOut]
    preview_url: str
    status: str
