serv\web- 多租户修改
This commit is contained in:
@@ -38,7 +38,7 @@ CREATE TABLE `tb_achievement` (
|
||||
KEY `idx_condition_type` (`condition_type`),
|
||||
KEY `idx_deleted` (`deleted`),
|
||||
KEY `idx_create_time` (`create_time`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='成就定义表';
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='成就定义表';
|
||||
|
||||
-- =============================================
|
||||
-- 2. 用户成就表 (tb_user_achievement)
|
||||
@@ -56,7 +56,7 @@ CREATE TABLE `tb_user_achievement` (
|
||||
KEY `idx_user_id` (`user_id`),
|
||||
KEY `idx_achievement_id` (`achievement_id`),
|
||||
KEY `idx_obtain_time` (`obtain_time`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户成就表';
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用户成就表';
|
||||
|
||||
-- =============================================
|
||||
-- 3. 用户成就进度表 (tb_user_achievement_progress)
|
||||
@@ -80,7 +80,7 @@ CREATE TABLE `tb_user_achievement_progress` (
|
||||
KEY `idx_achievement_id` (`achievement_id`),
|
||||
KEY `idx_completed` (`completed`),
|
||||
KEY `idx_last_update_time` (`last_update_time`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='用户成就进度表';
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用户成就进度表';
|
||||
|
||||
-- =============================================
|
||||
-- 初始化成就数据
|
||||
@@ -93,14 +93,6 @@ CREATE TABLE `tb_user_achievement_progress` (
|
||||
-- 学习时长类成就
|
||||
-- =============================================
|
||||
|
||||
INSERT INTO `tb_achievement` (`id`, `achievement_id`, `name`,`icon`, `description`, `type`, `level`, `condition_type`, `condition_value`, `points`, `order_num`, `deleted`) VALUES
|
||||
('ACH001', 'learning_time_l1', '初学者', 'v1-icon.svg', '累计学习时长达到10小时', 1, 1, 1, 10*60*60, 10, 1, 0),
|
||||
('ACH002', 'learning_time_l2', '勤学者', 'v2-icon.svg', '累计学习时长达到50小时', 1, 2, 1, 50*60*60, 50, 2, 0),
|
||||
('ACH003', 'learning_time_l3', '学习达人', 'v3-icon.svg', '累计学习时长达到100小时', 1, 3, 1, 100*60*60, 100, 3, 0),
|
||||
('ACH004', 'learning_time_l4', '学习狂人', 'v4-icon.svg', '累计学习时长达到500小时', 1, 4, 1, 500*60*60, 500, 4, 0),
|
||||
('ACH005', 'learning_time_l5', '学习大师', 'v5-icon.svg', '累计学习时长达到1000小时', 1, 5, 1, 1000*60*60, 1000, 5, 0),
|
||||
('ACH006', 'learning_time_l6', '学习宗师', 'v6-icon.svg', '累计学习时长达到2000小时', 1, 6, 1, 2000*60*60, 2000, 6, 0);
|
||||
|
||||
-- -- =============================================
|
||||
-- -- 课程完成类成就
|
||||
-- -- =============================================
|
||||
|
||||
Reference in New Issue
Block a user