AdoS0CustMaster.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Sales;
  2. /// <summary>
  3. /// 客户主数据(复刻 CustMaster)
  4. /// </summary>
  5. [SugarTable("CustMaster", "客户主数据(复刻 CustMaster)")]
  6. [SugarIndex("uk_CustMaster_factory_cust", nameof(FactoryRefId), OrderByType.Asc, nameof(Cust), OrderByType.Asc, IsUnique = true)]
  7. public class AdoS0CustMaster
  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, IsNullable = true)]
  16. public string? DomainCode { get; set; }
  17. [SugarColumn(ColumnName = "cust", ColumnDescription = "客户编码", Length = 100)]
  18. public string Cust { get; set; } = string.Empty;
  19. [SugarColumn(ColumnName = "sort_name", ColumnDescription = "客户简称", Length = 200, IsNullable = true)]
  20. public string? SortName { get; set; }
  21. [SugarColumn(ColumnName = "curr", ColumnDescription = "币种", Length = 20, IsNullable = true)]
  22. public string? Curr { get; set; }
  23. [SugarColumn(ColumnName = "slspsn1", ColumnDescription = "主销售员", Length = 100, IsNullable = true)]
  24. public string? Slspsn1 { get; set; }
  25. [SugarColumn(ColumnName = "slspsn2", ColumnDescription = "备用销售员", Length = 100, IsNullable = true)]
  26. public string? Slspsn2 { get; set; }
  27. [SugarColumn(ColumnName = "ship_to", ColumnDescription = "发至", Length = 200, IsNullable = true)]
  28. public string? ShipTo { get; set; }
  29. [SugarColumn(ColumnName = "tax_class", ColumnDescription = "税类型", Length = 50, IsNullable = true)]
  30. public string? TaxClass { get; set; }
  31. [SugarColumn(ColumnName = "tax_in", ColumnDescription = "是否含税", ColumnDataType = "boolean")]
  32. public bool TaxIn { get; set; } = true;
  33. [SugarColumn(ColumnName = "cust_class", ColumnDescription = "客户级别", Length = 50, IsNullable = true)]
  34. public string? CustClass { get; set; }
  35. [SugarColumn(ColumnName = "remarks", ColumnDescription = "备注", Length = 1000, IsNullable = true)]
  36. public string? Remarks { get; set; }
  37. [SugarColumn(ColumnName = "is_active", ColumnDescription = "是否启用", ColumnDataType = "boolean")]
  38. public bool IsActive { get; set; } = true;
  39. [SugarColumn(ColumnName = "is_confirm", ColumnDescription = "是否确认", ColumnDataType = "boolean")]
  40. public bool IsConfirm { get; set; }
  41. [SugarColumn(ColumnName = "create_user", ColumnDescription = "创建人", Length = 100, IsNullable = true)]
  42. public string? CreateUser { get; set; }
  43. [SugarColumn(ColumnName = "create_time", ColumnDescription = "创建时间")]
  44. public DateTime CreateTime { get; set; } = DateTime.Now;
  45. [SugarColumn(ColumnName = "update_user", ColumnDescription = "更新人", Length = 100, IsNullable = true)]
  46. public string? UpdateUser { get; set; }
  47. [SugarColumn(ColumnName = "update_time", ColumnDescription = "更新时间", IsNullable = true)]
  48. public DateTime? UpdateTime { get; set; }
  49. }