-- liquibase formatted sql
-- changeset cyril:create mail template

CREATE TABLE `mail_template`
(
    `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',
    `to`          VARCHAR(255) NULL,
    `cc`          VARCHAR(255) NULL,
    `code`        VARCHAR(255) NOT NULL,
    `description` VARCHAR(255) NOT NULL,
    `type`        VARCHAR(30)  NULL,
    `params`      VARCHAR(255) NULL,
    `subjectCht`  VARCHAR(255) NULL,
    `subjectEng`  VARCHAR(255) NULL,
    `contentCht`  TEXT         NULL,
    `contentEng`  TEXT         NULL,
    CONSTRAINT pk_mail_template PRIMARY KEY (id)
);