{ "$schema": "http://json-schema.org/schema#", "$schemaVersion": "0.0.1", "$id": "https://smart-data-models.github.io/dataModel.TourismDestinations/TouristRental/schema.json,", "title": "Rental of a Tourist Facility", "description": "A rental of a facility from a tourist", "modelTags": "TOURiLab, Sustainability", "derivedFrom": "", "required": [ "id", "type" ], "license": "https://smart-data-models.github.io/dataModel.TourismDestinations/TouristRental/LICENSE.md", "type": "object", "allOf": [ { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/GSMA-Commons" }, { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/Location-Commons" }, { "properties": { "type": { "type": "string", "enum": [ "TouristRental" ], "description": "Property. NGSI type. It has to be TouristRental" }, "rentalSource": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType", "description": "Relationship. The object that is rented" }, "startDate": { "type": "string", "format": "date-time", "description": "Property. Start date of the tourist rental" }, "endDate": { "type": "string", "format": "date-time", "description": "Property. End date of the tourist rental" }, "leadTourist": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType", "description": "Relationship. Reference to the 'tourist' or 'touristProfile' associated with the rental transaction" }, "consumptionBehaviour": { "type": "array", "items": { "$ref": "https://smart-data-models.github.io/data-models/common-schema.json#/definitions/EntityIdentifierType" }, "description": "Relationship. An array of ConsumptionBehaviour data models" } } } ] }