using Domain.Entities;
namespace Features.Breweries.Repository;
///
/// Repository for CRUD operations on brewery post records.
///
public interface IBreweryRepository
{
/// Retrieves a brewery post by ID, or null if not found.
Task GetByIdAsync(Guid id);
Task> GetAllAsync(int? limit, int? offset);
Task UpdateAsync(BreweryPost brewery);
Task DeleteAsync(Guid id);
/// Creates a new brewery post, including its location details.
/// Thrown when has no Location.
Task CreateAsync(BreweryPost brewery);
}