199 lines
5.2 KiB
JSON
199 lines
5.2 KiB
JSON
{
|
|
"fields": {
|
|
"name": {
|
|
"type": "varchar",
|
|
"required": true
|
|
},
|
|
"status": {
|
|
"type": "enum",
|
|
"options": ["Planned", "Held", "Not Held"],
|
|
"default": "Planned",
|
|
"view": "Fields.EnumStyled",
|
|
"style": {
|
|
"Held": "success"
|
|
},
|
|
"audited": true
|
|
},
|
|
"dateStart": {
|
|
"type": "datetime",
|
|
"required": true,
|
|
"default": "javascript: return this.dateTime.getNow(15);",
|
|
"audited": true
|
|
},
|
|
"dateEnd": {
|
|
"type": "datetime",
|
|
"required": true,
|
|
"after": "dateStart"
|
|
},
|
|
"duration": {
|
|
"type": "duration",
|
|
"start": "dateStart",
|
|
"end": "dateEnd",
|
|
"options": [300, 600, 900, 1800, 2700, 3600, 7200],
|
|
"default": 300
|
|
},
|
|
"reminders": {
|
|
"type": "jsonArray",
|
|
"notStorable": true,
|
|
"view": "Crm:Meeting.Fields.Reminders"
|
|
},
|
|
"direction": {
|
|
"type": "enum",
|
|
"options": ["Outbound", "Inbound"],
|
|
"default": "Outbound"
|
|
},
|
|
"description": {
|
|
"type": "text"
|
|
},
|
|
"parent": {
|
|
"type": "linkParent",
|
|
"entityList": ["Account", "Lead", "Opportunity", "Case"]
|
|
},
|
|
"account": {
|
|
"type": "link",
|
|
"readOnly": true
|
|
},
|
|
"acceptanceStatus": {
|
|
"type": "enum",
|
|
"notStorable": true,
|
|
"disabled": true,
|
|
"options": ["None", "Accepted", "Tentative", "Declined"]
|
|
},
|
|
"users": {
|
|
"type": "linkMultiple",
|
|
"layoutDetailDisabled": true,
|
|
"layoutListDisabled": true,
|
|
"view": "Crm:Meeting.Fields.Attendees",
|
|
"columns": {
|
|
"status": "acceptanceStatus"
|
|
}
|
|
},
|
|
"contacts": {
|
|
"type": "linkMultiple",
|
|
"layoutDetailDisabled": true,
|
|
"layoutListDisabled": true,
|
|
"view": "Crm:Meeting.Fields.Contacts",
|
|
"columns": {
|
|
"status": "acceptanceStatus"
|
|
}
|
|
},
|
|
"leads": {
|
|
"type": "linkMultiple",
|
|
"layoutDetailDisabled": true,
|
|
"layoutListDisabled": true,
|
|
"view": "Crm:Meeting.Fields.Attendees",
|
|
"columns": {
|
|
"status": "acceptanceStatus"
|
|
}
|
|
},
|
|
"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"
|
|
}
|
|
},
|
|
"links": {
|
|
"account": {
|
|
"type": "belongsTo",
|
|
"entity": "Account"
|
|
},
|
|
"createdBy": {
|
|
"type": "belongsTo",
|
|
"entity": "User"
|
|
},
|
|
"modifiedBy": {
|
|
"type": "belongsTo",
|
|
"entity": "User"
|
|
},
|
|
"assignedUser": {
|
|
"type": "belongsTo",
|
|
"entity": "User"
|
|
},
|
|
"teams": {
|
|
"type": "hasMany",
|
|
"entity": "Team",
|
|
"relationName": "entityTeam",
|
|
"layoutRelationshipsDisabled": true
|
|
},
|
|
"users": {
|
|
"type": "hasMany",
|
|
"entity": "User",
|
|
"foreign": "calls",
|
|
"additionalColumns": {
|
|
"status": {
|
|
"type": "varchar",
|
|
"len": "36",
|
|
"default": "None"
|
|
}
|
|
}
|
|
},
|
|
"contacts": {
|
|
"type": "hasMany",
|
|
"entity": "Contact",
|
|
"foreign": "calls",
|
|
"additionalColumns": {
|
|
"status": {
|
|
"type": "varchar",
|
|
"len": "36",
|
|
"default": "None"
|
|
}
|
|
}
|
|
},
|
|
"leads": {
|
|
"type": "hasMany",
|
|
"entity": "Lead",
|
|
"foreign": "calls",
|
|
"additionalColumns": {
|
|
"status": {
|
|
"type": "varchar",
|
|
"len": "36",
|
|
"default": "None"
|
|
}
|
|
}
|
|
},
|
|
"parent": {
|
|
"type": "belongsToParent",
|
|
"foreign": "calls"
|
|
}
|
|
},
|
|
"collection": {
|
|
"sortBy": "dateStart",
|
|
"asc": false
|
|
},
|
|
"indexes": {
|
|
"dateStartStatus": {
|
|
"columns": ["dateStart", "status"]
|
|
},
|
|
"dateStart": {
|
|
"columns": ["dateStart", "deleted"]
|
|
},
|
|
"status": {
|
|
"columns": ["status", "deleted"]
|
|
},
|
|
"assignedUser": {
|
|
"columns": ["assignedUserId", "deleted"]
|
|
},
|
|
"assignedUserStatus": {
|
|
"columns": ["assignedUserId", "status"]
|
|
}
|
|
}
|
|
}
|