17 lines
427 B
Python
17 lines
427 B
Python
from pydantic import BaseModel, ConfigDict
|
|
|
|
|
|
class ScopeInfoBase(BaseModel):
|
|
magnification_min: float | None = None
|
|
magnification_max: float | None = None
|
|
model_suffix: str | None = None
|
|
objective_lens_diameter_mm: float | None = None
|
|
objective_thread_pitch: str | None = None
|
|
|
|
|
|
class ScopeInfoRead(ScopeInfoBase):
|
|
model_config = ConfigDict(from_attributes=True)
|
|
|
|
id: int
|
|
augmented_part_id: int
|