28 lines
363 B
Python
28 lines
363 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class IspBase(BaseModel):
|
|
name: str
|
|
manager_name: str
|
|
manager_phone: str
|
|
manager_email: str
|
|
tech_support_phone: str
|
|
tesh_support_email: str
|
|
comment: str
|
|
|
|
|
|
class IspCreate(IspBase):
|
|
pass
|
|
|
|
|
|
class IspRead(IspBase):
|
|
id: int
|
|
|
|
|
|
class IspRemove(IspBase):
|
|
pass
|
|
|
|
|
|
class IspChange(IspBase):
|
|
pass
|