using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace DataServer.Data.Entities; /// /// Represents an ammunition slot within a quiver container /// Each equipped quiver can hold multiple types of ammunition /// [Table("dungeon_quiver_ammo_slots")] public class DungeonQuiverAmmoSlot { [Key] public ulong Id { get; set; } /// /// The character item ID of the equipped quiver container /// This links to the actual quiver item in the character's equipment /// [Required] public ulong QuiverCharacterItemId { get; set; } /// /// Slot index within the quiver (0 to QuiverCapacity-1) /// [Required] public int SlotIndex { get; set; } /// /// The item definition ID of the ammunition in this slot /// References DungeonItemDefinition.Id /// [Required] public int ItemDefinitionId { get; set; } /// /// Current quantity of this ammunition type in the slot /// [Required] public int Quantity { get; set; } = 0; /// /// Maximum quantity allowed in this slot (from item definition's MaxStack) /// [Required] public int MaxQuantity { get; set; } = 100; // Navigation properties public virtual DungeonCharacterItem? QuiverItem { get; set; } public virtual DungeonItemDefinition? ItemDefinition { get; set; } }