| | 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)] |
| 308 | 13 | | public int Id { get; set; } |
| | 14 | |
|
| 305 | 15 | | public int Order { get; set; } |
| | 16 | |
|
| 217 | 17 | | public double? CustomX { get; set; } |
| | 18 | |
|
| 147 | 19 | | public double? CustomY { get; set; } |
| | 20 | |
|
| 147 | 21 | | public double? CustomRotation { get; set; } |
| | 22 | |
|
| | 23 | | [ForeignKey("WaypointId")] |
| 341 | 24 | | public Waypoint? Waypoint { get; set; } = null!; |
| | 25 | |
|
| 223 | 26 | | public int? WaypointId { get; set; } |
| | 27 | |
|
| | 28 | | [ForeignKey("AutoTaskId")] |
| 303 | 29 | | public AutoTask AutoTask { get; set; } = null!; |
| | 30 | |
|
| 301 | 31 | | public int AutoTaskId { get; set; } |
| | 32 | | } |