{
  "$schema": "https://themost-framework.github.io/themost/models/2018/2/schema.json",
  "@id": "https://universis.io/schemas/UpdateDiningRequestEventAction",
  "name": "UpdateDiningRequestEventAction",
  "title": "UpdateDiningRequestEventAction",
  "hidden": false,
  "sealed": false,
  "version": "1.0",
  "inherits": "UpdateAction",
  "fields": [
    {
      "@id": "http://schema.org/object",
      "name": "object",
      "title": "DiningRequestEvent",
      "description": "Event associated with update status action",
      "type": "DiningRequestEvent",
      "nullable": false,
      "expandable": true,
      "editable": false
    },
    {
      "@id": "https://universis.io/properties/currentValidThrough",
      "name": "currentValidThrough",
      "title": "Valid through date before update",
      "description": "Valid through date before update",
      "type": "DateTime"
    },
    {
      "@id": "https://universis.io/properties/validThrough",
      "name": "validThrough",
      "title": "Valid through date after update",
      "description": "Valid through date after update",
      "type": "DateTime"
    },
    {
      "@id": "https://universis.io/properties/currentEndDate",
      "name": "currentEndDate",
      "title": "End date before update",
      "description": "End date before update",
      "type": "DateTime"
    },
    {
      "@id": "https://universis.io/properties/endDate",
      "name": "endDate",
      "title": "End date after update",
      "description": "End date after update",
      "type": "DateTime"
    },
    {
      "@id": "https://universis.io/properties/studentStatus",
      "name": "status",
      "title": "Event Status",
      "description": "Event Status",
      "nullable": false,
      "type": "EventStatusType",
      "editable": false
    },
    {
      "name": "totalCards",
      "title": "The number of Student dining cards that will be updated",
      "description": "The number of Student dining cards that will be updated",
      "type": "Integer",
      "many": false
    },
    {
      "name": "totalCardsAffected",
      "title": "The number of Student dining cards that were updated",
      "description": "The number of Student dining cards that were updated",
      "type": "Integer"
    },
    {
      "name": "description",
      "title": "Updated fields",
      "type": "Note"
    },
    {
      "name": "actionResult",
      "title": "Description of actions result",
      "type": "Note"
    }
  ],
  "eventListeners": [
  ],
  "privileges": [
    {
        "mask": 15,
        "type": "global"
    },
    {
        "mask": 15,
        "type": "global",
        "account": "Administrators"
    },
    {
      "mask": 7,
      "type": "global",
      "account": "DiningAdministrators"
    },
    {
      "mask": 1,
      "type": "global",
      "account": "DiningUsers"
    },
    {
        "mask": 1,
        "type": "self",
        "filter": "organizer eq departments()",
        "account": "DiningUsers"
    }
  ]
}
