Adding Part Types
This commit is contained in:
1 parent
b7ad517174
commit
fe6f9cca05
14 files changed
+350
-2
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user