Model memberships


Permissions

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

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?Required?
__vNumber
_deletedBooleanfalsex
_idObjectID[Function]
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
clay_access_groupObjectIDClayaccessgroup
costNumber
cost_extra_memberNumber
createdAtDate
date_createdDate[Function]
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
updatedAtDate
xero_accountString
xero_itemidString

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"
  },
  "validators": []
}

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

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": []
}

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": []
}