Inventory enhancements
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
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
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user