use notify;
/*drop table  if exists JOB_STATUS_TRACE_LOG;

CREATE TABLE `JOB_STATUS_TRACE_LOG` (
  `id` varchar(40) NOT NULL,
  `job_name` varchar(100) NOT NULL,
  `original_task_id` varchar(255) NOT NULL,
  `task_id` varchar(255) NOT NULL,
  `slave_id` varchar(50) NOT NULL,
  `source` varchar(50) NOT NULL,
  `execution_type` varchar(20) NOT NULL,
  `sharding_item` varchar(100) NOT NULL,
  `state` varchar(20) NOT NULL,
  `message` varchar(4000) DEFAULT NULL,
  `creation_time` timestamp NULL DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `TASK_ID_STATE_INDEX` (`task_id`,`state`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT;
*/
drop table if exists notify_msg_log;

CREATE TABLE IF NOT EXISTS `notify_msg_log` (
  `id` bigint(20) NOT NULL AUTO_INCREMENT,
  `notify_msg_id` bigint(20) NOT NULL,
  `merchant_id` varchar(20) NOT NULL,
  `notify_order_no` varchar(256) NOT NULL,
  `response` text,
  `http_status` int(10) DEFAULT '0',
  `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`),
  KEY `idx_notify_order_no` (`notify_order_no`),
  KEY `idx_notify_msg_id` (`notify_msg_id`),
  KEY `idx_created_at` (`created_at`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4605455 DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC;
