28 lines
785 B
C#
28 lines
785 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Marco.Pms.Model.Employees;
|
|
using Marco.Pms.Model.Entitlements;
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
|
|
|
namespace Marco.Pms.Model.Activities
|
|
{
|
|
public class TaskMembers
|
|
{
|
|
public long Id { get; set; }
|
|
|
|
public long TaskAllocationId { get; set; }
|
|
[ValidateNever]
|
|
[ForeignKey(nameof(TaskAllocationId))]
|
|
public TaskAllocation? TaskAllocation { get; set; }
|
|
|
|
public int EmployeeId { get; set; }
|
|
[ForeignKey("EmployeeId")]
|
|
[ValidateNever]
|
|
public Employee? Employee { get; set; }
|
|
public int TenantId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey(nameof(TenantId))]
|
|
public Tenant? Tenant { get; set; }
|
|
}
|
|
}
|