Model bookings


Permissions

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

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?Required?
__vNumber
_deletedBooleanfalsex
_idObjectID[Function]
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
attendee_idArray of ObjectID[Function]
booking_urlString
costNumber
createdDate[Function]
createdAtDate
descriptionString
end_timeDatexx
event_clientBooleanfalse
external_attendeeArray of String[Function]
external_idString
guest_idArray of ObjectID[Function]
hiddenBooleanfalse
ical_sourceStringx
imgString
internal_eventBooleanfalse
invoice_idObjectIDInvoice
is_invoiceBooleanfalse
layout_idObjectIDLayout
messageString
public_eventBooleanfalse
radius_passwordString
radius_usernameString
room_idObjectIDRoomxx
sourceString
sponsored_eventBooleanfalse
start_timeDatexx
timezoneString
timezone_offsetString
titleStringx
updatedAtDate
user_idObjectIDUser
websiteString

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

attendee_id

{
  "path": "attendee_id",
  "instance": "Array",
  "options": {
    "type": [
      {
        "link": "User",
        "map_to": "attendee"
      }
    ]
  },
  "validators": [],
  "defaultValue": "[Function]",
  "arrayType": "ObjectID"
}

booking_url

{
  "path": "booking_url",
  "instance": "String",
  "options": {},
  "validators": []
}

cost

{
  "path": "cost",
  "instance": "Number",
  "options": {},
  "validators": []
}

created

{
  "path": "created",
  "instance": "Date",
  "options": {},
  "validators": [],
  "defaultValue": "[Function]"
}

createdAt

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

description

{
  "path": "description",
  "instance": "String",
  "options": {},
  "validators": []
}

end_time

{
  "path": "end_time",
  "instance": "Date",
  "options": {
    "required": true,
    "index": true
  },
  "validators": [
    {
      "message": "Path `{PATH}` is required."
    }
  ],
  "isRequired": true
}

Validators

event_client

{
  "path": "event_client",
  "instance": "Boolean",
  "options": {
    "default": false
  },
  "validators": [],
  "defaultValue": false
}

external_attendee

{
  "path": "external_attendee",
  "instance": "Array",
  "options": {
    "type": [
      null
    ]
  },
  "validators": [],
  "defaultValue": "[Function]",
  "arrayType": "String"
}

external_id

{
  "path": "external_id",
  "instance": "String",
  "options": {},
  "validators": []
}

guest_id

{
  "path": "guest_id",
  "instance": "Array",
  "options": {
    "type": [
      {
        "link": "Guest"
      }
    ]
  },
  "validators": [],
  "defaultValue": "[Function]",
  "arrayType": "ObjectID"
}

hidden

{
  "path": "hidden",
  "instance": "Boolean",
  "options": {
    "default": false
  },
  "validators": [],
  "defaultValue": false
}

ical_source

{
  "path": "ical_source",
  "instance": "String",
  "options": {
    "index": true
  },
  "validators": []
}

img

{
  "path": "img",
  "instance": "String",
  "options": {},
  "validators": []
}

internal_event

{
  "path": "internal_event",
  "instance": "Boolean",
  "options": {
    "default": false
  },
  "validators": [],
  "defaultValue": false
}

invoice_id

{
  "path": "invoice_id",
  "instance": "ObjectID",
  "options": {
    "link": "Invoice"
  },
  "validators": []
}

is_invoice

{
  "path": "is_invoice",
  "instance": "Boolean",
  "options": {
    "default": false
  },
  "validators": [],
  "defaultValue": false
}

layout_id

{
  "path": "layout_id",
  "instance": "ObjectID",
  "options": {
    "link": "Layout"
  },
  "validators": []
}

message

{
  "path": "message",
  "instance": "String",
  "options": {},
  "validators": []
}

public_event

{
  "path": "public_event",
  "instance": "Boolean",
  "options": {
    "default": false
  },
  "validators": [],
  "defaultValue": false
}

radius_password

{
  "path": "radius_password",
  "instance": "String",
  "options": {},
  "validators": []
}

radius_username

{
  "path": "radius_username",
  "instance": "String",
  "options": {},
  "validators": []
}

room_id

{
  "path": "room_id",
  "instance": "ObjectID",
  "options": {
    "link": "Room",
    "required": true,
    "index": true
  },
  "validators": [
    {
      "message": "Path `{PATH}` is required."
    }
  ],
  "isRequired": true
}

Validators

source

{
  "path": "source",
  "instance": "String",
  "options": {
    "validate": {}
  },
  "validators": [
    {}
  ]
}

Validators

sponsored_event

{
  "path": "sponsored_event",
  "instance": "Boolean",
  "options": {
    "default": false
  },
  "validators": [],
  "defaultValue": false
}

start_time

{
  "path": "start_time",
  "instance": "Date",
  "options": {
    "required": true,
    "index": true
  },
  "validators": [
    {
      "message": "Path `{PATH}` is required."
    }
  ],
  "isRequired": true
}

Validators

timezone

{
  "path": "timezone",
  "instance": "String",
  "options": {},
  "validators": []
}

timezone_offset

{
  "path": "timezone_offset",
  "instance": "String",
  "options": {},
  "validators": []
}

title

{
  "path": "title",
  "instance": "String",
  "options": {
    "required": true
  },
  "validators": [
    {
      "message": "Path `{PATH}` is required."
    }
  ],
  "isRequired": true
}

Validators

updatedAt

{
  "path": "updatedAt",
  "instance": "Date",
  "options": {},
  "validators": []
}

user_id

{
  "path": "user_id",
  "instance": "ObjectID",
  "options": {
    "link": "User"
  },
  "validators": []
}

website

{
  "path": "website",
  "instance": "String",
  "options": {},
  "validators": []
}