This commit is contained in:
23
server/models/GlobalOpsBackupSettings.cs
Normal file
23
server/models/GlobalOpsBackupSettings.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
namespace Sockeye.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, 59, 0, DateTimeKind.Local).ToUniversalTime();
|
||||
BackupSetsToKeep = 1;
|
||||
Active = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user