From 85a994cd5bb0e6d15b9ba27ad6effeca8ba3cd7d Mon Sep 17 00:00:00 2001 From: Stormeye Wu Date: Thu, 19 Sep 2019 13:30:40 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=8D=A1=E5=88=B8][=E4=BF=AE=E6=94=B9]:?= =?UTF-8?q?=E5=8D=A1=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/db/migration/V201909170210__COUPON_PASSWORD.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mallinkAdmin/src/main/resources/db/migration/V201909170210__COUPON_PASSWORD.sql b/mallinkAdmin/src/main/resources/db/migration/V201909170210__COUPON_PASSWORD.sql index c571d89e2..a24c03f4b 100644 --- a/mallinkAdmin/src/main/resources/db/migration/V201909170210__COUPON_PASSWORD.sql +++ b/mallinkAdmin/src/main/resources/db/migration/V201909170210__COUPON_PASSWORD.sql @@ -2,12 +2,14 @@ DROP TABLE IF EXISTS wx_coupon_password; CREATE TABLE wx_coupon_password( `id` bigint(20) NOT NULL COMMENT '主键ID', `tenant_id` varchar(10) NOT NULL COMMENT '租户ID', - `coupon_id` bigint(20) NOT NULL COMMENT '卡ID', + `coupon_id` bigint(20) NOT NULL COMMENT '卡券ID', + `coupon_short` VARCHAR(2) NULL COMMENT '券短ID', `password` varchar(50) NOT NULL COMMENT '商户名称', `status` smallint(2) NOT NULL COMMENT '卡密状态: 0初始1信息发出中2信息已发出3已使用', `sended_phone` varchar(20) NULL COMMENT '卡密发送到手机', `card_id` bigint(20) NULL COMMENT '卡包ID', `create_date` datetime NOT NULL COMMENT '创建时间', `update_date` datetime NOT NULL COMMENT '更新时间', + `expire_date` datetime NULL COMMENT '卡密过期时间(默认发送后一个月内过期)', PRIMARY KEY (`id`) ) ENGINE=`InnoDB` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci ROW_FORMAT=DYNAMIC COMMENT='卡券领取密码' CHECKSUM=0 DELAY_KEY_WRITE=0; \ No newline at end of file