Commit 78c28152 by mercymodest

feat:- add yoga sql

parent bc042978
# CREATE TABLE `api_client_credentials`
# CREATE TABLE `api_client_credentials`
......@@ -162,11 +162,63 @@ alter table member_extension_info
add constraint member_extension_info_pk
unique (user_uuid);
alter table store_staff
alter table user_card
add coach_name varchar(30) null comment '授课教练名称 store_staff#name';
alter table store_staff
alter table user_card
add coach_uuid BIGINT null comment '授课教练uuid store_staff#uuid';
CREATE TABLE `user_card_fee_extension` (
`user_card_fee_extension_id` BIGINT NOT NULL COMMENT '会员卡费用拓展信息ID,使用雪花算法生成',
`user_card_uuid` BIGINT NOT NULL COMMENT '会员卡UUID',
`coach_uuid` BIGINT NOT NULL COMMENT '教练UUID store_staff#uuid',
`coach_name` VARCHAR(30) NOT NULL COMMENT '教练名称 store_staff#name',
`mobile` VARCHAR(20) NULL COMMENT '教练手机号',
`gender` TINYINT(1) NULL COMMENT '教练性别 1男2女;3-未知',
`coach_commission_rate` DECIMAL(5, 2) NOT NULL COMMENT '教练提成比例,单位为百分比',
`coach_commission_amount` DECIMAL(10, 2) NOT NULL COMMENT '教练提成金额',
`created_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP COMMENT '记录创建时间',
`updated_at` TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '记录更新时间',
PRIMARY KEY (`user_card_fee_extension_id`),
INDEX `idx_member_card_uuid` (`user_card_uuid`),
INDEX `idx_coach_uuid` (`coach_uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='会员卡费用拓展信息表';
alter table user_card
add upload_voucher text null comment '上传凭证';
alter table store
add user_show_status tinyint(1) default 1 null comment '用户端显示状态 0:不显示 1:显示 默认 1';
alter table store
add card_audit_status tinyint(1) default 1 null comment '会员卡审核状态 0:不审核 1:审核 默认 1';
-- 表:user_card_audit_log
-- 会员卡审核记录
CREATE TABLE user_card_audit_log
(
user_card_audit_log_id BIGINT PRIMARY KEY COMMENT '会员卡审核记录ID,采用雪花算法生成',
user_id BIGINT NOT NULL COMMENT '用户ID',
user_card_uuid BIGINT NOT NULL COMMENT '用户卡UUID',
record_id BIGINT NOT NULL COMMENT '记录ID,同一条审核记录ID相同',
step TINYINT NOT NULL COMMENT '审核步骤:0:待审核,2:审核通过,3:审核拒绝',
remarks VARCHAR(200) COMMENT '备注',
operate_time DATETIME NULL COMMENT '操作时间',
operate_uuid CHAR(36) NOT NULL COMMENT '操作人UUID',
operate_name VARCHAR(255) NOT NULL COMMENT '操作人名称',
create_time datetime default CURRENT_TIMESTAMP null COMMENT '创建时间',
update_time datetime default CURRENT_TIMESTAMP null on update CURRENT_TIMESTAMP COMMENT '更新时间'
) COMMENT ='会员卡审核记录表';
alter table user_card
add audit_status tinyint(1) default 1 null comment '会员卡审核状态:0:待审核 1:审核通过 2:审核驳回 default:1';
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