feat: customer branch citizen
This commit is contained in:
parent
b12babdc09
commit
a0168ee4fb
4 changed files with 254 additions and 0 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue