// using System; using ASC.EventBus.Extensions.Logger; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Microsoft.EntityFrameworkCore.Migrations; using Microsoft.EntityFrameworkCore.Storage.ValueConversion; #nullable disable namespace ASC.Migrations.MySql.Migrations { [DbContext(typeof(IntegrationEventLogContext))] [Migration("20220724114541_IntegrationEventLogContextMigrate")] partial class IntegrationEventLogContextMigrate { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "6.0.4") .HasAnnotation("Relational:MaxIdentifierLength", 64); modelBuilder.Entity("ASC.EventBus.Extensions.Logger.IntegrationEventLogEntry", b => { b.Property("EventId") .ValueGeneratedOnAdd() .HasColumnType("char(38)") .HasColumnName("event_id") .UseCollation("utf8_general_ci") .HasAnnotation("MySql:CharSet", "utf8"); b.Property("Content") .IsRequired() .HasColumnType("text") .HasColumnName("content") .UseCollation("utf8_general_ci") .HasAnnotation("MySql:CharSet", "utf8"); b.Property("CreateBy") .IsRequired() .HasColumnType("char(38)") .HasColumnName("create_by") .UseCollation("utf8_general_ci") .HasAnnotation("MySql:CharSet", "utf8"); b.Property("CreateOn") .HasColumnType("datetime") .HasColumnName("create_on"); b.Property("EventTypeName") .IsRequired() .HasColumnType("varchar(255)") .HasColumnName("event_type_name") .UseCollation("utf8_general_ci") .HasAnnotation("MySql:CharSet", "utf8"); b.Property("State") .HasColumnType("int(11)") .HasColumnName("state"); b.Property("TenantId") .HasColumnType("int(11)") .HasColumnName("tenant_id"); b.Property("TimesSent") .HasColumnType("int(11)") .HasColumnName("times_sent"); b.Property("TransactionId") .HasColumnType("longtext"); b.HasKey("EventId") .HasName("PRIMARY"); b.HasIndex("TenantId") .HasDatabaseName("tenant_id"); b.ToTable("event_bus_integration_event_log", (string)null); b.HasAnnotation("MySql:CharSet", "utf8"); }); #pragma warning restore 612, 618 } } }