Minor update to the archive content model to include more hosted file info. Specifically the hash is needed.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user