Add participant daily details migration and naming rules

This commit is contained in:
sas.fajri
2026-05-05 09:06:49 +07:00
parent 04ba672231
commit da419950ce
3 changed files with 93 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
-- Migration 013: create mcu_participant_daily_details
CREATE TABLE IF NOT EXISTS mcu_participant_daily_details (
Mcu_ParticipantDailyDetailsID INT NOT NULL AUTO_INCREMENT,
Mcu_ParticipantDailyDetailsParticipantDailyID INT NOT NULL,
Mcu_ParticipantDailyDetailsMcu_PatientID INT NOT NULL,
Mcu_ParticipantDailyDetailsIsActive CHAR(1) NOT NULL DEFAULT 'Y',
Mcu_ParticipantDailyDetailsCreated DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
Mcu_ParticipantDailyDetailsLastUpdated TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (Mcu_ParticipantDailyDetailsID),
KEY idx_participant_daily_id (Mcu_ParticipantDailyDetailsParticipantDailyID),
KEY idx_patient_id (Mcu_ParticipantDailyDetailsMcu_PatientID),
KEY idx_active (Mcu_ParticipantDailyDetailsIsActive)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;