Add project files.
This commit is contained in:
		
							
								
								
									
										29
									
								
								Inventory/Base/InventoryItem.cs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										29
									
								
								Inventory/Base/InventoryItem.cs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,29 @@ | ||||
| using Core.Blueprint.Mongo; | ||||
| using MongoDB.Bson.Serialization.Attributes; | ||||
| using System.Text.Json.Serialization; | ||||
|  | ||||
| namespace Core.Adapters.Lib.Inventory.Base | ||||
| { | ||||
|     [CollectionAttributeName("Inventory")] | ||||
|     public class InventoryItem : Document | ||||
|     { | ||||
|         [BsonElement("name")] | ||||
|         [JsonPropertyName("name")] | ||||
|         public string Name { get; set; } | ||||
|  | ||||
|         [BsonElement("description")] | ||||
|         [JsonPropertyName("description")] | ||||
|         public string Description { get; set; } | ||||
|  | ||||
|         [BsonElement("stock")] | ||||
|         [JsonPropertyName("stock")] | ||||
|         public int Stock { get; set; } | ||||
|  | ||||
|         [BsonElement("representation")] | ||||
|         [JsonPropertyName("representation")] | ||||
|         public string Representation { get; set; } | ||||
|  | ||||
|  | ||||
|         public string Company { get; set; } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user