syntax = "proto3";

package igdb_game;

option go_package = "igdb_game";

import "eventbus/owner.proto";
import "google/protobuf/timestamp.proto";

// IgdbGameUpdate triggers whenever a game is updated.
//
// Game and API information can be found at https://www.igdb.com
// NOTE this can occur whenever a direct or indirect piece of data changes.
// Adding a release date to a game would trigger one IgdbGameUpdate, where
// altering the description of a genre would trigger an IgdbGameUpdate for
// every game that has that genre.
message IgdbGameUpdate {
  option (eventbus.owner.ldap_group) = "team-igdb";
  // The IGDB Game ID
  string game_id = 1;
  // The timestamp of the database write that triggered this event
  google.protobuf.Timestamp modified_at = 2;
}
