feat: enhance party user schema with address fields, update frontend form and API calls to use PartyUser naming convention

This commit is contained in:
louiscklaw
2025-06-17 19:59:09 +08:00
parent 834f9360ba
commit ae7f005236
5 changed files with 43 additions and 26 deletions

View File

@@ -1267,12 +1267,13 @@ model PartyUser {
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
//
name String?
username String? @unique
password String?
//
name String?
email String @unique
emailVerified DateTime?
password String?
image String?
avatarUrl String?
bucketImage String?
admin Boolean @default(false)
accounts Account[]
@@ -1283,4 +1284,10 @@ model PartyUser {
status String @default("pending")
role String @default("")
isVerified Boolean @default(false)
//
country String @default("")
state String @default("")
city String @default("")
address String @default("")
zipCode String @default("")
}

View File

@@ -5,16 +5,15 @@ Content-Type: application/json
{
"partyUserData": {
"createdAt": "2025-06-15T17:47:24.547Z",
"updatedAt": "2025-06-15T17:47:24.547Z",
"name": "Alice",
"name": "Alice 123321",
"username": null,
"email": "alice@prisma.io",
"email": "alice@123111321.io",
"emailVerified": "2025-06-15T17:47:23.919Z",
"password": "Aa12345678",
"image": null,
"bucketImage": null,
"admin": false,
"info": null
"info": null,
"phoneNumber": "+85291234567",
"avatarUrl": ""
}
}