using System; using System.Text.Json.Serialization; namespace JobTrackerApi.Models { public class Correspondence { public int Id { get; set; } public int JobApplicationId { get; set; } [JsonIgnore] public JobApplication JobApplication { get; set; } = null!; public string From { get; set; } = ""; // "Me" or "Company" public string? Subject { get; set; } public string? Channel { get; set; } // e.g. Email, Call, Note public string? ExternalMessageId { get; set; } public string? ExternalThreadId { get; set; } public string? ExternalFrom { get; set; } public string? ExternalTo { get; set; } public string Content { get; set; } = ""; public DateTime Date { get; set; } = DateTime.Now; } }