Commit 3a7fcc58 by 马玮

Add sql

parent 248f3511
UPDATE `crm_dd_input_type` SET `name`='易车' WHERE (`id`='21');
ALTER IGNORE TABLE `crm_clue`
ADD UNIQUE INDEX `customer_car` (`shop_id`, `clue_input_type`, `customer_phone`, `intention_des`(191), `create_time`);
\ No newline at end of file
ADD UNIQUE INDEX `customer_car` (`shop_id`, `clue_input_type`, `customer_phone`, `intention_des`(191), `create_time`);
-- ----------------------------
-- Table structure for crm_dealer_thirdparty_account
-- ----------------------------
DROP TABLE IF EXISTS `crm_dealer_thirdparty_account`;
CREATE TABLE `crm_dealer_thirdparty_account` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增主键',
`dealerID` int(11) DEFAULT '0' COMMENT '经销商ID',
`website` varchar(255) DEFAULT '' COMMENT '第三方网站名称',
`username` varchar(255) DEFAULT '' COMMENT '第三方账号用户名',
`password` varchar(255) DEFAULT '' COMMENT '第三方账号密码',
`cookies` text COMMENT '第三方账号cookies',
`error` text COMMENT '爬取第三方过程中产生的错误',
`status` tinyint(255) DEFAULT '0' COMMENT '第三方账号状态: -1: 同步失败, 0: 未同步, 1: 同步成功',
`createdAt` bigint(20) DEFAULT NULL COMMENT '第三方账号创建时间',
`updatedAt` bigint(20) DEFAULT NULL COMMENT '第三方账号更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `dealerWeb` (`dealerID`,`website`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- ----------------------------
-- Table structure for crm_dealer_thirdparty_summary
-- ----------------------------
DROP TABLE IF EXISTS `crm_dealer_thirdparty_summary`;
CREATE TABLE `crm_dealer_thirdparty_summary` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增主键',
`dealerID` int(11) DEFAULT '0' COMMENT '经销商ID',
`totalClue` int(11) DEFAULT '0' COMMENT '线索总计',
`totalAccount` int(11) DEFAULT '0' COMMENT '第三方账号总计',
`createdAt` bigint(20) DEFAULT NULL COMMENT '创建时间',
`updatedAt` bigint(20) DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (`id`),
UNIQUE KEY `dealerID` (`dealerID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment