2022-07-24 13:02:00 +00:00
|
|
|
// <auto-generated />
|
|
|
|
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(CustomDbContext))]
|
|
|
|
partial class CustomDbContextModelSnapshot : ModelSnapshot
|
|
|
|
{
|
|
|
|
protected override void BuildModel(ModelBuilder modelBuilder)
|
|
|
|
{
|
|
|
|
#pragma warning disable 612, 618
|
|
|
|
modelBuilder
|
|
|
|
.HasAnnotation("Npgsql:Enum:onlyoffice.enum_dbip_location", "ipv4,ipv6")
|
|
|
|
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
|
|
|
|
.HasAnnotation("ProductVersion", "6.0.4")
|
|
|
|
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
|
|
|
|
|
|
|
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbipLocation", b =>
|
|
|
|
{
|
|
|
|
b.Property<int>("Id")
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
.HasColumnType("integer")
|
|
|
|
.HasColumnName("id")
|
|
|
|
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
|
|
|
|
|
|
|
|
b.Property<string>("AddrType")
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
b.Property<string>("City")
|
|
|
|
.IsRequired()
|
|
|
|
.HasMaxLength(255)
|
|
|
|
.HasColumnType("character varying(255)")
|
|
|
|
.HasColumnName("city");
|
|
|
|
|
|
|
|
b.Property<string>("Country")
|
|
|
|
.IsRequired()
|
|
|
|
.HasMaxLength(2)
|
|
|
|
.HasColumnType("character varying(2)")
|
|
|
|
.HasColumnName("country");
|
|
|
|
|
|
|
|
b.Property<string>("District")
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
.HasMaxLength(255)
|
|
|
|
.HasColumnType("character varying(255)")
|
|
|
|
.HasColumnName("district")
|
|
|
|
.HasDefaultValueSql("NULL");
|
|
|
|
|
|
|
|
b.Property<int?>("GeonameId")
|
|
|
|
.HasColumnType("integer")
|
|
|
|
.HasColumnName("geoname_id");
|
|
|
|
|
|
|
|
b.Property<string>("IPEnd")
|
|
|
|
.IsRequired()
|
|
|
|
.HasMaxLength(39)
|
|
|
|
.HasColumnType("character varying(39)")
|
|
|
|
.HasColumnName("ip_end");
|
|
|
|
|
|
|
|
b.Property<string>("IPStart")
|
|
|
|
.IsRequired()
|
|
|
|
.HasMaxLength(39)
|
|
|
|
.HasColumnType("character varying(39)")
|
|
|
|
.HasColumnName("ip_start");
|
|
|
|
|
|
|
|
b.Property<long?>("Latitude")
|
|
|
|
.HasColumnType("bigint")
|
|
|
|
.HasColumnName("latitude");
|
|
|
|
|
|
|
|
b.Property<long?>("Longitude")
|
|
|
|
.HasColumnType("bigint")
|
|
|
|
.HasColumnName("longitude");
|
|
|
|
|
|
|
|
b.Property<int>("Processed")
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
.HasColumnType("integer")
|
|
|
|
.HasColumnName("processed")
|
|
|
|
.HasDefaultValueSql("1");
|
|
|
|
|
|
|
|
b.Property<string>("StateProv")
|
|
|
|
.IsRequired()
|
|
|
|
.HasMaxLength(255)
|
|
|
|
.HasColumnType("character varying(255)")
|
|
|
|
.HasColumnName("stateprov");
|
|
|
|
|
|
|
|
b.Property<string>("TimezoneName")
|
|
|
|
.ValueGeneratedOnAdd()
|
|
|
|
.HasMaxLength(255)
|
|
|
|
.HasColumnType("character varying(255)")
|
|
|
|
.HasColumnName("timezone_name")
|
|
|
|
.HasDefaultValueSql("NULL");
|
|
|
|
|
|
|
|
b.Property<double?>("TimezoneOffset")
|
|
|
|
.HasColumnType("double precision")
|
|
|
|
.HasColumnName("timezone_offset");
|
|
|
|
|
|
|
|
b.Property<string>("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<string>("UserEmail")
|
|
|
|
.HasMaxLength(255)
|
|
|
|
.HasColumnType("character varying(255)")
|
|
|
|
.HasColumnName("user_email");
|
|
|
|
|
|
|
|
b.Property<int>("AppType")
|
|
|
|
.HasColumnType("integer")
|
|
|
|
.HasColumnName("app_type");
|
|
|
|
|
|
|
|
b.Property<DateTime?>("LastSign")
|
|
|
|
.HasColumnType("timestamp with time zone")
|
|
|
|
.HasColumnName("last_sign");
|
|
|
|
|
|
|
|
b.Property<DateTime>("RegisteredOn")
|
|
|
|
.HasColumnType("timestamp with 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<string>("Region")
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
b.Property<string>("ConnectionString")
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
b.Property<string>("Provider")
|
|
|
|
.HasColumnType("text");
|
|
|
|
|
|
|
|
b.HasKey("Region");
|
|
|
|
|
|
|
|
b.ToTable("Regions");
|
|
|
|
});
|
|
|
|
#pragma warning restore 612, 618
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|