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

Commit fd1f6c92 authored by 张国柄's avatar 张国柄

~sql:会员码管理:批次;

parent 418a101c
...@@ -137,6 +137,7 @@ create table adam_user_busi_acct ...@@ -137,6 +137,7 @@ create table adam_user_busi_acct
) engine = InnoDB comment '用户业务服务账号表'; ) engine = InnoDB comment '用户业务服务账号表';
create index idx_adam_user_busi_acct_uid on adam_user_busi_acct (uid); create index idx_adam_user_busi_acct_uid on adam_user_busi_acct (uid);
-- >>------------------------------------------------------------------------------------|20210924会员码管理 -- >>------------------------------------------------------------------------------------|20210924会员码管理
-- >>------------------------------------------------------------------------------------|20210924会员码管理
drop table if exists adam_member_code_batch; drop table if exists adam_member_code_batch;
create table adam_member_code_batch create table adam_member_code_batch
( (
...@@ -148,7 +149,7 @@ create table adam_member_code_batch ...@@ -148,7 +149,7 @@ create table adam_member_code_batch
member_combo varchar(80) comment '套餐包名称', member_combo varchar(80) comment '套餐包名称',
gen_num int comment '生成数量', gen_num int comment '生成数量',
use_num int comment '使用数量', use_num int comment '使用数量',
`describe` varchar(64) comment '描述', detail varchar(255) comment '描述',
validity int comment '有效期(单位天)', validity int comment '有效期(单位天)',
effect_at datetime(3) null comment '生效时间', effect_at datetime(3) null comment '生效时间',
expire_at datetime(3) null comment '失效时间', expire_at datetime(3) null comment '失效时间',
...@@ -161,6 +162,8 @@ create table adam_member_code_batch ...@@ -161,6 +162,8 @@ create table adam_member_code_batch
comment varchar(255) comment varchar(255)
) engine = InnoDB comment '会员码批次记录'; ) engine = InnoDB comment '会员码批次记录';
create index idx_adam_member_code_batch_no on adam_member_code_batch (batch_no); create index idx_adam_member_code_batch_no on adam_member_code_batch (batch_no);
alter table adam_member_code add batch_no int null comment '~`adam_member_code_batch.batch_no`' after mid;
# -- >>------------------------------------------------------------------------------------ |20210817会员与券改版 # -- >>------------------------------------------------------------------------------------ |20210817会员与券改版
# 券发放管理 # 券发放管理
drop table if exists candy_mgt_coupon; drop table if exists candy_mgt_coupon;
......
...@@ -446,7 +446,7 @@ create table adam_member_code_batch ...@@ -446,7 +446,7 @@ create table adam_member_code_batch
member_combo varchar(80) comment '套餐包名称', member_combo varchar(80) comment '套餐包名称',
gen_num int comment '生成数量', gen_num int comment '生成数量',
use_num int comment '使用数量', use_num int comment '使用数量',
`describe` varchar(64) comment '描述', detail varchar(255) comment '描述',
validity int comment '有效期(单位天)', validity int comment '有效期(单位天)',
effect_at datetime(3) null comment '生效时间', effect_at datetime(3) null comment '生效时间',
expire_at datetime(3) null comment '失效时间', expire_at datetime(3) null comment '失效时间',
...@@ -459,5 +459,7 @@ create table adam_member_code_batch ...@@ -459,5 +459,7 @@ create table adam_member_code_batch
comment varchar(255) comment varchar(255)
) engine = InnoDB comment '会员码批次记录'; ) engine = InnoDB comment '会员码批次记录';
create index idx_adam_member_code_batch_no on adam_member_code_batch (batch_no); create index idx_adam_member_code_batch_no on adam_member_code_batch (batch_no);
alter table adam_member_code add batch_no int null comment '~`adam_member_code_batch.batch_no`' after mid;
-- >>------------------------------------------------------------------------------------ -- >>------------------------------------------------------------------------------------
-- >>------------------------------------------------------------------------------------ -- >>------------------------------------------------------------------------------------
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