diff --git a/Server/DB/Documents/InventoryItem.cs b/Server/DB/Documents/InventoryItem.cs index 57754f0..0573d9b 100644 --- a/Server/DB/Documents/InventoryItem.cs +++ b/Server/DB/Documents/InventoryItem.cs @@ -1,10 +1,16 @@ +using System.ComponentModel.DataAnnotations; +using System.ComponentModel.DataAnnotations.Schema; + namespace Server.DB.Documents; public class InventoryItem { - public Guid CharacterId { get; set; } public virtual Character Character { get; set; } + + [Key] + [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public Guid Id { get; set; } + public ushort ItemId { get; set; } public ushort Count { get; set; } public byte Slot { get; set; }