@universis/dining
Version:
Universis api for dining
160 lines (159 loc) • 5.43 kB
JSON
{
"$schema": "https://themost-framework.github.io/themost/models/2018/2/schema.json",
"@id": "https://universis.io/schemas/DiningPreferenceEffectiveStatus",
"title": "DiningPreferenceEffectiveStatus",
"name": "DiningPreferenceEffectiveStatus",
"type": "lookup",
"hidden": false,
"sealed": false,
"abstract": false,
"category": "lookup",
"version": "1.0",
"fields": [
{
"name": "id",
"title": "Id",
"type": "Counter",
"nullable": false,
"primary": true
},
{
"name": "code",
"title": "The code of the item.",
"type": "Text",
"nullable": false,
"editable": false
},
{
"name": "status",
"title": "The alternate name of the item.",
"type": "Text",
"nullable": false
},
{
"name": "name",
"title": "name",
"description": "The name of the item.",
"type": "Text"
},
{
"name": "description",
"title": "The description of the item.",
"type": "Note"
},
{
"name": "locales",
"type": "DiningPreferenceEffectiveStatusLocale",
"mapping": {
"associationType": "association",
"cascade": "delete",
"parentModel": "DiningPreferenceEffectiveStatus",
"parentField": "id",
"childModel": "DiningPreferenceEffectiveStatusLocale",
"childField": "object"
}
},
{
"name": "locale",
"type": "DiningPreferenceEffectiveStatusLocale",
"readonly": true,
"editable": false,
"many": true,
"expandable": true,
"multiplicity": "ZeroOrOne",
"mapping": {
"associationType": "association",
"cascade": "delete",
"parentModel": "DiningPreferenceEffectiveStatus",
"parentField": "id",
"childModel": "DiningPreferenceEffectiveStatusLocale",
"childField": "object",
"options": {
"$filter": "inLanguage eq lang()",
"$first": true
}
}
}
],
"privileges": [
{
"mask": 15,
"type": "global"
},
{
"mask": 15,
"type": "global",
"account": "Administrators"
},
{
"mask": 15,
"type": "global",
"account": "DiningAdministrators"
},
{
"mask": 1,
"type": "global",
"account": "*"
}
],
"constraints": [
{
"type": "unique",
"description": "Code must be unique across different records",
"fields": ["code"]
}
],
"seed": [
{
"status": "noRequiredAction",
"code": "NO_ACTION",
"name": "Ο φοιτητής δε χρειάζεται να πραγματοποιήσει (επιπλέον) ενέργειες σχετικά με την πρόθεση σίτισής του.",
"description": "Ο φοιτητής δε χρειάζεται να πραγματοποιήσει (επιπλέον) ενέργειες σχετικά με την πρόθεση σίτισής του.",
"locales": [
{
"inLanguage": "en",
"name": "The student does not need to perform any actions regarding their dining preference declaration.",
"description": "The student does not need to perform any actions regarding their dining preference declaration."
}
]
},
{
"status": "positivePreferenceWithoutRequest",
"code": "REQUEST_OPTIONAL",
"name": "Ο φοιτητής έχει δηλώσει πως επιθυμεί να σιτιστεί, αλλά δεν έχει δημιουργήσει/ολοκληρώσει ακόμη την αίτησή του.",
"locales": [
{
"inLanguage": "en",
"name": "The student has declared a positive dining preference, but has not created/completed the submission of their request."
}
]
},
{
"status": "mustCreateDiningRequest",
"code": "REQUEST_REQUIRED",
"name": "Ο φοιτητής έχει δηλώσει πως επιθυμεί να σιτιστεί και οφείλει να δημιουργήσει/ολοκληρώσει την αίτησή του.",
"description": "<b>ΠΡΟΣΟΧΗ:</b> Η υποβολή αίτησης σίτισης απαιτείται για τη δήλωση μαθημάτων.",
"locales": [
{
"inLanguage": "en",
"name": "The student has declared a positive dining preference and must proceed with their dining request.",
"description": "<b>ATTENTION:</b> A dining application is required before course enrollment."
}
]
},
{
"status": "mustDeclareDiningPreference",
"code": "PREFERENCE_REQUIRED",
"name": "Ο φοιτητής οφείλει να δηλώσει την πρόθεσή του για σίτιση στο τρέχον ακαδημαϊκό έτος.",
"description": "Αν επιθυμείς να σιτιστείς, θα πρέπει στη συνέχεια να κάνεις αίτηση καταθέτοντας τα απαραίτητα δικαιολογητικά.",
"locales": [
{
"inLanguage": "en",
"name": "The student must declare their dining preference for the current academic year.",
"description": "For free dining, you must sumbit an application attaching the necessary documents."
}
]
}
],
"eventListeners": []
}