40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
using App.Core.Entities.Inventory;
|
|
using App.Core.Entities.Maintenance;
|
|
|
|
namespace App.Core.Entities.Machines;
|
|
|
|
/// <summary>
|
|
/// Équipement industriel soumis à maintenance préventive et/ou curative.
|
|
/// </summary>
|
|
public class Machine
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public required string Reference { get; set; }
|
|
|
|
public required string Designation { get; set; }
|
|
|
|
public string? Location { get; set; }
|
|
|
|
public MachineCriticality Criticality { get; set; }
|
|
|
|
public DateOnly? CommissioningDate { get; set; }
|
|
|
|
public int? PhotoAttachmentId { get; set; }
|
|
|
|
/// <summary>Désactivation logique (soft delete) : une machine liée à un historique n'est jamais supprimée physiquement.</summary>
|
|
public bool IsActive { get; set; } = true;
|
|
|
|
public DateTime CreatedAtUtc { get; set; }
|
|
|
|
public DateTime UpdatedAtUtc { get; set; }
|
|
|
|
public List<MaintenancePlan> MaintenancePlans { get; set; } = [];
|
|
|
|
public List<WorkOrder> WorkOrders { get; set; } = [];
|
|
|
|
public List<MachinePart> MachineParts { get; set; } = [];
|
|
|
|
public List<MachineCounterReading> CounterReadings { get; set; } = [];
|
|
}
|