Model opportunities
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 | | |
| assigned_to_id | ObjectID | User | assigned_to | | x | | |
| completed | Boolean | | | false | x | | |
| createdAt | Date | | | | | | |
| data | Mixed | | | | | | |
| date_completed | Date | | | | | | |
| date_created | Date | | | [Function] | | | |
| lead_id | ObjectID | Lead | | | x | | x |
| location_id | ObjectID | Location | | | x | | x |
| name | String | | | | x | | x |
| probability | Number | | | | | | |
| track_id | ObjectID | Track | | | x | | x |
| updatedAt | Date | | | | | | |
| user_id | ObjectID | User | | | x | | x |
| value | Number | | | | | | |
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
}assigned_to_id
{
"path": "assigned_to_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "User",
"map_to": "assigned_to"
},
"validators": []
}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]"
}lead_id
{
"path": "lead_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "Lead",
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
location_id
{
"path": "location_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "Location",
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
name
{
"path": "name",
"instance": "String",
"options": {
"index": true,
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
probability
{
"path": "probability",
"instance": "Number",
"options": {},
"validators": []
}track_id
{
"path": "track_id",
"instance": "ObjectID",
"options": {
"link": "Track",
"index": true,
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
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.
value
{
"path": "value",
"instance": "Number",
"options": {},
"validators": []
}