package com.cloudhandson.vpdbackoffice.domain.probe;

/**
 * Durable, database-generated FGA evidence for a protected-object SELECT.
 * SQL text and RLS information come from Oracle's audit trail, not from a
 * re-evaluation of the VPD policy function.
 */
public record FgaExecutionEvidence(
    String eventAt,
    String dbUser,
    String clientId,
    String statementType,
    String sqlText,
    String rlsInfo
) {

  public boolean hasRlsInfo() {
    return rlsInfo != null && !rlsInfo.isBlank();
  }
}
