Model bookings


Permissions

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

Fields

NameTypeLinkMaps ToDefaultIndexed?Unique?
__vNumber
_deletedBooleanfalsex
_idObjectIDfunction defaultId() { return new oid(); }
_owner_idObjectIDUser_ownerx
_updated_by_idObjectIDUser_updated_byx
attendee_idArrayfunction() { // Leave it up to `cast()` to convert the array return fn ? defaultArr.call(this) : defaultArr != null ? [].concat(defaultArr) : []; }
booking_urlString
costNumber
createdDatefunction now() { [native code] }
createdAtDate
descriptionString
end_timeDatex
event_clientBooleanfalse
external_attendeeArrayfunction() { // Leave it up to `cast()` to convert the array return fn ? defaultArr.call(this) : defaultArr != null ? [].concat(defaultArr) : []; }
external_idString
guest_idArrayfunction() { // Leave it up to `cast()` to convert the array return fn ? defaultArr.call(this) : defaultArr != null ? [].concat(defaultArr) : []; }
hiddenBooleanfalse
ical_sourceStringx
imgString
internal_eventBooleanfalse
invoice_idObjectIDInvoice
is_invoiceBooleanfalse
layout_idObjectIDLayout
messageString
public_eventBooleanfalse
radius_passwordString
radius_usernameString
room_idObjectIDRoomx
sourceString
sponsored_eventBooleanfalse
start_timeDatex
timezoneString
timezone_offsetString
titleString
updatedAtDate
user_idObjectIDUser
websiteString

Raw definition

{
	"path": "__v",
	"instance": "Number",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"__v"
	],
	"options": {},
	"_index": null
}
{
	"path": "_deleted",
	"instance": "Boolean",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"_deleted"
	],
	"options": {
		"default": false,
		"index": true
	},
	"_index": true,
	"defaultValue": false
}
{
	"path": "_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [
		null
	],
	"_presplitPath": [
		"_id"
	],
	"options": {
		"auto": true,
		"type": "ObjectId"
	},
	"_index": null
}
{
	"path": "_owner_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"_owner_id"
	],
	"options": {
		"link": "User",
		"map_to": "_owner",
		"index": true
	},
	"_index": true
}
{
	"path": "_updated_by_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"_updated_by_id"
	],
	"options": {
		"link": "User",
		"map_to": "_updated_by",
		"index": true
	},
	"_index": true
}
{
	"schemaOptions": {
		"timestamps": true,
		"toJSON": {
			"virtuals": true
		},
		"toObject": {
			"virtuals": true
		},
		"perms": {
			"admin": "crud",
			"owner": "crud",
			"user": "cr"
		},
		"typeKey": "type",
		"id": true,
		"_id": true,
		"validateBeforeSave": true,
		"read": null,
		"shardKey": null,
		"discriminatorKey": "__t",
		"autoIndex": null,
		"minimize": true,
		"optimisticConcurrency": false,
		"versionKey": "__v",
		"capped": false,
		"bufferCommands": true,
		"strictQuery": true,
		"strict": true,
		"_perms": {
			"admin": "crud",
			"owner": "crud",
			"user": "cr",
			"all": ""
		},
		"pluralization": true
	},
	"caster": {
		"path": "attendee_id",
		"instance": "ObjectID",
		"validators": [],
		"getters": [],
		"setters": [],
		"_presplitPath": [
			"attendee_id"
		],
		"options": {
			"link": "User",
			"map_to": "attendee"
		},
		"_index": null,
		"_arrayPath": "attendee_id.$",
		"_arrayParentPath": "attendee_id"
	},
	"$embeddedSchemaType": {
		"path": "attendee_id",
		"instance": "ObjectID",
		"validators": [],
		"getters": [],
		"setters": [],
		"_presplitPath": [
			"attendee_id"
		],
		"options": {
			"link": "User",
			"map_to": "attendee"
		},
		"_index": null,
		"_arrayPath": "attendee_id.$",
		"_arrayParentPath": "attendee_id"
	},
	"$isMongooseArray": true,
	"path": "attendee_id",
	"instance": "Array",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"attendee_id"
	],
	"options": {
		"type": [
			{
				"link": "User",
				"map_to": "attendee"
			}
		]
	},
	"_index": null
}
{
	"enumValues": [],
	"regExp": null,
	"path": "booking_url",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"booking_url"
	],
	"options": {},
	"_index": null
}
{
	"path": "cost",
	"instance": "Number",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"cost"
	],
	"options": {},
	"_index": null
}
{
	"path": "created",
	"instance": "Date",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"created"
	],
	"options": {},
	"_index": null
}
{
	"path": "createdAt",
	"instance": "Date",
	"validators": [],
	"getters": [],
	"setters": [
		null,
		null
	],
	"_presplitPath": [
		"createdAt"
	],
	"options": {
		"immutable": true
	},
	"_index": null,
	"$immutable": true
}
{
	"enumValues": [],
	"regExp": null,
	"path": "description",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"description"
	],
	"options": {},
	"_index": null
}
{
	"path": "end_time",
	"instance": "Date",
	"validators": [
		{
			"message": "Path `{PATH}` is required.",
			"type": "required"
		}
	],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"end_time"
	],
	"options": {
		"required": true,
		"index": true
	},
	"_index": true,
	"isRequired": true,
	"originalRequiredValue": true
}
{
	"path": "event_client",
	"instance": "Boolean",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"event_client"
	],
	"options": {
		"default": false
	},
	"_index": null,
	"defaultValue": false
}
{
	"schemaOptions": {
		"timestamps": true,
		"toJSON": {
			"virtuals": true
		},
		"toObject": {
			"virtuals": true
		},
		"perms": {
			"admin": "crud",
			"owner": "crud",
			"user": "cr"
		},
		"typeKey": "type",
		"id": true,
		"_id": true,
		"validateBeforeSave": true,
		"read": null,
		"shardKey": null,
		"discriminatorKey": "__t",
		"autoIndex": null,
		"minimize": true,
		"optimisticConcurrency": false,
		"versionKey": "__v",
		"capped": false,
		"bufferCommands": true,
		"strictQuery": true,
		"strict": true,
		"_perms": {
			"admin": "crud",
			"owner": "crud",
			"user": "cr",
			"all": ""
		},
		"pluralization": true
	},
	"caster": {
		"enumValues": [],
		"regExp": null,
		"path": "external_attendee",
		"instance": "String",
		"validators": [],
		"getters": [],
		"setters": [],
		"_presplitPath": [
			"external_attendee"
		],
		"options": {},
		"_index": null,
		"_arrayPath": "external_attendee.$",
		"_arrayParentPath": "external_attendee"
	},
	"$embeddedSchemaType": {
		"enumValues": [],
		"regExp": null,
		"path": "external_attendee",
		"instance": "String",
		"validators": [],
		"getters": [],
		"setters": [],
		"_presplitPath": [
			"external_attendee"
		],
		"options": {},
		"_index": null,
		"_arrayPath": "external_attendee.$",
		"_arrayParentPath": "external_attendee"
	},
	"$isMongooseArray": true,
	"path": "external_attendee",
	"instance": "Array",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"external_attendee"
	],
	"options": {
		"type": [
			null
		]
	},
	"_index": null
}
{
	"enumValues": [],
	"regExp": null,
	"path": "external_id",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"external_id"
	],
	"options": {},
	"_index": null
}
{
	"schemaOptions": {
		"timestamps": true,
		"toJSON": {
			"virtuals": true
		},
		"toObject": {
			"virtuals": true
		},
		"perms": {
			"admin": "crud",
			"owner": "crud",
			"user": "cr"
		},
		"typeKey": "type",
		"id": true,
		"_id": true,
		"validateBeforeSave": true,
		"read": null,
		"shardKey": null,
		"discriminatorKey": "__t",
		"autoIndex": null,
		"minimize": true,
		"optimisticConcurrency": false,
		"versionKey": "__v",
		"capped": false,
		"bufferCommands": true,
		"strictQuery": true,
		"strict": true,
		"_perms": {
			"admin": "crud",
			"owner": "crud",
			"user": "cr",
			"all": ""
		},
		"pluralization": true
	},
	"caster": {
		"path": "guest_id",
		"instance": "ObjectID",
		"validators": [],
		"getters": [],
		"setters": [],
		"_presplitPath": [
			"guest_id"
		],
		"options": {
			"link": "Guest"
		},
		"_index": null,
		"_arrayPath": "guest_id.$",
		"_arrayParentPath": "guest_id"
	},
	"$embeddedSchemaType": {
		"path": "guest_id",
		"instance": "ObjectID",
		"validators": [],
		"getters": [],
		"setters": [],
		"_presplitPath": [
			"guest_id"
		],
		"options": {
			"link": "Guest"
		},
		"_index": null,
		"_arrayPath": "guest_id.$",
		"_arrayParentPath": "guest_id"
	},
	"$isMongooseArray": true,
	"path": "guest_id",
	"instance": "Array",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"guest_id"
	],
	"options": {
		"type": [
			{
				"link": "Guest"
			}
		]
	},
	"_index": null
}
{
	"path": "hidden",
	"instance": "Boolean",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"hidden"
	],
	"options": {
		"default": false
	},
	"_index": null,
	"defaultValue": false
}
{
	"enumValues": [],
	"regExp": null,
	"path": "ical_source",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"ical_source"
	],
	"options": {
		"index": true
	},
	"_index": true
}
{
	"enumValues": [],
	"regExp": null,
	"path": "img",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"img"
	],
	"options": {},
	"_index": null
}
{
	"path": "internal_event",
	"instance": "Boolean",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"internal_event"
	],
	"options": {
		"default": false
	},
	"_index": null,
	"defaultValue": false
}
{
	"path": "invoice_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"invoice_id"
	],
	"options": {
		"link": "Invoice"
	},
	"_index": null
}
{
	"path": "is_invoice",
	"instance": "Boolean",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"is_invoice"
	],
	"options": {
		"default": false
	},
	"_index": null,
	"defaultValue": false
}
{
	"path": "layout_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"layout_id"
	],
	"options": {
		"link": "Layout"
	},
	"_index": null
}
{
	"enumValues": [],
	"regExp": null,
	"path": "message",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"message"
	],
	"options": {},
	"_index": null
}
{
	"path": "public_event",
	"instance": "Boolean",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"public_event"
	],
	"options": {
		"default": false
	},
	"_index": null,
	"defaultValue": false
}
{
	"enumValues": [],
	"regExp": null,
	"path": "radius_password",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"radius_password"
	],
	"options": {},
	"_index": null
}
{
	"enumValues": [],
	"regExp": null,
	"path": "radius_username",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"radius_username"
	],
	"options": {},
	"_index": null
}
{
	"path": "room_id",
	"instance": "ObjectID",
	"validators": [
		{
			"message": "Path `{PATH}` is required.",
			"type": "required"
		}
	],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"room_id"
	],
	"options": {
		"link": "Room",
		"required": true,
		"index": true
	},
	"_index": true,
	"isRequired": true,
	"originalRequiredValue": true
}
{
	"enumValues": [],
	"regExp": null,
	"path": "source",
	"instance": "String",
	"validators": [
		{
			"type": "user defined"
		}
	],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"source"
	],
	"options": {
		"validate": {}
	},
	"_index": null
}
{
	"path": "sponsored_event",
	"instance": "Boolean",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"sponsored_event"
	],
	"options": {
		"default": false
	},
	"_index": null,
	"defaultValue": false
}
{
	"path": "start_time",
	"instance": "Date",
	"validators": [
		{
			"message": "Path `{PATH}` is required.",
			"type": "required"
		}
	],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"start_time"
	],
	"options": {
		"required": true,
		"index": true
	},
	"_index": true,
	"isRequired": true,
	"originalRequiredValue": true
}
{
	"enumValues": [],
	"regExp": null,
	"path": "timezone",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"timezone"
	],
	"options": {},
	"_index": null
}
{
	"enumValues": [],
	"regExp": null,
	"path": "timezone_offset",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"timezone_offset"
	],
	"options": {},
	"_index": null
}
{
	"enumValues": [],
	"regExp": null,
	"path": "title",
	"instance": "String",
	"validators": [
		{
			"message": "Path `{PATH}` is required.",
			"type": "required"
		}
	],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"title"
	],
	"options": {
		"required": true
	},
	"_index": null,
	"isRequired": true,
	"originalRequiredValue": true
}
{
	"path": "updatedAt",
	"instance": "Date",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"updatedAt"
	],
	"options": {},
	"_index": null
}
{
	"path": "user_id",
	"instance": "ObjectID",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"user_id"
	],
	"options": {
		"link": "User"
	},
	"_index": null
}
{
	"enumValues": [],
	"regExp": null,
	"path": "website",
	"instance": "String",
	"validators": [],
	"getters": [],
	"setters": [],
	"_presplitPath": [
		"website"
	],
	"options": {},
	"_index": null
}