using System; namespace AyaNova.Models { public class GlobalOpsBackupSettings { public long Id { get; set; }//this is always 1 as there is only ever one single global Ops object public uint Concurrency { get; set; } public bool Active { get; set; } public DateTime BackupTime { get; set; } public int BackupSetsToKeep { get; set; } public bool BackupAttachments { get; set; } public GlobalOpsBackupSettings() { DateTime utcNow = DateTime.UtcNow; Id = 1; BackupTime = new DateTime(utcNow.Year, utcNow.Month, utcNow.Day, 23, 30, 0, DateTimeKind.Local).ToUniversalTime(); BackupSetsToKeep = 1; BackupAttachments = true; Active = true; } } }