feat(training): add TrainingAngleResult entity and DbSet

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-14 20:23:38 -04:00
parent 8e46ed1175
commit dddd81fd90
3 changed files with 40 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
@@ -18,8 +19,18 @@ namespace OpenNest.Training.Data
public long TimeMs { get; set; }
public string LayoutData { get; set; }
public string FilePath { get; set; }
public string WinnerEngine { get; set; } = "";
public long WinnerTimeMs { get; set; }
public string RunnerUpEngine { get; set; } = "";
public int RunnerUpPartCount { get; set; }
public long RunnerUpTimeMs { get; set; }
public string ThirdPlaceEngine { get; set; } = "";
public int ThirdPlacePartCount { get; set; }
public long ThirdPlaceTimeMs { get; set; }
[ForeignKey(nameof(PartId))]
public TrainingPart Part { get; set; }
public List<TrainingAngleResult> AngleResults { get; set; } = new();
}
}