This commit is contained in:
21
server/AyaNova/biz/NotifyMailSecurity.cs
Normal file
21
server/AyaNova/biz/NotifyMailSecurity.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
namespace AyaNova.Biz
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// All AyaNova smtp notification connection security
|
||||
///
|
||||
/// </summary>
|
||||
public enum NotifyMailSecurity : int
|
||||
{
|
||||
|
||||
None = 0,
|
||||
StartTls = 1,
|
||||
SSLTLS=3
|
||||
|
||||
//NEW ITEMS REQUIRE translation KEYS
|
||||
|
||||
}
|
||||
|
||||
|
||||
}//eons
|
||||
22
server/AyaNova/models/GlobalOpsNotificationSettings.cs
Normal file
22
server/AyaNova/models/GlobalOpsNotificationSettings.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using AyaNova.Biz;
|
||||
namespace AyaNova.Models
|
||||
{
|
||||
|
||||
public class GlobalOpsNotificationSettings
|
||||
{
|
||||
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 string SmtpServerAddress { get; set; }
|
||||
public string SmtpAccount { get; set; }
|
||||
public string SmtpPassword { get; set; }
|
||||
public NotifyMailSecurity ConnectionSecurity { get; set; }
|
||||
public int SmtpServerPort { get; set; }
|
||||
public string NotifyFromAddress { get; set; }
|
||||
public GlobalOpsNotificationSettings()
|
||||
{
|
||||
Active = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -236,6 +236,9 @@ namespace AyaNova.Util
|
||||
await ExecQueryAsync("CREATE TABLE aglobalopsbackupsettings (id integer NOT NULL PRIMARY KEY, active bool not null, " +
|
||||
"backuptime timestamp, backupsetstokeep int, backupattachments bool)");
|
||||
|
||||
await ExecQueryAsync("CREATE TABLE aglobalopsnotificationsettings (id integer NOT NULL PRIMARY KEY, active bool not null, " +
|
||||
"backuptime timestamp, backupsetstokeep int, backupattachments bool)");
|
||||
|
||||
//create aevent biz event log table
|
||||
await ExecQueryAsync("CREATE TABLE aevent (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, created timestamp not null, userid bigint not null," +
|
||||
"ayid bigint not null, ayatype integer not null, ayevent integer not null, textra varchar(255))");
|
||||
|
||||
Reference in New Issue
Block a user