Files
douyin/model/entity/MediaStorageHealth.cs
T

26 lines
986 B
C#

using dy.net.model.dto;
using SqlSugar;
using MediaStorageType = dy.net.model.dto.StorageType;
namespace dy.net.model.entity
{
[SugarTable(TableName = "media_storage_health")]
public class MediaStorageHealth
{
[SugarColumn(IsPrimaryKey = true, Length = 50)]
public string Id { get; set; } = "default";
public MediaStorageHealthStatus Status { get; set; }
public MediaStorageType StorageType { get; set; }
[SugarColumn(Length = 128, IsNullable = true)]
public string ConfigurationFingerprint { get; set; }
public int ConsecutiveFailures { get; set; }
[SugarColumn(ColumnDataType = "TEXT", Length = -1, IsNullable = true)]
public string LastError { get; set; }
[SugarColumn(IsNullable = true)]
public DateTime? LastFailedAt { get; set; }
[SugarColumn(IsNullable = true)]
public DateTime? LastProbedAt { get; set; }
public DateTime UpdatedAt { get; set; }
}
}