using DS.Module.Core;
using DS.Module.Core.Data;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DS.WMS.Core.Code.Entity
{
///
/// 基础编码表
///
[SqlSugar.SugarTable("code_sequence", "基础编码表")]
public class CodeSequence : BaseOrgModel
{
///
/// 权限ID
///
[SugarColumn(ColumnDescription = "权限ID")]
public long PermissionId { get; set; }
///
/// 权限实体
///
[SugarColumn(ColumnDescription = "权限实体",Length = 50)]
public string PermissionEntity { get; set; }
///
/// 名称
///
[SugarColumn(ColumnDescription = "名称", Length = 50)]
public string SequenceName { get; set; }
///
/// 分隔符
///
[SugarColumn(ColumnDescription = "分隔符", Length = 50,IsNullable = true)]
public string SequenceDelimiter { get; set; }
///
/// 序号重置规则
///
[SugarColumn(ColumnDescription = "分隔符", Length = 100, IsNullable = true)]
public string SequenceReset { get; set; }
///
/// 步长
///
[SugarColumn(ColumnDescription = "步长", DefaultValue ="1")]
public int Step { get; set; }
///
/// 当前值
///
[SugarColumn(ColumnDescription = "当前值")]
public int CurrentNo { get; set; }
///
/// 当前编码
///
[SugarColumn(ColumnDescription = "当前编码", Length = 100, IsNullable = true)]
public string CurrentCode { get; set; }
///
/// 当前重置依赖,即最后一次获取编码的日期
///
[SugarColumn(ColumnDescription = "当前重置依赖", Length = 100, IsNullable = true)]
public string CurrentReset { get; set; }
///
/// 状态
///
[SqlSugar.SugarColumn(ColumnDescription = "状态")]
public StatusEnum? Status { get; set; } = StatusEnum.Enable;
///
/// 排序号
///
[SugarColumn(ColumnDescription = "排序号",DefaultValue ="100")]
public int OrderNo { get; set; }
}
}