using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;

namespace CodeFirstWorkflow.Model
{
    public class Department
    {
        [Key]
        public int DepartmentNo { get; set; }
        [MaxLength(20)]
        public string DepartmentName { get; set; }
        [MaxLength(40)]
        public string Location { get; set; }

        // A Department can contain multiple Employees
        public ICollection<Employee> Employees { get; set; }
    }
}
