CREATE INDEX `idx_CompanyID` ON `machine` (`CompanyID`);

CREATE INDEX `idx_companyid` ON `order` (`CompanyID`);

CREATE INDEX `idx_CompanyID` ON `order_block_plan` (`CompanyID`);

CREATE INDEX `idx_PlanID` ON `order_block_plan_item` (`PlanID`);

CREATE INDEX `idx_orderno` ON `order_box_block` (`OrderNo`);

CREATE INDEX `index_OrderNo` ON `order_data_block` (`OrderNo`);

CREATE INDEX `index_OrderNo` ON `order_data_goods` (`OrderNo`);

CREATE INDEX `index_OrderNo` ON `order_data_parts` (`OrderNo`);

CREATE INDEX `index_ItemNo` ON `order_item` (`ItemNo`);

CREATE INDEX `index_OrderNo` ON `order_item` (`OrderNo`);

CREATE INDEX `index_PackageID` ON `order_item` (`PackageID`);

CREATE INDEX `index_PlanID` ON `order_item` (`PlanID`);

CREATE INDEX `idx_OrderNo` ON `order_module` (`OrderNo`);

CREATE INDEX `index_OrderNo` ON `order_module_extra` (`OrderNo`);

CREATE INDEX `index_OrderNo` ON `order_module_item` (`OrderNo`);

CREATE INDEX `idx_OrderNo` ON `order_package` (`OrderNo`);

CREATE INDEX `idx_PakageNo` ON `order_package` (`PakageNo`);

CREATE INDEX `idx_PackageID` ON `order_package_item` (`PackageID`);

CREATE INDEX `idx_companyid` ON `order_patch_detail` (`CompanyID`);

CREATE INDEX `idx_OrderNo` ON `order_process` (`OrderNo`);

CREATE INDEX `index_CompanyID` ON `order_process_schdule` (`CompanyID`);

CREATE INDEX `IX_order_process_step_OrderProcessID` ON `order_process_step` (`OrderProcessID`);

CREATE INDEX `idx_OrderProcessID` ON `order_process_step_item` (`OrderProcessID`);

CREATE INDEX `idx_OrderProcessStepID` ON `order_process_step_item` (`OrderProcessStepID`);

CREATE INDEX `idx_CompanyID` ON `order_scrap_board` (`CompanyID`);

CREATE INDEX `idx_CompanyID` ON `process_group` (`CompanyID`);

CREATE INDEX `idx_CompanyID` ON `process_info` (`CompanyID`);

CREATE INDEX `index_CompanyID` ON `process_item_exp` (`CompanyID`);

CREATE INDEX `idx_CompanyID` ON `process_schdule_capacity` (`CompanyID`);

CREATE INDEX `idx_CompanyID` ON `process_step_efficiency` (`CompanyID`);

CREATE INDEX `idx_CompanyID` ON `report_template` (`CompanyID`);

CREATE INDEX `indx_OrderNo` ON `simple_package` (`OrderNo`);

CREATE INDEX `idx_CompanyID` ON `simple_plan_order` (`CompanyID`);

CREATE INDEX `idx_CompanyID` ON `sys_config` (`CompanyID`);

CREATE INDEX `idx` ON `work_calendar` (`CompanyID`);

CREATE INDEX `idx_CompanyID` ON `work_shift` (`CompanyID`);

CREATE INDEX `IX_work_time_ShiftID` ON `work_time` (`ShiftID`);