DocSpace-client/migrations/mysql/FilesDbContext/20220825073139_FilesDbContext_Upgrade1.Designer.cs

2695 lines
95 KiB
C#

// <auto-generated />
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("20220825073139_FilesDbContext_Upgrade1")]
partial class FilesDbContext_Upgrade1
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "6.0.7")
.HasAnnotation("Relational:MaxIdentifierLength", 64);
modelBuilder.Entity("ASC.Core.Common.EF.DbQuota", b =>
{
b.Property<int>("Tenant")
.HasColumnType("int")
.HasColumnName("tenant");
b.Property<int>("ActiveUsers")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("active_users")
.HasDefaultValueSql("'0'");
b.Property<string>("AvangateId")
.HasColumnType("varchar(128)")
.HasColumnName("avangate_id")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("Description")
.HasColumnType("varchar(128)")
.HasColumnName("description")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("Features")
.HasColumnType("text")
.HasColumnName("features");
b.Property<long>("MaxFileSize")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("max_file_size")
.HasDefaultValueSql("'0'");
b.Property<long>("MaxTotalSize")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("max_total_size")
.HasDefaultValueSql("'0'");
b.Property<string>("Name")
.HasColumnType("varchar(128)")
.HasColumnName("name")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<decimal>("Price")
.ValueGeneratedOnAdd()
.HasColumnType("decimal(10,2)")
.HasColumnName("price")
.HasDefaultValueSql("'0.00'");
b.Property<bool>("Visible")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasColumnName("visible")
.HasDefaultValueSql("'0'");
b.HasKey("Tenant")
.HasName("PRIMARY");
b.ToTable("tenants_quota", (string)null);
b.HasAnnotation("MySql:CharSet", "utf8");
b.HasData(
new
{
Tenant = -1,
ActiveUsers = 10000,
AvangateId = "0",
Features = "domain,audit,controlpanel,healthcheck,ldap,sso,whitelabel,branding,ssbranding,update,support,portals:10000,discencryption,privacyroom,restore",
MaxFileSize = 102400L,
MaxTotalSize = 10995116277760L,
Name = "default",
Price = 0.00m,
Visible = false
});
});
modelBuilder.Entity("ASC.Core.Common.EF.DbTariff", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("id");
b.Property<string>("Comment")
.HasColumnType("varchar(255)")
.HasColumnName("comment")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<DateTime>("CreateOn")
.HasColumnType("timestamp")
.HasColumnName("create_on");
b.Property<int>("Quantity")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("quantity")
.HasDefaultValueSql("'1'");
b.Property<DateTime>("Stamp")
.HasColumnType("datetime")
.HasColumnName("stamp");
b.Property<int>("Tariff")
.HasColumnType("int")
.HasColumnName("tariff");
b.Property<int>("Tenant")
.HasColumnType("int")
.HasColumnName("tenant");
b.HasKey("Id");
b.HasIndex("Tenant")
.HasDatabaseName("tenant");
b.ToTable("tenants_tariff", (string)null);
b.HasAnnotation("MySql:CharSet", "utf8");
});
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenant", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("id");
b.Property<string>("Alias")
.IsRequired()
.HasColumnType("varchar(100)")
.HasColumnName("alias")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<bool>("Calls")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasColumnName("calls")
.HasDefaultValueSql("'1'");
b.Property<DateTime>("CreationDateTime")
.HasColumnType("datetime")
.HasColumnName("creationdatetime");
b.Property<int>("Industry")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("industry")
.HasDefaultValueSql("'0'");
b.Property<string>("Language")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnType("char(10)")
.HasColumnName("language")
.HasDefaultValueSql("'en-US'")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<DateTime>("LastModified")
.HasColumnType("timestamp")
.HasColumnName("last_modified");
b.Property<string>("MappedDomain")
.HasColumnType("varchar(100)")
.HasColumnName("mappeddomain")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("varchar(255)")
.HasColumnName("name")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("OwnerId")
.HasColumnType("varchar(38)")
.HasColumnName("owner_id")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("PaymentId")
.HasColumnType("varchar(38)")
.HasColumnName("payment_id")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<bool>("Spam")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasColumnName("spam")
.HasDefaultValueSql("'1'");
b.Property<int>("Status")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("status")
.HasDefaultValueSql("'0'");
b.Property<DateTime?>("StatusChanged")
.HasColumnType("datetime")
.HasColumnName("statuschanged");
b.Property<string>("TimeZone")
.HasColumnType("varchar(50)")
.HasColumnName("timezone")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<int>("TrustedDomainsEnabled")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("trusteddomainsenabled")
.HasDefaultValueSql("'1'");
b.Property<string>("TrustedDomainsRaw")
.HasColumnType("varchar(1024)")
.HasColumnName("trusteddomains")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<int>("Version")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("version")
.HasDefaultValueSql("'2'");
b.Property<DateTime?>("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<string>("Input")
.HasColumnType("varchar(50)")
.HasColumnName("input")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("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 = ".docx"
},
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 = ".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 = ".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 = ".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 = ".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 = ".ott"
},
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 = ".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 = ".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 = ".oxps",
Output = ".pdf"
},
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 = ".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 = ".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 = ".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 = ".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 = ".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 = ".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 = ".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 = ".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 = ".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 = ".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 = ".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 = ".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 = ".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 = ".xps",
Output = ".pdf"
},
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"
});
});
modelBuilder.Entity("ASC.Files.Core.EF.DbFile", b =>
{
b.Property<int>("TenantId")
.HasColumnType("int")
.HasColumnName("tenant_id");
b.Property<int>("Id")
.HasColumnType("int")
.HasColumnName("id");
b.Property<int>("Version")
.HasColumnType("int")
.HasColumnName("version");
b.Property<int>("Category")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("category")
.HasDefaultValueSql("'0'");
b.Property<string>("Changes")
.HasColumnType("mediumtext")
.HasColumnName("changes")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("Comment")
.HasColumnType("varchar(255)")
.HasColumnName("comment")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<long>("ContentLength")
.ValueGeneratedOnAdd()
.HasColumnType("bigint")
.HasColumnName("content_length")
.HasDefaultValueSql("'0'");
b.Property<string>("ConvertedType")
.HasColumnType("varchar(10)")
.HasColumnName("converted_type")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("CreateBy")
.IsRequired()
.HasColumnType("char(38)")
.HasColumnName("create_by")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<DateTime>("CreateOn")
.HasColumnType("datetime")
.HasColumnName("create_on");
b.Property<bool>("CurrentVersion")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasColumnName("current_version")
.HasDefaultValueSql("'0'");
b.Property<bool>("Encrypted")
.ValueGeneratedOnAdd()
.HasColumnType("tinyint(1)")
.HasColumnName("encrypted")
.HasDefaultValueSql("'0'");
b.Property<int>("FileStatus")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("file_status")
.HasDefaultValueSql("'0'");
b.Property<int>("Forcesave")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("forcesave")
.HasDefaultValueSql("'0'");
b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("char(38)")
.HasColumnName("modified_by")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<DateTime>("ModifiedOn")
.HasColumnType("datetime")
.HasColumnName("modified_on");
b.Property<int>("ParentId")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("folder_id")
.HasDefaultValueSql("'0'");
b.Property<int>("ThumbnailStatus")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("thumb")
.HasDefaultValueSql("'0'");
b.Property<string>("Title")
.IsRequired()
.HasColumnType("varchar(400)")
.HasColumnName("title")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<int>("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.ToTable("files_file", (string)null);
b.HasAnnotation("MySql:CharSet", "utf8");
});
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesBunchObjects", b =>
{
b.Property<int>("TenantId")
.HasColumnType("int")
.HasColumnName("tenant_id");
b.Property<string>("RightNode")
.HasColumnType("varchar(255)")
.HasColumnName("right_node")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("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<int>("TenantId")
.HasColumnType("int")
.HasColumnName("tenant_id");
b.Property<string>("SourceId")
.HasColumnType("varchar(32)")
.HasColumnName("source_id")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("LinkedId")
.HasColumnType("varchar(32)")
.HasColumnName("linked_id")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("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<int>("TenantId")
.HasColumnType("int")
.HasColumnName("tenant_id");
b.Property<string>("EntryId")
.HasColumnType("varchar(32)")
.HasColumnName("entry_id")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("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<int>("TenantId")
.HasColumnType("int")
.HasColumnName("tenant_id");
b.Property<string>("EntryId")
.HasColumnType("varchar(50)")
.HasColumnName("entry_id")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<int>("EntryType")
.HasColumnType("int")
.HasColumnName("entry_type");
b.Property<string>("Subject")
.HasColumnType("char(38)")
.HasColumnName("subject")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("Owner")
.IsRequired()
.HasColumnType("char(38)")
.HasColumnName("owner")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<int>("Share")
.HasColumnType("int")
.HasColumnName("security");
b.Property<DateTime>("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<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("id");
b.Property<string>("Name")
.IsRequired()
.HasColumnType("varchar(255)")
.HasColumnName("name")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("Owner")
.IsRequired()
.HasColumnType("varchar(38)")
.HasColumnName("owner")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<int>("TenantId")
.HasColumnType("int")
.HasColumnName("tenant_id");
b.Property<int>("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<int>("TenantId")
.HasColumnType("int")
.HasColumnName("tenant_id");
b.Property<int>("TagId")
.HasColumnType("int")
.HasColumnName("tag_id");
b.Property<string>("EntryId")
.HasColumnType("varchar(32)")
.HasColumnName("entry_id")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<int>("EntryType")
.HasColumnType("int")
.HasColumnName("entry_type");
b.Property<int>("Count")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("tag_count")
.HasDefaultValueSql("'0'");
b.Property<string>("CreateBy")
.HasColumnType("char(38)")
.HasColumnName("create_by")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<DateTime?>("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<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("id");
b.Property<DateTime>("CreateOn")
.HasColumnType("datetime")
.HasColumnName("create_on");
b.Property<string>("FolderId")
.HasColumnType("text")
.HasColumnName("folder_id")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<int>("FolderType")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("folder_type")
.HasDefaultValueSql("'0'");
b.Property<string>("Password")
.IsRequired()
.HasColumnType("varchar(512)")
.HasColumnName("password")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<bool>("Private")
.HasColumnType("tinyint(1)")
.HasColumnName("private");
b.Property<string>("Provider")
.IsRequired()
.ValueGeneratedOnAdd()
.HasColumnType("varchar(50)")
.HasColumnName("provider")
.HasDefaultValueSql("'0'")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<int>("RoomType")
.HasColumnType("int")
.HasColumnName("room_type");
b.Property<int>("TenantId")
.HasColumnType("int")
.HasColumnName("tenant_id");
b.Property<string>("Title")
.IsRequired()
.HasColumnType("varchar(400)")
.HasColumnName("customer_title")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("Token")
.HasColumnType("text")
.HasColumnName("token")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("Url")
.HasColumnType("text")
.HasColumnName("url")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("UserId")
.IsRequired()
.HasColumnType("varchar(38)")
.HasColumnName("user_id")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("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<string>("UserId")
.HasColumnType("varchar(38)")
.HasColumnName("user_id")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("App")
.HasColumnType("varchar(50)")
.HasColumnName("app")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<DateTime>("ModifiedOn")
.HasColumnType("timestamp")
.HasColumnName("modified_on");
b.Property<int>("TenantId")
.HasColumnType("int")
.HasColumnName("tenant_id");
b.Property<string>("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<string>("HashId")
.HasColumnType("char(32)")
.HasColumnName("hash_id")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<string>("Id")
.IsRequired()
.HasColumnType("text")
.HasColumnName("id")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<int>("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<int>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("id");
b.Property<string>("CreateBy")
.IsRequired()
.HasColumnType("char(38)")
.HasColumnName("create_by")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<DateTime>("CreateOn")
.HasColumnType("datetime")
.HasColumnName("create_on");
b.Property<int>("FilesCount")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("filesCount")
.HasDefaultValueSql("'0'");
b.Property<int>("FolderType")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("folder_type")
.HasDefaultValueSql("'0'");
b.Property<int>("FoldersCount")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("foldersCount")
.HasDefaultValueSql("'0'");
b.Property<string>("ModifiedBy")
.IsRequired()
.HasColumnType("char(38)")
.HasColumnName("modified_by")
.UseCollation("utf8_general_ci")
.HasAnnotation("MySql:CharSet", "utf8");
b.Property<DateTime>("ModifiedOn")
.HasColumnType("datetime")
.HasColumnName("modified_on");
b.Property<int>("ParentId")
.ValueGeneratedOnAdd()
.HasColumnType("int")
.HasColumnName("parent_id")
.HasDefaultValueSql("'0'");
b.Property<bool>("Private")
.HasColumnType("tinyint(1)")
.HasColumnName("private");
b.Property<int>("TenantId")
.HasColumnType("int")
.HasColumnName("tenant_id");
b.Property<string>("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.ToTable("files_folder", (string)null);
b.HasAnnotation("MySql:CharSet", "utf8");
});
modelBuilder.Entity("ASC.Files.Core.EF.DbFolderTree", b =>
{
b.Property<int>("ParentId")
.HasColumnType("int")
.HasColumnName("parent_id");
b.Property<int>("FolderId")
.HasColumnType("int")
.HasColumnName("folder_id");
b.Property<int>("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
}
}
}