UNPKG

@universis/dining

Version:

Universis api for dining

100 lines (99 loc) 2.28 kB
{ "$schema": "https://themost-framework.github.io/themost/models/2018/2/schema.json", "@id": "http://schema.org/DiningPlace", "name": "DiningPlace", "title": "DiningPlace", "abstract": false, "sealed": false, "implements": "Place", "version": "1.3", "fields": [ { "name": "tags", "title": "Place tags", "description": "Contains a collection of tags for the Place", "type": "Text", "many": true, "mapping": { "associationType": "junction", "associationObjectField": "place", "associationValueField": "value", "associationAdapter": "DiningPlaceTags", "cascade": "delete", "privileges": [ { "mask": 1, "type": "global", "account": "*" }, { "mask": 15, "type": "global" }, { "mask": 15, "type": "global", "account": "Administrators" } ] } }, { "name": "departments", "title": "Departments", "description": "A collection of related departments.", "type": "Department", "mapping": { "associationAdapter": "DiningPlaceDepartments", "parentModel": "Department", "parentField": "id", "childModel": "DiningPlace", "childField": "id", "associationType": "junction", "privileges": [ { "mask": 1, "type": "global", "account": "Students" }, { "mask": 15, "type": "global", "account": "Administrators" }, { "mask": 15, "type": "global", "account": "DiningAdministrators" }, { "mask": 1, "type": "global", "account": "DiningUsers" } ] } } ], "privileges": [ { "mask": 15, "type": "global" }, { "mask": 1, "type": "global", "account": "*" }, { "mask": 15, "type": "global", "account": "Administrators" }, { "mask": 15, "type": "global", "account": "DiningAdministrators" } ] }