Dear All,
I am having a problem that you might be able to help me with.
I am making a small online game, to be deployed to a 1.5m user base. It's a kind of buying/selling game. In the game, there are three important entities, shop, user and item. Each user may only possess 50 or so items at once.
The problem is how to do the shop, user and item relationship. I would like the shop table related to the item table, so a shop can own an item, but then when a user buys an item, the item related to the user.
I suppose I am wondering whether to create shop_item and user_item tables, have multiple foreign keys in the item table (is this allowed)? or something like that.
Is there a right (or good way) to do this?
thanks in advance!
Tom