Hello,
In my site, I let my Users to redeem coupons from a list of available coupons stored in a database table.
I would like to know what is a good way to implement this.
In a DB usually you will have a table like user_redemption to store the user_id and coupon_id as a composite key.
How would you do that in Drupal 8?
Should I create two custom Entities: Redemption, Coupon? And then use Field Definition of 'entity_reference' to link them?
Also I will have a large amount of coupons, what is a good way to insert them to my entity tables?