feat: add bank to branch payload (optional)

This commit is contained in:
Methapon2001 2024-08-02 14:53:54 +07:00
parent ef1f404779
commit 3e4709d8ff
3 changed files with 41 additions and 2 deletions

View file

@ -217,6 +217,8 @@ model Branch {
headOffice Branch? @relation(name: "HeadOfficeRelation", fields: [headOfficeId], references: [id])
headOfficeId String?
bank BranchBank[]
status Status @default(CREATED)
statusOrder Int @default(0)
@ -236,6 +238,16 @@ model Branch {
customerRegistration Customer[]
}
model BranchBank {
id String @id @default(uuid())
bankName String
accountName String
accountNumber String
branch Branch? @relation(fields: [branchId], references: [id])
branchId String?
}
model BranchContact {
id String @id @default(uuid())
telephoneNo String