From baebec8817682fb5f396862e7c45af9dba277fd2 Mon Sep 17 00:00:00 2001 From: pavelbannov Date: Wed, 26 Jul 2023 18:36:30 +0300 Subject: [PATCH] Migrations: removed unused --- ...121634_MigrationContextMigrate.Designer.cs | 6849 ----------------- .../20230621121634_MigrationContextMigrate.cs | 2322 ------ ...4717_MigrationContext_Upgrade1.Designer.cs | 6849 ----------------- ...0230621124717_MigrationContext_Upgrade1.cs | 633 -- .../MigrationContextModelSnapshot.cs | 6846 ---------------- 5 files changed, 23499 deletions(-) delete mode 100644 migrations/postgre/MigrationContext/20230621121634_MigrationContextMigrate.Designer.cs delete mode 100644 migrations/postgre/MigrationContext/20230621121634_MigrationContextMigrate.cs delete mode 100644 migrations/postgre/MigrationContext/20230621124717_MigrationContext_Upgrade1.Designer.cs delete mode 100644 migrations/postgre/MigrationContext/20230621124717_MigrationContext_Upgrade1.cs delete mode 100644 migrations/postgre/MigrationContext/MigrationContextModelSnapshot.cs diff --git a/migrations/postgre/MigrationContext/20230621121634_MigrationContextMigrate.Designer.cs b/migrations/postgre/MigrationContext/20230621121634_MigrationContextMigrate.Designer.cs deleted file mode 100644 index 5bdd85d4e6..0000000000 --- a/migrations/postgre/MigrationContext/20230621121634_MigrationContextMigrate.Designer.cs +++ /dev/null @@ -1,6849 +0,0 @@ -// -using System; -using ASC.Migrations.Core; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; - -#nullable disable - -namespace ASC.Migrations.PostgreSql.Migrations -{ - [DbContext(typeof(MigrationContext))] - [Migration("20230130103905_CoreDbContextMigrate")] - partial class MigrationContextMigrate - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn) - .HasAnnotation("ProductVersion", "7.0.2") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - modelBuilder.Entity("ASC.Core.Common.EF.Acl", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Subject") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("subject"); - - b.Property("Action") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("action"); - - b.Property("Object") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("object") - .HasDefaultValueSql("''"); - - b.Property("AceType") - .HasColumnType("integer") - .HasColumnName("acetype"); - - b.HasKey("TenantId", "Subject", "Action", "Object") - .HasName("core_acl_pkey"); - - b.ToTable("core_acl", "onlyoffice"); - - b.HasData( - new - { - TenantId = -1, - Subject = new Guid("5d5b7260-f7f7-49f1-a1c9-95fbb6a12604"), - Action = new Guid("ef5e6790-f346-4b6e-b662-722bc28cb0db"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("5d5b7260-f7f7-49f1-a1c9-95fbb6a12604"), - Action = new Guid("f11e8f3f-46e6-4e55-90e3-09c22ec565bd"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("088d5940-a80f-4403-9741-d610718ce95c"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("08d66144-e1c9-4065-9aa1-aa4bba0a7bc8"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("08d75c97-cf3f-494b-90d1-751c941fe2dd"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("0d1f72a8-63da-47ea-ae42-0900e4ac72a9"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("13e30b51-5b4d-40a5-8575-cb561899eeb1"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("19f658ae-722b-4cd8-8236-3ad150801d96"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("2c6552b3-b2e0-4a00-b8fd-13c161e337b1"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("388c29d3-c662-4a61-bf47-fc2f7094224a"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("40bf31f4-3132-4e76-8d5c-9828a89501a3"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("49ae8915-2b30-4348-ab74-b152279364fb"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("63e9f35f-6bb5-4fb1-afaa-e4c2f4dec9bd"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("9018c001-24c2-44bf-a1db-d1121a570e74"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("948ad738-434b-4a88-8e38-7569d332910a"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("9d75a568-52aa-49d8-ad43-473756cd8903"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("a362fe79-684e-4d43-a599-65bc1f4e167f"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("c426c349-9ad4-47cd-9b8f-99fc30675951"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("d11ebcb9-0e6e-45e6-a6d0-99c41d687598"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("d1f3b53d-d9e2-4259-80e7-d24380978395"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("d49f4e30-da10-4b39-bc6d-b41ef6e039d3"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("d852b66f-6719-45e1-8657-18f0bb791690"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("e0759a42-47f0-4763-a26a-d5aa665bec35"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("e37239bd-c5b5-4f1e-a9f8-3ceeac209615"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("fbc37705-a04c-40ad-a68c-ce2f0423f397"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("fcac42b8-9386-48eb-a938-d19b3c576912"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("13e30b51-5b4d-40a5-8575-cb561899eeb1"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("49ae8915-2b30-4348-ab74-b152279364fb"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("63e9f35f-6bb5-4fb1-afaa-e4c2f4dec9bd"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("9018c001-24c2-44bf-a1db-d1121a570e74"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("d1f3b53d-d9e2-4259-80e7-d24380978395"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("e0759a42-47f0-4763-a26a-d5aa665bec35"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("e37239bd-c5b5-4f1e-a9f8-3ceeac209615"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("f11e88d7-f185-4372-927c-d88008d2c483"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("f11e8f3f-46e6-4e55-90e3-09c22ec565bd"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("00e7dfc5-ac49-4fd3-a1d6-98d84e877ac4"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("14be970f-7af5-4590-8e81-ea32b5f7866d"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("18ecc94d-6afa-4994-8406-aee9dff12ce2"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("298530eb-435e-4dc6-a776-9abcd95c70e9"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("430eaf70-1886-483c-a746-1a18e3e6bb63"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("557d6503-633b-4490-a14c-6473147ce2b3"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("724cbb75-d1c9-451e-bae0-4de0db96b1f7"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("7cb5c0d1-d254-433f-abe3-ff23373ec631"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("91b29dcd-9430-4403-b17a-27d09189be88"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("a18480a4-6d18-4c71-84fa-789888791f45"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("b630d29b-1844-4bda-bbbe-cf5542df3559"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("c62a9e8d-b24c-4513-90aa-7ff0f8ba38eb"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("d7cdb020-288b-41e5-a857-597347618533"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("662f3db7-9bc8-42cf-84da-2765f563e9b0"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("712d9ec3-5d2b-4b13-824f-71f00191dcca"), - Action = new Guid("e0759a42-47f0-4763-a26a-d5aa665bec35"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("0d68b142-e20a-446e-a832-0d6b0b65a164"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("6f05c382-8bca-4469-9424-c807a98c40d7"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|1e04460243b54d7982f3fd6208a11960", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|6743007c6f954d208c88a8601ce5e76d", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|e67be73df9ae4ce18fec1880cb518cb4", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|ea942538e68e49079394035336ee0ba8", - AceType = 1 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|32d24cb57ece46069c9419216ba42086", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|bf88953e3c434850a3fbb1e43ad53a3e", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|2a9230378b2d487b9a225ac0918acf3f", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|f4d98afdd336433287783c6945c81ea0", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|28b10049dd204f54b986873bc14ccfc7", - AceType = 1 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|3cfd481b46f24a4ab55cb8c0c9def02c", - AceType = 1 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|6a598c7491ae437da5f4ad339bd11bb2", - AceType = 1 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|742cf945cbbc4a5782d61600a12cf8ca", - AceType = 1 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|853b6eb973ee438d9b098ffeedf36234", - AceType = 1 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|46cfa73af32046cf8d5bcd82e1d67f26", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|37620ae5c40b45ce855a39dd7d76a1fa", - AceType = 0 - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("id"); - - b.Property("CategoryId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("categoryid") - .HasDefaultValueSql("NULL"); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("name"); - - b.Property("ParentId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("parentid") - .HasDefaultValueSql("NULL"); - - b.Property("Removed") - .HasColumnType("boolean") - .HasColumnName("removed"); - - b.Property("Sid") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("sid") - .HasDefaultValueSql("NULL"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.HasKey("Id"); - - b.HasIndex("LastModified") - .HasDatabaseName("last_modified"); - - b.HasIndex("TenantId", "ParentId") - .HasDatabaseName("parentid"); - - b.ToTable("core_group", (string)null); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbQuota", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Description") - .HasColumnType("character varying") - .HasColumnName("description"); - - b.Property("Features") - .HasColumnType("text") - .HasColumnName("features"); - - b.Property("Name") - .HasColumnType("character varying") - .HasColumnName("name"); - - b.Property("Price") - .ValueGeneratedOnAdd() - .HasColumnType("numeric(10,2)") - .HasColumnName("price") - .HasDefaultValueSql("0.00"); - - b.Property("ProductId") - .ValueGeneratedOnAdd() - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("product_id") - .HasDefaultValueSql("NULL"); - - b.Property("Visible") - .HasColumnType("boolean") - .HasColumnName("visible"); - - b.HasKey("TenantId") - .HasName("tenants_quota_pkey"); - - b.ToTable("tenants_quota", "onlyoffice"); - - b.HasData( - new - { - TenantId = -1, - Features = "trial,audit,ldap,sso,whitelabel,thirdparty,restore,oauth,total_size:107374182400,file_size:100,manager:1", - Name = "trial", - Price = 0m, - Visible = false - }, - new - { - TenantId = -2, - Features = "audit,ldap,sso,whitelabel,thirdparty,restore,oauth,contentsearch,total_size:107374182400,file_size:1024,manager:1", - Name = "admin", - Price = 30m, - ProductId = "1002", - Visible = true - }, - new - { - TenantId = -3, - Features = "free,total_size:2147483648,manager:3,room:12", - Name = "startup", - Price = 0m, - Visible = false - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbQuotaRow", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Path") - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("path"); - - b.Property("Counter") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasColumnName("counter") - .HasDefaultValueSql("'0'"); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("Tag") - .ValueGeneratedOnAdd() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .HasColumnName("tag") - .HasDefaultValueSql("'0'"); - - b.Property("UserId") - .ValueGeneratedOnAdd() - .HasMaxLength(36) - .HasColumnType("uuid") - .HasColumnName("user_id") - .HasDefaultValueSql("NULL"); - - b.HasKey("TenantId", "Path") - .HasName("tenants_quotarow_pkey"); - - b.HasIndex("LastModified") - .HasDatabaseName("last_modified_tenants_quotarow"); - - b.ToTable("tenants_quotarow", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbSubscriptionMethod", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Source") - .HasMaxLength(38) - .HasColumnType("character varying(38)") - .HasColumnName("source"); - - b.Property("Action") - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("action"); - - b.Property("Recipient") - .HasMaxLength(38) - .HasColumnType("character varying(38)") - .HasColumnName("recipient"); - - b.Property("Sender") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .HasColumnName("sender"); - - b.HasKey("TenantId", "Source", "Action", "Recipient") - .HasName("core_subscriptionmethod_pkey"); - - b.ToTable("core_subscriptionmethod", "onlyoffice"); - - b.HasData( - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "send_whats_new", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender" - }, - new - { - TenantId = -1, - Source = "6504977c-75af-4691-9099-084d3ddeea04", - Action = "new feed", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6a598c74-91ae-437d-a5f4-ad339bd11bb2", - Action = "new post", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "853b6eb9-73ee-438d-9b09-8ffeedf36234", - Action = "new topic in forum", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "9d51954f-db9b-4aed-94e3-ed70b914e101", - Action = "new photo uploaded", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "28b10049-dd20-4f54-b986-873bc14ccfc7", - Action = "new bookmark created", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "742cf945-cbbc-4a57-82d6-1600a12cf8ca", - Action = "new wiki page", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "37620ae5-c40b-45ce-855a-39dd7d76a1fa", - Action = "BirthdayReminder", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", - Action = "sharedocument", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", - Action = "sharefolder", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", - Action = "updatedocument", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "invitetoproject", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "milestonedeadline", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "newcommentformessage", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "newcommentformilestone", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "newcommentfortask", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "projectcreaterequest", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "projecteditrequest", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "removefromproject", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "responsibleforproject", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "responsiblefortask", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "taskclosed", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "40650da3-f7c1-424c-8c89-b9c115472e08", - Action = "calendar_sharing", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "40650da3-f7c1-424c-8c89-b9c115472e08", - Action = "event_alert", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "admin_notify", - Recipient = "cd84e66b-b803-40fc-99f9-b2969a54a1de", - Sender = "email.sender" - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "SetAccess", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "ResponsibleForTask", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "AddRelationshipEvent", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "ExportCompleted", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "CreateNewContact", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "ResponsibleForOpportunity", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "periodic_notify", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender" - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbTariff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Comment") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("comment") - .HasDefaultValueSql("NULL"); - - b.Property("CreateOn") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("create_on") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("CustomerId") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("customer_id") - .HasDefaultValueSql("NULL"); - - b.Property("Stamp") - .HasColumnType("timestamp with time zone") - .HasColumnName("stamp"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.HasKey("Id"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_tenants_tariff"); - - b.ToTable("tenants_tariff", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbTariffRow", b => - { - b.Property("TenantId") - .HasColumnType("int") - .HasColumnName("tenant"); - - b.Property("TariffId") - .HasColumnType("int") - .HasColumnName("tariff_id"); - - b.Property("Quota") - .HasColumnType("int") - .HasColumnName("quota"); - - b.Property("Quantity") - .HasColumnType("int") - .HasColumnName("quantity"); - - b.HasKey("TenantId", "TariffId", "Quota") - .HasName("PRIMARY"); - - b.ToTable("tenants_tariffrow", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.FireBaseUser", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Application") - .HasMaxLength(20) - .HasColumnType("character varying(20)") - .HasColumnName("application"); - - b.Property("FirebaseDeviceToken") - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("firebase_device_token"); - - b.Property("IsSubscribed") - .HasColumnType("boolean") - .HasColumnName("is_subscribed"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("UserId") - .HasMaxLength(36) - .HasColumnType("uuid") - .HasColumnName("user_id"); - - b.HasKey("Id") - .HasName("firebase_users_pkey"); - - b.HasIndex("TenantId", "UserId") - .HasDatabaseName("user_id"); - - b.ToTable("firebase_users", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.AccountLinks", b => - { - b.Property("Id") - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("id"); - - b.Property("UId") - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("uid"); - - b.Property("Linked") - .HasColumnType("timestamp with time zone") - .HasColumnName("linked"); - - b.Property("Profile") - .IsRequired() - .HasColumnType("text") - .HasColumnName("profile"); - - b.Property("Provider") - .ValueGeneratedOnAdd() - .HasMaxLength(60) - .HasColumnType("character(60)") - .HasColumnName("provider") - .HasDefaultValueSql("NULL") - .IsFixedLength(); - - b.HasKey("Id", "UId") - .HasName("account_links_pkey"); - - b.HasIndex("UId") - .HasDatabaseName("uid"); - - b.ToTable("account_links", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbCoreSettings", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Id") - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("id"); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("Value") - .IsRequired() - .HasColumnType("bytea") - .HasColumnName("value"); - - b.HasKey("TenantId", "Id") - .HasName("core_settings_pkey"); - - b.ToTable("core_settings", "onlyoffice"); - - b.HasData( - new - { - TenantId = -1, - Id = "CompanyWhiteLabelSettings", - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Value = new byte[] { 245, 71, 4, 138, 72, 101, 23, 21, 135, 217, 206, 188, 138, 73, 108, 96, 29, 150, 3, 31, 44, 28, 62, 145, 96, 53, 57, 66, 238, 118, 93, 172, 211, 22, 244, 181, 244, 40, 146, 67, 111, 196, 162, 27, 154, 109, 248, 255, 181, 17, 253, 127, 42, 65, 19, 90, 26, 206, 203, 145, 159, 159, 243, 105, 24, 71, 188, 165, 53, 85, 57, 37, 186, 251, 57, 96, 18, 162, 218, 80, 0, 101, 250, 100, 66, 97, 24, 51, 240, 215, 216, 169, 105, 100, 15, 253, 29, 83, 182, 236, 203, 53, 68, 251, 2, 150, 149, 148, 58, 136, 84, 37, 151, 82, 92, 227, 30, 52, 111, 40, 154, 155, 7, 126, 149, 100, 169, 87, 10, 129, 228, 138, 177, 101, 77, 67, 177, 216, 189, 201, 1, 213, 136, 216, 107, 198, 253, 221, 106, 255, 198, 17, 68, 14, 110, 90, 174, 182, 68, 222, 188, 77, 157, 19, 26, 68, 86, 97, 15, 81, 24, 171, 214, 114, 191, 175, 56, 56, 48, 52, 125, 82, 253, 113, 71, 41, 201, 5, 8, 118, 162, 191, 99, 196, 48, 198, 223, 79, 204, 174, 31, 97, 236, 20, 213, 218, 85, 34, 16, 74, 196, 209, 235, 14, 71, 209, 32, 131, 195, 84, 11, 66, 74, 19, 115, 255, 99, 69, 235, 210, 204, 15, 13, 4, 143, 127, 152, 125, 212, 91 } - }, - new - { - TenantId = -1, - Id = "FullTextSearchSettings", - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Value = new byte[] { 8, 120, 207, 5, 153, 181, 23, 202, 162, 211, 218, 237, 157, 6, 76, 62, 220, 238, 175, 67, 31, 53, 166, 246, 66, 220, 173, 160, 72, 23, 227, 81, 50, 39, 187, 177, 222, 110, 43, 171, 235, 158, 16, 119, 178, 207, 49, 140, 72, 152, 20, 84, 94, 135, 117, 1, 246, 51, 251, 190, 148, 2, 44, 252, 221, 2, 91, 83, 149, 151, 58, 245, 16, 148, 52, 8, 187, 86, 150, 46, 227, 93, 163, 95, 47, 131, 116, 207, 95, 209, 38, 149, 53, 148, 73, 215, 206, 251, 194, 199, 189, 17, 42, 229, 135, 82, 23, 154, 162, 165, 158, 94, 23, 128, 30, 88, 12, 204, 96, 250, 236, 142, 189, 211, 214, 18, 196, 136, 102, 102, 217, 109, 108, 240, 96, 96, 94, 100, 201, 10, 31, 170, 128, 192 } - }, - new - { - TenantId = -1, - Id = "SmtpSettings", - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Value = new byte[] { 240, 82, 224, 144, 161, 163, 117, 13, 173, 205, 78, 153, 97, 218, 4, 170, 81, 239, 1, 151, 226, 192, 98, 60, 241, 44, 88, 56, 191, 164, 10, 155, 72, 186, 239, 203, 227, 113, 88, 119, 49, 215, 227, 220, 158, 124, 96, 9, 116, 47, 158, 65, 93, 86, 219, 15, 10, 224, 142, 50, 248, 144, 75, 44, 68, 28, 198, 87, 198, 69, 67, 234, 238, 38, 32, 68, 162, 139, 67, 53, 220, 176, 240, 196, 233, 64, 29, 137, 31, 160, 99, 105, 249, 132, 202, 45, 71, 92, 134, 194, 55, 145, 121, 97, 197, 130, 119, 105, 131, 21, 133, 35, 10, 102, 172, 119, 135, 230, 251, 86, 253, 62, 55, 56, 146, 103, 164, 106 } - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbIPLookup", b => - { - b.Property("AddrType") - .HasColumnType("enum('ipv4','ipv6')") - .HasColumnName("addr_type"); - - b.Property("IPStart") - .HasColumnType("varbinary(16)") - .HasColumnName("ip_start"); - - b.Property("City") - .IsRequired() - .HasColumnType("varchar(80)") - .HasColumnName("city"); - - b.Property("Continent") - .IsRequired() - .HasColumnType("char(2)") - .HasColumnName("continent"); - - b.Property("Country") - .IsRequired() - .HasColumnType("char(2)") - .HasColumnName("country"); - - b.Property("District") - .IsRequired() - .HasColumnType("varchar(80)") - .HasColumnName("district"); - - b.Property("GeonameId") - .HasColumnType("int(10)") - .HasColumnName("geoname_id"); - - b.Property("IPEnd") - .IsRequired() - .HasColumnType("varbinary(16)") - .HasColumnName("ip_end"); - - b.Property("Latitude") - .HasColumnType("float") - .HasColumnName("latitude"); - - b.Property("Longitude") - .HasColumnType("float") - .HasColumnName("longitude"); - - b.Property("StateProv") - .IsRequired() - .HasColumnType("varchar(80)") - .HasColumnName("stateprov"); - - b.Property("StateProvCode") - .HasColumnType("varchar(15)") - .HasColumnName("stateprov_code"); - - b.Property("TimezoneName") - .IsRequired() - .HasColumnType("varchar(64)") - .HasColumnName("timezone_name"); - - b.Property("TimezoneOffset") - .HasColumnType("float") - .HasColumnName("timezone_offset"); - - b.Property("WeatherCode") - .IsRequired() - .HasColumnType("varchar(10)") - .HasColumnName("weather_code"); - - b.Property("ZipCode") - .HasColumnType("varchar(20)") - .HasColumnName("zipcode"); - - b.HasKey("AddrType", "IPStart"); - - b.ToTable("dbip_lookup", (string)null); - - b.HasAnnotation("MySql:CharSet", "utf8mb4"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Alias") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("character varying(100)") - .HasColumnName("alias"); - - b.Property("Calls") - .ValueGeneratedOnAdd() - .HasColumnType("boolean") - .HasColumnName("calls") - .HasDefaultValueSql("true"); - - b.Property("CreationDateTime") - .HasColumnType("timestamp with time zone") - .HasColumnName("creationdatetime"); - - b.Property("Industry") - .HasColumnType("integer") - .HasColumnName("industry"); - - b.Property("Language") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(10) - .HasColumnType("character(10)") - .HasColumnName("language") - .HasDefaultValueSql("'en-US'") - .IsFixedLength(); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("MappedDomain") - .ValueGeneratedOnAdd() - .HasMaxLength(100) - .HasColumnType("character varying(100)") - .HasColumnName("mappeddomain") - .HasDefaultValueSql("NULL"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("name"); - - b.Property("OwnerId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("owner_id") - .HasDefaultValueSql("NULL"); - - b.Property("PaymentId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("character varying(38)") - .HasColumnName("payment_id") - .HasDefaultValueSql("NULL"); - - b.Property("Spam") - .ValueGeneratedOnAdd() - .HasColumnType("boolean") - .HasColumnName("spam") - .HasDefaultValueSql("true"); - - b.Property("Status") - .HasColumnType("integer") - .HasColumnName("status"); - - b.Property("StatusChanged") - .HasColumnType("timestamp with time zone") - .HasColumnName("statuschanged"); - - b.Property("TimeZone") - .ValueGeneratedOnAdd() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("timezone") - .HasDefaultValueSql("NULL"); - - b.Property("TrustedDomainsEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("trusteddomainsenabled") - .HasDefaultValueSql("1"); - - b.Property("TrustedDomainsRaw") - .ValueGeneratedOnAdd() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .HasColumnName("trusteddomains") - .HasDefaultValueSql("NULL"); - - b.Property("Version") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("version") - .HasDefaultValueSql("2"); - - b.Property("Version_Changed") - .HasColumnType("timestamp with time zone") - .HasColumnName("version_changed"); - - b.HasKey("Id"); - - b.HasIndex("Alias") - .IsUnique() - .HasDatabaseName("alias"); - - b.HasIndex("LastModified") - .HasDatabaseName("last_modified_tenants_tenants"); - - b.HasIndex("MappedDomain") - .HasDatabaseName("mappeddomain"); - - b.HasIndex("Version") - .HasDatabaseName("version"); - - b.ToTable("tenants_tenants", "onlyoffice"); - - b.HasData( - new - { - Id = 1, - Alias = "localhost", - Calls = false, - CreationDateTime = new DateTime(2021, 3, 9, 17, 46, 59, 97, DateTimeKind.Utc).AddTicks(4317), - Industry = 0, - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Name = "Web Office", - OwnerId = new Guid("66faa6e4-f133-11ea-b126-00ffeec8b4ef"), - Spam = false, - Status = 0, - TrustedDomainsEnabled = 0, - Version = 0 - }, - new - { - Id = -1, - Alias = "settings", - Calls = false, - CreationDateTime = new DateTime(2021, 3, 9, 17, 46, 59, 97, DateTimeKind.Utc).AddTicks(4317), - Industry = 0, - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Name = "Web Office", - OwnerId = new Guid("00000000-0000-0000-0000-000000000000"), - Spam = false, - Status = 1, - TrustedDomainsEnabled = 0, - Version = 0 - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantForbiden", b => - { - b.Property("Address") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("address"); - - b.HasKey("Address") - .HasName("tenants_forbiden_pkey"); - - b.ToTable("tenants_forbiden", "onlyoffice"); - - b.HasData( - new - { - Address = "controlpanel" - }, - new - { - Address = "localhost" - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantVersion", b => - { - b.Property("Id") - .HasColumnType("integer") - .HasColumnName("id"); - - b.Property("DefaultVersion") - .HasColumnType("integer") - .HasColumnName("default_version"); - - b.Property("Url") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("url"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("version"); - - b.Property("Visible") - .HasColumnType("boolean") - .HasColumnName("visible"); - - b.HasKey("Id"); - - b.ToTable("tenants_version", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioIndex", b => - { - b.Property("IndexName") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("index_name"); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.HasKey("IndexName") - .HasName("webstudio_index_pkey"); - - b.ToTable("webstudio_index", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioSettings", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("TenantID"); - - b.Property("Id") - .HasMaxLength(64) - .HasColumnType("uuid") - .HasColumnName("ID"); - - b.Property("UserId") - .HasMaxLength(64) - .HasColumnType("uuid") - .HasColumnName("UserID"); - - b.Property("Data") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("TenantId", "Id", "UserId") - .HasName("webstudio_settings_pkey"); - - b.HasIndex("Id") - .HasDatabaseName("ID"); - - b.ToTable("webstudio_settings", "onlyoffice"); - - b.HasData( - new - { - TenantId = 1, - Id = new Guid("9a925891-1f92-4ed7-b277-d6f649739f06"), - UserId = new Guid("00000000-0000-0000-0000-000000000000"), - Data = "{\"Completed\":false}" - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioUserVisit", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenantid"); - - b.Property("VisitDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("visitdate"); - - b.Property("ProductId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("productid"); - - b.Property("UserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("userid"); - - b.Property("FirstVisitTime") - .HasColumnType("timestamp with time zone") - .HasColumnName("firstvisittime"); - - b.Property("LastVisitTime") - .HasColumnType("timestamp with time zone") - .HasColumnName("lastvisittime"); - - b.Property("VisitCount") - .HasColumnType("integer") - .HasColumnName("visitcount"); - - b.HasKey("TenantId", "VisitDate", "ProductId", "UserId") - .HasName("webstudio_uservisit_pkey"); - - b.HasIndex("VisitDate") - .HasDatabaseName("visitdate"); - - b.ToTable("webstudio_uservisit", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.FilesConverts", b => - { - b.Property("Input") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("input"); - - b.Property("Output") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("output"); - - b.HasKey("Input", "Output") - .HasName("files_converts_pkey"); - - b.ToTable("files_converts", "onlyoffice"); - - b.HasData( - new - { - Input = ".csv", - Output = ".ods" - }, - new - { - Input = ".csv", - Output = ".pdf" - }, - new - { - Input = ".csv", - Output = ".ots" - }, - new - { - Input = ".csv", - Output = ".xlsx" - }, - new - { - Input = ".csv", - Output = ".xlsm" - }, - new - { - Input = ".csv", - Output = ".xltm" - }, - new - { - Input = ".csv", - Output = ".xltx" - }, - new - { - Input = ".doc", - Output = ".docx" - }, - new - { - Input = ".doc", - Output = ".docm" - }, - new - { - Input = ".doc", - Output = ".dotm" - }, - new - { - Input = ".doc", - Output = ".dotx" - }, - new - { - Input = ".doc", - Output = ".epub" - }, - new - { - Input = ".doc", - Output = ".fb2" - }, - new - { - Input = ".doc", - Output = ".html" - }, - new - { - Input = ".doc", - Output = ".ott" - }, - new - { - Input = ".doc", - Output = ".odt" - }, - new - { - Input = ".doc", - Output = ".pdf" - }, - new - { - Input = ".doc", - Output = ".rtf" - }, - new - { - Input = ".doc", - Output = ".txt" - }, - new - { - Input = ".docm", - Output = ".docx" - }, - new - { - Input = ".docm", - Output = ".dotm" - }, - new - { - Input = ".docm", - Output = ".html" - }, - new - { - Input = ".docm", - Output = ".dotx" - }, - new - { - Input = ".docm", - Output = ".epub" - }, - new - { - Input = ".docm", - Output = ".fb2" - }, - new - { - Input = ".docm", - Output = ".ott" - }, - new - { - Input = ".docm", - Output = ".odt" - }, - new - { - Input = ".docm", - Output = ".pdf" - }, - new - { - Input = ".docm", - Output = ".rtf" - }, - new - { - Input = ".docm", - Output = ".txt" - }, - new - { - Input = ".doct", - Output = ".docx" - }, - new - { - Input = ".docx", - Output = ".odt" - }, - new - { - Input = ".docx", - Output = ".pdf" - }, - new - { - Input = ".docx", - Output = ".rtf" - }, - new - { - Input = ".docx", - Output = ".txt" - }, - new - { - Input = ".docx", - Output = ".html" - }, - new - { - Input = ".docx", - Output = ".dotm" - }, - new - { - Input = ".docx", - Output = ".dotx" - }, - new - { - Input = ".docx", - Output = ".epub" - }, - new - { - Input = ".docx", - Output = ".fb2" - }, - new - { - Input = ".docx", - Output = ".ott" - }, - new - { - Input = ".docx", - Output = ".docm" - }, - new - { - Input = ".docx", - Output = ".docxf" - }, - new - { - Input = ".docxf", - Output = ".docm" - }, - new - { - Input = ".docxf", - Output = ".docx" - }, - new - { - Input = ".docxf", - Output = ".dotm" - }, - new - { - Input = ".docxf", - Output = ".odt" - }, - new - { - Input = ".docxf", - Output = ".oform" - }, - new - { - Input = ".docxf", - Output = ".pdf" - }, - new - { - Input = ".docxf", - Output = ".rtf" - }, - new - { - Input = ".docxf", - Output = ".txt" - }, - new - { - Input = ".docxf", - Output = ".dotx" - }, - new - { - Input = ".docxf", - Output = ".epub" - }, - new - { - Input = ".docxf", - Output = ".fb2" - }, - new - { - Input = ".docxf", - Output = ".html" - }, - new - { - Input = ".docxf", - Output = ".ott" - }, - new - { - Input = ".dot", - Output = ".docx" - }, - new - { - Input = ".dot", - Output = ".odt" - }, - new - { - Input = ".dot", - Output = ".pdf" - }, - new - { - Input = ".dot", - Output = ".rtf" - }, - new - { - Input = ".dot", - Output = ".txt" - }, - new - { - Input = ".dot", - Output = ".docm" - }, - new - { - Input = ".dot", - Output = ".dotm" - }, - new - { - Input = ".dot", - Output = ".dotx" - }, - new - { - Input = ".dot", - Output = ".epub" - }, - new - { - Input = ".dot", - Output = ".fb2" - }, - new - { - Input = ".dot", - Output = ".html" - }, - new - { - Input = ".dot", - Output = ".ott" - }, - new - { - Input = ".dotm", - Output = ".docx" - }, - new - { - Input = ".dotm", - Output = ".odt" - }, - new - { - Input = ".dotm", - Output = ".pdf" - }, - new - { - Input = ".dotm", - Output = ".rtf" - }, - new - { - Input = ".dotm", - Output = ".txt" - }, - new - { - Input = ".dotm", - Output = ".docm" - }, - new - { - Input = ".dotm", - Output = ".dotx" - }, - new - { - Input = ".dotm", - Output = ".epub" - }, - new - { - Input = ".dotm", - Output = ".fb2" - }, - new - { - Input = ".dotm", - Output = ".html" - }, - new - { - Input = ".dotm", - Output = ".ott" - }, - new - { - Input = ".dotx", - Output = ".docx" - }, - new - { - Input = ".dotx", - Output = ".odt" - }, - new - { - Input = ".dotx", - Output = ".pdf" - }, - new - { - Input = ".dotx", - Output = ".rtf" - }, - new - { - Input = ".dotx", - Output = ".txt" - }, - new - { - Input = ".dotx", - Output = ".docm" - }, - new - { - Input = ".dotx", - Output = ".dotm" - }, - new - { - Input = ".dotx", - Output = ".epub" - }, - new - { - Input = ".dotx", - Output = ".fb2" - }, - new - { - Input = ".dotx", - Output = ".html" - }, - new - { - Input = ".dotx", - Output = ".ott" - }, - new - { - Input = ".dps", - Output = ".odp" - }, - new - { - Input = ".dps", - Output = ".otp" - }, - new - { - Input = ".dps", - Output = ".pdf" - }, - new - { - Input = ".dps", - Output = ".potm" - }, - new - { - Input = ".dps", - Output = ".potx" - }, - new - { - Input = ".dps", - Output = ".ppsm" - }, - new - { - Input = ".dps", - Output = ".ppsx" - }, - new - { - Input = ".dps", - Output = ".pptm" - }, - new - { - Input = ".dps", - Output = ".pptx" - }, - new - { - Input = ".dpt", - Output = ".odp" - }, - new - { - Input = ".dpt", - Output = ".otp" - }, - new - { - Input = ".dpt", - Output = ".pdf" - }, - new - { - Input = ".dpt", - Output = ".potm" - }, - new - { - Input = ".dpt", - Output = ".potx" - }, - new - { - Input = ".dpt", - Output = ".ppsm" - }, - new - { - Input = ".dpt", - Output = ".ppsx" - }, - new - { - Input = ".dpt", - Output = ".pptm" - }, - new - { - Input = ".dpt", - Output = ".pptx" - }, - new - { - Input = ".epub", - Output = ".docx" - }, - new - { - Input = ".epub", - Output = ".odt" - }, - new - { - Input = ".epub", - Output = ".pdf" - }, - new - { - Input = ".epub", - Output = ".rtf" - }, - new - { - Input = ".epub", - Output = ".txt" - }, - new - { - Input = ".epub", - Output = ".docm" - }, - new - { - Input = ".epub", - Output = ".dotm" - }, - new - { - Input = ".epub", - Output = ".dotx" - }, - new - { - Input = ".epub", - Output = ".fb2" - }, - new - { - Input = ".epub", - Output = ".html" - }, - new - { - Input = ".epub", - Output = ".ott" - }, - new - { - Input = ".et", - Output = ".csv" - }, - new - { - Input = ".et", - Output = ".ods" - }, - new - { - Input = ".et", - Output = ".ots" - }, - new - { - Input = ".et", - Output = ".pdf" - }, - new - { - Input = ".et", - Output = ".xlsm" - }, - new - { - Input = ".et", - Output = ".xlsx" - }, - new - { - Input = ".et", - Output = ".xltm" - }, - new - { - Input = ".et", - Output = ".xltx" - }, - new - { - Input = ".ett", - Output = ".csv" - }, - new - { - Input = ".ett", - Output = ".ods" - }, - new - { - Input = ".ett", - Output = ".ots" - }, - new - { - Input = ".ett", - Output = ".pdf" - }, - new - { - Input = ".ett", - Output = ".xlsm" - }, - new - { - Input = ".ett", - Output = ".xlsx" - }, - new - { - Input = ".ett", - Output = ".xltm" - }, - new - { - Input = ".ett", - Output = ".xltx" - }, - new - { - Input = ".fb2", - Output = ".docx" - }, - new - { - Input = ".fb2", - Output = ".odt" - }, - new - { - Input = ".fb2", - Output = ".pdf" - }, - new - { - Input = ".fb2", - Output = ".rtf" - }, - new - { - Input = ".fb2", - Output = ".txt" - }, - new - { - Input = ".fb2", - Output = ".docm" - }, - new - { - Input = ".fb2", - Output = ".dotm" - }, - new - { - Input = ".fb2", - Output = ".dotx" - }, - new - { - Input = ".fb2", - Output = ".epub" - }, - new - { - Input = ".fb2", - Output = ".html" - }, - new - { - Input = ".fb2", - Output = ".ott" - }, - new - { - Input = ".fodp", - Output = ".odp" - }, - new - { - Input = ".fodp", - Output = ".pdf" - }, - new - { - Input = ".fodp", - Output = ".pptx" - }, - new - { - Input = ".fodp", - Output = ".otp" - }, - new - { - Input = ".fodp", - Output = ".potm" - }, - new - { - Input = ".fodp", - Output = ".potx" - }, - new - { - Input = ".fodp", - Output = ".ppsm" - }, - new - { - Input = ".fodp", - Output = ".ppsx" - }, - new - { - Input = ".fodp", - Output = ".pptm" - }, - new - { - Input = ".fods", - Output = ".csv" - }, - new - { - Input = ".fods", - Output = ".ods" - }, - new - { - Input = ".fods", - Output = ".pdf" - }, - new - { - Input = ".fods", - Output = ".xlsx" - }, - new - { - Input = ".fods", - Output = ".xlsm" - }, - new - { - Input = ".fods", - Output = ".xltm" - }, - new - { - Input = ".fods", - Output = ".xltx" - }, - new - { - Input = ".fods", - Output = ".ots" - }, - new - { - Input = ".fodt", - Output = ".docx" - }, - new - { - Input = ".fodt", - Output = ".odt" - }, - new - { - Input = ".fodt", - Output = ".docm" - }, - new - { - Input = ".fodt", - Output = ".pdf" - }, - new - { - Input = ".fodt", - Output = ".rtf" - }, - new - { - Input = ".fodt", - Output = ".txt" - }, - new - { - Input = ".fodt", - Output = ".dotm" - }, - new - { - Input = ".fodt", - Output = ".dotx" - }, - new - { - Input = ".fodt", - Output = ".epub" - }, - new - { - Input = ".fodt", - Output = ".fb2" - }, - new - { - Input = ".fodt", - Output = ".html" - }, - new - { - Input = ".fodt", - Output = ".ott" - }, - new - { - Input = ".htm", - Output = ".docm" - }, - new - { - Input = ".htm", - Output = ".docx" - }, - new - { - Input = ".htm", - Output = ".dotm" - }, - new - { - Input = ".htm", - Output = ".dotx" - }, - new - { - Input = ".htm", - Output = ".epub" - }, - new - { - Input = ".htm", - Output = ".fb2" - }, - new - { - Input = ".htm", - Output = ".html" - }, - new - { - Input = ".htm", - Output = ".odt" - }, - new - { - Input = ".htm", - Output = ".ott" - }, - new - { - Input = ".htm", - Output = ".pdf" - }, - new - { - Input = ".htm", - Output = ".rtf" - }, - new - { - Input = ".htm", - Output = ".txt" - }, - new - { - Input = ".html", - Output = ".docx" - }, - new - { - Input = ".html", - Output = ".odt" - }, - new - { - Input = ".html", - Output = ".pdf" - }, - new - { - Input = ".html", - Output = ".rtf" - }, - new - { - Input = ".html", - Output = ".txt" - }, - new - { - Input = ".html", - Output = ".docm" - }, - new - { - Input = ".html", - Output = ".dotm" - }, - new - { - Input = ".html", - Output = ".dotx" - }, - new - { - Input = ".html", - Output = ".epub" - }, - new - { - Input = ".html", - Output = ".fb2" - }, - new - { - Input = ".html", - Output = ".ott" - }, - new - { - Input = ".mht", - Output = ".docx" - }, - new - { - Input = ".mht", - Output = ".odt" - }, - new - { - Input = ".mht", - Output = ".pdf" - }, - new - { - Input = ".mht", - Output = ".rtf" - }, - new - { - Input = ".mht", - Output = ".txt" - }, - new - { - Input = ".mht", - Output = ".docm" - }, - new - { - Input = ".mht", - Output = ".dotm" - }, - new - { - Input = ".mht", - Output = ".dotx" - }, - new - { - Input = ".mht", - Output = ".epub" - }, - new - { - Input = ".mht", - Output = ".fb2" - }, - new - { - Input = ".mht", - Output = ".html" - }, - new - { - Input = ".mht", - Output = ".ott" - }, - new - { - Input = ".mhtml", - Output = ".docm" - }, - new - { - Input = ".mhtml", - Output = ".docx" - }, - new - { - Input = ".mhtml", - Output = ".dotm" - }, - new - { - Input = ".mhtml", - Output = ".dotx" - }, - new - { - Input = ".mhtml", - Output = ".epub" - }, - new - { - Input = ".mhtml", - Output = ".fb2" - }, - new - { - Input = ".mhtml", - Output = ".html" - }, - new - { - Input = ".mhtml", - Output = ".odt" - }, - new - { - Input = ".mhtml", - Output = ".ott" - }, - new - { - Input = ".mhtml", - Output = ".pdf" - }, - new - { - Input = ".mhtml", - Output = ".rtf" - }, - new - { - Input = ".mhtml", - Output = ".txt" - }, - new - { - Input = ".odp", - Output = ".pdf" - }, - new - { - Input = ".odp", - Output = ".pptx" - }, - new - { - Input = ".odp", - Output = ".otp" - }, - new - { - Input = ".odp", - Output = ".potm" - }, - new - { - Input = ".odp", - Output = ".potx" - }, - new - { - Input = ".odp", - Output = ".ppsm" - }, - new - { - Input = ".odp", - Output = ".ppsx" - }, - new - { - Input = ".odp", - Output = ".pptm" - }, - new - { - Input = ".otp", - Output = ".odp" - }, - new - { - Input = ".otp", - Output = ".pdf" - }, - new - { - Input = ".otp", - Output = ".potm" - }, - new - { - Input = ".otp", - Output = ".potx" - }, - new - { - Input = ".otp", - Output = ".pptm" - }, - new - { - Input = ".otp", - Output = ".ppsm" - }, - new - { - Input = ".otp", - Output = ".ppsx" - }, - new - { - Input = ".otp", - Output = ".pptx" - }, - new - { - Input = ".ods", - Output = ".csv" - }, - new - { - Input = ".ods", - Output = ".pdf" - }, - new - { - Input = ".ods", - Output = ".xlsx" - }, - new - { - Input = ".ods", - Output = ".ots" - }, - new - { - Input = ".ods", - Output = ".xlsm" - }, - new - { - Input = ".ods", - Output = ".xltm" - }, - new - { - Input = ".ods", - Output = ".xltx" - }, - new - { - Input = ".ots", - Output = ".csv" - }, - new - { - Input = ".ots", - Output = ".ods" - }, - new - { - Input = ".ots", - Output = ".pdf" - }, - new - { - Input = ".ots", - Output = ".xlsm" - }, - new - { - Input = ".ots", - Output = ".xltm" - }, - new - { - Input = ".ots", - Output = ".xltx" - }, - new - { - Input = ".ots", - Output = ".xlsx" - }, - new - { - Input = ".odt", - Output = ".docx" - }, - new - { - Input = ".odt", - Output = ".pdf" - }, - new - { - Input = ".odt", - Output = ".rtf" - }, - new - { - Input = ".odt", - Output = ".txt" - }, - new - { - Input = ".odt", - Output = ".docm" - }, - new - { - Input = ".odt", - Output = ".dotm" - }, - new - { - Input = ".odt", - Output = ".dotx" - }, - new - { - Input = ".odt", - Output = ".epub" - }, - new - { - Input = ".odt", - Output = ".fb2" - }, - new - { - Input = ".odt", - Output = ".html" - }, - new - { - Input = ".odt", - Output = ".ott" - }, - new - { - Input = ".ott", - Output = ".docx" - }, - new - { - Input = ".ott", - Output = ".odt" - }, - new - { - Input = ".ott", - Output = ".pdf" - }, - new - { - Input = ".ott", - Output = ".rtf" - }, - new - { - Input = ".ott", - Output = ".txt" - }, - new - { - Input = ".ott", - Output = ".docm" - }, - new - { - Input = ".ott", - Output = ".dotm" - }, - new - { - Input = ".ott", - Output = ".dotx" - }, - new - { - Input = ".ott", - Output = ".epub" - }, - new - { - Input = ".ott", - Output = ".fb2" - }, - new - { - Input = ".ott", - Output = ".html" - }, - new - { - Input = ".oxps", - Output = ".docm" - }, - new - { - Input = ".oxps", - Output = ".docx" - }, - new - { - Input = ".oxps", - Output = ".dotm" - }, - new - { - Input = ".oxps", - Output = ".dotx" - }, - new - { - Input = ".oxps", - Output = ".epub" - }, - new - { - Input = ".oxps", - Output = ".fb2" - }, - new - { - Input = ".oxps", - Output = ".html" - }, - new - { - Input = ".oxps", - Output = ".odt" - }, - new - { - Input = ".oxps", - Output = ".ott" - }, - new - { - Input = ".oxps", - Output = ".pdf" - }, - new - { - Input = ".oxps", - Output = ".rtf" - }, - new - { - Input = ".oxps", - Output = ".txt" - }, - new - { - Input = ".pdf", - Output = ".docm" - }, - new - { - Input = ".pdf", - Output = ".docx" - }, - new - { - Input = ".pdf", - Output = ".dotm" - }, - new - { - Input = ".pdf", - Output = ".dotx" - }, - new - { - Input = ".pdf", - Output = ".epub" - }, - new - { - Input = ".pdf", - Output = ".fb2" - }, - new - { - Input = ".pdf", - Output = ".html" - }, - new - { - Input = ".pdf", - Output = ".odt" - }, - new - { - Input = ".pdf", - Output = ".ott" - }, - new - { - Input = ".pdf", - Output = ".rtf" - }, - new - { - Input = ".pdf", - Output = ".txt" - }, - new - { - Input = ".pot", - Output = ".odp" - }, - new - { - Input = ".pot", - Output = ".pdf" - }, - new - { - Input = ".pot", - Output = ".pptx" - }, - new - { - Input = ".pot", - Output = ".otp" - }, - new - { - Input = ".pot", - Output = ".potm" - }, - new - { - Input = ".pot", - Output = ".potx" - }, - new - { - Input = ".pot", - Output = ".pptm" - }, - new - { - Input = ".pot", - Output = ".ppsm" - }, - new - { - Input = ".pot", - Output = ".ppsx" - }, - new - { - Input = ".potm", - Output = ".odp" - }, - new - { - Input = ".potm", - Output = ".pdf" - }, - new - { - Input = ".potm", - Output = ".pptx" - }, - new - { - Input = ".potm", - Output = ".otp" - }, - new - { - Input = ".potm", - Output = ".potx" - }, - new - { - Input = ".potm", - Output = ".pptm" - }, - new - { - Input = ".potm", - Output = ".ppsm" - }, - new - { - Input = ".potm", - Output = ".ppsx" - }, - new - { - Input = ".potx", - Output = ".odp" - }, - new - { - Input = ".potx", - Output = ".pdf" - }, - new - { - Input = ".potx", - Output = ".pptx" - }, - new - { - Input = ".potx", - Output = ".otp" - }, - new - { - Input = ".potx", - Output = ".potm" - }, - new - { - Input = ".potx", - Output = ".pptm" - }, - new - { - Input = ".potx", - Output = ".ppsm" - }, - new - { - Input = ".potx", - Output = ".ppsx" - }, - new - { - Input = ".pps", - Output = ".odp" - }, - new - { - Input = ".pps", - Output = ".pdf" - }, - new - { - Input = ".pps", - Output = ".pptx" - }, - new - { - Input = ".pps", - Output = ".otp" - }, - new - { - Input = ".pps", - Output = ".potm" - }, - new - { - Input = ".pps", - Output = ".potx" - }, - new - { - Input = ".pps", - Output = ".pptm" - }, - new - { - Input = ".pps", - Output = ".ppsm" - }, - new - { - Input = ".pps", - Output = ".ppsx" - }, - new - { - Input = ".ppsm", - Output = ".odp" - }, - new - { - Input = ".ppsm", - Output = ".pdf" - }, - new - { - Input = ".ppsm", - Output = ".pptx" - }, - new - { - Input = ".ppsm", - Output = ".otp" - }, - new - { - Input = ".ppsm", - Output = ".potm" - }, - new - { - Input = ".ppsm", - Output = ".potx" - }, - new - { - Input = ".ppsm", - Output = ".pptm" - }, - new - { - Input = ".ppsm", - Output = ".ppsx" - }, - new - { - Input = ".ppsx", - Output = ".odp" - }, - new - { - Input = ".ppsx", - Output = ".pdf" - }, - new - { - Input = ".ppsx", - Output = ".pptx" - }, - new - { - Input = ".ppsx", - Output = ".otp" - }, - new - { - Input = ".ppsx", - Output = ".potm" - }, - new - { - Input = ".ppsx", - Output = ".potx" - }, - new - { - Input = ".ppsx", - Output = ".ppsm" - }, - new - { - Input = ".ppsx", - Output = ".pptm" - }, - new - { - Input = ".ppt", - Output = ".odp" - }, - new - { - Input = ".ppt", - Output = ".pdf" - }, - new - { - Input = ".ppt", - Output = ".pptx" - }, - new - { - Input = ".ppt", - Output = ".otp" - }, - new - { - Input = ".ppt", - Output = ".potm" - }, - new - { - Input = ".ppt", - Output = ".potx" - }, - new - { - Input = ".ppt", - Output = ".pptm" - }, - new - { - Input = ".ppt", - Output = ".ppsm" - }, - new - { - Input = ".ppt", - Output = ".ppsx" - }, - new - { - Input = ".pptm", - Output = ".odp" - }, - new - { - Input = ".pptm", - Output = ".pdf" - }, - new - { - Input = ".pptm", - Output = ".pptx" - }, - new - { - Input = ".pptm", - Output = ".otp" - }, - new - { - Input = ".pptm", - Output = ".potm" - }, - new - { - Input = ".pptm", - Output = ".potx" - }, - new - { - Input = ".pptm", - Output = ".ppsm" - }, - new - { - Input = ".pptm", - Output = ".ppsx" - }, - new - { - Input = ".pptt", - Output = ".pptx" - }, - new - { - Input = ".pptx", - Output = ".odp" - }, - new - { - Input = ".pptx", - Output = ".pdf" - }, - new - { - Input = ".pptx", - Output = ".otp" - }, - new - { - Input = ".pptx", - Output = ".potm" - }, - new - { - Input = ".pptx", - Output = ".potx" - }, - new - { - Input = ".pptx", - Output = ".pptm" - }, - new - { - Input = ".pptx", - Output = ".ppsm" - }, - new - { - Input = ".pptx", - Output = ".ppsx" - }, - new - { - Input = ".rtf", - Output = ".odt" - }, - new - { - Input = ".rtf", - Output = ".pdf" - }, - new - { - Input = ".rtf", - Output = ".docx" - }, - new - { - Input = ".rtf", - Output = ".txt" - }, - new - { - Input = ".rtf", - Output = ".docm" - }, - new - { - Input = ".rtf", - Output = ".dotm" - }, - new - { - Input = ".rtf", - Output = ".dotx" - }, - new - { - Input = ".rtf", - Output = ".epub" - }, - new - { - Input = ".rtf", - Output = ".fb2" - }, - new - { - Input = ".rtf", - Output = ".html" - }, - new - { - Input = ".rtf", - Output = ".ott" - }, - new - { - Input = ".stw", - Output = ".docm" - }, - new - { - Input = ".stw", - Output = ".docx" - }, - new - { - Input = ".stw", - Output = ".dotm" - }, - new - { - Input = ".stw", - Output = ".dotx" - }, - new - { - Input = ".stw", - Output = ".epub" - }, - new - { - Input = ".stw", - Output = ".fb2" - }, - new - { - Input = ".stw", - Output = ".html" - }, - new - { - Input = ".stw", - Output = ".odt" - }, - new - { - Input = ".stw", - Output = ".ott" - }, - new - { - Input = ".stw", - Output = ".pdf" - }, - new - { - Input = ".stw", - Output = ".rtf" - }, - new - { - Input = ".stw", - Output = ".txt" - }, - new - { - Input = ".sxc", - Output = ".csv" - }, - new - { - Input = ".sxc", - Output = ".ods" - }, - new - { - Input = ".sxc", - Output = ".ots" - }, - new - { - Input = ".sxc", - Output = ".pdf" - }, - new - { - Input = ".sxc", - Output = ".xlsm" - }, - new - { - Input = ".sxc", - Output = ".xlsx" - }, - new - { - Input = ".sxc", - Output = ".xltm" - }, - new - { - Input = ".sxc", - Output = ".xltx" - }, - new - { - Input = ".sxi", - Output = ".odp" - }, - new - { - Input = ".sxi", - Output = ".otp" - }, - new - { - Input = ".sxi", - Output = ".pdf" - }, - new - { - Input = ".sxi", - Output = ".potm" - }, - new - { - Input = ".sxi", - Output = ".potx" - }, - new - { - Input = ".sxi", - Output = ".ppsm" - }, - new - { - Input = ".sxi", - Output = ".ppsx" - }, - new - { - Input = ".sxi", - Output = ".pptm" - }, - new - { - Input = ".sxi", - Output = ".pptx" - }, - new - { - Input = ".sxw", - Output = ".docm" - }, - new - { - Input = ".sxw", - Output = ".docx" - }, - new - { - Input = ".sxw", - Output = ".dotm" - }, - new - { - Input = ".sxw", - Output = ".dotx" - }, - new - { - Input = ".sxw", - Output = ".epub" - }, - new - { - Input = ".sxw", - Output = ".fb2" - }, - new - { - Input = ".sxw", - Output = ".html" - }, - new - { - Input = ".sxw", - Output = ".odt" - }, - new - { - Input = ".sxw", - Output = ".ott" - }, - new - { - Input = ".sxw", - Output = ".pdf" - }, - new - { - Input = ".sxw", - Output = ".rtf" - }, - new - { - Input = ".sxw", - Output = ".txt" - }, - new - { - Input = ".txt", - Output = ".pdf" - }, - new - { - Input = ".txt", - Output = ".docx" - }, - new - { - Input = ".txt", - Output = ".odt" - }, - new - { - Input = ".txt", - Output = ".rtf" - }, - new - { - Input = ".txt", - Output = ".docm" - }, - new - { - Input = ".txt", - Output = ".dotm" - }, - new - { - Input = ".txt", - Output = ".dotx" - }, - new - { - Input = ".txt", - Output = ".epub" - }, - new - { - Input = ".txt", - Output = ".fb2" - }, - new - { - Input = ".txt", - Output = ".html" - }, - new - { - Input = ".txt", - Output = ".ott" - }, - new - { - Input = ".wps", - Output = ".docm" - }, - new - { - Input = ".wps", - Output = ".docx" - }, - new - { - Input = ".wps", - Output = ".dotm" - }, - new - { - Input = ".wps", - Output = ".dotx" - }, - new - { - Input = ".wps", - Output = ".epub" - }, - new - { - Input = ".wps", - Output = ".fb2" - }, - new - { - Input = ".wps", - Output = ".html" - }, - new - { - Input = ".wps", - Output = ".odt" - }, - new - { - Input = ".wps", - Output = ".ott" - }, - new - { - Input = ".wps", - Output = ".pdf" - }, - new - { - Input = ".wps", - Output = ".rtf" - }, - new - { - Input = ".wps", - Output = ".txt" - }, - new - { - Input = ".wpt", - Output = ".docm" - }, - new - { - Input = ".wpt", - Output = ".docx" - }, - new - { - Input = ".wpt", - Output = ".dotm" - }, - new - { - Input = ".wpt", - Output = ".dotx" - }, - new - { - Input = ".wpt", - Output = ".epub" - }, - new - { - Input = ".wpt", - Output = ".fb2" - }, - new - { - Input = ".wpt", - Output = ".html" - }, - new - { - Input = ".wpt", - Output = ".odt" - }, - new - { - Input = ".wpt", - Output = ".ott" - }, - new - { - Input = ".wpt", - Output = ".pdf" - }, - new - { - Input = ".wpt", - Output = ".rtf" - }, - new - { - Input = ".wpt", - Output = ".txt" - }, - new - { - Input = ".xls", - Output = ".csv" - }, - new - { - Input = ".xls", - Output = ".ods" - }, - new - { - Input = ".xls", - Output = ".pdf" - }, - new - { - Input = ".xls", - Output = ".xlsx" - }, - new - { - Input = ".xls", - Output = ".ots" - }, - new - { - Input = ".xls", - Output = ".xlsm" - }, - new - { - Input = ".xls", - Output = ".xltm" - }, - new - { - Input = ".xls", - Output = ".xltx" - }, - new - { - Input = ".xlsb", - Output = ".csv" - }, - new - { - Input = ".xlsb", - Output = ".ods" - }, - new - { - Input = ".xlsb", - Output = ".ots" - }, - new - { - Input = ".xlsb", - Output = ".pdf" - }, - new - { - Input = ".xlsb", - Output = ".xlsm" - }, - new - { - Input = ".xlsb", - Output = ".xlsx" - }, - new - { - Input = ".xlsb", - Output = ".xltm" - }, - new - { - Input = ".xlsb", - Output = ".xltx" - }, - new - { - Input = ".xlsm", - Output = ".csv" - }, - new - { - Input = ".xlsm", - Output = ".xltm" - }, - new - { - Input = ".xlsm", - Output = ".xltx" - }, - new - { - Input = ".xlsm", - Output = ".ots" - }, - new - { - Input = ".xlsm", - Output = ".pdf" - }, - new - { - Input = ".xlsm", - Output = ".ods" - }, - new - { - Input = ".xlsm", - Output = ".xlsx" - }, - new - { - Input = ".xlsx", - Output = ".csv" - }, - new - { - Input = ".xlsx", - Output = ".ods" - }, - new - { - Input = ".xlsx", - Output = ".ots" - }, - new - { - Input = ".xlsx", - Output = ".pdf" - }, - new - { - Input = ".xlsx", - Output = ".xlsm" - }, - new - { - Input = ".xlsx", - Output = ".xltm" - }, - new - { - Input = ".xlsx", - Output = ".xltx" - }, - new - { - Input = ".xlst", - Output = ".xlsx" - }, - new - { - Input = ".xlt", - Output = ".csv" - }, - new - { - Input = ".xlt", - Output = ".ods" - }, - new - { - Input = ".xlt", - Output = ".pdf" - }, - new - { - Input = ".xlt", - Output = ".xlsx" - }, - new - { - Input = ".xlt", - Output = ".ots" - }, - new - { - Input = ".xlt", - Output = ".xlsm" - }, - new - { - Input = ".xlt", - Output = ".xltm" - }, - new - { - Input = ".xlt", - Output = ".xltx" - }, - new - { - Input = ".xltm", - Output = ".csv" - }, - new - { - Input = ".xltm", - Output = ".ods" - }, - new - { - Input = ".xltm", - Output = ".pdf" - }, - new - { - Input = ".xltm", - Output = ".ots" - }, - new - { - Input = ".xltm", - Output = ".xlsm" - }, - new - { - Input = ".xltm", - Output = ".xltx" - }, - new - { - Input = ".xltm", - Output = ".xlsx" - }, - new - { - Input = ".xltx", - Output = ".pdf" - }, - new - { - Input = ".xltx", - Output = ".csv" - }, - new - { - Input = ".xltx", - Output = ".ods" - }, - new - { - Input = ".xltx", - Output = ".ots" - }, - new - { - Input = ".xltx", - Output = ".xlsm" - }, - new - { - Input = ".xltx", - Output = ".xltm" - }, - new - { - Input = ".xltx", - Output = ".xlsx" - }, - new - { - Input = ".xml", - Output = ".docm" - }, - new - { - Input = ".xml", - Output = ".docx" - }, - new - { - Input = ".xml", - Output = ".dotm" - }, - new - { - Input = ".xml", - Output = ".dotx" - }, - new - { - Input = ".xml", - Output = ".epub" - }, - new - { - Input = ".xml", - Output = ".fb2" - }, - new - { - Input = ".xml", - Output = ".html" - }, - new - { - Input = ".xml", - Output = ".odt" - }, - new - { - Input = ".xml", - Output = ".ott" - }, - new - { - Input = ".xml", - Output = ".pdf" - }, - new - { - Input = ".xml", - Output = ".rtf" - }, - new - { - Input = ".xml", - Output = ".txt" - }, - new - { - Input = ".xps", - Output = ".docm" - }, - new - { - Input = ".xps", - Output = ".docx" - }, - new - { - Input = ".xps", - Output = ".dotm" - }, - new - { - Input = ".xps", - Output = ".dotx" - }, - new - { - Input = ".xps", - Output = ".epub" - }, - new - { - Input = ".xps", - Output = ".fb2" - }, - new - { - Input = ".xps", - Output = ".html" - }, - new - { - Input = ".xps", - Output = ".odt" - }, - new - { - Input = ".xps", - Output = ".ott" - }, - new - { - Input = ".xps", - Output = ".pdf" - }, - new - { - Input = ".xps", - Output = ".rtf" - }, - new - { - Input = ".xps", - Output = ".txt" - }); - }); - - 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 with time zone") - .HasColumnName("last_sign"); - - b.Property("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.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.HasIndex("TenantId"); - - b.ToTable("notify_queue", "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"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.TelegramUser", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("PortalUserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("portal_user_id"); - - b.Property("TelegramUserId") - .HasColumnType("bigint") - .HasColumnName("telegram_user_id"); - - b.HasKey("TenantId", "PortalUserId") - .HasName("telegram_users_pkey"); - - b.HasIndex("TelegramUserId") - .HasDatabaseName("tgId"); - - b.ToTable("telegram_users", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.TenantIpRestrictions", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("ForAdmin") - .HasColumnType("TINYINT(1)") - .HasColumnName("for_admin"); - - b.Property("Ip") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("ip"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.HasKey("Id"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_tenants_iprestrictions"); - - b.ToTable("tenants_iprestrictions", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Subscription", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Source") - .HasMaxLength(38) - .HasColumnType("character varying(38)") - .HasColumnName("source"); - - b.Property("Action") - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("action"); - - b.Property("Recipient") - .HasMaxLength(38) - .HasColumnType("character varying(38)") - .HasColumnName("recipient"); - - b.Property("Object") - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("object"); - - b.Property("Unsubscribed") - .HasColumnType("boolean") - .HasColumnName("unsubscribed"); - - b.HasKey("TenantId", "Source", "Action", "Recipient", "Object") - .HasName("core_subscription_pkey"); - - b.ToTable("core_subscription", "onlyoffice"); - - b.HasData( - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "send_whats_new", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "rooms_activity", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "6504977c-75af-4691-9099-084d3ddeea04", - Action = "new feed", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "6a598c74-91ae-437d-a5f4-ad339bd11bb2", - Action = "new post", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "853b6eb9-73ee-438d-9b09-8ffeedf36234", - Action = "new topic in forum", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "9d51954f-db9b-4aed-94e3-ed70b914e101", - Action = "new photo uploaded", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "28b10049-dd20-4f54-b986-873bc14ccfc7", - Action = "new bookmark created", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "742cf945-cbbc-4a57-82d6-1600a12cf8ca", - Action = "new wiki page", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "37620ae5-c40b-45ce-855a-39dd7d76a1fa", - Action = "BirthdayReminder", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", - Action = "sharedocument", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", - Action = "sharefolder", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "40650da3-f7c1-424c-8c89-b9c115472e08", - Action = "calendar_sharing", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "40650da3-f7c1-424c-8c89-b9c115472e08", - Action = "event_alert", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "admin_notify", - Recipient = "cd84e66b-b803-40fc-99f9-b2969a54a1de", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "SetAccess", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "ResponsibleForTask", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "AddRelationshipEvent", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "ExportCompleted", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "CreateNewContact", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "ResponsibleForOpportunity", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "periodic_notify", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("id"); - - b.Property("ActivationStatus") - .HasColumnType("integer") - .HasColumnName("activation_status"); - - b.Property("BirthDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("bithdate"); - - b.Property("Contacts") - .ValueGeneratedOnAdd() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .HasColumnName("contacts") - .HasDefaultValueSql("NULL"); - - b.Property("CreateDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("create_on") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("CultureName") - .ValueGeneratedOnAdd() - .HasMaxLength(20) - .HasColumnType("character varying(20)") - .HasColumnName("culture") - .HasDefaultValueSql("NULL"); - - b.Property("Email") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("email") - .HasDefaultValueSql("NULL"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("firstname"); - - b.Property("LastModified") - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("lastname"); - - b.Property("Location") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("location") - .HasDefaultValueSql("NULL"); - - b.Property("MobilePhone") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("phone") - .HasDefaultValueSql("NULL"); - - b.Property("MobilePhoneActivation") - .HasColumnType("integer") - .HasColumnName("phone_activation"); - - b.Property("Notes") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("notes") - .HasDefaultValueSql("NULL"); - - b.Property("Removed") - .HasColumnType("boolean") - .HasColumnName("removed"); - - b.Property("Sex") - .HasColumnType("boolean") - .HasColumnName("sex"); - - b.Property("Sid") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("sid") - .HasDefaultValueSql("NULL"); - - b.Property("SsoNameId") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("sso_name_id") - .HasDefaultValueSql("NULL"); - - b.Property("SsoSessionId") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("sso_session_id") - .HasDefaultValueSql("NULL"); - - b.Property("Status") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("status") - .HasDefaultValueSql("1"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("TerminatedDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("terminateddate"); - - b.Property("Title") - .ValueGeneratedOnAdd() - .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("title") - .HasDefaultValueSql("NULL"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("username"); - - b.Property("WorkFromDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("workfromdate"); - - b.HasKey("Id"); - - b.HasIndex("Email") - .HasDatabaseName("email"); - - b.HasIndex("LastModified") - .HasDatabaseName("last_modified_core_user"); - - b.HasIndex("TenantId"); - - b.HasIndex("UserName", "TenantId") - .HasDatabaseName("username"); - - b.ToTable("core_user", "onlyoffice"); - - b.HasData( - new - { - Id = new Guid("66faa6e4-f133-11ea-b126-00ffeec8b4ef"), - ActivationStatus = 0, - CreateDate = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Email = "", - FirstName = "Administrator", - LastModified = new DateTime(2021, 3, 9, 9, 52, 55, 765, DateTimeKind.Utc).AddTicks(1420), - LastName = "", - MobilePhoneActivation = 0, - Removed = false, - Status = 1, - TenantId = 1, - UserName = "administrator", - WorkFromDate = new DateTime(2021, 3, 9, 9, 52, 55, 764, DateTimeKind.Utc).AddTicks(9157) - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserDav", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("UserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id"); - - b.HasKey("TenantId", "UserId") - .HasName("core_userdav_pkey"); - - b.ToTable("core_userdav", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserGroup", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Userid") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("userid"); - - b.Property("UserGroupId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("groupid"); - - b.Property("RefType") - .HasColumnType("integer") - .HasColumnName("ref_type"); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("Removed") - .HasColumnType("boolean") - .HasColumnName("removed"); - - b.HasKey("TenantId", "Userid", "UserGroupId", "RefType") - .HasName("core_usergroup_pkey"); - - b.HasIndex("LastModified") - .HasDatabaseName("last_modified_core_usergroup"); - - b.ToTable("core_usergroup", "onlyoffice"); - - b.HasData( - new - { - TenantId = 1, - Userid = new Guid("66faa6e4-f133-11ea-b126-00ffeec8b4ef"), - UserGroupId = new Guid("cd84e66b-b803-40fc-99f9-b2969a54a1de"), - RefType = 0, - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Removed = false - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserPhoto", b => - { - b.Property("UserId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("userid"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("bytea") - .HasColumnName("photo"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.HasKey("UserId") - .HasName("core_userphoto_pkey"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_core_userphoto"); - - b.ToTable("core_userphoto", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserSecurity", b => - { - b.Property("UserId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("userid"); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("PwdHash") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("pwdhash") - .HasDefaultValueSql("NULL"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.HasKey("UserId") - .HasName("core_usersecurity_pkey"); - - b.HasIndex("PwdHash") - .HasDatabaseName("pwdhash"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_core_usersecurity"); - - b.ToTable("core_usersecurity", "onlyoffice"); - - b.HasData( - new - { - UserId = new Guid("66faa6e4-f133-11ea-b126-00ffeec8b4ef"), - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - PwdHash = "jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg=", - TenantId = 1 - }); - }); - - modelBuilder.Entity("ASC.Core.Common.Hosting.InstanceRegistration", b => - { - b.Property("InstanceRegistrationId") - .HasColumnType("varchar(255)") - .HasColumnName("instance_registration_id") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("IsActive") - .HasColumnType("tinyint(4)") - .HasColumnName("is_active"); - - b.Property("LastUpdated") - .HasColumnType("datetime") - .HasColumnName("last_updated"); - - b.Property("WorkerTypeName") - .IsRequired() - .HasColumnType("varchar(255)") - .HasColumnName("worker_type_name") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.HasKey("InstanceRegistrationId") - .HasName("PRIMARY"); - - b.HasIndex("WorkerTypeName") - .HasDatabaseName("worker_type_name"); - - b.ToTable("hosting_instance_registration", (string)null); - }); - - modelBuilder.Entity("ASC.Data.Backup.EF.Model.BackupRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("char") - .HasColumnName("id") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("CreatedOn") - .HasColumnType("datetime") - .HasColumnName("created_on"); - - b.Property("ExpiresOn") - .ValueGeneratedOnAdd() - .HasColumnType("datetime") - .HasColumnName("expires_on") - .HasDefaultValueSql("'0001-01-01 00:00:00'"); - - b.Property("Hash") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("hash") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("IsScheduled") - .HasMaxLength(10) - .HasColumnType("int") - .HasColumnName("is_scheduled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("name") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("Removed") - .HasMaxLength(10) - .HasColumnType("int") - .HasColumnName("removed"); - - b.Property("StorageBasePath") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("storage_base_path") - .HasDefaultValueSql("NULL") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("StorageParams") - .ValueGeneratedOnAdd() - .HasColumnType("text") - .HasColumnName("storage_params") - .HasDefaultValueSql("NULL") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("StoragePath") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("storage_path") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("StorageType") - .HasMaxLength(10) - .HasColumnType("int") - .HasColumnName("storage_type"); - - b.Property("TenantId") - .HasMaxLength(10) - .HasColumnType("int") - .HasColumnName("tenant_id"); - - b.HasKey("Id") - .HasName("PRIMARY"); - - b.HasIndex("ExpiresOn") - .HasDatabaseName("expires_on"); - - b.HasIndex("IsScheduled") - .HasDatabaseName("is_scheduled"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_id"); - - b.ToTable("backup_backup", (string)null); - }); - - modelBuilder.Entity("ASC.Data.Backup.EF.Model.BackupSchedule", b => - { - b.Property("TenantId") - .HasMaxLength(10) - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("BackupsStored") - .HasMaxLength(10) - .HasColumnType("integer") - .HasColumnName("backups_stored"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("cron") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("LastBackupTime") - .HasColumnType("datetime") - .HasColumnName("last_backup_time"); - - b.Property("StorageBasePath") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("storage_base_path") - .HasDefaultValueSql("NULL") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("StorageParams") - .ValueGeneratedOnAdd() - .HasColumnType("text") - .HasColumnName("storage_params") - .HasDefaultValueSql("NULL") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("StorageType") - .HasMaxLength(10) - .HasColumnType("integer") - .HasColumnName("storage_type"); - - b.HasKey("TenantId") - .HasName("PRIMARY"); - - b.ToTable("backup_schedule", (string)null); - }); - - modelBuilder.Entity("ASC.EventBus.Extensions.Logger.IntegrationEventLogEntry", b => - { - b.Property("EventId") - .ValueGeneratedOnAdd() - .HasColumnType("char(38)") - .HasColumnName("event_id") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text") - .HasColumnName("content") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("CreateBy") - .HasColumnType("char(38)") - .HasColumnName("create_by") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("CreateOn") - .HasColumnType("datetime") - .HasColumnName("create_on"); - - b.Property("EventTypeName") - .IsRequired() - .HasColumnType("varchar(255)") - .HasColumnName("event_type_name") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("State") - .HasColumnType("int(11)") - .HasColumnName("state"); - - b.Property("TenantId") - .HasColumnType("int(11)") - .HasColumnName("tenant_id"); - - b.Property("TimesSent") - .HasColumnType("int(11)") - .HasColumnName("times_sent"); - - b.Property("TransactionId") - .HasColumnType("text"); - - b.HasKey("EventId") - .HasName("PRIMARY"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_id"); - - b.ToTable("event_bus_integration_event_log", (string)null); - - b.HasAnnotation("MySql:CharSet", "utf8"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedAggregate", b => - { - b.Property("Id") - .HasMaxLength(88) - .HasColumnType("character varying(88)") - .HasColumnName("id"); - - b.Property("AggregateDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("aggregated_date"); - - b.Property("Author") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("author") - .IsFixedLength(); - - b.Property("ContextId") - .HasColumnType("text") - .HasColumnName("context_id"); - - b.Property("CreatedDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("created_date"); - - b.Property("GroupId") - .ValueGeneratedOnAdd() - .HasMaxLength(70) - .HasColumnType("character varying(70)") - .HasColumnName("group_id") - .HasDefaultValueSql("NULL"); - - b.Property("Json") - .IsRequired() - .HasColumnType("text") - .HasColumnName("json"); - - b.Property("Keywords") - .HasColumnType("text") - .HasColumnName("keywords"); - - b.Property("ModifiedBy") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("modified_by") - .IsFixedLength(); - - b.Property("ModifiedDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("modified_date"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("module"); - - b.Property("Product") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("product"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "AggregateDate") - .HasDatabaseName("aggregated_date"); - - b.HasIndex("TenantId", "ModifiedDate") - .HasDatabaseName("modified_date"); - - b.HasIndex("TenantId", "Product") - .HasDatabaseName("product"); - - b.ToTable("feed_aggregate", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedLast", b => - { - b.Property("LastKey") - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("last_key"); - - b.Property("LastDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("last_date"); - - b.HasKey("LastKey") - .HasName("feed_last_pkey"); - - b.ToTable("feed_last", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedReaded", b => - { - b.Property("UserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Module") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("module"); - - b.Property("TimeStamp") - .HasColumnType("timestamp with time zone") - .HasColumnName("timestamp"); - - b.HasKey("UserId", "TenantId", "Module") - .HasName("feed_readed_pkey"); - - b.HasIndex("TenantId"); - - b.ToTable("feed_readed", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedUsers", b => - { - b.Property("FeedId") - .HasMaxLength(88) - .HasColumnType("character varying(88)") - .HasColumnName("feed_id"); - - b.Property("UserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id") - .IsFixedLength(); - - b.HasKey("FeedId", "UserId") - .HasName("feed_users_pkey"); - - b.HasIndex("UserId") - .HasDatabaseName("user_id_feed_users"); - - b.ToTable("feed_users", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFile", b => - { - b.Property("Id") - .HasColumnType("integer") - .HasColumnName("id"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Version") - .HasColumnType("integer") - .HasColumnName("version"); - - b.Property("Category") - .HasColumnType("integer") - .HasColumnName("category"); - - b.Property("Changes") - .HasColumnType("text") - .HasColumnName("changes"); - - b.Property("Comment") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("comment") - .HasDefaultValueSql("NULL::character varying"); - - b.Property("ContentLength") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasColumnName("content_length") - .HasDefaultValueSql("'0'::bigint"); - - b.Property("ConvertedType") - .ValueGeneratedOnAdd() - .HasMaxLength(10) - .HasColumnType("character varying(10)") - .HasColumnName("converted_type") - .HasDefaultValueSql("NULL::character varying"); - - b.Property("CreateBy") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("create_by") - .IsFixedLength(); - - b.Property("CreateOn") - .HasColumnType("timestamp with time zone") - .HasColumnName("create_on"); - - b.Property("CurrentVersion") - .HasColumnType("boolean") - .HasColumnName("current_version"); - - b.Property("Encrypted") - .HasColumnType("boolean") - .HasColumnName("encrypted"); - - b.Property("FileStatus") - .HasColumnType("integer") - .HasColumnName("file_status"); - - b.Property("Forcesave") - .HasColumnType("integer") - .HasColumnName("forcesave"); - - b.Property("ModifiedBy") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("modified_by") - .IsFixedLength(); - - b.Property("ModifiedOn") - .HasColumnType("timestamp with time zone") - .HasColumnName("modified_on"); - - b.Property("ParentId") - .HasColumnType("integer") - .HasColumnName("folder_id"); - - b.Property("ThumbnailStatus") - .HasColumnType("integer") - .HasColumnName("thumb"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("character varying(400)") - .HasColumnName("title"); - - b.Property("VersionGroup") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("version_group") - .HasDefaultValueSql("1"); - - b.HasKey("Id", "TenantId", "Version") - .HasName("files_file_pkey"); - - b.HasIndex("Id") - .HasDatabaseName("id"); - - b.HasIndex("ModifiedOn") - .HasDatabaseName("modified_on_files_file"); - - b.HasIndex("ParentId") - .HasDatabaseName("folder_id"); - - b.HasIndex("TenantId"); - - b.ToTable("files_file", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesBunchObjects", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("RightNode") - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("right_node"); - - b.Property("LeftNode") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("left_node"); - - b.HasKey("TenantId", "RightNode") - .HasName("files_bunch_objects_pkey"); - - b.HasIndex("LeftNode") - .HasDatabaseName("left_node"); - - b.ToTable("files_bunch_objects", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesLink", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("SourceId") - .HasMaxLength(32) - .HasColumnType("character varying(32)") - .HasColumnName("source_id"); - - b.Property("LinkedId") - .HasMaxLength(32) - .HasColumnType("character varying(32)") - .HasColumnName("linked_id"); - - b.Property("LinkedFor") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("linked_for") - .HasDefaultValueSql("NULL::bpchar") - .IsFixedLength(); - - b.HasKey("TenantId", "SourceId", "LinkedId") - .HasName("files_link_pkey"); - - b.HasIndex("TenantId", "SourceId", "LinkedId", "LinkedFor") - .HasDatabaseName("linked_for_files_link"); - - b.ToTable("files_link", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesProperties", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("EntryId") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("entry_id"); - - b.Property("Data") - .IsRequired() - .HasColumnType("text") - .HasColumnName("data"); - - b.HasKey("TenantId", "EntryId") - .HasName("files_properties_pkey"); - - b.ToTable("files_properties", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesSecurity", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("EntryId") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("entry_id"); - - b.Property("EntryType") - .HasColumnType("integer") - .HasColumnName("entry_type"); - - b.Property("Subject") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("subject") - .IsFixedLength(); - - b.Property("FileShareOptions") - .HasColumnType("text") - .HasColumnName("options"); - - b.Property("Owner") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("owner") - .IsFixedLength(); - - b.Property("Share") - .HasColumnType("integer") - .HasColumnName("security"); - - b.Property("SubjectType") - .HasColumnType("integer") - .HasColumnName("subject_type"); - - b.Property("TimeStamp") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("timestamp") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.HasKey("TenantId", "EntryId", "EntryType", "Subject") - .HasName("files_security_pkey"); - - b.HasIndex("Owner") - .HasDatabaseName("owner"); - - b.HasIndex("EntryId", "TenantId", "EntryType", "Owner") - .HasDatabaseName("tenant_id_files_security"); - - b.ToTable("files_security", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("name"); - - b.Property("Owner") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("owner"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Type") - .HasColumnType("integer") - .HasColumnName("flag"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Owner", "Name", "Type") - .HasDatabaseName("name_files_tag"); - - b.ToTable("files_tag", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTagLink", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("TagId") - .HasColumnType("integer") - .HasColumnName("tag_id"); - - b.Property("EntryType") - .HasColumnType("integer") - .HasColumnName("entry_type"); - - b.Property("EntryId") - .HasMaxLength(32) - .HasColumnType("character varying(32)") - .HasColumnName("entry_id"); - - b.Property("Count") - .HasColumnType("integer") - .HasColumnName("tag_count"); - - b.Property("CreateBy") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("create_by") - .HasDefaultValueSql("NULL::bpchar") - .IsFixedLength(); - - b.Property("CreateOn") - .HasColumnType("timestamp with time zone") - .HasColumnName("create_on"); - - b.HasKey("TenantId", "TagId", "EntryType", "EntryId") - .HasName("files_tag_link_pkey"); - - b.HasIndex("CreateOn") - .HasDatabaseName("create_on_files_tag_link"); - - b.HasIndex("TenantId", "EntryType", "EntryId") - .HasDatabaseName("entry_id"); - - b.ToTable("files_tag_link", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("CreateOn") - .HasColumnType("timestamp with time zone") - .HasColumnName("create_on"); - - b.Property("FolderId") - .HasColumnType("text") - .HasColumnName("folder_id"); - - b.Property("FolderType") - .HasColumnType("integer") - .HasColumnName("folder_type"); - - b.Property("HasLogo") - .HasColumnType("boolean") - .HasColumnName("has_logo"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("character varying(100)") - .HasColumnName("password"); - - b.Property("Private") - .HasColumnType("boolean") - .HasColumnName("private"); - - b.Property("Provider") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("provider") - .HasDefaultValueSql("'0'::character varying"); - - b.Property("RoomType") - .HasColumnType("integer") - .HasColumnName("room_type"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("character varying(400)") - .HasColumnName("customer_title"); - - b.Property("Token") - .HasColumnType("text") - .HasColumnName("token"); - - b.Property("Url") - .HasColumnType("text") - .HasColumnName("url"); - - b.Property("UserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("character varying(100)") - .HasColumnName("user_name"); - - b.HasKey("Id"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_id"); - - b.ToTable("files_thirdparty_account", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyApp", b => - { - b.Property("UserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id"); - - b.Property("App") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("app"); - - b.Property("ModifiedOn") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("modified_on") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Token") - .HasColumnType("text") - .HasColumnName("token"); - - b.HasKey("UserId", "App") - .HasName("files_thirdparty_app_pkey"); - - b.HasIndex("TenantId"); - - b.ToTable("files_thirdparty_app", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyIdMapping", b => - { - b.Property("HashId") - .HasMaxLength(32) - .HasColumnType("character(32)") - .HasColumnName("hash_id") - .IsFixedLength(); - - b.Property("Id") - .IsRequired() - .HasColumnType("text") - .HasColumnName("id"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.HasKey("HashId") - .HasName("files_thirdparty_id_mapping_pkey"); - - b.HasIndex("TenantId", "HashId") - .HasDatabaseName("index_1"); - - b.ToTable("files_thirdparty_id_mapping", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFolder", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("CreateBy") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("create_by") - .IsFixedLength(); - - b.Property("CreateOn") - .HasColumnType("timestamp with time zone") - .HasColumnName("create_on"); - - b.Property("FilesCount") - .HasColumnType("integer") - .HasColumnName("filesCount"); - - b.Property("FolderType") - .HasColumnType("integer") - .HasColumnName("folder_type"); - - b.Property("FoldersCount") - .HasColumnType("integer") - .HasColumnName("foldersCount"); - - b.Property("HasLogo") - .HasColumnType("boolean") - .HasColumnName("has_logo"); - - b.Property("ModifiedBy") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("modified_by") - .IsFixedLength(); - - b.Property("ModifiedOn") - .HasColumnType("timestamp with time zone") - .HasColumnName("modified_on"); - - b.Property("ParentId") - .HasColumnType("integer") - .HasColumnName("parent_id"); - - b.Property("Private") - .HasColumnType("boolean") - .HasColumnName("private"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("character varying(400)") - .HasColumnName("title"); - - b.HasKey("Id"); - - b.HasIndex("ModifiedOn") - .HasDatabaseName("modified_on_files_folder"); - - b.HasIndex("TenantId", "ParentId") - .HasDatabaseName("parent_id"); - - b.ToTable("files_folder", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFolderTree", b => - { - b.Property("ParentId") - .HasColumnType("integer") - .HasColumnName("parent_id"); - - b.Property("FolderId") - .HasColumnType("integer") - .HasColumnName("folder_id"); - - b.Property("Level") - .HasColumnType("integer") - .HasColumnName("level"); - - b.HasKey("ParentId", "FolderId") - .HasName("files_folder_tree_pkey"); - - b.HasIndex("FolderId") - .HasDatabaseName("folder_id_files_folder_tree"); - - b.ToTable("files_folder_tree", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.MessagingSystem.EF.Model.AuditEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Action") - .HasColumnType("integer") - .HasColumnName("action"); - - b.Property("Browser") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("browser") - .HasDefaultValueSql("NULL"); - - b.Property("Date") - .HasColumnType("timestamp with time zone") - .HasColumnName("date"); - - b.Property("DescriptionRaw") - .ValueGeneratedOnAdd() - .HasMaxLength(20000) - .HasColumnType("character varying(20000)") - .HasColumnName("description") - .HasDefaultValueSql("NULL"); - - b.Property("Initiator") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("initiator") - .HasDefaultValueSql("NULL"); - - b.Property("Ip") - .ValueGeneratedOnAdd() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("ip") - .HasDefaultValueSql("NULL"); - - b.Property("Page") - .ValueGeneratedOnAdd() - .HasMaxLength(300) - .HasColumnType("character varying(300)") - .HasColumnName("page") - .HasDefaultValueSql("NULL"); - - b.Property("Platform") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("platform") - .HasDefaultValueSql("NULL"); - - b.Property("Target") - .HasColumnType("text") - .HasColumnName("target"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("UserId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id") - .HasDefaultValueSql("NULL") - .IsFixedLength(); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Date") - .HasDatabaseName("date"); - - b.ToTable("audit_events", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.MessagingSystem.EF.Model.LoginEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Action") - .HasColumnType("integer") - .HasColumnName("action"); - - b.Property("Active") - .HasColumnType("boolean") - .HasColumnName("active"); - - b.Property("Browser") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("browser") - .HasDefaultValueSql("NULL::character varying"); - - b.Property("Date") - .HasColumnType("timestamp with time zone") - .HasColumnName("date"); - - b.Property("DescriptionRaw") - .ValueGeneratedOnAdd() - .HasMaxLength(500) - .HasColumnType("character varying(500)") - .HasColumnName("description") - .HasDefaultValueSql("NULL"); - - b.Property("Ip") - .ValueGeneratedOnAdd() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("ip") - .HasDefaultValueSql("NULL"); - - b.Property("Login") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("login") - .HasDefaultValueSql("NULL"); - - b.Property("Page") - .ValueGeneratedOnAdd() - .HasMaxLength(300) - .HasColumnType("character varying(300)") - .HasColumnName("page") - .HasDefaultValueSql("NULL"); - - b.Property("Platform") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("platform") - .HasDefaultValueSql("NULL"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("UserId") - .IsRequired() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id") - .IsFixedLength(); - - b.HasKey("Id"); - - b.HasIndex("Date") - .HasDatabaseName("date_login_events"); - - b.HasIndex("TenantId"); - - b.HasIndex("UserId", "TenantId") - .HasDatabaseName("tenant_id_login_events"); - - b.ToTable("login_events", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Webhooks.Core.EF.Model.DbWebhook", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Method") - .ValueGeneratedOnAdd() - .HasMaxLength(10) - .HasColumnType("character varying(10)") - .HasColumnName("method") - .HasDefaultValueSql("''"); - - b.Property("Route") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("route") - .HasDefaultValueSql("''"); - - b.HasKey("Id") - .HasName("PRIMARY"); - - b.ToTable("webhooks", (string)null); - }); - - modelBuilder.Entity("ASC.Webhooks.Core.EF.Model.WebhooksConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Enabled") - .ValueGeneratedOnAdd() - .HasColumnType("boolean") - .HasColumnName("enabled") - .HasDefaultValueSql("true"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("name"); - - b.Property("SSL") - .ValueGeneratedOnAdd() - .HasColumnType("boolean") - .HasColumnName("ssl") - .HasDefaultValueSql("true"); - - b.Property("SecretKey") - .ValueGeneratedOnAdd() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("secret_key") - .HasDefaultValueSql("''"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Uri") - .ValueGeneratedOnAdd() - .HasColumnType("text") - .HasColumnName("uri") - .HasDefaultValueSql("''"); - - b.HasKey("Id") - .HasName("PRIMARY"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_id"); - - b.ToTable("webhooks_config", (string)null); - }); - - modelBuilder.Entity("ASC.Webhooks.Core.EF.Model.WebhooksLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("ConfigId") - .HasColumnType("int") - .HasColumnName("config_id"); - - b.Property("CreationTime") - .HasColumnType("datetime") - .HasColumnName("creation_time"); - - b.Property("Delivery") - .HasColumnType("datetime") - .HasColumnName("delivery"); - - b.Property("RequestHeaders") - .HasColumnType("json") - .HasColumnName("request_headers"); - - b.Property("RequestPayload") - .IsRequired() - .HasColumnType("text") - .HasColumnName("request_payload"); - - b.Property("ResponseHeaders") - .HasColumnType("json") - .HasColumnName("response_headers"); - - b.Property("ResponsePayload") - .HasColumnType("text") - .HasColumnName("response_payload"); - - b.Property("Status") - .HasColumnType("int") - .HasColumnName("status"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Uid") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("varchar") - .HasColumnName("uid"); - - b.Property("WebhookId") - .HasColumnType("int") - .HasColumnName("webhook_id"); - - b.HasKey("Id") - .HasName("PRIMARY"); - - b.HasIndex("ConfigId"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_id"); - - b.ToTable("webhooks_logs", (string)null); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Acl", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbGroup", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbQuotaRow", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbSubscriptionMethod", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbTariff", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbTariffRow", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.FireBaseUser", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbCoreSettings", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioSettings", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioUserVisit", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.NotifyQueue", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.TelegramUser", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.TenantIpRestrictions", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Subscription", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.User", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserDav", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserGroup", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserPhoto", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserSecurity", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Data.Backup.EF.Model.BackupRecord", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Data.Backup.EF.Model.BackupSchedule", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithOne() - .HasForeignKey("ASC.Data.Backup.EF.Model.BackupSchedule", "TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.EventBus.Extensions.Logger.IntegrationEventLogEntry", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedAggregate", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedReaded", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedUsers", b => - { - b.HasOne("ASC.Feed.Model.FeedAggregate", "Feed") - .WithMany() - .HasForeignKey("FeedId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Feed"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFile", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesBunchObjects", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesLink", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesProperties", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesSecurity", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTag", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTagLink", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyAccount", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyApp", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyIdMapping", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFolder", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFolderTree", b => - { - b.HasOne("ASC.Files.Core.EF.DbFolder", "Folder") - .WithMany() - .HasForeignKey("FolderId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Folder"); - }); - - modelBuilder.Entity("ASC.MessagingSystem.EF.Model.AuditEvent", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.MessagingSystem.EF.Model.LoginEvent", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Webhooks.Core.EF.Model.WebhooksConfig", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Webhooks.Core.EF.Model.WebhooksLog", b => - { - b.HasOne("ASC.Webhooks.Core.EF.Model.WebhooksConfig", "Config") - .WithMany() - .HasForeignKey("ConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Config"); - - b.Navigation("Tenant"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/migrations/postgre/MigrationContext/20230621121634_MigrationContextMigrate.cs b/migrations/postgre/MigrationContext/20230621121634_MigrationContextMigrate.cs deleted file mode 100644 index 31d3151f10..0000000000 --- a/migrations/postgre/MigrationContext/20230621121634_MigrationContextMigrate.cs +++ /dev/null @@ -1,2322 +0,0 @@ -using System; -using Microsoft.EntityFrameworkCore.Migrations; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; - -#nullable disable - -#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional - -namespace ASC.Migrations.PostgreSql.Migrations -{ - /// - public partial class MigrationContextMigrate : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.EnsureSchema( - name: "onlyoffice"); - - migrationBuilder.CreateTable( - name: "account_links", - schema: "onlyoffice", - columns: table => new - { - id = table.Column(type: "character varying(200)", maxLength: 200, nullable: false), - uid = table.Column(type: "character varying(200)", maxLength: 200, nullable: false), - provider = table.Column(type: "character(60)", fixedLength: true, maxLength: 60, nullable: true, defaultValueSql: "NULL"), - profile = table.Column(type: "text", nullable: false), - linked = table.Column(type: "timestamp with time zone", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("account_links_pkey", x => new { x.id, x.uid }); - }); - - migrationBuilder.CreateTable( - name: "dbip_lookup", - columns: table => new - { - addrtype = table.Column(name: "addr_type", type: "enum('ipv4','ipv6')", nullable: false), - ipstart = table.Column(name: "ip_start", type: "varbinary(16)", nullable: false), - ipend = table.Column(name: "ip_end", type: "varbinary(16)", nullable: false), - continent = table.Column(type: "char(2)", nullable: false), - country = table.Column(type: "char(2)", nullable: false), - stateprovcode = table.Column(name: "stateprov_code", type: "varchar(15)", nullable: true), - stateprov = table.Column(type: "varchar(80)", nullable: false), - district = table.Column(type: "varchar(80)", nullable: false), - city = table.Column(type: "varchar(80)", nullable: false), - zipcode = table.Column(type: "varchar(20)", nullable: true), - latitude = table.Column(type: "float", nullable: false), - longitude = table.Column(type: "float", nullable: false), - geonameid = table.Column(name: "geoname_id", type: "int(10)", nullable: true), - timezoneoffset = table.Column(name: "timezone_offset", type: "float", nullable: false), - timezonename = table.Column(name: "timezone_name", type: "varchar(64)", nullable: false), - weathercode = table.Column(name: "weather_code", type: "varchar(10)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_dbip_lookup", x => new { x.addrtype, x.ipstart }); - }); - - migrationBuilder.CreateTable( - name: "feed_last", - schema: "onlyoffice", - columns: table => new - { - lastkey = table.Column(name: "last_key", type: "character varying(128)", maxLength: 128, nullable: false), - lastdate = table.Column(name: "last_date", type: "timestamp with time zone", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("feed_last_pkey", x => x.lastkey); - }); - - migrationBuilder.CreateTable( - name: "files_converts", - schema: "onlyoffice", - columns: table => new - { - input = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), - output = table.Column(type: "character varying(50)", maxLength: 50, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("files_converts_pkey", x => new { x.input, x.output }); - }); - - migrationBuilder.CreateTable( - name: "hosting_instance_registration", - columns: table => new - { - instanceregistrationid = table.Column(name: "instance_registration_id", type: "varchar(255)", nullable: false, collation: "utf8_general_ci"), - lastupdated = table.Column(name: "last_updated", type: "datetime", nullable: true), - workertypename = table.Column(name: "worker_type_name", type: "varchar(255)", nullable: false, collation: "utf8_general_ci"), - isactive = table.Column(name: "is_active", type: "tinyint(4)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PRIMARY", x => x.instanceregistrationid); - }); - - migrationBuilder.CreateTable( - name: "mobile_app_install", - schema: "onlyoffice", - columns: table => new - { - useremail = table.Column(name: "user_email", type: "character varying(255)", maxLength: 255, nullable: false), - apptype = table.Column(name: "app_type", type: "integer", nullable: false), - registeredon = table.Column(name: "registered_on", type: "timestamp with time zone", nullable: false), - lastsign = table.Column(name: "last_sign", type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("mobile_app_install_pkey", x => new { x.useremail, x.apptype }); - }); - - migrationBuilder.CreateTable( - name: "notify_info", - schema: "onlyoffice", - columns: table => new - { - notifyid = table.Column(name: "notify_id", type: "integer", nullable: false), - state = table.Column(type: "integer", nullable: false), - attempts = table.Column(type: "integer", nullable: false), - modifydate = table.Column(name: "modify_date", type: "timestamp with time zone", nullable: false), - priority = table.Column(type: "integer", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("notify_info_pkey", x => x.notifyid); - }); - - migrationBuilder.CreateTable( - name: "Regions", - columns: table => new - { - Region = table.Column(type: "text", nullable: false), - Provider = table.Column(type: "text", nullable: true), - ConnectionString = table.Column(type: "text", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_Regions", x => x.Region); - }); - - migrationBuilder.CreateTable( - name: "tenants_forbiden", - schema: "onlyoffice", - columns: table => new - { - address = table.Column(type: "character varying(50)", maxLength: 50, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("tenants_forbiden_pkey", x => x.address); - }); - - migrationBuilder.CreateTable( - name: "tenants_quota", - schema: "onlyoffice", - columns: table => new - { - tenant = table.Column(type: "integer", nullable: false), - name = table.Column(type: "character varying", nullable: true), - description = table.Column(type: "character varying", nullable: true), - features = table.Column(type: "text", nullable: true), - price = table.Column(type: "numeric(10,2)", nullable: false, defaultValueSql: "0.00"), - productid = table.Column(name: "product_id", type: "character varying(128)", maxLength: 128, nullable: true, defaultValueSql: "NULL"), - visible = table.Column(type: "boolean", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("tenants_quota_pkey", x => x.tenant); - }); - - migrationBuilder.CreateTable( - name: "tenants_tenants", - schema: "onlyoffice", - columns: table => new - { - id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - name = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), - alias = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), - mappeddomain = table.Column(type: "character varying(100)", maxLength: 100, nullable: true, defaultValueSql: "NULL"), - version = table.Column(type: "integer", nullable: false, defaultValueSql: "2"), - versionchanged = table.Column(name: "version_changed", type: "timestamp with time zone", nullable: true), - language = table.Column(type: "character(10)", fixedLength: true, maxLength: 10, nullable: false, defaultValueSql: "'en-US'"), - timezone = table.Column(type: "character varying(50)", maxLength: 50, nullable: true, defaultValueSql: "NULL"), - trusteddomains = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true, defaultValueSql: "NULL"), - trusteddomainsenabled = table.Column(type: "integer", nullable: false, defaultValueSql: "1"), - status = table.Column(type: "integer", nullable: false), - statuschanged = table.Column(type: "timestamp with time zone", nullable: true), - creationdatetime = table.Column(type: "timestamp with time zone", nullable: false), - ownerid = table.Column(name: "owner_id", type: "uuid", maxLength: 38, nullable: true, defaultValueSql: "NULL"), - paymentid = table.Column(name: "payment_id", type: "character varying(38)", maxLength: 38, nullable: true, defaultValueSql: "NULL"), - industry = table.Column(type: "integer", nullable: false), - lastmodified = table.Column(name: "last_modified", type: "timestamp with time zone", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP"), - spam = table.Column(type: "boolean", nullable: false, defaultValueSql: "true"), - calls = table.Column(type: "boolean", nullable: false, defaultValueSql: "true") - }, - constraints: table => - { - table.PrimaryKey("PK_tenants_tenants", x => x.id); - }); - - migrationBuilder.CreateTable( - name: "tenants_version", - schema: "onlyoffice", - columns: table => new - { - id = table.Column(type: "integer", nullable: false), - version = table.Column(type: "character varying(64)", maxLength: 64, nullable: false), - url = table.Column(type: "character varying(64)", maxLength: 64, nullable: false), - defaultversion = table.Column(name: "default_version", type: "integer", nullable: false), - visible = table.Column(type: "boolean", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_tenants_version", x => x.id); - }); - - migrationBuilder.CreateTable( - name: "webhooks", - columns: table => new - { - id = table.Column(type: "int", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - route = table.Column(type: "character varying(200)", maxLength: 200, nullable: true, defaultValueSql: "''"), - method = table.Column(type: "character varying(10)", maxLength: 10, nullable: true, defaultValueSql: "''") - }, - constraints: table => - { - table.PrimaryKey("PRIMARY", x => x.id); - }); - - migrationBuilder.CreateTable( - name: "webstudio_index", - schema: "onlyoffice", - columns: table => new - { - indexname = table.Column(name: "index_name", type: "character varying(50)", maxLength: 50, nullable: false), - lastmodified = table.Column(name: "last_modified", type: "timestamp with time zone", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP") - }, - constraints: table => - { - table.PrimaryKey("webstudio_index_pkey", x => x.indexname); - }); - - migrationBuilder.CreateTable( - name: "audit_events", - schema: "onlyoffice", - columns: table => new - { - id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - initiator = table.Column(type: "character varying(200)", maxLength: 200, nullable: true, defaultValueSql: "NULL"), - target = table.Column(type: "text", nullable: true), - ip = table.Column(type: "character varying(50)", maxLength: 50, nullable: true, defaultValueSql: "NULL"), - browser = table.Column(type: "character varying(200)", maxLength: 200, nullable: true, defaultValueSql: "NULL"), - platform = table.Column(type: "character varying(200)", maxLength: 200, nullable: true, defaultValueSql: "NULL"), - date = table.Column(type: "timestamp with time zone", nullable: false), - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - userid = table.Column(name: "user_id", type: "uuid", fixedLength: true, maxLength: 38, nullable: true, defaultValueSql: "NULL"), - page = table.Column(type: "character varying(300)", maxLength: 300, nullable: true, defaultValueSql: "NULL"), - action = table.Column(type: "integer", nullable: true), - description = table.Column(type: "character varying(20000)", maxLength: 20000, nullable: true, defaultValueSql: "NULL") - }, - constraints: table => - { - table.PrimaryKey("PK_audit_events", x => x.id); - }); - - migrationBuilder.CreateTable( - name: "backup_backup", - columns: table => new - { - id = table.Column(type: "char", maxLength: 38, nullable: false, collation: "utf8_general_ci"), - tenantid = table.Column(name: "tenant_id", type: "int", maxLength: 10, nullable: false), - isscheduled = table.Column(name: "is_scheduled", type: "int", maxLength: 10, nullable: false), - name = table.Column(type: "character varying(255)", maxLength: 255, nullable: false, collation: "utf8_general_ci"), - hash = table.Column(type: "character varying(64)", maxLength: 64, nullable: false, collation: "utf8_general_ci"), - storagetype = table.Column(name: "storage_type", type: "int", maxLength: 10, nullable: false), - storagebasepath = table.Column(name: "storage_base_path", type: "character varying(255)", maxLength: 255, nullable: true, defaultValueSql: "NULL", collation: "utf8_general_ci"), - storagepath = table.Column(name: "storage_path", type: "character varying(255)", maxLength: 255, nullable: false, collation: "utf8_general_ci"), - createdon = table.Column(name: "created_on", type: "datetime", nullable: false), - expireson = table.Column(name: "expires_on", type: "datetime", nullable: false, defaultValueSql: "'0001-01-01 00:00:00'"), - storageparams = table.Column(name: "storage_params", type: "text", nullable: true, defaultValueSql: "NULL", collation: "utf8_general_ci"), - removed = table.Column(type: "int", maxLength: 10, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PRIMARY", x => x.id); - }); - - migrationBuilder.CreateTable( - name: "backup_schedule", - columns: table => new - { - tenantid = table.Column(name: "tenant_id", type: "integer", maxLength: 10, nullable: false), - cron = table.Column(type: "character varying(255)", maxLength: 255, nullable: false, collation: "utf8_general_ci"), - backupsstored = table.Column(name: "backups_stored", type: "integer", maxLength: 10, nullable: false), - storagetype = table.Column(name: "storage_type", type: "integer", maxLength: 10, nullable: false), - storagebasepath = table.Column(name: "storage_base_path", type: "character varying(255)", maxLength: 255, nullable: true, defaultValueSql: "NULL", collation: "utf8_general_ci"), - lastbackuptime = table.Column(name: "last_backup_time", type: "datetime", nullable: false), - storageparams = table.Column(name: "storage_params", type: "text", nullable: true, defaultValueSql: "NULL", collation: "utf8_general_ci") - }, - constraints: table => - { - table.PrimaryKey("PRIMARY", x => x.tenantid); - }); - - migrationBuilder.CreateTable( - name: "core_acl", - schema: "onlyoffice", - columns: table => new - { - tenant = table.Column(type: "integer", nullable: false), - subject = table.Column(type: "uuid", maxLength: 38, nullable: false), - action = table.Column(type: "uuid", maxLength: 38, nullable: false), - @object = table.Column(name: "object", type: "character varying(255)", maxLength: 255, nullable: false, defaultValueSql: "''"), - acetype = table.Column(type: "integer", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("core_acl_pkey", x => new { x.tenant, x.subject, x.action, x.@object }); - }); - - migrationBuilder.CreateTable( - name: "core_group", - columns: table => new - { - id = table.Column(type: "uuid", maxLength: 38, nullable: false), - tenant = table.Column(type: "integer", nullable: false), - name = table.Column(type: "character varying(128)", maxLength: 128, nullable: false), - categoryid = table.Column(type: "uuid", maxLength: 38, nullable: true, defaultValueSql: "NULL"), - parentid = table.Column(type: "uuid", maxLength: 38, nullable: true, defaultValueSql: "NULL"), - sid = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, defaultValueSql: "NULL"), - removed = table.Column(type: "boolean", nullable: false), - lastmodified = table.Column(name: "last_modified", type: "timestamp with time zone", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP") - }, - constraints: table => - { - table.PrimaryKey("PK_core_group", x => x.id); - }); - - migrationBuilder.CreateTable( - name: "core_settings", - schema: "onlyoffice", - columns: table => new - { - tenant = table.Column(type: "integer", nullable: false), - id = table.Column(type: "character varying(128)", maxLength: 128, nullable: false), - value = table.Column(type: "bytea", nullable: false), - lastmodified = table.Column(name: "last_modified", type: "timestamp with time zone", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP") - }, - constraints: table => - { - table.PrimaryKey("core_settings_pkey", x => new { x.tenant, x.id }); - }); - - migrationBuilder.CreateTable( - name: "core_subscription", - schema: "onlyoffice", - columns: table => new - { - tenant = table.Column(type: "integer", nullable: false), - source = table.Column(type: "character varying(38)", maxLength: 38, nullable: false), - action = table.Column(type: "character varying(128)", maxLength: 128, nullable: false), - recipient = table.Column(type: "character varying(38)", maxLength: 38, nullable: false), - @object = table.Column(name: "object", type: "character varying(128)", maxLength: 128, nullable: false), - unsubscribed = table.Column(type: "boolean", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("core_subscription_pkey", x => new { x.tenant, x.source, x.action, x.recipient, x.@object }); - }); - - migrationBuilder.CreateTable( - name: "core_subscriptionmethod", - schema: "onlyoffice", - columns: table => new - { - tenant = table.Column(type: "integer", nullable: false), - source = table.Column(type: "character varying(38)", maxLength: 38, nullable: false), - action = table.Column(type: "character varying(128)", maxLength: 128, nullable: false), - recipient = table.Column(type: "character varying(38)", maxLength: 38, nullable: false), - sender = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("core_subscriptionmethod_pkey", x => new { x.tenant, x.source, x.action, x.recipient }); - }); - - migrationBuilder.CreateTable( - name: "core_user", - schema: "onlyoffice", - columns: table => new - { - id = table.Column(type: "uuid", maxLength: 38, nullable: false), - tenant = table.Column(type: "integer", nullable: false), - username = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), - firstname = table.Column(type: "character varying(64)", maxLength: 64, nullable: false), - lastname = table.Column(type: "character varying(64)", maxLength: 64, nullable: false), - sex = table.Column(type: "boolean", nullable: true), - bithdate = table.Column(type: "timestamp with time zone", nullable: true), - status = table.Column(type: "integer", nullable: false, defaultValueSql: "1"), - activationstatus = table.Column(name: "activation_status", type: "integer", nullable: false), - email = table.Column(type: "character varying(255)", maxLength: 255, nullable: true, defaultValueSql: "NULL"), - workfromdate = table.Column(type: "timestamp with time zone", nullable: true), - terminateddate = table.Column(type: "timestamp with time zone", nullable: true), - title = table.Column(type: "character varying(64)", maxLength: 64, nullable: true, defaultValueSql: "NULL"), - culture = table.Column(type: "character varying(20)", maxLength: 20, nullable: true, defaultValueSql: "NULL"), - contacts = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true, defaultValueSql: "NULL"), - phone = table.Column(type: "character varying(255)", maxLength: 255, nullable: true, defaultValueSql: "NULL"), - phoneactivation = table.Column(name: "phone_activation", type: "integer", nullable: false), - location = table.Column(type: "character varying(255)", maxLength: 255, nullable: true, defaultValueSql: "NULL"), - notes = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, defaultValueSql: "NULL"), - sid = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, defaultValueSql: "NULL"), - ssonameid = table.Column(name: "sso_name_id", type: "character varying(512)", maxLength: 512, nullable: true, defaultValueSql: "NULL"), - ssosessionid = table.Column(name: "sso_session_id", type: "character varying(512)", maxLength: 512, nullable: true, defaultValueSql: "NULL"), - removed = table.Column(type: "boolean", nullable: false), - createon = table.Column(name: "create_on", type: "timestamp with time zone", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP"), - lastmodified = table.Column(name: "last_modified", type: "timestamp with time zone", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_core_user", x => x.id); - }); - - migrationBuilder.CreateTable( - name: "core_userdav", - schema: "onlyoffice", - columns: table => new - { - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - userid = table.Column(name: "user_id", type: "uuid", maxLength: 38, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("core_userdav_pkey", x => new { x.tenantid, x.userid }); - }); - - migrationBuilder.CreateTable( - name: "core_usergroup", - schema: "onlyoffice", - columns: table => new - { - tenant = table.Column(type: "integer", nullable: false), - userid = table.Column(type: "uuid", maxLength: 38, nullable: false), - groupid = table.Column(type: "uuid", maxLength: 38, nullable: false), - reftype = table.Column(name: "ref_type", type: "integer", nullable: false), - removed = table.Column(type: "boolean", nullable: false), - lastmodified = table.Column(name: "last_modified", type: "timestamp with time zone", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP") - }, - constraints: table => - { - table.PrimaryKey("core_usergroup_pkey", x => new { x.tenant, x.userid, x.groupid, x.reftype }); - }); - - migrationBuilder.CreateTable( - name: "core_userphoto", - schema: "onlyoffice", - columns: table => new - { - userid = table.Column(type: "uuid", maxLength: 38, nullable: false), - tenant = table.Column(type: "integer", nullable: false), - photo = table.Column(type: "bytea", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("core_userphoto_pkey", x => x.userid); - }); - - migrationBuilder.CreateTable( - name: "core_usersecurity", - schema: "onlyoffice", - columns: table => new - { - userid = table.Column(type: "uuid", maxLength: 38, nullable: false), - tenant = table.Column(type: "integer", nullable: false), - pwdhash = table.Column(type: "character varying(512)", maxLength: 512, nullable: true, defaultValueSql: "NULL"), - LastModified = table.Column(type: "timestamp with time zone", nullable: true, defaultValueSql: "CURRENT_TIMESTAMP") - }, - constraints: table => - { - table.PrimaryKey("core_usersecurity_pkey", x => x.userid); - }); - - migrationBuilder.CreateTable( - name: "event_bus_integration_event_log", - columns: table => new - { - eventid = table.Column(name: "event_id", type: "char(38)", nullable: false, collation: "utf8_general_ci"), - eventtypename = table.Column(name: "event_type_name", type: "varchar(255)", nullable: false, collation: "utf8_general_ci"), - state = table.Column(type: "int(11)", nullable: false), - timessent = table.Column(name: "times_sent", type: "int(11)", nullable: false), - createon = table.Column(name: "create_on", type: "datetime", nullable: false), - createby = table.Column(name: "create_by", type: "char(38)", nullable: false, collation: "utf8_general_ci"), - content = table.Column(type: "text", nullable: false, collation: "utf8_general_ci"), - TransactionId = table.Column(type: "text", nullable: true), - tenantid = table.Column(name: "tenant_id", type: "int(11)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PRIMARY", x => x.eventid); - }); - - migrationBuilder.CreateTable( - name: "feed_aggregate", - schema: "onlyoffice", - columns: table => new - { - id = table.Column(type: "character varying(88)", maxLength: 88, nullable: false), - tenant = table.Column(type: "integer", nullable: false), - product = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), - module = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), - author = table.Column(type: "uuid", fixedLength: true, maxLength: 38, nullable: false), - modifiedby = table.Column(name: "modified_by", type: "uuid", fixedLength: true, maxLength: 38, nullable: false), - createddate = table.Column(name: "created_date", type: "timestamp with time zone", nullable: false), - modifieddate = table.Column(name: "modified_date", type: "timestamp with time zone", nullable: false), - groupid = table.Column(name: "group_id", type: "character varying(70)", maxLength: 70, nullable: true, defaultValueSql: "NULL"), - aggregateddate = table.Column(name: "aggregated_date", type: "timestamp with time zone", nullable: false), - json = table.Column(type: "text", nullable: false), - keywords = table.Column(type: "text", nullable: true), - contextid = table.Column(name: "context_id", type: "text", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PK_feed_aggregate", x => x.id); - }); - - migrationBuilder.CreateTable( - name: "feed_readed", - schema: "onlyoffice", - columns: table => new - { - userid = table.Column(name: "user_id", type: "uuid", maxLength: 38, nullable: false), - module = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - timestamp = table.Column(type: "timestamp with time zone", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("feed_readed_pkey", x => new { x.userid, x.tenantid, x.module }); - }); - - migrationBuilder.CreateTable( - name: "files_bunch_objects", - schema: "onlyoffice", - columns: table => new - { - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - rightnode = table.Column(name: "right_node", type: "character varying(255)", maxLength: 255, nullable: false), - leftnode = table.Column(name: "left_node", type: "character varying(255)", maxLength: 255, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("files_bunch_objects_pkey", x => new { x.tenantid, x.rightnode }); - }); - - migrationBuilder.CreateTable( - name: "files_file", - schema: "onlyoffice", - columns: table => new - { - id = table.Column(type: "integer", nullable: false), - version = table.Column(type: "integer", nullable: false), - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - versiongroup = table.Column(name: "version_group", type: "integer", nullable: false, defaultValueSql: "1"), - currentversion = table.Column(name: "current_version", type: "boolean", nullable: false), - folderid = table.Column(name: "folder_id", type: "integer", nullable: false), - title = table.Column(type: "character varying(400)", maxLength: 400, nullable: false), - contentlength = table.Column(name: "content_length", type: "bigint", nullable: false, defaultValueSql: "'0'::bigint"), - filestatus = table.Column(name: "file_status", type: "integer", nullable: false), - category = table.Column(type: "integer", nullable: false), - createby = table.Column(name: "create_by", type: "uuid", fixedLength: true, maxLength: 38, nullable: false), - createon = table.Column(name: "create_on", type: "timestamp with time zone", nullable: false), - modifiedby = table.Column(name: "modified_by", type: "uuid", fixedLength: true, maxLength: 38, nullable: false), - modifiedon = table.Column(name: "modified_on", type: "timestamp with time zone", nullable: false), - convertedtype = table.Column(name: "converted_type", type: "character varying(10)", maxLength: 10, nullable: true, defaultValueSql: "NULL::character varying"), - comment = table.Column(type: "character varying(255)", maxLength: 255, nullable: true, defaultValueSql: "NULL::character varying"), - changes = table.Column(type: "text", nullable: true), - encrypted = table.Column(type: "boolean", nullable: false), - forcesave = table.Column(type: "integer", nullable: false), - thumb = table.Column(type: "integer", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("files_file_pkey", x => new { x.id, x.tenantid, x.version }); - }); - - migrationBuilder.CreateTable( - name: "files_folder", - schema: "onlyoffice", - columns: table => new - { - id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - parentid = table.Column(name: "parent_id", type: "integer", nullable: false), - title = table.Column(type: "character varying(400)", maxLength: 400, nullable: false), - foldertype = table.Column(name: "folder_type", type: "integer", nullable: false), - createby = table.Column(name: "create_by", type: "uuid", fixedLength: true, maxLength: 38, nullable: false), - createon = table.Column(name: "create_on", type: "timestamp with time zone", nullable: false), - modifiedby = table.Column(name: "modified_by", type: "uuid", fixedLength: true, maxLength: 38, nullable: false), - modifiedon = table.Column(name: "modified_on", type: "timestamp with time zone", nullable: false), - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - foldersCount = table.Column(type: "integer", nullable: false), - filesCount = table.Column(type: "integer", nullable: false), - @private = table.Column(name: "private", type: "boolean", nullable: false), - haslogo = table.Column(name: "has_logo", type: "boolean", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_files_folder", x => x.id); - }); - - migrationBuilder.CreateTable( - name: "files_link", - schema: "onlyoffice", - columns: table => new - { - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - sourceid = table.Column(name: "source_id", type: "character varying(32)", maxLength: 32, nullable: false), - linkedid = table.Column(name: "linked_id", type: "character varying(32)", maxLength: 32, nullable: false), - linkedfor = table.Column(name: "linked_for", type: "uuid", fixedLength: true, maxLength: 38, nullable: false, defaultValueSql: "NULL::bpchar") - }, - constraints: table => - { - table.PrimaryKey("files_link_pkey", x => new { x.tenantid, x.sourceid, x.linkedid }); - }); - - migrationBuilder.CreateTable( - name: "files_properties", - schema: "onlyoffice", - columns: table => new - { - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - entryid = table.Column(name: "entry_id", type: "character varying(50)", maxLength: 50, nullable: false), - data = table.Column(type: "text", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("files_properties_pkey", x => new { x.tenantid, x.entryid }); - }); - - migrationBuilder.CreateTable( - name: "files_security", - schema: "onlyoffice", - columns: table => new - { - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - entryid = table.Column(name: "entry_id", type: "character varying(50)", maxLength: 50, nullable: false), - entrytype = table.Column(name: "entry_type", type: "integer", nullable: false), - subject = table.Column(type: "uuid", fixedLength: true, maxLength: 38, nullable: false), - subjecttype = table.Column(name: "subject_type", type: "integer", nullable: false), - owner = table.Column(type: "uuid", fixedLength: true, maxLength: 38, nullable: false), - security = table.Column(type: "integer", nullable: false), - timestamp = table.Column(type: "timestamp with time zone", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP"), - options = table.Column(type: "text", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("files_security_pkey", x => new { x.tenantid, x.entryid, x.entrytype, x.subject }); - }); - - migrationBuilder.CreateTable( - name: "files_tag", - schema: "onlyoffice", - columns: table => new - { - id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - name = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), - owner = table.Column(type: "uuid", maxLength: 38, nullable: false), - flag = table.Column(type: "integer", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_files_tag", x => x.id); - }); - - migrationBuilder.CreateTable( - name: "files_tag_link", - schema: "onlyoffice", - columns: table => new - { - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - tagid = table.Column(name: "tag_id", type: "integer", nullable: false), - entrytype = table.Column(name: "entry_type", type: "integer", nullable: false), - entryid = table.Column(name: "entry_id", type: "character varying(32)", maxLength: 32, nullable: false), - createby = table.Column(name: "create_by", type: "uuid", fixedLength: true, maxLength: 38, nullable: true, defaultValueSql: "NULL::bpchar"), - createon = table.Column(name: "create_on", type: "timestamp with time zone", nullable: true), - tagcount = table.Column(name: "tag_count", type: "integer", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("files_tag_link_pkey", x => new { x.tenantid, x.tagid, x.entrytype, x.entryid }); - }); - - migrationBuilder.CreateTable( - name: "files_thirdparty_account", - schema: "onlyoffice", - columns: table => new - { - id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - provider = table.Column(type: "character varying(50)", maxLength: 50, nullable: false, defaultValueSql: "'0'::character varying"), - customertitle = table.Column(name: "customer_title", type: "character varying(400)", maxLength: 400, nullable: false), - username = table.Column(name: "user_name", type: "character varying(100)", maxLength: 100, nullable: false), - password = table.Column(type: "character varying(100)", maxLength: 100, nullable: false), - token = table.Column(type: "text", nullable: true), - userid = table.Column(name: "user_id", type: "uuid", maxLength: 38, nullable: false), - foldertype = table.Column(name: "folder_type", type: "integer", nullable: false), - roomtype = table.Column(name: "room_type", type: "integer", nullable: false), - createon = table.Column(name: "create_on", type: "timestamp with time zone", nullable: false), - url = table.Column(type: "text", nullable: true), - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - folderid = table.Column(name: "folder_id", type: "text", nullable: true), - @private = table.Column(name: "private", type: "boolean", nullable: false), - haslogo = table.Column(name: "has_logo", type: "boolean", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_files_thirdparty_account", x => x.id); - }); - - migrationBuilder.CreateTable( - name: "files_thirdparty_app", - schema: "onlyoffice", - columns: table => new - { - userid = table.Column(name: "user_id", type: "uuid", maxLength: 38, nullable: false), - app = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), - token = table.Column(type: "text", nullable: true), - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - modifiedon = table.Column(name: "modified_on", type: "timestamp with time zone", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP") - }, - constraints: table => - { - table.PrimaryKey("files_thirdparty_app_pkey", x => new { x.userid, x.app }); - }); - - migrationBuilder.CreateTable( - name: "files_thirdparty_id_mapping", - schema: "onlyoffice", - columns: table => new - { - hashid = table.Column(name: "hash_id", type: "character(32)", fixedLength: true, maxLength: 32, nullable: false), - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - id = table.Column(type: "text", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("files_thirdparty_id_mapping_pkey", x => x.hashid); - }); - - migrationBuilder.CreateTable( - name: "firebase_users", - schema: "onlyoffice", - columns: table => new - { - id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - userid = table.Column(name: "user_id", type: "uuid", maxLength: 36, nullable: false), - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - firebasedevicetoken = table.Column(name: "firebase_device_token", type: "character varying(255)", maxLength: 255, nullable: true), - application = table.Column(type: "character varying(20)", maxLength: 20, nullable: true), - issubscribed = table.Column(name: "is_subscribed", type: "boolean", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("firebase_users_pkey", x => x.id); - }); - - migrationBuilder.CreateTable( - name: "login_events", - schema: "onlyoffice", - columns: table => new - { - id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - login = table.Column(type: "character varying(200)", maxLength: 200, nullable: true, defaultValueSql: "NULL"), - active = table.Column(type: "boolean", nullable: false), - ip = table.Column(type: "character varying(50)", maxLength: 50, nullable: true, defaultValueSql: "NULL"), - browser = table.Column(type: "character varying(200)", maxLength: 200, nullable: true, defaultValueSql: "NULL::character varying"), - platform = table.Column(type: "character varying(200)", maxLength: 200, nullable: true, defaultValueSql: "NULL"), - date = table.Column(type: "timestamp with time zone", nullable: false), - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - userid = table.Column(name: "user_id", type: "uuid", fixedLength: true, maxLength: 38, nullable: false), - page = table.Column(type: "character varying(300)", maxLength: 300, nullable: true, defaultValueSql: "NULL"), - action = table.Column(type: "integer", nullable: true), - description = table.Column(type: "character varying(500)", maxLength: 500, nullable: true, defaultValueSql: "NULL") - }, - constraints: table => - { - table.PrimaryKey("PK_login_events", x => x.id); - }); - - migrationBuilder.CreateTable( - name: "notify_queue", - schema: "onlyoffice", - columns: table => new - { - notifyid = table.Column(name: "notify_id", type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - sender = table.Column(type: "character varying(255)", maxLength: 255, nullable: true, defaultValueSql: "NULL"), - reciever = table.Column(type: "character varying(255)", maxLength: 255, nullable: true, defaultValueSql: "NULL"), - subject = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true, defaultValueSql: "NULL"), - contenttype = table.Column(name: "content_type", type: "character varying(64)", maxLength: 64, nullable: true, defaultValueSql: "NULL"), - content = table.Column(type: "text", nullable: true), - sendertype = table.Column(name: "sender_type", type: "character varying(64)", maxLength: 64, nullable: true, defaultValueSql: "NULL"), - replyto = table.Column(name: "reply_to", type: "character varying(1024)", maxLength: 1024, nullable: true, defaultValueSql: "NULL"), - creationdate = table.Column(name: "creation_date", type: "timestamp with time zone", nullable: false), - attachments = table.Column(type: "text", nullable: true), - autosubmitted = table.Column(name: "auto_submitted", type: "character varying(64)", maxLength: 64, nullable: true, defaultValueSql: "NULL") - }, - constraints: table => - { - table.PrimaryKey("notify_queue_pkey", x => x.notifyid); - }); - - migrationBuilder.CreateTable( - name: "telegram_users", - schema: "onlyoffice", - columns: table => new - { - portaluserid = table.Column(name: "portal_user_id", type: "uuid", maxLength: 38, nullable: false), - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - telegramuserid = table.Column(name: "telegram_user_id", type: "bigint", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("telegram_users_pkey", x => new { x.tenantid, x.portaluserid }); - }); - - migrationBuilder.CreateTable( - name: "tenants_iprestrictions", - schema: "onlyoffice", - columns: table => new - { - id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - tenant = table.Column(type: "integer", nullable: false), - ip = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), - foradmin = table.Column(name: "for_admin", type: "TINYINT(1)", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PK_tenants_iprestrictions", x => x.id); - }); - - migrationBuilder.CreateTable( - name: "tenants_quotarow", - schema: "onlyoffice", - columns: table => new - { - tenant = table.Column(type: "integer", nullable: false), - path = table.Column(type: "character varying(255)", maxLength: 255, nullable: false), - counter = table.Column(type: "bigint", nullable: false, defaultValueSql: "'0'"), - tag = table.Column(type: "character varying(1024)", maxLength: 1024, nullable: true, defaultValueSql: "'0'"), - lastmodified = table.Column(name: "last_modified", type: "timestamp with time zone", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP"), - userid = table.Column(name: "user_id", type: "uuid", maxLength: 36, nullable: false, defaultValueSql: "NULL") - }, - constraints: table => - { - table.PrimaryKey("tenants_quotarow_pkey", x => new { x.tenant, x.path }); - }); - - migrationBuilder.CreateTable( - name: "tenants_tariff", - schema: "onlyoffice", - columns: table => new - { - id = table.Column(type: "integer", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - tenant = table.Column(type: "integer", nullable: false), - stamp = table.Column(type: "timestamp with time zone", nullable: false), - customerid = table.Column(name: "customer_id", type: "character varying(255)", maxLength: 255, nullable: false, defaultValueSql: "NULL"), - comment = table.Column(type: "character varying(255)", maxLength: 255, nullable: true, defaultValueSql: "NULL"), - createon = table.Column(name: "create_on", type: "timestamp with time zone", nullable: false, defaultValueSql: "CURRENT_TIMESTAMP") - }, - constraints: table => - { - table.PrimaryKey("PK_tenants_tariff", x => x.id); - }); - - migrationBuilder.CreateTable( - name: "tenants_tariffrow", - schema: "onlyoffice", - columns: table => new - { - tariffid = table.Column(name: "tariff_id", type: "int", nullable: false), - quota = table.Column(type: "int", nullable: false), - tenant = table.Column(type: "int", nullable: false), - quantity = table.Column(type: "int", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("PRIMARY", x => new { x.tenant, x.tariffid, x.quota }); - }); - - migrationBuilder.CreateTable( - name: "webhooks_config", - columns: table => new - { - id = table.Column(type: "int", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - name = table.Column(type: "character varying(50)", maxLength: 50, nullable: false), - secretkey = table.Column(name: "secret_key", type: "character varying(50)", maxLength: 50, nullable: true, defaultValueSql: "''"), - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - uri = table.Column(type: "text", nullable: true, defaultValueSql: "''"), - enabled = table.Column(type: "boolean", nullable: false, defaultValueSql: "true"), - ssl = table.Column(type: "boolean", nullable: false, defaultValueSql: "true") - }, - constraints: table => - { - table.PrimaryKey("PRIMARY", x => x.id); - }); - - migrationBuilder.CreateTable( - name: "webstudio_settings", - schema: "onlyoffice", - columns: table => new - { - TenantID = table.Column(type: "integer", nullable: false), - ID = table.Column(type: "uuid", maxLength: 64, nullable: false), - UserID = table.Column(type: "uuid", maxLength: 64, nullable: false), - Data = table.Column(type: "text", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("webstudio_settings_pkey", x => new { x.TenantID, x.ID, x.UserID }); - }); - - migrationBuilder.CreateTable( - name: "webstudio_uservisit", - schema: "onlyoffice", - columns: table => new - { - tenantid = table.Column(type: "integer", nullable: false), - visitdate = table.Column(type: "timestamp with time zone", nullable: false), - productid = table.Column(type: "uuid", maxLength: 38, nullable: false), - userid = table.Column(type: "uuid", maxLength: 38, nullable: false), - visitcount = table.Column(type: "integer", nullable: false), - firstvisittime = table.Column(type: "timestamp with time zone", nullable: true), - lastvisittime = table.Column(type: "timestamp with time zone", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("webstudio_uservisit_pkey", x => new { x.tenantid, x.visitdate, x.productid, x.userid }); - }); - - migrationBuilder.CreateTable( - name: "feed_users", - schema: "onlyoffice", - columns: table => new - { - feedid = table.Column(name: "feed_id", type: "character varying(88)", maxLength: 88, nullable: false), - userid = table.Column(name: "user_id", type: "uuid", fixedLength: true, maxLength: 38, nullable: false) - }, - constraints: table => - { - table.PrimaryKey("feed_users_pkey", x => new { x.feedid, x.userid }); - }); - - migrationBuilder.CreateTable( - name: "files_folder_tree", - schema: "onlyoffice", - columns: table => new - { - folderid = table.Column(name: "folder_id", type: "integer", nullable: false), - parentid = table.Column(name: "parent_id", type: "integer", nullable: false), - level = table.Column(type: "integer", nullable: false) - }, - constraints: table => - { - table.PrimaryKey("files_folder_tree_pkey", x => new { x.parentid, x.folderid }); - }); - - migrationBuilder.CreateTable( - name: "webhooks_logs", - columns: table => new - { - id = table.Column(type: "int", nullable: false) - .Annotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn), - configid = table.Column(name: "config_id", type: "int", nullable: false), - creationtime = table.Column(name: "creation_time", type: "datetime", nullable: false), - webhookid = table.Column(name: "webhook_id", type: "int", nullable: false), - requestheaders = table.Column(name: "request_headers", type: "json", nullable: true), - requestpayload = table.Column(name: "request_payload", type: "text", nullable: false), - responseheaders = table.Column(name: "response_headers", type: "json", nullable: true), - responsepayload = table.Column(name: "response_payload", type: "text", nullable: true), - status = table.Column(type: "int", nullable: false), - tenantid = table.Column(name: "tenant_id", type: "integer", nullable: false), - uid = table.Column(type: "varchar", maxLength: 50, nullable: false), - delivery = table.Column(type: "datetime", nullable: true) - }, - constraints: table => - { - table.PrimaryKey("PRIMARY", x => x.id); - }); - - migrationBuilder.InsertData( - schema: "onlyoffice", - table: "files_converts", - columns: new[] { "input", "output" }, - values: new object[,] - { - { ".csv", ".ods" }, - { ".csv", ".ots" }, - { ".csv", ".pdf" }, - { ".csv", ".xlsm" }, - { ".csv", ".xlsx" }, - { ".csv", ".xltm" }, - { ".csv", ".xltx" }, - { ".doc", ".docm" }, - { ".doc", ".docx" }, - { ".doc", ".dotm" }, - { ".doc", ".dotx" }, - { ".doc", ".epub" }, - { ".doc", ".fb2" }, - { ".doc", ".html" }, - { ".doc", ".odt" }, - { ".doc", ".ott" }, - { ".doc", ".pdf" }, - { ".doc", ".rtf" }, - { ".doc", ".txt" }, - { ".docm", ".docx" }, - { ".docm", ".dotm" }, - { ".docm", ".dotx" }, - { ".docm", ".epub" }, - { ".docm", ".fb2" }, - { ".docm", ".html" }, - { ".docm", ".odt" }, - { ".docm", ".ott" }, - { ".docm", ".pdf" }, - { ".docm", ".rtf" }, - { ".docm", ".txt" }, - { ".doct", ".docx" }, - { ".docx", ".docm" }, - { ".docx", ".docxf" }, - { ".docx", ".dotm" }, - { ".docx", ".dotx" }, - { ".docx", ".epub" }, - { ".docx", ".fb2" }, - { ".docx", ".html" }, - { ".docx", ".odt" }, - { ".docx", ".ott" }, - { ".docx", ".pdf" }, - { ".docx", ".rtf" }, - { ".docx", ".txt" }, - { ".docxf", ".docm" }, - { ".docxf", ".docx" }, - { ".docxf", ".dotm" }, - { ".docxf", ".dotx" }, - { ".docxf", ".epub" }, - { ".docxf", ".fb2" }, - { ".docxf", ".html" }, - { ".docxf", ".odt" }, - { ".docxf", ".oform" }, - { ".docxf", ".ott" }, - { ".docxf", ".pdf" }, - { ".docxf", ".rtf" }, - { ".docxf", ".txt" }, - { ".dot", ".docm" }, - { ".dot", ".docx" }, - { ".dot", ".dotm" }, - { ".dot", ".dotx" }, - { ".dot", ".epub" }, - { ".dot", ".fb2" }, - { ".dot", ".html" }, - { ".dot", ".odt" }, - { ".dot", ".ott" }, - { ".dot", ".pdf" }, - { ".dot", ".rtf" }, - { ".dot", ".txt" }, - { ".dotm", ".docm" }, - { ".dotm", ".docx" }, - { ".dotm", ".dotx" }, - { ".dotm", ".epub" }, - { ".dotm", ".fb2" }, - { ".dotm", ".html" }, - { ".dotm", ".odt" }, - { ".dotm", ".ott" }, - { ".dotm", ".pdf" }, - { ".dotm", ".rtf" }, - { ".dotm", ".txt" }, - { ".dotx", ".docm" }, - { ".dotx", ".docx" }, - { ".dotx", ".dotm" }, - { ".dotx", ".epub" }, - { ".dotx", ".fb2" }, - { ".dotx", ".html" }, - { ".dotx", ".odt" }, - { ".dotx", ".ott" }, - { ".dotx", ".pdf" }, - { ".dotx", ".rtf" }, - { ".dotx", ".txt" }, - { ".dps", ".odp" }, - { ".dps", ".otp" }, - { ".dps", ".pdf" }, - { ".dps", ".potm" }, - { ".dps", ".potx" }, - { ".dps", ".ppsm" }, - { ".dps", ".ppsx" }, - { ".dps", ".pptm" }, - { ".dps", ".pptx" }, - { ".dpt", ".odp" }, - { ".dpt", ".otp" }, - { ".dpt", ".pdf" }, - { ".dpt", ".potm" }, - { ".dpt", ".potx" }, - { ".dpt", ".ppsm" }, - { ".dpt", ".ppsx" }, - { ".dpt", ".pptm" }, - { ".dpt", ".pptx" }, - { ".epub", ".docm" }, - { ".epub", ".docx" }, - { ".epub", ".dotm" }, - { ".epub", ".dotx" }, - { ".epub", ".fb2" }, - { ".epub", ".html" }, - { ".epub", ".odt" }, - { ".epub", ".ott" }, - { ".epub", ".pdf" }, - { ".epub", ".rtf" }, - { ".epub", ".txt" }, - { ".et", ".csv" }, - { ".et", ".ods" }, - { ".et", ".ots" }, - { ".et", ".pdf" }, - { ".et", ".xlsm" }, - { ".et", ".xlsx" }, - { ".et", ".xltm" }, - { ".et", ".xltx" }, - { ".ett", ".csv" }, - { ".ett", ".ods" }, - { ".ett", ".ots" }, - { ".ett", ".pdf" }, - { ".ett", ".xlsm" }, - { ".ett", ".xlsx" }, - { ".ett", ".xltm" }, - { ".ett", ".xltx" }, - { ".fb2", ".docm" }, - { ".fb2", ".docx" }, - { ".fb2", ".dotm" }, - { ".fb2", ".dotx" }, - { ".fb2", ".epub" }, - { ".fb2", ".html" }, - { ".fb2", ".odt" }, - { ".fb2", ".ott" }, - { ".fb2", ".pdf" }, - { ".fb2", ".rtf" }, - { ".fb2", ".txt" }, - { ".fodp", ".odp" }, - { ".fodp", ".otp" }, - { ".fodp", ".pdf" }, - { ".fodp", ".potm" }, - { ".fodp", ".potx" }, - { ".fodp", ".ppsm" }, - { ".fodp", ".ppsx" }, - { ".fodp", ".pptm" }, - { ".fodp", ".pptx" }, - { ".fods", ".csv" }, - { ".fods", ".ods" }, - { ".fods", ".ots" }, - { ".fods", ".pdf" }, - { ".fods", ".xlsm" }, - { ".fods", ".xlsx" }, - { ".fods", ".xltm" }, - { ".fods", ".xltx" }, - { ".fodt", ".docm" }, - { ".fodt", ".docx" }, - { ".fodt", ".dotm" }, - { ".fodt", ".dotx" }, - { ".fodt", ".epub" }, - { ".fodt", ".fb2" }, - { ".fodt", ".html" }, - { ".fodt", ".odt" }, - { ".fodt", ".ott" }, - { ".fodt", ".pdf" }, - { ".fodt", ".rtf" }, - { ".fodt", ".txt" }, - { ".htm", ".docm" }, - { ".htm", ".docx" }, - { ".htm", ".dotm" }, - { ".htm", ".dotx" }, - { ".htm", ".epub" }, - { ".htm", ".fb2" }, - { ".htm", ".html" }, - { ".htm", ".odt" }, - { ".htm", ".ott" }, - { ".htm", ".pdf" }, - { ".htm", ".rtf" }, - { ".htm", ".txt" }, - { ".html", ".docm" }, - { ".html", ".docx" }, - { ".html", ".dotm" }, - { ".html", ".dotx" }, - { ".html", ".epub" }, - { ".html", ".fb2" }, - { ".html", ".odt" }, - { ".html", ".ott" }, - { ".html", ".pdf" }, - { ".html", ".rtf" }, - { ".html", ".txt" }, - { ".mht", ".docm" }, - { ".mht", ".docx" }, - { ".mht", ".dotm" }, - { ".mht", ".dotx" }, - { ".mht", ".epub" }, - { ".mht", ".fb2" }, - { ".mht", ".html" }, - { ".mht", ".odt" }, - { ".mht", ".ott" }, - { ".mht", ".pdf" }, - { ".mht", ".rtf" }, - { ".mht", ".txt" }, - { ".mhtml", ".docm" }, - { ".mhtml", ".docx" }, - { ".mhtml", ".dotm" }, - { ".mhtml", ".dotx" }, - { ".mhtml", ".epub" }, - { ".mhtml", ".fb2" }, - { ".mhtml", ".html" }, - { ".mhtml", ".odt" }, - { ".mhtml", ".ott" }, - { ".mhtml", ".pdf" }, - { ".mhtml", ".rtf" }, - { ".mhtml", ".txt" }, - { ".odp", ".otp" }, - { ".odp", ".pdf" }, - { ".odp", ".potm" }, - { ".odp", ".potx" }, - { ".odp", ".ppsm" }, - { ".odp", ".ppsx" }, - { ".odp", ".pptm" }, - { ".odp", ".pptx" }, - { ".ods", ".csv" }, - { ".ods", ".ots" }, - { ".ods", ".pdf" }, - { ".ods", ".xlsm" }, - { ".ods", ".xlsx" }, - { ".ods", ".xltm" }, - { ".ods", ".xltx" }, - { ".odt", ".docm" }, - { ".odt", ".docx" }, - { ".odt", ".dotm" }, - { ".odt", ".dotx" }, - { ".odt", ".epub" }, - { ".odt", ".fb2" }, - { ".odt", ".html" }, - { ".odt", ".ott" }, - { ".odt", ".pdf" }, - { ".odt", ".rtf" }, - { ".odt", ".txt" }, - { ".otp", ".odp" }, - { ".otp", ".pdf" }, - { ".otp", ".potm" }, - { ".otp", ".potx" }, - { ".otp", ".ppsm" }, - { ".otp", ".ppsx" }, - { ".otp", ".pptm" }, - { ".otp", ".pptx" }, - { ".ots", ".csv" }, - { ".ots", ".ods" }, - { ".ots", ".pdf" }, - { ".ots", ".xlsm" }, - { ".ots", ".xlsx" }, - { ".ots", ".xltm" }, - { ".ots", ".xltx" }, - { ".ott", ".docm" }, - { ".ott", ".docx" }, - { ".ott", ".dotm" }, - { ".ott", ".dotx" }, - { ".ott", ".epub" }, - { ".ott", ".fb2" }, - { ".ott", ".html" }, - { ".ott", ".odt" }, - { ".ott", ".pdf" }, - { ".ott", ".rtf" }, - { ".ott", ".txt" }, - { ".oxps", ".docm" }, - { ".oxps", ".docx" }, - { ".oxps", ".dotm" }, - { ".oxps", ".dotx" }, - { ".oxps", ".epub" }, - { ".oxps", ".fb2" }, - { ".oxps", ".html" }, - { ".oxps", ".odt" }, - { ".oxps", ".ott" }, - { ".oxps", ".pdf" }, - { ".oxps", ".rtf" }, - { ".oxps", ".txt" }, - { ".pdf", ".docm" }, - { ".pdf", ".docx" }, - { ".pdf", ".dotm" }, - { ".pdf", ".dotx" }, - { ".pdf", ".epub" }, - { ".pdf", ".fb2" }, - { ".pdf", ".html" }, - { ".pdf", ".odt" }, - { ".pdf", ".ott" }, - { ".pdf", ".rtf" }, - { ".pdf", ".txt" }, - { ".pot", ".odp" }, - { ".pot", ".otp" }, - { ".pot", ".pdf" }, - { ".pot", ".potm" }, - { ".pot", ".potx" }, - { ".pot", ".ppsm" }, - { ".pot", ".ppsx" }, - { ".pot", ".pptm" }, - { ".pot", ".pptx" }, - { ".potm", ".odp" }, - { ".potm", ".otp" }, - { ".potm", ".pdf" }, - { ".potm", ".potx" }, - { ".potm", ".ppsm" }, - { ".potm", ".ppsx" }, - { ".potm", ".pptm" }, - { ".potm", ".pptx" }, - { ".potx", ".odp" }, - { ".potx", ".otp" }, - { ".potx", ".pdf" }, - { ".potx", ".potm" }, - { ".potx", ".ppsm" }, - { ".potx", ".ppsx" }, - { ".potx", ".pptm" }, - { ".potx", ".pptx" }, - { ".pps", ".odp" }, - { ".pps", ".otp" }, - { ".pps", ".pdf" }, - { ".pps", ".potm" }, - { ".pps", ".potx" }, - { ".pps", ".ppsm" }, - { ".pps", ".ppsx" }, - { ".pps", ".pptm" }, - { ".pps", ".pptx" }, - { ".ppsm", ".odp" }, - { ".ppsm", ".otp" }, - { ".ppsm", ".pdf" }, - { ".ppsm", ".potm" }, - { ".ppsm", ".potx" }, - { ".ppsm", ".ppsx" }, - { ".ppsm", ".pptm" }, - { ".ppsm", ".pptx" }, - { ".ppsx", ".odp" }, - { ".ppsx", ".otp" }, - { ".ppsx", ".pdf" }, - { ".ppsx", ".potm" }, - { ".ppsx", ".potx" }, - { ".ppsx", ".ppsm" }, - { ".ppsx", ".pptm" }, - { ".ppsx", ".pptx" }, - { ".ppt", ".odp" }, - { ".ppt", ".otp" }, - { ".ppt", ".pdf" }, - { ".ppt", ".potm" }, - { ".ppt", ".potx" }, - { ".ppt", ".ppsm" }, - { ".ppt", ".ppsx" }, - { ".ppt", ".pptm" }, - { ".ppt", ".pptx" }, - { ".pptm", ".odp" }, - { ".pptm", ".otp" }, - { ".pptm", ".pdf" }, - { ".pptm", ".potm" }, - { ".pptm", ".potx" }, - { ".pptm", ".ppsm" }, - { ".pptm", ".ppsx" }, - { ".pptm", ".pptx" }, - { ".pptt", ".pptx" }, - { ".pptx", ".odp" }, - { ".pptx", ".otp" }, - { ".pptx", ".pdf" }, - { ".pptx", ".potm" }, - { ".pptx", ".potx" }, - { ".pptx", ".ppsm" }, - { ".pptx", ".ppsx" }, - { ".pptx", ".pptm" }, - { ".rtf", ".docm" }, - { ".rtf", ".docx" }, - { ".rtf", ".dotm" }, - { ".rtf", ".dotx" }, - { ".rtf", ".epub" }, - { ".rtf", ".fb2" }, - { ".rtf", ".html" }, - { ".rtf", ".odt" }, - { ".rtf", ".ott" }, - { ".rtf", ".pdf" }, - { ".rtf", ".txt" }, - { ".stw", ".docm" }, - { ".stw", ".docx" }, - { ".stw", ".dotm" }, - { ".stw", ".dotx" }, - { ".stw", ".epub" }, - { ".stw", ".fb2" }, - { ".stw", ".html" }, - { ".stw", ".odt" }, - { ".stw", ".ott" }, - { ".stw", ".pdf" }, - { ".stw", ".rtf" }, - { ".stw", ".txt" }, - { ".sxc", ".csv" }, - { ".sxc", ".ods" }, - { ".sxc", ".ots" }, - { ".sxc", ".pdf" }, - { ".sxc", ".xlsm" }, - { ".sxc", ".xlsx" }, - { ".sxc", ".xltm" }, - { ".sxc", ".xltx" }, - { ".sxi", ".odp" }, - { ".sxi", ".otp" }, - { ".sxi", ".pdf" }, - { ".sxi", ".potm" }, - { ".sxi", ".potx" }, - { ".sxi", ".ppsm" }, - { ".sxi", ".ppsx" }, - { ".sxi", ".pptm" }, - { ".sxi", ".pptx" }, - { ".sxw", ".docm" }, - { ".sxw", ".docx" }, - { ".sxw", ".dotm" }, - { ".sxw", ".dotx" }, - { ".sxw", ".epub" }, - { ".sxw", ".fb2" }, - { ".sxw", ".html" }, - { ".sxw", ".odt" }, - { ".sxw", ".ott" }, - { ".sxw", ".pdf" }, - { ".sxw", ".rtf" }, - { ".sxw", ".txt" }, - { ".txt", ".docm" }, - { ".txt", ".docx" }, - { ".txt", ".dotm" }, - { ".txt", ".dotx" }, - { ".txt", ".epub" }, - { ".txt", ".fb2" }, - { ".txt", ".html" }, - { ".txt", ".odt" }, - { ".txt", ".ott" }, - { ".txt", ".pdf" }, - { ".txt", ".rtf" }, - { ".wps", ".docm" }, - { ".wps", ".docx" }, - { ".wps", ".dotm" }, - { ".wps", ".dotx" }, - { ".wps", ".epub" }, - { ".wps", ".fb2" }, - { ".wps", ".html" }, - { ".wps", ".odt" }, - { ".wps", ".ott" }, - { ".wps", ".pdf" }, - { ".wps", ".rtf" }, - { ".wps", ".txt" }, - { ".wpt", ".docm" }, - { ".wpt", ".docx" }, - { ".wpt", ".dotm" }, - { ".wpt", ".dotx" }, - { ".wpt", ".epub" }, - { ".wpt", ".fb2" }, - { ".wpt", ".html" }, - { ".wpt", ".odt" }, - { ".wpt", ".ott" }, - { ".wpt", ".pdf" }, - { ".wpt", ".rtf" }, - { ".wpt", ".txt" }, - { ".xls", ".csv" }, - { ".xls", ".ods" }, - { ".xls", ".ots" }, - { ".xls", ".pdf" }, - { ".xls", ".xlsm" }, - { ".xls", ".xlsx" }, - { ".xls", ".xltm" }, - { ".xls", ".xltx" }, - { ".xlsb", ".csv" }, - { ".xlsb", ".ods" }, - { ".xlsb", ".ots" }, - { ".xlsb", ".pdf" }, - { ".xlsb", ".xlsm" }, - { ".xlsb", ".xlsx" }, - { ".xlsb", ".xltm" }, - { ".xlsb", ".xltx" }, - { ".xlsm", ".csv" }, - { ".xlsm", ".ods" }, - { ".xlsm", ".ots" }, - { ".xlsm", ".pdf" }, - { ".xlsm", ".xlsx" }, - { ".xlsm", ".xltm" }, - { ".xlsm", ".xltx" }, - { ".xlst", ".xlsx" }, - { ".xlsx", ".csv" }, - { ".xlsx", ".ods" }, - { ".xlsx", ".ots" }, - { ".xlsx", ".pdf" }, - { ".xlsx", ".xlsm" }, - { ".xlsx", ".xltm" }, - { ".xlsx", ".xltx" }, - { ".xlt", ".csv" }, - { ".xlt", ".ods" }, - { ".xlt", ".ots" }, - { ".xlt", ".pdf" }, - { ".xlt", ".xlsm" }, - { ".xlt", ".xlsx" }, - { ".xlt", ".xltm" }, - { ".xlt", ".xltx" }, - { ".xltm", ".csv" }, - { ".xltm", ".ods" }, - { ".xltm", ".ots" }, - { ".xltm", ".pdf" }, - { ".xltm", ".xlsm" }, - { ".xltm", ".xlsx" }, - { ".xltm", ".xltx" }, - { ".xltx", ".csv" }, - { ".xltx", ".ods" }, - { ".xltx", ".ots" }, - { ".xltx", ".pdf" }, - { ".xltx", ".xlsm" }, - { ".xltx", ".xlsx" }, - { ".xltx", ".xltm" }, - { ".xml", ".docm" }, - { ".xml", ".docx" }, - { ".xml", ".dotm" }, - { ".xml", ".dotx" }, - { ".xml", ".epub" }, - { ".xml", ".fb2" }, - { ".xml", ".html" }, - { ".xml", ".odt" }, - { ".xml", ".ott" }, - { ".xml", ".pdf" }, - { ".xml", ".rtf" }, - { ".xml", ".txt" }, - { ".xps", ".docm" }, - { ".xps", ".docx" }, - { ".xps", ".dotm" }, - { ".xps", ".dotx" }, - { ".xps", ".epub" }, - { ".xps", ".fb2" }, - { ".xps", ".html" }, - { ".xps", ".odt" }, - { ".xps", ".ott" }, - { ".xps", ".pdf" }, - { ".xps", ".rtf" }, - { ".xps", ".txt" } - }); - - migrationBuilder.InsertData( - schema: "onlyoffice", - table: "tenants_forbiden", - column: "address", - values: new object[] - { - "controlpanel", - "localhost" - }); - - migrationBuilder.InsertData( - schema: "onlyoffice", - table: "tenants_quota", - columns: new[] { "tenant", "description", "features", "name", "visible" }, - values: new object[] { -3, null, "free,total_size:2147483648,manager:3,room:12", "startup", false }); - - migrationBuilder.InsertData( - schema: "onlyoffice", - table: "tenants_quota", - columns: new[] { "tenant", "description", "features", "name", "price", "product_id", "visible" }, - values: new object[] { -2, null, "audit,ldap,sso,whitelabel,thirdparty,restore,oauth,contentsearch,total_size:107374182400,file_size:1024,manager:1", "admin", 30m, "1002", true }); - - migrationBuilder.InsertData( - schema: "onlyoffice", - table: "tenants_quota", - columns: new[] { "tenant", "description", "features", "name", "visible" }, - values: new object[] { -1, null, "trial,audit,ldap,sso,whitelabel,thirdparty,restore,oauth,total_size:107374182400,file_size:100,manager:1", "trial", false }); - - migrationBuilder.InsertData( - schema: "onlyoffice", - table: "tenants_tenants", - columns: new[] { "id", "alias", "creationdatetime", "industry", "last_modified", "name", "owner_id", "status", "statuschanged", "version_changed" }, - values: new object[,] - { - { -1, "settings", new DateTime(2021, 3, 9, 17, 46, 59, 97, DateTimeKind.Utc).AddTicks(4317), 0, new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), "Web Office", new Guid("00000000-0000-0000-0000-000000000000"), 1, null, null }, - { 1, "localhost", new DateTime(2021, 3, 9, 17, 46, 59, 97, DateTimeKind.Utc).AddTicks(4317), 0, new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), "Web Office", new Guid("66faa6e4-f133-11ea-b126-00ffeec8b4ef"), 0, null, null } - }); - - migrationBuilder.InsertData( - schema: "onlyoffice", - table: "core_acl", - columns: new[] { "action", "object", "subject", "tenant", "acetype" }, - values: new object[,] - { - { new Guid("ef5e6790-f346-4b6e-b662-722bc28cb0db"), "", new Guid("5d5b7260-f7f7-49f1-a1c9-95fbb6a12604"), -1, 0 }, - { new Guid("f11e8f3f-46e6-4e55-90e3-09c22ec565bd"), "", new Guid("5d5b7260-f7f7-49f1-a1c9-95fbb6a12604"), -1, 0 }, - { new Guid("e0759a42-47f0-4763-a26a-d5aa665bec35"), "", new Guid("712d9ec3-5d2b-4b13-824f-71f00191dcca"), -1, 0 }, - { new Guid("08d75c97-cf3f-494b-90d1-751c941fe2dd"), "", new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), -1, 0 }, - { new Guid("0d1f72a8-63da-47ea-ae42-0900e4ac72a9"), "", new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), -1, 0 }, - { new Guid("13e30b51-5b4d-40a5-8575-cb561899eeb1"), "", new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), -1, 0 }, - { new Guid("19f658ae-722b-4cd8-8236-3ad150801d96"), "", new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), -1, 0 }, - { new Guid("2c6552b3-b2e0-4a00-b8fd-13c161e337b1"), "", new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), -1, 0 }, - { new Guid("40bf31f4-3132-4e76-8d5c-9828a89501a3"), "", new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), -1, 0 }, - { new Guid("49ae8915-2b30-4348-ab74-b152279364fb"), "", new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), -1, 0 }, - { new Guid("948ad738-434b-4a88-8e38-7569d332910a"), "", new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), -1, 0 }, - { new Guid("9d75a568-52aa-49d8-ad43-473756cd8903"), "", new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), -1, 0 }, - { new Guid("d49f4e30-da10-4b39-bc6d-b41ef6e039d3"), "", new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), -1, 0 }, - { new Guid("d852b66f-6719-45e1-8657-18f0bb791690"), "", new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), -1, 0 }, - { new Guid("13e30b51-5b4d-40a5-8575-cb561899eeb1"), "", new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), -1, 0 }, - { new Guid("49ae8915-2b30-4348-ab74-b152279364fb"), "", new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), -1, 0 }, - { new Guid("63e9f35f-6bb5-4fb1-afaa-e4c2f4dec9bd"), "", new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), -1, 0 }, - { new Guid("9018c001-24c2-44bf-a1db-d1121a570e74"), "", new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), -1, 0 }, - { new Guid("d1f3b53d-d9e2-4259-80e7-d24380978395"), "", new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), -1, 0 }, - { new Guid("e0759a42-47f0-4763-a26a-d5aa665bec35"), "", new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), -1, 0 }, - { new Guid("e37239bd-c5b5-4f1e-a9f8-3ceeac209615"), "", new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), -1, 0 }, - { new Guid("f11e88d7-f185-4372-927c-d88008d2c483"), "", new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), -1, 0 }, - { new Guid("f11e8f3f-46e6-4e55-90e3-09c22ec565bd"), "", new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), -1, 0 }, - { new Guid("00e7dfc5-ac49-4fd3-a1d6-98d84e877ac4"), "", new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), -1, 0 }, - { new Guid("0d68b142-e20a-446e-a832-0d6b0b65a164"), "", new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), -1, 0 }, - { new Guid("14be970f-7af5-4590-8e81-ea32b5f7866d"), "", new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), -1, 0 }, - { new Guid("18ecc94d-6afa-4994-8406-aee9dff12ce2"), "", new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), -1, 0 }, - { new Guid("298530eb-435e-4dc6-a776-9abcd95c70e9"), "", new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), -1, 0 }, - { new Guid("430eaf70-1886-483c-a746-1a18e3e6bb63"), "", new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), -1, 0 }, - { new Guid("557d6503-633b-4490-a14c-6473147ce2b3"), "", new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), -1, 0 }, - { new Guid("662f3db7-9bc8-42cf-84da-2765f563e9b0"), "", new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), -1, 0 }, - { new Guid("724cbb75-d1c9-451e-bae0-4de0db96b1f7"), "", new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), -1, 0 }, - { new Guid("7cb5c0d1-d254-433f-abe3-ff23373ec631"), "", new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), -1, 0 }, - { new Guid("91b29dcd-9430-4403-b17a-27d09189be88"), "", new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), -1, 0 }, - { new Guid("a18480a4-6d18-4c71-84fa-789888791f45"), "", new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), -1, 0 }, - { new Guid("b630d29b-1844-4bda-bbbe-cf5542df3559"), "", new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), -1, 0 }, - { new Guid("c62a9e8d-b24c-4513-90aa-7ff0f8ba38eb"), "", new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), -1, 0 }, - { new Guid("d7cdb020-288b-41e5-a857-597347618533"), "", new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), -1, 0 }, - { new Guid("088d5940-a80f-4403-9741-d610718ce95c"), "", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("08d66144-e1c9-4065-9aa1-aa4bba0a7bc8"), "", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("388c29d3-c662-4a61-bf47-fc2f7094224a"), "", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("63e9f35f-6bb5-4fb1-afaa-e4c2f4dec9bd"), "", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("6f05c382-8bca-4469-9424-c807a98c40d7"), "", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("77777777-32ae-425f-99b5-83176061d1ae"), "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|1e04460243b54d7982f3fd6208a11960", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("77777777-32ae-425f-99b5-83176061d1ae"), "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|28b10049dd204f54b986873bc14ccfc7", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 1 }, - { new Guid("77777777-32ae-425f-99b5-83176061d1ae"), "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|2a9230378b2d487b9a225ac0918acf3f", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("77777777-32ae-425f-99b5-83176061d1ae"), "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|32d24cb57ece46069c9419216ba42086", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("77777777-32ae-425f-99b5-83176061d1ae"), "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|37620ae5c40b45ce855a39dd7d76a1fa", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("77777777-32ae-425f-99b5-83176061d1ae"), "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|3cfd481b46f24a4ab55cb8c0c9def02c", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 1 }, - { new Guid("77777777-32ae-425f-99b5-83176061d1ae"), "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|46cfa73af32046cf8d5bcd82e1d67f26", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("77777777-32ae-425f-99b5-83176061d1ae"), "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|6743007c6f954d208c88a8601ce5e76d", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("77777777-32ae-425f-99b5-83176061d1ae"), "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|6a598c7491ae437da5f4ad339bd11bb2", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 1 }, - { new Guid("77777777-32ae-425f-99b5-83176061d1ae"), "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|742cf945cbbc4a5782d61600a12cf8ca", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 1 }, - { new Guid("77777777-32ae-425f-99b5-83176061d1ae"), "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|853b6eb973ee438d9b098ffeedf36234", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 1 }, - { new Guid("77777777-32ae-425f-99b5-83176061d1ae"), "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|bf88953e3c434850a3fbb1e43ad53a3e", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("77777777-32ae-425f-99b5-83176061d1ae"), "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|e67be73df9ae4ce18fec1880cb518cb4", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("77777777-32ae-425f-99b5-83176061d1ae"), "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|ea942538e68e49079394035336ee0ba8", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 1 }, - { new Guid("77777777-32ae-425f-99b5-83176061d1ae"), "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|f4d98afdd336433287783c6945c81ea0", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("9018c001-24c2-44bf-a1db-d1121a570e74"), "", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("a362fe79-684e-4d43-a599-65bc1f4e167f"), "", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("c426c349-9ad4-47cd-9b8f-99fc30675951"), "", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("d11ebcb9-0e6e-45e6-a6d0-99c41d687598"), "", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("d1f3b53d-d9e2-4259-80e7-d24380978395"), "", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("e0759a42-47f0-4763-a26a-d5aa665bec35"), "", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("e37239bd-c5b5-4f1e-a9f8-3ceeac209615"), "", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("fbc37705-a04c-40ad-a68c-ce2f0423f397"), "", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 }, - { new Guid("fcac42b8-9386-48eb-a938-d19b3c576912"), "", new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), -1, 0 } - }); - - migrationBuilder.InsertData( - schema: "onlyoffice", - table: "core_settings", - columns: new[] { "id", "tenant", "last_modified", "value" }, - values: new object[,] - { - { "CompanyWhiteLabelSettings", -1, new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), new byte[] { 245, 71, 4, 138, 72, 101, 23, 21, 135, 217, 206, 188, 138, 73, 108, 96, 29, 150, 3, 31, 44, 28, 62, 145, 96, 53, 57, 66, 238, 118, 93, 172, 211, 22, 244, 181, 244, 40, 146, 67, 111, 196, 162, 27, 154, 109, 248, 255, 181, 17, 253, 127, 42, 65, 19, 90, 26, 206, 203, 145, 159, 159, 243, 105, 24, 71, 188, 165, 53, 85, 57, 37, 186, 251, 57, 96, 18, 162, 218, 80, 0, 101, 250, 100, 66, 97, 24, 51, 240, 215, 216, 169, 105, 100, 15, 253, 29, 83, 182, 236, 203, 53, 68, 251, 2, 150, 149, 148, 58, 136, 84, 37, 151, 82, 92, 227, 30, 52, 111, 40, 154, 155, 7, 126, 149, 100, 169, 87, 10, 129, 228, 138, 177, 101, 77, 67, 177, 216, 189, 201, 1, 213, 136, 216, 107, 198, 253, 221, 106, 255, 198, 17, 68, 14, 110, 90, 174, 182, 68, 222, 188, 77, 157, 19, 26, 68, 86, 97, 15, 81, 24, 171, 214, 114, 191, 175, 56, 56, 48, 52, 125, 82, 253, 113, 71, 41, 201, 5, 8, 118, 162, 191, 99, 196, 48, 198, 223, 79, 204, 174, 31, 97, 236, 20, 213, 218, 85, 34, 16, 74, 196, 209, 235, 14, 71, 209, 32, 131, 195, 84, 11, 66, 74, 19, 115, 255, 99, 69, 235, 210, 204, 15, 13, 4, 143, 127, 152, 125, 212, 91 } }, - { "FullTextSearchSettings", -1, new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), new byte[] { 8, 120, 207, 5, 153, 181, 23, 202, 162, 211, 218, 237, 157, 6, 76, 62, 220, 238, 175, 67, 31, 53, 166, 246, 66, 220, 173, 160, 72, 23, 227, 81, 50, 39, 187, 177, 222, 110, 43, 171, 235, 158, 16, 119, 178, 207, 49, 140, 72, 152, 20, 84, 94, 135, 117, 1, 246, 51, 251, 190, 148, 2, 44, 252, 221, 2, 91, 83, 149, 151, 58, 245, 16, 148, 52, 8, 187, 86, 150, 46, 227, 93, 163, 95, 47, 131, 116, 207, 95, 209, 38, 149, 53, 148, 73, 215, 206, 251, 194, 199, 189, 17, 42, 229, 135, 82, 23, 154, 162, 165, 158, 94, 23, 128, 30, 88, 12, 204, 96, 250, 236, 142, 189, 211, 214, 18, 196, 136, 102, 102, 217, 109, 108, 240, 96, 96, 94, 100, 201, 10, 31, 170, 128, 192 } }, - { "SmtpSettings", -1, new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), new byte[] { 240, 82, 224, 144, 161, 163, 117, 13, 173, 205, 78, 153, 97, 218, 4, 170, 81, 239, 1, 151, 226, 192, 98, 60, 241, 44, 88, 56, 191, 164, 10, 155, 72, 186, 239, 203, 227, 113, 88, 119, 49, 215, 227, 220, 158, 124, 96, 9, 116, 47, 158, 65, 93, 86, 219, 15, 10, 224, 142, 50, 248, 144, 75, 44, 68, 28, 198, 87, 198, 69, 67, 234, 238, 38, 32, 68, 162, 139, 67, 53, 220, 176, 240, 196, 233, 64, 29, 137, 31, 160, 99, 105, 249, 132, 202, 45, 71, 92, 134, 194, 55, 145, 121, 97, 197, 130, 119, 105, 131, 21, 133, 35, 10, 102, 172, 119, 135, 230, 251, 86, 253, 62, 55, 56, 146, 103, 164, 106 } } - }); - - migrationBuilder.InsertData( - schema: "onlyoffice", - table: "core_subscription", - columns: new[] { "action", "object", "recipient", "source", "tenant", "unsubscribed" }, - values: new object[,] - { - { "AddRelationshipEvent", "", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "13ff36fb-0272-4887-b416-74f52b0d0b02", -1, false }, - { "CreateNewContact", "", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "13ff36fb-0272-4887-b416-74f52b0d0b02", -1, false }, - { "ExportCompleted", "", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "13ff36fb-0272-4887-b416-74f52b0d0b02", -1, false }, - { "ResponsibleForOpportunity", "", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "13ff36fb-0272-4887-b416-74f52b0d0b02", -1, false }, - { "ResponsibleForTask", "", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "13ff36fb-0272-4887-b416-74f52b0d0b02", -1, false }, - { "SetAccess", "", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "13ff36fb-0272-4887-b416-74f52b0d0b02", -1, false }, - { "new bookmark created", "", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "28b10049-dd20-4f54-b986-873bc14ccfc7", -1, false }, - { "BirthdayReminder", "", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "37620ae5-c40b-45ce-855a-39dd7d76a1fa", -1, false }, - { "calendar_sharing", "", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "40650da3-f7c1-424c-8c89-b9c115472e08", -1, false }, - { "event_alert", "", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "40650da3-f7c1-424c-8c89-b9c115472e08", -1, false }, - { "new feed", "", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6504977c-75af-4691-9099-084d3ddeea04", -1, false }, - { "new post", "", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6a598c74-91ae-437d-a5f4-ad339bd11bb2", -1, false }, - { "sharedocument", "", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6fe286a4-479e-4c25-a8d9-0156e332b0c0", -1, false }, - { "sharefolder", "", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6fe286a4-479e-4c25-a8d9-0156e332b0c0", -1, false }, - { "new wiki page", "", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "742cf945-cbbc-4a57-82d6-1600a12cf8ca", -1, false }, - { "new topic in forum", "", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "853b6eb9-73ee-438d-9b09-8ffeedf36234", -1, false }, - { "new photo uploaded", "", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "9d51954f-db9b-4aed-94e3-ed70b914e101", -1, false }, - { "admin_notify", "", "cd84e66b-b803-40fc-99f9-b2969a54a1de", "asc.web.studio", -1, false }, - { "periodic_notify", "", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "asc.web.studio", -1, false }, - { "rooms_activity", "", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "asc.web.studio", -1, false }, - { "send_whats_new", "", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "asc.web.studio", -1, false } - }); - - migrationBuilder.InsertData( - schema: "onlyoffice", - table: "core_subscriptionmethod", - columns: new[] { "action", "recipient", "source", "tenant", "sender" }, - values: new object[,] - { - { "AddRelationshipEvent", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "13ff36fb-0272-4887-b416-74f52b0d0b02", -1, "email.sender|messanger.sender" }, - { "CreateNewContact", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "13ff36fb-0272-4887-b416-74f52b0d0b02", -1, "email.sender|messanger.sender" }, - { "ExportCompleted", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "13ff36fb-0272-4887-b416-74f52b0d0b02", -1, "email.sender|messanger.sender" }, - { "ResponsibleForOpportunity", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "13ff36fb-0272-4887-b416-74f52b0d0b02", -1, "email.sender|messanger.sender" }, - { "ResponsibleForTask", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "13ff36fb-0272-4887-b416-74f52b0d0b02", -1, "email.sender|messanger.sender" }, - { "SetAccess", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "13ff36fb-0272-4887-b416-74f52b0d0b02", -1, "email.sender|messanger.sender" }, - { "new bookmark created", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "28b10049-dd20-4f54-b986-873bc14ccfc7", -1, "email.sender|messanger.sender" }, - { "BirthdayReminder", "abef62db-11a8-4673-9d32-ef1d8af19dc0", "37620ae5-c40b-45ce-855a-39dd7d76a1fa", -1, "email.sender|messanger.sender" }, - { "calendar_sharing", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "40650da3-f7c1-424c-8c89-b9c115472e08", -1, "email.sender|messanger.sender" }, - { "event_alert", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "40650da3-f7c1-424c-8c89-b9c115472e08", -1, "email.sender|messanger.sender" }, - { "invitetoproject", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6045b68c-2c2e-42db-9e53-c272e814c4ad", -1, "email.sender|messanger.sender" }, - { "milestonedeadline", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6045b68c-2c2e-42db-9e53-c272e814c4ad", -1, "email.sender|messanger.sender" }, - { "newcommentformessage", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6045b68c-2c2e-42db-9e53-c272e814c4ad", -1, "email.sender|messanger.sender" }, - { "newcommentformilestone", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6045b68c-2c2e-42db-9e53-c272e814c4ad", -1, "email.sender|messanger.sender" }, - { "newcommentfortask", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6045b68c-2c2e-42db-9e53-c272e814c4ad", -1, "email.sender|messanger.sender" }, - { "projectcreaterequest", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6045b68c-2c2e-42db-9e53-c272e814c4ad", -1, "email.sender|messanger.sender" }, - { "projecteditrequest", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6045b68c-2c2e-42db-9e53-c272e814c4ad", -1, "email.sender|messanger.sender" }, - { "removefromproject", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6045b68c-2c2e-42db-9e53-c272e814c4ad", -1, "email.sender|messanger.sender" }, - { "responsibleforproject", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6045b68c-2c2e-42db-9e53-c272e814c4ad", -1, "email.sender|messanger.sender" }, - { "responsiblefortask", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6045b68c-2c2e-42db-9e53-c272e814c4ad", -1, "email.sender|messanger.sender" }, - { "taskclosed", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6045b68c-2c2e-42db-9e53-c272e814c4ad", -1, "email.sender|messanger.sender" }, - { "new feed", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6504977c-75af-4691-9099-084d3ddeea04", -1, "email.sender|messanger.sender" }, - { "new post", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6a598c74-91ae-437d-a5f4-ad339bd11bb2", -1, "email.sender|messanger.sender" }, - { "sharedocument", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6fe286a4-479e-4c25-a8d9-0156e332b0c0", -1, "email.sender|messanger.sender" }, - { "sharefolder", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6fe286a4-479e-4c25-a8d9-0156e332b0c0", -1, "email.sender|messanger.sender" }, - { "updatedocument", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "6fe286a4-479e-4c25-a8d9-0156e332b0c0", -1, "email.sender|messanger.sender" }, - { "new wiki page", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "742cf945-cbbc-4a57-82d6-1600a12cf8ca", -1, "email.sender|messanger.sender" }, - { "new topic in forum", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "853b6eb9-73ee-438d-9b09-8ffeedf36234", -1, "email.sender|messanger.sender" }, - { "new photo uploaded", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "9d51954f-db9b-4aed-94e3-ed70b914e101", -1, "email.sender|messanger.sender" }, - { "admin_notify", "cd84e66b-b803-40fc-99f9-b2969a54a1de", "asc.web.studio", -1, "email.sender" }, - { "periodic_notify", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "asc.web.studio", -1, "email.sender" }, - { "send_whats_new", "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", "asc.web.studio", -1, "email.sender" } - }); - - migrationBuilder.InsertData( - schema: "onlyoffice", - table: "core_user", - columns: new[] { "id", "activation_status", "bithdate", "create_on", "email", "firstname", "last_modified", "lastname", "phone_activation", "removed", "sex", "status", "tenant", "terminateddate", "username", "workfromdate" }, - values: new object[] { new Guid("66faa6e4-f133-11ea-b126-00ffeec8b4ef"), 0, null, new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), "", "Administrator", new DateTime(2021, 3, 9, 9, 52, 55, 765, DateTimeKind.Utc).AddTicks(1420), "", 0, false, null, 1, 1, null, "administrator", new DateTime(2021, 3, 9, 9, 52, 55, 764, DateTimeKind.Utc).AddTicks(9157) }); - - migrationBuilder.InsertData( - schema: "onlyoffice", - table: "core_usergroup", - columns: new[] { "ref_type", "tenant", "groupid", "userid", "last_modified", "removed" }, - values: new object[] { 0, 1, new Guid("cd84e66b-b803-40fc-99f9-b2969a54a1de"), new Guid("66faa6e4-f133-11ea-b126-00ffeec8b4ef"), new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), false }); - - migrationBuilder.InsertData( - schema: "onlyoffice", - table: "core_usersecurity", - columns: new[] { "userid", "LastModified", "pwdhash", "tenant" }, - values: new object[] { new Guid("66faa6e4-f133-11ea-b126-00ffeec8b4ef"), new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), "jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg=", 1 }); - - migrationBuilder.InsertData( - schema: "onlyoffice", - table: "webstudio_settings", - columns: new[] { "ID", "TenantID", "UserID", "Data" }, - values: new object[] { new Guid("9a925891-1f92-4ed7-b277-d6f649739f06"), 1, new Guid("00000000-0000-0000-0000-000000000000"), "{\"Completed\":false}" }); - - migrationBuilder.CreateIndex( - name: "uid", - schema: "onlyoffice", - table: "account_links", - column: "uid"); - - migrationBuilder.CreateIndex( - name: "date", - schema: "onlyoffice", - table: "audit_events", - columns: new[] { "tenant_id", "date" }); - - migrationBuilder.CreateIndex( - name: "expires_on", - table: "backup_backup", - column: "expires_on"); - - migrationBuilder.CreateIndex( - name: "is_scheduled", - table: "backup_backup", - column: "is_scheduled"); - - migrationBuilder.CreateIndex( - name: "tenant_id", - table: "backup_backup", - column: "tenant_id"); - - migrationBuilder.CreateIndex( - name: "last_modified", - table: "core_group", - column: "last_modified"); - - migrationBuilder.CreateIndex( - name: "parentid", - table: "core_group", - columns: new[] { "tenant", "parentid" }); - - migrationBuilder.CreateIndex( - name: "email", - schema: "onlyoffice", - table: "core_user", - column: "email"); - - migrationBuilder.CreateIndex( - name: "IX_core_user_tenant", - schema: "onlyoffice", - table: "core_user", - column: "tenant"); - - migrationBuilder.CreateIndex( - name: "last_modified_core_user", - schema: "onlyoffice", - table: "core_user", - column: "last_modified"); - - migrationBuilder.CreateIndex( - name: "username", - schema: "onlyoffice", - table: "core_user", - columns: new[] { "username", "tenant" }); - - migrationBuilder.CreateIndex( - name: "last_modified_core_usergroup", - schema: "onlyoffice", - table: "core_usergroup", - column: "last_modified"); - - migrationBuilder.CreateIndex( - name: "tenant_core_userphoto", - schema: "onlyoffice", - table: "core_userphoto", - column: "tenant"); - - migrationBuilder.CreateIndex( - name: "pwdhash", - schema: "onlyoffice", - table: "core_usersecurity", - column: "pwdhash"); - - migrationBuilder.CreateIndex( - name: "tenant_core_usersecurity", - schema: "onlyoffice", - table: "core_usersecurity", - column: "tenant"); - - migrationBuilder.CreateIndex( - name: "tenant_id", - table: "event_bus_integration_event_log", - column: "tenant_id"); - - migrationBuilder.CreateIndex( - name: "aggregated_date", - schema: "onlyoffice", - table: "feed_aggregate", - columns: new[] { "tenant", "aggregated_date" }); - - migrationBuilder.CreateIndex( - name: "modified_date", - schema: "onlyoffice", - table: "feed_aggregate", - columns: new[] { "tenant", "modified_date" }); - - migrationBuilder.CreateIndex( - name: "product", - schema: "onlyoffice", - table: "feed_aggregate", - columns: new[] { "tenant", "product" }); - - migrationBuilder.CreateIndex( - name: "IX_feed_readed_tenant_id", - schema: "onlyoffice", - table: "feed_readed", - column: "tenant_id"); - - migrationBuilder.CreateIndex( - name: "user_id_feed_users", - schema: "onlyoffice", - table: "feed_users", - column: "user_id"); - - migrationBuilder.CreateIndex( - name: "left_node", - schema: "onlyoffice", - table: "files_bunch_objects", - column: "left_node"); - - migrationBuilder.CreateIndex( - name: "folder_id", - schema: "onlyoffice", - table: "files_file", - column: "folder_id"); - - migrationBuilder.CreateIndex( - name: "id", - schema: "onlyoffice", - table: "files_file", - column: "id"); - - migrationBuilder.CreateIndex( - name: "IX_files_file_tenant_id", - schema: "onlyoffice", - table: "files_file", - column: "tenant_id"); - - migrationBuilder.CreateIndex( - name: "modified_on_files_file", - schema: "onlyoffice", - table: "files_file", - column: "modified_on"); - - migrationBuilder.CreateIndex( - name: "modified_on_files_folder", - schema: "onlyoffice", - table: "files_folder", - column: "modified_on"); - - migrationBuilder.CreateIndex( - name: "parent_id", - schema: "onlyoffice", - table: "files_folder", - columns: new[] { "tenant_id", "parent_id" }); - - migrationBuilder.CreateIndex( - name: "folder_id_files_folder_tree", - schema: "onlyoffice", - table: "files_folder_tree", - column: "folder_id"); - - migrationBuilder.CreateIndex( - name: "linked_for_files_link", - schema: "onlyoffice", - table: "files_link", - columns: new[] { "tenant_id", "source_id", "linked_id", "linked_for" }); - - migrationBuilder.CreateIndex( - name: "owner", - schema: "onlyoffice", - table: "files_security", - column: "owner"); - - migrationBuilder.CreateIndex( - name: "tenant_id_files_security", - schema: "onlyoffice", - table: "files_security", - columns: new[] { "entry_id", "tenant_id", "entry_type", "owner" }); - - migrationBuilder.CreateIndex( - name: "name_files_tag", - schema: "onlyoffice", - table: "files_tag", - columns: new[] { "tenant_id", "owner", "name", "flag" }); - - migrationBuilder.CreateIndex( - name: "create_on_files_tag_link", - schema: "onlyoffice", - table: "files_tag_link", - column: "create_on"); - - migrationBuilder.CreateIndex( - name: "entry_id", - schema: "onlyoffice", - table: "files_tag_link", - columns: new[] { "tenant_id", "entry_type", "entry_id" }); - - migrationBuilder.CreateIndex( - name: "tenant_id", - schema: "onlyoffice", - table: "files_thirdparty_account", - column: "tenant_id"); - - migrationBuilder.CreateIndex( - name: "IX_files_thirdparty_app_tenant_id", - schema: "onlyoffice", - table: "files_thirdparty_app", - column: "tenant_id"); - - migrationBuilder.CreateIndex( - name: "index_1", - schema: "onlyoffice", - table: "files_thirdparty_id_mapping", - columns: new[] { "tenant_id", "hash_id" }); - - migrationBuilder.CreateIndex( - name: "user_id", - schema: "onlyoffice", - table: "firebase_users", - columns: new[] { "tenant_id", "user_id" }); - - migrationBuilder.CreateIndex( - name: "worker_type_name", - table: "hosting_instance_registration", - column: "worker_type_name"); - - migrationBuilder.CreateIndex( - name: "date_login_events", - schema: "onlyoffice", - table: "login_events", - column: "date"); - - migrationBuilder.CreateIndex( - name: "IX_login_events_tenant_id", - schema: "onlyoffice", - table: "login_events", - column: "tenant_id"); - - migrationBuilder.CreateIndex( - name: "tenant_id_login_events", - schema: "onlyoffice", - table: "login_events", - columns: new[] { "user_id", "tenant_id" }); - - migrationBuilder.CreateIndex( - name: "state", - schema: "onlyoffice", - table: "notify_info", - column: "state"); - - migrationBuilder.CreateIndex( - name: "IX_notify_queue_tenant_id", - schema: "onlyoffice", - table: "notify_queue", - column: "tenant_id"); - - migrationBuilder.CreateIndex( - name: "tgId", - schema: "onlyoffice", - table: "telegram_users", - column: "telegram_user_id"); - - migrationBuilder.CreateIndex( - name: "tenant_tenants_iprestrictions", - schema: "onlyoffice", - table: "tenants_iprestrictions", - column: "tenant"); - - migrationBuilder.CreateIndex( - name: "last_modified_tenants_quotarow", - schema: "onlyoffice", - table: "tenants_quotarow", - column: "last_modified"); - - migrationBuilder.CreateIndex( - name: "tenant_tenants_tariff", - schema: "onlyoffice", - table: "tenants_tariff", - column: "tenant"); - - migrationBuilder.CreateIndex( - name: "alias", - schema: "onlyoffice", - table: "tenants_tenants", - column: "alias", - unique: true); - - migrationBuilder.CreateIndex( - name: "last_modified_tenants_tenants", - schema: "onlyoffice", - table: "tenants_tenants", - column: "last_modified"); - - migrationBuilder.CreateIndex( - name: "mappeddomain", - schema: "onlyoffice", - table: "tenants_tenants", - column: "mappeddomain"); - - migrationBuilder.CreateIndex( - name: "version", - schema: "onlyoffice", - table: "tenants_tenants", - column: "version"); - - migrationBuilder.CreateIndex( - name: "tenant_id", - table: "webhooks_config", - column: "tenant_id"); - - migrationBuilder.CreateIndex( - name: "IX_webhooks_logs_config_id", - table: "webhooks_logs", - column: "config_id"); - - migrationBuilder.CreateIndex( - name: "tenant_id", - table: "webhooks_logs", - column: "tenant_id"); - - migrationBuilder.CreateIndex( - name: "ID", - schema: "onlyoffice", - table: "webstudio_settings", - column: "ID"); - - migrationBuilder.CreateIndex( - name: "visitdate", - schema: "onlyoffice", - table: "webstudio_uservisit", - column: "visitdate"); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropTable( - name: "account_links", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "audit_events", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "backup_backup"); - - migrationBuilder.DropTable( - name: "backup_schedule"); - - migrationBuilder.DropTable( - name: "core_acl", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "core_group"); - - migrationBuilder.DropTable( - name: "core_settings", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "core_subscription", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "core_subscriptionmethod", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "core_user", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "core_userdav", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "core_usergroup", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "core_userphoto", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "core_usersecurity", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "dbip_lookup"); - - migrationBuilder.DropTable( - name: "event_bus_integration_event_log"); - - migrationBuilder.DropTable( - name: "feed_last", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "feed_readed", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "feed_users", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "files_bunch_objects", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "files_converts", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "files_file", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "files_folder_tree", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "files_link", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "files_properties", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "files_security", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "files_tag", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "files_tag_link", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "files_thirdparty_account", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "files_thirdparty_app", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "files_thirdparty_id_mapping", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "firebase_users", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "hosting_instance_registration"); - - migrationBuilder.DropTable( - name: "login_events", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "mobile_app_install", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "notify_info", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "notify_queue", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "Regions"); - - migrationBuilder.DropTable( - name: "telegram_users", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "tenants_forbiden", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "tenants_iprestrictions", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "tenants_quota", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "tenants_quotarow", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "tenants_tariff", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "tenants_tariffrow", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "tenants_version", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "webhooks"); - - migrationBuilder.DropTable( - name: "webhooks_logs"); - - migrationBuilder.DropTable( - name: "webstudio_index", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "webstudio_settings", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "webstudio_uservisit", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "feed_aggregate", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "files_folder", - schema: "onlyoffice"); - - migrationBuilder.DropTable( - name: "webhooks_config"); - - migrationBuilder.DropTable( - name: "tenants_tenants", - schema: "onlyoffice"); - } - } -} diff --git a/migrations/postgre/MigrationContext/20230621124717_MigrationContext_Upgrade1.Designer.cs b/migrations/postgre/MigrationContext/20230621124717_MigrationContext_Upgrade1.Designer.cs deleted file mode 100644 index bdea025a80..0000000000 --- a/migrations/postgre/MigrationContext/20230621124717_MigrationContext_Upgrade1.Designer.cs +++ /dev/null @@ -1,6849 +0,0 @@ -// -using System; -using ASC.Migrations.Core; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata; - -#nullable disable - -namespace ASC.Migrations.PostgreSql.Migrations -{ - [DbContext(typeof(MigrationContext))] - [Migration("20230619132829_CoreDbContext_Upgrade1")] - partial class MigrationContextUpgrade1 - { - /// - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn) - .HasAnnotation("ProductVersion", "7.0.2") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - modelBuilder.Entity("ASC.Core.Common.EF.Acl", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Subject") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("subject"); - - b.Property("Action") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("action"); - - b.Property("Object") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("object") - .HasDefaultValueSql("''"); - - b.Property("AceType") - .HasColumnType("integer") - .HasColumnName("acetype"); - - b.HasKey("TenantId", "Subject", "Action", "Object") - .HasName("core_acl_pkey"); - - b.ToTable("core_acl", "onlyoffice"); - - b.HasData( - new - { - TenantId = -1, - Subject = new Guid("5d5b7260-f7f7-49f1-a1c9-95fbb6a12604"), - Action = new Guid("ef5e6790-f346-4b6e-b662-722bc28cb0db"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("5d5b7260-f7f7-49f1-a1c9-95fbb6a12604"), - Action = new Guid("f11e8f3f-46e6-4e55-90e3-09c22ec565bd"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("088d5940-a80f-4403-9741-d610718ce95c"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("08d66144-e1c9-4065-9aa1-aa4bba0a7bc8"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("08d75c97-cf3f-494b-90d1-751c941fe2dd"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("0d1f72a8-63da-47ea-ae42-0900e4ac72a9"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("13e30b51-5b4d-40a5-8575-cb561899eeb1"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("19f658ae-722b-4cd8-8236-3ad150801d96"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("2c6552b3-b2e0-4a00-b8fd-13c161e337b1"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("388c29d3-c662-4a61-bf47-fc2f7094224a"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("40bf31f4-3132-4e76-8d5c-9828a89501a3"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("49ae8915-2b30-4348-ab74-b152279364fb"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("63e9f35f-6bb5-4fb1-afaa-e4c2f4dec9bd"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("9018c001-24c2-44bf-a1db-d1121a570e74"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("948ad738-434b-4a88-8e38-7569d332910a"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("9d75a568-52aa-49d8-ad43-473756cd8903"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("a362fe79-684e-4d43-a599-65bc1f4e167f"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("c426c349-9ad4-47cd-9b8f-99fc30675951"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("d11ebcb9-0e6e-45e6-a6d0-99c41d687598"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("d1f3b53d-d9e2-4259-80e7-d24380978395"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("d49f4e30-da10-4b39-bc6d-b41ef6e039d3"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("d852b66f-6719-45e1-8657-18f0bb791690"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("e0759a42-47f0-4763-a26a-d5aa665bec35"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("e37239bd-c5b5-4f1e-a9f8-3ceeac209615"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("fbc37705-a04c-40ad-a68c-ce2f0423f397"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("fcac42b8-9386-48eb-a938-d19b3c576912"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("13e30b51-5b4d-40a5-8575-cb561899eeb1"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("49ae8915-2b30-4348-ab74-b152279364fb"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("63e9f35f-6bb5-4fb1-afaa-e4c2f4dec9bd"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("9018c001-24c2-44bf-a1db-d1121a570e74"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("d1f3b53d-d9e2-4259-80e7-d24380978395"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("e0759a42-47f0-4763-a26a-d5aa665bec35"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("e37239bd-c5b5-4f1e-a9f8-3ceeac209615"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("f11e88d7-f185-4372-927c-d88008d2c483"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("f11e8f3f-46e6-4e55-90e3-09c22ec565bd"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("00e7dfc5-ac49-4fd3-a1d6-98d84e877ac4"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("14be970f-7af5-4590-8e81-ea32b5f7866d"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("18ecc94d-6afa-4994-8406-aee9dff12ce2"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("298530eb-435e-4dc6-a776-9abcd95c70e9"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("430eaf70-1886-483c-a746-1a18e3e6bb63"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("557d6503-633b-4490-a14c-6473147ce2b3"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("724cbb75-d1c9-451e-bae0-4de0db96b1f7"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("7cb5c0d1-d254-433f-abe3-ff23373ec631"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("91b29dcd-9430-4403-b17a-27d09189be88"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("a18480a4-6d18-4c71-84fa-789888791f45"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("b630d29b-1844-4bda-bbbe-cf5542df3559"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("c62a9e8d-b24c-4513-90aa-7ff0f8ba38eb"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("d7cdb020-288b-41e5-a857-597347618533"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("662f3db7-9bc8-42cf-84da-2765f563e9b0"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("712d9ec3-5d2b-4b13-824f-71f00191dcca"), - Action = new Guid("e0759a42-47f0-4763-a26a-d5aa665bec35"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("0d68b142-e20a-446e-a832-0d6b0b65a164"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("6f05c382-8bca-4469-9424-c807a98c40d7"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|1e04460243b54d7982f3fd6208a11960", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|6743007c6f954d208c88a8601ce5e76d", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|e67be73df9ae4ce18fec1880cb518cb4", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|ea942538e68e49079394035336ee0ba8", - AceType = 1 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|32d24cb57ece46069c9419216ba42086", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|bf88953e3c434850a3fbb1e43ad53a3e", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|2a9230378b2d487b9a225ac0918acf3f", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|f4d98afdd336433287783c6945c81ea0", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|28b10049dd204f54b986873bc14ccfc7", - AceType = 1 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|3cfd481b46f24a4ab55cb8c0c9def02c", - AceType = 1 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|6a598c7491ae437da5f4ad339bd11bb2", - AceType = 1 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|742cf945cbbc4a5782d61600a12cf8ca", - AceType = 1 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|853b6eb973ee438d9b098ffeedf36234", - AceType = 1 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|46cfa73af32046cf8d5bcd82e1d67f26", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|37620ae5c40b45ce855a39dd7d76a1fa", - AceType = 0 - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("id"); - - b.Property("CategoryId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("categoryid") - .HasDefaultValueSql("NULL"); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("name"); - - b.Property("ParentId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("parentid") - .HasDefaultValueSql("NULL"); - - b.Property("Removed") - .HasColumnType("boolean") - .HasColumnName("removed"); - - b.Property("Sid") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("sid") - .HasDefaultValueSql("NULL"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.HasKey("Id"); - - b.HasIndex("LastModified") - .HasDatabaseName("last_modified"); - - b.HasIndex("TenantId", "ParentId") - .HasDatabaseName("parentid"); - - b.ToTable("core_group", (string)null); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbQuota", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Description") - .HasColumnType("character varying") - .HasColumnName("description"); - - b.Property("Features") - .HasColumnType("text") - .HasColumnName("features"); - - b.Property("Name") - .HasColumnType("character varying") - .HasColumnName("name"); - - b.Property("Price") - .ValueGeneratedOnAdd() - .HasColumnType("numeric(10,2)") - .HasColumnName("price") - .HasDefaultValueSql("0.00"); - - b.Property("ProductId") - .ValueGeneratedOnAdd() - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("product_id") - .HasDefaultValueSql("NULL"); - - b.Property("Visible") - .HasColumnType("boolean") - .HasColumnName("visible"); - - b.HasKey("TenantId") - .HasName("tenants_quota_pkey"); - - b.ToTable("tenants_quota", "onlyoffice"); - - b.HasData( - new - { - TenantId = -1, - Features = "trial,audit,ldap,sso,whitelabel,thirdparty,restore,oauth,total_size:107374182400,file_size:100,manager:1", - Name = "trial", - Price = 0m, - Visible = false - }, - new - { - TenantId = -2, - Features = "audit,ldap,sso,whitelabel,thirdparty,restore,oauth,contentsearch,total_size:107374182400,file_size:1024,manager:1", - Name = "admin", - Price = 30m, - ProductId = "1002", - Visible = true - }, - new - { - TenantId = -3, - Features = "free,total_size:2147483648,manager:3,room:12", - Name = "startup", - Price = 0m, - Visible = false - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbQuotaRow", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Path") - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("path"); - - b.Property("Counter") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasColumnName("counter") - .HasDefaultValueSql("'0'"); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("Tag") - .ValueGeneratedOnAdd() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .HasColumnName("tag") - .HasDefaultValueSql("'0'"); - - b.Property("UserId") - .ValueGeneratedOnAdd() - .HasMaxLength(36) - .HasColumnType("uuid") - .HasColumnName("user_id") - .HasDefaultValueSql("NULL"); - - b.HasKey("TenantId", "Path") - .HasName("tenants_quotarow_pkey"); - - b.HasIndex("LastModified") - .HasDatabaseName("last_modified_tenants_quotarow"); - - b.ToTable("tenants_quotarow", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbSubscriptionMethod", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Source") - .HasMaxLength(38) - .HasColumnType("character varying(38)") - .HasColumnName("source"); - - b.Property("Action") - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("action"); - - b.Property("Recipient") - .HasMaxLength(38) - .HasColumnType("character varying(38)") - .HasColumnName("recipient"); - - b.Property("Sender") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .HasColumnName("sender"); - - b.HasKey("TenantId", "Source", "Action", "Recipient") - .HasName("core_subscriptionmethod_pkey"); - - b.ToTable("core_subscriptionmethod", "onlyoffice"); - - b.HasData( - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "send_whats_new", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender" - }, - new - { - TenantId = -1, - Source = "6504977c-75af-4691-9099-084d3ddeea04", - Action = "new feed", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6a598c74-91ae-437d-a5f4-ad339bd11bb2", - Action = "new post", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "853b6eb9-73ee-438d-9b09-8ffeedf36234", - Action = "new topic in forum", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "9d51954f-db9b-4aed-94e3-ed70b914e101", - Action = "new photo uploaded", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "28b10049-dd20-4f54-b986-873bc14ccfc7", - Action = "new bookmark created", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "742cf945-cbbc-4a57-82d6-1600a12cf8ca", - Action = "new wiki page", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "37620ae5-c40b-45ce-855a-39dd7d76a1fa", - Action = "BirthdayReminder", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", - Action = "sharedocument", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", - Action = "sharefolder", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", - Action = "updatedocument", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "invitetoproject", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "milestonedeadline", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "newcommentformessage", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "newcommentformilestone", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "newcommentfortask", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "projectcreaterequest", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "projecteditrequest", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "removefromproject", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "responsibleforproject", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "responsiblefortask", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "taskclosed", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "40650da3-f7c1-424c-8c89-b9c115472e08", - Action = "calendar_sharing", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "40650da3-f7c1-424c-8c89-b9c115472e08", - Action = "event_alert", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "admin_notify", - Recipient = "cd84e66b-b803-40fc-99f9-b2969a54a1de", - Sender = "email.sender" - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "SetAccess", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "ResponsibleForTask", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "AddRelationshipEvent", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "ExportCompleted", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "CreateNewContact", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "ResponsibleForOpportunity", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "periodic_notify", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender" - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbTariff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Comment") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("comment") - .HasDefaultValueSql("NULL"); - - b.Property("CreateOn") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("create_on") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("CustomerId") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("customer_id") - .HasDefaultValueSql("NULL"); - - b.Property("Stamp") - .HasColumnType("timestamp with time zone") - .HasColumnName("stamp"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.HasKey("Id"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_tenants_tariff"); - - b.ToTable("tenants_tariff", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbTariffRow", b => - { - b.Property("TenantId") - .HasColumnType("int") - .HasColumnName("tenant"); - - b.Property("TariffId") - .HasColumnType("int") - .HasColumnName("tariff_id"); - - b.Property("Quota") - .HasColumnType("int") - .HasColumnName("quota"); - - b.Property("Quantity") - .HasColumnType("int") - .HasColumnName("quantity"); - - b.HasKey("TenantId", "TariffId", "Quota") - .HasName("PRIMARY"); - - b.ToTable("tenants_tariffrow", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.FireBaseUser", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Application") - .HasMaxLength(20) - .HasColumnType("character varying(20)") - .HasColumnName("application"); - - b.Property("FirebaseDeviceToken") - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("firebase_device_token"); - - b.Property("IsSubscribed") - .HasColumnType("boolean") - .HasColumnName("is_subscribed"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("UserId") - .HasMaxLength(36) - .HasColumnType("uuid") - .HasColumnName("user_id"); - - b.HasKey("Id") - .HasName("firebase_users_pkey"); - - b.HasIndex("TenantId", "UserId") - .HasDatabaseName("user_id"); - - b.ToTable("firebase_users", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.AccountLinks", b => - { - b.Property("Id") - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("id"); - - b.Property("UId") - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("uid"); - - b.Property("Linked") - .HasColumnType("timestamp with time zone") - .HasColumnName("linked"); - - b.Property("Profile") - .IsRequired() - .HasColumnType("text") - .HasColumnName("profile"); - - b.Property("Provider") - .ValueGeneratedOnAdd() - .HasMaxLength(60) - .HasColumnType("character(60)") - .HasColumnName("provider") - .HasDefaultValueSql("NULL") - .IsFixedLength(); - - b.HasKey("Id", "UId") - .HasName("account_links_pkey"); - - b.HasIndex("UId") - .HasDatabaseName("uid"); - - b.ToTable("account_links", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbCoreSettings", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Id") - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("id"); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("Value") - .IsRequired() - .HasColumnType("bytea") - .HasColumnName("value"); - - b.HasKey("TenantId", "Id") - .HasName("core_settings_pkey"); - - b.ToTable("core_settings", "onlyoffice"); - - b.HasData( - new - { - TenantId = -1, - Id = "CompanyWhiteLabelSettings", - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Value = new byte[] { 245, 71, 4, 138, 72, 101, 23, 21, 135, 217, 206, 188, 138, 73, 108, 96, 29, 150, 3, 31, 44, 28, 62, 145, 96, 53, 57, 66, 238, 118, 93, 172, 211, 22, 244, 181, 244, 40, 146, 67, 111, 196, 162, 27, 154, 109, 248, 255, 181, 17, 253, 127, 42, 65, 19, 90, 26, 206, 203, 145, 159, 159, 243, 105, 24, 71, 188, 165, 53, 85, 57, 37, 186, 251, 57, 96, 18, 162, 218, 80, 0, 101, 250, 100, 66, 97, 24, 51, 240, 215, 216, 169, 105, 100, 15, 253, 29, 83, 182, 236, 203, 53, 68, 251, 2, 150, 149, 148, 58, 136, 84, 37, 151, 82, 92, 227, 30, 52, 111, 40, 154, 155, 7, 126, 149, 100, 169, 87, 10, 129, 228, 138, 177, 101, 77, 67, 177, 216, 189, 201, 1, 213, 136, 216, 107, 198, 253, 221, 106, 255, 198, 17, 68, 14, 110, 90, 174, 182, 68, 222, 188, 77, 157, 19, 26, 68, 86, 97, 15, 81, 24, 171, 214, 114, 191, 175, 56, 56, 48, 52, 125, 82, 253, 113, 71, 41, 201, 5, 8, 118, 162, 191, 99, 196, 48, 198, 223, 79, 204, 174, 31, 97, 236, 20, 213, 218, 85, 34, 16, 74, 196, 209, 235, 14, 71, 209, 32, 131, 195, 84, 11, 66, 74, 19, 115, 255, 99, 69, 235, 210, 204, 15, 13, 4, 143, 127, 152, 125, 212, 91 } - }, - new - { - TenantId = -1, - Id = "FullTextSearchSettings", - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Value = new byte[] { 8, 120, 207, 5, 153, 181, 23, 202, 162, 211, 218, 237, 157, 6, 76, 62, 220, 238, 175, 67, 31, 53, 166, 246, 66, 220, 173, 160, 72, 23, 227, 81, 50, 39, 187, 177, 222, 110, 43, 171, 235, 158, 16, 119, 178, 207, 49, 140, 72, 152, 20, 84, 94, 135, 117, 1, 246, 51, 251, 190, 148, 2, 44, 252, 221, 2, 91, 83, 149, 151, 58, 245, 16, 148, 52, 8, 187, 86, 150, 46, 227, 93, 163, 95, 47, 131, 116, 207, 95, 209, 38, 149, 53, 148, 73, 215, 206, 251, 194, 199, 189, 17, 42, 229, 135, 82, 23, 154, 162, 165, 158, 94, 23, 128, 30, 88, 12, 204, 96, 250, 236, 142, 189, 211, 214, 18, 196, 136, 102, 102, 217, 109, 108, 240, 96, 96, 94, 100, 201, 10, 31, 170, 128, 192 } - }, - new - { - TenantId = -1, - Id = "SmtpSettings", - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Value = new byte[] { 240, 82, 224, 144, 161, 163, 117, 13, 173, 205, 78, 153, 97, 218, 4, 170, 81, 239, 1, 151, 226, 192, 98, 60, 241, 44, 88, 56, 191, 164, 10, 155, 72, 186, 239, 203, 227, 113, 88, 119, 49, 215, 227, 220, 158, 124, 96, 9, 116, 47, 158, 65, 93, 86, 219, 15, 10, 224, 142, 50, 248, 144, 75, 44, 68, 28, 198, 87, 198, 69, 67, 234, 238, 38, 32, 68, 162, 139, 67, 53, 220, 176, 240, 196, 233, 64, 29, 137, 31, 160, 99, 105, 249, 132, 202, 45, 71, 92, 134, 194, 55, 145, 121, 97, 197, 130, 119, 105, 131, 21, 133, 35, 10, 102, 172, 119, 135, 230, 251, 86, 253, 62, 55, 56, 146, 103, 164, 106 } - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbIPLookup", b => - { - b.Property("AddrType") - .HasColumnType("enum('ipv4','ipv6')") - .HasColumnName("addr_type"); - - b.Property("IPStart") - .HasColumnType("varbinary(16)") - .HasColumnName("ip_start"); - - b.Property("City") - .IsRequired() - .HasColumnType("varchar(80)") - .HasColumnName("city"); - - b.Property("Continent") - .IsRequired() - .HasColumnType("char(2)") - .HasColumnName("continent"); - - b.Property("Country") - .IsRequired() - .HasColumnType("char(2)") - .HasColumnName("country"); - - b.Property("District") - .IsRequired() - .HasColumnType("varchar(80)") - .HasColumnName("district"); - - b.Property("GeonameId") - .HasColumnType("int(10)") - .HasColumnName("geoname_id"); - - b.Property("IPEnd") - .IsRequired() - .HasColumnType("varbinary(16)") - .HasColumnName("ip_end"); - - b.Property("Latitude") - .HasColumnType("float") - .HasColumnName("latitude"); - - b.Property("Longitude") - .HasColumnType("float") - .HasColumnName("longitude"); - - b.Property("StateProv") - .IsRequired() - .HasColumnType("varchar(80)") - .HasColumnName("stateprov"); - - b.Property("StateProvCode") - .HasColumnType("varchar(15)") - .HasColumnName("stateprov_code"); - - b.Property("TimezoneName") - .IsRequired() - .HasColumnType("varchar(64)") - .HasColumnName("timezone_name"); - - b.Property("TimezoneOffset") - .HasColumnType("float") - .HasColumnName("timezone_offset"); - - b.Property("WeatherCode") - .IsRequired() - .HasColumnType("varchar(10)") - .HasColumnName("weather_code"); - - b.Property("ZipCode") - .HasColumnType("varchar(20)") - .HasColumnName("zipcode"); - - b.HasKey("AddrType", "IPStart"); - - b.ToTable("dbip_lookup", (string)null); - - b.HasAnnotation("MySql:CharSet", "utf8mb4"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Alias") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("character varying(100)") - .HasColumnName("alias"); - - b.Property("Calls") - .ValueGeneratedOnAdd() - .HasColumnType("boolean") - .HasColumnName("calls") - .HasDefaultValueSql("true"); - - b.Property("CreationDateTime") - .HasColumnType("timestamp with time zone") - .HasColumnName("creationdatetime"); - - b.Property("Industry") - .HasColumnType("integer") - .HasColumnName("industry"); - - b.Property("Language") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(10) - .HasColumnType("character(10)") - .HasColumnName("language") - .HasDefaultValueSql("'en-US'") - .IsFixedLength(); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("MappedDomain") - .ValueGeneratedOnAdd() - .HasMaxLength(100) - .HasColumnType("character varying(100)") - .HasColumnName("mappeddomain") - .HasDefaultValueSql("NULL"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("name"); - - b.Property("OwnerId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("owner_id") - .HasDefaultValueSql("NULL"); - - b.Property("PaymentId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("character varying(38)") - .HasColumnName("payment_id") - .HasDefaultValueSql("NULL"); - - b.Property("Spam") - .ValueGeneratedOnAdd() - .HasColumnType("boolean") - .HasColumnName("spam") - .HasDefaultValueSql("true"); - - b.Property("Status") - .HasColumnType("integer") - .HasColumnName("status"); - - b.Property("StatusChanged") - .HasColumnType("timestamp with time zone") - .HasColumnName("statuschanged"); - - b.Property("TimeZone") - .ValueGeneratedOnAdd() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("timezone") - .HasDefaultValueSql("NULL"); - - b.Property("TrustedDomainsEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("trusteddomainsenabled") - .HasDefaultValueSql("1"); - - b.Property("TrustedDomainsRaw") - .ValueGeneratedOnAdd() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .HasColumnName("trusteddomains") - .HasDefaultValueSql("NULL"); - - b.Property("Version") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("version") - .HasDefaultValueSql("2"); - - b.Property("Version_Changed") - .HasColumnType("timestamp with time zone") - .HasColumnName("version_changed"); - - b.HasKey("Id"); - - b.HasIndex("Alias") - .IsUnique() - .HasDatabaseName("alias"); - - b.HasIndex("LastModified") - .HasDatabaseName("last_modified_tenants_tenants"); - - b.HasIndex("MappedDomain") - .HasDatabaseName("mappeddomain"); - - b.HasIndex("Version") - .HasDatabaseName("version"); - - b.ToTable("tenants_tenants", "onlyoffice"); - - b.HasData( - new - { - Id = 1, - Alias = "localhost", - Calls = false, - CreationDateTime = new DateTime(2021, 3, 9, 17, 46, 59, 97, DateTimeKind.Utc).AddTicks(4317), - Industry = 0, - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Name = "Web Office", - OwnerId = new Guid("66faa6e4-f133-11ea-b126-00ffeec8b4ef"), - Spam = false, - Status = 0, - TrustedDomainsEnabled = 0, - Version = 0 - }, - new - { - Id = -1, - Alias = "settings", - Calls = false, - CreationDateTime = new DateTime(2021, 3, 9, 17, 46, 59, 97, DateTimeKind.Utc).AddTicks(4317), - Industry = 0, - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Name = "Web Office", - OwnerId = new Guid("00000000-0000-0000-0000-000000000000"), - Spam = false, - Status = 1, - TrustedDomainsEnabled = 0, - Version = 0 - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantForbiden", b => - { - b.Property("Address") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("address"); - - b.HasKey("Address") - .HasName("tenants_forbiden_pkey"); - - b.ToTable("tenants_forbiden", "onlyoffice"); - - b.HasData( - new - { - Address = "controlpanel" - }, - new - { - Address = "localhost" - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantVersion", b => - { - b.Property("Id") - .HasColumnType("integer") - .HasColumnName("id"); - - b.Property("DefaultVersion") - .HasColumnType("integer") - .HasColumnName("default_version"); - - b.Property("Url") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("url"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("version"); - - b.Property("Visible") - .HasColumnType("boolean") - .HasColumnName("visible"); - - b.HasKey("Id"); - - b.ToTable("tenants_version", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioIndex", b => - { - b.Property("IndexName") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("index_name"); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.HasKey("IndexName") - .HasName("webstudio_index_pkey"); - - b.ToTable("webstudio_index", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioSettings", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("TenantID"); - - b.Property("Id") - .HasMaxLength(64) - .HasColumnType("uuid") - .HasColumnName("ID"); - - b.Property("UserId") - .HasMaxLength(64) - .HasColumnType("uuid") - .HasColumnName("UserID"); - - b.Property("Data") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("TenantId", "Id", "UserId") - .HasName("webstudio_settings_pkey"); - - b.HasIndex("Id") - .HasDatabaseName("ID"); - - b.ToTable("webstudio_settings", "onlyoffice"); - - b.HasData( - new - { - TenantId = 1, - Id = new Guid("9a925891-1f92-4ed7-b277-d6f649739f06"), - UserId = new Guid("00000000-0000-0000-0000-000000000000"), - Data = "{\"Completed\":false}" - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioUserVisit", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenantid"); - - b.Property("VisitDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("visitdate"); - - b.Property("ProductId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("productid"); - - b.Property("UserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("userid"); - - b.Property("FirstVisitTime") - .HasColumnType("timestamp with time zone") - .HasColumnName("firstvisittime"); - - b.Property("LastVisitTime") - .HasColumnType("timestamp with time zone") - .HasColumnName("lastvisittime"); - - b.Property("VisitCount") - .HasColumnType("integer") - .HasColumnName("visitcount"); - - b.HasKey("TenantId", "VisitDate", "ProductId", "UserId") - .HasName("webstudio_uservisit_pkey"); - - b.HasIndex("VisitDate") - .HasDatabaseName("visitdate"); - - b.ToTable("webstudio_uservisit", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.FilesConverts", b => - { - b.Property("Input") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("input"); - - b.Property("Output") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("output"); - - b.HasKey("Input", "Output") - .HasName("files_converts_pkey"); - - b.ToTable("files_converts", "onlyoffice"); - - b.HasData( - new - { - Input = ".csv", - Output = ".ods" - }, - new - { - Input = ".csv", - Output = ".pdf" - }, - new - { - Input = ".csv", - Output = ".ots" - }, - new - { - Input = ".csv", - Output = ".xlsx" - }, - new - { - Input = ".csv", - Output = ".xlsm" - }, - new - { - Input = ".csv", - Output = ".xltm" - }, - new - { - Input = ".csv", - Output = ".xltx" - }, - new - { - Input = ".doc", - Output = ".docx" - }, - new - { - Input = ".doc", - Output = ".docm" - }, - new - { - Input = ".doc", - Output = ".dotm" - }, - new - { - Input = ".doc", - Output = ".dotx" - }, - new - { - Input = ".doc", - Output = ".epub" - }, - new - { - Input = ".doc", - Output = ".fb2" - }, - new - { - Input = ".doc", - Output = ".html" - }, - new - { - Input = ".doc", - Output = ".ott" - }, - new - { - Input = ".doc", - Output = ".odt" - }, - new - { - Input = ".doc", - Output = ".pdf" - }, - new - { - Input = ".doc", - Output = ".rtf" - }, - new - { - Input = ".doc", - Output = ".txt" - }, - new - { - Input = ".docm", - Output = ".docx" - }, - new - { - Input = ".docm", - Output = ".dotm" - }, - new - { - Input = ".docm", - Output = ".html" - }, - new - { - Input = ".docm", - Output = ".dotx" - }, - new - { - Input = ".docm", - Output = ".epub" - }, - new - { - Input = ".docm", - Output = ".fb2" - }, - new - { - Input = ".docm", - Output = ".ott" - }, - new - { - Input = ".docm", - Output = ".odt" - }, - new - { - Input = ".docm", - Output = ".pdf" - }, - new - { - Input = ".docm", - Output = ".rtf" - }, - new - { - Input = ".docm", - Output = ".txt" - }, - new - { - Input = ".doct", - Output = ".docx" - }, - new - { - Input = ".docx", - Output = ".odt" - }, - new - { - Input = ".docx", - Output = ".pdf" - }, - new - { - Input = ".docx", - Output = ".rtf" - }, - new - { - Input = ".docx", - Output = ".txt" - }, - new - { - Input = ".docx", - Output = ".html" - }, - new - { - Input = ".docx", - Output = ".dotm" - }, - new - { - Input = ".docx", - Output = ".dotx" - }, - new - { - Input = ".docx", - Output = ".epub" - }, - new - { - Input = ".docx", - Output = ".fb2" - }, - new - { - Input = ".docx", - Output = ".ott" - }, - new - { - Input = ".docx", - Output = ".docm" - }, - new - { - Input = ".docx", - Output = ".docxf" - }, - new - { - Input = ".docxf", - Output = ".docm" - }, - new - { - Input = ".docxf", - Output = ".docx" - }, - new - { - Input = ".docxf", - Output = ".dotm" - }, - new - { - Input = ".docxf", - Output = ".odt" - }, - new - { - Input = ".docxf", - Output = ".oform" - }, - new - { - Input = ".docxf", - Output = ".pdf" - }, - new - { - Input = ".docxf", - Output = ".rtf" - }, - new - { - Input = ".docxf", - Output = ".txt" - }, - new - { - Input = ".docxf", - Output = ".dotx" - }, - new - { - Input = ".docxf", - Output = ".epub" - }, - new - { - Input = ".docxf", - Output = ".fb2" - }, - new - { - Input = ".docxf", - Output = ".html" - }, - new - { - Input = ".docxf", - Output = ".ott" - }, - new - { - Input = ".dot", - Output = ".docx" - }, - new - { - Input = ".dot", - Output = ".odt" - }, - new - { - Input = ".dot", - Output = ".pdf" - }, - new - { - Input = ".dot", - Output = ".rtf" - }, - new - { - Input = ".dot", - Output = ".txt" - }, - new - { - Input = ".dot", - Output = ".docm" - }, - new - { - Input = ".dot", - Output = ".dotm" - }, - new - { - Input = ".dot", - Output = ".dotx" - }, - new - { - Input = ".dot", - Output = ".epub" - }, - new - { - Input = ".dot", - Output = ".fb2" - }, - new - { - Input = ".dot", - Output = ".html" - }, - new - { - Input = ".dot", - Output = ".ott" - }, - new - { - Input = ".dotm", - Output = ".docx" - }, - new - { - Input = ".dotm", - Output = ".odt" - }, - new - { - Input = ".dotm", - Output = ".pdf" - }, - new - { - Input = ".dotm", - Output = ".rtf" - }, - new - { - Input = ".dotm", - Output = ".txt" - }, - new - { - Input = ".dotm", - Output = ".docm" - }, - new - { - Input = ".dotm", - Output = ".dotx" - }, - new - { - Input = ".dotm", - Output = ".epub" - }, - new - { - Input = ".dotm", - Output = ".fb2" - }, - new - { - Input = ".dotm", - Output = ".html" - }, - new - { - Input = ".dotm", - Output = ".ott" - }, - new - { - Input = ".dotx", - Output = ".docx" - }, - new - { - Input = ".dotx", - Output = ".odt" - }, - new - { - Input = ".dotx", - Output = ".pdf" - }, - new - { - Input = ".dotx", - Output = ".rtf" - }, - new - { - Input = ".dotx", - Output = ".txt" - }, - new - { - Input = ".dotx", - Output = ".docm" - }, - new - { - Input = ".dotx", - Output = ".dotm" - }, - new - { - Input = ".dotx", - Output = ".epub" - }, - new - { - Input = ".dotx", - Output = ".fb2" - }, - new - { - Input = ".dotx", - Output = ".html" - }, - new - { - Input = ".dotx", - Output = ".ott" - }, - new - { - Input = ".dps", - Output = ".odp" - }, - new - { - Input = ".dps", - Output = ".otp" - }, - new - { - Input = ".dps", - Output = ".pdf" - }, - new - { - Input = ".dps", - Output = ".potm" - }, - new - { - Input = ".dps", - Output = ".potx" - }, - new - { - Input = ".dps", - Output = ".ppsm" - }, - new - { - Input = ".dps", - Output = ".ppsx" - }, - new - { - Input = ".dps", - Output = ".pptm" - }, - new - { - Input = ".dps", - Output = ".pptx" - }, - new - { - Input = ".dpt", - Output = ".odp" - }, - new - { - Input = ".dpt", - Output = ".otp" - }, - new - { - Input = ".dpt", - Output = ".pdf" - }, - new - { - Input = ".dpt", - Output = ".potm" - }, - new - { - Input = ".dpt", - Output = ".potx" - }, - new - { - Input = ".dpt", - Output = ".ppsm" - }, - new - { - Input = ".dpt", - Output = ".ppsx" - }, - new - { - Input = ".dpt", - Output = ".pptm" - }, - new - { - Input = ".dpt", - Output = ".pptx" - }, - new - { - Input = ".epub", - Output = ".docx" - }, - new - { - Input = ".epub", - Output = ".odt" - }, - new - { - Input = ".epub", - Output = ".pdf" - }, - new - { - Input = ".epub", - Output = ".rtf" - }, - new - { - Input = ".epub", - Output = ".txt" - }, - new - { - Input = ".epub", - Output = ".docm" - }, - new - { - Input = ".epub", - Output = ".dotm" - }, - new - { - Input = ".epub", - Output = ".dotx" - }, - new - { - Input = ".epub", - Output = ".fb2" - }, - new - { - Input = ".epub", - Output = ".html" - }, - new - { - Input = ".epub", - Output = ".ott" - }, - new - { - Input = ".et", - Output = ".csv" - }, - new - { - Input = ".et", - Output = ".ods" - }, - new - { - Input = ".et", - Output = ".ots" - }, - new - { - Input = ".et", - Output = ".pdf" - }, - new - { - Input = ".et", - Output = ".xlsm" - }, - new - { - Input = ".et", - Output = ".xlsx" - }, - new - { - Input = ".et", - Output = ".xltm" - }, - new - { - Input = ".et", - Output = ".xltx" - }, - new - { - Input = ".ett", - Output = ".csv" - }, - new - { - Input = ".ett", - Output = ".ods" - }, - new - { - Input = ".ett", - Output = ".ots" - }, - new - { - Input = ".ett", - Output = ".pdf" - }, - new - { - Input = ".ett", - Output = ".xlsm" - }, - new - { - Input = ".ett", - Output = ".xlsx" - }, - new - { - Input = ".ett", - Output = ".xltm" - }, - new - { - Input = ".ett", - Output = ".xltx" - }, - new - { - Input = ".fb2", - Output = ".docx" - }, - new - { - Input = ".fb2", - Output = ".odt" - }, - new - { - Input = ".fb2", - Output = ".pdf" - }, - new - { - Input = ".fb2", - Output = ".rtf" - }, - new - { - Input = ".fb2", - Output = ".txt" - }, - new - { - Input = ".fb2", - Output = ".docm" - }, - new - { - Input = ".fb2", - Output = ".dotm" - }, - new - { - Input = ".fb2", - Output = ".dotx" - }, - new - { - Input = ".fb2", - Output = ".epub" - }, - new - { - Input = ".fb2", - Output = ".html" - }, - new - { - Input = ".fb2", - Output = ".ott" - }, - new - { - Input = ".fodp", - Output = ".odp" - }, - new - { - Input = ".fodp", - Output = ".pdf" - }, - new - { - Input = ".fodp", - Output = ".pptx" - }, - new - { - Input = ".fodp", - Output = ".otp" - }, - new - { - Input = ".fodp", - Output = ".potm" - }, - new - { - Input = ".fodp", - Output = ".potx" - }, - new - { - Input = ".fodp", - Output = ".ppsm" - }, - new - { - Input = ".fodp", - Output = ".ppsx" - }, - new - { - Input = ".fodp", - Output = ".pptm" - }, - new - { - Input = ".fods", - Output = ".csv" - }, - new - { - Input = ".fods", - Output = ".ods" - }, - new - { - Input = ".fods", - Output = ".pdf" - }, - new - { - Input = ".fods", - Output = ".xlsx" - }, - new - { - Input = ".fods", - Output = ".xlsm" - }, - new - { - Input = ".fods", - Output = ".xltm" - }, - new - { - Input = ".fods", - Output = ".xltx" - }, - new - { - Input = ".fods", - Output = ".ots" - }, - new - { - Input = ".fodt", - Output = ".docx" - }, - new - { - Input = ".fodt", - Output = ".odt" - }, - new - { - Input = ".fodt", - Output = ".docm" - }, - new - { - Input = ".fodt", - Output = ".pdf" - }, - new - { - Input = ".fodt", - Output = ".rtf" - }, - new - { - Input = ".fodt", - Output = ".txt" - }, - new - { - Input = ".fodt", - Output = ".dotm" - }, - new - { - Input = ".fodt", - Output = ".dotx" - }, - new - { - Input = ".fodt", - Output = ".epub" - }, - new - { - Input = ".fodt", - Output = ".fb2" - }, - new - { - Input = ".fodt", - Output = ".html" - }, - new - { - Input = ".fodt", - Output = ".ott" - }, - new - { - Input = ".htm", - Output = ".docm" - }, - new - { - Input = ".htm", - Output = ".docx" - }, - new - { - Input = ".htm", - Output = ".dotm" - }, - new - { - Input = ".htm", - Output = ".dotx" - }, - new - { - Input = ".htm", - Output = ".epub" - }, - new - { - Input = ".htm", - Output = ".fb2" - }, - new - { - Input = ".htm", - Output = ".html" - }, - new - { - Input = ".htm", - Output = ".odt" - }, - new - { - Input = ".htm", - Output = ".ott" - }, - new - { - Input = ".htm", - Output = ".pdf" - }, - new - { - Input = ".htm", - Output = ".rtf" - }, - new - { - Input = ".htm", - Output = ".txt" - }, - new - { - Input = ".html", - Output = ".docx" - }, - new - { - Input = ".html", - Output = ".odt" - }, - new - { - Input = ".html", - Output = ".pdf" - }, - new - { - Input = ".html", - Output = ".rtf" - }, - new - { - Input = ".html", - Output = ".txt" - }, - new - { - Input = ".html", - Output = ".docm" - }, - new - { - Input = ".html", - Output = ".dotm" - }, - new - { - Input = ".html", - Output = ".dotx" - }, - new - { - Input = ".html", - Output = ".epub" - }, - new - { - Input = ".html", - Output = ".fb2" - }, - new - { - Input = ".html", - Output = ".ott" - }, - new - { - Input = ".mht", - Output = ".docx" - }, - new - { - Input = ".mht", - Output = ".odt" - }, - new - { - Input = ".mht", - Output = ".pdf" - }, - new - { - Input = ".mht", - Output = ".rtf" - }, - new - { - Input = ".mht", - Output = ".txt" - }, - new - { - Input = ".mht", - Output = ".docm" - }, - new - { - Input = ".mht", - Output = ".dotm" - }, - new - { - Input = ".mht", - Output = ".dotx" - }, - new - { - Input = ".mht", - Output = ".epub" - }, - new - { - Input = ".mht", - Output = ".fb2" - }, - new - { - Input = ".mht", - Output = ".html" - }, - new - { - Input = ".mht", - Output = ".ott" - }, - new - { - Input = ".mhtml", - Output = ".docm" - }, - new - { - Input = ".mhtml", - Output = ".docx" - }, - new - { - Input = ".mhtml", - Output = ".dotm" - }, - new - { - Input = ".mhtml", - Output = ".dotx" - }, - new - { - Input = ".mhtml", - Output = ".epub" - }, - new - { - Input = ".mhtml", - Output = ".fb2" - }, - new - { - Input = ".mhtml", - Output = ".html" - }, - new - { - Input = ".mhtml", - Output = ".odt" - }, - new - { - Input = ".mhtml", - Output = ".ott" - }, - new - { - Input = ".mhtml", - Output = ".pdf" - }, - new - { - Input = ".mhtml", - Output = ".rtf" - }, - new - { - Input = ".mhtml", - Output = ".txt" - }, - new - { - Input = ".odp", - Output = ".pdf" - }, - new - { - Input = ".odp", - Output = ".pptx" - }, - new - { - Input = ".odp", - Output = ".otp" - }, - new - { - Input = ".odp", - Output = ".potm" - }, - new - { - Input = ".odp", - Output = ".potx" - }, - new - { - Input = ".odp", - Output = ".ppsm" - }, - new - { - Input = ".odp", - Output = ".ppsx" - }, - new - { - Input = ".odp", - Output = ".pptm" - }, - new - { - Input = ".otp", - Output = ".odp" - }, - new - { - Input = ".otp", - Output = ".pdf" - }, - new - { - Input = ".otp", - Output = ".potm" - }, - new - { - Input = ".otp", - Output = ".potx" - }, - new - { - Input = ".otp", - Output = ".pptm" - }, - new - { - Input = ".otp", - Output = ".ppsm" - }, - new - { - Input = ".otp", - Output = ".ppsx" - }, - new - { - Input = ".otp", - Output = ".pptx" - }, - new - { - Input = ".ods", - Output = ".csv" - }, - new - { - Input = ".ods", - Output = ".pdf" - }, - new - { - Input = ".ods", - Output = ".xlsx" - }, - new - { - Input = ".ods", - Output = ".ots" - }, - new - { - Input = ".ods", - Output = ".xlsm" - }, - new - { - Input = ".ods", - Output = ".xltm" - }, - new - { - Input = ".ods", - Output = ".xltx" - }, - new - { - Input = ".ots", - Output = ".csv" - }, - new - { - Input = ".ots", - Output = ".ods" - }, - new - { - Input = ".ots", - Output = ".pdf" - }, - new - { - Input = ".ots", - Output = ".xlsm" - }, - new - { - Input = ".ots", - Output = ".xltm" - }, - new - { - Input = ".ots", - Output = ".xltx" - }, - new - { - Input = ".ots", - Output = ".xlsx" - }, - new - { - Input = ".odt", - Output = ".docx" - }, - new - { - Input = ".odt", - Output = ".pdf" - }, - new - { - Input = ".odt", - Output = ".rtf" - }, - new - { - Input = ".odt", - Output = ".txt" - }, - new - { - Input = ".odt", - Output = ".docm" - }, - new - { - Input = ".odt", - Output = ".dotm" - }, - new - { - Input = ".odt", - Output = ".dotx" - }, - new - { - Input = ".odt", - Output = ".epub" - }, - new - { - Input = ".odt", - Output = ".fb2" - }, - new - { - Input = ".odt", - Output = ".html" - }, - new - { - Input = ".odt", - Output = ".ott" - }, - new - { - Input = ".ott", - Output = ".docx" - }, - new - { - Input = ".ott", - Output = ".odt" - }, - new - { - Input = ".ott", - Output = ".pdf" - }, - new - { - Input = ".ott", - Output = ".rtf" - }, - new - { - Input = ".ott", - Output = ".txt" - }, - new - { - Input = ".ott", - Output = ".docm" - }, - new - { - Input = ".ott", - Output = ".dotm" - }, - new - { - Input = ".ott", - Output = ".dotx" - }, - new - { - Input = ".ott", - Output = ".epub" - }, - new - { - Input = ".ott", - Output = ".fb2" - }, - new - { - Input = ".ott", - Output = ".html" - }, - new - { - Input = ".oxps", - Output = ".docm" - }, - new - { - Input = ".oxps", - Output = ".docx" - }, - new - { - Input = ".oxps", - Output = ".dotm" - }, - new - { - Input = ".oxps", - Output = ".dotx" - }, - new - { - Input = ".oxps", - Output = ".epub" - }, - new - { - Input = ".oxps", - Output = ".fb2" - }, - new - { - Input = ".oxps", - Output = ".html" - }, - new - { - Input = ".oxps", - Output = ".odt" - }, - new - { - Input = ".oxps", - Output = ".ott" - }, - new - { - Input = ".oxps", - Output = ".pdf" - }, - new - { - Input = ".oxps", - Output = ".rtf" - }, - new - { - Input = ".oxps", - Output = ".txt" - }, - new - { - Input = ".pdf", - Output = ".docm" - }, - new - { - Input = ".pdf", - Output = ".docx" - }, - new - { - Input = ".pdf", - Output = ".dotm" - }, - new - { - Input = ".pdf", - Output = ".dotx" - }, - new - { - Input = ".pdf", - Output = ".epub" - }, - new - { - Input = ".pdf", - Output = ".fb2" - }, - new - { - Input = ".pdf", - Output = ".html" - }, - new - { - Input = ".pdf", - Output = ".odt" - }, - new - { - Input = ".pdf", - Output = ".ott" - }, - new - { - Input = ".pdf", - Output = ".rtf" - }, - new - { - Input = ".pdf", - Output = ".txt" - }, - new - { - Input = ".pot", - Output = ".odp" - }, - new - { - Input = ".pot", - Output = ".pdf" - }, - new - { - Input = ".pot", - Output = ".pptx" - }, - new - { - Input = ".pot", - Output = ".otp" - }, - new - { - Input = ".pot", - Output = ".potm" - }, - new - { - Input = ".pot", - Output = ".potx" - }, - new - { - Input = ".pot", - Output = ".pptm" - }, - new - { - Input = ".pot", - Output = ".ppsm" - }, - new - { - Input = ".pot", - Output = ".ppsx" - }, - new - { - Input = ".potm", - Output = ".odp" - }, - new - { - Input = ".potm", - Output = ".pdf" - }, - new - { - Input = ".potm", - Output = ".pptx" - }, - new - { - Input = ".potm", - Output = ".otp" - }, - new - { - Input = ".potm", - Output = ".potx" - }, - new - { - Input = ".potm", - Output = ".pptm" - }, - new - { - Input = ".potm", - Output = ".ppsm" - }, - new - { - Input = ".potm", - Output = ".ppsx" - }, - new - { - Input = ".potx", - Output = ".odp" - }, - new - { - Input = ".potx", - Output = ".pdf" - }, - new - { - Input = ".potx", - Output = ".pptx" - }, - new - { - Input = ".potx", - Output = ".otp" - }, - new - { - Input = ".potx", - Output = ".potm" - }, - new - { - Input = ".potx", - Output = ".pptm" - }, - new - { - Input = ".potx", - Output = ".ppsm" - }, - new - { - Input = ".potx", - Output = ".ppsx" - }, - new - { - Input = ".pps", - Output = ".odp" - }, - new - { - Input = ".pps", - Output = ".pdf" - }, - new - { - Input = ".pps", - Output = ".pptx" - }, - new - { - Input = ".pps", - Output = ".otp" - }, - new - { - Input = ".pps", - Output = ".potm" - }, - new - { - Input = ".pps", - Output = ".potx" - }, - new - { - Input = ".pps", - Output = ".pptm" - }, - new - { - Input = ".pps", - Output = ".ppsm" - }, - new - { - Input = ".pps", - Output = ".ppsx" - }, - new - { - Input = ".ppsm", - Output = ".odp" - }, - new - { - Input = ".ppsm", - Output = ".pdf" - }, - new - { - Input = ".ppsm", - Output = ".pptx" - }, - new - { - Input = ".ppsm", - Output = ".otp" - }, - new - { - Input = ".ppsm", - Output = ".potm" - }, - new - { - Input = ".ppsm", - Output = ".potx" - }, - new - { - Input = ".ppsm", - Output = ".pptm" - }, - new - { - Input = ".ppsm", - Output = ".ppsx" - }, - new - { - Input = ".ppsx", - Output = ".odp" - }, - new - { - Input = ".ppsx", - Output = ".pdf" - }, - new - { - Input = ".ppsx", - Output = ".pptx" - }, - new - { - Input = ".ppsx", - Output = ".otp" - }, - new - { - Input = ".ppsx", - Output = ".potm" - }, - new - { - Input = ".ppsx", - Output = ".potx" - }, - new - { - Input = ".ppsx", - Output = ".ppsm" - }, - new - { - Input = ".ppsx", - Output = ".pptm" - }, - new - { - Input = ".ppt", - Output = ".odp" - }, - new - { - Input = ".ppt", - Output = ".pdf" - }, - new - { - Input = ".ppt", - Output = ".pptx" - }, - new - { - Input = ".ppt", - Output = ".otp" - }, - new - { - Input = ".ppt", - Output = ".potm" - }, - new - { - Input = ".ppt", - Output = ".potx" - }, - new - { - Input = ".ppt", - Output = ".pptm" - }, - new - { - Input = ".ppt", - Output = ".ppsm" - }, - new - { - Input = ".ppt", - Output = ".ppsx" - }, - new - { - Input = ".pptm", - Output = ".odp" - }, - new - { - Input = ".pptm", - Output = ".pdf" - }, - new - { - Input = ".pptm", - Output = ".pptx" - }, - new - { - Input = ".pptm", - Output = ".otp" - }, - new - { - Input = ".pptm", - Output = ".potm" - }, - new - { - Input = ".pptm", - Output = ".potx" - }, - new - { - Input = ".pptm", - Output = ".ppsm" - }, - new - { - Input = ".pptm", - Output = ".ppsx" - }, - new - { - Input = ".pptt", - Output = ".pptx" - }, - new - { - Input = ".pptx", - Output = ".odp" - }, - new - { - Input = ".pptx", - Output = ".pdf" - }, - new - { - Input = ".pptx", - Output = ".otp" - }, - new - { - Input = ".pptx", - Output = ".potm" - }, - new - { - Input = ".pptx", - Output = ".potx" - }, - new - { - Input = ".pptx", - Output = ".pptm" - }, - new - { - Input = ".pptx", - Output = ".ppsm" - }, - new - { - Input = ".pptx", - Output = ".ppsx" - }, - new - { - Input = ".rtf", - Output = ".odt" - }, - new - { - Input = ".rtf", - Output = ".pdf" - }, - new - { - Input = ".rtf", - Output = ".docx" - }, - new - { - Input = ".rtf", - Output = ".txt" - }, - new - { - Input = ".rtf", - Output = ".docm" - }, - new - { - Input = ".rtf", - Output = ".dotm" - }, - new - { - Input = ".rtf", - Output = ".dotx" - }, - new - { - Input = ".rtf", - Output = ".epub" - }, - new - { - Input = ".rtf", - Output = ".fb2" - }, - new - { - Input = ".rtf", - Output = ".html" - }, - new - { - Input = ".rtf", - Output = ".ott" - }, - new - { - Input = ".stw", - Output = ".docm" - }, - new - { - Input = ".stw", - Output = ".docx" - }, - new - { - Input = ".stw", - Output = ".dotm" - }, - new - { - Input = ".stw", - Output = ".dotx" - }, - new - { - Input = ".stw", - Output = ".epub" - }, - new - { - Input = ".stw", - Output = ".fb2" - }, - new - { - Input = ".stw", - Output = ".html" - }, - new - { - Input = ".stw", - Output = ".odt" - }, - new - { - Input = ".stw", - Output = ".ott" - }, - new - { - Input = ".stw", - Output = ".pdf" - }, - new - { - Input = ".stw", - Output = ".rtf" - }, - new - { - Input = ".stw", - Output = ".txt" - }, - new - { - Input = ".sxc", - Output = ".csv" - }, - new - { - Input = ".sxc", - Output = ".ods" - }, - new - { - Input = ".sxc", - Output = ".ots" - }, - new - { - Input = ".sxc", - Output = ".pdf" - }, - new - { - Input = ".sxc", - Output = ".xlsm" - }, - new - { - Input = ".sxc", - Output = ".xlsx" - }, - new - { - Input = ".sxc", - Output = ".xltm" - }, - new - { - Input = ".sxc", - Output = ".xltx" - }, - new - { - Input = ".sxi", - Output = ".odp" - }, - new - { - Input = ".sxi", - Output = ".otp" - }, - new - { - Input = ".sxi", - Output = ".pdf" - }, - new - { - Input = ".sxi", - Output = ".potm" - }, - new - { - Input = ".sxi", - Output = ".potx" - }, - new - { - Input = ".sxi", - Output = ".ppsm" - }, - new - { - Input = ".sxi", - Output = ".ppsx" - }, - new - { - Input = ".sxi", - Output = ".pptm" - }, - new - { - Input = ".sxi", - Output = ".pptx" - }, - new - { - Input = ".sxw", - Output = ".docm" - }, - new - { - Input = ".sxw", - Output = ".docx" - }, - new - { - Input = ".sxw", - Output = ".dotm" - }, - new - { - Input = ".sxw", - Output = ".dotx" - }, - new - { - Input = ".sxw", - Output = ".epub" - }, - new - { - Input = ".sxw", - Output = ".fb2" - }, - new - { - Input = ".sxw", - Output = ".html" - }, - new - { - Input = ".sxw", - Output = ".odt" - }, - new - { - Input = ".sxw", - Output = ".ott" - }, - new - { - Input = ".sxw", - Output = ".pdf" - }, - new - { - Input = ".sxw", - Output = ".rtf" - }, - new - { - Input = ".sxw", - Output = ".txt" - }, - new - { - Input = ".txt", - Output = ".pdf" - }, - new - { - Input = ".txt", - Output = ".docx" - }, - new - { - Input = ".txt", - Output = ".odt" - }, - new - { - Input = ".txt", - Output = ".rtf" - }, - new - { - Input = ".txt", - Output = ".docm" - }, - new - { - Input = ".txt", - Output = ".dotm" - }, - new - { - Input = ".txt", - Output = ".dotx" - }, - new - { - Input = ".txt", - Output = ".epub" - }, - new - { - Input = ".txt", - Output = ".fb2" - }, - new - { - Input = ".txt", - Output = ".html" - }, - new - { - Input = ".txt", - Output = ".ott" - }, - new - { - Input = ".wps", - Output = ".docm" - }, - new - { - Input = ".wps", - Output = ".docx" - }, - new - { - Input = ".wps", - Output = ".dotm" - }, - new - { - Input = ".wps", - Output = ".dotx" - }, - new - { - Input = ".wps", - Output = ".epub" - }, - new - { - Input = ".wps", - Output = ".fb2" - }, - new - { - Input = ".wps", - Output = ".html" - }, - new - { - Input = ".wps", - Output = ".odt" - }, - new - { - Input = ".wps", - Output = ".ott" - }, - new - { - Input = ".wps", - Output = ".pdf" - }, - new - { - Input = ".wps", - Output = ".rtf" - }, - new - { - Input = ".wps", - Output = ".txt" - }, - new - { - Input = ".wpt", - Output = ".docm" - }, - new - { - Input = ".wpt", - Output = ".docx" - }, - new - { - Input = ".wpt", - Output = ".dotm" - }, - new - { - Input = ".wpt", - Output = ".dotx" - }, - new - { - Input = ".wpt", - Output = ".epub" - }, - new - { - Input = ".wpt", - Output = ".fb2" - }, - new - { - Input = ".wpt", - Output = ".html" - }, - new - { - Input = ".wpt", - Output = ".odt" - }, - new - { - Input = ".wpt", - Output = ".ott" - }, - new - { - Input = ".wpt", - Output = ".pdf" - }, - new - { - Input = ".wpt", - Output = ".rtf" - }, - new - { - Input = ".wpt", - Output = ".txt" - }, - new - { - Input = ".xls", - Output = ".csv" - }, - new - { - Input = ".xls", - Output = ".ods" - }, - new - { - Input = ".xls", - Output = ".pdf" - }, - new - { - Input = ".xls", - Output = ".xlsx" - }, - new - { - Input = ".xls", - Output = ".ots" - }, - new - { - Input = ".xls", - Output = ".xlsm" - }, - new - { - Input = ".xls", - Output = ".xltm" - }, - new - { - Input = ".xls", - Output = ".xltx" - }, - new - { - Input = ".xlsb", - Output = ".csv" - }, - new - { - Input = ".xlsb", - Output = ".ods" - }, - new - { - Input = ".xlsb", - Output = ".ots" - }, - new - { - Input = ".xlsb", - Output = ".pdf" - }, - new - { - Input = ".xlsb", - Output = ".xlsm" - }, - new - { - Input = ".xlsb", - Output = ".xlsx" - }, - new - { - Input = ".xlsb", - Output = ".xltm" - }, - new - { - Input = ".xlsb", - Output = ".xltx" - }, - new - { - Input = ".xlsm", - Output = ".csv" - }, - new - { - Input = ".xlsm", - Output = ".xltm" - }, - new - { - Input = ".xlsm", - Output = ".xltx" - }, - new - { - Input = ".xlsm", - Output = ".ots" - }, - new - { - Input = ".xlsm", - Output = ".pdf" - }, - new - { - Input = ".xlsm", - Output = ".ods" - }, - new - { - Input = ".xlsm", - Output = ".xlsx" - }, - new - { - Input = ".xlsx", - Output = ".csv" - }, - new - { - Input = ".xlsx", - Output = ".ods" - }, - new - { - Input = ".xlsx", - Output = ".ots" - }, - new - { - Input = ".xlsx", - Output = ".pdf" - }, - new - { - Input = ".xlsx", - Output = ".xlsm" - }, - new - { - Input = ".xlsx", - Output = ".xltm" - }, - new - { - Input = ".xlsx", - Output = ".xltx" - }, - new - { - Input = ".xlst", - Output = ".xlsx" - }, - new - { - Input = ".xlt", - Output = ".csv" - }, - new - { - Input = ".xlt", - Output = ".ods" - }, - new - { - Input = ".xlt", - Output = ".pdf" - }, - new - { - Input = ".xlt", - Output = ".xlsx" - }, - new - { - Input = ".xlt", - Output = ".ots" - }, - new - { - Input = ".xlt", - Output = ".xlsm" - }, - new - { - Input = ".xlt", - Output = ".xltm" - }, - new - { - Input = ".xlt", - Output = ".xltx" - }, - new - { - Input = ".xltm", - Output = ".csv" - }, - new - { - Input = ".xltm", - Output = ".ods" - }, - new - { - Input = ".xltm", - Output = ".pdf" - }, - new - { - Input = ".xltm", - Output = ".ots" - }, - new - { - Input = ".xltm", - Output = ".xlsm" - }, - new - { - Input = ".xltm", - Output = ".xltx" - }, - new - { - Input = ".xltm", - Output = ".xlsx" - }, - new - { - Input = ".xltx", - Output = ".pdf" - }, - new - { - Input = ".xltx", - Output = ".csv" - }, - new - { - Input = ".xltx", - Output = ".ods" - }, - new - { - Input = ".xltx", - Output = ".ots" - }, - new - { - Input = ".xltx", - Output = ".xlsm" - }, - new - { - Input = ".xltx", - Output = ".xltm" - }, - new - { - Input = ".xltx", - Output = ".xlsx" - }, - new - { - Input = ".xml", - Output = ".docm" - }, - new - { - Input = ".xml", - Output = ".docx" - }, - new - { - Input = ".xml", - Output = ".dotm" - }, - new - { - Input = ".xml", - Output = ".dotx" - }, - new - { - Input = ".xml", - Output = ".epub" - }, - new - { - Input = ".xml", - Output = ".fb2" - }, - new - { - Input = ".xml", - Output = ".html" - }, - new - { - Input = ".xml", - Output = ".odt" - }, - new - { - Input = ".xml", - Output = ".ott" - }, - new - { - Input = ".xml", - Output = ".pdf" - }, - new - { - Input = ".xml", - Output = ".rtf" - }, - new - { - Input = ".xml", - Output = ".txt" - }, - new - { - Input = ".xps", - Output = ".docm" - }, - new - { - Input = ".xps", - Output = ".docx" - }, - new - { - Input = ".xps", - Output = ".dotm" - }, - new - { - Input = ".xps", - Output = ".dotx" - }, - new - { - Input = ".xps", - Output = ".epub" - }, - new - { - Input = ".xps", - Output = ".fb2" - }, - new - { - Input = ".xps", - Output = ".html" - }, - new - { - Input = ".xps", - Output = ".odt" - }, - new - { - Input = ".xps", - Output = ".ott" - }, - new - { - Input = ".xps", - Output = ".pdf" - }, - new - { - Input = ".xps", - Output = ".rtf" - }, - new - { - Input = ".xps", - Output = ".txt" - }); - }); - - 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 with time zone") - .HasColumnName("last_sign"); - - b.Property("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.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.HasIndex("TenantId"); - - b.ToTable("notify_queue", "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"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.TelegramUser", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("PortalUserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("portal_user_id"); - - b.Property("TelegramUserId") - .HasColumnType("bigint") - .HasColumnName("telegram_user_id"); - - b.HasKey("TenantId", "PortalUserId") - .HasName("telegram_users_pkey"); - - b.HasIndex("TelegramUserId") - .HasDatabaseName("tgId"); - - b.ToTable("telegram_users", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.TenantIpRestrictions", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("ForAdmin") - .HasColumnType("TINYINT(1)") - .HasColumnName("for_admin"); - - b.Property("Ip") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("ip"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.HasKey("Id"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_tenants_iprestrictions"); - - b.ToTable("tenants_iprestrictions", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Subscription", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Source") - .HasMaxLength(38) - .HasColumnType("character varying(38)") - .HasColumnName("source"); - - b.Property("Action") - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("action"); - - b.Property("Recipient") - .HasMaxLength(38) - .HasColumnType("character varying(38)") - .HasColumnName("recipient"); - - b.Property("Object") - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("object"); - - b.Property("Unsubscribed") - .HasColumnType("boolean") - .HasColumnName("unsubscribed"); - - b.HasKey("TenantId", "Source", "Action", "Recipient", "Object") - .HasName("core_subscription_pkey"); - - b.ToTable("core_subscription", "onlyoffice"); - - b.HasData( - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "send_whats_new", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "rooms_activity", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "6504977c-75af-4691-9099-084d3ddeea04", - Action = "new feed", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "6a598c74-91ae-437d-a5f4-ad339bd11bb2", - Action = "new post", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "853b6eb9-73ee-438d-9b09-8ffeedf36234", - Action = "new topic in forum", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "9d51954f-db9b-4aed-94e3-ed70b914e101", - Action = "new photo uploaded", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "28b10049-dd20-4f54-b986-873bc14ccfc7", - Action = "new bookmark created", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "742cf945-cbbc-4a57-82d6-1600a12cf8ca", - Action = "new wiki page", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "37620ae5-c40b-45ce-855a-39dd7d76a1fa", - Action = "BirthdayReminder", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", - Action = "sharedocument", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", - Action = "sharefolder", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "40650da3-f7c1-424c-8c89-b9c115472e08", - Action = "calendar_sharing", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "40650da3-f7c1-424c-8c89-b9c115472e08", - Action = "event_alert", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "admin_notify", - Recipient = "cd84e66b-b803-40fc-99f9-b2969a54a1de", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "SetAccess", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "ResponsibleForTask", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "AddRelationshipEvent", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "ExportCompleted", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "CreateNewContact", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "ResponsibleForOpportunity", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "periodic_notify", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("id"); - - b.Property("ActivationStatus") - .HasColumnType("integer") - .HasColumnName("activation_status"); - - b.Property("BirthDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("bithdate"); - - b.Property("Contacts") - .ValueGeneratedOnAdd() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .HasColumnName("contacts") - .HasDefaultValueSql("NULL"); - - b.Property("CreateDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("create_on") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("CultureName") - .ValueGeneratedOnAdd() - .HasMaxLength(20) - .HasColumnType("character varying(20)") - .HasColumnName("culture") - .HasDefaultValueSql("NULL"); - - b.Property("Email") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("email") - .HasDefaultValueSql("NULL"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("firstname"); - - b.Property("LastModified") - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("lastname"); - - b.Property("Location") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("location") - .HasDefaultValueSql("NULL"); - - b.Property("MobilePhone") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("phone") - .HasDefaultValueSql("NULL"); - - b.Property("MobilePhoneActivation") - .HasColumnType("integer") - .HasColumnName("phone_activation"); - - b.Property("Notes") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("notes") - .HasDefaultValueSql("NULL"); - - b.Property("Removed") - .HasColumnType("boolean") - .HasColumnName("removed"); - - b.Property("Sex") - .HasColumnType("boolean") - .HasColumnName("sex"); - - b.Property("Sid") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("sid") - .HasDefaultValueSql("NULL"); - - b.Property("SsoNameId") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("sso_name_id") - .HasDefaultValueSql("NULL"); - - b.Property("SsoSessionId") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("sso_session_id") - .HasDefaultValueSql("NULL"); - - b.Property("Status") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("status") - .HasDefaultValueSql("1"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("TerminatedDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("terminateddate"); - - b.Property("Title") - .ValueGeneratedOnAdd() - .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("title") - .HasDefaultValueSql("NULL"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("username"); - - b.Property("WorkFromDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("workfromdate"); - - b.HasKey("Id"); - - b.HasIndex("Email") - .HasDatabaseName("email"); - - b.HasIndex("LastModified") - .HasDatabaseName("last_modified_core_user"); - - b.HasIndex("TenantId"); - - b.HasIndex("UserName", "TenantId") - .HasDatabaseName("username"); - - b.ToTable("core_user", "onlyoffice"); - - b.HasData( - new - { - Id = new Guid("66faa6e4-f133-11ea-b126-00ffeec8b4ef"), - ActivationStatus = 0, - CreateDate = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Email = "", - FirstName = "Administrator", - LastModified = new DateTime(2021, 3, 9, 9, 52, 55, 765, DateTimeKind.Utc).AddTicks(1420), - LastName = "", - MobilePhoneActivation = 0, - Removed = false, - Status = 1, - TenantId = 1, - UserName = "administrator", - WorkFromDate = new DateTime(2021, 3, 9, 9, 52, 55, 764, DateTimeKind.Utc).AddTicks(9157) - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserDav", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("UserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id"); - - b.HasKey("TenantId", "UserId") - .HasName("core_userdav_pkey"); - - b.ToTable("core_userdav", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserGroup", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Userid") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("userid"); - - b.Property("UserGroupId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("groupid"); - - b.Property("RefType") - .HasColumnType("integer") - .HasColumnName("ref_type"); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("Removed") - .HasColumnType("boolean") - .HasColumnName("removed"); - - b.HasKey("TenantId", "Userid", "UserGroupId", "RefType") - .HasName("core_usergroup_pkey"); - - b.HasIndex("LastModified") - .HasDatabaseName("last_modified_core_usergroup"); - - b.ToTable("core_usergroup", "onlyoffice"); - - b.HasData( - new - { - TenantId = 1, - Userid = new Guid("66faa6e4-f133-11ea-b126-00ffeec8b4ef"), - UserGroupId = new Guid("cd84e66b-b803-40fc-99f9-b2969a54a1de"), - RefType = 0, - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Removed = false - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserPhoto", b => - { - b.Property("UserId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("userid"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("bytea") - .HasColumnName("photo"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.HasKey("UserId") - .HasName("core_userphoto_pkey"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_core_userphoto"); - - b.ToTable("core_userphoto", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserSecurity", b => - { - b.Property("UserId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("userid"); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("PwdHash") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("pwdhash") - .HasDefaultValueSql("NULL"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.HasKey("UserId") - .HasName("core_usersecurity_pkey"); - - b.HasIndex("PwdHash") - .HasDatabaseName("pwdhash"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_core_usersecurity"); - - b.ToTable("core_usersecurity", "onlyoffice"); - - b.HasData( - new - { - UserId = new Guid("66faa6e4-f133-11ea-b126-00ffeec8b4ef"), - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - PwdHash = "jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg=", - TenantId = 1 - }); - }); - - modelBuilder.Entity("ASC.Core.Common.Hosting.InstanceRegistration", b => - { - b.Property("InstanceRegistrationId") - .HasColumnType("varchar(255)") - .HasColumnName("instance_registration_id") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("IsActive") - .HasColumnType("tinyint(4)") - .HasColumnName("is_active"); - - b.Property("LastUpdated") - .HasColumnType("datetime") - .HasColumnName("last_updated"); - - b.Property("WorkerTypeName") - .IsRequired() - .HasColumnType("varchar(255)") - .HasColumnName("worker_type_name") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.HasKey("InstanceRegistrationId") - .HasName("PRIMARY"); - - b.HasIndex("WorkerTypeName") - .HasDatabaseName("worker_type_name"); - - b.ToTable("hosting_instance_registration", (string)null); - }); - - modelBuilder.Entity("ASC.Data.Backup.EF.Model.BackupRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("char") - .HasColumnName("id") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("CreatedOn") - .HasColumnType("datetime") - .HasColumnName("created_on"); - - b.Property("ExpiresOn") - .ValueGeneratedOnAdd() - .HasColumnType("datetime") - .HasColumnName("expires_on") - .HasDefaultValueSql("'0001-01-01 00:00:00'"); - - b.Property("Hash") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("hash") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("IsScheduled") - .HasMaxLength(10) - .HasColumnType("int") - .HasColumnName("is_scheduled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("name") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("Removed") - .HasMaxLength(10) - .HasColumnType("int") - .HasColumnName("removed"); - - b.Property("StorageBasePath") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("storage_base_path") - .HasDefaultValueSql("NULL") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("StorageParams") - .ValueGeneratedOnAdd() - .HasColumnType("text") - .HasColumnName("storage_params") - .HasDefaultValueSql("NULL") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("StoragePath") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("storage_path") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("StorageType") - .HasMaxLength(10) - .HasColumnType("int") - .HasColumnName("storage_type"); - - b.Property("TenantId") - .HasMaxLength(10) - .HasColumnType("int") - .HasColumnName("tenant_id"); - - b.HasKey("Id") - .HasName("PRIMARY"); - - b.HasIndex("ExpiresOn") - .HasDatabaseName("expires_on"); - - b.HasIndex("IsScheduled") - .HasDatabaseName("is_scheduled"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_id"); - - b.ToTable("backup_backup", (string)null); - }); - - modelBuilder.Entity("ASC.Data.Backup.EF.Model.BackupSchedule", b => - { - b.Property("TenantId") - .HasMaxLength(10) - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("BackupsStored") - .HasMaxLength(10) - .HasColumnType("integer") - .HasColumnName("backups_stored"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("cron") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("LastBackupTime") - .HasColumnType("datetime") - .HasColumnName("last_backup_time"); - - b.Property("StorageBasePath") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("storage_base_path") - .HasDefaultValueSql("NULL") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("StorageParams") - .ValueGeneratedOnAdd() - .HasColumnType("text") - .HasColumnName("storage_params") - .HasDefaultValueSql("NULL") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("StorageType") - .HasMaxLength(10) - .HasColumnType("integer") - .HasColumnName("storage_type"); - - b.HasKey("TenantId") - .HasName("PRIMARY"); - - b.ToTable("backup_schedule", (string)null); - }); - - modelBuilder.Entity("ASC.EventBus.Extensions.Logger.IntegrationEventLogEntry", b => - { - b.Property("EventId") - .ValueGeneratedOnAdd() - .HasColumnType("char(38)") - .HasColumnName("event_id") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text") - .HasColumnName("content") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("CreateBy") - .HasColumnType("char(38)") - .HasColumnName("create_by") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("CreateOn") - .HasColumnType("datetime") - .HasColumnName("create_on"); - - b.Property("EventTypeName") - .IsRequired() - .HasColumnType("varchar(255)") - .HasColumnName("event_type_name") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("State") - .HasColumnType("int(11)") - .HasColumnName("state"); - - b.Property("TenantId") - .HasColumnType("int(11)") - .HasColumnName("tenant_id"); - - b.Property("TimesSent") - .HasColumnType("int(11)") - .HasColumnName("times_sent"); - - b.Property("TransactionId") - .HasColumnType("text"); - - b.HasKey("EventId") - .HasName("PRIMARY"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_id"); - - b.ToTable("event_bus_integration_event_log", (string)null); - - b.HasAnnotation("MySql:CharSet", "utf8"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedAggregate", b => - { - b.Property("Id") - .HasMaxLength(88) - .HasColumnType("character varying(88)") - .HasColumnName("id"); - - b.Property("AggregateDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("aggregated_date"); - - b.Property("Author") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("author") - .IsFixedLength(); - - b.Property("ContextId") - .HasColumnType("text") - .HasColumnName("context_id"); - - b.Property("CreatedDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("created_date"); - - b.Property("GroupId") - .ValueGeneratedOnAdd() - .HasMaxLength(70) - .HasColumnType("character varying(70)") - .HasColumnName("group_id") - .HasDefaultValueSql("NULL"); - - b.Property("Json") - .IsRequired() - .HasColumnType("text") - .HasColumnName("json"); - - b.Property("Keywords") - .HasColumnType("text") - .HasColumnName("keywords"); - - b.Property("ModifiedBy") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("modified_by") - .IsFixedLength(); - - b.Property("ModifiedDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("modified_date"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("module"); - - b.Property("Product") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("product"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "AggregateDate") - .HasDatabaseName("aggregated_date"); - - b.HasIndex("TenantId", "ModifiedDate") - .HasDatabaseName("modified_date"); - - b.HasIndex("TenantId", "Product") - .HasDatabaseName("product"); - - b.ToTable("feed_aggregate", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedLast", b => - { - b.Property("LastKey") - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("last_key"); - - b.Property("LastDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("last_date"); - - b.HasKey("LastKey") - .HasName("feed_last_pkey"); - - b.ToTable("feed_last", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedReaded", b => - { - b.Property("UserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Module") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("module"); - - b.Property("TimeStamp") - .HasColumnType("timestamp with time zone") - .HasColumnName("timestamp"); - - b.HasKey("UserId", "TenantId", "Module") - .HasName("feed_readed_pkey"); - - b.HasIndex("TenantId"); - - b.ToTable("feed_readed", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedUsers", b => - { - b.Property("FeedId") - .HasMaxLength(88) - .HasColumnType("character varying(88)") - .HasColumnName("feed_id"); - - b.Property("UserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id") - .IsFixedLength(); - - b.HasKey("FeedId", "UserId") - .HasName("feed_users_pkey"); - - b.HasIndex("UserId") - .HasDatabaseName("user_id_feed_users"); - - b.ToTable("feed_users", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFile", b => - { - b.Property("Id") - .HasColumnType("integer") - .HasColumnName("id"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Version") - .HasColumnType("integer") - .HasColumnName("version"); - - b.Property("Category") - .HasColumnType("integer") - .HasColumnName("category"); - - b.Property("Changes") - .HasColumnType("text") - .HasColumnName("changes"); - - b.Property("Comment") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("comment") - .HasDefaultValueSql("NULL::character varying"); - - b.Property("ContentLength") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasColumnName("content_length") - .HasDefaultValueSql("'0'::bigint"); - - b.Property("ConvertedType") - .ValueGeneratedOnAdd() - .HasMaxLength(10) - .HasColumnType("character varying(10)") - .HasColumnName("converted_type") - .HasDefaultValueSql("NULL::character varying"); - - b.Property("CreateBy") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("create_by") - .IsFixedLength(); - - b.Property("CreateOn") - .HasColumnType("timestamp with time zone") - .HasColumnName("create_on"); - - b.Property("CurrentVersion") - .HasColumnType("boolean") - .HasColumnName("current_version"); - - b.Property("Encrypted") - .HasColumnType("boolean") - .HasColumnName("encrypted"); - - b.Property("FileStatus") - .HasColumnType("integer") - .HasColumnName("file_status"); - - b.Property("Forcesave") - .HasColumnType("integer") - .HasColumnName("forcesave"); - - b.Property("ModifiedBy") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("modified_by") - .IsFixedLength(); - - b.Property("ModifiedOn") - .HasColumnType("timestamp with time zone") - .HasColumnName("modified_on"); - - b.Property("ParentId") - .HasColumnType("integer") - .HasColumnName("folder_id"); - - b.Property("ThumbnailStatus") - .HasColumnType("integer") - .HasColumnName("thumb"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("character varying(400)") - .HasColumnName("title"); - - b.Property("VersionGroup") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("version_group") - .HasDefaultValueSql("1"); - - b.HasKey("Id", "TenantId", "Version") - .HasName("files_file_pkey"); - - b.HasIndex("Id") - .HasDatabaseName("id"); - - b.HasIndex("ModifiedOn") - .HasDatabaseName("modified_on_files_file"); - - b.HasIndex("ParentId") - .HasDatabaseName("folder_id"); - - b.HasIndex("TenantId"); - - b.ToTable("files_file", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesBunchObjects", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("RightNode") - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("right_node"); - - b.Property("LeftNode") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("left_node"); - - b.HasKey("TenantId", "RightNode") - .HasName("files_bunch_objects_pkey"); - - b.HasIndex("LeftNode") - .HasDatabaseName("left_node"); - - b.ToTable("files_bunch_objects", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesLink", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("SourceId") - .HasMaxLength(32) - .HasColumnType("character varying(32)") - .HasColumnName("source_id"); - - b.Property("LinkedId") - .HasMaxLength(32) - .HasColumnType("character varying(32)") - .HasColumnName("linked_id"); - - b.Property("LinkedFor") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("linked_for") - .HasDefaultValueSql("NULL::bpchar") - .IsFixedLength(); - - b.HasKey("TenantId", "SourceId", "LinkedId") - .HasName("files_link_pkey"); - - b.HasIndex("TenantId", "SourceId", "LinkedId", "LinkedFor") - .HasDatabaseName("linked_for_files_link"); - - b.ToTable("files_link", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesProperties", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("EntryId") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("entry_id"); - - b.Property("Data") - .IsRequired() - .HasColumnType("text") - .HasColumnName("data"); - - b.HasKey("TenantId", "EntryId") - .HasName("files_properties_pkey"); - - b.ToTable("files_properties", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesSecurity", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("EntryId") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("entry_id"); - - b.Property("EntryType") - .HasColumnType("integer") - .HasColumnName("entry_type"); - - b.Property("Subject") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("subject") - .IsFixedLength(); - - b.Property("FileShareOptions") - .HasColumnType("text") - .HasColumnName("options"); - - b.Property("Owner") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("owner") - .IsFixedLength(); - - b.Property("Share") - .HasColumnType("integer") - .HasColumnName("security"); - - b.Property("SubjectType") - .HasColumnType("integer") - .HasColumnName("subject_type"); - - b.Property("TimeStamp") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("timestamp") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.HasKey("TenantId", "EntryId", "EntryType", "Subject") - .HasName("files_security_pkey"); - - b.HasIndex("Owner") - .HasDatabaseName("owner"); - - b.HasIndex("EntryId", "TenantId", "EntryType", "Owner") - .HasDatabaseName("tenant_id_files_security"); - - b.ToTable("files_security", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("name"); - - b.Property("Owner") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("owner"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Type") - .HasColumnType("integer") - .HasColumnName("flag"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Owner", "Name", "Type") - .HasDatabaseName("name_files_tag"); - - b.ToTable("files_tag", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTagLink", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("TagId") - .HasColumnType("integer") - .HasColumnName("tag_id"); - - b.Property("EntryType") - .HasColumnType("integer") - .HasColumnName("entry_type"); - - b.Property("EntryId") - .HasMaxLength(32) - .HasColumnType("character varying(32)") - .HasColumnName("entry_id"); - - b.Property("Count") - .HasColumnType("integer") - .HasColumnName("tag_count"); - - b.Property("CreateBy") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("create_by") - .HasDefaultValueSql("NULL::bpchar") - .IsFixedLength(); - - b.Property("CreateOn") - .HasColumnType("timestamp with time zone") - .HasColumnName("create_on"); - - b.HasKey("TenantId", "TagId", "EntryType", "EntryId") - .HasName("files_tag_link_pkey"); - - b.HasIndex("CreateOn") - .HasDatabaseName("create_on_files_tag_link"); - - b.HasIndex("TenantId", "EntryType", "EntryId") - .HasDatabaseName("entry_id"); - - b.ToTable("files_tag_link", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("CreateOn") - .HasColumnType("timestamp with time zone") - .HasColumnName("create_on"); - - b.Property("FolderId") - .HasColumnType("text") - .HasColumnName("folder_id"); - - b.Property("FolderType") - .HasColumnType("integer") - .HasColumnName("folder_type"); - - b.Property("HasLogo") - .HasColumnType("boolean") - .HasColumnName("has_logo"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("character varying(100)") - .HasColumnName("password"); - - b.Property("Private") - .HasColumnType("boolean") - .HasColumnName("private"); - - b.Property("Provider") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("provider") - .HasDefaultValueSql("'0'::character varying"); - - b.Property("RoomType") - .HasColumnType("integer") - .HasColumnName("room_type"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("character varying(400)") - .HasColumnName("customer_title"); - - b.Property("Token") - .HasColumnType("text") - .HasColumnName("token"); - - b.Property("Url") - .HasColumnType("text") - .HasColumnName("url"); - - b.Property("UserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("character varying(100)") - .HasColumnName("user_name"); - - b.HasKey("Id"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_id"); - - b.ToTable("files_thirdparty_account", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyApp", b => - { - b.Property("UserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id"); - - b.Property("App") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("app"); - - b.Property("ModifiedOn") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("modified_on") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Token") - .HasColumnType("text") - .HasColumnName("token"); - - b.HasKey("UserId", "App") - .HasName("files_thirdparty_app_pkey"); - - b.HasIndex("TenantId"); - - b.ToTable("files_thirdparty_app", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyIdMapping", b => - { - b.Property("HashId") - .HasMaxLength(32) - .HasColumnType("character(32)") - .HasColumnName("hash_id") - .IsFixedLength(); - - b.Property("Id") - .IsRequired() - .HasColumnType("text") - .HasColumnName("id"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.HasKey("HashId") - .HasName("files_thirdparty_id_mapping_pkey"); - - b.HasIndex("TenantId", "HashId") - .HasDatabaseName("index_1"); - - b.ToTable("files_thirdparty_id_mapping", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFolder", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("CreateBy") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("create_by") - .IsFixedLength(); - - b.Property("CreateOn") - .HasColumnType("timestamp with time zone") - .HasColumnName("create_on"); - - b.Property("FilesCount") - .HasColumnType("integer") - .HasColumnName("filesCount"); - - b.Property("FolderType") - .HasColumnType("integer") - .HasColumnName("folder_type"); - - b.Property("FoldersCount") - .HasColumnType("integer") - .HasColumnName("foldersCount"); - - b.Property("HasLogo") - .HasColumnType("boolean") - .HasColumnName("has_logo"); - - b.Property("ModifiedBy") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("modified_by") - .IsFixedLength(); - - b.Property("ModifiedOn") - .HasColumnType("timestamp with time zone") - .HasColumnName("modified_on"); - - b.Property("ParentId") - .HasColumnType("integer") - .HasColumnName("parent_id"); - - b.Property("Private") - .HasColumnType("boolean") - .HasColumnName("private"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("character varying(400)") - .HasColumnName("title"); - - b.HasKey("Id"); - - b.HasIndex("ModifiedOn") - .HasDatabaseName("modified_on_files_folder"); - - b.HasIndex("TenantId", "ParentId") - .HasDatabaseName("parent_id"); - - b.ToTable("files_folder", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFolderTree", b => - { - b.Property("ParentId") - .HasColumnType("integer") - .HasColumnName("parent_id"); - - b.Property("FolderId") - .HasColumnType("integer") - .HasColumnName("folder_id"); - - b.Property("Level") - .HasColumnType("integer") - .HasColumnName("level"); - - b.HasKey("ParentId", "FolderId") - .HasName("files_folder_tree_pkey"); - - b.HasIndex("FolderId") - .HasDatabaseName("folder_id_files_folder_tree"); - - b.ToTable("files_folder_tree", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.MessagingSystem.EF.Model.AuditEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Action") - .HasColumnType("integer") - .HasColumnName("action"); - - b.Property("Browser") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("browser") - .HasDefaultValueSql("NULL"); - - b.Property("Date") - .HasColumnType("timestamp with time zone") - .HasColumnName("date"); - - b.Property("DescriptionRaw") - .ValueGeneratedOnAdd() - .HasMaxLength(20000) - .HasColumnType("character varying(20000)") - .HasColumnName("description") - .HasDefaultValueSql("NULL"); - - b.Property("Initiator") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("initiator") - .HasDefaultValueSql("NULL"); - - b.Property("Ip") - .ValueGeneratedOnAdd() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("ip") - .HasDefaultValueSql("NULL"); - - b.Property("Page") - .ValueGeneratedOnAdd() - .HasMaxLength(300) - .HasColumnType("character varying(300)") - .HasColumnName("page") - .HasDefaultValueSql("NULL"); - - b.Property("Platform") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("platform") - .HasDefaultValueSql("NULL"); - - b.Property("Target") - .HasColumnType("text") - .HasColumnName("target"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("UserId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id") - .HasDefaultValueSql("NULL") - .IsFixedLength(); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Date") - .HasDatabaseName("date"); - - b.ToTable("audit_events", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.MessagingSystem.EF.Model.LoginEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Action") - .HasColumnType("integer") - .HasColumnName("action"); - - b.Property("Active") - .HasColumnType("boolean") - .HasColumnName("active"); - - b.Property("Browser") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("browser") - .HasDefaultValueSql("NULL::character varying"); - - b.Property("Date") - .HasColumnType("timestamp with time zone") - .HasColumnName("date"); - - b.Property("DescriptionRaw") - .ValueGeneratedOnAdd() - .HasMaxLength(500) - .HasColumnType("character varying(500)") - .HasColumnName("description") - .HasDefaultValueSql("NULL"); - - b.Property("Ip") - .ValueGeneratedOnAdd() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("ip") - .HasDefaultValueSql("NULL"); - - b.Property("Login") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("login") - .HasDefaultValueSql("NULL"); - - b.Property("Page") - .ValueGeneratedOnAdd() - .HasMaxLength(300) - .HasColumnType("character varying(300)") - .HasColumnName("page") - .HasDefaultValueSql("NULL"); - - b.Property("Platform") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("platform") - .HasDefaultValueSql("NULL"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("UserId") - .IsRequired() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id") - .IsFixedLength(); - - b.HasKey("Id"); - - b.HasIndex("Date") - .HasDatabaseName("date_login_events"); - - b.HasIndex("TenantId"); - - b.HasIndex("UserId", "TenantId") - .HasDatabaseName("tenant_id_login_events"); - - b.ToTable("login_events", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Webhooks.Core.EF.Model.DbWebhook", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Method") - .ValueGeneratedOnAdd() - .HasMaxLength(10) - .HasColumnType("character varying(10)") - .HasColumnName("method") - .HasDefaultValueSql("''"); - - b.Property("Route") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("route") - .HasDefaultValueSql("''"); - - b.HasKey("Id") - .HasName("PRIMARY"); - - b.ToTable("webhooks", (string)null); - }); - - modelBuilder.Entity("ASC.Webhooks.Core.EF.Model.WebhooksConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Enabled") - .ValueGeneratedOnAdd() - .HasColumnType("boolean") - .HasColumnName("enabled") - .HasDefaultValueSql("true"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("name"); - - b.Property("SSL") - .ValueGeneratedOnAdd() - .HasColumnType("boolean") - .HasColumnName("ssl") - .HasDefaultValueSql("true"); - - b.Property("SecretKey") - .ValueGeneratedOnAdd() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("secret_key") - .HasDefaultValueSql("''"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Uri") - .ValueGeneratedOnAdd() - .HasColumnType("text") - .HasColumnName("uri") - .HasDefaultValueSql("''"); - - b.HasKey("Id") - .HasName("PRIMARY"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_id"); - - b.ToTable("webhooks_config", (string)null); - }); - - modelBuilder.Entity("ASC.Webhooks.Core.EF.Model.WebhooksLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("ConfigId") - .HasColumnType("int") - .HasColumnName("config_id"); - - b.Property("CreationTime") - .HasColumnType("datetime") - .HasColumnName("creation_time"); - - b.Property("Delivery") - .HasColumnType("datetime") - .HasColumnName("delivery"); - - b.Property("RequestHeaders") - .HasColumnType("json") - .HasColumnName("request_headers"); - - b.Property("RequestPayload") - .IsRequired() - .HasColumnType("text") - .HasColumnName("request_payload"); - - b.Property("ResponseHeaders") - .HasColumnType("json") - .HasColumnName("response_headers"); - - b.Property("ResponsePayload") - .HasColumnType("text") - .HasColumnName("response_payload"); - - b.Property("Status") - .HasColumnType("int") - .HasColumnName("status"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Uid") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("varchar") - .HasColumnName("uid"); - - b.Property("WebhookId") - .HasColumnType("int") - .HasColumnName("webhook_id"); - - b.HasKey("Id") - .HasName("PRIMARY"); - - b.HasIndex("ConfigId"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_id"); - - b.ToTable("webhooks_logs", (string)null); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Acl", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbGroup", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbQuotaRow", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbSubscriptionMethod", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbTariff", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbTariffRow", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.FireBaseUser", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbCoreSettings", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioSettings", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioUserVisit", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.NotifyQueue", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.TelegramUser", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.TenantIpRestrictions", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Subscription", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.User", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserDav", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserGroup", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserPhoto", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserSecurity", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Data.Backup.EF.Model.BackupRecord", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Data.Backup.EF.Model.BackupSchedule", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithOne() - .HasForeignKey("ASC.Data.Backup.EF.Model.BackupSchedule", "TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.EventBus.Extensions.Logger.IntegrationEventLogEntry", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedAggregate", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedReaded", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedUsers", b => - { - b.HasOne("ASC.Feed.Model.FeedAggregate", "Feed") - .WithMany() - .HasForeignKey("FeedId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Feed"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFile", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesBunchObjects", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesLink", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesProperties", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesSecurity", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTag", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTagLink", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyAccount", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyApp", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyIdMapping", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFolder", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFolderTree", b => - { - b.HasOne("ASC.Files.Core.EF.DbFolder", "Folder") - .WithMany() - .HasForeignKey("FolderId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Folder"); - }); - - modelBuilder.Entity("ASC.MessagingSystem.EF.Model.AuditEvent", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.MessagingSystem.EF.Model.LoginEvent", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Webhooks.Core.EF.Model.WebhooksConfig", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Webhooks.Core.EF.Model.WebhooksLog", b => - { - b.HasOne("ASC.Webhooks.Core.EF.Model.WebhooksConfig", "Config") - .WithMany() - .HasForeignKey("ConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Config"); - - b.Navigation("Tenant"); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/migrations/postgre/MigrationContext/20230621124717_MigrationContext_Upgrade1.cs b/migrations/postgre/MigrationContext/20230621124717_MigrationContext_Upgrade1.cs deleted file mode 100644 index 76d8bee7e1..0000000000 --- a/migrations/postgre/MigrationContext/20230621124717_MigrationContext_Upgrade1.cs +++ /dev/null @@ -1,633 +0,0 @@ -using Microsoft.EntityFrameworkCore.Migrations; - -#nullable disable - -namespace ASC.Migrations.PostgreSql.Migrations -{ - /// - public partial class MigrationContextUpgrade1 : Migration - { - /// - protected override void Up(MigrationBuilder migrationBuilder) - { - migrationBuilder.AddForeignKey( - name: "FK_audit_events_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "audit_events", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_backup_backup_tenants_tenants_tenant_id", - table: "backup_backup", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_backup_schedule_tenants_tenants_tenant_id", - table: "backup_schedule", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_core_acl_tenants_tenants_tenant", - schema: "onlyoffice", - table: "core_acl", - column: "tenant", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_core_group_tenants_tenants_tenant", - table: "core_group", - column: "tenant", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_core_settings_tenants_tenants_tenant", - schema: "onlyoffice", - table: "core_settings", - column: "tenant", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_core_subscription_tenants_tenants_tenant", - schema: "onlyoffice", - table: "core_subscription", - column: "tenant", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_core_subscriptionmethod_tenants_tenants_tenant", - schema: "onlyoffice", - table: "core_subscriptionmethod", - column: "tenant", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_core_user_tenants_tenants_tenant", - schema: "onlyoffice", - table: "core_user", - column: "tenant", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_core_userdav_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "core_userdav", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_core_usergroup_tenants_tenants_tenant", - schema: "onlyoffice", - table: "core_usergroup", - column: "tenant", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_core_userphoto_tenants_tenants_tenant", - schema: "onlyoffice", - table: "core_userphoto", - column: "tenant", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_core_usersecurity_tenants_tenants_tenant", - schema: "onlyoffice", - table: "core_usersecurity", - column: "tenant", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_event_bus_integration_event_log_tenants_tenants_tenant_id", - table: "event_bus_integration_event_log", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_feed_aggregate_tenants_tenants_tenant", - schema: "onlyoffice", - table: "feed_aggregate", - column: "tenant", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_feed_readed_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "feed_readed", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_feed_users_feed_aggregate_feed_id", - schema: "onlyoffice", - table: "feed_users", - column: "feed_id", - principalSchema: "onlyoffice", - principalTable: "feed_aggregate", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_files_bunch_objects_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_bunch_objects", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_files_file_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_file", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_files_folder_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_folder", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_files_folder_tree_files_folder_folder_id", - schema: "onlyoffice", - table: "files_folder_tree", - column: "folder_id", - principalSchema: "onlyoffice", - principalTable: "files_folder", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_files_link_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_link", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_files_properties_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_properties", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_files_security_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_security", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_files_tag_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_tag", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_files_tag_link_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_tag_link", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_files_thirdparty_account_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_thirdparty_account", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_files_thirdparty_app_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_thirdparty_app", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_files_thirdparty_id_mapping_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_thirdparty_id_mapping", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_firebase_users_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "firebase_users", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_login_events_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "login_events", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_notify_queue_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "notify_queue", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_telegram_users_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "telegram_users", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_tenants_iprestrictions_tenants_tenants_tenant", - schema: "onlyoffice", - table: "tenants_iprestrictions", - column: "tenant", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_tenants_quotarow_tenants_tenants_tenant", - schema: "onlyoffice", - table: "tenants_quotarow", - column: "tenant", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_tenants_tariff_tenants_tenants_tenant", - schema: "onlyoffice", - table: "tenants_tariff", - column: "tenant", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_tenants_tariffrow_tenants_tenants_tenant", - schema: "onlyoffice", - table: "tenants_tariffrow", - column: "tenant", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_webhooks_config_tenants_tenants_tenant_id", - table: "webhooks_config", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_webhooks_logs_tenants_tenants_tenant_id", - table: "webhooks_logs", - column: "tenant_id", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_webhooks_logs_webhooks_config_config_id", - table: "webhooks_logs", - column: "config_id", - principalTable: "webhooks_config", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_webstudio_settings_tenants_tenants_TenantID", - schema: "onlyoffice", - table: "webstudio_settings", - column: "TenantID", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - - migrationBuilder.AddForeignKey( - name: "FK_webstudio_uservisit_tenants_tenants_tenantid", - schema: "onlyoffice", - table: "webstudio_uservisit", - column: "tenantid", - principalSchema: "onlyoffice", - principalTable: "tenants_tenants", - principalColumn: "id", - onDelete: ReferentialAction.Cascade); - } - - /// - protected override void Down(MigrationBuilder migrationBuilder) - { - migrationBuilder.DropForeignKey( - name: "FK_audit_events_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "audit_events"); - - migrationBuilder.DropForeignKey( - name: "FK_backup_backup_tenants_tenants_tenant_id", - table: "backup_backup"); - - migrationBuilder.DropForeignKey( - name: "FK_backup_schedule_tenants_tenants_tenant_id", - table: "backup_schedule"); - - migrationBuilder.DropForeignKey( - name: "FK_core_acl_tenants_tenants_tenant", - schema: "onlyoffice", - table: "core_acl"); - - migrationBuilder.DropForeignKey( - name: "FK_core_group_tenants_tenants_tenant", - table: "core_group"); - - migrationBuilder.DropForeignKey( - name: "FK_core_settings_tenants_tenants_tenant", - schema: "onlyoffice", - table: "core_settings"); - - migrationBuilder.DropForeignKey( - name: "FK_core_subscription_tenants_tenants_tenant", - schema: "onlyoffice", - table: "core_subscription"); - - migrationBuilder.DropForeignKey( - name: "FK_core_subscriptionmethod_tenants_tenants_tenant", - schema: "onlyoffice", - table: "core_subscriptionmethod"); - - migrationBuilder.DropForeignKey( - name: "FK_core_user_tenants_tenants_tenant", - schema: "onlyoffice", - table: "core_user"); - - migrationBuilder.DropForeignKey( - name: "FK_core_userdav_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "core_userdav"); - - migrationBuilder.DropForeignKey( - name: "FK_core_usergroup_tenants_tenants_tenant", - schema: "onlyoffice", - table: "core_usergroup"); - - migrationBuilder.DropForeignKey( - name: "FK_core_userphoto_tenants_tenants_tenant", - schema: "onlyoffice", - table: "core_userphoto"); - - migrationBuilder.DropForeignKey( - name: "FK_core_usersecurity_tenants_tenants_tenant", - schema: "onlyoffice", - table: "core_usersecurity"); - - migrationBuilder.DropForeignKey( - name: "FK_event_bus_integration_event_log_tenants_tenants_tenant_id", - table: "event_bus_integration_event_log"); - - migrationBuilder.DropForeignKey( - name: "FK_feed_aggregate_tenants_tenants_tenant", - schema: "onlyoffice", - table: "feed_aggregate"); - - migrationBuilder.DropForeignKey( - name: "FK_feed_readed_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "feed_readed"); - - migrationBuilder.DropForeignKey( - name: "FK_feed_users_feed_aggregate_feed_id", - schema: "onlyoffice", - table: "feed_users"); - - migrationBuilder.DropForeignKey( - name: "FK_files_bunch_objects_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_bunch_objects"); - - migrationBuilder.DropForeignKey( - name: "FK_files_file_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_file"); - - migrationBuilder.DropForeignKey( - name: "FK_files_folder_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_folder"); - - migrationBuilder.DropForeignKey( - name: "FK_files_folder_tree_files_folder_folder_id", - schema: "onlyoffice", - table: "files_folder_tree"); - - migrationBuilder.DropForeignKey( - name: "FK_files_link_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_link"); - - migrationBuilder.DropForeignKey( - name: "FK_files_properties_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_properties"); - - migrationBuilder.DropForeignKey( - name: "FK_files_security_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_security"); - - migrationBuilder.DropForeignKey( - name: "FK_files_tag_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_tag"); - - migrationBuilder.DropForeignKey( - name: "FK_files_tag_link_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_tag_link"); - - migrationBuilder.DropForeignKey( - name: "FK_files_thirdparty_account_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_thirdparty_account"); - - migrationBuilder.DropForeignKey( - name: "FK_files_thirdparty_app_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_thirdparty_app"); - - migrationBuilder.DropForeignKey( - name: "FK_files_thirdparty_id_mapping_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "files_thirdparty_id_mapping"); - - migrationBuilder.DropForeignKey( - name: "FK_firebase_users_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "firebase_users"); - - migrationBuilder.DropForeignKey( - name: "FK_login_events_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "login_events"); - - migrationBuilder.DropForeignKey( - name: "FK_notify_queue_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "notify_queue"); - - migrationBuilder.DropForeignKey( - name: "FK_telegram_users_tenants_tenants_tenant_id", - schema: "onlyoffice", - table: "telegram_users"); - - migrationBuilder.DropForeignKey( - name: "FK_tenants_iprestrictions_tenants_tenants_tenant", - schema: "onlyoffice", - table: "tenants_iprestrictions"); - - migrationBuilder.DropForeignKey( - name: "FK_tenants_quotarow_tenants_tenants_tenant", - schema: "onlyoffice", - table: "tenants_quotarow"); - - migrationBuilder.DropForeignKey( - name: "FK_tenants_tariff_tenants_tenants_tenant", - schema: "onlyoffice", - table: "tenants_tariff"); - - migrationBuilder.DropForeignKey( - name: "FK_tenants_tariffrow_tenants_tenants_tenant", - schema: "onlyoffice", - table: "tenants_tariffrow"); - - migrationBuilder.DropForeignKey( - name: "FK_webhooks_config_tenants_tenants_tenant_id", - table: "webhooks_config"); - - migrationBuilder.DropForeignKey( - name: "FK_webhooks_logs_tenants_tenants_tenant_id", - table: "webhooks_logs"); - - migrationBuilder.DropForeignKey( - name: "FK_webhooks_logs_webhooks_config_config_id", - table: "webhooks_logs"); - - migrationBuilder.DropForeignKey( - name: "FK_webstudio_settings_tenants_tenants_TenantID", - schema: "onlyoffice", - table: "webstudio_settings"); - - migrationBuilder.DropForeignKey( - name: "FK_webstudio_uservisit_tenants_tenants_tenantid", - schema: "onlyoffice", - table: "webstudio_uservisit"); - } - } -} diff --git a/migrations/postgre/MigrationContext/MigrationContextModelSnapshot.cs b/migrations/postgre/MigrationContext/MigrationContextModelSnapshot.cs deleted file mode 100644 index 9f4f37e831..0000000000 --- a/migrations/postgre/MigrationContext/MigrationContextModelSnapshot.cs +++ /dev/null @@ -1,6846 +0,0 @@ -// -using System; -using ASC.Migrations.Core; -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(MigrationContext))] - partial class MigrationContextModelSnapshot : ModelSnapshot - { - protected override void BuildModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn) - .HasAnnotation("ProductVersion", "7.0.2") - .HasAnnotation("Relational:MaxIdentifierLength", 63); - - modelBuilder.Entity("ASC.Core.Common.EF.Acl", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Subject") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("subject"); - - b.Property("Action") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("action"); - - b.Property("Object") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("object") - .HasDefaultValueSql("''"); - - b.Property("AceType") - .HasColumnType("integer") - .HasColumnName("acetype"); - - b.HasKey("TenantId", "Subject", "Action", "Object") - .HasName("core_acl_pkey"); - - b.ToTable("core_acl", "onlyoffice"); - - b.HasData( - new - { - TenantId = -1, - Subject = new Guid("5d5b7260-f7f7-49f1-a1c9-95fbb6a12604"), - Action = new Guid("ef5e6790-f346-4b6e-b662-722bc28cb0db"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("5d5b7260-f7f7-49f1-a1c9-95fbb6a12604"), - Action = new Guid("f11e8f3f-46e6-4e55-90e3-09c22ec565bd"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("088d5940-a80f-4403-9741-d610718ce95c"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("08d66144-e1c9-4065-9aa1-aa4bba0a7bc8"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("08d75c97-cf3f-494b-90d1-751c941fe2dd"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("0d1f72a8-63da-47ea-ae42-0900e4ac72a9"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("13e30b51-5b4d-40a5-8575-cb561899eeb1"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("19f658ae-722b-4cd8-8236-3ad150801d96"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("2c6552b3-b2e0-4a00-b8fd-13c161e337b1"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("388c29d3-c662-4a61-bf47-fc2f7094224a"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("40bf31f4-3132-4e76-8d5c-9828a89501a3"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("49ae8915-2b30-4348-ab74-b152279364fb"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("63e9f35f-6bb5-4fb1-afaa-e4c2f4dec9bd"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("9018c001-24c2-44bf-a1db-d1121a570e74"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("948ad738-434b-4a88-8e38-7569d332910a"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("9d75a568-52aa-49d8-ad43-473756cd8903"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("a362fe79-684e-4d43-a599-65bc1f4e167f"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("c426c349-9ad4-47cd-9b8f-99fc30675951"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("d11ebcb9-0e6e-45e6-a6d0-99c41d687598"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("d1f3b53d-d9e2-4259-80e7-d24380978395"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("d49f4e30-da10-4b39-bc6d-b41ef6e039d3"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("abef62db-11a8-4673-9d32-ef1d8af19dc0"), - Action = new Guid("d852b66f-6719-45e1-8657-18f0bb791690"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("e0759a42-47f0-4763-a26a-d5aa665bec35"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("e37239bd-c5b5-4f1e-a9f8-3ceeac209615"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("fbc37705-a04c-40ad-a68c-ce2f0423f397"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("fcac42b8-9386-48eb-a938-d19b3c576912"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("13e30b51-5b4d-40a5-8575-cb561899eeb1"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("49ae8915-2b30-4348-ab74-b152279364fb"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("63e9f35f-6bb5-4fb1-afaa-e4c2f4dec9bd"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("9018c001-24c2-44bf-a1db-d1121a570e74"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("d1f3b53d-d9e2-4259-80e7-d24380978395"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("e0759a42-47f0-4763-a26a-d5aa665bec35"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("e37239bd-c5b5-4f1e-a9f8-3ceeac209615"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("f11e88d7-f185-4372-927c-d88008d2c483"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("ba74ca02-873f-43dc-8470-8620c156bc67"), - Action = new Guid("f11e8f3f-46e6-4e55-90e3-09c22ec565bd"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("00e7dfc5-ac49-4fd3-a1d6-98d84e877ac4"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("14be970f-7af5-4590-8e81-ea32b5f7866d"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("18ecc94d-6afa-4994-8406-aee9dff12ce2"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("298530eb-435e-4dc6-a776-9abcd95c70e9"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("430eaf70-1886-483c-a746-1a18e3e6bb63"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("557d6503-633b-4490-a14c-6473147ce2b3"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("724cbb75-d1c9-451e-bae0-4de0db96b1f7"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("7cb5c0d1-d254-433f-abe3-ff23373ec631"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("91b29dcd-9430-4403-b17a-27d09189be88"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("a18480a4-6d18-4c71-84fa-789888791f45"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("b630d29b-1844-4bda-bbbe-cf5542df3559"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("c62a9e8d-b24c-4513-90aa-7ff0f8ba38eb"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("d7cdb020-288b-41e5-a857-597347618533"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("662f3db7-9bc8-42cf-84da-2765f563e9b0"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("712d9ec3-5d2b-4b13-824f-71f00191dcca"), - Action = new Guid("e0759a42-47f0-4763-a26a-d5aa665bec35"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("bba32183-a14d-48ed-9d39-c6b4d8925fbf"), - Action = new Guid("0d68b142-e20a-446e-a832-0d6b0b65a164"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("6f05c382-8bca-4469-9424-c807a98c40d7"), - Object = "", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|1e04460243b54d7982f3fd6208a11960", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|6743007c6f954d208c88a8601ce5e76d", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|e67be73df9ae4ce18fec1880cb518cb4", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|ea942538e68e49079394035336ee0ba8", - AceType = 1 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|32d24cb57ece46069c9419216ba42086", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|bf88953e3c434850a3fbb1e43ad53a3e", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|2a9230378b2d487b9a225ac0918acf3f", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|f4d98afdd336433287783c6945c81ea0", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|28b10049dd204f54b986873bc14ccfc7", - AceType = 1 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|3cfd481b46f24a4ab55cb8c0c9def02c", - AceType = 1 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|6a598c7491ae437da5f4ad339bd11bb2", - AceType = 1 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|742cf945cbbc4a5782d61600a12cf8ca", - AceType = 1 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|853b6eb973ee438d9b098ffeedf36234", - AceType = 1 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|46cfa73af32046cf8d5bcd82e1d67f26", - AceType = 0 - }, - new - { - TenantId = -1, - Subject = new Guid("c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e"), - Action = new Guid("77777777-32ae-425f-99b5-83176061d1ae"), - Object = "ASC.Web.Core.WebItemSecurity+WebItemSecurityObject|37620ae5c40b45ce855a39dd7d76a1fa", - AceType = 0 - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbGroup", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("id"); - - b.Property("CategoryId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("categoryid") - .HasDefaultValueSql("NULL"); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("name"); - - b.Property("ParentId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("parentid") - .HasDefaultValueSql("NULL"); - - b.Property("Removed") - .HasColumnType("boolean") - .HasColumnName("removed"); - - b.Property("Sid") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("sid") - .HasDefaultValueSql("NULL"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.HasKey("Id"); - - b.HasIndex("LastModified") - .HasDatabaseName("last_modified"); - - b.HasIndex("TenantId", "ParentId") - .HasDatabaseName("parentid"); - - b.ToTable("core_group", (string)null); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbQuota", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Description") - .HasColumnType("character varying") - .HasColumnName("description"); - - b.Property("Features") - .HasColumnType("text") - .HasColumnName("features"); - - b.Property("Name") - .HasColumnType("character varying") - .HasColumnName("name"); - - b.Property("Price") - .ValueGeneratedOnAdd() - .HasColumnType("numeric(10,2)") - .HasColumnName("price") - .HasDefaultValueSql("0.00"); - - b.Property("ProductId") - .ValueGeneratedOnAdd() - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("product_id") - .HasDefaultValueSql("NULL"); - - b.Property("Visible") - .HasColumnType("boolean") - .HasColumnName("visible"); - - b.HasKey("TenantId") - .HasName("tenants_quota_pkey"); - - b.ToTable("tenants_quota", "onlyoffice"); - - b.HasData( - new - { - TenantId = -1, - Features = "trial,audit,ldap,sso,whitelabel,thirdparty,restore,oauth,total_size:107374182400,file_size:100,manager:1", - Name = "trial", - Price = 0m, - Visible = false - }, - new - { - TenantId = -2, - Features = "audit,ldap,sso,whitelabel,thirdparty,restore,oauth,contentsearch,total_size:107374182400,file_size:1024,manager:1", - Name = "admin", - Price = 30m, - ProductId = "1002", - Visible = true - }, - new - { - TenantId = -3, - Features = "free,total_size:2147483648,manager:3,room:12", - Name = "startup", - Price = 0m, - Visible = false - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbQuotaRow", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Path") - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("path"); - - b.Property("Counter") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasColumnName("counter") - .HasDefaultValueSql("'0'"); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("Tag") - .ValueGeneratedOnAdd() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .HasColumnName("tag") - .HasDefaultValueSql("'0'"); - - b.Property("UserId") - .ValueGeneratedOnAdd() - .HasMaxLength(36) - .HasColumnType("uuid") - .HasColumnName("user_id") - .HasDefaultValueSql("NULL"); - - b.HasKey("TenantId", "Path") - .HasName("tenants_quotarow_pkey"); - - b.HasIndex("LastModified") - .HasDatabaseName("last_modified_tenants_quotarow"); - - b.ToTable("tenants_quotarow", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbSubscriptionMethod", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Source") - .HasMaxLength(38) - .HasColumnType("character varying(38)") - .HasColumnName("source"); - - b.Property("Action") - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("action"); - - b.Property("Recipient") - .HasMaxLength(38) - .HasColumnType("character varying(38)") - .HasColumnName("recipient"); - - b.Property("Sender") - .IsRequired() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .HasColumnName("sender"); - - b.HasKey("TenantId", "Source", "Action", "Recipient") - .HasName("core_subscriptionmethod_pkey"); - - b.ToTable("core_subscriptionmethod", "onlyoffice"); - - b.HasData( - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "send_whats_new", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender" - }, - new - { - TenantId = -1, - Source = "6504977c-75af-4691-9099-084d3ddeea04", - Action = "new feed", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6a598c74-91ae-437d-a5f4-ad339bd11bb2", - Action = "new post", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "853b6eb9-73ee-438d-9b09-8ffeedf36234", - Action = "new topic in forum", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "9d51954f-db9b-4aed-94e3-ed70b914e101", - Action = "new photo uploaded", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "28b10049-dd20-4f54-b986-873bc14ccfc7", - Action = "new bookmark created", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "742cf945-cbbc-4a57-82d6-1600a12cf8ca", - Action = "new wiki page", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "37620ae5-c40b-45ce-855a-39dd7d76a1fa", - Action = "BirthdayReminder", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", - Action = "sharedocument", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", - Action = "sharefolder", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", - Action = "updatedocument", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "invitetoproject", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "milestonedeadline", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "newcommentformessage", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "newcommentformilestone", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "newcommentfortask", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "projectcreaterequest", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "projecteditrequest", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "removefromproject", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "responsibleforproject", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "responsiblefortask", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "6045b68c-2c2e-42db-9e53-c272e814c4ad", - Action = "taskclosed", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "40650da3-f7c1-424c-8c89-b9c115472e08", - Action = "calendar_sharing", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "40650da3-f7c1-424c-8c89-b9c115472e08", - Action = "event_alert", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "admin_notify", - Recipient = "cd84e66b-b803-40fc-99f9-b2969a54a1de", - Sender = "email.sender" - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "SetAccess", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "ResponsibleForTask", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "AddRelationshipEvent", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "ExportCompleted", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "CreateNewContact", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "ResponsibleForOpportunity", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Sender = "email.sender|messanger.sender" - }, - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "periodic_notify", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Sender = "email.sender" - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbTariff", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Comment") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("comment") - .HasDefaultValueSql("NULL"); - - b.Property("CreateOn") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("create_on") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("CustomerId") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("customer_id") - .HasDefaultValueSql("NULL"); - - b.Property("Stamp") - .HasColumnType("timestamp with time zone") - .HasColumnName("stamp"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.HasKey("Id"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_tenants_tariff"); - - b.ToTable("tenants_tariff", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbTariffRow", b => - { - b.Property("TenantId") - .HasColumnType("int") - .HasColumnName("tenant"); - - b.Property("TariffId") - .HasColumnType("int") - .HasColumnName("tariff_id"); - - b.Property("Quota") - .HasColumnType("int") - .HasColumnName("quota"); - - b.Property("Quantity") - .HasColumnType("int") - .HasColumnName("quantity"); - - b.HasKey("TenantId", "TariffId", "Quota") - .HasName("PRIMARY"); - - b.ToTable("tenants_tariffrow", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.FireBaseUser", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Application") - .HasMaxLength(20) - .HasColumnType("character varying(20)") - .HasColumnName("application"); - - b.Property("FirebaseDeviceToken") - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("firebase_device_token"); - - b.Property("IsSubscribed") - .HasColumnType("boolean") - .HasColumnName("is_subscribed"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("UserId") - .HasMaxLength(36) - .HasColumnType("uuid") - .HasColumnName("user_id"); - - b.HasKey("Id") - .HasName("firebase_users_pkey"); - - b.HasIndex("TenantId", "UserId") - .HasDatabaseName("user_id"); - - b.ToTable("firebase_users", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.AccountLinks", b => - { - b.Property("Id") - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("id"); - - b.Property("UId") - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("uid"); - - b.Property("Linked") - .HasColumnType("timestamp with time zone") - .HasColumnName("linked"); - - b.Property("Profile") - .IsRequired() - .HasColumnType("text") - .HasColumnName("profile"); - - b.Property("Provider") - .ValueGeneratedOnAdd() - .HasMaxLength(60) - .HasColumnType("character(60)") - .HasColumnName("provider") - .HasDefaultValueSql("NULL") - .IsFixedLength(); - - b.HasKey("Id", "UId") - .HasName("account_links_pkey"); - - b.HasIndex("UId") - .HasDatabaseName("uid"); - - b.ToTable("account_links", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbCoreSettings", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Id") - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("id"); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("Value") - .IsRequired() - .HasColumnType("bytea") - .HasColumnName("value"); - - b.HasKey("TenantId", "Id") - .HasName("core_settings_pkey"); - - b.ToTable("core_settings", "onlyoffice"); - - b.HasData( - new - { - TenantId = -1, - Id = "CompanyWhiteLabelSettings", - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Value = new byte[] { 245, 71, 4, 138, 72, 101, 23, 21, 135, 217, 206, 188, 138, 73, 108, 96, 29, 150, 3, 31, 44, 28, 62, 145, 96, 53, 57, 66, 238, 118, 93, 172, 211, 22, 244, 181, 244, 40, 146, 67, 111, 196, 162, 27, 154, 109, 248, 255, 181, 17, 253, 127, 42, 65, 19, 90, 26, 206, 203, 145, 159, 159, 243, 105, 24, 71, 188, 165, 53, 85, 57, 37, 186, 251, 57, 96, 18, 162, 218, 80, 0, 101, 250, 100, 66, 97, 24, 51, 240, 215, 216, 169, 105, 100, 15, 253, 29, 83, 182, 236, 203, 53, 68, 251, 2, 150, 149, 148, 58, 136, 84, 37, 151, 82, 92, 227, 30, 52, 111, 40, 154, 155, 7, 126, 149, 100, 169, 87, 10, 129, 228, 138, 177, 101, 77, 67, 177, 216, 189, 201, 1, 213, 136, 216, 107, 198, 253, 221, 106, 255, 198, 17, 68, 14, 110, 90, 174, 182, 68, 222, 188, 77, 157, 19, 26, 68, 86, 97, 15, 81, 24, 171, 214, 114, 191, 175, 56, 56, 48, 52, 125, 82, 253, 113, 71, 41, 201, 5, 8, 118, 162, 191, 99, 196, 48, 198, 223, 79, 204, 174, 31, 97, 236, 20, 213, 218, 85, 34, 16, 74, 196, 209, 235, 14, 71, 209, 32, 131, 195, 84, 11, 66, 74, 19, 115, 255, 99, 69, 235, 210, 204, 15, 13, 4, 143, 127, 152, 125, 212, 91 } - }, - new - { - TenantId = -1, - Id = "FullTextSearchSettings", - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Value = new byte[] { 8, 120, 207, 5, 153, 181, 23, 202, 162, 211, 218, 237, 157, 6, 76, 62, 220, 238, 175, 67, 31, 53, 166, 246, 66, 220, 173, 160, 72, 23, 227, 81, 50, 39, 187, 177, 222, 110, 43, 171, 235, 158, 16, 119, 178, 207, 49, 140, 72, 152, 20, 84, 94, 135, 117, 1, 246, 51, 251, 190, 148, 2, 44, 252, 221, 2, 91, 83, 149, 151, 58, 245, 16, 148, 52, 8, 187, 86, 150, 46, 227, 93, 163, 95, 47, 131, 116, 207, 95, 209, 38, 149, 53, 148, 73, 215, 206, 251, 194, 199, 189, 17, 42, 229, 135, 82, 23, 154, 162, 165, 158, 94, 23, 128, 30, 88, 12, 204, 96, 250, 236, 142, 189, 211, 214, 18, 196, 136, 102, 102, 217, 109, 108, 240, 96, 96, 94, 100, 201, 10, 31, 170, 128, 192 } - }, - new - { - TenantId = -1, - Id = "SmtpSettings", - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Value = new byte[] { 240, 82, 224, 144, 161, 163, 117, 13, 173, 205, 78, 153, 97, 218, 4, 170, 81, 239, 1, 151, 226, 192, 98, 60, 241, 44, 88, 56, 191, 164, 10, 155, 72, 186, 239, 203, 227, 113, 88, 119, 49, 215, 227, 220, 158, 124, 96, 9, 116, 47, 158, 65, 93, 86, 219, 15, 10, 224, 142, 50, 248, 144, 75, 44, 68, 28, 198, 87, 198, 69, 67, 234, 238, 38, 32, 68, 162, 139, 67, 53, 220, 176, 240, 196, 233, 64, 29, 137, 31, 160, 99, 105, 249, 132, 202, 45, 71, 92, 134, 194, 55, 145, 121, 97, 197, 130, 119, 105, 131, 21, 133, 35, 10, 102, 172, 119, 135, 230, 251, 86, 253, 62, 55, 56, 146, 103, 164, 106 } - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbIPLookup", b => - { - b.Property("AddrType") - .HasColumnType("enum('ipv4','ipv6')") - .HasColumnName("addr_type"); - - b.Property("IPStart") - .HasColumnType("varbinary(16)") - .HasColumnName("ip_start"); - - b.Property("City") - .IsRequired() - .HasColumnType("varchar(80)") - .HasColumnName("city"); - - b.Property("Continent") - .IsRequired() - .HasColumnType("char(2)") - .HasColumnName("continent"); - - b.Property("Country") - .IsRequired() - .HasColumnType("char(2)") - .HasColumnName("country"); - - b.Property("District") - .IsRequired() - .HasColumnType("varchar(80)") - .HasColumnName("district"); - - b.Property("GeonameId") - .HasColumnType("int(10)") - .HasColumnName("geoname_id"); - - b.Property("IPEnd") - .IsRequired() - .HasColumnType("varbinary(16)") - .HasColumnName("ip_end"); - - b.Property("Latitude") - .HasColumnType("float") - .HasColumnName("latitude"); - - b.Property("Longitude") - .HasColumnType("float") - .HasColumnName("longitude"); - - b.Property("StateProv") - .IsRequired() - .HasColumnType("varchar(80)") - .HasColumnName("stateprov"); - - b.Property("StateProvCode") - .HasColumnType("varchar(15)") - .HasColumnName("stateprov_code"); - - b.Property("TimezoneName") - .IsRequired() - .HasColumnType("varchar(64)") - .HasColumnName("timezone_name"); - - b.Property("TimezoneOffset") - .HasColumnType("float") - .HasColumnName("timezone_offset"); - - b.Property("WeatherCode") - .IsRequired() - .HasColumnType("varchar(10)") - .HasColumnName("weather_code"); - - b.Property("ZipCode") - .HasColumnType("varchar(20)") - .HasColumnName("zipcode"); - - b.HasKey("AddrType", "IPStart"); - - b.ToTable("dbip_lookup", (string)null); - - b.HasAnnotation("MySql:CharSet", "utf8mb4"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenant", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Alias") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("character varying(100)") - .HasColumnName("alias"); - - b.Property("Calls") - .ValueGeneratedOnAdd() - .HasColumnType("boolean") - .HasColumnName("calls") - .HasDefaultValueSql("true"); - - b.Property("CreationDateTime") - .HasColumnType("timestamp with time zone") - .HasColumnName("creationdatetime"); - - b.Property("Industry") - .HasColumnType("integer") - .HasColumnName("industry"); - - b.Property("Language") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(10) - .HasColumnType("character(10)") - .HasColumnName("language") - .HasDefaultValueSql("'en-US'") - .IsFixedLength(); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("MappedDomain") - .ValueGeneratedOnAdd() - .HasMaxLength(100) - .HasColumnType("character varying(100)") - .HasColumnName("mappeddomain") - .HasDefaultValueSql("NULL"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("name"); - - b.Property("OwnerId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("owner_id") - .HasDefaultValueSql("NULL"); - - b.Property("PaymentId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("character varying(38)") - .HasColumnName("payment_id") - .HasDefaultValueSql("NULL"); - - b.Property("Spam") - .ValueGeneratedOnAdd() - .HasColumnType("boolean") - .HasColumnName("spam") - .HasDefaultValueSql("true"); - - b.Property("Status") - .HasColumnType("integer") - .HasColumnName("status"); - - b.Property("StatusChanged") - .HasColumnType("timestamp with time zone") - .HasColumnName("statuschanged"); - - b.Property("TimeZone") - .ValueGeneratedOnAdd() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("timezone") - .HasDefaultValueSql("NULL"); - - b.Property("TrustedDomainsEnabled") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("trusteddomainsenabled") - .HasDefaultValueSql("1"); - - b.Property("TrustedDomainsRaw") - .ValueGeneratedOnAdd() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .HasColumnName("trusteddomains") - .HasDefaultValueSql("NULL"); - - b.Property("Version") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("version") - .HasDefaultValueSql("2"); - - b.Property("Version_Changed") - .HasColumnType("timestamp with time zone") - .HasColumnName("version_changed"); - - b.HasKey("Id"); - - b.HasIndex("Alias") - .IsUnique() - .HasDatabaseName("alias"); - - b.HasIndex("LastModified") - .HasDatabaseName("last_modified_tenants_tenants"); - - b.HasIndex("MappedDomain") - .HasDatabaseName("mappeddomain"); - - b.HasIndex("Version") - .HasDatabaseName("version"); - - b.ToTable("tenants_tenants", "onlyoffice"); - - b.HasData( - new - { - Id = 1, - Alias = "localhost", - Calls = false, - CreationDateTime = new DateTime(2021, 3, 9, 17, 46, 59, 97, DateTimeKind.Utc).AddTicks(4317), - Industry = 0, - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Name = "Web Office", - OwnerId = new Guid("66faa6e4-f133-11ea-b126-00ffeec8b4ef"), - Spam = false, - Status = 0, - TrustedDomainsEnabled = 0, - Version = 0 - }, - new - { - Id = -1, - Alias = "settings", - Calls = false, - CreationDateTime = new DateTime(2021, 3, 9, 17, 46, 59, 97, DateTimeKind.Utc).AddTicks(4317), - Industry = 0, - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Name = "Web Office", - OwnerId = new Guid("00000000-0000-0000-0000-000000000000"), - Spam = false, - Status = 1, - TrustedDomainsEnabled = 0, - Version = 0 - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantForbiden", b => - { - b.Property("Address") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("address"); - - b.HasKey("Address") - .HasName("tenants_forbiden_pkey"); - - b.ToTable("tenants_forbiden", "onlyoffice"); - - b.HasData( - new - { - Address = "controlpanel" - }, - new - { - Address = "localhost" - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenantVersion", b => - { - b.Property("Id") - .HasColumnType("integer") - .HasColumnName("id"); - - b.Property("DefaultVersion") - .HasColumnType("integer") - .HasColumnName("default_version"); - - b.Property("Url") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("url"); - - b.Property("Version") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("version"); - - b.Property("Visible") - .HasColumnType("boolean") - .HasColumnName("visible"); - - b.HasKey("Id"); - - b.ToTable("tenants_version", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioIndex", b => - { - b.Property("IndexName") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("index_name"); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.HasKey("IndexName") - .HasName("webstudio_index_pkey"); - - b.ToTable("webstudio_index", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioSettings", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("TenantID"); - - b.Property("Id") - .HasMaxLength(64) - .HasColumnType("uuid") - .HasColumnName("ID"); - - b.Property("UserId") - .HasMaxLength(64) - .HasColumnType("uuid") - .HasColumnName("UserID"); - - b.Property("Data") - .IsRequired() - .HasColumnType("text"); - - b.HasKey("TenantId", "Id", "UserId") - .HasName("webstudio_settings_pkey"); - - b.HasIndex("Id") - .HasDatabaseName("ID"); - - b.ToTable("webstudio_settings", "onlyoffice"); - - b.HasData( - new - { - TenantId = 1, - Id = new Guid("9a925891-1f92-4ed7-b277-d6f649739f06"), - UserId = new Guid("00000000-0000-0000-0000-000000000000"), - Data = "{\"Completed\":false}" - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioUserVisit", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenantid"); - - b.Property("VisitDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("visitdate"); - - b.Property("ProductId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("productid"); - - b.Property("UserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("userid"); - - b.Property("FirstVisitTime") - .HasColumnType("timestamp with time zone") - .HasColumnName("firstvisittime"); - - b.Property("LastVisitTime") - .HasColumnType("timestamp with time zone") - .HasColumnName("lastvisittime"); - - b.Property("VisitCount") - .HasColumnType("integer") - .HasColumnName("visitcount"); - - b.HasKey("TenantId", "VisitDate", "ProductId", "UserId") - .HasName("webstudio_uservisit_pkey"); - - b.HasIndex("VisitDate") - .HasDatabaseName("visitdate"); - - b.ToTable("webstudio_uservisit", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.FilesConverts", b => - { - b.Property("Input") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("input"); - - b.Property("Output") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("output"); - - b.HasKey("Input", "Output") - .HasName("files_converts_pkey"); - - b.ToTable("files_converts", "onlyoffice"); - - b.HasData( - new - { - Input = ".csv", - Output = ".ods" - }, - new - { - Input = ".csv", - Output = ".pdf" - }, - new - { - Input = ".csv", - Output = ".ots" - }, - new - { - Input = ".csv", - Output = ".xlsx" - }, - new - { - Input = ".csv", - Output = ".xlsm" - }, - new - { - Input = ".csv", - Output = ".xltm" - }, - new - { - Input = ".csv", - Output = ".xltx" - }, - new - { - Input = ".doc", - Output = ".docx" - }, - new - { - Input = ".doc", - Output = ".docm" - }, - new - { - Input = ".doc", - Output = ".dotm" - }, - new - { - Input = ".doc", - Output = ".dotx" - }, - new - { - Input = ".doc", - Output = ".epub" - }, - new - { - Input = ".doc", - Output = ".fb2" - }, - new - { - Input = ".doc", - Output = ".html" - }, - new - { - Input = ".doc", - Output = ".ott" - }, - new - { - Input = ".doc", - Output = ".odt" - }, - new - { - Input = ".doc", - Output = ".pdf" - }, - new - { - Input = ".doc", - Output = ".rtf" - }, - new - { - Input = ".doc", - Output = ".txt" - }, - new - { - Input = ".docm", - Output = ".docx" - }, - new - { - Input = ".docm", - Output = ".dotm" - }, - new - { - Input = ".docm", - Output = ".html" - }, - new - { - Input = ".docm", - Output = ".dotx" - }, - new - { - Input = ".docm", - Output = ".epub" - }, - new - { - Input = ".docm", - Output = ".fb2" - }, - new - { - Input = ".docm", - Output = ".ott" - }, - new - { - Input = ".docm", - Output = ".odt" - }, - new - { - Input = ".docm", - Output = ".pdf" - }, - new - { - Input = ".docm", - Output = ".rtf" - }, - new - { - Input = ".docm", - Output = ".txt" - }, - new - { - Input = ".doct", - Output = ".docx" - }, - new - { - Input = ".docx", - Output = ".odt" - }, - new - { - Input = ".docx", - Output = ".pdf" - }, - new - { - Input = ".docx", - Output = ".rtf" - }, - new - { - Input = ".docx", - Output = ".txt" - }, - new - { - Input = ".docx", - Output = ".html" - }, - new - { - Input = ".docx", - Output = ".dotm" - }, - new - { - Input = ".docx", - Output = ".dotx" - }, - new - { - Input = ".docx", - Output = ".epub" - }, - new - { - Input = ".docx", - Output = ".fb2" - }, - new - { - Input = ".docx", - Output = ".ott" - }, - new - { - Input = ".docx", - Output = ".docm" - }, - new - { - Input = ".docx", - Output = ".docxf" - }, - new - { - Input = ".docxf", - Output = ".docm" - }, - new - { - Input = ".docxf", - Output = ".docx" - }, - new - { - Input = ".docxf", - Output = ".dotm" - }, - new - { - Input = ".docxf", - Output = ".odt" - }, - new - { - Input = ".docxf", - Output = ".oform" - }, - new - { - Input = ".docxf", - Output = ".pdf" - }, - new - { - Input = ".docxf", - Output = ".rtf" - }, - new - { - Input = ".docxf", - Output = ".txt" - }, - new - { - Input = ".docxf", - Output = ".dotx" - }, - new - { - Input = ".docxf", - Output = ".epub" - }, - new - { - Input = ".docxf", - Output = ".fb2" - }, - new - { - Input = ".docxf", - Output = ".html" - }, - new - { - Input = ".docxf", - Output = ".ott" - }, - new - { - Input = ".dot", - Output = ".docx" - }, - new - { - Input = ".dot", - Output = ".odt" - }, - new - { - Input = ".dot", - Output = ".pdf" - }, - new - { - Input = ".dot", - Output = ".rtf" - }, - new - { - Input = ".dot", - Output = ".txt" - }, - new - { - Input = ".dot", - Output = ".docm" - }, - new - { - Input = ".dot", - Output = ".dotm" - }, - new - { - Input = ".dot", - Output = ".dotx" - }, - new - { - Input = ".dot", - Output = ".epub" - }, - new - { - Input = ".dot", - Output = ".fb2" - }, - new - { - Input = ".dot", - Output = ".html" - }, - new - { - Input = ".dot", - Output = ".ott" - }, - new - { - Input = ".dotm", - Output = ".docx" - }, - new - { - Input = ".dotm", - Output = ".odt" - }, - new - { - Input = ".dotm", - Output = ".pdf" - }, - new - { - Input = ".dotm", - Output = ".rtf" - }, - new - { - Input = ".dotm", - Output = ".txt" - }, - new - { - Input = ".dotm", - Output = ".docm" - }, - new - { - Input = ".dotm", - Output = ".dotx" - }, - new - { - Input = ".dotm", - Output = ".epub" - }, - new - { - Input = ".dotm", - Output = ".fb2" - }, - new - { - Input = ".dotm", - Output = ".html" - }, - new - { - Input = ".dotm", - Output = ".ott" - }, - new - { - Input = ".dotx", - Output = ".docx" - }, - new - { - Input = ".dotx", - Output = ".odt" - }, - new - { - Input = ".dotx", - Output = ".pdf" - }, - new - { - Input = ".dotx", - Output = ".rtf" - }, - new - { - Input = ".dotx", - Output = ".txt" - }, - new - { - Input = ".dotx", - Output = ".docm" - }, - new - { - Input = ".dotx", - Output = ".dotm" - }, - new - { - Input = ".dotx", - Output = ".epub" - }, - new - { - Input = ".dotx", - Output = ".fb2" - }, - new - { - Input = ".dotx", - Output = ".html" - }, - new - { - Input = ".dotx", - Output = ".ott" - }, - new - { - Input = ".dps", - Output = ".odp" - }, - new - { - Input = ".dps", - Output = ".otp" - }, - new - { - Input = ".dps", - Output = ".pdf" - }, - new - { - Input = ".dps", - Output = ".potm" - }, - new - { - Input = ".dps", - Output = ".potx" - }, - new - { - Input = ".dps", - Output = ".ppsm" - }, - new - { - Input = ".dps", - Output = ".ppsx" - }, - new - { - Input = ".dps", - Output = ".pptm" - }, - new - { - Input = ".dps", - Output = ".pptx" - }, - new - { - Input = ".dpt", - Output = ".odp" - }, - new - { - Input = ".dpt", - Output = ".otp" - }, - new - { - Input = ".dpt", - Output = ".pdf" - }, - new - { - Input = ".dpt", - Output = ".potm" - }, - new - { - Input = ".dpt", - Output = ".potx" - }, - new - { - Input = ".dpt", - Output = ".ppsm" - }, - new - { - Input = ".dpt", - Output = ".ppsx" - }, - new - { - Input = ".dpt", - Output = ".pptm" - }, - new - { - Input = ".dpt", - Output = ".pptx" - }, - new - { - Input = ".epub", - Output = ".docx" - }, - new - { - Input = ".epub", - Output = ".odt" - }, - new - { - Input = ".epub", - Output = ".pdf" - }, - new - { - Input = ".epub", - Output = ".rtf" - }, - new - { - Input = ".epub", - Output = ".txt" - }, - new - { - Input = ".epub", - Output = ".docm" - }, - new - { - Input = ".epub", - Output = ".dotm" - }, - new - { - Input = ".epub", - Output = ".dotx" - }, - new - { - Input = ".epub", - Output = ".fb2" - }, - new - { - Input = ".epub", - Output = ".html" - }, - new - { - Input = ".epub", - Output = ".ott" - }, - new - { - Input = ".et", - Output = ".csv" - }, - new - { - Input = ".et", - Output = ".ods" - }, - new - { - Input = ".et", - Output = ".ots" - }, - new - { - Input = ".et", - Output = ".pdf" - }, - new - { - Input = ".et", - Output = ".xlsm" - }, - new - { - Input = ".et", - Output = ".xlsx" - }, - new - { - Input = ".et", - Output = ".xltm" - }, - new - { - Input = ".et", - Output = ".xltx" - }, - new - { - Input = ".ett", - Output = ".csv" - }, - new - { - Input = ".ett", - Output = ".ods" - }, - new - { - Input = ".ett", - Output = ".ots" - }, - new - { - Input = ".ett", - Output = ".pdf" - }, - new - { - Input = ".ett", - Output = ".xlsm" - }, - new - { - Input = ".ett", - Output = ".xlsx" - }, - new - { - Input = ".ett", - Output = ".xltm" - }, - new - { - Input = ".ett", - Output = ".xltx" - }, - new - { - Input = ".fb2", - Output = ".docx" - }, - new - { - Input = ".fb2", - Output = ".odt" - }, - new - { - Input = ".fb2", - Output = ".pdf" - }, - new - { - Input = ".fb2", - Output = ".rtf" - }, - new - { - Input = ".fb2", - Output = ".txt" - }, - new - { - Input = ".fb2", - Output = ".docm" - }, - new - { - Input = ".fb2", - Output = ".dotm" - }, - new - { - Input = ".fb2", - Output = ".dotx" - }, - new - { - Input = ".fb2", - Output = ".epub" - }, - new - { - Input = ".fb2", - Output = ".html" - }, - new - { - Input = ".fb2", - Output = ".ott" - }, - new - { - Input = ".fodp", - Output = ".odp" - }, - new - { - Input = ".fodp", - Output = ".pdf" - }, - new - { - Input = ".fodp", - Output = ".pptx" - }, - new - { - Input = ".fodp", - Output = ".otp" - }, - new - { - Input = ".fodp", - Output = ".potm" - }, - new - { - Input = ".fodp", - Output = ".potx" - }, - new - { - Input = ".fodp", - Output = ".ppsm" - }, - new - { - Input = ".fodp", - Output = ".ppsx" - }, - new - { - Input = ".fodp", - Output = ".pptm" - }, - new - { - Input = ".fods", - Output = ".csv" - }, - new - { - Input = ".fods", - Output = ".ods" - }, - new - { - Input = ".fods", - Output = ".pdf" - }, - new - { - Input = ".fods", - Output = ".xlsx" - }, - new - { - Input = ".fods", - Output = ".xlsm" - }, - new - { - Input = ".fods", - Output = ".xltm" - }, - new - { - Input = ".fods", - Output = ".xltx" - }, - new - { - Input = ".fods", - Output = ".ots" - }, - new - { - Input = ".fodt", - Output = ".docx" - }, - new - { - Input = ".fodt", - Output = ".odt" - }, - new - { - Input = ".fodt", - Output = ".docm" - }, - new - { - Input = ".fodt", - Output = ".pdf" - }, - new - { - Input = ".fodt", - Output = ".rtf" - }, - new - { - Input = ".fodt", - Output = ".txt" - }, - new - { - Input = ".fodt", - Output = ".dotm" - }, - new - { - Input = ".fodt", - Output = ".dotx" - }, - new - { - Input = ".fodt", - Output = ".epub" - }, - new - { - Input = ".fodt", - Output = ".fb2" - }, - new - { - Input = ".fodt", - Output = ".html" - }, - new - { - Input = ".fodt", - Output = ".ott" - }, - new - { - Input = ".htm", - Output = ".docm" - }, - new - { - Input = ".htm", - Output = ".docx" - }, - new - { - Input = ".htm", - Output = ".dotm" - }, - new - { - Input = ".htm", - Output = ".dotx" - }, - new - { - Input = ".htm", - Output = ".epub" - }, - new - { - Input = ".htm", - Output = ".fb2" - }, - new - { - Input = ".htm", - Output = ".html" - }, - new - { - Input = ".htm", - Output = ".odt" - }, - new - { - Input = ".htm", - Output = ".ott" - }, - new - { - Input = ".htm", - Output = ".pdf" - }, - new - { - Input = ".htm", - Output = ".rtf" - }, - new - { - Input = ".htm", - Output = ".txt" - }, - new - { - Input = ".html", - Output = ".docx" - }, - new - { - Input = ".html", - Output = ".odt" - }, - new - { - Input = ".html", - Output = ".pdf" - }, - new - { - Input = ".html", - Output = ".rtf" - }, - new - { - Input = ".html", - Output = ".txt" - }, - new - { - Input = ".html", - Output = ".docm" - }, - new - { - Input = ".html", - Output = ".dotm" - }, - new - { - Input = ".html", - Output = ".dotx" - }, - new - { - Input = ".html", - Output = ".epub" - }, - new - { - Input = ".html", - Output = ".fb2" - }, - new - { - Input = ".html", - Output = ".ott" - }, - new - { - Input = ".mht", - Output = ".docx" - }, - new - { - Input = ".mht", - Output = ".odt" - }, - new - { - Input = ".mht", - Output = ".pdf" - }, - new - { - Input = ".mht", - Output = ".rtf" - }, - new - { - Input = ".mht", - Output = ".txt" - }, - new - { - Input = ".mht", - Output = ".docm" - }, - new - { - Input = ".mht", - Output = ".dotm" - }, - new - { - Input = ".mht", - Output = ".dotx" - }, - new - { - Input = ".mht", - Output = ".epub" - }, - new - { - Input = ".mht", - Output = ".fb2" - }, - new - { - Input = ".mht", - Output = ".html" - }, - new - { - Input = ".mht", - Output = ".ott" - }, - new - { - Input = ".mhtml", - Output = ".docm" - }, - new - { - Input = ".mhtml", - Output = ".docx" - }, - new - { - Input = ".mhtml", - Output = ".dotm" - }, - new - { - Input = ".mhtml", - Output = ".dotx" - }, - new - { - Input = ".mhtml", - Output = ".epub" - }, - new - { - Input = ".mhtml", - Output = ".fb2" - }, - new - { - Input = ".mhtml", - Output = ".html" - }, - new - { - Input = ".mhtml", - Output = ".odt" - }, - new - { - Input = ".mhtml", - Output = ".ott" - }, - new - { - Input = ".mhtml", - Output = ".pdf" - }, - new - { - Input = ".mhtml", - Output = ".rtf" - }, - new - { - Input = ".mhtml", - Output = ".txt" - }, - new - { - Input = ".odp", - Output = ".pdf" - }, - new - { - Input = ".odp", - Output = ".pptx" - }, - new - { - Input = ".odp", - Output = ".otp" - }, - new - { - Input = ".odp", - Output = ".potm" - }, - new - { - Input = ".odp", - Output = ".potx" - }, - new - { - Input = ".odp", - Output = ".ppsm" - }, - new - { - Input = ".odp", - Output = ".ppsx" - }, - new - { - Input = ".odp", - Output = ".pptm" - }, - new - { - Input = ".otp", - Output = ".odp" - }, - new - { - Input = ".otp", - Output = ".pdf" - }, - new - { - Input = ".otp", - Output = ".potm" - }, - new - { - Input = ".otp", - Output = ".potx" - }, - new - { - Input = ".otp", - Output = ".pptm" - }, - new - { - Input = ".otp", - Output = ".ppsm" - }, - new - { - Input = ".otp", - Output = ".ppsx" - }, - new - { - Input = ".otp", - Output = ".pptx" - }, - new - { - Input = ".ods", - Output = ".csv" - }, - new - { - Input = ".ods", - Output = ".pdf" - }, - new - { - Input = ".ods", - Output = ".xlsx" - }, - new - { - Input = ".ods", - Output = ".ots" - }, - new - { - Input = ".ods", - Output = ".xlsm" - }, - new - { - Input = ".ods", - Output = ".xltm" - }, - new - { - Input = ".ods", - Output = ".xltx" - }, - new - { - Input = ".ots", - Output = ".csv" - }, - new - { - Input = ".ots", - Output = ".ods" - }, - new - { - Input = ".ots", - Output = ".pdf" - }, - new - { - Input = ".ots", - Output = ".xlsm" - }, - new - { - Input = ".ots", - Output = ".xltm" - }, - new - { - Input = ".ots", - Output = ".xltx" - }, - new - { - Input = ".ots", - Output = ".xlsx" - }, - new - { - Input = ".odt", - Output = ".docx" - }, - new - { - Input = ".odt", - Output = ".pdf" - }, - new - { - Input = ".odt", - Output = ".rtf" - }, - new - { - Input = ".odt", - Output = ".txt" - }, - new - { - Input = ".odt", - Output = ".docm" - }, - new - { - Input = ".odt", - Output = ".dotm" - }, - new - { - Input = ".odt", - Output = ".dotx" - }, - new - { - Input = ".odt", - Output = ".epub" - }, - new - { - Input = ".odt", - Output = ".fb2" - }, - new - { - Input = ".odt", - Output = ".html" - }, - new - { - Input = ".odt", - Output = ".ott" - }, - new - { - Input = ".ott", - Output = ".docx" - }, - new - { - Input = ".ott", - Output = ".odt" - }, - new - { - Input = ".ott", - Output = ".pdf" - }, - new - { - Input = ".ott", - Output = ".rtf" - }, - new - { - Input = ".ott", - Output = ".txt" - }, - new - { - Input = ".ott", - Output = ".docm" - }, - new - { - Input = ".ott", - Output = ".dotm" - }, - new - { - Input = ".ott", - Output = ".dotx" - }, - new - { - Input = ".ott", - Output = ".epub" - }, - new - { - Input = ".ott", - Output = ".fb2" - }, - new - { - Input = ".ott", - Output = ".html" - }, - new - { - Input = ".oxps", - Output = ".docm" - }, - new - { - Input = ".oxps", - Output = ".docx" - }, - new - { - Input = ".oxps", - Output = ".dotm" - }, - new - { - Input = ".oxps", - Output = ".dotx" - }, - new - { - Input = ".oxps", - Output = ".epub" - }, - new - { - Input = ".oxps", - Output = ".fb2" - }, - new - { - Input = ".oxps", - Output = ".html" - }, - new - { - Input = ".oxps", - Output = ".odt" - }, - new - { - Input = ".oxps", - Output = ".ott" - }, - new - { - Input = ".oxps", - Output = ".pdf" - }, - new - { - Input = ".oxps", - Output = ".rtf" - }, - new - { - Input = ".oxps", - Output = ".txt" - }, - new - { - Input = ".pdf", - Output = ".docm" - }, - new - { - Input = ".pdf", - Output = ".docx" - }, - new - { - Input = ".pdf", - Output = ".dotm" - }, - new - { - Input = ".pdf", - Output = ".dotx" - }, - new - { - Input = ".pdf", - Output = ".epub" - }, - new - { - Input = ".pdf", - Output = ".fb2" - }, - new - { - Input = ".pdf", - Output = ".html" - }, - new - { - Input = ".pdf", - Output = ".odt" - }, - new - { - Input = ".pdf", - Output = ".ott" - }, - new - { - Input = ".pdf", - Output = ".rtf" - }, - new - { - Input = ".pdf", - Output = ".txt" - }, - new - { - Input = ".pot", - Output = ".odp" - }, - new - { - Input = ".pot", - Output = ".pdf" - }, - new - { - Input = ".pot", - Output = ".pptx" - }, - new - { - Input = ".pot", - Output = ".otp" - }, - new - { - Input = ".pot", - Output = ".potm" - }, - new - { - Input = ".pot", - Output = ".potx" - }, - new - { - Input = ".pot", - Output = ".pptm" - }, - new - { - Input = ".pot", - Output = ".ppsm" - }, - new - { - Input = ".pot", - Output = ".ppsx" - }, - new - { - Input = ".potm", - Output = ".odp" - }, - new - { - Input = ".potm", - Output = ".pdf" - }, - new - { - Input = ".potm", - Output = ".pptx" - }, - new - { - Input = ".potm", - Output = ".otp" - }, - new - { - Input = ".potm", - Output = ".potx" - }, - new - { - Input = ".potm", - Output = ".pptm" - }, - new - { - Input = ".potm", - Output = ".ppsm" - }, - new - { - Input = ".potm", - Output = ".ppsx" - }, - new - { - Input = ".potx", - Output = ".odp" - }, - new - { - Input = ".potx", - Output = ".pdf" - }, - new - { - Input = ".potx", - Output = ".pptx" - }, - new - { - Input = ".potx", - Output = ".otp" - }, - new - { - Input = ".potx", - Output = ".potm" - }, - new - { - Input = ".potx", - Output = ".pptm" - }, - new - { - Input = ".potx", - Output = ".ppsm" - }, - new - { - Input = ".potx", - Output = ".ppsx" - }, - new - { - Input = ".pps", - Output = ".odp" - }, - new - { - Input = ".pps", - Output = ".pdf" - }, - new - { - Input = ".pps", - Output = ".pptx" - }, - new - { - Input = ".pps", - Output = ".otp" - }, - new - { - Input = ".pps", - Output = ".potm" - }, - new - { - Input = ".pps", - Output = ".potx" - }, - new - { - Input = ".pps", - Output = ".pptm" - }, - new - { - Input = ".pps", - Output = ".ppsm" - }, - new - { - Input = ".pps", - Output = ".ppsx" - }, - new - { - Input = ".ppsm", - Output = ".odp" - }, - new - { - Input = ".ppsm", - Output = ".pdf" - }, - new - { - Input = ".ppsm", - Output = ".pptx" - }, - new - { - Input = ".ppsm", - Output = ".otp" - }, - new - { - Input = ".ppsm", - Output = ".potm" - }, - new - { - Input = ".ppsm", - Output = ".potx" - }, - new - { - Input = ".ppsm", - Output = ".pptm" - }, - new - { - Input = ".ppsm", - Output = ".ppsx" - }, - new - { - Input = ".ppsx", - Output = ".odp" - }, - new - { - Input = ".ppsx", - Output = ".pdf" - }, - new - { - Input = ".ppsx", - Output = ".pptx" - }, - new - { - Input = ".ppsx", - Output = ".otp" - }, - new - { - Input = ".ppsx", - Output = ".potm" - }, - new - { - Input = ".ppsx", - Output = ".potx" - }, - new - { - Input = ".ppsx", - Output = ".ppsm" - }, - new - { - Input = ".ppsx", - Output = ".pptm" - }, - new - { - Input = ".ppt", - Output = ".odp" - }, - new - { - Input = ".ppt", - Output = ".pdf" - }, - new - { - Input = ".ppt", - Output = ".pptx" - }, - new - { - Input = ".ppt", - Output = ".otp" - }, - new - { - Input = ".ppt", - Output = ".potm" - }, - new - { - Input = ".ppt", - Output = ".potx" - }, - new - { - Input = ".ppt", - Output = ".pptm" - }, - new - { - Input = ".ppt", - Output = ".ppsm" - }, - new - { - Input = ".ppt", - Output = ".ppsx" - }, - new - { - Input = ".pptm", - Output = ".odp" - }, - new - { - Input = ".pptm", - Output = ".pdf" - }, - new - { - Input = ".pptm", - Output = ".pptx" - }, - new - { - Input = ".pptm", - Output = ".otp" - }, - new - { - Input = ".pptm", - Output = ".potm" - }, - new - { - Input = ".pptm", - Output = ".potx" - }, - new - { - Input = ".pptm", - Output = ".ppsm" - }, - new - { - Input = ".pptm", - Output = ".ppsx" - }, - new - { - Input = ".pptt", - Output = ".pptx" - }, - new - { - Input = ".pptx", - Output = ".odp" - }, - new - { - Input = ".pptx", - Output = ".pdf" - }, - new - { - Input = ".pptx", - Output = ".otp" - }, - new - { - Input = ".pptx", - Output = ".potm" - }, - new - { - Input = ".pptx", - Output = ".potx" - }, - new - { - Input = ".pptx", - Output = ".pptm" - }, - new - { - Input = ".pptx", - Output = ".ppsm" - }, - new - { - Input = ".pptx", - Output = ".ppsx" - }, - new - { - Input = ".rtf", - Output = ".odt" - }, - new - { - Input = ".rtf", - Output = ".pdf" - }, - new - { - Input = ".rtf", - Output = ".docx" - }, - new - { - Input = ".rtf", - Output = ".txt" - }, - new - { - Input = ".rtf", - Output = ".docm" - }, - new - { - Input = ".rtf", - Output = ".dotm" - }, - new - { - Input = ".rtf", - Output = ".dotx" - }, - new - { - Input = ".rtf", - Output = ".epub" - }, - new - { - Input = ".rtf", - Output = ".fb2" - }, - new - { - Input = ".rtf", - Output = ".html" - }, - new - { - Input = ".rtf", - Output = ".ott" - }, - new - { - Input = ".stw", - Output = ".docm" - }, - new - { - Input = ".stw", - Output = ".docx" - }, - new - { - Input = ".stw", - Output = ".dotm" - }, - new - { - Input = ".stw", - Output = ".dotx" - }, - new - { - Input = ".stw", - Output = ".epub" - }, - new - { - Input = ".stw", - Output = ".fb2" - }, - new - { - Input = ".stw", - Output = ".html" - }, - new - { - Input = ".stw", - Output = ".odt" - }, - new - { - Input = ".stw", - Output = ".ott" - }, - new - { - Input = ".stw", - Output = ".pdf" - }, - new - { - Input = ".stw", - Output = ".rtf" - }, - new - { - Input = ".stw", - Output = ".txt" - }, - new - { - Input = ".sxc", - Output = ".csv" - }, - new - { - Input = ".sxc", - Output = ".ods" - }, - new - { - Input = ".sxc", - Output = ".ots" - }, - new - { - Input = ".sxc", - Output = ".pdf" - }, - new - { - Input = ".sxc", - Output = ".xlsm" - }, - new - { - Input = ".sxc", - Output = ".xlsx" - }, - new - { - Input = ".sxc", - Output = ".xltm" - }, - new - { - Input = ".sxc", - Output = ".xltx" - }, - new - { - Input = ".sxi", - Output = ".odp" - }, - new - { - Input = ".sxi", - Output = ".otp" - }, - new - { - Input = ".sxi", - Output = ".pdf" - }, - new - { - Input = ".sxi", - Output = ".potm" - }, - new - { - Input = ".sxi", - Output = ".potx" - }, - new - { - Input = ".sxi", - Output = ".ppsm" - }, - new - { - Input = ".sxi", - Output = ".ppsx" - }, - new - { - Input = ".sxi", - Output = ".pptm" - }, - new - { - Input = ".sxi", - Output = ".pptx" - }, - new - { - Input = ".sxw", - Output = ".docm" - }, - new - { - Input = ".sxw", - Output = ".docx" - }, - new - { - Input = ".sxw", - Output = ".dotm" - }, - new - { - Input = ".sxw", - Output = ".dotx" - }, - new - { - Input = ".sxw", - Output = ".epub" - }, - new - { - Input = ".sxw", - Output = ".fb2" - }, - new - { - Input = ".sxw", - Output = ".html" - }, - new - { - Input = ".sxw", - Output = ".odt" - }, - new - { - Input = ".sxw", - Output = ".ott" - }, - new - { - Input = ".sxw", - Output = ".pdf" - }, - new - { - Input = ".sxw", - Output = ".rtf" - }, - new - { - Input = ".sxw", - Output = ".txt" - }, - new - { - Input = ".txt", - Output = ".pdf" - }, - new - { - Input = ".txt", - Output = ".docx" - }, - new - { - Input = ".txt", - Output = ".odt" - }, - new - { - Input = ".txt", - Output = ".rtf" - }, - new - { - Input = ".txt", - Output = ".docm" - }, - new - { - Input = ".txt", - Output = ".dotm" - }, - new - { - Input = ".txt", - Output = ".dotx" - }, - new - { - Input = ".txt", - Output = ".epub" - }, - new - { - Input = ".txt", - Output = ".fb2" - }, - new - { - Input = ".txt", - Output = ".html" - }, - new - { - Input = ".txt", - Output = ".ott" - }, - new - { - Input = ".wps", - Output = ".docm" - }, - new - { - Input = ".wps", - Output = ".docx" - }, - new - { - Input = ".wps", - Output = ".dotm" - }, - new - { - Input = ".wps", - Output = ".dotx" - }, - new - { - Input = ".wps", - Output = ".epub" - }, - new - { - Input = ".wps", - Output = ".fb2" - }, - new - { - Input = ".wps", - Output = ".html" - }, - new - { - Input = ".wps", - Output = ".odt" - }, - new - { - Input = ".wps", - Output = ".ott" - }, - new - { - Input = ".wps", - Output = ".pdf" - }, - new - { - Input = ".wps", - Output = ".rtf" - }, - new - { - Input = ".wps", - Output = ".txt" - }, - new - { - Input = ".wpt", - Output = ".docm" - }, - new - { - Input = ".wpt", - Output = ".docx" - }, - new - { - Input = ".wpt", - Output = ".dotm" - }, - new - { - Input = ".wpt", - Output = ".dotx" - }, - new - { - Input = ".wpt", - Output = ".epub" - }, - new - { - Input = ".wpt", - Output = ".fb2" - }, - new - { - Input = ".wpt", - Output = ".html" - }, - new - { - Input = ".wpt", - Output = ".odt" - }, - new - { - Input = ".wpt", - Output = ".ott" - }, - new - { - Input = ".wpt", - Output = ".pdf" - }, - new - { - Input = ".wpt", - Output = ".rtf" - }, - new - { - Input = ".wpt", - Output = ".txt" - }, - new - { - Input = ".xls", - Output = ".csv" - }, - new - { - Input = ".xls", - Output = ".ods" - }, - new - { - Input = ".xls", - Output = ".pdf" - }, - new - { - Input = ".xls", - Output = ".xlsx" - }, - new - { - Input = ".xls", - Output = ".ots" - }, - new - { - Input = ".xls", - Output = ".xlsm" - }, - new - { - Input = ".xls", - Output = ".xltm" - }, - new - { - Input = ".xls", - Output = ".xltx" - }, - new - { - Input = ".xlsb", - Output = ".csv" - }, - new - { - Input = ".xlsb", - Output = ".ods" - }, - new - { - Input = ".xlsb", - Output = ".ots" - }, - new - { - Input = ".xlsb", - Output = ".pdf" - }, - new - { - Input = ".xlsb", - Output = ".xlsm" - }, - new - { - Input = ".xlsb", - Output = ".xlsx" - }, - new - { - Input = ".xlsb", - Output = ".xltm" - }, - new - { - Input = ".xlsb", - Output = ".xltx" - }, - new - { - Input = ".xlsm", - Output = ".csv" - }, - new - { - Input = ".xlsm", - Output = ".xltm" - }, - new - { - Input = ".xlsm", - Output = ".xltx" - }, - new - { - Input = ".xlsm", - Output = ".ots" - }, - new - { - Input = ".xlsm", - Output = ".pdf" - }, - new - { - Input = ".xlsm", - Output = ".ods" - }, - new - { - Input = ".xlsm", - Output = ".xlsx" - }, - new - { - Input = ".xlsx", - Output = ".csv" - }, - new - { - Input = ".xlsx", - Output = ".ods" - }, - new - { - Input = ".xlsx", - Output = ".ots" - }, - new - { - Input = ".xlsx", - Output = ".pdf" - }, - new - { - Input = ".xlsx", - Output = ".xlsm" - }, - new - { - Input = ".xlsx", - Output = ".xltm" - }, - new - { - Input = ".xlsx", - Output = ".xltx" - }, - new - { - Input = ".xlst", - Output = ".xlsx" - }, - new - { - Input = ".xlt", - Output = ".csv" - }, - new - { - Input = ".xlt", - Output = ".ods" - }, - new - { - Input = ".xlt", - Output = ".pdf" - }, - new - { - Input = ".xlt", - Output = ".xlsx" - }, - new - { - Input = ".xlt", - Output = ".ots" - }, - new - { - Input = ".xlt", - Output = ".xlsm" - }, - new - { - Input = ".xlt", - Output = ".xltm" - }, - new - { - Input = ".xlt", - Output = ".xltx" - }, - new - { - Input = ".xltm", - Output = ".csv" - }, - new - { - Input = ".xltm", - Output = ".ods" - }, - new - { - Input = ".xltm", - Output = ".pdf" - }, - new - { - Input = ".xltm", - Output = ".ots" - }, - new - { - Input = ".xltm", - Output = ".xlsm" - }, - new - { - Input = ".xltm", - Output = ".xltx" - }, - new - { - Input = ".xltm", - Output = ".xlsx" - }, - new - { - Input = ".xltx", - Output = ".pdf" - }, - new - { - Input = ".xltx", - Output = ".csv" - }, - new - { - Input = ".xltx", - Output = ".ods" - }, - new - { - Input = ".xltx", - Output = ".ots" - }, - new - { - Input = ".xltx", - Output = ".xlsm" - }, - new - { - Input = ".xltx", - Output = ".xltm" - }, - new - { - Input = ".xltx", - Output = ".xlsx" - }, - new - { - Input = ".xml", - Output = ".docm" - }, - new - { - Input = ".xml", - Output = ".docx" - }, - new - { - Input = ".xml", - Output = ".dotm" - }, - new - { - Input = ".xml", - Output = ".dotx" - }, - new - { - Input = ".xml", - Output = ".epub" - }, - new - { - Input = ".xml", - Output = ".fb2" - }, - new - { - Input = ".xml", - Output = ".html" - }, - new - { - Input = ".xml", - Output = ".odt" - }, - new - { - Input = ".xml", - Output = ".ott" - }, - new - { - Input = ".xml", - Output = ".pdf" - }, - new - { - Input = ".xml", - Output = ".rtf" - }, - new - { - Input = ".xml", - Output = ".txt" - }, - new - { - Input = ".xps", - Output = ".docm" - }, - new - { - Input = ".xps", - Output = ".docx" - }, - new - { - Input = ".xps", - Output = ".dotm" - }, - new - { - Input = ".xps", - Output = ".dotx" - }, - new - { - Input = ".xps", - Output = ".epub" - }, - new - { - Input = ".xps", - Output = ".fb2" - }, - new - { - Input = ".xps", - Output = ".html" - }, - new - { - Input = ".xps", - Output = ".odt" - }, - new - { - Input = ".xps", - Output = ".ott" - }, - new - { - Input = ".xps", - Output = ".pdf" - }, - new - { - Input = ".xps", - Output = ".rtf" - }, - new - { - Input = ".xps", - Output = ".txt" - }); - }); - - 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 with time zone") - .HasColumnName("last_sign"); - - b.Property("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.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.HasIndex("TenantId"); - - b.ToTable("notify_queue", "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"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.TelegramUser", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("PortalUserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("portal_user_id"); - - b.Property("TelegramUserId") - .HasColumnType("bigint") - .HasColumnName("telegram_user_id"); - - b.HasKey("TenantId", "PortalUserId") - .HasName("telegram_users_pkey"); - - b.HasIndex("TelegramUserId") - .HasDatabaseName("tgId"); - - b.ToTable("telegram_users", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.TenantIpRestrictions", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("ForAdmin") - .HasColumnType("TINYINT(1)") - .HasColumnName("for_admin"); - - b.Property("Ip") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("ip"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.HasKey("Id"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_tenants_iprestrictions"); - - b.ToTable("tenants_iprestrictions", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Subscription", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Source") - .HasMaxLength(38) - .HasColumnType("character varying(38)") - .HasColumnName("source"); - - b.Property("Action") - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("action"); - - b.Property("Recipient") - .HasMaxLength(38) - .HasColumnType("character varying(38)") - .HasColumnName("recipient"); - - b.Property("Object") - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("object"); - - b.Property("Unsubscribed") - .HasColumnType("boolean") - .HasColumnName("unsubscribed"); - - b.HasKey("TenantId", "Source", "Action", "Recipient", "Object") - .HasName("core_subscription_pkey"); - - b.ToTable("core_subscription", "onlyoffice"); - - b.HasData( - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "send_whats_new", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "rooms_activity", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "6504977c-75af-4691-9099-084d3ddeea04", - Action = "new feed", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "6a598c74-91ae-437d-a5f4-ad339bd11bb2", - Action = "new post", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "853b6eb9-73ee-438d-9b09-8ffeedf36234", - Action = "new topic in forum", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "9d51954f-db9b-4aed-94e3-ed70b914e101", - Action = "new photo uploaded", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "28b10049-dd20-4f54-b986-873bc14ccfc7", - Action = "new bookmark created", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "742cf945-cbbc-4a57-82d6-1600a12cf8ca", - Action = "new wiki page", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "37620ae5-c40b-45ce-855a-39dd7d76a1fa", - Action = "BirthdayReminder", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", - Action = "sharedocument", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "6fe286a4-479e-4c25-a8d9-0156e332b0c0", - Action = "sharefolder", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "40650da3-f7c1-424c-8c89-b9c115472e08", - Action = "calendar_sharing", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "40650da3-f7c1-424c-8c89-b9c115472e08", - Action = "event_alert", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "admin_notify", - Recipient = "cd84e66b-b803-40fc-99f9-b2969a54a1de", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "SetAccess", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "ResponsibleForTask", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "AddRelationshipEvent", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "ExportCompleted", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "CreateNewContact", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "13ff36fb-0272-4887-b416-74f52b0d0b02", - Action = "ResponsibleForOpportunity", - Recipient = "abef62db-11a8-4673-9d32-ef1d8af19dc0", - Object = "", - Unsubscribed = false - }, - new - { - TenantId = -1, - Source = "asc.web.studio", - Action = "periodic_notify", - Recipient = "c5cc67d1-c3e8-43c0-a3ad-3928ae3e5b5e", - Object = "", - Unsubscribed = false - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.User", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("id"); - - b.Property("ActivationStatus") - .HasColumnType("integer") - .HasColumnName("activation_status"); - - b.Property("BirthDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("bithdate"); - - b.Property("Contacts") - .ValueGeneratedOnAdd() - .HasMaxLength(1024) - .HasColumnType("character varying(1024)") - .HasColumnName("contacts") - .HasDefaultValueSql("NULL"); - - b.Property("CreateDate") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("create_on") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("CultureName") - .ValueGeneratedOnAdd() - .HasMaxLength(20) - .HasColumnType("character varying(20)") - .HasColumnName("culture") - .HasDefaultValueSql("NULL"); - - b.Property("Email") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("email") - .HasDefaultValueSql("NULL"); - - b.Property("FirstName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("firstname"); - - b.Property("LastModified") - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified"); - - b.Property("LastName") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("lastname"); - - b.Property("Location") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("location") - .HasDefaultValueSql("NULL"); - - b.Property("MobilePhone") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("phone") - .HasDefaultValueSql("NULL"); - - b.Property("MobilePhoneActivation") - .HasColumnType("integer") - .HasColumnName("phone_activation"); - - b.Property("Notes") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("notes") - .HasDefaultValueSql("NULL"); - - b.Property("Removed") - .HasColumnType("boolean") - .HasColumnName("removed"); - - b.Property("Sex") - .HasColumnType("boolean") - .HasColumnName("sex"); - - b.Property("Sid") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("sid") - .HasDefaultValueSql("NULL"); - - b.Property("SsoNameId") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("sso_name_id") - .HasDefaultValueSql("NULL"); - - b.Property("SsoSessionId") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("sso_session_id") - .HasDefaultValueSql("NULL"); - - b.Property("Status") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("status") - .HasDefaultValueSql("1"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("TerminatedDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("terminateddate"); - - b.Property("Title") - .ValueGeneratedOnAdd() - .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("title") - .HasDefaultValueSql("NULL"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("username"); - - b.Property("WorkFromDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("workfromdate"); - - b.HasKey("Id"); - - b.HasIndex("Email") - .HasDatabaseName("email"); - - b.HasIndex("LastModified") - .HasDatabaseName("last_modified_core_user"); - - b.HasIndex("TenantId"); - - b.HasIndex("UserName", "TenantId") - .HasDatabaseName("username"); - - b.ToTable("core_user", "onlyoffice"); - - b.HasData( - new - { - Id = new Guid("66faa6e4-f133-11ea-b126-00ffeec8b4ef"), - ActivationStatus = 0, - CreateDate = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Email = "", - FirstName = "Administrator", - LastModified = new DateTime(2021, 3, 9, 9, 52, 55, 765, DateTimeKind.Utc).AddTicks(1420), - LastName = "", - MobilePhoneActivation = 0, - Removed = false, - Status = 1, - TenantId = 1, - UserName = "administrator", - WorkFromDate = new DateTime(2021, 3, 9, 9, 52, 55, 764, DateTimeKind.Utc).AddTicks(9157) - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserDav", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("UserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id"); - - b.HasKey("TenantId", "UserId") - .HasName("core_userdav_pkey"); - - b.ToTable("core_userdav", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserGroup", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.Property("Userid") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("userid"); - - b.Property("UserGroupId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("groupid"); - - b.Property("RefType") - .HasColumnType("integer") - .HasColumnName("ref_type"); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("last_modified") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("Removed") - .HasColumnType("boolean") - .HasColumnName("removed"); - - b.HasKey("TenantId", "Userid", "UserGroupId", "RefType") - .HasName("core_usergroup_pkey"); - - b.HasIndex("LastModified") - .HasDatabaseName("last_modified_core_usergroup"); - - b.ToTable("core_usergroup", "onlyoffice"); - - b.HasData( - new - { - TenantId = 1, - Userid = new Guid("66faa6e4-f133-11ea-b126-00ffeec8b4ef"), - UserGroupId = new Guid("cd84e66b-b803-40fc-99f9-b2969a54a1de"), - RefType = 0, - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - Removed = false - }); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserPhoto", b => - { - b.Property("UserId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("userid"); - - b.Property("Photo") - .IsRequired() - .HasColumnType("bytea") - .HasColumnName("photo"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.HasKey("UserId") - .HasName("core_userphoto_pkey"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_core_userphoto"); - - b.ToTable("core_userphoto", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserSecurity", b => - { - b.Property("UserId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("userid"); - - b.Property("LastModified") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("PwdHash") - .ValueGeneratedOnAdd() - .HasMaxLength(512) - .HasColumnType("character varying(512)") - .HasColumnName("pwdhash") - .HasDefaultValueSql("NULL"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.HasKey("UserId") - .HasName("core_usersecurity_pkey"); - - b.HasIndex("PwdHash") - .HasDatabaseName("pwdhash"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_core_usersecurity"); - - b.ToTable("core_usersecurity", "onlyoffice"); - - b.HasData( - new - { - UserId = new Guid("66faa6e4-f133-11ea-b126-00ffeec8b4ef"), - LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified), - PwdHash = "jGl25bVBBBW96Qi9Te4V37Fnqchz/Eu4qB9vKrRIqRg=", - TenantId = 1 - }); - }); - - modelBuilder.Entity("ASC.Core.Common.Hosting.InstanceRegistration", b => - { - b.Property("InstanceRegistrationId") - .HasColumnType("varchar(255)") - .HasColumnName("instance_registration_id") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("IsActive") - .HasColumnType("tinyint(4)") - .HasColumnName("is_active"); - - b.Property("LastUpdated") - .HasColumnType("datetime") - .HasColumnName("last_updated"); - - b.Property("WorkerTypeName") - .IsRequired() - .HasColumnType("varchar(255)") - .HasColumnName("worker_type_name") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.HasKey("InstanceRegistrationId") - .HasName("PRIMARY"); - - b.HasIndex("WorkerTypeName") - .HasDatabaseName("worker_type_name"); - - b.ToTable("hosting_instance_registration", (string)null); - }); - - modelBuilder.Entity("ASC.Data.Backup.EF.Model.BackupRecord", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("char") - .HasColumnName("id") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("CreatedOn") - .HasColumnType("datetime") - .HasColumnName("created_on"); - - b.Property("ExpiresOn") - .ValueGeneratedOnAdd() - .HasColumnType("datetime") - .HasColumnName("expires_on") - .HasDefaultValueSql("'0001-01-01 00:00:00'"); - - b.Property("Hash") - .IsRequired() - .HasMaxLength(64) - .HasColumnType("character varying(64)") - .HasColumnName("hash") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("IsScheduled") - .HasMaxLength(10) - .HasColumnType("int") - .HasColumnName("is_scheduled"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("name") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("Removed") - .HasMaxLength(10) - .HasColumnType("int") - .HasColumnName("removed"); - - b.Property("StorageBasePath") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("storage_base_path") - .HasDefaultValueSql("NULL") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("StorageParams") - .ValueGeneratedOnAdd() - .HasColumnType("text") - .HasColumnName("storage_params") - .HasDefaultValueSql("NULL") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("StoragePath") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("storage_path") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("StorageType") - .HasMaxLength(10) - .HasColumnType("int") - .HasColumnName("storage_type"); - - b.Property("TenantId") - .HasMaxLength(10) - .HasColumnType("int") - .HasColumnName("tenant_id"); - - b.HasKey("Id") - .HasName("PRIMARY"); - - b.HasIndex("ExpiresOn") - .HasDatabaseName("expires_on"); - - b.HasIndex("IsScheduled") - .HasDatabaseName("is_scheduled"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_id"); - - b.ToTable("backup_backup", (string)null); - }); - - modelBuilder.Entity("ASC.Data.Backup.EF.Model.BackupSchedule", b => - { - b.Property("TenantId") - .HasMaxLength(10) - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("BackupsStored") - .HasMaxLength(10) - .HasColumnType("integer") - .HasColumnName("backups_stored"); - - b.Property("Cron") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("cron") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("LastBackupTime") - .HasColumnType("datetime") - .HasColumnName("last_backup_time"); - - b.Property("StorageBasePath") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("storage_base_path") - .HasDefaultValueSql("NULL") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("StorageParams") - .ValueGeneratedOnAdd() - .HasColumnType("text") - .HasColumnName("storage_params") - .HasDefaultValueSql("NULL") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("StorageType") - .HasMaxLength(10) - .HasColumnType("integer") - .HasColumnName("storage_type"); - - b.HasKey("TenantId") - .HasName("PRIMARY"); - - b.ToTable("backup_schedule", (string)null); - }); - - modelBuilder.Entity("ASC.EventBus.Extensions.Logger.IntegrationEventLogEntry", b => - { - b.Property("EventId") - .ValueGeneratedOnAdd() - .HasColumnType("char(38)") - .HasColumnName("event_id") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("Content") - .IsRequired() - .HasColumnType("text") - .HasColumnName("content") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("CreateBy") - .HasColumnType("char(38)") - .HasColumnName("create_by") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("CreateOn") - .HasColumnType("datetime") - .HasColumnName("create_on"); - - b.Property("EventTypeName") - .IsRequired() - .HasColumnType("varchar(255)") - .HasColumnName("event_type_name") - .UseCollation("utf8_general_ci") - .HasAnnotation("MySql:CharSet", "utf8"); - - b.Property("State") - .HasColumnType("int(11)") - .HasColumnName("state"); - - b.Property("TenantId") - .HasColumnType("int(11)") - .HasColumnName("tenant_id"); - - b.Property("TimesSent") - .HasColumnType("int(11)") - .HasColumnName("times_sent"); - - b.Property("TransactionId") - .HasColumnType("text"); - - b.HasKey("EventId") - .HasName("PRIMARY"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_id"); - - b.ToTable("event_bus_integration_event_log", (string)null); - - b.HasAnnotation("MySql:CharSet", "utf8"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedAggregate", b => - { - b.Property("Id") - .HasMaxLength(88) - .HasColumnType("character varying(88)") - .HasColumnName("id"); - - b.Property("AggregateDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("aggregated_date"); - - b.Property("Author") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("author") - .IsFixedLength(); - - b.Property("ContextId") - .HasColumnType("text") - .HasColumnName("context_id"); - - b.Property("CreatedDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("created_date"); - - b.Property("GroupId") - .ValueGeneratedOnAdd() - .HasMaxLength(70) - .HasColumnType("character varying(70)") - .HasColumnName("group_id") - .HasDefaultValueSql("NULL"); - - b.Property("Json") - .IsRequired() - .HasColumnType("text") - .HasColumnName("json"); - - b.Property("Keywords") - .HasColumnType("text") - .HasColumnName("keywords"); - - b.Property("ModifiedBy") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("modified_by") - .IsFixedLength(); - - b.Property("ModifiedDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("modified_date"); - - b.Property("Module") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("module"); - - b.Property("Product") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("product"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "AggregateDate") - .HasDatabaseName("aggregated_date"); - - b.HasIndex("TenantId", "ModifiedDate") - .HasDatabaseName("modified_date"); - - b.HasIndex("TenantId", "Product") - .HasDatabaseName("product"); - - b.ToTable("feed_aggregate", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedLast", b => - { - b.Property("LastKey") - .HasMaxLength(128) - .HasColumnType("character varying(128)") - .HasColumnName("last_key"); - - b.Property("LastDate") - .HasColumnType("timestamp with time zone") - .HasColumnName("last_date"); - - b.HasKey("LastKey") - .HasName("feed_last_pkey"); - - b.ToTable("feed_last", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedReaded", b => - { - b.Property("UserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Module") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("module"); - - b.Property("TimeStamp") - .HasColumnType("timestamp with time zone") - .HasColumnName("timestamp"); - - b.HasKey("UserId", "TenantId", "Module") - .HasName("feed_readed_pkey"); - - b.HasIndex("TenantId"); - - b.ToTable("feed_readed", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedUsers", b => - { - b.Property("FeedId") - .HasMaxLength(88) - .HasColumnType("character varying(88)") - .HasColumnName("feed_id"); - - b.Property("UserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id") - .IsFixedLength(); - - b.HasKey("FeedId", "UserId") - .HasName("feed_users_pkey"); - - b.HasIndex("UserId") - .HasDatabaseName("user_id_feed_users"); - - b.ToTable("feed_users", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFile", b => - { - b.Property("Id") - .HasColumnType("integer") - .HasColumnName("id"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Version") - .HasColumnType("integer") - .HasColumnName("version"); - - b.Property("Category") - .HasColumnType("integer") - .HasColumnName("category"); - - b.Property("Changes") - .HasColumnType("text") - .HasColumnName("changes"); - - b.Property("Comment") - .ValueGeneratedOnAdd() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("comment") - .HasDefaultValueSql("NULL::character varying"); - - b.Property("ContentLength") - .ValueGeneratedOnAdd() - .HasColumnType("bigint") - .HasColumnName("content_length") - .HasDefaultValueSql("'0'::bigint"); - - b.Property("ConvertedType") - .ValueGeneratedOnAdd() - .HasMaxLength(10) - .HasColumnType("character varying(10)") - .HasColumnName("converted_type") - .HasDefaultValueSql("NULL::character varying"); - - b.Property("CreateBy") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("create_by") - .IsFixedLength(); - - b.Property("CreateOn") - .HasColumnType("timestamp with time zone") - .HasColumnName("create_on"); - - b.Property("CurrentVersion") - .HasColumnType("boolean") - .HasColumnName("current_version"); - - b.Property("Encrypted") - .HasColumnType("boolean") - .HasColumnName("encrypted"); - - b.Property("FileStatus") - .HasColumnType("integer") - .HasColumnName("file_status"); - - b.Property("Forcesave") - .HasColumnType("integer") - .HasColumnName("forcesave"); - - b.Property("ModifiedBy") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("modified_by") - .IsFixedLength(); - - b.Property("ModifiedOn") - .HasColumnType("timestamp with time zone") - .HasColumnName("modified_on"); - - b.Property("ParentId") - .HasColumnType("integer") - .HasColumnName("folder_id"); - - b.Property("ThumbnailStatus") - .HasColumnType("integer") - .HasColumnName("thumb"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("character varying(400)") - .HasColumnName("title"); - - b.Property("VersionGroup") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("version_group") - .HasDefaultValueSql("1"); - - b.HasKey("Id", "TenantId", "Version") - .HasName("files_file_pkey"); - - b.HasIndex("Id") - .HasDatabaseName("id"); - - b.HasIndex("ModifiedOn") - .HasDatabaseName("modified_on_files_file"); - - b.HasIndex("ParentId") - .HasDatabaseName("folder_id"); - - b.HasIndex("TenantId"); - - b.ToTable("files_file", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesBunchObjects", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("RightNode") - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("right_node"); - - b.Property("LeftNode") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("left_node"); - - b.HasKey("TenantId", "RightNode") - .HasName("files_bunch_objects_pkey"); - - b.HasIndex("LeftNode") - .HasDatabaseName("left_node"); - - b.ToTable("files_bunch_objects", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesLink", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("SourceId") - .HasMaxLength(32) - .HasColumnType("character varying(32)") - .HasColumnName("source_id"); - - b.Property("LinkedId") - .HasMaxLength(32) - .HasColumnType("character varying(32)") - .HasColumnName("linked_id"); - - b.Property("LinkedFor") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("linked_for") - .HasDefaultValueSql("NULL::bpchar") - .IsFixedLength(); - - b.HasKey("TenantId", "SourceId", "LinkedId") - .HasName("files_link_pkey"); - - b.HasIndex("TenantId", "SourceId", "LinkedId", "LinkedFor") - .HasDatabaseName("linked_for_files_link"); - - b.ToTable("files_link", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesProperties", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("EntryId") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("entry_id"); - - b.Property("Data") - .IsRequired() - .HasColumnType("text") - .HasColumnName("data"); - - b.HasKey("TenantId", "EntryId") - .HasName("files_properties_pkey"); - - b.ToTable("files_properties", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesSecurity", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("EntryId") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("entry_id"); - - b.Property("EntryType") - .HasColumnType("integer") - .HasColumnName("entry_type"); - - b.Property("Subject") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("subject") - .IsFixedLength(); - - b.Property("FileShareOptions") - .HasColumnType("text") - .HasColumnName("options"); - - b.Property("Owner") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("owner") - .IsFixedLength(); - - b.Property("Share") - .HasColumnType("integer") - .HasColumnName("security"); - - b.Property("SubjectType") - .HasColumnType("integer") - .HasColumnName("subject_type"); - - b.Property("TimeStamp") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("timestamp") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.HasKey("TenantId", "EntryId", "EntryType", "Subject") - .HasName("files_security_pkey"); - - b.HasIndex("Owner") - .HasDatabaseName("owner"); - - b.HasIndex("EntryId", "TenantId", "EntryType", "Owner") - .HasDatabaseName("tenant_id_files_security"); - - b.ToTable("files_security", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTag", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Name") - .IsRequired() - .HasMaxLength(255) - .HasColumnType("character varying(255)") - .HasColumnName("name"); - - b.Property("Owner") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("owner"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Type") - .HasColumnType("integer") - .HasColumnName("flag"); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Owner", "Name", "Type") - .HasDatabaseName("name_files_tag"); - - b.ToTable("files_tag", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTagLink", b => - { - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("TagId") - .HasColumnType("integer") - .HasColumnName("tag_id"); - - b.Property("EntryType") - .HasColumnType("integer") - .HasColumnName("entry_type"); - - b.Property("EntryId") - .HasMaxLength(32) - .HasColumnType("character varying(32)") - .HasColumnName("entry_id"); - - b.Property("Count") - .HasColumnType("integer") - .HasColumnName("tag_count"); - - b.Property("CreateBy") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("create_by") - .HasDefaultValueSql("NULL::bpchar") - .IsFixedLength(); - - b.Property("CreateOn") - .HasColumnType("timestamp with time zone") - .HasColumnName("create_on"); - - b.HasKey("TenantId", "TagId", "EntryType", "EntryId") - .HasName("files_tag_link_pkey"); - - b.HasIndex("CreateOn") - .HasDatabaseName("create_on_files_tag_link"); - - b.HasIndex("TenantId", "EntryType", "EntryId") - .HasDatabaseName("entry_id"); - - b.ToTable("files_tag_link", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyAccount", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("CreateOn") - .HasColumnType("timestamp with time zone") - .HasColumnName("create_on"); - - b.Property("FolderId") - .HasColumnType("text") - .HasColumnName("folder_id"); - - b.Property("FolderType") - .HasColumnType("integer") - .HasColumnName("folder_type"); - - b.Property("HasLogo") - .HasColumnType("boolean") - .HasColumnName("has_logo"); - - b.Property("Password") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("character varying(100)") - .HasColumnName("password"); - - b.Property("Private") - .HasColumnType("boolean") - .HasColumnName("private"); - - b.Property("Provider") - .IsRequired() - .ValueGeneratedOnAdd() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("provider") - .HasDefaultValueSql("'0'::character varying"); - - b.Property("RoomType") - .HasColumnType("integer") - .HasColumnName("room_type"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("character varying(400)") - .HasColumnName("customer_title"); - - b.Property("Token") - .HasColumnType("text") - .HasColumnName("token"); - - b.Property("Url") - .HasColumnType("text") - .HasColumnName("url"); - - b.Property("UserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id"); - - b.Property("UserName") - .IsRequired() - .HasMaxLength(100) - .HasColumnType("character varying(100)") - .HasColumnName("user_name"); - - b.HasKey("Id"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_id"); - - b.ToTable("files_thirdparty_account", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyApp", b => - { - b.Property("UserId") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id"); - - b.Property("App") - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("app"); - - b.Property("ModifiedOn") - .ValueGeneratedOnAdd() - .HasColumnType("timestamp with time zone") - .HasColumnName("modified_on") - .HasDefaultValueSql("CURRENT_TIMESTAMP"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Token") - .HasColumnType("text") - .HasColumnName("token"); - - b.HasKey("UserId", "App") - .HasName("files_thirdparty_app_pkey"); - - b.HasIndex("TenantId"); - - b.ToTable("files_thirdparty_app", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyIdMapping", b => - { - b.Property("HashId") - .HasMaxLength(32) - .HasColumnType("character(32)") - .HasColumnName("hash_id") - .IsFixedLength(); - - b.Property("Id") - .IsRequired() - .HasColumnType("text") - .HasColumnName("id"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.HasKey("HashId") - .HasName("files_thirdparty_id_mapping_pkey"); - - b.HasIndex("TenantId", "HashId") - .HasDatabaseName("index_1"); - - b.ToTable("files_thirdparty_id_mapping", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFolder", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("CreateBy") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("create_by") - .IsFixedLength(); - - b.Property("CreateOn") - .HasColumnType("timestamp with time zone") - .HasColumnName("create_on"); - - b.Property("FilesCount") - .HasColumnType("integer") - .HasColumnName("filesCount"); - - b.Property("FolderType") - .HasColumnType("integer") - .HasColumnName("folder_type"); - - b.Property("FoldersCount") - .HasColumnType("integer") - .HasColumnName("foldersCount"); - - b.Property("HasLogo") - .HasColumnType("boolean") - .HasColumnName("has_logo"); - - b.Property("ModifiedBy") - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("modified_by") - .IsFixedLength(); - - b.Property("ModifiedOn") - .HasColumnType("timestamp with time zone") - .HasColumnName("modified_on"); - - b.Property("ParentId") - .HasColumnType("integer") - .HasColumnName("parent_id"); - - b.Property("Private") - .HasColumnType("boolean") - .HasColumnName("private"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Title") - .IsRequired() - .HasMaxLength(400) - .HasColumnType("character varying(400)") - .HasColumnName("title"); - - b.HasKey("Id"); - - b.HasIndex("ModifiedOn") - .HasDatabaseName("modified_on_files_folder"); - - b.HasIndex("TenantId", "ParentId") - .HasDatabaseName("parent_id"); - - b.ToTable("files_folder", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFolderTree", b => - { - b.Property("ParentId") - .HasColumnType("integer") - .HasColumnName("parent_id"); - - b.Property("FolderId") - .HasColumnType("integer") - .HasColumnName("folder_id"); - - b.Property("Level") - .HasColumnType("integer") - .HasColumnName("level"); - - b.HasKey("ParentId", "FolderId") - .HasName("files_folder_tree_pkey"); - - b.HasIndex("FolderId") - .HasDatabaseName("folder_id_files_folder_tree"); - - b.ToTable("files_folder_tree", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.MessagingSystem.EF.Model.AuditEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Action") - .HasColumnType("integer") - .HasColumnName("action"); - - b.Property("Browser") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("browser") - .HasDefaultValueSql("NULL"); - - b.Property("Date") - .HasColumnType("timestamp with time zone") - .HasColumnName("date"); - - b.Property("DescriptionRaw") - .ValueGeneratedOnAdd() - .HasMaxLength(20000) - .HasColumnType("character varying(20000)") - .HasColumnName("description") - .HasDefaultValueSql("NULL"); - - b.Property("Initiator") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("initiator") - .HasDefaultValueSql("NULL"); - - b.Property("Ip") - .ValueGeneratedOnAdd() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("ip") - .HasDefaultValueSql("NULL"); - - b.Property("Page") - .ValueGeneratedOnAdd() - .HasMaxLength(300) - .HasColumnType("character varying(300)") - .HasColumnName("page") - .HasDefaultValueSql("NULL"); - - b.Property("Platform") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("platform") - .HasDefaultValueSql("NULL"); - - b.Property("Target") - .HasColumnType("text") - .HasColumnName("target"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("UserId") - .ValueGeneratedOnAdd() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id") - .HasDefaultValueSql("NULL") - .IsFixedLength(); - - b.HasKey("Id"); - - b.HasIndex("TenantId", "Date") - .HasDatabaseName("date"); - - b.ToTable("audit_events", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.MessagingSystem.EF.Model.LoginEvent", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("integer") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Action") - .HasColumnType("integer") - .HasColumnName("action"); - - b.Property("Active") - .HasColumnType("boolean") - .HasColumnName("active"); - - b.Property("Browser") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("browser") - .HasDefaultValueSql("NULL::character varying"); - - b.Property("Date") - .HasColumnType("timestamp with time zone") - .HasColumnName("date"); - - b.Property("DescriptionRaw") - .ValueGeneratedOnAdd() - .HasMaxLength(500) - .HasColumnType("character varying(500)") - .HasColumnName("description") - .HasDefaultValueSql("NULL"); - - b.Property("Ip") - .ValueGeneratedOnAdd() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("ip") - .HasDefaultValueSql("NULL"); - - b.Property("Login") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("login") - .HasDefaultValueSql("NULL"); - - b.Property("Page") - .ValueGeneratedOnAdd() - .HasMaxLength(300) - .HasColumnType("character varying(300)") - .HasColumnName("page") - .HasDefaultValueSql("NULL"); - - b.Property("Platform") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("platform") - .HasDefaultValueSql("NULL"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("UserId") - .IsRequired() - .HasMaxLength(38) - .HasColumnType("uuid") - .HasColumnName("user_id") - .IsFixedLength(); - - b.HasKey("Id"); - - b.HasIndex("Date") - .HasDatabaseName("date_login_events"); - - b.HasIndex("TenantId"); - - b.HasIndex("UserId", "TenantId") - .HasDatabaseName("tenant_id_login_events"); - - b.ToTable("login_events", "onlyoffice"); - }); - - modelBuilder.Entity("ASC.Webhooks.Core.EF.Model.DbWebhook", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Method") - .ValueGeneratedOnAdd() - .HasMaxLength(10) - .HasColumnType("character varying(10)") - .HasColumnName("method") - .HasDefaultValueSql("''"); - - b.Property("Route") - .ValueGeneratedOnAdd() - .HasMaxLength(200) - .HasColumnType("character varying(200)") - .HasColumnName("route") - .HasDefaultValueSql("''"); - - b.HasKey("Id") - .HasName("PRIMARY"); - - b.ToTable("webhooks", (string)null); - }); - - modelBuilder.Entity("ASC.Webhooks.Core.EF.Model.WebhooksConfig", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("Enabled") - .ValueGeneratedOnAdd() - .HasColumnType("boolean") - .HasColumnName("enabled") - .HasDefaultValueSql("true"); - - b.Property("Name") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("name"); - - b.Property("SSL") - .ValueGeneratedOnAdd() - .HasColumnType("boolean") - .HasColumnName("ssl") - .HasDefaultValueSql("true"); - - b.Property("SecretKey") - .ValueGeneratedOnAdd() - .HasMaxLength(50) - .HasColumnType("character varying(50)") - .HasColumnName("secret_key") - .HasDefaultValueSql("''"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Uri") - .ValueGeneratedOnAdd() - .HasColumnType("text") - .HasColumnName("uri") - .HasDefaultValueSql("''"); - - b.HasKey("Id") - .HasName("PRIMARY"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_id"); - - b.ToTable("webhooks_config", (string)null); - }); - - modelBuilder.Entity("ASC.Webhooks.Core.EF.Model.WebhooksLog", b => - { - b.Property("Id") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasColumnName("id") - .HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn); - - b.Property("ConfigId") - .HasColumnType("int") - .HasColumnName("config_id"); - - b.Property("CreationTime") - .HasColumnType("datetime") - .HasColumnName("creation_time"); - - b.Property("Delivery") - .HasColumnType("datetime") - .HasColumnName("delivery"); - - b.Property("RequestHeaders") - .HasColumnType("json") - .HasColumnName("request_headers"); - - b.Property("RequestPayload") - .IsRequired() - .HasColumnType("text") - .HasColumnName("request_payload"); - - b.Property("ResponseHeaders") - .HasColumnType("json") - .HasColumnName("response_headers"); - - b.Property("ResponsePayload") - .HasColumnType("text") - .HasColumnName("response_payload"); - - b.Property("Status") - .HasColumnType("int") - .HasColumnName("status"); - - b.Property("TenantId") - .HasColumnType("integer") - .HasColumnName("tenant_id"); - - b.Property("Uid") - .IsRequired() - .HasMaxLength(50) - .HasColumnType("varchar") - .HasColumnName("uid"); - - b.Property("WebhookId") - .HasColumnType("int") - .HasColumnName("webhook_id"); - - b.HasKey("Id") - .HasName("PRIMARY"); - - b.HasIndex("ConfigId"); - - b.HasIndex("TenantId") - .HasDatabaseName("tenant_id"); - - b.ToTable("webhooks_logs", (string)null); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Acl", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbGroup", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbQuotaRow", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbSubscriptionMethod", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbTariff", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.DbTariffRow", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.FireBaseUser", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbCoreSettings", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioSettings", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.DbWebstudioUserVisit", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.NotifyQueue", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.TelegramUser", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Model.TenantIpRestrictions", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.Subscription", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.User", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserDav", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserGroup", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserPhoto", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Core.Common.EF.UserSecurity", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Data.Backup.EF.Model.BackupRecord", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Data.Backup.EF.Model.BackupSchedule", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithOne() - .HasForeignKey("ASC.Data.Backup.EF.Model.BackupSchedule", "TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.EventBus.Extensions.Logger.IntegrationEventLogEntry", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedAggregate", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedReaded", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Feed.Model.FeedUsers", b => - { - b.HasOne("ASC.Feed.Model.FeedAggregate", "Feed") - .WithMany() - .HasForeignKey("FeedId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Feed"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFile", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesBunchObjects", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesLink", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesProperties", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesSecurity", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTag", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTagLink", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyAccount", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyApp", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyIdMapping", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFolder", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Files.Core.EF.DbFolderTree", b => - { - b.HasOne("ASC.Files.Core.EF.DbFolder", "Folder") - .WithMany() - .HasForeignKey("FolderId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Folder"); - }); - - modelBuilder.Entity("ASC.MessagingSystem.EF.Model.AuditEvent", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.MessagingSystem.EF.Model.LoginEvent", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Webhooks.Core.EF.Model.WebhooksConfig", b => - { - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Tenant"); - }); - - modelBuilder.Entity("ASC.Webhooks.Core.EF.Model.WebhooksLog", b => - { - b.HasOne("ASC.Webhooks.Core.EF.Model.WebhooksConfig", "Config") - .WithMany() - .HasForeignKey("ConfigId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.HasOne("ASC.Core.Common.EF.Model.DbTenant", "Tenant") - .WithMany() - .HasForeignKey("TenantId") - .OnDelete(DeleteBehavior.Cascade) - .IsRequired(); - - b.Navigation("Config"); - - b.Navigation("Tenant"); - }); -#pragma warning restore 612, 618 - } - } -}