19 lines
366 B
Python
19 lines
366 B
Python
from pydantic import BaseModel, ConfigDict
|
|
|
|
|
|
class AttachmentPointNameBase(BaseModel):
|
|
name: str
|
|
|
|
|
|
class AttachmentPointNameCreate(AttachmentPointNameBase):
|
|
pass
|
|
|
|
|
|
class AttachmentPointNameUpdate(BaseModel):
|
|
name: str | None = None
|
|
|
|
|
|
class AttachmentPointNameRead(AttachmentPointNameBase):
|
|
model_config = ConfigDict(from_attributes=True)
|
|
id: int
|