AdoS0NbrControl.cs 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Warehouse;
  2. /// <summary>
  3. /// 单号规则主数据(复刻 NbrControl)
  4. /// </summary>
  5. [SugarTable("NbrControl", "单号规则主数据(复刻 NbrControl)")]
  6. [SugarIndex("uk_NbrControl_domain_nbrtype", nameof(DomainCode), OrderByType.Asc, nameof(NbrType), OrderByType.Asc, IsUnique = true)]
  7. public class AdoS0NbrControl
  8. {
  9. [SugarColumn(ColumnName = "rec_id", ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  10. public long Id { get; set; }
  11. [SugarColumn(ColumnName = "company_ref_id", ColumnDescription = "关联公司 ID", ColumnDataType = "bigint")]
  12. public long CompanyRefId { get; set; }
  13. [SugarColumn(ColumnName = "factory_ref_id", ColumnDescription = "关联工厂 ID", ColumnDataType = "bigint")]
  14. public long FactoryRefId { get; set; }
  15. [SugarColumn(ColumnName = "domain_code", ColumnDescription = "工厂域编码", Length = 50)]
  16. public string DomainCode { get; set; } = string.Empty;
  17. [SugarColumn(ColumnName = "nbr_type", ColumnDescription = "单号类型编码", Length = 100)]
  18. public string NbrType { get; set; } = string.Empty;
  19. [SugarColumn(ColumnName = "description", ColumnDescription = "描述", Length = 255, IsNullable = true)]
  20. public string? Description { get; set; }
  21. [SugarColumn(ColumnName = "nbr_pre1", ColumnDescription = "前缀1", Length = 50, IsNullable = true)]
  22. public string? NbrPre1 { get; set; }
  23. [SugarColumn(ColumnName = "nbr_pre2", ColumnDescription = "前缀2", Length = 50, IsNullable = true)]
  24. public string? NbrPre2 { get; set; }
  25. [SugarColumn(ColumnName = "nbr_pre3", ColumnDescription = "前缀3", Length = 50, IsNullable = true)]
  26. public string? NbrPre3 { get; set; }
  27. [SugarColumn(ColumnName = "ini_value", ColumnDescription = "初始值", IsNullable = true)]
  28. public int? IniValue { get; set; }
  29. [SugarColumn(ColumnName = "min_value", ColumnDescription = "最小值", IsNullable = true)]
  30. public int? MinValue { get; set; }
  31. [SugarColumn(ColumnName = "max_value", ColumnDescription = "最大值", IsNullable = true)]
  32. public int? MaxValue { get; set; }
  33. [SugarColumn(ColumnName = "allow_reset", ColumnDescription = "允许重置", ColumnDataType = "boolean")]
  34. public bool AllowReset { get; set; }
  35. [SugarColumn(ColumnName = "allow_skip", ColumnDescription = "允许跳号", ColumnDataType = "boolean")]
  36. public bool AllowSkip { get; set; }
  37. [SugarColumn(ColumnName = "allow_manual", ColumnDescription = "允许手动", ColumnDataType = "boolean")]
  38. public bool AllowManual { get; set; }
  39. [SugarColumn(ColumnName = "date_type", ColumnDescription = "日期类型", Length = 50, IsNullable = true)]
  40. public string? DateType { get; set; }
  41. [SugarColumn(ColumnName = "is_date_type", ColumnDescription = "是否含日期", ColumnDataType = "boolean")]
  42. public bool IsDateType { get; set; }
  43. [SugarColumn(ColumnName = "create_user", ColumnDescription = "创建人", Length = 100, IsNullable = true)]
  44. public string? CreateUser { get; set; }
  45. [SugarColumn(ColumnName = "create_time", ColumnDescription = "创建时间")]
  46. public DateTime CreateTime { get; set; } = DateTime.Now;
  47. [SugarColumn(ColumnName = "update_user", ColumnDescription = "更新人", Length = 100, IsNullable = true)]
  48. public string? UpdateUser { get; set; }
  49. [SugarColumn(ColumnName = "update_time", ColumnDescription = "更新时间", IsNullable = true)]
  50. public DateTime? UpdateTime { get; set; }
  51. }