2024-07-14 18:37:00 +00:00
|
|
|
from typing import TYPE_CHECKING
|
|
|
|
|
2024-07-13 17:56:34 +00:00
|
|
|
from pydantic import BaseModel
|
|
|
|
|
|
|
|
|
2024-07-14 18:37:00 +00:00
|
|
|
from .isp_connections import IspConnectionBase
|
|
|
|
|
|
|
|
|
2024-07-13 17:56:34 +00:00
|
|
|
class IspBase(BaseModel):
|
|
|
|
name: str
|
|
|
|
manager_name: str
|
|
|
|
manager_phone: str
|
|
|
|
manager_email: str
|
|
|
|
tech_support_phone: str
|
|
|
|
tesh_support_email: str
|
|
|
|
comment: str
|
2024-07-14 18:37:00 +00:00
|
|
|
isp_connections: list["IspConnectionBase"] | None
|
2024-07-13 17:56:34 +00:00
|
|
|
|
|
|
|
|
|
|
|
class IspCreate(IspBase):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class IspRead(IspBase):
|
|
|
|
id: int
|
|
|
|
|
|
|
|
|
|
|
|
class IspRemove(IspBase):
|
|
|
|
pass
|
|
|
|
|
|
|
|
|
|
|
|
class IspChange(IspBase):
|
|
|
|
pass
|