syntax = "proto2";

package maps_adv.geosmb.landlord.proto.rating;

import "google/protobuf/timestamp.proto";
import "maps_adv/geosmb/landlord/proto/common.proto";

message Rating {
  required common.Decimal aggregated_rating = 1;
  required uint32 review_count = 2;
  repeated UserReview reviews = 3;
}

message UserReview {
  required string username = 1;
  optional common.ImageTemplate userpic = 2;
  required google.protobuf.Timestamp created_at = 3;
  required common.Decimal rating = 4;
  required string text = 5;
}
