DocSpace-buildtools/common/services/ASC.Data.Backup/EF/BackupSchedule.cs
2020-06-23 13:48:36 +03:00

41 lines
1.0 KiB
C#

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using ASC.Core.Common.EF;
using ASC.Data.Backup.Contracts;
namespace ASC.Data.Backup.EF.Model
{
[Table("backup_schedule")]
public class BackupSchedule : BaseEntity
{
[Key]
[Column("tenant_id")]
public int TenantId { get; set; }
[Column("backup_mail")]
public bool BackupMail { get; set; }
public string Cron { get; set; }
[Column("backups_stored")]
public int BackupsStored { get; set; }
[Column("storage_type")]
public BackupStorageType StorageType { get; set; }
[Column("storage_base_path")]
public string StorageBasePath { get; set; }
[Column("last_backup_time")]
public DateTime LastBackupTime { get; set; }
[Column("storage_params")]
public string StorageParams { get; set; }
public override object[] GetKeys() => new object[] { TenantId };
}
}