From 4496a7ff58889b73e334bb6c0eb1b55e40bfdc23 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Wed, 10 Sep 2025 07:36:24 +0000 Subject: [PATCH] Add system for reconciliation comments on deliveries Add `reconciliation_comments` table to PostgreSQL schema for storing comments related to delivery reconciliation. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 95e8aab4-f39f-4b48-aa57-a759ec15ba3d Replit-Commit-Checkpoint-Type: intermediate_checkpoint --- shared/schema.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/shared/schema.ts b/shared/schema.ts index e772088..4971194 100644 --- a/shared/schema.ts +++ b/shared/schema.ts @@ -177,6 +177,18 @@ export const invoiceVerificationCache = pgTable("invoice_verification_cache", { updatedAt: timestamp("updated_at").defaultNow(), }); +// Commentaires de rapprochement - Système indépendant pour le module de rapprochement +export const reconciliationComments = pgTable("reconciliation_comments", { + id: serial("id").primaryKey(), + deliveryId: integer("delivery_id").notNull(), // Référence vers la livraison concernée + groupId: integer("group_id").notNull(), // Magasin/groupe pour filtrage + content: text("content").notNull(), // Contenu du commentaire + type: varchar("type", { length: 50 }).notNull().default("info"), // info, warning, error, success + authorId: varchar("author_id").notNull(), // Utilisateur auteur du commentaire + createdAt: timestamp("created_at").defaultNow(), + updatedAt: timestamp("updated_at").defaultNow(), +}); +