continuity/Continuity.AuthServer/DB/Documents/InventoryItem.cs

32 lines
986 B
C#
Raw Permalink Normal View History

2023-11-21 20:37:50 +00:00
// Copyright (c) 2023 Timothy Schenk. Subject to the GNU AGPL Version 3 License.
2023-11-20 18:58:30 +00:00
2023-11-20 18:54:11 +00:00
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
2023-11-22 09:16:16 +00:00
using Microsoft.EntityFrameworkCore;
2023-11-20 18:54:11 +00:00
namespace Continuity.AuthServer.DB.Documents;
2023-11-08 14:33:04 +00:00
public class InventoryItem
{
2023-11-22 09:16:16 +00:00
[DeleteBehavior(DeleteBehavior.Restrict)]
2023-11-25 11:24:42 +00:00
[Required]
2023-11-16 11:06:36 +00:00
public virtual Character Character { get; set; }
2023-11-20 18:54:11 +00:00
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
2023-11-08 14:33:04 +00:00
public Guid Id { get; set; }
2023-11-20 18:54:11 +00:00
2023-11-13 20:12:12 +00:00
public ushort ItemId { get; set; }
2023-11-08 14:33:04 +00:00
public ushort Count { get; set; }
public byte Slot { get; set; }
public InventoryTab InventoryTab { get; set; }
2023-11-08 14:33:04 +00:00
public byte Level { get; set; }
public byte Rarity { get; set; }
public byte AddOption { get; set; }
public byte AddOption2 { get; set; }
public byte AddOption3 { get; set; }
public short Option { get; set; }
public short Option2 { get; set; }
public short Option3 { get; set; }
}