syntax = "proto3";

package discosrv;

message DatabaseRecord {
  repeated DatabaseAddress addresses = 1;
  int64 seen = 3; // Unix nanos, last device announce
}

message ReplicationRecord {
  bytes key = 1; // raw 32 byte device ID
  repeated DatabaseAddress addresses = 2;
  int64 seen = 3; // Unix nanos, last device announce
}

message DatabaseAddress {
  string address = 1;
  int64 expires = 2; // Unix nanos
}
