Equipment.cs 1.53 KB
using DAQ.Shared.Models;
using FreeSql.DataAnnotations;

namespace HHECS.DAQShared.Models
{
    /// <summary>
    /// 设备信息
    /// </summary>
    [Table(Name = "daq_equipment")]
    public class Equipment
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Column(IsPrimary = true)]
        public int Id { get; set; }

        /// <summary>
        /// 设备编号 / IOT云平台设备SN
        /// </summary>
        public string Code { get; set; } = null!;

        /// <summary>
        /// 设备名称
        /// </summary>
        public string Name { get; set; } = null!;

        /// <summary>
        /// 设备类型Id
        /// </summary>
        public int EquipmentTypeId { get; set; }

        /// <summary>
        /// 设备类型
        /// </summary>
        public virtual EquipmentType EquipmentType { get; set; } = null!;

        /// <summary>
        /// 属性集合
        /// </summary>
        public virtual List<EquipmentProperty> EquipmentProperties { get; set; } = new List<EquipmentProperty>();

        /// <summary>
        /// 仓库编号
        /// </summary>
        public string WarehouseCode { get; set; } = null!;

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; } = null!;

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; }
    }
}