diff --git a/BTCPayServer.Data/Migrations/20170913143004_Init.Designer.cs b/BTCPayServer.Data/Migrations/20170913143004_Init.Designer.cs
deleted file mode 100644
index 9f74a3158..000000000
--- a/BTCPayServer.Data/Migrations/20170913143004_Init.Designer.cs
+++ /dev/null
@@ -1,356 +0,0 @@
-//
-using BTCPayServer.Data;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage;
-using Microsoft.EntityFrameworkCore.Storage.Internal;
-using System;
-
-namespace BTCPayServer.Migrations
-{
- [DbContext(typeof(ApplicationDbContext))]
- [Migration("20170913143004_Init")]
- partial class Init
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "2.0.0-rtm-26452");
-
- modelBuilder.Entity("BTCPayServer.Data.InvoiceData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("Blob");
-
- b.Property("Created");
-
- b.Property("CustomerEmail");
-
- b.Property("ExceptionStatus");
-
- b.Property("ItemCode");
-
- b.Property("OrderId");
-
- b.Property("Status");
-
- b.Property("StoreDataId");
-
- b.HasKey("Id");
-
- b.HasIndex("StoreDataId");
-
- b.ToTable("Invoices");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.PaymentData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("Blob");
-
- b.Property("InvoiceDataId");
-
- b.HasKey("Id");
-
- b.HasIndex("InvoiceDataId");
-
- b.ToTable("Payments");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.RefundAddressesData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("Blob");
-
- b.Property("InvoiceDataId");
-
- b.HasKey("Id");
-
- b.HasIndex("InvoiceDataId");
-
- b.ToTable("RefundAddresses");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.StoreData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("DerivationStrategy");
-
- b.Property("SpeedPolicy");
-
- b.Property("StoreCertificate");
-
- b.Property("StoreName");
-
- b.Property("StoreWebsite");
-
- b.HasKey("Id");
-
- b.ToTable("Stores");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.UserStore", b =>
- {
- b.Property("ApplicationUserId");
-
- b.Property("StoreDataId");
-
- b.Property("Role");
-
- b.HasKey("ApplicationUserId", "StoreDataId");
-
- b.HasIndex("StoreDataId");
-
- b.ToTable("UserStore");
- });
-
- modelBuilder.Entity("BTCPayServer.Models.ApplicationUser", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("AccessFailedCount");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken();
-
- b.Property("Email")
- .HasMaxLength(256);
-
- b.Property("EmailConfirmed");
-
- b.Property("LockoutEnabled");
-
- b.Property("LockoutEnd");
-
- b.Property("NormalizedEmail")
- .HasMaxLength(256);
-
- b.Property("NormalizedUserName")
- .HasMaxLength(256);
-
- b.Property("PasswordHash");
-
- b.Property("PhoneNumber");
-
- b.Property("PhoneNumberConfirmed");
-
- b.Property("SecurityStamp");
-
- b.Property("TwoFactorEnabled");
-
- b.Property("UserName")
- .HasMaxLength(256);
-
- b.HasKey("Id");
-
- b.HasIndex("NormalizedEmail")
- .HasName("EmailIndex");
-
- b.HasIndex("NormalizedUserName")
- .IsUnique()
- .HasName("UserNameIndex");
-
- b.ToTable("AspNetUsers");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken();
-
- b.Property("Name")
- .HasMaxLength(256);
-
- b.Property("NormalizedName")
- .HasMaxLength(256);
-
- b.HasKey("Id");
-
- b.HasIndex("NormalizedName")
- .IsUnique()
- .HasName("RoleNameIndex");
-
- b.ToTable("AspNetRoles");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("ClaimType");
-
- b.Property("ClaimValue");
-
- b.Property("RoleId")
- .IsRequired();
-
- b.HasKey("Id");
-
- b.HasIndex("RoleId");
-
- b.ToTable("AspNetRoleClaims");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("ClaimType");
-
- b.Property("ClaimValue");
-
- b.Property("UserId")
- .IsRequired();
-
- b.HasKey("Id");
-
- b.HasIndex("UserId");
-
- b.ToTable("AspNetUserClaims");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b =>
- {
- b.Property("LoginProvider");
-
- b.Property("ProviderKey");
-
- b.Property("ProviderDisplayName");
-
- b.Property("UserId")
- .IsRequired();
-
- b.HasKey("LoginProvider", "ProviderKey");
-
- b.HasIndex("UserId");
-
- b.ToTable("AspNetUserLogins");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b =>
- {
- b.Property("UserId");
-
- b.Property("RoleId");
-
- b.HasKey("UserId", "RoleId");
-
- b.HasIndex("RoleId");
-
- b.ToTable("AspNetUserRoles");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b =>
- {
- b.Property("UserId");
-
- b.Property("LoginProvider");
-
- b.Property("Name");
-
- b.Property("Value");
-
- b.HasKey("UserId", "LoginProvider", "Name");
-
- b.ToTable("AspNetUserTokens");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.InvoiceData", b =>
- {
- b.HasOne("BTCPayServer.Data.StoreData", "StoreData")
- .WithMany()
- .HasForeignKey("StoreDataId");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.PaymentData", b =>
- {
- b.HasOne("BTCPayServer.Data.InvoiceData", "InvoiceData")
- .WithMany("Payments")
- .HasForeignKey("InvoiceDataId");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.RefundAddressesData", b =>
- {
- b.HasOne("BTCPayServer.Data.InvoiceData", "InvoiceData")
- .WithMany("RefundAddresses")
- .HasForeignKey("InvoiceDataId");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.UserStore", b =>
- {
- b.HasOne("BTCPayServer.Models.ApplicationUser", "ApplicationUser")
- .WithMany("UserStores")
- .HasForeignKey("ApplicationUserId")
- .OnDelete(DeleteBehavior.Cascade);
-
- b.HasOne("BTCPayServer.Data.StoreData", "StoreData")
- .WithMany("UserStores")
- .HasForeignKey("StoreDataId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b =>
- {
- b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
- .WithMany()
- .HasForeignKey("RoleId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b =>
- {
- b.HasOne("BTCPayServer.Models.ApplicationUser")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b =>
- {
- b.HasOne("BTCPayServer.Models.ApplicationUser")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b =>
- {
- b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
- .WithMany()
- .HasForeignKey("RoleId")
- .OnDelete(DeleteBehavior.Cascade);
-
- b.HasOne("BTCPayServer.Models.ApplicationUser")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b =>
- {
- b.HasOne("BTCPayServer.Models.ApplicationUser")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/BTCPayServer.Data/Migrations/20170913143004_Init.cs b/BTCPayServer.Data/Migrations/20170913143004_Init.cs
index 149900b1f..cb85dd7d4 100644
--- a/BTCPayServer.Data/Migrations/20170913143004_Init.cs
+++ b/BTCPayServer.Data/Migrations/20170913143004_Init.cs
@@ -1,9 +1,13 @@
-using Microsoft.EntityFrameworkCore.Migrations;
+using BTCPayServer.Data;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
using System;
using System.Collections.Generic;
namespace BTCPayServer.Migrations
{
+ [DbContext(typeof(ApplicationDbContext))]
+ [Migration("20170913143004_Init")]
public partial class Init : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
diff --git a/BTCPayServer.Data/Migrations/20170926073744_Settings.Designer.cs b/BTCPayServer.Data/Migrations/20170926073744_Settings.Designer.cs
deleted file mode 100644
index 396549776..000000000
--- a/BTCPayServer.Data/Migrations/20170926073744_Settings.Designer.cs
+++ /dev/null
@@ -1,368 +0,0 @@
-//
-using BTCPayServer.Data;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage;
-using Microsoft.EntityFrameworkCore.Storage.Internal;
-using System;
-
-namespace BTCPayServer.Migrations
-{
- [DbContext(typeof(ApplicationDbContext))]
- [Migration("20170926073744_Settings")]
- partial class Settings
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "2.0.0-rtm-26452");
-
- modelBuilder.Entity("BTCPayServer.Data.InvoiceData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("Blob");
-
- b.Property("Created");
-
- b.Property("CustomerEmail");
-
- b.Property("ExceptionStatus");
-
- b.Property("ItemCode");
-
- b.Property("OrderId");
-
- b.Property("Status");
-
- b.Property("StoreDataId");
-
- b.HasKey("Id");
-
- b.HasIndex("StoreDataId");
-
- b.ToTable("Invoices");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.PaymentData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("Blob");
-
- b.Property("InvoiceDataId");
-
- b.HasKey("Id");
-
- b.HasIndex("InvoiceDataId");
-
- b.ToTable("Payments");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.RefundAddressesData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("Blob");
-
- b.Property("InvoiceDataId");
-
- b.HasKey("Id");
-
- b.HasIndex("InvoiceDataId");
-
- b.ToTable("RefundAddresses");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.SettingData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("Value");
-
- b.HasKey("Id");
-
- b.ToTable("Settings");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.StoreData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("DerivationStrategy");
-
- b.Property("SpeedPolicy");
-
- b.Property("StoreCertificate");
-
- b.Property("StoreName");
-
- b.Property("StoreWebsite");
-
- b.HasKey("Id");
-
- b.ToTable("Stores");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.UserStore", b =>
- {
- b.Property("ApplicationUserId");
-
- b.Property("StoreDataId");
-
- b.Property("Role");
-
- b.HasKey("ApplicationUserId", "StoreDataId");
-
- b.HasIndex("StoreDataId");
-
- b.ToTable("UserStore");
- });
-
- modelBuilder.Entity("BTCPayServer.Models.ApplicationUser", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("AccessFailedCount");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken();
-
- b.Property("Email")
- .HasMaxLength(256);
-
- b.Property("EmailConfirmed");
-
- b.Property("LockoutEnabled");
-
- b.Property("LockoutEnd");
-
- b.Property("NormalizedEmail")
- .HasMaxLength(256);
-
- b.Property("NormalizedUserName")
- .HasMaxLength(256);
-
- b.Property("PasswordHash");
-
- b.Property("PhoneNumber");
-
- b.Property("PhoneNumberConfirmed");
-
- b.Property("SecurityStamp");
-
- b.Property("TwoFactorEnabled");
-
- b.Property("UserName")
- .HasMaxLength(256);
-
- b.HasKey("Id");
-
- b.HasIndex("NormalizedEmail")
- .HasName("EmailIndex");
-
- b.HasIndex("NormalizedUserName")
- .IsUnique()
- .HasName("UserNameIndex");
-
- b.ToTable("AspNetUsers");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken();
-
- b.Property("Name")
- .HasMaxLength(256);
-
- b.Property("NormalizedName")
- .HasMaxLength(256);
-
- b.HasKey("Id");
-
- b.HasIndex("NormalizedName")
- .IsUnique()
- .HasName("RoleNameIndex");
-
- b.ToTable("AspNetRoles");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("ClaimType");
-
- b.Property("ClaimValue");
-
- b.Property("RoleId")
- .IsRequired();
-
- b.HasKey("Id");
-
- b.HasIndex("RoleId");
-
- b.ToTable("AspNetRoleClaims");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("ClaimType");
-
- b.Property("ClaimValue");
-
- b.Property("UserId")
- .IsRequired();
-
- b.HasKey("Id");
-
- b.HasIndex("UserId");
-
- b.ToTable("AspNetUserClaims");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b =>
- {
- b.Property("LoginProvider");
-
- b.Property("ProviderKey");
-
- b.Property("ProviderDisplayName");
-
- b.Property("UserId")
- .IsRequired();
-
- b.HasKey("LoginProvider", "ProviderKey");
-
- b.HasIndex("UserId");
-
- b.ToTable("AspNetUserLogins");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b =>
- {
- b.Property("UserId");
-
- b.Property("RoleId");
-
- b.HasKey("UserId", "RoleId");
-
- b.HasIndex("RoleId");
-
- b.ToTable("AspNetUserRoles");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b =>
- {
- b.Property("UserId");
-
- b.Property("LoginProvider");
-
- b.Property("Name");
-
- b.Property("Value");
-
- b.HasKey("UserId", "LoginProvider", "Name");
-
- b.ToTable("AspNetUserTokens");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.InvoiceData", b =>
- {
- b.HasOne("BTCPayServer.Data.StoreData", "StoreData")
- .WithMany()
- .HasForeignKey("StoreDataId");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.PaymentData", b =>
- {
- b.HasOne("BTCPayServer.Data.InvoiceData", "InvoiceData")
- .WithMany("Payments")
- .HasForeignKey("InvoiceDataId");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.RefundAddressesData", b =>
- {
- b.HasOne("BTCPayServer.Data.InvoiceData", "InvoiceData")
- .WithMany("RefundAddresses")
- .HasForeignKey("InvoiceDataId");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.UserStore", b =>
- {
- b.HasOne("BTCPayServer.Models.ApplicationUser", "ApplicationUser")
- .WithMany("UserStores")
- .HasForeignKey("ApplicationUserId")
- .OnDelete(DeleteBehavior.Cascade);
-
- b.HasOne("BTCPayServer.Data.StoreData", "StoreData")
- .WithMany("UserStores")
- .HasForeignKey("StoreDataId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b =>
- {
- b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
- .WithMany()
- .HasForeignKey("RoleId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b =>
- {
- b.HasOne("BTCPayServer.Models.ApplicationUser")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b =>
- {
- b.HasOne("BTCPayServer.Models.ApplicationUser")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b =>
- {
- b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
- .WithMany()
- .HasForeignKey("RoleId")
- .OnDelete(DeleteBehavior.Cascade);
-
- b.HasOne("BTCPayServer.Models.ApplicationUser")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b =>
- {
- b.HasOne("BTCPayServer.Models.ApplicationUser")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/BTCPayServer.Data/Migrations/20170926073744_Settings.cs b/BTCPayServer.Data/Migrations/20170926073744_Settings.cs
index efca94c61..11d74400d 100644
--- a/BTCPayServer.Data/Migrations/20170926073744_Settings.cs
+++ b/BTCPayServer.Data/Migrations/20170926073744_Settings.cs
@@ -1,9 +1,13 @@
-using Microsoft.EntityFrameworkCore.Migrations;
+using BTCPayServer.Data;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
using System;
using System.Collections.Generic;
namespace BTCPayServer.Migrations
{
+ [DbContext(typeof(ApplicationDbContext))]
+ [Migration("20170926073744_Settings")]
public partial class Settings : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
diff --git a/BTCPayServer.Data/Migrations/20170926084408_RequiresEmailConfirmation.Designer.cs b/BTCPayServer.Data/Migrations/20170926084408_RequiresEmailConfirmation.Designer.cs
deleted file mode 100644
index 02ef5f18a..000000000
--- a/BTCPayServer.Data/Migrations/20170926084408_RequiresEmailConfirmation.Designer.cs
+++ /dev/null
@@ -1,370 +0,0 @@
-//
-using BTCPayServer.Data;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage;
-using Microsoft.EntityFrameworkCore.Storage.Internal;
-using System;
-
-namespace BTCPayServer.Migrations
-{
- [DbContext(typeof(ApplicationDbContext))]
- [Migration("20170926084408_RequiresEmailConfirmation")]
- partial class RequiresEmailConfirmation
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "2.0.0-rtm-26452");
-
- modelBuilder.Entity("BTCPayServer.Data.InvoiceData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("Blob");
-
- b.Property("Created");
-
- b.Property("CustomerEmail");
-
- b.Property("ExceptionStatus");
-
- b.Property("ItemCode");
-
- b.Property("OrderId");
-
- b.Property("Status");
-
- b.Property("StoreDataId");
-
- b.HasKey("Id");
-
- b.HasIndex("StoreDataId");
-
- b.ToTable("Invoices");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.PaymentData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("Blob");
-
- b.Property("InvoiceDataId");
-
- b.HasKey("Id");
-
- b.HasIndex("InvoiceDataId");
-
- b.ToTable("Payments");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.RefundAddressesData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("Blob");
-
- b.Property("InvoiceDataId");
-
- b.HasKey("Id");
-
- b.HasIndex("InvoiceDataId");
-
- b.ToTable("RefundAddresses");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.SettingData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("Value");
-
- b.HasKey("Id");
-
- b.ToTable("Settings");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.StoreData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("DerivationStrategy");
-
- b.Property("SpeedPolicy");
-
- b.Property("StoreCertificate");
-
- b.Property("StoreName");
-
- b.Property("StoreWebsite");
-
- b.HasKey("Id");
-
- b.ToTable("Stores");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.UserStore", b =>
- {
- b.Property("ApplicationUserId");
-
- b.Property("StoreDataId");
-
- b.Property("Role");
-
- b.HasKey("ApplicationUserId", "StoreDataId");
-
- b.HasIndex("StoreDataId");
-
- b.ToTable("UserStore");
- });
-
- modelBuilder.Entity("BTCPayServer.Models.ApplicationUser", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("AccessFailedCount");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken();
-
- b.Property("Email")
- .HasMaxLength(256);
-
- b.Property("EmailConfirmed");
-
- b.Property("LockoutEnabled");
-
- b.Property("LockoutEnd");
-
- b.Property("NormalizedEmail")
- .HasMaxLength(256);
-
- b.Property("NormalizedUserName")
- .HasMaxLength(256);
-
- b.Property("PasswordHash");
-
- b.Property("PhoneNumber");
-
- b.Property("PhoneNumberConfirmed");
-
- b.Property("RequiresEmailConfirmation");
-
- b.Property("SecurityStamp");
-
- b.Property("TwoFactorEnabled");
-
- b.Property("UserName")
- .HasMaxLength(256);
-
- b.HasKey("Id");
-
- b.HasIndex("NormalizedEmail")
- .HasName("EmailIndex");
-
- b.HasIndex("NormalizedUserName")
- .IsUnique()
- .HasName("UserNameIndex");
-
- b.ToTable("AspNetUsers");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken();
-
- b.Property("Name")
- .HasMaxLength(256);
-
- b.Property("NormalizedName")
- .HasMaxLength(256);
-
- b.HasKey("Id");
-
- b.HasIndex("NormalizedName")
- .IsUnique()
- .HasName("RoleNameIndex");
-
- b.ToTable("AspNetRoles");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("ClaimType");
-
- b.Property("ClaimValue");
-
- b.Property("RoleId")
- .IsRequired();
-
- b.HasKey("Id");
-
- b.HasIndex("RoleId");
-
- b.ToTable("AspNetRoleClaims");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("ClaimType");
-
- b.Property("ClaimValue");
-
- b.Property("UserId")
- .IsRequired();
-
- b.HasKey("Id");
-
- b.HasIndex("UserId");
-
- b.ToTable("AspNetUserClaims");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b =>
- {
- b.Property("LoginProvider");
-
- b.Property("ProviderKey");
-
- b.Property("ProviderDisplayName");
-
- b.Property("UserId")
- .IsRequired();
-
- b.HasKey("LoginProvider", "ProviderKey");
-
- b.HasIndex("UserId");
-
- b.ToTable("AspNetUserLogins");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b =>
- {
- b.Property("UserId");
-
- b.Property("RoleId");
-
- b.HasKey("UserId", "RoleId");
-
- b.HasIndex("RoleId");
-
- b.ToTable("AspNetUserRoles");
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b =>
- {
- b.Property("UserId");
-
- b.Property("LoginProvider");
-
- b.Property("Name");
-
- b.Property("Value");
-
- b.HasKey("UserId", "LoginProvider", "Name");
-
- b.ToTable("AspNetUserTokens");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.InvoiceData", b =>
- {
- b.HasOne("BTCPayServer.Data.StoreData", "StoreData")
- .WithMany()
- .HasForeignKey("StoreDataId");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.PaymentData", b =>
- {
- b.HasOne("BTCPayServer.Data.InvoiceData", "InvoiceData")
- .WithMany("Payments")
- .HasForeignKey("InvoiceDataId");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.RefundAddressesData", b =>
- {
- b.HasOne("BTCPayServer.Data.InvoiceData", "InvoiceData")
- .WithMany("RefundAddresses")
- .HasForeignKey("InvoiceDataId");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.UserStore", b =>
- {
- b.HasOne("BTCPayServer.Models.ApplicationUser", "ApplicationUser")
- .WithMany("UserStores")
- .HasForeignKey("ApplicationUserId")
- .OnDelete(DeleteBehavior.Cascade);
-
- b.HasOne("BTCPayServer.Data.StoreData", "StoreData")
- .WithMany("UserStores")
- .HasForeignKey("StoreDataId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim", b =>
- {
- b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
- .WithMany()
- .HasForeignKey("RoleId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim", b =>
- {
- b.HasOne("BTCPayServer.Models.ApplicationUser")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin", b =>
- {
- b.HasOne("BTCPayServer.Models.ApplicationUser")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole", b =>
- {
- b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
- .WithMany()
- .HasForeignKey("RoleId")
- .OnDelete(DeleteBehavior.Cascade);
-
- b.HasOne("BTCPayServer.Models.ApplicationUser")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-
- modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken", b =>
- {
- b.HasOne("BTCPayServer.Models.ApplicationUser")
- .WithMany()
- .HasForeignKey("UserId")
- .OnDelete(DeleteBehavior.Cascade);
- });
-#pragma warning restore 612, 618
- }
- }
-}
diff --git a/BTCPayServer.Data/Migrations/20170926084408_RequiresEmailConfirmation.cs b/BTCPayServer.Data/Migrations/20170926084408_RequiresEmailConfirmation.cs
index 48f2cfe23..c7964ee75 100644
--- a/BTCPayServer.Data/Migrations/20170926084408_RequiresEmailConfirmation.cs
+++ b/BTCPayServer.Data/Migrations/20170926084408_RequiresEmailConfirmation.cs
@@ -1,9 +1,13 @@
-using Microsoft.EntityFrameworkCore.Migrations;
+using BTCPayServer.Data;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Migrations;
using System;
using System.Collections.Generic;
namespace BTCPayServer.Migrations
{
+ [DbContext(typeof(ApplicationDbContext))]
+ [Migration("20170926084408_RequiresEmailConfirmation")]
public partial class RequiresEmailConfirmation : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
diff --git a/BTCPayServer.Data/Migrations/20171006013443_AddressMapping.Designer.cs b/BTCPayServer.Data/Migrations/20171006013443_AddressMapping.Designer.cs
deleted file mode 100644
index 66dd8b298..000000000
--- a/BTCPayServer.Data/Migrations/20171006013443_AddressMapping.Designer.cs
+++ /dev/null
@@ -1,391 +0,0 @@
-//
-using BTCPayServer.Data;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Infrastructure;
-using Microsoft.EntityFrameworkCore.Metadata;
-using Microsoft.EntityFrameworkCore.Migrations;
-using Microsoft.EntityFrameworkCore.Storage;
-using Microsoft.EntityFrameworkCore.Storage.Internal;
-using System;
-
-namespace BTCPayServer.Migrations
-{
- [DbContext(typeof(ApplicationDbContext))]
- [Migration("20171006013443_AddressMapping")]
- partial class AddressMapping
- {
- protected override void BuildTargetModel(ModelBuilder modelBuilder)
- {
-#pragma warning disable 612, 618
- modelBuilder
- .HasAnnotation("ProductVersion", "2.0.0-rtm-26452");
-
- modelBuilder.Entity("BTCPayServer.Data.AddressInvoiceData", b =>
- {
- b.Property("Address")
- .ValueGeneratedOnAdd();
-
- b.Property("InvoiceDataId");
-
- b.HasKey("Address");
-
- b.HasIndex("InvoiceDataId");
-
- b.ToTable("AddressInvoices");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.InvoiceData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("Blob");
-
- b.Property("Created");
-
- b.Property("CustomerEmail");
-
- b.Property("ExceptionStatus");
-
- b.Property("ItemCode");
-
- b.Property("OrderId");
-
- b.Property("Status");
-
- b.Property("StoreDataId");
-
- b.HasKey("Id");
-
- b.HasIndex("StoreDataId");
-
- b.ToTable("Invoices");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.PaymentData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("Blob");
-
- b.Property("InvoiceDataId");
-
- b.HasKey("Id");
-
- b.HasIndex("InvoiceDataId");
-
- b.ToTable("Payments");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.RefundAddressesData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("Blob");
-
- b.Property("InvoiceDataId");
-
- b.HasKey("Id");
-
- b.HasIndex("InvoiceDataId");
-
- b.ToTable("RefundAddresses");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.SettingData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("Value");
-
- b.HasKey("Id");
-
- b.ToTable("Settings");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.StoreData", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("DerivationStrategy");
-
- b.Property("SpeedPolicy");
-
- b.Property("StoreCertificate");
-
- b.Property("StoreName");
-
- b.Property("StoreWebsite");
-
- b.HasKey("Id");
-
- b.ToTable("Stores");
- });
-
- modelBuilder.Entity("BTCPayServer.Data.UserStore", b =>
- {
- b.Property("ApplicationUserId");
-
- b.Property("StoreDataId");
-
- b.Property("Role");
-
- b.HasKey("ApplicationUserId", "StoreDataId");
-
- b.HasIndex("StoreDataId");
-
- b.ToTable("UserStore");
- });
-
- modelBuilder.Entity("BTCPayServer.Models.ApplicationUser", b =>
- {
- b.Property("Id")
- .ValueGeneratedOnAdd();
-
- b.Property("AccessFailedCount");
-
- b.Property("ConcurrencyStamp")
- .IsConcurrencyToken();
-
- b.Property("Email")
- .HasMaxLength(256);
-
- b.Property("EmailConfirmed");
-
- b.Property("LockoutEnabled");
-
- b.Property("LockoutEnd");
-
- b.Property("NormalizedEmail")
- .HasMaxLength(256);
-
- b.Property