package tv.pluto.mongo.entities.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.BsonType;
import org.bson.codecs.pojo.annotations.BsonRepresentation;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class ExternalIds {
  @BsonRepresentation(BsonType.OBJECT_ID)
  private String id;

  private String key;
  private String value;

  public String getKey() {
    return key == null ? "" : key;
  }

  public String getValue() {
    return value == null ? "" : value;
  }
}
