Initial commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
namespace PowderCoating.Core.Entities;
|
||||
|
||||
public class InAppNotification : BaseEntity
|
||||
{
|
||||
public string Title { get; set; } = string.Empty;
|
||||
public string Message { get; set; } = string.Empty;
|
||||
public string? Link { get; set; }
|
||||
public string NotificationType { get; set; } = string.Empty; // QuoteApproved, QuoteDeclined, InvoicePaid
|
||||
public bool IsRead { get; set; }
|
||||
public DateTime? ReadAt { get; set; }
|
||||
|
||||
// Optional FK links for context
|
||||
public int? QuoteId { get; set; }
|
||||
public int? InvoiceId { get; set; }
|
||||
public int? CustomerId { get; set; }
|
||||
|
||||
// Navigation
|
||||
public virtual Quote? Quote { get; set; }
|
||||
public virtual Invoice? Invoice { get; set; }
|
||||
public virtual Customer? Customer { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user