feat: Change customer to account_holder to be one-to-many (#11803)
This commit is contained in:
@@ -42,13 +42,17 @@ export const CustomerAccountHolder: ModuleJoinerConfig = {
|
||||
serviceName: Modules.CUSTOMER,
|
||||
entity: "Customer",
|
||||
fieldAlias: {
|
||||
account_holder: "account_holder_link.account_holder",
|
||||
account_holders: {
|
||||
path: "account_holder_link.account_holder",
|
||||
isList: true,
|
||||
},
|
||||
},
|
||||
relationship: {
|
||||
serviceName: LINKS.CustomerAccountHolder,
|
||||
primaryKey: "customer_id",
|
||||
foreignKey: "id",
|
||||
alias: "account_holder_link",
|
||||
isList: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user