{
  "type": "tradle.Model",
  "title": "Application Summary",
  "shortTitle": "App",
  "id": "tradle.ApplicationSummary",
  "abstract": true,
  "properties": {
    "application": {
      "type": "object",
      "ref": "tradle.Application".
      "readOnly": true
    },
    "status": {
      "type": "object",
      "ref": "tradle.Status",
      "formula": "application.status",
      "readOnly": true
    },
    "applicantName": {
      "type": "string",
      "formula": "application.applicantName",
      "readOnly": true
    },
    "asset": {
      "type": "string",
      "formula": "forms['QuotationInformation'].assetName"
    },
    "elapsedTime": {
      "type": "number",
      "formula": "((application.dateCompleted || Date.now()) - application.dateStarted)/24 * 3600",
      "units": "days",
      "readOnly": true
    },
    "analyst": {
      "type": "object",
      "formula": "application.analyst",
      "readOnly": true,
      "ref": "tradle.MyEmployeeOnboarding"
    },
    "requestFor": {
      "type": "string",
      "range": "model",
      "displayName": true,
      "readOnly": true
    }
  }
  "required": [
    "application",
    "applicantName",
    "asset",
    "elapsedTime",
    "analyst",
  ],
  "indexes": [
    {
      "hashKey": "context",
      "specificity": 5
    },
    {
      "hashKey": "application._permalink",
      "rangeKey": "_time",
      "specificity": 4
    },
    {
      "hashKey": "_t",
      "rangeKey": "_time",
      "specificity": 1
    },
    {
      "hashKey": "status",
      "rangeKey": ["requestFor", "_time"],
      "specificity": 3
    },
    {
      "hashKey": "analyst._permalink",
      "rangeKey": "_time",
      "specificity": 4
    }
  ]
}
