// using System; using ASC.Core.Common.EF.Context; 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(NotifyDbContext))] [Migration("20221019144352_NotifyDbContextMigrate")] partial class NotifyDbContextMigrate { protected override void BuildTargetModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("ProductVersion", "6.0.7") .HasAnnotation("Relational:MaxIdentifierLength", 64); modelBuilder.Entity("ASC.Core.Common.EF.Model.NotifyInfo", b => { b.Property("NotifyId") .HasColumnType("int") .HasColumnName("notify_id"); b.Property("Attempts") .ValueGeneratedOnAdd() .HasColumnType("int") .HasColumnName("attempts") .HasDefaultValueSql("'0'"); b.Property("ModifyDate") .HasColumnType("datetime") .HasColumnName("modify_date"); b.Property("Priority") .ValueGeneratedOnAdd() .HasColumnType("int") .HasColumnName("priority") .HasDefaultValueSql("'0'"); b.Property("State") .ValueGeneratedOnAdd() .HasColumnType("int") .HasColumnName("state") .HasDefaultValueSql("'0'"); b.HasKey("NotifyId") .HasName("PRIMARY"); b.HasIndex("State") .HasDatabaseName("state"); b.ToTable("notify_info", (string)null); b.HasAnnotation("MySql:CharSet", "utf8"); }); modelBuilder.Entity("ASC.Core.Common.EF.Model.NotifyQueue", b => { b.Property("NotifyId") .ValueGeneratedOnAdd() .HasColumnType("int") .HasColumnName("notify_id"); b.Property("Attachments") .HasColumnType("text") .HasColumnName("attachments") .UseCollation("utf8_general_ci") .HasAnnotation("MySql:CharSet", "utf8"); b.Property("AutoSubmitted") .HasColumnType("varchar(64)") .HasColumnName("auto_submitted") .UseCollation("utf8_general_ci") .HasAnnotation("MySql:CharSet", "utf8"); b.Property("Content") .HasColumnType("text") .HasColumnName("content") .UseCollation("utf8_general_ci") .HasAnnotation("MySql:CharSet", "utf8"); b.Property("ContentType") .HasColumnType("varchar(64)") .HasColumnName("content_type") .UseCollation("utf8_general_ci") .HasAnnotation("MySql:CharSet", "utf8"); b.Property("CreationDate") .HasColumnType("datetime") .HasColumnName("creation_date"); b.Property("Reciever") .HasColumnType("varchar(255)") .HasColumnName("reciever") .UseCollation("utf8_general_ci") .HasAnnotation("MySql:CharSet", "utf8"); b.Property("ReplyTo") .HasColumnType("varchar(1024)") .HasColumnName("reply_to") .UseCollation("utf8_general_ci") .HasAnnotation("MySql:CharSet", "utf8"); b.Property("Sender") .HasColumnType("varchar(255)") .HasColumnName("sender") .UseCollation("utf8_general_ci") .HasAnnotation("MySql:CharSet", "utf8"); b.Property("SenderType") .HasColumnType("varchar(64)") .HasColumnName("sender_type") .UseCollation("utf8_general_ci") .HasAnnotation("MySql:CharSet", "utf8"); b.Property("Subject") .HasColumnType("varchar(1024)") .HasColumnName("subject") .UseCollation("utf8_general_ci") .HasAnnotation("MySql:CharSet", "utf8"); b.Property("TenantId") .HasColumnType("int") .HasColumnName("tenant_id"); b.HasKey("NotifyId") .HasName("PRIMARY"); b.ToTable("notify_queue", (string)null); b.HasAnnotation("MySql:CharSet", "utf8"); }); #pragma warning restore 612, 618 } } }