Checkpoint: Bouton Relancer corrigé (automatismes uniquement, sans LLM). Système d'apprentissage complet : table invoiceLearnings, routes tRPC, déclenchement depuis InvoiceDetail, application lors des imports, page LearningSettings dans Configuration > Apprentissages IA.

This commit is contained in:
Manus
2026-04-12 14:54:29 -04:00
parent 120f56bb23
commit 3ae1e47ca6
10 changed files with 2187 additions and 74 deletions

View File

@@ -0,0 +1,12 @@
CREATE TABLE `invoiceLearnings` (
`id` int AUTO_INCREMENT NOT NULL,
`userId` int NOT NULL,
`supplierKey` varchar(255) NOT NULL,
`fieldName` varchar(100) NOT NULL,
`originalValue` varchar(255),
`correctedValue` varchar(255) NOT NULL,
`applyCount` int NOT NULL DEFAULT 1,
`createdAt` timestamp NOT NULL DEFAULT (now()),
`updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,
CONSTRAINT `invoiceLearnings_id` PRIMARY KEY(`id`)
);