feat: foreign address

This commit is contained in:
Methapon2001 2025-07-16 09:38:30 +07:00
parent 6c350b12ce
commit 236ee48eab
2 changed files with 21 additions and 6 deletions

View file

@ -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