The idea is to store all the games which come from IGDB when searching into the database and then returning "our" games as the search result. We need to check the database (using the external ID) for if the games already exist and only fetching the metadata from the games which we need to fill in.
Note that this also includes getting the platform information and storing that in its respective database table as well. For simplicity's sake let's just store the game ID and platform ID as the ones we get directly from IGDB.
The idea is to store all the games which come from IGDB when searching into the database and then returning "our" games as the search result. We need to check the database (using the external ID) for if the games already exist and only fetching the metadata from the games which we need to fill in.
Note that this also includes getting the platform information and storing that in its respective database table as well. For simplicity's sake let's just store the game ID and platform ID as the ones we get directly from IGDB.