From f86556a08758673b0fb2ebcd9570294d07565708 Mon Sep 17 00:00:00 2001 From: Anyon <zoujingli@qq.com> Date: Wed, 18 Sep 2019 09:46:47 +0800 Subject: [PATCH] Update admin_v5.sql --- admin_v5.sql | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/admin_v5.sql b/admin_v5.sql index 7b90d8c90..3129448f7 100644 --- a/admin_v5.sql +++ b/admin_v5.sql @@ -342,17 +342,18 @@ CREATE TABLE `store_member_address` ( -- Table structure for store_member_sms_history -- ---------------------------- DROP TABLE IF EXISTS `store_member_sms_history`; -CREATE TABLE `store_member_sms_history` ( - `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, - `mid` bigint(20) UNSIGNED NULL DEFAULT 0 COMMENT '会员ID', - `phone` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '目标手机', - `content` varchar(512) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '短信内容', - `result` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '' COMMENT '返回结果', +CREATE TABLE `store_member_sms_history` ( + `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, + `mid` bigint(20) unsigned DEFAULT '0' COMMENT '会员ID', + `phone` varchar(20) DEFAULT '' COMMENT '目标手机', + `content` varchar(512) DEFAULT '' COMMENT '短信内容', + `region` varchar(100) DEFAULT '' COMMENT '区域编码', + `result` varchar(100) DEFAULT '' COMMENT '返回结果', `create_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', PRIMARY KEY (`id`) USING BTREE, - INDEX `index_store_member_sms_history_phone`(`phone`) USING BTREE, - INDEX `index_store_member_sms_history_mid`(`mid`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '会员-短信'; + KEY `index_store_member_sms_history_phone` (`phone`) USING BTREE, + KEY `index_store_member_sms_history_mid` (`mid`) USING BTREE +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='会员-短信'; -- ---------------------------- -- Table structure for store_order