from gen_epix.casedb.domain import DOMAIN
from gen_epix.casedb.domain import model as model  # forces models to be registered now
from gen_epix.casedb.domain.enum import ServiceType
from gen_epix.fastapp import BaseRepository


class BaseCaseRepository(BaseRepository):
    ENTITIES = DOMAIN.get_dag_sorted_entities(
        service_type=ServiceType.CASE, persistable=True
    )
