Model tracks


Permissions

User GroupCreate?Read?Update?Delete?
setupxxxx
adminx

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?Required?
__vNumber
_deletedBooleanfalsex
_idObjectID[Function]
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
createdAtDate
date_createdDate[Function]
nameString
tag_idArray of ObjectID[Function]
tasksArray[Function]
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": []
}

createdAt

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

date_created

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

name

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

tag_id

{
  "path": "tag_id",
  "instance": "Array",
  "options": {
    "type": [
      {
        "index": true,
        "link": "Tag"
      }
    ]
  },
  "validators": [],
  "defaultValue": "[Function]",
  "arrayType": "ObjectID"
}

tasks

{
  "path": "tasks",
  "instance": "Array",
  "options": {
    "type": [
      {
        "category": {
          "enum": [
            "call",
            "email",
            "follow_up",
            "meeting",
            "milestone",
            "site_visit"
          ],
          "index": true,
          "default": "email"
        },
        "due_after_event": {
          "enum": [
            "track_start",
            "last_task"
          ],
          "index": true,
          "default": "last_task"
        }
      }
    ]
  },
  "validators": [],
  "defaultValue": "[Function]"
}

updatedAt

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