RobotSubTaskHistory.cs
1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Rcs.Domain.Entities;
/// <summary>
/// 子任务历史记录
/// </summary>
[Table("robot_sub_task_histories")]
public class RobotSubTaskHistory : Entity
{
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.None)]
[Column("sub_task_id")]
public Guid SubTaskId { get; set; }
[Required]
[Column("task_code")]
[MaxLength(50)]
public string TaskCode { get; set; } = string.Empty;
[Column("robot_code")]
[MaxLength(50)]
public string? RobotCode { get; set; }
[Required]
[Column("begin_node_code")]
[MaxLength(50)]
public string BeginNodeCode { get; set; } = string.Empty;
[Required]
[Column("end_node_code")]
[MaxLength(50)]
public string EndNodeCode { get; set; } = string.Empty;
[Required]
[Column("sequence")]
public int Sequence { get; set; }
[Column("status")]
public TaskStatus Status { get; set; }
[Required]
[Column("execution_count")]
public int ExecutionCount { get; set; }
[Column("created_at", TypeName = "timestamp")]
public DateTime CreatedAt { get; set; }
[Column("updated_at", TypeName = "timestamp")]
public DateTime? UpdatedAt { get; set; }
[Column("archived_at", TypeName = "timestamp")]
public DateTime ArchivedAt { get; set; }
public virtual RobotTaskHistory? TaskHistory { get; set; }
}