-- NOTE: This file is auto generated by ./sql-generator

-- AuditRepository.getAfter
select distinct
  on ("audit"."entityId", "audit"."entityType") "audit"."entityId"
from
  "audit"
where
  "audit"."createdAt" > $1
  and "audit"."action" = $2
  and "audit"."entityType" = $3
  and "audit"."ownerId" in ($4)
order by
  "audit"."entityId" desc,
  "audit"."entityType" desc,
  "audit"."createdAt" desc
