syntax = "proto3";

package wix.dataextensions.reindex;

option java_package = "com.wixpress.infra.dataextensions.v1";

import "google/protobuf/timestamp.proto";
import "wix/api/validations.proto";

message ReindexEvent {
  //fqdn of the dext schema that needs reindexing
  string fqdn = 1 [(wix.api.maxLength) = 255];
  //List of fields that needs reindexing
  repeated ReindexField fields = 2 [(wix.api.maxSize) = 100];
}

message ReindexField {
  //path of field that needs reindexing
  string field_path = 1 [(wix.api.maxLength) = 2000];
  //only reindex records updated after this timestamp
  google.protobuf.Timestamp reindex_since = 2;
}