Model rooms
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| setup | x | x | x | x |
| admin | | x | | |
| user | | x | | |
Fields
| Name | Type | Link | Maps To | Default | Indexed? | Unique? | Required? |
|---|
| __v | Number | | | | | | |
| _deleted | Boolean | | | false | x | | |
| _id | ObjectID | | | [Function] | | | |
| _owner_id | ObjectID | User | _owner | | x | | |
| _updated_by_id | ObjectID | User | _updated_by | | x | | |
| aesthetic | String | | | | | | |
| aesthetic_impact | Number | | | | | | |
| bookableitemtype_id | Array of ObjectID | | | [Function] | | | |
| capacity | Number | | | | | | |
| cost | Number | | | | | | |
| createdAt | Date | | | | | | |
| description | String | | | | | | |
| external_ical | String | | | | | | |
| full_day_discount | Number | | | | | | |
| half_day_discount | Number | | | | | | |
| img | String | | | | | | |
| location_id | ObjectID | Location | | | x | | |
| meters_squared | Number | | | | | | |
| name | String | | | | | | |
| number_available | Number | | | 1 | | | |
| off_peak_cost | Number | | | | | | |
| organisation_id | Array of ObjectID | | | [Function] | | | |
| price_per_day | Number | | | | | | |
| price_per_room | Number | | | | | | |
| price_per_user_per_day | Number | | | | | | |
| private | Boolean | | | false | | | |
| product_id | ObjectID | Product | | | | | |
| safety_margin | Number | | | | | | |
| start_price_per_square_meter | Number | | | | | | |
| type | Array of String | | | [Function] | | | |
| unavailable_reason | String | | | | | | |
| updatedAt | Date | | | | | | |
| urlid | String | | | | x | | |
Field Details
__v
{
"path": "__v",
"instance": "Number",
"options": {},
"validators": []
}_deleted
{
"path": "_deleted",
"instance": "Boolean",
"options": {
"default": false,
"index": true
},
"validators": [],
"defaultValue": false
}_id
{
"path": "_id",
"instance": "ObjectID",
"options": {
"auto": true,
"type": "ObjectId"
},
"validators": [],
"defaultValue": "[Function]"
}_owner_id
{
"path": "_owner_id",
"instance": "ObjectID",
"options": {
"link": "User",
"map_to": "_owner",
"index": true
},
"validators": []
}_updated_by_id
{
"path": "_updated_by_id",
"instance": "ObjectID",
"options": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"validators": []
}aesthetic
{
"path": "aesthetic",
"instance": "String",
"options": {},
"validators": []
}aesthetic_impact
{
"path": "aesthetic_impact",
"instance": "Number",
"options": {},
"validators": []
}bookableitemtype_id
{
"path": "bookableitemtype_id",
"instance": "Array",
"options": {
"type": [
{
"link": "bookableitemtype",
"index": true
}
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "ObjectID"
}capacity
{
"path": "capacity",
"instance": "Number",
"options": {},
"validators": []
}cost
{
"path": "cost",
"instance": "Number",
"options": {},
"validators": []
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}description
{
"path": "description",
"instance": "String",
"options": {},
"validators": []
}external_ical
{
"path": "external_ical",
"instance": "String",
"options": {},
"validators": []
}full_day_discount
{
"path": "full_day_discount",
"instance": "Number",
"options": {},
"validators": []
}half_day_discount
{
"path": "half_day_discount",
"instance": "Number",
"options": {},
"validators": []
}img
{
"path": "img",
"instance": "String",
"options": {},
"validators": []
}location_id
{
"path": "location_id",
"instance": "ObjectID",
"options": {
"link": "Location",
"index": true
},
"validators": []
}meters_squared
{
"path": "meters_squared",
"instance": "Number",
"options": {},
"validators": []
}name
{
"path": "name",
"instance": "String",
"options": {},
"validators": []
}number_available
{
"path": "number_available",
"instance": "Number",
"options": {
"default": 1
},
"validators": [],
"defaultValue": 1
}off_peak_cost
{
"path": "off_peak_cost",
"instance": "Number",
"options": {},
"validators": []
}organisation_id
{
"path": "organisation_id",
"instance": "Array",
"options": {
"type": [
{
"link": "Organisation"
}
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "ObjectID"
}price_per_day
{
"path": "price_per_day",
"instance": "Number",
"options": {},
"validators": []
}price_per_room
{
"path": "price_per_room",
"instance": "Number",
"options": {},
"validators": []
}price_per_user_per_day
{
"path": "price_per_user_per_day",
"instance": "Number",
"options": {},
"validators": []
}private
{
"path": "private",
"instance": "Boolean",
"options": {
"default": false
},
"validators": [],
"defaultValue": false
}product_id
{
"path": "product_id",
"instance": "ObjectID",
"options": {
"link": "Product"
},
"validators": []
}safety_margin
{
"path": "safety_margin",
"instance": "Number",
"options": {},
"validators": []
}start_price_per_square_meter
{
"path": "start_price_per_square_meter",
"instance": "Number",
"options": {},
"validators": []
}type
{
"path": "type",
"instance": "Array",
"options": {
"type": [
{
"validate": {},
"index": true
}
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "String"
}unavailable_reason
{
"path": "unavailable_reason",
"instance": "String",
"options": {},
"validators": []
}updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}urlid
{
"path": "urlid",
"instance": "String",
"options": {
"index": {
"unique": true
}
},
"validators": []
}