using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataAccessLayer.Entities
{
    public class PersonalEvent : EntityBase
    {
        [Required]
        public DateTime DateTime { get; set; }
        [Required]
        [StringLength(100)]
        public string Description { get; set; }
        [Required]
        public bool NotifyDepartmentHead { get; set; }
        [Required]
        public int EmployeeId { get; set; }
        public virtual Employee Employee { get; set; }
        [Required]
        public int PersonalEventTypeId { get; set; }
        public virtual PersonalEventType PersonalEventType { get; set; } 
    }
}
