feat: complete login and user management flow

This commit is contained in:
hectorzhao
2026-07-02 16:28:48 +08:00
parent 9c639d54b9
commit e26d8324c3
22 changed files with 1320 additions and 300 deletions
+6
View File
@@ -65,9 +65,15 @@ model User {
id String @id @default(cuid())
tenantId String?
username String @unique
email String? @unique
phone String? @unique
displayName String
passwordHash String
status String @default("active")
failedLoginCount Int @default(0)
lockedUntil DateTime?
lastLoginAt DateTime?
deletedAt DateTime?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt