feat: customer branch citizen

This commit is contained in:
Methapon Metanipat 2024-09-17 10:57:42 +07:00
parent b12babdc09
commit a0168ee4fb
4 changed files with 254 additions and 0 deletions

View file

@ -527,6 +527,12 @@ model CustomerBranch {
employee Employee[]
quotation Quotation[]
citizen CustomerBranchCitizen[]
poa CustomerBranchPoa[]
houseRegis CustomerBranchHouseRegis[]
commercialRegis CustomerBranchCommercialRegis[]
vatRegis CustomerBranchVatRegis[]
}
model CustomerBranchCitizen {
@ -560,12 +566,18 @@ model CustomerBranchCitizen {
subDistrictId String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
customerBranchId String
customerBranch CustomerBranch @relation(fields: [customerBranchId], references: [id])
}
model CustomerBranchPoa {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
customerBranchId String
customerBranch CustomerBranch @relation(fields: [customerBranchId], references: [id])
}
model CustomerBranchHouseRegis {
@ -616,6 +628,9 @@ model CustomerBranchHouseRegis {
fatherNationality String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
customerBranchId String
customerBranch CustomerBranch @relation(fields: [customerBranchId], references: [id])
}
enum CommercialType {
@ -635,12 +650,18 @@ model CustomerBranchCommercialRegis {
romanLetter String?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
customerBranchId String
customerBranch CustomerBranch @relation(fields: [customerBranchId], references: [id])
}
model CustomerBranchVatRegis {
id String @id @default(cuid())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
customerBranchId String
customerBranch CustomerBranch @relation(fields: [customerBranchId], references: [id])
}
model Employee {