15 lines
777 B
SQL
15 lines
777 B
SQL
CREATE TABLE IF NOT EXISTS `mgm_mcureport` (
|
|
`Mgm_McuReportID` int NOT NULL AUTO_INCREMENT,
|
|
`Mgm_McuReportMgm_McuID` int NOT NULL,
|
|
`Mgm_McuReportMcu_ReportUrlTemplateID` int NOT NULL,
|
|
`Mgm_McuReportIsActive` char(1) NOT NULL DEFAULT 'Y',
|
|
`Mgm_McuReportCreated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
`Mgm_McuReportCreatedUserID` int NOT NULL DEFAULT '0',
|
|
`Mgm_McuReportLastUpdated` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
|
`Mgm_McuReportLastUpdatedUserID` int NOT NULL DEFAULT '0',
|
|
PRIMARY KEY (`Mgm_McuReportID`),
|
|
UNIQUE KEY `uk_mcu_report` (`Mgm_McuReportMgm_McuID`),
|
|
KEY `idx_template` (`Mgm_McuReportMcu_ReportUrlTemplateID`),
|
|
KEY `idx_active` (`Mgm_McuReportIsActive`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|