DocSpace-client/migrations/postgre/FilesDbContext/FilesDbContextModelSnapshot.cs

2506 lines
90 KiB
C#
Raw Normal View History

2021-10-26 13:14:40 +00:00
// <auto-generated />
2022-07-01 11:27:28 +00:00
using System;
using ASC.Files.Core.EF;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
2022-07-22 19:34:48 +00:00
using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
2022-07-01 11:27:28 +00:00
#nullable disable
2021-10-26 13:14:40 +00:00
2022-07-24 13:02:00 +00:00
namespace ASC.Migrations.PostgreSql.Migrations
2021-10-26 13:14:40 +00:00
{
2022-07-24 13:02:00 +00:00
[DbContext(typeof(FilesDbContext))]
partial class FilesDbContextModelSnapshot : ModelSnapshot
2021-10-26 13:14:40 +00:00
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
2022-07-22 19:34:48 +00:00
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn)
2022-08-25 07:36:27 +00:00
.HasAnnotation("ProductVersion", "6.0.7")
2022-07-22 19:34:48 +00:00
.HasAnnotation("Relational:MaxIdentifierLength", 63);
2022-07-01 11:27:28 +00:00
modelBuilder.Entity("ASC.Core.Common.EF.Model.DbTenant", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("id")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
2022-07-01 11:27:28 +00:00
b.Property<string>("Alias")
.IsRequired()
2022-07-22 19:34:48 +00:00
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("alias");
2022-07-01 11:27:28 +00:00
2022-07-11 15:33:57 +00:00
b.Property<bool>("Calls")
2022-07-01 11:27:28 +00:00
.ValueGeneratedOnAdd()
2022-07-22 19:34:48 +00:00
.HasColumnType("boolean")
2022-07-01 11:27:28 +00:00
.HasColumnName("calls")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("true");
2022-07-01 11:27:28 +00:00
b.Property<DateTime>("CreationDateTime")
2022-07-22 19:34:48 +00:00
.HasColumnType("timestamp with time zone")
2022-07-01 11:27:28 +00:00
.HasColumnName("creationdatetime");
b.Property<int>("Industry")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("industry");
2022-07-01 11:27:28 +00:00
b.Property<string>("Language")
.IsRequired()
.ValueGeneratedOnAdd()
2022-07-22 19:34:48 +00:00
.HasMaxLength(10)
.HasColumnType("character(10)")
2022-07-01 11:27:28 +00:00
.HasColumnName("language")
.HasDefaultValueSql("'en-US'")
2022-07-22 19:34:48 +00:00
.IsFixedLength();
2022-07-01 11:27:28 +00:00
b.Property<DateTime>("LastModified")
2022-07-22 19:34:48 +00:00
.ValueGeneratedOnAdd()
.HasColumnType("timestamp with time zone")
.HasColumnName("last_modified")
.HasDefaultValueSql("CURRENT_TIMESTAMP");
2022-07-01 11:27:28 +00:00
b.Property<string>("MappedDomain")
2022-07-22 19:34:48 +00:00
.ValueGeneratedOnAdd()
.HasMaxLength(100)
.HasColumnType("character varying(100)")
2022-07-01 11:27:28 +00:00
.HasColumnName("mappeddomain")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("NULL");
2022-07-01 11:27:28 +00:00
b.Property<string>("Name")
.IsRequired()
2022-07-22 19:34:48 +00:00
.HasMaxLength(255)
.HasColumnType("character varying(255)")
.HasColumnName("name");
2022-07-01 11:27:28 +00:00
2022-07-22 19:34:48 +00:00
b.Property<Guid?>("OwnerId")
.ValueGeneratedOnAdd()
.HasMaxLength(38)
.HasColumnType("uuid")
2022-07-01 11:27:28 +00:00
.HasColumnName("owner_id")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("NULL");
2022-07-01 11:27:28 +00:00
b.Property<string>("PaymentId")
2022-07-22 19:34:48 +00:00
.ValueGeneratedOnAdd()
.HasMaxLength(38)
.HasColumnType("character varying(38)")
2022-07-01 11:27:28 +00:00
.HasColumnName("payment_id")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("NULL");
2022-07-01 11:27:28 +00:00
2022-07-11 15:33:57 +00:00
b.Property<bool>("Spam")
2022-07-01 11:27:28 +00:00
.ValueGeneratedOnAdd()
2022-07-22 19:34:48 +00:00
.HasColumnType("boolean")
2022-07-01 11:27:28 +00:00
.HasColumnName("spam")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("true");
2022-07-01 11:27:28 +00:00
b.Property<int>("Status")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("status");
2022-07-01 11:27:28 +00:00
b.Property<DateTime?>("StatusChanged")
2022-07-22 19:34:48 +00:00
.HasColumnType("timestamp with time zone")
2022-07-01 11:27:28 +00:00
.HasColumnName("statuschanged");
b.Property<string>("TimeZone")
2022-07-22 19:34:48 +00:00
.ValueGeneratedOnAdd()
.HasMaxLength(50)
.HasColumnType("character varying(50)")
2022-07-01 11:27:28 +00:00
.HasColumnName("timezone")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("NULL");
2022-07-01 11:27:28 +00:00
b.Property<int>("TrustedDomainsEnabled")
.ValueGeneratedOnAdd()
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2022-07-01 11:27:28 +00:00
.HasColumnName("trusteddomainsenabled")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("1");
2022-07-01 11:27:28 +00:00
b.Property<string>("TrustedDomainsRaw")
2022-07-22 19:34:48 +00:00
.ValueGeneratedOnAdd()
.HasMaxLength(1024)
.HasColumnType("character varying(1024)")
2022-07-01 11:27:28 +00:00
.HasColumnName("trusteddomains")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("NULL");
2022-07-01 11:27:28 +00:00
b.Property<int>("Version")
.ValueGeneratedOnAdd()
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2022-07-01 11:27:28 +00:00
.HasColumnName("version")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("2");
2022-07-01 11:27:28 +00:00
b.Property<DateTime?>("Version_Changed")
2022-07-22 19:34:48 +00:00
.HasColumnType("timestamp with time zone")
2022-07-01 11:27:28 +00:00
.HasColumnName("version_changed");
b.HasKey("Id");
2022-07-11 15:33:57 +00:00
b.HasIndex("Alias")
.IsUnique()
.HasDatabaseName("alias");
2022-07-01 11:27:28 +00:00
b.HasIndex("LastModified")
2022-07-22 19:34:48 +00:00
.HasDatabaseName("last_modified_tenants_tenants");
2022-07-01 11:27:28 +00:00
b.HasIndex("MappedDomain")
.HasDatabaseName("mappeddomain");
b.HasIndex("Version")
.HasDatabaseName("version");
2022-07-22 19:34:48 +00:00
b.ToTable("tenants_tenants", "onlyoffice");
2022-07-01 11:27:28 +00:00
b.HasData(
new
{
Id = 1,
Alias = "localhost",
2022-07-11 15:33:57 +00:00
Calls = false,
2022-07-01 11:27:28 +00:00
CreationDateTime = new DateTime(2021, 3, 9, 17, 46, 59, 97, DateTimeKind.Utc).AddTicks(4317),
2022-07-11 15:33:57 +00:00
Industry = 0,
LastModified = new DateTime(2022, 7, 8, 0, 0, 0, 0, DateTimeKind.Unspecified),
2022-07-01 11:27:28 +00:00
Name = "Web Office",
2022-07-22 19:34:48 +00:00
OwnerId = new Guid("66faa6e4-f133-11ea-b126-00ffeec8b4ef"),
2022-07-11 15:33:57 +00:00
Spam = false,
2022-07-01 11:27:28 +00:00
Status = 0,
TrustedDomainsEnabled = 0,
Version = 0
});
});
2021-10-26 13:14:40 +00:00
2022-07-25 11:14:03 +00:00
modelBuilder.Entity("ASC.Core.Common.EF.Model.FilesConverts", b =>
{
b.Property<string>("Input")
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("input");
b.Property<string>("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 = ".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"
});
});
2021-10-26 13:14:40 +00:00
modelBuilder.Entity("ASC.Files.Core.EF.DbFile", b =>
{
b.Property<int>("Id")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("id");
2022-07-22 19:34:48 +00:00
b.Property<int>("TenantId")
.HasColumnType("integer")
.HasColumnName("tenant_id");
2021-10-26 13:14:40 +00:00
b.Property<int>("Version")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("version");
b.Property<int>("Category")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("category");
2021-10-26 13:14:40 +00:00
b.Property<string>("Changes")
2022-07-22 19:34:48 +00:00
.HasColumnType("text")
.HasColumnName("changes");
2021-10-26 13:14:40 +00:00
b.Property<string>("Comment")
2022-07-22 19:34:48 +00:00
.ValueGeneratedOnAdd()
.HasMaxLength(255)
.HasColumnType("character varying(255)")
2021-10-26 13:14:40 +00:00
.HasColumnName("comment")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("NULL::character varying");
2021-10-26 13:14:40 +00:00
b.Property<long>("ContentLength")
.ValueGeneratedOnAdd()
2021-10-26 13:14:40 +00:00
.HasColumnType("bigint")
.HasColumnName("content_length")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("'0'::bigint");
2021-10-26 13:14:40 +00:00
b.Property<string>("ConvertedType")
2022-07-22 19:34:48 +00:00
.ValueGeneratedOnAdd()
.HasMaxLength(10)
.HasColumnType("character varying(10)")
2021-10-26 13:14:40 +00:00
.HasColumnName("converted_type")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("NULL::character varying");
2021-10-26 13:14:40 +00:00
2022-07-22 19:34:48 +00:00
b.Property<Guid>("CreateBy")
.HasMaxLength(38)
.HasColumnType("uuid")
2021-10-26 13:14:40 +00:00
.HasColumnName("create_by")
2022-07-22 19:34:48 +00:00
.IsFixedLength();
2021-10-26 13:14:40 +00:00
b.Property<DateTime>("CreateOn")
2022-07-22 19:34:48 +00:00
.HasColumnType("timestamp with time zone")
2021-10-26 13:14:40 +00:00
.HasColumnName("create_on");
2022-07-11 15:33:57 +00:00
b.Property<bool>("CurrentVersion")
2022-07-22 19:34:48 +00:00
.HasColumnType("boolean")
.HasColumnName("current_version");
2021-10-26 13:14:40 +00:00
2022-07-11 15:33:57 +00:00
b.Property<bool>("Encrypted")
2022-07-22 19:34:48 +00:00
.HasColumnType("boolean")
.HasColumnName("encrypted");
2021-10-26 13:14:40 +00:00
b.Property<int>("FileStatus")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("file_status");
2021-10-26 13:14:40 +00:00
b.Property<int>("Forcesave")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("forcesave");
2021-10-26 13:14:40 +00:00
2022-07-22 19:34:48 +00:00
b.Property<Guid>("ModifiedBy")
.HasMaxLength(38)
.HasColumnType("uuid")
2021-10-26 13:14:40 +00:00
.HasColumnName("modified_by")
2022-07-22 19:34:48 +00:00
.IsFixedLength();
2021-10-26 13:14:40 +00:00
b.Property<DateTime>("ModifiedOn")
2022-07-22 19:34:48 +00:00
.HasColumnType("timestamp with time zone")
2021-10-26 13:14:40 +00:00
.HasColumnName("modified_on");
2022-07-01 11:27:28 +00:00
b.Property<int>("ParentId")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("folder_id");
2022-07-01 11:27:28 +00:00
b.Property<int>("ThumbnailStatus")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("thumb");
2021-10-26 13:14:40 +00:00
b.Property<string>("Title")
.IsRequired()
2022-07-22 19:34:48 +00:00
.HasMaxLength(400)
.HasColumnType("character varying(400)")
.HasColumnName("title");
2021-10-26 13:14:40 +00:00
b.Property<int>("VersionGroup")
.ValueGeneratedOnAdd()
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("version_group")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("1");
2021-10-26 13:14:40 +00:00
2022-07-22 19:34:48 +00:00
b.HasKey("Id", "TenantId", "Version")
.HasName("files_file_pkey");
2021-10-26 13:14:40 +00:00
b.HasIndex("Id")
.HasDatabaseName("id");
b.HasIndex("ModifiedOn")
2022-07-22 19:34:48 +00:00
.HasDatabaseName("modified_on_files_file");
2021-10-26 13:14:40 +00:00
2022-07-01 11:27:28 +00:00
b.HasIndex("ParentId")
.HasDatabaseName("folder_id");
2022-07-22 19:34:48 +00:00
b.ToTable("files_file", "onlyoffice");
2021-10-26 13:14:40 +00:00
});
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesBunchObjects", b =>
{
b.Property<int>("TenantId")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("tenant_id");
b.Property<string>("RightNode")
2022-07-22 19:34:48 +00:00
.HasMaxLength(255)
.HasColumnType("character varying(255)")
.HasColumnName("right_node");
2021-10-26 13:14:40 +00:00
b.Property<string>("LeftNode")
.IsRequired()
2022-07-22 19:34:48 +00:00
.HasMaxLength(255)
.HasColumnType("character varying(255)")
.HasColumnName("left_node");
2021-10-26 13:14:40 +00:00
b.HasKey("TenantId", "RightNode")
2022-07-22 19:34:48 +00:00
.HasName("files_bunch_objects_pkey");
2021-10-26 13:14:40 +00:00
b.HasIndex("LeftNode")
.HasDatabaseName("left_node");
2022-07-22 19:34:48 +00:00
b.ToTable("files_bunch_objects", "onlyoffice");
2022-07-01 11:27:28 +00:00
});
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesLink", b =>
{
b.Property<int>("TenantId")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2022-07-01 11:27:28 +00:00
.HasColumnName("tenant_id");
b.Property<string>("SourceId")
2022-07-22 19:34:48 +00:00
.HasMaxLength(32)
.HasColumnType("character varying(32)")
.HasColumnName("source_id");
2022-07-01 11:27:28 +00:00
b.Property<string>("LinkedId")
2022-07-22 19:34:48 +00:00
.HasMaxLength(32)
.HasColumnType("character varying(32)")
.HasColumnName("linked_id");
2022-07-01 11:27:28 +00:00
2022-07-22 19:34:48 +00:00
b.Property<Guid>("LinkedFor")
.ValueGeneratedOnAdd()
.HasMaxLength(38)
.HasColumnType("uuid")
2022-07-01 11:27:28 +00:00
.HasColumnName("linked_for")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("NULL::bpchar")
.IsFixedLength();
2022-07-01 11:27:28 +00:00
b.HasKey("TenantId", "SourceId", "LinkedId")
2022-07-22 19:34:48 +00:00
.HasName("files_link_pkey");
2022-07-01 11:27:28 +00:00
b.HasIndex("TenantId", "SourceId", "LinkedId", "LinkedFor")
2022-07-22 19:34:48 +00:00
.HasDatabaseName("linked_for_files_link");
2022-07-22 19:34:48 +00:00
b.ToTable("files_link", "onlyoffice");
2021-10-26 13:14:40 +00:00
});
2022-07-11 15:33:57 +00:00
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesProperties", b =>
{
b.Property<int>("TenantId")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2022-07-11 15:33:57 +00:00
.HasColumnName("tenant_id");
b.Property<string>("EntryId")
2022-07-22 19:34:48 +00:00
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("entry_id");
2022-07-11 15:33:57 +00:00
b.Property<string>("Data")
2022-07-22 19:34:48 +00:00
.IsRequired()
.HasColumnType("text")
.HasColumnName("data");
2022-07-11 15:33:57 +00:00
b.HasKey("TenantId", "EntryId")
2022-07-22 19:34:48 +00:00
.HasName("files_properties_pkey");
2022-07-11 15:33:57 +00:00
2022-07-22 19:34:48 +00:00
b.ToTable("files_properties", "onlyoffice");
2022-07-11 15:33:57 +00:00
});
2021-10-26 13:14:40 +00:00
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesSecurity", b =>
{
b.Property<int>("TenantId")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("tenant_id");
b.Property<string>("EntryId")
2022-07-22 19:34:48 +00:00
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("entry_id");
2021-10-26 13:14:40 +00:00
b.Property<int>("EntryType")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("entry_type");
2022-07-22 19:34:48 +00:00
b.Property<Guid>("Subject")
.HasMaxLength(38)
.HasColumnType("uuid")
2021-10-26 13:14:40 +00:00
.HasColumnName("subject")
2022-07-22 19:34:48 +00:00
.IsFixedLength();
2021-10-26 13:14:40 +00:00
b.Property<string>("FileShareOptions")
.HasColumnType("text")
.HasColumnName("options");
2022-07-22 19:34:48 +00:00
b.Property<Guid>("Owner")
.HasMaxLength(38)
.HasColumnType("uuid")
2021-10-26 13:14:40 +00:00
.HasColumnName("owner")
2022-07-22 19:34:48 +00:00
.IsFixedLength();
2021-10-26 13:14:40 +00:00
2022-07-01 11:27:28 +00:00
b.Property<int>("Share")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("security");
b.Property<int>("SubjectType")
.HasColumnType("integer")
.HasColumnName("subject_type");
2021-10-26 13:14:40 +00:00
b.Property<DateTime>("TimeStamp")
2022-07-22 19:34:48 +00:00
.ValueGeneratedOnAdd()
.HasColumnType("timestamp with time zone")
.HasColumnName("timestamp")
.HasDefaultValueSql("CURRENT_TIMESTAMP");
2021-10-26 13:14:40 +00:00
b.HasKey("TenantId", "EntryId", "EntryType", "Subject")
2022-07-22 19:34:48 +00:00
.HasName("files_security_pkey");
2021-10-26 13:14:40 +00:00
b.HasIndex("Owner")
.HasDatabaseName("owner");
2022-07-22 19:34:48 +00:00
b.HasIndex("EntryId", "TenantId", "EntryType", "Owner")
.HasDatabaseName("tenant_id_files_security");
2022-07-22 19:34:48 +00:00
b.ToTable("files_security", "onlyoffice");
2021-10-26 13:14:40 +00:00
});
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTag", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("id")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
2021-10-26 13:14:40 +00:00
b.Property<string>("Name")
.IsRequired()
2022-07-22 19:34:48 +00:00
.HasMaxLength(255)
.HasColumnType("character varying(255)")
.HasColumnName("name");
2021-10-26 13:14:40 +00:00
2022-07-22 19:34:48 +00:00
b.Property<Guid>("Owner")
.HasMaxLength(38)
.HasColumnType("uuid")
.HasColumnName("owner");
2021-10-26 13:14:40 +00:00
b.Property<int>("TenantId")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("tenant_id");
2022-07-01 11:27:28 +00:00
b.Property<int>("Type")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("flag");
2022-07-01 11:27:28 +00:00
2021-10-26 13:14:40 +00:00
b.HasKey("Id");
2022-07-01 11:27:28 +00:00
b.HasIndex("TenantId", "Owner", "Name", "Type")
2022-07-22 19:34:48 +00:00
.HasDatabaseName("name_files_tag");
2021-10-26 13:14:40 +00:00
2022-07-22 19:34:48 +00:00
b.ToTable("files_tag", "onlyoffice");
2021-10-26 13:14:40 +00:00
});
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesTagLink", b =>
{
b.Property<int>("TenantId")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("tenant_id");
b.Property<int>("TagId")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("tag_id");
b.Property<int>("EntryType")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("entry_type");
2022-07-22 19:34:48 +00:00
b.Property<string>("EntryId")
.HasMaxLength(32)
.HasColumnType("character varying(32)")
.HasColumnName("entry_id");
2022-07-01 11:27:28 +00:00
b.Property<int>("Count")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("tag_count");
2022-07-01 11:27:28 +00:00
2022-07-22 19:34:48 +00:00
b.Property<Guid?>("CreateBy")
.ValueGeneratedOnAdd()
.HasMaxLength(38)
.HasColumnType("uuid")
2021-10-26 13:14:40 +00:00
.HasColumnName("create_by")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("NULL::bpchar")
.IsFixedLength();
2021-10-26 13:14:40 +00:00
b.Property<DateTime?>("CreateOn")
2022-07-22 19:34:48 +00:00
.HasColumnType("timestamp with time zone")
2021-10-26 13:14:40 +00:00
.HasColumnName("create_on");
2022-07-22 19:34:48 +00:00
b.HasKey("TenantId", "TagId", "EntryType", "EntryId")
.HasName("files_tag_link_pkey");
2021-10-26 13:14:40 +00:00
b.HasIndex("CreateOn")
2022-07-22 19:34:48 +00:00
.HasDatabaseName("create_on_files_tag_link");
2021-10-26 13:14:40 +00:00
2022-07-22 19:34:48 +00:00
b.HasIndex("TenantId", "EntryType", "EntryId")
2021-10-26 13:14:40 +00:00
.HasDatabaseName("entry_id");
2022-07-22 19:34:48 +00:00
b.ToTable("files_tag_link", "onlyoffice");
2021-10-26 13:14:40 +00:00
});
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyAccount", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("id")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
2021-10-26 13:14:40 +00:00
b.Property<DateTime>("CreateOn")
2022-07-22 19:34:48 +00:00
.HasColumnType("timestamp with time zone")
2021-10-26 13:14:40 +00:00
.HasColumnName("create_on");
2022-07-11 15:33:57 +00:00
b.Property<string>("FolderId")
2022-08-25 07:36:27 +00:00
.HasColumnType("text")
.HasColumnName("folder_id");
2022-07-11 15:33:57 +00:00
2021-10-26 13:14:40 +00:00
b.Property<int>("FolderType")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("folder_type");
2021-10-26 13:14:40 +00:00
2022-12-15 14:10:28 +00:00
b.Property<bool>("HasLogo")
.HasColumnType("boolean")
.HasColumnName("has_logo");
2021-10-26 13:14:40 +00:00
b.Property<string>("Password")
.IsRequired()
2022-07-22 19:34:48 +00:00
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("password");
2021-10-26 13:14:40 +00:00
2022-08-25 07:36:27 +00:00
b.Property<bool>("Private")
.HasColumnType("boolean")
.HasColumnName("private");
2021-10-26 13:14:40 +00:00
b.Property<string>("Provider")
.IsRequired()
.ValueGeneratedOnAdd()
2022-07-22 19:34:48 +00:00
.HasMaxLength(50)
.HasColumnType("character varying(50)")
2021-10-26 13:14:40 +00:00
.HasColumnName("provider")
2022-07-22 19:34:48 +00:00
.HasDefaultValueSql("'0'::character varying");
2021-10-26 13:14:40 +00:00
2022-07-11 15:33:57 +00:00
b.Property<int>("RoomType")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2022-07-11 15:33:57 +00:00
.HasColumnName("room_type");
2021-10-26 13:14:40 +00:00
b.Property<int>("TenantId")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("tenant_id");
b.Property<string>("Title")
.IsRequired()
2022-07-22 19:34:48 +00:00
.HasMaxLength(400)
.HasColumnType("character varying(400)")
.HasColumnName("customer_title");
2021-10-26 13:14:40 +00:00
b.Property<string>("Token")
.HasColumnType("text")
2022-07-22 19:34:48 +00:00
.HasColumnName("token");
2021-10-26 13:14:40 +00:00
b.Property<string>("Url")
.HasColumnType("text")
2022-07-22 19:34:48 +00:00
.HasColumnName("url");
2021-10-26 13:14:40 +00:00
2022-07-22 19:34:48 +00:00
b.Property<Guid>("UserId")
.HasMaxLength(38)
.HasColumnType("uuid")
.HasColumnName("user_id");
2021-10-26 13:14:40 +00:00
b.Property<string>("UserName")
.IsRequired()
2022-07-22 19:34:48 +00:00
.HasMaxLength(100)
.HasColumnType("character varying(100)")
.HasColumnName("user_name");
2021-10-26 13:14:40 +00:00
b.HasKey("Id");
2022-07-11 15:33:57 +00:00
b.HasIndex("TenantId")
.HasDatabaseName("tenant_id");
2022-07-22 19:34:48 +00:00
b.ToTable("files_thirdparty_account", "onlyoffice");
2021-10-26 13:14:40 +00:00
});
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyApp", b =>
{
2022-07-22 19:34:48 +00:00
b.Property<Guid>("UserId")
.HasMaxLength(38)
.HasColumnType("uuid")
.HasColumnName("user_id");
2021-10-26 13:14:40 +00:00
b.Property<string>("App")
2022-07-22 19:34:48 +00:00
.HasMaxLength(50)
.HasColumnType("character varying(50)")
.HasColumnName("app");
2021-10-26 13:14:40 +00:00
b.Property<DateTime>("ModifiedOn")
2022-07-22 19:34:48 +00:00
.ValueGeneratedOnAdd()
.HasColumnType("timestamp with time zone")
.HasColumnName("modified_on")
.HasDefaultValueSql("CURRENT_TIMESTAMP");
2021-10-26 13:14:40 +00:00
b.Property<int>("TenantId")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("tenant_id");
b.Property<string>("Token")
.HasColumnType("text")
2022-07-22 19:34:48 +00:00
.HasColumnName("token");
2021-10-26 13:14:40 +00:00
b.HasKey("UserId", "App")
2022-07-22 19:34:48 +00:00
.HasName("files_thirdparty_app_pkey");
2021-10-26 13:14:40 +00:00
2022-07-22 19:34:48 +00:00
b.ToTable("files_thirdparty_app", "onlyoffice");
2021-10-26 13:14:40 +00:00
});
modelBuilder.Entity("ASC.Files.Core.EF.DbFilesThirdpartyIdMapping", b =>
{
b.Property<string>("HashId")
2022-07-22 19:34:48 +00:00
.HasMaxLength(32)
.HasColumnType("character(32)")
2021-10-26 13:14:40 +00:00
.HasColumnName("hash_id")
2022-07-22 19:34:48 +00:00
.IsFixedLength();
2021-10-26 13:14:40 +00:00
b.Property<string>("Id")
.IsRequired()
.HasColumnType("text")
2022-07-22 19:34:48 +00:00
.HasColumnName("id");
2021-10-26 13:14:40 +00:00
b.Property<int>("TenantId")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("tenant_id");
b.HasKey("HashId")
2022-07-22 19:34:48 +00:00
.HasName("files_thirdparty_id_mapping_pkey");
2021-10-26 13:14:40 +00:00
b.HasIndex("TenantId", "HashId")
.HasDatabaseName("index_1");
2022-07-22 19:34:48 +00:00
b.ToTable("files_thirdparty_id_mapping", "onlyoffice");
2021-10-26 13:14:40 +00:00
});
modelBuilder.Entity("ASC.Files.Core.EF.DbFolder", b =>
{
b.Property<int>("Id")
.ValueGeneratedOnAdd()
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("id")
.HasAnnotation("Npgsql:ValueGenerationStrategy", NpgsqlValueGenerationStrategy.IdentityByDefaultColumn);
2021-10-26 13:14:40 +00:00
2022-07-22 19:34:48 +00:00
b.Property<Guid>("CreateBy")
.HasMaxLength(38)
.HasColumnType("uuid")
2021-10-26 13:14:40 +00:00
.HasColumnName("create_by")
2022-07-22 19:34:48 +00:00
.IsFixedLength();
2021-10-26 13:14:40 +00:00
b.Property<DateTime>("CreateOn")
2022-07-22 19:34:48 +00:00
.HasColumnType("timestamp with time zone")
2021-10-26 13:14:40 +00:00
.HasColumnName("create_on");
b.Property<int>("FilesCount")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("filesCount");
2021-10-26 13:14:40 +00:00
b.Property<int>("FolderType")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("folder_type");
2021-10-26 13:14:40 +00:00
b.Property<int>("FoldersCount")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("foldersCount");
2021-10-26 13:14:40 +00:00
2022-12-15 14:10:28 +00:00
b.Property<bool>("HasLogo")
.HasColumnType("boolean")
.HasColumnName("has_logo");
2022-07-22 19:34:48 +00:00
b.Property<Guid>("ModifiedBy")
.HasMaxLength(38)
.HasColumnType("uuid")
2021-10-26 13:14:40 +00:00
.HasColumnName("modified_by")
2022-07-22 19:34:48 +00:00
.IsFixedLength();
2021-10-26 13:14:40 +00:00
b.Property<DateTime>("ModifiedOn")
2022-07-22 19:34:48 +00:00
.HasColumnType("timestamp with time zone")
2021-10-26 13:14:40 +00:00
.HasColumnName("modified_on");
b.Property<int>("ParentId")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
.HasColumnName("parent_id");
2021-10-26 13:14:40 +00:00
2022-08-25 07:36:27 +00:00
b.Property<bool>("Private")
.HasColumnType("boolean")
.HasColumnName("private");
2021-10-26 13:14:40 +00:00
b.Property<int>("TenantId")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("tenant_id");
b.Property<string>("Title")
.IsRequired()
2022-07-22 19:34:48 +00:00
.HasMaxLength(400)
.HasColumnType("character varying(400)")
.HasColumnName("title");
2021-10-26 13:14:40 +00:00
b.HasKey("Id");
b.HasIndex("ModifiedOn")
2022-07-22 19:34:48 +00:00
.HasDatabaseName("modified_on_files_folder");
2021-10-26 13:14:40 +00:00
b.HasIndex("TenantId", "ParentId")
.HasDatabaseName("parent_id");
2022-07-22 19:34:48 +00:00
b.ToTable("files_folder", "onlyoffice");
2021-10-26 13:14:40 +00:00
});
modelBuilder.Entity("ASC.Files.Core.EF.DbFolderTree", b =>
{
b.Property<int>("ParentId")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("parent_id");
b.Property<int>("FolderId")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("folder_id");
b.Property<int>("Level")
2022-07-22 19:34:48 +00:00
.HasColumnType("integer")
2021-10-26 13:14:40 +00:00
.HasColumnName("level");
b.HasKey("ParentId", "FolderId")
2022-07-22 19:34:48 +00:00
.HasName("files_folder_tree_pkey");
2021-10-26 13:14:40 +00:00
b.HasIndex("FolderId")
2022-07-22 19:34:48 +00:00
.HasDatabaseName("folder_id_files_folder_tree");
2022-07-22 19:34:48 +00:00
b.ToTable("files_folder_tree", "onlyoffice");
2021-10-26 13:14:40 +00:00
});
#pragma warning restore 612, 618
}
}
}