27 lines
724 B
C#
27 lines
724 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace DataServer.Data.Entities;
|
|
|
|
/// <summary>
|
|
/// Spells a character has learned
|
|
/// </summary>
|
|
[Table("dungeon_learned_spells")]
|
|
public class DungeonLearnedSpell
|
|
{
|
|
[Key]
|
|
public ulong Id { get; set; }
|
|
|
|
public ulong CharacterId { get; set; }
|
|
public int SpellDefinitionId { get; set; }
|
|
|
|
public DateTime LearnedAt { get; set; } = DateTime.UtcNow;
|
|
|
|
// Could add spell levels/upgrades later
|
|
public int SpellLevel { get; set; } = 1;
|
|
|
|
// Navigation
|
|
public virtual DungeonCharacter? Character { get; set; }
|
|
public virtual DungeonSpellDefinition? Definition { get; set; }
|
|
}
|