Model events
Permissions
| User Group | Create? | Read? | Update? | Delete? |
|---|
| admin | x | x | x | x |
| owner | x | x | | |
| user | | 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 | | |
| booking_id | ObjectID | Booking | | | x | | |
| catering_id | Array of ObjectID | | | [Function] | | | |
| client_name | String | | | | | | |
| createdAt | Date | | | | | | |
| date_created | Date | | | [Function] | | | |
| description | String | | | | | | |
| end_date | Date | | | | | | |
| events_company_email | String | | | | | | |
| events_company_name | String | | | | | | |
| events_company_tel | String | | | | | | |
| img | Array of String | | | [Function] | | | |
| invoice_id | ObjectID | Invoice | | | x | | |
| layout | String | | | | | | |
| location_id | ObjectID | Location | | | x | | |
| name | String | | | | | | |
| notes | String | | | | | | |
| organisation_id | ObjectID | Organisation | | | x | | |
| organiser_email | String | | | | | | |
| organiser_name | String | | | | | | |
| organiser_tel | String | | | | | | |
| pax | Number | | | | | | |
| room_id | Array of ObjectID | | | [Function] | | | |
| start_date | Date | | | | | | |
| status | String | | | | | | |
| updatedAt | Date | | | | | | |
| user_id | ObjectID | User | | | x | | |
| wifi_password | String | | | | | | |
| wifi_username | 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": []
}booking_id
{
"path": "booking_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "Booking"
},
"validators": []
}catering_id
{
"path": "catering_id",
"instance": "Array",
"options": {
"type": [
{
"index": true,
"link": "Catering"
}
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "ObjectID"
}client_name
{
"path": "client_name",
"instance": "String",
"options": {},
"validators": []
}createdAt
{
"path": "createdAt",
"instance": "Date",
"options": {
"immutable": true
},
"validators": []
}date_created
{
"path": "date_created",
"instance": "Date",
"options": {},
"validators": [],
"defaultValue": "[Function]"
}description
{
"path": "description",
"instance": "String",
"options": {},
"validators": []
}end_date
{
"path": "end_date",
"instance": "Date",
"options": {},
"validators": []
}events_company_email
{
"path": "events_company_email",
"instance": "String",
"options": {},
"validators": []
}events_company_name
{
"path": "events_company_name",
"instance": "String",
"options": {},
"validators": []
}events_company_tel
{
"path": "events_company_tel",
"instance": "String",
"options": {},
"validators": []
}img
{
"path": "img",
"instance": "Array",
"options": {
"type": [
null
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "String"
}invoice_id
{
"path": "invoice_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "Invoice"
},
"validators": []
}layout
{
"path": "layout",
"instance": "String",
"options": {},
"validators": []
}location_id
{
"path": "location_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "Location"
},
"validators": []
}name
{
"path": "name",
"instance": "String",
"options": {},
"validators": []
}notes
{
"path": "notes",
"instance": "String",
"options": {},
"validators": []
}organisation_id
{
"path": "organisation_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "Organisation"
},
"validators": []
}organiser_email
{
"path": "organiser_email",
"instance": "String",
"options": {},
"validators": []
}organiser_name
{
"path": "organiser_name",
"instance": "String",
"options": {},
"validators": []
}organiser_tel
{
"path": "organiser_tel",
"instance": "String",
"options": {},
"validators": []
}pax
{
"path": "pax",
"instance": "Number",
"options": {},
"validators": []
}room_id
{
"path": "room_id",
"instance": "Array",
"options": {
"type": [
{
"index": true,
"link": "Room"
}
]
},
"validators": [],
"defaultValue": "[Function]",
"arrayType": "ObjectID"
}start_date
{
"path": "start_date",
"instance": "Date",
"options": {},
"validators": []
}status
{
"path": "status",
"instance": "String",
"options": {},
"validators": []
}updatedAt
{
"path": "updatedAt",
"instance": "Date",
"options": {},
"validators": []
}user_id
{
"path": "user_id",
"instance": "ObjectID",
"options": {
"index": true,
"link": "User"
},
"validators": []
}wifi_password
{
"path": "wifi_password",
"instance": "String",
"options": {},
"validators": []
}wifi_username
{
"path": "wifi_username",
"instance": "String",
"options": {},
"validators": []
}