DocSpace-client/common/ASC.Data.Backup.Core/EF/BackupRecord.cs

39 lines
904 B
C#
Raw Normal View History

namespace ASC.Data.Backup.EF.Model;
[Table("backup_backup")]
public class BackupRecord : BaseEntity
2020-05-20 15:14:44 +00:00
{
public Guid Id { get; set; }
2020-05-29 14:48:27 +00:00
[Column("tenant_id")]
public int TenantId { get; set; }
2020-05-29 14:48:27 +00:00
[Column("is_scheduled")]
public bool IsScheduled { get; set; }
public string Name { get; set; }
public string Hash { get; set; }
2020-05-29 14:48:27 +00:00
[Column("storage_type")]
public BackupStorageType StorageType { get; set; }
2020-05-29 14:48:27 +00:00
[Column("storage_base_path")]
public string StorageBasePath { get; set; }
2020-05-29 14:48:27 +00:00
[Column("storage_path")]
public string StoragePath { get; set; }
2020-05-29 14:48:27 +00:00
[Column("created_on")]
public DateTime CreatedOn { get; set; }
2020-05-29 14:48:27 +00:00
[Column("expires_on")]
public DateTime ExpiresOn { get; set; }
2020-05-20 15:14:44 +00:00
[Column("storage_params")]
public string StorageParams { get; set; }
2020-06-10 12:35:10 +00:00
public override object[] GetKeys()
{
return new object[] { Id };
2020-05-20 15:14:44 +00:00
}
}