This commit is contained in:
2026-06-01 16:49:38 +02:00
parent bed30c985b
commit d017203644
595 changed files with 233 additions and 13 deletions
+18
View File
@@ -89,6 +89,24 @@ CREATE TABLE IF NOT EXISTS iwrs_mdd3003_subject_summary (
INDEX idx_subject (subject)
);
-- ── Notifications ────────────────────────────────────────────────────────────
CREATE TABLE IF NOT EXISTS iwrs_notifications (
id INT AUTO_INCREMENT PRIMARY KEY,
study VARCHAR(20) NOT NULL,
subject VARCHAR(20) NOT NULL,
pk INT NOT NULL,
title VARCHAR(100),
label VARCHAR(500),
event VARCHAR(50),
actual_date DATE,
text TEXT,
pdf MEDIUMBLOB,
source_file VARCHAR(500),
imported_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
UNIQUE KEY uq_pk (pk),
INDEX idx_study_subject (study, subject)
);
-- ── Subject visits / transactions (obě studie) ───────────────────────────────
CREATE TABLE IF NOT EXISTS iwrs_subject_visits (
id INT AUTO_INCREMENT PRIMARY KEY,