76 lines
2.3 KiB
C#
76 lines
2.3 KiB
C#
// <auto-generated />
|
|
using Microsoft.EntityFrameworkCore;
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
|
using NostrStreamer.Database;
|
|
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
|
|
|
|
#nullable disable
|
|
|
|
namespace NostrStreamer.Migrations
|
|
{
|
|
[DbContext(typeof(StreamerContext))]
|
|
partial class StreamerContextModelSnapshot : ModelSnapshot
|
|
{
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
{
|
|
#pragma warning disable 612, 618
|
|
modelBuilder
|
|
.HasAnnotation("ProductVersion", "7.0.8")
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
|
|
|
|
modelBuilder.Entity("NostrStreamer.Database.Payment", b =>
|
|
{
|
|
b.Property<string>("PubKey")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Invoice")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<bool>("IsPaid")
|
|
.HasColumnType("boolean");
|
|
|
|
b.HasKey("PubKey");
|
|
|
|
b.ToTable("Payments");
|
|
});
|
|
|
|
modelBuilder.Entity("NostrStreamer.Database.User", b =>
|
|
{
|
|
b.Property<string>("PubKey")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<long>("Balance")
|
|
.HasColumnType("bigint");
|
|
|
|
b.Property<string>("Event")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Image")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("StreamKey")
|
|
.IsRequired()
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Summary")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Tags")
|
|
.HasColumnType("text");
|
|
|
|
b.Property<string>("Title")
|
|
.HasColumnType("text");
|
|
|
|
b.HasKey("PubKey");
|
|
|
|
b.ToTable("Users");
|
|
});
|
|
#pragma warning restore 612, 618
|
|
}
|
|
}
|
|
}
|