DocSpace-buildtools/migrations/postgre/CoreDbContext/CoreDbContextModelSnapshot.cs

204 lines
8.1 KiB
C#
Raw Normal View History

2021-10-26 13:14:40 +00:00
// <auto-generated />
2022-07-01 11:27:28 +00:00
using System;
using ASC.Core.Common.EF;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
2022-07-22 19:34:48 +00:00
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
2022-07-01 11:27:28 +00:00
#nullable disable
2021-10-26 13:14:40 +00:00
2022-07-24 13:02:00 +00:00
namespace ASC.Migrations.PostgreSql.Migrations
2021-10-26 13:14:40 +00:00
{
2022-07-24 13:02:00 +00:00
[DbContext(typeof(CoreDbContext))]
partial class CoreDbContextModelSnapshot : ModelSnapshot
2021-10-26 13:14:40 +00:00
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
2022-07-22 19:34:48 +00:00
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
2022-07-01 11:27:28 +00:00
.HasAnnotation("ProductVersion", "6.0.4")
2022-07-22 19:34:48 +00:00
.HasAnnotation("Relational:MaxIdentifierLength", 63);
2021-10-26 13:14:40 +00:00
modelBuilder.Entity("ASC.Core.Common.EF.DbButton", b =>
{
b.Property<int>("TariffId")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("tariff_id");
b.Property<string>("PartnerId")
2022-07-22 19:34:48 +00:00
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("partner_id");
2021-10-26 13:14:40 +00:00
b.Property<string>("ButtonUrl")
.IsRequired()
.HasColumnType("text")
2022-07-22 19:34:48 +00:00
.HasColumnName("button_url");
2021-10-26 13:14:40 +00:00
b.HasKey("TariffId", "PartnerId")
2022-07-22 19:34:48 +00:00
.HasName("tenants_buttons_pkey");
2021-10-26 13:14:40 +00:00
2022-07-22 19:34:48 +00:00
b.ToTable("tenants_buttons", "onlyoffice");
2021-10-26 13:14:40 +00:00
});
modelBuilder.Entity("ASC.Core.Common.EF.DbQuota", b =>
{
b.Property<int>("Tenant")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("tenant");
b.Property<int>("ActiveUsers")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("active_users");
2021-10-26 13:14:40 +00:00
b.Property<string>("AvangateId")
2022-07-22 19:34:48 +00:00
.ValueGeneratedOnAdd()
.HasMaxLength(128)
.HasColumnType("character varying(128)")
2021-10-26 13:14:40 +00:00
.HasColumnName("avangate_id")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("NULL");
2021-10-26 13:14:40 +00:00
b.Property<string>("Description")
2022-07-22 19:34:48 +00:00
.HasColumnType("character varying")
.HasColumnName("description");
2021-10-26 13:14:40 +00:00
b.Property<string>("Features")
.HasColumnType("text")
2022-07-22 19:34:48 +00:00
.HasColumnName("features");
2021-10-26 13:14:40 +00:00
b.Property<long>("MaxFileSize")
.ValueGeneratedOnAdd()
2021-10-26 13:14:40 +00:00
.HasColumnType("bigint")
.HasColumnName("max_file_size")
.HasDefaultValueSql("'0'");
2021-10-26 13:14:40 +00:00
b.Property<long>("MaxTotalSize")
.ValueGeneratedOnAdd()
2021-10-26 13:14:40 +00:00
.HasColumnType("bigint")
.HasColumnName("max_total_size")
.HasDefaultValueSql("'0'");
2021-10-26 13:14:40 +00:00
b.Property<string>("Name")
2022-07-22 19:34:48 +00:00
.HasColumnType("character varying")
.HasColumnName("name");
2021-10-26 13:14:40 +00:00
b.Property<decimal>("Price")
.ValueGeneratedOnAdd()
2022-07-22 19:34:48 +00:00
.HasColumnType("numeric(10,2)")
.HasColumnName("price")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("0.00");
2021-10-26 13:14:40 +00:00
2022-07-11 15:33:57 +00:00
b.Property<bool>("Visible")
2022-07-22 19:34:48 +00:00
.HasColumnType("boolean")
.HasColumnName("visible");
2021-10-26 13:14:40 +00:00
b.HasKey("Tenant")
2022-07-22 19:34:48 +00:00
.HasName("tenants_quota_pkey");
2021-10-26 13:14:40 +00:00
2022-07-22 19:34:48 +00:00
b.ToTable("tenants_quota", "onlyoffice");
2021-10-26 13:14:40 +00:00
b.HasData(
new
{
Tenant = -1,
ActiveUsers = 10000,
AvangateId = "0",
2022-07-11 15:33:57 +00:00
Features = "domain,audit,controlpanel,healthcheck,ldap,sso,whitelabel,branding,ssbranding,update,support,portals:10000,discencryption,privacyroom,restore",
2021-10-26 13:14:40 +00:00
MaxFileSize = 102400L,
MaxTotalSize = 10995116277760L,
Name = "default",
Price = 0.00m,
2022-07-11 15:33:57 +00:00
Visible = false
2021-10-26 13:14:40 +00:00
});
});
modelBuilder.Entity("ASC.Core.Common.EF.DbQuotaRow", b =>
{
b.Property<int>("Tenant")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("tenant");
b.Property<string>("Path")
2022-07-22 19:34:48 +00:00
.HasMaxLength(255)
.HasColumnType("character varying(255)")
.HasColumnName("path");
2021-10-26 13:14:40 +00:00
b.Property<long>("Counter")
.ValueGeneratedOnAdd()
2021-10-26 13:14:40 +00:00
.HasColumnType("bigint")
.HasColumnName("counter")
.HasDefaultValueSql("'0'");
2021-10-26 13:14:40 +00:00
b.Property<DateTime>("LastModified")
2022-07-22 19:34:48 +00:00
.ValueGeneratedOnAdd()
.HasColumnType("timestamp with time zone")
.HasColumnName("last_modified")
.HasDefaultValueSql("CURRENT_TIMESTAMP");
2021-10-26 13:14:40 +00:00
b.Property<string>("Tag")
2022-07-22 19:34:48 +00:00
.ValueGeneratedOnAdd()
.HasMaxLength(1024)
.HasColumnType("character varying(1024)")
2021-10-26 13:14:40 +00:00
.HasColumnName("tag")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("'0'");
2021-10-26 13:14:40 +00:00
b.HasKey("Tenant", "Path")
2022-07-22 19:34:48 +00:00
.HasName("tenants_quotarow_pkey");
2021-10-26 13:14:40 +00:00
b.HasIndex("LastModified")
2022-07-22 19:34:48 +00:00
.HasDatabaseName("last_modified_tenants_quotarow");
2021-10-26 13:14:40 +00:00
2022-07-22 19:34:48 +00:00
b.ToTable("tenants_quotarow", "onlyoffice");
2021-10-26 13:14:40 +00:00
});
modelBuilder.Entity("ASC.Core.Common.EF.DbTariff", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("id")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
2021-10-26 13:14:40 +00:00
b.Property<string>("Comment")
2022-07-22 19:34:48 +00:00
.ValueGeneratedOnAdd()
.HasMaxLength(255)
.HasColumnType("character varying(255)")
2021-10-26 13:14:40 +00:00
.HasColumnName("comment")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("NULL");
2021-10-26 13:14:40 +00:00
b.Property<DateTime>("CreateOn")
2022-07-22 19:34:48 +00:00
.ValueGeneratedOnAdd()
.HasColumnType("timestamp with time zone")
.HasColumnName("create_on")
.HasDefaultValueSql("CURRENT_TIMESTAMP");
2021-10-26 13:14:40 +00:00
b.Property<int>("Quantity")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("quantity");
2021-10-26 13:14:40 +00:00
b.Property<DateTime>("Stamp")
2022-07-22 19:34:48 +00:00
.HasColumnType("timestamp with time zone")
2021-10-26 13:14:40 +00:00
.HasColumnName("stamp");
b.Property<int>("Tariff")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("tariff");
b.Property<int>("Tenant")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("tenant");
b.HasKey("Id");
b.HasIndex("Tenant")
2022-07-22 19:34:48 +00:00
.HasDatabaseName("tenant_tenants_tariff");
2022-07-22 19:34:48 +00:00
b.ToTable("tenants_tariff", "onlyoffice");
2021-10-26 13:14:40 +00:00
});
#pragma warning restore 612, 618
}
}
}