Model specialoffers
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| manager | x | x | x | x |
| line_manager | x | x | x | x |
| finance | x | x | x | x |
| admin | | 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 | User | _owner | | x | | |
| _updated_by_id | ObjectID | User | _updated_by | | x | | |
| body | String | | | | | | |
| createdAt | Date | | | | | | |
| date | Date | | | [Function] | x | | x |
| description | String | | | | | | |
| end_date | Date | | | [Function] | x | | |
| img | String | | | | | | |
| link | String | | | | | | |
| location_id | Array of ObjectID | | | [Function] | | | |
| name | String | | | | x | x | |
| partner | String | | | | | | |
| partner_code | String | | | | | | |
| start_date | Date | | | [Function] | x | | |
| updatedAt | Date | | | | | | |
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": []
}body
{
"path": "body",
"instance": "String",
"options": {},
"validators": []
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}date
{
"path": "date",
"instance": "Date",
"options": {
"required": true,
"index": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true,
"defaultValue": "[Function]"
}Validators
- : Path `{PATH}` is required.
description
{
"path": "description",
"instance": "String",
"options": {},
"validators": []
}end_date
{
"path": "end_date",
"instance": "Date",
"options": {
"index": true
},
"validators": [],
"defaultValue": "[Function]"
}img
{
"path": "img",
"instance": "String",
"options": {},
"validators": []
}link
{
"path": "link",
"instance": "String",
"options": {},
"validators": []
}location_id
{
"path": "location_id",
"instance": "Array",
"options": {
"type": [
{
"link": "Location"
}
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "ObjectID"
}name
{
"path": "name",
"instance": "String",
"options": {
"unique": true,
"index": true
},
"validators": []
}partner
{
"path": "partner",
"instance": "String",
"options": {},
"validators": []
}partner_code
{
"path": "partner_code",
"instance": "String",
"options": {},
"validators": []
}start_date
{
"path": "start_date",
"instance": "Date",
"options": {
"index": true
},
"validators": [],
"defaultValue": "[Function]"
}updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}