base_equipment.cs 4.1 KB
using System;
using SqlSugar;

namespace Hh.Mes.POJO.Entity
{
    [SugarTable("base_equipment")]
    public partial class base_equipment
    {
        /// <summary>
        /// 主键
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int id { get; set; }
 
        /// <summary>
        /// 设备编码,唯一且有规律易识别
        /// </summary>
        [SugarColumn(Length = 100, ColumnDescription = "设备编码,唯一且有规律易识别", IsNullable = false)]
        public string code { get; set; }
 
        /// <summary>
        /// 设备名
        /// </summary>
        [SugarColumn(Length = 100, ColumnDescription = "设备名", IsNullable = false)]
        public string name { get; set; }
 
        /// <summary>
        /// 关联到设备类型Id
        /// </summary>
        [SugarColumn(ColumnDescription = "关联到设备类型Id", IsNullable = false)]
        public int equipmentTypeId { get; set; }
 
        /// <summary>
        /// 此处写到这台设备对应的IP,一般为PLC的IP
        /// </summary>
        [SugarColumn(Length = 40, ColumnDescription = "此处写到这台设备对应的IP,一般为PLC的IP", IsNullable = true)]
        public string iP { get; set; }
 
        /// <summary>
        /// 所在区域,出于调度目的或其他划分,比如:为兼容转轨堆垛机设定,正常情况下与巷道相同,转轨情况下对应虚拟划分巷道
        /// </summary>
        [SugarColumn(Length = 100, ColumnDescription = "所在区域,出于调度目的或其他划分,比如:为兼容转轨堆垛机设定,正常情况下与巷道相同,转轨情况下对应虚拟划分巷道", IsNullable = true)]
        public string destinationArea { get; set; }
 
        /// <summary>
        /// 描述
        /// </summary>
        [SugarColumn(Length = 400, ColumnDescription = "描述", IsNullable = true)]
        public string description { get; set; }
 
        /// <summary>
        /// 维护规则Id
        /// </summary>
        [SugarColumn(ColumnDescription = "维护规则Id", IsNullable = true)]
        public int equipmentMaintainRuleId { get; set; }
 
        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnDescription = "创建时间", IsNullable = true)]
        public DateTime created { get; set; }
 
        [SugarColumn(Length = 40, IsNullable = true)]
        public string createdBy { get; set; }
 
        /// <summary>
        /// 对于更新时间,不自动写入,允许为null
        /// </summary>
        [SugarColumn(ColumnDescription = "对于更新时间,不自动写入,允许为null", IsNullable = true)]
        public DateTime updated { get; set; }
 
        [SugarColumn(Length = 40, IsNullable = true)]
        public string updatedBy { get; set; }
 
        /// <summary>
        /// 是否启用
        /// </summary>
        [SugarColumn(ColumnDescription = "是否启用", IsNullable = false)]
        public bool disable { get; set; }
 
        /// <summary>
        /// 出厂日期
        /// </summary>
        [SugarColumn(ColumnDescription = "出厂日期", IsNullable = true)]
        public DateTime prodTime { get; set; }
 
        /// <summary>
        /// 图片文件名称
        /// </summary>
        [SugarColumn(Length = 510, ColumnDescription = "图片文件名称", IsNullable = true)]
        public string imageName { get; set; }
 
        /// <summary>
        /// 仓库编码
        /// </summary>
        [SugarColumn(Length = 100, ColumnDescription = "仓库编码", IsNullable = true)]
        public string warehouseCode { get; set; }
 
        /// <summary>
        /// 温度
        /// </summary>
        [SugarColumn(ColumnDescription = "温度", IsNullable = false)]
        public double temperature { get; set; }
 
        /// <summary>
        /// 震动
        /// </summary>
        [SugarColumn(ColumnDescription = "震动", IsNullable = false)]
        public double shake { get; set; }

        [SugarColumn(ColumnDescription ="厂房编码",IsNullable =false)]
        public string factoryCode { get; set; }
     }
}