-- ----------------------------
-- Table structure for DEPT - 部门
-- Target   : Oracle
-- Author   : wangbing
-- Date:    : 2020-07-11
-- ----------------------------
CREATE TABLE "SYS_DEPT" (
    "ID" NUMBER(19) NOT NULL,
    "DEPT_CODE" VARCHAR2(50) NULL,
    "DEPT_NAME" VARCHAR2(100) NULL,
    "DEPT_ALIAS" VARCHAR2(50) NULL,
    "SUP_CODE" VARCHAR2(50) NULL,
    "SUP_NAME" VARCHAR2(100) NULL,
    "VALID" CHAR(1) NULL,
    "ROW_VERSION" NUMBER(19) NOT NULL,
    "IS_DELETED" CHAR(1) NOT NULL,
    "CREATE_BY" NUMBER(19) NOT NULL,
    "CREATE_TIME" DATE NOT NULL,
    "LAST_UPDATE_BY" NUMBER(19) NULL,
    "LAST_UPDATE_TIME" DATE NULL
);

COMMENT ON TABLE "SYS_DEPT" is '部门';
COMMENT ON COLUMN "SYS_DEPT"."ID" is '主键';
COMMENT ON COLUMN "SYS_DEPT"."DEPT_CODE" is '部门代码';
COMMENT ON COLUMN "SYS_DEPT"."DEPT_NAME" is '部门名称';
COMMENT ON COLUMN "SYS_DEPT"."DEPT_ALIAS" is '部门别名';
COMMENT ON COLUMN "SYS_DEPT"."SUP_CODE" is '上级代码';
COMMENT ON COLUMN "SYS_DEPT"."SUP_NAME" is '上级名称';
COMMENT ON COLUMN "SYS_DEPT"."VALID" is '是否有效';
COMMENT ON COLUMN "SYS_DEPT"."ROW_VERSION" is '行版本';
COMMENT ON COLUMN "SYS_DEPT"."IS_DELETED" is '是否已删除';
COMMENT ON COLUMN "SYS_DEPT"."CREATE_BY" is '创建用户';
COMMENT ON COLUMN "SYS_DEPT"."CREATE_TIME" is '创建时间';
COMMENT ON COLUMN "SYS_DEPT"."LAST_UPDATE_BY" is '最后更新用户';
COMMENT ON COLUMN "SYS_DEPT"."LAST_UPDATE_TIME" is '最后更新时间';
