Skip to content

Commit

Permalink
nop_auth_ext_login表增加字段
Browse files Browse the repository at this point in the history
  • Loading branch information
entropy-cloud committed Nov 4, 2023
1 parent 3475462 commit 55ce814
Show file tree
Hide file tree
Showing 11 changed files with 417 additions and 78 deletions.
9 changes: 7 additions & 2 deletions nop-auth/deploy/sql/mysql/_create_nop-auth.sql
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@

CREATE TABLE nop_auth_ext_login(
SID VARCHAR(32) NOT NULL COMMENT 'ID',
USER_ID VARCHAR(50) NOT NULL COMMENT '用户ID',
LOGIN_TYPE INTEGER NOT NULL COMMENT '登录类型',
LOGIN_VALUE VARCHAR(50) NOT NULL COMMENT '登录标识',
EXT_ID VARCHAR(50) NOT NULL COMMENT '登录标识',
CREDENTIAL VARCHAR(50) NULL COMMENT '登录密码',
VERIFIED BOOLEAN NOT NULL COMMENT '是否已验证',
LAST_LOGIN_TIME TIMESTAMP NULL COMMENT '上次登录时间',
LAST_LOGIN_IP VARCHAR(20) NULL COMMENT '上次登录IP',
DEL_FLAG TINYINT NOT NULL COMMENT '删除标识',
VERSION INTEGER NOT NULL COMMENT '数据版本',
CREATED_BY VARCHAR(50) NOT NULL COMMENT '创建人',
CREATE_TIME TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
UPDATED_BY VARCHAR(50) NOT NULL COMMENT '修改人',
UPDATE_TIME TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '修改时间',
REMARK VARCHAR(200) NULL COMMENT '备注',
constraint PK_nop_auth_ext_login primary key (USER_ID,LOGIN_TYPE)
constraint PK_nop_auth_ext_login primary key (SID)
);

CREATE TABLE nop_auth_user_role(
Expand Down
21 changes: 18 additions & 3 deletions nop-auth/deploy/sql/oracle/_create_nop-auth.sql
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@

CREATE TABLE nop_auth_ext_login(
SID VARCHAR2(32) NOT NULL ,
USER_ID VARCHAR2(50) NOT NULL ,
LOGIN_TYPE INTEGER NOT NULL ,
LOGIN_VALUE VARCHAR2(50) NOT NULL ,
EXT_ID VARCHAR2(50) NOT NULL ,
CREDENTIAL VARCHAR2(50) ,
VERIFIED CHAR(1) NOT NULL ,
LAST_LOGIN_TIME TIMESTAMP ,
LAST_LOGIN_IP VARCHAR2(20) ,
DEL_FLAG SMALLINT NOT NULL ,
VERSION INTEGER NOT NULL ,
CREATED_BY VARCHAR2(50) NOT NULL ,
CREATE_TIME TIMESTAMP NOT NULL ,
UPDATED_BY VARCHAR2(50) NOT NULL ,
UPDATE_TIME TIMESTAMP NOT NULL ,
REMARK VARCHAR2(200) ,
constraint PK_nop_auth_ext_login primary key (USER_ID,LOGIN_TYPE)
constraint PK_nop_auth_ext_login primary key (SID)
);

CREATE TABLE nop_auth_user_role(
Expand Down Expand Up @@ -288,11 +293,21 @@ CREATE TABLE nop_auth_position(

COMMENT ON TABLE nop_auth_ext_login IS '扩展登录方式';

COMMENT ON COLUMN nop_auth_ext_login.SID IS 'ID';

COMMENT ON COLUMN nop_auth_ext_login.USER_ID IS '用户ID';

COMMENT ON COLUMN nop_auth_ext_login.LOGIN_TYPE IS '登录类型';

COMMENT ON COLUMN nop_auth_ext_login.LOGIN_VALUE IS '登录标识';
COMMENT ON COLUMN nop_auth_ext_login.EXT_ID IS '登录标识';

COMMENT ON COLUMN nop_auth_ext_login.CREDENTIAL IS '登录密码';

COMMENT ON COLUMN nop_auth_ext_login.VERIFIED IS '是否已验证';

COMMENT ON COLUMN nop_auth_ext_login.LAST_LOGIN_TIME IS '上次登录时间';

COMMENT ON COLUMN nop_auth_ext_login.LAST_LOGIN_IP IS '上次登录IP';

COMMENT ON COLUMN nop_auth_ext_login.DEL_FLAG IS '删除标识';

Expand Down
21 changes: 18 additions & 3 deletions nop-auth/deploy/sql/postgresql/_create_nop-auth.sql
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@

CREATE TABLE nop_auth_ext_login(
SID VARCHAR(32) NOT NULL ,
USER_ID VARCHAR(50) NOT NULL ,
LOGIN_TYPE INT4 NOT NULL ,
LOGIN_VALUE VARCHAR(50) NOT NULL ,
EXT_ID VARCHAR(50) NOT NULL ,
CREDENTIAL VARCHAR(50) ,
VERIFIED BOOLEAN NOT NULL ,
LAST_LOGIN_TIME TIMESTAMP ,
LAST_LOGIN_IP VARCHAR(20) ,
DEL_FLAG INT4 NOT NULL ,
VERSION INT4 NOT NULL ,
CREATED_BY VARCHAR(50) NOT NULL ,
CREATE_TIME TIMESTAMP NOT NULL ,
UPDATED_BY VARCHAR(50) NOT NULL ,
UPDATE_TIME TIMESTAMP NOT NULL ,
REMARK VARCHAR(200) ,
constraint PK_nop_auth_ext_login primary key (USER_ID,LOGIN_TYPE)
constraint PK_nop_auth_ext_login primary key (SID)
);

CREATE TABLE nop_auth_user_role(
Expand Down Expand Up @@ -288,11 +293,21 @@ CREATE TABLE nop_auth_position(

COMMENT ON TABLE nop_auth_ext_login IS '扩展登录方式';

COMMENT ON COLUMN nop_auth_ext_login.SID IS 'ID';

COMMENT ON COLUMN nop_auth_ext_login.USER_ID IS '用户ID';

COMMENT ON COLUMN nop_auth_ext_login.LOGIN_TYPE IS '登录类型';

COMMENT ON COLUMN nop_auth_ext_login.LOGIN_VALUE IS '登录标识';
COMMENT ON COLUMN nop_auth_ext_login.EXT_ID IS '登录标识';

COMMENT ON COLUMN nop_auth_ext_login.CREDENTIAL IS '登录密码';

COMMENT ON COLUMN nop_auth_ext_login.VERIFIED IS '是否已验证';

COMMENT ON COLUMN nop_auth_ext_login.LAST_LOGIN_TIME IS '上次登录时间';

COMMENT ON COLUMN nop_auth_ext_login.LAST_LOGIN_IP IS '上次登录IP';

COMMENT ON COLUMN nop_auth_ext_login.DEL_FLAG IS '删除标识';

Expand Down
Binary file modified nop-auth/model/nop-auth.orm.xlsx
Binary file not shown.
Loading

0 comments on commit 55ce814

Please sign in to comment.