Commit 855c20ff by zhouhaibao

[+]昌德脚本提交

1 parent 2b9cb94c
......@@ -35,6 +35,155 @@ ALTER TABLE `scrm_entmicro`.`drac_scrm_welcome_config` CHANGE `att_content` `att
# 员工表新增业务类型字段
ALTER TABLE `scrm_entmicro`.`entmicro_staff` ADD COLUMN `business_type` VARCHAR(50) NULL COMMENT '业务类型' AFTER `follower_type_id`;
/*
SQLyog Community v13.1.6 (64 bit)
MySQL - 5.7.35-log
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
insert into `magic_template_config` (`merchant_id`, `table_name`, `excel_name`, `type`, `excel_url`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('44205867','scrm_magic_cube_customer_44205867','魔方导入模板昌徳一丰模板','1','https://img01.glsx.com.cn/upload/biz/魔方导入模板昌徳丰田模板v202203221100.xlsx','0','0','2022-03-26 09:51:54',NULL,NULL);
SET @ID =LAST_INSERT_ID();
/*
SQLyog Community v13.1.6 (64 bit)
MySQL - 5.7.35-log
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('最近出单日期','6','出单日期',NULL,'0',@ID,'date_of_issuance','11',NULL,'数据不符合要求','1',NULL,'1','2022-03-18 09:03:05',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('客户姓名','4','车主姓名','50','0',@ID,'customer_name','2','(.{0,50})?','数据不符合要求','0',NULL,'0','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('客户电话','4','电话(联系电话)','50','0',@ID,'customer_phone','3','^((13[0-9])|(14[5|7|9])|(15[0-3,5-9])|(16[6])|(17[3|5|6|7|8])|(18[0-9])|(19[8|9]))\\d{8}$','数据不符合要求','0',NULL,'0','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('身份证号','4','身份证号','18','0',@ID,'customer_idcard_no','4','(\\d{17}[0-9,xX])?','数据不符合要求','0',NULL,'0','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('车牌号','4','车牌号','10','0',@ID,'car_number',@ID,'(.{0,10})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('车架号','4','地盘号','17','0',@ID,'car_vin','7','([A-Za-z0-9]{17})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('销售日期','6','销售日期',NULL,'0',@ID,'car_buying_date','12','','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('最近结算日期','6','结算日期',NULL,'0',@ID,'recent_maintenance_date','16',NULL,'数据不符合要求','1',NULL,NULL,NULL,NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('最近起保日期','6','起保日期',NULL,'0',@ID,'effective_date_of_commercial_insurance','18','','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('车系','4','厂牌','50','0',@ID,'car_series','5','(.{0,50})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('车型','4','车型','50','0',@ID,'car_model','6','(.{0,50})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('发动机号','4','发动机号','50','0',@ID,'engine_number','9','(.{0,20})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('颜色','4','颜色','50','0',@ID,'car_color','10','(.{0,10})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('最近结算项目','4','收费类型','50','0',@ID,'charge_type','17','(.{0,50})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('最近进厂日期','6','进厂日期',NULL,'0',@ID,'recent_arrival_date','13','','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('最近离厂日期','6','离厂日期',NULL,'0',@ID,'departure_date','14','','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('最近完工日期','6','完工日期',NULL,'0',@ID,'completion_date','15','','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('品牌','4','品牌','50','0',@ID,'car_brand','19','(.{0,50})?','数据不符合要求','1',NULL,'1','2022-03-22 10:39:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('结算总次数','1','结算总次数','11','0',@ID,'settlement_total_count','20','(\\d{0,11})?','数据不符合要求','1',NULL,'1','2022-03-22 10:45:28',NULL,NULL);
CREATE TABLE `scrm_magic_cube_customer_44205867` (
`customer_name` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '车主姓名',
`customer_phone` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '电话(联系电话)',
`customer_idcard_no` varchar(18) COLLATE utf8_bin DEFAULT NULL COMMENT '身份证号',
`car_number` varchar(11) COLLATE utf8_bin DEFAULT NULL COMMENT '车牌号',
`car_vin` varchar(17) COLLATE utf8_bin DEFAULT NULL COMMENT '(地盘号)车架号',
`car_buying_date` datetime DEFAULT NULL COMMENT '(销售日期)购车日期',
`recent_arrival_date` datetime DEFAULT NULL COMMENT '(结算日期)近期到店日期',
`effective_date_of_commercial_insurance` datetime DEFAULT NULL COMMENT '(起保日期)商业险生效日期',
`recent_maintenance_date` datetime DEFAULT NULL COMMENT '近期保养日期',
`departure_date` datetime DEFAULT NULL COMMENT '离厂日期',
`completion_date` datetime DEFAULT NULL COMMENT '完工日期',
`car_series` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '车系',
`car_model` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '车型',
`engine_number` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '发动机号',
`car_color` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '颜色',
`charge_type` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '收费类型',
`created_by` int(11) DEFAULT NULL COMMENT '创建者',
`created_time` datetime DEFAULT NULL COMMENT '创建时间',
`updated_by` int(11) DEFAULT NULL COMMENT '更新者',
`updated_time` datetime DEFAULT NULL COMMENT '更新时间',
`del_flag` int(2) DEFAULT NULL COMMENT '状态',
`import_type` int(2) DEFAULT NULL COMMENT '导入类型:0-魔方导入,1-企微导入',
`import_flag` varchar(13) COLLATE utf8_bin DEFAULT NULL COMMENT '导入批次时间戳',
`customer_type` int(2) DEFAULT NULL COMMENT '是否新增:0=新增,1=非新增',
`wait_renewal_flag` int(2) DEFAULT NULL COMMENT '是否待续保客户:0-未知,1-是,2-否',
`wait_regular_maintain_flag` int(2) DEFAULT NULL COMMENT '是否待定保客户:0-未知,1-是,2-否',
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
`date_of_issuance` datetime DEFAULT NULL COMMENT '出单日期',
`car_brand` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '品牌',
`settlement_total_count` int(11) DEFAULT NULL COMMENT '结算总次数',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=39 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
/*
SQLyog Community v13.1.6 (64 bit)
MySQL - 5.7.35-log
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
insert into `magic_template_config` (`merchant_id`, `table_name`, `excel_name`, `type`, `excel_url`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('44205864','scrm_magic_cube_customer_44205864','魔方导入模板昌德东本','1','https://wx.glsx.com.cn/upload/biz/2d2d907c-f599-4faf-b1b8-15c60f1396c6.xlsx','0','0','2022-03-11 13:39:09',NULL,NULL);
SET @ID =LAST_INSERT_ID();
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('姓名','4','姓名','50','0',@ID,'customer_name','2','(.{0,50})?','数据不符合要求','0',NULL,'0','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('电话(联系电话)','4','电话(联系电话)','50','0',@ID,'customer_phone','3','(^1\\d{10})?','数据不符合要求','0',NULL,'0','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('身份证号','4','身份证号','18','0',@ID,'customer_idcard_no','5','(\\d{17}[0-9,xX])?','数据不符合要求','0',NULL,'0','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('是否潜客','4','是否潜客','8','0',@ID,'potential_visitor','6','(.{0,2})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('是否试驾','4','是否试驾','8','0',@ID,'test_drive','6','(.{0,2})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('进店时间','4','进店时间','10','0',@ID,'store_entry_time','8','(.{0,50})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('离店时间','4','离店时间','10','0',@ID,'check_out_time','10','(.{0,50})?','数据不符合要求','1',NULL,'1','2022-03-23 17:44:55',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('开票日期','6','购车时间',NULL,'0',@ID,'car_buying_date','11','','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('意向车型','4','意向车型','50','0',@ID,'intentional_model','12','(.{0,50})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('意向级别','4','意向级别','50','0',@ID,'level_of_intent',@ID,'(.{0,50})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('车辆性质','4','车辆性质','50','0',@ID,'vehicle_nature','13','(.{0,50})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('套餐','4','套餐','50','0',@ID,'combo','14','(.{0,50})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('厂牌','4','车系','50','0',@ID,'car_series','15','(.{0,50})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('车型','4','车型','50','0',@ID,'car_model','22','(.{0,50})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('车牌号','4','车牌号','8','0',@ID,'car_number','6','(.{0,8})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('车架号','4','车架号','17','0',@ID,'car_vin','7','([A-Za-z0-9]{17})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('结清日期','6','最近到店时间',NULL,'0',@ID,'recent_arrival_date','16','','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('保险到期时间','6','最近到店时间',NULL,'0',@ID,'commercial_insurance_expiration_date','17','','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('下次保养日期','6','下次保养日期',NULL,'0',@ID,'next_maintenance_date','18','','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('维修类型','4','维修类型','50','0',@ID,'repair_type','19','(.{0,10})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('下次保养里程','4','下次保养里程','50','0',@ID,'next_maintenance_mileage','20','(.{0,50})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
insert into `magic_template_config_info` (`field_name`, `field_type`, `field_comment`, `field_length`, `field_primary`, `config_id`, `cloumn_name`, `cloumn_index`, `cloumn_regular`, `cloumn_error_prompt`, `field_base`, `del_flag`, `created_by`, `created_time`, `updated_by`, `updated_time`) values('维修金额','4','维修金额','50','0',@ID,'repair_amount','21','(.{0,50})?','数据不符合要求','1',NULL,'1','2022-02-19 16:54:47',NULL,NULL);
CREATE TABLE `scrm_magic_cube_customer_44205864` (
`customer_name` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '姓名',
`customer_phone` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '电话(联系电话)',
`customer_idcard_no` varchar(18) COLLATE utf8_bin DEFAULT NULL COMMENT '身份证号',
`potential_visitor` varchar(8) COLLATE utf8_bin DEFAULT NULL COMMENT '是否潜客',
`test_drive` varchar(8) COLLATE utf8_bin DEFAULT NULL COMMENT '是否试驾',
`car_number` varchar(8) COLLATE utf8_bin DEFAULT NULL COMMENT '车牌号',
`car_vin` varchar(17) COLLATE utf8_bin DEFAULT NULL COMMENT '车架号',
`store_entry_time` time DEFAULT NULL COMMENT '进店时间',
`check_out_time` time DEFAULT NULL COMMENT '离店时间',
`car_buying_date` datetime DEFAULT NULL COMMENT '购车时间',
`recent_arrival_date` datetime DEFAULT NULL COMMENT '最近到店时间',
`commercial_insurance_expiration_date` datetime DEFAULT NULL COMMENT '最近到店时间',
`next_maintenance_date` datetime DEFAULT NULL COMMENT '下次保养日期',
`intentional_model` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '意向车型',
`vehicle_nature` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '车辆性质',
`combo` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '套餐',
`car_series` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '车系',
`level_of_intent` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '意向级别',
`car_model` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '车型',
`repair_type` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '维修类型',
`next_maintenance_mileage` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '下次保养里程',
`repair_amount` varchar(50) COLLATE utf8_bin DEFAULT NULL COMMENT '维修金额',
`created_by` int(11) DEFAULT NULL COMMENT '创建者',
`created_time` datetime DEFAULT NULL COMMENT '创建时间',
`updated_by` int(11) DEFAULT NULL COMMENT '更新者',
`updated_time` datetime DEFAULT NULL COMMENT '更新时间',
`del_flag` int(2) DEFAULT NULL COMMENT '状态',
`import_type` int(2) DEFAULT NULL COMMENT '导入类型:0-魔方导入,1-企微导入',
`import_flag` varchar(13) COLLATE utf8_bin DEFAULT NULL COMMENT '导入批次时间戳',
`customer_type` int(2) DEFAULT NULL COMMENT '是否新增:0=新增,1=非新增',
`wait_renewal_flag` int(2) DEFAULT NULL COMMENT '是否待续保客户:0-未知,1-是,2-否',
`wait_regular_maintain_flag` int(2) DEFAULT NULL COMMENT '是否待定保客户:0-未知,1-是,2-否',
`id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=150 DEFAULT CHARSET=utf8 COLLATE=utf8_bin;
#scrm营销系统scrm_marketing
/*
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!