Add phone and birthday fields to User model with admin editor

- Add phone/birthday columns via Prisma migration
- Admin user page shows phone and birthday with inline edit UI
- UserContactEditor client component for editing contact info
- updateUserContact server action with admin-only guard

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-27 16:43:35 +05:00
parent c64f393a7b
commit fdb9f96382
5 changed files with 149 additions and 1 deletions
+2
View File
@@ -18,6 +18,8 @@ model User {
emailVerified Boolean @default(false)
image String?
role String @default("student") // student | curator | admin
phone String?
birthday DateTime?
banned Boolean? @default(false)
banReason String?
banExpires DateTime?