Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/services/file_manager/file_upload/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ class ItemStatus(str, Enum):
Enum type for item status where:
- REGISTERED means file is created by upload service but not complete yet. either in progress or fail.
- ACTIVE means file uploading is complete.
- TRASHED means the file has been deleted
- TRASHED means the file has been moved to the trash bin.
- DELETED means the file has been permanently deleted.
The status will be stored at metadata table.
"""

REGISTERED = 'REGISTERED'
ACTIVE = 'ACTIVE'
TRASHED = 'TRASHED'
DELETED = 'DELETED'

def __str__(self):
return self.name
Expand Down