完善管理师预约项目与美甲师创建

This commit is contained in:
2026-06-24 20:54:41 +08:00
parent 03c972d90c
commit eda109cb62
28 changed files with 911 additions and 32 deletions
@@ -0,0 +1,46 @@
USE `FingertipDesigner`;
SET @front_visible_exists := (
SELECT COUNT(*)
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = DATABASE()
AND TABLE_NAME = 't_product'
AND COLUMN_NAME = 'front_visible'
);
SET @add_front_visible_sql := IF(
@front_visible_exists = 0,
'ALTER TABLE `t_product` ADD COLUMN `front_visible` tinyint NOT NULL DEFAULT 1 COMMENT ''前台是否展示:0-隐藏,1-展示'' AFTER `available_coupons`',
'SELECT 1'
);
PREPARE add_front_visible_stmt FROM @add_front_visible_sql;
EXECUTE add_front_visible_stmt;
DEALLOCATE PREPARE add_front_visible_stmt;
SET @source_type_exists := (
SELECT COUNT(*)
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_SCHEMA = DATABASE()
AND TABLE_NAME = 't_product'
AND COLUMN_NAME = 'source_type'
);
SET @add_source_type_sql := IF(
@source_type_exists = 0,
'ALTER TABLE `t_product` ADD COLUMN `source_type` varchar(64) NOT NULL DEFAULT ''BACKEND'' COMMENT ''来源类型:BACKEND-后台维护,MANAGER_APPOINTMENT-管理师端手动预约'' AFTER `front_visible`',
'SELECT 1'
);
PREPARE add_source_type_stmt FROM @add_source_type_sql;
EXECUTE add_source_type_stmt;
DEALLOCATE PREPARE add_source_type_stmt;
UPDATE `t_product`
SET `front_visible` = 1
WHERE `front_visible` IS NULL;
UPDATE `t_product`
SET `source_type` = 'BACKEND'
WHERE `source_type` IS NULL
OR `source_type` = '';