-- ----------------------------
-- Table structure for DEPT - 部门
-- Target   : SQLite
-- Author   : wangbing
-- Date:    : 2020-03-09
-- ----------------------------
CREATE TABLE IF NOT EXISTS SYS_DEPT (
    "ID" BIGINT PRIMARY KEY NOT NULL,
    "DEPT_CODE" VARCHAR(50) NOT NULL,
    "DEPT_NAME" VARCHAR(100) NOT NULL,
    "DEPT_ALIAS" VARCHAR(50),
    "SUP_CODE" VARCHAR(50),
    "SUP_NAME" VARCHAR(100),
    "VALID" BOOLEAN 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
);
