1
0
mirror of https://github.com/bitwarden/server synced 2025-12-17 16:53:23 +00:00

Added Sql project with database schema. Added SqlServer repositories for Site, Folder, and User (Cipher still TODO). Switched DI in Startup to SqlServer repos.

This commit is contained in:
Kyle Spearrin
2016-02-06 01:18:25 -05:00
parent 78fcad8c69
commit 13f85bf2f1
37 changed files with 935 additions and 11 deletions

View File

@@ -5,9 +5,10 @@ namespace Bit.Core
{
public class GlobalSettings
{
public string SiteName { get; set; }
public string BaseVaultUri { get; set; }
public virtual string SiteName { get; set; }
public virtual string BaseVaultUri { get; set; }
public virtual DocumentDBSettings DocumentDB { get; set; } = new DocumentDBSettings();
public virtual SqlServerSettings SqlServer { get; set; } = new SqlServerSettings();
public virtual MailSettings Mail { get; set; } = new MailSettings();
public class DocumentDBSettings
@@ -19,6 +20,11 @@ namespace Bit.Core
public int NumberOfCollections { get; set; }
}
public class SqlServerSettings
{
public string ConnectionString { get; set; }
}
public class MailSettings
{
public string APIKey { get; set; }