2020-10-06 11:39:44 +00:00
|
|
|
|
// <auto-generated />
|
|
|
|
|
using ASC.Core.Common.EF.Context;
|
|
|
|
|
using Microsoft.EntityFrameworkCore;
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Infrastructure;
|
2021-03-09 17:56:57 +00:00
|
|
|
|
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
2020-10-06 11:39:44 +00:00
|
|
|
|
|
|
|
|
|
namespace ASC.Core.Common.Migrations.MySql.TelegramDbContextMySql
|
|
|
|
|
{
|
|
|
|
|
[DbContext(typeof(MySqlTelegramDbContext))]
|
2021-03-09 17:56:57 +00:00
|
|
|
|
partial class MySqlTelegramDbContextModelSnapshot : ModelSnapshot
|
2020-10-06 11:39:44 +00:00
|
|
|
|
{
|
|
|
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
|
|
|
{
|
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
|
modelBuilder
|
2021-03-09 17:56:57 +00:00
|
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 64)
|
|
|
|
|
.HasAnnotation("ProductVersion", "5.0.3");
|
2020-10-06 11:39:44 +00:00
|
|
|
|
|
|
|
|
|
modelBuilder.Entity("ASC.Core.Common.EF.Model.TelegramUser", b =>
|
|
|
|
|
{
|
|
|
|
|
b.Property<int>("TenantId")
|
2021-03-09 17:56:57 +00:00
|
|
|
|
.HasColumnType("int")
|
|
|
|
|
.HasColumnName("tenant_id");
|
2020-10-06 11:39:44 +00:00
|
|
|
|
|
|
|
|
|
b.Property<string>("PortalUserId")
|
|
|
|
|
.HasColumnType("varchar(38)")
|
2021-03-09 17:56:57 +00:00
|
|
|
|
.HasColumnName("portal_user_id")
|
|
|
|
|
.UseCollation("utf8_general_ci")
|
|
|
|
|
.HasCharSet("utf8");
|
2020-10-06 11:39:44 +00:00
|
|
|
|
|
|
|
|
|
b.Property<int>("TelegramUserId")
|
2021-03-09 17:56:57 +00:00
|
|
|
|
.HasColumnType("int")
|
|
|
|
|
.HasColumnName("telegram_user_id");
|
2020-10-06 11:39:44 +00:00
|
|
|
|
|
|
|
|
|
b.HasKey("TenantId", "PortalUserId")
|
|
|
|
|
.HasName("PRIMARY");
|
|
|
|
|
|
|
|
|
|
b.HasIndex("TelegramUserId")
|
2021-03-09 17:56:57 +00:00
|
|
|
|
.HasDatabaseName("tgId");
|
2020-10-06 11:39:44 +00:00
|
|
|
|
|
|
|
|
|
b.ToTable("telegram_users");
|
|
|
|
|
});
|
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|