Files
WCTDataMiner/src/Gpulse.WCT.DataAnalyzer.Core/Models/TestScenario.cs

30 lines
1.1 KiB
C#
Raw Normal View History

namespace Gpulse.WCT.DataAnalyzer.Core.Models;
/// <summary>
/// 测试场景实体 - 通过外键关联各维度表
/// </summary>
public class TestScenario
{
public Guid Id { get; set; } = Guid.NewGuid();
public Guid TxPanelId { get; set; }
public Guid TxHardwareId { get; set; }
public Guid TxSoftwareId { get; set; }
public Guid RxTypeId { get; set; }
public string? TestPurpose { get; set; }
public DateOnly TestDate { get; set; }
public int TestSequence { get; set; } = 1;
public int QfodCount { get; set; } = 0;
public int PlossCount { get; set; } = 0;
public bool IsDeleted { get; set; } = false;
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
// Navigation Properties - 维度表
public TxPanel TxPanel { get; set; } = null!;
public TxHardware TxHardware { get; set; } = null!;
public TxSoftware TxSoftware { get; set; } = null!;
public RxType RxType { get; set; } = null!;
// Navigation Properties - 数据记录
public ICollection<QfodRecord> QfodRecords { get; set; } = [];
public ICollection<PlossRecord> PlossRecords { get; set; } = [];
}