2024-02-07 15:40:36 +00:00
|
|
|
// Licensed to Timothy Schenk under 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
|
|
|
|
2024-01-29 07:39:18 +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; }
|
2023-11-15 19:00:08 +00:00
|
|
|
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; }
|
|
|
|
}
|