AdoS0LocationMaster.cs 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Warehouse;
  2. /// <summary>
  3. /// 库位主数据(复刻 LocationMaster,供供应商等模块左联展示)
  4. /// </summary>
  5. [SugarTable("LocationMaster", "库位主数据(复刻 LocationMaster)")]
  6. [SugarIndex("uk_LocationMaster_domain_location", nameof(DomainCode), OrderByType.Asc, nameof(Location), OrderByType.Asc, IsUnique = true)]
  7. public class AdoS0LocationMaster
  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 = "location", ColumnDescription = "库位编码", Length = 100)]
  18. public string Location { get; set; } = string.Empty;
  19. [SugarColumn(ColumnName = "descr", ColumnDescription = "库位说明", Length = 255, IsNullable = true)]
  20. public string? Descr { get; set; }
  21. [SugarColumn(ColumnName = "storer", ColumnDescription = "货主/保管方", Length = 100, IsNullable = true)]
  22. public string? Storer { get; set; }
  23. [SugarColumn(ColumnName = "typed", ColumnDescription = "库位类型", Length = 50, IsNullable = true)]
  24. public string? Typed { get; set; }
  25. [SugarColumn(ColumnName = "physical_address", ColumnDescription = "物理地址", Length = 500, IsNullable = true)]
  26. public string? PhysicalAddress { get; set; }
  27. [SugarColumn(ColumnName = "is_active", ColumnDescription = "是否启用", ColumnDataType = "boolean")]
  28. public bool IsActive { get; set; } = true;
  29. [SugarColumn(ColumnName = "create_user", ColumnDescription = "创建人", Length = 100, IsNullable = true)]
  30. public string? CreateUser { get; set; }
  31. [SugarColumn(ColumnName = "create_time", ColumnDescription = "创建时间")]
  32. public DateTime CreateTime { get; set; } = DateTime.Now;
  33. [SugarColumn(ColumnName = "update_user", ColumnDescription = "更新人", Length = 100, IsNullable = true)]
  34. public string? UpdateUser { get; set; }
  35. [SugarColumn(ColumnName = "update_time", ColumnDescription = "更新时间", IsNullable = true)]
  36. public DateTime? UpdateTime { get; set; }
  37. }