Checkpoint: Ajout du module Masse salariale SANTINOVA : tables de salariés, rémunérations et évolutions manuelles sécurisées par rôle administrateur ; import contrôlé des bulletins 2025 et janvier–août 2026 ; écran tableau 2025–2027 ; tests d'autorisations, d'agrégats et des quatre états UI ; documentation des sources et de la politique d'import.

This commit is contained in:
Manus
2026-08-27 13:10:47 +00:00
parent 2f4b1f2e8e
commit da407db4de
21 changed files with 4390 additions and 4 deletions

View File

@@ -0,0 +1,30 @@
CREATE TABLE `masse_salariale_remunerations` (
`id` int AUTO_INCREMENT NOT NULL,
`salarieId` int NOT NULL,
`annee` int NOT NULL,
`salaireAnnuelBrutHorsPrimesCents` int NOT NULL,
`salaireAnnuelBrutAvecPrimesCents` int NOT NULL,
`salaireMensuelBrutHorsPrimesCents` int NOT NULL,
`tauxChargeBps` int NOT NULL,
`evolutionSalarialeBps` int,
`periodeReference` varchar(7),
`source` varchar(64) NOT NULL DEFAULT 'bulletin',
`createdAt` timestamp NOT NULL DEFAULT (now()),
`updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,
CONSTRAINT `masse_salariale_remunerations_id` PRIMARY KEY(`id`),
CONSTRAINT `masse_salariale_salarie_annee_idx` UNIQUE(`salarieId`,`annee`)
);
--> statement-breakpoint
CREATE TABLE `masse_salariale_salaries` (
`id` int AUTO_INCREMENT NOT NULL,
`matricule` varchar(32) NOT NULL,
`nom` varchar(150) NOT NULL,
`prenom` varchar(150) NOT NULL,
`poste` varchar(255) NOT NULL,
`dateEmbauche` varchar(10) NOT NULL,
`actif` boolean NOT NULL DEFAULT true,
`createdAt` timestamp NOT NULL DEFAULT (now()),
`updatedAt` timestamp NOT NULL DEFAULT (now()) ON UPDATE CURRENT_TIMESTAMP,
CONSTRAINT `masse_salariale_salaries_id` PRIMARY KEY(`id`),
CONSTRAINT `masse_salariale_salaries_matricule_unique` UNIQUE(`matricule`)
);