syntax = "proto3";

package devvit.data.api.admin;

import "devvit/data/api/admin/rfr/research_organization.proto";

option go_package = "github.snooguts.net/reddit/devplatform-api/go/grpc/devvit/data/api/admin/rfr";

message Researcher {
  string user_id = 1;
  string username = 2;
  ResearchOrganization organization = 3;
}

message CreateResearcherRequest {
  string user_id = 1;
  string username = 2;
  int64 organization_id = 3;
}

message CreateResearcherResponse {
  Researcher researcher = 1;
}

message UpdateResearcherRequest {
  string user_id = 1;
  string username = 2;
  int64 organization_id = 3;
}

message UpdateResearcherResponse {
  Researcher researcher = 1;
}

message GetResearchersByOrganizationIdRequest {
  int64 organization_id = 1;
}

message GetResearchersByOrganizationIdResponse {
  repeated Researcher researchers = 1;
}

message GetResearchersRequest {}

message GetResearchersResponse {
  repeated Researcher researchers = 1;
}

message GetResearcherByIdRequest {
  string user_id = 1;
}

message GetResearcherByIdResponse {
  Researcher researcher = 1;
}

message DeleteResearcherRequest {
  string user_id = 1;
}

message DeleteResearcherResponse {
  Researcher researcher = 1;
}
