Model producttypes
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| setup | x | x | x | x |
| admin | | x | | |
| all | | 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 | | |
| bookable | Boolean | | | false | | | |
| bookable_noun | String | | | | | | |
| bookable_time_units | Number | | | | | | |
| createdAt | Date | | | | | | |
| currency_id | ObjectID | Currency | | | x | | |
| fire_action | String | | | | | | |
| include_in_occupancy_report | Boolean | | | false | x | | |
| name | String | | | | x | | x |
| price_recommendation_formula | String | | | | | | |
| type | String | | | other | x | | |
| updatedAt | Date | | | | | | |
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": []
}bookable
{
"path": "bookable",
"instance": "Boolean",
"options": {
"default": false
},
"validators": [],
"defaultValue": false
}bookable_noun
{
"path": "bookable_noun",
"instance": "String",
"options": {},
"validators": []
}bookable_time_units
{
"path": "bookable_time_units",
"instance": "Number",
"options": {},
"validators": []
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}currency_id
{
"path": "currency_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "Currency"
},
"validators": []
}fire_action
{
"path": "fire_action",
"instance": "String",
"options": {},
"validators": []
}include_in_occupancy_report
{
"path": "include_in_occupancy_report",
"instance": "Boolean",
"options": {
"default": false,
"index": true
},
"validators": [],
"defaultValue": false
}name
{
"path": "name",
"instance": "String",
"options": {
"required": true,
"index": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
price_recommendation_formula
{
"path": "price_recommendation_formula",
"instance": "String",
"options": {},
"validators": []
}type
{
"path": "type",
"instance": "String",
"options": {
"validate": {},
"index": true,
"default": "other"
},
"validators": [
{
"message": "Validator failed for path `{PATH}` with value `{VALUE}`"
}
],
"defaultValue": "other"
}Validators
- : Validator failed for path `{PATH}` with value `{VALUE}`
updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}