btcpayserver/BTCPayServer.Data/Migrations/ApplicationDbContextModelSnapshot.cs

884 lines
26 KiB
C#
Raw Normal View History

2017-09-13 15:47:34 +09:00
// <auto-generated />
2018-07-19 19:31:17 +09:00
using System;
2017-09-13 15:47:34 +09:00
using BTCPayServer.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
2018-07-19 19:31:17 +09:00
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
2017-09-13 15:47:34 +09:00
namespace BTCPayServer.Migrations
{
[DbContext(typeof(ApplicationDbContext))]
partial class ApplicationDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "2.1.11-servicing-32099");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.AddressInvoiceData", b =>
{
b.Property<string>("Address")
.ValueGeneratedOnAdd();
2019-08-30 18:07:01 +09:00
b.Property<DateTimeOffset?>("CreatedTime");
2019-08-30 18:07:01 +09:00
b.Property<string>("InvoiceDataId");
2019-08-30 18:07:01 +09:00
b.HasKey("Address");
2019-08-30 18:07:01 +09:00
b.HasIndex("InvoiceDataId");
2019-08-30 18:07:01 +09:00
b.ToTable("AddressInvoices");
});
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.APIKeyData", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd()
.HasMaxLength(50);
2019-08-30 18:07:01 +09:00
b.Property<string>("StoreId")
.HasMaxLength(50);
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2019-08-30 18:07:01 +09:00
b.HasIndex("StoreId");
2019-08-30 18:07:01 +09:00
b.ToTable("ApiKeys");
});
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.AppData", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2019-08-30 18:07:01 +09:00
b.Property<string>("AppType");
2019-08-30 18:07:01 +09:00
b.Property<DateTimeOffset>("Created");
2019-08-30 18:07:01 +09:00
b.Property<string>("Name");
2019-08-30 18:07:01 +09:00
b.Property<string>("Settings");
2019-08-30 18:07:01 +09:00
b.Property<string>("StoreDataId");
2019-08-30 18:07:01 +09:00
b.Property<bool>("TagAllInvoices");
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2019-08-30 18:07:01 +09:00
b.HasIndex("StoreDataId");
2019-08-30 18:07:01 +09:00
b.ToTable("Apps");
});
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.ApplicationUser", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2019-08-30 18:07:01 +09:00
b.Property<int>("AccessFailedCount");
2019-08-30 18:07:01 +09:00
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken();
2019-08-30 18:07:01 +09:00
b.Property<string>("Email")
.HasMaxLength(256);
2019-08-30 18:07:01 +09:00
b.Property<bool>("EmailConfirmed");
2019-08-30 18:07:01 +09:00
b.Property<bool>("LockoutEnabled");
2019-08-30 18:07:01 +09:00
b.Property<DateTimeOffset?>("LockoutEnd");
2019-08-30 18:07:01 +09:00
b.Property<string>("NormalizedEmail")
.HasMaxLength(256);
2019-08-30 18:07:01 +09:00
b.Property<string>("NormalizedUserName")
.HasMaxLength(256);
2019-08-30 18:07:01 +09:00
b.Property<string>("PasswordHash");
2019-08-30 18:07:01 +09:00
b.Property<string>("PhoneNumber");
2019-08-30 18:07:01 +09:00
b.Property<bool>("PhoneNumberConfirmed");
2019-08-30 18:07:01 +09:00
b.Property<bool>("RequiresEmailConfirmation");
2019-08-30 18:07:01 +09:00
b.Property<string>("SecurityStamp");
2019-08-30 18:07:01 +09:00
b.Property<bool>("TwoFactorEnabled");
2019-08-30 18:07:01 +09:00
b.Property<string>("UserName")
.HasMaxLength(256);
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2019-08-30 18:07:01 +09:00
b.HasIndex("NormalizedEmail")
.HasName("EmailIndex");
2019-08-30 18:07:01 +09:00
b.HasIndex("NormalizedUserName")
.IsUnique()
.HasName("UserNameIndex");
2019-08-30 18:07:01 +09:00
b.ToTable("AspNetUsers");
});
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.BTCPayOpenIdAuthorization", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2019-08-30 18:07:01 +09:00
b.Property<string>("ApplicationId");
2019-08-30 18:07:01 +09:00
b.Property<string>("ConcurrencyToken")
.IsConcurrencyToken()
.HasMaxLength(50);
2019-08-30 18:07:01 +09:00
b.Property<string>("Properties");
2019-08-30 18:07:01 +09:00
b.Property<string>("Scopes");
2019-08-30 18:07:01 +09:00
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(25);
2019-08-30 18:07:01 +09:00
b.Property<string>("Subject")
.IsRequired()
.HasMaxLength(450);
2019-08-30 18:07:01 +09:00
b.Property<string>("Type")
.IsRequired()
.HasMaxLength(25);
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2019-08-30 18:07:01 +09:00
b.HasIndex("ApplicationId", "Status", "Subject", "Type");
2019-08-30 18:07:01 +09:00
b.ToTable("OpenIddictAuthorizations");
});
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.BTCPayOpenIdClient", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2019-08-30 18:07:01 +09:00
b.Property<string>("ApplicationUserId");
2019-08-30 18:07:01 +09:00
b.Property<string>("ClientId")
.IsRequired()
.HasMaxLength(100);
2019-08-30 18:07:01 +09:00
b.Property<string>("ClientSecret");
2018-04-03 11:50:41 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("ConcurrencyToken")
.IsConcurrencyToken()
.HasMaxLength(50);
2018-04-03 11:50:41 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("ConsentType");
2018-04-03 11:50:41 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("DisplayName");
2018-04-03 11:50:41 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("Permissions");
2018-04-03 11:50:41 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("PostLogoutRedirectUris");
2018-04-03 11:50:41 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("Properties");
2019-02-19 12:48:08 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("RedirectUris");
2018-04-03 11:50:41 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("Type")
.IsRequired()
.HasMaxLength(25);
2018-04-03 11:50:41 +09:00
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2018-04-03 11:50:41 +09:00
2019-08-30 18:07:01 +09:00
b.HasIndex("ApplicationUserId");
2019-08-30 18:07:01 +09:00
b.HasIndex("ClientId")
.IsUnique();
2019-08-30 18:07:01 +09:00
b.ToTable("OpenIddictApplications");
});
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.BTCPayOpenIdToken", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2019-08-30 18:07:01 +09:00
b.Property<string>("ApplicationId");
2019-08-30 18:07:01 +09:00
b.Property<string>("AuthorizationId");
2019-08-30 18:07:01 +09:00
b.Property<string>("ConcurrencyToken")
.IsConcurrencyToken()
.HasMaxLength(50);
2019-08-30 18:07:01 +09:00
b.Property<DateTimeOffset?>("CreationDate");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<DateTimeOffset?>("ExpirationDate");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("Payload");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("Properties");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("ReferenceId")
.HasMaxLength(100);
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("Status")
.IsRequired()
.HasMaxLength(25);
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("Subject")
.IsRequired()
.HasMaxLength(450);
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("Type")
.IsRequired()
.HasMaxLength(25);
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasIndex("AuthorizationId");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasIndex("ReferenceId")
.IsUnique();
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasIndex("ApplicationId", "Status", "Subject", "Type");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.ToTable("OpenIddictTokens");
});
2018-01-14 21:48:23 +09:00
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.HistoricalAddressInvoiceData", b =>
{
b.Property<string>("InvoiceDataId");
2018-01-14 21:48:23 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("Address");
2018-01-14 21:48:23 +09:00
2019-08-30 18:07:01 +09:00
b.Property<DateTimeOffset>("Assigned");
2018-01-14 21:48:23 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("CryptoCode");
2018-01-14 21:48:23 +09:00
2019-08-30 18:07:01 +09:00
b.Property<DateTimeOffset?>("UnAssigned");
2018-01-14 21:48:23 +09:00
2019-08-30 18:07:01 +09:00
b.HasKey("InvoiceDataId", "Address");
2019-08-30 18:07:01 +09:00
b.ToTable("HistoricalAddressInvoices");
});
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.InvoiceData", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2019-08-30 18:07:01 +09:00
b.Property<byte[]>("Blob");
2019-08-30 18:07:01 +09:00
b.Property<DateTimeOffset>("Created");
2019-08-30 18:07:01 +09:00
b.Property<string>("CustomerEmail");
2019-08-30 18:07:01 +09:00
b.Property<string>("ExceptionStatus");
2019-08-30 18:07:01 +09:00
b.Property<string>("ItemCode");
2019-08-30 18:07:01 +09:00
b.Property<string>("OrderId");
2019-08-30 18:07:01 +09:00
b.Property<string>("Status");
2019-08-30 18:07:01 +09:00
b.Property<string>("StoreDataId");
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2019-08-30 18:07:01 +09:00
b.HasIndex("StoreDataId");
2019-08-30 18:07:01 +09:00
b.ToTable("Invoices");
});
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.InvoiceEventData", b =>
{
b.Property<string>("InvoiceDataId");
2019-08-30 18:07:01 +09:00
b.Property<string>("UniqueId");
2019-08-30 18:07:01 +09:00
b.Property<string>("Message");
2019-08-30 18:07:01 +09:00
b.Property<DateTimeOffset>("Timestamp");
2019-08-30 18:07:01 +09:00
b.HasKey("InvoiceDataId", "UniqueId");
2019-08-30 18:07:01 +09:00
b.ToTable("InvoiceEvents");
});
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.PairedSINData", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2017-11-06 00:31:02 -08:00
2019-08-30 18:07:01 +09:00
b.Property<string>("Label");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<DateTimeOffset>("PairingTime");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("SIN");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("StoreDataId");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasIndex("SIN");
2019-08-30 18:07:01 +09:00
b.HasIndex("StoreDataId");
2019-08-30 18:07:01 +09:00
b.ToTable("PairedSINData");
});
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.PairingCodeData", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<DateTime>("DateCreated");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<DateTimeOffset>("Expiration");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("Facade");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("Label");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("SIN");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("StoreDataId");
2017-09-27 14:18:09 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("TokenValue");
2017-09-27 14:18:09 +09:00
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2017-09-27 14:18:09 +09:00
2019-08-30 18:07:01 +09:00
b.ToTable("PairingCodes");
});
2017-09-27 14:18:09 +09:00
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.PaymentData", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<bool>("Accounted");
2018-01-09 11:41:07 +09:00
2019-08-30 18:07:01 +09:00
b.Property<byte[]>("Blob");
2019-08-30 18:07:01 +09:00
b.Property<string>("InvoiceDataId");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasIndex("InvoiceDataId");
2019-08-30 18:07:01 +09:00
b.ToTable("Payments");
});
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.PaymentRequestData", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<byte[]>("Blob");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<DateTimeOffset>("Created")
.ValueGeneratedOnAdd()
.HasDefaultValue(new DateTimeOffset(new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)));
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<int>("Status");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("StoreDataId");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasIndex("Status");
2017-09-13 23:50:36 +09:00
2019-08-30 18:07:01 +09:00
b.HasIndex("StoreDataId");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.ToTable("PaymentRequests");
});
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.PendingInvoiceData", b =>
{
b.Property<string>("Id");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2019-08-30 18:07:01 +09:00
b.ToTable("PendingInvoices");
});
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.RefundAddressesData", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2019-08-30 18:07:01 +09:00
b.Property<byte[]>("Blob");
2019-08-30 18:07:01 +09:00
b.Property<string>("InvoiceDataId");
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2019-08-30 18:07:01 +09:00
b.HasIndex("InvoiceDataId");
2019-08-30 18:07:01 +09:00
b.ToTable("RefundAddresses");
});
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.SettingData", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2019-08-30 18:07:01 +09:00
b.Property<string>("Value");
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.ToTable("Settings");
});
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.StoreData", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("DefaultCrypto");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("DerivationStrategies");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("DerivationStrategy");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<int>("SpeedPolicy");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<byte[]>("StoreBlob");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<byte[]>("StoreCertificate");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("StoreName");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("StoreWebsite");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.ToTable("Stores");
});
2017-09-27 14:18:09 +09:00
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.StoredFile", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("ApplicationUserId");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("FileName");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("StorageFileName");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<DateTime>("Timestamp");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasIndex("ApplicationUserId");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.ToTable("Files");
});
2019-01-14 22:43:29 +01:00
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.U2FDevice", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2019-01-14 22:43:29 +01:00
2019-08-30 18:07:01 +09:00
b.Property<string>("ApplicationUserId");
2019-08-30 18:07:01 +09:00
b.Property<byte[]>("AttestationCert")
.IsRequired();
2019-01-14 22:43:29 +01:00
2019-08-30 18:07:01 +09:00
b.Property<int>("Counter");
2019-01-14 22:43:29 +01:00
2019-08-30 18:07:01 +09:00
b.Property<byte[]>("KeyHandle")
.IsRequired();
2019-01-14 22:43:29 +01:00
2019-08-30 18:07:01 +09:00
b.Property<string>("Name");
2019-01-14 22:43:29 +01:00
2019-08-30 18:07:01 +09:00
b.Property<byte[]>("PublicKey")
.IsRequired();
2019-01-14 22:43:29 +01:00
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2019-01-14 22:43:29 +01:00
2019-08-30 18:07:01 +09:00
b.HasIndex("ApplicationUserId");
2019-08-30 18:07:01 +09:00
b.ToTable("U2FDevices");
});
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.UserStore", b =>
{
b.Property<string>("ApplicationUserId");
2019-08-30 18:07:01 +09:00
b.Property<string>("StoreDataId");
2019-08-30 18:07:01 +09:00
b.Property<string>("Role");
2019-08-30 18:07:01 +09:00
b.HasKey("ApplicationUserId", "StoreDataId");
2019-08-30 18:07:01 +09:00
b.HasIndex("StoreDataId");
2019-08-30 18:07:01 +09:00
b.ToTable("UserStore");
});
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.WalletData", b =>
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2019-08-30 18:07:01 +09:00
b.Property<byte[]>("Blob");
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2019-08-30 18:07:01 +09:00
b.ToTable("Wallets");
});
2019-08-30 18:07:01 +09:00
modelBuilder.Entity("BTCPayServer.Data.WalletTransactionData", b =>
{
b.Property<string>("WalletDataId");
2019-08-30 18:07:01 +09:00
b.Property<string>("TransactionId");
2019-08-30 18:07:01 +09:00
b.Property<byte[]>("Blob");
2019-08-30 18:07:01 +09:00
b.Property<string>("Labels");
2019-08-30 18:07:01 +09:00
b.HasKey("WalletDataId", "TransactionId");
2019-08-30 18:07:01 +09:00
b.ToTable("WalletTransactions");
});
2017-09-13 15:47:34 +09:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRole", b =>
2019-08-30 18:07:01 +09:00
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("ConcurrencyStamp")
.IsConcurrencyToken();
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("Name")
.HasMaxLength(256);
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("NormalizedName")
.HasMaxLength(256);
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasIndex("NormalizedName")
.IsUnique()
.HasName("RoleNameIndex");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.ToTable("AspNetRoles");
});
2017-09-13 15:47:34 +09:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
2019-08-30 18:07:01 +09:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("ClaimType");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("ClaimValue");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("RoleId")
.IsRequired();
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasIndex("RoleId");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.ToTable("AspNetRoleClaims");
});
2017-09-13 15:47:34 +09:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
2019-08-30 18:07:01 +09:00
{
b.Property<int>("Id")
.ValueGeneratedOnAdd();
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("ClaimType");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("ClaimValue");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("UserId")
.IsRequired();
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasIndex("UserId");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.ToTable("AspNetUserClaims");
});
2017-09-13 15:47:34 +09:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
2019-08-30 18:07:01 +09:00
{
b.Property<string>("LoginProvider");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("ProviderKey");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("ProviderDisplayName");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("UserId")
.IsRequired();
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasKey("LoginProvider", "ProviderKey");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasIndex("UserId");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.ToTable("AspNetUserLogins");
});
2017-09-13 15:47:34 +09:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
2019-08-30 18:07:01 +09:00
{
b.Property<string>("UserId");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("RoleId");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasKey("UserId", "RoleId");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasIndex("RoleId");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.ToTable("AspNetUserRoles");
});
2017-09-13 15:47:34 +09:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
2019-08-30 18:07:01 +09:00
{
b.Property<string>("UserId");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("LoginProvider");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("Name");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.Property<string>("Value");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.HasKey("UserId", "LoginProvider", "Name");
2017-09-13 15:47:34 +09:00
2019-08-30 18:07:01 +09:00
b.ToTable("AspNetUserTokens");
});
2017-09-13 15:47:34 +09:00
modelBuilder.Entity("OpenIddict.EntityFrameworkCore.Models.OpenIddictScope<string>", b =>
2019-08-30 18:07:01 +09:00
{
b.Property<string>("Id")
.ValueGeneratedOnAdd();
2019-08-30 18:07:01 +09:00
b.Property<string>("ConcurrencyToken")
.IsConcurrencyToken()
.HasMaxLength(50);
2019-08-30 18:07:01 +09:00
b.Property<string>("Description");
2019-08-30 18:07:01 +09:00
b.Property<string>("DisplayName");
2019-08-30 18:07:01 +09:00
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(200);
2019-08-30 18:07:01 +09:00
b.Property<string>("Properties");
2019-08-30 18:07:01 +09:00
b.Property<string>("Resources");
2019-08-30 18:07:01 +09:00
b.HasKey("Id");
2019-08-30 18:07:01 +09:00
b.HasIndex("Name")
.IsUnique();
2019-08-30 18:07:01 +09:00
b.ToTable("OpenIddictScopes");
});
modelBuilder.Entity("BTCPayServer.Data.AddressInvoiceData", b =>
2019-08-30 18:07:01 +09:00
{
b.HasOne("BTCPayServer.Data.InvoiceData", "InvoiceData")
.WithMany("AddressInvoices")
.HasForeignKey("InvoiceDataId")
.OnDelete(DeleteBehavior.Cascade);
});
2018-07-19 19:31:17 +09:00
modelBuilder.Entity("BTCPayServer.Data.APIKeyData", b =>
2019-08-30 18:07:01 +09:00
{
b.HasOne("BTCPayServer.Data.StoreData", "StoreData")
.WithMany("APIKeys")
.HasForeignKey("StoreId")
.OnDelete(DeleteBehavior.Cascade);
});
2018-04-03 11:50:41 +09:00
modelBuilder.Entity("BTCPayServer.Data.AppData", b =>
2019-08-30 18:07:01 +09:00
{
b.HasOne("BTCPayServer.Data.StoreData", "StoreData")
.WithMany("Apps")
.HasForeignKey("StoreDataId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("BTCPayServer.Data.BTCPayOpenIdAuthorization", b =>
{
b.HasOne("BTCPayServer.Data.BTCPayOpenIdClient", "Application")
.WithMany("Authorizations")
.HasForeignKey("ApplicationId");
});
modelBuilder.Entity("BTCPayServer.Data.BTCPayOpenIdClient", b =>
{
b.HasOne("BTCPayServer.Data.ApplicationUser", "ApplicationUser")
.WithMany("OpenIdClients")
.HasForeignKey("ApplicationUserId");
});
modelBuilder.Entity("BTCPayServer.Data.BTCPayOpenIdToken", b =>
{
b.HasOne("BTCPayServer.Data.BTCPayOpenIdClient", "Application")
.WithMany("Tokens")
.HasForeignKey("ApplicationId");
b.HasOne("BTCPayServer.Data.BTCPayOpenIdAuthorization", "Authorization")
.WithMany("Tokens")
.HasForeignKey("AuthorizationId");
});
2018-04-03 11:50:41 +09:00
modelBuilder.Entity("BTCPayServer.Data.HistoricalAddressInvoiceData", b =>
2019-08-30 18:07:01 +09:00
{
b.HasOne("BTCPayServer.Data.InvoiceData", "InvoiceData")
.WithMany("HistoricalAddressInvoices")
.HasForeignKey("InvoiceDataId")
.OnDelete(DeleteBehavior.Cascade);
});
2017-09-13 15:47:34 +09:00
modelBuilder.Entity("BTCPayServer.Data.InvoiceData", b =>
2019-08-30 18:07:01 +09:00
{
b.HasOne("BTCPayServer.Data.StoreData", "StoreData")
.WithMany("Invoices")
.HasForeignKey("StoreDataId")
.OnDelete(DeleteBehavior.Cascade);
});
2017-09-13 15:47:34 +09:00
2018-01-14 21:48:23 +09:00
modelBuilder.Entity("BTCPayServer.Data.InvoiceEventData", b =>
2019-08-30 18:07:01 +09:00
{
b.HasOne("BTCPayServer.Data.InvoiceData", "InvoiceData")
.WithMany("Events")
.HasForeignKey("InvoiceDataId")
.OnDelete(DeleteBehavior.Cascade);
});
2018-01-14 21:48:23 +09:00
2018-07-19 19:31:17 +09:00
modelBuilder.Entity("BTCPayServer.Data.PairedSINData", b =>
2019-08-30 18:07:01 +09:00
{
b.HasOne("BTCPayServer.Data.StoreData", "StoreData")
.WithMany("PairedSINs")
.HasForeignKey("StoreDataId")
.OnDelete(DeleteBehavior.Cascade);
});
2018-07-19 19:31:17 +09:00
2017-09-13 15:47:34 +09:00
modelBuilder.Entity("BTCPayServer.Data.PaymentData", b =>
2019-08-30 18:07:01 +09:00
{
b.HasOne("BTCPayServer.Data.InvoiceData", "InvoiceData")
.WithMany("Payments")
.HasForeignKey("InvoiceDataId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("BTCPayServer.Data.PaymentRequestData", b =>
{
b.HasOne("BTCPayServer.Data.StoreData", "StoreData")
.WithMany("PaymentRequests")
.HasForeignKey("StoreDataId")
.OnDelete(DeleteBehavior.Cascade);
});
2018-07-19 19:31:17 +09:00
modelBuilder.Entity("BTCPayServer.Data.PendingInvoiceData", b =>
2019-08-30 18:07:01 +09:00
{
b.HasOne("BTCPayServer.Data.InvoiceData", "InvoiceData")
.WithMany("PendingInvoices")
.HasForeignKey("Id")
.OnDelete(DeleteBehavior.Cascade);
});
2017-09-13 15:47:34 +09:00
modelBuilder.Entity("BTCPayServer.Data.RefundAddressesData", b =>
2019-08-30 18:07:01 +09:00
{
b.HasOne("BTCPayServer.Data.InvoiceData", "InvoiceData")
.WithMany("RefundAddresses")
.HasForeignKey("InvoiceDataId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("BTCPayServer.Data.StoredFile", b =>
{
b.HasOne("BTCPayServer.Data.ApplicationUser", "ApplicationUser")
.WithMany("StoredFiles")
.HasForeignKey("ApplicationUserId");
});
modelBuilder.Entity("BTCPayServer.Data.U2FDevice", b =>
{
b.HasOne("BTCPayServer.Data.ApplicationUser", "ApplicationUser")
.WithMany("U2FDevices")
.HasForeignKey("ApplicationUserId");
});
2017-09-13 15:47:34 +09:00
modelBuilder.Entity("BTCPayServer.Data.UserStore", b =>
2019-08-30 18:07:01 +09:00
{
b.HasOne("BTCPayServer.Data.ApplicationUser", "ApplicationUser")
.WithMany("UserStores")
.HasForeignKey("ApplicationUserId")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("BTCPayServer.Data.StoreData", "StoreData")
.WithMany("UserStores")
.HasForeignKey("StoreDataId")
.OnDelete(DeleteBehavior.Cascade);
});
modelBuilder.Entity("BTCPayServer.Data.WalletTransactionData", b =>
2019-08-30 18:07:01 +09:00
{
b.HasOne("BTCPayServer.Data.WalletData", "WalletData")
.WithMany("WalletTransactions")
.HasForeignKey("WalletDataId")
.OnDelete(DeleteBehavior.Cascade);
});
2017-09-13 15:47:34 +09:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityRoleClaim<string>", b =>
2019-08-30 18:07:01 +09:00
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade);
});
2017-09-13 15:47:34 +09:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserClaim<string>", b =>
2019-08-30 18:07:01 +09:00
{
b.HasOne("BTCPayServer.Data.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
2017-09-13 15:47:34 +09:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserLogin<string>", b =>
2019-08-30 18:07:01 +09:00
{
b.HasOne("BTCPayServer.Data.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
2017-09-13 15:47:34 +09:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserRole<string>", b =>
2019-08-30 18:07:01 +09:00
{
b.HasOne("Microsoft.AspNetCore.Identity.IdentityRole")
.WithMany()
.HasForeignKey("RoleId")
.OnDelete(DeleteBehavior.Cascade);
b.HasOne("BTCPayServer.Data.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
2017-09-13 15:47:34 +09:00
modelBuilder.Entity("Microsoft.AspNetCore.Identity.IdentityUserToken<string>", b =>
2019-08-30 18:07:01 +09:00
{
b.HasOne("BTCPayServer.Data.ApplicationUser")
.WithMany()
.HasForeignKey("UserId")
.OnDelete(DeleteBehavior.Cascade);
});
2017-09-13 15:47:34 +09:00
#pragma warning restore 612, 618
}
}
}