Model contacts


Permissions

User GroupCreate?Read?Update?Delete?
adminxxx

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?Required?
__vNumber
_deletedBooleanfalsex
_idObjectID[Function]
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
bioString
createdAtDate
emailStringxx
guest_idObjectIDGuest
imgString
lead_idArray of ObjectID[Function]
mobileString
nameString
notesArray[Function]
organisationString
updatedAtDate
user_idObjectIDUser

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

bio

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

createdAt

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

email

{
  "path": "email",
  "instance": "String",
  "options": {
    "index": true,
    "required": true
  },
  "validators": [
    {
      "message": "Path `{PATH}` is required."
    }
  ],
  "isRequired": true
}

Validators

guest_id

{
  "path": "guest_id",
  "instance": "ObjectID",
  "options": {
    "link": "Guest"
  },
  "validators": []
}

img

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

lead_id

{
  "path": "lead_id",
  "instance": "Array",
  "options": {
    "type": [
      {
        "link": "Lead"
      }
    ]
  },
  "validators": [],
  "defaultValue": "[Function]",
  "arrayType": "ObjectID"
}

mobile

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

name

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

notes

{
  "path": "notes",
  "instance": "Array",
  "options": {
    "type": [
      {
        "date_created": {},
        "user_id": {
          "link": "User"
        }
      }
    ]
  },
  "validators": [],
  "defaultValue": "[Function]"
}

organisation

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

updatedAt

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

user_id

{
  "path": "user_id",
  "instance": "ObjectID",
  "options": {
    "link": "User"
  },
  "validators": []
}