using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;
namespace wms.sqlsugar.model.pt
{
///
/// 任务流转表
///
[Tenant("pt")]
[SugarTable(nameof(ptWCS_TaskDtl) + "_{year}{month}{day}", "任务流转表")]
[SplitTable(SplitType.Month)]//按年分表 (自带分表支持 年、季、月、周、日)
public class ptWCS_TaskDtl
{
///
/// ID
///
[SugarColumn(IsPrimaryKey = true, ColumnDescription = "ID")]
[Column(Order = 0)]
public Guid ID { get; set; }
///
/// 父级任务号
///
[SugarColumn(ColumnDescription = "父级任务号")]
public int ParentTaskCode { get; set; }
///
/// 当前位置
///
[SugarColumn(ColumnDescription = "当前位置")]
public string CurPoint { get; set; }
///
/// 下一个地址
///
[SugarColumn(ColumnDescription = "下一个地址", IsNullable = true)]
public string NextPoint { get; set; }
///
/// 描述
///
[SugarColumn(ColumnDescription = "描述")]
public string Desc { get; set; }
///
/// 是否可用
///
[SugarColumn(ColumnDescription = "是否可用")]
public bool Enabled { get; set; } = true;
///
/// 创建用户
/// 仅记录用户ID
///
[SugarColumn(ColumnDescription = "创建用户", Length = 50)]
public string AddWho { get; set; }
///
/// 创建时间
/// 新增数据时自动获取服务器时间
///
[SugarColumn(ColumnDescription = "创建时间", InsertServerTime = true)]
[SplitField]
public DateTime AddTime { get; set; }
///
/// 版本号
///
[SugarColumn(ColumnDescription = "版本号", ColumnDataType = "timestamp", IsNullable = true, IsOnlyIgnoreInsert = true, IsOnlyIgnoreUpdate = true)]
public byte[] VER { get; set; }
}
}