feat: foreign address
This commit is contained in:
parent
6c350b12ce
commit
236ee48eab
2 changed files with 21 additions and 6 deletions
|
|
@ -398,14 +398,21 @@ model User {
|
|||
street String?
|
||||
streetEN String?
|
||||
|
||||
province Province? @relation(fields: [provinceId], references: [id], onDelete: SetNull)
|
||||
provinceId String?
|
||||
addressForeign Boolean @default(false)
|
||||
|
||||
district District? @relation(fields: [districtId], references: [id], onDelete: SetNull)
|
||||
districtId String?
|
||||
provinceText String?
|
||||
province Province? @relation(fields: [provinceId], references: [id], onDelete: SetNull)
|
||||
provinceId String?
|
||||
|
||||
subDistrict SubDistrict? @relation(fields: [subDistrictId], references: [id], onDelete: SetNull)
|
||||
subDistrictId String?
|
||||
districtText String?
|
||||
district District? @relation(fields: [districtId], references: [id], onDelete: SetNull)
|
||||
districtId String?
|
||||
|
||||
subDistrictText String?
|
||||
subDistrict SubDistrict? @relation(fields: [subDistrictId], references: [id], onDelete: SetNull)
|
||||
subDistrictId String?
|
||||
|
||||
zipCodeText String?
|
||||
|
||||
email String
|
||||
telephoneNo String
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue