27 lines
728 B
C#
27 lines
728 B
C#
using System.ComponentModel.DataAnnotations;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
|
|
namespace Server.Data.Entities;
|
|
|
|
/// <summary>
|
|
/// Items stored in character's stash (safe storage in hub)
|
|
/// </summary>
|
|
[Table("dungeon_stash_items")]
|
|
public class DungeonStashItem
|
|
{
|
|
[Key]
|
|
public ulong Id { get; set; }
|
|
|
|
public ulong CharacterId { get; set; }
|
|
public int ItemDefinitionId { get; set; }
|
|
|
|
public int Quantity { get; set; } = 1;
|
|
public int SlotIndex { get; set; }
|
|
|
|
public DateTime StoredAt { get; set; } = DateTime.UtcNow;
|
|
|
|
// Navigation
|
|
public virtual DungeonCharacter? Character { get; set; }
|
|
public virtual DungeonItemDefinition? Definition { get; set; }
|
|
}
|