AdoPlan.cs 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. namespace Admin.NET.Plugin.AiDOP.Entity;
  2. /// <summary>
  3. /// Demo 计划表 ado_plans
  4. /// </summary>
  5. [SugarTable("ado_plans", "AiDOP Demo 计划")]
  6. public class AdoPlan
  7. {
  8. [SugarColumn(ColumnDescription = "主键", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "integer")]
  9. public long Id { get; set; }
  10. [SugarColumn(ColumnDescription = "计划号", Length = 50)]
  11. public string PlanNo { get; set; } = string.Empty;
  12. [SugarColumn(ColumnDescription = "计划类型", Length = 50)]
  13. public string PlanType { get; set; } = string.Empty;
  14. [SugarColumn(ColumnDescription = "产品Id", IsNullable = true)]
  15. public long? ProductId { get; set; }
  16. [SugarColumn(ColumnDescription = "产品名称", Length = 200)]
  17. public string ProductName { get; set; } = string.Empty;
  18. [SugarColumn(ColumnDescription = "计划数量")]
  19. public int Quantity { get; set; }
  20. [SugarColumn(ColumnDescription = "已完成数量")]
  21. public int CompletedQuantity { get; set; }
  22. [SugarColumn(ColumnDescription = "开始日期", IsNullable = true)]
  23. public DateTime? StartDate { get; set; }
  24. [SugarColumn(ColumnDescription = "结束日期", IsNullable = true)]
  25. public DateTime? EndDate { get; set; }
  26. [SugarColumn(ColumnDescription = "状态", Length = 50)]
  27. public string Status { get; set; } = "未开始";
  28. [SugarColumn(ColumnDescription = "优先级", Length = 50)]
  29. public string Priority { get; set; } = "中";
  30. [SugarColumn(ColumnDescription = "备注", Length = 1000, IsNullable = true)]
  31. public string? Remark { get; set; }
  32. [SugarColumn(ColumnDescription = "创建时间")]
  33. public DateTime CreatedTime { get; set; }
  34. [SugarColumn(ColumnDescription = "更新时间", IsNullable = true)]
  35. public DateTime? UpdatedTime { get; set; }
  36. [SugarColumn(ColumnDescription = "创建人", Length = 100, IsNullable = true)]
  37. public string? CreatedBy { get; set; }
  38. }