记得上下班打卡 | git大法好,push需谨慎

Commit 9d7d3b13 authored by 张国柄's avatar 张国柄

+++

parent 72c255f7
......@@ -110,18 +110,19 @@ create unique index uidx_candy_coupon_rule_id on candy_coupon_rule (crule_id);
drop table if exists candy_coupon_code;
create table candy_coupon_code
(
mid bigint unsigned auto_increment primary key,
ccode varchar(64) not null comment '券码',
coupon_id varchar(64) not null comment '~candy_coupon.coupon_id',
state tinyint comment '状态[0-未使用|1-已使用|2-失效|3-退回]',
mid bigint unsigned auto_increment primary key,
ccode varchar(64) not null comment '券码',
coupon_id varchar(64) not null comment '~candy_coupon.coupon_id',
state tinyint comment '状态[0-未使用|1-已使用|2-失效|3-退回]',
redeem_uid varchar(64) comment '兑换用户UID',
redeem_uid varchar(64) comment '兑换用户UID',
redeem_mobile varchar(64) comment '兑换用户手机号',
created_at datetime(3) not null,
updated_at datetime(3),
redeem_at datetime(3) comment '兑换时间',
redeem_at datetime(3) comment '兑换时间',
created_at datetime(3) not null,
updated_at datetime(3),
comment varchar(255)
comment varchar(255)
) engine = InnoDB comment '券码信息';
create unique index uidx_candy_coupon_code_id on candy_coupon_code (ccode);
......@@ -145,4 +146,4 @@ create table candy_user_coupon
) engine = InnoDB comment '用户券信息';
create unique index uidx_candy_user_coupon_id on candy_user_coupon (ucoupon_id);
create index idx_candy_ucoupon_uid_state on candy_user_coupon (uid, state);
-- >>------------------------------------------------------------------------------------
\ No newline at end of file
-- >>------------------------------------------------------------------------------------
......@@ -43,16 +43,20 @@ public class CandyCouponCode implements Serializable {
* 兑换用户UID
*/
private String redeemUid;
private LocalDateTime createdAt;
private LocalDateTime updatedAt;
/**
* 兑换用户手机号
*/
private String redeemMobile;
/**
* 兑换时间
*/
private LocalDateTime redeemAt;
private LocalDateTime createdAt;
private LocalDateTime updatedAt;
private String comment;
......
......@@ -85,18 +85,19 @@ create unique index uidx_candy_coupon_rule_id on candy_coupon_rule (crule_id);
drop table if exists candy_coupon_code;
create table candy_coupon_code
(
mid bigint unsigned auto_increment primary key,
ccode varchar(64) not null comment '券码',
coupon_id varchar(64) not null comment '~candy_coupon.coupon_id',
state tinyint comment '状态[0-未使用|1-已使用|2-失效|3-退回]',
mid bigint unsigned auto_increment primary key,
ccode varchar(64) not null comment '券码',
coupon_id varchar(64) not null comment '~candy_coupon.coupon_id',
state tinyint comment '状态[0-未使用|1-已使用|2-失效|3-退回]',
redeem_uid varchar(64) comment '兑换用户UID',
redeem_uid varchar(64) comment '兑换用户UID',
redeem_mobile varchar(64) comment '兑换用户手机号',
created_at datetime(3) not null,
updated_at datetime(3),
redeem_at datetime(3) comment '兑换时间',
redeem_at datetime(3) comment '兑换时间',
created_at datetime(3) not null,
updated_at datetime(3),
comment varchar(255)
comment varchar(255)
) engine = InnoDB comment '券码信息';
create unique index uidx_candy_coupon_code_id on candy_coupon_code (ccode);
......@@ -121,6 +122,7 @@ create table candy_user_coupon
create unique index uidx_candy_user_coupon_id on candy_user_coupon (ucoupon_id);
create index idx_candy_ucoupon_uid_state on candy_user_coupon (uid, state);
-- >>------------------------------------------------------------------------------------
-- >>------------------------------------------------------------------------------------
-- >>------------------------------------------------------------------------------------
-- >>------------------------------------------------------------------------------------
......
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 to comment