namespace Prefab.Domain.Common;
///
/// Interface representation of an entity. All entities that require auditing should implement this.
///
/// The type that will represent the entity's ID field.
public interface IEntityWithAudit : IEntity, IAudit
{
}
///
public abstract class EntityWithAudit : Entity, IEntityWithAudit
{
///
public Guid CreatedBy { get; init; }
///
public DateTimeOffset CreatedOn { get; init; }
///
public Guid LastModifiedBy { get; init; }
///
public DateTimeOffset LastModifiedOn { get; init; }
}