first version of inventory adapters

This commit is contained in:
2025-06-22 00:47:44 -06:00
parent 6b82c73fc3
commit 18cb238b40
3 changed files with 104 additions and 29 deletions

View File

@@ -0,0 +1,53 @@
using Core.Blueprint.Mongo;
using MongoDB.Bson.Serialization.Attributes;
using System.Text.Json.Serialization;
namespace Core.Adapters.Lib.Inventory.Common
{
[CollectionAttributeName("Furniture")]
public class FurnitureModel : Document
{
[BsonElement("modelName")]
[JsonPropertyName("modelName")]
public string ModelName { get; set; }
[BsonElement("material")]
[JsonPropertyName("material")]
public string Material { get; set; }
[BsonElement("condition")]
[JsonPropertyName("condition")]
public string Condition { get; set; }
[BsonElement("dimensions")]
[JsonPropertyName("dimensions")]
public Dimensions Dimensions { get; set; }
[BsonElement("baseDescription")]
[JsonPropertyName("baseDescription")]
public string BaseDescription { get; set; }
[BsonElement("representation")]
[JsonPropertyName("representation")]
public string Representation { get; set; }
[BsonElement("maintenanceNotes")]
[JsonPropertyName("maintenanceNotes")]
public string MaintenanceNotes { get; set; }
}
public class Dimensions
{
[BsonElement("width")]
[JsonPropertyName("width")]
public float Width { get; set; }
[BsonElement("height")]
[JsonPropertyName("height")]
public float Height { get; set; }
[BsonElement("depth")]
[JsonPropertyName("depth")]
public float Depth { get; set; }
}
}