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

21 lines
575 B
C#

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; }
}
}