--liquibase formatted sql

--changeset alex:audit_log
--comment: audit log
CREATE TABLE `audit_log` (
  `tableName` varchar(30) NOT NULL,
  `recordId` int(11) NOT NULL,
  `modifiedBy` int(11) DEFAULT NULL,
  `modified` datetime DEFAULT NULL,
  `oldData` json DEFAULT NULL,
  `newData` json DEFAULT NULL,
  KEY `idx_tableName_recordId` (`tableName`,`recordId`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;