[FIX] Migration SQL: INT NOT NULL per FK verso organizations/users (signed)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
DevEnv nis2-agile
2026-03-07 13:22:08 +01:00
co-authored by Claude Sonnet 4.6
parent 86e9bdded2
commit a8ef41dc35
3 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -5,7 +5,7 @@
CREATE TABLE IF NOT EXISTS whistleblowing_reports (
id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY,
organization_id INT UNSIGNED NOT NULL,
organization_id INT NOT NULL,
report_code VARCHAR(20) NOT NULL UNIQUE, -- Es. WB-2026-001
-- Mittente (opzionale — anonimato garantito)