Model quicket_tickets
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? |
---|
__v | Number | | | | | |
_deleted | Boolean | | | false | x | |
_id | ObjectID | | | function defaultId() {
return new oid();
} | | |
_owner_id | ObjectID | User | _owner | | x | |
_updated_by_id | ObjectID | User | _updated_by | | x | |
amount_paid | Number | | | | | |
barcode | Number | | | | x | |
cellphone | String | | | | x | |
checked_in | String | | | | | |
checked_in_by | String | | | | | |
checkin_date | String | | | | | |
complimentary | String | | | | | |
createdAt | Date | | | | | |
date_added | Date | | | | x | |
discount_amount | Number | | | | | |
discount_code | String | | | | | |
email | String | | | | x | |
event_date | Date | | | | | |
first_name | String | | | | | |
frozen | Boolean | | | | | |
order_id | Number | | | | x | |
payment_method | String | | | | | |
price | Number | | | | | |
reader_id | ObjectID | reader | | | x | |
seat_number | String | | | | | |
surname | String | | | | | |
ticket_id | Number | | | | x | x |
ticket_type | String | | | | | |
ticket_type_id | Number | | | | | |
transferred_to_order_id | String | | | | | |
updatedAt | Date | | | | | |
valid | Boolean | | | | | |
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
}
{
"path": "amount_paid",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"amount_paid"
],
"options": {},
"_index": null
}
{
"path": "barcode",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"barcode"
],
"options": {
"index": true
},
"_index": true
}
{
"enumValues": [],
"regExp": null,
"path": "cellphone",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"cellphone"
],
"options": {
"index": true
},
"_index": true
}
{
"enumValues": [],
"regExp": null,
"path": "checked_in",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"checked_in"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "checked_in_by",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"checked_in_by"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "checkin_date",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"checkin_date"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "complimentary",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"complimentary"
],
"options": {},
"_index": null
}
{
"path": "createdAt",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [
null,
null
],
"_presplitPath": [
"createdAt"
],
"options": {
"immutable": true
},
"_index": null,
"$immutable": true
}
{
"path": "date_added",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"date_added"
],
"options": {
"index": true
},
"_index": true
}
{
"path": "discount_amount",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"discount_amount"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "discount_code",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"discount_code"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "email",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"email"
],
"options": {
"index": true
},
"_index": true
}
{
"path": "event_date",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"event_date"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "first_name",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"first_name"
],
"options": {},
"_index": null
}
{
"path": "frozen",
"instance": "Boolean",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"frozen"
],
"options": {},
"_index": null
}
{
"path": "order_id",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"order_id"
],
"options": {
"index": true
},
"_index": true
}
{
"enumValues": [],
"regExp": null,
"path": "payment_method",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"payment_method"
],
"options": {},
"_index": null
}
{
"path": "price",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"price"
],
"options": {},
"_index": null
}
{
"path": "reader_id",
"instance": "ObjectID",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"reader_id"
],
"options": {
"link": "reader",
"index": true
},
"_index": true
}
{
"enumValues": [],
"regExp": null,
"path": "seat_number",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"seat_number"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "surname",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"surname"
],
"options": {},
"_index": null
}
{
"path": "ticket_id",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"ticket_id"
],
"options": {
"index": true,
"unique": true
},
"_index": {
"unique": true
}
}
{
"enumValues": [],
"regExp": null,
"path": "ticket_type",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"ticket_type"
],
"options": {},
"_index": null
}
{
"path": "ticket_type_id",
"instance": "Number",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"ticket_type_id"
],
"options": {},
"_index": null
}
{
"enumValues": [],
"regExp": null,
"path": "transferred_to_order_id",
"instance": "String",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"transferred_to_order_id"
],
"options": {},
"_index": null
}
{
"path": "updatedAt",
"instance": "Date",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"updatedAt"
],
"options": {},
"_index": null
}
{
"path": "valid",
"instance": "Boolean",
"validators": [],
"getters": [],
"setters": [],
"_presplitPath": [
"valid"
],
"options": {},
"_index": null
}