From 9a6a47e8f447017f86c4fb0da6a00f484409cc50 Mon Sep 17 00:00:00 2001 From: Timothy Schenk Date: Mon, 20 Nov 2023 19:54:11 +0100 Subject: [PATCH] chore: add missing file for migration --- Server/DB/Documents/InventoryItem.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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; }