You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.5 KiB
C#

using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ZhongLianModel
{
/// <summary>
/// 设备实体
/// </summary>
[SugarTable("TPRZ_Device")]
public class DeviceDO
{
/// <summary>
/// 设备编号
/// </summary>
[SugarColumn(IsPrimaryKey = true, Length = 64)]
public string? Id { get; set; }
/// <summary>
/// 工程
/// </summary>
[SugarColumn(Length = 64, IsNullable = true)]
public string? ProjectId { get; set; }
/// <summary>
/// GPS数组
/// </summary>
[SugarColumn(Length = 500, IsNullable = true, IsJson = true)]
public IEnumerable<DeviceGpsDO>? Gps { get; set; }
/// <summary>
/// 删除标识
/// </summary>
[SugarColumn(Length = 1, IsNullable = true)]
public int? Deleted { get; set; }
}
public class DeviceGpsDO
{
/// <summary>
/// GPS编号
/// </summary>
public string? Id { get; set; }
/// <summary>
/// GPS名称
/// </summary>
public string? Name { get; set; }
/// <summary>
/// 设备编号
/// </summary>
public string? DeviceId { get; set; }
/// <summary>
/// 博瓦监控设备编号
/// </summary>
public string? Bw { get; set; }
public string? Bw1 { get; set; }
}
}