feat(auth): 强制要求 username 并- 添加 hooks 验证 username 必填

- 修改 schema: username 改为 NOT NULL
- 重置本地和生产数据库
This commit is contained in:
2026-03-10 09:45:15 +08:00
parent 5406543cbe
commit d9fd09c13d
12 changed files with 277 additions and 455 deletions

View File

@@ -16,7 +16,7 @@ model User {
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
displayUsername String?
username String? @unique
username String @unique
accounts Account[]
dictionaryLookUps DictionaryLookUp[]
folders Folder[]