|
|
|
@ -334,13 +334,13 @@ INSERT INTO `5kcrm_admin_field` VALUES (87, 'oa_examine', 5, 'remark', '备注',
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (88, 'oa_examine', 6, 'content', '借款事由', 'text', '', 0, 0, 1, '', '', 0, 3, 1553788800, 1553788800, 0, NULL, 0, 100, '0,1', NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (89, 'oa_examine', 6, 'money', '借款金额(元)', 'floatnumber', '', 0, 0, 1, '', '', 0, 3, 1553788800, 1553788800, 0, NULL, 0, 100, '0,2', NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (90, 'oa_examine', 6, 'remark', '备注', 'textarea', '', 0, 0, 0, '', '', 0, 3, 1553788800, 1553788800, 0, NULL, 0, 100, '0,3', NULL, NULL, NULL, NULL, NULL, NULL);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (91, 'crm_receivables_plan', 0, 'customer_id', '客户名称', 'customer', '', 0, 0, 1, '', '', 1, 3, 1553788800, 1624439466, 0, NULL, 0, 50, '0,0', NULL, NULL, NULL, NULL, '', 1001);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (92, 'crm_receivables_plan', 0, 'contract_id', '合同编号', 'contract', '', 0, 0, 1, '', '', 2, 3, 1553788800, 1624439466, 0, NULL, 0, 50, '0,1', NULL, NULL, NULL, NULL, '', 1002);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (93, 'crm_receivables_plan', 0, 'money', '计划回款金额', 'floatnumber', '', 0, 0, 1, '', '', 3, 3, 1553788800, 1624439466, 6, NULL, 0, 50, '1,0', NULL, NULL, NULL, NULL, '', 1003);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (94, 'crm_receivables_plan', 0, 'return_date', '计划回款日期', 'date', '', 0, 0, 1, '', '', 4, 3, 1553788800, 1624439466, 4, NULL, 0, 50, '1,1', NULL, NULL, NULL, NULL, '', 1004);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (95, 'crm_receivables_plan', 0, 'return_type', '计划回款方式', 'select', '', 0, 0, 1, '', '支票\n现金\n邮政汇款\n电汇\n网上转账\n支付宝\n微信支付\n其他\n在线支付\n线下支付\n预存款\n返利\n预存款+返利', 5, 3, 1553788800, 1624439466, 3, NULL, 0, 50, '2,0', 2, NULL, NULL, NULL, '支票\n现金\n邮政汇款\n电汇\n网上转账\n支付宝\n微信支付\n其他\n在线支付\n线下支付\n预存款\n返利\n预存款+返利', 1005);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (96, 'crm_receivables_plan', 0, 'remind', '提前几日提醒', 'number', '', 0, 0, 0, '', '', 6, 3, 1553788800, 1624439466, 5, NULL, 0, 50, '2,1', NULL, NULL, NULL, NULL, '', 1006);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (97, 'crm_receivables_plan', 0, 'remark', '备注', 'textarea', '', 0, 0, 0, '', '', 7, 1, 1553788800, 1624439466, 2, NULL, 0, 100, '3,0', NULL, NULL, NULL, NULL, '', 1007);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (91, 'crm_receivables_plan', 0, 'customer_id', '客户名称', 'customer', '', 0, 0, 1, '', '', 1, 181, 1553788800, 1624439466, 0, NULL, 0, 50, '0,0', NULL, NULL, NULL, NULL, '', 1001);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (92, 'crm_receivables_plan', 0, 'contract_id', '合同编号', 'contract', '', 0, 0, 1, '', '', 2, 181, 1553788800, 1624439466, 0, NULL, 0, 50, '0,1', NULL, NULL, NULL, NULL, '', 1002);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (93, 'crm_receivables_plan', 0, 'money', '计划回款金额', 'floatnumber', '', 0, 0, 1, '', '', 3, 181, 1553788800, 1624439466, 6, NULL, 0, 50, '1,0', NULL, NULL, NULL, NULL, '', 1003);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (94, 'crm_receivables_plan', 0, 'return_date', '计划回款日期', 'date', '', 0, 0, 1, '', '', 4, 183, 1553788800, 1624439466, 4, NULL, 0, 50, '1,1', NULL, NULL, NULL, NULL, '', 1004);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (95, 'crm_receivables_plan', 0, 'return_type', '计划回款方式', 'select', '', 0, 0, 1, '', '支票\n现金\n邮政汇款\n电汇\n网上转账\n支付宝\n微信支付\n其他\n在线支付\n线下支付\n预存款\n返利\n预存款+返利', 5, 191, 1553788800, 1624439466, 3, NULL, 0, 50, '2,0', 2, NULL, NULL, NULL, '支票\n现金\n邮政汇款\n电汇\n网上转账\n支付宝\n微信支付\n其他\n在线支付\n线下支付\n预存款\n返利\n预存款+返利', 1005);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (96, 'crm_receivables_plan', 0, 'remind', '提前几日提醒', 'number', '', 0, 0, 0, '', '', 6, 191, 1553788800, 1624439466, 5, NULL, 0, 50, '2,1', NULL, NULL, NULL, NULL, '', 1006);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (97, 'crm_receivables_plan', 0, 'remark', '备注', 'textarea', '', 0, 0, 0, '', '', 7, 191, 1553788800, 1624439466, 2, NULL, 0, 100, '3,0', NULL, NULL, NULL, NULL, '', 1007);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (99, 'crm_customer', 0, 'mobile', '手机', 'mobile', '', 0, 0, 0, '', '', 6, 191, 1553788800, 1624439032, 7, '', 0, 50, '2,1', 0, '', '', '', '', 1031);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (100, 'crm_customer', 0, 'email', '邮箱', 'email', '', 0, 0, 0, '', '', 7, 191, 1553788800, 1624439032, 14, '', 0, 50, '3,0', 0, '', '', '', '', 1032);
|
|
|
|
|
INSERT INTO `5kcrm_admin_field` VALUES (101, 'crm_visit', 0, 'number', '回访编号', 'text', '', 0, 0, 1, '', NULL, 1, 177, 1553788800, 1624439600, 1, '', 0, 50, '0,0', 0, '', '', '', NULL, 1001);
|
|
|
|
@ -1602,42 +1602,43 @@ CREATE TABLE `5kcrm_crm_contract_product` (
|
|
|
|
|
DROP TABLE IF EXISTS `5kcrm_crm_customer`;
|
|
|
|
|
CREATE TABLE `5kcrm_crm_customer` (
|
|
|
|
|
`customer_id` int(11) NOT NULL AUTO_INCREMENT,
|
|
|
|
|
`name` varchar(255) DEFAULT NULL COMMENT '客户名称',
|
|
|
|
|
`is_lock` tinyint(1) NOT NULL DEFAULT '0' COMMENT '1锁定',
|
|
|
|
|
`name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户名称',
|
|
|
|
|
`is_lock` tinyint(1) NOT NULL DEFAULT 0 COMMENT '1锁定',
|
|
|
|
|
`deal_time` int(11) NOT NULL COMMENT '领取,分配,创建时间',
|
|
|
|
|
`level` varchar(500) DEFAULT NULL COMMENT '客户级别',
|
|
|
|
|
`industry` varchar(500) DEFAULT NULL COMMENT '客户行业',
|
|
|
|
|
`source` varchar(500) DEFAULT NULL COMMENT '客户来源',
|
|
|
|
|
`telephone` varchar(255) DEFAULT NULL COMMENT '电话',
|
|
|
|
|
`mobile` varchar(255) DEFAULT NULL COMMENT '手机',
|
|
|
|
|
`website` varchar(255) DEFAULT NULL COMMENT '网址',
|
|
|
|
|
`remark` text COMMENT '备注',
|
|
|
|
|
`level` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户级别',
|
|
|
|
|
`industry` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户行业',
|
|
|
|
|
`source` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '客户来源',
|
|
|
|
|
`telephone` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '电话',
|
|
|
|
|
`mobile` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '手机',
|
|
|
|
|
`website` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '网址',
|
|
|
|
|
`remark` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注',
|
|
|
|
|
`create_user_id` int(11) NOT NULL COMMENT '创建人ID',
|
|
|
|
|
`owner_user_id` int(11) NOT NULL COMMENT '负责人ID',
|
|
|
|
|
`ro_user_id` varchar(500) NOT NULL DEFAULT '' COMMENT '只读权限',
|
|
|
|
|
`rw_user_id` varchar(500) NOT NULL DEFAULT '' COMMENT '读写权限',
|
|
|
|
|
`address` varchar(255) NOT NULL DEFAULT '' COMMENT '省市区',
|
|
|
|
|
`location` varchar(255) NOT NULL DEFAULT '' COMMENT '定位信息',
|
|
|
|
|
`detail_address` varchar(255) NOT NULL DEFAULT '' COMMENT '详细地址',
|
|
|
|
|
`lng` double(14,11) DEFAULT NULL COMMENT '地理位置经度',
|
|
|
|
|
`lat` double(14,11) DEFAULT NULL COMMENT '地理位置维度',
|
|
|
|
|
`next_time` int(11) DEFAULT NULL COMMENT '下次联系时间',
|
|
|
|
|
`follow` varchar(20) DEFAULT NULL COMMENT '跟进',
|
|
|
|
|
`obtain_time` int(10) NOT NULL DEFAULT '0' COMMENT '负责人获取客户时间',
|
|
|
|
|
`ro_user_id` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '只读权限',
|
|
|
|
|
`rw_user_id` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '读写权限',
|
|
|
|
|
`address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '省市区',
|
|
|
|
|
`location` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '定位信息',
|
|
|
|
|
`detail_address` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '' COMMENT '详细地址',
|
|
|
|
|
`lng` double(14, 11) NULL DEFAULT NULL COMMENT '地理位置经度',
|
|
|
|
|
`lat` double(14, 11) NULL DEFAULT NULL COMMENT '地理位置维度',
|
|
|
|
|
`next_time` int(11) NULL DEFAULT NULL COMMENT '下次联系时间',
|
|
|
|
|
`follow` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '跟进',
|
|
|
|
|
`obtain_time` int(10) NOT NULL DEFAULT 0 COMMENT '负责人获取客户时间',
|
|
|
|
|
`create_time` int(11) NOT NULL COMMENT '创建时间',
|
|
|
|
|
`update_time` int(11) NOT NULL COMMENT '更新时间',
|
|
|
|
|
`is_dealt` tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否已经处理(待办事项):1已处理;0未处理;',
|
|
|
|
|
`is_allocation` tinyint(1) NOT NULL DEFAULT '0' COMMENT '是否是分配给我的客户:1是;0不是',
|
|
|
|
|
`last_time` int(10) unsigned DEFAULT NULL COMMENT '最后跟进时间',
|
|
|
|
|
`last_record` varchar(512) DEFAULT NULL COMMENT '最后跟进记录',
|
|
|
|
|
`email` varchar(255) DEFAULT NULL COMMENT '邮箱',
|
|
|
|
|
`before_owner_user_id` int(10) unsigned DEFAULT '0' COMMENT '前负责人',
|
|
|
|
|
`into_pool_time` int(10) unsigned DEFAULT '0' COMMENT '进入公海时间',
|
|
|
|
|
`pool_remain` tinyint(1) NOT NULL DEFAULT '0' COMMENT '代办事项待进入公海:1已处理,0未处理',
|
|
|
|
|
`deal_status` varchar(10) NOT NULL DEFAULT '未成交' COMMENT '成交状态',
|
|
|
|
|
`is_dealt` tinyint(1) NOT NULL DEFAULT 1 COMMENT '是否已经处理(待办事项):1已处理;0未处理;',
|
|
|
|
|
`is_allocation` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否是分配给我的客户:1是;0不是',
|
|
|
|
|
`last_time` int(10) UNSIGNED NULL DEFAULT NULL COMMENT '最后跟进时间',
|
|
|
|
|
`last_record` varchar(512) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '最后跟进记录',
|
|
|
|
|
`email` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '邮箱',
|
|
|
|
|
`before_owner_user_id` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '前负责人',
|
|
|
|
|
`into_pool_time` int(10) UNSIGNED NULL DEFAULT 0 COMMENT '进入公海时间',
|
|
|
|
|
`pool_remain` tinyint(1) NOT NULL DEFAULT 0 COMMENT '代办事项待进入公海:1已处理,0未处理',
|
|
|
|
|
`deal_status` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT '未成交' COMMENT '成交状态',
|
|
|
|
|
PRIMARY KEY (`customer_id`) USING BTREE,
|
|
|
|
|
KEY `bi_analysis` (`create_time`,`owner_user_id`) USING BTREE
|
|
|
|
|
) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='客户表';
|
|
|
|
|
INDEX `bi_analysis`(`create_time`, `owner_user_id`) USING BTREE
|
|
|
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '客户表' ROW_FORMAT = DYNAMIC;
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Records of 5kcrm_crm_customer
|
|
|
|
|
-- ----------------------------
|
|
|
|
@ -2323,9 +2324,13 @@ CREATE TABLE `5kcrm_crm_receivables_plan` (
|
|
|
|
|
`update_time` int(11) NOT NULL COMMENT '更新时间',
|
|
|
|
|
`file` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件',
|
|
|
|
|
`is_dealt` tinyint(1) NOT NULL DEFAULT 0 COMMENT '是否已经处理(待办事项):1已处理;0未处理;',
|
|
|
|
|
`real_money` decimal(18,2) NOT NULL DEFAULT '0.00' COMMENT '实际回款金额',
|
|
|
|
|
`real_data` date DEFAULT NULL COMMENT '实际回款日期',
|
|
|
|
|
`un_money` decimal(18,2) NOT NULL DEFAULT '0.00' COMMENT '未回金额',
|
|
|
|
|
PRIMARY KEY (`plan_id`) USING BTREE
|
|
|
|
|
) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '回款计划表' ROW_FORMAT = DYNAMIC;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- ----------------------------
|
|
|
|
|
-- Records of 5kcrm_crm_receivables_plan
|
|
|
|
|
-- ----------------------------
|
|
|
|
|