Model proposals
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 | | |
| converted | Boolean | | | false | | | |
| createdAt | Date | | | | | | |
| filename | String | | | | | | |
| lead_id | ObjectID | Lead | | | x | | |
| line_items | Array of Mixed | | | [Function] | | | |
| location_id | ObjectID | Location | | | x | | |
| name | String | | | | x | | |
| opportunity_id | ObjectID | Opportunity | | | x | | |
| proposal_date | Date | | | | x | | |
| proposal_number | Number | | | | x | | |
| proposal_state | String | | | | x | | |
| proposal_type | String | | | | x | | |
| reference | String | | | | | | |
| track_id | ObjectID | Track | | | x | | |
| updatedAt | Date | | | | | | |
| valid_until | Date | | | 1767510464821 | x | | |
| value | Number | | | 0 | | | |
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": []
}converted
{
"path": "converted",
"instance": "Boolean",
"options": {
"default": false
},
"validators": [],
"defaultValue": false
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}filename
{
"path": "filename",
"instance": "String",
"options": {},
"validators": []
}lead_id
{
"path": "lead_id",
"instance": "ObjectID",
"options": {
"link": "Lead",
"index": true
},
"validators": []
}line_items
{
"path": "line_items",
"instance": "Array",
"options": {
"type": []
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "Mixed"
}location_id
{
"path": "location_id",
"instance": "ObjectID",
"options": {
"link": "Location",
"index": true
},
"validators": []
}name
{
"path": "name",
"instance": "String",
"options": {
"index": true
},
"validators": []
}opportunity_id
{
"path": "opportunity_id",
"instance": "ObjectID",
"options": {
"link": "Opportunity",
"index": true
},
"validators": []
}proposal_date
{
"path": "proposal_date",
"instance": "Date",
"options": {
"index": true
},
"validators": []
}proposal_number
{
"path": "proposal_number",
"instance": "Number",
"options": {
"index": true
},
"validators": []
}proposal_state
{
"path": "proposal_state",
"instance": "String",
"options": {
"index": true,
"enum": [
"draft",
"sent",
"accepted",
"declined"
]
},
"validators": [
{
"message": "`{VALUE}` is not a valid enum value for path `{PATH}`."
}
]
}Validators
- : `{VALUE}` is not a valid enum value for path `{PATH}`.
proposal_type
{
"path": "proposal_type",
"instance": "String",
"options": {
"index": true
},
"validators": []
}reference
{
"path": "reference",
"instance": "String",
"options": {},
"validators": []
}track_id
{
"path": "track_id",
"instance": "ObjectID",
"options": {
"link": "Track",
"index": true
},
"validators": []
}updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}valid_until
{
"path": "valid_until",
"instance": "Date",
"options": {
"index": true,
"default": 1767510464821
},
"validators": [],
"defaultValue": 1767510464821
}value
{
"path": "value",
"instance": "Number",
"options": {
"default": 0
},
"validators": [],
"defaultValue": 0
}