Minor update to the archive content model to include more hosted file info. Specifically the hash is needed.

This commit is contained in:
Scott Idem
2024-11-06 12:29:34 -05:00
parent e5d27a536c
commit dcad4b70e9

View File

@@ -85,6 +85,13 @@ class Archive_Content_Base(BaseModel):
created_on: Optional[datetime.datetime]
updated_on: Optional[datetime.datetime]
# Including convenience data
# This is only for convenience. Probably going to keep unless it causes a problem.
hosted_file_hash_sha256: Optional[str]
hosted_file_subdirectory_path: Optional[str]
hosted_file_content_type: Optional[str]
hosted_file_size: Optional[str]
_processed_at: datetime.datetime = PrivateAttr(default_factory=datetime.datetime.now)
@validator('id', always=True)