Initial commit

This commit is contained in:
2026-01-02 20:18:42 +03:00
parent b2b49fbe51
commit 3a70802256
14 changed files with 626 additions and 19 deletions
@@ -0,0 +1,15 @@
from trudex.domain.schemas import Group as DomainGroup
from trudex.infrastructure.database.models import Group as GroupModel
class GroupDTO:
def __init__(self, model: GroupModel) -> None:
self.model: GroupModel = model
def to_domain(self) -> DomainGroup:
return DomainGroup(
id=self.model.id,
number=self.model.number,
created_at=self.model.created_at,
updated_at=self.model.updated_at,
)