Model quicket_tickets


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
amount_paidNumber
barcodeNumberx
cellphoneStringx
checked_inString
checked_in_byString
checkin_dateString
complimentaryString
createdAtDate
date_addedDatex
discount_amountNumber
discount_codeString
emailStringx
event_dateDate
first_nameString
frozenBoolean
order_idNumberx
payment_methodString
priceNumber
reader_idObjectIDreaderx
seat_numberString
surnameString
ticket_idNumberxx
ticket_typeString
ticket_type_idNumber
transferred_to_order_idString
updatedAtDate
validBoolean

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

amount_paid

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

barcode

{
  "path": "barcode",
  "instance": "Number",
  "options": {
    "index": true
  },
  "validators": []
}

cellphone

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

checked_in

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

checked_in_by

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

checkin_date

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

complimentary

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

createdAt

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

date_added

{
  "path": "date_added",
  "instance": "Date",
  "options": {
    "index": true
  },
  "validators": []
}

discount_amount

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

discount_code

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

email

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

event_date

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

first_name

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

frozen

{
  "path": "frozen",
  "instance": "Boolean",
  "options": {},
  "validators": []
}

order_id

{
  "path": "order_id",
  "instance": "Number",
  "options": {
    "index": true
  },
  "validators": []
}

payment_method

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

price

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

reader_id

{
  "path": "reader_id",
  "instance": "ObjectID",
  "options": {
    "link": "reader",
    "index": true
  },
  "validators": []
}

seat_number

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

surname

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

ticket_id

{
  "path": "ticket_id",
  "instance": "Number",
  "options": {
    "index": true,
    "unique": true
  },
  "validators": []
}

ticket_type

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

ticket_type_id

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

transferred_to_order_id

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

updatedAt

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

valid

{
  "path": "valid",
  "instance": "Boolean",
  "options": {},
  "validators": []
}