WorkpieceProcessingRecord.cs 869 Bytes
using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace DataAcquisitionServer.Models
{
    [Comment("工件加工记录")]
    public class WorkpieceProcessingRecord
    {
        [Key]
        [Comment("主键")]
        public Guid Id { get; set; }

        [Comment("设备")]
        [ForeignKey(nameof(Equipment))]
        public int EquipmentId { get; set; }

        public virtual Equipment Equipment { get; set; } = null!;

        [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; }
    }
}