Model tracks


Permissions

User GroupCreate?Read?Update?Delete?
setupxxxx
adminx

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?
__vNumber
_deletedBooleanfalsex
_idObjectIDfunction defaultId() { return new oid(); }
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
createdAtDate
date_createdDatefunction now() { [native code] }
nameString
tag_idArrayfunction() { // Leave it up to `cast()` to convert the array return fn ? defaultArr.call(this) : defaultArr != null ? [].concat(defaultArr) : []; }
tasksArrayfunction() { let arr = fn.call(this); if (arr != null && !Array.isArray(arr)) { arr = [arr]; } // Leave it up to `cast()` to convert this to a documentarray return arr; }
updatedAtDate

Raw definition

{
	"path": "__v",
	"instance": "Number",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"__v"
	],
	"options": {},
	"_index": null
}
{
	"path": "_deleted",
	"instance": "Boolean",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"_deleted"
	],
	"options": {
		"default": false,
		"index": true
	},
	"_index": true,
	"defaultValue": false
}
{
	"path": "_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [
		null
	],
	"_presplitPath": [
		"_id"
	],
	"options": {
		"auto": true,
		"type": "ObjectId"
	},
	"_index": null
}
{
	"path": "_owner_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"_owner_id"
	],
	"options": {
		"link": "User",
		"map_to": "_owner",
		"index": true
	},
	"_index": true
}
{
	"path": "_updated_by_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"_updated_by_id"
	],
	"options": {
		"link": "User",
		"map_to": "_updated_by",
		"index": true
	},
	"_index": true
}
{
	"path": "createdAt",
	"instance": "Date",
	"validators": [],
	"getters": [],
	"setters": [
		null,
		null
	],
	"_presplitPath": [
		"createdAt"
	],
	"options": {
		"immutable": true
	},
	"_index": null,
	"$immutable": true
}
{
	"path": "date_created",
	"instance": "Date",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"date_created"
	],
	"options": {},
	"_index": null
}
{
	"enumValues": [],
	"regExp": null,
	"path": "name",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"name"
	],
	"options": {},
	"_index": null
}
{
	"schemaOptions": {
		"timestamps": true,
		"toJSON": {
			"virtuals": true
		},
		"toObject": {
			"virtuals": true
		},
		"perms": {
			"setup": "crud",
			"admin": "r"
		},
		"typeKey": "type",
		"id": true,
		"_id": true,
		"validateBeforeSave": true,
		"read": null,
		"shardKey": null,
		"discriminatorKey": "__t",
		"autoIndex": null,
		"minimize": true,
		"optimisticConcurrency": false,
		"versionKey": "__v",
		"capped": false,
		"bufferCommands": true,
		"strictQuery": true,
		"strict": true,
		"_perms": {
			"admin": "r",
			"owner": "",
			"user": "",
			"all": "",
			"setup": "crud"
		},
		"pluralization": true
	},
	"caster": {
		"path": "tag_id",
		"instance": "ObjectID",
		"validators": [],
		"getters": [],
		"setters": [],
		"_presplitPath": [
			"tag_id"
		],
		"options": {
			"index": true,
			"link": "Tag"
		},
		"_index": true,
		"_arrayPath": "tag_id.$",
		"_arrayParentPath": "tag_id"
	},
	"$embeddedSchemaType": {
		"path": "tag_id",
		"instance": "ObjectID",
		"validators": [],
		"getters": [],
		"setters": [],
		"_presplitPath": [
			"tag_id"
		],
		"options": {
			"index": true,
			"link": "Tag"
		},
		"_index": true,
		"_arrayPath": "tag_id.$",
		"_arrayParentPath": "tag_id"
	},
	"$isMongooseArray": true,
	"path": "tag_id",
	"instance": "Array",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"tag_id"
	],
	"options": {
		"type": [
			{
				"index": true,
				"link": "Tag"
			}
		]
	},
	"_index": null
}
{
	"schemaOptions": {},
	"$embeddedSchemaType": {
		"path": "tasks.$",
		"validators": [],
		"getters": [],
		"setters": [],
		"_presplitPath": [
			"tasks",
			"$"
		],
		"options": {
			"required": false
		},
		"_index": null,
		"isRequired": false,
		"$isMongooseDocumentArrayElement": true,
		"schema": {
			"obj": {
				"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"
				}
			},
			"paths": {
				"name": {
					"enumValues": [],
					"regExp": null,
					"path": "name",
					"instance": "String",
					"validators": [],
					"getters": [],
					"setters": [],
					"_presplitPath": [
						"name"
					],
					"options": {},
					"_index": null,
					"$isUnderneathDocArray": true
				},
				"category": {
					"enumValues": [
						"call",
						"email",
						"follow_up",
						"meeting",
						"milestone",
						"site_visit"
					],
					"regExp": null,
					"path": "category",
					"instance": "String",
					"validators": [
						{
							"message": "`{VALUE}` is not a valid enum value for path `{PATH}`.",
							"type": "enum",
							"enumValues": [
								"call",
								"email",
								"follow_up",
								"meeting",
								"milestone",
								"site_visit"
							]
						}
					],
					"getters": [],
					"setters": [],
					"_presplitPath": [
						"category"
					],
					"options": {
						"enum": [
							"call",
							"email",
							"follow_up",
							"meeting",
							"milestone",
							"site_visit"
						],
						"index": true,
						"default": "email"
					},
					"_index": true,
					"defaultValue": "email",
					"$isUnderneathDocArray": true
				},
				"due_after_event": {
					"enumValues": [
						"track_start",
						"last_task"
					],
					"regExp": null,
					"path": "due_after_event",
					"instance": "String",
					"validators": [
						{
							"message": "`{VALUE}` is not a valid enum value for path `{PATH}`.",
							"type": "enum",
							"enumValues": [
								"track_start",
								"last_task"
							]
						}
					],
					"getters": [],
					"setters": [],
					"_presplitPath": [
						"due_after_event"
					],
					"options": {
						"enum": [
							"track_start",
							"last_task"
						],
						"index": true,
						"default": "last_task"
					},
					"_index": true,
					"defaultValue": "last_task",
					"$isUnderneathDocArray": true
				},
				"due_after_days": {
					"path": "due_after_days",
					"instance": "Number",
					"validators": [],
					"getters": [],
					"setters": [],
					"_presplitPath": [
						"due_after_days"
					],
					"options": {},
					"_index": null,
					"$isUnderneathDocArray": true
				},
				"_id": {
					"path": "_id",
					"instance": "ObjectID",
					"validators": [],
					"getters": [],
					"setters": [
						null
					],
					"_presplitPath": [
						"_id"
					],
					"options": {
						"auto": true,
						"type": "ObjectId"
					},
					"_index": null,
					"$isUnderneathDocArray": true
				}
			},
			"aliases": {},
			"subpaths": {},
			"virtuals": {
				"id": {
					"path": "id",
					"getters": [
						null
					],
					"setters": [],
					"options": {}
				}
			},
			"singleNestedPaths": {},
			"nested": {},
			"inherits": {},
			"callQueue": [],
			"_indexes": [],
			"methods": {},
			"methodOptions": {},
			"statics": {},
			"tree": {
				"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"
				},
				"_id": {
					"auto": true,
					"type": "ObjectId"
				},
				"id": {
					"path": "id",
					"getters": [
						null
					],
					"setters": [],
					"options": {}
				}
			},
			"query": {},
			"childSchemas": [],
			"plugins": [
				{
					"opts": {
						"deduplicate": true
					}
				},
				{
					"opts": {
						"deduplicate": true
					}
				},
				{
					"opts": {
						"deduplicate": true
					}
				},
				{
					"opts": {
						"deduplicate": true
					}
				},
				{
					"opts": {
						"deduplicate": true
					}
				}
			],
			"$id": 32,
			"mapPaths": [],
			"s": {
				"hooks": {
					"_pres": {},
					"_posts": {}
				}
			},
			"_userProvidedOptions": {
				"minimize": true,
				"typeKey": "type",
				"strict": true,
				"strictQuery": true
			},
			"options": {
				"minimize": true,
				"typeKey": "type",
				"strict": true,
				"strictQuery": true,
				"id": true,
				"_id": true,
				"validateBeforeSave": true,
				"read": null,
				"shardKey": null,
				"discriminatorKey": "__t",
				"autoIndex": null,
				"optimisticConcurrency": false,
				"versionKey": "__v",
				"capped": false,
				"bufferCommands": true
			},
			"$implicitlyCreated": true,
			"$globalPluginsApplied": true
		}
	},
	"$isMongooseArray": true,
	"path": "tasks",
	"instance": "Array",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"tasks"
	],
	"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"
				}
			}
		]
	},
	"_index": null,
	"schema": {
		"obj": {
			"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"
			}
		},
		"paths": {
			"name": {
				"enumValues": [],
				"regExp": null,
				"path": "name",
				"instance": "String",
				"validators": [],
				"getters": [],
				"setters": [],
				"_presplitPath": [
					"name"
				],
				"options": {},
				"_index": null,
				"$isUnderneathDocArray": true
			},
			"category": {
				"enumValues": [
					"call",
					"email",
					"follow_up",
					"meeting",
					"milestone",
					"site_visit"
				],
				"regExp": null,
				"path": "category",
				"instance": "String",
				"validators": [
					{
						"message": "`{VALUE}` is not a valid enum value for path `{PATH}`.",
						"type": "enum",
						"enumValues": [
							"call",
							"email",
							"follow_up",
							"meeting",
							"milestone",
							"site_visit"
						]
					}
				],
				"getters": [],
				"setters": [],
				"_presplitPath": [
					"category"
				],
				"options": {
					"enum": [
						"call",
						"email",
						"follow_up",
						"meeting",
						"milestone",
						"site_visit"
					],
					"index": true,
					"default": "email"
				},
				"_index": true,
				"defaultValue": "email",
				"$isUnderneathDocArray": true
			},
			"due_after_event": {
				"enumValues": [
					"track_start",
					"last_task"
				],
				"regExp": null,
				"path": "due_after_event",
				"instance": "String",
				"validators": [
					{
						"message": "`{VALUE}` is not a valid enum value for path `{PATH}`.",
						"type": "enum",
						"enumValues": [
							"track_start",
							"last_task"
						]
					}
				],
				"getters": [],
				"setters": [],
				"_presplitPath": [
					"due_after_event"
				],
				"options": {
					"enum": [
						"track_start",
						"last_task"
					],
					"index": true,
					"default": "last_task"
				},
				"_index": true,
				"defaultValue": "last_task",
				"$isUnderneathDocArray": true
			},
			"due_after_days": {
				"path": "due_after_days",
				"instance": "Number",
				"validators": [],
				"getters": [],
				"setters": [],
				"_presplitPath": [
					"due_after_days"
				],
				"options": {},
				"_index": null,
				"$isUnderneathDocArray": true
			},
			"_id": {
				"path": "_id",
				"instance": "ObjectID",
				"validators": [],
				"getters": [],
				"setters": [
					null
				],
				"_presplitPath": [
					"_id"
				],
				"options": {
					"auto": true,
					"type": "ObjectId"
				},
				"_index": null,
				"$isUnderneathDocArray": true
			}
		},
		"aliases": {},
		"subpaths": {},
		"virtuals": {
			"id": {
				"path": "id",
				"getters": [
					null
				],
				"setters": [],
				"options": {}
			}
		},
		"singleNestedPaths": {},
		"nested": {},
		"inherits": {},
		"callQueue": [],
		"_indexes": [],
		"methods": {},
		"methodOptions": {},
		"statics": {},
		"tree": {
			"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"
			},
			"_id": {
				"auto": true,
				"type": "ObjectId"
			},
			"id": {
				"path": "id",
				"getters": [
					null
				],
				"setters": [],
				"options": {}
			}
		},
		"query": {},
		"childSchemas": [],
		"plugins": [
			{
				"opts": {
					"deduplicate": true
				}
			},
			{
				"opts": {
					"deduplicate": true
				}
			},
			{
				"opts": {
					"deduplicate": true
				}
			},
			{
				"opts": {
					"deduplicate": true
				}
			},
			{
				"opts": {
					"deduplicate": true
				}
			}
		],
		"$id": 32,
		"mapPaths": [],
		"s": {
			"hooks": {
				"_pres": {},
				"_posts": {}
			}
		},
		"_userProvidedOptions": {
			"minimize": true,
			"typeKey": "type",
			"strict": true,
			"strictQuery": true
		},
		"options": {
			"minimize": true,
			"typeKey": "type",
			"strict": true,
			"strictQuery": true,
			"id": true,
			"_id": true,
			"validateBeforeSave": true,
			"read": null,
			"shardKey": null,
			"discriminatorKey": "__t",
			"autoIndex": null,
			"optimisticConcurrency": false,
			"versionKey": "__v",
			"capped": false,
			"bufferCommands": true
		},
		"$implicitlyCreated": true,
		"$globalPluginsApplied": true
	},
	"$isMongooseDocumentArray": true
}
{
	"path": "updatedAt",
	"instance": "Date",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"updatedAt"
	],
	"options": {},
	"_index": null
}