badass-courses / course-builder

🍄 experimental platform for building Badass Courses
https://www.coursebuilder.dev
MIT License
345 stars 27 forks source link

make bulk coupon relations and naming easier to understand #246

Closed joelhooks closed 2 months ago

joelhooks commented 2 months ago

PNJS-35

we had an extra column on coupon for legacy reasons called bulkPurchaseId that previously linked a bulk coupon (used for redeeming team seats) with a single purchase. We've since added the idea that a single coupon spans multiple purchases for bulk and purchasing more adds to the maxUses of the single coupon.

the coupon has a relation to bulkCouponPurchases and bulkPurchases which is also confusing so bulkCouponPurchases will change to redeemedBulkCouponPurchases to more robustly describe what's the actual relationship and make it easier to distinguish.

linear[bot] commented 2 months ago

CB-9 make bulk coupon relations and naming easier to understand