upgrade.sql 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  1. CREATE TABLE ta_channel_proxy(
  2. `channel_id` INT NOT NULL AUTO_INCREMENT COMMENT '渠道id' ,
  3. `channel_proxy_name` VARCHAR(64) COMMENT '渠道代理商名称' ,
  4. `channel_img` TEXT COMMENT '渠道logo' ,
  5. `channel_contact_name` VARCHAR(32) COMMENT '联系人' ,
  6. `channel_tel` VARCHAR(32) COMMENT '手机' ,
  7. `user_name` VARCHAR(64) COMMENT '账号名' ,
  8. `password` VARCHAR(128) COMMENT '密码' ,
  9. `expire_date` DATETIME COMMENT '有效期' ,
  10. `status` INT COMMENT '状态' ,
  11. `app_max_num` INT COMMENT '维护小程序数量' ,
  12. `create_time` DATETIME COMMENT '创建时间' ,
  13. PRIMARY KEY (channel_id)
  14. ) COMMENT = '渠道代理表 ';;
  15. CREATE TABLE ta_channel_app_relation(
  16. `relation_id` INT NOT NULL AUTO_INCREMENT COMMENT '关系id' ,
  17. `channel_id` INT COMMENT '渠道id' ,
  18. `org_id` INT COMMENT '公司id' ,
  19. `create_time` DATETIME COMMENT '创建时间' ,
  20. PRIMARY KEY (relation_id)
  21. ) COMMENT = '渠道小程序关系表';;
  22. alter table sys_user add type varchar(64) not null;
  23. -- 修改主键
  24. INSERT INTO `sys_user` VALUES ('admin', '28c8edde3d61a0411511d3b1866f0636', '1', '1', 1, 'channel');
  25. --INSERT INTO `sys_user` VALUES ('admin', '28c8edde3d61a0411511d3b1866f0636', '1', '1', 1, 'center');
  26. alter table td_biz_event add points int(16);
  27. alter table ta_building_dynamic add home int;
  28. alter table ta_building add property_developer VARCHAR(128);
  29. alter table ta_building add building_num VARCHAR(128) ;
  30. alter table ta_building add record_name VARCHAR(128) ;
  31. alter table ta_building modify opening_date varchar(32);
  32. alter table ta_drainage add qr_code varchar(1024);
  33. insert into ta_channel_proxy(channel_id, channel_proxy_name, channel_contact_name, channel_tel, user_name, password, expire_date, status, app_max_num, create_time) value (1, '系统管理员', '系统管理员',18888888888, 'admin', '1dfe46eda38305ebf953fb2ace2ade8f', '9999-09-02', 1, 1, '9999-09-02');
  34. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 15, '2020-12-12');
  35. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 21, '2020-12-12');
  36. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 27, '2020-12-12');
  37. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 35, '2020-12-12');
  38. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 25, '2020-12-12');
  39. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 26, '2020-12-12');
  40. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 24, '2020-12-12');
  41. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 30, '2020-12-12');
  42. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 11, '2020-12-12');
  43. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 23, '2020-12-12');
  44. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 18, '2020-12-12');
  45. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 29, '2020-12-12');
  46. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 19, '2020-12-12');
  47. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 37, '2020-12-12');
  48. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 34, '2020-12-12');
  49. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 33, '2020-12-12');
  50. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 14, '2020-12-12');
  51. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 36, '2020-12-12');
  52. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 12, '2020-12-12');
  53. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 32, '2020-12-12');
  54. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 13, '2020-12-12');
  55. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 31, '2020-12-12');
  56. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 28, '2020-12-12');
  57. insert into ta_channel_app_relation(channel_id,org_id,create_time) VALUES (1, 16, '2020-12-12');
  58. update td_biz_event t set t.points = 1 where t.event_id = 1;
  59. update td_biz_event t set t.points = 8 where t.event_id = 4;
  60. update td_biz_event t set t.points = 3 where t.event_id = 5;
  61. update td_biz_event t set t.points = 8 where t.event_id = 6;
  62. update td_biz_event t set t.points = 2 where t.event_id = 7;
  63. update td_biz_event t set t.points = 2 where t.event_id = 8;
  64. update td_biz_event t set t.points = 2 where t.event_id = 9;
  65. update td_biz_event t set t.points = 2 where t.event_id = 10;
  66. update td_biz_event t set t.points = 2 where t.event_id = 11;
  67. update td_biz_event t set t.points = 3 where t.event_id = 12;
  68. update td_biz_event t set t.points = 5 where t.event_id = 13;
  69. update td_biz_event t set t.points = 3 where t.event_id = 14;
  70. update td_biz_event t set t.points = 8 where t.event_id = 15;
  71. update td_biz_event t set t.points = 2 where t.event_id = 16;
  72. update td_biz_event t set t.points = 2 where t.event_id = 17;
  73. update td_biz_event t set t.points = 5 where t.event_id = 18;
  74. update td_biz_event t set t.points = 2 where t.event_id = 19;
  75. update td_biz_event t set t.points = 3 where t.event_id = 20;
  76. update td_biz_event t set t.points = 2 where t.event_id = 21;
  77. update td_biz_event t set t.points = 5 where t.event_id = 22;
  78. update td_biz_event t set t.points = 1 where t.event_id = 23;
  79. update td_biz_event t set t.points = 1 where t.event_id = 24;
  80. update td_biz_event t set t.points = 1 where t.event_id = 25;
  81. update td_biz_event t set t.points = 1 where t.event_id = 26;
  82. update td_biz_event t set t.points = 1 where t.event_id = 27;
  83. update td_biz_event t set t.points = 1 where t.event_id = 28;
  84. update ta_building_intention t set t.intention = 1 where t.event_id = 1;
  85. update ta_building_intention t set t.intention = 8 where t.event_id = 4;
  86. update ta_building_intention t set t.intention = 3 where t.event_id = 5;
  87. update ta_building_intention t set t.intention = 8 where t.event_id = 6;
  88. update ta_building_intention t set t.intention = 2 where t.event_id = 7;
  89. update ta_building_intention t set t.intention = 2 where t.event_id = 8;
  90. update ta_building_intention t set t.intention = 2 where t.event_id = 9;
  91. update ta_building_intention t set t.intention = 2 where t.event_id = 10;
  92. update ta_building_intention t set t.intention = 2 where t.event_id = 11;
  93. update ta_building_intention t set t.intention = 3 where t.event_id = 12;
  94. update ta_building_intention t set t.intention = 5 where t.event_id = 13;
  95. update ta_building_intention t set t.intention = 3 where t.event_id = 14;
  96. update ta_building_intention t set t.intention = 8 where t.event_id = 15;
  97. update ta_building_intention t set t.intention = 2 where t.event_id = 16;
  98. update ta_building_intention t set t.intention = 2 where t.event_id = 17;
  99. update ta_building_intention t set t.intention = 5 where t.event_id = 18;
  100. update ta_building_intention t set t.intention = 2 where t.event_id = 19;
  101. update ta_building_intention t set t.intention = 3 where t.event_id = 20;
  102. update ta_building_intention t set t.intention = 2 where t.event_id = 21;
  103. update ta_building_intention t set t.intention = 5 where t.event_id = 22;
  104. update ta_building_intention t set t.intention = 1 where t.event_id = 23;
  105. update ta_building_intention t set t.intention = 1 where t.event_id = 24;
  106. update ta_building_intention t set t.intention = 1 where t.event_id = 25;
  107. update ta_building_intention t set t.intention = 1 where t.event_id = 26;
  108. update ta_building_intention t set t.intention = 1 where t.event_id = 27;
  109. update ta_building_intention t set t.intention = 1 where t.event_id = 28;
  110. update td_points_rules t set t.rule_name = '分享转发' where t.rule_name = '分享海报';
  111. CREATE TABLE ts_person_from_statistic(
  112. `person_from_statistic_id` INT NOT NULL AUTO_INCREMENT COMMENT 'ID' ,
  113. `scene_type` VARCHAR(32) COMMENT '场景类型' ,
  114. `event_type` VARCHAR(32) COMMENT '事件类型' ,
  115. `from_num` INT COMMENT '来源数量' ,
  116. `org_id` INT COMMENT '公司id' ,
  117. `create_date` DATETIME COMMENT '创建时间' ,
  118. `registered_num` INT COMMENT '注册数量' ,
  119. PRIMARY KEY (person_from_statistic_id)
  120. ) COMMENT = '用户来源统计表 ';;
  121. CREATE TABLE ta_person_from_record(
  122. `from_record_id` INT NOT NULL AUTO_INCREMENT COMMENT '新增用户来源id' ,
  123. `scene_id` VARCHAR(32) COMMENT '微信来源字典id' ,
  124. `scene_type` VARCHAR(32) COMMENT '微信来源类型' ,
  125. `person_id` VARCHAR(128) COMMENT '新增用户id' ,
  126. `is_first_time` TINYINT(1) COMMENT '是否第一次' ,
  127. `target_id` VARCHAR(32) COMMENT '类型ID值' ,
  128. `share_person_id` VARCHAR(32) COMMENT '分享人Id' ,
  129. `create_date` DATETIME COMMENT '创建时间' ,
  130. `org_id` INT COMMENT '公司id' ,
  131. `building_id` VARCHAR(64) COMMENT '楼盘id' ,
  132. `event` VARCHAR(32) COMMENT '事件' ,
  133. `event_type` VARCHAR(32) COMMENT '事件类型' ,
  134. `activity` VARCHAR(128) COMMENT '行为' ,
  135. `target_type` VARCHAR(32) COMMENT '类型' ,
  136. PRIMARY KEY (from_record_id)
  137. ) COMMENT = '新增用户来源表 ';;
  138. CREATE TABLE td_wx_dict(
  139. `scene_id` VARCHAR(32) NOT NULL COMMENT '场景值id' ,
  140. `scene_name` VARCHAR(1024) COMMENT '场景名称' ,
  141. `scene_type` VARCHAR(1024) COMMENT '场景类型' ,
  142. `scene_alias` VARCHAR(32) COMMENT '场景类型别名' ,
  143. PRIMARY KEY (scene_id)
  144. ) COMMENT = '微信字典表 ';;
  145. INSERT INTO `td_wx_dict`(`scene_id`, `scene_name`, `scene_type`, `scene_alias`) VALUES ('1000', '其他', 'other', '其他');
  146. INSERT INTO `td_wx_dict`(`scene_id`, `scene_name`, `scene_type`, `scene_alias`) VALUES ('1005', '微信首页顶部搜索框的搜索结果页', 'search', '自主搜索');
  147. INSERT INTO `td_wx_dict`(`scene_id`, `scene_name`, `scene_type`, `scene_alias`) VALUES ('1006', '微信首页顶部搜索框的搜索结果页', 'search', '自主搜索');
  148. INSERT INTO `td_wx_dict`(`scene_id`, `scene_name`, `scene_type`, `scene_alias`) VALUES ('1007', '单人聊天会话中的小程序消息卡片', 'buddy_share', '好友分享');
  149. INSERT INTO `td_wx_dict`(`scene_id`, `scene_name`, `scene_type`, `scene_alias`) VALUES ('1008', '群聊会话中的小程序消息卡片', 'group_share', '群分享');
  150. INSERT INTO `td_wx_dict`(`scene_id`, `scene_name`, `scene_type`, `scene_alias`) VALUES ('1042', '添加好友搜索框的搜索结果页', 'search', '自主搜索');
  151. INSERT INTO `td_wx_dict`(`scene_id`, `scene_name`, `scene_type`, `scene_alias`) VALUES ('1045', '朋友圈广告', 'advertising', '朋友圈广告');
  152. INSERT INTO `td_wx_dict`(`scene_id`, `scene_name`, `scene_type`, `scene_alias`) VALUES ('1046', '朋友圈广告详情页', 'advertising', '朋友圈广告');
  153. INSERT INTO `td_wx_dict`(`scene_id`, `scene_name`, `scene_type`, `scene_alias`) VALUES ('1047', '扫描小程序码', 'mini_program_code', '小程序码');
  154. INSERT INTO `td_wx_dict`(`scene_id`, `scene_name`, `scene_type`, `scene_alias`) VALUES ('1048', '长按图片识别小程序码', 'mini_program_code', '小程序码');
  155. INSERT INTO `td_wx_dict`(`scene_id`, `scene_name`, `scene_type`, `scene_alias`) VALUES ('1053', '搜一搜的结果页', 'search', '自主搜索');
  156. INSERT INTO `td_wx_dict`(`scene_id`, `scene_name`, `scene_type`, `scene_alias`) VALUES ('1058', '公众号文章', 'article', '公众号文章');
  157. INSERT INTO `td_wx_dict`(`scene_id`, `scene_name`, `scene_type`, `scene_alias`) VALUES ('1067', '公众号文章广告', 'article', '公众号文章');
  158. INSERT INTO `td_biz_event`(`event_id`, `event_code`, `event_name`, `remark`, `status`, `create_date`) VALUES (29, 'search', '搜索', NULL, 1, '2019-12-31 14:11:34');
  159. INSERT INTO `td_biz_event`(`event_id`, `event_code`, `event_name`, `remark`, `status`, `create_date`) VALUES (32, 'map_house', '地图看房', NULL, 1, '2019-12-31 14:11:34');
  160. INSERT INTO `td_biz_event`(`event_id`, `event_code`, `event_name`, `remark`, `status`, `create_date`) VALUES (33, 'signin', '签到', NULL, 1, '2019-12-31 14:11:34');
  161. INSERT INTO `td_biz_event`(`event_id`, `event_code`, `event_name`, `remark`, `status`, `create_date`) VALUES (35, 'points_rule', '查看积分规则', NULL, 1, '2019-12-31 14:11:34');
  162. INSERT INTO `td_biz_event`(`event_id`, `event_code`, `event_name`, `remark`, `status`, `create_date`) VALUES (36, 'points_details', '查看积分明细', NULL, 1, '2019-12-31 14:11:34');
  163. INSERT INTO `td_biz_event`(`event_id`, `event_code`, `event_name`, `remark`, `status`, `create_date`) VALUES (38, 'material', '提交资料', NULL, 1, '2019-12-31 14:11:34');
  164. INSERT INTO `td_biz_event`(`event_id`, `event_code`, `event_name`, `remark`, `status`, `create_date`) VALUES (39, 'feedback', '提交反馈', NULL, 1, '2019-12-31 14:11:34');
  165. INSERT INTO `td_biz_event`(`event_id`, `event_code`, `event_name`, `remark`, `status`, `create_date`) VALUES (44, 'communicate', '在线沟通', NULL, 1, '2019-12-31 14:11:34');
  166. INSERT INTO `td_biz_event`(`event_id`, `event_code`, `event_name`, `remark`, `status`, `create_date`) VALUES (50, 'more', '查看更多楼盘信息', NULL, 1, '2019-12-31 14:11:34');
  167. INSERT INTO `td_biz_event`(`event_id`, `event_code`, `event_name`, `remark`, `status`, `create_date`) VALUES (57, 'participate', '参与活动', NULL, 1, '2019-12-31 14:11:34');
  168. INSERT INTO `td_biz_event`(`event_id`, `event_code`, `event_name`, `remark`, `status`, `create_date`) VALUES (64, 'exchange', '兑换商品', NULL, 1, '2019-12-31 14:11:34');
  169. INSERT INTO `td_biz_event_type`(`type_id`, `type_name`, `status`, `create_date`, `parent_type_id`) VALUES ('integral', '积分商城', 1, '2019-12-31 13:42:16', 'public');
  170. INSERT INTO `td_biz_event_type`(`type_id`, `type_name`, `status`, `create_date`, `parent_type_id`) VALUES ('main', '首页', 1, '2019-08-06 16:10:20', 'public');
  171. INSERT INTO `td_biz_event_type`(`type_id`, `type_name`, `status`, `create_date`, `parent_type_id`) VALUES ('mall', '商品', 1, '2019-12-31 13:44:28', 'project');
  172. INSERT INTO `td_biz_event_type`(`type_id`, `type_name`, `status`, `create_date`, `parent_type_id`) VALUES ('news', '资讯', 1, '2019-08-06 16:10:20', 'project');
  173. UPDATE `td_biz_event_type` SET `type_name` = '活动', `status` = 1, `create_date` = '2019-08-06 16:10:20', `parent_type_id` = 'project' WHERE `type_id` = 'activity';
  174. UPDATE `td_biz_event_type` SET `type_name` = '客户', `status` = 1, `create_date` = '2019-08-06 16:10:20', `parent_type_id` = NULL WHERE `type_id` = 'agent';
  175. UPDATE `td_biz_event_type` SET `type_name` = '项目', `status` = 1, `create_date` = '2019-08-06 16:10:20', `parent_type_id` = 'project' WHERE `type_id` = 'building';
  176. UPDATE `td_biz_event_type` SET `type_name` = '名片', `status` = 1, `create_date` = '2019-08-06 16:10:20', `parent_type_id` = 'project' WHERE `type_id` = 'card';
  177. UPDATE `td_biz_event_type` SET `type_name` = '个人中心', `status` = 1, `create_date` = '2019-12-31 13:43:04', `parent_type_id` = 'public' WHERE `type_id` = 'center';
  178. UPDATE `td_biz_event_type` SET `type_name` = 'H5', `status` = 1, `create_date` = '2019-12-07 00:00:00', `parent_type_id` = 'public' WHERE `type_id` = 'h5';
  179. UPDATE `td_biz_event_type` SET `type_name` = '咨询', `status` = 1, `create_date` = '2019-08-06 16:10:20', `parent_type_id` = NULL WHERE `type_id` = 'info';
  180. ALTER TABLE td_biz_event_type ADD parent_type_id varchar(64) COMMENT '父级id';
  181. UPDATE `td_biz_event` SET `event_code` = 'index', `event_name` = '进入首页', `remark` = NULL, `status` = 0, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 1;
  182. UPDATE `td_biz_event` SET `event_code` = 'phone', `event_name` = '拨打电话', `remark` = NULL, `status` = 1, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 4;
  183. UPDATE `td_biz_event` SET `event_code` = 'calculator', `event_name` = '计算房贷', `remark` = NULL, `status` = 1, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 5;
  184. UPDATE `td_biz_event` SET `event_code` = 'qualified', `event_name` = '购房资格', `remark` = NULL, `status` = 0, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 6;
  185. UPDATE `td_biz_event` SET `event_code` = 'policy', `event_name` = '查看购房百科', `remark` = NULL, `status` = 1, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 7;
  186. UPDATE `td_biz_event` SET `event_code` = 'detail', `event_name` = '查看详情', `remark` = NULL, `status` = 1, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 8;
  187. UPDATE `td_biz_event` SET `event_code` = 'peripheral ', `event_name` = '查看周边配套', `remark` = NULL, `status` = 1, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 9;
  188. UPDATE `td_biz_event` SET `event_code` = 'apartment', `event_name` = '查看户型', `remark` = NULL, `status` = 1, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 10;
  189. UPDATE `td_biz_event` SET `event_code` = 'album', `event_name` = '查看相册', `remark` = NULL, `status` = 1, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 11;
  190. UPDATE `td_biz_event` SET `event_code` = 'consultants', `event_name` = '查看置业顾问列表', `remark` = NULL, `status` = 1, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 12;
  191. UPDATE `td_biz_event` SET `event_code` = 'share', `event_name` = '分享', `remark` = NULL, `status` = 1, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 13;
  192. UPDATE `td_biz_event` SET `event_code` = 'poster', `event_name` = '生成海报', `remark` = NULL, `status` = 1, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 14;
  193. UPDATE `td_biz_event` SET `event_code` = 'enlist', `event_name` = '报名', `remark` = NULL, `status` = 0, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 15;
  194. UPDATE `td_biz_event` SET `event_code` = 'save', `event_name` = '收藏', `remark` = NULL, `status` = 1, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 16;
  195. UPDATE `td_biz_event` SET `event_code` = 'like', `event_name` = '点赞', `remark` = NULL, `status` = 1, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 17;
  196. UPDATE `td_biz_event` SET `event_code` = 'sync', `event_name` = '同步通讯录', `remark` = NULL, `status` = 0, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 18;
  197. UPDATE `td_biz_event` SET `event_code` = 'navigation', `event_name` = '导航', `remark` = NULL, `status` = 1, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 19;
  198. UPDATE `td_biz_event` SET `event_code` = 'essential', `event_name` = '咨询-关键内容', `remark` = NULL, `status` = 0, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 20;
  199. UPDATE `td_biz_event` SET `event_code` = 'common', `event_name` = '咨询-常用问题', `remark` = NULL, `status` = 0, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 21;
  200. UPDATE `td_biz_event` SET `event_code` = 'recommend', `event_name` = '推荐客户', `remark` = NULL, `status` = 1, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 22;
  201. UPDATE `td_biz_event` SET `event_code` = 'list', `event_name` = '列表', `remark` = NULL, `status` = 0, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 23;
  202. UPDATE `td_biz_event` SET `event_code` = 'myagent', `event_name` = '我的客户', `remark` = NULL, `status` = 0, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 24;
  203. UPDATE `td_biz_event` SET `event_code` = 'progress', `event_name` = '客户进度', `remark` = NULL, `status` = 0, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 25;
  204. UPDATE `td_biz_event` SET `event_code` = 'person', `event_name` = '查看围观列表', `remark` = NULL, `status` = 1, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 26;
  205. UPDATE `td_biz_event` SET `event_code` = 'fans', `event_name` = '(名片)粉丝访问记录列表', `remark` = NULL, `status` = 0, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 27;
  206. UPDATE `td_biz_event` SET `event_code` = 'start', `event_name` = '进入小程序', `remark` = NULL, `status` = 0, `create_date` = '2019-08-08 17:54:42' WHERE `event_id` = 28;
  207. ALTER TABLE ta_person_visit_record ADD target_type varchar(64) COMMENT '类型';
  208. UPDATE `td_points_rules` SET `remark` = '每日签到获取积分' WHERE `rule_name` = '签到';
  209. UPDATE `td_points_rules` SET `remark` = '好友通过您分享的小程序内容、海报进入小程序;您即可获取积分' WHERE `rule_name` = '分享海报';
  210. UPDATE `td_points_rules` SET `remark` = '推荐有效客户,平台审核通过后即可获取积分' WHERE `rule_name` = '推荐客户';
  211. UPDATE `td_points_rules` SET `remark` = '成功授权手机号即可获取积分' WHERE `rule_name` = '授权手机号';
  212. UPDATE `td_points_rules` SET `remark` = '上传有效证件,平台审核通过后即可获取积分' WHERE `rule_name` = '资料审核';
  213. UPDATE `td_points_rules` SET `remark` = '报名参与活动,扫码签到后即可获取积分' WHERE `rule_name` = '活动签到';
  214. INSERT INTO `td_biz_event_type`(`type_id`, `type_name`, `status`, `create_date`, `parent_type_id`) VALUES ('center', '个人中心', 1, '2019-12-31 13:43:04', 'public');
  215. INSERT INTO `td_biz_event_type`(`type_id`, `type_name`, `status`, `create_date`, `parent_type_id`) VALUES ('h5', 'H5', 1, '2019-12-07 00:00:00', 'public');
  216. INSERT INTO `td_biz_event_type`(`type_id`, `type_name`, `status`, `create_date`, `parent_type_id`) VALUES ('mall', '商品', 1, '2019-12-31 13:44:28', 'project');
  217. update ta_person_visit_record t set t.event_type = 'activity', t.target_type = 'help' where t.event_type = 'help';
  218. update ta_person_visit_record t set t.event_type = 'activity' , t.target_type = 'group' where t.event_type = 'group';