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

21 lines
575 B
C#
Raw Normal View History

2020-12-27 19:47:13 +01:00
using System.ComponentModel.DataAnnotations.Schema;
namespace SessionCompanion.Database.Tables
{
public class CharacterWeapon : BaseEntity
{
[ForeignKey(nameof(Character))]
public int CharacterId { get; set; }
public virtual Character Character { get; set; }
[ForeignKey(nameof(Weapon))]
public int WeaponId { get; set; }
public virtual Weapon Weapon { get; set; }
public bool InUse { get; set; }
public bool HoldInRightHand { get; set; }
public bool HoldInLeftHand { get; set; }
}
}