20 lines
557 B
C#
20 lines
557 B
C#
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 Content { get; set; } = "";
|
|
public DateTime Date { get; set; } = DateTime.Now;
|
|
}
|
|
}
|