Add MCU report template mapping flow

This commit is contained in:
sas.fajri
2026-04-29 15:38:26 +07:00
parent 6ae695d053
commit 37dea1f398
4 changed files with 177 additions and 11 deletions

View File

@@ -0,0 +1,14 @@
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;