feat:
1. prod
This commit is contained in:
@@ -83,11 +83,11 @@ create table user_market_info
|
||||
(
|
||||
id int8 not null primary key, --user_id
|
||||
pid int8,
|
||||
p_vip int4 default 1,
|
||||
is_sync_genealogy int4 default 0,
|
||||
is_vendor int4 default 0, -- 是否成为服务商 0-否 1-是
|
||||
is_fadada_signed int4 default 0, -- 是否签署法大大协议 0-否 1-是
|
||||
is_verified int4 default 0, -- 是否实名用户 0-否 1-是
|
||||
synchronized int4 default 0, --是否同步
|
||||
vendor int4 default 0, -- 是否成为服务商 0-否 1-是
|
||||
e_signed int4 default 0, -- 是否已经签署电子合同 0-否 1-是
|
||||
e_signed_url text, -- 电子合同地址
|
||||
verified int4 default 0, -- 是否实名用户 0-否 1-是
|
||||
verified_date timestamp(6), -- 实名时间
|
||||
real_name varchar(128), -- 实名姓名
|
||||
id_card varchar(128), -- 实名身份证
|
||||
@@ -101,15 +101,17 @@ create table user_market_info
|
||||
);
|
||||
|
||||
CREATE INDEX idx_user_market_pid ON user_market_info (pid) WHERE status = 1;
|
||||
create index idx_user_market_sync_genealogy on user_market_tree (is_deleted, is_sync_genealogy) WHERE status = 1;
|
||||
|
||||
|
||||
comment on table user_market_info is '用户拓展信息表';
|
||||
|
||||
comment on column user_market_info.id is '主键';
|
||||
comment on column user_market_info.is_sync_genealogy is '是否同步族谱 0-否 1-是';
|
||||
comment on column user_market_info.is_vendor is '是否成为服务商 0-否 1-是';
|
||||
comment on column user_market_info.is_fadada_signed is '是否签署法大大协议 0-否 1-是';
|
||||
comment on column user_market_info.is_verified is '是否实名用户 0-否 1-是';
|
||||
comment on column user_market_info.pid is '邀请人';
|
||||
comment on column user_market_info.synchronized is '是否同步族谱 0-否 1-是';
|
||||
comment on column user_market_info.vendor is '是否成为服务商 0-否 1-是';
|
||||
comment on column user_market_info.e_signed is '是否签署法大大协议 0-否 1-是';
|
||||
comment on column user_market_info.e_signed_url is '电子合同地址';
|
||||
comment on column user_market_info.verified is '是否实名用户 0-否 1-是';
|
||||
comment on column user_market_info.verified_date is '实名时间';
|
||||
comment on column user_market_info.real_name is '实名姓名';
|
||||
comment on column user_market_info.id_card is '实名身份证';
|
||||
@@ -120,8 +122,7 @@ comment on column user_market_info.update_user is '修改人';
|
||||
comment on column user_market_info.update_time is '修改时间';
|
||||
comment on column user_market_info.status is '状态';
|
||||
comment on column user_market_info.is_deleted is '是否已删除';
|
||||
alter table user_market_info
|
||||
owner to yicha1lu;
|
||||
alter table user_market_info owner to yicha1lu;
|
||||
|
||||
|
||||
|
||||
|
||||
42
doc/sql/update/20260205_increase.sql
Normal file
42
doc/sql/update/20260205_increase.sql
Normal file
@@ -0,0 +1,42 @@
|
||||
create table user_market_info
|
||||
(
|
||||
id int8 not null primary key, --user_id
|
||||
pid int8,
|
||||
synchronized int4 default 0, --是否同步
|
||||
vendor int4 default 0, -- 是否成为服务商 0-否 1-是
|
||||
e_signed int4 default 0, -- 是否已经签署电子合同 0-否 1-是
|
||||
e_signed_url text, -- 电子合同地址
|
||||
verified int4 default 0, -- 是否实名用户 0-否 1-是
|
||||
verified_date timestamp(6), -- 实名时间
|
||||
real_name varchar(128), -- 实名姓名
|
||||
id_card varchar(128), -- 实名身份证
|
||||
create_user int8,
|
||||
create_dept int8,
|
||||
create_time timestamp(6),
|
||||
update_user int8,
|
||||
update_time timestamp(6),
|
||||
status int4 default 1, -- 1: active -- 2: revoked (注销) -- 3: frozen (冻结)
|
||||
is_deleted int4 default 0
|
||||
);
|
||||
|
||||
CREATE INDEX idx_user_market_pid ON user_market_info (pid) WHERE status = 1;
|
||||
|
||||
|
||||
comment on table user_market_info is '用户拓展信息表';
|
||||
comment on column user_market_info.id is '主键';
|
||||
comment on column user_market_info.pid is '邀请人';
|
||||
comment on column user_market_info.synchronized is '是否同步族谱 0-否 1-是';
|
||||
comment on column user_market_info.vendor is '是否成为服务商 0-否 1-是';
|
||||
comment on column user_market_info.e_signed is '是否签署法大大协议 0-否 1-是';
|
||||
comment on column user_market_info.e_signed_url is '电子合同地址';
|
||||
comment on column user_market_info.verified is '是否实名用户 0-否 1-是';
|
||||
comment on column user_market_info.verified_date is '实名时间';
|
||||
comment on column user_market_info.real_name is '实名姓名';
|
||||
comment on column user_market_info.id_card is '实名身份证';
|
||||
comment on column user_market_info.create_user is '创建人';
|
||||
comment on column user_market_info.create_dept is '创建部门';
|
||||
comment on column user_market_info.create_time is '创建时间';
|
||||
comment on column user_market_info.update_user is '修改人';
|
||||
comment on column user_market_info.update_time is '修改时间';
|
||||
comment on column user_market_info.status is '状态';
|
||||
comment on column user_market_info.is_deleted is '是否已删除';
|
||||
Reference in New Issue
Block a user