Add participant daily details migration and naming rules
This commit is contained in:
@@ -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;
|
||||
Reference in New Issue
Block a user