(WIP) generic UI for both coupon and registration codes and updated the ORM mo...

@cdodge here i just updated the ORM models for registration code and made the UI generic for both coupon and registration code. I did not run the migration yet, as i just updated the models for review.