using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Marco.Pms.Model.Utilities;
using Microsoft.AspNetCore.Mvc.ModelBinding.Validation;

namespace Marco.Pms.Model.Projects
{
    public class WorkArea : TenantRelation
    {
        [Key]
        public Guid Id { get; set; }

        [Required]
        [DisplayName("Area Name")]
        public string? AreaName { get; set; }

        public Guid FloorId { get; set; }

        [ForeignKey("FloorId")]
        [ValidateNever]
        public Floor? Floor { get; set; }

        //[ValidateNever]
        //public List<WorkItem> WorkItems { get; set; }

    }
}
