A few new fields for the Journals. Content history and track passcode used for encryption.

This commit is contained in:
Scott Idem
2025-05-05 12:16:29 -04:00
parent 8bd5fd2106
commit edcde83323

View File

@@ -43,6 +43,11 @@ class Journal_Entry_Base(BaseModel):
content_json: Optional[Union[Json, None]] content_json: Optional[Union[Json, None]]
content_encrypted: Optional[str] content_encrypted: Optional[str]
history: Optional[str] # Used to store the history of the journal entry content
history_encrypted: Optional[str]
passcode_hash: Optional[str] # Used to store the hash of the passcode for looking up the passcode
template: Optional[bool] = False # If this is a template entry, it can be used to create new entries based on this template template: Optional[bool] = False # If this is a template entry, it can be used to create new entries based on this template
type_code: Optional[str] # 'log', 'tracking', 'personal', 'professional', etc type_code: Optional[str] # 'log', 'tracking', 'personal', 'professional', etc