20230213.sql 964 B

1234567891011121314
  1. alter table post add COLUMN parent_id bigint(20) DEFAULT NULL comment '父级岗位id';
  2. alter table customer add COLUMN user_id bigint(20) DEFAULT NULL comment '所属员工id';
  3. alter table visit add COLUMN user_id bigint(20) DEFAULT NULL comment '所属员工id';
  4. alter table business_opportunity add COLUMN user_id bigint(20) DEFAULT NULL comment '所属员工id';
  5. alter table item add COLUMN user_id bigint(20) DEFAULT NULL comment '所属员工id(客户经理)';
  6. alter table item add COLUMN customer_id bigint(20) DEFAULT NULL comment '客户id';
  7. CREATE TABLE `user_target` (
  8. `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'id',
  9. `sale_target` double(128,2) DEFAULT NULL COMMENT '本年签约目标',
  10. `payment_target` double(128,2) DEFAULT NULL COMMENT '本年回款目标',
  11. `user_id` bigint(20) NOT NULL COMMENT '员工id',
  12. PRIMARY KEY (`id`)
  13. ) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='员工目标';