DocSpace-buildtools/common/ASC.Core.Common/Migrations/MySql/TelegramDbContextMySql/MySqlTelegramDbContextModelSnapshot.cs

51 lines
1.7 KiB
C#
Raw Normal View History

2022-07-01 11:27:28 +00:00
// <auto-generated />
using ASC.Core.Common.EF.Context;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
#nullable disable
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
2022-07-01 11:27:28 +00:00
.HasAnnotation("ProductVersion", "6.0.4")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
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")
2021-10-12 14:54:11 +00:00
.HasAnnotation("MySql:CharSet", "utf8");
2020-10-06 11:39:44 +00:00
b.Property<int>("TelegramUserId")
.HasColumnType("int")
2021-03-09 17:56:57 +00:00
.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
2022-07-01 11:27:28 +00:00
b.ToTable("telegram_users", (string)null);
b.HasAnnotation("MySql:CharSet", "utf8");
2020-10-06 11:39:44 +00:00
});
#pragma warning restore 612, 618
}
}
}