diff --git a/Inventory/FurnitureModel.cs b/Inventory/FurnitureModel.cs index f08d4ae..30fdb6e 100644 --- a/Inventory/FurnitureModel.cs +++ b/Inventory/FurnitureModel.cs @@ -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 diff --git a/Inventory/InventoryItem.cs b/Inventory/InventoryItem.cs index 3b16abc..8f63690 100644 --- a/Inventory/InventoryItem.cs +++ b/Inventory/InventoryItem.cs @@ -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 Attributes { get; set; } = new(); + public Dictionary Attributes { get; set; } = []; } }