using BPA.SAAS.Manage.Comm.Enum;
using BPA.SAAS.Manage.Core.Base;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Principal;
using System.Text;
using System.Threading.Tasks;
namespace BPA.SAAS.Manage.Core.Device
{
[SugarTable("bpa_deviceinfo")]
public class BPA_DeviceInfo: IBaseEntity, IGroupId
{
///
/// 设备名称
///
public string DeviceName { get; set; }
///
/// 设备标签
///
public string DeviceTypeId { get; set; }
///
///归属场景(店铺)
///
public string StopId { get; set; }
///
/// 所属产品
///
public string ProductId { get; set; }
///
/// 产品标签
///
//public string ProductCode { get; set; }
///
/// 状态 【正常 停用】默认 正常
///
[SugarColumn(ColumnDataType = "int", ColumnDescription = "状态", IsNullable = false)]
public CommonStatus Status { get; set; } = CommonStatus.ENABLE;
///
/// 设备AutoKey 唯一用于mqtt消息推送标识
///
[SugarColumn(IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true, IsIdentity = true)]
public int AutoKey { get; set; }
///
/// 产品版本
///
public string ProductVersionId { get; set; }
public string GroupId { get; set; }
///
/// 支持工艺还是配方 0工艺 1配方
///
//public int TechnologyOrBom { get; set; }
}
}