PSTW_CentralizeSystem/Models/DepartmentModel.cs
2024-12-17 16:30:35 +08:00

18 lines
503 B
C#

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; }
}
}