Referrals
Per-customer referral codes (idempotent generate / read).
Read a customer's referral code
Returns the existing referral code for the customer, or `null` if none exists yet.
Generate (or read) a referral code — idempotent
Idempotent on `(shop, customerId)`. If a code already exists for the