using SqlSugar;
namespace Model.Entity.Inspection
{
///
/// 设备维修记录
///
public class RepairRecordEntity : BaseEntity
{
///
/// 设备Id(关联 EquipmentEntity.Id)
///
public long EquipmentId { get; set; }
///
/// 设备编号(冗余便于展示)
///
[SugarColumn(Length = 50, IsNullable = true)]
public string? EquipmentCode { get; set; }
///
/// 设备名称(冗余便于展示)
///
[SugarColumn(Length = 100, IsNullable = true)]
public string? EquipmentName { get; set; }
///
/// 故障类型(机械故障/电气故障/软件故障/传感器故障/其他)
///
[SugarColumn(Length = 50, IsNullable = true)]
public string? FaultType { get; set; }
///
/// 故障描述
///
[SugarColumn(ColumnDataType = "text", IsNullable = true)]
public string? FaultDescription { get; set; }
///
/// 报修日期
///
public DateTime? ReportDate { get; set; }
///
/// 维修开始日期
///
[SugarColumn(IsNullable = true)]
public DateTime? RepairStartDate { get; set; }
///
/// 维修完成日期
///
[SugarColumn(IsNullable = true)]
public DateTime? RepairEndDate { get; set; }
///
/// 维修工时(小时)
///
[SugarColumn(IsNullable = true)]
public decimal? RepairHours { get; set; }
///
/// 维修人员
///
[SugarColumn(Length = 50, IsNullable = true)]
public string? RepairPerson { get; set; }
///
/// 维修费用(元)
///
[SugarColumn(DecimalDigits = 2, Length = 18, IsNullable = true)]
public decimal? RepairCost { get; set; }
///
/// 维修状态(待维修/维修中/已完成)
///
[SugarColumn(Length = 20, IsNullable = true)]
public string? RepairStatus { get; set; }
///
/// 维修结果描述
///
[SugarColumn(ColumnDataType = "text", IsNullable = true)]
public string? RepairResult { get; set; }
///
/// 备注
///
[SugarColumn(Length = 500, IsNullable = true)]
public string? Remark { get; set; }
}
}