17 lines
468 B
C#
17 lines
468 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 DepartmentName { get; set; }
|
|
public required int CompanyId { get; set; }
|
|
|
|
[ForeignKey("CompanyId")]
|
|
public virtual CompanyModel? Company { get; set; }
|
|
}
|
|
}
|