AdoSmartOpsKpiTargetImportBatch.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. namespace Admin.NET.Plugin.AiDOP.Entity;
  2. [SugarTable("ado_smart_ops_kpi_target_import_batch", "KPI目标Excel导入批次")]
  3. public class AdoSmartOpsKpiTargetImportBatch
  4. {
  5. [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
  6. public long Id { get; set; }
  7. [SugarColumn(ColumnName = "batch_no", Length = 64)]
  8. public string BatchNo { get; set; } = string.Empty;
  9. [SugarColumn(ColumnName = "tenant_id")]
  10. public long TenantId { get; set; }
  11. [SugarColumn(ColumnName = "factory_id")]
  12. public long FactoryId { get; set; }
  13. [SugarColumn(ColumnName = "file_name", Length = 255)]
  14. public string FileName { get; set; } = string.Empty;
  15. [SugarColumn(ColumnName = "file_sha256", Length = 64)]
  16. public string FileSha256 { get; set; } = string.Empty;
  17. [SugarColumn(ColumnName = "status", Length = 32)]
  18. public string Status { get; set; } = "VALIDATING";
  19. [SugarColumn(ColumnName = "total_rows")]
  20. public int TotalRows { get; set; }
  21. [SugarColumn(ColumnName = "valid_rows")]
  22. public int ValidRows { get; set; }
  23. [SugarColumn(ColumnName = "error_rows")]
  24. public int ErrorRows { get; set; }
  25. [SugarColumn(ColumnName = "payload_json", ColumnDataType = "mediumtext", IsNullable = true)]
  26. public string? PayloadJson { get; set; }
  27. [SugarColumn(ColumnName = "error_json", ColumnDataType = "mediumtext", IsNullable = true)]
  28. public string? ErrorJson { get; set; }
  29. [SugarColumn(ColumnName = "created_by", Length = 100, IsNullable = true)]
  30. public string? CreatedBy { get; set; }
  31. [SugarColumn(ColumnName = "create_time")]
  32. public DateTime CreateTime { get; set; }
  33. [SugarColumn(ColumnName = "commit_time", IsNullable = true)]
  34. public DateTime? CommitTime { get; set; }
  35. }