diff --git a/acacore/models/file.py b/acacore/models/file.py index 8ed8037..38733b8 100644 --- a/acacore/models/file.py +++ b/acacore/models/file.py @@ -6,6 +6,7 @@ from typing import Literal from typing import Optional from typing import Union +from uuid import uuid4 from pydantic import Field from pydantic import UUID4 @@ -63,7 +64,7 @@ class ActionIgnore(TypedDict): class File(ACABase): """File data model.""" - uuid: UUID4 + uuid: UUID4 = Field(default_factory=lambda: uuid4()) checksum: str puid: Optional[str] relative_path: Path = Field(primary_key=True)