mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 17:43:12 +00:00
32 lines
954 B
C#
32 lines
954 B
C#
using System;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Data.SeaHavenIndustries
|
|
{
|
|
public class FollowUps : FullAuditEntity
|
|
{
|
|
public string Reason { get; set; } = null!;
|
|
|
|
public DateTime ScheduleDate { get; set; }
|
|
public TimeSpan ScheduleStartTime { get; set; }
|
|
|
|
public string Status { get; set; } = "Open"; // Open | Completed | Cancelled
|
|
|
|
public int? EmployeeId { get; set; }
|
|
public int? WorkOrderId { get; set; }
|
|
public int? AccountId { get; set; }
|
|
public int? LocationId { get; set; }
|
|
|
|
[ForeignKey(nameof(EmployeeId))]
|
|
public Employee? Employee { get; set; }
|
|
|
|
[ForeignKey(nameof(WorkOrderId))]
|
|
public WorkOrder? WorkOrder { get; set; }
|
|
|
|
[ForeignKey(nameof(AccountId))]
|
|
public Accounts? Account { get; set; }
|
|
|
|
[ForeignKey(nameof(LocationId))]
|
|
public Locations? Location { get; set; }
|
|
}
|
|
}
|