Model notices


Permissions

User GroupCreate?Read?Update?Delete?
adminxxxx
userxx
ownerxxxx

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?Required?
__vNumber
_deletedBooleanfalsex
_idObjectID[Function]
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
adminBooleanfalsex
createdAtDate
display_endDate1772694843847
display_startDateFri Dec 05 2025 07:14:03 GMT+0000 (Coordinated Universal Time)
location_idArray of ObjectID[Function]
messageStringx
pinnedBooleanfalsex
typeStringrequestx
updatedAtDate
user_idObjectIDUserxx

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": []
}

admin

{
  "path": "admin",
  "instance": "Boolean",
  "options": {
    "default": false,
    "index": true
  },
  "validators": [],
  "defaultValue": false
}

createdAt

{
  "path": "createdAt",
  "instance": "Date",
  "options": {
    "immutable": true
  },
  "validators": []
}

display_end

{
  "path": "display_end",
  "instance": "Date",
  "options": {
    "default": 1772694843847
  },
  "validators": [],
  "defaultValue": "2026-03-05T07:14:03.847Z"
}

display_start

{
  "path": "display_start",
  "instance": "Date",
  "options": {
    "default": "2025-12-05T07:14:03.847Z"
  },
  "validators": [],
  "defaultValue": "2025-12-05T07:14:03.847Z"
}

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

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

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