景好勇win11 3 months ago
parent
commit
cf663d13c8

+ 15 - 13
doc/系统设计/数据库设计/物理模型/分析后台设计增加/03技师认证.sql

@@ -81,22 +81,24 @@ WHERE
 /* 技师基本信息视图 */
 DROP VIEW IF EXISTS v_coach_info;
 
-CREATE VIEW v_coach_info AS
+CREATE OR REPLACE VIEW v_coach_info AS
 SELECT
-    cir.id AS info_record_id /* 技师信息记录ID */,
+    cir.id AS id /* 记录ID */,
     cu.id AS coach_id /* 技师ID */,
-    cir.nickname AS nickname /* 技师昵称 */,
+    cir.nickname AS nickname /* 昵称 */,
     cir.gender AS gender /* 性别 */,
-    cir.mobile AS phone /* 手机号码 */,
-    cir.intention_city AS intention_city /* 期望城市 */,
+    cir.mobile AS mobile /* 手机号码 */,
+    cir.birthday AS birthday /* 出生日期 */,
+    cir.intention_city AS intention_city /* 意向城市 */,
     cir.introduction AS introduction /* 个人简介 */,
     cu.state AS coach_state /* 技师状态 */,
-    cir.state AS info_record_state /* 技师信息记录状态 */,
-    cir.portrait_images AS portrait_images /* 技师头像 */,
-    cir.life_photos AS life_photos /* 形象照 */,
+    cir.state AS info_record_state /* 审核状态 */,
+    cir.portrait_images AS avatar /* 头像图片 */,
+    cir.life_photos AS life_photos /* 生活照片数组 */,
     cir.auditor AS auditor /* 审核人 */,
     cir.audit_time AS audit_time /* 审核时间 */,
-    cir.audit_remark AS audit_remark /* 审核备注 */
+    cir.audit_remark AS audit_remark /* 审核备注 */,
+    cir.work_years AS work_years /* 工作年限 */
 FROM
     coach_info_records cir /* 技师基本信息记录 */
     LEFT JOIN coach_users cu ON cu.id = cir.coach_id /* 技师ID */
@@ -122,13 +124,13 @@ SELECT
     cir.mobile AS phone /* 技师手机号码 */,
     cir.intention_city AS intention_city /* 技师期望城市 */,
     cir.introduction AS introduction /* 技师个人简介 */,
-    cir.portrait_images AS portrait_images /* 技师头像 */,
-    cir.life_photos AS life_photos /* 技师形象照 */,
+    cir.portrait_images AS avatar /* 头像图片 */,
+    cir.life_photos AS life_photos /* 生活照片数组 */,
     cqr.business_license AS business_license /* 技师营业执照 */,
     cqr.health_cert AS health_certificate /* 技师健康证 */,
     cr.id_card_front_photo AS id_card_front_photo /* 技师身份证照片正面 */,
-    cr.id_card_back_photo AS id_card_back_photo /* 身份证照片反面 */,
-    cr.id_card_hand_photo AS id_card_hand_photo /* 身份证手持照片 */,
+    cr.id_card_back_photo AS id_card_back_photo /* 技师身份证照片反面 */,
+    cr.id_card_hand_photo AS id_card_hand_photo /* 技师身份证手持照片 */,
     cqr.auditor AS auditor /* 审核人 */,
     cqr.audit_time AS audit_time /* 审核时间 */,
     cqr.audit_remark AS audit_remark /* 审核备注 */