Model opportunities


Permissions

User GroupCreate?Read?Update?Delete?
adminxxxx

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?Required?
__vNumber
_deletedBooleanfalsex
_idObjectID[Function]
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
abandonedBooleanfalsex
assigned_to_idObjectIDUserassigned_tox
completedBooleanfalsex
createdAtDate
dataMixed
date_completedDate
date_createdDate[Function]
lead_idObjectIDLeadxx
location_idObjectIDLocationxx
nameStringxx
probabilityNumber
track_idObjectIDTrackxx
updatedAtDate
user_idObjectIDUserxx
valueNumber

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

abandoned

{
  "path": "abandoned",
  "instance": "Boolean",
  "options": {
    "default": false,
    "index": true
  },
  "validators": [],
  "defaultValue": false
}

assigned_to_id

{
  "path": "assigned_to_id",
  "instance": "ObjectID",
  "options": {
    "index": true,
    "link": "User",
    "map_to": "assigned_to"
  },
  "validators": []
}

completed

{
  "path": "completed",
  "instance": "Boolean",
  "options": {
    "default": false,
    "index": true
  },
  "validators": [],
  "defaultValue": false
}

createdAt

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

data

{
  "path": "data",
  "instance": "Mixed",
  "options": {},
  "validators": []
}

date_completed

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

date_created

{
  "path": "date_created",
  "instance": "Date",
  "options": {},
  "validators": [],
  "defaultValue": "[Function]"
}

lead_id

{
  "path": "lead_id",
  "instance": "ObjectID",
  "options": {
    "index": true,
    "link": "Lead",
    "required": true
  },
  "validators": [
    {
      "message": "Path `{PATH}` is required."
    }
  ],
  "isRequired": true
}

Validators

location_id

{
  "path": "location_id",
  "instance": "ObjectID",
  "options": {
    "index": true,
    "link": "Location",
    "required": true
  },
  "validators": [
    {
      "message": "Path `{PATH}` is required."
    }
  ],
  "isRequired": true
}

Validators

name

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

Validators

probability

{
  "path": "probability",
  "instance": "Number",
  "options": {},
  "validators": []
}

track_id

{
  "path": "track_id",
  "instance": "ObjectID",
  "options": {
    "link": "Track",
    "index": true,
    "required": true
  },
  "validators": [
    {
      "message": "Path `{PATH}` is required."
    }
  ],
  "isRequired": true
}

Validators

updatedAt

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

user_id

{
  "path": "user_id",
  "instance": "ObjectID",
  "options": {
    "link": "User",
    "index": true,
    "required": true
  },
  "validators": [
    {
      "message": "Path `{PATH}` is required."
    }
  ],
  "isRequired": true
}

Validators

value

{
  "path": "value",
  "instance": "Number",
  "options": {},
  "validators": []
}