25 lines
1.1 KiB
C#
25 lines
1.1 KiB
C#
namespace PowderCoating.Core.Entities;
|
|
|
|
/// <summary>
|
|
/// Persisted record of a contact form submission. Inherits CompanyId from BaseEntity so
|
|
/// company users can only see their own submissions; SuperAdmin sees all via IsPlatformAdmin filter.
|
|
/// </summary>
|
|
public class ContactSubmission : BaseEntity
|
|
{
|
|
public string SenderName { get; set; } = string.Empty;
|
|
public string SenderEmail { get; set; } = string.Empty;
|
|
public string CompanyName { get; set; } = string.Empty;
|
|
public string Category { get; set; } = string.Empty;
|
|
public string Subject { get; set; } = string.Empty;
|
|
public string Message { get; set; } = string.Empty;
|
|
|
|
/// <summary>True once a SuperAdmin has opened/acknowledged the submission.</summary>
|
|
public bool IsRead { get; set; } = false;
|
|
public DateTime? ReadAt { get; set; }
|
|
public string? ReadByUserId { get; set; }
|
|
public string? ReadByUserName { get; set; }
|
|
|
|
/// <summary>Optional internal note added by SuperAdmin (e.g. "Replied via email 4/19").</summary>
|
|
public string? AdminNotes { get; set; }
|
|
}
|