using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace PSTW_CentralSystem.Models
{
    public class DepartmentModel
    {
        [Key]
        public int DepartmentId { get; set; }
        public required string DepartmentName { get; set; }
        public required string DepartmentCode { get; set; }
        public int CompanyId { get; set; }

        [ForeignKey("CompanyId")]
        public virtual CompanyModel? Company { get; set; }
    }
}
