// 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; namespace ASC.Core.Common.Migrations.PostgreSql.DbContextPostgreSql { [DbContext(typeof(PostgreSqlDbContext))] partial class PostgreSqlDbContextModelSnapshot : ModelSnapshot { protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder .HasAnnotation("Npgsql:Enum:onlyoffice.enum_dbip_location", "ipv4,ipv6") .HasAnnotation("Relational:MaxIdentifierLength", 63) .HasAnnotation("ProductVersion", "5.0.10") .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); modelBuilder.Entity("ASC.Core.Common.EF.Model.DbipLocation", b => { b.Property("Id") .ValueGeneratedOnAdd() .HasColumnType("integer") .HasColumnName("id") .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); b.Property("AddrType") .HasColumnType("text"); b.Property("City") .IsRequired() .HasMaxLength(255) .HasColumnType("character varying(255)") .HasColumnName("city"); b.Property("Country") .IsRequired() .HasMaxLength(2) .HasColumnType("character varying(2)") .HasColumnName("country"); b.Property("District") .ValueGeneratedOnAdd() .HasMaxLength(255) .HasColumnType("character varying(255)") .HasColumnName("district") .HasDefaultValueSql("NULL"); b.Property("GeonameId") .HasColumnType("integer") .HasColumnName("geoname_id"); b.Property("IPEnd") .IsRequired() .HasMaxLength(39) .HasColumnType("character varying(39)") .HasColumnName("ip_end"); b.Property("IPStart") .IsRequired() .HasMaxLength(39) .HasColumnType("character varying(39)") .HasColumnName("ip_start"); b.Property("Latitude") .HasColumnType("bigint") .HasColumnName("latitude"); b.Property("Longitude") .HasColumnType("bigint") .HasColumnName("longitude"); b.Property("Processed") .ValueGeneratedOnAdd() .HasColumnType("integer") .HasColumnName("processed") .HasDefaultValueSql("1"); b.Property("StateProv") .IsRequired() .HasMaxLength(255) .HasColumnType("character varying(255)") .HasColumnName("stateprov"); b.Property("TimezoneName") .ValueGeneratedOnAdd() .HasMaxLength(255) .HasColumnType("character varying(255)") .HasColumnName("timezone_name") .HasDefaultValueSql("NULL"); b.Property("TimezoneOffset") .HasColumnType("double precision") .HasColumnName("timezone_offset"); b.Property("ZipCode") .ValueGeneratedOnAdd() .HasMaxLength(255) .HasColumnType("character varying(255)") .HasColumnName("zipcode") .HasDefaultValueSql("NULL"); b.HasKey("Id"); b.HasIndex("IPStart") .HasDatabaseName("ip_start"); b.ToTable("dbip_location", "onlyoffice"); }); modelBuilder.Entity("ASC.Core.Common.EF.Model.MobileAppInstall", b => { b.Property("UserEmail") .HasMaxLength(255) .HasColumnType("character varying(255)") .HasColumnName("user_email"); b.Property("AppType") .HasColumnType("integer") .HasColumnName("app_type"); b.Property("LastSign") .HasColumnType("timestamp without time zone") .HasColumnName("last_sign"); b.Property("RegisteredOn") .HasColumnType("timestamp without time zone") .HasColumnName("registered_on"); b.HasKey("UserEmail", "AppType") .HasName("mobile_app_install_pkey"); b.ToTable("mobile_app_install", "onlyoffice"); }); modelBuilder.Entity("ASC.Core.Common.EF.Model.Regions", b => { b.Property("Region") .HasColumnType("text"); b.Property("ConnectionString") .HasColumnType("text"); b.Property("Provider") .HasColumnType("text"); b.HasKey("Region"); b.ToTable("Regions"); }); #pragma warning restore 612, 618 } } }