Model bookings
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| admin | x | x | x | x |
| owner | x | x | x | x |
| user | 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 | | |
| attendee_id | Array of ObjectID | | | [Function] | | | |
| booking_url | String | | | | | | |
| cost | Number | | | | | | |
| created | Date | | | [Function] | | | |
| createdAt | Date | | | | | | |
| description | String | | | | | | |
| end_time | Date | | | | x | | x |
| event_client | Boolean | | | false | | | |
| external_attendee | Array of String | | | [Function] | | | |
| external_id | String | | | | | | |
| guest_id | Array of ObjectID | | | [Function] | | | |
| hidden | Boolean | | | false | | | |
| ical_source | String | | | | x | | |
| img | String | | | | | | |
| internal_event | Boolean | | | false | | | |
| invoice_id | ObjectID | Invoice | | | | | |
| is_invoice | Boolean | | | false | | | |
| layout_id | ObjectID | Layout | | | | | |
| message | String | | | | | | |
| public_event | Boolean | | | false | | | |
| radius_password | String | | | | | | |
| radius_username | String | | | | | | |
| room_id | ObjectID | Room | | | x | | x |
| source | String | | | | | | |
| sponsored_event | Boolean | | | false | | | |
| start_time | Date | | | | x | | x |
| timezone | String | | | | | | |
| timezone_offset | String | | | | | | |
| title | String | | | | | | x |
| updatedAt | Date | | | | | | |
| user_id | ObjectID | User | | | | | |
| website | String | | | | | | |
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
- : Path `{PATH}` is required.
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
- : Path `{PATH}` is required.
source
{
"path": "source",
"instance": "String",
"options": {
"validate": {}
},
"validators": [
{}
]
}Validators
- : source => `${source.value} is not a valid source. Source must be 'web' or 'app'.`
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
- : Path `{PATH}` is required.
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
- : Path `{PATH}` is required.
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": []
}