Zeeshaun a2a4d48de5
All checks were successful
Deploy Promiscuity Auth API / deploy (push) Successful in 47s
Deploy Promiscuity Character API / deploy (push) Successful in 46s
Deploy Promiscuity Inventory API / deploy (push) Successful in 58s
Deploy Promiscuity Locations API / deploy (push) Successful in 44s
k8s smoke test / test (push) Successful in 7s
Inventory enhancements
2026-03-15 13:57:15 -05:00

34 lines
856 B
C#

using MongoDB.Bson.Serialization.Attributes;
namespace InventoryApi.Models;
[BsonIgnoreExtraElements]
public class ItemDefinition
{
[BsonId]
[BsonElement("itemKey")]
public string ItemKey { get; set; } = string.Empty;
[BsonElement("displayName")]
public string DisplayName { get; set; } = string.Empty;
[BsonElement("stackable")]
public bool Stackable { get; set; }
[BsonElement("maxStackSize")]
public int MaxStackSize { get; set; } = 1;
[BsonElement("category")]
public string Category { get; set; } = "misc";
[BsonElement("equipSlot")]
[BsonIgnoreIfNull]
public string? EquipSlot { get; set; }
[BsonElement("createdUtc")]
public DateTime CreatedUtc { get; set; } = DateTime.UtcNow;
[BsonElement("updatedUtc")]
public DateTime UpdatedUtc { get; set; } = DateTime.UtcNow;
}