Skip to content
guest@rgautam320:~$
cd ../work

for Kesari Club · Jodhpur, India· Jun 2026 – Jul 2026

Kesari Club

A membership card that unlocks discounts at partner businesses.

membership cards redeemed at checkout
QR
passwords — WhatsApp OTP login
0
kesariclub.com (opens in a new tab)

rgautam320=# EXPLAIN ANALYZE SELECT * FROM kesari_club;

  1. member
  2. partner_business
  3. member to membership_card
  4. member to redemption
  5. partner_business to offer
  6. partner_business to redemption
  7. offer to coupon
  8. coupon to redemption

Client: Kesari Club Market: Jodhpur, India Execution time: 2 months

Overview

A lifestyle membership platform for Kesari Club in Jodhpur. Members carry a QR-code card and redeem offers at partner businesses; every redemption is recorded, so members can see their history and total savings.

role = Developer — data model, authentication, membership cards, member dashboard

Data model

Entities from the data model I designed. Relationships are drawn from how the features use them.

rgautam320=# \d+ kesari_club

Kesari Club data modelmemberPK idpartner_businessPK idmembership_cardPK idFK member_idredemptionPK idFK member_idFK coupon_idFK partner_idofferPK idFK partner_idcouponPK idFK offer_id
Relationships
fromtocardinality
membermembership_cardone-to-one
memberredemptionone-to-many
partner_businessofferone-to-many
partner_businessredemptionone-to-many
offercouponone-to-many
couponredemptionone-to-many

(6 relationships)

Features

rgautam320=# SELECT feature FROM kesari_club.features;

Features
feature
Passwordless login with WhatsApp OTP verification
QR-code membership cards linked to each member’s account
Offers and coupons redeemed at partner checkouts
Member dashboard: card, available coupons, transaction history and total savings

(4 rows)

Decisions

$ git log --format='%h %s%n%n %b' -- decisions/

  1. 013843d decision: Passwordless sign-in over WhatsApp

    Members log in with a one-time code sent on WhatsApp instead of a password.

  2. 98f193b decision: The card is the account

    Each QR-code membership card is linked to one member’s account and scanned at the partner’s checkout to redeem an offer.

  3. f0f0bc9 decision: Redemptions as transactions

    Every redemption is stored as a transaction against the member, the coupon and the partner, which is what makes usage history and total savings possible.

Outcomes & stack

rgautam320=# SELECT outcome FROM kesari_club.outcomes;

Outcomes
outcome
Live at kesariclub.com.
Members see every redemption and their total savings.

(2 rows)

rgautam320=# SELECT string_agg(tech, ' · ') FROM kesari_club.stack;

Stack
string_agg
Next.js · NestJS · MongoDB · REST APIs

(1 row)

psql — guest@rajangautam.com.np:5432/rgautam320
psql (16) — connected to "rgautam320" as "guest" (read-only).
Type help for help, or start typing and press Tab.