UNPKG

@tradle/models

Version:
30 lines (29 loc) 638 B
{ "type": "tradle.Model", "title": "Application Dashboard", "id": "com.leaseforu.ApplicationDashboard", "subClassOf": "tradle.Dashboard", "groupBy": "status", "where": "application.draft !== true && dateStarted >= Date.now() - dateStarted", "properties": { "status": { "type": "string", "readOnly": true }, "count": { "type": "number", "readOnly": true, "set": "COUNT" }, "value": { "type": "object", "readOnly": true, "ref": "tradle.Money", "set": "SUM(value)" }, "dateStarted": { "type": "number", "units": "days" } } }