I want to create a download center in my website where specific users can download specific content for which they have paid for. I thinking of creating a MySQL table like :
items | user1 | user2 |user3
----------
item1 | true |false |false
----------
item2 | false | true |false
----------
and then checking if user is allowed. In this case I have to add a new column for every new user and this could be a problem with increasing no. of users.
I doubt if this is a good or efficient way.
Please suggest if there is any better approach.