using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using SqlSugar;
using wms.dto;
using WMS.BZModels;
namespace wms.sqlsugar.model.pt
{
///
/// AGV任务中间表
///
[Tenant("pt")]
[SugarTable(nameof(WCS_AgvTaskInfo) + "_{year}{month}{day}", "任务表")]
[SplitTable(SplitType.Month)]//按年分表 (自带分表支持 年、季、月、周、日)
public class WCS_AgvTaskInfo : BaseEntityModel
{
///
/// ID
///
[SugarColumn(IsPrimaryKey = true, ColumnDescription = "ID"), DataMember(Order = 0)]
public int ID { get; set; }
///
/// AGVID
///
[SugarColumn(ColumnDescription = "AGVID", Length = 50, IsNullable = true), DataMember(Order = 1)]
public string AgvID { get; set; }
///
/// 任务类型
///
[SugarColumn(ColumnDescription = "任务类型")]
[DataMember(Order = 2)]
public int TaskType { get; set; }
///
/// WCS AGV任务状态
///
[SugarColumn(ColumnDescription = "WCS AGV任务状态")]
[DataMember(Order = 3)]
public int Status { get; set; }
///
/// AGV自身状态
///
[SugarColumn(ColumnDescription = "AGV自身状态")]
[DataMember(Order = 4)]
public int AgvStatus { get; set; }
///
/// 车间
///
[SugarColumn(ColumnDescription = "车间")]
[DataMember(Order = 5)]
public int WorkShop { get; set; }
///
/// 站台
///
[SugarColumn(ColumnDescription = "站台", Length = 20, IsNullable = true)]
[DataMember(Order = 6)]
public string Station { get; set; }
///
/// 位置
///
[SugarColumn(ColumnDescription = "位置", Length = 20, IsNullable = true)]
[DataMember(Order = 7)]
public string Position { get; set; }
///
/// 货物数量(1.两个位置放1个货物,2.两个位置放2个货物)
///
[SugarColumn(ColumnDescription = "货物数量(1.两个位置放1个货物,2.两个位置放2个货物)")]
[DataMember(Order = 11)]
public int GoodsSum { get; set; }
///
/// 创建用户
/// 仅记录用户ID
///
[SugarColumn(ColumnDescription = "创建用户", Length = 50)]
public string AddWho { get; set; }
///
/// 创建时间
///
[SugarColumn(ColumnDescription = "创建时间", InsertServerTime = true)]
[SplitField]
public DateTime AddTime { get; set; }
///
/// AGV更新时间
///
[SugarColumn(ColumnDescription = "AGV更新时间", UpdateServerTime = true, IsNullable = true)]
[DataMember(Order = 10)]
public DateTime AgvUpdateTime { get; set; }
///
/// 更新用户
/// 仅记录用户ID
///
[SugarColumn(ColumnDescription = "更新用户", Length = 50, IsNullable = true)]
public string EditWho { get; set; }
///
/// 更新时间
///
[SugarColumn(ColumnDescription = "更新时间", IsNullable = true, UpdateServerTime = true)]
public DateTime EditTime { get; set; }
}
}