syntax = "proto2";
package rockpaperscissors;
option go_package = "proto";

message Event {
  optional bytes uuid = 1;  // All events have a 128 bit UUID
  optional double timestamp = 2;  // "epoch" time with subsecond precision

  optional string type = 3;
  optional bytes body = 4;

  // Deprecated: use the attributes list, instead.
  optional string project = 5 [deprecated=true];
  optional string developer = 6 [deprecated=true];

  // Attributes can be queried for using QueryEvents.
  message Attribute {
    optional string key = 1;
    optional string value = 2;
  }
  repeated Attribute attributes = 7;
}
