32 lines
849 B
C#
32 lines
849 B
C#
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;
|
|
}
|