feat(email): suggest entity links with AI when opening messages
All checks were successful
Build and Push Docker Images / build-backend (push) Successful in 48s
Build and Push Docker Images / build-frontend (push) Successful in 1m15s
Build and Push Docker Images / build-website (push) Successful in 23s
Build and Push Docker Images / build-central-services-api (push) Successful in 21s
Build and Push Docker Images / build-central-services-admin (push) Successful in 20s
Build and Push Docker Images / build-docs (push) Successful in 1m17s

This commit is contained in:
2026-09-08 09:42:17 +02:00
parent ed2885084e
commit a1e0ec6ac5
9 changed files with 294 additions and 5 deletions

View File

@@ -0,0 +1 @@
ALTER TABLE "email_messages" ADD COLUMN "entity_suggestions" jsonb;

View File

@@ -456,6 +456,13 @@
"when": 1788801000000,
"tag": "0067_email_account_enabled",
"breakpoints": true
},
{
"idx": 65,
"version": "7",
"when": 1788802000000,
"tag": "0068_email_entity_suggestions",
"breakpoints": true
}
]
}

View File

@@ -87,6 +87,7 @@ export const emailMessages = pgTable(
bcc: jsonb("bcc").$type<Array<{ name?: string | null; address?: string | null }>>(),
replyTo: jsonb("reply_to").$type<Array<{ name?: string | null; address?: string | null }>>(),
preview: text("preview"),
entitySuggestions: jsonb("entity_suggestions").$type<import("../../src/modules/email/email.entity-suggestions").EntitySuggestion[]>(),
flags: jsonb("flags").$type<string[]>(),
seen: boolean("seen").notNull().default(false),
flagged: boolean("flagged").notNull().default(false),