refactor!: change branch to registered branch scope
This commit is contained in:
parent
20b7e56a0d
commit
63a204b81a
3 changed files with 29 additions and 23 deletions
|
|
@ -258,6 +258,7 @@ model Branch {
|
|||
|
||||
customerRegistration Customer[]
|
||||
productGroup ProductGroup[]
|
||||
quotation Quotation[]
|
||||
}
|
||||
|
||||
model BranchBank {
|
||||
|
|
@ -1090,6 +1091,9 @@ enum PayCondition {
|
|||
model Quotation {
|
||||
id String @id @default(cuid())
|
||||
|
||||
registeredBranch Branch @relation(fields: [registeredBranchId], references: [id])
|
||||
registeredBranchId String
|
||||
|
||||
customerBranchId String
|
||||
customerBranch CustomerBranch @relation(fields: [customerBranchId], references: [id])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue