// 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.FeedDbContextNpgsql { [DbContext(typeof(PostgreSqlFeedDbContext))] partial class FeedDbContextModelSnapshot : 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.FeedAggregate", b => { b.Property("Id") .HasColumnName("id") .HasColumnType("character varying(88)") .HasMaxLength(88); b.Property("AggregateDate") .HasColumnName("aggregated_date") .HasColumnType("timestamp without time zone"); b.Property("Author") .HasColumnName("author") .HasColumnType("uuid") .IsFixedLength(true) .HasMaxLength(38); b.Property("CreatedDate") .HasColumnName("created_date") .HasColumnType("timestamp without time zone"); b.Property("GroupId") .ValueGeneratedOnAdd() .HasColumnName("group_id") .HasColumnType("character varying(70)") .HasDefaultValueSql("NULL") .HasMaxLength(70); b.Property("Json") .IsRequired() .HasColumnName("json") .HasColumnType("text"); b.Property("Keywords") .HasColumnName("keywords") .HasColumnType("text"); b.Property("ModifiedBy") .HasColumnName("modified_by") .HasColumnType("uuid") .IsFixedLength(true) .HasMaxLength(38); b.Property("ModifiedDate") .HasColumnName("modified_date") .HasColumnType("timestamp without time zone"); b.Property("Module") .IsRequired() .HasColumnName("module") .HasColumnType("character varying(50)") .HasMaxLength(50); b.Property("Product") .IsRequired() .HasColumnName("product") .HasColumnType("character varying(50)") .HasMaxLength(50); b.Property("Tenant") .HasColumnName("tenant") .HasColumnType("integer"); b.HasKey("Id"); b.HasIndex("Tenant", "AggregateDate") .HasName("aggregated_date"); b.HasIndex("Tenant", "ModifiedDate") .HasName("modified_date"); b.HasIndex("Tenant", "Product") .HasName("product"); b.ToTable("feed_aggregate","onlyoffice"); }); modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedLast", b => { b.Property("LastKey") .HasColumnName("last_key") .HasColumnType("character varying(128)") .HasMaxLength(128); b.Property("LastDate") .HasColumnName("last_date") .HasColumnType("timestamp without time zone"); b.HasKey("LastKey") .HasName("feed_last_pkey"); b.ToTable("feed_last","onlyoffice"); }); modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedReaded", b => { b.Property("UserId") .HasColumnName("user_id") .HasColumnType("uuid") .HasMaxLength(38); b.Property("Tenant") .HasColumnName("tenant_id") .HasColumnType("integer"); b.Property("Module") .HasColumnName("module") .HasColumnType("character varying(50)") .HasMaxLength(50); b.Property("TimeStamp") .HasColumnName("timestamp") .HasColumnType("timestamp without time zone"); b.HasKey("UserId", "Tenant", "Module") .HasName("feed_readed_pkey"); b.ToTable("feed_readed","onlyoffice"); }); modelBuilder.Entity("ASC.Core.Common.EF.Model.FeedUsers", b => { b.Property("FeedId") .HasColumnName("feed_id") .HasColumnType("character varying(88)") .HasMaxLength(88); b.Property("UserId") .HasColumnName("user_id") .HasColumnType("uuid") .IsFixedLength(true) .HasMaxLength(38); b.HasKey("FeedId", "UserId") .HasName("feed_users_pkey"); b.HasIndex("UserId") .HasName("user_id_feed_users"); b.ToTable("feed_users","onlyoffice"); }); #pragma warning restore 612, 618 } } }