using MediatR;

namespace Femto.Common.Domain;

public interface IDomainEvent : INotification
{
    public Guid EventId { get; }
}

public abstract record DomainEvent : IDomainEvent
{
    public Guid EventId { get; } = Guid.NewGuid();
}