PSTW_CentralizeSystem/Models/DepartmentModel.cs
2024-12-05 16:11:52 +08:00

18 lines
512 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 required int CompanyId { get; set; }
[ForeignKey("CompanyId")]
public virtual CompanyModel? Company { get; set; }
}
}