//
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using Telegram.Bot.SpaceApi.Backend.Database;
#nullable disable
namespace Telegram.Bot.SpaceApi.Migrations
{
[DbContext(typeof(DatabaseContext))]
[Migration("20230408003004_BEF4B230-8E1D-40FF-AB34-130BB0E7E87B")]
partial class BEF4B2308E1D40FFAB34130BB0E7E87B
{
///
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "7.0.4");
modelBuilder.Entity("Telegram.Bot.SpaceApi.Backend.Database.Tables.Bot", b =>
{
b.Property("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property("ApiOverrideAddress")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("ApiOverrideAddress");
b.Property("ApiUrl")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("ApiUrl");
b.Property("Name")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("Name");
b.Property("Token")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("Token");
b.HasKey("Id");
b.ToTable("Bots", (string)null);
});
modelBuilder.Entity("Telegram.Bot.SpaceApi.Backend.Database.Tables.Config", b =>
{
b.Property("Key")
.HasColumnType("TEXT")
.HasColumnName("Key");
b.Property("Value")
.IsRequired()
.HasColumnType("TEXT")
.HasColumnName("Value");
b.HasKey("Key");
b.ToTable("Config", (string)null);
});
#pragma warning restore 612, 618
}
}
}