Files
mealprep/backend/src/main/java/com/recipeapp/admin/AdminAuditLogRepository.java
Marcel Raddatz 9ec703abcd Implement Recipe, Planning, Shopping, Pantry, and Admin domains
Outside-in TDD for all 5 remaining domains (128 tests total):
- Recipe: CRUD, ingredients autocomplete/patch, tags, categories (27 tests)
- Planning: week plans, slots, confirm, suggestions, variety score, cooking logs (24 tests)
- Shopping: generate from plan, publish, check/add/remove items (15 tests)
- Pantry: CRUD with expiry sorting (11 tests)
- Admin: user management, password reset, audit logging (13 tests)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-01 21:56:51 +02:00

18 lines
558 B
Java

package com.recipeapp.admin;
import com.recipeapp.admin.entity.AdminAuditLog;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;
import java.util.UUID;
public interface AdminAuditLogRepository extends JpaRepository<AdminAuditLog, UUID> {
List<AdminAuditLog> findByTargetUserIdOrderByPerformedAtDesc(UUID targetUserId, Pageable pageable);
List<AdminAuditLog> findAllByOrderByPerformedAtDesc(Pageable pageable);
long countByTargetUserId(UUID targetUserId);
}