Initial commit

This commit is contained in:
tanexc
2026-06-12 23:53:39 +03:00
commit 67fd2bc5ac
32 changed files with 1107 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
from abc import ABC, abstractmethod
from app.domain.Model import Model
class ModelRepository(ABC):
@abstractmethod
def get_latest(self) -> Model | None:
raise NotImplementedError
@abstractmethod
def get_by_version(self, version: str) -> Model | None:
raise NotImplementedError
@abstractmethod
def add(self, model: Model) -> Model:
raise NotImplementedError