// using System; using Kruzya.TelegramBot.Core.Data; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace Kruzya.TelegramBot.Core.Migrations { [DbContext(typeof(CoreContext))] partial class CoreContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "7.0.1") .HasAnnotation("Relational:MaxIdentifierLength", 64); modelBuilder.Entity("Kruzya.TelegramBot.Core.Data.BotUser", b => { b.Property("BotUserId") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("ChatId") .HasColumnType("bigint"); b.Property("UserId") .HasColumnType("bigint"); b.HasKey("BotUserId"); b.ToTable("Users"); }); modelBuilder.Entity("Kruzya.TelegramBot.Core.Data.BotUserValue", b => { b.Property("BotUserValueId") .ValueGeneratedOnAdd() .HasColumnType("char(36)"); b.Property("BotUserId") .HasColumnType("char(36)"); b.Property("Name") .HasColumnType("longtext"); b.Property("Value") .HasColumnType("longblob"); b.Property("ValueType") .HasColumnType("longtext"); b.HasKey("BotUserValueId"); b.HasIndex("BotUserId"); b.ToTable("UserValues"); }); modelBuilder.Entity("Kruzya.TelegramBot.Core.Data.ChatOptionValue", b => { b.Property("ChatId") .HasColumnType("bigint"); b.Property("OptionId") .HasColumnType("varchar(255)"); b.Property("Value") .IsRequired() .HasColumnType("longblob"); b.HasKey("ChatId", "OptionId"); b.ToTable("ChatOptionValues"); }); modelBuilder.Entity("Kruzya.TelegramBot.Core.Data.BotUserValue", b => { b.HasOne("Kruzya.TelegramBot.Core.Data.BotUser", "BotUser") .WithMany() .HasForeignKey("BotUserId"); b.Navigation("BotUser"); }); #pragma warning restore 612, 618 } } }