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 a user is invited to a tenant
/// </summary>
public sealed record UserInvitedEvent(
    InvitationId InvitationId,
    TenantId TenantId,
    string Email,
    TenantRole Role,
    UserId InvitedBy
) : DomainEvent;
