mirror of
https://github.com/FutureOfMedTech-FITM-hack/backend.git
synced 2025-10-18 09:34:18 +03:00
22 lines
334 B
Python
22 lines
334 B
Python
from pydantic import BaseModel
|
|
|
|
|
|
class DummyModelDTO(BaseModel):
|
|
"""
|
|
DTO for dummy models.
|
|
|
|
It returned when accessing dummy models from the API.
|
|
"""
|
|
|
|
id: int
|
|
name: str
|
|
|
|
class Config:
|
|
orm_mode = True
|
|
|
|
|
|
class DummyModelInputDTO(BaseModel):
|
|
"""DTO for creating new dummy model."""
|
|
|
|
name: str
|