db:更新用户表结构支持邮箱验证

- 在用户实体中添加 email_verified 字段
- 更新用户DTO支持邮箱验证状态
- 修改用户服务支持邮箱验证状态更新
- 添加按邮箱查找用户的方法
- 更新相关的单元测试
This commit is contained in:
moyin
2025-12-17 20:21:53 +08:00
parent eb7a022f5b
commit 8436fb10b8
4 changed files with 46 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ describe('Users Entity, DTO and Service Tests', () => {
github_id: 'github_123',
avatar_url: 'https://example.com/avatar.jpg',
role: 1,
email_verified: false,
created_at: new Date(),
updated_at: new Date(),
};