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
This commit is contained in:
michaelschal committed 2025-09-10 07:36:24 +00:00
1 parent cf0302936d
commit 4496a7ff58
1 file changed
+12
+12
View File
@@ -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(),
});