am trying to figure out how to update this table, so when an order is placed, spots decrease by that order, and also free is updated. Then once a person checks out free will increment.
{
id: 1,
title: "Hotel 1",
price: 5,
rating: 4.2,
spots: 20,
free: 10,
coordinate: {
latitude: 37.78735,
longitude: -122.4334
},
description: `Description about this place`
}