This commit is contained in:
2026-02-05 15:13:22 +08:00
parent 071390df34
commit 704e8d38a4

View File

@@ -51,7 +51,6 @@ create table user_market_tree
id int8 not null primary key, --user_id id int8 not null primary key, --user_id
level int4 default 1, level int4 default 1,
pid int8, pid int8,
is_sync_genealogy int4 default 0, --是否同步族谱 0-否 1-是
create_user int8, create_user int8,
create_dept int8, create_dept int8,
create_time timestamp(6), create_time timestamp(6),
@@ -68,7 +67,7 @@ comment on table user_market_tree is '用户树结构表';
comment on column user_market_tree.id is '主键'; comment on column user_market_tree.id is '主键';
comment on column user_market_tree.pid is '上级id'; comment on column user_market_tree.pid is '上级id';
comment on column user_market_tree.level is '层级'; comment on column user_market_tree.level is '层级';
comment on column user_market_tree.is_sync_genealogy is '是否同步族谱 0-否 1-是';
comment on column user_market_tree.create_user is '创建人'; comment on column user_market_tree.create_user is '创建人';
comment on column user_market_tree.create_dept is '创建部门'; comment on column user_market_tree.create_dept is '创建部门';
comment on column user_market_tree.create_time is '创建时间'; comment on column user_market_tree.create_time is '创建时间';
@@ -88,6 +87,7 @@ create table user_market_info
current_vip_name varchar(12), --用户当前等级 current_vip_name varchar(12), --用户当前等级
pid int8, pid int8,
p_vip int4 default 1, p_vip int4 default 1,
is_sync_genealogy int4 default 0,
is_vendor int4 default 0, -- 是否成为服务商 0-否 1-是 is_vendor int4 default 0, -- 是否成为服务商 0-否 1-是
is_fadada_signed int4 default 0, -- 是否签署法大大协议 0-否 1-是 is_fadada_signed int4 default 0, -- 是否签署法大大协议 0-否 1-是
is_verified int4 default 0, -- 是否实名用户 0-否 1-是 is_verified int4 default 0, -- 是否实名用户 0-否 1-是
@@ -103,11 +103,15 @@ create table user_market_info
is_deleted int4 default 0 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 table user_market_info is '用户拓展信息表';
comment on column user_market_info.id 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.is_verified is '是否实名用户 0-否 1-是';
comment on column user_market_info.verified_date is '实名时间'; comment on column user_market_info.verified_date is '实名时间';
comment on column user_market_info.real_name is '实名姓名'; comment on column user_market_info.real_name is '实名姓名';