How to ensure every customer has a unique code?

How to ensure every customer has a unique code?

 While Creating a Plan in Jwero.Jewellers must add Plan Code in the a plan.Based on the Plan Code added each customer will be assigned an Unique code.


For Ex.

If the Plan name is - Golden Varsha Scheme 

The Plan code is - GVS

Then each customer will be assigned unique code as GVS-1234 or GVS-2345 or GVS34587 etc


Since plan code is recommended to be kept different for each customer.Each Customer if assigned in a different plan will have a unique code based on each plan.