AdoS8DataSource.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. namespace Admin.NET.Plugin.AiDOP.Entity.S8;
  2. [SugarTable("ado_s8_data_source", "S8 数据源")]
  3. public class AdoS8DataSource
  4. {
  5. [SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true, ColumnDataType = "bigint")]
  6. public long Id { get; set; }
  7. [SugarColumn(ColumnName = "tenant_id", ColumnDataType = "bigint")]
  8. public long TenantId { get; set; }
  9. [SugarColumn(ColumnName = "factory_id", ColumnDataType = "bigint")]
  10. public long FactoryId { get; set; }
  11. [SugarColumn(ColumnName = "data_source_code", Length = 64)]
  12. public string DataSourceCode { get; set; } = string.Empty;
  13. [SugarColumn(ColumnName = "type", Length = 64)]
  14. public string Type { get; set; } = string.Empty;
  15. [SugarColumn(ColumnName = "endpoint", Length = 1024, IsNullable = true)]
  16. public string? Endpoint { get; set; }
  17. [SugarColumn(ColumnName = "auth_type", Length = 64, IsNullable = true)]
  18. public string? AuthType { get; set; }
  19. [SugarColumn(ColumnName = "enabled", ColumnDataType = "boolean")]
  20. public bool Enabled { get; set; }
  21. [SugarColumn(ColumnName = "last_check_at", IsNullable = true)]
  22. public DateTime? LastCheckAt { get; set; }
  23. [SugarColumn(ColumnName = "last_check_status", Length = 128, IsNullable = true)]
  24. public string? LastCheckStatus { get; set; }
  25. [SugarColumn(ColumnName = "created_at")]
  26. public DateTime CreatedAt { get; set; } = DateTime.Now;
  27. [SugarColumn(ColumnName = "updated_at", IsNullable = true)]
  28. public DateTime? UpdatedAt { get; set; }
  29. }