Files

93 lines
2.9 KiB
C#
Raw Permalink Normal View History

2020-03-08 01:55:50 +04:00
// <auto-generated />
using System;
using Kruzya.TelegramBot.Core.Data;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
2023-07-20 20:24:16 +03:00
#nullable disable
2020-03-08 01:55:50 +04:00
namespace Kruzya.TelegramBot.Core.Migrations
{
[DbContext(typeof(CoreContext))]
partial class CoreContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
2023-07-20 20:24:16 +03:00
.HasAnnotation("ProductVersion", "7.0.1")
2020-03-08 01:55:50 +04:00
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("Kruzya.TelegramBot.Core.Data.BotUser", b =>
{
b.Property<Guid>("BotUserId")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<long>("ChatId")
.HasColumnType("bigint");
2021-12-25 23:52:09 +04:00
b.Property<long>("UserId")
.HasColumnType("bigint");
2020-03-08 01:55:50 +04:00
b.HasKey("BotUserId");
b.ToTable("Users");
});
modelBuilder.Entity("Kruzya.TelegramBot.Core.Data.BotUserValue", b =>
{
b.Property<Guid>("BotUserValueId")
.ValueGeneratedOnAdd()
.HasColumnType("char(36)");
b.Property<Guid?>("BotUserId")
.HasColumnType("char(36)");
b.Property<string>("Name")
2023-07-20 20:24:16 +03:00
.HasColumnType("longtext");
2020-03-08 01:55:50 +04:00
b.Property<byte[]>("Value")
.HasColumnType("longblob");
2021-12-25 23:52:09 +04:00
b.Property<string>("ValueType")
2023-07-20 20:24:16 +03:00
.HasColumnType("longtext");
2021-12-25 23:52:09 +04:00
2020-03-08 01:55:50 +04:00
b.HasKey("BotUserValueId");
b.HasIndex("BotUserId");
b.ToTable("UserValues");
});
2023-07-20 20:24:16 +03:00
modelBuilder.Entity("Kruzya.TelegramBot.Core.Data.ChatOptionValue", b =>
{
b.Property<long>("ChatId")
.HasColumnType("bigint");
b.Property<string>("OptionId")
.HasColumnType("varchar(255)");
b.Property<byte[]>("Value")
.IsRequired()
.HasColumnType("longblob");
b.HasKey("ChatId", "OptionId");
b.ToTable("ChatOptionValues");
});
2020-03-08 01:55:50 +04:00
modelBuilder.Entity("Kruzya.TelegramBot.Core.Data.BotUserValue", b =>
{
b.HasOne("Kruzya.TelegramBot.Core.Data.BotUser", "BotUser")
.WithMany()
.HasForeignKey("BotUserId");
2023-07-20 20:24:16 +03:00
b.Navigation("BotUser");
2020-03-08 01:55:50 +04:00
});
#pragma warning restore 612, 618
}
}
}