liche update for biz list search by company and clues cfrom support level2 when clues add

This commit is contained in:
xxb
2021-08-23 11:47:53 +08:00
committed by lccsw
parent 0778142916
commit f67e786f2c
6 changed files with 150 additions and 23 deletions
+26 -9
View File
@@ -52,13 +52,30 @@ create table lc_receiver_clue_oplogs (
-- Table:lc_receiver_clue_statistics
-- ---------------------------
drop table if exists lc_receiver_clue_statistics;
CREATE TABLE `lc_receiver_clue_statistics` (
`id` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`app_id` int(10) unsigned NOT NULL COMMENT '应用id',
`uid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
`browse_num` int(10) NOT NULL DEFAULT '0' COMMENT '浏览量',
`day` date NOT NULL DEFAULT '0000-00-00' COMMENT '日期',
`c_time` int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
`u_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`)
CREATE TABLE lc_receiver_clue_statistics (
id int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
app_id int(10) unsigned NOT NULL COMMENT '应用id',
uid int(10) unsigned NOT NULL DEFAULT '0' COMMENT '用户id',
browse_num int(10) NOT NULL DEFAULT '0' COMMENT '浏览量',
day date NOT NULL DEFAULT '0000-00-00' COMMENT '日期',
c_time int(11) NOT NULL DEFAULT '0' COMMENT '创建时间',
u_time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (id)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='线索统计表'
-- ----------------------------
-- Title:线索来源表
-- Author:lcc
-- Table:lc_receiver_clues_cfrom
-- ---------------------------
drop table if exists lc_receiver_clues_cfrom;
create table lc_receiver_clues_cfrom (
id int(10) unsigned not null auto_increment comment '自增id',
title varchar(32) not null comment '渠道名称',
status tinyint(1) not null default '1' comment '状态:-1删除 1使用中',
c_time int(10) unsigned not null default '0' comment '创建时间',
u_time timestamp not null default current_timestamp on update current_timestamp,
primary key (id)
) engine=innodb default charset=utf8mb4 collate=utf8mb4_0900_ai_ci comment='线索来源表';
alter table lc_receiver_clues_cfrom add column pid int unsigned not null default 0 comment '父来源ID' after title;