package com.sikey.wa04.business.infrastructure.repository;

import com.sikey.wa04.business.infrastructure.dto.model.ChildSchoolDisableModel;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ChildSchoolDisableRepository extends JpaRepository<ChildSchoolDisableModel, Long> {
    List<ChildSchoolDisableModel> findByChildId(@Size(max = 36) @NotNull String childId);

    void deleteByChildIdIn(List<String> childIds);
}
