first commit
This commit is contained in:
39
src/App.Core/Entities/Machines/Machine.cs
Normal file
39
src/App.Core/Entities/Machines/Machine.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
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; } = [];
|
||||
}
|
||||
Reference in New Issue
Block a user