Files
raven/server/AyaNova/models/GlobalOpsSettings.cs
2020-05-19 21:45:34 +00:00

27 lines
842 B
C#

using System;
namespace AyaNova.Models
{
public class GlobalOpsSettings
{
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 DateTime BackupTime { get; set; }
public DateTime LastBackup { get; set; }
public int BackupSetsToKeep { get; set; }
public bool BackupAttachments { get; set; }
public GlobalOpsSettings()
{
Id = 1;//always 1
// BackupTime = new DateTime(2020, 5, 19, 23, 59, 0, DateTimeKind.Utc);//date doesn't matter it only uses hour
//testing only, above is the correct one
BackupTime = DateTime.UtcNow.AddMinutes(-10);
LastBackup = DateTime.MinValue;
BackupSetsToKeep = 3;
}
}
}