-- ----------------------------
-- Table structure for USER_ROLE - 用户角色授权
-- Target   : Oracle
-- Author   : wangbing
-- Date:    : 2020-07-11
-- ----------------------------
CREATE TABLE "SYS_USER_ROLE" (
    "ID" NUMBER(19) NOT NULL,
    "USER_ID" NUMBER(19) NULL,
    "USER_CODE" VARCHAR2(50) NULL,
    "ROLE_ID" NUMBER(19) NULL,
    "ROLE_CODE" VARCHAR2(50) 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_USER_ROLE" is '用户角色授权';
COMMENT ON COLUMN "SYS_USER_ROLE"."ID" is '主键';
COMMENT ON COLUMN "SYS_USER_ROLE"."USER_ID" is '用户主键';
COMMENT ON COLUMN "SYS_USER_ROLE"."USER_CODE" is '用户代码';
COMMENT ON COLUMN "SYS_USER_ROLE"."ROLE_ID" is '角色主键';
COMMENT ON COLUMN "SYS_USER_ROLE"."ROLE_CODE" is '角色代码';
COMMENT ON COLUMN "SYS_USER_ROLE"."ROW_VERSION" is '行版本';
COMMENT ON COLUMN "SYS_USER_ROLE"."IS_DELETED" is '是否已删除';
COMMENT ON COLUMN "SYS_USER_ROLE"."CREATE_BY" is '创建用户';
COMMENT ON COLUMN "SYS_USER_ROLE"."CREATE_TIME" is '创建时间';
COMMENT ON COLUMN "SYS_USER_ROLE"."LAST_UPDATE_BY" is '最后更新用户';
COMMENT ON COLUMN "SYS_USER_ROLE"."LAST_UPDATE_TIME" is '最后更新时间';
