add isjournaled property to archived_email

This commit is contained in:
wayneshn
2026-03-28 14:08:16 +01:00
parent b0f190595c
commit 70c62f81f7
2 changed files with 2 additions and 0 deletions

View File

@@ -26,6 +26,7 @@ export const archivedEmails = pgTable(
isIndexed: boolean('is_indexed').notNull().default(false),
hasAttachments: boolean('has_attachments').notNull().default(false),
isOnLegalHold: boolean('is_on_legal_hold').notNull().default(false),
isJournaled: boolean('is_journaled').default(false),
archivedAt: timestamp('archived_at', { withTimezone: true }).notNull().defaultNow(),
path: text('path'),
tags: jsonb('tags'),

View File

@@ -43,6 +43,7 @@ export interface ArchivedEmail {
isIndexed: boolean;
hasAttachments: boolean;
isOnLegalHold: boolean;
isJournaled: boolean | null;
archivedAt: Date;
attachments?: Attachment[];
raw?: Buffer;