PSTW_CentralizeSystem/Areas/Inventory/Models/DepartmentModel.cs
2024-11-26 16:30:40 +08:00

16 lines
457 B
C#

using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PSTW_CentralSystem.Areas.Inventory.Models
{
public class DepartmentModel
{
[Key]
public int DepartmentId { get; set; }
public required string Name { get; set; }
public required int CompanyId { get; set; }
[ForeignKey("CompanyId")]
public virtual CompanyModel? Company { get; set; }
}
}