Model crmnotes
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| admin | x | x | x | |
Fields
| Name | Type | Link | Maps To | Default | Indexed? | Unique? | Required? |
|---|
| __v | Number | | | | | | |
| _deleted | Boolean | | | false | x | | |
| _id | ObjectID | | | [Function] | | | |
| _owner_id | ObjectID | User | _owner | | x | | |
| _updated_by_id | ObjectID | User | _updated_by | | x | | |
| createdAt | Date | | | | | | |
| date_created | Date | | | [Function] | x | | |
| id | ObjectID | | | | x | | |
| lead_id | ObjectID | Lead | | | x | | |
| note | String | | | | | | |
| organisation_id | ObjectID | Organisation | | | x | | |
| reason_option | String | | | | | | |
| tag_id | Array of ObjectID | | | [Function] | | | |
| title | String | | | | | | |
| updatedAt | Date | | | | | | |
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": {
"index": true
},
"validators": [],
"defaultValue": "[Function]"
}id
{
"path": "id",
"instance": "ObjectID",
"options": {
"index": true
},
"validators": []
}lead_id
{
"path": "lead_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "Lead"
},
"validators": []
}note
{
"path": "note",
"instance": "String",
"options": {},
"validators": []
}organisation_id
{
"path": "organisation_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "Organisation"
},
"validators": []
}reason_option
{
"path": "reason_option",
"instance": "String",
"options": {},
"validators": []
}tag_id
{
"path": "tag_id",
"instance": "Array",
"options": {
"type": [
{
"ref": "Tag"
}
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "ObjectID"
}title
{
"path": "title",
"instance": "String",
"options": {},
"validators": []
}updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}