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(), +}); +