Files
skeleton-api/app/schemas/imported_part.py
T
2026-06-25 15:52:21 -03:00

35 lines
771 B
Python

from pydantic import BaseModel, ConfigDict
class ImportedPartRead(BaseModel):
model_config = ConfigDict(from_attributes=True)
InventoryID: str
Description: str | None
TBXColour: str | None
ProductMaxThreadDepthmm: str | None
ProductMaxThreadDepthin: str | None
ProductODmm: str | None
ProductODin: str | None
TBXThreadAttribute: str | None
class ImportedPartConfigRead(BaseModel):
model_config = ConfigDict(from_attributes=True)
odata_url: str | None
username: str | None
has_password: bool
class ImportedPartConfigUpdate(BaseModel):
odata_url: str | None = None
username: str | None = None
password: str | None = None
class SyncResult(BaseModel):
created: int
updated: int
total: int