session-companion/SessionCompanion/SessionCompanion.Database/Tables/ShopkeeperItem.cs

27 lines
723 B
C#
Raw Permalink Normal View History

2021-01-20 18:52:02 +01:00
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SessionCompanion.Database.Tables
{
public class ShopkeeperItem : BaseEntity
{
[ForeignKey(nameof(Shopkeeper))]
public int ShopkeeperId { get; set; }
public virtual Shopkeeper Shopkeeper { get; set; }
[ForeignKey(nameof(Armor))]
public int? ArmorId { get; set; }
public virtual Armor Armor { get; set; }
[ForeignKey(nameof(Weapon))]
public int? WeaponId { get; set; }
public virtual Weapon Weapon { get; set; }
public int Amount { get; set; }
}
}