--liquibase formatted sql
--changeset author:create_scheduler_log

CREATE TABLE IF NOT EXISTS `scheduler_sync_log` (
  `id` INT NOT NULL AUTO_INCREMENT,
  `created` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `createdBy` VARCHAR(30) DEFAULT NULL,
  `version` INT NOT NULL DEFAULT '0',
  `modified` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `modifiedBy` VARCHAR(30) DEFAULT NULL,
  `deleted` TINYINT(1) NOT NULL DEFAULT '0',

  `syncType` VARCHAR(50),
  `status` VARCHAR(20),
  `recordsProcessed` INT,
  `recordsSaved` INT,
  `recordsFailed` INT,
  `errorMessage` VARCHAR(1024),

  `startTime` DATETIME,
  `endTime` DATETIME,

  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;