20 lines
628 B
C#
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; }
|
|
|
|
}
|
|
}
|