From a52869212568f216c7b8c4cc489adb43b717d96b Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Mon, 30 Oct 2023 15:12:18 +0800 Subject: [PATCH] add import_item_state to integration entity --- packages/api/src/entity/integration.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/packages/api/src/entity/integration.ts b/packages/api/src/entity/integration.ts index 8f03d455a..72855e7dc 100644 --- a/packages/api/src/entity/integration.ts +++ b/packages/api/src/entity/integration.ts @@ -14,6 +14,13 @@ export enum IntegrationType { Import = 'IMPORT', } +export enum ImportItemState { + UNREAD = 'UNREAD', + UNARCHIVED = 'UNARCHIVED', + ARCHIVED = 'ARCHIVED', + ALL = 'ALL', +} + @Entity({ name: 'integrations' }) export class Integration { @PrimaryGeneratedColumn('uuid') @@ -49,4 +56,7 @@ export class Integration { @Column('text', { nullable: true }) taskName?: string | null + + @Column('enum', { enum: ImportItemState, nullable: true }) + importItemState?: ImportItemState | null }