refactor: customer structure

This commit is contained in:
Methapon Metanipat 2024-09-13 13:27:12 +07:00
parent eaf8ce3fd1
commit 4dee7bfe71
4 changed files with 156 additions and 79 deletions

View file

@ -420,22 +420,6 @@ model Customer {
id String @id @default(cuid())
customerType CustomerType
telephoneNo String
namePrefix String?
firstName String?
firstNameEN String?
lastName String?
lastNameEN String?
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)
@ -464,8 +448,18 @@ model CustomerBranch {
code String
codeCustomer String
telephoneNo String
// NOTE: About (Natural Person)
citizenId String?
namePrefix String?
firstName String?
firstNameEN String?
lastName String?
lastNameEN String?
gender String?
birthDate DateTime? @db.Date
citizenId String?
// NOTE: About (Legal Entity)
legalPersonNo String?
registerName String?
@ -496,7 +490,6 @@ model CustomerBranch {
email String
contactName String
telephoneNo String
employmentOffice String
businessType String