Adding Part Types

This commit is contained in:
Ian Roddis committed 2026-06-25 10:56:46 -03:00
1 parent b7ad517174
commit fe6f9cca05
14 files changed
+350 -2

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
from pydantic import BaseModel, ConfigDict
class PartTypeBase(BaseModel):
name: str
class PartTypeCreate(PartTypeBase):
pass
class PartTypeUpdate(BaseModel):
name: str | None = None
class PartTypeRead(PartTypeBase):
model_config = ConfigDict(from_attributes=True)
id: int