Model memberships
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| admin | | x | | |
| all | | x | | |
| setup | x | x | x | 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 | | |
| clay_access_group | ObjectID | Clayaccessgroup | | | | | |
| cost | Number | | | | | | |
| cost_extra_member | Number | | | | | | |
| createdAt | Date | | | | | | |
| date_created | Date | | | [Function] | | | |
| description | String | | | | | | |
| img | String | | | | | | |
| location_id | ObjectID | Location | | | | | x |
| marketing_description | String | | | | | | |
| name | String | | | | | | |
| occupancy_type | String | | | hotdesk | | | |
| papercut_group | String | | | | | | |
| print_credits_per_month | Number | | | | | | |
| radius_service | String | | | | | | |
| space_credits_cost_full_day | Number | | | 0 | | | |
| space_credits_cost_half_day | Number | | | 0 | | | |
| space_credits_discount | Number | | | 0 | | | |
| space_credits_per_month | Number | | | | | | |
| stuff_credits_discount | Number | | | 0 | | | |
| stuff_credits_per_month | Number | | | | | | |
| sublocations | Array of String | | | [Function] | | | |
| updatedAt | Date | | | | | | |
| xero_account | String | | | | | | |
| xero_itemid | String | | | | | | |
| xero_tax_type | String | | | | | | |
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": []
}clay_access_group
{
"path": "clay_access_group",
"instance": "ObjectID",
"options": {
"link": "Clayaccessgroup"
},
"validators": []
}cost
{
"path": "cost",
"instance": "Number",
"options": {},
"validators": []
}cost_extra_member
{
"path": "cost_extra_member",
"instance": "Number",
"options": {},
"validators": []
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}date_created
{
"path": "date_created",
"instance": "Date",
"options": {},
"validators": [],
"defaultValue": "[Function]"
}description
{
"path": "description",
"instance": "String",
"options": {},
"validators": []
}img
{
"path": "img",
"instance": "String",
"options": {},
"validators": []
}location_id
{
"path": "location_id",
"instance": "ObjectID",
"options": {
"link": "Location",
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
marketing_description
{
"path": "marketing_description",
"instance": "String",
"options": {},
"validators": []
}name
{
"path": "name",
"instance": "String",
"options": {},
"validators": []
}occupancy_type
{
"path": "occupancy_type",
"instance": "String",
"options": {
"validate": {},
"default": "hotdesk"
},
"validators": [
{
"message": "Validator failed for path `{PATH}` with value `{VALUE}`"
}
],
"defaultValue": "hotdesk"
}Validators
- : Validator failed for path `{PATH}` with value `{VALUE}`
papercut_group
{
"path": "papercut_group",
"instance": "String",
"options": {},
"validators": []
}print_credits_per_month
{
"path": "print_credits_per_month",
"instance": "Number",
"options": {},
"validators": []
}radius_service
{
"path": "radius_service",
"instance": "String",
"options": {},
"validators": []
}space_credits_cost_full_day
{
"path": "space_credits_cost_full_day",
"instance": "Number",
"options": {
"default": 0
},
"validators": [],
"defaultValue": 0
}space_credits_cost_half_day
{
"path": "space_credits_cost_half_day",
"instance": "Number",
"options": {
"default": 0
},
"validators": [],
"defaultValue": 0
}space_credits_discount
{
"path": "space_credits_discount",
"instance": "Number",
"options": {
"default": 0
},
"validators": [],
"defaultValue": 0
}space_credits_per_month
{
"path": "space_credits_per_month",
"instance": "Number",
"options": {},
"validators": []
}stuff_credits_discount
{
"path": "stuff_credits_discount",
"instance": "Number",
"options": {
"default": 0
},
"validators": [],
"defaultValue": 0
}stuff_credits_per_month
{
"path": "stuff_credits_per_month",
"instance": "Number",
"options": {},
"validators": []
}sublocations
{
"path": "sublocations",
"instance": "Array",
"options": {
"type": [
{}
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "String"
}updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}xero_account
{
"path": "xero_account",
"instance": "String",
"options": {},
"validators": []
}xero_itemid
{
"path": "xero_itemid",
"instance": "String",
"options": {},
"validators": []
}xero_tax_type
{
"path": "xero_tax_type",
"instance": "String",
"options": {},
"validators": []
}