--liquibase formatted sql

--changeset cyril:m18 data log
CREATE TABLE `m18_data_log`
(
    `id`                INT           NOT NULL AUTO_INCREMENT,
    `created`           DATETIME      NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `createdBy`         VARCHAR(30) NULL DEFAULT NULL,
    `version`           INT           NOT NULL DEFAULT '0',
    `modified`          DATETIME      NOT NULL DEFAULT CURRENT_TIMESTAMP,
    `modifiedBy`        VARCHAR(30) NULL DEFAULT NULL,
    `deleted`           TINYINT(1) NOT NULL DEFAULT '0',
    `refType`           VARCHAR(1000) NOT NULL,
    `m18Id`             INT           NOT NULL,
    `m18LastModifyDate` datetime      NOT NULL,
    `dataLog`           JSON          NOT NULL,
    `status`            TINYINT(1) NOT NULL,
    CONSTRAINT pk_m18_data_log PRIMARY KEY (id)
);