AdoS0ContractReviewCycleBreakdown.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Sales;
  2. /// <summary>
  3. /// 合同评审周期下钻配置(按 parent_stage_code 分组)。
  4. /// 本批仅初始化 parent_stage_code = 'feedback'(意见反馈)下的部门/组 PI 标准。
  5. /// </summary>
  6. [SugarTable("S0ContractReviewCycleBreakdown", "合同评审周期下钻配置")]
  7. [SugarIndex("uk_S0CRCBreakdown_factory_parent_group",
  8. nameof(FactoryRefId), OrderByType.Asc,
  9. nameof(ParentStageCode), OrderByType.Asc,
  10. nameof(GroupCode), OrderByType.Asc,
  11. IsUnique = true)]
  12. [SugarIndex("idx_S0CRCBreakdown_factory_parent",
  13. nameof(FactoryRefId), OrderByType.Asc,
  14. nameof(ParentStageCode), OrderByType.Asc,
  15. IsUnique = false)]
  16. public class AdoS0ContractReviewCycleBreakdown
  17. {
  18. [SugarColumn(ColumnName = "rec_id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  19. public long Id { get; set; }
  20. [SugarColumn(ColumnName = "company_ref_id", ColumnDataType = "bigint")]
  21. public long CompanyRefId { get; set; }
  22. [SugarColumn(ColumnName = "factory_ref_id", ColumnDataType = "bigint")]
  23. public long FactoryRefId { get; set; }
  24. [SugarColumn(ColumnName = "domain_code", Length = 50, IsNullable = true)]
  25. public string? DomainCode { get; set; }
  26. [SugarColumn(ColumnName = "parent_stage_code", Length = 50)]
  27. public string ParentStageCode { get; set; } = string.Empty;
  28. [SugarColumn(ColumnName = "group_code", Length = 50)]
  29. public string GroupCode { get; set; } = string.Empty;
  30. [SugarColumn(ColumnName = "group_name", Length = 200)]
  31. public string GroupName { get; set; } = string.Empty;
  32. [SugarColumn(ColumnName = "std_hours", ColumnDataType = "decimal(6,2)")]
  33. public decimal StdHours { get; set; }
  34. [SugarColumn(ColumnName = "order_no")]
  35. public int OrderNo { get; set; }
  36. [SugarColumn(ColumnName = "is_active", ColumnDataType = "boolean")]
  37. public bool IsActive { get; set; } = true;
  38. [SugarColumn(ColumnName = "create_user", Length = 100, IsNullable = true)]
  39. public string? CreateUser { get; set; }
  40. [SugarColumn(ColumnName = "create_time")]
  41. public DateTime CreateTime { get; set; } = DateTime.Now;
  42. [SugarColumn(ColumnName = "update_user", Length = 100, IsNullable = true)]
  43. public string? UpdateUser { get; set; }
  44. [SugarColumn(ColumnName = "update_time", IsNullable = true)]
  45. public DateTime? UpdateTime { get; set; }
  46. }