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,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; } = [];
}
}