-- ----------------------------
-- Table structure for SEQUENCE - 序列
-- Target   : SQLite
-- Author   : wangbing
-- Date:    : 2020-07-08
-- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_SEQUENCE (
    "ID" BIGINT PRIMARY KEY NOT NULL,
    "SEQ_NAME" VARCHAR(50) NOT NULL,
    "SEQ_NOTE" VARCHAR(50),
    "YEAR" VARCHAR(4),
    "MONTH" VARCHAR(2),
    "DATE" VARCHAR(2),
    "NEXT_VALUE" MEDIUMINT NOT NULL,
    "ROW_VERSION" BIGINT NOT NULL,
    "IS_DELETED" BOOLEAN NOT NULL,
    "CREATE_BY" BIGINT NOT NULL,
    "CREATE_TIME" DATETIME NOT NULL,
    "LAST_UPDATE_BY" BIGINT,
    "LAST_UPDATE_TIME" DATETIME
);

-- ----------------------------
-- Table structure for LOGERR - 错误日志
-- Target   : SQLite
-- Author   : wangbing
-- Date:    : 2020-07-08
-- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_LOGERR (
    "ID" BIGINT PRIMARY KEY NOT NULL,
    "LOG_TYPE" VARCHAR(20) NOT NULL,
    "LOG_TITLE" VARCHAR(50) NOT NULL,
    "LOG_NOTE" VARCHAR(500),
    "LOG_STATE" VARCHAR(20) NOT NULL,
    "ROW_VERSION" BIGINT NOT NULL,
    "IS_DELETED" BOOLEAN NOT NULL,
    "CREATE_BY" BIGINT NOT NULL,
    "CREATE_TIME" DATETIME NOT NULL,
    "LAST_UPDATE_BY" BIGINT,
    "LAST_UPDATE_TIME" DATETIME
);

-- ----------------------------
-- Table structure for PROFILES - 系统配置
-- Target   : SQLite
-- Author   : wangbing
-- Date:    : 2020-07-08
-- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_PROFILES (
    "ID" BIGINT PRIMARY KEY NOT NULL,
    "ACTIVE" VARCHAR(20) NOT NULL,
    "KEY" VARCHAR(50) NOT NULL,
    "VALUE" VARCHAR(50) NOT NULL,
    "ROW_VERSION" BIGINT NOT NULL,
    "IS_DELETED" BOOLEAN NOT NULL,
    "CREATE_BY" BIGINT NOT NULL,
    "CREATE_TIME" DATETIME NOT NULL,
    "LAST_UPDATE_BY" BIGINT,
    "LAST_UPDATE_TIME" DATETIME
);

