| | 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)] |
| 0 | 13 | | public int Id { get; set; } |
| | 14 | |
|
| 0 | 15 | | public int Order { get; set; } |
| | 16 | |
|
| | 17 | | [ForeignKey("ProgressId")] |
| 0 | 18 | | public Progress Progress { get; set; } = null!; |
| | 19 | |
|
| 0 | 20 | | public int ProgressId { get; set; } |
| | 21 | |
|
| 0 | 22 | | public int AutoTaskNextControllerId { get; set; } |
| | 23 | |
|
| | 24 | | [ForeignKey("TriggerId")] |
| 0 | 25 | | public Trigger? Trigger { get; set; } |
| | 26 | |
|
| 0 | 27 | | public int? TriggerId { get; set; } |
| | 28 | |
|
| | 29 | | [ForeignKey("FlowId")] |
| 0 | 30 | | public Flow Flow { get; set; } = null!; |
| | 31 | |
|
| 0 | 32 | | public int FlowId { get; set; } |
| | 33 | | } |