Model tasks
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| admin | x | 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 | | |
| abandoned | Boolean | | | false | x | | |
| absolute_due_date | Date | | | | | | |
| category | String | | | email | x | | x |
| completed | Boolean | | | false | x | | |
| createdAt | Date | | | | | | |
| data | Mixed | | | | | | |
| date_completed | Date | | | | | | |
| date_created | Date | | | [Function] | | | |
| due_after_days | Number | | | | | | |
| due_after_task_id | ObjectID | Task | due_after_task | | x | | |
| due_date | Date | | | | | | |
| location_id | ObjectID | Location | | | x | | |
| name | String | | | | | | |
| opportunity_id | ObjectID | Opportunity | | | x | | x |
| original_due_date | Date | | | | | | |
| template_task_id | ObjectID | | | | | | |
| track_id | ObjectID | Track | | | x | | |
| updatedAt | Date | | | | | | |
| user_id | ObjectID | User | | | x | | x |
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": []
}abandoned
{
"path": "abandoned",
"instance": "Boolean",
"options": {
"default": false,
"index": true
},
"validators": [],
"defaultValue": false
}absolute_due_date
{
"path": "absolute_due_date",
"instance": "Date",
"options": {},
"validators": []
}category
{
"path": "category",
"instance": "String",
"options": {
"validate": {},
"index": true,
"default": "email",
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
},
{
"message": "Validator failed for path `{PATH}` with value `{VALUE}`"
}
],
"isRequired": true,
"defaultValue": "email"
}Validators
- : Path `{PATH}` is required.
- : Validator failed for path `{PATH}` with value `{VALUE}`
completed
{
"path": "completed",
"instance": "Boolean",
"options": {
"default": false,
"index": true
},
"validators": [],
"defaultValue": false
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}data
{
"path": "data",
"instance": "Mixed",
"options": {},
"validators": []
}date_completed
{
"path": "date_completed",
"instance": "Date",
"options": {},
"validators": []
}date_created
{
"path": "date_created",
"instance": "Date",
"options": {},
"validators": [],
"defaultValue": "[Function]"
}due_after_days
{
"path": "due_after_days",
"instance": "Number",
"options": {},
"validators": []
}due_after_task_id
{
"path": "due_after_task_id",
"instance": "ObjectID",
"options": {
"link": "Task",
"map_to": "due_after_task",
"index": true
},
"validators": []
}due_date
{
"path": "due_date",
"instance": "Date",
"options": {},
"validators": []
}location_id
{
"path": "location_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "Location"
},
"validators": []
}name
{
"path": "name",
"instance": "String",
"options": {},
"validators": []
}opportunity_id
{
"path": "opportunity_id",
"instance": "ObjectID",
"options": {
"link": "Opportunity",
"index": true,
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
original_due_date
{
"path": "original_due_date",
"instance": "Date",
"options": {},
"validators": []
}template_task_id
{
"path": "template_task_id",
"instance": "ObjectID",
"options": {},
"validators": []
}track_id
{
"path": "track_id",
"instance": "ObjectID",
"options": {
"link": "Track",
"index": true
},
"validators": []
}updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}user_id
{
"path": "user_id",
"instance": "ObjectID",
"options": {
"link": "User",
"index": true,
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.