-- ----------------------------
-- Table structure for TOKENS - 通行证
-- Target   : Oracle
-- Author   : wangbing
-- Date:    : 2020-07-11
-- ----------------------------
CREATE TABLE "SYS_TOKENS" (
    "ID" NUMBER(19) NOT NULL,
    "TOKEN" VARCHAR2(50) NULL,
    "USER_ID" NUMBER(19) NULL,
    "USER_NAME" VARCHAR2(50) NULL,
    "LOGIN_TIME" DATE NULL,
    "VALID_TIME" DATE NULL,
    "VALID" CHAR(1) NULL,
    "DEPT_ID" NUMBER(19) NULL,
    "DEPT_CODE" VARCHAR2(50) NULL,
    "DEPT_NAME" VARCHAR2(100) NULL,
    "TERMINAL" VARCHAR(20) NULL,
    "TERMINAL_IP" VARCHAR2(50) NULL,
    "TERMINAL_INFO" VARCHAR2(500) 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_TOKENS" is '通行证';
COMMENT ON COLUMN "SYS_TOKENS"."ID" is '主键';
COMMENT ON COLUMN "SYS_TOKENS"."TOKEN" is '登录令牌';
COMMENT ON COLUMN "SYS_TOKENS"."USER_ID" is '用户主键';
COMMENT ON COLUMN "SYS_TOKENS"."USER_NAME" is '用户名称';
COMMENT ON COLUMN "SYS_TOKENS"."LOGIN_TIME" is '登录时间';
COMMENT ON COLUMN "SYS_TOKENS"."VALID_TIME" is '有效时间';
COMMENT ON COLUMN "SYS_TOKENS"."VALID" is '是否有效';
COMMENT ON COLUMN "SYS_TOKENS"."DEPT_ID" is '部门主键';
COMMENT ON COLUMN "SYS_TOKENS"."DEPT_CODE" is '部门代码';
COMMENT ON COLUMN "SYS_TOKENS"."DEPT_NAME" is '部门名称';
COMMENT ON COLUMN "SYS_TOKENS"."TERMINAL" is '终端类型';
COMMENT ON COLUMN "SYS_TOKENS"."TERMINAL_IP" is '终端地址';
COMMENT ON COLUMN "SYS_TOKENS"."TERMINAL_INFO" is '终端信息';
COMMENT ON COLUMN "SYS_TOKENS"."ROW_VERSION" is '行版本';
COMMENT ON COLUMN "SYS_TOKENS"."IS_DELETED" is '是否已删除';
COMMENT ON COLUMN "SYS_TOKENS"."CREATE_BY" is '创建用户';
COMMENT ON COLUMN "SYS_TOKENS"."CREATE_TIME" is '创建时间';
COMMENT ON COLUMN "SYS_TOKENS"."LAST_UPDATE_BY" is '最后更新用户';
COMMENT ON COLUMN "SYS_TOKENS"."LAST_UPDATE_TIME" is '最后更新时间';
