kinda not updated but y'know, 'tis what 'tis

tl;dr

Businesses manage and create stamp card campaigns

Users collect stamps and redeem completed stamp cards for rewards

Database

User

uuid

active_cards

string

Array<string>

unique user id

StampCard uuids where user has ≥1 stamp

Business

uuid

name

lat

long

address

campaigns

pending

string

string

number

number

string

Array<string>

Array<string>

unique business id

business name

business latitude

business longitude

business address

uuids of StampCards

uuids of unpublished StampCards from other businesses requesting current business to join

StampCard

uuid

published

num_stamps

participants

start_date

end_date

reward_name

reward_details

stamp_icon

string

boolean

number

Array<string>

Date

Date

string

string

idk

unique stampcard id

whether the stampcard is finalized

total number of stamps in card

uuids of participating businesses

start date/time of campaign

end date/time of campaign

"title" of campaign

"description" of card campaign

custom stamp icons

UserCard

user

campaign

entries

string

string

Array<string>

uuid of associated user

uuid of associated StampCard

uuids of stamp transactions for the campaign

Stamp

API

/api/users

/getNearbyBusinesses

GET— get a list of all businesses with active campaigns within X radius from current location