From a9e33f2bcc31f428ee1e589ded88c56beb3bc1be Mon Sep 17 00:00:00 2001 From: zchengo <1933757688@qq.com> Date: Tue, 24 Jan 2023 20:03:19 +0800 Subject: [PATCH] change db file --- server/db/crm.sql | 54 +++++++++++++++-------------------------------- 1 file changed, 17 insertions(+), 37 deletions(-) diff --git a/server/db/crm.sql b/server/db/crm.sql index 4c6a30a..8c246ea 100644 --- a/server/db/crm.sql +++ b/server/db/crm.sql @@ -11,7 +11,7 @@ Target Server Version : 80031 (8.0.31) File Encoding : 65001 - Date: 02/01/2023 10:55:52 + Date: 24/01/2023 20:00:20 */ SET NAMES utf8mb4; @@ -38,14 +38,6 @@ CREATE TABLE `contract` ( KEY `idx_creator` (`creator`) ) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8mb3; --- ---------------------------- --- Records of contract --- ---------------------------- -BEGIN; -INSERT INTO `contract` (`id`, `name`, `amount`, `begin_time`, `over_time`, `remarks`, `cid`, `productlist`, `status`, `creator`, `created`, `updated`) VALUES (64, '家居用品买卖合同', 22975.00, '2022-12-16', '2022-12-16', '', 64, '[{\"id\": 98, \"name\": \"电动车\", \"type\": 1, \"unit\": \"台\", \"count\": 10, \"price\": 1498, \"total\": 14980}, {\"id\": 99, \"name\": \"跑步机\", \"type\": 1, \"unit\": \"台\", \"count\": 5, \"price\": 1599, \"total\": 7995}]', 2, 29, 1671192364, 0); -INSERT INTO `contract` (`id`, `name`, `amount`, `begin_time`, `over_time`, `remarks`, `cid`, `productlist`, `status`, `creator`, `created`, `updated`) VALUES (65, '车辆交易买卖合同', 29960.00, '2022-12-16', '2022-12-16', '无备注', 63, '[{\"id\": 98, \"name\": \"电动车\", \"type\": 1, \"unit\": \"台\", \"count\": 20, \"price\": 1498, \"total\": 29960}]', 1, 29, 1671192433, 0); -COMMIT; - -- ---------------------------- -- Table structure for customer -- ---------------------------- @@ -70,12 +62,22 @@ CREATE TABLE `customer` ( ) ENGINE=InnoDB AUTO_INCREMENT=65 DEFAULT CHARSET=utf8mb3; -- ---------------------------- --- Records of customer +-- Table structure for mail_config -- ---------------------------- -BEGIN; -INSERT INTO `customer` (`id`, `name`, `source`, `phone`, `email`, `industry`, `level`, `remarks`, `region`, `address`, `status`, `creator`, `created`, `updated`) VALUES (63, '河南中通有限公司', '搜索引擎', '13302308800', '1220080@163.com', '互联网', '普通客户', '宣传页分发附着交通工具宣传', '河南省,郑州市,金水区', '绿地之窗尚峰座', 1, 29, 1671192173, 0); -INSERT INTO `customer` (`id`, `name`, `source`, `phone`, `email`, `industry`, `level`, `remarks`, `region`, `address`, `status`, `creator`, `created`, `updated`) VALUES (64, '可望企业股份有限公司', '电话咨询', '15133905680', '28033056@qq.com', '金融业', '重点客户', '现有客户引荐', '北京市,朝阳区', '黄厂路豆各庄2号', 1, 29, 1671192269, 0); -COMMIT; +DROP TABLE IF EXISTS `mail_config`; +CREATE TABLE `mail_config` ( + `id` bigint NOT NULL AUTO_INCREMENT COMMENT '编号', + `stmp` char(50) DEFAULT NULL COMMENT 'ip地址或域名', + `port` int DEFAULT NULL COMMENT '端口号', + `auth_code` char(80) DEFAULT NULL COMMENT '授权码', + `email` char(80) NOT NULL COMMENT '邮箱账号', + `status` tinyint DEFAULT NULL COMMENT '服务状态', + `creator` bigint DEFAULT NULL COMMENT '创建人', + `created` bigint DEFAULT NULL COMMENT '创建时间', + `updated` bigint DEFAULT NULL COMMENT '更新时间', + PRIMARY KEY (`id`), + KEY `idx_creator` (`creator`) +) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb3; -- ---------------------------- -- Table structure for notice @@ -90,7 +92,7 @@ CREATE TABLE `notice` ( `updated` bigint DEFAULT NULL COMMENT '更新时间', PRIMARY KEY (`id`), KEY `idx_creator` (`creator`) -) ENGINE=InnoDB AUTO_INCREMENT=41 DEFAULT CHARSET=utf8mb3; +) ENGINE=InnoDB AUTO_INCREMENT=116 DEFAULT CHARSET=utf8mb3; -- ---------------------------- -- Table structure for product @@ -112,14 +114,6 @@ CREATE TABLE `product` ( KEY `idx_creator` (`creator`) ) ENGINE=InnoDB AUTO_INCREMENT=100 DEFAULT CHARSET=utf8mb3; --- ---------------------------- --- Records of product --- ---------------------------- -BEGIN; -INSERT INTO `product` (`id`, `name`, `type`, `unit`, `code`, `price`, `description`, `status`, `creator`, `created`, `updated`) VALUES (98, '电动车', 1, '台', '004', 1498.00, '代驾折叠电动车电动自行车成人代步外卖锂电池小型轻便电瓶车迷你便携电单车 G2/汽车电芯-能量回收-6Ah约60km', 1, 29, 1671191995, 0); -INSERT INTO `product` (`id`, `name`, `type`, `unit`, `code`, `price`, `description`, `status`, `creator`, `created`, `updated`) VALUES (99, '跑步机', 1, '台', '003', 1599.00, '跑步机家用智能可折叠免安装室内健身多功能走步机64CM宽大跑台', 2, 29, 1671192053, 0); -COMMIT; - -- ---------------------------- -- Table structure for subscribe -- ---------------------------- @@ -135,13 +129,6 @@ CREATE TABLE `subscribe` ( KEY `idx_uid` (`uid`) ) ENGINE=InnoDB AUTO_INCREMENT=4 DEFAULT CHARSET=utf8mb3; --- ---------------------------- --- Records of subscribe --- ---------------------------- -BEGIN; -INSERT INTO `subscribe` (`id`, `uid`, `version`, `expired`, `created`, `updated`) VALUES (3, 29, 1, 0, 1671191625, 1671191817); -COMMIT; - -- ---------------------------- -- Table structure for user -- ---------------------------- @@ -157,11 +144,4 @@ CREATE TABLE `user` ( PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8mb3; --- ---------------------------- --- Records of user --- ---------------------------- -BEGIN; -INSERT INTO `user` (`id`, `email`, `password`, `name`, `status`, `created`, `updated`) VALUES (29, '1655064994@qq.com', '$2a$10$62yO.fxSfNlstacxZfTtdO2uuR9YKG6hykuVTBIMc06CEJ3BWW/Ny', '', 1, 1671191625, 0); -COMMIT; - SET FOREIGN_KEY_CHECKS = 1;