WorkpieceProduction.cs 1.05 KB
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DataAcquisition.Models
{
    [Comment("生产工件")]
    [Table("WorkpieceProduction")]
    public class WorkpieceProduction
    {
        [Key]
        [Comment("主键")]
        public Guid Id { get; set; }

        [Comment("设备编号")]
        public string EquipmentCode { get; set; } = null!;

        [Comment("设备名称")]
        public string EquipmentName { get; set; } = null!;

        [Comment("程序号")]
        public int ProgramNo { get; set; }

        [Comment("工件型号")]
        public string WorkpieceCode { get; set; } = null!;

        [Comment("是否结束")]
        public bool IsEnd { get; set; }

        [Comment("创建时间")]
        public DateTime CreateTime { get; set; }

        [Comment("更新时间")]
        public DateTime UpdateTime { get; set; }

        public IList<WeldProcessRecord> WeldProcessRecords { get; set; } = new List<WeldProcessRecord>();
    }
}