24 lines
758 B
C#
24 lines
758 B
C#
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, 59, 0, DateTimeKind.Local).ToUniversalTime();
|
|
BackupSetsToKeep = 1;
|
|
Active = true;
|
|
}
|
|
}
|
|
}
|