// using System; using ASC.Core.Common.EF.Context; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Infrastructure; using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; namespace ASC.Core.Common.Migrations.Npgsql.NotifyDbContextNpgsql { [DbContext(typeof(PostgreSqlNotifyDbContext))] partial class NotifyDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn) .HasAnnotation("ProductVersion", "3.1.8") .HasAnnotation("Relational:MaxIdentifierLength", 63); modelBuilder.Entity("ASC.Core.Common.EF.Model.NotifyInfo", b => { b.Property("NotifyId") .HasColumnName("notify_id") .HasColumnType("integer"); b.Property("Attempts") .HasColumnName("attempts") .HasColumnType("integer"); b.Property("ModifyDate") .HasColumnName("modify_date") .HasColumnType("timestamp without time zone"); b.Property("Priority") .HasColumnName("priority") .HasColumnType("integer"); b.Property("State") .HasColumnName("state") .HasColumnType("integer"); b.HasKey("NotifyId") .HasName("notify_info_pkey"); b.HasIndex("State") .HasName("state"); b.ToTable("notify_info","onlyoffice"); }); modelBuilder.Entity("ASC.Core.Common.EF.Model.NotifyQueue", b => { b.Property("NotifyId") .ValueGeneratedOnAdd() .HasColumnName("notify_id") .HasColumnType("integer") .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); b.Property("Attachments") .HasColumnName("attachments") .HasColumnType("text"); b.Property("AutoSubmitted") .ValueGeneratedOnAdd() .HasColumnName("auto_submitted") .HasColumnType("character varying(64)") .HasDefaultValueSql("NULL") .HasMaxLength(64); b.Property("Content") .HasColumnName("content") .HasColumnType("text"); b.Property("ContentType") .ValueGeneratedOnAdd() .HasColumnName("content_type") .HasColumnType("character varying(64)") .HasDefaultValueSql("NULL") .HasMaxLength(64); b.Property("CreationDate") .HasColumnName("creation_date") .HasColumnType("timestamp without time zone"); b.Property("Reciever") .ValueGeneratedOnAdd() .HasColumnName("reciever") .HasColumnType("character varying(255)") .HasDefaultValueSql("NULL") .HasMaxLength(255); b.Property("ReplyTo") .ValueGeneratedOnAdd() .HasColumnName("reply_to") .HasColumnType("character varying(1024)") .HasDefaultValueSql("NULL") .HasMaxLength(1024); b.Property("Sender") .ValueGeneratedOnAdd() .HasColumnName("sender") .HasColumnType("character varying(255)") .HasDefaultValueSql("NULL") .HasMaxLength(255); b.Property("SenderType") .ValueGeneratedOnAdd() .HasColumnName("sender_type") .HasColumnType("character varying(64)") .HasDefaultValueSql("NULL") .HasMaxLength(64); b.Property("Subject") .ValueGeneratedOnAdd() .HasColumnName("subject") .HasColumnType("character varying(1024)") .HasDefaultValueSql("NULL") .HasMaxLength(1024); b.Property("TenantId") .HasColumnName("tenant_id") .HasColumnType("integer"); b.HasKey("NotifyId") .HasName("notify_queue_pkey"); b.ToTable("notify_queue", "onlyoffice"); }); #pragma warning restore 612, 618 } } }