保存客户与员工排班改造阶段成果
This commit is contained in:
@@ -93,6 +93,10 @@ CALL salon_v8_add_column_if_missing(
|
||||
't_user', 'active_customer_identity_hash',
|
||||
'char(64) GENERATED ALWAYS AS (CASE WHEN type = 0 AND COALESCE(is_delete, 0) = 0 THEN customer_identity_hash ELSE NULL END) STORED COMMENT ''有效客户组合身份索引'''
|
||||
);
|
||||
CALL salon_v8_add_column_if_missing(
|
||||
't_user', 'active_service_phone_hash',
|
||||
'char(64) GENERATED ALWAYS AS (CASE WHEN type <> 0 AND COALESCE(is_delete, 0) = 0 THEN phone_hash ELSE NULL END) STORED COMMENT ''有效員工和管理員手机号唯一索引'''
|
||||
);
|
||||
CALL salon_v8_add_column_if_missing(
|
||||
't_nail_artist_info', 'color',
|
||||
'varchar(7) NULL COMMENT ''美甲师规划专属颜色'''
|
||||
@@ -103,6 +107,9 @@ CALL salon_v8_add_index_if_missing('t_user', 'idx_user_phone_hash', '(`phone_has
|
||||
CALL salon_v8_add_unique_index_if_missing(
|
||||
't_user', 'uk_user_active_customer_identity_hash', '(`active_customer_identity_hash`)'
|
||||
);
|
||||
CALL salon_v8_add_unique_index_if_missing(
|
||||
't_user', 'uk_user_active_service_phone_hash', '(`active_service_phone_hash`)'
|
||||
);
|
||||
|
||||
DROP PROCEDURE IF EXISTS salon_v8_add_column_if_missing;
|
||||
DROP PROCEDURE IF EXISTS salon_v8_add_index_if_missing;
|
||||
|
||||
Reference in New Issue
Block a user