using ColaFlow.Shared.Kernel.Common;
using ColaFlow.Shared.Kernel.Events;
using ColaFlow.Modules.Identity.Domain.Aggregates.Tenants;
using ColaFlow.Modules.Identity.Domain.Aggregates.Users;

namespace ColaFlow.Modules.Identity.Domain.Aggregates.Invitations.Events;

/// <summary>
/// Domain event raised when an invitation is accepted
/// </summary>
public sealed record InvitationAcceptedEvent(
    InvitationId InvitationId,
    TenantId TenantId,
    string Email,
    TenantRole Role
) : DomainEvent;
