|  |  | 1 |  | using System.ComponentModel.DataAnnotations; | 
|  |  | 2 |  | using System.ComponentModel.DataAnnotations.Schema; | 
|  |  | 3 |  | using Microsoft.EntityFrameworkCore; | 
|  |  | 4 |  |  | 
|  |  | 5 |  | namespace LGDXRobotCloud.Data.Entities; | 
|  |  | 6 |  |  | 
|  |  | 7 |  | [Table("Automation.AutoTaskDetails")] | 
|  |  | 8 |  | [Index(nameof(Order))] | 
|  |  | 9 |  | public class AutoTaskDetail | 
|  |  | 10 |  | { | 
|  |  | 11 |  |   [Key] | 
|  |  | 12 |  |   [DatabaseGenerated(DatabaseGeneratedOption.Identity)] | 
|  | 116 | 13 |  |   public int Id { get; set; } | 
|  |  | 14 |  |  | 
|  | 113 | 15 |  |   public int Order { get; set; } | 
|  |  | 16 |  |  | 
|  | 113 | 17 |  |   public double? CustomX { get; set; } | 
|  |  | 18 |  |  | 
|  | 51 | 19 |  |   public double? CustomY { get; set; } | 
|  |  | 20 |  |  | 
|  | 51 | 21 |  |   public double? CustomRotation { get; set; } | 
|  |  | 22 |  |  | 
|  |  | 23 |  |   [ForeignKey("WaypointId")] | 
|  | 129 | 24 |  |   public Waypoint? Waypoint { get; set; } = null!; | 
|  |  | 25 |  |  | 
|  | 111 | 26 |  |   public int? WaypointId { get; set; } | 
|  |  | 27 |  |  | 
|  |  | 28 |  |   [ForeignKey("AutoTaskId")] | 
|  | 111 | 29 |  |   public AutoTask AutoTask { get; set; } = null!; | 
|  |  | 30 |  |  | 
|  | 109 | 31 |  |   public int AutoTaskId { get; set; } | 
|  |  | 32 |  | } |