Model xeroaccounts


Permissions

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

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?Required?
__vNumber
_deletedBooleanfalsex
_idObjectID[Function]
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
access_tokenString
client_idString
client_secretString
consumer_keyString
consumer_secretString
createdAtDate
refresh_tokenString
tenant_idString
tenant_idsArray of Mixed[Function]
token_expiresDate
updatedAtDate

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

access_token

{
  "path": "access_token",
  "instance": "String",
  "options": {},
  "validators": []
}

client_id

{
  "path": "client_id",
  "instance": "String",
  "options": {},
  "validators": []
}

client_secret

{
  "path": "client_secret",
  "instance": "String",
  "options": {},
  "validators": []
}

consumer_key

{
  "path": "consumer_key",
  "instance": "String",
  "options": {},
  "validators": []
}

consumer_secret

{
  "path": "consumer_secret",
  "instance": "String",
  "options": {},
  "validators": []
}

createdAt

{
  "path": "createdAt",
  "instance": "Date",
  "options": {
    "immutable": true
  },
  "validators": []
}

refresh_token

{
  "path": "refresh_token",
  "instance": "String",
  "options": {},
  "validators": []
}

tenant_id

{
  "path": "tenant_id",
  "instance": "String",
  "options": {},
  "validators": []
}

tenant_ids

{
  "path": "tenant_ids",
  "instance": "Array",
  "options": {
    "type": [
      null
    ]
  },
  "validators": [],
  "defaultValue": "[Function]",
  "arrayType": "Mixed"
}

token_expires

{
  "path": "token_expires",
  "instance": "Date",
  "options": {},
  "validators": []
}

updatedAt

{
  "path": "updatedAt",
  "instance": "Date",
  "options": {},
  "validators": []
}