Commit 27f545e2 by mercymodest

feat:- add sql

parent 19b8c296
# CREATE TABLE `api_client_credentials`
# CREATE TABLE `api_client_credentials`
......@@ -334,6 +334,28 @@
# alter table user_card
# drop column validity_unit;
# 2024-08-20 ---
CREATE TABLE `user_card_coach` (
`uuid` bigint(20) NOT NULL COMMENT '主键',
`coach_uuid` bigint(20) NOT NULL COMMENT '教练UUID store_staff#uuid',
`coach_name` varchar(30) NOT NULL COMMENT '教练名称 store_staff#name',
`user_card_uuid` bigint(20) NOT NULL COMMENT '会员卡UUID user_card#uuid',
`is_delete` tinyint(1) UNSIGNED NOT NULL DEFAULT 0 COMMENT '是否删除 0:未删除 1:已删除',
`create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`uuid`),
UNIQUE KEY `uk_coach_user_card` (`coach_uuid`, `user_card_uuid`),
KEY `idx_user_card_uuid` (`user_card_uuid`),
KEY `idx_coach_uuid` (`coach_uuid`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='会员卡授课教练信息';
alter table user_card
modify coach_name text null comment '授课教练名称,多教练英文逗号分隔 store_staff#name';
alter table user_card
modify coach_uuid text null comment '授课教练uuid,多教练英文逗号分隔 store_staff#uuid';
......
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