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

19 lines
496 B
C#

using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace SessionCompanion.Database.Tables
{
public class CharacterSpell : BaseEntity
{
[ForeignKey(nameof(Character))]
public int CharacterId { get; set; }
public virtual Character Character { get; set; }
[ForeignKey(nameof(Spell))]
public int SpellId { get; set; }
public virtual Spell Spell { get; set; }
}
}