Backup
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using Newtonsoft.Json;
|
||||
using System;
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
|
||||
@@ -8,15 +7,18 @@ namespace AyaNova.Models
|
||||
public long Id { get; set; }//this is always 1 as there is only ever one single global Ops object
|
||||
public uint Concurrency { get; set; }
|
||||
|
||||
//Global settings
|
||||
//Picklist and other searches override the normal case insensitive value
|
||||
//this is precautionarily added for non latinate languages where it could be an issue
|
||||
public bool SearchCaseSensitiveOnly {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
|
||||
SearchCaseSensitiveOnly = false;
|
||||
{
|
||||
Id = 1;//always 1
|
||||
BackupTime = new DateTime(2020, 5, 19, 23, 59, 0, DateTimeKind.Utc);//date doesn't matter it only uses hour
|
||||
LastBackup = DateTime.MinValue;
|
||||
BackupSetsToKeep = 3;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user