Model notices
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| admin | x | x | x | x |
| user | x | x | | |
| owner | 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 | | |
| createdAt | Date | | | | | | |
| display_end | Date | | | 1772694464978 | | | |
| display_start | Date | | | Fri Dec 05 2025 07:07:44 GMT+0000 (Coordinated Universal Time) | | | |
| location_id | Array of ObjectID | | | [Function] | | | |
| message | String | | | | | | x |
| pinned | Boolean | | | false | x | | |
| type | String | | | request | 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": []
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}display_end
{
"path": "display_end",
"instance": "Date",
"options": {
"default": 1772694464978
},
"validators": [],
"defaultValue": "2026-03-05T07:07:44.978Z"
}display_start
{
"path": "display_start",
"instance": "Date",
"options": {
"default": "2025-12-05T07:07:44.977Z"
},
"validators": [],
"defaultValue": "2025-12-05T07:07:44.977Z"
}location_id
{
"path": "location_id",
"instance": "Array",
"options": {
"type": [
{
"link": "Location",
"required": true,
"index": true
}
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "ObjectID"
}message
{
"path": "message",
"instance": "String",
"options": {
"required": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.
pinned
{
"path": "pinned",
"instance": "Boolean",
"options": {
"default": false,
"index": true
},
"validators": [],
"defaultValue": false
}type
{
"path": "type",
"instance": "String",
"options": {
"validate": {},
"default": "request",
"index": true
},
"validators": [
{
"message": "Validator failed for path `{PATH}` with value `{VALUE}`"
}
],
"defaultValue": "request"
}Validators
- : Validator failed for path `{PATH}` with value `{VALUE}`
updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}user_id
{
"path": "user_id",
"instance": "ObjectID",
"options": {
"link": "User",
"required": true,
"index": true
},
"validators": [
{
"message": "Path `{PATH}` is required."
}
],
"isRequired": true
}Validators
- : Path `{PATH}` is required.