chore: add missing file for migration

This commit is contained in:
Timothy Schenk 2023-11-20 19:54:11 +01:00
parent 6a9e1c338e
commit 9a6a47e8f4

View file

@ -1,10 +1,16 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Server.DB.Documents; namespace Server.DB.Documents;
public class InventoryItem public class InventoryItem
{ {
public Guid CharacterId { get; set; }
public virtual Character Character { get; set; } public virtual Character Character { get; set; }
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public Guid Id { get; set; } public Guid Id { get; set; }
public ushort ItemId { get; set; } public ushort ItemId { get; set; }
public ushort Count { get; set; } public ushort Count { get; set; }
public byte Slot { get; set; } public byte Slot { get; set; }