AdoS0LineMaster.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Manufacturing;
  2. /// <summary>
  3. /// 生产线主数据(复刻 LineMaster)。
  4. /// </summary>
  5. [SugarTable("LineMaster", "生产线主数据表")]
  6. [SugarIndex("uk_LineMaster_scope_line", nameof(CompanyRefId), OrderByType.Asc, nameof(FactoryRefId), OrderByType.Asc, nameof(Line), OrderByType.Asc, IsUnique = true)]
  7. public class AdoS0LineMaster
  8. {
  9. [SugarColumn(ColumnName = "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", ColumnDescription = "工厂域编码", Length = 50)]
  16. public string Domain { get; set; } = string.Empty;
  17. [SugarColumn(ColumnName = "line", ColumnDescription = "生产线编码", Length = 100)]
  18. public string Line { get; set; } = string.Empty;
  19. [SugarColumn(ColumnName = "line_describe", ColumnDescription = "生产线描述", Length = 255, IsNullable = true)]
  20. public string? Describe { get; set; }
  21. [SugarColumn(ColumnName = "line_type", ColumnDescription = "产线类型", Length = 50, IsNullable = true)]
  22. public string? LineType { get; set; }
  23. [SugarColumn(ColumnName = "line_category", ColumnDescription = "产线类别", Length = 50, IsNullable = true)]
  24. public string? LineCategory { get; set; }
  25. [SugarColumn(ColumnName = "location", ColumnDescription = "主库位", Length = 50, IsNullable = true)]
  26. public string? Location { get; set; }
  27. [SugarColumn(ColumnName = "workshop", ColumnDescription = "车间编码", Length = 50, IsNullable = true)]
  28. public string? Workshop { get; set; }
  29. [SugarColumn(ColumnName = "v_location", ColumnDescription = "虚拟库位", Length = 50, IsNullable = true)]
  30. public string? VLocation { get; set; }
  31. [SugarColumn(ColumnName = "location2", ColumnDescription = "辅助库位2", Length = 50, IsNullable = true)]
  32. public string? Location2 { get; set; }
  33. [SugarColumn(ColumnName = "location3", ColumnDescription = "辅助库位3", Length = 50, IsNullable = true)]
  34. public string? Location3 { get; set; }
  35. [SugarColumn(ColumnName = "picking_location", ColumnDescription = "拣料库位", Length = 50, IsNullable = true)]
  36. public string? PickingLocation { get; set; }
  37. [SugarColumn(ColumnName = "mid_location", ColumnDescription = "中间库位", Length = 50, IsNullable = true)]
  38. public string? MidLocation { get; set; }
  39. [SugarColumn(ColumnName = "is_active", ColumnDescription = "是否启用", ColumnDataType = "boolean")]
  40. public bool IsActive { get; set; } = true;
  41. [SugarColumn(ColumnName = "create_user", ColumnDescription = "创建人", Length = 64, IsNullable = true)]
  42. public string? CreateUser { get; set; }
  43. [SugarColumn(ColumnName = "create_time", ColumnDescription = "创建时间", IsNullable = true)]
  44. public DateTime? CreateTime { get; set; }
  45. [SugarColumn(ColumnName = "update_user", ColumnDescription = "更新人", Length = 64, IsNullable = true)]
  46. public string? UpdateUser { get; set; }
  47. [SugarColumn(ColumnName = "update_time", ColumnDescription = "更新时间", IsNullable = true)]
  48. public DateTime? UpdateTime { get; set; }
  49. }