27 lines
764 B
C#
27 lines
764 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Marco.Pms.Model.Employees;
|
|
using Marco.Pms.Model.Utilities;
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
|
|
|
namespace Marco.Pms.Model.Activities
|
|
{
|
|
public class TaskComment : TenantRelation
|
|
{
|
|
public Guid Id { get; set; }
|
|
|
|
public Guid TaskAllocationId { get; set; }
|
|
[ValidateNever]
|
|
[ForeignKey(nameof(TaskAllocationId))]
|
|
public TaskAllocation? TaskAllocation { get; set; }
|
|
|
|
public DateTime CommentDate { get; set; }
|
|
public string Comment { get; set; } = string.Empty;
|
|
public Guid CommentedBy { get; set; }
|
|
[ForeignKey("CommentedBy")]
|
|
[ValidateNever]
|
|
public Employee? Employee { get; set; }
|
|
|
|
|
|
}
|
|
}
|