using Baya.Application.Models.Common;
using Baya.Application.Models.Geography;
using Mediator;

namespace Baya.Application.Features.ServiceAreas.Commands.AddNurseServiceArea;

/// <summary>
/// The signed-in nurse declares coverage. Omitting <see cref="DistrictId"/> (null) means the <b>whole
/// city</b> — a deliberate coverage choice. The nurse is derived from the caller, never the body. A
/// duplicate (including a duplicate whole-city row) returns 409.
/// </summary>
public record AddNurseServiceAreaCommand(long CityId, long? DistrictId)
    : IRequest<OperationResult<NurseServiceAreaDto>>;
