Checkpoint: Module Ventilation FreePro complet : import Excel FreePro, transformation automatique (script/TTC/type XOAUTH2), tableau de ventilation par structure+type, historique par mois, export PDF. Menu Ventilations ajouté dans la navigation.

This commit is contained in:
Manus
2026-06-05 08:02:29 -04:00
parent 4ef130f21d
commit 7f56fa7045
13 changed files with 3123 additions and 3 deletions

View File

@@ -0,0 +1,24 @@
CREATE TABLE `freeproImports` (
`id` int AUTO_INCREMENT NOT NULL,
`userId` int NOT NULL,
`moisLabel` varchar(10) NOT NULL,
`annee` int NOT NULL,
`mois` int NOT NULL,
`refPiece` varchar(50),
`fileName` varchar(255) NOT NULL,
`nbLignes` int NOT NULL DEFAULT 0,
`totalTtc` varchar(30),
`createdAt` timestamp NOT NULL DEFAULT (now()),
`updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,
CONSTRAINT `freeproImports_id` PRIMARY KEY(`id`)
);
--> statement-breakpoint
CREATE TABLE `freeproVentilationLines` (
`id` int AUTO_INCREMENT NOT NULL,
`importId` int NOT NULL,
`structure` varchar(100),
`type` varchar(50) NOT NULL,
`montantCentimes` int NOT NULL,
`createdAt` timestamp NOT NULL DEFAULT (now()),
CONSTRAINT `freeproVentilationLines_id` PRIMARY KEY(`id`)
);