AdoS0ContractReviewCycleBreakdown.cs 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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(TenantId), OrderByType.Asc,
  9. nameof(FactoryRefId), OrderByType.Asc,
  10. nameof(ParentStageCode), OrderByType.Asc,
  11. nameof(GroupCode), OrderByType.Asc,
  12. IsUnique = true)]
  13. [SugarIndex("idx_S0CRCBreakdown_factory_parent",
  14. nameof(FactoryRefId), OrderByType.Asc,
  15. nameof(ParentStageCode), OrderByType.Asc,
  16. IsUnique = false)]
  17. public class AdoS0ContractReviewCycleBreakdown : ITenantIdFilter
  18. {
  19. [SugarColumn(ColumnName = "rec_id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  20. public long Id { get; set; }
  21. [SugarColumn(ColumnName = "company_ref_id", ColumnDataType = "bigint")]
  22. public long CompanyRefId { get; set; }
  23. [SugarColumn(ColumnName = "factory_ref_id", ColumnDataType = "bigint")]
  24. public long FactoryRefId { get; set; }
  25. [SugarColumn(ColumnName = "domain_code", Length = 50, IsNullable = true)]
  26. public string? DomainCode { get; set; }
  27. [SugarColumn(ColumnName = "parent_stage_code", Length = 50)]
  28. public string ParentStageCode { get; set; } = string.Empty;
  29. [SugarColumn(ColumnName = "group_code", Length = 50)]
  30. public string GroupCode { get; set; } = string.Empty;
  31. [SugarColumn(ColumnName = "group_name", Length = 200)]
  32. public string GroupName { get; set; } = string.Empty;
  33. [SugarColumn(ColumnName = "std_hours", ColumnDataType = "decimal(6,2)")]
  34. public decimal StdHours { get; set; }
  35. [SugarColumn(ColumnName = "order_no")]
  36. public int OrderNo { get; set; }
  37. [SugarColumn(ColumnName = "is_active", ColumnDataType = "boolean")]
  38. public bool IsActive { get; set; } = true;
  39. [SugarColumn(ColumnName = "create_user", Length = 100, IsNullable = true)]
  40. public string? CreateUser { get; set; }
  41. [SugarColumn(ColumnName = "create_time")]
  42. public DateTime CreateTime { get; set; } = DateTime.Now;
  43. [SugarColumn(ColumnName = "update_user", Length = 100, IsNullable = true)]
  44. public string? UpdateUser { get; set; }
  45. [SugarColumn(ColumnName = "update_time", IsNullable = true)]
  46. public DateTime? UpdateTime { get; set; }
  47. [SugarColumn(ColumnName = "tenant_id", IsNullable = true)]
  48. public long? TenantId { get; set; }
  49. }