PSTW_CentralizeSystem/Areas/Inventory/Models/StationModel.cs
2024-12-30 16:32:16 +08:00

20 lines
628 B
C#

using PSTW_CentralSystem.Models;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace PSTW_CentralSystem.Areas.Inventory.Models
{
public class StationModel
{
[Key]
public int StationId { get; set; }
public int StationPicID { get; set; }
public string? StationName { get; set; }
public int DepartmentId { get; set; }
[ForeignKey("DepartmentId")]
public virtual DepartmentModel? Department { get; set; }
[ForeignKey("StationPicID")]
public virtual UserModel? StationPic { get; set; }
}
}