PSTW_CentralizeSystem/Areas/Inventory/Models/InventoryMasterModel.cs

22 lines
625 B
C#

using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using PSTW_CentralSystem.Models;
using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;
namespace PSTW_CentralSystem.Areas.Inventory.Models
{
public class InventoryMasterModel
{
[Key]
public int RowId { get; set; }
public int StoreId { get; set; }
public int UserId { get; set; }
[ForeignKey("UserId")]
public virtual UserModel? User { get; set; }
[ForeignKey("StoreId")]
public virtual StoreModel? Store { get; set; }
}
}