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