22 lines
327 B
Python
22 lines
327 B
Python
from typing import List
|
|
|
|
from schemas.base import CustomModel
|
|
|
|
|
|
class ClientSchema(CustomModel):
|
|
id: int
|
|
name: str
|
|
|
|
|
|
class ClientSearchRequest(CustomModel):
|
|
name: str
|
|
|
|
|
|
class ClientCreateRequest(CustomModel):
|
|
name: str
|
|
address: str
|
|
|
|
|
|
class ClientSearchResponse(CustomModel):
|
|
clients: List[ClientSchema]
|