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