18 lines
377 B
Python
18 lines
377 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class ScopeImportRowResult(BaseModel):
|
|
row: int
|
|
product_number: str | None = None
|
|
status: str # "created" | "updated" | "skipped" | "error"
|
|
messages: list[str] = []
|
|
|
|
|
|
class ScopeImportResult(BaseModel):
|
|
created: int
|
|
updated: int
|
|
skipped: int
|
|
errors: int
|
|
total: int
|
|
rows: list[ScopeImportRowResult] = []
|