Skip to content
Daniel Truong edited this page Jun 20, 2022 · 14 revisions

Reservations Object

This is an object that is created when a pass is booked. This object is used to retain capacity levels on a given day per facility.

The object is as follows:

{
    pk: reservations::{park name}::{facility name}
    sk: 2022-06-09
    capacities: {
        "AM":{
            "baseCapacity": 123,
            "capacityModifier": 20,
            "availablePasses": 143
        },
        "PM":{
            "baseCapacity": 123,
            "capacityModifier": 20,
            "availablePasses": 50
        },
        "DAY":{
            "baseCapacity": 123,
            "capacityModifier": -20,
            "availablePasses": 75
        },
        "FUTURE_TIMESLOT":{
            "baseCapacity": 123,
            "capacityModifier": -20,
            "availablePasses": 10
        }
    }
}

"baseCapacity" represents the base capacity that is found on the facility object. This attribute is to be used in conjunction with modifier.

ie. capacity: 123 with modifier: 20 means that the specific timeslot has 153 capacity for the given day.

"availablePasses" is a pool of passes that are available. As passes are booked, this number is decremented until the count hits 0. Then all passes are rejected.

  • TODO: We need to change park name in the PK to use orcs instead.
Clone this wiki locally