-- Tables in one_lab_log (devone) not present in log_ibl_cabang.sql — schema snapshot via mysqldump --no-data



CREATE TABLE `log_qr_printout` (
  `Log_QR_PrintOutID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_QR_PrintOutQR_PrintOutID` int(11) NOT NULL,
  `Log_QR_PrintOutT_OrderHeaderID` int(11) NOT NULL,
  `Log_QR_PrintOutJSON` text NOT NULL,
  `Log_QR_PrintOutResponse` text NOT NULL,
  `Log_QR_PrintOutDateTime` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`Log_QR_PrintOutID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;


CREATE TABLE `log_resultentrysds` (
  `Log_ResultEntrySDSID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_ResultEntrySDSSo_ResultEntryID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySDSSourceID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySDSDate` datetime NOT NULL,
  `Log_ResultEntrySDSBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySDSAfterJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySDSUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_ResultEntrySDSID`),
  KEY `Log_ResultEntrySDSSo_ResultEntryID` (`Log_ResultEntrySDSSo_ResultEntryID`),
  KEY `Log_ResultEntrySDSSourceID` (`Log_ResultEntrySDSSourceID`),
  KEY `Log_ResultEntrySDSDate` (`Log_ResultEntrySDSDate`),
  KEY `Log_ResultEntrySDSUserID` (`Log_ResultEntrySDSUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `log_resultentrysdsidentity` (
  `Log_ResultEntrySDSIdentityID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_ResultEntrySDSIdentitySo_ResultEntryID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySDSIdentitySourceID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySDSIdentityDate` datetime NOT NULL,
  `Log_ResultEntrySDSIdentityBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySDSIdentityAfterJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySDSIdentityUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_ResultEntrySDSIdentityID`),
  KEY `Log_ResultEntrySDSIdentitySo_ResultEntryID` (`Log_ResultEntrySDSIdentitySo_ResultEntryID`),
  KEY `Log_ResultEntrySDSIdentitySourceID` (`Log_ResultEntrySDSIdentitySourceID`),
  KEY `Log_ResultEntrySDSIdentityDate` (`Log_ResultEntrySDSIdentityDate`),
  KEY `Log_ResultEntrySDSIdentityUserID` (`Log_ResultEntrySDSIdentityUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `log_resultentrysdsinterpretation` (
  `Log_ResultEntrySDSInterpretationID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_ResultEntrySDSInterpretationSo_ResultEntryID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySDSInterpretationSourceID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySDSInterpretationDate` datetime NOT NULL,
  `Log_ResultEntrySDSInterpretationBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySDSInterpretationAfterJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySDSInterpretationUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_ResultEntrySDSInterpretationID`),
  KEY `Log_ResultEntrySDSInterpretationSo_ResultEntryID` (`Log_ResultEntrySDSInterpretationSo_ResultEntryID`),
  KEY `Log_ResultEntrySDSInterpretationSourceID` (`Log_ResultEntrySDSInterpretationSourceID`),
  KEY `Log_ResultEntrySDSInterpretationDate` (`Log_ResultEntrySDSInterpretationDate`),
  KEY `Log_ResultEntrySDSInterpretationUserID` (`Log_ResultEntrySDSInterpretationUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `log_resultentrysds_type` (
  `Log_ResultEntrySDSTypeID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_ResultEntrySDSTypeSo_ResultEntryID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySDSTypeSourceID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySDSTypeDate` datetime NOT NULL,
  `Log_ResultEntrySDSTypeBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySDSTypeAfterJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySDSTypeUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_ResultEntrySDSTypeID`),
  KEY `Log_ResultEntrySDSTypeSo_ResultEntryID` (`Log_ResultEntrySDSTypeSo_ResultEntryID`),
  KEY `Log_ResultEntrySDSTypeSourceID` (`Log_ResultEntrySDSTypeSourceID`),
  KEY `Log_ResultEntrySDSTypeDate` (`Log_ResultEntrySDSTypeDate`),
  KEY `Log_ResultEntrySDSTypeUserID` (`Log_ResultEntrySDSTypeUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `log_resultentry_category_result` (
  `Log_ResultEntryCategoryResultID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_ResultEntryCategoryResultSo_ResultEntryID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntryCategoryResultSourceID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntryCategoryResultDate` datetime NOT NULL,
  `Log_ResultEntryCategoryResultBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntryCategoryResultAfterJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntryCategoryResultUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_ResultEntryCategoryResultID`),
  KEY `Log_ResultEntryCategoryResultSo_ResultEntryID` (`Log_ResultEntryCategoryResultSo_ResultEntryID`),
  KEY `Log_ResultEntryCategoryResultSourceID` (`Log_ResultEntryCategoryResultSourceID`),
  KEY `Log_ResultEntryCategoryResultDate` (`Log_ResultEntryCategoryResultDate`),
  KEY `Log_ResultEntryCategoryResultUserID` (`Log_ResultEntryCategoryResultUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;


CREATE TABLE `log_resultentry_fisik_summary` (
  `Log_ResultEntryFisikSummaryID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_ResultEntryFisikSummaryT_OrderHeaderID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntryFisikSummarySourceID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntryFisikSummaryDate` datetime NOT NULL,
  `Log_ResultEntryFisikSummaryBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntryFisikSummaryAfterJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntryFisikSummaryUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_ResultEntryFisikSummaryID`),
  KEY `Log_ResultEntryFisikSummaryT_OrderHeaderID` (`Log_ResultEntryFisikSummaryT_OrderHeaderID`),
  KEY `Log_ResultEntryFisikSummarySourceID` (`Log_ResultEntryFisikSummarySourceID`),
  KEY `Log_ResultEntryFisikSummaryDate` (`Log_ResultEntryFisikSummaryDate`),
  KEY `Log_ResultEntryFisikSummaryUserID` (`Log_ResultEntryFisikSummaryUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `log_resultentry_fisik_umum` (
  `Log_ResultEntryFisikUmumID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_ResultEntryFisikUmumT_OrderHeaderID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntryFisikUmumSourceID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntryFisikUmumDate` datetime NOT NULL,
  `Log_ResultEntryFisikUmumBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntryFisikUmumAfterJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntryFisikUmumUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_ResultEntryFisikUmumID`),
  KEY `Log_ResultEntryFisikUmumT_OrderHeaderID` (`Log_ResultEntryFisikUmumT_OrderHeaderID`),
  KEY `Log_ResultEntryFisikUmumSourceID` (`Log_ResultEntryFisikUmumSourceID`),
  KEY `Log_ResultEntryFisikUmumDate` (`Log_ResultEntryFisikUmumDate`),
  KEY `Log_ResultEntryFisikUmumUserID` (`Log_ResultEntryFisikUmumUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `log_resultentry_fisik_umum_additional` (
  `Log_ResultEntryFisikUmumAdditionalID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_ResultEntryFisikUmumAdditionalT_OrderHeaderID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntryFisikUmumAdditionalSourceID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntryFisikUmumAdditionalDate` datetime NOT NULL,
  `Log_ResultEntryFisikUmumAdditionalBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntryFisikUmumAdditionalAfterJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntryFisikUmumAdditionalUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_ResultEntryFisikUmumAdditionalID`),
  KEY `Log_ResultEntryFisikUmumAdditionalT_OrderHeaderID` (`Log_ResultEntryFisikUmumAdditionalT_OrderHeaderID`),
  KEY `Log_ResultEntryFisikUmumAdditionalSourceID` (`Log_ResultEntryFisikUmumAdditionalSourceID`),
  KEY `Log_ResultEntryFisikUmumAdditionalDate` (`Log_ResultEntryFisikUmumAdditionalDate`),
  KEY `Log_ResultEntryFisikUmumAdditionalUserID` (`Log_ResultEntryFisikUmumAdditionalUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `log_resultentry_fisik_umum_additional_eng` (
  `Log_ResultEntryFisikUmumAdditionalEngID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_ResultEntryFisikUmumAdditionalEngSo_ResultEntryID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntryFisikUmumAdditionalEngSourceID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntryFisikUmumAdditionalEngDate` datetime NOT NULL,
  `Log_ResultEntryFisikUmumAdditionalEngBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntryFisikUmumAdditionalEngAfterJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntryFisikUmumAdditionalEngUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_ResultEntryFisikUmumAdditionalEngID`),
  KEY `Log_ResultEntryFisikUmumAdditionalEngSo_ResultEntryID` (`Log_ResultEntryFisikUmumAdditionalEngSo_ResultEntryID`),
  KEY `Log_ResultEntryFisikUmumAdditionalEngSourceID` (`Log_ResultEntryFisikUmumAdditionalEngSourceID`),
  KEY `Log_ResultEntryFisikUmumAdditionalEngDate` (`Log_ResultEntryFisikUmumAdditionalEngDate`),
  KEY `Log_ResultEntryFisikUmumAdditionalEngUserID` (`Log_ResultEntryFisikUmumAdditionalEngUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `log_resultentry_fisioterapi` (
  `Log_ResultEntryFisioterapiID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_ResultEntryFisioterapiSo_ResultEntryID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntryFisioterapiSourceID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntryFisioterapiDate` datetime NOT NULL,
  `Log_ResultEntryFisioterapiBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntryFisioterapiAfterJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntryFisioterapiUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_ResultEntryFisioterapiID`),
  KEY `Log_ResultEntryFisioterapiSo_ResultEntryID` (`Log_ResultEntryFisioterapiSo_ResultEntryID`),
  KEY `Log_ResultEntryFisioterapiSourceID` (`Log_ResultEntryFisioterapiSourceID`),
  KEY `Log_ResultEntryFisioterapiDate` (`Log_ResultEntryFisioterapiDate`),
  KEY `Log_ResultEntryFisioterapiUserID` (`Log_ResultEntryFisioterapiUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `log_resultentry_smwt` (
  `Log_ResultEntrySmwtID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_ResultEntrySmwtSo_ResultentryID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySmwtSourceID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySmwtDate` datetime NOT NULL,
  `Log_ResultEntrySmwtBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySmwtAfterJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySmwtUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_ResultEntrySmwtID`),
  KEY `Log_ResultEntrySmwtSo_ResultentryID` (`Log_ResultEntrySmwtSo_ResultentryID`),
  KEY `Log_ResultEntrySmwtSourceID` (`Log_ResultEntrySmwtSourceID`),
  KEY `Log_ResultEntrySmwtDate` (`Log_ResultEntrySmwtDate`),
  KEY `Log_ResultEntrySmwtUserID` (`Log_ResultEntrySmwtUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `log_resultentry_smwt_details` (
  `Log_ResultEntrySmwtDetailsID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_ResultEntrySmwtDetailsSo_ResultentrySmwtID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySmwtDetailsSourceID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySmwtDetailsDate` datetime NOT NULL,
  `Log_ResultEntrySmwtDetailsBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySmwtDetailsAfterJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySmwtDetailsUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_ResultEntrySmwtDetailsID`),
  KEY `Log_ResultEntrySmwtDetailsSo_ResultentrySmwtID` (`Log_ResultEntrySmwtDetailsSo_ResultentrySmwtID`),
  KEY `Log_ResultEntrySmwtDetailsSourceID` (`Log_ResultEntrySmwtDetailsSourceID`),
  KEY `Log_ResultEntrySmwtDetailsDate` (`Log_ResultEntrySmwtDetailsDate`),
  KEY `Log_ResultEntrySmwtDetailsUserID` (`Log_ResultEntrySmwtDetailsUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `log_resultentry_so_detail` (
  `Log_ResultEntrySoID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_ResultEntrySoSo_ResultEntryID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySoSo_ResultEntryDetailID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySoDate` datetime NOT NULL,
  `Log_ResultEntrySoBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySoAfterSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySoUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_ResultEntrySoID`),
  KEY `Log_ResultEntrySoSo_ResultEntryID` (`Log_ResultEntrySoSo_ResultEntryID`),
  KEY `Log_ResultEntrySoSo_ResultEntryDetailID` (`Log_ResultEntrySoSo_ResultEntryDetailID`),
  KEY `Log_ResultEntrySoDate` (`Log_ResultEntrySoDate`),
  KEY `Log_ResultEntrySoUserID` (`Log_ResultEntrySoUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;


CREATE TABLE `log_resultentry_so_detail_other` (
  `Log_ResultEntrySoOtherID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_ResultEntrySoOtherSo_ResultEntryID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySoOtherSo_ResultEntryDetailOtherID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySoOtherDate` datetime NOT NULL,
  `Log_ResultEntrySoOtherBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySoOtherAfterSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySoOtherUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_ResultEntrySoOtherID`),
  KEY `Log_ResultEntrySoOtherSo_ResultEntryID` (`Log_ResultEntrySoOtherSo_ResultEntryID`),
  KEY `Log_ResultEntrySoOtherSo_ResultEntryDetailID` (`Log_ResultEntrySoOtherSo_ResultEntryDetailOtherID`),
  KEY `Log_ResultEntrySoOtherDate` (`Log_ResultEntrySoOtherDate`),
  KEY `Log_ResultEntrySoOtherUserID` (`Log_ResultEntrySoOtherUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `log_resultentry_srq29_conclusion` (
  `Log_ResultEntrySrq29ConclusionID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_ResultEntrySrq29ConclusionSo_ResultEntryID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySrq29ConclusionSourceID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySrq29ConclusionDate` datetime NOT NULL,
  `Log_ResultEntrySrq29ConclusionBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySrq29ConclusionAfterJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySrq29ConclusionUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_ResultEntrySrq29ConclusionID`),
  KEY `Log_ResultEntrySrq29ConclusionSo_ResultEntryID` (`Log_ResultEntrySrq29ConclusionSo_ResultEntryID`),
  KEY `Log_ResultEntrySrq29ConclusionSourceID` (`Log_ResultEntrySrq29ConclusionSourceID`),
  KEY `Log_ResultEntrySrq29ConclusionDate` (`Log_ResultEntrySrq29ConclusionDate`),
  KEY `Log_ResultEntrySrq29ConclusionUserID` (`Log_ResultEntrySrq29ConclusionUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `log_resultentry_srq29_question` (
  `Log_ResultEntrySrq29QuestionID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_ResultEntrySrq29QuestionSo_ResultEntryID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySrq29QuestionSourceID` int(11) NOT NULL DEFAULT 0,
  `Log_ResultEntrySrq29QuestionDate` datetime NOT NULL,
  `Log_ResultEntrySrq29QuestionBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySrq29QuestionAfterJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_ResultEntrySrq29QuestionUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_ResultEntrySrq29QuestionID`),
  KEY `Log_ResultEntrySrq29QuestionSo_ResultEntryID` (`Log_ResultEntrySrq29QuestionSo_ResultEntryID`),
  KEY `Log_ResultEntrySrq29QuestionSourceID` (`Log_ResultEntrySrq29QuestionSourceID`),
  KEY `Log_ResultEntrySrq29QuestionDate` (`Log_ResultEntrySrq29QuestionDate`),
  KEY `Log_ResultEntrySrq29QuestionUserID` (`Log_ResultEntrySrq29QuestionUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `log_signature` (
  `Log_SignatureID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_SignatureM_PatientID` int(11) NOT NULL DEFAULT 0,
  `Log_SignatureBeforeUrl` varchar(500) NOT NULL DEFAULT '',
  `Log_SignatureAfterUrl` varchar(500) NOT NULL DEFAULT '',
  `Log_SignatureCreated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `Log_SignatureUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_SignatureID`),
  KEY `Log_SignatureM_PatientID` (`Log_SignatureM_PatientID`),
  KEY `Log_SignatureUserID` (`Log_SignatureUserID`),
  KEY `Log_SignatureUrl` (`Log_SignatureAfterUrl`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;


CREATE TABLE `log_so_resultentry` (
  `Log_So_ResultEntryID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_So_ResultEntrySo_ResultEntryID` int(11) NOT NULL DEFAULT 0,
  `Log_So_ResultEntryT_OrderHeaderID` int(11) NOT NULL DEFAULT 0,
  `Log_So_ResultEntryT_OrderDetailID` int(11) NOT NULL DEFAULT 0,
  `Log_So_ResultEntryStatus` varchar(15) NOT NULL DEFAULT '',
  `Log_So_ResultEntryNonlab_TemplateID` int(11) NOT NULL DEFAULT 0,
  `Log_So_ResultEntryCreated` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
  `Log_So_ResultEntryCreatedUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_So_ResultEntryID`),
  KEY `Log_So_ResultEntrySo_ResultEntryID` (`Log_So_ResultEntrySo_ResultEntryID`),
  KEY `Log_So_ResultEntryT_OrderHeaderID` (`Log_So_ResultEntryT_OrderHeaderID`),
  KEY `Log_So_ResultEntryT_OrderDetailID` (`Log_So_ResultEntryT_OrderDetailID`),
  KEY `Log_So_ResultEntryNonlab_TemplateID` (`Log_So_ResultEntryNonlab_TemplateID`),
  KEY `Log_So_ResultEntryStatus` (`Log_So_ResultEntryStatus`),
  KEY `Log_So_ResultEntryCreated` (`Log_So_ResultEntryCreated`),
  KEY `Log_So_ResultEntryCreatedUserID` (`Log_So_ResultEntryCreatedUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;


CREATE TABLE `log_t_samplingso_additional_fisik_bbtb` (
  `Log_T_SamplingAdditionalFisikBBTBID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_T_SamplingAdditionalFisikBBTBT_OrderHeaderID` int(11) NOT NULL DEFAULT 0,
  `Log_T_SamplingAdditionalFisikBBTBSourceID` int(11) NOT NULL DEFAULT 0,
  `Log_T_SamplingAdditionalFisikBBTBDate` datetime NOT NULL,
  `Log_T_SamplingAdditionalFisikBBTBBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_T_SamplingAdditionalFisikBBTBAfterJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_T_SamplingAdditionalFisikBBTBUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_T_SamplingAdditionalFisikBBTBID`),
  KEY `Log_T_SamplingAdditionalFisikBBTBT_OrderHeaderID` (`Log_T_SamplingAdditionalFisikBBTBT_OrderHeaderID`),
  KEY `Log_T_SamplingAdditionalFisikBBTBSourceID` (`Log_T_SamplingAdditionalFisikBBTBSourceID`),
  KEY `Log_T_SamplingAdditionalFisikBBTBDate` (`Log_T_SamplingAdditionalFisikBBTBDate`),
  KEY `Log_T_SamplingAdditionalFisikBBTBUserID` (`Log_T_SamplingAdditionalFisikBBTBUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;


CREATE TABLE `log_t_samplingso_additional_fisik_bw` (
  `Log_T_SamplingAdditionalFisikBWID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_T_SamplingAdditionalFisikBWT_OrderHeaderID` int(11) NOT NULL DEFAULT 0,
  `Log_T_SamplingAdditionalFisikBWSourceID` int(11) NOT NULL DEFAULT 0,
  `Log_T_SamplingAdditionalFisikBWDate` datetime NOT NULL,
  `Log_T_SamplingAdditionalFisikBWBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_T_SamplingAdditionalFisikBWAfterJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_T_SamplingAdditionalFisikBWUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_T_SamplingAdditionalFisikBWID`),
  KEY `Log_T_SamplingAdditionalFisikBWT_OrderHeaderID` (`Log_T_SamplingAdditionalFisikBWT_OrderHeaderID`),
  KEY `Log_T_SamplingAdditionalFisikBWSourceID` (`Log_T_SamplingAdditionalFisikBWSourceID`),
  KEY `Log_T_SamplingAdditionalFisikBWDate` (`Log_T_SamplingAdditionalFisikBWDate`),
  KEY `Log_T_SamplingAdditionalFisikBWUserID` (`Log_T_SamplingAdditionalFisikBWUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `log_t_samplingso_additional_fisik_visus` (
  `Log_T_SamplingAdditionalFisikVisusID` int(11) NOT NULL AUTO_INCREMENT,
  `Log_T_SamplingAdditionalFisikVisusT_OrderHeaderID` int(11) NOT NULL DEFAULT 0,
  `Log_T_SamplingAdditionalFisikVisusSourceID` int(11) NOT NULL DEFAULT 0,
  `Log_T_SamplingAdditionalFisikVisusDate` datetime NOT NULL,
  `Log_T_SamplingAdditionalFisikVisusBeforeJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_T_SamplingAdditionalFisikVisusAfterJSON` text CHARACTER SET utf8mb4 NOT NULL,
  `Log_T_SamplingAdditionalFisikVisusUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Log_T_SamplingAdditionalFisikVisusID`),
  KEY `Log_T_SamplingAdditionalFisikVisusT_OrderHeaderID` (`Log_T_SamplingAdditionalFisikVisusT_OrderHeaderID`),
  KEY `Log_T_SamplingAdditionalFisikVisusSourceID` (`Log_T_SamplingAdditionalFisikVisusSourceID`),
  KEY `Log_T_SamplingAdditionalFisikVisusDate` (`Log_T_SamplingAdditionalFisikVisusDate`),
  KEY `Log_T_SamplingAdditionalFisikVisusUserID` (`Log_T_SamplingAdditionalFisikVisusUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

CREATE TABLE `order_mou_log` (
  `Order_MouLogID` int(11) NOT NULL AUTO_INCREMENT,
  `Order_MouLogT_OrderHeaderID` int(11) NOT NULL DEFAULT 0,
  `Order_MouLogFromMouID` int(11) NOT NULL DEFAULT 0,
  `Order_MouLogFromM_MouName` varchar(250) NOT NULL DEFAULT '',
  `Order_MouLogToMouID` int(11) NOT NULL DEFAULT 0,
  `Order_MouLogToMouName` varchar(250) NOT NULL DEFAULT '',
  `Order_MouLogPXBefore` mediumtext DEFAULT NULL,
  `Order_MouLogPXAfter` mediumtext DEFAULT NULL,
  `Order_MouLogCreated` datetime NOT NULL,
  `Order_MouLogCreatedUserID` int(11) NOT NULL DEFAULT 0,
  PRIMARY KEY (`Order_MouLogID`),
  KEY `Order_MouLogT_OrderHeaderID` (`Order_MouLogT_OrderHeaderID`),
  KEY `Order_MouLogFromMouID` (`Order_MouLogFromMouID`),
  KEY `Order_MouLogToMouID` (`Order_MouLogToMouID`),
  KEY `Order_MouLogCreated` (`Order_MouLogCreated`),
  KEY `Order_MouLogCreatedUserID` (`Order_MouLogCreatedUserID`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;


CREATE TABLE `t_send_email_log` (
  `T_SendEmailLogID` int(11) NOT NULL AUTO_INCREMENT,
  `T_SendEmailLogT_OrderHeaderID` int(11) DEFAULT NULL,
  `T_SendEmailLogRecepient` varchar(255) DEFAULT NULL,
  `T_SendEmailLogStatus` char(1) DEFAULT NULL COMMENT 'S=Sending, P=Process, R=Received, E=Error',
  `T_SendEmailLogResponse` text DEFAULT NULL,
  `T_SendEmailLogGroup_ResultName` varchar(255) DEFAULT NULL,
  `T_SendEmailLogJson` text DEFAULT NULL COMMENT 'Payload data yang dikirim',
  `T_SendEmailLogCreated` datetime DEFAULT NULL,
  `T_SendEmailLogCreatedUserID` int(11) DEFAULT NULL,
  PRIMARY KEY (`T_SendEmailLogID`),
  KEY `idx_T_SendEmailLogT_OrderHeaderID` (`T_SendEmailLogT_OrderHeaderID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

