14 lines
427 B
C#
14 lines
427 B
C#
using IM_API.Domain.Interfaces;
|
|
|
|
namespace IM_API.Domain.Events
|
|
{
|
|
public abstract record DomainEvent: IEvent
|
|
{
|
|
public Guid EventId { get; init; } = Guid.NewGuid();
|
|
public DateTimeOffset OccurredAt { get; init; } = DateTime.Now;
|
|
public long OperatorId { get; init; }
|
|
public string AggregateId { get; init; } = "";
|
|
public abstract string EventType { get; }
|
|
}
|
|
}
|