aggiunta firma circolari

This commit is contained in:
2025-09-05 12:26:43 +02:00
parent c206ce7e4b
commit 835e123444
12 changed files with 250 additions and 92 deletions

View File

@ -0,0 +1,12 @@
-- tabella ponte: quali gruppi possono firmare quale circolare
CREATE TABLE IF NOT EXISTS `#__circolari_usergroups` (
`circolare_id` INT NOT NULL,
`usergroup_id` INT NOT NULL,
`required` TINYINT(1) NOT NULL DEFAULT 0, -- opzionale: firma obbligatoria del gruppo
`can_firmare` TINYINT(1) NOT NULL DEFAULT 1, -- opzionale: futura granularità
PRIMARY KEY (`circolare_id`, `usergroup_id`),
KEY `idx_group` (`usergroup_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
ALTER TABLE `#__circolari` DROP COLUMN `usergroup_id`;