contact-document relation

This commit is contained in:
yuri
2016-11-16 11:17:46 +02:00
parent a683e6bdf8
commit e0128bf54f
4 changed files with 15 additions and 2 deletions
@@ -28,7 +28,8 @@
"accounts": "Accounts",
"casesPrimary": "Cases (Primary)",
"portalUser": "Portal User",
"originalLead": "Original Lead"
"originalLead": "Original Lead",
"documents": "Documents"
},
"labels": {
"Create Contact": "Create Contact"
@@ -19,7 +19,8 @@
"accounts": "Accounts",
"opportunities": "Opportunities",
"folder": "Folder",
"leads": "Leads"
"leads": "Leads",
"contacts": "Contacts"
},
"options": {
"status": {
@@ -297,6 +297,12 @@
"type": "hasOne",
"entity": "Lead",
"foreign": "createdContact"
},
"documents": {
"type": "hasMany",
"entity": "Document",
"foreign": "contacts",
"audited": true
}
},
"collection": {
@@ -96,6 +96,11 @@
"entity": "Lead",
"foreign": "documents"
},
"contacts": {
"type": "hasMany",
"entity": "Contact",
"foreign": "documents"
},
"createdBy": {
"type": "belongsTo",
"entity": "User"