Initial commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
namespace PowderCoating.Core.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Base entity class that all domain entities inherit from
|
||||
/// </summary>
|
||||
public abstract class BaseEntity
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
// Multi-tenancy
|
||||
public int CompanyId { get; set; }
|
||||
|
||||
// Audit fields
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
public string? CreatedBy { get; set; }
|
||||
public string? UpdatedBy { get; set; }
|
||||
|
||||
// Soft delete
|
||||
public bool IsDeleted { get; set; } = false;
|
||||
public DateTime? DeletedAt { get; set; }
|
||||
public string? DeletedBy { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user