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.

71 lines
1.9 KiB
C#

using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Nodes;
using System.Threading.Tasks;
namespace ZhongLianModel
{
[SugarTable("ZL_InstallStep_{year}{month}{day}")]
[SplitTable(SplitType.Year)]
public class InstallStepDO
{
/// <summary>
/// 安装单编号
/// </summary>
[SugarColumn(Length = 100, IsPrimaryKey = true)]
public string? InstallId { get; set; }
/// <summary>
/// 键
/// </summary>
[SugarColumn(Length = 50, IsPrimaryKey = true)]
public string? Key { get; set; }
/// <summary>
/// 值
/// </summary>
[SugarColumn(IsJson = true,IsNullable = true, ColumnDataType = "Text")]
public dynamic[]? Value { get; set; }
/// <summary>
/// 序号
/// </summary>
[SugarColumn(IsNullable = true, Length = 2)]
public int? Index { get; set; }
/// <summary>
/// 自定义数据
/// </summary>
[SugarColumn(IsJson = true, IsNullable = true, ColumnDataType = "Text")]
public Dictionary<string, dynamic>? Data { get; set; }
/// <summary>
/// 巡检状态 0:未巡检,1:已通过,2:未通过
/// </summary>
[SugarColumn(IsNullable = true, Length = 2)]
public int? State { get; set; }
/// <summary>
/// 巡检评论
/// </summary>
[SugarColumn(IsNullable = true, Length = 500)]
public string? Comment { get; set; }
/// <summary>
/// 创建日期
/// </summary>
[SplitField]
[SugarColumn(IsNullable = true)]
public DateTime? CreateDate { get; set; }
/// <summary>
/// 最后更新日期
/// </summary>
[SugarColumn(IsNullable = true)]
public DateTime? LastDate { get; set; }
}
}