(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 have run the migration.