DocSpace-buildtools/common/services/ASC.Data.Backup/EF/Model/BackupRecord.cs

44 lines
1.1 KiB
C#
Raw Normal View History

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