1
This commit is contained in:
@@ -82,8 +82,6 @@ alter table user_market_tree
|
||||
create table user_market_info
|
||||
(
|
||||
id int8 not null primary key, --user_id
|
||||
current_vip_id int4, --用户当前等级
|
||||
current_vip_name varchar(12), --用户当前等级
|
||||
pid int8,
|
||||
p_vip int4 default 1,
|
||||
is_sync_genealogy int4 default 0,
|
||||
@@ -127,5 +125,38 @@ alter table user_market_info
|
||||
|
||||
|
||||
|
||||
create table user_market_level_info
|
||||
(
|
||||
id int8 not null primary key, --user_id
|
||||
current_vip_id int4, --用户当前等级
|
||||
current_vip_name varchar(12), --用户当前等级
|
||||
pid int8,
|
||||
p_vip int4 default 1,
|
||||
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_level_pid ON user_market_level_info (pid) WHERE status = 1;
|
||||
|
||||
comment on table user_market_level_info is '用户等级信息表';
|
||||
|
||||
comment on column user_market_level_info.id is '主键';
|
||||
comment on column user_market_level_info.current_vip_id is '用户当前升级id';
|
||||
comment on column user_market_level_info.current_vip_name is '用户当前升级名称';
|
||||
comment on column user_market_level_info.pid is '父级id';
|
||||
comment on column user_market_level_info.p_vip is '父级升级升级';
|
||||
comment on column user_market_level_info.create_user is '创建人';
|
||||
comment on column user_market_level_info.create_dept is '创建部门';
|
||||
comment on column user_market_level_info.create_time is '创建时间';
|
||||
comment on column user_market_level_info.update_user is '修改人';
|
||||
comment on column user_market_level_info.update_time is '修改时间';
|
||||
comment on column user_market_level_info.status is '状态';
|
||||
comment on column user_market_level_info.is_deleted is '是否已删除';
|
||||
alter table user_market_level_info
|
||||
owner to yicha1lu;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user