Fixes in code
This commit is contained in:
		| @@ -9,31 +9,31 @@ namespace Core.Adapters.Lib.Inventory | |||||||
|     { |     { | ||||||
|         [BsonElement("modelName")] |         [BsonElement("modelName")] | ||||||
|         [JsonPropertyName("modelName")] |         [JsonPropertyName("modelName")] | ||||||
|         public string ModelName { get; set; } |         public string ModelName { get; set; } = null!; | ||||||
|  |  | ||||||
|         [BsonElement("material")] |         [BsonElement("material")] | ||||||
|         [JsonPropertyName("material")] |         [JsonPropertyName("material")] | ||||||
|         public string Material { get; set; } |         public string Material { get; set; } = null!; | ||||||
|  |  | ||||||
|         [BsonElement("condition")] |         [BsonElement("condition")] | ||||||
|         [JsonPropertyName("condition")] |         [JsonPropertyName("condition")] | ||||||
|         public string Condition { get; set; } |         public string Condition { get; set; } = null!; | ||||||
|  |  | ||||||
|         [BsonElement("dimensions")] |         [BsonElement("dimensions")] | ||||||
|         [JsonPropertyName("dimensions")] |         [JsonPropertyName("dimensions")] | ||||||
|         public Dimensions Dimensions { get; set; } |         public Dimensions Dimensions { get; set; } = null!; | ||||||
|  |  | ||||||
|         [BsonElement("baseDescription")] |         [BsonElement("baseDescription")] | ||||||
|         [JsonPropertyName("baseDescription")] |         [JsonPropertyName("baseDescription")] | ||||||
|         public string BaseDescription { get; set; } |         public string BaseDescription { get; set; } = null!; | ||||||
|  |  | ||||||
|         [BsonElement("representation")] |         [BsonElement("representation")] | ||||||
|         [JsonPropertyName("representation")] |         [JsonPropertyName("representation")] | ||||||
|         public string Representation { get; set; } |         public string Representation { get; set; } = null!; | ||||||
|  |  | ||||||
|         [BsonElement("maintenanceNotes")] |         [BsonElement("maintenanceNotes")] | ||||||
|         [JsonPropertyName("maintenanceNotes")] |         [JsonPropertyName("maintenanceNotes")] | ||||||
|         public string MaintenanceNotes { get; set; } |         public string MaintenanceNotes { get; set; } = null!; | ||||||
|     } |     } | ||||||
|  |  | ||||||
|     public class Dimensions |     public class Dimensions | ||||||
|   | |||||||
| @@ -9,19 +9,19 @@ namespace Core.Adapters.Lib.Inventory | |||||||
|     { |     { | ||||||
|         [BsonElement("modelId")] |         [BsonElement("modelId")] | ||||||
|         [JsonPropertyName("modelId")] |         [JsonPropertyName("modelId")] | ||||||
|         public string ModelId { get; set; }  // FK a FurnitureModel._id |         public string ModelId { get; set; } = null!; // FK to FurnitureModel._id | ||||||
|  |  | ||||||
|         [BsonElement("name")] |         [BsonElement("name")] | ||||||
|         [JsonPropertyName("name")] |         [JsonPropertyName("name")] | ||||||
|         public string Name { get; set; } |         public string Name { get; set; } = null!; | ||||||
|  |  | ||||||
|         [BsonElement("color")] |         [BsonElement("color")] | ||||||
|         [JsonPropertyName("color")] |         [JsonPropertyName("color")] | ||||||
|         public string Color { get; set; } |         public string Color { get; set; } = null!; | ||||||
|  |  | ||||||
|         [BsonElement("line")] |         [BsonElement("line")] | ||||||
|         [JsonPropertyName("line")] |         [JsonPropertyName("line")] | ||||||
|         public string Line { get; set; } |         public string Line { get; set; } = null!; | ||||||
|  |  | ||||||
|         [BsonElement("price")] |         [BsonElement("price")] | ||||||
|         [JsonPropertyName("price")] |         [JsonPropertyName("price")] | ||||||
| @@ -29,7 +29,7 @@ namespace Core.Adapters.Lib.Inventory | |||||||
|  |  | ||||||
|         [BsonElement("currency")] |         [BsonElement("currency")] | ||||||
|         [JsonPropertyName("currency")] |         [JsonPropertyName("currency")] | ||||||
|         public string Currency { get; set; } |         public string Currency { get; set; } = null!; | ||||||
|  |  | ||||||
|         [BsonElement("stock")] |         [BsonElement("stock")] | ||||||
|         [JsonPropertyName("stock")] |         [JsonPropertyName("stock")] | ||||||
| @@ -45,6 +45,6 @@ namespace Core.Adapters.Lib.Inventory | |||||||
|  |  | ||||||
|         [BsonElement("attributes")] |         [BsonElement("attributes")] | ||||||
|         [JsonPropertyName("attributes")] |         [JsonPropertyName("attributes")] | ||||||
|         public Dictionary<string, object> Attributes { get; set; } = new(); |         public Dictionary<string, object> Attributes { get; set; } = []; | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user