Project Init
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
10
colaflow-api/src/ColaFlow.Domain/Events/DomainEvent.cs
Normal file
10
colaflow-api/src/ColaFlow.Domain/Events/DomainEvent.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
namespace ColaFlow.Domain.Events;
|
||||
|
||||
/// <summary>
|
||||
/// Base class for all domain events
|
||||
/// </summary>
|
||||
public abstract record DomainEvent
|
||||
{
|
||||
public Guid EventId { get; init; } = Guid.NewGuid();
|
||||
public DateTime OccurredOn { get; init; } = DateTime.UtcNow;
|
||||
}
|
||||
Reference in New Issue
Block a user