From c014f904cf055aed84893687e110e649ec939072 Mon Sep 17 00:00:00 2001 From: MaksimChegulov Date: Fri, 16 Jun 2023 12:53:27 +0300 Subject: [PATCH] Database: added new indexes to tables files_folder/files_file --- ...094928_FilesDbContext_Upgrade2.Designer.cs | 3550 +++++++++++++++++ .../20230616094928_FilesDbContext_Upgrade2.cs | 63 + .../FilesDbContextModelSnapshot.cs | 15 + ...094928_FilesDbContext_Upgrade2.Designer.cs | 3468 ++++++++++++++++ .../20230616094928_FilesDbContext_Upgrade2.cs | 73 + .../FilesDbContextModelSnapshot.cs | 15 + products/ASC.Files/Core/Core/EF/DbFile.cs | 20 +- products/ASC.Files/Core/Core/EF/DbFolder.cs | 12 + 8 files changed, 7215 insertions(+), 1 deletion(-) create mode 100644 migrations/mysql/FilesDbContext/20230616094928_FilesDbContext_Upgrade2.Designer.cs create mode 100644 migrations/mysql/FilesDbContext/20230616094928_FilesDbContext_Upgrade2.cs create mode 100644 migrations/postgre/FilesDbContext/20230616094928_FilesDbContext_Upgrade2.Designer.cs create mode 100644 migrations/postgre/FilesDbContext/20230616094928_FilesDbContext_Upgrade2.cs diff --git a/migrations/mysql/FilesDbContext/20230616094928_FilesDbContext_Upgrade2.Designer.cs b/migrations/mysql/FilesDbContext/20230616094928_FilesDbContext_Upgrade2.Designer.cs new file mode 100644 index 0000000000..e8de8dd1a7 --- /dev/null +++ b/migrations/mysql/FilesDbContext/20230616094928_FilesDbContext_Upgrade2.Designer.cs @@ -0,0 +1,3550 @@ +// +using System; +using ASC.Files.Core.EF; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace ASC.Migrations.MySql.Migrations.FilesDb +{ + [DbContext(typeof(FilesDbContext))] + [Migration("20230616094928_FilesDbContext_Upgrade2")] + partial class FilesDbContextUpgrade2 + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "7.0.2") + .HasAnnotation("Relational:MaxIdentifierLength", 64); + + modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenant", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("id"); + + b.Property("Alias") + .IsRequired() + .HasColumnType("varchar(100)") + .HasColumnName("alias") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("Calls") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasColumnName("calls") + .HasDefaultValueSql("'1'"); + + b.Property("CreationDateTime") + .HasColumnType("datetime") + .HasColumnName("creationdatetime"); + + b.Property("Industry") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("industry") + .HasDefaultValueSql("'0'"); + + b.Property("Language") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnType("char(10)") + .HasColumnName("language") + .HasDefaultValueSql("'en-US'") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("LastModified") + .HasColumnType("timestamp") + .HasColumnName("last_modified"); + + b.Property("MappedDomain") + .HasColumnType("varchar(100)") + .HasColumnName("mappeddomain") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("Name") + .IsRequired() + .HasColumnType("varchar(255)") + .HasColumnName("name") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("OwnerId") + .HasColumnType("varchar(38)") + .HasColumnName("owner_id") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("PaymentId") + .HasColumnType("varchar(38)") + .HasColumnName("payment_id") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("Spam") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasColumnName("spam") + .HasDefaultValueSql("'1'"); + + b.Property("Status") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("status") + .HasDefaultValueSql("'0'"); + + b.Property("StatusChanged") + .HasColumnType("datetime") + .HasColumnName("statuschanged"); + + b.Property("TimeZone") + .HasColumnType("varchar(50)") + .HasColumnName("timezone") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("TrustedDomainsEnabled") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("trusteddomainsenabled") + .HasDefaultValueSql("'1'"); + + b.Property("TrustedDomainsRaw") + .HasColumnType("varchar(1024)") + .HasColumnName("trusteddomains") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("Version") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("version") + .HasDefaultValueSql("'2'"); + + b.Property("Version_Changed") + .HasColumnType("datetime") + .HasColumnName("version_changed"); + + b.HasKey("Id"); + + b.HasIndex("Alias") + .IsUnique() + .HasDatabaseName("alias"); + + b.HasIndex("LastModified") + .HasDatabaseName("last_modified"); + + b.HasIndex("MappedDomain") + .HasDatabaseName("mappeddomain"); + + b.HasIndex("Version") + .HasDatabaseName("version"); + + b.ToTable("tenants_tenants", (string)null); + + b.HasAnnotation("MySql:CharSet", "utf8"); + + 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 = "66faa6e4-f133-11ea-b126-00ffeec8b4ef", + Spam = false, + Status = 0, + TrustedDomainsEnabled = 0, + Version = 0 + }); + }); + + modelBuilder.Entity("ASC.Core.Common.EF.Model.FilesConverts", b => + { + b.Property("Input") + .HasColumnType("varchar(50)") + .HasColumnName("input") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("Output") + .HasColumnType("varchar(50)") + .HasColumnName("output") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.HasKey("Input", "Output") + .HasName("PRIMARY"); + + b.ToTable("files_converts", (string)null); + + b.HasAnnotation("MySql:CharSet", "utf8"); + + 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.Files.Core.EF.DbFile", b => + { + b.Property("TenantId") + .HasColumnType("int") + .HasColumnName("tenant_id"); + + b.Property("Id") + .HasColumnType("int") + .HasColumnName("id"); + + b.Property("Version") + .HasColumnType("int") + .HasColumnName("version"); + + b.Property("Category") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("category") + .HasDefaultValueSql("'0'"); + + b.Property("Changes") + .HasColumnType("mediumtext") + .HasColumnName("changes") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("Comment") + .HasColumnType("varchar(255)") + .HasColumnName("comment") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("ContentLength") + .ValueGeneratedOnAdd() + .HasColumnType("bigint") + .HasColumnName("content_length") + .HasDefaultValueSql("'0'"); + + b.Property("ConvertedType") + .HasColumnType("varchar(10)") + .HasColumnName("converted_type") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("CreateBy") + .IsRequired() + .HasColumnType("char(38)") + .HasColumnName("create_by") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("CreateOn") + .HasColumnType("datetime") + .HasColumnName("create_on"); + + b.Property("CurrentVersion") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasColumnName("current_version") + .HasDefaultValueSql("'0'"); + + b.Property("Encrypted") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasColumnName("encrypted") + .HasDefaultValueSql("'0'"); + + b.Property("FileStatus") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("file_status") + .HasDefaultValueSql("'0'"); + + b.Property("Forcesave") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("forcesave") + .HasDefaultValueSql("'0'"); + + b.Property("ModifiedBy") + .IsRequired() + .HasColumnType("char(38)") + .HasColumnName("modified_by") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("ModifiedOn") + .HasColumnType("datetime") + .HasColumnName("modified_on"); + + b.Property("ParentId") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("folder_id") + .HasDefaultValueSql("'0'"); + + b.Property("ThumbnailStatus") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("thumb") + .HasDefaultValueSql("'0'"); + + b.Property("Title") + .IsRequired() + .HasColumnType("varchar(400)") + .HasColumnName("title") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("VersionGroup") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("version_group") + .HasDefaultValueSql("'1'"); + + b.HasKey("TenantId", "Id", "Version") + .HasName("PRIMARY"); + + b.HasIndex("Id") + .HasDatabaseName("id"); + + b.HasIndex("ModifiedOn") + .HasDatabaseName("modified_on"); + + b.HasIndex("ParentId") + .HasDatabaseName("folder_id"); + + b.HasIndex("TenantId", "ParentId", "ContentLength") + .HasDatabaseName("tenant_id_folder_id_content_length"); + + b.HasIndex("TenantId", "ParentId", "ModifiedOn") + .HasDatabaseName("tenant_id_folder_id_modified_on"); + + b.HasIndex("TenantId", "ParentId", "Title") + .HasDatabaseName("tenant_id_folder_id_title"); + + b.ToTable("files_file", (string)null); + + b.HasAnnotation("MySql:CharSet", "utf8"); + }); + + modelBuilder.Entity("ASC.Files.Core.EF.DbFilesBunchObjects", b => + { + b.Property("TenantId") + .HasColumnType("int") + .HasColumnName("tenant_id"); + + b.Property("RightNode") + .HasColumnType("varchar(255)") + .HasColumnName("right_node") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("LeftNode") + .IsRequired() + .HasColumnType("varchar(255)") + .HasColumnName("left_node") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.HasKey("TenantId", "RightNode") + .HasName("PRIMARY"); + + b.HasIndex("LeftNode") + .HasDatabaseName("left_node"); + + b.ToTable("files_bunch_objects", (string)null); + + b.HasAnnotation("MySql:CharSet", "utf8"); + }); + + modelBuilder.Entity("ASC.Files.Core.EF.DbFilesLink", b => + { + b.Property("TenantId") + .HasColumnType("int") + .HasColumnName("tenant_id"); + + b.Property("SourceId") + .HasColumnType("varchar(32)") + .HasColumnName("source_id") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("LinkedId") + .HasColumnType("varchar(32)") + .HasColumnName("linked_id") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("LinkedFor") + .IsRequired() + .HasColumnType("char(38)") + .HasColumnName("linked_for") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.HasKey("TenantId", "SourceId", "LinkedId") + .HasName("PRIMARY"); + + b.HasIndex("TenantId", "SourceId", "LinkedId", "LinkedFor") + .HasDatabaseName("linked_for"); + + b.ToTable("files_link", (string)null); + + b.HasAnnotation("MySql:CharSet", "utf8"); + }); + + modelBuilder.Entity("ASC.Files.Core.EF.DbFilesProperties", b => + { + b.Property("TenantId") + .HasColumnType("int") + .HasColumnName("tenant_id"); + + b.Property("EntryId") + .HasColumnType("varchar(32)") + .HasColumnName("entry_id") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("Data") + .HasColumnType("mediumtext") + .HasColumnName("data") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.HasKey("TenantId", "EntryId") + .HasName("PRIMARY"); + + b.ToTable("files_properties", (string)null); + }); + + modelBuilder.Entity("ASC.Files.Core.EF.DbFilesSecurity", b => + { + b.Property("TenantId") + .HasColumnType("int") + .HasColumnName("tenant_id"); + + b.Property("EntryId") + .HasColumnType("varchar(50)") + .HasColumnName("entry_id") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("EntryType") + .HasColumnType("int") + .HasColumnName("entry_type"); + + b.Property("Subject") + .HasColumnType("char(38)") + .HasColumnName("subject") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("FileShareOptions") + .HasColumnType("text") + .HasColumnName("options") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("Owner") + .IsRequired() + .HasColumnType("char(38)") + .HasColumnName("owner") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("Share") + .HasColumnType("int") + .HasColumnName("security"); + + b.Property("SubjectType") + .HasColumnType("int") + .HasColumnName("subject_type"); + + b.Property("TimeStamp") + .HasColumnType("timestamp") + .HasColumnName("timestamp"); + + b.HasKey("TenantId", "EntryId", "EntryType", "Subject") + .HasName("PRIMARY"); + + b.HasIndex("Owner") + .HasDatabaseName("owner"); + + b.HasIndex("TenantId", "EntryType", "EntryId", "Owner") + .HasDatabaseName("tenant_id"); + + b.ToTable("files_security", (string)null); + + b.HasAnnotation("MySql:CharSet", "utf8"); + }); + + modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTag", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("id"); + + b.Property("Name") + .IsRequired() + .HasColumnType("varchar(255)") + .HasColumnName("name") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("Owner") + .IsRequired() + .HasColumnType("varchar(38)") + .HasColumnName("owner") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("TenantId") + .HasColumnType("int") + .HasColumnName("tenant_id"); + + b.Property("Type") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("flag") + .HasDefaultValueSql("'0'"); + + b.HasKey("Id"); + + b.HasIndex("TenantId", "Owner", "Name", "Type") + .HasDatabaseName("name"); + + b.ToTable("files_tag", (string)null); + + b.HasAnnotation("MySql:CharSet", "utf8"); + }); + + modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTagLink", b => + { + b.Property("TenantId") + .HasColumnType("int") + .HasColumnName("tenant_id"); + + b.Property("TagId") + .HasColumnType("int") + .HasColumnName("tag_id"); + + b.Property("EntryId") + .HasColumnType("varchar(32)") + .HasColumnName("entry_id") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("EntryType") + .HasColumnType("int") + .HasColumnName("entry_type"); + + b.Property("Count") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("tag_count") + .HasDefaultValueSql("'0'"); + + 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.HasKey("TenantId", "TagId", "EntryId", "EntryType") + .HasName("PRIMARY"); + + b.HasIndex("CreateOn") + .HasDatabaseName("create_on"); + + b.HasIndex("TenantId", "EntryId", "EntryType") + .HasDatabaseName("entry_id"); + + b.ToTable("files_tag_link", (string)null); + + b.HasAnnotation("MySql:CharSet", "utf8"); + }); + + modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyAccount", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("id"); + + b.Property("CreateOn") + .HasColumnType("datetime") + .HasColumnName("create_on"); + + b.Property("FolderId") + .HasColumnType("text") + .HasColumnName("folder_id") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("FolderType") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("folder_type") + .HasDefaultValueSql("'0'"); + + b.Property("HasLogo") + .HasColumnType("tinyint(1)") + .HasColumnName("has_logo"); + + b.Property("Password") + .IsRequired() + .HasColumnType("varchar(512)") + .HasColumnName("password") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("Private") + .HasColumnType("tinyint(1)") + .HasColumnName("private"); + + b.Property("Provider") + .IsRequired() + .ValueGeneratedOnAdd() + .HasColumnType("varchar(50)") + .HasColumnName("provider") + .HasDefaultValueSql("'0'") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("RoomType") + .HasColumnType("int") + .HasColumnName("room_type"); + + b.Property("TenantId") + .HasColumnType("int") + .HasColumnName("tenant_id"); + + b.Property("Title") + .IsRequired() + .HasColumnType("varchar(400)") + .HasColumnName("customer_title") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("Token") + .HasColumnType("text") + .HasColumnName("token") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("Url") + .HasColumnType("text") + .HasColumnName("url") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("UserId") + .IsRequired() + .HasColumnType("varchar(38)") + .HasColumnName("user_id") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("UserName") + .IsRequired() + .HasColumnType("varchar(100)") + .HasColumnName("user_name") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.HasKey("Id"); + + b.HasIndex("TenantId") + .HasDatabaseName("tenant_id"); + + b.ToTable("files_thirdparty_account", (string)null); + + b.HasAnnotation("MySql:CharSet", "utf8"); + }); + + modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyApp", b => + { + b.Property("UserId") + .HasColumnType("varchar(38)") + .HasColumnName("user_id") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("App") + .HasColumnType("varchar(50)") + .HasColumnName("app") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("ModifiedOn") + .HasColumnType("timestamp") + .HasColumnName("modified_on"); + + b.Property("TenantId") + .HasColumnType("int") + .HasColumnName("tenant_id"); + + b.Property("Token") + .HasColumnType("text") + .HasColumnName("token") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.HasKey("UserId", "App") + .HasName("PRIMARY"); + + b.ToTable("files_thirdparty_app", (string)null); + + b.HasAnnotation("MySql:CharSet", "utf8"); + }); + + modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyIdMapping", b => + { + b.Property("HashId") + .HasColumnType("char(32)") + .HasColumnName("hash_id") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("Id") + .IsRequired() + .HasColumnType("text") + .HasColumnName("id") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("TenantId") + .HasColumnType("int") + .HasColumnName("tenant_id"); + + b.HasKey("HashId") + .HasName("PRIMARY"); + + b.HasIndex("TenantId", "HashId") + .HasDatabaseName("index_1"); + + b.ToTable("files_thirdparty_id_mapping", (string)null); + + b.HasAnnotation("MySql:CharSet", "utf8"); + }); + + modelBuilder.Entity("ASC.Files.Core.EF.DbFolder", b => + { + b.Property("Id") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("id"); + + b.Property("CreateBy") + .IsRequired() + .HasColumnType("char(38)") + .HasColumnName("create_by") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("CreateOn") + .HasColumnType("datetime") + .HasColumnName("create_on"); + + b.Property("FilesCount") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("filesCount") + .HasDefaultValueSql("'0'"); + + b.Property("FolderType") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("folder_type") + .HasDefaultValueSql("'0'"); + + b.Property("FoldersCount") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("foldersCount") + .HasDefaultValueSql("'0'"); + + b.Property("HasLogo") + .HasColumnType("tinyint(1)") + .HasColumnName("has_logo"); + + b.Property("ModifiedBy") + .IsRequired() + .HasColumnType("char(38)") + .HasColumnName("modified_by") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.Property("ModifiedOn") + .HasColumnType("datetime") + .HasColumnName("modified_on"); + + b.Property("ParentId") + .ValueGeneratedOnAdd() + .HasColumnType("int") + .HasColumnName("parent_id") + .HasDefaultValueSql("'0'"); + + b.Property("Private") + .ValueGeneratedOnAdd() + .HasColumnType("tinyint(1)") + .HasColumnName("private") + .HasDefaultValueSql("'0'"); + + b.Property("TenantId") + .HasColumnType("int") + .HasColumnName("tenant_id"); + + b.Property("Title") + .IsRequired() + .HasColumnType("varchar(400)") + .HasColumnName("title") + .UseCollation("utf8_general_ci") + .HasAnnotation("MySql:CharSet", "utf8"); + + b.HasKey("Id"); + + b.HasIndex("ModifiedOn") + .HasDatabaseName("modified_on"); + + b.HasIndex("TenantId", "ParentId") + .HasDatabaseName("parent_id"); + + b.HasIndex("TenantId", "ParentId", "ModifiedOn") + .HasDatabaseName("tenant_id_parent_id_modified_on"); + + b.HasIndex("TenantId", "ParentId", "Title") + .HasDatabaseName("tenant_id_parent_id_title"); + + b.ToTable("files_folder", (string)null); + + b.HasAnnotation("MySql:CharSet", "utf8"); + }); + + modelBuilder.Entity("ASC.Files.Core.EF.DbFolderTree", b => + { + b.Property("ParentId") + .HasColumnType("int") + .HasColumnName("parent_id"); + + b.Property("FolderId") + .HasColumnType("int") + .HasColumnName("folder_id"); + + b.Property("Level") + .HasColumnType("int") + .HasColumnName("level"); + + b.HasKey("ParentId", "FolderId") + .HasName("PRIMARY"); + + b.HasIndex("FolderId") + .HasDatabaseName("folder_id"); + + b.ToTable("files_folder_tree", (string)null); + + b.HasAnnotation("MySql:CharSet", "utf8"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/migrations/mysql/FilesDbContext/20230616094928_FilesDbContext_Upgrade2.cs b/migrations/mysql/FilesDbContext/20230616094928_FilesDbContext_Upgrade2.cs new file mode 100644 index 0000000000..465970f938 --- /dev/null +++ b/migrations/mysql/FilesDbContext/20230616094928_FilesDbContext_Upgrade2.cs @@ -0,0 +1,63 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace ASC.Migrations.MySql.Migrations.FilesDb +{ + /// + public partial class FilesDbContextUpgrade2 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateIndex( + name: "tenant_id_parent_id_modified_on", + table: "files_folder", + columns: new[] { "tenant_id", "parent_id", "modified_on" }); + + migrationBuilder.CreateIndex( + name: "tenant_id_parent_id_title", + table: "files_folder", + columns: new[] { "tenant_id", "parent_id", "title" }); + + migrationBuilder.CreateIndex( + name: "tenant_id_folder_id_content_length", + table: "files_file", + columns: new[] { "tenant_id", "folder_id", "content_length" }); + + migrationBuilder.CreateIndex( + name: "tenant_id_folder_id_modified_on", + table: "files_file", + columns: new[] { "tenant_id", "folder_id", "modified_on" }); + + migrationBuilder.CreateIndex( + name: "tenant_id_folder_id_title", + table: "files_file", + columns: new[] { "tenant_id", "folder_id", "title" }); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropIndex( + name: "tenant_id_parent_id_modified_on", + table: "files_folder"); + + migrationBuilder.DropIndex( + name: "tenant_id_parent_id_title", + table: "files_folder"); + + migrationBuilder.DropIndex( + name: "tenant_id_folder_id_content_length", + table: "files_file"); + + migrationBuilder.DropIndex( + name: "tenant_id_folder_id_modified_on", + table: "files_file"); + + migrationBuilder.DropIndex( + name: "tenant_id_folder_id_title", + table: "files_file"); + } + } +} diff --git a/migrations/mysql/FilesDbContext/FilesDbContextModelSnapshot.cs b/migrations/mysql/FilesDbContext/FilesDbContextModelSnapshot.cs index af6eb3f842..fc2dcebd05 100644 --- a/migrations/mysql/FilesDbContext/FilesDbContextModelSnapshot.cs +++ b/migrations/mysql/FilesDbContext/FilesDbContextModelSnapshot.cs @@ -3004,6 +3004,15 @@ namespace ASC.Migrations.MySql.Migrations.FilesDb b.HasIndex("ParentId") .HasDatabaseName("folder_id"); + b.HasIndex("TenantId", "ParentId", "ContentLength") + .HasDatabaseName("tenant_id_folder_id_content_length"); + + b.HasIndex("TenantId", "ParentId", "ModifiedOn") + .HasDatabaseName("tenant_id_folder_id_modified_on"); + + b.HasIndex("TenantId", "ParentId", "Title") + .HasDatabaseName("tenant_id_folder_id_title"); + b.ToTable("files_file", (string)null); b.HasAnnotation("MySql:CharSet", "utf8"); @@ -3497,6 +3506,12 @@ namespace ASC.Migrations.MySql.Migrations.FilesDb b.HasIndex("TenantId", "ParentId") .HasDatabaseName("parent_id"); + b.HasIndex("TenantId", "ParentId", "ModifiedOn") + .HasDatabaseName("tenant_id_parent_id_modified_on"); + + b.HasIndex("TenantId", "ParentId", "Title") + .HasDatabaseName("tenant_id_parent_id_title"); + b.ToTable("files_folder", (string)null); b.HasAnnotation("MySql:CharSet", "utf8"); diff --git a/migrations/postgre/FilesDbContext/20230616094928_FilesDbContext_Upgrade2.Designer.cs b/migrations/postgre/FilesDbContext/20230616094928_FilesDbContext_Upgrade2.Designer.cs new file mode 100644 index 0000000000..0ab50f3d93 --- /dev/null +++ b/migrations/postgre/FilesDbContext/20230616094928_FilesDbContext_Upgrade2.Designer.cs @@ -0,0 +1,3468 @@ +// +using System; +using ASC.Files.Core.EF; +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.FilesDb +{ + [DbContext(typeof(FilesDbContext))] + [Migration("20230616094928_FilesDbContext_Upgrade2")] + partial class FilesDbContextUpgrade2 + { + /// + 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.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 + }); + }); + + 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.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", "ParentId", "ContentLength") + .HasDatabaseName("tenant_id_folder_id_content_length"); + + b.HasIndex("TenantId", "ParentId", "ModifiedOn") + .HasDatabaseName("tenant_id_folder_id_modified_on"); + + b.HasIndex("TenantId", "ParentId", "Title") + .HasDatabaseName("tenant_id_folder_id_title"); + + 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.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.HasIndex("TenantId", "ParentId", "ModifiedOn") + .HasDatabaseName("tenant_id_parent_id_modified_on"); + + b.HasIndex("TenantId", "ParentId", "Title") + .HasDatabaseName("tenant_id_parent_id_title"); + + 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"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/migrations/postgre/FilesDbContext/20230616094928_FilesDbContext_Upgrade2.cs b/migrations/postgre/FilesDbContext/20230616094928_FilesDbContext_Upgrade2.cs new file mode 100644 index 0000000000..593afeecd0 --- /dev/null +++ b/migrations/postgre/FilesDbContext/20230616094928_FilesDbContext_Upgrade2.cs @@ -0,0 +1,73 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace ASC.Migrations.PostgreSql.Migrations.FilesDb +{ + /// + public partial class FilesDbContextUpgrade2 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateIndex( + name: "tenant_id_parent_id_modified_on", + schema: "onlyoffice", + table: "files_folder", + columns: new[] { "tenant_id", "parent_id", "modified_on" }); + + migrationBuilder.CreateIndex( + name: "tenant_id_parent_id_title", + schema: "onlyoffice", + table: "files_folder", + columns: new[] { "tenant_id", "parent_id", "title" }); + + migrationBuilder.CreateIndex( + name: "tenant_id_folder_id_content_length", + schema: "onlyoffice", + table: "files_file", + columns: new[] { "tenant_id", "folder_id", "content_length" }); + + migrationBuilder.CreateIndex( + name: "tenant_id_folder_id_modified_on", + schema: "onlyoffice", + table: "files_file", + columns: new[] { "tenant_id", "folder_id", "modified_on" }); + + migrationBuilder.CreateIndex( + name: "tenant_id_folder_id_title", + schema: "onlyoffice", + table: "files_file", + columns: new[] { "tenant_id", "folder_id", "title" }); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropIndex( + name: "tenant_id_parent_id_modified_on", + schema: "onlyoffice", + table: "files_folder"); + + migrationBuilder.DropIndex( + name: "tenant_id_parent_id_title", + schema: "onlyoffice", + table: "files_folder"); + + migrationBuilder.DropIndex( + name: "tenant_id_folder_id_content_length", + schema: "onlyoffice", + table: "files_file"); + + migrationBuilder.DropIndex( + name: "tenant_id_folder_id_modified_on", + schema: "onlyoffice", + table: "files_file"); + + migrationBuilder.DropIndex( + name: "tenant_id_folder_id_title", + schema: "onlyoffice", + table: "files_file"); + } + } +} diff --git a/migrations/postgre/FilesDbContext/FilesDbContextModelSnapshot.cs b/migrations/postgre/FilesDbContext/FilesDbContextModelSnapshot.cs index 3f0df2cca1..770a291f48 100644 --- a/migrations/postgre/FilesDbContext/FilesDbContextModelSnapshot.cs +++ b/migrations/postgre/FilesDbContext/FilesDbContextModelSnapshot.cs @@ -2985,6 +2985,15 @@ namespace ASC.Migrations.PostgreSql.Migrations.FilesDb b.HasIndex("ParentId") .HasDatabaseName("folder_id"); + b.HasIndex("TenantId", "ParentId", "ContentLength") + .HasDatabaseName("tenant_id_folder_id_content_length"); + + b.HasIndex("TenantId", "ParentId", "ModifiedOn") + .HasDatabaseName("tenant_id_folder_id_modified_on"); + + b.HasIndex("TenantId", "ParentId", "Title") + .HasDatabaseName("tenant_id_folder_id_title"); + b.ToTable("files_file", "onlyoffice"); }); @@ -3419,6 +3428,12 @@ namespace ASC.Migrations.PostgreSql.Migrations.FilesDb b.HasIndex("TenantId", "ParentId") .HasDatabaseName("parent_id"); + b.HasIndex("TenantId", "ParentId", "ModifiedOn") + .HasDatabaseName("tenant_id_parent_id_modified_on"); + + b.HasIndex("TenantId", "ParentId", "Title") + .HasDatabaseName("tenant_id_parent_id_title"); + b.ToTable("files_folder", "onlyoffice"); }); diff --git a/products/ASC.Files/Core/Core/EF/DbFile.cs b/products/ASC.Files/Core/Core/EF/DbFile.cs index 63b44d8113..a9bad19647 100644 --- a/products/ASC.Files/Core/Core/EF/DbFile.cs +++ b/products/ASC.Files/Core/Core/EF/DbFile.cs @@ -119,6 +119,15 @@ public static class DbFileExtension entity.HasIndex(e => e.ModifiedOn) .HasDatabaseName("modified_on"); + + entity.HasIndex(e => new { e.TenantId, e.ParentId, e.Title }) + .HasDatabaseName("tenant_id_folder_id_title"); + + entity.HasIndex(e => new { e.TenantId, e.ParentId, e.ModifiedOn }) + .HasDatabaseName("tenant_id_folder_id_modified_on"); + + entity.HasIndex(e => new { e.TenantId, e.ParentId, e.ContentLength }) + .HasDatabaseName("tenant_id_folder_id_content_length"); entity.Property(e => e.TenantId).HasColumnName("tenant_id"); @@ -234,6 +243,15 @@ public static class DbFileExtension entity.HasIndex(e => e.ModifiedOn) .HasDatabaseName("modified_on_files_file"); + + entity.HasIndex(e => new { e.TenantId, e.ParentId, e.Title }) + .HasDatabaseName("tenant_id_folder_id_title"); + + entity.HasIndex(e => new { e.TenantId, e.ParentId, e.ModifiedOn }) + .HasDatabaseName("tenant_id_folder_id_modified_on"); + + entity.HasIndex(e => new { e.TenantId, e.ParentId, e.ContentLength }) + .HasDatabaseName("tenant_id_folder_id_content_length"); entity.Property(e => e.Id).HasColumnName("id"); @@ -298,4 +316,4 @@ public static class DbFileExtension }); } -} +} diff --git a/products/ASC.Files/Core/Core/EF/DbFolder.cs b/products/ASC.Files/Core/Core/EF/DbFolder.cs index 865fa33b8b..d1993faa24 100644 --- a/products/ASC.Files/Core/Core/EF/DbFolder.cs +++ b/products/ASC.Files/Core/Core/EF/DbFolder.cs @@ -81,6 +81,12 @@ public static class DbFolderExtension entity.HasIndex(e => new { e.TenantId, e.ParentId }) .HasDatabaseName("parent_id"); + entity.HasIndex(e => new { e.TenantId, e.ParentId, e.Title }) + .HasDatabaseName("tenant_id_parent_id_title"); + + entity.HasIndex(e => new { e.TenantId, e.ParentId, e.ModifiedOn }) + .HasDatabaseName("tenant_id_parent_id_modified_on"); + entity.Property(e => e.Id).HasColumnName("id"); entity.Property(e => e.CreateBy) @@ -148,6 +154,12 @@ public static class DbFolderExtension entity.HasIndex(e => new { e.TenantId, e.ParentId }) .HasDatabaseName("parent_id"); + + entity.HasIndex(e => new { e.TenantId, e.ParentId, e.Title }) + .HasDatabaseName("tenant_id_parent_id_title"); + + entity.HasIndex(e => new { e.TenantId, e.ParentId, e.ModifiedOn }) + .HasDatabaseName("tenant_id_parent_id_modified_on"); entity.Property(e => e.Id).HasColumnName("id");