Model memberships


Permissions

User GroupCreate?Read?Update?Delete?
adminx
allx
setupxxxx

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?
__vNumber
_deletedBooleanfalsex
_idObjectIDfunction defaultId() { return new oid(); }
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
clay_access_groupObjectIDClayaccessgroup
costNumber
cost_extra_memberNumber
createdAtDate
date_createdDatefunction now() { [native code] }
descriptionString
imgString
location_idObjectIDLocation
marketing_descriptionString
nameString
occupancy_typeStringhotdesk
papercut_groupString
print_credits_per_monthNumber
radius_serviceString
space_credits_cost_full_dayNumber0
space_credits_cost_half_dayNumber0
space_credits_discountNumber0
space_credits_per_monthNumber
stuff_credits_discountNumber0
stuff_credits_per_monthNumber
sublocationsArrayfunction() { // Leave it up to `cast()` to convert the array return fn ? defaultArr.call(this) : defaultArr != null ? [].concat(defaultArr) : []; }
updatedAtDate
xero_accountString
xero_itemidString

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
}