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? | 
|---|
| __v | Number |  |  |  |  |  | 
| _deleted | Boolean |  |  | false | x |  | 
| _id | ObjectID |  |  | function defaultId() {
  return new oid();
} |  |  | 
| _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 now() { [native code] } |  |  | 
| description | String |  |  |  |  |  | 
| img | String |  |  |  |  |  | 
| location_id | ObjectID | Location |  |  |  |  | 
| 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 |  |  | function() {
      // Leave it up to `cast()` to convert the array
      return fn
        ? defaultArr.call(this)
        : defaultArr != null
          ? [].concat(defaultArr)
          : [];
    } |  |  | 
| updatedAt | Date |  |  |  |  |  | 
| xero_account | String |  |  |  |  |  | 
| xero_itemid | String |  |  |  |  |  | 
Raw definition
{
	"path": "__v",
	"instance": "Number",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"__v"
	],
	"options": {},
	"_index": null
}{
	"path": "_deleted",
	"instance": "Boolean",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"_deleted"
	],
	"options": {
		"default": false,
		"index": true
	},
	"_index": true,
	"defaultValue": false
}{
	"path": "_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [
		null
	],
	"_presplitPath": [
		"_id"
	],
	"options": {
		"auto": true,
		"type": "ObjectId"
	},
	"_index": null
}{
	"path": "_owner_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"_owner_id"
	],
	"options": {
		"link": "User",
		"map_to": "_owner",
		"index": true
	},
	"_index": true
}{
	"path": "_updated_by_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"_updated_by_id"
	],
	"options": {
		"link": "User",
		"map_to": "_updated_by",
		"index": true
	},
	"_index": true
}{
	"path": "clay_access_group",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"clay_access_group"
	],
	"options": {
		"link": "Clayaccessgroup"
	},
	"_index": null
}{
	"path": "cost",
	"instance": "Number",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"cost"
	],
	"options": {},
	"_index": null
}{
	"path": "cost_extra_member",
	"instance": "Number",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"cost_extra_member"
	],
	"options": {},
	"_index": null
}{
	"path": "createdAt",
	"instance": "Date",
	"validators": [],
	"getters": [],
	"setters": [
		null,
		null
	],
	"_presplitPath": [
		"createdAt"
	],
	"options": {
		"immutable": true
	},
	"_index": null,
	"$immutable": true
}{
	"path": "date_created",
	"instance": "Date",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"date_created"
	],
	"options": {},
	"_index": null
}{
	"enumValues": [],
	"regExp": null,
	"path": "description",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"description"
	],
	"options": {},
	"_index": null
}{
	"enumValues": [],
	"regExp": null,
	"path": "img",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"img"
	],
	"options": {},
	"_index": null
}{
	"path": "location_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"location_id"
	],
	"options": {
		"link": "Location"
	},
	"_index": null
}{
	"enumValues": [],
	"regExp": null,
	"path": "marketing_description",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"marketing_description"
	],
	"options": {},
	"_index": null
}{
	"enumValues": [],
	"regExp": null,
	"path": "name",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"name"
	],
	"options": {},
	"_index": null
}{
	"enumValues": [],
	"regExp": null,
	"path": "occupancy_type",
	"instance": "String",
	"validators": [
		{
			"message": "Validator failed for path `{PATH}` with value `{VALUE}`",
			"type": "user defined",
			"validator": {}
		}
	],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"occupancy_type"
	],
	"options": {
		"validate": {},
		"default": "hotdesk"
	},
	"_index": null,
	"defaultValue": "hotdesk"
}{
	"enumValues": [],
	"regExp": null,
	"path": "papercut_group",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"papercut_group"
	],
	"options": {},
	"_index": null
}{
	"path": "print_credits_per_month",
	"instance": "Number",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"print_credits_per_month"
	],
	"options": {},
	"_index": null
}{
	"enumValues": [],
	"regExp": null,
	"path": "radius_service",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"radius_service"
	],
	"options": {},
	"_index": null
}{
	"path": "space_credits_cost_full_day",
	"instance": "Number",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"space_credits_cost_full_day"
	],
	"options": {
		"default": 0
	},
	"_index": null,
	"defaultValue": 0
}{
	"path": "space_credits_cost_half_day",
	"instance": "Number",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"space_credits_cost_half_day"
	],
	"options": {
		"default": 0
	},
	"_index": null,
	"defaultValue": 0
}{
	"path": "space_credits_discount",
	"instance": "Number",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"space_credits_discount"
	],
	"options": {
		"default": 0
	},
	"_index": null,
	"defaultValue": 0
}{
	"path": "space_credits_per_month",
	"instance": "Number",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"space_credits_per_month"
	],
	"options": {},
	"_index": null
}{
	"path": "stuff_credits_discount",
	"instance": "Number",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"stuff_credits_discount"
	],
	"options": {
		"default": 0
	},
	"_index": null,
	"defaultValue": 0
}{
	"path": "stuff_credits_per_month",
	"instance": "Number",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"stuff_credits_per_month"
	],
	"options": {},
	"_index": null
}{
	"schemaOptions": {
		"timestamps": true,
		"toJSON": {
			"virtuals": true
		},
		"toObject": {
			"virtuals": true
		},
		"perms": {
			"admin": "r",
			"all": "r",
			"setup": "crud"
		},
		"typeKey": "type",
		"id": true,
		"_id": true,
		"validateBeforeSave": true,
		"read": null,
		"shardKey": null,
		"discriminatorKey": "__t",
		"autoIndex": null,
		"minimize": true,
		"optimisticConcurrency": false,
		"versionKey": "__v",
		"capped": false,
		"bufferCommands": true,
		"strictQuery": true,
		"strict": true,
		"_perms": {
			"admin": "r",
			"owner": "",
			"user": "",
			"all": "r",
			"setup": "crud"
		},
		"pluralization": true
	},
	"caster": {
		"enumValues": [],
		"regExp": null,
		"path": "sublocations",
		"instance": "String",
		"validators": [],
		"getters": [],
		"setters": [
			null
		],
		"_presplitPath": [
			"sublocations"
		],
		"options": {},
		"_index": null,
		"_arrayPath": "sublocations.$",
		"_arrayParentPath": "sublocations"
	},
	"$embeddedSchemaType": {
		"enumValues": [],
		"regExp": null,
		"path": "sublocations",
		"instance": "String",
		"validators": [],
		"getters": [],
		"setters": [
			null
		],
		"_presplitPath": [
			"sublocations"
		],
		"options": {},
		"_index": null,
		"_arrayPath": "sublocations.$",
		"_arrayParentPath": "sublocations"
	},
	"$isMongooseArray": true,
	"path": "sublocations",
	"instance": "Array",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"sublocations"
	],
	"options": {
		"type": [
			{}
		]
	},
	"_index": null
}{
	"path": "updatedAt",
	"instance": "Date",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"updatedAt"
	],
	"options": {},
	"_index": null
}{
	"enumValues": [],
	"regExp": null,
	"path": "xero_account",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"xero_account"
	],
	"options": {},
	"_index": null
}{
	"enumValues": [],
	"regExp": null,
	"path": "xero_itemid",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"xero_itemid"
	],
	"options": {},
	"_index": null
}