using Magicodes.ExporterAndImporter.Core; using Microsoft.AspNetCore.Cors; using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WIDESEA_Core.DB.Models; namespace WIDESEA_Model.Models { [SugarTable(nameof(Dt_Container), "冷库管理")] public class Dt_Container:BaseEntity { [ImporterHeader(Name = "主键")] [ExporterHeader(DisplayName = "主键")] [SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "主键")] public int Id { get; set; } /// /// 设备名称 /// [SugarColumn(IsNullable = false, Length =50,ColumnDescription = "设备名称")] public string deviceName { get; set; } /// /// 温度 /// [SugarColumn(IsNullable = true,Length =50, ColumnDescription = "温度")] public string CurrentTemperature { get; set; } /// /// 湿度 /// [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "湿度")] public string Humidity { get; set; } /// /// 是否报警 0无报警 1报警 /// [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "是否报警 0无报警 1报警")] public string Alarm { get;set; } /// /// 报警信息 /// [SugarColumn(IsNullable = true,Length =255, ColumnDescription = "报警信息")] public string AlarmInformation { get; set; } } }