Model leads
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| admin | x | x | x | |
| super_user | x | x | x | x |
| user | x | | | |
| all | x | | | |
Fields
| Name | Type | Link | Maps To | Default | Indexed? | Unique? | Required? |
|---|
| __v | Number | | | | | | |
| _deleted | Boolean | | | false | x | | |
| _id | ObjectID | | | [Function] | | | |
| _owner_id | ObjectID | | | | | | |
| _updated_by_id | ObjectID | User | _updated_by | | x | | |
| accounts_email | String | | | | | | |
| address | String | | | | | | |
| archived | Boolean | | | false | x | | |
| company_registration_number | String | | | | | | |
| createdAt | Date | | | | | | |
| data | Mixed | | | | | | |
| date_created | Date | | | [Function] | x | | |
| date_start | Date | | | | x | | |
| email | String | | | | x | | |
| g-recaptcha-response | String | | | | | | |
| heat | String | | | mild | | | |
| how_did_you_find_out_about_us | String | | | | | | |
| id_number | String | | | | | | |
| industrysector_id | ObjectID | IndustrySector | | | | | |
| intercom_id | String | | | | | | |
| leadsource_id | ObjectID | LeadSource | | | | | |
| leadtype_id | ObjectID | LeadType | | | | | |
| legal_name | String | | | | | | |
| location_id | ObjectID | Location | | | x | | |
| mailtemplate_id | ObjectID | | | | | | |
| marketing_opt_in | Boolean | | | false | | | |
| meeting_date | Date | | | | x | | |
| membership_id | ObjectID | Membership | | | | | |
| mobile | String | | | | | | |
| name | String | | | | x | | |
| opportunity_id | Array of ObjectID | | | [Function] | | | |
| organisation | String | | | | | | |
| pax | Number | | | | | | |
| postal_address | String | | | | | | |
| promo_code | String | | | | | | |
| referral_amount | Number | | | | | | |
| referral_date_paid | Date | | | | | | |
| referral_user_id | ObjectID | User | referral_user | | | | |
| seats | Number | | | | | | |
| short_name | String | | | | | | |
| source_info | String | | | | | | |
| space_id | ObjectID | Space | | | x | | |
| spam | Boolean | | | false | | | |
| updatedAt | Date | | | | | | |
| url | String | | | | | | |
| vat | String | | | | | | |
| website | String | | | | | | |
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": {},
"validators": []
}_updated_by_id
{
"path": "_updated_by_id",
"instance": "ObjectID",
"options": {
"link": "User",
"map_to": "_updated_by",
"index": true
},
"validators": []
}accounts_email
{
"path": "accounts_email",
"instance": "String",
"options": {},
"validators": []
}address
{
"path": "address",
"instance": "String",
"options": {},
"validators": []
}archived
{
"path": "archived",
"instance": "Boolean",
"options": {
"default": false,
"index": true
},
"validators": [],
"defaultValue": false
}company_registration_number
{
"path": "company_registration_number",
"instance": "String",
"options": {},
"validators": []
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}data
{
"path": "data",
"instance": "Mixed",
"options": {},
"validators": []
}date_created
{
"path": "date_created",
"instance": "Date",
"options": {
"index": true
},
"validators": [],
"defaultValue": "[Function]"
}date_start
{
"path": "date_start",
"instance": "Date",
"options": {
"max": "3000-01-01",
"index": true
},
"validators": [
{
"message": "Path `{PATH}` ({VALUE}) is after maximum allowed value (3000-01-01)."
}
]
}Validators
- : Path `{PATH}` ({VALUE}) is after maximum allowed value (3000-01-01).
email
{
"path": "email",
"instance": "String",
"options": {
"index": true,
"validate": [
null,
"Please use a valid email address"
]
},
"validators": [
{
"message": "Please use a valid email address"
}
]
}Validators
- : Please use a valid email address
g-recaptcha-response
{
"path": "g-recaptcha-response",
"instance": "String",
"options": {},
"validators": []
}heat
{
"path": "heat",
"instance": "String",
"options": {
"validate": {},
"default": "mild"
},
"validators": [
{
"message": "Validator failed for path `{PATH}` with value `{VALUE}`"
}
],
"defaultValue": "mild"
}Validators
- : Validator failed for path `{PATH}` with value `{VALUE}`
how_did_you_find_out_about_us
{
"path": "how_did_you_find_out_about_us",
"instance": "String",
"options": {},
"validators": []
}id_number
{
"path": "id_number",
"instance": "String",
"options": {},
"validators": []
}industrysector_id
{
"path": "industrysector_id",
"instance": "ObjectID",
"options": {
"link": "IndustrySector"
},
"validators": []
}intercom_id
{
"path": "intercom_id",
"instance": "String",
"options": {},
"validators": []
}leadsource_id
{
"path": "leadsource_id",
"instance": "ObjectID",
"options": {
"link": "LeadSource"
},
"validators": []
}leadtype_id
{
"path": "leadtype_id",
"instance": "ObjectID",
"options": {
"link": "LeadType"
},
"validators": []
}legal_name
{
"path": "legal_name",
"instance": "String",
"options": {},
"validators": []
}location_id
{
"path": "location_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "Location"
},
"validators": []
}mailtemplate_id
{
"path": "mailtemplate_id",
"instance": "ObjectID",
"options": {},
"validators": []
}marketing_opt_in
{
"path": "marketing_opt_in",
"instance": "Boolean",
"options": {
"default": false
},
"validators": [],
"defaultValue": false
}meeting_date
{
"path": "meeting_date",
"instance": "Date",
"options": {
"max": "3000-01-01",
"index": true
},
"validators": [
{
"message": "Path `{PATH}` ({VALUE}) is after maximum allowed value (3000-01-01)."
}
]
}Validators
- : Path `{PATH}` ({VALUE}) is after maximum allowed value (3000-01-01).
membership_id
{
"path": "membership_id",
"instance": "ObjectID",
"options": {
"link": "Membership"
},
"validators": []
}mobile
{
"path": "mobile",
"instance": "String",
"options": {},
"validators": []
}name
{
"path": "name",
"instance": "String",
"options": {
"index": true
},
"validators": []
}opportunity_id
{
"path": "opportunity_id",
"instance": "Array",
"options": {
"type": [
{
"link": "Opportunity"
}
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "ObjectID"
}organisation
{
"path": "organisation",
"instance": "String",
"options": {},
"validators": []
}pax
{
"path": "pax",
"instance": "Number",
"options": {},
"validators": []
}postal_address
{
"path": "postal_address",
"instance": "String",
"options": {},
"validators": []
}promo_code
{
"path": "promo_code",
"instance": "String",
"options": {},
"validators": []
}referral_amount
{
"path": "referral_amount",
"instance": "Number",
"options": {},
"validators": []
}referral_date_paid
{
"path": "referral_date_paid",
"instance": "Date",
"options": {},
"validators": []
}referral_user_id
{
"path": "referral_user_id",
"instance": "ObjectID",
"options": {
"link": "User",
"map_to": "referral_user"
},
"validators": []
}seats
{
"path": "seats",
"instance": "Number",
"options": {},
"validators": []
}short_name
{
"path": "short_name",
"instance": "String",
"options": {},
"validators": []
}source_info
{
"path": "source_info",
"instance": "String",
"options": {},
"validators": []
}space_id
{
"path": "space_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "Space"
},
"validators": []
}spam
{
"path": "spam",
"instance": "Boolean",
"options": {
"default": false
},
"validators": [],
"defaultValue": false
}updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}url
{
"path": "url",
"instance": "String",
"options": {},
"validators": []
}vat
{
"path": "vat",
"instance": "String",
"options": {},
"validators": []
}website
{
"path": "website",
"instance": "String",
"options": {},
"validators": []
}