feat: add fields customer

This commit is contained in:
Methapon Metanipat 2024-09-12 15:08:07 +07:00
parent 20725b0357
commit 2f85dab0a3
2 changed files with 56 additions and 35 deletions

View file

@ -420,20 +420,28 @@ model Customer {
id String @id @default(cuid())
customerType CustomerType
telephoneNo String
namePrefix String?
firstName String
firstName String?
firstNameEN String?
lastName String
lastName String?
lastNameEN String?
gender String
birthDate DateTime @db.Date
gender String?
birthDate DateTime? @db.Date
citizenId String?
legalPersonNo String?
registerName String?
registerNameEN String?
businessType String?
jobPosition String?
status Status @default(CREATED)
statusOrder Int @default(0)
registeredBranchId String?
registeredBranch Branch? @relation(fields: [registeredBranchId], references: [id])
registeredBranchId String
registeredBranch Branch @relation(fields: [registeredBranchId], references: [id])
selectedImage String?