mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-02-22 14:22:40 +01:00
This allows plugins to create custom dbcontexts, which would be namespaced in the scheme with a prefix. Migrations are supported too and the table would be prefixed too
36 lines
1.1 KiB
C#
36 lines
1.1 KiB
C#
// <auto-generated />
|
|
using System;
|
|
using BTCPayServer.Plugins.Test;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
|
|
namespace BTCPayServer.Plugins.Test.Migrations
|
|
{
|
|
[DbContext(typeof(TestPluginDbContext))]
|
|
partial class TestPluginDbContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasDefaultSchema("BTCPayServer.Plugins.Test")
|
|
.HasAnnotation("ProductVersion", "3.1.10");
|
|
|
|
modelBuilder.Entity("BTCPayServer.Plugins.Test.Data.TestPluginData", b =>
|
|
{
|
|
b.Property<string>("Id")
|
|
.ValueGeneratedOnAdd()
|
|
.HasColumnType("TEXT");
|
|
|
|
b.Property<DateTimeOffset>("Timestamp")
|
|
.HasColumnType("TEXT");
|
|
|
|
b.HasKey("Id");
|
|
|
|
b.ToTable("TestPluginRecords");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|