db:更新用户表结构支持邮箱验证
- 在用户实体中添加 email_verified 字段 - 更新用户DTO支持邮箱验证状态 - 修改用户服务支持邮箱验证状态更新 - 添加按邮箱查找用户的方法 - 更新相关的单元测试
This commit is contained in:
@@ -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(),
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user