package com.cloudhandson.ddsbackoffice.domain;

/** Read-only evidence collected immediately after a protected search executes. */
public record DdsSqlEvidence(
    boolean available,
    String requestId,
    String executedSql,
    String sqlId,
    Integer childNumber,
    String lastActiveTime,
    Long executions,
    String planPredicate,
    String vpdPredicate,
    String status
) {
  public static DdsSqlEvidence unavailable(String requestId, String executedSql, String status) {
    return new DdsSqlEvidence(false, requestId, executedSql, null, null, null, null, null, null, status);
  }
}
