Model contacts
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 | | |
| bio | String | | | | | | |
| createdAt | Date | | | | | | |
| email | String | | | | x | | x |
| guest_id | ObjectID | Guest | | | | | |
| img | String | | | | | | |
| lead_id | Array of ObjectID | | | [Function] | | | |
| mobile | String | | | | | | |
| name | String | | | | | | |
| notes | Array | | | [Function] | | | |
| organisation | String | | | | | | |
| updatedAt | Date | | | | | | |
| user_id | ObjectID | User | | | | | |
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": []
}bio
{
"path": "bio",
"instance": "String",
"options": {},
"validators": []
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}email
{
"path": "email",
"instance": "String",
"options": {
"index": true,
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
guest_id
{
"path": "guest_id",
"instance": "ObjectID",
"options": {
"link": "Guest"
},
"validators": []
}img
{
"path": "img",
"instance": "String",
"options": {},
"validators": []
}lead_id
{
"path": "lead_id",
"instance": "Array",
"options": {
"type": [
{
"link": "Lead"
}
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "ObjectID"
}mobile
{
"path": "mobile",
"instance": "String",
"options": {},
"validators": []
}name
{
"path": "name",
"instance": "String",
"options": {},
"validators": []
}notes
{
"path": "notes",
"instance": "Array",
"options": {
"type": [
{
"date_created": {},
"user_id": {
"link": "User"
}
}
]
},
"validators": [],
"defaultValue": "[Function]"
}organisation
{
"path": "organisation",
"instance": "String",
"options": {},
"validators": []
}updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}user_id
{
"path": "user_id",
"instance": "ObjectID",
"options": {
"link": "User"
},
"validators": []
}