AdoS0ContractReviewCycle.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S0.Sales;
  2. [SugarTable("S0ContractReviewCycle", "合同评审周期标准")]
  3. [SugarIndex("uk_S0ContractReviewCycle_factory_stage",
  4. nameof(TenantId), OrderByType.Asc,
  5. nameof(FactoryRefId), OrderByType.Asc,
  6. nameof(StageCode), OrderByType.Asc,
  7. IsUnique = true)]
  8. public class AdoS0ContractReviewCycle : ITenantIdFilter
  9. {
  10. [SugarColumn(ColumnName = "rec_id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  11. public long Id { get; set; }
  12. [SugarColumn(ColumnName = "company_ref_id", ColumnDataType = "bigint")]
  13. public long CompanyRefId { get; set; }
  14. [SugarColumn(ColumnName = "factory_ref_id", ColumnDataType = "bigint")]
  15. public long FactoryRefId { get; set; }
  16. [SugarColumn(ColumnName = "domain_code", Length = 50, IsNullable = true)]
  17. public string? DomainCode { get; set; }
  18. [SugarColumn(ColumnName = "stage_code", Length = 50)]
  19. public string StageCode { get; set; } = string.Empty;
  20. [SugarColumn(ColumnName = "stage_name", Length = 200)]
  21. public string StageName { get; set; } = string.Empty;
  22. [SugarColumn(ColumnName = "std_hours")]
  23. public int StdHours { get; set; }
  24. [SugarColumn(ColumnName = "order_no")]
  25. public int OrderNo { get; set; }
  26. [SugarColumn(ColumnName = "is_active", ColumnDataType = "boolean")]
  27. public bool IsActive { get; set; } = true;
  28. [SugarColumn(ColumnName = "create_user", Length = 100, IsNullable = true)]
  29. public string? CreateUser { get; set; }
  30. [SugarColumn(ColumnName = "create_time")]
  31. public DateTime CreateTime { get; set; } = DateTime.Now;
  32. [SugarColumn(ColumnName = "update_user", Length = 100, IsNullable = true)]
  33. public string? UpdateUser { get; set; }
  34. [SugarColumn(ColumnName = "update_time", IsNullable = true)]
  35. public DateTime? UpdateTime { get; set; }
  36. [SugarColumn(ColumnName = "tenant_id", IsNullable = true)]
  37. public long? TenantId { get; set; }
  38. }