diff --git a/application/Espo/Modules/Crm/Resources/metadata/entityDefs/TargetList.json b/application/Espo/Modules/Crm/Resources/metadata/entityDefs/TargetList.json index 463b37343b..b173da43f7 100644 --- a/application/Espo/Modules/Crm/Resources/metadata/entityDefs/TargetList.json +++ b/application/Espo/Modules/Crm/Resources/metadata/entityDefs/TargetList.json @@ -66,22 +66,42 @@ "accounts": { "type": "hasMany", "entity": "Account", - "foreign": "targetLists" + "foreign": "targetLists", + "additionalColumns": { + "optedOut": { + "type": "bool" + } + } }, "contacts": { "type": "hasMany", "entity": "Contact", - "foreign": "targetLists" + "foreign": "targetLists", + "additionalColumns": { + "optedOut": { + "type": "bool" + } + } }, "leads": { "type": "hasMany", "entity": "Lead", - "foreign": "targetLists" + "foreign": "targetLists", + "additionalColumns": { + "optedOut": { + "type": "bool" + } + } }, "users": { "type": "hasMany", "entity": "User", - "foreign": "targetLists" + "foreign": "targetLists", + "additionalColumns": { + "optedOut": { + "type": "bool" + } + } } }, "collection": {