diff --git a/superpowers/plans/2026-06-07-multi-login-social-login-plan.md b/superpowers/plans/2026-06-07-multi-login-social-login-plan.md index 69b54c8..2f80fff 100644 --- a/superpowers/plans/2026-06-07-multi-login-social-login-plan.md +++ b/superpowers/plans/2026-06-07-multi-login-social-login-plan.md @@ -47,7 +47,7 @@ **Files:** - Modify: `sql/init-database.sql` -- [ ] **Step 1: 在 `rui_uc_user` 表添加 email 字段** +- [x] **Step 1: 在 `rui_uc_user` 表添加 email 字段** 在 `rui_uc_user` 表的 `phone` 字段后添加 `email` 字段: @@ -76,7 +76,7 @@ CREATE TABLE rui_uc_user ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户'; ``` -- [ ] **Step 2: 从 `rui_uc_user_detail` 表删除 email 字段** +- [x] **Step 2: 从 `rui_uc_user_detail` 表删除 email 字段** 修改 `rui_uc_user_detail` 表定义,删除 `email` 字段: @@ -105,7 +105,7 @@ CREATE TABLE rui_uc_user_detail ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户详情'; ``` -- [ ] **Step 3: 新增 `rui_uc_user_social` 表** +- [x] **Step 3: 新增 `rui_uc_user_social` 表** 在 `rui_sys_login_log` 表之前添加: @@ -132,7 +132,7 @@ CREATE TABLE rui_uc_user_social ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='用户第三方账号关联'; ``` -- [ ] **Step 4: Commit** +- [x] **Step 4: Commit** ```bash git add sql/init-database.sql @@ -143,6 +143,8 @@ git commit -m "feat(db): 添加第三方登录支持的数据库变更 - 新增 rui_uc_user_social 第三方账号关联表" ``` +> **实际执行说明 (2026-06-07)**:email 字段位置在 init-database.sql 中改为 `AFTER username`(plan 写的是 `AFTER phone`,但当前 state rui_uc_user 表无 phone 字段;与 `sql/upgrade-v2.x-add-phone-to-user.sql` 的 `AFTER username` 惯例保持一致)。另有 init-database.sql 未反映 phone 迁移的 gap(见最终报告)。 + --- ## Task 2: rui-service-user 实体类调整