WeldProcessRecord.cs
1.04 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
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using IndexAttribute = Microsoft.EntityFrameworkCore.IndexAttribute;
namespace DataAcquisition.Models
{
[Comment("焊接过程记录")]
[Table("WeldProcessRecord")]
[Index(nameof(ProductionId))]
public class WeldProcessRecord
{
[Key]
public Guid Id { get; set; }
[Comment("设备Id")]
public int EquipmentId { get; set; }
[Comment("产品Id")]
[ForeignKey(nameof(WorkpieceProduction))]
public Guid ProductionId { get; set; }
public virtual WorkpieceProduction WorkpieceProduction { get; set; } = null!;
[Comment("属性编号")]
public string Code { get; set; } = null!;
[Comment("属性名称")]
public string Name { get; set; } = null!;
[Comment("值")]
public string Value { get; set; } = null!;
[Comment("创建时间")]
public DateTime CreateTime { get; set; }
}
}