WeldProcessRecord.cs 1.04 KB
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; }
    }
}