25 lines
818 B
C#
25 lines
818 B
C#
using System.ComponentModel.DataAnnotations.Schema;
|
|
using Marco.Pms.Model.Utilities;
|
|
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;
|
|
|
|
namespace Marco.Pms.Model.Master
|
|
{
|
|
public class ActivityMaster : TenantRelation
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid? ActitvityGroupId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey("ActitvityGroupId")]
|
|
public ActivityGroupMaster? ActivityGroupMaster { get; set; }
|
|
public Guid? ServiceId { get; set; }
|
|
|
|
[ValidateNever]
|
|
[ForeignKey("ServiceId")]
|
|
public ServicesMaster? ServicesMaster { get; set; }
|
|
public string ActivityName { get; set; } = string.Empty;
|
|
public string UnitOfMeasurement { get; set; } = string.Empty;
|
|
public bool IsActive { get; set; } = true;
|
|
}
|
|
}
|