I have multiple type of digital goods that can be bought from site.(Passes and tickets).
I want some suggestions regarding what should be the database structure of such payments .Table used for storing payments is purchase history
OPTION 1
1st option can be as shown below in which item id of each product will be in seperate column. For each payment only that column of that product is populated which is purchased .
OPTION 2 In second option Id of product will be store in 1 column and type of product in other.
Please suggest which option is better or can there be any other method which is better and efficient than these ?