first commit
This commit is contained in:
31
src/App.Core/Entities/Inventory/Part.cs
Normal file
31
src/App.Core/Entities/Inventory/Part.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
namespace App.Core.Entities.Inventory;
|
||||
|
||||
/// <summary>Pièce détachée du magasin.</summary>
|
||||
public class Part
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public required string Reference { get; set; }
|
||||
|
||||
public required string Designation { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Quantité en stock, dénormalisée pour un accès rapide côté UI/dashboard.
|
||||
/// Source de vérité recalculable à tout moment depuis <see cref="StockMovement"/>.
|
||||
/// </summary>
|
||||
public double QuantityInStock { get; set; }
|
||||
|
||||
public double AlertThreshold { get; set; }
|
||||
|
||||
public string? Location { get; set; }
|
||||
|
||||
public int? PrimarySupplierId { get; set; }
|
||||
|
||||
public Supplier? PrimarySupplier { get; set; }
|
||||
|
||||
public decimal UnitPrice { get; set; }
|
||||
|
||||
public int? PhotoAttachmentId { get; set; }
|
||||
|
||||
public bool IsActive { get; set; } = true;
|
||||
}
|
||||
Reference in New Issue
Block a user