Is there a method for storing one-to-many relationships within a table? Say I had a Player, and the player had multiple Tickets. How could I store multiple ticket primary keys within one player?
Even if you do not directly support one-to-many, you can set up multiple indexes to:
Create a separate player, ticket struct. These become tables. Place a player_id in the ticket and create a secondary index using player_id. You can search for the player's tickets by using both the player_id and the ticket id.
The following links can help. https://developers.eos.io/eosio-cpp/docs/multi-index-table-tutorial
The link below will be really helpful. There are many concepts and relationships between them.