ubc-biztech / serverless-biztechapp

biztech's backend. AWS lambda, cognito, dynamodb, written in Node js
2 stars 1 forks source link

Track qr scans #310

Closed stevenh17 closed 6 months ago

stevenh17 commented 7 months ago

🎟️ Ticket(s): Closes #

👷 Changes: export const QR_SCANS_RECORD = "biztechQRScans";

A new table with the following fields

  1. timestamp as PK
  2. FK to QRCode scanned
  3. FK to user which scanned QRCode

Scanning a QR now calls a helper function to store QR and user information into biztechQRScans table

💭 Notes: I made timestamp a string and not a number, but if that's a problem I can remove the toString()

image image

Wait! Before you merge, have you checked the following:

stevenh17 commented 6 months ago

have merge conflicts

there was one line dev had that my branch didn't, but i think i resolved it