Allocate a user to next empty item

Hi there, @LA81638… I don’t know what it means for a coupon code to be assigned in your app, but in theory, you could simply do a search for the first coupon code that’s unassigned, and assign that code to the new user.

The above being said (and I’m guessing you know this already), you will likely want to handle the situation where multiple users sign up at the “same” time, and that’s where the concept in this post/thread should be useful.

Hope this helps.

Best…
Mike