using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using Newtonsoft.Json; namespace AyaNova.Models { //for specific parts only //if not in this table then a part has no minimum level //NOTE: called this specifically partstocklevel and not restock level because it could be expanded to include reorder, danger, maximum levels //if we want to implement fully inventory management down the road (DTR) /* This article throws light upon the four major types of stock levels of inventory. The types are: 1. Minimum Level 2. Maximum Level 3. Danger Level 4. Average Stock Level. https://www.yourarticlelibrary.com/material-management/inventory-control-material-management/4-major-types-of-stock-levels-of-inventory-with-formula/90394 */ //MIRRORED IN QBI! public class PartStockLevel { public long Id { get; set; } public uint Concurrency { get; set; } [Required] public long PartWarehouseId { get; set; } [Required] public long PartId { get; set; } [Required] public decimal MinimumQuantity { get; set; } [NotMapped] public string PartWarehouseDisplay { get; set; }//to display name in UI, not relevant to db or biz object }//eoc }//eons