// EN: Query to get tables by shop.
// VI: Query lấy danh sách bàn theo shop.

using MediatR;

namespace FnbEngine.API.Application.Queries;

/// <summary>
/// EN: Query to get tables by shop.
/// VI: Query lấy danh sách bàn theo shop.
/// </summary>
public record GetTablesQuery(Guid ShopId) : IRequest<IEnumerable<TableDto>>;

/// <summary>
/// EN: Table data transfer object.
/// VI: Data transfer object cho Table.
/// </summary>
public record TableDto(
    Guid Id,
    Guid ShopId,
    string TableNumber,
    int Capacity,
    string? Zone,
    string Status,
    decimal HourlyRate = 0,
    int? PositionX = null,
    int? PositionY = null,
    string? QrToken = null
);
