#nullable enable
using Baya.Application.Models.Common;
using Mediator;

namespace Baya.Application.Features.Messaging.Commands.AddParticipant;

/// <summary>Attaches a user to a ticket. Staff (any ticket) or the ticket owner may add. A duplicate add returns
/// a clean conflict, backed by the <c>UNIQUE(ticket_id, user_id)</c> index.</summary>
public record AddParticipantCommand(long TicketId, int UserId) : IRequest<OperationResult<bool>>;
