from pydantic import BaseModel
from typing import Optional


class ImportJobResponse(BaseModel):
    job_id: str
    status: str
    message: str


class ImportJobStatus(BaseModel):
    status: str
    job_id: str
    total_rows: Optional[int] = 0
    error_count: Optional[int] = 0
    valid_rows: Optional[int] = 0
    error: Optional[str] = None
    inserted: Optional[int] = 0
    updated: Optional[int] = 0
    skipped_invalid: Optional[int] = 0
    skipped_duplicate: Optional[int] = 0
    skipped_details: Optional[list] = None
