add import_item_state to integration entity

This commit is contained in:
Hongbo Wu
2023-10-30 15:12:18 +08:00
parent 9be25fa418
commit a528692125

View File

@ -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
}