diff --git a/ayon_server/entity_lists/__init__.py b/ayon_server/entity_lists/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/ayon_server/entity_lists/models.py b/ayon_server/entity_lists/models.py new file mode 100644 index 00000000..d707a772 --- /dev/null +++ b/ayon_server/entity_lists/models.py @@ -0,0 +1,17 @@ +from typing import Annotated + +from ayon_server.types import Field, OPModel, ProjectLevelEntityType +from ayon_server.utils import create_uuid + + +class EntityListItem(OPModel): + id: Annotated[str, Field(default_factory=create_uuid)] + position: Annotated[int, Field(..., example=1)] + entity_type: ProjectLevelEntityType = Field(..., example="task") + entity_id: str = Field(..., example="1234567890") + + +class EntityList(OPModel): + id: Annotated[str, Field(default_factory=create_uuid)] + label: Annotated[str, Field(..., example="My List")] + list_type: Annotated[str, Field(..., example="heap")]