UNIQUE INDEX allows for the uniqueness of a value in one or multiple columns (Ex. CREATE UNIQUE INDEX idx_voter ON votes(voter, date);
Postgres' built in CURRENT_DATE function allows you to default to and search by the current date if user does not specify one
You can access any data property via the dataset
async functions can have multiple awaits. The code will execute and stop at each await until that promise has successfully resolved until moving onwards
JSON.stringify is the way to convert a JS object to a JSON string
Today I Learned...
SQL
UNIQUE INDEX
allows for the uniqueness of a value in one or multiple columns (Ex.CREATE UNIQUE INDEX idx_voter ON votes(voter, date);