| | | 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.FlowDetails")] |
| | | 8 | | [Index(nameof(Order))] |
| | | 9 | | public class FlowDetail |
| | | 10 | | { |
| | | 11 | | [Key] |
| | | 12 | | [DatabaseGenerated(DatabaseGeneratedOption.Identity)] |
| | 147 | 13 | | public int Id { get; set; } |
| | | 14 | | |
| | 145 | 15 | | public int Order { get; set; } |
| | | 16 | | |
| | | 17 | | [ForeignKey("ProgressId")] |
| | 142 | 18 | | public Progress Progress { get; set; } = null!; |
| | | 19 | | |
| | 145 | 20 | | public int ProgressId { get; set; } |
| | | 21 | | |
| | 145 | 22 | | public int AutoTaskNextControllerId { get; set; } |
| | | 23 | | |
| | | 24 | | [ForeignKey("TriggerId")] |
| | 1 | 25 | | public Trigger? Trigger { get; set; } |
| | | 26 | | |
| | 54 | 27 | | public int? TriggerId { get; set; } |
| | | 28 | | |
| | | 29 | | [ForeignKey("FlowId")] |
| | 141 | 30 | | public Flow Flow { get; set; } = null!; |
| | | 31 | | |
| | 140 | 32 | | public int FlowId { get; set; } |
| | | 33 | | } |