feat: implement AI Copilot for product analysis, featuring dedicated API, business logic, UI components, and comprehensive documentation.

This commit is contained in:
Michael committed 2026-02-25 10:58:12 +01:00
1 parent 7a6b515db7
commit 1c03403e9a
8 files changed
+229 -11

No files matched your search

+10
View File
@@ -76,3 +76,13 @@ export const sessionSnapshots = pgTable("session_snapshots", {
type: varchar("type", { length: 20 }).default("snapshot"),
createdAt: timestamp("created_at").defaultNow(),
});
/** AI Context rules per supplier (Epic: AI Context) */
export const aiSupplierContext = pgTable("ai_supplier_context", {
/** Supplier code serving as the primary key */
codeFournisseur: varchar("code_fournisseur", { length: 20 }).primaryKey(),
/** The business rules text provided by the user */
context: text("context").notNull(),
/** When it was last updated */
updatedAt: timestamp("updated_at").defaultNow(),
});