Batch 1: base project files

This commit is contained in:
sas.fajri
2026-04-15 15:12:37 +07:00
parent 74c29eb250
commit e224e7f31a
57 changed files with 5766 additions and 0 deletions

829
sql/log_ibl_cabang.sql Normal file
View File

@@ -0,0 +1,829 @@
-- Adminer 4.7.5 MySQL dump
SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
DELIMITER ;;
DROP PROCEDURE IF EXISTS `log_me`;;
CREATE PROCEDURE `log_me`(IN `dtype` varchar(25), IN `dcode` varchar(100), IN `djson` varchar(2000), IN `duserid` int)
BEGIN
IF dtype = "PATIENT" THEN
INSERT INTO log_patient(Log_PatientCode, Log_PatientJson, Log_PatientUserID)
SELECT dcode, djson, duserid;
ELSEIF dtype = "DOCTOR" THEN
INSERT INTO log_doctor(Log_DoctorCode, Log_DoctorJson, Log_DoctorUserID)
SELECT dcode, djson, duserid;
ELSEIF dtype = "PX" THEN
INSERT INTO log_px(Log_PxCode, Log_PxJson, Log_PxUserID)
SELECT dcode, djson, duserid;
ELSEIF dtype = "FO" THEN
INSERT INTO log_fo(Log_FoCode, Log_FoJson, Log_FoUserID)
SELECT dcode, djson, duserid;
END IF;
END;;
DROP PROCEDURE IF EXISTS `log_sample`;;
CREATE PROCEDURE `log_sample`(IN `orderid` int, IN `sampleid` int, IN `barcode` varchar(25), IN `code` varchar(50), IN `userid` int, IN `json` text)
BEGIN
INSERT INTO log_sample(
Log_SampleOrderID,
Log_SampleSampleID,
Log_SampleBarcode,
Log_SampleCode,
Log_SampleJson,
Log_SampleUserID)
select orderid, sampleid, barcode, code, json, userid;
END;;
DELIMITER ;
DROP TABLE IF EXISTS `error_log`;
CREATE TABLE `error_log` (
`ErrorLogID` int(11) NOT NULL AUTO_INCREMENT,
`ErrorLogCode` varchar(500) NOT NULL DEFAULT '',
`ErrorLogName` varchar(500) DEFAULT NULL,
`ErrorLogDescription` text DEFAULT NULL,
`ErrorLogData` text DEFAULT NULL,
`ErrorLogCreated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`ErrorLogID`),
KEY `ErrorLogCode` (`ErrorLogCode`),
KEY `ErrorLogName` (`ErrorLogName`),
KEY `ErrorLogCreated` (`ErrorLogCreated`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `error_log_order`;
CREATE TABLE `error_log_order` (
`ErrorLogOrderID` int(11) NOT NULL AUTO_INCREMENT,
`ErrorLogOrderCode` varchar(500) NOT NULL DEFAULT '',
`ErrorLogOrderFnName` varchar(500) DEFAULT NULL,
`ErrorLogOrderDescription` text DEFAULT NULL,
`ErrorLogOrderData` text DEFAULT NULL,
`ErrorLogOrderCreated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`ErrorLogOrderID`),
KEY `ErrorLogOrderCode` (`ErrorLogOrderCode`),
KEY `ErrorLogOrderFnName` (`ErrorLogOrderFnName`),
KEY `ErrorLogOrderCreated` (`ErrorLogOrderCreated`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_action`;
CREATE TABLE `log_action` (
`LogActionID` int(11) NOT NULL AUTO_INCREMENT,
`LogActionType` varchar(50) NOT NULL DEFAULT '',
`LogActionDescription` text NOT NULL DEFAULT '',
`LogActionT_OrderHeaderID` int(11) NOT NULL DEFAULT 0,
`LogActionCreated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`LogActionUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`LogActionID`),
KEY `LogActionT_OrderHeaderID` (`LogActionT_OrderHeaderID`),
KEY `LogActionUserID` (`LogActionUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_download`;
CREATE TABLE `log_download` (
`Log_DownloadID` int(11) NOT NULL AUTO_INCREMENT,
`Log_DownloadReffID` int(11) NOT NULL DEFAULT 0 COMMENT 'T_OrderHeaderID CPONE',
`Log_DownloadT_OrderHeaderID` int(11) NOT NULL DEFAULT 0 COMMENT 'T_OrderHeaderID LOKAL',
`Log_DownloadLabNumber` varchar(50) NOT NULL DEFAULT '',
`Log_DownloadData` longtext NOT NULL DEFAULT '',
`Log_DownloadStatus` varchar(1) NOT NULL DEFAULT 'N' COMMENT 'N=New, P=Process, D=Done, E=Error',
`Log_DownloadMessage` varchar(1000) NOT NULL DEFAULT '',
`Log_DownloadCreated` int(11) NOT NULL DEFAULT 0,
`Log_DownloadCreatedDate` datetime NOT NULL,
`Log_DownloadCreatedUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_DownloadID`),
KEY `Log_DownloadReffID` (`Log_DownloadReffID`),
KEY `Log_DownloadT_OrderHeaderID` (`Log_DownloadT_OrderHeaderID`),
KEY `Log_DownloadLabNumber` (`Log_DownloadLabNumber`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_error_download`;
CREATE TABLE `log_error_download` (
`Log_ErrorDownloadID` int(11) NOT NULL AUTO_INCREMENT,
`Log_ErrorDownloadFn` varchar(1000) NOT NULL,
`Log_ErrorDownloadQuery` longtext NOT NULL DEFAULT '',
`Log_ErrorDownloadData` longtext NOT NULL DEFAULT '',
`Log_ErrorDownloadMessage` varchar(500) NOT NULL DEFAULT '',
`Log_ErrorDownloadCreated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`Log_ErrorDownloadID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
SET NAMES utf8mb4;
DROP TABLE IF EXISTS `log_error_uploadresult`;
CREATE TABLE `log_error_uploadresult` (
`Log_ErrorUploadID` int(11) NOT NULL AUTO_INCREMENT,
`Log_ErrorUploadFn` varchar(500) DEFAULT NULL,
`Log_ErrorUploadQuery` longtext DEFAULT NULL,
`Log_ErrorUploadData` longtext DEFAULT NULL,
`Log_ErrorUploadMessage` text NOT NULL,
`Log_ErrorUploadCreated` datetime DEFAULT NULL,
PRIMARY KEY (`Log_ErrorUploadID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
DROP TABLE IF EXISTS `log_fo`;
CREATE TABLE `log_fo` (
`Log_FoID` int(11) NOT NULL AUTO_INCREMENT,
`Log_FoT_OrderHeaderID` int(11) NOT NULL DEFAULT 0,
`Log_FoDate` datetime NOT NULL DEFAULT current_timestamp(),
`Log_FoCode` varchar(100) NOT NULL DEFAULT '',
`Log_FoJson` mediumtext DEFAULT NULL,
`Log_FoUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_FoID`),
KEY `Log_FoDate` (`Log_FoDate`),
KEY `Log_FoCode` (`Log_FoCode`),
KEY `Log_FoUserID` (`Log_FoUserID`),
KEY `Log_FoT_OrderHeaderID` (`Log_FoT_OrderHeaderID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_fostatus`;
CREATE TABLE `log_fostatus` (
`Log_FoStatusID` int(11) NOT NULL AUTO_INCREMENT,
`Log_FoStatusT_OrderHeaderID` int(11) DEFAULT NULL,
`Log_FoStatusM_StatusID` int(11) DEFAULT NULL,
`Log_FoStatusUserID` int(11) DEFAULT NULL,
`Log_FoStatusDate` datetime DEFAULT NULL,
`Log_FoStatusCreated` timestamp NULL DEFAULT NULL,
PRIMARY KEY (`Log_FoStatusID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_login`;
CREATE TABLE `log_login` (
`Log_LoginID` int(11) NOT NULL AUTO_INCREMENT,
`Log_LoginDateTime` datetime NOT NULL,
`Log_LoginIP` varchar(30) NOT NULL,
`Log_LoginType` varchar(6) NOT NULL COMMENT 'LOGIN / LOGOUT',
`Log_LoginStatus` varchar(10) NOT NULL COMMENT 'SUCCESS / FAILED',
`Log_LoginLogin` varchar(50) NOT NULL COMMENT 'Username',
`Log_LoginIsActive` char(1) NOT NULL DEFAULT 'Y',
`Log_LoginLastUpdated` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
PRIMARY KEY (`Log_LoginID`),
KEY `Log_LoginLogin` (`Log_LoginLogin`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
DROP TABLE IF EXISTS `log_mcu_resume`;
CREATE TABLE `log_mcu_resume` (
`log_Mcu_ResumeID` int(11) NOT NULL AUTO_INCREMENT,
`log_Mcu_ResumeMcu_ResumeID` int(11) NOT NULL,
`log_Mcu_ResumeType` varchar(100) NOT NULL,
`log_Mcu_ResumeJsonBefore` text NOT NULL,
`log_Mcu_ResumeJsonAfter` text NOT NULL,
`log_Mcu_ResumeJsonPrm` text NOT NULL,
`log_Mcu_ResumeUserID` int(11) NOT NULL,
`log_Mcu_ResumeCreated` datetime NOT NULL,
PRIMARY KEY (`log_Mcu_ResumeID`),
KEY `log_Mcu_ResumeMcu_ResumeID` (`log_Mcu_ResumeMcu_ResumeID`),
KEY `log_Mcu_ResumeType` (`log_Mcu_ResumeType`),
KEY `log_Mcu_ResumeUserID` (`log_Mcu_ResumeUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_me`;
CREATE TABLE `log_me` (
`Log_MeID` int(11) NOT NULL AUTO_INCREMENT,
`Log_MeSection` varchar(25) NOT NULL DEFAULT '',
`Log_MeType` varchar(150) NOT NULL DEFAULT '',
`Log_MeJSON` mediumtext DEFAULT NULL,
`Log_MeUserID` int(11) NOT NULL DEFAULT 0,
`Log_MeCreated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
PRIMARY KEY (`Log_MeID`),
KEY `Log_MeSection` (`Log_MeSection`),
KEY `Log_MeType` (`Log_MeType`),
KEY `Log_MeUserID` (`Log_MeUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
DROP TABLE IF EXISTS `log_mgm_mcu`;
CREATE TABLE `log_mgm_mcu` (
`Log_MgmMcuID` int(11) NOT NULL AUTO_INCREMENT,
`Log_MgmMcuMgm_McuID` int(11) NOT NULL DEFAULT 0,
`Log_MgmMcuJSONBefore` text NOT NULL,
`Log_MgmMcuJSONAfter` text NOT NULL,
`Log_MgmMcuIsActive` char(1) NOT NULL DEFAULT 'Y',
`Log_MgmMcuCreated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_MgmMcuCreatedUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_MgmMcuID`),
KEY `Log_MgmMcuMgm_McuID` (`Log_MgmMcuMgm_McuID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_orderdetail`;
CREATE TABLE `log_orderdetail` (
`Log_OrderDetailID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OrderDetailStatus` varchar(50) NOT NULL DEFAULT 'RESULTENTRY',
`Log_OrderDetailT_OrderDetailID` int(11) NOT NULL DEFAULT 0,
`Log_OrderDetailResult` varchar(750) NOT NULL DEFAULT '',
`Log_OrderDetailJSON` text NOT NULL DEFAULT '',
`Log_OrderDetailCreated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_OrderDetailUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_OrderDetailID`),
KEY `Log_OrderDetailT_OrderDetailID` (`Log_OrderDetailT_OrderDetailID`),
KEY `Log_OrderDetailUserID` (`Log_OrderDetailUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_other_cytologi`;
CREATE TABLE `log_other_cytologi` (
`Log_OtherCytologiID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OtherCytologiOther_CytologiID` int(11) NOT NULL DEFAULT 0,
`Log_OtherCytologiDatetime` datetime DEFAULT '0000-00-00 00:00:00',
`Log_OtherCytologiJSON` text DEFAULT NULL,
`Log_OtherCytologiUserID` int(11) DEFAULT NULL,
PRIMARY KEY (`Log_OtherCytologiID`),
KEY `Log_OtherCytologiOther_CytologiID` (`Log_OtherCytologiOther_CytologiID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_other_cytologidetails`;
CREATE TABLE `log_other_cytologidetails` (
`Log_OtherCytologiDetailsID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OtherCytologiDetailsOther_CytologiDetailsID` int(11) NOT NULL DEFAULT 0,
`Log_OtherCytologiDetailsDateTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_OtherCytologiDetailsJSON` text DEFAULT NULL,
`Log_OtherCytologiDetailsUserID` int(11) DEFAULT NULL,
PRIMARY KEY (`Log_OtherCytologiDetailsID`),
KEY `Log_OtherCytologiDetailsOther_CytologiDetailsID` (`Log_OtherCytologiDetailsOther_CytologiDetailsID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_other_fna`;
CREATE TABLE `log_other_fna` (
`Log_OtherFNAID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OtherFNAOther_FNAID` int(11) NOT NULL DEFAULT 0,
`Log_OtherFNADatetime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_OtherFNAJSON` text NOT NULL,
`Log_OtherFNAUserID` int(11) DEFAULT NULL,
PRIMARY KEY (`Log_OtherFNAID`),
KEY `Log_OtherFNAOther_FNAID` (`Log_OtherFNAOther_FNAID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_other_fnadetails`;
CREATE TABLE `log_other_fnadetails` (
`Log_OtherFNADetailsID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OtherFNADetailsOther_FNADetailsID` int(11) NOT NULL DEFAULT 0,
`Log_OtherFNADetailsDateTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_OtherFNADetailsJSON` text DEFAULT NULL,
`Log_OtherFNADetailsUserID` int(11) DEFAULT NULL,
PRIMARY KEY (`Log_OtherFNADetailsID`),
KEY `Log_OtherFNADetailsOther_FNADetailsID` (`Log_OtherFNADetailsOther_FNADetailsID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_other_lcprep`;
CREATE TABLE `log_other_lcprep` (
`Log_OtherLcprepID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OtherLcprepOther_LcprepID` int(11) NOT NULL DEFAULT 0,
`Log_OtherLcprepDateTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_OtherLcprepJSON` text DEFAULT NULL,
`Log_OtherLcprepUserID` int(11) DEFAULT NULL,
PRIMARY KEY (`Log_OtherLcprepID`),
KEY `Log_OtherLcprepOther_LcprepID` (`Log_OtherLcprepOther_LcprepID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_other_lcprepadekuasi`;
CREATE TABLE `log_other_lcprepadekuasi` (
`Log_OtherLcprepAdekuasiID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OtherLcprepAdekuasiOther_LcprepAdekuasiID` int(11) NOT NULL DEFAULT 0,
`Log_OtherLcprepAdekuasiDateTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_OtherLcprepAdekuasiJSON` text NOT NULL,
`Log_OtherLcprepAdekuasiUserID` int(11) DEFAULT NULL,
PRIMARY KEY (`Log_OtherLcprepAdekuasiID`),
KEY `Log_OtherLcprepAdekuasiOther_LcprepAdekuasiID` (`Log_OtherLcprepAdekuasiOther_LcprepAdekuasiID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_other_lcprepdetails`;
CREATE TABLE `log_other_lcprepdetails` (
`Log_OtherLcprepDetailsID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OtherLcprepDetailsOther_LcprepDetailsID` int(11) NOT NULL DEFAULT 0,
`Log_OtherLcprepDetailsDateTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_OtherLcprepDetailsJSON` text DEFAULT NULL,
`Log_OtherLcprepDetailsUserID` int(11) DEFAULT NULL,
PRIMARY KEY (`Log_OtherLcprepDetailsID`),
KEY `Log_OtherLcprepDetailsOther_LcprepDetailsID` (`Log_OtherLcprepDetailsOther_LcprepDetailsID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_other_lcprepinterpretasi`;
CREATE TABLE `log_other_lcprepinterpretasi` (
`Log_OtherLcprepInterpretasiID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OtherLcprepInterpretasiOther_LcprepInterpretasiID` int(11) NOT NULL DEFAULT 0,
`Log_OtherLcprepInterpretasiDateTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_OtherLcprepInterpretasiJSON` text DEFAULT NULL,
`Log_OtherLcprepInterpretasiUserID` int(11) DEFAULT NULL,
PRIMARY KEY (`Log_OtherLcprepInterpretasiID`),
KEY `Log_OtherLcprepInterpretasiOther_LcprepInterpretasiID` (`Log_OtherLcprepInterpretasiOther_LcprepInterpretasiID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_other_lcprepkategoriumum`;
CREATE TABLE `log_other_lcprepkategoriumum` (
`Log_OtherLcprepKategoriUmumID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OtherLcprepKategoriUmumOther_LcprepKategoriUmumID` int(11) NOT NULL DEFAULT 0,
`Log_OtherLcprepKategoriUmumDateTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_OtherLcprepKategoriUmumJSON` text DEFAULT NULL,
`Log_OtherLcprepKategoriUmumUserID` int(11) DEFAULT NULL,
PRIMARY KEY (`Log_OtherLcprepKategoriUmumID`),
KEY `Log_OtherLcprepKategoriUmumOther_LcprepKategoriUmumID` (`Log_OtherLcprepKategoriUmumOther_LcprepKategoriUmumID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_other_mikro`;
CREATE TABLE `log_other_mikro` (
`Log_OtherMikroID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OtherMikroOther_MikroID` int(11) NOT NULL DEFAULT 0,
`Log_OtherMikroJSON` text NOT NULL DEFAULT '',
`Log_OtherMikroCreated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_OtherMikroUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_OtherMikroID`),
KEY `Log_OtherMikroOther_MikroID` (`Log_OtherMikroOther_MikroID`),
KEY `Log_OtherMikroUserID` (`Log_OtherMikroUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_other_mikrodetails`;
CREATE TABLE `log_other_mikrodetails` (
`Log_OtherMikroDetailsID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OtherMikroDetailsOther_MikroDetailsID` int(11) NOT NULL DEFAULT 0,
`Log_OtherMikroDetailsJSON` text NOT NULL DEFAULT '',
`Log_OtherMikroDetailsCreated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_OtherMikroDetailsUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_OtherMikroDetailsID`),
KEY `Log_OtherMikroDetailsOther_MikroDetailsID` (`Log_OtherMikroDetailsOther_MikroDetailsID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_other_papsmear`;
CREATE TABLE `log_other_papsmear` (
`Log_OtherPapsmearID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OtherPapsmearOther_PapSmearID` int(11) NOT NULL DEFAULT 0,
`Log_OtherPapsmearDateTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_OtherPapsmearJSON` text DEFAULT NULL,
`Log_OtherPapsmearUserID` int(11) DEFAULT NULL,
PRIMARY KEY (`Log_OtherPapsmearID`),
KEY `Log_OtherPapsmearOther_PapSmearID` (`Log_OtherPapsmearOther_PapSmearID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_other_papsmearbahan`;
CREATE TABLE `log_other_papsmearbahan` (
`Log_OtherPapSmearBahanID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OtherPapSmearBahanOther_PapSmearBahanID` int(11) NOT NULL DEFAULT 0,
`Log_OtherPapSmearBahanDateTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_OtherPapSmearBahanJSON` text DEFAULT NULL,
`Log_OtherPapSmearBahanUserID` int(11) DEFAULT NULL,
PRIMARY KEY (`Log_OtherPapSmearBahanID`),
KEY `Log_OtherPapSmearBahanOther_PapSmearBahanID` (`Log_OtherPapSmearBahanOther_PapSmearBahanID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_other_papsmearcategory`;
CREATE TABLE `log_other_papsmearcategory` (
`Log_OtherPapSmearCategoryID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OtherPapSmearCategoryOther_PapsmearCategoryID` int(11) NOT NULL DEFAULT 0,
`Log_OtherPapSmearCategoryDateTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_OtherPapSmearCategoryJSON` text DEFAULT NULL,
`Log_OtherPapSmearCategoryUserID` int(11) DEFAULT NULL,
PRIMARY KEY (`Log_OtherPapSmearCategoryID`),
KEY `Log_OtherPapSmearCategoryOther_PapsmearCategoryID` (`Log_OtherPapSmearCategoryOther_PapsmearCategoryID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_other_papsmearcheck`;
CREATE TABLE `log_other_papsmearcheck` (
`Log_OtherPapSmearCheckID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OtherPapSmearCheckOther_PapSmearCheckID` int(11) NOT NULL DEFAULT 0,
`Log_OtherPapSmearCheckDateTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_OtherPapSmearCheckJSON` text DEFAULT NULL,
`Log_OtherPapSmearCheckUserID` int(11) DEFAULT NULL,
PRIMARY KEY (`Log_OtherPapSmearCheckID`),
KEY `Log_OtherPapSmearCheckOther_PapSmearCheckID` (`Log_OtherPapSmearCheckOther_PapSmearCheckID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_other_papsmeardetails`;
CREATE TABLE `log_other_papsmeardetails` (
`Log_OtherPapSmearDetailsID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OtherPapSmearDetailsOther_PapSmearDetailsID` int(11) NOT NULL DEFAULT 0,
`Log_OtherPapSmearDetailsDateTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_OtherPapSmearDetailsJSON` text DEFAULT NULL,
`Log_OtherPapSmearDetailsUserID` int(11) DEFAULT NULL,
PRIMARY KEY (`Log_OtherPapSmearDetailsID`),
KEY `Log_OtherPapSmearDetailsOther_PapSmearDetailsID` (`Log_OtherPapSmearDetailsOther_PapSmearDetailsID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_other_papsmearmaturasi`;
CREATE TABLE `log_other_papsmearmaturasi` (
`Log_OtherPapsmearMaturasiID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OtherPapsmearMaturasiOther_PapSmearMaturasiID` int(11) NOT NULL DEFAULT 0,
`Log_OtherPapsmearMaturasiDateTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_OtherPapsmearMaturasiJSON` text DEFAULT NULL,
`Log_OtherPapsmearMaturasiUserID` int(11) DEFAULT NULL,
PRIMARY KEY (`Log_OtherPapsmearMaturasiID`),
KEY `Log_OtherPapsmearMaturasiOther_PapSmearMaturasiID` (`Log_OtherPapsmearMaturasiOther_PapSmearMaturasiID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_other_patologianatomy`;
CREATE TABLE `log_other_patologianatomy` (
`Log_OtherPatologiAnatomyID` int(11) NOT NULL AUTO_INCREMENT,
`Log_OtherPatologiAnatomyLog_OtherPatologiAnatomyID` int(11) NOT NULL DEFAULT 0,
`Log_OtherPatologiAnatomyJSON` text NOT NULL DEFAULT '',
`Log_OtherPatologiAnatomyCreated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_OtherPatologiAnatomyUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_OtherPatologiAnatomyID`),
KEY `Log_OtherPatologiAnatomyLog_OtherPatologiAnatomyID` (`Log_OtherPatologiAnatomyLog_OtherPatologiAnatomyID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_patient`;
CREATE TABLE `log_patient` (
`Log_PatientID` int(11) NOT NULL AUTO_INCREMENT,
`Log_PatientM_PatientID` int(11) NOT NULL DEFAULT 0,
`Log_PatientDate` datetime NOT NULL DEFAULT current_timestamp(),
`Log_PatientCode` varchar(25) NOT NULL DEFAULT '' COMMENT 'ADD, EDIT, DELETE',
`Log_PatientJsonBefore` text DEFAULT NULL,
`Log_PatientJsonAfter` text DEFAULT NULL,
`Log_PatientUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_PatientID`),
KEY `Log_PatientDate` (`Log_PatientDate`),
KEY `Log_PatientCode` (`Log_PatientCode`),
KEY `Log_PatientUserID` (`Log_PatientUserID`),
KEY `Log_PatientM_PatientID` (`Log_PatientM_PatientID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_payment`;
CREATE TABLE `log_payment` (
`Log_PaymentID` int(11) NOT NULL AUTO_INCREMENT,
`Log_PaymentDate` datetime NOT NULL DEFAULT current_timestamp(),
`Log_PaymentCode` varchar(100) NOT NULL DEFAULT '',
`Log_PaymentOrderID` int(11) NOT NULL DEFAULT 0,
`Log_PaymentJson` text DEFAULT NULL,
`Log_PaymentUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_PaymentID`),
KEY `Log_PaymentCode` (`Log_PaymentCode`),
KEY `Log_PaymentUserID` (`Log_PaymentUserID`),
KEY `Log_PaymentOrderID` (`Log_PaymentOrderID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
DROP TABLE IF EXISTS `log_privilege`;
CREATE TABLE `log_privilege` (
`Log_PriviledgeID` int(11) NOT NULL AUTO_INCREMENT,
`Log_PrivilegeM_UserGroupID` int(11) NOT NULL DEFAULT 0,
`Log_PrivilegeDate` date NOT NULL DEFAULT '0000-00-00',
`log_privilegeS_MenuID` int(11) DEFAULT NULL,
`Log_PrivilegeStatus` varchar(25) NOT NULL DEFAULT '' COMMENT 'UPDATE',
`Log_PrivilegeJSONAfter` text NOT NULL,
`Log_PrivilegeCreated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_PrivilegeCreatedUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_PriviledgeID`),
KEY `Log_PriviledgeM_UserGroupID` (`Log_PrivilegeM_UserGroupID`),
KEY `log_privilegeS_MenuID` (`log_privilegeS_MenuID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_process`;
CREATE TABLE `log_process` (
`Log_ProcessID` int(11) NOT NULL AUTO_INCREMENT,
`Log_ProcessDate` datetime NOT NULL DEFAULT current_timestamp(),
`Log_ProcessCode` varchar(50) DEFAULT NULL,
`Log_ProcessOrderID` int(11) NOT NULL DEFAULT 0,
`Log_ProcessOrderNumber` varchar(25) DEFAULT NULL,
`Log_ProcessJson` text DEFAULT NULL,
`Log_ProcessUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_ProcessID`),
KEY `Log_ProcessDate` (`Log_ProcessDate`),
KEY `Log_ProcessOrderID` (`Log_ProcessOrderID`),
KEY `Log_ProcessUserID` (`Log_ProcessUserID`),
KEY `Log_ProcessOrderNumber` (`Log_ProcessOrderNumber`),
KEY `Log_ProcessCode` (`Log_ProcessCode`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
DROP TABLE IF EXISTS `log_px`;
CREATE TABLE `log_px` (
`Log_PxID` int(11) NOT NULL AUTO_INCREMENT,
`Log_PxDate` datetime NOT NULL DEFAULT current_timestamp(),
`Log_PxCode` varchar(100) NOT NULL DEFAULT '',
`Log_PxOrderID` int(11) NOT NULL DEFAULT 0,
`Log_PxJson` text DEFAULT NULL,
`Log_PxUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_PxID`),
KEY `Log_PxDate` (`Log_PxDate`),
KEY `Log_PxCode` (`Log_PxCode`),
KEY `Log_PxUserID` (`Log_PxUserID`),
KEY `Log_PxOrderID` (`Log_PxOrderID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
DROP TABLE IF EXISTS `log_ref_deliveryorder`;
CREATE TABLE `log_ref_deliveryorder` (
`Log_RefDeliveryorderID` int(11) NOT NULL AUTO_INCREMENT,
`Log_RefDeliveryorderDate` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`Log_RefDeliveryorderCode` varchar(50) NOT NULL,
`Log_RefDeliveryorderJson` text NOT NULL,
`Log_RefDeliveryorderUserID` int(11) NOT NULL,
PRIMARY KEY (`Log_RefDeliveryorderID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_resultentry`;
CREATE TABLE `log_resultentry` (
`Log_ResultEntryID` int(11) NOT NULL AUTO_INCREMENT,
`Log_ResultEntryType` char(25) NOT NULL COMMENT 'ADD|EDIT|DELETE|RERUN',
`Log_ResultEntryT_OrderHeaderID` int(11) NOT NULL DEFAULT 0,
`Log_ResultEntryT_OrderDetailID` int(11) NOT NULL DEFAULT 0,
`Log_ResultEntryJSONBefore` mediumtext NOT NULL,
`Log_ResultEntryJSONAfter` mediumtext NOT NULL,
`Log_ResultEntryCreated` datetime NOT NULL DEFAULT current_timestamp(),
`Log_ResultEntryUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_ResultEntryID`),
KEY `Log_ResultEntryT_OrderHeaderID` (`Log_ResultEntryT_OrderHeaderID`),
KEY `Log_ResultEntryT_OrderDetailID` (`Log_ResultEntryT_OrderDetailID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_resultentrylang`;
CREATE TABLE `log_resultentrylang` (
`Log_ResultEntryLangID` int(11) NOT NULL AUTO_INCREMENT,
`Log_ResultEntryLangSo_ResultEntryID` int(11) NOT NULL,
`Log_ResultEntryLangType` varchar(50) NOT NULL,
`Log_ResultEntryLangLangID` int(11) NOT NULL,
`Log_ResultEntryLangPrm` text NOT NULL,
`Log_ResultEntryLangJsonBefore` text NOT NULL,
`Log_ResultEntryLangJsonAfter` text NOT NULL,
`Log_ResultEntryLangUserID` int(11) NOT NULL,
`Log_ResultEntryLangCreated` datetime NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`Log_ResultEntryLangID`),
KEY `Log_ResultEntryLangType` (`Log_ResultEntryLangType`),
KEY `Log_ResultEntryLangSo_ResultEntryID` (`Log_ResultEntryLangSo_ResultEntryID`),
KEY `Log_ResultEntryLangLangID` (`Log_ResultEntryLangLangID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_resultentry_so`;
CREATE TABLE `log_resultentry_so` (
`Log_ResultEntrySoID` int(11) NOT NULL AUTO_INCREMENT,
`Log_ResultEntrySoReID` int(11) NOT NULL DEFAULT 0,
`Log_ResultEntrySoDate` datetime NOT NULL,
`Log_ResultEntrySoJSON` mediumtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL,
`Log_ResultEntrySoUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_ResultEntrySoID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_sample`;
CREATE TABLE `log_sample` (
`Log_SampleID` int(11) NOT NULL AUTO_INCREMENT,
`Log_SampleDate` datetime NOT NULL DEFAULT current_timestamp(),
`Log_SampleOrderID` int(11) NOT NULL DEFAULT 0,
`Log_SampleSampleID` int(11) NOT NULL DEFAULT 0,
`Log_SampleBarcode` varchar(25) NOT NULL DEFAULT '',
`Log_SampleCode` varchar(50) NOT NULL DEFAULT '',
`Log_SampleJson` text DEFAULT NULL,
`Log_SampleUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_SampleID`),
KEY `Log_SampleDate` (`Log_SampleDate`),
KEY `Log_SampleOrderID` (`Log_SampleOrderID`),
KEY `Log_SampleSampleID` (`Log_SampleSampleID`),
KEY `Log_SampleBarcodeID` (`Log_SampleBarcode`),
KEY `Log_SampleCode` (`Log_SampleCode`),
KEY `Log_SampleUserID` (`Log_SampleUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_sample_order`;
CREATE TABLE `log_sample_order` (
`Log_sampleOrderID` int(11) NOT NULL AUTO_INCREMENT,
`Log_sampleOrderT_OrderSampleID` int(11) NOT NULL DEFAULT 0,
`Log_sampleOrderDate` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_sampleOrderJson` text NOT NULL,
`Log_sampleOrderUserID` int(11) DEFAULT NULL,
PRIMARY KEY (`Log_sampleOrderID`),
KEY `Log_sampleOrderT_OrderSampleID` (`Log_sampleOrderT_OrderSampleID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_sample_req`;
CREATE TABLE `log_sample_req` (
`Log_SampleReqID` int(11) NOT NULL AUTO_INCREMENT,
`Log_SampleReqDate` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`Log_SampleReqJson` text NOT NULL,
`Log_SampleReqUserID` int(11) NOT NULL,
PRIMARY KEY (`Log_SampleReqID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_sampling_film`;
CREATE TABLE `log_sampling_film` (
`Log_SamplingFilmID` int(11) NOT NULL AUTO_INCREMENT,
`Log_SamplingFilmT_SamplingSoID` int(11) DEFAULT 0,
`Log_SamplingFilmJSON` text DEFAULT NULL,
`Log_SamplingFilmCreated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_SamplingFilmUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_SamplingFilmID`),
KEY `Log_SamplingFilmT_SamplingSoID` (`Log_SamplingFilmT_SamplingSoID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_sampling_form`;
CREATE TABLE `log_sampling_form` (
`Log_SamplingFormID` int(11) NOT NULL AUTO_INCREMENT,
`Log_SamplingFormT_SamplingSOID` int(11) DEFAULT 0,
`Log_SamplingFormJSON` text DEFAULT NULL,
`Log_SamplingFormCreated` datetime DEFAULT '0000-00-00 00:00:00',
`Log_SamplingFormCreatedUserID` int(11) DEFAULT 0,
PRIMARY KEY (`Log_SamplingFormID`),
KEY `Log_SamplingFormT_SamplingSOID` (`Log_SamplingFormT_SamplingSOID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_sampling_queue`;
CREATE TABLE `log_sampling_queue` (
`Log_SamplingQueueID` int(11) NOT NULL AUTO_INCREMENT,
`Log_SamplingQueueDate` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`Log_SamplingQueueCode` varchar(50) DEFAULT NULL,
`Log_SamplingQueueOrderID` int(11) NOT NULL DEFAULT 0,
`Log_SamplingQueueStationID` int(11) NOT NULL DEFAULT 0,
`Log_SamplingQueueJSON` text DEFAULT NULL,
`Log_SamplingQueueUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_SamplingQueueID`),
KEY `Log_SamplingQueueDate` (`Log_SamplingQueueDate`),
KEY `Log_SamplingQueueCode` (`Log_SamplingQueueCode`),
KEY `Log_SamplingQueueOrderID` (`Log_SamplingQueueOrderID`),
KEY `Log_SamplingQueueStationID` (`Log_SamplingQueueStationID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
DROP TABLE IF EXISTS `log_sampling_queue_so`;
CREATE TABLE `log_sampling_queue_so` (
`Log_SampleQueueSOID` int(11) NOT NULL AUTO_INCREMENT,
`Log_SampleQueueSOT_SamplingSOID` int(11) NOT NULL,
`Log_SampleQueueSODate` date NOT NULL,
`Log_SampleQueueSOJSON` text NOT NULL,
`Log_SampleQueueSOUserID` int(11) NOT NULL,
PRIMARY KEY (`Log_SampleQueueSOID`),
KEY `Log_SampleQueueSOT_SamplingSOID` (`Log_SampleQueueSOT_SamplingSOID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
DROP TABLE IF EXISTS `log_sds_inject`;
CREATE TABLE `log_sds_inject` (
`Log_SDSResultID` int(11) NOT NULL AUTO_INCREMENT,
`Log_SDSResultSo_ResultEntryID` int(11) NOT NULL,
`Log_SDSResultReSdsInterpretationID` int(11) NOT NULL COMMENT 'so_resultentrysdsinterpretationid',
`Log_SDSResultType` varchar(100) NOT NULL,
`Log_SDSResultJsonBefore` text NOT NULL,
`Log_SDSResultJsonAfter` text NOT NULL,
`Log_SDSResultJsonPrm` text NOT NULL,
`Log_SDSResultUserID` int(11) NOT NULL,
`Log_SDSResultCreated` datetime NOT NULL,
PRIMARY KEY (`Log_SDSResultID`),
KEY `Log_SDSResultSo_ResultEntryID` (`Log_SDSResultSo_ResultEntryID`),
KEY `Log_SDSResultType` (`Log_SDSResultType`),
KEY `Log_SDSResultUserID` (`Log_SDSResultUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_t_orderdetaillang`;
CREATE TABLE `log_t_orderdetaillang` (
`Log_T_OrderDetailLangID` int(11) NOT NULL AUTO_INCREMENT,
`Log_T_OrderDetailLangType` varchar(50) NOT NULL,
`Log_T_OrderDetailLangLangID` int(11) NOT NULL,
`Log_T_OrderDetailLangT_OrderHeaderID` int(11) NOT NULL,
`Log_T_OrderDetailLangPrm` text NOT NULL,
`Log_T_OrderDetailLangJsonBefore` text NOT NULL,
`Log_T_OrderDetailLangJsonAfter` text NOT NULL,
`Log_T_OrderDetailLangUserID` int(11) NOT NULL,
`Log_T_OrderDetailLangCreated` datetime NOT NULL DEFAULT current_timestamp(),
PRIMARY KEY (`Log_T_OrderDetailLangID`),
KEY `Log_T_OrderDetailLangType` (`Log_T_OrderDetailLangType`),
KEY `Log_T_OrderDetailLangT_OrderHeaderID` (`Log_T_OrderDetailLangT_OrderHeaderID`),
KEY `Log_T_OrderDetailLangUserID` (`Log_T_OrderDetailLangUserID`),
KEY `Log_T_OrderDetailLangLangID` (`Log_T_OrderDetailLangLangID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_uploadresult`;
CREATE TABLE `log_uploadresult` (
`Log_UploadResultID` int(11) NOT NULL AUTO_INCREMENT,
`Log_UploadResultLocalT_OrderHeaderID` int(11) NOT NULL DEFAULT 0,
`Log_UploadResultT_OrderHeaderID` int(11) NOT NULL DEFAULT 0,
`Log_UploadResultT_OrderHeaderLabNumber` varchar(50) NOT NULL DEFAULT '',
`Log_UploadResultUrl` varchar(1000) NOT NULL DEFAULT '',
`Log_UploadResultData` longtext DEFAULT NULL,
`Log_UploadResultResponse` longtext DEFAULT NULL,
`Log_UploadResultStatus` varchar(1) DEFAULT 'N' COMMENT 'NEW,PROCESS,DONE',
`Log_UploadResultCreated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_UploadResultCreatedUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_UploadResultID`),
KEY `Log_UploadResultLocalT_OrderHeaderID` (`Log_UploadResultLocalT_OrderHeaderID`),
KEY `Log_UploadResultT_OrderHeaderID` (`Log_UploadResultT_OrderHeaderID`),
KEY `Log_UploadResultT_OrderHeaderLabNumber` (`Log_UploadResultT_OrderHeaderLabNumber`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_user`;
CREATE TABLE `log_user` (
`Log_UserID` int(11) NOT NULL AUTO_INCREMENT,
`Log_UserM_UserID` int(11) NOT NULL DEFAULT 0,
`Log_UserDate` date NOT NULL DEFAULT '0000-00-00',
`Log_UserStatus` varchar(25) NOT NULL DEFAULT 'NEW',
`Log_UserJSONBefore` text NOT NULL,
`Log_UserJSONAfter` text NOT NULL,
`Log_UserCreated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`Log_UserCreatedUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Log_UserID`),
KEY `Log_UserM_UserID` (`Log_UserM_UserID`),
KEY `Log_UserDate` (`Log_UserDate`),
KEY `Log_UserStatus` (`Log_UserStatus`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `log_xls`;
CREATE TABLE `log_xls` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`Mgm_McuID` int(11) NOT NULL DEFAULT 0,
`trx_date` datetime NOT NULL,
`json` longtext NOT NULL,
`userid` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
KEY `Mgm_McuID` (`Mgm_McuID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `order_log`;
CREATE TABLE `order_log` (
`orderLogTypeID` int(11) NOT NULL AUTO_INCREMENT,
`orderLogT_OrderHeaderID` int(11) NOT NULL DEFAULT 0,
`orderLogType` varchar(150) NOT NULL DEFAULT '',
`orderLogJSONBefore` longtext NOT NULL DEFAULT '',
`orderLogJSONAfter` longtext NOT NULL DEFAULT '',
`orderLogJSONAdded` longtext NOT NULL DEFAULT '',
`orderLogJSONRemoved` longtext NOT NULL DEFAULT '',
`orderLogCreated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`orderLogUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`orderLogTypeID`),
KEY `orderLogT_OrderHeaderID` (`orderLogT_OrderHeaderID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `order_payload`;
CREATE TABLE `order_payload` (
`OrderPayloadID` int(11) NOT NULL AUTO_INCREMENT,
`OrderPayloadM_PatientID` int(11) NOT NULL DEFAULT 0,
`OrderPayloadJSON` mediumtext NOT NULL DEFAULT '',
`OrderPayloadMD5` varchar(150) NOT NULL DEFAULT '',
`OrderPayloadIsActive` char(1) NOT NULL DEFAULT 'Y',
`OrderPayloadCreated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
`OrderPayloadUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`OrderPayloadID`),
KEY `OrderPayloadM_PatientID` (`OrderPayloadM_PatientID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
DROP TABLE IF EXISTS `result_handoveremail_log`;
CREATE TABLE `result_handoveremail_log` (
`Result_HandOverEmailLogID` int(11) NOT NULL AUTO_INCREMENT,
`Result_HandOverEmailLogDateTime` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp(),
`Result_HandOverEmailLogJSON` text NOT NULL,
`Result_HandOverEmailLogUserID` int(11) NOT NULL,
PRIMARY KEY (`Result_HandOverEmailLogID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
DROP TABLE IF EXISTS `result_processtooffice_log`;
CREATE TABLE `result_processtooffice_log` (
`Result_ProcessToOfficeLogID` int(11) NOT NULL AUTO_INCREMENT,
`Result_ProcessToOfficeLogDateTime` datetime NOT NULL,
`Result_ProcessToOfficeLogJSON` text NOT NULL,
`Result_ProcessToOfficeLogUserID` int(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`Result_ProcessToOfficeLogID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
-- 2026-04-09 04:42:47