This repository has been archived on 2026-07-19. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
espocrm-base/application/Espo/Modules/Crm/Resources/metadata/entityDefs/Campaign.json
T
2015-09-11 16:47:50 +03:00

180 lines
4.4 KiB
JSON

{
"fields": {
"name": {
"type": "varchar",
"required": true
},
"status": {
"type": "enum",
"options": ["Planning", "Active", "Inactive", "Complete"],
"default": "Planning"
},
"type": {
"type": "enum",
"options": ["Email", "Newsletter", "Web", "Television", "Radio", "Mail"]
},
"startDate": {
"type": "date"
},
"endDate": {
"type": "date"
},
"description": {
"type": "text"
},
"createdAt": {
"type": "datetime",
"readOnly": true
},
"modifiedAt": {
"type": "datetime",
"readOnly": true
},
"createdBy": {
"type": "link",
"readOnly": true
},
"modifiedBy": {
"type": "link",
"readOnly": true
},
"assignedUser": {
"type": "link",
"required": true
},
"teams": {
"type": "linkMultiple"
},
"targetLists": {
"type": "linkMultiple"
},
"sentCount": {
"type": "int",
"notStorable": true,
"readOnly": true,
"disabled": true
},
"openedCount": {
"type": "int",
"notStorable": true,
"readOnly": true,
"disabled": true
},
"clickedCount": {
"type": "int",
"notStorable": true,
"readOnly": true,
"disabled": true
},
"optedOutCount": {
"type": "int",
"notStorable": true,
"readOnly": true,
"disabled": true
},
"bouncedCount": {
"type": "int",
"notStorable": true,
"readOnly": true,
"disabled": true
},
"hardBouncedCount": {
"type": "int",
"notStorable": true,
"readOnly": true,
"disabled": true
},
"softBouncedCount": {
"type": "int",
"notStorable": true,
"readOnly": true,
"disabled": true
},
"leadCreatedCount": {
"type": "int",
"notStorable": true,
"readOnly": true,
"disabled": true
},
"revenue": {
"type": "currency",
"notStorable": true,
"readOnly": true,
"disabled": true
},
"budget": {
"type": "currency"
}
},
"links": {
"createdBy": {
"type": "belongsTo",
"entity": "User"
},
"modifiedBy": {
"type": "belongsTo",
"entity": "User"
},
"assignedUser": {
"type": "belongsTo",
"entity": "User"
},
"teams": {
"type": "hasMany",
"entity": "Team",
"relationName": "entityTeam",
"layoutRelationshipsDisabled": true
},
"targetLists": {
"type": "hasMany",
"entity": "TargetList",
"foreign": "campaigns"
},
"accounts": {
"type": "hasMany",
"entity": "Account",
"foreign": "campaign"
},
"contacts": {
"type": "hasMany",
"entity": "Contact",
"foreign": "campaign"
},
"leads": {
"type": "hasMany",
"entity": "Lead",
"foreign": "campaign"
},
"opportunities": {
"type": "hasMany",
"entity": "Opportunity",
"foreign": "campaign"
},
"campaignLogRecords": {
"type": "hasMany",
"entity": "CampaignLogRecord",
"foreign": "campaign"
},
"trackingUrls": {
"type": "hasMany",
"entity": "CampaignTrackingUrl",
"foreign": "campaign"
},
"massEmails": {
"type": "hasMany",
"entity": "MassEmail",
"foreign": "campaign",
"layoutRelationshipsDisabled": true
}
},
"collection": {
"sortBy": "createdAt",
"asc": false
},
"indexes": {
"createdAt": {
"columns": ["createdAt", "deleted"]
}
}
}