namespace OmsorgCore.Application.Services;

using OmsorgCore.Domain.Entities;

public enum CreateAssignmentFailureReason { None, OrderNotFound, EmployeeNotFound, InvalidDateRange, DateOutsideOrderRange, OverlappingAssignment, ValidationConflict }

public record CreateAssignmentResult(
    bool Success,
    CreateAssignmentFailureReason Reason,
    Assignment? Assignment,
    IReadOnlyList<AssignmentConflict> Conflicts);
