From e188e36d4d54cfc433fc4ddbe392660da9747725 Mon Sep 17 00:00:00 2001 From: vladmesh <16962535+vladmesh@users.noreply.github.com> Date: Fri, 17 Jul 2026 02:38:57 +0300 Subject: [PATCH] Remove obsolete AllocationDTO --- docs/CONTRACTS.md | 20 -------------------- shared/contracts/dto/allocation.py | 14 -------------- 2 files changed, 34 deletions(-) delete mode 100644 shared/contracts/dto/allocation.py diff --git a/docs/CONTRACTS.md b/docs/CONTRACTS.md index 34e4a8ec..87db5ff3 100644 --- a/docs/CONTRACTS.md +++ b/docs/CONTRACTS.md @@ -774,26 +774,6 @@ class APIKeyDTO(BaseModel): created_at: str | None = None ``` -## AllocationDTO - -```python -# shared/contracts/dto/allocation.py - -from pydantic import BaseModel, ConfigDict -from datetime import datetime - -class AllocationDTO(BaseModel): - """Port allocation on a server.""" - model_config = ConfigDict(from_attributes=True) - - id: int - server_id: int - project_id: str - service_name: str - port: int - allocated_at: datetime -``` - ## TaskExecutionDTO ```python diff --git a/shared/contracts/dto/allocation.py b/shared/contracts/dto/allocation.py deleted file mode 100644 index 673e78a8..00000000 --- a/shared/contracts/dto/allocation.py +++ /dev/null @@ -1,14 +0,0 @@ -from datetime import datetime - -from shared.contracts.dto.base import TimestampedDTO - - -class AllocationDTO(TimestampedDTO): - """Port allocation on a server.""" - - id: int - server_id: int - project_id: str - service_name: str - port: int - allocated_at: datetime