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

namespace DatabaseCommandLogging.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 List<Employee> Employees { get; set; }
    }
}
