add archived status to user account

This commit is contained in:
Hongbo Wu
2024-08-29 11:54:02 +08:00
parent e1b809f7d7
commit b22af65f93
3 changed files with 19 additions and 0 deletions

View File

@ -23,6 +23,7 @@ export enum StatusType {
Active = 'ACTIVE',
Pending = 'PENDING',
Deleted = 'DELETED',
Archived = 'ARCHIVED',
}
@Entity()

View File

@ -0,0 +1,9 @@
-- Type: DO
-- Name: add_archived_status_to_user
-- Description: Add ARCHIVED status to the user table
BEGIN;
ALTER TYPE user_status_type ADD VALUE 'ARCHIVED';
COMMIT;

View File

@ -0,0 +1,9 @@
-- Type: UNDO
-- Name: add_archived_status_to_user
-- Description: Add ARCHIVED status to the user table
BEGIN;
ALTER TYPE user_status_type DROP VALUE IF EXISTS 'ARCHIVED';
COMMIT;