This commit is contained in:
2020-05-19 17:23:19 +00:00
parent dcd312b119
commit dd6fb84bd4
3 changed files with 18 additions and 9 deletions

View File

@@ -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;
}
}
}