feat: add bank field

This commit is contained in:
Methapon2001 2024-08-02 17:30:29 +07:00
parent 3e4709d8ff
commit 0bd3ce55a7
3 changed files with 34 additions and 3 deletions

View file

@ -44,8 +44,11 @@ type BranchCreate = {
bank?: {
bankName: string;
bankBranch: string;
accountName: string;
accountNumber: string;
accountType: string;
currentlyUse: boolean;
}[];
subDistrictId?: string | null;
@ -77,8 +80,11 @@ type BranchUpdate = {
bank?: {
bankName: string;
bankBranch: string;
accountName: string;
accountNumber: string;
accountType: string;
currentlyUse: boolean;
}[];
};
@ -199,6 +205,7 @@ export class BranchController extends Controller {
subDistrict: true,
},
},
bank: true,
_count: {
select: { branch: true },
},
@ -236,6 +243,7 @@ export class BranchController extends Controller {
subDistrict: true,
},
},
bank: true,
contact: includeContact,
},
where: { id: branchId },