Fixes in code

This commit is contained in:
2025-06-22 01:00:28 -06:00
parent e33301f6af
commit e7b25ba91a
2 changed files with 13 additions and 13 deletions

View File

@@ -9,31 +9,31 @@ namespace Core.Adapters.Lib.Inventory
{
[BsonElement("modelName")]
[JsonPropertyName("modelName")]
public string ModelName { get; set; }
public string ModelName { get; set; } = null!;
[BsonElement("material")]
[JsonPropertyName("material")]
public string Material { get; set; }
public string Material { get; set; } = null!;
[BsonElement("condition")]
[JsonPropertyName("condition")]
public string Condition { get; set; }
public string Condition { get; set; } = null!;
[BsonElement("dimensions")]
[JsonPropertyName("dimensions")]
public Dimensions Dimensions { get; set; }
public Dimensions Dimensions { get; set; } = null!;
[BsonElement("baseDescription")]
[JsonPropertyName("baseDescription")]
public string BaseDescription { get; set; }
public string BaseDescription { get; set; } = null!;
[BsonElement("representation")]
[JsonPropertyName("representation")]
public string Representation { get; set; }
public string Representation { get; set; } = null!;
[BsonElement("maintenanceNotes")]
[JsonPropertyName("maintenanceNotes")]
public string MaintenanceNotes { get; set; }
public string MaintenanceNotes { get; set; } = null!;
}
public class Dimensions

View File

@@ -9,19 +9,19 @@ namespace Core.Adapters.Lib.Inventory
{
[BsonElement("modelId")]
[JsonPropertyName("modelId")]
public string ModelId { get; set; } // FK a FurnitureModel._id
public string ModelId { get; set; } = null!; // FK to FurnitureModel._id
[BsonElement("name")]
[JsonPropertyName("name")]
public string Name { get; set; }
public string Name { get; set; } = null!;
[BsonElement("color")]
[JsonPropertyName("color")]
public string Color { get; set; }
public string Color { get; set; } = null!;
[BsonElement("line")]
[JsonPropertyName("line")]
public string Line { get; set; }
public string Line { get; set; } = null!;
[BsonElement("price")]
[JsonPropertyName("price")]
@@ -29,7 +29,7 @@ namespace Core.Adapters.Lib.Inventory
[BsonElement("currency")]
[JsonPropertyName("currency")]
public string Currency { get; set; }
public string Currency { get; set; } = null!;
[BsonElement("stock")]
[JsonPropertyName("stock")]
@@ -45,6 +45,6 @@ namespace Core.Adapters.Lib.Inventory
[BsonElement("attributes")]
[JsonPropertyName("attributes")]
public Dictionary<string, object> Attributes { get; set; } = new();
public Dictionary<string, object> Attributes { get; set; } = [];
}
}