操控平台后端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

41 lines
1.3 KiB

6 months ago
using System.ComponentModel.DataAnnotations;
using Admin.NET.Core;
using Nest;
using SqlSugar;
using Yitter.IdGenerator;
namespace Admin.Bodk.Device.Entities.equipment;
/// <summary>
/// 设备表
/// </summary>
[SugarTable(null, "设备列表")]
[SysTable]
public class SysEquipment: EntityTenant, IRepositorySettings
{
// 是否主键,是否自增
[SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = false)]
public long Id { get; set; } = YitIdHelper.NextId();
[SugarColumn(ColumnDescription = "设备名称", Length = 32)]
[Required, MaxLength(32)]
public virtual string? EquipmentName { get; set; }
[SugarColumn(ColumnDescription = "设备编号", Length = 32,IsNullable = true)]
public virtual string Code { get; set; }
[SugarColumn(ColumnDescription = "设备类型", Length = 32)]
[Required]
public virtual string Type { get; set; }
[SugarColumn(ColumnDescription = "IP",IsNullable = true)]
public virtual string Ip { get; set; }
[SugarColumn(ColumnDescription = "设备状态",IsNullable = true)]
public string Status { get; set; }
[SugarColumn(ColumnDescription = "设备位置",IsNullable = true)]
public string Position { get; set; }
[SugarColumn(ColumnDescription = "备注",IsNullable = true)]
public string Remark { get; set; }
}