using SqlSugar; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using WCS.DAL.DbModels; using WCS.Model.ApiModel.InOutRecord; namespace WCS.BLL.DbModels { /// /// 用于记录单据生成到哪个序号了 /// [SugarTable("wcs_document_serial_number")] public class DocumentSerialNumber { /// /// 主键 自增Id /// [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsNullable = false, IsIdentity = true)] public int Id { get; set; } /// /// 单据类型 /// [SugarColumn(ColumnName = "document_type", IsNullable = false, ColumnDescription = "单据类型 出库单据 = 1,\r\n盘点单据 = 2,")] public DocumentTypeEnum DocumentType { get; set; } /// /// 当前单据序号 /// [SugarColumn(ColumnName = "current_serial_number", IsNullable = false, ColumnDescription = "当前单据序号")] public int CurrentSerialNumber { get; set; } /// /// 日期 /// [SugarColumn(ColumnName = "update_date", IsNullable = false, ColumnDescription = "更新日期")] public DateTime UpdateDate { get; set; } } public enum DocumentTypeEnum { 出库单据 = 1, 盘点单据 = 2, } }