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
{
///
/// 安装单编号
///
[SugarColumn(Length = 100, IsPrimaryKey = true)]
public string? InstallId { get; set; }
///
/// 键
///
[SugarColumn(Length = 50, IsPrimaryKey = true)]
public string? Key { get; set; }
///
/// 值
///
[SugarColumn(IsJson = true,IsNullable = true, ColumnDataType = "Text")]
public dynamic[]? Value { get; set; }
///
/// 序号
///
[SugarColumn(IsNullable = true, Length = 2)]
public int? Index { get; set; }
///
/// 自定义数据
///
[SugarColumn(IsJson = true, IsNullable = true, ColumnDataType = "Text")]
public Dictionary? Data { get; set; }
///
/// 巡检状态 0:未巡检,1:已通过,2:未通过
///
[SugarColumn(IsNullable = true, Length = 2)]
public int? State { get; set; }
///
/// 巡检评论
///
[SugarColumn(IsNullable = true, Length = 500)]
public string? Comment { get; set; }
///
/// 创建日期
///
[SplitField]
[SugarColumn(IsNullable = true)]
public DateTime? CreateDate { get; set; }
///
/// 最后更新日期
///
[SugarColumn(IsNullable = true)]
public DateTime? LastDate { get; set; }
}
}