feat: add address fields

This commit is contained in:
Methapon Metanipat 2024-09-11 15:06:27 +07:00
parent 730ebd6907
commit a7cafd25d0
8 changed files with 209 additions and 206 deletions

View file

@ -190,10 +190,18 @@ model Branch {
taxNo String
name String
nameEN String
address String
addressEN String
telephoneNo String
address String
addressEN String
soi String?
soiEN String?
moo String?
mooEN String?
street String?
streetEN String?
province Province? @relation(fields: [provinceId], references: [id], onDelete: SetNull)
provinceId String?
@ -203,8 +211,6 @@ model Branch {
subDistrict SubDistrict? @relation(fields: [subDistrictId], references: [id], onDelete: SetNull)
subDistrictId String?
zipCode String
email String
contactName String?
lineId String?
@ -304,6 +310,13 @@ model User {
address String
addressEN String
soi String?
soiEN String?
moo String?
mooEN String?
street String?
streetEN String?
province Province? @relation(fields: [provinceId], references: [id], onDelete: SetNull)
provinceId String?
@ -313,8 +326,6 @@ model User {
subDistrict SubDistrict? @relation(fields: [subDistrictId], references: [id], onDelete: SetNull)
subDistrictId String?
zipCode String
email String
telephoneNo String
@ -329,6 +340,10 @@ model User {
userType UserType
userRole String
// citizenId String?
// citizenIssue DateTime? @db.Date
// citizenExpire DateTime? @db.Date
discountCondition String?
licenseNo String?
@ -451,6 +466,13 @@ model CustomerBranch {
address String
addressEN String
soi String?
soiEN String?
moo String?
mooEN String?
street String?
streetEN String?
province Province? @relation(fields: [provinceId], references: [id], onDelete: SetNull)
provinceId String?
@ -509,6 +531,13 @@ model Employee {
address String?
addressEN String?
soi String?
soiEN String?
moo String?
mooEN String?
street String?
streetEN String?
province Province? @relation(fields: [provinceId], references: [id], onDelete: SetNull)
provinceId String?