Checkpoint: Ajout du champ Abonnement (OUI/NON) aux factures avec détection automatique par mots-clés et édition directe dans la liste
This commit is contained in:
1
drizzle/0006_fresh_bromley.sql
Normal file
1
drizzle/0006_fresh_bromley.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE `invoices` ADD `isSubscription` int DEFAULT 0 NOT NULL;
|
||||
1
drizzle/0007_faulty_titanium_man.sql
Normal file
1
drizzle/0007_faulty_titanium_man.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE `userSettings` ADD `subscriptionKeywords` text;
|
||||
1096
drizzle/meta/0006_snapshot.json
Normal file
1096
drizzle/meta/0006_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
1103
drizzle/meta/0007_snapshot.json
Normal file
1103
drizzle/meta/0007_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -43,6 +43,20 @@
|
||||
"when": 1770819973462,
|
||||
"tag": "0005_small_roxanne_simpson",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 6,
|
||||
"version": "5",
|
||||
"when": 1770821197778,
|
||||
"tag": "0006_fresh_bromley",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 7,
|
||||
"version": "5",
|
||||
"when": 1770821233743,
|
||||
"tag": "0007_faulty_titanium_man",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -92,6 +92,9 @@ export const invoices = mysqlTable("invoices", {
|
||||
// Extracted text from PDF
|
||||
extractedText: text("extractedText"), // Full text extracted from the invoice PDF
|
||||
|
||||
// Subscription flag
|
||||
isSubscription: int("isSubscription").default(0).notNull(), // 0 = NON, 1 = OUI
|
||||
|
||||
// SFTP Export tracking
|
||||
exportedAt: timestamp("exportedAt"),
|
||||
exportMode: mysqlEnum("exportMode", ["manual", "automatic"]),
|
||||
@@ -122,6 +125,7 @@ export const userSettings = mysqlTable("userSettings", {
|
||||
orderNumberKeywords: text("orderNumberKeywords"), // Ex: "Cde client, Référence commande, PO Number"
|
||||
supplierKeywords: text("supplierKeywords"), // Ex: "Vendeur, Société, Émetteur"
|
||||
totalAmountKeywords: text("totalAmountKeywords"), // Ex: "Net à payer, Total à régler, Amount due"
|
||||
subscriptionKeywords: text("subscriptionKeywords"), // Ex: "Abonnement, Subscription, Mensuel, Annuel"
|
||||
// SFTP Configuration
|
||||
sftpHost: varchar("sftpHost", { length: 255 }),
|
||||
sftpPort: int("sftpPort").default(22),
|
||||
|
||||
Reference in New Issue
Block a user