{
  "$schema": "https://themost-framework.github.io/themost/models/2018/2/schema.json",
  "@id": "http://schema.org/SendStudyProgramTokenAction",
  "name": "SendStudyProgramTokenAction",
  "description": "The act of organizing tasks/objects/events by associating resources to it.",
  "title": "SendStudyProgramTokenAction",
  "abstract": false,
  "sealed": false,
  "inherits": "SendTokenAction",
  "version": "1.1",
  "fields": [
    {
      "name": "event",
      "title": "Γεγονός αξιολόγησης",
      "type": "StudyProgramEvaluationEvent",
      "nullable": false,
      "mapping": {
        "parentModel": "StudyProgramEvaluationEvent",
        "childModel": "SendStudyProgramTokenAction",
        "parentField": "id",
        "childField": "event",
        "cascade": "delete",
        "associationType": "association"
      }
    },
    {
      "name": "numberOfStudents",
      "description": "Σύνολο φοιτητών",
      "type": "Integer"
    }
  ],
  "privileges": [
    {
      "mask": 15,
      "type": "global"
    },
    {
      "mask": 15,
      "type": "global",
      "account": "Administrators"
    },
    {
      "mask": 1,
      "type": "self",
      "account": "Registrar",
      "filter": "event/studyProgram/department eq departments()",
      "scope": [
        "qa"
      ]
    },
    {
      "mask": 1,
      "type": "global",
      "account": "QualityAssuranceUnit"
    },
    {
      "mask": 1,
      "type": "self",
      "account": "QualityAssuranceDepartment",
      "filter": "event/studyProgram/department eq departments()",
      "scope": [
        "qa"
      ]
    }
  ]
}
