Model crmnotes
Permissions
User Group | Create? | Read? | Update? | Delete? |
---|
admin | x | x | x | |
Fields
Name | Type | Link | Maps To | Default | Indexed? | Unique? |
---|
__v | Number | | | | | |
_deleted | Boolean | | | false | x | |
_id | ObjectID | | | function defaultId() {
return new oid();
} | | |
_owner_id | ObjectID | User | _owner | | x | |
_updated_by_id | ObjectID | User | _updated_by | | x | |
createdAt | Date | | | | | |
date_created | Date | | | function now() { [native code] } | x | |
id | ObjectID | | | | x | |
lead_id | ObjectID | Lead | | | x | |
note | String | | | | | |
organisation_id | ObjectID | Organisation | | | x | |
reason_option | String | | | | | |
tag_id | Array | | | function() {
// Leave it up to `cast()` to convert the array
return fn
? defaultArr.call(this)
: defaultArr != null
? [].concat(defaultArr)
: [];
} | | |
title | String | | | | | |
updatedAt | Date | | | | | |
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": true
},
"_index": true
}
{
"path": "id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"id"
],
"options": {
"index": true
},
"_index": true
}
{
"path": "lead_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"lead_id"
],
"options": {
"index": true,
"link": "Lead"
},
"_index": true
}
{
"enumValues": [],
"regExp": null,
"path": "note",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"note"
],
"options": {},
"_index": null
}
{
"path": "organisation_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"organisation_id"
],
"options": {
"index": true,
"link": "Organisation"
},
"_index": true
}
{
"enumValues": [],
"regExp": null,
"path": "reason_option",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"reason_option"
],
"options": {},
"_index": null
}
{
"schemaOptions": {
"timestamps": true,
"toJSON": {
"virtuals": true
},
"toObject": {
"virtuals": true
},
"perms": {
"admin": "cru"
},
"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": "cru",
"owner": "",
"user": "",
"all": ""
},
"pluralization": true
},
"caster": {
"path": "tag_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"tag_id"
],
"options": {
"ref": "Tag"
},
"_index": null,
"_arrayPath": "tag_id.$",
"_arrayParentPath": "tag_id"
},
"$embeddedSchemaType": {
"path": "tag_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"tag_id"
],
"options": {
"ref": "Tag"
},
"_index": null,
"_arrayPath": "tag_id.$",
"_arrayParentPath": "tag_id"
},
"$isMongooseArray": true,
"path": "tag_id",
"instance": "Array",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"tag_id"
],
"options": {
"type": [
{
"ref": "Tag"
}
]
},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "title",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"title"
],
"options": {},
"_index": null
}
{
"path": "updatedAt",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"updatedAt"
],
"options": {},
"_index": null
}